3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --without-gcc don't use gcc"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 # Maximum number of lines to put in a shell here document.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
82 -build | --build | --buil | --bui | --bu)
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 datadir="$ac_optarg" ;;
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
190 -host | --host | --hos | --ho)
192 -host=* | --host=* | --hos=* | --ho=*)
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
207 -libdir | --libdir | --libdi | --libd)
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 sbindir="$ac_optarg" ;;
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 sharedstatedir="$ac_optarg" ;;
311 -site | --site | --sit)
313 -site=* | --site=* | --sit=*)
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
328 -target | --target | --targe | --targ | --tar | --ta | --t)
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.12"
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
363 # Obsolete; use --with-x.
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=tcpdump.c
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted=yes
460 # Try the directory containing this script, then its parent.
462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 if test ! -r $srcdir/$ac_unique_file; then
469 ac_srcdir_defaulted=no
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE; then
483 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 for ac_site_file in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
499 echo "creating cache $cache_file"
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='\c' ac_t=
525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526 if test -f $ac_dir/install-sh; then
528 ac_install_sh="$ac_aux_dir/install-sh -c"
530 elif test -f $ac_dir/install.sh; then
532 ac_install_sh="$ac_aux_dir/install.sh -c"
536 if test -z "$ac_aux_dir"; then
537 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
539 ac_config_guess=$ac_aux_dir/config.guess
540 ac_config_sub=$ac_aux_dir/config.sub
541 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544 # Do some error checking and defaulting for the host and target type.
546 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
549 # 1. You are not allowed to specify --host, --target, and nonopt at the
551 # 2. Host defaults to nonopt.
552 # 3. If nonopt is not specified, then host defaults to the current host,
553 # as determined by config.guess.
554 # 4. Target and build default to nonopt.
555 # 5. If nonopt is not specified, then target and build default to host.
557 # The aliases save the names the user supplied, while $host etc.
558 # will get canonicalized.
559 case $host---$target---$nonopt in
560 NONE---*---* | *---NONE---* | *---*---NONE) ;;
561 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
565 # Make sure we can run config.sub.
566 if $ac_config_sub sun4 >/dev/null 2>&1; then :
567 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
570 echo $ac_n "checking host system type""... $ac_c" 1>&6
571 echo "configure:572: checking host system type" >&5
574 case "$host_alias" in
578 if host_alias=`$ac_config_guess`; then :
579 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
581 *) host_alias=$nonopt ;;
585 host=`$ac_config_sub $host_alias`
586 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
587 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
588 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
589 echo "$ac_t""$host" 1>&6
591 echo $ac_n "checking target system type""... $ac_c" 1>&6
592 echo "configure:593: checking target system type" >&5
595 case "$target_alias" in
598 NONE) target_alias=$host_alias ;;
599 *) target_alias=$nonopt ;;
603 target=`$ac_config_sub $target_alias`
604 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$target" 1>&6
609 echo $ac_n "checking build system type""... $ac_c" 1>&6
610 echo "configure:611: checking build system type" >&5
613 case "$build_alias" in
616 NONE) build_alias=$host_alias ;;
617 *) build_alias=$nonopt ;;
621 build=`$ac_config_sub $build_alias`
622 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$build" 1>&6
627 test "$host_alias" != "$target_alias" &&
628 test "$program_prefix$program_suffix$program_transform_name" = \
630 program_prefix=${target_alias}-
635 if test -z "$PWD" ; then
643 # Check whether --with-gcc or --without-gcc was given.
644 if test "${with_gcc+set}" = set; then
651 if test "${srcdir}" != "." ; then
652 V_INCLS="-I\$\(srcdir\)"
654 if test "${CFLAGS+set}" = set; then
657 if test -z "$CC" ; then
661 # Extract the first word of "shlicc2", so it can be a program name with args.
662 set dummy shlicc2; ac_word=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 echo "configure:665: checking for $ac_word" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$SHLICC2"; then
669 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
672 for ac_dir in $PATH; do
673 test -z "$ac_dir" && ac_dir=.
674 if test -f $ac_dir/$ac_word; then
675 ac_cv_prog_SHLICC2="yes"
680 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
683 SHLICC2="$ac_cv_prog_SHLICC2"
684 if test -n "$SHLICC2"; then
685 echo "$ac_t""$SHLICC2" 1>&6
687 echo "$ac_t""no" 1>&6
690 if test $SHLICC2 = yes ; then
697 if test -z "$CC" -a "$with_gcc" = no ; then
701 # Extract the first word of "gcc", so it can be a program name with args.
702 set dummy gcc; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 echo "configure:705: checking for $ac_word" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 if test -n "$CC"; then
709 ac_cv_prog_CC="$CC" # Let the user override the test.
711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
712 for ac_dir in $PATH; do
713 test -z "$ac_dir" && ac_dir=.
714 if test -f $ac_dir/$ac_word; then
723 if test -n "$CC"; then
724 echo "$ac_t""$CC" 1>&6
726 echo "$ac_t""no" 1>&6
729 if test -z "$CC"; then
730 # Extract the first word of "cc", so it can be a program name with args.
731 set dummy cc; ac_word=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 if test -n "$CC"; then
738 ac_cv_prog_CC="$CC" # Let the user override the test.
740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742 for ac_dir in $PATH; do
743 test -z "$ac_dir" && ac_dir=.
744 if test -f $ac_dir/$ac_word; then
745 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
754 if test $ac_prog_rejected = yes; then
755 # We found a bogon in the path, so make sure we never use it.
756 set dummy $ac_cv_prog_CC
758 if test $# -gt 0; then
759 # We chose a different compiler from the bogus one.
760 # However, it has the same basename, so the bogon will be chosen
761 # first if we set CC to just the basename; use the full file name.
763 set dummy "$ac_dir/$ac_word" "$@"
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
774 echo "$ac_t""no" 1>&6
777 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
781 echo "configure:782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
785 ac_cpp='$CPP $CPPFLAGS'
786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
787 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
788 cross_compiling=$ac_cv_prog_cc_cross
790 cat > conftest.$ac_ext <<EOF
791 #line 792 "configure"
792 #include "confdefs.h"
795 if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
796 ac_cv_prog_cc_works=yes
797 # If we can't run a trivial program, we are probably using a cross compiler.
798 if (./conftest; exit) 2>/dev/null; then
799 ac_cv_prog_cc_cross=no
801 ac_cv_prog_cc_cross=yes
804 echo "configure: failed program was:" >&5
805 cat conftest.$ac_ext >&5
806 ac_cv_prog_cc_works=no
810 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
811 if test $ac_cv_prog_cc_works = no; then
812 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
814 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
815 echo "configure:816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
816 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
817 cross_compiling=$ac_cv_prog_cc_cross
819 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
820 echo "configure:821: checking whether we are using GNU C" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 cat > conftest.c <<EOF
829 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
836 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
838 if test $ac_cv_prog_gcc = yes; then
840 ac_test_CFLAGS="${CFLAGS+set}"
841 ac_save_CFLAGS="$CFLAGS"
843 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
844 echo "configure:845: checking whether ${CC-cc} accepts -g" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 echo 'void f(){}' > conftest.c
849 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
858 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
859 if test "$ac_test_CFLAGS" = set; then
860 CFLAGS="$ac_save_CFLAGS"
861 elif test $ac_cv_prog_cc_g = yes; then
868 test "${CFLAGS+set}" = set || CFLAGS="-g"
871 if test "$GCC" = yes ; then
872 if test "$SHLICC2" = yes ; then
876 echo $ac_n "checking gcc version""... $ac_c" 1>&6
877 echo "configure:878: checking gcc version" >&5
878 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
882 sed -e '/^gcc version /!d' \
883 -e 's/^gcc version //' \
884 -e 's/ .*//' -e 's/^[^0-9]*//' \
888 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
889 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
894 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
895 echo "configure:896: checking that $CC handles ansi prototypes" >&5
896 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 cat > conftest.$ac_ext <<EOF
900 #line 901 "configure"
901 #include "confdefs.h"
902 #include <sys/types.h>
904 int frob(int, char *)
907 if { (eval echo configure:908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
909 ac_cv_lbl_cc_ansi_prototypes=yes
911 echo "configure: failed program was:" >&5
912 cat conftest.$ac_ext >&5
914 ac_cv_lbl_cc_ansi_prototypes=no
919 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
920 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
924 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
925 echo "configure:926: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
926 savedcflags="$CFLAGS"
927 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
928 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 cat > conftest.$ac_ext <<EOF
932 #line 933 "configure"
933 #include "confdefs.h"
934 #include <sys/types.h>
936 int frob(int, char *)
939 if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
941 ac_cv_lbl_cc_hpux_cc_aa=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
946 ac_cv_lbl_cc_hpux_cc_aa=no
951 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
952 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
953 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
955 CFLAGS="$savedcflags"
956 V_CCOPT="-Aa $V_CCOPT"
957 cat >> confdefs.h <<\EOF
958 #define _HPUX_SOURCE 1
964 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
968 V_INCLS="$V_INCLS -I/usr/local/include"
969 LDFLAGS="$LDFLAGS -L/usr/local/lib"
974 V_CCOPT="$V_CCOPT -xansi -signed -g3"
978 V_CCOPT="$V_CCOPT -std1 -g3"
982 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
983 echo "configure:984: checking that Ultrix $CC hacks const in prototypes" >&5
984 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 cat > conftest.$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
990 #include <sys/types.h>
993 void c(const struct a *)
996 if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
998 ac_cv_lbl_cc_const_proto=yes
1000 echo "configure: failed program was:" >&5
1001 cat conftest.$ac_ext >&5
1003 ac_cv_lbl_cc_const_proto=no
1008 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1009 if test $ac_cv_lbl_cc_const_proto = no ; then
1010 cat >> confdefs.h <<\EOF
1020 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1021 echo "configure:1022: checking how to run the C preprocessor" >&5
1022 # On Suns, sometimes $CPP names a directory.
1023 if test -n "$CPP" && test -d "$CPP"; then
1026 if test -z "$CPP"; then
1027 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 # This must be in double quotes, not single quotes, because CPP may get
1031 # substituted into the Makefile and "${CC-cc}" will confuse make.
1033 # On the NeXT, cc -E runs the code through the compiler's parser,
1034 # not just through cpp.
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out`
1044 if test -z "$ac_err"; then
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1051 CPP="${CC-cc} -E -traditional-cpp"
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1059 { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1060 ac_err=`grep -v '^ *+' conftest.out`
1061 if test -z "$ac_err"; then
1065 echo "configure: failed program was:" >&5
1066 cat conftest.$ac_ext >&5
1073 ac_cv_prog_CPP="$CPP"
1075 CPP="$ac_cv_prog_CPP"
1077 ac_cv_prog_CPP="$CPP"
1079 echo "$ac_t""$CPP" 1>&6
1081 for ac_hdr in fcntl.h malloc.h memory.h rpc/rpcent.h
1083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_hdr" >&5
1086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1095 { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1096 ac_err=`grep -v '^ *+' conftest.out`
1097 if test -z "$ac_err"; then
1099 eval "ac_cv_header_$ac_safe=yes"
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1105 eval "ac_cv_header_$ac_safe=no"
1109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1110 echo "$ac_t""yes" 1>&6
1111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1112 cat >> confdefs.h <<EOF
1113 #define $ac_tr_hdr 1
1117 echo "$ac_t""no" 1>&6
1121 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether time.h and sys/time.h may both be included" >&5
1123 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 cat > conftest.$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1129 #include <sys/types.h>
1130 #include <sys/time.h>
1136 if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1138 ac_cv_header_time=yes
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1143 ac_cv_header_time=no
1148 echo "$ac_t""$ac_cv_header_time" 1>&6
1149 if test $ac_cv_header_time = yes; then
1150 cat >> confdefs.h <<\EOF
1151 #define TIME_WITH_SYS_TIME 1
1157 case "$target_os" in
1160 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1161 echo "configure:1162: checking Linux kernel version" >&5
1162 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 ac_cv_linux_vers=`uname -r 2>&1 | \
1166 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1169 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1170 if test $ac_cv_linux_vers -lt 2 ; then
1171 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1173 cat >> confdefs.h <<\EOF
1174 #define HAVE_NET_SLIP_H 1
1180 for ac_hdr in net/slip.h
1182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_hdr" >&5
1185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out`
1196 if test -z "$ac_err"; then
1198 eval "ac_cv_header_$ac_safe=yes"
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1204 eval "ac_cv_header_$ac_safe=no"
1208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1211 cat >> confdefs.h <<EOF
1212 #define $ac_tr_hdr 1
1216 echo "$ac_t""no" 1>&6
1223 for ac_func in vfprintf strcasecmp
1225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_func" >&5
1227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233 /* System header to define __stub macros and hopefully few prototypes,
1234 which can conflict with char $ac_func(); below. */
1236 /* Override any gcc2 internal prototype to avoid an error. */
1237 /* We use char because int might match the return type of a gcc2
1238 builtin and then its argument prototype would still apply. */
1243 /* The GNU C library defines this for functions which it implements
1244 to always fail with ENOSYS. Some functions are actually named
1245 something starting with __ and the normal name is an alias. */
1246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1254 if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1256 eval "ac_cv_func_$ac_func=yes"
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1261 eval "ac_cv_func_$ac_func=no"
1266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1269 cat >> confdefs.h <<EOF
1270 #define $ac_tr_func 1
1274 echo "$ac_t""no" 1>&6
1275 LIBOBJS="$LIBOBJS ${ac_func}.o"
1280 for ac_func in ether_ntoa setlinebuf
1282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_func" >&5
1284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* System header to define __stub macros and hopefully few prototypes,
1291 which can conflict with char $ac_func(); below. */
1293 /* Override any gcc2 internal prototype to avoid an error. */
1294 /* We use char because int might match the return type of a gcc2
1295 builtin and then its argument prototype would still apply. */
1300 /* The GNU C library defines this for functions which it implements
1301 to always fail with ENOSYS. Some functions are actually named
1302 something starting with __ and the normal name is an alias. */
1303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1313 eval "ac_cv_func_$ac_func=yes"
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 eval "ac_cv_func_$ac_func=no"
1323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1326 cat >> confdefs.h <<EOF
1327 #define $ac_tr_func 1
1331 echo "$ac_t""no" 1>&6
1336 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1337 echo "configure:1338: checking whether byte ordering is bigendian" >&5
1338 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 ac_cv_c_bigendian=unknown
1342 # See if sys/param.h defines the BYTE_ORDER macro.
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 #include <sys/types.h>
1347 #include <sys/param.h>
1350 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1355 if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1357 # It does; now see whether it defined to BIG_ENDIAN or not.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 #include <sys/types.h>
1362 #include <sys/param.h>
1365 #if BYTE_ORDER != BIG_ENDIAN
1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1372 ac_cv_c_bigendian=yes
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1377 ac_cv_c_bigendian=no
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1385 if test $ac_cv_c_bigendian = unknown; then
1386 if test "$cross_compiling" = yes; then
1387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1393 /* Are we little or big endian? From Harbison&Steele. */
1397 char c[sizeof (long)];
1400 exit (u.c[sizeof (long) - 1] == 1);
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1405 ac_cv_c_bigendian=no
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1410 ac_cv_c_bigendian=yes
1418 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1419 if test $ac_cv_c_bigendian = yes; then
1420 cat >> confdefs.h <<\EOF
1421 #define WORDS_BIGENDIAN 1
1427 echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6
1428 echo "configure:1429: checking for main in -ldnet" >&5
1429 ac_lib_var=`echo dnet'_'main | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS="$LIBS"
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1458 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1460 cat >> confdefs.h <<EOF
1461 #define $ac_tr_lib 1
1467 echo "$ac_t""no" 1>&6
1470 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
1471 echo "configure:1472: checking for main in -lrpc" >&5
1472 ac_lib_var=`echo rpc'_'main | sed 'y%./+-%__p_%'`
1473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 ac_save_LIBS="$LIBS"
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1488 eval "ac_cv_lib_$ac_lib_var=yes"
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1493 eval "ac_cv_lib_$ac_lib_var=no"
1496 LIBS="$ac_save_LIBS"
1499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1500 echo "$ac_t""yes" 1>&6
1501 ac_tr_lib=HAVE_LIB`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1503 cat >> confdefs.h <<EOF
1504 #define $ac_tr_lib 1
1510 echo "$ac_t""no" 1>&6
1515 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1516 echo "configure:1517: checking return type of signal handlers" >&5
1517 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 #include <sys/types.h>
1529 extern "C" void (*signal (int, void (*)(int)))(int);
1531 void (*signal ()) ();
1538 if { (eval echo configure:1539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1540 ac_cv_type_signal=void
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1545 ac_cv_type_signal=int
1550 echo "$ac_t""$ac_cv_type_signal" 1>&6
1551 cat >> confdefs.h <<EOF
1552 #define RETSIGTYPE $ac_cv_type_signal
1556 if test "$ac_cv_type_signal" = void ; then
1557 cat >> confdefs.h <<\EOF
1562 cat >> confdefs.h <<\EOF
1563 #define RETSIGVAL (0)
1567 case "$target_os" in
1570 cat >> confdefs.h <<\EOF
1571 #define _BSD_SIGNALS 1
1577 for ac_func in sigset
1579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_func" >&5
1581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* System header to define __stub macros and hopefully few prototypes,
1588 which can conflict with char $ac_func(); below. */
1590 /* Override any gcc2 internal prototype to avoid an error. */
1591 /* We use char because int might match the return type of a gcc2
1592 builtin and then its argument prototype would still apply. */
1597 /* The GNU C library defines this for functions which it implements
1598 to always fail with ENOSYS. Some functions are actually named
1599 something starting with __ and the normal name is an alias. */
1600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1610 eval "ac_cv_func_$ac_func=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 eval "ac_cv_func_$ac_func=no"
1620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1623 cat >> confdefs.h <<EOF
1624 #define $ac_tr_func 1
1628 echo "$ac_t""no" 1>&6
1632 if test $ac_cv_func_sigset = no ; then
1633 for ac_func in sigaction
1635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_func" >&5
1637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* System header to define __stub macros and hopefully few prototypes,
1644 which can conflict with char $ac_func(); below. */
1646 /* Override any gcc2 internal prototype to avoid an error. */
1647 /* We use char because int might match the return type of a gcc2
1648 builtin and then its argument prototype would still apply. */
1653 /* The GNU C library defines this for functions which it implements
1654 to always fail with ENOSYS. Some functions are actually named
1655 something starting with __ and the normal name is an alias. */
1656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1666 eval "ac_cv_func_$ac_func=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_func_$ac_func=no"
1676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1677 echo "$ac_t""yes" 1>&6
1678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1679 cat >> confdefs.h <<EOF
1680 #define $ac_tr_func 1
1684 echo "$ac_t""no" 1>&6
1693 # Most operating systems have gethostbyname() in the default searched
1694 # libraries (i.e. libc):
1695 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1696 echo "configure:1697: checking for gethostbyname" >&5
1697 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 /* System header to define __stub macros and hopefully few prototypes,
1704 which can conflict with char gethostbyname(); below. */
1706 /* Override any gcc2 internal prototype to avoid an error. */
1707 /* We use char because int might match the return type of a gcc2
1708 builtin and then its argument prototype would still apply. */
1709 char gethostbyname();
1713 /* The GNU C library defines this for functions which it implements
1714 to always fail with ENOSYS. Some functions are actually named
1715 something starting with __ and the normal name is an alias. */
1716 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1726 eval "ac_cv_func_gethostbyname=yes"
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1731 eval "ac_cv_func_gethostbyname=no"
1736 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1737 echo "$ac_t""yes" 1>&6
1740 echo "$ac_t""no" 1>&6
1741 # Some OSes (eg. Solaris) place it in libnsl:
1742 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1743 echo "configure:1744: checking for gethostbyname in -lnsl" >&5
1744 ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1745 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_save_LIBS="$LIBS"
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756 char gethostbyname();
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1764 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1772 LIBS="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1779 cat >> confdefs.h <<EOF
1780 #define $ac_tr_lib 1
1786 echo "$ac_t""no" 1>&6
1787 # Some strange OSes (SINIX) have it in libsocket:
1788 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1789 echo "configure:1790: checking for gethostbyname in -lsocket" >&5
1790 ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1791 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS="$LIBS"
1795 LIBS="-lsocket $LIBS"
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1802 char gethostbyname();
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1810 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1818 LIBS="$ac_save_LIBS"
1821 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1825 cat >> confdefs.h <<EOF
1826 #define $ac_tr_lib 1
1829 LIBS="-lsocket $LIBS"
1832 echo "$ac_t""no" 1>&6
1833 # Unfortunately libsocket sometimes depends on libnsl.
1834 # AC_CHECK_LIB's API is essentially broken so the
1835 # following ugliness is necessary:
1836 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1837 echo "configure:1838: checking for gethostbyname in -lsocket" >&5
1838 ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
1839 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 ac_save_LIBS="$LIBS"
1843 LIBS="-lsocket -lnsl $LIBS"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1850 char gethostbyname();
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1858 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 eval "ac_cv_lbl_lib_$ac_lib_var=no"
1866 LIBS="$ac_save_LIBS"
1869 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1871 LIBS="-lsocket -lnsl $LIBS"
1873 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1875 echo "configure:1876: checking for gethostbyname in -lresolv" >&5
1876 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1881 LIBS="-lresolv $LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1888 char gethostbyname();
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_lib_$ac_lib_var=no"
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1910 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1911 cat >> confdefs.h <<EOF
1912 #define $ac_tr_lib 1
1915 LIBS="-lresolv $LIBS"
1918 echo "$ac_t""no" 1>&6
1929 echo $ac_n "checking for socket""... $ac_c" 1>&6
1930 echo "configure:1931: checking for socket" >&5
1931 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 /* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char socket(); below. */
1940 /* Override any gcc2 internal prototype to avoid an error. */
1941 /* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1947 /* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950 #if defined (__stub_socket) || defined (__stub___socket)
1958 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1960 eval "ac_cv_func_socket=yes"
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1965 eval "ac_cv_func_socket=no"
1970 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1974 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1976 echo "configure:1977: checking for socket in -lsocket" >&5
1977 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 ac_save_LIBS="$LIBS"
1982 LIBS="-lsocket $LIBS"
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1997 eval "ac_cv_lib_$ac_lib_var=yes"
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 eval "ac_cv_lib_$ac_lib_var=no"
2005 LIBS="$ac_save_LIBS"
2008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2012 cat >> confdefs.h <<EOF
2013 #define $ac_tr_lib 1
2016 LIBS="-lsocket $LIBS"
2019 echo "$ac_t""no" 1>&6
2020 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2021 echo "configure:2022: checking for socket in -lsocket" >&5
2022 ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
2023 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS="$LIBS"
2027 LIBS="-lsocket -lnsl $LIBS"
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2042 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_lbl_lib_$ac_lib_var=no"
2050 LIBS="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 LIBS="-lsocket -lnsl $LIBS"
2057 echo "$ac_t""no" 1>&6
2064 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
2065 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
2066 echo "configure:2067: checking for putmsg in -lstr" >&5
2067 ac_lib_var=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_save_LIBS="$LIBS"
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 eval "ac_cv_lib_$ac_lib_var=no"
2095 LIBS="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_lib=HAVE_LIB`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2102 cat >> confdefs.h <<EOF
2103 #define $ac_tr_lib 1
2109 echo "$ac_t""no" 1>&6
2115 pfopen=/usr/examples/packetfilter/pfopen.c
2116 if test -f $pfopen ; then
2117 for ac_func in pfopen
2119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_func" >&5
2121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 /* System header to define __stub macros and hopefully few prototypes,
2128 which can conflict with char $ac_func(); below. */
2130 /* Override any gcc2 internal prototype to avoid an error. */
2131 /* We use char because int might match the return type of a gcc2
2132 builtin and then its argument prototype would still apply. */
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2150 eval "ac_cv_func_$ac_func=yes"
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2155 eval "ac_cv_func_$ac_func=no"
2160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2163 cat >> confdefs.h <<EOF
2164 #define $ac_tr_func 1
2168 echo "$ac_t""no" 1>&6
2172 if test $ac_cv_func_pfopen = "no" ; then
2173 echo "$ac_t""Using $pfopen" 1>&6
2174 LIBS="$LIBS $pfopen"
2177 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
2178 echo "configure:2179: checking for local pcap library" >&5
2181 places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
2182 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'`
2183 for dir in $places ../libpcap libpcap ; do
2184 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
2185 if test $lastdir = $basedir ; then
2189 if test -r $dir/pcap.c ; then
2190 libpcap=$dir/libpcap.a
2194 if test $libpcap = FAIL ; then
2195 echo "$ac_t""not found" 1>&6
2196 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
2197 echo "configure:2198: checking for main in -lpcap" >&5
2198 ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 ac_save_LIBS="$LIBS"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2214 eval "ac_cv_lib_$ac_lib_var=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 eval "ac_cv_lib_$ac_lib_var=no"
2222 LIBS="$ac_save_LIBS"
2225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2229 echo "$ac_t""no" 1>&6
2232 if test $libpcap = FAIL ; then
2233 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
2237 V_INCLS="-I$d $V_INCLS"
2238 echo "$ac_t""$libpcap" 1>&6
2240 LIBS="$libpcap $LIBS"
2241 case "$target_os" in
2244 pseexe="/lib/pse.exp"
2245 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $pseexe" >&5
2247 if test -f $pseexe ; then
2248 echo "$ac_t""yes" 1>&6
2249 LIBS="$LIBS -I:$pseexe"
2255 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
2258 case "$target_os" in
2261 cat >> confdefs.h <<\EOF
2272 V_INCLS="$V_INCLS -Ilinux-include"
2277 cat >> confdefs.h <<\EOF
2288 if test -f /dev/bpf0 ; then
2292 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
2293 echo "configure:2294: checking for int32_t using $CC" >&5
2294 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2301 # include "confdefs.h"
2302 # include <sys/types.h>
2304 # include <stdlib.h>
2305 # include <stddef.h>
2311 if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 ac_cv_lbl_have_int32_t=yes
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 ac_cv_lbl_have_int32_t=no
2323 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
2324 if test $ac_cv_lbl_have_int32_t = no ; then
2325 cat >> confdefs.h <<\EOF
2330 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
2331 echo "configure:2332: checking for u_int32_t using $CC" >&5
2332 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2339 # include "confdefs.h"
2340 # include <sys/types.h>
2342 # include <stdlib.h>
2343 # include <stddef.h>
2349 if { (eval echo configure:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2351 ac_cv_lbl_have_u_int32_t=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2356 ac_cv_lbl_have_u_int32_t=no
2361 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
2362 if test $ac_cv_lbl_have_u_int32_t = no ; then
2363 cat >> confdefs.h <<\EOF
2364 #define u_int32_t u_int
2370 if test "${LBL_CFLAGS+set}" = set; then
2371 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
2373 if test -f .devel ; then
2374 if test "$GCC" = yes ; then
2375 if test "${LBL_CFLAGS+set}" != set; then
2376 if test "$ac_cv_prog_cc_g" = yes ; then
2377 V_CCOPT="-g $V_CCOPT"
2379 V_CCOPT="$V_CCOPT -Wall"
2380 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2381 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
2385 case "$target_os" in
2388 V_CCOPT="$V_CCOPT -n32"
2395 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
2397 if test -f $name ; then
2398 ln -s $name os-proto.h
2399 cat >> confdefs.h <<\EOF
2400 #define HAVE_OS_PROTO_H 1
2404 echo "configure: warning: can't find $name" 1>&2
2408 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2409 echo "configure:2410: checking if sockaddr struct has sa_len member" >&5
2410 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2417 # include <sys/types.h>
2418 # include <sys/socket.h>
2420 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 ac_cv_lbl_sockaddr_has_sa_len=yes
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 ac_cv_lbl_sockaddr_has_sa_len=no
2435 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
2436 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
2437 cat >> confdefs.h <<\EOF
2438 #define HAVE_SOCKADDR_SA_LEN 1
2443 echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6
2444 echo "configure:2445: checking if ether_header uses ether_addr structs" >&5
2445 if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 LBL_SAVE_CFLAGS="$CFLAGS"
2449 CFLAGS="$CFLAGS $V_INCLS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2454 # include <sys/types.h>
2456 /* osf3 has REALLY good prototyes */
2460 # include <sys/socket.h>
2461 # include <net/if.h>
2462 # include <netinet/in.h>
2463 # include <netinet/if_ether.h>
2466 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)
2469 if { (eval echo configure:2470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2471 ac_cv_ether_header_has_ea=yes
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2476 ac_cv_ether_header_has_ea=no
2479 CFLAGS="$LBL_SAVE_CFLAGS"
2482 echo "$ac_t""$ac_cv_ether_header_has_ea" 1>&6
2483 if test $ac_cv_ether_header_has_ea = yes ; then
2484 cat >> confdefs.h <<\EOF
2485 #define ETHER_HEADER_HAS_EA 1
2490 echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6
2491 echo "configure:2492: checking if ether_arp uses ether_addr structs" >&5
2492 if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 LBL_SAVE_CFLAGS="$CFLAGS"
2496 CFLAGS="$CFLAGS $V_INCLS"
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2501 # include <sys/types.h>
2503 /* osf3 has REALLY good prototyes */
2507 # include <sys/socket.h>
2508 # include <net/if.h>
2509 # include <netinet/in.h>
2510 # include <netinet/if_ether.h>
2513 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)
2516 if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2518 ac_cv_ether_arp_has_ea=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 ac_cv_ether_arp_has_ea=no
2526 CFLAGS="$LBL_SAVE_CFLAGS"
2529 echo "$ac_t""$ac_cv_ether_arp_has_ea" 1>&6
2530 if test $ac_cv_ether_arp_has_ea = yes ; then
2531 cat >> confdefs.h <<\EOF
2532 #define ETHER_ARP_HAS_EA 1
2537 echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6
2538 echo "configure:2539: checking if ether_arp uses erp_xsha member" >&5
2539 if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 LBL_SAVE_CFLAGS="$CFLAGS"
2543 CFLAGS="$CFLAGS $V_INCLS"
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2548 # include <sys/types.h>
2549 # include <sys/socket.h>
2551 /* osf3 has REALLY good prototyes */
2555 # include <net/if.h>
2556 # include <netinet/in.h>
2557 # include <netinet/if_ether.h>
2559 u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)
2562 if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 ac_cv_struct_ether_arp_x=yes
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 ac_cv_struct_ether_arp_x=no
2572 CFLAGS="$LBL_SAVE_CFLAGS"
2575 echo "$ac_t""$ac_cv_struct_ether_arp_x" 1>&6
2576 if test $ac_cv_struct_ether_arp_x = yes ; then
2577 cat >> confdefs.h <<\EOF
2578 #define ETHER_ARP_HAS_X 1
2583 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
2584 echo "configure:2585: checking if unaligned accesses fail" >&5
2585 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 case "$target_cpu" in
2590 alpha|hp*|mips|sparc)
2591 ac_cv_lbl_unaligned_fail=yes
2595 cat >conftest.c <<EOF
2596 # include <sys/types.h>
2597 # include <sys/wait.h>
2599 unsigned char a[5] = { 1, 2, 3, 4, 5 };
2604 /* avoid "core dumped" message */
2610 pid = waitpid(pid, &status, 0);
2613 exit(!WIFEXITED(status));
2616 i = *(unsigned int *)&a[1];
2621 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
2622 conftest.c $LIBS >/dev/null 2>&1
2623 if test ! -x conftest ; then
2624 ac_cv_lbl_unaligned_fail=yes
2626 ./conftest >conftest.out
2627 if test ! -s conftest.out ; then
2628 ac_cv_lbl_unaligned_fail=yes
2630 ac_cv_lbl_unaligned_fail=no
2633 rm -f conftest* core core.conftest
2638 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
2639 if test $ac_cv_lbl_unaligned_fail = yes ; then
2640 cat >> confdefs.h <<\EOF
2646 if test "${srcdir}" = "." ; then
2652 if test -r ${srcdirprefix}lbl/gnuc.h ; then
2654 ln -s ${srcdirprefix}lbl/gnuc.h gnuc.h
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2671 # ./install, which can be erroneously created by make from ./install.sh.
2672 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2673 echo "configure:2674: checking for a BSD compatible install" >&5
2674 if test -z "$INSTALL"; then
2675 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2679 for ac_dir in $PATH; do
2680 # Account for people who put trailing slashes in PATH elements.
2682 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2684 # OSF1 and SCO ODT 3.0 have their own names for install.
2685 for ac_prog in ginstall installbsd scoinst install; do
2686 if test -f $ac_dir/$ac_prog; then
2687 if test $ac_prog = install &&
2688 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2689 # AIX install. It has an incompatible calling convention.
2690 # OSF/1 installbsd also uses dspmsg, but is usable.
2693 ac_cv_path_install="$ac_dir/$ac_prog -c"
2704 if test "${ac_cv_path_install+set}" = set; then
2705 INSTALL="$ac_cv_path_install"
2707 # As a last resort, use the slow shell script. We don't cache a
2708 # path for INSTALL within a source directory, because that will
2709 # break other packages using the cache if that directory is
2710 # removed, or if the path is relative.
2711 INSTALL="$ac_install_sh"
2714 echo "$ac_t""$INSTALL" 1>&6
2716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2717 # It thinks the first close brace ends the variable substitution.
2718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2724 cat > confcache <<\EOF
2725 # This file is a shell script that caches the results of configure
2726 # tests run on this system so they can be shared between configure
2727 # scripts and configure runs. It is not useful on other systems.
2728 # If it contains results you don't want to keep, you may remove or edit it.
2730 # By default, configure uses ./config.cache as the cache file,
2731 # creating it if it does not exist already. You can give configure
2732 # the --cache-file=FILE option to use a different cache file; that is
2733 # what configure does when it calls configure scripts in
2734 # subdirectories, so they share the cache.
2735 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2736 # config.status only pays attention to the cache file if you give it the
2737 # --recheck option to rerun configure.
2740 # The following way of writing the cache mishandles newlines in values,
2741 # but we know of no workaround that is simple, portable, and efficient.
2742 # So, don't put newlines in cache variables' values.
2743 # Ultrix sh set writes to stderr and can't be redirected directly,
2744 # and sets the high bit in the cache file unless we assign to the vars.
2746 case `(ac_space=' '; set) 2>&1` in
2748 # `set' does not quote correctly, so add quotes (double-quote substitution
2749 # turns \\\\ into \\, and sed turns \\ into \).
2751 -e "s/'/'\\\\''/g" \
2752 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2755 # `set' quotes correctly as required by POSIX, so do not add quotes.
2756 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2759 if cmp -s $cache_file confcache; then
2762 if test -w $cache_file; then
2763 echo "updating cache $cache_file"
2764 cat confcache > $cache_file
2766 echo "not updating unwritable cache $cache_file"
2771 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2774 # Let make expand exec_prefix.
2775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2777 # Any assignment to VPATH causes Sun make to only execute
2778 # the first set of double-colon rules, so remove it if not needed.
2779 # If there is a colon in the path, we need to keep it.
2780 if test "x$srcdir" = x.; then
2781 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2784 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2786 # Transform confdefs.h into DEFS.
2787 # Protect against shell expansion while executing Makefile rules.
2788 # Protect against Makefile macro expansion.
2789 cat > conftest.defs <<\EOF
2790 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2791 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2796 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2800 # Without the "./", some shells look in PATH for config.status.
2801 : ${CONFIG_STATUS=./config.status}
2803 echo creating $CONFIG_STATUS
2804 rm -f $CONFIG_STATUS
2805 cat > $CONFIG_STATUS <<EOF
2807 # Generated automatically by configure.
2808 # Run this file to recreate the current configuration.
2809 # This directory was configured as follows,
2810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2812 # $0 $ac_configure_args
2814 # Compiler output produced by configure, useful for debugging
2815 # configure, is in ./config.log if it exists.
2817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2820 case "\$ac_option" in
2821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2822 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2823 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2824 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2825 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2827 -help | --help | --hel | --he | --h)
2828 echo "\$ac_cs_usage"; exit 0 ;;
2829 *) echo "\$ac_cs_usage"; exit 1 ;;
2833 ac_given_srcdir=$srcdir
2834 ac_given_INSTALL="$INSTALL"
2836 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2838 cat >> $CONFIG_STATUS <<EOF
2840 # Protect against being on the right side of a sed subst in config.status.
2841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2845 s%@CFLAGS@%$CFLAGS%g
2846 s%@CPPFLAGS@%$CPPFLAGS%g
2847 s%@CXXFLAGS@%$CXXFLAGS%g
2849 s%@LDFLAGS@%$LDFLAGS%g
2851 s%@exec_prefix@%$exec_prefix%g
2852 s%@prefix@%$prefix%g
2853 s%@program_transform_name@%$program_transform_name%g
2854 s%@bindir@%$bindir%g
2855 s%@sbindir@%$sbindir%g
2856 s%@libexecdir@%$libexecdir%g
2857 s%@datadir@%$datadir%g
2858 s%@sysconfdir@%$sysconfdir%g
2859 s%@sharedstatedir@%$sharedstatedir%g
2860 s%@localstatedir@%$localstatedir%g
2861 s%@libdir@%$libdir%g
2862 s%@includedir@%$includedir%g
2863 s%@oldincludedir@%$oldincludedir%g
2864 s%@infodir@%$infodir%g
2865 s%@mandir@%$mandir%g
2867 s%@host_alias@%$host_alias%g
2868 s%@host_cpu@%$host_cpu%g
2869 s%@host_vendor@%$host_vendor%g
2870 s%@host_os@%$host_os%g
2871 s%@target@%$target%g
2872 s%@target_alias@%$target_alias%g
2873 s%@target_cpu@%$target_cpu%g
2874 s%@target_vendor@%$target_vendor%g
2875 s%@target_os@%$target_os%g
2877 s%@build_alias@%$build_alias%g
2878 s%@build_cpu@%$build_cpu%g
2879 s%@build_vendor@%$build_vendor%g
2880 s%@build_os@%$build_os%g
2881 s%@SHLICC2@%$SHLICC2%g
2884 s%@LIBOBJS@%$LIBOBJS%g
2885 s%@V_CCOPT@%$V_CCOPT%g
2886 s%@V_GROUP@%$V_GROUP%g
2887 s%@V_INCLS@%$V_INCLS%g
2888 s%@V_PCAPDEP@%$V_PCAPDEP%g
2889 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2890 s%@INSTALL_DATA@%$INSTALL_DATA%g
2895 cat >> $CONFIG_STATUS <<\EOF
2897 # Split the substitutions into bite-sized pieces for seds with
2898 # small command number limits, like on Digital OSF/1 and HP-UX.
2899 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2900 ac_file=1 # Number of current file.
2901 ac_beg=1 # First line for current file.
2902 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2905 while $ac_more_lines; do
2906 if test $ac_beg -gt 1; then
2907 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2909 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2911 if test ! -s conftest.s$ac_file; then
2913 rm -f conftest.s$ac_file
2915 if test -z "$ac_sed_cmds"; then
2916 ac_sed_cmds="sed -f conftest.s$ac_file"
2918 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2920 ac_file=`expr $ac_file + 1`
2922 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2925 if test -z "$ac_sed_cmds"; then
2930 cat >> $CONFIG_STATUS <<EOF
2932 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2934 cat >> $CONFIG_STATUS <<\EOF
2935 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2938 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2939 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2940 *) ac_file_in="${ac_file}.in" ;;
2943 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2945 # Remove last slash and all that follows it. Not all systems have dirname.
2946 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2947 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2948 # The file is in a subdirectory.
2949 test ! -d "$ac_dir" && mkdir "$ac_dir"
2950 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2951 # A "../" for each directory in $ac_dir_suffix.
2952 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2954 ac_dir_suffix= ac_dots=
2957 case "$ac_given_srcdir" in
2959 if test -z "$ac_dots"; then top_srcdir=.
2960 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2961 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2963 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2964 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2967 case "$ac_given_INSTALL" in
2968 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2969 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2972 echo creating "$ac_file"
2974 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2976 *Makefile*) ac_comsub="1i\\
2977 # $configure_input" ;;
2981 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2983 s%@configure_input@%$configure_input%g
2984 s%@srcdir@%$srcdir%g
2985 s%@top_srcdir@%$top_srcdir%g
2986 s%@INSTALL@%$INSTALL%g
2987 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2992 cat >> $CONFIG_STATUS <<EOF
2995 cat >> $CONFIG_STATUS <<\EOF
2999 chmod +x $CONFIG_STATUS
3000 rm -fr confdefs* $ac_clean_files
3001 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3004 if test -f .devel ; then