3 # From configure.in Revision: 1.120
65 # Guess values for system-dependent variables and create Makefiles.
66 # Generated automatically using autoconf version 2.13
67 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69 # This configure script is free software; the Free Software Foundation
70 # gives unlimited permission to copy, distribute and modify it.
74 ac_default_prefix
=/usr
/local
75 # Any additions from configure.in:
77 --without-gcc don't use gcc"
79 --enable-ipv6 enable ipv6 (with ipv4) support
80 --disable-ipv6 disable ipv6 support"
82 --without-crypto disable crypto support"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tcpdump.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
595 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
596 if test -f $ac_dir/install-sh
; then
598 ac_install_sh
="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh
; then
602 ac_install_sh
="$ac_aux_dir/install.sh -c"
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609 ac_config_guess
=$ac_aux_dir/config.guess
610 ac_config_sub
=$ac_aux_dir/config.sub
611 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
614 # Do some error checking and defaulting for the host and target type.
616 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
619 # 1. You are not allowed to specify --host, --target, and nonopt at the
621 # 2. Host defaults to nonopt.
622 # 3. If nonopt is not specified, then host defaults to the current host,
623 # as determined by config.guess.
624 # 4. Target and build default to nonopt.
625 # 5. If nonopt is not specified, then target and build default to host.
627 # The aliases save the names the user supplied, while $host etc.
628 # will get canonicalized.
629 case $host---$target---$nonopt in
630 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
631 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
635 # Make sure we can run config.sub.
636 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
637 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640 echo $ac_n "checking host system type""... $ac_c" 1>&6
641 echo "configure:642: checking host system type" >&5
644 case "$host_alias" in
648 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
649 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
651 *) host_alias
=$nonopt ;;
655 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
656 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$host" 1>&6
661 echo $ac_n "checking target system type""... $ac_c" 1>&6
662 echo "configure:663: checking target system type" >&5
665 case "$target_alias" in
668 NONE
) target_alias
=$host_alias ;;
669 *) target_alias
=$nonopt ;;
673 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
674 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$target" 1>&6
679 echo $ac_n "checking build system type""... $ac_c" 1>&6
680 echo "configure:681: checking build system type" >&5
683 case "$build_alias" in
686 NONE
) build_alias
=$host_alias ;;
687 *) build_alias
=$nonopt ;;
691 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
692 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$build" 1>&6
697 test "$host_alias" != "$target_alias" &&
698 test "$program_prefix$program_suffix$program_transform_name" = \
700 program_prefix
=${target_alias}-
707 # Check whether --with-gcc or --without-gcc was given.
708 if test "${with_gcc+set}" = set; then
715 if test "${srcdir}" != "." ; then
716 V_INCLS
="-I\$(srcdir)"
718 if test "${CFLAGS+set}" = set; then
721 if test -z "$CC" ; then
725 # Extract the first word of "shlicc2", so it can be a program name with args.
726 set dummy shlicc2
; ac_word
=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 if test -n "$SHLICC2"; then
733 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
735 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
737 for ac_dir
in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir
=.
739 if test -f $ac_dir/$ac_word; then
740 ac_cv_prog_SHLICC2
="yes"
745 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
748 SHLICC2
="$ac_cv_prog_SHLICC2"
749 if test -n "$SHLICC2"; then
750 echo "$ac_t""$SHLICC2" 1>&6
752 echo "$ac_t""no" 1>&6
755 if test $SHLICC2 = yes ; then
762 if test -z "$CC" -a "$with_gcc" = no
; then
766 # Extract the first word of "gcc", so it can be a program name with args.
767 set dummy gcc
; ac_word
=$2
768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 echo "configure:770: checking for $ac_word" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 if test -n "$CC"; then
774 ac_cv_prog_CC
="$CC" # Let the user override the test.
776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
778 for ac_dir
in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir
=.
780 if test -f $ac_dir/$ac_word; then
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
792 echo "$ac_t""no" 1>&6
795 if test -z "$CC"; then
796 # Extract the first word of "cc", so it can be a program name with args.
797 set dummy cc
; ac_word
=$2
798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
799 echo "configure:800: checking for $ac_word" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 if test -n "$CC"; then
804 ac_cv_prog_CC
="$CC" # Let the user override the test.
806 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
809 for ac_dir
in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir
=.
811 if test -f $ac_dir/$ac_word; then
812 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
821 if test $ac_prog_rejected = yes; then
822 # We found a bogon in the path, so make sure we never use it.
823 set dummy
$ac_cv_prog_CC
825 if test $# -gt 0; then
826 # We chose a different compiler from the bogus one.
827 # However, it has the same basename, so the bogon will be chosen
828 # first if we set CC to just the basename; use the full file name.
830 set dummy
"$ac_dir/$ac_word" "$@"
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
847 # Extract the first word of "cl", so it can be a program name with args.
848 set dummy cl
; ac_word
=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 if test -n "$CC"; then
855 ac_cv_prog_CC
="$CC" # Let the user override the test.
857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
859 for ac_dir
in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir
=.
861 if test -f $ac_dir/$ac_word; then
870 if test -n "$CC"; then
871 echo "$ac_t""$CC" 1>&6
873 echo "$ac_t""no" 1>&6
878 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
886 ac_cpp
='$CPP $CPPFLAGS'
887 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
888 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
889 cross_compiling
=$ac_cv_prog_cc_cross
891 cat > conftest.
$ac_ext << EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 if { (eval echo configure
:899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
899 ac_cv_prog_cc_works
=yes
900 # If we can't run a trivial program, we are probably using a cross compiler.
901 if (.
/conftest
; exit) 2>/dev
/null
; then
902 ac_cv_prog_cc_cross
=no
904 ac_cv_prog_cc_cross
=yes
907 echo "configure: failed program was:" >&5
908 cat conftest.
$ac_ext >&5
909 ac_cv_prog_cc_works
=no
913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
914 ac_cpp
='$CPP $CPPFLAGS'
915 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
916 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
917 cross_compiling
=$ac_cv_prog_cc_cross
919 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
920 if test $ac_cv_prog_cc_works = no
; then
921 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
925 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
926 cross_compiling
=$ac_cv_prog_cc_cross
928 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
929 echo "configure:930: checking whether we are using GNU C" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 cat > conftest.c
<<EOF
938 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
945 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
947 if test $ac_cv_prog_gcc = yes; then
953 ac_test_CFLAGS
="${CFLAGS+set}"
954 ac_save_CFLAGS
="$CFLAGS"
956 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
957 echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 echo 'void f(){}' > conftest.c
962 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
971 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
972 if test "$ac_test_CFLAGS" = set; then
973 CFLAGS
="$ac_save_CFLAGS"
974 elif test $ac_cv_prog_cc_g = yes; then
975 if test "$GCC" = yes; then
981 if test "$GCC" = yes; then
988 if test "$GCC" = yes ; then
989 if test "$SHLICC2" = yes ; then
993 echo $ac_n "checking gcc version""... $ac_c" 1>&6
994 echo "configure:995: checking gcc version" >&5
995 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
999 sed -e '/^gcc version /!d' \
1000 -e 's/^gcc version //' \
1001 -e 's/ .*//' -e 's/^[^0-9]*//' \
1005 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1006 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1011 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1012 echo "configure:1013: checking that $CC handles ansi prototypes" >&5
1013 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 cat > conftest.
$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1019 #include <sys/types.h>
1021 int frob(int, char *)
1024 if { (eval echo configure
:1025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1026 ac_cv_lbl_cc_ansi_prototypes
=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.
$ac_ext >&5
1031 ac_cv_lbl_cc_ansi_prototypes
=no
1036 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1037 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1038 case "$target_os" in
1041 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1042 echo "configure:1043: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1043 savedcflags
="$CFLAGS"
1044 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1045 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 cat > conftest.
$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1051 #include <sys/types.h>
1053 int frob(int, char *)
1056 if { (eval echo configure
:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1058 ac_cv_lbl_cc_hpux_cc_aa
=yes
1060 echo "configure: failed program was:" >&5
1061 cat conftest.
$ac_ext >&5
1063 ac_cv_lbl_cc_hpux_cc_aa
=no
1068 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1069 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1070 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1072 CFLAGS
="$savedcflags"
1073 V_CCOPT
="-Aa $V_CCOPT"
1074 cat >> confdefs.h
<<\EOF
1075 #define _HPUX_SOURCE 1
1081 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1085 V_INCLS
="$V_INCLS -I/usr/local/include"
1086 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1088 case "$target_os" in
1091 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1095 V_CCOPT
="$V_CCOPT -std1 -g3"
1099 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1100 echo "configure:1101: checking that Ultrix $CC hacks const in prototypes" >&5
1101 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.
$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1107 #include <sys/types.h>
1109 struct a { int b; };
1110 void c(const struct a *)
1113 if { (eval echo configure
:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115 ac_cv_lbl_cc_const_proto
=yes
1117 echo "configure: failed program was:" >&5
1118 cat conftest.
$ac_ext >&5
1120 ac_cv_lbl_cc_const_proto
=no
1125 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1126 if test $ac_cv_lbl_cc_const_proto = no
; then
1127 cat >> confdefs.h
<<\EOF
1136 echo $ac_n "checking for inline""... $ac_c" 1>&6
1137 echo "configure:1138: checking for inline" >&5
1138 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1142 for ac_kw
in inline __inline__ __inline
; do
1143 cat > conftest.
$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1151 if { (eval echo configure
:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1153 ac_cv_c_inline
=$ac_kw; break
1155 echo "configure: failed program was:" >&5
1156 cat conftest.
$ac_ext >&5
1163 echo "$ac_t""$ac_cv_c_inline" 1>&6
1164 case "$ac_cv_c_inline" in
1166 no
) cat >> confdefs.h
<<\EOF
1170 *) cat >> confdefs.h
<<EOF
1171 #define inline $ac_cv_c_inline
1177 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1178 echo "configure:1179: checking for __attribute__" >&5
1179 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.
$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1191 static void foo(void) __attribute__ ((noreturn));
1201 if { (eval echo configure
:1202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1203 ac_cv___attribute__
=yes
1205 echo "configure: failed program was:" >&5
1206 cat conftest.
$ac_ext >&5
1208 ac_cv___attribute__
=no
1213 if test "$ac_cv___attribute__" = "yes"; then
1214 cat >> confdefs.h
<<\EOF
1215 #define HAVE___ATTRIBUTE__ 1
1219 echo "$ac_t""$ac_cv___attribute__" 1>&6
1222 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1223 echo "configure:1224: checking how to run the C preprocessor" >&5
1224 # On Suns, sometimes $CPP names a directory.
1225 if test -n "$CPP" && test -d "$CPP"; then
1228 if test -z "$CPP"; then
1229 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 # This must be in double quotes, not single quotes, because CPP may get
1233 # substituted into the Makefile and "${CC-cc}" will confuse make.
1235 # On the NeXT, cc -E runs the code through the compiler's parser,
1236 # not just through cpp.
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1243 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1244 { (eval echo configure
:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1245 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1246 if test -z "$ac_err"; then
1250 echo "configure: failed program was:" >&5
1251 cat conftest.
$ac_ext >&5
1253 CPP
="${CC-cc} -E -traditional-cpp"
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure
:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1267 echo "configure: failed program was:" >&5
1268 cat conftest.
$ac_ext >&5
1270 CPP
="${CC-cc} -nologo -E"
1271 cat > conftest.
$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1294 ac_cv_prog_CPP
="$CPP"
1296 CPP
="$ac_cv_prog_CPP"
1298 ac_cv_prog_CPP
="$CPP"
1300 echo "$ac_t""$CPP" 1>&6
1302 for ac_hdr
in fcntl.h rpc
/rpcent.h
1304 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_hdr" >&5
1307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1315 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1316 { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1317 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1318 if test -z "$ac_err"; then
1320 eval "ac_cv_header_$ac_safe=yes"
1323 echo "configure: failed program was:" >&5
1324 cat conftest.
$ac_ext >&5
1326 eval "ac_cv_header_$ac_safe=no"
1330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1332 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1333 cat >> confdefs.h
<<EOF
1334 #define $ac_tr_hdr 1
1338 echo "$ac_t""no" 1>&6
1342 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether time.h and sys/time.h may both be included" >&5
1344 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 #include <sys/types.h>
1351 #include <sys/time.h>
1357 if { (eval echo configure
:1358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359 ac_cv_header_time
=yes
1361 echo "configure: failed program was:" >&5
1362 cat conftest.
$ac_ext >&5
1364 ac_cv_header_time
=no
1369 echo "$ac_t""$ac_cv_header_time" 1>&6
1370 if test $ac_cv_header_time = yes; then
1371 cat >> confdefs.h
<<\EOF
1372 #define TIME_WITH_SYS_TIME 1
1378 case "$target_os" in
1381 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1382 echo "configure:1383: checking Linux kernel version" >&5
1383 if test "$cross_compiling" = yes; then
1384 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 ac_cv_linux_vers
=unknown
1391 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_cv_linux_vers
=`uname -r 2>&1 | \
1395 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1399 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1400 if test $ac_cv_linux_vers = unknown
; then
1401 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1403 if test $ac_cv_linux_vers -lt 2 ; then
1404 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1406 cat >> confdefs.h
<<\EOF
1407 #define HAVE_NET_SLIP_H 1
1413 for ac_hdr
in net
/slip.h
1415 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_hdr" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.
$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1426 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1427 { (eval echo configure
:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1428 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1429 if test -z "$ac_err"; then
1431 eval "ac_cv_header_$ac_safe=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.
$ac_ext >&5
1437 eval "ac_cv_header_$ac_safe=no"
1441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1444 cat >> confdefs.h
<<EOF
1445 #define $ac_tr_hdr 1
1449 echo "$ac_t""no" 1>&6
1459 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1461 echo "configure:1462: checking for $ac_hdr" >&5
1462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.
$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure
:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1473 if test -z "$ac_err"; then
1475 eval "ac_cv_header_$ac_safe=yes"
1478 echo "configure: failed program was:" >&5
1479 cat conftest.
$ac_ext >&5
1481 eval "ac_cv_header_$ac_safe=no"
1485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1486 echo "$ac_t""yes" 1>&6
1487 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1488 cat >> confdefs.h
<<EOF
1489 #define $ac_tr_hdr 1
1493 echo "$ac_t""no" 1>&6
1497 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1498 echo "configure:1499: checking for smiInit in -lsmi" >&5
1499 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 ac_save_LIBS
="$LIBS"
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* Override any gcc2 internal prototype to avoid an error. */
1509 /* We use char because int might match the return type of a gcc2
1510 builtin and then its argument prototype would still apply. */
1517 if { (eval echo configure
:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1519 eval "ac_cv_lib_$ac_lib_var=yes"
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1524 eval "ac_cv_lib_$ac_lib_var=no"
1527 LIBS
="$ac_save_LIBS"
1530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1532 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1534 cat >> confdefs.h
<<EOF
1535 #define $ac_tr_lib 1
1541 echo "$ac_t""no" 1>&6
1544 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1545 echo "configure:1546: checking whether to enable libsmi" >&5
1546 if test "$cross_compiling" = yes; then
1547 echo "$ac_t""not when cross-compiling" 1>&6
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554 /* libsmi available check */
1558 int current, revision, age, n;
1559 const int required = 2;
1562 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1564 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1567 if (required < current - age || required > current)
1573 if { (eval echo configure
:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1575 echo "$ac_t""yes" 1>&6
1576 cat >> confdefs.h
<<\EOF
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 echo "$ac_t""no" 1>&6
1593 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1594 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether to enable ipv6" >&5
1596 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1597 if test "${enable_ipv6+set}" = set; then
1598 enableval
="$enable_ipv6"
1599 case "$enableval" in
1600 yes) echo "$ac_t""yes" 1>&6
1601 cat >> confdefs.h
<<\EOF
1602 #define ENABLE_IPV6 1
1605 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"
1606 cat >> confdefs.h
<<\EOF
1613 echo "$ac_t""no" 1>&6
1618 if test "$cross_compiling" = yes; then
1619 echo "$ac_t""no" 1>&6
1623 cat > conftest.
$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 /* AF_INET6 available check */
1627 #include <sys/types.h>
1628 #include <sys/socket.h>
1631 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1638 if { (eval echo configure
:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1640 echo "$ac_t""yes" 1>&6
1641 cat >> confdefs.h
<<\EOF
1642 #define ENABLE_IPV6 1
1645 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"
1646 cat >> confdefs.h
<<\EOF
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 echo "$ac_t""no" 1>&6
1668 if test "$ipv6" = "yes"; then
1669 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1670 echo "configure:1671: checking ipv6 stack type" >&5
1671 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1678 #include <netinet/in.h>
1679 #ifdef IPV6_INRIA_VERSION
1683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "yes" >/dev
/null
2>&1; then
1687 CFLAGS
="-DINET6 $CFLAGS"
1693 cat > conftest.
$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1697 #include <netinet/in.h>
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "yes" >/dev
/null
2>&1; then
1707 ipv6libdir
=/usr
/local
/v
6/lib
;
1709 CFLAGS
="-DINET6 $CFLAGS"
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1719 #include <features.h>
1720 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1725 egrep "yes" >/dev
/null
2>&1; then
1728 CFLAGS
="-DINET6 $CFLAGS"
1734 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1737 ipv6libdir
=/usr
/inet
6/lib
1739 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1747 #include <sys/param.h>
1748 #ifdef _TOSHIBA_INET6
1752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1753 egrep "yes" >/dev
/null
2>&1; then
1757 ipv6libdir
=/usr
/local
/v
6/lib
;
1758 CFLAGS
="-DINET6 $CFLAGS"
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1768 #include </usr/local/v6/include/sys/v6config.h>
1773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1774 egrep "yes" >/dev
/null
2>&1; then
1778 ipv6libdir
=/usr
/local
/v
6/lib
;
1779 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1789 #include <sys/param.h>
1790 #ifdef _ZETA_MINAMI_INET6
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "yes" >/dev
/null
2>&1; then
1799 ipv6libdir
=/usr
/local
/v
6/lib
;
1800 CFLAGS
="-DINET6 $CFLAGS"
1806 if test "$ipv6type" != "unknown"; then
1810 echo "$ac_t""$ipv6type" 1>&6
1813 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1814 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1815 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1816 echo "You have $ipv6lib library, using it"
1818 if test "$ipv6trylibc" = "yes"; then
1819 echo "You do not have $ipv6lib library, using libc"
1821 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1822 echo "You need to fetch lib$ipv6lib.a from appropriate"
1823 echo 'ipv6 kit and compile beforehand.'
1830 if test "$ipv6" = "yes"; then
1832 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1833 echo "configure:1834: checking for library containing getaddrinfo" >&5
1834 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 ac_func_search_save_LIBS
="$LIBS"
1838 ac_cv_search_getaddrinfo
="no"
1839 cat > conftest.
$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1842 /* Override any gcc2 internal prototype to avoid an error. */
1843 /* We use char because int might match the return type of a gcc2
1844 builtin and then its argument prototype would still apply. */
1851 if { (eval echo configure
:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1853 ac_cv_search_getaddrinfo
="none required"
1855 echo "configure: failed program was:" >&5
1856 cat conftest.
$ac_ext >&5
1859 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1860 LIBS
="-l$i $ac_func_search_save_LIBS"
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1873 if { (eval echo configure
:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1875 ac_cv_search_getaddrinfo
="-l$i"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1883 LIBS
="$ac_func_search_save_LIBS"
1886 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1887 if test "$ac_cv_search_getaddrinfo" != "no"; then
1888 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1889 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1890 echo "configure:1891: checking getaddrinfo bug" >&5
1891 if test "$cross_compiling" = yes; then
1892 echo "$ac_t""buggy" 1>&6
1893 buggygetaddrinfo
=yes
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1899 #include <sys/types.h>
1902 #include <sys/socket.h>
1903 #include <netinet/in.h>
1907 int passive, gaierr, inet4 = 0, inet6 = 0;
1908 struct addrinfo hints, *ai, *aitop;
1909 char straddr[INET6_ADDRSTRLEN], strport[16];
1911 for (passive = 0; passive <= 1; passive++) {
1912 memset(&hints, 0, sizeof(hints));
1913 hints.ai_family = AF_UNSPEC;
1914 hints.ai_flags = passive ? AI_PASSIVE : 0;
1915 hints.ai_socktype = SOCK_STREAM;
1916 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1917 (void)gai_strerror(gaierr);
1920 for (ai = aitop; ai; ai = ai->ai_next) {
1921 if (ai->ai_addr == NULL ||
1922 ai->ai_addrlen == 0 ||
1923 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1924 straddr, sizeof(straddr), strport, sizeof(strport),
1925 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1928 switch (ai->ai_family) {
1930 if (strcmp(strport, "54321") != 0) {
1934 if (strcmp(straddr, "0.0.0.0") != 0) {
1938 if (strcmp(straddr, "127.0.0.1") != 0) {
1945 if (strcmp(strport, "54321") != 0) {
1949 if (strcmp(straddr, "::") != 0) {
1953 if (strcmp(straddr, "::1") != 0) {
1970 /* another family support? */
1976 /* supported family should be 2, unsupported family should be 0 */
1977 if (!(inet4 == 0 || inet4 == 2))
1979 if (!(inet6 == 0 || inet6 == 2))
1983 freeaddrinfo(aitop);
1988 freeaddrinfo(aitop);
1993 if { (eval echo configure
:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1995 echo "$ac_t""good" 1>&6
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2001 echo "$ac_t""buggy" 1>&6
2002 buggygetaddrinfo
=yes
2008 buggygetaddrinfo
=yes
2011 if test "$buggygetaddrinfo" = "yes"; then
2012 if test "$ipv6type" != "linux"; then
2013 echo 'Fatal: You must get working getaddrinfo() function.'
2014 echo ' or you can specify "--disable-ipv6"'.
2017 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
2018 echo ' Better upgreade your system library to newest version'
2019 echo ' of GNU C library (aka glibc).'
2022 for ac_func
in getaddrinfo getnameinfo
2024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_func" >&5
2026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $ac_func(); below. */
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2042 /* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2053 if { (eval echo configure
:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2055 eval "ac_cv_func_$ac_func=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 eval "ac_cv_func_$ac_func=no"
2065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068 cat >> confdefs.h
<<EOF
2069 #define $ac_tr_func 1
2073 echo "$ac_t""no" 1>&6
2074 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2080 for ac_func
in inet_ntop inet_pton inet_aton
2082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_func" >&5
2084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $ac_func(); below. */
2093 /* Override any gcc2 internal prototype to avoid an error. */
2094 /* We use char because int might match the return type of a gcc2
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2111 if { (eval echo configure
:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2113 eval "ac_cv_func_$ac_func=yes"
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 eval "ac_cv_func_$ac_func=no"
2123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_func 1
2131 echo "$ac_t""no" 1>&6
2132 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2139 echo $ac_n "checking for struct icmp6_mld""... $ac_c" 1>&6
2140 echo "configure:2141: checking for struct icmp6_mld" >&5
2141 if eval "test \"`echo '$''{'ac_cv_struct_icmp6_mld'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <netinet/icmp6.h>
2152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2153 egrep "icmp6_mld" >/dev
/null
2>&1; then
2155 ac_cv_struct_icmp6_mld
=yes
2158 ac_cv_struct_icmp6_mld
=no
2164 echo "$ac_t""$ac_cv_struct_icmp6_mld" 1>&6
2165 if test "$ac_cv_struct_icmp6_mld" = "yes"; then
2166 cat >> confdefs.h
<<\EOF
2167 #define HAVE_STRUCT_ICMP6_MLD 1
2172 echo $ac_n "checking for struct mld6_hdr""... $ac_c" 1>&6
2173 echo "configure:2174: checking for struct mld6_hdr" >&5
2174 if eval "test \"`echo '$''{'ac_cv_struct_mld6_hdr'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 cat > conftest.
$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2181 #include <sys/types.h>
2182 #include <netinet/icmp6.h>
2185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2186 egrep "mld6_hdr" >/dev
/null
2>&1; then
2188 ac_cv_struct_mld6_hdr
=yes
2191 ac_cv_struct_mld6_hdr
=no
2197 echo "$ac_t""$ac_cv_struct_mld6_hdr" 1>&6
2198 if test "$ac_cv_struct_mld6_hdr" = "yes"; then
2199 cat >> confdefs.h
<<\EOF
2200 #define HAVE_STRUCT_MLD6_HDR 1
2206 echo $ac_n "checking for struct icmp6_nodeinfo""... $ac_c" 1>&6
2207 echo "configure:2208: checking for struct icmp6_nodeinfo" >&5
2208 if eval "test \"`echo '$''{'ac_cv_struct_icmp6_nodeinfo'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2215 #include <sys/types.h>
2216 #include <netinet/icmp6.h>
2219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2220 egrep "icmp6_nodeinfo" >/dev
/null
2>&1; then
2222 ac_cv_struct_icmp6_nodeinfo
=yes
2225 ac_cv_struct_icmp6_nodeinfo
=no
2231 echo "$ac_t""$ac_cv_struct_icmp6_nodeinfo" 1>&6
2232 if test "$ac_cv_struct_icmp6_nodeinfo" = "yes"; then
2233 cat >> confdefs.h
<<\EOF
2234 #define HAVE_STRUCT_ICMP6_NODEINFO 1
2240 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2241 echo "configure:2242: checking if sockaddr struct has sa_len member" >&5
2242 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2249 # include <sys/types.h>
2250 # include <sys/socket.h>
2252 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2255 if { (eval echo configure
:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2257 ac_cv_sockaddr_has_sa_len
=yes
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2262 ac_cv_sockaddr_has_sa_len
=no
2267 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2268 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2269 cat >> confdefs.h
<<\EOF
2270 #define HAVE_SOCKADDR_SA_LEN 1
2275 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2276 missing_includes
=yes
2280 echo $ac_n "checking for __P""... $ac_c" 1>&6
2281 echo "configure:2282: checking for __P" >&5
2282 if eval "test \"`echo '$''{'ac_cv_portable_proto'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2289 # include <unistd.h>
2294 if { (eval echo configure
:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2296 ac_cv_portable_proto
=yes
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2301 ac_cv_portable_proto
=no
2306 echo "$ac_t""$ac_cv_portable_proto" 1>&6
2307 if test $ac_cv_portable_proto = yes; then
2308 cat >> confdefs.h
<<\EOF
2309 #define HAVE_PORTABLE_PROTOTYPE 1
2314 if test "$ac_cv_portable_proto" = no
; then
2315 missing_includes
=yes
2318 echo $ac_n "checking size of char""... $ac_c" 1>&6
2319 echo "configure:2320: checking size of char" >&5
2320 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test "$cross_compiling" = yes; then
2326 cat > conftest.
$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2332 FILE *f=fopen("conftestval", "w");
2334 fprintf(f, "%d\n", sizeof(char));
2338 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2340 ac_cv_sizeof_char
=`cat conftestval`
2342 echo "configure: failed program was:" >&5
2343 cat conftest.
$ac_ext >&5
2351 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2352 cat >> confdefs.h
<<EOF
2353 #define SIZEOF_CHAR $ac_cv_sizeof_char
2357 echo $ac_n "checking size of short""... $ac_c" 1>&6
2358 echo "configure:2359: checking size of short" >&5
2359 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 if test "$cross_compiling" = yes; then
2363 ac_cv_sizeof_short
=2
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2371 FILE *f=fopen("conftestval", "w");
2373 fprintf(f, "%d\n", sizeof(short));
2377 if { (eval echo configure
:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2379 ac_cv_sizeof_short
=`cat conftestval`
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 ac_cv_sizeof_short
=0
2390 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2391 cat >> confdefs.h
<<EOF
2392 #define SIZEOF_SHORT $ac_cv_sizeof_short
2396 echo $ac_n "checking size of int""... $ac_c" 1>&6
2397 echo "configure:2398: checking size of int" >&5
2398 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 if test "$cross_compiling" = yes; then
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2410 FILE *f=fopen("conftestval", "w");
2412 fprintf(f, "%d\n", sizeof(int));
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2418 ac_cv_sizeof_int
=`cat conftestval`
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2429 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2430 cat >> confdefs.h
<<EOF
2431 #define SIZEOF_INT $ac_cv_sizeof_int
2435 echo $ac_n "checking size of long""... $ac_c" 1>&6
2436 echo "configure:2437: checking size of long" >&5
2437 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test "$cross_compiling" = yes; then
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2449 FILE *f=fopen("conftestval", "w");
2451 fprintf(f, "%d\n", sizeof(long));
2455 if { (eval echo configure
:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2457 ac_cv_sizeof_long
=`cat conftestval`
2459 echo "configure: failed program was:" >&5
2460 cat conftest.
$ac_ext >&5
2468 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2469 cat >> confdefs.h
<<EOF
2470 #define SIZEOF_LONG $ac_cv_sizeof_long
2477 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2478 echo "configure:2479: checking for addrinfo" >&5
2479 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2491 if { (eval echo configure
:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2503 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2504 if test $ac_cv_addrinfo = yes; then
2505 cat >> confdefs.h
<<\EOF
2506 #define HAVE_ADDRINFO 1
2510 cat >> confdefs.h
<<\EOF
2511 #define NEED_ADDRINFO_H 1
2516 if test "$ac_cv_addrinfo" = no
; then
2517 missing_includes
=yes
2521 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2522 echo "configure:2523: checking for NI_MAXSERV" >&5
2523 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 cat > conftest.
$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2535 egrep "yes" >/dev
/null
2>&1; then
2546 echo "$ac_t""$ac_cv_maxserv" 1>&6
2547 if test $ac_cv_maxserv != yes; then
2548 cat >> confdefs.h
<<\EOF
2549 #define NEED_ADDRINFO_H 1
2554 if test "$ac_cv_maxserv" = no
; then
2555 missing_includes
=yes
2559 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2560 echo "configure:2561: checking for NI_NAMEREQD" >&5
2561 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "yes" >/dev
/null
2>&1; then
2584 echo "$ac_t""$ac_cv_namereqd" 1>&6
2585 if test $ac_cv_namereqd != yes; then
2586 cat >> confdefs.h
<<\EOF
2587 #define NEED_ADDRINFO_H 1
2592 if test "$ac_cv_namereqd" = no
; then
2593 missing_includes
=yes
2597 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2598 echo "configure:2599: checking for sockaddr_storage" >&5
2599 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2606 # include <sys/types.h>
2607 # include <sys/socket.h>
2609 struct sockaddr_storage s
2612 if { (eval echo configure
:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 ac_cv_sa_storage
=yes
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2624 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2625 if test $ac_cv_sa_storage = yes; then
2626 cat >> confdefs.h
<<\EOF
2627 #define HAVE_SOCKADDR_STORAGE 1
2632 if test "$ac_cv_sa_storage" = no
; then
2633 missing_includes
=yes
2638 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2639 echo "configure:2640: checking for INADDRSZ" >&5
2640 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2647 # include <arpa/nameser.h>
2652 if { (eval echo configure
:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2656 echo "configure: failed program was:" >&5
2657 cat conftest.
$ac_ext >&5
2664 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2665 if test $ac_cv_inaddrsz = yes; then
2666 cat >> confdefs.h
<<\EOF
2667 #define HAVE_INADDRSZ 1
2673 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2674 echo "configure:2675: checking for IN6ADDRSZ" >&5
2675 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2682 # include <arpa/nameser.h>
2687 if { (eval echo configure
:2688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2691 echo "configure: failed program was:" >&5
2692 cat conftest.
$ac_ext >&5
2699 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2700 if test $ac_cv_in6addrsz = yes; then
2701 cat >> confdefs.h
<<\EOF
2702 #define HAVE_IN6ADDRSZ 1
2709 if test "$ac_cv_addrsz" = no
; then
2710 missing_includes
=yes
2714 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2715 echo "configure:2716: checking for RES_USE_INET6" >&5
2716 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.
$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2723 # include <sys/types.h>
2724 # include <netinet/in.h>
2725 # include <resolv.h>
2727 int a = RES_USE_INET6
2730 if { (eval echo configure
:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2742 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2743 if test $ac_cv_res_inet6 = yes; then
2744 cat >> confdefs.h
<<\EOF
2745 #define HAVE_RES_USE_INET6 1
2750 if test "$ac_cv_res_inet6" = no
; then
2751 missing_includes
=yes
2755 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2756 echo "configure:2757: checking for res_state_ext" >&5
2757 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.
$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2764 # include <sys/types.h>
2765 # include <netinet/in.h>
2766 # include <netinet6/in6.h>
2767 # include <resolv.h>
2769 struct __res_state_ext e
2772 if { (eval echo configure
:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2774 ac_cv_res_state_ext
=yes
2776 echo "configure: failed program was:" >&5
2777 cat conftest.
$ac_ext >&5
2779 ac_cv_res_state_ext
=no
2784 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2785 if test $ac_cv_res_state_ext = yes; then
2786 cat >> confdefs.h
<<\EOF
2787 #define HAVE_RES_STATE_EXT 1
2792 if test "$ac_cv_res_state_ext" = no
; then
2793 missing_includes
=yes
2797 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2798 echo "configure:2799: checking for nsort in res_state" >&5
2799 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2806 # include <sys/types.h>
2807 # include <netinet/in.h>
2808 # include <netinet6/in6.h>
2809 # include <resolv.h>
2811 struct __res_state e; e.nsort = 0
2814 if { (eval echo configure
:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 echo "configure: failed program was:" >&5
2819 cat conftest.
$ac_ext >&5
2826 echo "$ac_t""$ac_cv_res_state" 1>&6
2827 if test $ac_cv_res_state = yes; then
2828 cat >> confdefs.h
<<\EOF
2829 #define HAVE_NEW_RES_STATE 1
2835 if test "$missing_includes" = "yes"; then
2836 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2837 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2841 for ac_func
in vfprintf strcasecmp strlcat strlcpy
2843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2844 echo "configure:2845: checking for $ac_func" >&5
2845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.
$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char $ac_func(); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2861 /* The GNU C library defines this for functions which it implements
2862 to always fail with ENOSYS. Some functions are actually named
2863 something starting with __ and the normal name is an alias. */
2864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2872 if { (eval echo configure
:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2874 eval "ac_cv_func_$ac_func=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_func_$ac_func=no"
2884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2887 cat >> confdefs.h
<<EOF
2888 #define $ac_tr_func 1
2892 echo "$ac_t""no" 1>&6
2893 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2898 for ac_func
in ether_ntohost setlinebuf
2900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_func" >&5
2902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 /* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char $ac_func(); below. */
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2918 /* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2929 if { (eval echo configure
:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2931 eval "ac_cv_func_$ac_func=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.
$ac_ext >&5
2936 eval "ac_cv_func_$ac_func=no"
2941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2944 cat >> confdefs.h
<<EOF
2945 #define $ac_tr_func 1
2949 echo "$ac_t""no" 1>&6
2955 for ac_func
in getipnodebyname getipnodebyaddr freeaddrinfo
2957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_func" >&5
2959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* System header to define __stub macros and hopefully few prototypes,
2966 which can conflict with char $ac_func(); below. */
2968 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2975 /* The GNU C library defines this for functions which it implements
2976 to always fail with ENOSYS. Some functions are actually named
2977 something starting with __ and the normal name is an alias. */
2978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2986 if { (eval echo configure
:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2988 eval "ac_cv_func_$ac_func=yes"
2990 echo "configure: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2993 eval "ac_cv_func_$ac_func=no"
2998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3000 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3001 cat >> confdefs.h
<<EOF
3002 #define $ac_tr_func 1
3006 echo "$ac_t""no" 1>&6
3011 if test $usegetipnodeby = yes; then
3012 cat >> confdefs.h
<<\EOF
3013 #define USE_GETIPNODEBY 1
3019 for ac_func
in vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf
3021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_func" >&5
3023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 /* System header to define __stub macros and hopefully few prototypes,
3030 which can conflict with char $ac_func(); below. */
3032 /* Override any gcc2 internal prototype to avoid an error. */
3033 /* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3039 /* The GNU C library defines this for functions which it implements
3040 to always fail with ENOSYS. Some functions are actually named
3041 something starting with __ and the normal name is an alias. */
3042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3050 if { (eval echo configure
:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3052 eval "ac_cv_func_$ac_func=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.
$ac_ext >&5
3057 eval "ac_cv_func_$ac_func=no"
3062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3063 echo "$ac_t""yes" 1>&6
3064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3065 cat >> confdefs.h
<<EOF
3066 #define $ac_tr_func 1
3070 echo "$ac_t""no" 1>&6
3075 if test $needsnprintf = yes; then
3076 LIBOBJS
="$LIBOBJS snprintf.o"
3079 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether byte ordering is bigendian" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_cv_c_bigendian
=unknown
3085 # See if sys/param.h defines the BYTE_ORDER macro.
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3090 #include <sys/param.h>
3093 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3098 if { (eval echo configure
:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 # It does; now see whether it defined to BIG_ENDIAN or not.
3101 cat > conftest.
$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <sys/types.h>
3105 #include <sys/param.h>
3108 #if BYTE_ORDER != BIG_ENDIAN
3113 if { (eval echo configure
:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 ac_cv_c_bigendian
=yes
3117 echo "configure: failed program was:" >&5
3118 cat conftest.
$ac_ext >&5
3120 ac_cv_c_bigendian
=no
3124 echo "configure: failed program was:" >&5
3125 cat conftest.
$ac_ext >&5
3128 if test $ac_cv_c_bigendian = unknown
; then
3129 if test "$cross_compiling" = yes; then
3130 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3136 /* Are we little or big endian? From Harbison&Steele. */
3140 char c[sizeof (long)];
3143 exit (u.c[sizeof (long) - 1] == 1);
3146 if { (eval echo configure
:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3148 ac_cv_c_bigendian
=no
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3153 ac_cv_c_bigendian
=yes
3161 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3162 if test $ac_cv_c_bigendian = yes; then
3163 cat >> confdefs.h
<<\EOF
3164 #define WORDS_BIGENDIAN 1
3170 echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6
3171 echo "configure:3172: checking for main in -ldnet" >&5
3172 ac_lib_var
=`echo dnet'_'main | sed 'y%./+-%__p_%'`
3173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 ac_save_LIBS
="$LIBS"
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3186 if { (eval echo configure
:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 eval "ac_cv_lib_$ac_lib_var=no"
3196 LIBS
="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3203 cat >> confdefs.h
<<EOF
3204 #define $ac_tr_lib 1
3210 echo "$ac_t""no" 1>&6
3213 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3214 echo "configure:3215: checking for main in -lrpc" >&5
3215 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_save_LIBS
="$LIBS"
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3229 if { (eval echo configure
:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3231 eval "ac_cv_lib_$ac_lib_var=yes"
3233 echo "configure: failed program was:" >&5
3234 cat conftest.
$ac_ext >&5
3236 eval "ac_cv_lib_$ac_lib_var=no"
3239 LIBS
="$ac_save_LIBS"
3242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3243 echo "$ac_t""yes" 1>&6
3244 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3245 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3246 cat >> confdefs.h
<<EOF
3247 #define $ac_tr_lib 1
3253 echo "$ac_t""no" 1>&6
3256 echo $ac_n "checking for getrpcbynumber in -lnsl""... $ac_c" 1>&6
3257 echo "configure:3258: checking for getrpcbynumber in -lnsl" >&5
3258 ac_lib_var
=`echo nsl'_'getrpcbynumber | sed 'y%./+-%__p_%'`
3259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 ac_save_LIBS
="$LIBS"
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3270 char getrpcbynumber();
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS
="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_lib 1
3300 echo "$ac_t""no" 1>&6
3305 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3306 echo "configure:3307: checking return type of signal handlers" >&5
3307 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.
$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <sys/types.h>
3319 extern "C" void (*signal (int, void (*)(int)))(int);
3321 void (*signal ()) ();
3328 if { (eval echo configure
:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 ac_cv_type_signal
=void
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3335 ac_cv_type_signal
=int
3340 echo "$ac_t""$ac_cv_type_signal" 1>&6
3341 cat >> confdefs.h
<<EOF
3342 #define RETSIGTYPE $ac_cv_type_signal
3346 if test "$ac_cv_type_signal" = void
; then
3347 cat >> confdefs.h
<<\EOF
3352 cat >> confdefs.h
<<\EOF
3353 #define RETSIGVAL (0)
3357 case "$target_os" in
3360 cat >> confdefs.h
<<\EOF
3361 #define _BSD_SIGNALS 1
3367 for ac_func
in sigset
3369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_func" >&5
3371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.
$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 /* System header to define __stub macros and hopefully few prototypes,
3378 which can conflict with char $ac_func(); below. */
3380 /* Override any gcc2 internal prototype to avoid an error. */
3381 /* We use char because int might match the return type of a gcc2
3382 builtin and then its argument prototype would still apply. */
3387 /* The GNU C library defines this for functions which it implements
3388 to always fail with ENOSYS. Some functions are actually named
3389 something starting with __ and the normal name is an alias. */
3390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3398 if { (eval echo configure
:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3400 eval "ac_cv_func_$ac_func=yes"
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3405 eval "ac_cv_func_$ac_func=no"
3410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3413 cat >> confdefs.h
<<EOF
3414 #define $ac_tr_func 1
3418 echo "$ac_t""no" 1>&6
3422 if test $ac_cv_func_sigset = no
; then
3423 for ac_func
in sigaction
3425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3426 echo "configure:3427: checking for $ac_func" >&5
3427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 /* System header to define __stub macros and hopefully few prototypes,
3434 which can conflict with char $ac_func(); below. */
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3443 /* The GNU C library defines this for functions which it implements
3444 to always fail with ENOSYS. Some functions are actually named
3445 something starting with __ and the normal name is an alias. */
3446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 eval "ac_cv_func_$ac_func=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 eval "ac_cv_func_$ac_func=no"
3466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3468 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3469 cat >> confdefs.h
<<EOF
3470 #define $ac_tr_func 1
3474 echo "$ac_t""no" 1>&6
3483 # Most operating systems have gethostbyname() in the default searched
3484 # libraries (i.e. libc):
3485 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3486 echo "configure:3487: checking for gethostbyname" >&5
3487 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 /* System header to define __stub macros and hopefully few prototypes,
3494 which can conflict with char gethostbyname(); below. */
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char gethostbyname();
3503 /* The GNU C library defines this for functions which it implements
3504 to always fail with ENOSYS. Some functions are actually named
3505 something starting with __ and the normal name is an alias. */
3506 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3514 if { (eval echo configure
:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3516 eval "ac_cv_func_gethostbyname=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 eval "ac_cv_func_gethostbyname=no"
3526 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3530 echo "$ac_t""no" 1>&6
3531 # Some OSes (eg. Solaris) place it in libnsl:
3532 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3533 echo "configure:3534: checking for gethostbyname in -lnsl" >&5
3534 ac_lib_var
=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3535 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS
="$LIBS"
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3546 char gethostbyname();
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3562 LIBS
="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3568 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3569 cat >> confdefs.h
<<EOF
3570 #define $ac_tr_lib 1
3576 echo "$ac_t""no" 1>&6
3577 # Some strange OSes (SINIX) have it in libsocket:
3578 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3579 echo "configure:3580: checking for gethostbyname in -lsocket" >&5
3580 ac_lib_var
=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3581 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 ac_save_LIBS
="$LIBS"
3585 LIBS
="-lsocket $LIBS"
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3592 char gethostbyname();
3598 if { (eval echo configure
:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3600 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.
$ac_ext >&5
3605 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3608 LIBS
="$ac_save_LIBS"
3611 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3615 cat >> confdefs.h
<<EOF
3616 #define $ac_tr_lib 1
3619 LIBS
="-lsocket $LIBS"
3622 echo "$ac_t""no" 1>&6
3623 # Unfortunately libsocket sometimes depends on libnsl.
3624 # AC_CHECK_LIB's API is essentially broken so the
3625 # following ugliness is necessary:
3626 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3627 echo "configure:3628: checking for gethostbyname in -lsocket" >&5
3628 ac_lib_var
=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
3629 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 ac_save_LIBS
="$LIBS"
3633 LIBS
="-lsocket -lnsl $LIBS"
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char gethostbyname();
3646 if { (eval echo configure
:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3648 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3653 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3656 LIBS
="$ac_save_LIBS"
3659 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 LIBS
="-lsocket -lnsl $LIBS"
3663 echo "$ac_t""no" 1>&6
3664 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3665 echo "configure:3666: checking for gethostbyname in -lresolv" >&5
3666 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 ac_save_LIBS
="$LIBS"
3671 LIBS
="-lresolv $LIBS"
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3678 char gethostbyname();
3684 if { (eval echo configure
:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS
="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3701 cat >> confdefs.h
<<EOF
3702 #define $ac_tr_lib 1
3705 LIBS
="-lresolv $LIBS"
3708 echo "$ac_t""no" 1>&6
3719 echo $ac_n "checking for socket""... $ac_c" 1>&6
3720 echo "configure:3721: checking for socket" >&5
3721 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char socket(); below. */
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3737 /* The GNU C library defines this for functions which it implements
3738 to always fail with ENOSYS. Some functions are actually named
3739 something starting with __ and the normal name is an alias. */
3740 #if defined (__stub_socket) || defined (__stub___socket)
3748 if { (eval echo configure
:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3750 eval "ac_cv_func_socket=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 eval "ac_cv_func_socket=no"
3760 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3764 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3766 echo "configure:3767: checking for socket in -lsocket" >&5
3767 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS
="$LIBS"
3772 LIBS
="-lsocket $LIBS"
3773 cat > conftest.
$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* Override any gcc2 internal prototype to avoid an error. */
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3785 if { (eval echo configure
:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3787 eval "ac_cv_lib_$ac_lib_var=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 eval "ac_cv_lib_$ac_lib_var=no"
3795 LIBS
="$ac_save_LIBS"
3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3801 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3802 cat >> confdefs.h
<<EOF
3803 #define $ac_tr_lib 1
3806 LIBS
="-lsocket $LIBS"
3809 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3811 echo "configure:3812: checking for socket in -lsocket" >&5
3812 ac_lib_var
=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
3813 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_save_LIBS
="$LIBS"
3817 LIBS
="-lsocket -lnsl $LIBS"
3818 cat > conftest.
$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3830 if { (eval echo configure
:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3832 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3840 LIBS
="$ac_save_LIBS"
3843 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3845 LIBS
="-lsocket -lnsl $LIBS"
3847 echo "$ac_t""no" 1>&6
3854 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3855 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
3856 echo "configure:3857: checking for putmsg in -lstr" >&5
3857 ac_lib_var
=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
3858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 ac_save_LIBS
="$LIBS"
3863 cat > conftest.
$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3875 if { (eval echo configure
:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3877 eval "ac_cv_lib_$ac_lib_var=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3882 eval "ac_cv_lib_$ac_lib_var=no"
3885 LIBS
="$ac_save_LIBS"
3888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_lib
=HAVE_LIB
`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3892 cat >> confdefs.h
<<EOF
3893 #define $ac_tr_lib 1
3899 echo "$ac_t""no" 1>&6
3905 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3906 if test -f $pfopen ; then
3907 for ac_func
in pfopen
3909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3910 echo "configure:3911: checking for $ac_func" >&5
3911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* System header to define __stub macros and hopefully few prototypes,
3918 which can conflict with char $ac_func(); below. */
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3927 /* The GNU C library defines this for functions which it implements
3928 to always fail with ENOSYS. Some functions are actually named
3929 something starting with __ and the normal name is an alias. */
3930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3938 if { (eval echo configure
:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3940 eval "ac_cv_func_$ac_func=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.
$ac_ext >&5
3945 eval "ac_cv_func_$ac_func=no"
3950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3951 echo "$ac_t""yes" 1>&6
3952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3953 cat >> confdefs.h
<<EOF
3954 #define $ac_tr_func 1
3958 echo "$ac_t""no" 1>&6
3962 if test $ac_cv_func_pfopen = "no" ; then
3963 echo "$ac_t""Using $pfopen" 1>&6
3964 LIBS
="$LIBS $pfopen"
3967 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3968 echo "configure:3969: checking for local pcap library" >&5
3971 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3972 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3973 for dir
in $places ..
/libpcap libpcap
; do
3974 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3975 if test $lastdir = $basedir ; then
3979 if test -r $dir/libpcap.a
; then
3980 libpcap
=$dir/libpcap.a
3984 if test $libpcap = FAIL
; then
3985 echo "$ac_t""not found" 1>&6
3986 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3987 echo "configure:3988: checking for main in -lpcap" >&5
3988 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 ac_save_LIBS
="$LIBS"
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
4002 if { (eval echo configure
:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 eval "ac_cv_lib_$ac_lib_var=no"
4012 LIBS
="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4019 echo "$ac_t""no" 1>&6
4022 if test $libpcap = FAIL
; then
4023 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
4027 if test -r $d/pcap.h
; then
4028 V_INCLS
="-I$d $V_INCLS"
4029 elif test -r $srcdir/..
/libpcap
/pcap.h
; then
4030 V_INCLS
="-I$d -I$srcdir/../libpcap $V_INCLS"
4032 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
4034 echo "$ac_t""$libpcap" 1>&6
4036 LIBS
="$libpcap $LIBS"
4037 case "$target_os" in
4040 pseexe
="/lib/pse.exp"
4041 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
4042 echo "configure:4043: checking for $pseexe" >&5
4043 if test -f $pseexe ; then
4044 echo "$ac_t""yes" 1>&6
4045 LIBS
="$LIBS -I:$pseexe"
4051 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
4054 case "$target_os" in
4057 cat >> confdefs.h
<<\EOF
4068 V_INCLS
="$V_INCLS -I\$(srcdir)/linux-include"
4073 cat >> confdefs.h
<<\EOF
4084 if test -f /dev
/bpf0
; then
4088 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
4089 echo "configure:4090: checking for u_int8_t using $CC" >&5
4090 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4097 # include "confdefs.h"
4098 # include <sys/types.h>
4100 # include <stdlib.h>
4101 # include <stddef.h>
4107 if { (eval echo configure
:4108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 ac_cv_lbl_have_u_int8_t
=yes
4111 echo "configure: failed program was:" >&5
4112 cat conftest.
$ac_ext >&5
4114 ac_cv_lbl_have_u_int8_t
=no
4119 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4120 if test $ac_cv_lbl_have_u_int8_t = no
; then
4121 cat >> confdefs.h
<<\EOF
4122 #define u_int8_t u_char
4126 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4127 echo "configure:4128: checking for int16_t using $CC" >&5
4128 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 cat > conftest.
$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4135 # include "confdefs.h"
4136 # include <sys/types.h>
4138 # include <stdlib.h>
4139 # include <stddef.h>
4145 if { (eval echo configure
:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 ac_cv_lbl_have_int16_t
=yes
4149 echo "configure: failed program was:" >&5
4150 cat conftest.
$ac_ext >&5
4152 ac_cv_lbl_have_int16_t
=no
4157 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4158 if test $ac_cv_lbl_have_int16_t = no
; then
4159 cat >> confdefs.h
<<\EOF
4160 #define int16_t short
4164 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4165 echo "configure:4166: checking for u_int16_t using $CC" >&5
4166 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.
$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4173 # include "confdefs.h"
4174 # include <sys/types.h>
4176 # include <stdlib.h>
4177 # include <stddef.h>
4183 if { (eval echo configure
:4184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4185 ac_cv_lbl_have_u_int16_t
=yes
4187 echo "configure: failed program was:" >&5
4188 cat conftest.
$ac_ext >&5
4190 ac_cv_lbl_have_u_int16_t
=no
4195 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4196 if test $ac_cv_lbl_have_u_int16_t = no
; then
4197 cat >> confdefs.h
<<\EOF
4198 #define u_int16_t u_short
4202 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4203 echo "configure:4204: checking for int32_t using $CC" >&5
4204 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 cat > conftest.
$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4211 # include "confdefs.h"
4212 # include <sys/types.h>
4214 # include <stdlib.h>
4215 # include <stddef.h>
4221 if { (eval echo configure
:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 ac_cv_lbl_have_int32_t
=yes
4225 echo "configure: failed program was:" >&5
4226 cat conftest.
$ac_ext >&5
4228 ac_cv_lbl_have_int32_t
=no
4233 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4234 if test $ac_cv_lbl_have_int32_t = no
; then
4235 cat >> confdefs.h
<<\EOF
4240 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4241 echo "configure:4242: checking for u_int32_t using $CC" >&5
4242 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 cat > conftest.
$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4249 # include "confdefs.h"
4250 # include <sys/types.h>
4252 # include <stdlib.h>
4253 # include <stddef.h>
4259 if { (eval echo configure
:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261 ac_cv_lbl_have_u_int32_t
=yes
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 ac_cv_lbl_have_u_int32_t
=no
4271 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4272 if test $ac_cv_lbl_have_u_int32_t = no
; then
4273 cat >> confdefs.h
<<\EOF
4274 #define u_int32_t u_int
4280 if test "${LBL_CFLAGS+set}" = set; then
4281 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4283 if test -f .devel
; then
4284 if test "$GCC" = yes ; then
4285 if test "${LBL_CFLAGS+set}" != set; then
4286 if test "$ac_cv_prog_cc_g" = yes ; then
4287 V_CCOPT
="-g $V_CCOPT"
4289 V_CCOPT
="$V_CCOPT -Wall"
4290 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4291 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4295 case "$target_os" in
4298 V_CCOPT
="$V_CCOPT -n32"
4305 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4307 if test -f $name ; then
4308 ln -s $name os-proto.h
4309 cat >> confdefs.h
<<\EOF
4310 #define HAVE_OS_PROTO_H 1
4314 echo "configure: warning: can't find $name" 1>&2
4318 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4319 echo "configure:4320: checking if sockaddr struct has sa_len member" >&5
4320 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4327 # include <sys/types.h>
4328 # include <sys/socket.h>
4330 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4333 if { (eval echo configure
:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 ac_cv_lbl_sockaddr_has_sa_len
=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 ac_cv_lbl_sockaddr_has_sa_len
=no
4345 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4346 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4347 cat >> confdefs.h
<<\EOF
4348 #define HAVE_SOCKADDR_SA_LEN 1
4353 echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6
4354 echo "configure:4355: checking if ether_header uses ether_addr structs" >&5
4355 if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 LBL_SAVE_CFLAGS
="$CFLAGS"
4359 CFLAGS
="$CFLAGS $V_INCLS"
4360 cat > conftest.
$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4364 # include <sys/types.h>
4366 /* osf3 has REALLY good prototyes */
4370 # include <sys/socket.h>
4371 # include <net/if.h>
4372 # include <netinet/in.h>
4373 # include <netinet/if_ether.h>
4376 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)
4379 if { (eval echo configure
:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4381 ac_cv_ether_header_has_ea
=yes
4383 echo "configure: failed program was:" >&5
4384 cat conftest.
$ac_ext >&5
4386 ac_cv_ether_header_has_ea
=no
4389 CFLAGS
="$LBL_SAVE_CFLAGS"
4392 echo "$ac_t""$ac_cv_ether_header_has_ea" 1>&6
4393 if test $ac_cv_ether_header_has_ea = yes ; then
4394 cat >> confdefs.h
<<\EOF
4395 #define ETHER_HEADER_HAS_EA 1
4400 echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6
4401 echo "configure:4402: checking if ether_arp uses ether_addr structs" >&5
4402 if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 LBL_SAVE_CFLAGS
="$CFLAGS"
4406 CFLAGS
="$CFLAGS $V_INCLS"
4407 cat > conftest.
$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4411 # include <sys/types.h>
4413 /* osf3 has REALLY good prototyes */
4417 # include <sys/socket.h>
4418 # include <net/if.h>
4419 # include <netinet/in.h>
4420 # include <netinet/if_ether.h>
4423 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)
4426 if { (eval echo configure
:4427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 ac_cv_ether_arp_has_ea
=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 ac_cv_ether_arp_has_ea
=no
4436 CFLAGS
="$LBL_SAVE_CFLAGS"
4439 echo "$ac_t""$ac_cv_ether_arp_has_ea" 1>&6
4440 if test $ac_cv_ether_arp_has_ea = yes ; then
4441 cat >> confdefs.h
<<\EOF
4442 #define ETHER_ARP_HAS_EA 1
4447 echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6
4448 echo "configure:4449: checking if ether_arp uses erp_xsha member" >&5
4449 if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 LBL_SAVE_CFLAGS
="$CFLAGS"
4453 CFLAGS
="$CFLAGS $V_INCLS"
4454 cat > conftest.
$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4458 # include <sys/types.h>
4459 # include <sys/socket.h>
4461 /* osf3 has REALLY good prototyes */
4465 # include <net/if.h>
4466 # include <netinet/in.h>
4467 # include <netinet/if_ether.h>
4469 u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)
4472 if { (eval echo configure
:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4474 ac_cv_struct_ether_arp_x
=yes
4476 echo "configure: failed program was:" >&5
4477 cat conftest.
$ac_ext >&5
4479 ac_cv_struct_ether_arp_x
=no
4482 CFLAGS
="$LBL_SAVE_CFLAGS"
4485 echo "$ac_t""$ac_cv_struct_ether_arp_x" 1>&6
4486 if test $ac_cv_struct_ether_arp_x = yes ; then
4487 cat >> confdefs.h
<<\EOF
4488 #define ETHER_ARP_HAS_X 1
4493 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4494 echo "configure:4495: checking if unaligned accesses fail" >&5
4495 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 case "$target_cpu" in
4500 # XXX: should also check that they don't do weird things (like on arm)
4501 alpha|arm
*|hp
*|mips|sparc
)
4502 ac_cv_lbl_unaligned_fail
=yes
4506 cat >conftest.c
<<EOF
4507 # include <sys/types.h>
4508 # include <sys/wait.h>
4510 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4515 /* avoid "core dumped" message */
4521 pid = waitpid(pid, &status, 0);
4524 exit(!WIFEXITED(status));
4527 i = *(unsigned int *)&a[1];
4532 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4533 conftest.c
$LIBS >/dev
/null
2>&1
4534 if test ! -x conftest
; then
4535 ac_cv_lbl_unaligned_fail
=yes
4537 .
/conftest
>conftest.out
4538 if test ! -s conftest.out
; then
4539 ac_cv_lbl_unaligned_fail
=yes
4541 ac_cv_lbl_unaligned_fail
=no
4544 rm -f conftest
* core core.conftest
4549 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4550 if test $ac_cv_lbl_unaligned_fail = yes ; then
4551 cat >> confdefs.h
<<\EOF
4558 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4559 echo "configure:4560: checking for h_errno" >&5
4560 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.
$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4567 # include <sys/types.h>
4573 if { (eval echo configure
:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 ac_cv_var_h_errno
=yes
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 ac_cv_var_h_errno
=no
4585 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4586 if test "$ac_cv_var_h_errno" = "yes"; then
4587 cat >> confdefs.h
<<\EOF
4588 #define HAVE_H_ERRNO 1
4594 # Check whether --with-crypto or --without-crypto was given.
4595 if test "${with_crypto+set}" = set; then
4596 withval
="$with_crypto"
4600 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4601 echo "configure:4602: checking for SSLeay" >&5
4602 ac_cv_ssleay_path
=no
4604 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4605 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4606 ac_cv_ssleay_path
=$dir
4608 if test -d $dir/include
/ssleay
-a -f $dir/include
/ssleay
/des.h
; then
4609 incdir
="-I$dir/include/ssleay"
4610 elif test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4611 incdir
="-I$dir/include -I$dir/include/openssl"
4612 elif test -d $dir/include
-a -f $dir/include
/des.h
; then
4613 incdir
="-I$dir/include"
4615 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4618 ac_cv_ssleay_path
=no
4622 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4623 if test "$ac_cv_ssleay_path" != no
; then
4624 V_INCLS
="$V_INCLS $incdir"
4625 LIBS
="$LIBS -L$dir/lib"
4626 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4627 LIBS
="$LIBS -lRSAglue"
4629 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4630 LIBS
="$LIBS -lrsaref"
4632 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4633 echo "configure:4634: checking for des_cbc_encrypt in -lcrypto" >&5
4634 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 ac_save_LIBS
="$LIBS"
4639 LIBS
="-lcrypto $LIBS"
4640 cat > conftest.
$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4646 char des_cbc_encrypt();
4652 if { (eval echo configure
:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4654 eval "ac_cv_lib_$ac_lib_var=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4659 eval "ac_cv_lib_$ac_lib_var=no"
4662 LIBS
="$ac_save_LIBS"
4665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4669 cat >> confdefs.h
<<EOF
4670 #define $ac_tr_lib 1
4673 LIBS
="-lcrypto $LIBS"
4676 echo "$ac_t""no" 1>&6
4680 bak_CPPFLAGS
=$CPPFLAGS
4681 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4682 for ac_hdr
in cast.h rc5.h
4684 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4686 echo "configure:4687: checking for $ac_hdr" >&5
4687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.
$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4696 { (eval echo configure
:4697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4697 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4698 if test -z "$ac_err"; then
4700 eval "ac_cv_header_$ac_safe=yes"
4703 echo "configure: failed program was:" >&5
4704 cat conftest.
$ac_ext >&5
4706 eval "ac_cv_header_$ac_safe=no"
4710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4711 echo "$ac_t""yes" 1>&6
4712 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4713 cat >> confdefs.h
<<EOF
4714 #define $ac_tr_hdr 1
4718 echo "$ac_t""no" 1>&6
4723 if test "$ac_cv_header_cast_h" = "yes"; then
4724 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4725 echo "configure:4726: checking for buggy CAST128" >&5
4726 if test "$cross_compiling" = yes; then
4727 buggy_cast128
="cross-compiling, assume yes"
4729 cat > conftest.
$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4736 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4737 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4738 unsigned char out[sizeof(in)];
4739 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4741 CAST_set_key(&ks, sizeof(key), key);
4742 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4743 if (memcmp(out, ok, sizeof(ok)) != 0)
4749 if { (eval echo configure
:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4753 echo "configure: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4761 echo "$ac_t""$buggy_cast128" 1>&6
4762 if test "$buggy_cast128" != no
; then
4763 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4764 echo "disabling CAST128 support."
4765 cat >> confdefs.h
<<\EOF
4766 #define HAVE_BUGGY_CAST128 1
4772 CPPFLAGS
=$bak_CPPFLAGS
4784 # Find a good install program. We prefer a C program (faster),
4785 # so one script is as good as another. But avoid the broken or
4786 # incompatible versions:
4787 # SysV /etc/install, /usr/sbin/install
4788 # SunOS /usr/etc/install
4789 # IRIX /sbin/install
4791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4794 # ./install, which can be erroneously created by make from ./install.sh.
4795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4796 echo "configure:4797: checking for a BSD compatible install" >&5
4797 if test -z "$INSTALL"; then
4798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4802 for ac_dir
in $PATH; do
4803 # Account for people who put trailing slashes in PATH elements.
4805 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4807 # OSF1 and SCO ODT 3.0 have their own names for install.
4808 # Don't use installbsd from OSF since it installs stuff as root
4810 for ac_prog
in ginstall scoinst
install; do
4811 if test -f $ac_dir/$ac_prog; then
4812 if test $ac_prog = install &&
4813 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4814 # AIX install. It has an incompatible calling convention.
4817 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4828 if test "${ac_cv_path_install+set}" = set; then
4829 INSTALL
="$ac_cv_path_install"
4831 # As a last resort, use the slow shell script. We don't cache a
4832 # path for INSTALL within a source directory, because that will
4833 # break other packages using the cache if that directory is
4834 # removed, or if the path is relative.
4835 INSTALL
="$ac_install_sh"
4838 echo "$ac_t""$INSTALL" 1>&6
4840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4841 # It thinks the first close brace ends the variable substitution.
4842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4846 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4853 cat > confcache
<<\EOF
4854 # This file is a shell script that caches the results of configure
4855 # tests run on this system so they can be shared between configure
4856 # scripts and configure runs. It is not useful on other systems.
4857 # If it contains results you don't want to keep, you may remove or edit it.
4859 # By default, configure uses ./config.cache as the cache file,
4860 # creating it if it does not exist already. You can give configure
4861 # the --cache-file=FILE option to use a different cache file; that is
4862 # what configure does when it calls configure scripts in
4863 # subdirectories, so they share the cache.
4864 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4865 # config.status only pays attention to the cache file if you give it the
4866 # --recheck option to rerun configure.
4869 # The following way of writing the cache mishandles newlines in values,
4870 # but we know of no workaround that is simple, portable, and efficient.
4871 # So, don't put newlines in cache variables' values.
4872 # Ultrix sh set writes to stderr and can't be redirected directly,
4873 # and sets the high bit in the cache file unless we assign to the vars.
4875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4877 # `set' does not quote correctly, so add quotes (double-quote substitution
4878 # turns \\\\ into \\, and sed turns \\ into \).
4880 -e "s/'/'\\\\''/g" \
4881 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4884 # `set' quotes correctly as required by POSIX, so do not add quotes.
4885 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4888 if cmp -s $cache_file confcache
; then
4891 if test -w $cache_file; then
4892 echo "updating cache $cache_file"
4893 cat confcache
> $cache_file
4895 echo "not updating unwritable cache $cache_file"
4900 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4902 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4903 # Let make expand exec_prefix.
4904 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4906 # Any assignment to VPATH causes Sun make to only execute
4907 # the first set of double-colon rules, so remove it if not needed.
4908 # If there is a colon in the path, we need to keep it.
4909 if test "x$srcdir" = x.
; then
4910 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4913 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4915 DEFS
=-DHAVE_CONFIG_H
4917 # Without the "./", some shells look in PATH for config.status.
4918 : ${CONFIG_STATUS=./config.status}
4920 echo creating
$CONFIG_STATUS
4921 rm -f $CONFIG_STATUS
4922 cat > $CONFIG_STATUS <<EOF
4924 # Generated automatically by configure.
4925 # Run this file to recreate the current configuration.
4926 # This directory was configured as follows,
4927 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4929 # $0 $ac_configure_args
4931 # Compiler output produced by configure, useful for debugging
4932 # configure, is in ./config.log if it exists.
4934 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4937 case "\$ac_option" in
4938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4939 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4940 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4941 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4942 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4944 -help | --help | --hel | --he | --h)
4945 echo "\$ac_cs_usage"; exit 0 ;;
4946 *) echo "\$ac_cs_usage"; exit 1 ;;
4950 ac_given_srcdir=$srcdir
4951 ac_given_INSTALL="$INSTALL"
4953 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4955 cat >> $CONFIG_STATUS <<EOF
4957 # Protect against being on the right side of a sed subst in config.status.
4958 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4959 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4963 s%@CFLAGS@%$CFLAGS%g
4964 s%@CPPFLAGS@%$CPPFLAGS%g
4965 s%@CXXFLAGS@%$CXXFLAGS%g
4966 s%@FFLAGS@%$FFLAGS%g
4968 s%@LDFLAGS@%$LDFLAGS%g
4970 s%@exec_prefix@%$exec_prefix%g
4971 s%@prefix@%$prefix%g
4972 s%@program_transform_name@%$program_transform_name%g
4973 s%@bindir@%$bindir%g
4974 s%@sbindir@%$sbindir%g
4975 s%@libexecdir@%$libexecdir%g
4976 s%@datadir@%$datadir%g
4977 s%@sysconfdir@%$sysconfdir%g
4978 s%@sharedstatedir@%$sharedstatedir%g
4979 s%@localstatedir@%$localstatedir%g
4980 s%@libdir@%$libdir%g
4981 s%@includedir@%$includedir%g
4982 s%@oldincludedir@%$oldincludedir%g
4983 s%@infodir@%$infodir%g
4984 s%@mandir@%$mandir%g
4986 s%@host_alias@%$host_alias%g
4987 s%@host_cpu@%$host_cpu%g
4988 s%@host_vendor@%$host_vendor%g
4989 s%@host_os@%$host_os%g
4990 s%@target@%$target%g
4991 s%@target_alias@%$target_alias%g
4992 s%@target_cpu@%$target_cpu%g
4993 s%@target_vendor@%$target_vendor%g
4994 s%@target_os@%$target_os%g
4996 s%@build_alias@%$build_alias%g
4997 s%@build_cpu@%$build_cpu%g
4998 s%@build_vendor@%$build_vendor%g
4999 s%@build_os@%$build_os%g
5000 s%@SHLICC2@%$SHLICC2%g
5003 s%@LIBOBJS@%$LIBOBJS%g
5004 s%@V_CCOPT@%$V_CCOPT%g
5005 s%@V_GROUP@%$V_GROUP%g
5006 s%@V_INCLS@%$V_INCLS%g
5007 s%@V_PCAPDEP@%$V_PCAPDEP%g
5008 s%@LOCALSRC@%$LOCALSRC%g
5009 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5010 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5011 s%@INSTALL_DATA@%$INSTALL_DATA%g
5016 cat >> $CONFIG_STATUS <<\EOF
5018 # Split the substitutions into bite-sized pieces for seds with
5019 # small command number limits, like on Digital OSF/1 and HP-UX.
5020 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5021 ac_file
=1 # Number of current file.
5022 ac_beg
=1 # First line for current file.
5023 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5026 while $ac_more_lines; do
5027 if test $ac_beg -gt 1; then
5028 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5030 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5032 if test ! -s conftest.s
$ac_file; then
5034 rm -f conftest.s
$ac_file
5036 if test -z "$ac_sed_cmds"; then
5037 ac_sed_cmds
="sed -f conftest.s$ac_file"
5039 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5041 ac_file
=`expr $ac_file + 1`
5043 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5046 if test -z "$ac_sed_cmds"; then
5051 cat >> $CONFIG_STATUS <<EOF
5053 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5055 cat >> $CONFIG_STATUS <<\EOF
5056 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5059 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5060 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5061 *) ac_file_in
="${ac_file}.in" ;;
5064 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5066 # Remove last slash and all that follows it. Not all systems have dirname.
5067 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5068 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5069 # The file is in a subdirectory.
5070 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5071 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5072 # A "../" for each directory in $ac_dir_suffix.
5073 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5075 ac_dir_suffix
= ac_dots
=
5078 case "$ac_given_srcdir" in
5080 if test -z "$ac_dots"; then top_srcdir
=.
5081 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5082 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5084 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5085 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5088 case "$ac_given_INSTALL" in
5089 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5090 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5093 echo creating
"$ac_file"
5095 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5097 *Makefile
*) ac_comsub
="1i\\
5098 # $configure_input" ;;
5102 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5104 s%@configure_input@%$configure_input%g
5105 s%@srcdir@%$srcdir%g
5106 s%@top_srcdir@%$top_srcdir%g
5107 s%@INSTALL@%$INSTALL%g
5108 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5112 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5113 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5115 # ac_d sets the value in "#define NAME VALUE" lines.
5116 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5117 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5120 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5121 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5122 ac_uB
='\([ ]\)%\1#\2define\3'
5125 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5126 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5127 ac_eB
='$%\1#\2define\3'
5131 if test "${CONFIG_HEADERS+set}" != set; then
5133 cat >> $CONFIG_STATUS <<EOF
5134 CONFIG_HEADERS="config.h"
5136 cat >> $CONFIG_STATUS <<\EOF
5138 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5141 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5142 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5143 *) ac_file_in
="${ac_file}.in" ;;
5146 echo creating
$ac_file
5148 rm -f conftest.frag conftest.
in conftest.out
5149 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5150 cat $ac_file_inputs > conftest.
in
5154 # Transform confdefs.h into a sed script conftest.vals that substitutes
5155 # the proper values into config.h.in to produce config.h. And first:
5156 # Protect against being on the right side of a sed subst in config.status.
5157 # Protect against being in an unquoted here document in config.status.
5159 cat > conftest.hdr
<<\EOF
5162 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5166 sed -n -f conftest.hdr confdefs.h > conftest.vals
5169 # This sed command replaces #undef with comments. This is necessary, for
5170 # example, in the case of _POSIX_SOURCE, which is predefined and required
5171 # on some systems where configure will not decide to define it.
5172 cat >> conftest.vals <<\EOF
5173 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5176 # Break up conftest.vals because some shells have a limit on
5177 # the size of here documents, and old seds have small limits too.
5182 ac_lines=`grep -c . conftest.vals
`
5183 # grep -c gives empty output for an empty file on some AIX systems.
5184 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5185 # Write a limited-size here document to conftest.frag.
5186 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5187 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5189 sed -f conftest.frag conftest.in > conftest.out
5191 mv conftest.out conftest.in
5193 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5195 mv conftest.tail conftest.vals
5199 cat >> $CONFIG_STATUS <<\EOF
5200 rm -f conftest.frag conftest.h
5201 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5202 cat conftest.in >> conftest.h
5204 if cmp -s $ac_file conftest.h 2>/dev/null; then
5205 echo "$ac_file is unchanged"
5208 # Remove last slash and all that follows it. Not all systems have dirname.
5209 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5210 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5211 # The file is in a subdirectory.
5212 test ! -d "$ac_dir" && mkdir "$ac_dir"
5215 mv conftest.h $ac_file
5220 cat >> $CONFIG_STATUS <<EOF
5224 cat >> $CONFIG_STATUS <<\EOF
5225 if test -f .devel; then
5226 echo timestamp > stamp-h
5227 cat Makefile-devel-adds >> Makefile
5233 chmod +x $CONFIG_STATUS
5234 rm -fr confdefs* $ac_clean_files
5235 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1