]> The Tcpdump Group git mirrors - libpcap/blob - configure
f9a815d6047d785fe1dca7b7b9eb55783991c13c
[libpcap] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.138.2.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SHLICC2
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LIBOBJS
678 V_LEX
679 V_YACC
680 RANLIB
681 V_CCOPT
682 V_DEFS
683 V_INCLS
684 V_LIBS
685 V_PCAP
686 V_FINDALLDEVS
687 V_RANLIB
688 SSRC
689 DYEXT
690 DAGLIBS
691 PCAP_SUPPORT_USB
692 USB_SRC
693 PCAP_SUPPORT_BT
694 BT_SRC
695 INSTALL_PROGRAM
696 INSTALL_SCRIPT
697 INSTALL_DATA
698 LTLIBOBJS'
699 ac_subst_files=''
700 ac_precious_vars='build_alias
701 host_alias
702 target_alias
703 CC
704 CFLAGS
705 LDFLAGS
706 LIBS
707 CPPFLAGS
708 CPP'
709
710
711 # Initialize some variables set by options.
712 ac_init_help=
713 ac_init_version=false
714 # The variables have the same names as the options, with
715 # dashes changed to underlines.
716 cache_file=/dev/null
717 exec_prefix=NONE
718 no_create=
719 no_recursion=
720 prefix=NONE
721 program_prefix=NONE
722 program_suffix=NONE
723 program_transform_name=s,x,x,
724 silent=
725 site=
726 srcdir=
727 verbose=
728 x_includes=NONE
729 x_libraries=NONE
730
731 # Installation directory options.
732 # These are left unexpanded so users can "make install exec_prefix=/foo"
733 # and all the variables that are supposed to be based on exec_prefix
734 # by default will actually change.
735 # Use braces instead of parens because sh, perl, etc. also accept them.
736 # (The list follows the same order as the GNU Coding Standards.)
737 bindir='${exec_prefix}/bin'
738 sbindir='${exec_prefix}/sbin'
739 libexecdir='${exec_prefix}/libexec'
740 datarootdir='${prefix}/share'
741 datadir='${datarootdir}'
742 sysconfdir='${prefix}/etc'
743 sharedstatedir='${prefix}/com'
744 localstatedir='${prefix}/var'
745 includedir='${prefix}/include'
746 oldincludedir='/usr/include'
747 docdir='${datarootdir}/doc/${PACKAGE}'
748 infodir='${datarootdir}/info'
749 htmldir='${docdir}'
750 dvidir='${docdir}'
751 pdfdir='${docdir}'
752 psdir='${docdir}'
753 libdir='${exec_prefix}/lib'
754 localedir='${datarootdir}/locale'
755 mandir='${datarootdir}/man'
756
757 ac_prev=
758 ac_dashdash=
759 for ac_option
760 do
761 # If the previous option needs an argument, assign it.
762 if test -n "$ac_prev"; then
763 eval $ac_prev=\$ac_option
764 ac_prev=
765 continue
766 fi
767
768 case $ac_option in
769 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 *) ac_optarg=yes ;;
771 esac
772
773 # Accept the important Cygnus configure options, so we can diagnose typos.
774
775 case $ac_dashdash$ac_option in
776 --)
777 ac_dashdash=yes ;;
778
779 -bindir | --bindir | --bindi | --bind | --bin | --bi)
780 ac_prev=bindir ;;
781 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
782 bindir=$ac_optarg ;;
783
784 -build | --build | --buil | --bui | --bu)
785 ac_prev=build_alias ;;
786 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787 build_alias=$ac_optarg ;;
788
789 -cache-file | --cache-file | --cache-fil | --cache-fi \
790 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791 ac_prev=cache_file ;;
792 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794 cache_file=$ac_optarg ;;
795
796 --config-cache | -C)
797 cache_file=config.cache ;;
798
799 -datadir | --datadir | --datadi | --datad)
800 ac_prev=datadir ;;
801 -datadir=* | --datadir=* | --datadi=* | --datad=*)
802 datadir=$ac_optarg ;;
803
804 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805 | --dataroo | --dataro | --datar)
806 ac_prev=datarootdir ;;
807 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809 datarootdir=$ac_optarg ;;
810
811 -disable-* | --disable-*)
812 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816 { (exit 1); exit 1; }; }
817 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
818 eval enable_$ac_feature=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
829
830 -enable-* | --enable-*)
831 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835 { (exit 1); exit 1; }; }
836 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837 eval enable_$ac_feature=\$ac_optarg ;;
838
839 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841 | --exec | --exe | --ex)
842 ac_prev=exec_prefix ;;
843 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845 | --exec=* | --exe=* | --ex=*)
846 exec_prefix=$ac_optarg ;;
847
848 -gas | --gas | --ga | --g)
849 # Obsolete; use --with-gas.
850 with_gas=yes ;;
851
852 -help | --help | --hel | --he | -h)
853 ac_init_help=long ;;
854 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855 ac_init_help=recursive ;;
856 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857 ac_init_help=short ;;
858
859 -host | --host | --hos | --ho)
860 ac_prev=host_alias ;;
861 -host=* | --host=* | --hos=* | --ho=*)
862 host_alias=$ac_optarg ;;
863
864 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
865 ac_prev=htmldir ;;
866 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
867 | --ht=*)
868 htmldir=$ac_optarg ;;
869
870 -includedir | --includedir | --includedi | --included | --include \
871 | --includ | --inclu | --incl | --inc)
872 ac_prev=includedir ;;
873 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874 | --includ=* | --inclu=* | --incl=* | --inc=*)
875 includedir=$ac_optarg ;;
876
877 -infodir | --infodir | --infodi | --infod | --info | --inf)
878 ac_prev=infodir ;;
879 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880 infodir=$ac_optarg ;;
881
882 -libdir | --libdir | --libdi | --libd)
883 ac_prev=libdir ;;
884 -libdir=* | --libdir=* | --libdi=* | --libd=*)
885 libdir=$ac_optarg ;;
886
887 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888 | --libexe | --libex | --libe)
889 ac_prev=libexecdir ;;
890 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891 | --libexe=* | --libex=* | --libe=*)
892 libexecdir=$ac_optarg ;;
893
894 -localedir | --localedir | --localedi | --localed | --locale)
895 ac_prev=localedir ;;
896 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897 localedir=$ac_optarg ;;
898
899 -localstatedir | --localstatedir | --localstatedi | --localstated \
900 | --localstate | --localstat | --localsta | --localst | --locals)
901 ac_prev=localstatedir ;;
902 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904 localstatedir=$ac_optarg ;;
905
906 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
907 ac_prev=mandir ;;
908 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909 mandir=$ac_optarg ;;
910
911 -nfp | --nfp | --nf)
912 # Obsolete; use --without-fp.
913 with_fp=no ;;
914
915 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916 | --no-cr | --no-c | -n)
917 no_create=yes ;;
918
919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
921 no_recursion=yes ;;
922
923 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925 | --oldin | --oldi | --old | --ol | --o)
926 ac_prev=oldincludedir ;;
927 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930 oldincludedir=$ac_optarg ;;
931
932 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
933 ac_prev=prefix ;;
934 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
935 prefix=$ac_optarg ;;
936
937 -program-prefix | --program-prefix | --program-prefi | --program-pref \
938 | --program-pre | --program-pr | --program-p)
939 ac_prev=program_prefix ;;
940 -program-prefix=* | --program-prefix=* | --program-prefi=* \
941 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942 program_prefix=$ac_optarg ;;
943
944 -program-suffix | --program-suffix | --program-suffi | --program-suff \
945 | --program-suf | --program-su | --program-s)
946 ac_prev=program_suffix ;;
947 -program-suffix=* | --program-suffix=* | --program-suffi=* \
948 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949 program_suffix=$ac_optarg ;;
950
951 -program-transform-name | --program-transform-name \
952 | --program-transform-nam | --program-transform-na \
953 | --program-transform-n | --program-transform- \
954 | --program-transform | --program-transfor \
955 | --program-transfo | --program-transf \
956 | --program-trans | --program-tran \
957 | --progr-tra | --program-tr | --program-t)
958 ac_prev=program_transform_name ;;
959 -program-transform-name=* | --program-transform-name=* \
960 | --program-transform-nam=* | --program-transform-na=* \
961 | --program-transform-n=* | --program-transform-=* \
962 | --program-transform=* | --program-transfor=* \
963 | --program-transfo=* | --program-transf=* \
964 | --program-trans=* | --program-tran=* \
965 | --progr-tra=* | --program-tr=* | --program-t=*)
966 program_transform_name=$ac_optarg ;;
967
968 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
969 ac_prev=pdfdir ;;
970 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
971 pdfdir=$ac_optarg ;;
972
973 -psdir | --psdir | --psdi | --psd | --ps)
974 ac_prev=psdir ;;
975 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
976 psdir=$ac_optarg ;;
977
978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
979 | -silent | --silent | --silen | --sile | --sil)
980 silent=yes ;;
981
982 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
983 ac_prev=sbindir ;;
984 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
985 | --sbi=* | --sb=*)
986 sbindir=$ac_optarg ;;
987
988 -sharedstatedir | --sharedstatedir | --sharedstatedi \
989 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990 | --sharedst | --shareds | --shared | --share | --shar \
991 | --sha | --sh)
992 ac_prev=sharedstatedir ;;
993 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
996 | --sha=* | --sh=*)
997 sharedstatedir=$ac_optarg ;;
998
999 -site | --site | --sit)
1000 ac_prev=site ;;
1001 -site=* | --site=* | --sit=*)
1002 site=$ac_optarg ;;
1003
1004 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1005 ac_prev=srcdir ;;
1006 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007 srcdir=$ac_optarg ;;
1008
1009 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010 | --syscon | --sysco | --sysc | --sys | --sy)
1011 ac_prev=sysconfdir ;;
1012 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014 sysconfdir=$ac_optarg ;;
1015
1016 -target | --target | --targe | --targ | --tar | --ta | --t)
1017 ac_prev=target_alias ;;
1018 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019 target_alias=$ac_optarg ;;
1020
1021 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1022 verbose=yes ;;
1023
1024 -version | --version | --versio | --versi | --vers | -V)
1025 ac_init_version=: ;;
1026
1027 -with-* | --with-*)
1028 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid package name: $ac_package" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1034 eval with_$ac_package=\$ac_optarg ;;
1035
1036 -without-* | --without-*)
1037 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=no ;;
1044
1045 --x)
1046 # Obsolete; use --with-x.
1047 with_x=yes ;;
1048
1049 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1050 | --x-incl | --x-inc | --x-in | --x-i)
1051 ac_prev=x_includes ;;
1052 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1053 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1054 x_includes=$ac_optarg ;;
1055
1056 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1057 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1058 ac_prev=x_libraries ;;
1059 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1060 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1061 x_libraries=$ac_optarg ;;
1062
1063 -*) { echo "$as_me: error: unrecognized option: $ac_option
1064 Try \`$0 --help' for more information." >&2
1065 { (exit 1); exit 1; }; }
1066 ;;
1067
1068 *=*)
1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1073 { (exit 1); exit 1; }; }
1074 eval $ac_envvar=\$ac_optarg
1075 export $ac_envvar ;;
1076
1077 *)
1078 # FIXME: should be removed in autoconf 3.0.
1079 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1080 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1082 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1083 ;;
1084
1085 esac
1086 done
1087
1088 if test -n "$ac_prev"; then
1089 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1090 { echo "$as_me: error: missing argument to $ac_option" >&2
1091 { (exit 1); exit 1; }; }
1092 fi
1093
1094 # Be sure to have absolute directory names.
1095 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1096 datadir sysconfdir sharedstatedir localstatedir includedir \
1097 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1098 libdir localedir mandir
1099 do
1100 eval ac_val=\$$ac_var
1101 case $ac_val in
1102 [\\/$]* | ?:[\\/]* ) continue;;
1103 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104 esac
1105 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1106 { (exit 1); exit 1; }; }
1107 done
1108
1109 # There might be people who depend on the old broken behavior: `$host'
1110 # used to hold the argument of --host etc.
1111 # FIXME: To remove some day.
1112 build=$build_alias
1113 host=$host_alias
1114 target=$target_alias
1115
1116 # FIXME: To remove some day.
1117 if test "x$host_alias" != x; then
1118 if test "x$build_alias" = x; then
1119 cross_compiling=maybe
1120 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1121 If a cross compiler is detected then cross compile mode will be used." >&2
1122 elif test "x$build_alias" != "x$host_alias"; then
1123 cross_compiling=yes
1124 fi
1125 fi
1126
1127 ac_tool_prefix=
1128 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1129
1130 test "$silent" = yes && exec 6>/dev/null
1131
1132
1133 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1134 ac_ls_di=`ls -di .` &&
1135 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1136 { echo "$as_me: error: Working directory cannot be determined" >&2
1137 { (exit 1); exit 1; }; }
1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139 { echo "$as_me: error: pwd does not report name of working directory" >&2
1140 { (exit 1); exit 1; }; }
1141
1142
1143 # Find the source files, if location was not specified.
1144 if test -z "$srcdir"; then
1145 ac_srcdir_defaulted=yes
1146 # Try the directory containing this script, then the parent directory.
1147 ac_confdir=`$as_dirname -- "$0" ||
1148 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1149 X"$0" : 'X\(//\)[^/]' \| \
1150 X"$0" : 'X\(//\)$' \| \
1151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1152 echo X"$0" |
1153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1154 s//\1/
1155 q
1156 }
1157 /^X\(\/\/\)[^/].*/{
1158 s//\1/
1159 q
1160 }
1161 /^X\(\/\/\)$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\).*/{
1166 s//\1/
1167 q
1168 }
1169 s/.*/./; q'`
1170 srcdir=$ac_confdir
1171 if test ! -r "$srcdir/$ac_unique_file"; then
1172 srcdir=..
1173 fi
1174 else
1175 ac_srcdir_defaulted=no
1176 fi
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1179 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1180 { (exit 1); exit 1; }; }
1181 fi
1182 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1183 ac_abs_confdir=`(
1184 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1185 { (exit 1); exit 1; }; }
1186 pwd)`
1187 # When building in place, set srcdir=.
1188 if test "$ac_abs_confdir" = "$ac_pwd"; then
1189 srcdir=.
1190 fi
1191 # Remove unnecessary trailing slashes from srcdir.
1192 # Double slashes in file names in object file debugging info
1193 # mess up M-x gdb in Emacs.
1194 case $srcdir in
1195 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196 esac
1197 for ac_var in $ac_precious_vars; do
1198 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1199 eval ac_env_${ac_var}_value=\$${ac_var}
1200 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1201 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202 done
1203
1204 #
1205 # Report the --help message.
1206 #
1207 if test "$ac_init_help" = "long"; then
1208 # Omit some internal or obsolete options to make the list less imposing.
1209 # This message is too long to be a string in the A/UX 3.1 sh.
1210 cat <<_ACEOF
1211 \`configure' configures this package to adapt to many kinds of systems.
1212
1213 Usage: $0 [OPTION]... [VAR=VALUE]...
1214
1215 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216 VAR=VALUE. See below for descriptions of some of the useful variables.
1217
1218 Defaults for the options are specified in brackets.
1219
1220 Configuration:
1221 -h, --help display this help and exit
1222 --help=short display options specific to this package
1223 --help=recursive display the short help of all the included packages
1224 -V, --version display version information and exit
1225 -q, --quiet, --silent do not print \`checking...' messages
1226 --cache-file=FILE cache test results in FILE [disabled]
1227 -C, --config-cache alias for \`--cache-file=config.cache'
1228 -n, --no-create do not create output files
1229 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1230
1231 Installation directories:
1232 --prefix=PREFIX install architecture-independent files in PREFIX
1233 [$ac_default_prefix]
1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1235 [PREFIX]
1236
1237 By default, \`make install' will install all the files in
1238 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1239 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240 for instance \`--prefix=\$HOME'.
1241
1242 For better control, use the options below.
1243
1244 Fine tuning of the installation directories:
1245 --bindir=DIR user executables [EPREFIX/bin]
1246 --sbindir=DIR system admin executables [EPREFIX/sbin]
1247 --libexecdir=DIR program executables [EPREFIX/libexec]
1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1251 --libdir=DIR object code libraries [EPREFIX/lib]
1252 --includedir=DIR C header files [PREFIX/include]
1253 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1256 --infodir=DIR info documentation [DATAROOTDIR/info]
1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1258 --mandir=DIR man documentation [DATAROOTDIR/man]
1259 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1260 --htmldir=DIR html documentation [DOCDIR]
1261 --dvidir=DIR dvi documentation [DOCDIR]
1262 --pdfdir=DIR pdf documentation [DOCDIR]
1263 --psdir=DIR ps documentation [DOCDIR]
1264 _ACEOF
1265
1266 cat <<\_ACEOF
1267
1268 System types:
1269 --build=BUILD configure for building on BUILD [guessed]
1270 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1271 --target=TARGET configure for building compilers for TARGET [HOST]
1272 _ACEOF
1273 fi
1274
1275 if test -n "$ac_init_help"; then
1276
1277 cat <<\_ACEOF
1278
1279 Optional Features:
1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1282 --disable-protochain disable \"protochain\" insn
1283 --enable-ipv6 build IPv6-capable version
1284 --enable-optimizer-dbg build optimizer debugging code
1285 --enable-yydebug build parser debugging code
1286
1287 Optional Packages:
1288 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1289 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1290 --without-gcc don't use gcc
1291 --with-pcap=TYPE use packet capture TYPE
1292 --with-sita include SITA support
1293 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1294 --with-dag-includes=DIR Endace DAG include directory
1295 --with-dag-libraries=DIR Endace DAG library directory
1296 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
1297 --without-flex don't use flex
1298 --without-bison don't use bison
1299
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1309
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1312
1313 _ACEOF
1314 ac_status=$?
1315 fi
1316
1317 if test "$ac_init_help" = "recursive"; then
1318 # If there are subdirs, report their specific --help.
1319 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1320 test -d "$ac_dir" || continue
1321 ac_builddir=.
1322
1323 case "$ac_dir" in
1324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325 *)
1326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1327 # A ".." for each directory in $ac_dir_suffix.
1328 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1329 case $ac_top_builddir_sub in
1330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1332 esac ;;
1333 esac
1334 ac_abs_top_builddir=$ac_pwd
1335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1336 # for backward compatibility:
1337 ac_top_builddir=$ac_top_build_prefix
1338
1339 case $srcdir in
1340 .) # We are building in place.
1341 ac_srcdir=.
1342 ac_top_srcdir=$ac_top_builddir_sub
1343 ac_abs_top_srcdir=$ac_pwd ;;
1344 [\\/]* | ?:[\\/]* ) # Absolute name.
1345 ac_srcdir=$srcdir$ac_dir_suffix;
1346 ac_top_srcdir=$srcdir
1347 ac_abs_top_srcdir=$srcdir ;;
1348 *) # Relative name.
1349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1350 ac_top_srcdir=$ac_top_build_prefix$srcdir
1351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1352 esac
1353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354
1355 cd "$ac_dir" || { ac_status=$?; continue; }
1356 # Check for guested configure.
1357 if test -f "$ac_srcdir/configure.gnu"; then
1358 echo &&
1359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1360 elif test -f "$ac_srcdir/configure"; then
1361 echo &&
1362 $SHELL "$ac_srcdir/configure" --help=recursive
1363 else
1364 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1365 fi || ac_status=$?
1366 cd "$ac_pwd" || { ac_status=$?; break; }
1367 done
1368 fi
1369
1370 test -n "$ac_init_help" && exit $ac_status
1371 if $ac_init_version; then
1372 cat <<\_ACEOF
1373 configure
1374 generated by GNU Autoconf 2.61
1375
1376 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1377 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1378 This configure script is free software; the Free Software Foundation
1379 gives unlimited permission to copy, distribute and modify it.
1380 _ACEOF
1381 exit
1382 fi
1383 cat >config.log <<_ACEOF
1384 This file contains any messages produced by compilers while
1385 running configure, to aid debugging if configure makes a mistake.
1386
1387 It was created by $as_me, which was
1388 generated by GNU Autoconf 2.61. Invocation command line was
1389
1390 $ $0 $@
1391
1392 _ACEOF
1393 exec 5>>config.log
1394 {
1395 cat <<_ASUNAME
1396 ## --------- ##
1397 ## Platform. ##
1398 ## --------- ##
1399
1400 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1401 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1402 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1403 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1404 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405
1406 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1407 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408
1409 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1410 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1411 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1412 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1413 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1414 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1415 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1416
1417 _ASUNAME
1418
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 for as_dir in $PATH
1421 do
1422 IFS=$as_save_IFS
1423 test -z "$as_dir" && as_dir=.
1424 echo "PATH: $as_dir"
1425 done
1426 IFS=$as_save_IFS
1427
1428 } >&5
1429
1430 cat >&5 <<_ACEOF
1431
1432
1433 ## ----------- ##
1434 ## Core tests. ##
1435 ## ----------- ##
1436
1437 _ACEOF
1438
1439
1440 # Keep a trace of the command line.
1441 # Strip out --no-create and --no-recursion so they do not pile up.
1442 # Strip out --silent because we don't want to record it for future runs.
1443 # Also quote any args containing shell meta-characters.
1444 # Make two passes to allow for proper duplicate-argument suppression.
1445 ac_configure_args=
1446 ac_configure_args0=
1447 ac_configure_args1=
1448 ac_must_keep_next=false
1449 for ac_pass in 1 2
1450 do
1451 for ac_arg
1452 do
1453 case $ac_arg in
1454 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1456 | -silent | --silent | --silen | --sile | --sil)
1457 continue ;;
1458 *\'*)
1459 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 esac
1461 case $ac_pass in
1462 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1463 2)
1464 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1465 if test $ac_must_keep_next = true; then
1466 ac_must_keep_next=false # Got value, back to normal.
1467 else
1468 case $ac_arg in
1469 *=* | --config-cache | -C | -disable-* | --disable-* \
1470 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1471 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1472 | -with-* | --with-* | -without-* | --without-* | --x)
1473 case "$ac_configure_args0 " in
1474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1475 esac
1476 ;;
1477 -* ) ac_must_keep_next=true ;;
1478 esac
1479 fi
1480 ac_configure_args="$ac_configure_args '$ac_arg'"
1481 ;;
1482 esac
1483 done
1484 done
1485 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1486 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1487
1488 # When interrupted or exit'd, cleanup temporary files, and complete
1489 # config.log. We remove comments because anyway the quotes in there
1490 # would cause problems or look ugly.
1491 # WARNING: Use '\'' to represent an apostrophe within the trap.
1492 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1493 trap 'exit_status=$?
1494 # Save into config.log some information that might help in debugging.
1495 {
1496 echo
1497
1498 cat <<\_ASBOX
1499 ## ---------------- ##
1500 ## Cache variables. ##
1501 ## ---------------- ##
1502 _ASBOX
1503 echo
1504 # The following way of writing the cache mishandles newlines in values,
1505 (
1506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1507 eval ac_val=\$$ac_var
1508 case $ac_val in #(
1509 *${as_nl}*)
1510 case $ac_var in #(
1511 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1512 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1513 esac
1514 case $ac_var in #(
1515 _ | IFS | as_nl) ;; #(
1516 *) $as_unset $ac_var ;;
1517 esac ;;
1518 esac
1519 done
1520 (set) 2>&1 |
1521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1522 *${as_nl}ac_space=\ *)
1523 sed -n \
1524 "s/'\''/'\''\\\\'\'''\''/g;
1525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1526 ;; #(
1527 *)
1528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1529 ;;
1530 esac |
1531 sort
1532 )
1533 echo
1534
1535 cat <<\_ASBOX
1536 ## ----------------- ##
1537 ## Output variables. ##
1538 ## ----------------- ##
1539 _ASBOX
1540 echo
1541 for ac_var in $ac_subst_vars
1542 do
1543 eval ac_val=\$$ac_var
1544 case $ac_val in
1545 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546 esac
1547 echo "$ac_var='\''$ac_val'\''"
1548 done | sort
1549 echo
1550
1551 if test -n "$ac_subst_files"; then
1552 cat <<\_ASBOX
1553 ## ------------------- ##
1554 ## File substitutions. ##
1555 ## ------------------- ##
1556 _ASBOX
1557 echo
1558 for ac_var in $ac_subst_files
1559 do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in
1562 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1563 esac
1564 echo "$ac_var='\''$ac_val'\''"
1565 done | sort
1566 echo
1567 fi
1568
1569 if test -s confdefs.h; then
1570 cat <<\_ASBOX
1571 ## ----------- ##
1572 ## confdefs.h. ##
1573 ## ----------- ##
1574 _ASBOX
1575 echo
1576 cat confdefs.h
1577 echo
1578 fi
1579 test "$ac_signal" != 0 &&
1580 echo "$as_me: caught signal $ac_signal"
1581 echo "$as_me: exit $exit_status"
1582 } >&5
1583 rm -f core *.core core.conftest.* &&
1584 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1585 exit $exit_status
1586 ' 0
1587 for ac_signal in 1 2 13 15; do
1588 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1589 done
1590 ac_signal=0
1591
1592 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1593 rm -f -r conftest* confdefs.h
1594
1595 # Predefined preprocessor variables.
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_NAME "$PACKAGE_NAME"
1599 _ACEOF
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1604 _ACEOF
1605
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1609 _ACEOF
1610
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_STRING "$PACKAGE_STRING"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1619 _ACEOF
1620
1621
1622 # Let the site file select an alternate cache file if it wants to.
1623 # Prefer explicitly selected file to automatically selected ones.
1624 if test -n "$CONFIG_SITE"; then
1625 set x "$CONFIG_SITE"
1626 elif test "x$prefix" != xNONE; then
1627 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1628 else
1629 set x "$ac_default_prefix/share/config.site" \
1630 "$ac_default_prefix/etc/config.site"
1631 fi
1632 shift
1633 for ac_site_file
1634 do
1635 if test -r "$ac_site_file"; then
1636 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1637 echo "$as_me: loading site script $ac_site_file" >&6;}
1638 sed 's/^/| /' "$ac_site_file" >&5
1639 . "$ac_site_file"
1640 fi
1641 done
1642
1643 if test -r "$cache_file"; then
1644 # Some versions of bash will fail to source /dev/null (special
1645 # files actually), so we avoid doing that.
1646 if test -f "$cache_file"; then
1647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1648 echo "$as_me: loading cache $cache_file" >&6;}
1649 case $cache_file in
1650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1651 *) . "./$cache_file";;
1652 esac
1653 fi
1654 else
1655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1656 echo "$as_me: creating cache $cache_file" >&6;}
1657 >$cache_file
1658 fi
1659
1660 # Check that the precious variables saved in the cache have kept the same
1661 # value.
1662 ac_cache_corrupted=false
1663 for ac_var in $ac_precious_vars; do
1664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1665 eval ac_new_set=\$ac_env_${ac_var}_set
1666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1667 eval ac_new_val=\$ac_env_${ac_var}_value
1668 case $ac_old_set,$ac_new_set in
1669 set,)
1670 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1671 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1672 ac_cache_corrupted=: ;;
1673 ,set)
1674 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1675 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1676 ac_cache_corrupted=: ;;
1677 ,);;
1678 *)
1679 if test "x$ac_old_val" != "x$ac_new_val"; then
1680 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1681 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1682 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1683 echo "$as_me: former value: $ac_old_val" >&2;}
1684 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1685 echo "$as_me: current value: $ac_new_val" >&2;}
1686 ac_cache_corrupted=:
1687 fi;;
1688 esac
1689 # Pass precious variables to config.status.
1690 if test "$ac_new_set" = set; then
1691 case $ac_new_val in
1692 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1693 *) ac_arg=$ac_var=$ac_new_val ;;
1694 esac
1695 case " $ac_configure_args " in
1696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1697 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1698 esac
1699 fi
1700 done
1701 if $ac_cache_corrupted; then
1702 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1703 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1704 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1705 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1706 { (exit 1); exit 1; }; }
1707 fi
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725 ac_ext=c
1726 ac_cpp='$CPP $CPPFLAGS'
1727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1730
1731
1732
1733 ac_aux_dir=
1734 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1735 if test -f "$ac_dir/install-sh"; then
1736 ac_aux_dir=$ac_dir
1737 ac_install_sh="$ac_aux_dir/install-sh -c"
1738 break
1739 elif test -f "$ac_dir/install.sh"; then
1740 ac_aux_dir=$ac_dir
1741 ac_install_sh="$ac_aux_dir/install.sh -c"
1742 break
1743 elif test -f "$ac_dir/shtool"; then
1744 ac_aux_dir=$ac_dir
1745 ac_install_sh="$ac_aux_dir/shtool install -c"
1746 break
1747 fi
1748 done
1749 if test -z "$ac_aux_dir"; then
1750 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1751 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1752 { (exit 1); exit 1; }; }
1753 fi
1754
1755 # These three variables are undocumented and unsupported,
1756 # and are intended to be withdrawn in a future Autoconf release.
1757 # They can cause serious problems if a builder's source tree is in a directory
1758 # whose full name contains unusual characters.
1759 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1760 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1761 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1762
1763
1764 # Make sure we can run config.sub.
1765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1767 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1768 { (exit 1); exit 1; }; }
1769
1770 { echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1772 if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 ac_build_alias=$build_alias
1776 test "x$ac_build_alias" = x &&
1777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1778 test "x$ac_build_alias" = x &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1784 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787 fi
1788 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6; }
1790 case $ac_cv_build in
1791 *-*-*) ;;
1792 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1793 echo "$as_me: error: invalid value of canonical build" >&2;}
1794 { (exit 1); exit 1; }; };;
1795 esac
1796 build=$ac_cv_build
1797 ac_save_IFS=$IFS; IFS='-'
1798 set x $ac_cv_build
1799 shift
1800 build_cpu=$1
1801 build_vendor=$2
1802 shift; shift
1803 # Remember, the first character of IFS is used to create $*,
1804 # except with old shells:
1805 build_os=$*
1806 IFS=$ac_save_IFS
1807 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1808
1809
1810 { echo "$as_me:$LINENO: checking host system type" >&5
1811 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1812 if test "${ac_cv_host+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test "x$host_alias" = x; then
1816 ac_cv_host=$ac_cv_build
1817 else
1818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1822 fi
1823
1824 fi
1825 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1826 echo "${ECHO_T}$ac_cv_host" >&6; }
1827 case $ac_cv_host in
1828 *-*-*) ;;
1829 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1830 echo "$as_me: error: invalid value of canonical host" >&2;}
1831 { (exit 1); exit 1; }; };;
1832 esac
1833 host=$ac_cv_host
1834 ac_save_IFS=$IFS; IFS='-'
1835 set x $ac_cv_host
1836 shift
1837 host_cpu=$1
1838 host_vendor=$2
1839 shift; shift
1840 # Remember, the first character of IFS is used to create $*,
1841 # except with old shells:
1842 host_os=$*
1843 IFS=$ac_save_IFS
1844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1845
1846
1847 { echo "$as_me:$LINENO: checking target system type" >&5
1848 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1849 if test "${ac_cv_target+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test "x$target_alias" = x; then
1853 ac_cv_target=$ac_cv_host
1854 else
1855 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1856 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1857 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1858 { (exit 1); exit 1; }; }
1859 fi
1860
1861 fi
1862 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1863 echo "${ECHO_T}$ac_cv_target" >&6; }
1864 case $ac_cv_target in
1865 *-*-*) ;;
1866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1867 echo "$as_me: error: invalid value of canonical target" >&2;}
1868 { (exit 1); exit 1; }; };;
1869 esac
1870 target=$ac_cv_target
1871 ac_save_IFS=$IFS; IFS='-'
1872 set x $ac_cv_target
1873 shift
1874 target_cpu=$1
1875 target_vendor=$2
1876 shift; shift
1877 # Remember, the first character of IFS is used to create $*,
1878 # except with old shells:
1879 target_os=$*
1880 IFS=$ac_save_IFS
1881 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1882
1883
1884 # The aliases save the names the user supplied, while $host etc.
1885 # will get canonicalized.
1886 test -n "$target_alias" &&
1887 test "$program_prefix$program_suffix$program_transform_name" = \
1888 NONENONEs,x,x, &&
1889 program_prefix=${target_alias}-
1890
1891
1892
1893
1894
1895
1896 # Check whether --with-gcc was given.
1897 if test "${with_gcc+set}" = set; then
1898 withval=$with_gcc;
1899 fi
1900
1901 V_CCOPT="-O"
1902 V_INCLS=""
1903 if test "${srcdir}" != "." ; then
1904 V_INCLS="-I\$(srcdir)"
1905 fi
1906 if test "${CFLAGS+set}" = set; then
1907 LBL_CFLAGS="$CFLAGS"
1908 fi
1909 if test -z "$CC" ; then
1910 case "$target_os" in
1911
1912 bsdi*)
1913 # Extract the first word of "shlicc2", so it can be a program name with args.
1914 set dummy shlicc2; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$SHLICC2"; then
1921 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_SHLICC2="yes"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934 done
1935 done
1936 IFS=$as_save_IFS
1937
1938 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1939 fi
1940 fi
1941 SHLICC2=$ac_cv_prog_SHLICC2
1942 if test -n "$SHLICC2"; then
1943 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1944 echo "${ECHO_T}$SHLICC2" >&6; }
1945 else
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 if test $SHLICC2 = yes ; then
1952 CC=shlicc2
1953 export CC
1954 fi
1955 ;;
1956 esac
1957 fi
1958 if test -z "$CC" -a "$with_gcc" = no ; then
1959 CC=cc
1960 export CC
1961 fi
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1988 fi
1989 done
1990 done
1991 IFS=$as_save_IFS
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
1999 else
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2002 fi
2003
2004
2005 fi
2006 if test -z "$ac_cv_prog_CC"; then
2007 ac_ct_CC=$CC
2008 # Extract the first word of "gcc", so it can be a program name with args.
2009 set dummy gcc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$ac_ct_CC"; then
2016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_ac_ct_CC="gcc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029 done
2030 done
2031 IFS=$as_save_IFS
2032
2033 fi
2034 fi
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6; }
2039 else
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 fi
2043
2044 if test "x$ac_ct_CC" = x; then
2045 CC=""
2046 else
2047 case $cross_compiling:$ac_tool_warned in
2048 yes:)
2049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2050 whose name does not start with the host triplet. If you think this
2051 configuration is useful to you, please write to autoconf@gnu.org." >&5
2052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet. If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2055 ac_tool_warned=yes ;;
2056 esac
2057 CC=$ac_ct_CC
2058 fi
2059 else
2060 CC="$ac_cv_prog_CC"
2061 fi
2062
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2066 set dummy ${ac_tool_prefix}cc; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC="${ac_tool_prefix}cc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2096 else
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102 fi
2103 fi
2104 if test -z "$CC"; then
2105 # Extract the first word of "cc", so it can be a program name with args.
2106 set dummy cc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 ac_prog_rejected=no
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2124 ac_prog_rejected=yes
2125 continue
2126 fi
2127 ac_cv_prog_CC="cc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 if test $ac_prog_rejected = yes; then
2136 # We found a bogon in the path, so make sure we never use it.
2137 set dummy $ac_cv_prog_CC
2138 shift
2139 if test $# != 0; then
2140 # We chose a different compiler from the bogus one.
2141 # However, it has the same basename, so the bogon will be chosen
2142 # first if we set CC to just the basename; use the full file name.
2143 shift
2144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2145 fi
2146 fi
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 { echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6; }
2153 else
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2156 fi
2157
2158
2159 fi
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 for ac_prog in cl.exe
2163 do
2164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2184 fi
2185 done
2186 done
2187 IFS=$as_save_IFS
2188
2189 fi
2190 fi
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193 { echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6; }
2195 else
2196 { echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6; }
2198 fi
2199
2200
2201 test -n "$CC" && break
2202 done
2203 fi
2204 if test -z "$CC"; then
2205 ac_ct_CC=$CC
2206 for ac_prog in cl.exe
2207 do
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$ac_ct_CC"; then
2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_ac_ct_CC="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6; }
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245 test -n "$ac_ct_CC" && break
2246 done
2247
2248 if test "x$ac_ct_CC" = x; then
2249 CC=""
2250 else
2251 case $cross_compiling:$ac_tool_warned in
2252 yes:)
2253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2254 whose name does not start with the host triplet. If you think this
2255 configuration is useful to you, please write to autoconf@gnu.org." >&5
2256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet. If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2259 ac_tool_warned=yes ;;
2260 esac
2261 CC=$ac_ct_CC
2262 fi
2263 fi
2264
2265 fi
2266
2267
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2273
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO: checking for C compiler version" >&5
2276 ac_compiler=`set X $ac_compile; echo $2`
2277 { (ac_try="$ac_compiler --version >&5"
2278 case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281 esac
2282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2283 (eval "$ac_compiler --version >&5") 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }
2287 { (ac_try="$ac_compiler -v >&5"
2288 case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291 esac
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compiler -v >&5") 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }
2297 { (ac_try="$ac_compiler -V >&5"
2298 case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301 esac
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_compiler -V >&5") 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307
2308 cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h. */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2314
2315 int
2316 main ()
2317 {
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 ac_clean_files_save=$ac_clean_files
2324 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2325 # Try to create an executable without -o first, disregard a.out.
2326 # It will help us diagnose broken compilers, and finding out an intuition
2327 # of exeext.
2328 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2329 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2330 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2331 #
2332 # List of possible output files, starting from the most likely.
2333 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2334 # only as a last resort. b.out is created by i960 compilers.
2335 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2336 #
2337 # The IRIX 6 linker writes into existing files which may not be
2338 # executable, retaining their permissions. Remove them first so a
2339 # subsequent execution test works.
2340 ac_rmfiles=
2341 for ac_file in $ac_files
2342 do
2343 case $ac_file in
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2346 esac
2347 done
2348 rm -f $ac_rmfiles
2349
2350 if { (ac_try="$ac_link_default"
2351 case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354 esac
2355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_link_default") 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2361 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2362 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2363 # so that the user can short-circuit this test for compilers unknown to
2364 # Autoconf.
2365 for ac_file in $ac_files ''
2366 do
2367 test -f "$ac_file" || continue
2368 case $ac_file in
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2370 ;;
2371 [ab].out )
2372 # We found the default executable, but exeext='' is most
2373 # certainly right.
2374 break;;
2375 *.* )
2376 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2377 then :; else
2378 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 fi
2380 # We set ac_cv_exeext here because the later test for it is not
2381 # safe: cross compilers may not add the suffix if given an `-o'
2382 # argument, so we may need to know it at that point already.
2383 # Even if this section looks crufty: it has the advantage of
2384 # actually working.
2385 break;;
2386 * )
2387 break;;
2388 esac
2389 done
2390 test "$ac_cv_exeext" = no && ac_cv_exeext=
2391
2392 else
2393 ac_file=''
2394 fi
2395
2396 { echo "$as_me:$LINENO: result: $ac_file" >&5
2397 echo "${ECHO_T}$ac_file" >&6; }
2398 if test -z "$ac_file"; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2407 fi
2408
2409 ac_exeext=$ac_cv_exeext
2410
2411 # Check that the compiler produces executables we can run. If not, either
2412 # the compiler is broken, or we cross compile.
2413 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2414 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2415 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2416 # If not cross compiling, check that we can run a simple program.
2417 if test "$cross_compiling" != yes; then
2418 if { ac_try='./$ac_file'
2419 { (case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_try") 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 cross_compiling=no
2429 else
2430 if test "$cross_compiling" = maybe; then
2431 cross_compiling=yes
2432 else
2433 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2440 fi
2441 fi
2442 fi
2443 { echo "$as_me:$LINENO: result: yes" >&5
2444 echo "${ECHO_T}yes" >&6; }
2445
2446 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2447 ac_clean_files=$ac_clean_files_save
2448 # Check that the compiler produces executables we can run. If not, either
2449 # the compiler is broken, or we cross compile.
2450 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2451 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2452 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2453 echo "${ECHO_T}$cross_compiling" >&6; }
2454
2455 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2456 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2457 if { (ac_try="$ac_link"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_link") 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; then
2467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2469 # work properly (i.e., refer to `conftest.exe'), while it won't with
2470 # `rm'.
2471 for ac_file in conftest.exe conftest conftest.*; do
2472 test -f "$ac_file" || continue
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 break;;
2477 * ) break;;
2478 esac
2479 done
2480 else
2481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2486 fi
2487
2488 rm -f conftest$ac_cv_exeext
2489 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2490 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2491
2492 rm -f conftest.$ac_ext
2493 EXEEXT=$ac_cv_exeext
2494 ac_exeext=$EXEEXT
2495 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2496 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2497 if test "${ac_cv_objext+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506
2507 int
2508 main ()
2509 {
2510
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.o conftest.obj
2516 if { (ac_try="$ac_compile"
2517 case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 for ac_file in conftest.o conftest.obj conftest.*; do
2527 test -f "$ac_file" || continue;
2528 case $ac_file in
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2531 break;;
2532 esac
2533 done
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2546 fi
2547 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2548 echo "${ECHO_T}$ac_cv_objext" >&6; }
2549 OBJEXT=$ac_cv_objext
2550 ac_objext=$OBJEXT
2551 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2552 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562
2563 int
2564 main ()
2565 {
2566 #ifndef __GNUC__
2567 choke me
2568 #endif
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597 fi
2598
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
2602 fi
2603 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2605 GCC=`test $ac_compiler_gnu = yes && echo yes`
2606 ac_test_CFLAGS=${CFLAGS+set}
2607 ac_save_CFLAGS=$CFLAGS
2608 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2609 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_cc_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 ac_save_c_werror_flag=$ac_c_werror_flag
2614 ac_c_werror_flag=yes
2615 ac_cv_prog_cc_g=no
2616 CFLAGS="-g"
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623
2624 int
2625 main ()
2626 {
2627
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (ac_try="$ac_compile"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compile") 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } && {
2646 test -z "$ac_c_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest.$ac_objext; then
2649 ac_cv_prog_cc_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 CFLAGS=""
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2661
2662 int
2663 main ()
2664 {
2665
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest.$ac_objext; then
2687 :
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_c_werror_flag=$ac_save_c_werror_flag
2693 CFLAGS="-g"
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2700
2701 int
2702 main ()
2703 {
2704
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
2726 ac_cv_prog_cc_g=yes
2727 else
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731
2732 fi
2733
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_c_werror_flag=$ac_save_c_werror_flag
2742 fi
2743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2749 CFLAGS="-g -O2"
2750 else
2751 CFLAGS="-g"
2752 fi
2753 else
2754 if test "$GCC" = yes; then
2755 CFLAGS="-O2"
2756 else
2757 CFLAGS=
2758 fi
2759 fi
2760 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2761 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_cc_c89+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_cv_prog_cc_c89=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781 char **p;
2782 int i;
2783 {
2784 return p[i];
2785 }
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2787 {
2788 char *s;
2789 va_list v;
2790 va_start (v,p);
2791 s = g (p, va_arg (v,int));
2792 va_end (v);
2793 return s;
2794 }
2795
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2797 function prototypes and stuff, but not '\xHH' hex character constants.
2798 These don't provoke an error unfortunately, instead are silently treated
2799 as 'x'. The following induces an error, until -std is added to get
2800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2801 array size at least. It's necessary to write '\x00'==0 to get something
2802 that's true only with -std. */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2804
2805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2806 inside strings and character constants. */
2807 #define FOO(x) 'x'
2808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2809
2810 int test (int i, double x);
2811 struct s1 {int (*f) (int a);};
2812 struct s2 {int (*f) (double a);};
2813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2814 int argc;
2815 char **argv;
2816 int
2817 main ()
2818 {
2819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2826 do
2827 CC="$ac_save_CC $ac_arg"
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 ac_cv_prog_cc_c89=$ac_arg
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850
2851 fi
2852
2853 rm -f core conftest.err conftest.$ac_objext
2854 test "x$ac_cv_prog_cc_c89" != "xno" && break
2855 done
2856 rm -f conftest.$ac_ext
2857 CC=$ac_save_CC
2858
2859 fi
2860 # AC_CACHE_VAL
2861 case "x$ac_cv_prog_cc_c89" in
2862 x)
2863 { echo "$as_me:$LINENO: result: none needed" >&5
2864 echo "${ECHO_T}none needed" >&6; } ;;
2865 xno)
2866 { echo "$as_me:$LINENO: result: unsupported" >&5
2867 echo "${ECHO_T}unsupported" >&6; } ;;
2868 *)
2869 CC="$CC $ac_cv_prog_cc_c89"
2870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2872 esac
2873
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880
2881 if test "$GCC" = yes ; then
2882 if test "$SHLICC2" = yes ; then
2883 ac_cv_lbl_gcc_vers=2
2884 V_CCOPT="-O2"
2885 else
2886 { echo "$as_me:$LINENO: checking gcc version" >&5
2887 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2888 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2892 sed -e '/^gcc version /!d' \
2893 -e 's/^gcc version //' \
2894 -e 's/ .*//' -e 's/^[^0-9]*//' \
2895 -e 's/\..*//'`
2896 fi
2897
2898 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2899 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2900 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2901 V_CCOPT="-O2"
2902 fi
2903 fi
2904 else
2905 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2906 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2907 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 #include <sys/types.h>
2918 int
2919 main ()
2920 {
2921 int frob(int, char *)
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_cv_lbl_cc_ansi_prototypes=yes
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ac_cv_lbl_cc_ansi_prototypes=no
2949 fi
2950
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953
2954 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2955 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2956 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2957 case "$target_os" in
2958
2959 hpux*)
2960 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2961 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2962 savedcflags="$CFLAGS"
2963 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2964 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #include <sys/types.h>
2974 int
2975 main ()
2976 {
2977 int frob(int, char *)
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 ac_cv_lbl_cc_hpux_cc_aa=yes
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 ac_cv_lbl_cc_hpux_cc_aa=no
3005 fi
3006
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 fi
3009
3010 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3011 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3012 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3013 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3014 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017 CFLAGS="$savedcflags"
3018 V_CCOPT="-Aa $V_CCOPT"
3019
3020 cat >>confdefs.h <<\_ACEOF
3021 #define _HPUX_SOURCE 1
3022 _ACEOF
3023
3024 ;;
3025
3026 *)
3027 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3028 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3029 { (exit 1); exit 1; }; }
3030 ;;
3031 esac
3032 fi
3033 V_INCLS="$V_INCLS -I/usr/local/include"
3034 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3035
3036 case "$target_os" in
3037
3038 irix*)
3039 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3040 ;;
3041
3042 osf*)
3043 V_CCOPT="$V_CCOPT -std1 -g3"
3044 ;;
3045
3046 ultrix*)
3047 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3048 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3049 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <sys/types.h>
3059 int
3060 main ()
3061 {
3062 struct a { int b; };
3063 void c(const struct a *)
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && {
3082 test -z "$ac_c_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest.$ac_objext; then
3085 ac_cv_lbl_cc_const_proto=yes
3086 else
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 ac_cv_lbl_cc_const_proto=no
3091 fi
3092
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 fi
3095
3096 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3097 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3098 if test $ac_cv_lbl_cc_const_proto = no ; then
3099 cat >>confdefs.h <<\_ACEOF
3100 #define const
3101 _ACEOF
3102
3103 fi
3104 ;;
3105 esac
3106 fi
3107
3108 { echo "$as_me:$LINENO: checking for inline" >&5
3109 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3110 save_CFLAGS="$CFLAGS"
3111 CFLAGS="$V_CCOPT"
3112 if test "${ac_cv_lbl_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115
3116 ac_cv_lbl_inline=""
3117 ac_lbl_cc_inline=no
3118 for ac_lbl_inline in inline __inline__ __inline
3119 do
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #define inline $ac_lbl_inline
3127 static inline struct iltest *foo(void);
3128 struct iltest {
3129 int iltest1;
3130 int iltest2;
3131 };
3132
3133 static inline struct iltest *
3134 foo()
3135 {
3136 static struct iltest xxx;
3137
3138 return &xxx;
3139 }
3140 int
3141 main ()
3142 {
3143
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_lbl_cc_inline=yes
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 if test "$ac_lbl_cc_inline" = yes ; then
3175 break;
3176 fi
3177 done
3178 if test "$ac_lbl_cc_inline" = yes ; then
3179 ac_cv_lbl_inline=$ac_lbl_inline
3180 fi
3181 fi
3182
3183 CFLAGS="$save_CFLAGS"
3184 if test ! -z "$ac_cv_lbl_inline" ; then
3185 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3186 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3187 else
3188 { echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6; }
3190 fi
3191
3192 cat >>confdefs.h <<_ACEOF
3193 #define inline $ac_cv_lbl_inline
3194 _ACEOF
3195
3196
3197 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3198 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3199 if test "${ac_cv___attribute__+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209
3210 #include <stdlib.h>
3211
3212 static void foo(void) __attribute__ ((noreturn));
3213
3214 static void
3215 foo(void)
3216 {
3217 exit(1);
3218 }
3219
3220 int
3221 main(int argc, char **argv)
3222 {
3223 foo();
3224 }
3225
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } && {
3241 test -z "$ac_c_werror_flag" ||
3242 test ! -s conftest.err
3243 } && test -s conftest.$ac_objext; then
3244 ac_cv___attribute__=yes
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 ac_cv___attribute__=no
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254
3255 if test "$ac_cv___attribute__" = "yes"; then
3256
3257 cat >>confdefs.h <<\_ACEOF
3258 #define HAVE___ATTRIBUTE__ 1
3259 _ACEOF
3260
3261 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3262 else
3263 V_DEFS="$V_DEFS -D_U_=\"\""
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3266 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3267
3268
3269 { echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
3270 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6; }
3271 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280
3281 # include "confdefs.h"
3282 # include <sys/types.h>
3283 # if STDC_HEADERS
3284 # include <stdlib.h>
3285 # include <stddef.h>
3286 # endif
3287 int
3288 main ()
3289 {
3290 u_int8_t i
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_lbl_have_u_int8_t=yes
3313 else
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 ac_cv_lbl_have_u_int8_t=no
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 fi
3322
3323 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
3324 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3325 if test $ac_cv_lbl_have_u_int8_t = no ; then
3326
3327 cat >>confdefs.h <<\_ACEOF
3328 #define u_int8_t u_char
3329 _ACEOF
3330
3331 fi
3332 { echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
3333 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6; }
3334 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h. */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343
3344 # include "confdefs.h"
3345 # include <sys/types.h>
3346 # if STDC_HEADERS
3347 # include <stdlib.h>
3348 # include <stddef.h>
3349 # endif
3350 int
3351 main ()
3352 {
3353 u_int16_t i
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3375 ac_cv_lbl_have_u_int16_t=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 ac_cv_lbl_have_u_int16_t=no
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385
3386 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
3387 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3388 if test $ac_cv_lbl_have_u_int16_t = no ; then
3389
3390 cat >>confdefs.h <<\_ACEOF
3391 #define u_int16_t u_short
3392 _ACEOF
3393
3394 fi
3395 { echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
3396 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6; }
3397 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406
3407 # include "confdefs.h"
3408 # include <sys/types.h>
3409 # if STDC_HEADERS
3410 # include <stdlib.h>
3411 # include <stddef.h>
3412 # endif
3413 int
3414 main ()
3415 {
3416 u_int32_t i
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 ac_cv_lbl_have_u_int32_t=yes
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 ac_cv_lbl_have_u_int32_t=no
3444 fi
3445
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 fi
3448
3449 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3450 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3451 if test $ac_cv_lbl_have_u_int32_t = no ; then
3452
3453 cat >>confdefs.h <<\_ACEOF
3454 #define u_int32_t u_int
3455 _ACEOF
3456
3457 fi
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3465 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3466 # On Suns, sometimes $CPP names a directory.
3467 if test -n "$CPP" && test -d "$CPP"; then
3468 CPP=
3469 fi
3470 if test -z "$CPP"; then
3471 if test "${ac_cv_prog_CPP+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 # Double quotes because CPP needs to be expanded
3475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3476 do
3477 ac_preproc_ok=false
3478 for ac_c_preproc_warn_flag in '' yes
3479 do
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error" is here to catch this case.
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #ifdef __STDC__
3493 # include <limits.h>
3494 #else
3495 # include <assert.h>
3496 #endif
3497 Syntax error
3498 _ACEOF
3499 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 }; then
3515 :
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 # Broken: fails on valid input.
3521 continue
3522 fi
3523
3524 rm -f conftest.err conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <ac_nonexistent.h>
3535 _ACEOF
3536 if { (ac_try="$ac_cpp conftest.$ac_ext"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 }; then
3552 # Broken: success on invalid input.
3553 continue
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 # Passes both tests.
3559 ac_preproc_ok=:
3560 break
3561 fi
3562
3563 rm -f conftest.err conftest.$ac_ext
3564
3565 done
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.err conftest.$ac_ext
3568 if $ac_preproc_ok; then
3569 break
3570 fi
3571
3572 done
3573 ac_cv_prog_CPP=$CPP
3574
3575 fi
3576 CPP=$ac_cv_prog_CPP
3577 else
3578 ac_cv_prog_CPP=$CPP
3579 fi
3580 { echo "$as_me:$LINENO: result: $CPP" >&5
3581 echo "${ECHO_T}$CPP" >&6; }
3582 ac_preproc_ok=false
3583 for ac_c_preproc_warn_flag in '' yes
3584 do
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error" is here to catch this case.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #ifdef __STDC__
3598 # include <limits.h>
3599 #else
3600 # include <assert.h>
3601 #endif
3602 Syntax error
3603 _ACEOF
3604 if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null && {
3617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 }; then
3620 :
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 # Broken: fails on valid input.
3626 continue
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3640 _ACEOF
3641 if { (ac_try="$ac_cpp conftest.$ac_ext"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev/null && {
3654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 }; then
3657 # Broken: success on invalid input.
3658 continue
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3666 fi
3667
3668 rm -f conftest.err conftest.$ac_ext
3669
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3674 :
3675 else
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717 *)
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3721 do
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
3733 fi
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3739
3740
3741 $ac_path_GREP_found && break 3
3742 done
3743 done
3744
3745 done
3746 IFS=$as_save_IFS
3747
3748
3749 fi
3750
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3756 fi
3757
3758 else
3759 ac_cv_path_GREP=$GREP
3760 fi
3761
3762
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3767
3768
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 *)
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3815 fi
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3821
3822
3823 $ac_path_EGREP_found && break 3
3824 done
3825 done
3826
3827 done
3828 IFS=$as_save_IFS
3829
3830
3831 fi
3832
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838 fi
3839
3840 else
3841 ac_cv_path_EGREP=$EGREP
3842 fi
3843
3844
3845 fi
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3850
3851
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3867
3868 int
3869 main ()
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_cv_header_stdc=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 ac_cv_header_stdc=no
3899 fi
3900
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902
3903 if test $ac_cv_header_stdc = yes; then
3904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <string.h>
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "memchr" >/dev/null 2>&1; then
3916 :
3917 else
3918 ac_cv_header_stdc=no
3919 fi
3920 rm -f conftest*
3921
3922 fi
3923
3924 if test $ac_cv_header_stdc = yes; then
3925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932 #include <stdlib.h>
3933
3934 _ACEOF
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "free" >/dev/null 2>&1; then
3937 :
3938 else
3939 ac_cv_header_stdc=no
3940 fi
3941 rm -f conftest*
3942
3943 fi
3944
3945 if test $ac_cv_header_stdc = yes; then
3946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3947 if test "$cross_compiling" = yes; then
3948 :
3949 else
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <ctype.h>
3957 #include <stdlib.h>
3958 #if ((' ' & 0x0FF) == 0x020)
3959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3961 #else
3962 # define ISLOWER(c) \
3963 (('a' <= (c) && (c) <= 'i') \
3964 || ('j' <= (c) && (c) <= 'r') \
3965 || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3967 #endif
3968
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3970 int
3971 main ()
3972 {
3973 int i;
3974 for (i = 0; i < 256; i++)
3975 if (XOR (islower (i), ISLOWER (i))
3976 || toupper (i) != TOUPPER (i))
3977 return 2;
3978 return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest$ac_exeext
3982 if { (ac_try="$ac_link"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_link") 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3992 { (case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_try") 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 :
4002 else
4003 echo "$as_me: program exited with status $ac_status" >&5
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 ( exit $ac_status )
4008 ac_cv_header_stdc=no
4009 fi
4010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4011 fi
4012
4013
4014 fi
4015 fi
4016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4018 if test $ac_cv_header_stdc = yes; then
4019
4020 cat >>confdefs.h <<\_ACEOF
4021 #define STDC_HEADERS 1
4022 _ACEOF
4023
4024 fi
4025
4026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4037 inttypes.h stdint.h unistd.h
4038 do
4039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_includes_default
4052
4053 #include <$ac_header>
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4072 eval "$as_ac_Header=yes"
4073 else
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 eval "$as_ac_Header=no"
4078 fi
4079
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 ac_res=`eval echo '${'$as_ac_Header'}'`
4083 { echo "$as_me:$LINENO: result: $ac_res" >&5
4084 echo "${ECHO_T}$ac_res" >&6; }
4085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4086 cat >>confdefs.h <<_ACEOF
4087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088 _ACEOF
4089
4090 fi
4091
4092 done
4093
4094
4095
4096
4097
4098
4099 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4100 do
4101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 fi
4108 ac_res=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4111 else
4112 # Is the header compilable?
4113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 $ac_includes_default
4122 #include <$ac_header>
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (ac_try="$ac_compile"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 } && test -s conftest.$ac_objext; then
4141 ac_header_compiler=yes
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 ac_header_compiler=no
4147 fi
4148
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4151 echo "${ECHO_T}$ac_header_compiler" >&6; }
4152
4153 # Is the header present?
4154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <$ac_header>
4163 _ACEOF
4164 if { (ac_try="$ac_cpp conftest.$ac_ext"
4165 case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 }; then
4180 ac_header_preproc=yes
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 ac_header_preproc=no
4186 fi
4187
4188 rm -f conftest.err conftest.$ac_ext
4189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4190 echo "${ECHO_T}$ac_header_preproc" >&6; }
4191
4192 # So? What about this header?
4193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4194 yes:no: )
4195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4199 ac_header_preproc=yes
4200 ;;
4201 no:yes:* )
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4214
4215 ;;
4216 esac
4217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 eval "$as_ac_Header=\$ac_header_preproc"
4223 fi
4224 ac_res=`eval echo '${'$as_ac_Header'}'`
4225 { echo "$as_me:$LINENO: result: $ac_res" >&5
4226 echo "${ECHO_T}$ac_res" >&6; }
4227
4228 fi
4229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230 cat >>confdefs.h <<_ACEOF
4231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4232 _ACEOF
4233
4234 fi
4235
4236 done
4237
4238
4239 for ac_header in net/pfvar.h
4240 do
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <sys/types.h>
4254 #include <sys/socket.h>
4255 #include <net/if.h>
4256
4257 #include <$ac_header>
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest.$ac_objext; then
4276 eval "$as_ac_Header=yes"
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 eval "$as_ac_Header=no"
4282 fi
4283
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 ac_res=`eval echo '${'$as_ac_Header'}'`
4287 { echo "$as_me:$LINENO: result: $ac_res" >&5
4288 echo "${ECHO_T}$ac_res" >&6; }
4289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4290 cat >>confdefs.h <<_ACEOF
4291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292 _ACEOF
4293
4294 fi
4295
4296 done
4297
4298
4299 for ac_header in netinet/if_ether.h
4300 do
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <sys/types.h>
4314 #include <sys/socket.h>
4315
4316 #include <$ac_header>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_compile") 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && {
4332 test -z "$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 } && test -s conftest.$ac_objext; then
4335 eval "$as_ac_Header=yes"
4336 else
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 eval "$as_ac_Header=no"
4341 fi
4342
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 ac_res=`eval echo '${'$as_ac_Header'}'`
4346 { echo "$as_me:$LINENO: result: $ac_res" >&5
4347 echo "${ECHO_T}$ac_res" >&6; }
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349 cat >>confdefs.h <<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 _ACEOF
4352
4353 fi
4354
4355 done
4356
4357 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4358 #
4359 # The simple test didn't work.
4360 # Do we need to include <net/if.h> first?
4361 # Unset ac_cv_header_netinet_if_ether_h so we don't
4362 # treat the previous failure as a cached value and
4363 # suppress the next test.
4364 #
4365 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4366 echo "$as_me: Rechecking with some additional includes" >&6;}
4367 unset ac_cv_header_netinet_if_ether_h
4368
4369 for ac_header in netinet/if_ether.h
4370 do
4371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/socket.h>
4385 #include <netinet/in.h>
4386 struct mbuf;
4387 struct rtentry;
4388 #include <net/if.h>
4389
4390 #include <$ac_header>
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest.$ac_objext; then
4409 eval "$as_ac_Header=yes"
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 eval "$as_ac_Header=no"
4415 fi
4416
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 fi
4419 ac_res=`eval echo '${'$as_ac_Header'}'`
4420 { echo "$as_me:$LINENO: result: $ac_res" >&5
4421 echo "${ECHO_T}$ac_res" >&6; }
4422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4423 cat >>confdefs.h <<_ACEOF
4424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4425 _ACEOF
4426
4427 fi
4428
4429 done
4430
4431 fi
4432
4433 if test "$GCC" = yes ; then
4434 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
4435 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
4436 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 /*
4446 * This generates a "duplicate case value" when fixincludes
4447 * has not be run.
4448 */
4449 # include <sys/types.h>
4450 # include <sys/time.h>
4451 # include <sys/ioctl.h>
4452 # ifdef HAVE_SYS_IOCCOM_H
4453 # include <sys/ioccom.h>
4454 # endif
4455 int
4456 main ()
4457 {
4458 switch (0) {
4459 case _IO('A', 1):;
4460 case _IO('B', 1):;
4461 }
4462 ;
4463 return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.$ac_objext; then
4483 ac_cv_lbl_gcc_fixincludes=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_cv_lbl_gcc_fixincludes=no
4489 fi
4490
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 fi
4493
4494 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
4495 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
4496 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4497 # Don't cache failure
4498 unset ac_cv_lbl_gcc_fixincludes
4499 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
4500 echo "$as_me: error: see the INSTALL for more info" >&2;}
4501 { (exit 1); exit 1; }; }
4502 fi
4503 fi
4504
4505
4506
4507 for ac_func in strerror strlcpy
4508 do
4509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4523 #define $ac_func innocuous_$ac_func
4524
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func (); below.
4527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 <limits.h> exists even on freestanding compilers. */
4529
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535
4536 #undef $ac_func
4537
4538 /* Override any GCC internal prototype to avoid an error.
4539 Use char because int might match the return type of a GCC
4540 builtin and then its argument prototype would still apply. */
4541 #ifdef __cplusplus
4542 extern "C"
4543 #endif
4544 char $ac_func ();
4545 /* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548 #if defined __stub_$ac_func || defined __stub___$ac_func
4549 choke me
4550 #endif
4551
4552 int
4553 main ()
4554 {
4555 return $ac_func ();
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.$ac_objext conftest$ac_exeext
4561 if { (ac_try="$ac_link"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_link") 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } && {
4574 test -z "$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 } && test -s conftest$ac_exeext &&
4577 $as_test_x conftest$ac_exeext; then
4578 eval "$as_ac_var=yes"
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 eval "$as_ac_var=no"
4584 fi
4585
4586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4587 conftest$ac_exeext conftest.$ac_ext
4588 fi
4589 ac_res=`eval echo '${'$as_ac_var'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591 echo "${ECHO_T}$ac_res" >&6; }
4592 if test `eval echo '${'$as_ac_var'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4595 _ACEOF
4596
4597 fi
4598 done
4599
4600
4601 needsnprintf=no
4602
4603
4604 for ac_func in vsnprintf snprintf
4605 do
4606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4620 #define $ac_func innocuous_$ac_func
4621
4622 /* System header to define __stub macros and hopefully few prototypes,
4623 which can conflict with char $ac_func (); below.
4624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4625 <limits.h> exists even on freestanding compilers. */
4626
4627 #ifdef __STDC__
4628 # include <limits.h>
4629 #else
4630 # include <assert.h>
4631 #endif
4632
4633 #undef $ac_func
4634
4635 /* Override any GCC internal prototype to avoid an error.
4636 Use char because int might match the return type of a GCC
4637 builtin and then its argument prototype would still apply. */
4638 #ifdef __cplusplus
4639 extern "C"
4640 #endif
4641 char $ac_func ();
4642 /* The GNU C library defines this for functions which it implements
4643 to always fail with ENOSYS. Some functions are actually named
4644 something starting with __ and the normal name is an alias. */
4645 #if defined __stub_$ac_func || defined __stub___$ac_func
4646 choke me
4647 #endif
4648
4649 int
4650 main ()
4651 {
4652 return $ac_func ();
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (ac_try="$ac_link"
4659 case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_link") 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest$ac_exeext &&
4674 $as_test_x conftest$ac_exeext; then
4675 eval "$as_ac_var=yes"
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 eval "$as_ac_var=no"
4681 fi
4682
4683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4684 conftest$ac_exeext conftest.$ac_ext
4685 fi
4686 ac_res=`eval echo '${'$as_ac_var'}'`
4687 { echo "$as_me:$LINENO: result: $ac_res" >&5
4688 echo "${ECHO_T}$ac_res" >&6; }
4689 if test `eval echo '${'$as_ac_var'}'` = yes; then
4690 cat >>confdefs.h <<_ACEOF
4691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4692 _ACEOF
4693
4694 else
4695 needsnprintf=yes
4696 fi
4697 done
4698
4699 if test $needsnprintf = yes; then
4700 case " $LIBOBJS " in
4701 *" snprintf.$ac_objext "* ) ;;
4702 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4703 ;;
4704 esac
4705
4706 fi
4707
4708 #
4709 # Do this before checking for ether_hostton(), as it's a
4710 # "gethostbyname() -ish function".
4711 #
4712
4713 # Most operating systems have gethostbyname() in the default searched
4714 # libraries (i.e. libc):
4715 # Some OSes (eg. Solaris) place it in libnsl
4716 # Some strange OSes (SINIX) have it in libsocket:
4717 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4718 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_gethostbyname+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_func_search_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 char gethostbyname ();
4737 int
4738 main ()
4739 {
4740 return gethostbyname ();
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 for ac_lib in '' nsl socket resolv; do
4746 if test -z "$ac_lib"; then
4747 ac_res="none required"
4748 else
4749 ac_res=-l$ac_lib
4750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4751 fi
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770 ac_cv_search_gethostbyname=$ac_res
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4779 conftest$ac_exeext
4780 if test "${ac_cv_search_gethostbyname+set}" = set; then
4781 break
4782 fi
4783 done
4784 if test "${ac_cv_search_gethostbyname+set}" = set; then
4785 :
4786 else
4787 ac_cv_search_gethostbyname=no
4788 fi
4789 rm conftest.$ac_ext
4790 LIBS=$ac_func_search_save_LIBS
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4793 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4794 ac_res=$ac_cv_search_gethostbyname
4795 if test "$ac_res" != no; then
4796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4797
4798 fi
4799
4800 # Unfortunately libsocket sometimes depends on libnsl and
4801 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4802 if test "$ac_cv_search_gethostbyname" = "no"
4803 then
4804 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4805 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4806 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 ac_check_lib_save_LIBS=$LIBS
4810 LIBS="-lsocket -lnsl $LIBS"
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817
4818 /* Override any GCC internal prototype to avoid an error.
4819 Use char because int might match the return type of a GCC
4820 builtin and then its argument prototype would still apply. */
4821 #ifdef __cplusplus
4822 extern "C"
4823 #endif
4824 char gethostbyname ();
4825 int
4826 main ()
4827 {
4828 return gethostbyname ();
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext conftest$ac_exeext
4834 if { (ac_try="$ac_link"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_link") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest$ac_exeext &&
4850 $as_test_x conftest$ac_exeext; then
4851 ac_cv_lib_socket_gethostbyname=yes
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 ac_cv_lib_socket_gethostbyname=no
4857 fi
4858
4859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4860 conftest$ac_exeext conftest.$ac_ext
4861 LIBS=$ac_check_lib_save_LIBS
4862 fi
4863 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4864 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4865 if test $ac_cv_lib_socket_gethostbyname = yes; then
4866 LIBS="-lsocket -lnsl $LIBS"
4867 fi
4868
4869 fi
4870 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4871 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4872 if test "${ac_cv_search_socket+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 ac_func_search_save_LIBS=$LIBS
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882
4883 /* Override any GCC internal prototype to avoid an error.
4884 Use char because int might match the return type of a GCC
4885 builtin and then its argument prototype would still apply. */
4886 #ifdef __cplusplus
4887 extern "C"
4888 #endif
4889 char socket ();
4890 int
4891 main ()
4892 {
4893 return socket ();
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 for ac_lib in '' socket; do
4899 if test -z "$ac_lib"; then
4900 ac_res="none required"
4901 else
4902 ac_res=-l$ac_lib
4903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4904 fi
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (ac_try="$ac_link"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_link") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest$ac_exeext &&
4922 $as_test_x conftest$ac_exeext; then
4923 ac_cv_search_socket=$ac_res
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928
4929 fi
4930
4931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4932 conftest$ac_exeext
4933 if test "${ac_cv_search_socket+set}" = set; then
4934 break
4935 fi
4936 done
4937 if test "${ac_cv_search_socket+set}" = set; then
4938 :
4939 else
4940 ac_cv_search_socket=no
4941 fi
4942 rm conftest.$ac_ext
4943 LIBS=$ac_func_search_save_LIBS
4944 fi
4945 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4946 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4947 ac_res=$ac_cv_search_socket
4948 if test "$ac_res" != no; then
4949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4950
4951 else
4952 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4953 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4954 if test "${ac_cv_lib_socket_socket+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 ac_check_lib_save_LIBS=$LIBS
4958 LIBS="-lsocket -lnsl $LIBS"
4959 cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965
4966 /* Override any GCC internal prototype to avoid an error.
4967 Use char because int might match the return type of a GCC
4968 builtin and then its argument prototype would still apply. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 char socket ();
4973 int
4974 main ()
4975 {
4976 return socket ();
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (ac_try="$ac_link"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_link") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && {
4995 test -z "$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 } && test -s conftest$ac_exeext &&
4998 $as_test_x conftest$ac_exeext; then
4999 ac_cv_lib_socket_socket=yes
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 ac_cv_lib_socket_socket=no
5005 fi
5006
5007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5008 conftest$ac_exeext conftest.$ac_ext
5009 LIBS=$ac_check_lib_save_LIBS
5010 fi
5011 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5012 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5013 if test $ac_cv_lib_socket_socket = yes; then
5014 LIBS="-lsocket -lnsl $LIBS"
5015 fi
5016
5017 fi
5018
5019 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5020 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5021 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5022 if test "${ac_cv_search_putmsg+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 ac_func_search_save_LIBS=$LIBS
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032
5033 /* Override any GCC internal prototype to avoid an error.
5034 Use char because int might match the return type of a GCC
5035 builtin and then its argument prototype would still apply. */
5036 #ifdef __cplusplus
5037 extern "C"
5038 #endif
5039 char putmsg ();
5040 int
5041 main ()
5042 {
5043 return putmsg ();
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 for ac_lib in '' str; do
5049 if test -z "$ac_lib"; then
5050 ac_res="none required"
5051 else
5052 ac_res=-l$ac_lib
5053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5054 fi
5055 rm -f conftest.$ac_objext conftest$ac_exeext
5056 if { (ac_try="$ac_link"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_link") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest$ac_exeext &&
5072 $as_test_x conftest$ac_exeext; then
5073 ac_cv_search_putmsg=$ac_res
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5082 conftest$ac_exeext
5083 if test "${ac_cv_search_putmsg+set}" = set; then
5084 break
5085 fi
5086 done
5087 if test "${ac_cv_search_putmsg+set}" = set; then
5088 :
5089 else
5090 ac_cv_search_putmsg=no
5091 fi
5092 rm conftest.$ac_ext
5093 LIBS=$ac_func_search_save_LIBS
5094 fi
5095 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5096 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5097 ac_res=$ac_cv_search_putmsg
5098 if test "$ac_res" != no; then
5099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5100
5101 fi
5102
5103
5104
5105 #
5106 # You are in a twisty little maze of UN*Xes, all different.
5107 # Some might not have ether_hostton().
5108 # Some might have it, but not declare it in any header file.
5109 # Some might have it, but declare it in <netinet/if_ether.h>.
5110 # Some might have it, but declare it in <netinet/ether.h>
5111 # (And some might have it but document it as something declared in
5112 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5113 #
5114 # Before you is a C compiler.
5115 #
5116
5117 for ac_func in ether_hostton
5118 do
5119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5133 #define $ac_func innocuous_$ac_func
5134
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char $ac_func (); below.
5137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 <limits.h> exists even on freestanding compilers. */
5139
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145
5146 #undef $ac_func
5147
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5151 #ifdef __cplusplus
5152 extern "C"
5153 #endif
5154 char $ac_func ();
5155 /* The GNU C library defines this for functions which it implements
5156 to always fail with ENOSYS. Some functions are actually named
5157 something starting with __ and the normal name is an alias. */
5158 #if defined __stub_$ac_func || defined __stub___$ac_func
5159 choke me
5160 #endif
5161
5162 int
5163 main ()
5164 {
5165 return $ac_func ();
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (ac_try="$ac_link"
5172 case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_link") 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && {
5184 test -z "$ac_c_werror_flag" ||
5185 test ! -s conftest.err
5186 } && test -s conftest$ac_exeext &&
5187 $as_test_x conftest$ac_exeext; then
5188 eval "$as_ac_var=yes"
5189 else
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 eval "$as_ac_var=no"
5194 fi
5195
5196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5197 conftest$ac_exeext conftest.$ac_ext
5198 fi
5199 ac_res=`eval echo '${'$as_ac_var'}'`
5200 { echo "$as_me:$LINENO: result: $ac_res" >&5
5201 echo "${ECHO_T}$ac_res" >&6; }
5202 if test `eval echo '${'$as_ac_var'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5205 _ACEOF
5206
5207 fi
5208 done
5209
5210 if test "$ac_cv_func_ether_hostton" = yes; then
5211 #
5212 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5213 #
5214 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5215 #
5216 # Yes. Does it declare ether_hostton()?
5217 #
5218 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5219 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5220 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229
5230 #include <sys/types.h>
5231 #include <sys/socket.h>
5232 #include <netinet/in.h>
5233 #include <arpa/inet.h>
5234 struct mbuf;
5235 struct rtentry;
5236 #include <net/if.h>
5237 #include <netinet/if_ether.h>
5238
5239
5240 int
5241 main ()
5242 {
5243 #ifndef ether_hostton
5244 (void) ether_hostton;
5245 #endif
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_cv_have_decl_ether_hostton=yes
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 ac_cv_have_decl_ether_hostton=no
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5279 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5280 if test $ac_cv_have_decl_ether_hostton = yes; then
5281
5282
5283 cat >>confdefs.h <<\_ACEOF
5284 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5285 _ACEOF
5286
5287
5288 fi
5289
5290 fi
5291 #
5292 # Did that succeed?
5293 #
5294 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5295 #
5296 # No, how about <netinet/ether.h>, as on Linux?
5297 #
5298
5299 for ac_header in netinet/ether.h
5300 do
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 fi
5308 ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310 echo "${ECHO_T}$ac_res" >&6; }
5311 else
5312 # Is the header compilable?
5313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5322 #include <$ac_header>
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
5341 ac_header_compiler=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_header_compiler=no
5347 fi
5348
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5351 echo "${ECHO_T}$ac_header_compiler" >&6; }
5352
5353 # Is the header present?
5354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <$ac_header>
5363 _ACEOF
5364 if { (ac_try="$ac_cpp conftest.$ac_ext"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null && {
5377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 }; then
5380 ac_header_preproc=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ac_header_preproc=no
5386 fi
5387
5388 rm -f conftest.err conftest.$ac_ext
5389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 echo "${ECHO_T}$ac_header_preproc" >&6; }
5391
5392 # So? What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5394 yes:no: )
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5399 ac_header_preproc=yes
5400 ;;
5401 no:yes:* )
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5414
5415 ;;
5416 esac
5417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 eval "$as_ac_Header=\$ac_header_preproc"
5423 fi
5424 ac_res=`eval echo '${'$as_ac_Header'}'`
5425 { echo "$as_me:$LINENO: result: $ac_res" >&5
5426 echo "${ECHO_T}$ac_res" >&6; }
5427
5428 fi
5429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5432 _ACEOF
5433
5434 fi
5435
5436 done
5437
5438 if test "$ac_cv_header_netinet_ether_h" = yes; then
5439 #
5440 # We have it - does it declare ether_hostton()?
5441 # Unset ac_cv_have_decl_ether_hostton so we don't
5442 # treat the previous failure as a cached value and
5443 # suppress the next test.
5444 #
5445 unset ac_cv_have_decl_ether_hostton
5446 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5447 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5448 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457
5458 #include <netinet/ether.h>
5459
5460
5461 int
5462 main ()
5463 {
5464 #ifndef ether_hostton
5465 (void) ether_hostton;
5466 #endif
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5474 case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compile") 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_c_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest.$ac_objext; then
5489 ac_cv_have_decl_ether_hostton=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 ac_cv_have_decl_ether_hostton=no
5495 fi
5496
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 fi
5499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5500 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5501 if test $ac_cv_have_decl_ether_hostton = yes; then
5502
5503
5504 cat >>confdefs.h <<\_ACEOF
5505 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5506 _ACEOF
5507
5508
5509 fi
5510
5511 fi
5512 fi
5513 #
5514 # Is ether_hostton() declared?
5515 #
5516 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5517 #
5518 # No, we'll have to declare it ourselves.
5519 # Do we have "struct ether_addr"?
5520 #
5521 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5522 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
5523 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532
5533 #include <sys/types.h>
5534 #include <sys/socket.h>
5535 #include <netinet/in.h>
5536 #include <arpa/inet.h>
5537 struct mbuf;
5538 struct rtentry;
5539 #include <net/if.h>
5540 #include <netinet/if_ether.h>
5541
5542
5543 typedef struct ether_addr ac__type_new_;
5544 int
5545 main ()
5546 {
5547 if ((ac__type_new_ *) 0)
5548 return 0;
5549 if (sizeof (ac__type_new_))
5550 return 0;
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_cv_type_struct_ether_addr=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 ac_cv_type_struct_ether_addr=no
5578 fi
5579
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 fi
5582 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5583 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
5584 if test $ac_cv_type_struct_ether_addr = yes; then
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define HAVE_STRUCT_ETHER_ADDR 1
5588 _ACEOF
5589
5590
5591 fi
5592
5593
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_DECL_ETHER_HOSTTON 0
5596 _ACEOF
5597
5598 else
5599
5600 cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_DECL_ETHER_HOSTTON 1
5602 _ACEOF
5603
5604 fi
5605 fi
5606
5607 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5608 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
5609 # Check whether --enable-protochain was given.
5610 if test "${enable_protochain+set}" = set; then
5611 enableval=$enable_protochain;
5612 fi
5613
5614 case "x$enable_protochain" in
5615 xyes) enable_protochain=enabled ;;
5616 xno) enable_protochain=disabled ;;
5617 x) enable_protochain=enabled ;;
5618 esac
5619
5620 if test "$enable_protochain" = "disabled"; then
5621
5622 cat >>confdefs.h <<\_ACEOF
5623 #define NO_PROTOCHAIN 1
5624 _ACEOF
5625
5626 fi
5627 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5628 echo "${ECHO_T}${enable_protochain}" >&6; }
5629
5630 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5631 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5632 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5633 { (exit 1); exit 1; }; }
5634 fi
5635
5636 # Check whether --with-pcap was given.
5637 if test "${with_pcap+set}" = set; then
5638 withval=$with_pcap;
5639 fi
5640
5641 { echo "$as_me:$LINENO: checking packet capture type" >&5
5642 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
5643 if test ! -z "$with_pcap" ; then
5644 V_PCAP="$withval"
5645 elif test -r /dev/bpf ; then
5646 #
5647 # Cloning BPF device.
5648 #
5649 V_PCAP=bpf
5650
5651 cat >>confdefs.h <<\_ACEOF
5652 #define HAVE_CLONING_BPF 1
5653 _ACEOF
5654
5655 elif test -r /dev/bpf0 ; then
5656 V_PCAP=bpf
5657 elif test -r /usr/include/net/pfilt.h ; then
5658 V_PCAP=pf
5659 elif test -r /dev/enet ; then
5660 V_PCAP=enet
5661 elif test -r /dev/nit ; then
5662 V_PCAP=snit
5663 elif test -r /usr/include/sys/net/nit.h ; then
5664 V_PCAP=nit
5665 elif test -r /usr/include/linux/socket.h ; then
5666 V_PCAP=linux
5667 elif test -r /usr/include/net/raw.h ; then
5668 V_PCAP=snoop
5669 elif test -r /usr/include/odmi.h ; then
5670 #
5671 # On AIX, the BPF devices might not yet be present - they're
5672 # created the first time libpcap runs after booting.
5673 # We check for odmi.h instead.
5674 #
5675 V_PCAP=bpf
5676 elif test -r /usr/include/sys/dlpi.h ; then
5677 V_PCAP=dlpi
5678 elif test -c /dev/bpf0 ; then # check again in case not readable
5679 V_PCAP=bpf
5680 elif test -c /dev/enet ; then # check again in case not readable
5681 V_PCAP=enet
5682 elif test -c /dev/nit ; then # check again in case not readable
5683 V_PCAP=snit
5684 else
5685 V_PCAP=null
5686 fi
5687 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
5688 echo "${ECHO_T}$V_PCAP" >&6; }
5689
5690 if test "$V_PCAP" = null
5691 then
5692 #
5693 # We can't capture, so we can't open any capture
5694 # devices, so we won't return any interfaces.
5695 #
5696 V_FINDALLDEVS=null
5697 else
5698 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
5699 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
5700 if test "${ac_cv_func_getifaddrs+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5711 #define getifaddrs innocuous_getifaddrs
5712
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char getifaddrs (); below.
5715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716 <limits.h> exists even on freestanding compilers. */
5717
5718 #ifdef __STDC__
5719 # include <limits.h>
5720 #else
5721 # include <assert.h>
5722 #endif
5723
5724 #undef getifaddrs
5725
5726 /* Override any GCC internal prototype to avoid an error.
5727 Use char because int might match the return type of a GCC
5728 builtin and then its argument prototype would still apply. */
5729 #ifdef __cplusplus
5730 extern "C"
5731 #endif
5732 char getifaddrs ();
5733 /* The GNU C library defines this for functions which it implements
5734 to always fail with ENOSYS. Some functions are actually named
5735 something starting with __ and the normal name is an alias. */
5736 #if defined __stub_getifaddrs || defined __stub___getifaddrs
5737 choke me
5738 #endif
5739
5740 int
5741 main ()
5742 {
5743 return getifaddrs ();
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (ac_try="$ac_link"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_link") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest$ac_exeext &&
5765 $as_test_x conftest$ac_exeext; then
5766 ac_cv_func_getifaddrs=yes
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771 ac_cv_func_getifaddrs=no
5772 fi
5773
5774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5775 conftest$ac_exeext conftest.$ac_ext
5776 fi
5777 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5778 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
5779 if test $ac_cv_func_getifaddrs = yes; then
5780
5781 #
5782 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5783 # as well, just in case some platform is really weird.
5784 #
5785 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5786 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5787 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5788 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 fi
5791 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5792 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5793 else
5794 # Is the header compilable?
5795 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5796 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <ifaddrs.h>
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_header_compiler=yes
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_header_compiler=no
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6; }
5834
5835 # Is the header present?
5836 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5837 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <ifaddrs.h>
5845 _ACEOF
5846 if { (ac_try="$ac_cpp conftest.$ac_ext"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 }; then
5862 ac_header_preproc=yes
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_header_preproc=no
5868 fi
5869
5870 rm -f conftest.err conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5872 echo "${ECHO_T}$ac_header_preproc" >&6; }
5873
5874 # So? What about this header?
5875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5876 yes:no: )
5877 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5878 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5880 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5881 ac_header_preproc=yes
5882 ;;
5883 no:yes:* )
5884 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5885 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5887 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5889 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5891 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5893 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5895 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5896
5897 ;;
5898 esac
5899 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5900 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5901 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 ac_cv_header_ifaddrs_h=$ac_header_preproc
5905 fi
5906 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5907 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5908
5909 fi
5910 if test $ac_cv_header_ifaddrs_h = yes; then
5911
5912 #
5913 # We have the header, so we use "getifaddrs()" to
5914 # get the list of interfaces.
5915 #
5916 V_FINDALLDEVS=getad
5917
5918 else
5919
5920 #
5921 # We don't have the header - give up.
5922 # XXX - we could also fall back on some other
5923 # mechanism, but, for now, this'll catch this
5924 # problem so that we can at least try to figure
5925 # out something to do on systems with "getifaddrs()"
5926 # but without "ifaddrs.h", if there is something
5927 # we can do on those systems.
5928 #
5929 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5930 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5931 { (exit 1); exit 1; }; }
5932
5933 fi
5934
5935
5936
5937 else
5938
5939 #
5940 # Well, we don't have "getifaddrs()", so we have to use
5941 # some other mechanism; determine what that mechanism is.
5942 #
5943 # The first thing we use is the type of capture mechanism,
5944 # which is somewhat of a proxy for the OS we're using.
5945 #
5946 case "$V_PCAP" in
5947
5948 dlpi)
5949 #
5950 # This might be Solaris 8 or later, with
5951 # SIOCGLIFCONF, or it might be some other OS
5952 # or some older version of Solaris, with
5953 # just SIOCGIFCONF.
5954 #
5955 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5956 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
5957 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <sys/param.h>
5967 #include <sys/file.h>
5968 #include <sys/ioctl.h>
5969 #include <sys/socket.h>
5970 #include <sys/sockio.h>
5971 int
5972 main ()
5973 {
5974 ioctl(0, SIOCGLIFCONF, (char *)0);
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
5996 ac_cv_lbl_have_siocglifconf=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_cv_lbl_have_siocglifconf=no
6002 fi
6003
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 fi
6006
6007 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
6008 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
6009 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6010 V_FINDALLDEVS=glifc
6011 else
6012 V_FINDALLDEVS=gifc
6013 fi
6014 ;;
6015
6016 *)
6017 #
6018 # Assume we just have SIOCGIFCONF.
6019 # (XXX - on at least later Linux kernels, there's
6020 # another mechanism, and we should be using that
6021 # instead.)
6022 #
6023 V_FINDALLDEVS=gifc
6024 ;;
6025 esac
6026 fi
6027
6028 fi
6029
6030 { echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
6031 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6; }
6032 # Check whether --enable-ipv6 was given.
6033 if test "${enable_ipv6+set}" = set; then
6034 enableval=$enable_ipv6;
6035 fi
6036
6037 if test "$enable_ipv6" = "yes"; then
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define INET6 1
6041 _ACEOF
6042
6043 fi
6044 { echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
6045 echo "${ECHO_T}${enable_ipv6-no}" >&6; }
6046
6047 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
6048 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
6049 # Check whether --enable-optimizer-dbg was given.
6050 if test "${enable_optimizer_dbg+set}" = set; then
6051 enableval=$enable_optimizer_dbg;
6052 fi
6053
6054 if test "$enable_optimizer_dbg" = "yes"; then
6055
6056 cat >>confdefs.h <<\_ACEOF
6057 #define BDEBUG 1
6058 _ACEOF
6059
6060 fi
6061 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
6062 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
6063
6064 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
6065 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
6066 # Check whether --enable-yydebug was given.
6067 if test "${enable_yydebug+set}" = set; then
6068 enableval=$enable_yydebug;
6069 fi
6070
6071 if test "$enable_yydebug" = "yes"; then
6072
6073 cat >>confdefs.h <<\_ACEOF
6074 #define YYDEBUG 1
6075 _ACEOF
6076
6077 fi
6078 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
6079 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
6080
6081 case "$V_PCAP" in
6082
6083 dlpi)
6084
6085
6086 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6087 do
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 fi
6095 ac_res=`eval echo '${'$as_ac_Header'}'`
6096 { echo "$as_me:$LINENO: result: $ac_res" >&5
6097 echo "${ECHO_T}$ac_res" >&6; }
6098 else
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <$ac_header>
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6113 case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.$ac_objext; then
6128 ac_header_compiler=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_header_compiler=no
6134 fi
6135
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6139
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <$ac_header>
6150 _ACEOF
6151 if { (ac_try="$ac_cpp conftest.$ac_ext"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 }; then
6167 ac_header_preproc=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
6173 fi
6174
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6178
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6181 yes:no: )
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6187 ;;
6188 no:yes:* )
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6201
6202 ;;
6203 esac
6204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 eval "$as_ac_Header=\$ac_header_preproc"
6210 fi
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214
6215 fi
6216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 _ACEOF
6220
6221 fi
6222
6223 done
6224
6225 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6226 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6227 if test -c /dev/dlpi ; then
6228 { echo "$as_me:$LINENO: result: yes" >&5
6229 echo "${ECHO_T}yes" >&6; }
6230
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_DEV_DLPI 1
6233 _ACEOF
6234
6235 else
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 dir="/dev/dlpi"
6239 { echo "$as_me:$LINENO: checking for $dir directory" >&5
6240 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6241 if test -d $dir ; then
6242 { echo "$as_me:$LINENO: result: yes" >&5
6243 echo "${ECHO_T}yes" >&6; }
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define PCAP_DEV_PREFIX "$dir"
6247 _ACEOF
6248
6249 else
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6252 fi
6253 fi
6254 ;;
6255
6256 linux)
6257 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
6258 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6259 if test "$cross_compiling" = yes; then
6260 if test "${ac_cv_linux_vers+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 ac_cv_linux_vers=unknown
6264 fi
6265
6266 else
6267 if test "${ac_cv_linux_vers+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 ac_cv_linux_vers=`uname -r 2>&1 | \
6271 sed -n -e '$s/.* //' -e '$s/\..*//p'`
6272 fi
6273
6274 fi
6275 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6276 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6277 if test $ac_cv_linux_vers = unknown ; then
6278 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6279 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6280 { (exit 1); exit 1; }; }
6281 fi
6282 if test $ac_cv_linux_vers -lt 2 ; then
6283 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6284 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6285 { (exit 1); exit 1; }; }
6286 fi
6287 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6288 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6289 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298
6299 # include <linux/if_packet.h>
6300 int
6301 main ()
6302 {
6303 struct tpacket_stats stats
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
6325 ac_cv_lbl_tpacket_stats=yes
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 ac_cv_lbl_tpacket_stats=no
6331 fi
6332
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 fi
6335
6336 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6337 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6338 if test $ac_cv_lbl_tpacket_stats = yes; then
6339
6340 cat >>confdefs.h <<\_ACEOF
6341 #define HAVE_TPACKET_STATS 1
6342 _ACEOF
6343
6344 fi
6345
6346 # Check whether --with-sita was given.
6347 if test "${with_sita+set}" = set; then
6348 withval=$with_sita;
6349
6350 cat >>confdefs.h <<\_ACEOF
6351 #define SITA 1
6352 _ACEOF
6353
6354 SSRC="pcap-sita.c"
6355 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6356 echo "$as_me: Enabling SITA ACN support" >&6;}
6357 V_FINDALLDEVS=sita
6358
6359 fi
6360
6361 ;;
6362
6363 dag)
6364 V_DEFS="$V_DEFS -DDAG_ONLY"
6365 ;;
6366
6367 septel)
6368 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
6369 ;;
6370
6371 null)
6372 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
6373 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
6375 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6376 ;;
6377
6378 esac
6379
6380 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
6381 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
6382 if test -r /proc/net/dev ; then
6383 ac_cv_lbl_proc_net_dev=yes
6384 else
6385 ac_cv_lbl_proc_net_dev=no
6386 fi
6387 if test $ac_cv_lbl_proc_net_dev = yes; then
6388
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_PROC_NET_DEV 1
6391 _ACEOF
6392
6393 fi
6394 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
6395 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
6396
6397 # Check for Endace DAG card support.
6398
6399 # Check whether --with-dag was given.
6400 if test "${with_dag+set}" = set; then
6401 withval=$with_dag;
6402 if test "$withval" = no
6403 then
6404 # User doesn't want DAG support.
6405 want_dag=no
6406 elif test "$withval" = yes
6407 then
6408 # User wants DAG support but hasn't specified a directory.
6409 want_dag=yes
6410 else
6411 # User wants DAG support and has specified a directory, so use the provided value.
6412 want_dag=yes
6413 dag_root=$withval
6414 fi
6415
6416 else
6417
6418 #
6419 # Use DAG API if present, otherwise don't
6420 #
6421 want_dag=ifpresent
6422
6423 fi
6424
6425
6426
6427 # Check whether --with-dag-includes was given.
6428 if test "${with_dag_includes+set}" = set; then
6429 withval=$with_dag_includes;
6430 # User wants DAG support and has specified a header directory, so use the provided value.
6431 want_dag=yes
6432 dag_include_dir=$withval
6433
6434 fi
6435
6436
6437
6438 # Check whether --with-dag-libraries was given.
6439 if test "${with_dag_libraries+set}" = set; then
6440 withval=$with_dag_libraries;
6441 # User wants DAG support and has specified a library directory, so use the provided value.
6442 want_dag=yes
6443 dag_lib_dir=$withval
6444
6445 fi
6446
6447
6448 case "$V_PCAP" in
6449 linux|bpf|dag)
6450 #
6451 # We support the DAG API if we're on Linux or BSD, or if we're
6452 # building a DAG-only libpcap.
6453 #
6454 ;;
6455 *)
6456 #
6457 # If the user explicitly requested DAG, tell them it's not
6458 # supported.
6459 #
6460 # If they expressed no preference, don't include it.
6461 #
6462 if test $want_dag = yes; then
6463 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6464 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6465 { (exit 1); exit 1; }; }
6466 elif test $want_dag = yes; then
6467 want_dag=no
6468 fi
6469 ;;
6470 esac
6471
6472 ac_cv_lbl_dag_api=no
6473 if test "$want_dag" != no; then
6474
6475 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6476 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
6477
6478 # If necessary, set default paths for DAG API headers and libraries.
6479 if test -z "$dag_root"; then
6480 dag_root=/usr/local
6481 fi
6482
6483 if test -z "$dag_include_dir"; then
6484 dag_include_dir="$dag_root/include"
6485 fi
6486
6487 if test -z "$dag_lib_dir"; then
6488 dag_lib_dir="$dag_root/lib"
6489 fi
6490
6491 if test -z "$dag_tools_dir"; then
6492 dag_tools_dir="$dag_root/tools"
6493 fi
6494
6495 if test -r $dag_include_dir/dagapi.h; then
6496 ac_cv_lbl_dag_api=yes
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6499 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6500 fi
6501
6502 if test $ac_cv_lbl_dag_api = yes; then
6503
6504 { echo "$as_me:$LINENO: checking dagapi.o" >&5
6505 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
6506 dagapi_obj=no
6507 if test -r $dag_tools_dir/dagapi.o; then
6508 # 2.4.x.
6509 dagapi_obj=$dag_tools_dir/dagapi.o
6510 elif test -r $dag_lib_dir/dagapi.o; then
6511 # 2.5.x.
6512 dagapi_obj=$dag_lib_dir/dagapi.o
6513 elif test -r $dag_lib_dir/libdag.a; then
6514 # 2.5.x.
6515 ar x $dag_lib_dir/libdag.a dagapi.o
6516 if test -r ./dagapi.o; then
6517 dagapi_obj=./dagapi.o
6518 else
6519 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o
6520 if test -r ./libdag_la-dagapi.o; then
6521 dagapi_obj=./libdag_la-dagapi.o
6522 fi
6523 fi
6524 fi
6525
6526 if test $dagapi_obj = no; then
6527 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6528 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6529 ac_cv_lbl_dag_api=no
6530 else
6531 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6532 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
6533 fi
6534 fi
6535
6536 if test $ac_cv_lbl_dag_api = yes; then
6537
6538 { echo "$as_me:$LINENO: checking dagopts.o" >&5
6539 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
6540 dagopts_obj=no
6541 if test -r $dag_tools_dir/dagopts.o; then
6542 # 2.4.x.
6543 dagopts_obj=$dag_tools_dir/dagopts.o
6544 elif test -r $dag_lib_dir/dagopts.o; then
6545 # 2.5.x.
6546 dagopts_obj=$dag_lib_dir/dagopts.o
6547 elif test -r $dag_lib_dir/libdag.a; then
6548 # 2.5.x.
6549 ar x $dag_lib_dir/libdag.a dagopts.o
6550 if test -r ./dagopts.o; then
6551 dagopts_obj=./dagopts.o
6552 else
6553 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o
6554 if test -r ./libdag_la-dagopts.o; then
6555 dagopts_obj=./libdag_la-dagopts.o
6556 fi
6557 fi
6558 fi
6559
6560 if test $dagopts_obj = no; then
6561 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6562 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6563 ac_cv_lbl_dag_api=no
6564 else
6565 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6566 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
6567 fi
6568 fi
6569
6570 if test $ac_cv_lbl_dag_api = yes; then
6571 # Under 2.5.x only we need to add dagreg.o.
6572 if test -r $dag_include_dir/dagreg.h; then
6573 { echo "$as_me:$LINENO: checking dagreg.o" >&5
6574 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
6575 dagreg_obj=no
6576 if test -r $dag_lib_dir/dagreg.o; then
6577 # Object file is ready and waiting.
6578 dagreg_obj=$dag_lib_dir/dagreg.o
6579 elif test -r $dag_lib_dir/libdag.a; then
6580 # Extract from libdag.a.
6581 ar x $dag_lib_dir/libdag.a dagreg.o
6582 if test -r ./dagreg.o; then
6583 dagreg_obj=./dagreg.o
6584 else
6585 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o
6586 if test -r ./libdag_la-dagreg.o; then
6587 dagreg_obj=./libdag_la-dagreg.o
6588 fi
6589 fi
6590 fi
6591
6592 if test $dagreg_obj = no; then
6593 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
6594 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
6595 ac_cv_lbl_dag_api=no
6596 else
6597 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6598 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
6599 fi
6600 fi
6601 fi
6602
6603 if test $ac_cv_lbl_dag_api = yes; then
6604 V_INCLS="$V_INCLS -I$dag_include_dir"
6605 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6606 if test $V_PCAP != dag ; then
6607 SSRC="pcap-dag.c"
6608 fi
6609
6610 # See if we can find a general version string.
6611 # Don't need to save and restore LIBS to prevent -ldag being
6612 # included if there's a found-action (arg 3).
6613 saved_ldflags=$LDFLAGS
6614 LDFLAGS="-L$dag_lib_dir"
6615 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6616 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
6617 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 ac_check_lib_save_LIBS=$LIBS
6621 LIBS="-ldag $LIBS"
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 char dag_attach_stream ();
6636 int
6637 main ()
6638 {
6639 return dag_attach_stream ();
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6646 case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest$ac_exeext &&
6661 $as_test_x conftest$ac_exeext; then
6662 ac_cv_lib_dag_dag_attach_stream=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_lib_dag_dag_attach_stream=no
6668 fi
6669
6670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LIBS=$ac_check_lib_save_LIBS
6673 fi
6674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6675 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
6676 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6677 dag_version="2.5.x"
6678 else
6679 dag_version="2.4.x"
6680 fi
6681
6682 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6683 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
6684 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-ldag $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695
6696 /* Override any GCC internal prototype to avoid an error.
6697 Use char because int might match the return type of a GCC
6698 builtin and then its argument prototype would still apply. */
6699 #ifdef __cplusplus
6700 extern "C"
6701 #endif
6702 char dag_get_erf_types ();
6703 int
6704 main ()
6705 {
6706 return dag_get_erf_types ();
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (ac_try="$ac_link"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_link") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest$ac_exeext &&
6728 $as_test_x conftest$ac_exeext; then
6729 ac_cv_lib_dag_dag_get_erf_types=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 ac_cv_lib_dag_dag_get_erf_types=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6740 fi
6741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6742 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6743 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6744
6745
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_DAG_GET_ERF_TYPES 1
6748 _ACEOF
6749
6750 fi
6751
6752 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
6753 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
6754 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 ac_check_lib_save_LIBS=$LIBS
6758 LIBS="-ldag $LIBS"
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765
6766 /* Override any GCC internal prototype to avoid an error.
6767 Use char because int might match the return type of a GCC
6768 builtin and then its argument prototype would still apply. */
6769 #ifdef __cplusplus
6770 extern "C"
6771 #endif
6772 char dag_get_stream_erf_types ();
6773 int
6774 main ()
6775 {
6776 return dag_get_stream_erf_types ();
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 rm -f conftest.$ac_objext conftest$ac_exeext
6782 if { (ac_try="$ac_link"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_link") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest$ac_exeext &&
6798 $as_test_x conftest$ac_exeext; then
6799 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 ac_cv_lib_dag_dag_get_stream_erf_types=no
6805 fi
6806
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6810 fi
6811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6812 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6813 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
6814
6815
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
6818 _ACEOF
6819
6820 fi
6821
6822 LDFLAGS=$saved_ldflags
6823
6824 if test "$dag_version" = 2.5.x; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_DAG_STREAMS_API 1
6828 _ACEOF
6829
6830 DAGLIBS="-ldag"
6831 fi
6832
6833 # See if we can find a specific version string.
6834 { echo "$as_me:$LINENO: checking the DAG API version" >&5
6835 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6; }
6836 if test -r "$dag_root/VERSION"; then
6837 dag_version="`cat $dag_root/VERSION`"
6838 fi
6839 { echo "$as_me:$LINENO: result: $dag_version" >&5
6840 echo "${ECHO_T}$dag_version" >&6; }
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DAG_API 1
6844 _ACEOF
6845
6846 fi
6847
6848 if test $ac_cv_lbl_dag_api = no; then
6849 if test "$want_dag" = yes; then
6850 # User wanted DAG support but we couldn't find it.
6851 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6852 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6853 { (exit 1); exit 1; }; }
6854 fi
6855
6856 if test "$V_PCAP" = dag; then
6857 # User requested "dag" capture type but the DAG API wasn't
6858 # found.
6859 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
6860 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
6861 { (exit 1); exit 1; }; }
6862 fi
6863 fi
6864
6865
6866 # Check whether --with-septel was given.
6867 if test "${with_septel+set}" = set; then
6868 withval=$with_septel;
6869 if test "$withval" = no
6870 then
6871 want_septel=no
6872 elif test "$withval" = yes
6873 then
6874 want_septel=yes
6875 septel_root=
6876 else
6877 want_septel=yes
6878 septel_root=$withval
6879 fi
6880
6881 else
6882
6883 #
6884 # Use Septel API if present, otherwise don't
6885 #
6886 want_septel=ifpresent
6887 septel_root=./../septel
6888
6889 fi
6890
6891 ac_cv_lbl_septel_api=no
6892 case "$V_PCAP" in
6893 linux|septel)
6894 #
6895 # We support the Septel API if we're on Linux, or if we're building
6896 # a Septel-only libpcap.
6897 #
6898 ;;
6899 *)
6900 #
6901 # If the user explicitly requested Septel, tell them it's not
6902 # supported.
6903 #
6904 # If they expressed no preference, don't include it.
6905 #
6906 if test $want_septel = yes; then
6907 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6908 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6909 { (exit 1); exit 1; }; }
6910 elif test $want_septel = yes; then
6911 want_septel=no
6912 fi
6913 ;;
6914 esac
6915
6916 if test "$with_septel" != no; then
6917 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6918 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
6919
6920 if test -z "$septel_root"; then
6921 septel_root=$srcdir/../septel
6922
6923 fi
6924
6925 septel_tools_dir="$septel_root"
6926 septel_include_dir="$septel_root/INC"
6927 DEF="-DHAVE_SEPTEL_API"
6928
6929 ac_cv_lbl_septel_api=no
6930 if test -r "$septel_include_dir/msg.h"; then
6931 V_INCLS="$V_INCLS -I$septel_include_dir"
6932 V_DEFS="$V_DEFS $DEF"
6933 V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
6934
6935 if test "$V_PCAP" != septel ; then
6936 SSRC="pcap-septel.c"
6937
6938 fi
6939 ac_cv_lbl_septel_api=yes
6940 fi
6941
6942 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6943 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
6944 if test $ac_cv_lbl_septel_api = no; then
6945 if test "$want_septel" = yes; then
6946 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6947 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6948 { (exit 1); exit 1; }; }
6949 fi
6950 else
6951
6952 cat >>confdefs.h <<\_ACEOF
6953 #define HAVE_SEPTEL_API 1
6954 _ACEOF
6955
6956 fi
6957 fi
6958
6959 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6960 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6961 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6962 { (exit 1); exit 1; }; }
6963 fi
6964
6965
6966
6967 # Check whether --with-flex was given.
6968 if test "${with_flex+set}" = set; then
6969 withval=$with_flex;
6970 fi
6971
6972
6973 # Check whether --with-bison was given.
6974 if test "${with_bison+set}" = set; then
6975 withval=$with_bison;
6976 fi
6977
6978 if test "$with_flex" = no ; then
6979 V_LEX=lex
6980 else
6981 for ac_prog in flex
6982 do
6983 # Extract the first word of "$ac_prog", so it can be a program name with args.
6984 set dummy $ac_prog; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_V_LEX+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 if test -n "$V_LEX"; then
6991 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_V_LEX="$ac_prog"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 V_LEX=$ac_cv_prog_V_LEX
7011 if test -n "$V_LEX"; then
7012 { echo "$as_me:$LINENO: result: $V_LEX" >&5
7013 echo "${ECHO_T}$V_LEX" >&6; }
7014 else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 test -n "$V_LEX" && break
7021 done
7022 test -n "$V_LEX" || V_LEX="lex"
7023
7024 fi
7025 if test "$V_LEX" = flex ; then
7026 # The -V flag was added in 2.4
7027 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
7028 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
7029 if test "${ac_cv_lbl_flex_v24+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 if flex -V >/dev/null 2>&1; then
7033 ac_cv_lbl_flex_v24=yes
7034 else
7035 ac_cv_lbl_flex_v24=no
7036 fi
7037 fi
7038
7039 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
7040 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
7041 if test $ac_cv_lbl_flex_v24 = no ; then
7042 s="2.4 or higher required"
7043 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
7044 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
7045 V_LEX=lex
7046 fi
7047 fi
7048 if test "$with_bison" = no ; then
7049 V_YACC=yacc
7050 else
7051 for ac_prog in bison
7052 do
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_prog_V_YACC+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test -n "$V_YACC"; then
7061 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_V_YACC="$ac_prog"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 V_YACC=$ac_cv_prog_V_YACC
7081 if test -n "$V_YACC"; then
7082 { echo "$as_me:$LINENO: result: $V_YACC" >&5
7083 echo "${ECHO_T}$V_YACC" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089
7090 test -n "$V_YACC" && break
7091 done
7092 test -n "$V_YACC" || V_YACC="yacc"
7093
7094 fi
7095 if test "$V_YACC" = bison ; then
7096 V_YACC="$V_YACC -y"
7097 fi
7098 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
7099 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
7100 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
7101 V_LEX=lex
7102 V_YACC=yacc
7103 fi
7104 if test "$V_LEX" = flex -a -n "pcap_" ; then
7105 V_LEX="$V_LEX -Ppcap_"
7106 V_YACC="$V_YACC -p pcap_"
7107 fi
7108 if test "$V_LEX" = lex ; then
7109 # Some versions of lex can't handle the definitions section of scanner.l .
7110 # Try lexing it and complain if it can't deal.
7111 { echo "$as_me:$LINENO: checking for capable lex" >&5
7112 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
7113 if test "${tcpdump_cv_capable_lex+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 if lex -t scanner.l > /dev/null 2>&1; then
7117 tcpdump_cv_capable_lex=yes
7118 else
7119 tcpdump_cv_capable_lex=insufficient
7120 fi
7121 fi
7122 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
7123 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
7124 if test $tcpdump_cv_capable_lex = insufficient ; then
7125 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
7126 libpcap. flex is a lex replacement that has many advantages, including
7127 being able to compile libpcap. For more information, see
7128 http://www.gnu.org/software/flex/flex.html ." >&5
7129 echo "$as_me: error: Your operating system's lex is insufficient to compile
7130 libpcap. flex is a lex replacement that has many advantages, including
7131 being able to compile libpcap. For more information, see
7132 http://www.gnu.org/software/flex/flex.html ." >&2;}
7133 { (exit 1); exit 1; }; }
7134 fi
7135 fi
7136
7137 DYEXT="so"
7138 case "$host_os" in
7139
7140 aix*)
7141
7142 cat >>confdefs.h <<\_ACEOF
7143 #define _SUN 1
7144 _ACEOF
7145
7146 ;;
7147
7148 hpux9*)
7149
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_HPUX9 1
7152 _ACEOF
7153
7154 ;;
7155
7156 hpux10.0*)
7157 ;;
7158
7159 hpux10.1*)
7160 ;;
7161
7162 hpux*)
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_HPUX10_20_OR_LATER 1
7166 _ACEOF
7167
7168 ;;
7169
7170 sinix*)
7171 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
7172 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
7173 if test "${ac_cv_cc_sinix_defined+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182
7183 int
7184 main ()
7185 {
7186 int i = sinix;
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_cc_sinix_defined=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_cc_sinix_defined=no
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218
7219 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
7220 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
7221 if test $ac_cv_cc_sinix_defined = no ; then
7222
7223 cat >>confdefs.h <<\_ACEOF
7224 #define sinix 1
7225 _ACEOF
7226
7227 fi
7228 ;;
7229
7230 solaris*)
7231
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_SOLARIS 1
7234 _ACEOF
7235
7236 ;;
7237
7238 darwin*)
7239 DYEXT="dylib"
7240 V_CCOPT="$V_CCOPT -fno-common"
7241 ;;
7242
7243 linux*)
7244 V_CCOPT="$V_CCOPT -fPIC"
7245 ;;
7246
7247 esac
7248
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_RANLIB+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 if test -n "$RANLIB"; then
7258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 RANLIB=$ac_cv_prog_RANLIB
7278 if test -n "$RANLIB"; then
7279 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7280 echo "${ECHO_T}$RANLIB" >&6; }
7281 else
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7284 fi
7285
7286
7287 fi
7288 if test -z "$ac_cv_prog_RANLIB"; then
7289 ac_ct_RANLIB=$RANLIB
7290 # Extract the first word of "ranlib", so it can be a program name with args.
7291 set dummy ranlib; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 if test -n "$ac_ct_RANLIB"; then
7298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_ac_ct_RANLIB="ranlib"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7318 if test -n "$ac_ct_RANLIB"; then
7319 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7320 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7321 else
7322 { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7324 fi
7325
7326 if test "x$ac_ct_RANLIB" = x; then
7327 RANLIB=":"
7328 else
7329 case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339 RANLIB=$ac_ct_RANLIB
7340 fi
7341 else
7342 RANLIB="$ac_cv_prog_RANLIB"
7343 fi
7344
7345
7346 rm -f os-proto.h
7347 if test "${LBL_CFLAGS+set}" = set; then
7348 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7349 fi
7350 if test -f .devel ; then
7351 if test "$GCC" = yes ; then
7352 if test "${LBL_CFLAGS+set}" != set; then
7353 if test "$ac_cv_prog_cc_g" = yes ; then
7354 V_CCOPT="-g $V_CCOPT"
7355 fi
7356 V_CCOPT="$V_CCOPT -Wall"
7357 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7358 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
7359 fi
7360 fi
7361 else
7362 case "$target_os" in
7363
7364 irix6*)
7365 V_CCOPT="$V_CCOPT -n32"
7366 ;;
7367
7368 *)
7369 ;;
7370 esac
7371 fi
7372 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7373 name="lbl/os-$os.h"
7374 if test -f $name ; then
7375 ln -s $name os-proto.h
7376
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_OS_PROTO_H 1
7379 _ACEOF
7380
7381 else
7382 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
7383 echo "$as_me: WARNING: can't find $name" >&2;}
7384 fi
7385 fi
7386
7387 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
7388 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
7389 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398
7399 # include <sys/types.h>
7400 # include <sys/socket.h>
7401 int
7402 main ()
7403 {
7404 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 ac_cv_lbl_sockaddr_has_sa_len=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 ac_cv_lbl_sockaddr_has_sa_len=no
7432 fi
7433
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436
7437 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7438 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7439 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7440
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_SOCKADDR_SA_LEN 1
7443 _ACEOF
7444
7445 fi
7446
7447 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
7448 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
7449 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458
7459 # include <sys/types.h>
7460 # include <sys/socket.h>
7461 int
7462 main ()
7463 {
7464 u_int i = sizeof (struct sockaddr_storage)
7465 ;
7466 return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
7486 ac_cv_lbl_has_sockaddr_storage=yes
7487 else
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_cv_lbl_has_sockaddr_storage=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496
7497 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7498 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
7499 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7500
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_SOCKADDR_STORAGE 1
7503 _ACEOF
7504
7505 fi
7506
7507 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7508 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
7509 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518
7519 # include <sys/types.h>
7520 # include <sys/dlpi.h>
7521 # include <sys/dlpi_ext.h>
7522 int
7523 main ()
7524 {
7525 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7553 fi
7554
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 fi
7557
7558 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7559 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7560 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7564 _ACEOF
7565
7566 fi
7567
7568 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7569 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
7570 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 case "$host_cpu" in
7574
7575 #
7576 # These are CPU types where:
7577 #
7578 # the CPU faults on an unaligned access, but at least some
7579 # OSes that support that CPU catch the fault and simulate
7580 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7581 # the simulation is slow, so we don't want to use it;
7582 #
7583 # the CPU, I infer (from the old
7584 #
7585 # XXX: should also check that they don't do weird things (like on arm)
7586 #
7587 # comment) doesn't fault on unaligned accesses, but doesn't
7588 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7589 #
7590 # for whatever reason, the test program doesn't work
7591 # (this has been claimed to be the case for several of those
7592 # CPUs - I don't know what the problem is; the problem
7593 # was reported as "the test program dumps core" for SuperH,
7594 # but that's what the test program is *supposed* to do -
7595 # it dumps core before it writes anything, so the test
7596 # for an empty output file should find an empty output
7597 # file and conclude that unaligned accesses don't work).
7598 #
7599 # This run-time test won't work if you're cross-compiling, so
7600 # in order to support cross-compiling for a particular CPU,
7601 # we have to wire in the list of CPU types anyway, as far as
7602 # I know, so perhaps we should just have a set of CPUs on
7603 # which we know it doesn't work, a set of CPUs on which we
7604 # know it does work, and have the script just fail on other
7605 # cpu types and update it when such a failure occurs.
7606 #
7607 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
7608 ac_cv_lbl_unaligned_fail=yes
7609 ;;
7610
7611 *)
7612 cat >conftest.c <<EOF
7613 # include <sys/types.h>
7614 # include <sys/wait.h>
7615 # include <stdio.h>
7616 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7617 main() {
7618 unsigned int i;
7619 pid_t pid;
7620 int status;
7621 /* avoid "core dumped" message */
7622 pid = fork();
7623 if (pid < 0)
7624 exit(2);
7625 if (pid > 0) {
7626 /* parent */
7627 pid = waitpid(pid, &status, 0);
7628 if (pid < 0)
7629 exit(3);
7630 exit(!WIFEXITED(status));
7631 }
7632 /* child */
7633 i = *(unsigned int *)&a[1];
7634 printf("%d\n", i);
7635 exit(0);
7636 }
7637 EOF
7638 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7639 conftest.c $LIBS >/dev/null 2>&1
7640 if test ! -x conftest ; then
7641 ac_cv_lbl_unaligned_fail=yes
7642 else
7643 ./conftest >conftest.out
7644 if test ! -s conftest.out ; then
7645 ac_cv_lbl_unaligned_fail=yes
7646 else
7647 ac_cv_lbl_unaligned_fail=no
7648 fi
7649 fi
7650 rm -f conftest* core core.conftest
7651 ;;
7652 esac
7653 fi
7654
7655 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7656 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
7657 if test $ac_cv_lbl_unaligned_fail = yes ; then
7658
7659 cat >>confdefs.h <<\_ACEOF
7660 #define LBL_ALIGN 1
7661 _ACEOF
7662
7663 fi
7664
7665 #
7666 # Makefile.in includes rules to generate version.h, so we assume
7667 # that it will be generated if autoconf is used.
7668 #
7669
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_VERSION_H 1
7672 _ACEOF
7673
7674
7675 rm -f net
7676 ln -s ${srcdir}/bpf/net net
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
7692 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
7693 case "$host_os" in
7694 linux*)
7695
7696 cat >>confdefs.h <<\_ACEOF
7697 #define PCAP_SUPPORT_USB 1
7698 _ACEOF
7699
7700 USB_SRC=pcap-usb-linux.c
7701 { echo "$as_me:$LINENO: result: yes" >&5
7702 echo "${ECHO_T}yes" >&6; }
7703 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7704 if test $? -ne 0 ; then
7705 ac_usb_dev_name="usbmon"
7706 fi
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7710 _ACEOF
7711
7712 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7713 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7714 ;;
7715 *)
7716 { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7718 ;;
7719 esac
7720
7721
7722
7723 case "$host_os" in
7724 linux*)
7725 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7726 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7727 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
7728 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 fi
7731 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7732 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
7733 else
7734 # Is the header compilable?
7735 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
7736 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7744 #include <bluetooth/bluetooth.h>
7745 _ACEOF
7746 rm -f conftest.$ac_objext
7747 if { (ac_try="$ac_compile"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_compile") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest.$ac_objext; then
7763 ac_header_compiler=yes
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_header_compiler=no
7769 fi
7770
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7773 echo "${ECHO_T}$ac_header_compiler" >&6; }
7774
7775 # Is the header present?
7776 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
7777 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <bluetooth/bluetooth.h>
7785 _ACEOF
7786 if { (ac_try="$ac_cpp conftest.$ac_ext"
7787 case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } >/dev/null && {
7799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 }; then
7802 ac_header_preproc=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_header_preproc=no
7808 fi
7809
7810 rm -f conftest.err conftest.$ac_ext
7811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7812 echo "${ECHO_T}$ac_header_preproc" >&6; }
7813
7814 # So? What about this header?
7815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7816 yes:no: )
7817 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
7818 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
7820 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
7821 ac_header_preproc=yes
7822 ;;
7823 no:yes:* )
7824 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
7829 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
7831 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
7833 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
7835 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
7836
7837 ;;
7838 esac
7839 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
7840 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
7841 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
7845 fi
7846 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
7847 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
7848
7849 fi
7850 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
7851
7852
7853 cat >>confdefs.h <<\_ACEOF
7854 #define PCAP_SUPPORT_BT 1
7855 _ACEOF
7856
7857 BT_SRC=pcap-bt-linux.c
7858 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
7859 echo "$as_me: Bluetooth sniffing is supported" >&6;}
7860
7861 else
7862 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7863 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7864
7865 fi
7866
7867
7868 ;;
7869 *)
7870 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
7871 echo "$as_me: no Bluetooth sniffing support" >&6;}
7872 ;;
7873 esac
7874
7875
7876
7877 # Find a good install program. We prefer a C program (faster),
7878 # so one script is as good as another. But avoid the broken or
7879 # incompatible versions:
7880 # SysV /etc/install, /usr/sbin/install
7881 # SunOS /usr/etc/install
7882 # IRIX /sbin/install
7883 # AIX /bin/install
7884 # AmigaOS /C/install, which installs bootblocks on floppy discs
7885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7888 # OS/2's system install, which has a completely different semantic
7889 # ./install, which can be erroneously created by make from ./install.sh.
7890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7892 if test -z "$INSTALL"; then
7893 if test "${ac_cv_path_install+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 # Account for people who put trailing slashes in PATH elements.
7902 case $as_dir/ in
7903 ./ | .// | /cC/* | \
7904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7906 /usr/ucb/* ) ;;
7907 *)
7908 # OSF1 and SCO ODT 3.0 have their own names for install.
7909 # Don't use installbsd from OSF since it installs stuff as root
7910 # by default.
7911 for ac_prog in ginstall scoinst install; do
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7914 if test $ac_prog = install &&
7915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7916 # AIX install. It has an incompatible calling convention.
7917 :
7918 elif test $ac_prog = install &&
7919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7920 # program-specific install script used by HP pwplus--don't use.
7921 :
7922 else
7923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7924 break 3
7925 fi
7926 fi
7927 done
7928 done
7929 ;;
7930 esac
7931 done
7932 IFS=$as_save_IFS
7933
7934
7935 fi
7936 if test "${ac_cv_path_install+set}" = set; then
7937 INSTALL=$ac_cv_path_install
7938 else
7939 # As a last resort, use the slow shell script. Don't cache a
7940 # value for INSTALL within a source directory, because that will
7941 # break other packages using the cache if that directory is
7942 # removed, or if the value is a relative name.
7943 INSTALL=$ac_install_sh
7944 fi
7945 fi
7946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7947 echo "${ECHO_T}$INSTALL" >&6; }
7948
7949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7950 # It thinks the first close brace ends the variable substitution.
7951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7952
7953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7954
7955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7956
7957
7958 ac_config_headers="$ac_config_headers config.h"
7959
7960
7961 ac_config_files="$ac_config_files Makefile"
7962
7963 cat >confcache <<\_ACEOF
7964 # This file is a shell script that caches the results of configure
7965 # tests run on this system so they can be shared between configure
7966 # scripts and configure runs, see configure's option --config-cache.
7967 # It is not useful on other systems. If it contains results you don't
7968 # want to keep, you may remove or edit it.
7969 #
7970 # config.status only pays attention to the cache file if you give it
7971 # the --recheck option to rerun configure.
7972 #
7973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7975 # following values.
7976
7977 _ACEOF
7978
7979 # The following way of writing the cache mishandles newlines in values,
7980 # but we know of no workaround that is simple, portable, and efficient.
7981 # So, we kill variables containing newlines.
7982 # Ultrix sh set writes to stderr and can't be redirected directly,
7983 # and sets the high bit in the cache file unless we assign to the vars.
7984 (
7985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7986 eval ac_val=\$$ac_var
7987 case $ac_val in #(
7988 *${as_nl}*)
7989 case $ac_var in #(
7990 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7991 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7992 esac
7993 case $ac_var in #(
7994 _ | IFS | as_nl) ;; #(
7995 *) $as_unset $ac_var ;;
7996 esac ;;
7997 esac
7998 done
7999
8000 (set) 2>&1 |
8001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8002 *${as_nl}ac_space=\ *)
8003 # `set' does not quote correctly, so add quotes (double-quote
8004 # substitution turns \\\\ into \\, and sed turns \\ into \).
8005 sed -n \
8006 "s/'/'\\\\''/g;
8007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8008 ;; #(
8009 *)
8010 # `set' quotes correctly as required by POSIX, so do not add quotes.
8011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8012 ;;
8013 esac |
8014 sort
8015 ) |
8016 sed '
8017 /^ac_cv_env_/b end
8018 t clear
8019 :clear
8020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8021 t end
8022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8023 :end' >>confcache
8024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8025 if test -w "$cache_file"; then
8026 test "x$cache_file" != "x/dev/null" &&
8027 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8028 echo "$as_me: updating cache $cache_file" >&6;}
8029 cat confcache >$cache_file
8030 else
8031 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8032 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8033 fi
8034 fi
8035 rm -f confcache
8036
8037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8038 # Let make expand exec_prefix.
8039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8040
8041 DEFS=-DHAVE_CONFIG_H
8042
8043 ac_libobjs=
8044 ac_ltlibobjs=
8045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8046 # 1. Remove the extension, and $U if already installed.
8047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8048 ac_i=`echo "$ac_i" | sed "$ac_script"`
8049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8050 # will be set to the directory where LIBOBJS objects are built.
8051 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8052 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8053 done
8054 LIBOBJS=$ac_libobjs
8055
8056 LTLIBOBJS=$ac_ltlibobjs
8057
8058
8059
8060 : ${CONFIG_STATUS=./config.status}
8061 ac_clean_files_save=$ac_clean_files
8062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8065 cat >$CONFIG_STATUS <<_ACEOF
8066 #! $SHELL
8067 # Generated by $as_me.
8068 # Run this file to recreate the current configuration.
8069 # Compiler output produced by configure, useful for debugging
8070 # configure, is in config.log if it exists.
8071
8072 debug=false
8073 ac_cs_recheck=false
8074 ac_cs_silent=false
8075 SHELL=\${CONFIG_SHELL-$SHELL}
8076 _ACEOF
8077
8078 cat >>$CONFIG_STATUS <<\_ACEOF
8079 ## --------------------- ##
8080 ## M4sh Initialization. ##
8081 ## --------------------- ##
8082
8083 # Be more Bourne compatible
8084 DUALCASE=1; export DUALCASE # for MKS sh
8085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8086 emulate sh
8087 NULLCMD=:
8088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8089 # is contrary to our usage. Disable this feature.
8090 alias -g '${1+"$@"}'='"$@"'
8091 setopt NO_GLOB_SUBST
8092 else
8093 case `(set -o) 2>/dev/null` in
8094 *posix*) set -o posix ;;
8095 esac
8096
8097 fi
8098
8099
8100
8101
8102 # PATH needs CR
8103 # Avoid depending upon Character Ranges.
8104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8107 as_cr_digits='0123456789'
8108 as_cr_alnum=$as_cr_Letters$as_cr_digits
8109
8110 # The user is always right.
8111 if test "${PATH_SEPARATOR+set}" != set; then
8112 echo "#! /bin/sh" >conf$$.sh
8113 echo "exit 0" >>conf$$.sh
8114 chmod +x conf$$.sh
8115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8116 PATH_SEPARATOR=';'
8117 else
8118 PATH_SEPARATOR=:
8119 fi
8120 rm -f conf$$.sh
8121 fi
8122
8123 # Support unset when possible.
8124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8125 as_unset=unset
8126 else
8127 as_unset=false
8128 fi
8129
8130
8131 # IFS
8132 # We need space, tab and new line, in precisely that order. Quoting is
8133 # there to prevent editors from complaining about space-tab.
8134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8135 # splitting by setting IFS to empty value.)
8136 as_nl='
8137 '
8138 IFS=" "" $as_nl"
8139
8140 # Find who we are. Look in the path if we contain no directory separator.
8141 case $0 in
8142 *[\\/]* ) as_myself=$0 ;;
8143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8149 done
8150 IFS=$as_save_IFS
8151
8152 ;;
8153 esac
8154 # We did not find ourselves, most probably we were run as `sh COMMAND'
8155 # in which case we are not to be found in the path.
8156 if test "x$as_myself" = x; then
8157 as_myself=$0
8158 fi
8159 if test ! -f "$as_myself"; then
8160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8161 { (exit 1); exit 1; }
8162 fi
8163
8164 # Work around bugs in pre-3.0 UWIN ksh.
8165 for as_var in ENV MAIL MAILPATH
8166 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8167 done
8168 PS1='$ '
8169 PS2='> '
8170 PS4='+ '
8171
8172 # NLS nuisances.
8173 for as_var in \
8174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8176 LC_TELEPHONE LC_TIME
8177 do
8178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8179 eval $as_var=C; export $as_var
8180 else
8181 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8182 fi
8183 done
8184
8185 # Required to use basename.
8186 if expr a : '\(a\)' >/dev/null 2>&1 &&
8187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8188 as_expr=expr
8189 else
8190 as_expr=false
8191 fi
8192
8193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8194 as_basename=basename
8195 else
8196 as_basename=false
8197 fi
8198
8199
8200 # Name of the executable.
8201 as_me=`$as_basename -- "$0" ||
8202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8203 X"$0" : 'X\(//\)$' \| \
8204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8205 echo X/"$0" |
8206 sed '/^.*\/\([^/][^/]*\)\/*$/{
8207 s//\1/
8208 q
8209 }
8210 /^X\/\(\/\/\)$/{
8211 s//\1/
8212 q
8213 }
8214 /^X\/\(\/\).*/{
8215 s//\1/
8216 q
8217 }
8218 s/.*/./; q'`
8219
8220 # CDPATH.
8221 $as_unset CDPATH
8222
8223
8224
8225 as_lineno_1=$LINENO
8226 as_lineno_2=$LINENO
8227 test "x$as_lineno_1" != "x$as_lineno_2" &&
8228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8229
8230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8231 # uniformly replaced by the line number. The first 'sed' inserts a
8232 # line-number line after each line using $LINENO; the second 'sed'
8233 # does the real work. The second script uses 'N' to pair each
8234 # line-number line with the line containing $LINENO, and appends
8235 # trailing '-' during substitution so that $LINENO is not a special
8236 # case at line end.
8237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8238 # scripts with optimization help from Paolo Bonzini. Blame Lee
8239 # E. McMahon (1931-1989) for sed's syntax. :-)
8240 sed -n '
8241 p
8242 /[$]LINENO/=
8243 ' <$as_myself |
8244 sed '
8245 s/[$]LINENO.*/&-/
8246 t lineno
8247 b
8248 :lineno
8249 N
8250 :loop
8251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8252 t loop
8253 s/-\n.*//
8254 ' >$as_me.lineno &&
8255 chmod +x "$as_me.lineno" ||
8256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8257 { (exit 1); exit 1; }; }
8258
8259 # Don't try to exec as it changes $[0], causing all sort of problems
8260 # (the dirname of $[0] is not the place where we might find the
8261 # original and so on. Autoconf is especially sensitive to this).
8262 . "./$as_me.lineno"
8263 # Exit status is that of the last command.
8264 exit
8265 }
8266
8267
8268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8269 as_dirname=dirname
8270 else
8271 as_dirname=false
8272 fi
8273
8274 ECHO_C= ECHO_N= ECHO_T=
8275 case `echo -n x` in
8276 -n*)
8277 case `echo 'x\c'` in
8278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8279 *) ECHO_C='\c';;
8280 esac;;
8281 *)
8282 ECHO_N='-n';;
8283 esac
8284
8285 if expr a : '\(a\)' >/dev/null 2>&1 &&
8286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8287 as_expr=expr
8288 else
8289 as_expr=false
8290 fi
8291
8292 rm -f conf$$ conf$$.exe conf$$.file
8293 if test -d conf$$.dir; then
8294 rm -f conf$$.dir/conf$$.file
8295 else
8296 rm -f conf$$.dir
8297 mkdir conf$$.dir
8298 fi
8299 echo >conf$$.file
8300 if ln -s conf$$.file conf$$ 2>/dev/null; then
8301 as_ln_s='ln -s'
8302 # ... but there are two gotchas:
8303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8305 # In both cases, we have to default to `cp -p'.
8306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8307 as_ln_s='cp -p'
8308 elif ln conf$$.file conf$$ 2>/dev/null; then
8309 as_ln_s=ln
8310 else
8311 as_ln_s='cp -p'
8312 fi
8313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8314 rmdir conf$$.dir 2>/dev/null
8315
8316 if mkdir -p . 2>/dev/null; then
8317 as_mkdir_p=:
8318 else
8319 test -d ./-p && rmdir ./-p
8320 as_mkdir_p=false
8321 fi
8322
8323 if test -x / >/dev/null 2>&1; then
8324 as_test_x='test -x'
8325 else
8326 if ls -dL / >/dev/null 2>&1; then
8327 as_ls_L_option=L
8328 else
8329 as_ls_L_option=
8330 fi
8331 as_test_x='
8332 eval sh -c '\''
8333 if test -d "$1"; then
8334 test -d "$1/.";
8335 else
8336 case $1 in
8337 -*)set "./$1";;
8338 esac;
8339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8340 ???[sx]*):;;*)false;;esac;fi
8341 '\'' sh
8342 '
8343 fi
8344 as_executable_p=$as_test_x
8345
8346 # Sed expression to map a string onto a valid CPP name.
8347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8348
8349 # Sed expression to map a string onto a valid variable name.
8350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8351
8352
8353 exec 6>&1
8354
8355 # Save the log message, to keep $[0] and so on meaningful, and to
8356 # report actual input values of CONFIG_FILES etc. instead of their
8357 # values after options handling.
8358 ac_log="
8359 This file was extended by $as_me, which was
8360 generated by GNU Autoconf 2.61. Invocation command line was
8361
8362 CONFIG_FILES = $CONFIG_FILES
8363 CONFIG_HEADERS = $CONFIG_HEADERS
8364 CONFIG_LINKS = $CONFIG_LINKS
8365 CONFIG_COMMANDS = $CONFIG_COMMANDS
8366 $ $0 $@
8367
8368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8369 "
8370
8371 _ACEOF
8372
8373 cat >>$CONFIG_STATUS <<_ACEOF
8374 # Files that config.status was made for.
8375 config_files="$ac_config_files"
8376 config_headers="$ac_config_headers"
8377
8378 _ACEOF
8379
8380 cat >>$CONFIG_STATUS <<\_ACEOF
8381 ac_cs_usage="\
8382 \`$as_me' instantiates files from templates according to the
8383 current configuration.
8384
8385 Usage: $0 [OPTIONS] [FILE]...
8386
8387 -h, --help print this help, then exit
8388 -V, --version print version number and configuration settings, then exit
8389 -q, --quiet do not print progress messages
8390 -d, --debug don't remove temporary files
8391 --recheck update $as_me by reconfiguring in the same conditions
8392 --file=FILE[:TEMPLATE]
8393 instantiate the configuration file FILE
8394 --header=FILE[:TEMPLATE]
8395 instantiate the configuration header FILE
8396
8397 Configuration files:
8398 $config_files
8399
8400 Configuration headers:
8401 $config_headers
8402
8403 Report bugs to <bug-autoconf@gnu.org>."
8404
8405 _ACEOF
8406 cat >>$CONFIG_STATUS <<_ACEOF
8407 ac_cs_version="\\
8408 config.status
8409 configured by $0, generated by GNU Autoconf 2.61,
8410 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8411
8412 Copyright (C) 2006 Free Software Foundation, Inc.
8413 This config.status script is free software; the Free Software Foundation
8414 gives unlimited permission to copy, distribute and modify it."
8415
8416 ac_pwd='$ac_pwd'
8417 srcdir='$srcdir'
8418 INSTALL='$INSTALL'
8419 _ACEOF
8420
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8422 # If no file are specified by the user, then we need to provide default
8423 # value. By we need to know if files were specified by the user.
8424 ac_need_defaults=:
8425 while test $# != 0
8426 do
8427 case $1 in
8428 --*=*)
8429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8431 ac_shift=:
8432 ;;
8433 *)
8434 ac_option=$1
8435 ac_optarg=$2
8436 ac_shift=shift
8437 ;;
8438 esac
8439
8440 case $ac_option in
8441 # Handling of the options.
8442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8443 ac_cs_recheck=: ;;
8444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8445 echo "$ac_cs_version"; exit ;;
8446 --debug | --debu | --deb | --de | --d | -d )
8447 debug=: ;;
8448 --file | --fil | --fi | --f )
8449 $ac_shift
8450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8451 ac_need_defaults=false;;
8452 --header | --heade | --head | --hea )
8453 $ac_shift
8454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8455 ac_need_defaults=false;;
8456 --he | --h)
8457 # Conflict between --help and --header
8458 { echo "$as_me: error: ambiguous option: $1
8459 Try \`$0 --help' for more information." >&2
8460 { (exit 1); exit 1; }; };;
8461 --help | --hel | -h )
8462 echo "$ac_cs_usage"; exit ;;
8463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8464 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8465 ac_cs_silent=: ;;
8466
8467 # This is an error.
8468 -*) { echo "$as_me: error: unrecognized option: $1
8469 Try \`$0 --help' for more information." >&2
8470 { (exit 1); exit 1; }; } ;;
8471
8472 *) ac_config_targets="$ac_config_targets $1"
8473 ac_need_defaults=false ;;
8474
8475 esac
8476 shift
8477 done
8478
8479 ac_configure_extra_args=
8480
8481 if $ac_cs_silent; then
8482 exec 6>/dev/null
8483 ac_configure_extra_args="$ac_configure_extra_args --silent"
8484 fi
8485
8486 _ACEOF
8487 cat >>$CONFIG_STATUS <<_ACEOF
8488 if \$ac_cs_recheck; then
8489 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8490 CONFIG_SHELL=$SHELL
8491 export CONFIG_SHELL
8492 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8493 fi
8494
8495 _ACEOF
8496 cat >>$CONFIG_STATUS <<\_ACEOF
8497 exec 5>>config.log
8498 {
8499 echo
8500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8501 ## Running $as_me. ##
8502 _ASBOX
8503 echo "$ac_log"
8504 } >&5
8505
8506 _ACEOF
8507 cat >>$CONFIG_STATUS <<_ACEOF
8508 _ACEOF
8509
8510 cat >>$CONFIG_STATUS <<\_ACEOF
8511
8512 # Handling of arguments.
8513 for ac_config_target in $ac_config_targets
8514 do
8515 case $ac_config_target in
8516 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8518
8519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8521 { (exit 1); exit 1; }; };;
8522 esac
8523 done
8524
8525
8526 # If the user did not use the arguments to specify the items to instantiate,
8527 # then the envvar interface is used. Set only those that are not.
8528 # We use the long form for the default assignment because of an extremely
8529 # bizarre bug on SunOS 4.1.3.
8530 if $ac_need_defaults; then
8531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8533 fi
8534
8535 # Have a temporary directory for convenience. Make it in the build tree
8536 # simply because there is no reason against having it here, and in addition,
8537 # creating and moving files from /tmp can sometimes cause problems.
8538 # Hook for its removal unless debugging.
8539 # Note that there is a small window in which the directory will not be cleaned:
8540 # after its creation but before its name has been assigned to `$tmp'.
8541 $debug ||
8542 {
8543 tmp=
8544 trap 'exit_status=$?
8545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8546 ' 0
8547 trap '{ (exit 1); exit 1; }' 1 2 13 15
8548 }
8549 # Create a (secure) tmp directory for tmp files.
8550
8551 {
8552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8553 test -n "$tmp" && test -d "$tmp"
8554 } ||
8555 {
8556 tmp=./conf$$-$RANDOM
8557 (umask 077 && mkdir "$tmp")
8558 } ||
8559 {
8560 echo "$me: cannot create a temporary directory in ." >&2
8561 { (exit 1); exit 1; }
8562 }
8563
8564 #
8565 # Set up the sed scripts for CONFIG_FILES section.
8566 #
8567
8568 # No need to generate the scripts if there are no CONFIG_FILES.
8569 # This happens for instance when ./config.status config.h
8570 if test -n "$CONFIG_FILES"; then
8571
8572 _ACEOF
8573
8574
8575
8576 ac_delim='%!_!# '
8577 for ac_last_try in false false false false false :; do
8578 cat >conf$$subs.sed <<_ACEOF
8579 SHELL!$SHELL$ac_delim
8580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8586 exec_prefix!$exec_prefix$ac_delim
8587 prefix!$prefix$ac_delim
8588 program_transform_name!$program_transform_name$ac_delim
8589 bindir!$bindir$ac_delim
8590 sbindir!$sbindir$ac_delim
8591 libexecdir!$libexecdir$ac_delim
8592 datarootdir!$datarootdir$ac_delim
8593 datadir!$datadir$ac_delim
8594 sysconfdir!$sysconfdir$ac_delim
8595 sharedstatedir!$sharedstatedir$ac_delim
8596 localstatedir!$localstatedir$ac_delim
8597 includedir!$includedir$ac_delim
8598 oldincludedir!$oldincludedir$ac_delim
8599 docdir!$docdir$ac_delim
8600 infodir!$infodir$ac_delim
8601 htmldir!$htmldir$ac_delim
8602 dvidir!$dvidir$ac_delim
8603 pdfdir!$pdfdir$ac_delim
8604 psdir!$psdir$ac_delim
8605 libdir!$libdir$ac_delim
8606 localedir!$localedir$ac_delim
8607 mandir!$mandir$ac_delim
8608 DEFS!$DEFS$ac_delim
8609 ECHO_C!$ECHO_C$ac_delim
8610 ECHO_N!$ECHO_N$ac_delim
8611 ECHO_T!$ECHO_T$ac_delim
8612 LIBS!$LIBS$ac_delim
8613 build_alias!$build_alias$ac_delim
8614 host_alias!$host_alias$ac_delim
8615 target_alias!$target_alias$ac_delim
8616 build!$build$ac_delim
8617 build_cpu!$build_cpu$ac_delim
8618 build_vendor!$build_vendor$ac_delim
8619 build_os!$build_os$ac_delim
8620 host!$host$ac_delim
8621 host_cpu!$host_cpu$ac_delim
8622 host_vendor!$host_vendor$ac_delim
8623 host_os!$host_os$ac_delim
8624 target!$target$ac_delim
8625 target_cpu!$target_cpu$ac_delim
8626 target_vendor!$target_vendor$ac_delim
8627 target_os!$target_os$ac_delim
8628 SHLICC2!$SHLICC2$ac_delim
8629 CC!$CC$ac_delim
8630 CFLAGS!$CFLAGS$ac_delim
8631 LDFLAGS!$LDFLAGS$ac_delim
8632 CPPFLAGS!$CPPFLAGS$ac_delim
8633 ac_ct_CC!$ac_ct_CC$ac_delim
8634 EXEEXT!$EXEEXT$ac_delim
8635 OBJEXT!$OBJEXT$ac_delim
8636 CPP!$CPP$ac_delim
8637 GREP!$GREP$ac_delim
8638 EGREP!$EGREP$ac_delim
8639 LIBOBJS!$LIBOBJS$ac_delim
8640 V_LEX!$V_LEX$ac_delim
8641 V_YACC!$V_YACC$ac_delim
8642 RANLIB!$RANLIB$ac_delim
8643 V_CCOPT!$V_CCOPT$ac_delim
8644 V_DEFS!$V_DEFS$ac_delim
8645 V_INCLS!$V_INCLS$ac_delim
8646 V_LIBS!$V_LIBS$ac_delim
8647 V_PCAP!$V_PCAP$ac_delim
8648 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
8649 V_RANLIB!$V_RANLIB$ac_delim
8650 SSRC!$SSRC$ac_delim
8651 DYEXT!$DYEXT$ac_delim
8652 DAGLIBS!$DAGLIBS$ac_delim
8653 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
8654 USB_SRC!$USB_SRC$ac_delim
8655 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
8656 BT_SRC!$BT_SRC$ac_delim
8657 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8658 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8659 INSTALL_DATA!$INSTALL_DATA$ac_delim
8660 LTLIBOBJS!$LTLIBOBJS$ac_delim
8661 _ACEOF
8662
8663 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
8664 break
8665 elif $ac_last_try; then
8666 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8667 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8668 { (exit 1); exit 1; }; }
8669 else
8670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8671 fi
8672 done
8673
8674 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8675 if test -n "$ac_eof"; then
8676 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8677 ac_eof=`expr $ac_eof + 1`
8678 fi
8679
8680 cat >>$CONFIG_STATUS <<_ACEOF
8681 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8683 _ACEOF
8684 sed '
8685 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8686 s/^/s,@/; s/!/@,|#_!!_#|/
8687 :n
8688 t n
8689 s/'"$ac_delim"'$/,g/; t
8690 s/$/\\/; p
8691 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8692 ' >>$CONFIG_STATUS <conf$$subs.sed
8693 rm -f conf$$subs.sed
8694 cat >>$CONFIG_STATUS <<_ACEOF
8695 :end
8696 s/|#_!!_#|//g
8697 CEOF$ac_eof
8698 _ACEOF
8699
8700
8701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8703 # trailing colons and then remove the whole line if VPATH becomes empty
8704 # (actually we leave an empty line to preserve line numbers).
8705 if test "x$srcdir" = x.; then
8706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8707 s/:*\$(srcdir):*/:/
8708 s/:*\${srcdir}:*/:/
8709 s/:*@srcdir@:*/:/
8710 s/^\([^=]*=[ ]*\):*/\1/
8711 s/:*$//
8712 s/^[^=]*=[ ]*$//
8713 }'
8714 fi
8715
8716 cat >>$CONFIG_STATUS <<\_ACEOF
8717 fi # test -n "$CONFIG_FILES"
8718
8719
8720 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
8721 do
8722 case $ac_tag in
8723 :[FHLC]) ac_mode=$ac_tag; continue;;
8724 esac
8725 case $ac_mode$ac_tag in
8726 :[FHL]*:*);;
8727 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8728 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8729 { (exit 1); exit 1; }; };;
8730 :[FH]-) ac_tag=-:-;;
8731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8732 esac
8733 ac_save_IFS=$IFS
8734 IFS=:
8735 set x $ac_tag
8736 IFS=$ac_save_IFS
8737 shift
8738 ac_file=$1
8739 shift
8740
8741 case $ac_mode in
8742 :L) ac_source=$1;;
8743 :[FH])
8744 ac_file_inputs=
8745 for ac_f
8746 do
8747 case $ac_f in
8748 -) ac_f="$tmp/stdin";;
8749 *) # Look for the file first in the build tree, then in the source tree
8750 # (if the path is not absolute). The absolute path cannot be DOS-style,
8751 # because $ac_f cannot contain `:'.
8752 test -f "$ac_f" ||
8753 case $ac_f in
8754 [\\/$]*) false;;
8755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8756 esac ||
8757 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8758 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8759 { (exit 1); exit 1; }; };;
8760 esac
8761 ac_file_inputs="$ac_file_inputs $ac_f"
8762 done
8763
8764 # Let's still pretend it is `configure' which instantiates (i.e., don't
8765 # use $as_me), people would be surprised to read:
8766 # /* config.h. Generated by config.status. */
8767 configure_input="Generated from "`IFS=:
8768 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8769 if test x"$ac_file" != x-; then
8770 configure_input="$ac_file. $configure_input"
8771 { echo "$as_me:$LINENO: creating $ac_file" >&5
8772 echo "$as_me: creating $ac_file" >&6;}
8773 fi
8774
8775 case $ac_tag in
8776 *:-:* | *:-) cat >"$tmp/stdin";;
8777 esac
8778 ;;
8779 esac
8780
8781 ac_dir=`$as_dirname -- "$ac_file" ||
8782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8783 X"$ac_file" : 'X\(//\)[^/]' \| \
8784 X"$ac_file" : 'X\(//\)$' \| \
8785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8786 echo X"$ac_file" |
8787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8788 s//\1/
8789 q
8790 }
8791 /^X\(\/\/\)[^/].*/{
8792 s//\1/
8793 q
8794 }
8795 /^X\(\/\/\)$/{
8796 s//\1/
8797 q
8798 }
8799 /^X\(\/\).*/{
8800 s//\1/
8801 q
8802 }
8803 s/.*/./; q'`
8804 { as_dir="$ac_dir"
8805 case $as_dir in #(
8806 -*) as_dir=./$as_dir;;
8807 esac
8808 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8809 as_dirs=
8810 while :; do
8811 case $as_dir in #(
8812 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8813 *) as_qdir=$as_dir;;
8814 esac
8815 as_dirs="'$as_qdir' $as_dirs"
8816 as_dir=`$as_dirname -- "$as_dir" ||
8817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8818 X"$as_dir" : 'X\(//\)[^/]' \| \
8819 X"$as_dir" : 'X\(//\)$' \| \
8820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8821 echo X"$as_dir" |
8822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8823 s//\1/
8824 q
8825 }
8826 /^X\(\/\/\)[^/].*/{
8827 s//\1/
8828 q
8829 }
8830 /^X\(\/\/\)$/{
8831 s//\1/
8832 q
8833 }
8834 /^X\(\/\).*/{
8835 s//\1/
8836 q
8837 }
8838 s/.*/./; q'`
8839 test -d "$as_dir" && break
8840 done
8841 test -z "$as_dirs" || eval "mkdir $as_dirs"
8842 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8843 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8844 { (exit 1); exit 1; }; }; }
8845 ac_builddir=.
8846
8847 case "$ac_dir" in
8848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8849 *)
8850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8851 # A ".." for each directory in $ac_dir_suffix.
8852 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8853 case $ac_top_builddir_sub in
8854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8856 esac ;;
8857 esac
8858 ac_abs_top_builddir=$ac_pwd
8859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8860 # for backward compatibility:
8861 ac_top_builddir=$ac_top_build_prefix
8862
8863 case $srcdir in
8864 .) # We are building in place.
8865 ac_srcdir=.
8866 ac_top_srcdir=$ac_top_builddir_sub
8867 ac_abs_top_srcdir=$ac_pwd ;;
8868 [\\/]* | ?:[\\/]* ) # Absolute name.
8869 ac_srcdir=$srcdir$ac_dir_suffix;
8870 ac_top_srcdir=$srcdir
8871 ac_abs_top_srcdir=$srcdir ;;
8872 *) # Relative name.
8873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8874 ac_top_srcdir=$ac_top_build_prefix$srcdir
8875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8876 esac
8877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8878
8879
8880 case $ac_mode in
8881 :F)
8882 #
8883 # CONFIG_FILE
8884 #
8885
8886 case $INSTALL in
8887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8888 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8889 esac
8890 _ACEOF
8891
8892 cat >>$CONFIG_STATUS <<\_ACEOF
8893 # If the template does not know about datarootdir, expand it.
8894 # FIXME: This hack should be removed a few years after 2.60.
8895 ac_datarootdir_hack=; ac_datarootdir_seen=
8896
8897 case `sed -n '/datarootdir/ {
8898 p
8899 q
8900 }
8901 /@datadir@/p
8902 /@docdir@/p
8903 /@infodir@/p
8904 /@localedir@/p
8905 /@mandir@/p
8906 ' $ac_file_inputs` in
8907 *datarootdir*) ac_datarootdir_seen=yes;;
8908 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8909 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8910 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8911 _ACEOF
8912 cat >>$CONFIG_STATUS <<_ACEOF
8913 ac_datarootdir_hack='
8914 s&@datadir@&$datadir&g
8915 s&@docdir@&$docdir&g
8916 s&@infodir@&$infodir&g
8917 s&@localedir@&$localedir&g
8918 s&@mandir@&$mandir&g
8919 s&\\\${datarootdir}&$datarootdir&g' ;;
8920 esac
8921 _ACEOF
8922
8923 # Neutralize VPATH when `$srcdir' = `.'.
8924 # Shell code in configure.ac might set extrasub.
8925 # FIXME: do we really want to maintain this feature?
8926 cat >>$CONFIG_STATUS <<_ACEOF
8927 sed "$ac_vpsub
8928 $extrasub
8929 _ACEOF
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8931 :t
8932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8933 s&@configure_input@&$configure_input&;t t
8934 s&@top_builddir@&$ac_top_builddir_sub&;t t
8935 s&@srcdir@&$ac_srcdir&;t t
8936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8937 s&@top_srcdir@&$ac_top_srcdir&;t t
8938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8939 s&@builddir@&$ac_builddir&;t t
8940 s&@abs_builddir@&$ac_abs_builddir&;t t
8941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8942 s&@INSTALL@&$ac_INSTALL&;t t
8943 $ac_datarootdir_hack
8944 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8945
8946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8949 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8950 which seems to be undefined. Please make sure it is defined." >&5
8951 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8952 which seems to be undefined. Please make sure it is defined." >&2;}
8953
8954 rm -f "$tmp/stdin"
8955 case $ac_file in
8956 -) cat "$tmp/out"; rm -f "$tmp/out";;
8957 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8958 esac
8959 ;;
8960 :H)
8961 #
8962 # CONFIG_HEADER
8963 #
8964 _ACEOF
8965
8966 # Transform confdefs.h into a sed script `conftest.defines', that
8967 # substitutes the proper values into config.h.in to produce config.h.
8968 rm -f conftest.defines conftest.tail
8969 # First, append a space to every undef/define line, to ease matching.
8970 echo 's/$/ /' >conftest.defines
8971 # Then, protect against being on the right side of a sed subst, or in
8972 # an unquoted here document, in config.status. If some macros were
8973 # called several times there might be several #defines for the same
8974 # symbol, which is useless. But do not sort them, since the last
8975 # AC_DEFINE must be honored.
8976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8977 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8978 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8979 # PARAMS is the parameter list in the macro definition--in most cases, it's
8980 # just an empty string.
8981 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8982 ac_dB='\\)[ (].*,\\1define\\2'
8983 ac_dC=' '
8984 ac_dD=' ,'
8985
8986 uniq confdefs.h |
8987 sed -n '
8988 t rset
8989 :rset
8990 s/^[ ]*#[ ]*define[ ][ ]*//
8991 t ok
8992 d
8993 :ok
8994 s/[\\&,]/\\&/g
8995 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8996 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8997 ' >>conftest.defines
8998
8999 # Remove the space that was appended to ease matching.
9000 # Then replace #undef with comments. This is necessary, for
9001 # example, in the case of _POSIX_SOURCE, which is predefined and required
9002 # on some systems where configure will not decide to define it.
9003 # (The regexp can be short, since the line contains either #define or #undef.)
9004 echo 's/ $//
9005 s,^[ #]*u.*,/* & */,' >>conftest.defines
9006
9007 # Break up conftest.defines:
9008 ac_max_sed_lines=50
9009
9010 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9011 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9012 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9013 # et cetera.
9014 ac_in='$ac_file_inputs'
9015 ac_out='"$tmp/out1"'
9016 ac_nxt='"$tmp/out2"'
9017
9018 while :
9019 do
9020 # Write a here document:
9021 cat >>$CONFIG_STATUS <<_ACEOF
9022 # First, check the format of the line:
9023 cat >"\$tmp/defines.sed" <<\\CEOF
9024 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9025 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9026 b
9027 :def
9028 _ACEOF
9029 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9030 echo 'CEOF
9031 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9032 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9033 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9034 grep . conftest.tail >/dev/null || break
9035 rm -f conftest.defines
9036 mv conftest.tail conftest.defines
9037 done
9038 rm -f conftest.defines conftest.tail
9039
9040 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9041 cat >>$CONFIG_STATUS <<\_ACEOF
9042 if test x"$ac_file" != x-; then
9043 echo "/* $configure_input */" >"$tmp/config.h"
9044 cat "$ac_result" >>"$tmp/config.h"
9045 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9047 echo "$as_me: $ac_file is unchanged" >&6;}
9048 else
9049 rm -f $ac_file
9050 mv "$tmp/config.h" $ac_file
9051 fi
9052 else
9053 echo "/* $configure_input */"
9054 cat "$ac_result"
9055 fi
9056 rm -f "$tmp/out12"
9057 ;;
9058
9059
9060 esac
9061
9062 done # for ac_tag
9063
9064
9065 { (exit 0); exit 0; }
9066 _ACEOF
9067 chmod +x $CONFIG_STATUS
9068 ac_clean_files=$ac_clean_files_save
9069
9070
9071 # configure is writing to config.log, and then calls config.status.
9072 # config.status does its own redirection, appending to config.log.
9073 # Unfortunately, on DOS this fails, as config.log is still kept open
9074 # by configure, so config.status won't be able to write to it; its
9075 # output is simply discarded. So we exec the FD to /dev/null,
9076 # effectively closing config.log, so it can be properly (re)opened and
9077 # appended to by config.status. When coming back to configure, we
9078 # need to make the FD available again.
9079 if test "$no_create" != yes; then
9080 ac_cs_success=:
9081 ac_config_status_args=
9082 test "$silent" = yes &&
9083 ac_config_status_args="$ac_config_status_args --quiet"
9084 exec 5>/dev/null
9085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9086 exec 5>>config.log
9087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9088 # would make configure fail if this is the last instruction.
9089 $ac_cs_success || { (exit 1); exit 1; }
9090 fi
9091
9092
9093 if test -f .devel ; then
9094 make depend
9095 fi
9096 exit 0