xref: /freebsd/contrib/libpcap/configure (revision 17d6c636720d00f77e5d098daf4c278f89d84f7b)
1#! /bin/sh
2
3# From configure.in Revision: 1.87.2.1
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38# Guess values for system-dependent variables and create Makefiles.
39# Generated automatically using autoconf version 2.13
40# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
41#
42# This configure script is free software; the Free Software Foundation
43# gives unlimited permission to copy, distribute and modify it.
44
45# Defaults:
46ac_help=
47ac_default_prefix=/usr/local
48# Any additions from configure.in:
49ac_help="$ac_help
50  --without-gcc           don't use gcc"
51ac_help="$ac_help
52  --disable-protochain    disable \"protochain\" insn"
53ac_help="$ac_help
54  --with-pcap=TYPE        use packet capture TYPE"
55ac_help="$ac_help
56  --enable-ipv6           build IPv6-capable version"
57ac_help="$ac_help
58  --without-flex          don't use flex"
59ac_help="$ac_help
60  --without-bison         don't use bison"
61
62# Initialize some variables set by options.
63# The variables have the same names as the options, with
64# dashes changed to underlines.
65build=NONE
66cache_file=./config.cache
67exec_prefix=NONE
68host=NONE
69no_create=
70nonopt=NONE
71no_recursion=
72prefix=NONE
73program_prefix=NONE
74program_suffix=NONE
75program_transform_name=s,x,x,
76silent=
77site=
78srcdir=
79target=NONE
80verbose=
81x_includes=NONE
82x_libraries=NONE
83bindir='${exec_prefix}/bin'
84sbindir='${exec_prefix}/sbin'
85libexecdir='${exec_prefix}/libexec'
86datadir='${prefix}/share'
87sysconfdir='${prefix}/etc'
88sharedstatedir='${prefix}/com'
89localstatedir='${prefix}/var'
90libdir='${exec_prefix}/lib'
91includedir='${prefix}/include'
92oldincludedir='/usr/include'
93infodir='${prefix}/info'
94mandir='${prefix}/man'
95
96# Initialize some other variables.
97subdirs=
98MFLAGS= MAKEFLAGS=
99SHELL=${CONFIG_SHELL-/bin/sh}
100# Maximum number of lines to put in a shell here document.
101ac_max_here_lines=12
102
103ac_prev=
104for ac_option
105do
106
107  # If the previous option needs an argument, assign it.
108  if test -n "$ac_prev"; then
109    eval "$ac_prev=\$ac_option"
110    ac_prev=
111    continue
112  fi
113
114  case "$ac_option" in
115  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116  *) ac_optarg= ;;
117  esac
118
119  # Accept the important Cygnus configure options, so we can diagnose typos.
120
121  case "$ac_option" in
122
123  -bindir | --bindir | --bindi | --bind | --bin | --bi)
124    ac_prev=bindir ;;
125  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126    bindir="$ac_optarg" ;;
127
128  -build | --build | --buil | --bui | --bu)
129    ac_prev=build ;;
130  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131    build="$ac_optarg" ;;
132
133  -cache-file | --cache-file | --cache-fil | --cache-fi \
134  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135    ac_prev=cache_file ;;
136  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138    cache_file="$ac_optarg" ;;
139
140  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141    ac_prev=datadir ;;
142  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143  | --da=*)
144    datadir="$ac_optarg" ;;
145
146  -disable-* | --disable-*)
147    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148    # Reject names that are not valid shell variable names.
149    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151    fi
152    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153    eval "enable_${ac_feature}=no" ;;
154
155  -enable-* | --enable-*)
156    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157    # Reject names that are not valid shell variable names.
158    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160    fi
161    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162    case "$ac_option" in
163      *=*) ;;
164      *) ac_optarg=yes ;;
165    esac
166    eval "enable_${ac_feature}='$ac_optarg'" ;;
167
168  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170  | --exec | --exe | --ex)
171    ac_prev=exec_prefix ;;
172  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174  | --exec=* | --exe=* | --ex=*)
175    exec_prefix="$ac_optarg" ;;
176
177  -gas | --gas | --ga | --g)
178    # Obsolete; use --with-gas.
179    with_gas=yes ;;
180
181  -help | --help | --hel | --he)
182    # Omit some internal or obsolete options to make the list less imposing.
183    # This message is too long to be a string in the A/UX 3.1 sh.
184    cat << EOF
185Usage: configure [options] [host]
186Options: [defaults in brackets after descriptions]
187Configuration:
188  --cache-file=FILE       cache test results in FILE
189  --help                  print this message
190  --no-create             do not create output files
191  --quiet, --silent       do not print \`checking...' messages
192  --version               print the version of autoconf that created configure
193Directory and file names:
194  --prefix=PREFIX         install architecture-independent files in PREFIX
195                          [$ac_default_prefix]
196  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
197                          [same as prefix]
198  --bindir=DIR            user executables in DIR [EPREFIX/bin]
199  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
200  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
201  --datadir=DIR           read-only architecture-independent data in DIR
202                          [PREFIX/share]
203  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
204  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
205                          [PREFIX/com]
206  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
207  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
208  --includedir=DIR        C header files in DIR [PREFIX/include]
209  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
210  --infodir=DIR           info documentation in DIR [PREFIX/info]
211  --mandir=DIR            man documentation in DIR [PREFIX/man]
212  --srcdir=DIR            find the sources in DIR [configure dir or ..]
213  --program-prefix=PREFIX prepend PREFIX to installed program names
214  --program-suffix=SUFFIX append SUFFIX to installed program names
215  --program-transform-name=PROGRAM
216                          run sed PROGRAM on installed program names
217EOF
218    cat << EOF
219Host type:
220  --build=BUILD           configure for building on BUILD [BUILD=HOST]
221  --host=HOST             configure for HOST [guessed]
222  --target=TARGET         configure for TARGET [TARGET=HOST]
223Features and packages:
224  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
225  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
226  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
227  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
228  --x-includes=DIR        X include files are in DIR
229  --x-libraries=DIR       X library files are in DIR
230EOF
231    if test -n "$ac_help"; then
232      echo "--enable and --with options recognized:$ac_help"
233    fi
234    exit 0 ;;
235
236  -host | --host | --hos | --ho)
237    ac_prev=host ;;
238  -host=* | --host=* | --hos=* | --ho=*)
239    host="$ac_optarg" ;;
240
241  -includedir | --includedir | --includedi | --included | --include \
242  | --includ | --inclu | --incl | --inc)
243    ac_prev=includedir ;;
244  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245  | --includ=* | --inclu=* | --incl=* | --inc=*)
246    includedir="$ac_optarg" ;;
247
248  -infodir | --infodir | --infodi | --infod | --info | --inf)
249    ac_prev=infodir ;;
250  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251    infodir="$ac_optarg" ;;
252
253  -libdir | --libdir | --libdi | --libd)
254    ac_prev=libdir ;;
255  -libdir=* | --libdir=* | --libdi=* | --libd=*)
256    libdir="$ac_optarg" ;;
257
258  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259  | --libexe | --libex | --libe)
260    ac_prev=libexecdir ;;
261  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262  | --libexe=* | --libex=* | --libe=*)
263    libexecdir="$ac_optarg" ;;
264
265  -localstatedir | --localstatedir | --localstatedi | --localstated \
266  | --localstate | --localstat | --localsta | --localst \
267  | --locals | --local | --loca | --loc | --lo)
268    ac_prev=localstatedir ;;
269  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272    localstatedir="$ac_optarg" ;;
273
274  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275    ac_prev=mandir ;;
276  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277    mandir="$ac_optarg" ;;
278
279  -nfp | --nfp | --nf)
280    # Obsolete; use --without-fp.
281    with_fp=no ;;
282
283  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284  | --no-cr | --no-c)
285    no_create=yes ;;
286
287  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289    no_recursion=yes ;;
290
291  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293  | --oldin | --oldi | --old | --ol | --o)
294    ac_prev=oldincludedir ;;
295  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298    oldincludedir="$ac_optarg" ;;
299
300  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301    ac_prev=prefix ;;
302  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303    prefix="$ac_optarg" ;;
304
305  -program-prefix | --program-prefix | --program-prefi | --program-pref \
306  | --program-pre | --program-pr | --program-p)
307    ac_prev=program_prefix ;;
308  -program-prefix=* | --program-prefix=* | --program-prefi=* \
309  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310    program_prefix="$ac_optarg" ;;
311
312  -program-suffix | --program-suffix | --program-suffi | --program-suff \
313  | --program-suf | --program-su | --program-s)
314    ac_prev=program_suffix ;;
315  -program-suffix=* | --program-suffix=* | --program-suffi=* \
316  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317    program_suffix="$ac_optarg" ;;
318
319  -program-transform-name | --program-transform-name \
320  | --program-transform-nam | --program-transform-na \
321  | --program-transform-n | --program-transform- \
322  | --program-transform | --program-transfor \
323  | --program-transfo | --program-transf \
324  | --program-trans | --program-tran \
325  | --progr-tra | --program-tr | --program-t)
326    ac_prev=program_transform_name ;;
327  -program-transform-name=* | --program-transform-name=* \
328  | --program-transform-nam=* | --program-transform-na=* \
329  | --program-transform-n=* | --program-transform-=* \
330  | --program-transform=* | --program-transfor=* \
331  | --program-transfo=* | --program-transf=* \
332  | --program-trans=* | --program-tran=* \
333  | --progr-tra=* | --program-tr=* | --program-t=*)
334    program_transform_name="$ac_optarg" ;;
335
336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337  | -silent | --silent | --silen | --sile | --sil)
338    silent=yes ;;
339
340  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341    ac_prev=sbindir ;;
342  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343  | --sbi=* | --sb=*)
344    sbindir="$ac_optarg" ;;
345
346  -sharedstatedir | --sharedstatedir | --sharedstatedi \
347  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348  | --sharedst | --shareds | --shared | --share | --shar \
349  | --sha | --sh)
350    ac_prev=sharedstatedir ;;
351  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354  | --sha=* | --sh=*)
355    sharedstatedir="$ac_optarg" ;;
356
357  -site | --site | --sit)
358    ac_prev=site ;;
359  -site=* | --site=* | --sit=*)
360    site="$ac_optarg" ;;
361
362  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363    ac_prev=srcdir ;;
364  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365    srcdir="$ac_optarg" ;;
366
367  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368  | --syscon | --sysco | --sysc | --sys | --sy)
369    ac_prev=sysconfdir ;;
370  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372    sysconfdir="$ac_optarg" ;;
373
374  -target | --target | --targe | --targ | --tar | --ta | --t)
375    ac_prev=target ;;
376  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377    target="$ac_optarg" ;;
378
379  -v | -verbose | --verbose | --verbos | --verbo | --verb)
380    verbose=yes ;;
381
382  -version | --version | --versio | --versi | --vers)
383    echo "configure generated by autoconf version 2.13"
384    exit 0 ;;
385
386  -with-* | --with-*)
387    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388    # Reject names that are not valid shell variable names.
389    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391    fi
392    ac_package=`echo $ac_package| sed 's/-/_/g'`
393    case "$ac_option" in
394      *=*) ;;
395      *) ac_optarg=yes ;;
396    esac
397    eval "with_${ac_package}='$ac_optarg'" ;;
398
399  -without-* | --without-*)
400    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401    # Reject names that are not valid shell variable names.
402    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404    fi
405    ac_package=`echo $ac_package| sed 's/-/_/g'`
406    eval "with_${ac_package}=no" ;;
407
408  --x)
409    # Obsolete; use --with-x.
410    with_x=yes ;;
411
412  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413  | --x-incl | --x-inc | --x-in | --x-i)
414    ac_prev=x_includes ;;
415  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417    x_includes="$ac_optarg" ;;
418
419  -x-libraries | --x-libraries | --x-librarie | --x-librari \
420  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421    ac_prev=x_libraries ;;
422  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424    x_libraries="$ac_optarg" ;;
425
426  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427    ;;
428
429  *)
430    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431      echo "configure: warning: $ac_option: invalid host type" 1>&2
432    fi
433    if test "x$nonopt" != xNONE; then
434      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435    fi
436    nonopt="$ac_option"
437    ;;
438
439  esac
440done
441
442if test -n "$ac_prev"; then
443  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444fi
445
446trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447
448# File descriptor usage:
449# 0 standard input
450# 1 file creation
451# 2 errors and warnings
452# 3 some systems may open it to /dev/tty
453# 4 used on the Kubota Titan
454# 6 checking for... messages and results
455# 5 compiler messages saved in config.log
456if test "$silent" = yes; then
457  exec 6>/dev/null
458else
459  exec 6>&1
460fi
461exec 5>./config.log
462
463echo "\
464This file contains any messages produced by compilers while
465running configure, to aid debugging if configure makes a mistake.
466" 1>&5
467
468# Strip out --no-create and --no-recursion so they do not pile up.
469# Also quote any args containing shell metacharacters.
470ac_configure_args=
471for ac_arg
472do
473  case "$ac_arg" in
474  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475  | --no-cr | --no-c) ;;
476  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481  esac
482done
483
484# NLS nuisances.
485# Only set these to C if already set.  These must not be set unconditionally
486# because not all systems understand e.g. LANG=C (notably SCO).
487# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488# Non-C LC_CTYPE values break the ctype check.
489if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
490if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
493
494# confdefs.h avoids OS command line length limits that DEFS can exceed.
495rm -rf conftest* confdefs.h
496# AIX cpp loses on an empty file, so make sure it contains at least a newline.
497echo > confdefs.h
498
499# A filename unique to this package, relative to the directory that
500# configure is in, which we can look for to find out if srcdir is correct.
501ac_unique_file=pcap.c
502
503# Find the source files, if location was not specified.
504if test -z "$srcdir"; then
505  ac_srcdir_defaulted=yes
506  # Try the directory containing this script, then its parent.
507  ac_prog=$0
508  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510  srcdir=$ac_confdir
511  if test ! -r $srcdir/$ac_unique_file; then
512    srcdir=..
513  fi
514else
515  ac_srcdir_defaulted=no
516fi
517if test ! -r $srcdir/$ac_unique_file; then
518  if test "$ac_srcdir_defaulted" = yes; then
519    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520  else
521    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522  fi
523fi
524srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525
526# Prefer explicitly selected file to automatically selected ones.
527if test -z "$CONFIG_SITE"; then
528  if test "x$prefix" != xNONE; then
529    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530  else
531    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532  fi
533fi
534for ac_site_file in $CONFIG_SITE; do
535  if test -r "$ac_site_file"; then
536    echo "loading site script $ac_site_file"
537    . "$ac_site_file"
538  fi
539done
540
541if test -r "$cache_file"; then
542  echo "loading cache $cache_file"
543  . $cache_file
544else
545  echo "creating cache $cache_file"
546  > $cache_file
547fi
548
549ac_ext=c
550# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551ac_cpp='$CPP $CPPFLAGS'
552ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554cross_compiling=$ac_cv_prog_cc_cross
555
556ac_exeext=
557ac_objext=o
558if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561    ac_n= ac_c='
562' ac_t='	'
563  else
564    ac_n=-n ac_c= ac_t=
565  fi
566else
567  ac_n= ac_c='\c' ac_t=
568fi
569
570
571
572ac_aux_dir=
573for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
574  if test -f $ac_dir/install-sh; then
575    ac_aux_dir=$ac_dir
576    ac_install_sh="$ac_aux_dir/install-sh -c"
577    break
578  elif test -f $ac_dir/install.sh; then
579    ac_aux_dir=$ac_dir
580    ac_install_sh="$ac_aux_dir/install.sh -c"
581    break
582  fi
583done
584if test -z "$ac_aux_dir"; then
585  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
586fi
587ac_config_guess=$ac_aux_dir/config.guess
588ac_config_sub=$ac_aux_dir/config.sub
589ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
590
591
592# Do some error checking and defaulting for the host and target type.
593# The inputs are:
594#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
595#
596# The rules are:
597# 1. You are not allowed to specify --host, --target, and nonopt at the
598#    same time.
599# 2. Host defaults to nonopt.
600# 3. If nonopt is not specified, then host defaults to the current host,
601#    as determined by config.guess.
602# 4. Target and build default to nonopt.
603# 5. If nonopt is not specified, then target and build default to host.
604
605# The aliases save the names the user supplied, while $host etc.
606# will get canonicalized.
607case $host---$target---$nonopt in
608NONE---*---* | *---NONE---* | *---*---NONE) ;;
609*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
610esac
611
612
613# Make sure we can run config.sub.
614if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
615else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616fi
617
618echo $ac_n "checking host system type""... $ac_c" 1>&6
619echo "configure:620: checking host system type" >&5
620
621host_alias=$host
622case "$host_alias" in
623NONE)
624  case $nonopt in
625  NONE)
626    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
627    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628    fi ;;
629  *) host_alias=$nonopt ;;
630  esac ;;
631esac
632
633host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
634host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637echo "$ac_t""$host" 1>&6
638
639echo $ac_n "checking target system type""... $ac_c" 1>&6
640echo "configure:641: checking target system type" >&5
641
642target_alias=$target
643case "$target_alias" in
644NONE)
645  case $nonopt in
646  NONE) target_alias=$host_alias ;;
647  *) target_alias=$nonopt ;;
648  esac ;;
649esac
650
651target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
652target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
653target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
654target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
655echo "$ac_t""$target" 1>&6
656
657echo $ac_n "checking build system type""... $ac_c" 1>&6
658echo "configure:659: checking build system type" >&5
659
660build_alias=$build
661case "$build_alias" in
662NONE)
663  case $nonopt in
664  NONE) build_alias=$host_alias ;;
665  *) build_alias=$nonopt ;;
666  esac ;;
667esac
668
669build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
670build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673echo "$ac_t""$build" 1>&6
674
675test "$host_alias" != "$target_alias" &&
676  test "$program_prefix$program_suffix$program_transform_name" = \
677    NONENONEs,x,x, &&
678  program_prefix=${target_alias}-
679
680
681
682
683
684
685    # Check whether --with-gcc or --without-gcc was given.
686if test "${with_gcc+set}" = set; then
687  withval="$with_gcc"
688  :
689fi
690
691    V_CCOPT="-O"
692    V_INCLS=""
693    if test "${srcdir}" != "." ; then
694	    V_INCLS="-I\$(srcdir)"
695    fi
696    if test "${CFLAGS+set}" = set; then
697	    LBL_CFLAGS="$CFLAGS"
698    fi
699    if test -z "$CC" ; then
700	    case "$target_os" in
701
702	    bsdi*)
703		    # Extract the first word of "shlicc2", so it can be a program name with args.
704set dummy shlicc2; ac_word=$2
705echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706echo "configure:707: checking for $ac_word" >&5
707if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
708  echo $ac_n "(cached) $ac_c" 1>&6
709else
710  if test -n "$SHLICC2"; then
711  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
712else
713  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
714  ac_dummy="$PATH"
715  for ac_dir in $ac_dummy; do
716    test -z "$ac_dir" && ac_dir=.
717    if test -f $ac_dir/$ac_word; then
718      ac_cv_prog_SHLICC2="yes"
719      break
720    fi
721  done
722  IFS="$ac_save_ifs"
723  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
724fi
725fi
726SHLICC2="$ac_cv_prog_SHLICC2"
727if test -n "$SHLICC2"; then
728  echo "$ac_t""$SHLICC2" 1>&6
729else
730  echo "$ac_t""no" 1>&6
731fi
732
733		    if test $SHLICC2 = yes ; then
734			    CC=shlicc2
735			    export CC
736		    fi
737		    ;;
738	    esac
739    fi
740    if test -z "$CC" -a "$with_gcc" = no ; then
741	    CC=cc
742	    export CC
743    fi
744    # Extract the first word of "gcc", so it can be a program name with args.
745set dummy gcc; ac_word=$2
746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747echo "configure:748: checking for $ac_word" >&5
748if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749  echo $ac_n "(cached) $ac_c" 1>&6
750else
751  if test -n "$CC"; then
752  ac_cv_prog_CC="$CC" # Let the user override the test.
753else
754  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
755  ac_dummy="$PATH"
756  for ac_dir in $ac_dummy; do
757    test -z "$ac_dir" && ac_dir=.
758    if test -f $ac_dir/$ac_word; then
759      ac_cv_prog_CC="gcc"
760      break
761    fi
762  done
763  IFS="$ac_save_ifs"
764fi
765fi
766CC="$ac_cv_prog_CC"
767if test -n "$CC"; then
768  echo "$ac_t""$CC" 1>&6
769else
770  echo "$ac_t""no" 1>&6
771fi
772
773if test -z "$CC"; then
774  # Extract the first word of "cc", so it can be a program name with args.
775set dummy cc; ac_word=$2
776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777echo "configure:778: checking for $ac_word" >&5
778if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779  echo $ac_n "(cached) $ac_c" 1>&6
780else
781  if test -n "$CC"; then
782  ac_cv_prog_CC="$CC" # Let the user override the test.
783else
784  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
785  ac_prog_rejected=no
786  ac_dummy="$PATH"
787  for ac_dir in $ac_dummy; do
788    test -z "$ac_dir" && ac_dir=.
789    if test -f $ac_dir/$ac_word; then
790      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
791        ac_prog_rejected=yes
792	continue
793      fi
794      ac_cv_prog_CC="cc"
795      break
796    fi
797  done
798  IFS="$ac_save_ifs"
799if test $ac_prog_rejected = yes; then
800  # We found a bogon in the path, so make sure we never use it.
801  set dummy $ac_cv_prog_CC
802  shift
803  if test $# -gt 0; then
804    # We chose a different compiler from the bogus one.
805    # However, it has the same basename, so the bogon will be chosen
806    # first if we set CC to just the basename; use the full file name.
807    shift
808    set dummy "$ac_dir/$ac_word" "$@"
809    shift
810    ac_cv_prog_CC="$@"
811  fi
812fi
813fi
814fi
815CC="$ac_cv_prog_CC"
816if test -n "$CC"; then
817  echo "$ac_t""$CC" 1>&6
818else
819  echo "$ac_t""no" 1>&6
820fi
821
822  if test -z "$CC"; then
823    case "`uname -s`" in
824    *win32* | *WIN32*)
825      # Extract the first word of "cl", so it can be a program name with args.
826set dummy cl; ac_word=$2
827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828echo "configure:829: checking for $ac_word" >&5
829if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830  echo $ac_n "(cached) $ac_c" 1>&6
831else
832  if test -n "$CC"; then
833  ac_cv_prog_CC="$CC" # Let the user override the test.
834else
835  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
836  ac_dummy="$PATH"
837  for ac_dir in $ac_dummy; do
838    test -z "$ac_dir" && ac_dir=.
839    if test -f $ac_dir/$ac_word; then
840      ac_cv_prog_CC="cl"
841      break
842    fi
843  done
844  IFS="$ac_save_ifs"
845fi
846fi
847CC="$ac_cv_prog_CC"
848if test -n "$CC"; then
849  echo "$ac_t""$CC" 1>&6
850else
851  echo "$ac_t""no" 1>&6
852fi
853 ;;
854    esac
855  fi
856  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
857fi
858
859echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861
862ac_ext=c
863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864ac_cpp='$CPP $CPPFLAGS'
865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867cross_compiling=$ac_cv_prog_cc_cross
868
869cat > conftest.$ac_ext << EOF
870
871#line 872 "configure"
872#include "confdefs.h"
873
874main(){return(0);}
875EOF
876if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877  ac_cv_prog_cc_works=yes
878  # If we can't run a trivial program, we are probably using a cross compiler.
879  if (./conftest; exit) 2>/dev/null; then
880    ac_cv_prog_cc_cross=no
881  else
882    ac_cv_prog_cc_cross=yes
883  fi
884else
885  echo "configure: failed program was:" >&5
886  cat conftest.$ac_ext >&5
887  ac_cv_prog_cc_works=no
888fi
889rm -fr conftest*
890ac_ext=c
891# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892ac_cpp='$CPP $CPPFLAGS'
893ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895cross_compiling=$ac_cv_prog_cc_cross
896
897echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898if test $ac_cv_prog_cc_works = no; then
899  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900fi
901echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904cross_compiling=$ac_cv_prog_cc_cross
905
906echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907echo "configure:908: checking whether we are using GNU C" >&5
908if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909  echo $ac_n "(cached) $ac_c" 1>&6
910else
911  cat > conftest.c <<EOF
912#ifdef __GNUC__
913  yes;
914#endif
915EOF
916if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
917  ac_cv_prog_gcc=yes
918else
919  ac_cv_prog_gcc=no
920fi
921fi
922
923echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924
925if test $ac_cv_prog_gcc = yes; then
926  GCC=yes
927else
928  GCC=
929fi
930
931ac_test_CFLAGS="${CFLAGS+set}"
932ac_save_CFLAGS="$CFLAGS"
933CFLAGS=
934echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937  echo $ac_n "(cached) $ac_c" 1>&6
938else
939  echo 'void f(){}' > conftest.c
940if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
941  ac_cv_prog_cc_g=yes
942else
943  ac_cv_prog_cc_g=no
944fi
945rm -f conftest*
946
947fi
948
949echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950if test "$ac_test_CFLAGS" = set; then
951  CFLAGS="$ac_save_CFLAGS"
952elif test $ac_cv_prog_cc_g = yes; then
953  if test "$GCC" = yes; then
954    CFLAGS="-g -O2"
955  else
956    CFLAGS="-g"
957  fi
958else
959  if test "$GCC" = yes; then
960    CFLAGS="-O2"
961  else
962    CFLAGS=
963  fi
964fi
965
966    if test "$GCC" = yes ; then
967	    if test "$SHLICC2" = yes ; then
968		    ac_cv_lbl_gcc_vers=2
969		    V_CCOPT="-O2"
970	    else
971		    echo $ac_n "checking gcc version""... $ac_c" 1>&6
972echo "configure:973: checking gcc version" >&5
973		    if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
974  echo $ac_n "(cached) $ac_c" 1>&6
975else
976  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
977			    sed -e '/^gcc version /!d' \
978				-e 's/^gcc version //' \
979				-e 's/ .*//' -e 's/^[^0-9]*//' \
980				-e 's/\..*//'`
981fi
982
983		    echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
984		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
985			    V_CCOPT="-O2"
986		    fi
987	    fi
988    else
989	    echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
990echo "configure:991: checking that $CC handles ansi prototypes" >&5
991	    if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
992  echo $ac_n "(cached) $ac_c" 1>&6
993else
994  cat > conftest.$ac_ext <<EOF
995#line 996 "configure"
996#include "confdefs.h"
997#include <sys/types.h>
998int main() {
999int frob(int, char *)
1000; return 0; }
1001EOF
1002if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1003  rm -rf conftest*
1004  ac_cv_lbl_cc_ansi_prototypes=yes
1005else
1006  echo "configure: failed program was:" >&5
1007  cat conftest.$ac_ext >&5
1008  rm -rf conftest*
1009  ac_cv_lbl_cc_ansi_prototypes=no
1010fi
1011rm -f conftest*
1012fi
1013
1014	    echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1015	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
1016		    case "$target_os" in
1017
1018		    hpux*)
1019			    echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1020echo "configure:1021: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1021			    savedcflags="$CFLAGS"
1022			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
1023			    if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1024  echo $ac_n "(cached) $ac_c" 1>&6
1025else
1026  cat > conftest.$ac_ext <<EOF
1027#line 1028 "configure"
1028#include "confdefs.h"
1029#include <sys/types.h>
1030int main() {
1031int frob(int, char *)
1032; return 0; }
1033EOF
1034if { (eval echo configure:1035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1035  rm -rf conftest*
1036  ac_cv_lbl_cc_hpux_cc_aa=yes
1037else
1038  echo "configure: failed program was:" >&5
1039  cat conftest.$ac_ext >&5
1040  rm -rf conftest*
1041  ac_cv_lbl_cc_hpux_cc_aa=no
1042fi
1043rm -f conftest*
1044fi
1045
1046			    echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1047			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
1048				    { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1049			    fi
1050			    CFLAGS="$savedcflags"
1051			    V_CCOPT="-Aa $V_CCOPT"
1052			    cat >> confdefs.h <<\EOF
1053#define _HPUX_SOURCE 1
1054EOF
1055
1056			    ;;
1057
1058		    *)
1059			    { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1060			    ;;
1061		    esac
1062	    fi
1063	    V_INCLS="$V_INCLS -I/usr/local/include"
1064	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
1065
1066	    case "$target_os" in
1067
1068	    irix*)
1069		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
1070		    ;;
1071
1072	    osf*)
1073		    V_CCOPT="$V_CCOPT -std1 -g3"
1074		    ;;
1075
1076	    ultrix*)
1077		    echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1078echo "configure:1079: checking that Ultrix $CC hacks const in prototypes" >&5
1079		    if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1080  echo $ac_n "(cached) $ac_c" 1>&6
1081else
1082  cat > conftest.$ac_ext <<EOF
1083#line 1084 "configure"
1084#include "confdefs.h"
1085#include <sys/types.h>
1086int main() {
1087struct a { int b; };
1088			    void c(const struct a *)
1089; return 0; }
1090EOF
1091if { (eval echo configure:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1092  rm -rf conftest*
1093  ac_cv_lbl_cc_const_proto=yes
1094else
1095  echo "configure: failed program was:" >&5
1096  cat conftest.$ac_ext >&5
1097  rm -rf conftest*
1098  ac_cv_lbl_cc_const_proto=no
1099fi
1100rm -f conftest*
1101fi
1102
1103		    echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1104		    if test $ac_cv_lbl_cc_const_proto = no ; then
1105			    cat >> confdefs.h <<\EOF
1106#define const
1107EOF
1108
1109		    fi
1110		    ;;
1111	    esac
1112    fi
1113
1114echo $ac_n "checking for inline""... $ac_c" 1>&6
1115echo "configure:1116: checking for inline" >&5
1116if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1117  echo $ac_n "(cached) $ac_c" 1>&6
1118else
1119  ac_cv_c_inline=no
1120for ac_kw in inline __inline__ __inline; do
1121  cat > conftest.$ac_ext <<EOF
1122#line 1123 "configure"
1123#include "confdefs.h"
1124
1125int main() {
1126} $ac_kw foo() {
1127; return 0; }
1128EOF
1129if { (eval echo configure:1130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130  rm -rf conftest*
1131  ac_cv_c_inline=$ac_kw; break
1132else
1133  echo "configure: failed program was:" >&5
1134  cat conftest.$ac_ext >&5
1135fi
1136rm -f conftest*
1137done
1138
1139fi
1140
1141echo "$ac_t""$ac_cv_c_inline" 1>&6
1142case "$ac_cv_c_inline" in
1143  inline | yes) ;;
1144  no) cat >> confdefs.h <<\EOF
1145#define inline
1146EOF
1147 ;;
1148  *)  cat >> confdefs.h <<EOF
1149#define inline $ac_cv_c_inline
1150EOF
1151 ;;
1152esac
1153
1154
1155echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1156echo "configure:1157: checking for __attribute__" >&5
1157if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1158  echo $ac_n "(cached) $ac_c" 1>&6
1159else
1160
1161cat > conftest.$ac_ext <<EOF
1162#line 1163 "configure"
1163#include "confdefs.h"
1164
1165#include <stdlib.h>
1166
1167int main() {
1168
1169static void foo(void) __attribute__ ((noreturn));
1170
1171static void
1172foo(void)
1173{
1174  exit(1);
1175}
1176
1177; return 0; }
1178EOF
1179if { (eval echo configure:1180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1180  rm -rf conftest*
1181  ac_cv___attribute__=yes
1182else
1183  echo "configure: failed program was:" >&5
1184  cat conftest.$ac_ext >&5
1185  rm -rf conftest*
1186  ac_cv___attribute__=no
1187fi
1188rm -f conftest*
1189fi
1190
1191if test "$ac_cv___attribute__" = "yes"; then
1192  cat >> confdefs.h <<\EOF
1193#define HAVE___ATTRIBUTE__ 1
1194EOF
1195
1196fi
1197echo "$ac_t""$ac_cv___attribute__" 1>&6
1198
1199
1200echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
1201echo "configure:1202: checking for u_int8_t using $CC" >&5
1202    if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
1203  echo $ac_n "(cached) $ac_c" 1>&6
1204else
1205  cat > conftest.$ac_ext <<EOF
1206#line 1207 "configure"
1207#include "confdefs.h"
1208
1209#	include "confdefs.h"
1210#	include <sys/types.h>
1211#	if STDC_HEADERS
1212#	include <stdlib.h>
1213#	include <stddef.h>
1214#	endif
1215int main() {
1216u_int8_t i
1217; return 0; }
1218EOF
1219if { (eval echo configure:1220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1220  rm -rf conftest*
1221  ac_cv_lbl_have_u_int8_t=yes
1222else
1223  echo "configure: failed program was:" >&5
1224  cat conftest.$ac_ext >&5
1225  rm -rf conftest*
1226  ac_cv_lbl_have_u_int8_t=no
1227fi
1228rm -f conftest*
1229fi
1230
1231    echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
1232    if test $ac_cv_lbl_have_u_int8_t = no ; then
1233	    cat >> confdefs.h <<\EOF
1234#define u_int8_t u_char
1235EOF
1236
1237    fi
1238echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
1239echo "configure:1240: checking for u_int16_t using $CC" >&5
1240    if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
1241  echo $ac_n "(cached) $ac_c" 1>&6
1242else
1243  cat > conftest.$ac_ext <<EOF
1244#line 1245 "configure"
1245#include "confdefs.h"
1246
1247#	include "confdefs.h"
1248#	include <sys/types.h>
1249#	if STDC_HEADERS
1250#	include <stdlib.h>
1251#	include <stddef.h>
1252#	endif
1253int main() {
1254u_int16_t i
1255; return 0; }
1256EOF
1257if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1258  rm -rf conftest*
1259  ac_cv_lbl_have_u_int16_t=yes
1260else
1261  echo "configure: failed program was:" >&5
1262  cat conftest.$ac_ext >&5
1263  rm -rf conftest*
1264  ac_cv_lbl_have_u_int16_t=no
1265fi
1266rm -f conftest*
1267fi
1268
1269    echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
1270    if test $ac_cv_lbl_have_u_int16_t = no ; then
1271	    cat >> confdefs.h <<\EOF
1272#define u_int16_t u_short
1273EOF
1274
1275    fi
1276echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
1277echo "configure:1278: checking for u_int32_t using $CC" >&5
1278    if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
1279  echo $ac_n "(cached) $ac_c" 1>&6
1280else
1281  cat > conftest.$ac_ext <<EOF
1282#line 1283 "configure"
1283#include "confdefs.h"
1284
1285#	include "confdefs.h"
1286#	include <sys/types.h>
1287#	if STDC_HEADERS
1288#	include <stdlib.h>
1289#	include <stddef.h>
1290#	endif
1291int main() {
1292u_int32_t i
1293; return 0; }
1294EOF
1295if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1296  rm -rf conftest*
1297  ac_cv_lbl_have_u_int32_t=yes
1298else
1299  echo "configure: failed program was:" >&5
1300  cat conftest.$ac_ext >&5
1301  rm -rf conftest*
1302  ac_cv_lbl_have_u_int32_t=no
1303fi
1304rm -f conftest*
1305fi
1306
1307    echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
1308    if test $ac_cv_lbl_have_u_int32_t = no ; then
1309	    cat >> confdefs.h <<\EOF
1310#define u_int32_t u_int
1311EOF
1312
1313    fi
1314
1315echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1316echo "configure:1317: checking how to run the C preprocessor" >&5
1317# On Suns, sometimes $CPP names a directory.
1318if test -n "$CPP" && test -d "$CPP"; then
1319  CPP=
1320fi
1321if test -z "$CPP"; then
1322if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1323  echo $ac_n "(cached) $ac_c" 1>&6
1324else
1325    # This must be in double quotes, not single quotes, because CPP may get
1326  # substituted into the Makefile and "${CC-cc}" will confuse make.
1327  CPP="${CC-cc} -E"
1328  # On the NeXT, cc -E runs the code through the compiler's parser,
1329  # not just through cpp.
1330  cat > conftest.$ac_ext <<EOF
1331#line 1332 "configure"
1332#include "confdefs.h"
1333#include <assert.h>
1334Syntax Error
1335EOF
1336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1337{ (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1339if test -z "$ac_err"; then
1340  :
1341else
1342  echo "$ac_err" >&5
1343  echo "configure: failed program was:" >&5
1344  cat conftest.$ac_ext >&5
1345  rm -rf conftest*
1346  CPP="${CC-cc} -E -traditional-cpp"
1347  cat > conftest.$ac_ext <<EOF
1348#line 1349 "configure"
1349#include "confdefs.h"
1350#include <assert.h>
1351Syntax Error
1352EOF
1353ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1354{ (eval echo configure:1355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1355ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1356if test -z "$ac_err"; then
1357  :
1358else
1359  echo "$ac_err" >&5
1360  echo "configure: failed program was:" >&5
1361  cat conftest.$ac_ext >&5
1362  rm -rf conftest*
1363  CPP="${CC-cc} -nologo -E"
1364  cat > conftest.$ac_ext <<EOF
1365#line 1366 "configure"
1366#include "confdefs.h"
1367#include <assert.h>
1368Syntax Error
1369EOF
1370ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371{ (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1373if test -z "$ac_err"; then
1374  :
1375else
1376  echo "$ac_err" >&5
1377  echo "configure: failed program was:" >&5
1378  cat conftest.$ac_ext >&5
1379  rm -rf conftest*
1380  CPP=/lib/cpp
1381fi
1382rm -f conftest*
1383fi
1384rm -f conftest*
1385fi
1386rm -f conftest*
1387  ac_cv_prog_CPP="$CPP"
1388fi
1389  CPP="$ac_cv_prog_CPP"
1390else
1391  ac_cv_prog_CPP="$CPP"
1392fi
1393echo "$ac_t""$CPP" 1>&6
1394
1395for ac_hdr in sys/ioccom.h sys/sockio.h ifaddrs.h netinet/if_ether.h
1396do
1397ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1398echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1399echo "configure:1400: checking for $ac_hdr" >&5
1400if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1401  echo $ac_n "(cached) $ac_c" 1>&6
1402else
1403  cat > conftest.$ac_ext <<EOF
1404#line 1405 "configure"
1405#include "confdefs.h"
1406#include <$ac_hdr>
1407EOF
1408ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1409{ (eval echo configure:1410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1410ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1411if test -z "$ac_err"; then
1412  rm -rf conftest*
1413  eval "ac_cv_header_$ac_safe=yes"
1414else
1415  echo "$ac_err" >&5
1416  echo "configure: failed program was:" >&5
1417  cat conftest.$ac_ext >&5
1418  rm -rf conftest*
1419  eval "ac_cv_header_$ac_safe=no"
1420fi
1421rm -f conftest*
1422fi
1423if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1424  echo "$ac_t""yes" 1>&6
1425    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1426  cat >> confdefs.h <<EOF
1427#define $ac_tr_hdr 1
1428EOF
1429
1430else
1431  echo "$ac_t""no" 1>&6
1432fi
1433done
1434
1435
1436if test "$GCC" = yes ; then
1437	    echo $ac_n "checking for ANSI ioctl definitions""... $ac_c" 1>&6
1438echo "configure:1439: checking for ANSI ioctl definitions" >&5
1439	    if eval "test \"`echo '$''{'ac_cv_lbl_gcc_fixincludes'+set}'`\" = set"; then
1440  echo $ac_n "(cached) $ac_c" 1>&6
1441else
1442  cat > conftest.$ac_ext <<EOF
1443#line 1444 "configure"
1444#include "confdefs.h"
1445/*
1446		     * This generates a "duplicate case value" when fixincludes
1447		     * has not be run.
1448		     */
1449#		include <sys/types.h>
1450#		include <sys/time.h>
1451#		include <sys/ioctl.h>
1452#		ifdef HAVE_SYS_IOCCOM_H
1453#		include <sys/ioccom.h>
1454#		endif
1455int main() {
1456switch (0) {
1457		    case _IO('A', 1):;
1458		    case _IO('B', 1):;
1459		    }
1460; return 0; }
1461EOF
1462if { (eval echo configure:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1463  rm -rf conftest*
1464  ac_cv_lbl_gcc_fixincludes=yes
1465else
1466  echo "configure: failed program was:" >&5
1467  cat conftest.$ac_ext >&5
1468  rm -rf conftest*
1469  ac_cv_lbl_gcc_fixincludes=no
1470fi
1471rm -f conftest*
1472fi
1473
1474	    echo "$ac_t""$ac_cv_lbl_gcc_fixincludes" 1>&6
1475	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
1476		    # Don't cache failure
1477		    unset ac_cv_lbl_gcc_fixincludes
1478		    { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; }
1479	    fi
1480    fi
1481
1482for ac_func in ether_hostton strerror freeifaddrs strlcpy
1483do
1484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1485echo "configure:1486: checking for $ac_func" >&5
1486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1487  echo $ac_n "(cached) $ac_c" 1>&6
1488else
1489  cat > conftest.$ac_ext <<EOF
1490#line 1491 "configure"
1491#include "confdefs.h"
1492/* System header to define __stub macros and hopefully few prototypes,
1493    which can conflict with char $ac_func(); below.  */
1494#include <assert.h>
1495/* Override any gcc2 internal prototype to avoid an error.  */
1496/* We use char because int might match the return type of a gcc2
1497    builtin and then its argument prototype would still apply.  */
1498char $ac_func();
1499
1500int main() {
1501
1502/* The GNU C library defines this for functions which it implements
1503    to always fail with ENOSYS.  Some functions are actually named
1504    something starting with __ and the normal name is an alias.  */
1505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1506choke me
1507#else
1508$ac_func();
1509#endif
1510
1511; return 0; }
1512EOF
1513if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1514  rm -rf conftest*
1515  eval "ac_cv_func_$ac_func=yes"
1516else
1517  echo "configure: failed program was:" >&5
1518  cat conftest.$ac_ext >&5
1519  rm -rf conftest*
1520  eval "ac_cv_func_$ac_func=no"
1521fi
1522rm -f conftest*
1523fi
1524
1525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1526  echo "$ac_t""yes" 1>&6
1527    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1528  cat >> confdefs.h <<EOF
1529#define $ac_tr_func 1
1530EOF
1531
1532else
1533  echo "$ac_t""no" 1>&6
1534fi
1535done
1536
1537
1538echo $ac_n "checking if --disable-protochain option is specified""... $ac_c" 1>&6
1539echo "configure:1540: checking if --disable-protochain option is specified" >&5
1540# Check whether --enable-protochain or --disable-protochain was given.
1541if test "${enable_protochain+set}" = set; then
1542  enableval="$enable_protochain"
1543  :
1544fi
1545
1546case "x$enable_protochain" in
1547xyes)	enable_protochain=enabled	;;
1548xno)	enable_protochain=disabled	;;
1549x)	enable_protochain=enabled	;;
1550esac
1551
1552if test "$enable_protochain" = "disabled"; then
1553	cat >> confdefs.h <<\EOF
1554#define NO_PROTOCHAIN 1
1555EOF
1556
1557fi
1558echo "$ac_t""${enable_protochain}" 1>&6
1559
1560if test -z "$with_pcap" && test "$cross_compiling" = yes; then
1561	{ echo "configure: error: pcap type not determined when cross-compiling; use --with-pcap=..." 1>&2; exit 1; }
1562fi
1563# Check whether --with-pcap or --without-pcap was given.
1564if test "${with_pcap+set}" = set; then
1565  withval="$with_pcap"
1566  :
1567fi
1568
1569echo $ac_n "checking packet capture type""... $ac_c" 1>&6
1570echo "configure:1571: checking packet capture type" >&5
1571if test ! -z "$with_pcap" ; then
1572	V_PCAP="$withval"
1573elif test -r /dev/bpf0 ; then
1574	V_PCAP=bpf
1575elif test -r /usr/include/net/pfilt.h ; then
1576	V_PCAP=pf
1577elif test -r /dev/enet ; then
1578	V_PCAP=enet
1579elif test -r /dev/nit ; then
1580	V_PCAP=snit
1581elif test -r /usr/include/sys/net/nit.h ; then
1582	V_PCAP=nit
1583elif test -r /usr/include/net/raw.h ; then
1584	V_PCAP=snoop
1585elif test -r /usr/include/sys/dlpi.h ; then
1586	V_PCAP=dlpi
1587elif test -r /usr/include/linux/socket.h ; then
1588	V_PCAP=linux
1589elif test -c /dev/bpf0 ; then		# check again in case not readable
1590	V_PCAP=bpf
1591elif test -c /dev/enet ; then		# check again in case not readable
1592	V_PCAP=enet
1593elif test -c /dev/nit ; then		# check again in case not readable
1594	V_PCAP=snit
1595else
1596	V_PCAP=null
1597fi
1598echo "$ac_t""$V_PCAP" 1>&6
1599
1600echo $ac_n "checking if --enable-ipv6 option is specified""... $ac_c" 1>&6
1601echo "configure:1602: checking if --enable-ipv6 option is specified" >&5
1602# Check whether --enable-ipv6 or --disable-ipv6 was given.
1603if test "${enable_ipv6+set}" = set; then
1604  enableval="$enable_ipv6"
1605  :
1606fi
1607
1608if test "$enable_ipv6" = "yes"; then
1609	cat >> confdefs.h <<\EOF
1610#define INET6 1
1611EOF
1612
1613fi
1614echo "$ac_t""${enable_ipv6-no}" 1>&6
1615
1616case "$V_PCAP" in
1617
1618dlpi)
1619	for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
1620do
1621ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1622echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1623echo "configure:1624: checking for $ac_hdr" >&5
1624if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1625  echo $ac_n "(cached) $ac_c" 1>&6
1626else
1627  cat > conftest.$ac_ext <<EOF
1628#line 1629 "configure"
1629#include "confdefs.h"
1630#include <$ac_hdr>
1631EOF
1632ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633{ (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1635if test -z "$ac_err"; then
1636  rm -rf conftest*
1637  eval "ac_cv_header_$ac_safe=yes"
1638else
1639  echo "$ac_err" >&5
1640  echo "configure: failed program was:" >&5
1641  cat conftest.$ac_ext >&5
1642  rm -rf conftest*
1643  eval "ac_cv_header_$ac_safe=no"
1644fi
1645rm -f conftest*
1646fi
1647if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1648  echo "$ac_t""yes" 1>&6
1649    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1650  cat >> confdefs.h <<EOF
1651#define $ac_tr_hdr 1
1652EOF
1653
1654else
1655  echo "$ac_t""no" 1>&6
1656fi
1657done
1658
1659	echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
1660echo "configure:1661: checking for /dev/dlpi device" >&5
1661	if test -c /dev/dlpi ; then
1662		echo "$ac_t""yes" 1>&6
1663		cat >> confdefs.h <<\EOF
1664#define HAVE_DEV_DLPI 1
1665EOF
1666
1667	else
1668		echo "$ac_t""no" 1>&6
1669		dir="/dev/dlpi"
1670		echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
1671echo "configure:1672: checking for $dir directory" >&5
1672		if test -d $dir ; then
1673			echo "$ac_t""yes" 1>&6
1674			cat >> confdefs.h <<EOF
1675#define PCAP_DEV_PREFIX "$dir"
1676EOF
1677
1678		else
1679			echo "$ac_t""no" 1>&6
1680		fi
1681	fi
1682	;;
1683
1684linux)
1685	for ac_hdr in netpacket/packet.h
1686do
1687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1689echo "configure:1690: checking for $ac_hdr" >&5
1690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1691  echo $ac_n "(cached) $ac_c" 1>&6
1692else
1693  cat > conftest.$ac_ext <<EOF
1694#line 1695 "configure"
1695#include "confdefs.h"
1696#include <$ac_hdr>
1697EOF
1698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1699{ (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1701if test -z "$ac_err"; then
1702  rm -rf conftest*
1703  eval "ac_cv_header_$ac_safe=yes"
1704else
1705  echo "$ac_err" >&5
1706  echo "configure: failed program was:" >&5
1707  cat conftest.$ac_ext >&5
1708  rm -rf conftest*
1709  eval "ac_cv_header_$ac_safe=no"
1710fi
1711rm -f conftest*
1712fi
1713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1714  echo "$ac_t""yes" 1>&6
1715    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1716  cat >> confdefs.h <<EOF
1717#define $ac_tr_hdr 1
1718EOF
1719
1720else
1721  echo "$ac_t""no" 1>&6
1722fi
1723done
1724
1725	echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1726echo "configure:1727: checking Linux kernel version" >&5
1727 	if test "$cross_compiling" = yes; then
1728 		if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1729  echo $ac_n "(cached) $ac_c" 1>&6
1730else
1731  ac_cv_linux_vers=unknown
1732fi
1733
1734 	else
1735 		if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1736  echo $ac_n "(cached) $ac_c" 1>&6
1737else
1738  ac_cv_linux_vers=`uname -r 2>&1 | \
1739 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
1740fi
1741
1742 	fi
1743	echo "$ac_t""$ac_cv_linux_vers" 1>&6
1744 	if test $ac_cv_linux_vers = unknown ; then
1745 		{ echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1746 	fi
1747	if test $ac_cv_linux_vers -lt 2 ; then
1748		{ echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1749	fi
1750	;;
1751
1752null)
1753	echo "configure: warning: cannot determine packet capture interface" 1>&2
1754	echo "configure: warning: (see the INSTALL doc for more info)" 1>&2
1755	;;
1756
1757esac
1758
1759# Check whether --with-flex or --without-flex was given.
1760if test "${with_flex+set}" = set; then
1761  withval="$with_flex"
1762  :
1763fi
1764
1765    # Check whether --with-bison or --without-bison was given.
1766if test "${with_bison+set}" = set; then
1767  withval="$with_bison"
1768  :
1769fi
1770
1771    if test "$with_flex" = no ; then
1772	    V_LEX=lex
1773    else
1774	    for ac_prog in flex
1775do
1776# Extract the first word of "$ac_prog", so it can be a program name with args.
1777set dummy $ac_prog; ac_word=$2
1778echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1779echo "configure:1780: checking for $ac_word" >&5
1780if eval "test \"`echo '$''{'ac_cv_prog_V_LEX'+set}'`\" = set"; then
1781  echo $ac_n "(cached) $ac_c" 1>&6
1782else
1783  if test -n "$V_LEX"; then
1784  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
1785else
1786  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1787  ac_dummy="$PATH"
1788  for ac_dir in $ac_dummy; do
1789    test -z "$ac_dir" && ac_dir=.
1790    if test -f $ac_dir/$ac_word; then
1791      ac_cv_prog_V_LEX="$ac_prog"
1792      break
1793    fi
1794  done
1795  IFS="$ac_save_ifs"
1796fi
1797fi
1798V_LEX="$ac_cv_prog_V_LEX"
1799if test -n "$V_LEX"; then
1800  echo "$ac_t""$V_LEX" 1>&6
1801else
1802  echo "$ac_t""no" 1>&6
1803fi
1804
1805test -n "$V_LEX" && break
1806done
1807test -n "$V_LEX" || V_LEX="lex"
1808
1809    fi
1810    if test "$V_LEX" = flex ; then
1811	    # The -V flag was added in 2.4
1812	    echo $ac_n "checking for flex 2.4 or higher""... $ac_c" 1>&6
1813echo "configure:1814: checking for flex 2.4 or higher" >&5
1814	    if eval "test \"`echo '$''{'ac_cv_lbl_flex_v24'+set}'`\" = set"; then
1815  echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817  if flex -V >/dev/null 2>&1; then
1818			ac_cv_lbl_flex_v24=yes
1819		else
1820			ac_cv_lbl_flex_v24=no
1821		fi
1822fi
1823
1824	    echo "$ac_t""$ac_cv_lbl_flex_v24" 1>&6
1825	    if test $ac_cv_lbl_flex_v24 = no ; then
1826		    s="2.4 or higher required"
1827		    echo "configure: warning: ignoring obsolete flex executable ($s)" 1>&2
1828		    V_LEX=lex
1829	    fi
1830    fi
1831    if test "$with_bison" = no ; then
1832	    V_YACC=yacc
1833    else
1834	    for ac_prog in bison
1835do
1836# Extract the first word of "$ac_prog", so it can be a program name with args.
1837set dummy $ac_prog; ac_word=$2
1838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839echo "configure:1840: checking for $ac_word" >&5
1840if eval "test \"`echo '$''{'ac_cv_prog_V_YACC'+set}'`\" = set"; then
1841  echo $ac_n "(cached) $ac_c" 1>&6
1842else
1843  if test -n "$V_YACC"; then
1844  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
1845else
1846  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1847  ac_dummy="$PATH"
1848  for ac_dir in $ac_dummy; do
1849    test -z "$ac_dir" && ac_dir=.
1850    if test -f $ac_dir/$ac_word; then
1851      ac_cv_prog_V_YACC="$ac_prog"
1852      break
1853    fi
1854  done
1855  IFS="$ac_save_ifs"
1856fi
1857fi
1858V_YACC="$ac_cv_prog_V_YACC"
1859if test -n "$V_YACC"; then
1860  echo "$ac_t""$V_YACC" 1>&6
1861else
1862  echo "$ac_t""no" 1>&6
1863fi
1864
1865test -n "$V_YACC" && break
1866done
1867test -n "$V_YACC" || V_YACC="yacc"
1868
1869    fi
1870    if test "$V_YACC" = bison ; then
1871	    V_YACC="$V_YACC -y"
1872    fi
1873    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
1874	    echo "configure: warning: don't have both flex and bison; reverting to lex/yacc" 1>&2
1875	    V_LEX=lex
1876	    V_YACC=yacc
1877    fi
1878    if test "$V_LEX" = flex -a -n "pcap_" ; then
1879	    V_LEX="$V_LEX -Ppcap_"
1880	    V_YACC="$V_YACC -p pcap_"
1881    fi
1882if test "$V_LEX" = lex ; then
1883# Some versions of lex can't handle the definitions section of scanner.l .
1884# Try lexing it and complain if it can't deal.
1885	echo $ac_n "checking for capable lex""... $ac_c" 1>&6
1886echo "configure:1887: checking for capable lex" >&5
1887if eval "test \"`echo '$''{'tcpdump_cv_capable_lex'+set}'`\" = set"; then
1888  echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890  if lex -t scanner.l > /dev/null 2>&1; then
1891			tcpdump_cv_capable_lex=yes
1892		else
1893			tcpdump_cv_capable_lex=insufficient
1894		fi
1895fi
1896
1897echo "$ac_t""$tcpdump_cv_capable_lex" 1>&6
1898	if test $tcpdump_cv_capable_lex = insufficient ; then
1899		{ echo "configure: error: Your operating system's lex is insufficient to compile
1900 libpcap.  flex is a lex replacement that has many advantages, including
1901 being able to compile libpcap.  For more information, see
1902 http://www.gnu.org/software/flex/flex.html ." 1>&2; exit 1; }
1903	fi
1904fi
1905
1906case "$target_os" in
1907
1908aix*)
1909		cat >> confdefs.h <<\EOF
1910#define _SUN 1
1911EOF
1912
1913	;;
1914
1915hpux9*)
1916	cat >> confdefs.h <<\EOF
1917#define HAVE_HPUX9 1
1918EOF
1919
1920	;;
1921
1922hpux10.0*)
1923	;;
1924
1925hpux10.1*)
1926	;;
1927
1928hpux*)
1929		cat >> confdefs.h <<\EOF
1930#define HAVE_HPUX10_20 1
1931EOF
1932
1933	;;
1934
1935sinix*)
1936	echo $ac_n "checking if SINIX compiler defines sinix""... $ac_c" 1>&6
1937echo "configure:1938: checking if SINIX compiler defines sinix" >&5
1938	if eval "test \"`echo '$''{'ac_cv_cc_sinix_defined'+set}'`\" = set"; then
1939  echo $ac_n "(cached) $ac_c" 1>&6
1940else
1941  cat > conftest.$ac_ext <<EOF
1942#line 1943 "configure"
1943#include "confdefs.h"
1944
1945int main() {
1946int i = sinix;
1947; return 0; }
1948EOF
1949if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950  rm -rf conftest*
1951  ac_cv_cc_sinix_defined=yes
1952else
1953  echo "configure: failed program was:" >&5
1954  cat conftest.$ac_ext >&5
1955  rm -rf conftest*
1956  ac_cv_cc_sinix_defined=no
1957fi
1958rm -f conftest*
1959fi
1960
1961	    echo "$ac_t""$ac_cv_cc_sinix_defined" 1>&6
1962	    if test $ac_cv_cc_sinix_defined = no ; then
1963		    cat >> confdefs.h <<\EOF
1964#define sinix 1
1965EOF
1966
1967	    fi
1968	;;
1969
1970solaris*)
1971	cat >> confdefs.h <<\EOF
1972#define HAVE_SOLARIS 1
1973EOF
1974
1975	;;
1976esac
1977
1978# Extract the first word of "ranlib", so it can be a program name with args.
1979set dummy ranlib; ac_word=$2
1980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981echo "configure:1982: checking for $ac_word" >&5
1982if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1983  echo $ac_n "(cached) $ac_c" 1>&6
1984else
1985  if test -n "$RANLIB"; then
1986  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1987else
1988  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1989  ac_dummy="$PATH"
1990  for ac_dir in $ac_dummy; do
1991    test -z "$ac_dir" && ac_dir=.
1992    if test -f $ac_dir/$ac_word; then
1993      ac_cv_prog_RANLIB="ranlib"
1994      break
1995    fi
1996  done
1997  IFS="$ac_save_ifs"
1998  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1999fi
2000fi
2001RANLIB="$ac_cv_prog_RANLIB"
2002if test -n "$RANLIB"; then
2003  echo "$ac_t""$RANLIB" 1>&6
2004else
2005  echo "$ac_t""no" 1>&6
2006fi
2007
2008
2009rm -f os-proto.h
2010    if test "${LBL_CFLAGS+set}" = set; then
2011	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
2012    fi
2013    if test -f .devel ; then
2014	    if test "$GCC" = yes ; then
2015		    if test "${LBL_CFLAGS+set}" != set; then
2016			    if test "$ac_cv_prog_cc_g" = yes ; then
2017				    V_CCOPT="-g $V_CCOPT"
2018			    fi
2019			    V_CCOPT="$V_CCOPT -Wall"
2020			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2021				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
2022			    fi
2023		    fi
2024	    else
2025		    case "$target_os" in
2026
2027		    irix6*)
2028			    V_CCOPT="$V_CCOPT -n32"
2029			    ;;
2030
2031		    *)
2032			    ;;
2033		    esac
2034	    fi
2035	    os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
2036	    name="lbl/os-$os.h"
2037	    if test -f $name ; then
2038		    ln -s $name os-proto.h
2039		    cat >> confdefs.h <<\EOF
2040#define HAVE_OS_PROTO_H 1
2041EOF
2042
2043	    else
2044		    echo "configure: warning: can't find $name" 1>&2
2045	    fi
2046    fi
2047
2048echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2049echo "configure:2050: checking if sockaddr struct has sa_len member" >&5
2050    if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
2051  echo $ac_n "(cached) $ac_c" 1>&6
2052else
2053  cat > conftest.$ac_ext <<EOF
2054#line 2055 "configure"
2055#include "confdefs.h"
2056
2057#	include <sys/types.h>
2058#	include <sys/socket.h>
2059int main() {
2060u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2061; return 0; }
2062EOF
2063if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064  rm -rf conftest*
2065  ac_cv_lbl_sockaddr_has_sa_len=yes
2066else
2067  echo "configure: failed program was:" >&5
2068  cat conftest.$ac_ext >&5
2069  rm -rf conftest*
2070  ac_cv_lbl_sockaddr_has_sa_len=no
2071fi
2072rm -f conftest*
2073fi
2074
2075    echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
2076    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
2077	    cat >> confdefs.h <<\EOF
2078#define HAVE_SOCKADDR_SA_LEN 1
2079EOF
2080
2081    fi
2082
2083echo $ac_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member""... $ac_c" 1>&6
2084echo "configure:2085: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
2085    if eval "test \"`echo '$''{'ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1'+set}'`\" = set"; then
2086  echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088  cat > conftest.$ac_ext <<EOF
2089#line 2090 "configure"
2090#include "confdefs.h"
2091
2092#	include <sys/types.h>
2093#	include <sys/dlpi.h>
2094#	include <sys/dlpi_ext.h>
2095int main() {
2096u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
2097; return 0; }
2098EOF
2099if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100  rm -rf conftest*
2101  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
2102else
2103  echo "configure: failed program was:" >&5
2104  cat conftest.$ac_ext >&5
2105  rm -rf conftest*
2106  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
2107fi
2108rm -f conftest*
2109fi
2110
2111    echo "$ac_t""$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" 1>&6
2112    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
2113	    cat >> confdefs.h <<\EOF
2114#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
2115EOF
2116
2117    fi
2118
2119echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
2120echo "configure:2121: checking if unaligned accesses fail" >&5
2121    if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
2122  echo $ac_n "(cached) $ac_c" 1>&6
2123else
2124  case "$target_cpu" in
2125
2126	# XXX: should also check that they don't do weird things (like on arm)
2127	alpha*|arm*|hp*|mips|sparc)
2128		ac_cv_lbl_unaligned_fail=yes
2129		;;
2130
2131	*)
2132		cat >conftest.c <<EOF
2133#		include <sys/types.h>
2134#		include <sys/wait.h>
2135#		include <stdio.h>
2136		unsigned char a[5] = { 1, 2, 3, 4, 5 };
2137		main() {
2138		unsigned int i;
2139		pid_t pid;
2140		int status;
2141		/* avoid "core dumped" message */
2142		pid = fork();
2143		if (pid <  0)
2144			exit(2);
2145		if (pid > 0) {
2146			/* parent */
2147			pid = waitpid(pid, &status, 0);
2148			if (pid < 0)
2149				exit(3);
2150			exit(!WIFEXITED(status));
2151		}
2152		/* child */
2153		i = *(unsigned int *)&a[1];
2154		printf("%d\n", i);
2155		exit(0);
2156		}
2157EOF
2158		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
2159		    conftest.c $LIBS >/dev/null 2>&1
2160		if test ! -x conftest ; then
2161						ac_cv_lbl_unaligned_fail=yes
2162		else
2163			./conftest >conftest.out
2164			if test ! -s conftest.out ; then
2165				ac_cv_lbl_unaligned_fail=yes
2166			else
2167				ac_cv_lbl_unaligned_fail=no
2168			fi
2169		fi
2170		rm -f conftest* core core.conftest
2171		;;
2172	esac
2173fi
2174
2175    echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
2176    if test $ac_cv_lbl_unaligned_fail = yes ; then
2177	    cat >> confdefs.h <<\EOF
2178#define LBL_ALIGN 1
2179EOF
2180
2181    fi
2182
2183rm -f net
2184ln -s ${srcdir}/bpf/net net
2185
2186
2187
2188
2189
2190
2191
2192
2193# Find a good install program.  We prefer a C program (faster),
2194# so one script is as good as another.  But avoid the broken or
2195# incompatible versions:
2196# SysV /etc/install, /usr/sbin/install
2197# SunOS /usr/etc/install
2198# IRIX /sbin/install
2199# AIX /bin/install
2200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2201# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2203# ./install, which can be erroneously created by make from ./install.sh.
2204echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2205echo "configure:2206: checking for a BSD compatible install" >&5
2206if test -z "$INSTALL"; then
2207if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2208  echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
2211  for ac_dir in $PATH; do
2212    # Account for people who put trailing slashes in PATH elements.
2213    case "$ac_dir/" in
2214    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2215    *)
2216      # OSF1 and SCO ODT 3.0 have their own names for install.
2217      # Don't use installbsd from OSF since it installs stuff as root
2218      # by default.
2219      for ac_prog in ginstall scoinst install; do
2220        if test -f $ac_dir/$ac_prog; then
2221	  if test $ac_prog = install &&
2222            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2223	    # AIX install.  It has an incompatible calling convention.
2224	    :
2225	  else
2226	    ac_cv_path_install="$ac_dir/$ac_prog -c"
2227	    break 2
2228	  fi
2229	fi
2230      done
2231      ;;
2232    esac
2233  done
2234  IFS="$ac_save_IFS"
2235
2236fi
2237  if test "${ac_cv_path_install+set}" = set; then
2238    INSTALL="$ac_cv_path_install"
2239  else
2240    # As a last resort, use the slow shell script.  We don't cache a
2241    # path for INSTALL within a source directory, because that will
2242    # break other packages using the cache if that directory is
2243    # removed, or if the path is relative.
2244    INSTALL="$ac_install_sh"
2245  fi
2246fi
2247echo "$ac_t""$INSTALL" 1>&6
2248
2249# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2250# It thinks the first close brace ends the variable substitution.
2251test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2252
2253test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2254
2255test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2256
2257
2258
2259
2260trap '' 1 2 15
2261cat > confcache <<\EOF
2262# This file is a shell script that caches the results of configure
2263# tests run on this system so they can be shared between configure
2264# scripts and configure runs.  It is not useful on other systems.
2265# If it contains results you don't want to keep, you may remove or edit it.
2266#
2267# By default, configure uses ./config.cache as the cache file,
2268# creating it if it does not exist already.  You can give configure
2269# the --cache-file=FILE option to use a different cache file; that is
2270# what configure does when it calls configure scripts in
2271# subdirectories, so they share the cache.
2272# Giving --cache-file=/dev/null disables caching, for debugging configure.
2273# config.status only pays attention to the cache file if you give it the
2274# --recheck option to rerun configure.
2275#
2276EOF
2277# The following way of writing the cache mishandles newlines in values,
2278# but we know of no workaround that is simple, portable, and efficient.
2279# So, don't put newlines in cache variables' values.
2280# Ultrix sh set writes to stderr and can't be redirected directly,
2281# and sets the high bit in the cache file unless we assign to the vars.
2282(set) 2>&1 |
2283  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2284  *ac_space=\ *)
2285    # `set' does not quote correctly, so add quotes (double-quote substitution
2286    # turns \\\\ into \\, and sed turns \\ into \).
2287    sed -n \
2288      -e "s/'/'\\\\''/g" \
2289      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2290    ;;
2291  *)
2292    # `set' quotes correctly as required by POSIX, so do not add quotes.
2293    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2294    ;;
2295  esac >> confcache
2296if cmp -s $cache_file confcache; then
2297  :
2298else
2299  if test -w $cache_file; then
2300    echo "updating cache $cache_file"
2301    cat confcache > $cache_file
2302  else
2303    echo "not updating unwritable cache $cache_file"
2304  fi
2305fi
2306rm -f confcache
2307
2308trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2309
2310test "x$prefix" = xNONE && prefix=$ac_default_prefix
2311# Let make expand exec_prefix.
2312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2313
2314# Any assignment to VPATH causes Sun make to only execute
2315# the first set of double-colon rules, so remove it if not needed.
2316# If there is a colon in the path, we need to keep it.
2317if test "x$srcdir" = x.; then
2318  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2319fi
2320
2321trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2322
2323DEFS=-DHAVE_CONFIG_H
2324
2325# Without the "./", some shells look in PATH for config.status.
2326: ${CONFIG_STATUS=./config.status}
2327
2328echo creating $CONFIG_STATUS
2329rm -f $CONFIG_STATUS
2330cat > $CONFIG_STATUS <<EOF
2331#! /bin/sh
2332# Generated automatically by configure.
2333# Run this file to recreate the current configuration.
2334# This directory was configured as follows,
2335# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2336#
2337# $0 $ac_configure_args
2338#
2339# Compiler output produced by configure, useful for debugging
2340# configure, is in ./config.log if it exists.
2341
2342ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2343for ac_option
2344do
2345  case "\$ac_option" in
2346  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2347    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2348    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2349  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2350    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2351    exit 0 ;;
2352  -help | --help | --hel | --he | --h)
2353    echo "\$ac_cs_usage"; exit 0 ;;
2354  *) echo "\$ac_cs_usage"; exit 1 ;;
2355  esac
2356done
2357
2358ac_given_srcdir=$srcdir
2359ac_given_INSTALL="$INSTALL"
2360
2361trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2362EOF
2363cat >> $CONFIG_STATUS <<EOF
2364
2365# Protect against being on the right side of a sed subst in config.status.
2366sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2367 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2368$ac_vpsub
2369$extrasub
2370s%@SHELL@%$SHELL%g
2371s%@CFLAGS@%$CFLAGS%g
2372s%@CPPFLAGS@%$CPPFLAGS%g
2373s%@CXXFLAGS@%$CXXFLAGS%g
2374s%@FFLAGS@%$FFLAGS%g
2375s%@DEFS@%$DEFS%g
2376s%@LDFLAGS@%$LDFLAGS%g
2377s%@LIBS@%$LIBS%g
2378s%@exec_prefix@%$exec_prefix%g
2379s%@prefix@%$prefix%g
2380s%@program_transform_name@%$program_transform_name%g
2381s%@bindir@%$bindir%g
2382s%@sbindir@%$sbindir%g
2383s%@libexecdir@%$libexecdir%g
2384s%@datadir@%$datadir%g
2385s%@sysconfdir@%$sysconfdir%g
2386s%@sharedstatedir@%$sharedstatedir%g
2387s%@localstatedir@%$localstatedir%g
2388s%@libdir@%$libdir%g
2389s%@includedir@%$includedir%g
2390s%@oldincludedir@%$oldincludedir%g
2391s%@infodir@%$infodir%g
2392s%@mandir@%$mandir%g
2393s%@host@%$host%g
2394s%@host_alias@%$host_alias%g
2395s%@host_cpu@%$host_cpu%g
2396s%@host_vendor@%$host_vendor%g
2397s%@host_os@%$host_os%g
2398s%@target@%$target%g
2399s%@target_alias@%$target_alias%g
2400s%@target_cpu@%$target_cpu%g
2401s%@target_vendor@%$target_vendor%g
2402s%@target_os@%$target_os%g
2403s%@build@%$build%g
2404s%@build_alias@%$build_alias%g
2405s%@build_cpu@%$build_cpu%g
2406s%@build_vendor@%$build_vendor%g
2407s%@build_os@%$build_os%g
2408s%@SHLICC2@%$SHLICC2%g
2409s%@CC@%$CC%g
2410s%@CPP@%$CPP%g
2411s%@V_LEX@%$V_LEX%g
2412s%@V_YACC@%$V_YACC%g
2413s%@RANLIB@%$RANLIB%g
2414s%@V_CCOPT@%$V_CCOPT%g
2415s%@V_INCLS@%$V_INCLS%g
2416s%@V_PCAP@%$V_PCAP%g
2417s%@V_RANLIB@%$V_RANLIB%g
2418s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2419s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2420s%@INSTALL_DATA@%$INSTALL_DATA%g
2421
2422CEOF
2423EOF
2424
2425cat >> $CONFIG_STATUS <<\EOF
2426
2427# Split the substitutions into bite-sized pieces for seds with
2428# small command number limits, like on Digital OSF/1 and HP-UX.
2429ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2430ac_file=1 # Number of current file.
2431ac_beg=1 # First line for current file.
2432ac_end=$ac_max_sed_cmds # Line after last line for current file.
2433ac_more_lines=:
2434ac_sed_cmds=""
2435while $ac_more_lines; do
2436  if test $ac_beg -gt 1; then
2437    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2438  else
2439    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2440  fi
2441  if test ! -s conftest.s$ac_file; then
2442    ac_more_lines=false
2443    rm -f conftest.s$ac_file
2444  else
2445    if test -z "$ac_sed_cmds"; then
2446      ac_sed_cmds="sed -f conftest.s$ac_file"
2447    else
2448      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2449    fi
2450    ac_file=`expr $ac_file + 1`
2451    ac_beg=$ac_end
2452    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2453  fi
2454done
2455if test -z "$ac_sed_cmds"; then
2456  ac_sed_cmds=cat
2457fi
2458EOF
2459
2460cat >> $CONFIG_STATUS <<EOF
2461
2462CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2463EOF
2464cat >> $CONFIG_STATUS <<\EOF
2465for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2466  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2467  case "$ac_file" in
2468  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2469       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2470  *) ac_file_in="${ac_file}.in" ;;
2471  esac
2472
2473  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2474
2475  # Remove last slash and all that follows it.  Not all systems have dirname.
2476  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2477  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2478    # The file is in a subdirectory.
2479    test ! -d "$ac_dir" && mkdir "$ac_dir"
2480    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2481    # A "../" for each directory in $ac_dir_suffix.
2482    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2483  else
2484    ac_dir_suffix= ac_dots=
2485  fi
2486
2487  case "$ac_given_srcdir" in
2488  .)  srcdir=.
2489      if test -z "$ac_dots"; then top_srcdir=.
2490      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2491  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2492  *) # Relative path.
2493    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2494    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2495  esac
2496
2497  case "$ac_given_INSTALL" in
2498  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2499  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2500  esac
2501
2502  echo creating "$ac_file"
2503  rm -f "$ac_file"
2504  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2505  case "$ac_file" in
2506  *Makefile*) ac_comsub="1i\\
2507# $configure_input" ;;
2508  *) ac_comsub= ;;
2509  esac
2510
2511  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2512  sed -e "$ac_comsub
2513s%@configure_input@%$configure_input%g
2514s%@srcdir@%$srcdir%g
2515s%@top_srcdir@%$top_srcdir%g
2516s%@INSTALL@%$INSTALL%g
2517" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2518fi; done
2519rm -f conftest.s*
2520
2521# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2522# NAME is the cpp macro being defined and VALUE is the value it is being given.
2523#
2524# ac_d sets the value in "#define NAME VALUE" lines.
2525ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2526ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2527ac_dC='\3'
2528ac_dD='%g'
2529# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2530ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2531ac_uB='\([ 	]\)%\1#\2define\3'
2532ac_uC=' '
2533ac_uD='\4%g'
2534# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2535ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2536ac_eB='$%\1#\2define\3'
2537ac_eC=' '
2538ac_eD='%g'
2539
2540if test "${CONFIG_HEADERS+set}" != set; then
2541EOF
2542cat >> $CONFIG_STATUS <<EOF
2543  CONFIG_HEADERS="config.h"
2544EOF
2545cat >> $CONFIG_STATUS <<\EOF
2546fi
2547for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2548  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2549  case "$ac_file" in
2550  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2551       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2552  *) ac_file_in="${ac_file}.in" ;;
2553  esac
2554
2555  echo creating $ac_file
2556
2557  rm -f conftest.frag conftest.in conftest.out
2558  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2559  cat $ac_file_inputs > conftest.in
2560
2561EOF
2562
2563# Transform confdefs.h into a sed script conftest.vals that substitutes
2564# the proper values into config.h.in to produce config.h.  And first:
2565# Protect against being on the right side of a sed subst in config.status.
2566# Protect against being in an unquoted here document in config.status.
2567rm -f conftest.vals
2568cat > conftest.hdr <<\EOF
2569s/[\\&%]/\\&/g
2570s%[\\$`]%\\&%g
2571s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2572s%ac_d%ac_u%gp
2573s%ac_u%ac_e%gp
2574EOF
2575sed -n -f conftest.hdr confdefs.h > conftest.vals
2576rm -f conftest.hdr
2577
2578# This sed command replaces #undef with comments.  This is necessary, for
2579# example, in the case of _POSIX_SOURCE, which is predefined and required
2580# on some systems where configure will not decide to define it.
2581cat >> conftest.vals <<\EOF
2582s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2583EOF
2584
2585# Break up conftest.vals because some shells have a limit on
2586# the size of here documents, and old seds have small limits too.
2587
2588rm -f conftest.tail
2589while :
2590do
2591  ac_lines=`grep -c . conftest.vals`
2592  # grep -c gives empty output for an empty file on some AIX systems.
2593  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2594  # Write a limited-size here document to conftest.frag.
2595  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2596  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2597  echo 'CEOF
2598  sed -f conftest.frag conftest.in > conftest.out
2599  rm -f conftest.in
2600  mv conftest.out conftest.in
2601' >> $CONFIG_STATUS
2602  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2603  rm -f conftest.vals
2604  mv conftest.tail conftest.vals
2605done
2606rm -f conftest.vals
2607
2608cat >> $CONFIG_STATUS <<\EOF
2609  rm -f conftest.frag conftest.h
2610  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2611  cat conftest.in >> conftest.h
2612  rm -f conftest.in
2613  if cmp -s $ac_file conftest.h 2>/dev/null; then
2614    echo "$ac_file is unchanged"
2615    rm -f conftest.h
2616  else
2617    # Remove last slash and all that follows it.  Not all systems have dirname.
2618      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2619      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2620      # The file is in a subdirectory.
2621      test ! -d "$ac_dir" && mkdir "$ac_dir"
2622    fi
2623    rm -f $ac_file
2624    mv conftest.h $ac_file
2625  fi
2626fi; done
2627
2628EOF
2629cat >> $CONFIG_STATUS <<EOF
2630
2631EOF
2632cat >> $CONFIG_STATUS <<\EOF
2633
2634exit 0
2635EOF
2636chmod +x $CONFIG_STATUS
2637rm -fr confdefs* $ac_clean_files
2638test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2639
2640
2641if test -f .devel ; then
2642	make depend
2643fi
2644exit 0
2645