3 # From configure.in Revision: 1.82
38 # Guess values for system-dependent variables and create Makefiles.
39 # Generated automatically using autoconf version 2.13
40 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
42 # This configure script is free software; the Free Software Foundation
43 # gives unlimited permission to copy, distribute and modify it.
47 ac_default_prefix
=/usr
/local
48 # Any additions from configure.in:
50 --without-gcc don't use gcc"
52 --disable-protochain disable \"protochain\" insn"
54 --with-pcap=TYPE use packet capture TYPE"
56 --enable-ipv6 build IPv6-capable version"
58 --without-flex don't use flex"
60 --without-bison don't use bison"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
83 bindir
='${exec_prefix}/bin'
84 sbindir
='${exec_prefix}/sbin'
85 libexecdir
='${exec_prefix}/libexec'
86 datadir
='${prefix}/share'
87 sysconfdir
='${prefix}/etc'
88 sharedstatedir
='${prefix}/com'
89 localstatedir
='${prefix}/var'
90 libdir
='${exec_prefix}/lib'
91 includedir
='${prefix}/include'
92 oldincludedir
='/usr/include'
93 infodir
='${prefix}/info'
94 mandir
='${prefix}/man'
96 # Initialize some other variables.
99 SHELL
=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
126 bindir
="$ac_optarg" ;;
128 -build |
--build |
--buil |
--bui |
--bu)
130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
131 build
="$ac_optarg" ;;
133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
135 ac_prev
=cache_file
;;
136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
138 cache_file
="$ac_optarg" ;;
140 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
142 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
144 datadir
="$ac_optarg" ;;
146 -disable-* |
--disable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* |
--enable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
170 |
--exec |
--exe |
--ex)
171 ac_prev
=exec_prefix
;;
172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
174 |
--exec=* |
--exe=* |
--ex=*)
175 exec_prefix
="$ac_optarg" ;;
177 -gas |
--gas |
--ga |
--g)
178 # Obsolete; use --with-gas.
181 -help |
--help |
--hel |
--he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host |
--host |
--hos |
--ho)
238 -host=* |
--host=* |
--hos=* |
--ho=*)
241 -includedir |
--includedir |
--includedi |
--included |
--include \
242 |
--includ |
--inclu |
--incl |
--inc)
243 ac_prev
=includedir
;;
244 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
245 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
246 includedir
="$ac_optarg" ;;
248 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
250 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
251 infodir
="$ac_optarg" ;;
253 -libdir |
--libdir |
--libdi |
--libd)
255 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
256 libdir
="$ac_optarg" ;;
258 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
259 |
--libexe |
--libex |
--libe)
260 ac_prev
=libexecdir
;;
261 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
262 |
--libexe=* |
--libex=* |
--libe=*)
263 libexecdir
="$ac_optarg" ;;
265 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
266 |
--localstate |
--localstat |
--localsta |
--localst \
267 |
--locals |
--local |
--loca |
--loc |
--lo)
268 ac_prev
=localstatedir
;;
269 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
270 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
271 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
272 localstatedir
="$ac_optarg" ;;
274 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
276 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
277 mandir
="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
287 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
288 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
291 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
292 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
293 |
--oldin |
--oldi |
--old |
--ol |
--o)
294 ac_prev
=oldincludedir
;;
295 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
296 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
297 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
298 oldincludedir
="$ac_optarg" ;;
300 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
302 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
303 prefix
="$ac_optarg" ;;
305 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
306 |
--program-pre |
--program-pr |
--program-p)
307 ac_prev
=program_prefix
;;
308 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
309 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
310 program_prefix
="$ac_optarg" ;;
312 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
313 |
--program-suf |
--program-su |
--program-s)
314 ac_prev
=program_suffix
;;
315 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
316 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
317 program_suffix
="$ac_optarg" ;;
319 -program-transform-name |
--program-transform-name \
320 |
--program-transform-nam |
--program-transform-na \
321 |
--program-transform-n |
--program-transform- \
322 |
--program-transform |
--program-transfor \
323 |
--program-transfo |
--program-transf \
324 |
--program-trans |
--program-tran \
325 |
--progr-tra |
--program-tr |
--program-t)
326 ac_prev
=program_transform_name
;;
327 -program-transform-name=* |
--program-transform-name=* \
328 |
--program-transform-nam=* |
--program-transform-na=* \
329 |
--program-transform-n=* |
--program-transform-=* \
330 |
--program-transform=* |
--program-transfor=* \
331 |
--program-transfo=* |
--program-transf=* \
332 |
--program-trans=* |
--program-tran=* \
333 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
334 program_transform_name
="$ac_optarg" ;;
336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
337 |
-silent |
--silent |
--silen |
--sile |
--sil)
340 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
342 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
344 sbindir
="$ac_optarg" ;;
346 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
347 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
348 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
350 ac_prev
=sharedstatedir
;;
351 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
352 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
353 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
355 sharedstatedir
="$ac_optarg" ;;
357 -site |
--site |
--sit)
359 -site=* |
--site=* |
--sit=*)
362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
365 srcdir
="$ac_optarg" ;;
367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
369 ac_prev
=sysconfdir
;;
370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
372 sysconfdir
="$ac_optarg" ;;
374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
377 target
="$ac_optarg" ;;
379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
382 -version |
--version |
--versio |
--versi |
--vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* |
--without-*)
400 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
413 |
--x-incl |
--x-inc |
--x-in |
--x-i)
414 ac_prev
=x_includes
;;
415 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
416 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
417 x_includes
="$ac_optarg" ;;
419 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
420 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
421 ac_prev
=x_libraries
;;
422 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
423 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
424 x_libraries
="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE
; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
475 |
--no-cr |
--no-c) ;;
476 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
477 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
478 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest
* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file
=pcap.c
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted
=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted
=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE
; then
529 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file
in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
545 echo "creating cache $cache_file"
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp
='$CPP $CPPFLAGS'
552 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling
=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
567 ac_n
= ac_c
='\c' ac_t
=
573 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
574 if test -f $ac_dir/install-sh
; then
576 ac_install_sh
="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh
; then
580 ac_install_sh
="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
587 ac_config_guess
=$ac_aux_dir/config.guess
588 ac_config_sub
=$ac_aux_dir/config.sub
589 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
592 # Do some error checking and defaulting for the host and target type.
594 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
597 # 1. You are not allowed to specify --host, --target, and nonopt at the
599 # 2. Host defaults to nonopt.
600 # 3. If nonopt is not specified, then host defaults to the current host,
601 # as determined by config.guess.
602 # 4. Target and build default to nonopt.
603 # 5. If nonopt is not specified, then target and build default to host.
605 # The aliases save the names the user supplied, while $host etc.
606 # will get canonicalized.
607 case $host---$target---$nonopt in
608 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
609 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
613 # Make sure we can run config.sub.
614 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 echo $ac_n "checking host system type""... $ac_c" 1>&6
619 echo "configure:620: checking host system type" >&5
622 case "$host_alias" in
626 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
627 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 *) host_alias
=$nonopt ;;
633 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
634 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$host" 1>&6
639 echo $ac_n "checking target system type""... $ac_c" 1>&6
640 echo "configure:641: checking target system type" >&5
643 case "$target_alias" in
646 NONE
) target_alias
=$host_alias ;;
647 *) target_alias
=$nonopt ;;
651 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
652 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$target" 1>&6
657 echo $ac_n "checking build system type""... $ac_c" 1>&6
658 echo "configure:659: checking build system type" >&5
661 case "$build_alias" in
664 NONE
) build_alias
=$host_alias ;;
665 *) build_alias
=$nonopt ;;
669 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
670 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$build" 1>&6
675 test "$host_alias" != "$target_alias" &&
676 test "$program_prefix$program_suffix$program_transform_name" = \
678 program_prefix
=${target_alias}-
685 # Check whether --with-gcc or --without-gcc was given.
686 if test "${with_gcc+set}" = set; then
693 if test "${srcdir}" != "." ; then
694 V_INCLS
="-I\$(srcdir)"
696 if test "${CFLAGS+set}" = set; then
699 if test -z "$CC" ; then
703 # Extract the first word of "shlicc2", so it can be a program name with args.
704 set dummy shlicc2
; ac_word
=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$SHLICC2"; then
711 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
715 for ac_dir
in $ac_dummy; do
716 test -z "$ac_dir" && ac_dir
=.
717 if test -f $ac_dir/$ac_word; then
718 ac_cv_prog_SHLICC2
="yes"
723 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
726 SHLICC2
="$ac_cv_prog_SHLICC2"
727 if test -n "$SHLICC2"; then
728 echo "$ac_t""$SHLICC2" 1>&6
730 echo "$ac_t""no" 1>&6
733 if test $SHLICC2 = yes ; then
740 if test -z "$CC" -a "$with_gcc" = no
; then
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc
; ac_word
=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC
="$CC" # Let the user override the test.
754 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
756 for ac_dir
in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir
=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc
; ac_word
=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC
="$CC" # Let the user override the test.
784 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
787 for ac_dir
in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir
=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy
$ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy
"$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl
; ac_word
=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC
="$CC" # Let the user override the test.
835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
837 for ac_dir
in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir
=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp
='$CPP $CPPFLAGS'
865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling
=$ac_cv_prog_cc_cross
869 cat > conftest.
$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure
:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
877 ac_cv_prog_cc_works
=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (.
/conftest
; exit) 2>/dev
/null
; then
880 ac_cv_prog_cc_cross
=no
882 ac_cv_prog_cc_cross
=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.
$ac_ext >&5
887 ac_cv_prog_cc_works
=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp
='$CPP $CPPFLAGS'
893 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling
=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no
; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling
=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c
<<EOF
916 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS
="${CFLAGS+set}"
932 ac_save_CFLAGS
="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS
="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 if test "$GCC" = yes ; then
967 if test "$SHLICC2" = yes ; then
971 echo $ac_n "checking gcc version""... $ac_c" 1>&6
972 echo "configure:973: checking gcc version" >&5
973 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
977 sed -e '/^gcc version /!d' \
978 -e 's/^gcc version //' \
979 -e 's/ .*//' -e 's/^[^0-9]*//' \
983 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
984 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
989 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
990 echo "configure:991: checking that $CC handles ansi prototypes" >&5
991 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 cat > conftest.
$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
997 #include <sys/types.h>
999 int frob(int, char *)
1002 if { (eval echo configure
:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1004 ac_cv_lbl_cc_ansi_prototypes
=yes
1006 echo "configure: failed program was:" >&5
1007 cat conftest.
$ac_ext >&5
1009 ac_cv_lbl_cc_ansi_prototypes
=no
1014 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1015 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1016 case "$target_os" in
1019 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1020 echo "configure:1021: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1021 savedcflags
="$CFLAGS"
1022 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1023 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 cat > conftest.
$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029 #include <sys/types.h>
1031 int frob(int, char *)
1034 if { (eval echo configure
:1035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1036 ac_cv_lbl_cc_hpux_cc_aa
=yes
1038 echo "configure: failed program was:" >&5
1039 cat conftest.
$ac_ext >&5
1041 ac_cv_lbl_cc_hpux_cc_aa
=no
1046 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1047 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1048 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1050 CFLAGS
="$savedcflags"
1051 V_CCOPT
="-Aa $V_CCOPT"
1052 cat >> confdefs.h
<<\EOF
1053 #define _HPUX_SOURCE 1
1059 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1063 V_INCLS
="$V_INCLS -I/usr/local/include"
1064 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1066 case "$target_os" in
1069 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1073 V_CCOPT
="$V_CCOPT -std1 -g3"
1077 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1078 echo "configure:1079: checking that Ultrix $CC hacks const in prototypes" >&5
1079 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1085 #include <sys/types.h>
1087 struct a { int b; };
1088 void c(const struct a *)
1091 if { (eval echo configure
:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1093 ac_cv_lbl_cc_const_proto
=yes
1095 echo "configure: failed program was:" >&5
1096 cat conftest.
$ac_ext >&5
1098 ac_cv_lbl_cc_const_proto
=no
1103 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1104 if test $ac_cv_lbl_cc_const_proto = no
; then
1105 cat >> confdefs.h
<<\EOF
1115 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
1116 echo "configure:1117: checking for u_int32_t using $CC" >&5
1117 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.
$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1124 # include "confdefs.h"
1125 # include <sys/types.h>
1127 # include <stdlib.h>
1128 # include <stddef.h>
1134 if { (eval echo configure
:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1136 ac_cv_lbl_have_u_int32_t
=yes
1138 echo "configure: failed program was:" >&5
1139 cat conftest.
$ac_ext >&5
1141 ac_cv_lbl_have_u_int32_t
=no
1146 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
1147 if test $ac_cv_lbl_have_u_int32_t = no
; then
1148 cat >> confdefs.h
<<\EOF
1149 #define u_int32_t u_int
1155 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1156 echo "configure:1157: checking for __attribute__" >&5
1157 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1161 cat > conftest.
$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1169 static void foo(void) __attribute__ ((noreturn));
1179 if { (eval echo configure
:1180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1181 ac_cv___attribute__
=yes
1183 echo "configure: failed program was:" >&5
1184 cat conftest.
$ac_ext >&5
1186 ac_cv___attribute__
=no
1191 if test "$ac_cv___attribute__" = "yes"; then
1192 cat >> confdefs.h
<<\EOF
1193 #define HAVE___ATTRIBUTE__ 1
1197 echo "$ac_t""$ac_cv___attribute__" 1>&6
1200 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1201 echo "configure:1202: checking how to run the C preprocessor" >&5
1202 # On Suns, sometimes $CPP names a directory.
1203 if test -n "$CPP" && test -d "$CPP"; then
1206 if test -z "$CPP"; then
1207 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 # This must be in double quotes, not single quotes, because CPP may get
1211 # substituted into the Makefile and "${CC-cc}" will confuse make.
1213 # On the NeXT, cc -E runs the code through the compiler's parser,
1214 # not just through cpp.
1215 cat > conftest.
$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1221 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 { (eval echo configure
:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1223 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1224 if test -z "$ac_err"; then
1228 echo "configure: failed program was:" >&5
1229 cat conftest.
$ac_ext >&5
1231 CPP
="${CC-cc} -E -traditional-cpp"
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure
:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1245 echo "configure: failed program was:" >&5
1246 cat conftest.
$ac_ext >&5
1248 CPP
="${CC-cc} -nologo -E"
1249 cat > conftest.
$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1255 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1256 { (eval echo configure
:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1257 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1258 if test -z "$ac_err"; then
1262 echo "configure: failed program was:" >&5
1263 cat conftest.
$ac_ext >&5
1272 ac_cv_prog_CPP
="$CPP"
1274 CPP
="$ac_cv_prog_CPP"
1276 ac_cv_prog_CPP
="$CPP"
1278 echo "$ac_t""$CPP" 1>&6
1280 for ac_hdr
in sys
/sockio.h ifaddrs.h
1282 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_hdr" >&5
1285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure
:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1296 if test -z "$ac_err"; then
1298 eval "ac_cv_header_$ac_safe=yes"
1301 echo "configure: failed program was:" >&5
1302 cat conftest.
$ac_ext >&5
1304 eval "ac_cv_header_$ac_safe=no"
1308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1309 echo "$ac_t""yes" 1>&6
1310 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1311 cat >> confdefs.h
<<EOF
1312 #define $ac_tr_hdr 1
1316 echo "$ac_t""no" 1>&6
1321 if test "$GCC" = yes ; then
1322 echo $ac_n "checking for ANSI ioctl definitions""... $ac_c" 1>&6
1323 echo "configure:1324: checking for ANSI ioctl definitions" >&5
1324 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_fixincludes'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 cat > conftest.
$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1331 * This generates a "duplicate case value" when fixincludes
1334 # include <sys/types.h>
1335 # include <sys/time.h>
1336 # include <sys/ioctl.h>
1337 # ifdef HAVE_SYS_IOCCOM_H
1338 # include <sys/ioccom.h>
1347 if { (eval echo configure
:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 ac_cv_lbl_gcc_fixincludes
=yes
1351 echo "configure: failed program was:" >&5
1352 cat conftest.
$ac_ext >&5
1354 ac_cv_lbl_gcc_fixincludes
=no
1359 echo "$ac_t""$ac_cv_lbl_gcc_fixincludes" 1>&6
1360 if test $ac_cv_lbl_gcc_fixincludes = no
; then
1361 # Don't cache failure
1362 unset ac_cv_lbl_gcc_fixincludes
1363 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; }
1367 for ac_func
in ether_hostton strerror freeifaddrs strlcpy
1369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_func" >&5
1371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 cat > conftest.
$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* System header to define __stub macros and hopefully few prototypes,
1378 which can conflict with char $ac_func(); below. */
1380 /* Override any gcc2 internal prototype to avoid an error. */
1381 /* We use char because int might match the return type of a gcc2
1382 builtin and then its argument prototype would still apply. */
1387 /* The GNU C library defines this for functions which it implements
1388 to always fail with ENOSYS. Some functions are actually named
1389 something starting with __ and the normal name is an alias. */
1390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1398 if { (eval echo configure
:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1400 eval "ac_cv_func_$ac_func=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.
$ac_ext >&5
1405 eval "ac_cv_func_$ac_func=no"
1410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1412 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1413 cat >> confdefs.h
<<EOF
1414 #define $ac_tr_func 1
1418 echo "$ac_t""no" 1>&6
1423 echo $ac_n "checking if --disable-protochain option is specified""... $ac_c" 1>&6
1424 echo "configure:1425: checking if --disable-protochain option is specified" >&5
1425 # Check whether --enable-protochain or --disable-protochain was given.
1426 if test "${enable_protochain+set}" = set; then
1427 enableval
="$enable_protochain"
1431 case "x$enable_protochain" in
1432 xyes
) enable_protochain
=enabled
;;
1433 xno
) enable_protochain
=disabled
;;
1434 x
) enable_protochain
=enabled
;;
1437 if test "$enable_protochain" = "disabled"; then
1438 cat >> confdefs.h
<<\EOF
1439 #define NO_PROTOCHAIN 1
1443 echo "$ac_t""${enable_protochain}" 1>&6
1445 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
1446 { echo "configure: error: pcap type not determined when cross-compiling; use --with-pcap=..." 1>&2; exit 1; }
1448 # Check whether --with-pcap or --without-pcap was given.
1449 if test "${with_pcap+set}" = set; then
1450 withval
="$with_pcap"
1454 echo $ac_n "checking packet capture type""... $ac_c" 1>&6
1455 echo "configure:1456: checking packet capture type" >&5
1456 if test ! -z "$with_pcap" ; then
1458 elif test -r /dev
/bpf0
; then
1460 elif test -r /usr
/include
/net
/pfilt.h
; then
1462 elif test -r /dev
/enet
; then
1464 elif test -r /dev
/nit
; then
1466 elif test -r /usr
/include
/sys
/net
/nit.h
; then
1468 elif test -r /usr
/include
/net
/raw.h
; then
1470 elif test -r /usr
/include
/sys
/dlpi.h
; then
1472 elif test -r /usr
/include
/linux
/socket.h
; then
1474 elif test -c /dev
/bpf0
; then # check again in case not readable
1476 elif test -c /dev
/enet
; then # check again in case not readable
1478 elif test -c /dev
/nit
; then # check again in case not readable
1483 echo "$ac_t""$V_PCAP" 1>&6
1485 echo $ac_n "checking if --enable-ipv6 option is specified""... $ac_c" 1>&6
1486 echo "configure:1487: checking if --enable-ipv6 option is specified" >&5
1487 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1488 if test "${enable_ipv6+set}" = set; then
1489 enableval
="$enable_ipv6"
1493 if test "$enable_ipv6" = "yes"; then
1494 cat >> confdefs.h
<<\EOF
1499 echo "$ac_t""${enable_ipv6-no}" 1>&6
1504 for ac_hdr
in sys
/bufmod.h sys
/dlpi_ext.h
1506 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_hdr" >&5
1509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1517 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1518 { (eval echo configure
:1519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1519 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1520 if test -z "$ac_err"; then
1522 eval "ac_cv_header_$ac_safe=yes"
1525 echo "configure: failed program was:" >&5
1526 cat conftest.
$ac_ext >&5
1528 eval "ac_cv_header_$ac_safe=no"
1532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1534 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1535 cat >> confdefs.h
<<EOF
1536 #define $ac_tr_hdr 1
1540 echo "$ac_t""no" 1>&6
1544 echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
1545 echo "configure:1546: checking for /dev/dlpi device" >&5
1546 if test -c /dev
/dlpi
; then
1547 echo "$ac_t""yes" 1>&6
1548 cat >> confdefs.h
<<\EOF
1549 #define HAVE_DEV_DLPI 1
1553 echo "$ac_t""no" 1>&6
1555 echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
1556 echo "configure:1557: checking for $dir directory" >&5
1557 if test -d $dir ; then
1558 echo "$ac_t""yes" 1>&6
1559 cat >> confdefs.h
<<EOF
1560 #define PCAP_DEV_PREFIX "$dir"
1564 echo "$ac_t""no" 1>&6
1570 for ac_hdr
in netpacket
/packet.h
1572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1574 echo "configure:1575: checking for $ac_hdr" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584 { (eval echo configure
:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1586 if test -z "$ac_err"; then
1588 eval "ac_cv_header_$ac_safe=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 eval "ac_cv_header_$ac_safe=no"
1598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1601 cat >> confdefs.h
<<EOF
1602 #define $ac_tr_hdr 1
1606 echo "$ac_t""no" 1>&6
1610 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1611 echo "configure:1612: checking Linux kernel version" >&5
1612 if test "$cross_compiling" = yes; then
1613 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 ac_cv_linux_vers
=unknown
1620 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 ac_cv_linux_vers
=`uname -r 2>&1 | \
1624 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1628 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1629 if test $ac_cv_linux_vers = unknown
; then
1630 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1632 if test $ac_cv_linux_vers -lt 2 ; then
1633 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1638 echo "configure: warning: cannot determine packet capture interface" 1>&2
1639 echo "configure: warning: (see the INSTALL doc for more info)" 1>&2
1644 # Check whether --with-flex or --without-flex was given.
1645 if test "${with_flex+set}" = set; then
1646 withval
="$with_flex"
1650 # Check whether --with-bison or --without-bison was given.
1651 if test "${with_bison+set}" = set; then
1652 withval
="$with_bison"
1656 if test "$with_flex" = no
; then
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy
$ac_prog; ac_word
=$2
1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_word" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_V_LEX'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 if test -n "$V_LEX"; then
1669 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
1671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1673 for ac_dir
in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir
=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_prog_V_LEX
="$ac_prog"
1683 V_LEX
="$ac_cv_prog_V_LEX"
1684 if test -n "$V_LEX"; then
1685 echo "$ac_t""$V_LEX" 1>&6
1687 echo "$ac_t""no" 1>&6
1690 test -n "$V_LEX" && break
1692 test -n "$V_LEX" || V_LEX
="lex"
1695 if test "$V_LEX" = flex
; then
1696 # The -V flag was added in 2.4
1697 echo $ac_n "checking for flex 2.4 or higher""... $ac_c" 1>&6
1698 echo "configure:1699: checking for flex 2.4 or higher" >&5
1699 if eval "test \"`echo '$''{'ac_cv_lbl_flex_v24'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 if flex
-V >/dev
/null
2>&1; then
1703 ac_cv_lbl_flex_v24
=yes
1705 ac_cv_lbl_flex_v24
=no
1709 echo "$ac_t""$ac_cv_lbl_flex_v24" 1>&6
1710 if test $ac_cv_lbl_flex_v24 = no
; then
1711 s
="2.4 or higher required"
1712 echo "configure: warning: ignoring obsolete flex executable ($s)" 1>&2
1716 if test "$with_bison" = no
; then
1719 for ac_prog
in bison
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722 set dummy
$ac_prog; ac_word
=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_V_YACC'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test -n "$V_YACC"; then
1729 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
1731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1733 for ac_dir
in $ac_dummy; do
1734 test -z "$ac_dir" && ac_dir
=.
1735 if test -f $ac_dir/$ac_word; then
1736 ac_cv_prog_V_YACC
="$ac_prog"
1743 V_YACC
="$ac_cv_prog_V_YACC"
1744 if test -n "$V_YACC"; then
1745 echo "$ac_t""$V_YACC" 1>&6
1747 echo "$ac_t""no" 1>&6
1750 test -n "$V_YACC" && break
1752 test -n "$V_YACC" || V_YACC
="yacc"
1755 if test "$V_YACC" = bison
; then
1758 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
1759 echo "configure: warning: don't have both flex and bison; reverting to lex/yacc" 1>&2
1763 if test "$V_LEX" = flex
-a -n "pcap_" ; then
1764 V_LEX
="$V_LEX -Ppcap_"
1765 V_YACC
="$V_YACC -p pcap_"
1768 case "$target_os" in
1771 cat >> confdefs.h
<<\EOF
1778 cat >> confdefs.h
<<\EOF
1779 #define HAVE_HPUX9 1
1791 cat >> confdefs.h
<<\EOF
1792 #define HAVE_HPUX10_20 1
1798 echo $ac_n "checking if SINIX compiler defines sinix""... $ac_c" 1>&6
1799 echo "configure:1800: checking if SINIX compiler defines sinix" >&5
1800 if eval "test \"`echo '$''{'ac_cv_cc_sinix_defined'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1811 if { (eval echo configure
:1812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1813 ac_cv_cc_sinix_defined
=yes
1815 echo "configure: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1818 ac_cv_cc_sinix_defined
=no
1823 echo "$ac_t""$ac_cv_cc_sinix_defined" 1>&6
1824 if test $ac_cv_cc_sinix_defined = no
; then
1825 cat >> confdefs.h
<<\EOF
1833 cat >> confdefs.h
<<\EOF
1834 #define HAVE_SOLARIS 1
1840 V_INCLS
="$V_INCLS -Ilinux-include"
1844 # Extract the first word of "ranlib", so it can be a program name with args.
1845 set dummy ranlib
; ac_word
=$2
1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_word" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test -n "$RANLIB"; then
1852 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1856 for ac_dir
in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir
=.
1858 if test -f $ac_dir/$ac_word; then
1859 ac_cv_prog_RANLIB
="ranlib"
1864 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1867 RANLIB
="$ac_cv_prog_RANLIB"
1868 if test -n "$RANLIB"; then
1869 echo "$ac_t""$RANLIB" 1>&6
1871 echo "$ac_t""no" 1>&6
1876 if test "${LBL_CFLAGS+set}" = set; then
1877 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
1879 if test -f .devel
; then
1880 if test "$GCC" = yes ; then
1881 if test "${LBL_CFLAGS+set}" != set; then
1882 if test "$ac_cv_prog_cc_g" = yes ; then
1883 V_CCOPT
="-g $V_CCOPT"
1885 V_CCOPT
="$V_CCOPT -Wall"
1886 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1887 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
1891 case "$target_os" in
1894 V_CCOPT
="$V_CCOPT -n32"
1901 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
1903 if test -f $name ; then
1904 ln -s $name os-proto.h
1905 cat >> confdefs.h
<<\EOF
1906 #define HAVE_OS_PROTO_H 1
1910 echo "configure: warning: can't find $name" 1>&2
1914 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
1915 echo "configure:1916: checking if sockaddr struct has sa_len member" >&5
1916 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 # include <sys/types.h>
1924 # include <sys/socket.h>
1926 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
1929 if { (eval echo configure
:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1931 ac_cv_lbl_sockaddr_has_sa_len
=yes
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1936 ac_cv_lbl_sockaddr_has_sa_len
=no
1941 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
1942 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
1943 cat >> confdefs.h
<<\EOF
1944 #define HAVE_SOCKADDR_SA_LEN 1
1949 echo $ac_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member""... $ac_c" 1>&6
1950 echo "configure:1951: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
1951 if eval "test \"`echo '$''{'ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1958 # include <sys/types.h>
1959 # include <sys/dlpi.h>
1960 # include <sys/dlpi_ext.h>
1962 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
1965 if { (eval echo configure
:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1967 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
1977 echo "$ac_t""$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" 1>&6
1978 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
1979 cat >> confdefs.h
<<\EOF
1980 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
1985 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
1986 echo "configure:1987: checking if unaligned accesses fail" >&5
1987 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 case "$target_cpu" in
1992 # XXX: should also check that they don't do weird things (like on arm)
1993 alpha|arm
*|hp
*|mips|sparc
)
1994 ac_cv_lbl_unaligned_fail
=yes
1998 cat >conftest.c
<<EOF
1999 # include <sys/types.h>
2000 # include <sys/wait.h>
2002 unsigned char a[5] = { 1, 2, 3, 4, 5 };
2007 /* avoid "core dumped" message */
2013 pid = waitpid(pid, &status, 0);
2016 exit(!WIFEXITED(status));
2019 i = *(unsigned int *)&a[1];
2024 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
2025 conftest.c
$LIBS >/dev
/null
2>&1
2026 if test ! -x conftest
; then
2027 ac_cv_lbl_unaligned_fail
=yes
2029 .
/conftest
>conftest.out
2030 if test ! -s conftest.out
; then
2031 ac_cv_lbl_unaligned_fail
=yes
2033 ac_cv_lbl_unaligned_fail
=no
2036 rm -f conftest
* core core.conftest
2041 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
2042 if test $ac_cv_lbl_unaligned_fail = yes ; then
2043 cat >> confdefs.h
<<\EOF
2049 if test -r ${srcdir}/lbl
/gnuc.h
; then
2051 ln -s ${srcdir}/lbl
/gnuc.h gnuc.h
2055 ln -s ${srcdir}/bpf
/net net
2064 # Find a good install program. We prefer a C program (faster),
2065 # so one script is as good as another. But avoid the broken or
2066 # incompatible versions:
2067 # SysV /etc/install, /usr/sbin/install
2068 # SunOS /usr/etc/install
2069 # IRIX /sbin/install
2071 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2074 # ./install, which can be erroneously created by make from ./install.sh.
2075 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2076 echo "configure:2077: checking for a BSD compatible install" >&5
2077 if test -z "$INSTALL"; then
2078 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2082 for ac_dir
in $PATH; do
2083 # Account for people who put trailing slashes in PATH elements.
2085 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2087 # OSF1 and SCO ODT 3.0 have their own names for install.
2088 # Don't use installbsd from OSF since it installs stuff as root
2090 for ac_prog
in ginstall scoinst
install; do
2091 if test -f $ac_dir/$ac_prog; then
2092 if test $ac_prog = install &&
2093 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2094 # AIX install. It has an incompatible calling convention.
2097 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2108 if test "${ac_cv_path_install+set}" = set; then
2109 INSTALL
="$ac_cv_path_install"
2111 # As a last resort, use the slow shell script. We don't cache a
2112 # path for INSTALL within a source directory, because that will
2113 # break other packages using the cache if that directory is
2114 # removed, or if the path is relative.
2115 INSTALL
="$ac_install_sh"
2118 echo "$ac_t""$INSTALL" 1>&6
2120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2121 # It thinks the first close brace ends the variable substitution.
2122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2126 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2130 cat > confcache
<<\EOF
2131 # This file is a shell script that caches the results of configure
2132 # tests run on this system so they can be shared between configure
2133 # scripts and configure runs. It is not useful on other systems.
2134 # If it contains results you don't want to keep, you may remove or edit it.
2136 # By default, configure uses ./config.cache as the cache file,
2137 # creating it if it does not exist already. You can give configure
2138 # the --cache-file=FILE option to use a different cache file; that is
2139 # what configure does when it calls configure scripts in
2140 # subdirectories, so they share the cache.
2141 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2142 # config.status only pays attention to the cache file if you give it the
2143 # --recheck option to rerun configure.
2146 # The following way of writing the cache mishandles newlines in values,
2147 # but we know of no workaround that is simple, portable, and efficient.
2148 # So, don't put newlines in cache variables' values.
2149 # Ultrix sh set writes to stderr and can't be redirected directly,
2150 # and sets the high bit in the cache file unless we assign to the vars.
2152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2154 # `set' does not quote correctly, so add quotes (double-quote substitution
2155 # turns \\\\ into \\, and sed turns \\ into \).
2157 -e "s/'/'\\\\''/g" \
2158 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2161 # `set' quotes correctly as required by POSIX, so do not add quotes.
2162 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2165 if cmp -s $cache_file confcache
; then
2168 if test -w $cache_file; then
2169 echo "updating cache $cache_file"
2170 cat confcache
> $cache_file
2172 echo "not updating unwritable cache $cache_file"
2177 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2179 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2180 # Let make expand exec_prefix.
2181 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2183 # Any assignment to VPATH causes Sun make to only execute
2184 # the first set of double-colon rules, so remove it if not needed.
2185 # If there is a colon in the path, we need to keep it.
2186 if test "x$srcdir" = x.
; then
2187 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2190 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2192 # Transform confdefs.h into DEFS.
2193 # Protect against shell expansion while executing Makefile rules.
2194 # Protect against Makefile macro expansion.
2195 cat > conftest.defs
<<\EOF
2196 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2197 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2202 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2206 # Without the "./", some shells look in PATH for config.status.
2207 : ${CONFIG_STATUS=./config.status}
2209 echo creating $CONFIG_STATUS
2210 rm -f $CONFIG_STATUS
2211 cat > $CONFIG_STATUS <<EOF
2213 # Generated automatically by configure.
2214 # Run this file to recreate the current configuration.
2215 # This directory was configured as follows,
2216 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2218 # $0 $ac_configure_args
2220 # Compiler output produced by configure, useful for debugging
2221 # configure, is in ./config.log if it exists.
2223 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2226 case "\$ac_option" in
2227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2228 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2229 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2230 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2231 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2233 -help | --help | --hel | --he | --h)
2234 echo "\$ac_cs_usage"; exit 0 ;;
2235 *) echo "\$ac_cs_usage"; exit 1 ;;
2239 ac_given_srcdir=$srcdir
2240 ac_given_INSTALL="$INSTALL"
2242 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2244 cat >> $CONFIG_STATUS <<EOF
2246 # Protect against being on the right side of a sed subst in config.status.
2247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2252 s%@CFLAGS@%$CFLAGS%g
2253 s%@CPPFLAGS@%$CPPFLAGS%g
2254 s%@CXXFLAGS@%$CXXFLAGS%g
2255 s%@FFLAGS@%$FFLAGS%g
2257 s%@LDFLAGS@%$LDFLAGS%g
2259 s%@exec_prefix@%$exec_prefix%g
2260 s%@prefix@%$prefix%g
2261 s%@program_transform_name@%$program_transform_name%g
2262 s%@bindir@%$bindir%g
2263 s%@sbindir@%$sbindir%g
2264 s%@libexecdir@%$libexecdir%g
2265 s%@datadir@%$datadir%g
2266 s%@sysconfdir@%$sysconfdir%g
2267 s%@sharedstatedir@%$sharedstatedir%g
2268 s%@localstatedir@%$localstatedir%g
2269 s%@libdir@%$libdir%g
2270 s%@includedir@%$includedir%g
2271 s%@oldincludedir@%$oldincludedir%g
2272 s%@infodir@%$infodir%g
2273 s%@mandir@%$mandir%g
2275 s%@host_alias@%$host_alias%g
2276 s%@host_cpu@%$host_cpu%g
2277 s%@host_vendor@%$host_vendor%g
2278 s%@host_os@%$host_os%g
2279 s%@target@%$target%g
2280 s%@target_alias@%$target_alias%g
2281 s%@target_cpu@%$target_cpu%g
2282 s%@target_vendor@%$target_vendor%g
2283 s%@target_os@%$target_os%g
2285 s%@build_alias@%$build_alias%g
2286 s%@build_cpu@%$build_cpu%g
2287 s%@build_vendor@%$build_vendor%g
2288 s%@build_os@%$build_os%g
2289 s%@SHLICC2@%$SHLICC2%g
2293 s%@V_YACC@%$V_YACC%g
2294 s%@RANLIB@%$RANLIB%g
2295 s%@V_CCOPT@%$V_CCOPT%g
2296 s%@V_INCLS@%$V_INCLS%g
2297 s%@V_PCAP@%$V_PCAP%g
2298 s%@V_RANLIB@%$V_RANLIB%g
2299 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2300 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2301 s%@INSTALL_DATA@%$INSTALL_DATA%g
2306 cat >> $CONFIG_STATUS <<\EOF
2308 # Split the substitutions into bite-sized pieces for seds with
2309 # small command number limits, like on Digital OSF/1 and HP-UX.
2310 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2311 ac_file=1 # Number of current file.
2312 ac_beg=1 # First line for current file.
2313 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2316 while $ac_more_lines; do
2317 if test $ac_beg -gt 1; then
2318 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2320 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2322 if test ! -s conftest.s$ac_file; then
2324 rm -f conftest.s$ac_file
2326 if test -z "$ac_sed_cmds"; then
2327 ac_sed_cmds="sed -f conftest.s$ac_file"
2329 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2331 ac_file=`expr $ac_file + 1`
2333 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2336 if test -z "$ac_sed_cmds"; then
2341 cat >> $CONFIG_STATUS <<EOF
2343 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2345 cat >> $CONFIG_STATUS <<\EOF
2346 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2349 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2350 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2351 *) ac_file_in="${ac_file}.in" ;;
2354 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2356 # Remove last slash and all that follows it. Not all systems have dirname.
2357 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2359 # The file is in a subdirectory.
2360 test ! -d "$ac_dir" && mkdir "$ac_dir"
2361 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2362 # A "../" for each directory in $ac_dir_suffix.
2363 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2365 ac_dir_suffix= ac_dots=
2368 case "$ac_given_srcdir" in
2370 if test -z "$ac_dots"; then top_srcdir=.
2371 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2372 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2374 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2375 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2378 case "$ac_given_INSTALL" in
2379 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2380 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2383 echo creating "$ac_file"
2385 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2387 *Makefile*) ac_comsub="1i\\
2388 # $configure_input" ;;
2392 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2394 s%@configure_input@%$configure_input%g
2395 s%@srcdir@%$srcdir%g
2396 s%@top_srcdir@%$top_srcdir%g
2397 s%@INSTALL@%$INSTALL%g
2398 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2403 cat >> $CONFIG_STATUS <<EOF
2406 cat >> $CONFIG_STATUS <<\EOF
2410 chmod +x $CONFIG_STATUS
2411 rm -fr confdefs* $ac_clean_files
2412 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2415 if test -f .devel ; then