]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libpcap/configure
This commit was generated by cvs2svn to compensate for changes in r137015,
[FreeBSD/FreeBSD.git] / contrib / libpcap / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.100.2.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # 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 Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="pcap.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_LEX V_YACC RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_INCLS V_LIBS V_PCAP V_FINDALLDEVS V_RANLIB SSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837   --target=TARGET   configure for building compilers for TARGET [HOST]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --disable-protochain    disable \"protochain\" insn
849   --enable-ipv6           build IPv6-capable version
850   --enable-optimizer-dbg  build optimizer debugging code
851   --enable-yydebug        build parser debugging code
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --without-gcc           don't use gcc
857   --with-pcap=TYPE        use packet capture TYPE
858   --with-dag=DIR        include DAG support (located in directory DIR, if supplied).  default=yes, on BSD and Linux, if present
859   --without-flex          don't use flex
860   --without-bison         don't use bison
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CPP         C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878   # If there are subdirs, report their specific --help.
879   ac_popdir=`pwd`
880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881     test -d $ac_dir || continue
882     ac_builddir=.
883
884 if test "$ac_dir" != .; then
885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886   # A "../" for each directory in $ac_dir_suffix.
887   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889   ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893   .)  # No --srcdir option.  We are building in place.
894     ac_srcdir=.
895     if test -z "$ac_top_builddir"; then
896        ac_top_srcdir=.
897     else
898        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899     fi ;;
900   [\\/]* | ?:[\\/]* )  # Absolute path.
901     ac_srcdir=$srcdir$ac_dir_suffix;
902     ac_top_srcdir=$srcdir ;;
903   *) # Relative path.
904     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905     ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914     cd $ac_dir
915     # Check for guested configure; otherwise get Cygnus style configure.
916     if test -f $ac_srcdir/configure.gnu; then
917       echo
918       $SHELL $ac_srcdir/configure.gnu  --help=recursive
919     elif test -f $ac_srcdir/configure; then
920       echo
921       $SHELL $ac_srcdir/configure  --help=recursive
922     elif test -f $ac_srcdir/configure.ac ||
923            test -f $ac_srcdir/configure.in; then
924       echo
925       $ac_configure --help
926     else
927       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928     fi
929     cd $ac_popdir
930   done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935   cat <<\_ACEOF
936
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942   exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57.  Invocation command line was
951
952   $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
969
970 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
971 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
974 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
975 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983   IFS=$as_save_IFS
984   test -z "$as_dir" && as_dir=.
985   echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1011 do
1012   for ac_arg
1013   do
1014     case $ac_arg in
1015     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017     | -silent | --silent | --silen | --sile | --sil)
1018       continue ;;
1019     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021     esac
1022     case $ac_pass in
1023     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024     2)
1025       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026       if test $ac_must_keep_next = true; then
1027         ac_must_keep_next=false # Got value, back to normal.
1028       else
1029         case $ac_arg in
1030           *=* | --config-cache | -C | -disable-* | --disable-* \
1031           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033           | -with-* | --with-* | -without-* | --without-* | --x)
1034             case "$ac_configure_args0 " in
1035               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036             esac
1037             ;;
1038           -* ) ac_must_keep_next=true ;;
1039         esac
1040       fi
1041       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042       # Get rid of the leading space.
1043       ac_sep=" "
1044       ;;
1045     esac
1046   done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log.  We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057   # Save into config.log some information that might help in debugging.
1058   {
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066     echo
1067     # The following way of writing the cache mishandles newlines in values,
1068 {
1069   (set) 2>&1 |
1070     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071     *ac_space=\ *)
1072       sed -n \
1073         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075       ;;
1076     *)
1077       sed -n \
1078         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079       ;;
1080     esac;
1081 }
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089     echo
1090     for ac_var in $ac_subst_vars
1091     do
1092       eval ac_val=$`echo $ac_var`
1093       echo "$ac_var='"'"'$ac_val'"'"'"
1094     done | sort
1095     echo
1096
1097     if test -n "$ac_subst_files"; then
1098       cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103       echo
1104       for ac_var in $ac_subst_files
1105       do
1106         eval ac_val=$`echo $ac_var`
1107         echo "$ac_var='"'"'$ac_val'"'"'"
1108       done | sort
1109       echo
1110     fi
1111
1112     if test -s confdefs.h; then
1113       cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118       echo
1119       sed "/^$/d" confdefs.h | sort
1120       echo
1121     fi
1122     test "$ac_signal" != 0 &&
1123       echo "$as_me: caught signal $ac_signal"
1124     echo "$as_me: exit $exit_status"
1125   } >&5
1126   rm -f core core.* *.core &&
1127   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128     exit $exit_status
1129      ' 0
1130 for ac_signal in 1 2 13 15; do
1131   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1134
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1139
1140 # Predefined preprocessor variables.
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1165
1166
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170   if test "x$prefix" != xNONE; then
1171     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172   else
1173     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174   fi
1175 fi
1176 for ac_site_file in $CONFIG_SITE; do
1177   if test -r "$ac_site_file"; then
1178     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180     sed 's/^/| /' "$ac_site_file" >&5
1181     . "$ac_site_file"
1182   fi
1183 done
1184
1185 if test -r "$cache_file"; then
1186   # Some versions of bash will fail to source /dev/null (special
1187   # files actually), so we avoid doing that.
1188   if test -f "$cache_file"; then
1189     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191     case $cache_file in
1192       [\\/]* | ?:[\\/]* ) . $cache_file;;
1193       *)                      . ./$cache_file;;
1194     esac
1195   fi
1196 else
1197   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199   >$cache_file
1200 fi
1201
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208   eval ac_new_set=\$ac_env_${ac_var}_set
1209   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210   eval ac_new_val="\$ac_env_${ac_var}_value"
1211   case $ac_old_set,$ac_new_set in
1212     set,)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,set)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,);;
1221     *)
1222       if test "x$ac_old_val" != "x$ac_new_val"; then
1223         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1226 echo "$as_me:   former value:  $ac_old_val" >&2;}
1227         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1228 echo "$as_me:   current value: $ac_new_val" >&2;}
1229         ac_cache_corrupted=:
1230       fi;;
1231   esac
1232   # Pass precious variables to config.status.
1233   if test "$ac_new_set" = set; then
1234     case $ac_new_val in
1235     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237     *) ac_arg=$ac_var=$ac_new_val ;;
1238     esac
1239     case " $ac_configure_args " in
1240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1241       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242     esac
1243   fi
1244 done
1245 if $ac_cache_corrupted; then
1246   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250    { (exit 1); exit 1; }; }
1251 fi
1252
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278 ac_aux_dir=
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280   if test -f $ac_dir/install-sh; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/install-sh -c"
1283     break
1284   elif test -f $ac_dir/install.sh; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/install.sh -c"
1287     break
1288   elif test -f $ac_dir/shtool; then
1289     ac_aux_dir=$ac_dir
1290     ac_install_sh="$ac_aux_dir/shtool install -c"
1291     break
1292   fi
1293 done
1294 if test -z "$ac_aux_dir"; then
1295   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1296 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1301 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302
1303 # Make sure we can run config.sub.
1304 $ac_config_sub sun4 >/dev/null 2>&1 ||
1305   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1306 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1307    { (exit 1); exit 1; }; }
1308
1309 echo "$as_me:$LINENO: checking build system type" >&5
1310 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1311 if test "${ac_cv_build+set}" = set; then
1312   echo $ECHO_N "(cached) $ECHO_C" >&6
1313 else
1314   ac_cv_build_alias=$build_alias
1315 test -z "$ac_cv_build_alias" &&
1316   ac_cv_build_alias=`$ac_config_guess`
1317 test -z "$ac_cv_build_alias" &&
1318   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1320    { (exit 1); exit 1; }; }
1321 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1322   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1323 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1324    { (exit 1); exit 1; }; }
1325
1326 fi
1327 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1328 echo "${ECHO_T}$ac_cv_build" >&6
1329 build=$ac_cv_build
1330 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333
1334
1335 echo "$as_me:$LINENO: checking host system type" >&5
1336 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1337 if test "${ac_cv_host+set}" = set; then
1338   echo $ECHO_N "(cached) $ECHO_C" >&6
1339 else
1340   ac_cv_host_alias=$host_alias
1341 test -z "$ac_cv_host_alias" &&
1342   ac_cv_host_alias=$ac_cv_build_alias
1343 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1344   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1345 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1346    { (exit 1); exit 1; }; }
1347
1348 fi
1349 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1350 echo "${ECHO_T}$ac_cv_host" >&6
1351 host=$ac_cv_host
1352 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355
1356
1357 echo "$as_me:$LINENO: checking target system type" >&5
1358 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1359 if test "${ac_cv_target+set}" = set; then
1360   echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362   ac_cv_target_alias=$target_alias
1363 test "x$ac_cv_target_alias" = "x" &&
1364   ac_cv_target_alias=$ac_cv_host_alias
1365 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1366   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1368    { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1372 echo "${ECHO_T}$ac_cv_target" >&6
1373 target=$ac_cv_target
1374 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 # The aliases save the names the user supplied, while $host etc.
1380 # will get canonicalized.
1381 test -n "$target_alias" &&
1382   test "$program_prefix$program_suffix$program_transform_name" = \
1383     NONENONEs,x,x, &&
1384   program_prefix=${target_alias}-
1385
1386
1387
1388
1389
1390
1391 # Check whether --with-gcc or --without-gcc was given.
1392 if test "${with_gcc+set}" = set; then
1393   withval="$with_gcc"
1394
1395 fi;
1396     V_CCOPT="-O"
1397     V_INCLS=""
1398     if test "${srcdir}" != "." ; then
1399             V_INCLS="-I\$(srcdir)"
1400     fi
1401     if test "${CFLAGS+set}" = set; then
1402             LBL_CFLAGS="$CFLAGS"
1403     fi
1404     if test -z "$CC" ; then
1405             case "$target_os" in
1406
1407             bsdi*)
1408                     # Extract the first word of "shlicc2", so it can be a program name with args.
1409 set dummy shlicc2; ac_word=$2
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1413   echo $ECHO_N "(cached) $ECHO_C" >&6
1414 else
1415   if test -n "$SHLICC2"; then
1416   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1417 else
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   for ac_exec_ext in '' $ac_executable_extensions; do
1424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425     ac_cv_prog_SHLICC2="yes"
1426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427     break 2
1428   fi
1429 done
1430 done
1431
1432   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1433 fi
1434 fi
1435 SHLICC2=$ac_cv_prog_SHLICC2
1436 if test -n "$SHLICC2"; then
1437   echo "$as_me:$LINENO: result: $SHLICC2" >&5
1438 echo "${ECHO_T}$SHLICC2" >&6
1439 else
1440   echo "$as_me:$LINENO: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1442 fi
1443
1444                     if test $SHLICC2 = yes ; then
1445                             CC=shlicc2
1446                             export CC
1447                     fi
1448                     ;;
1449             esac
1450     fi
1451     if test -z "$CC" -a "$with_gcc" = no ; then
1452             CC=cc
1453             export CC
1454     fi
1455     ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 if test -n "$ac_tool_prefix"; then
1461   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466   echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468   if test -n "$CC"; then
1469   ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474   IFS=$as_save_IFS
1475   test -z "$as_dir" && as_dir=.
1476   for ac_exec_ext in '' $ac_executable_extensions; do
1477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480     break 2
1481   fi
1482 done
1483 done
1484
1485 fi
1486 fi
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489   echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492   echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1494 fi
1495
1496 fi
1497 if test -z "$ac_cv_prog_CC"; then
1498   ac_ct_CC=$CC
1499   # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   if test -n "$ac_ct_CC"; then
1507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512   IFS=$as_save_IFS
1513   test -z "$as_dir" && as_dir=.
1514   for ac_exec_ext in '' $ac_executable_extensions; do
1515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516     ac_cv_prog_ac_ct_CC="gcc"
1517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518     break 2
1519   fi
1520 done
1521 done
1522
1523 fi
1524 fi
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1529 else
1530   echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 fi
1533
1534   CC=$ac_ct_CC
1535 else
1536   CC="$ac_cv_prog_CC"
1537 fi
1538
1539 if test -z "$CC"; then
1540   if test -n "$ac_tool_prefix"; then
1541   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   if test -n "$CC"; then
1549   ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554   IFS=$as_save_IFS
1555   test -z "$as_dir" && as_dir=.
1556   for ac_exec_ext in '' $ac_executable_extensions; do
1557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558     ac_cv_prog_CC="${ac_tool_prefix}cc"
1559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560     break 2
1561   fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569   echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572   echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 fi
1577 if test -z "$ac_cv_prog_CC"; then
1578   ac_ct_CC=$CC
1579   # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   if test -n "$ac_ct_CC"; then
1587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   for ac_exec_ext in '' $ac_executable_extensions; do
1595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596     ac_cv_prog_ac_ct_CC="cc"
1597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598     break 2
1599   fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614   CC=$ac_ct_CC
1615 else
1616   CC="$ac_cv_prog_CC"
1617 fi
1618
1619 fi
1620 if test -z "$CC"; then
1621   # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   if test -n "$CC"; then
1629   ac_cv_prog_CC="$CC" # Let the user override the test.
1630 else
1631   ac_prog_rejected=no
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   for ac_exec_ext in '' $ac_executable_extensions; do
1638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640        ac_prog_rejected=yes
1641        continue
1642      fi
1643     ac_cv_prog_CC="cc"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 if test $ac_prog_rejected = yes; then
1651   # We found a bogon in the path, so make sure we never use it.
1652   set dummy $ac_cv_prog_CC
1653   shift
1654   if test $# != 0; then
1655     # We chose a different compiler from the bogus one.
1656     # However, it has the same basename, so the bogon will be chosen
1657     # first if we set CC to just the basename; use the full file name.
1658     shift
1659     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1660   fi
1661 fi
1662 fi
1663 fi
1664 CC=$ac_cv_prog_CC
1665 if test -n "$CC"; then
1666   echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1668 else
1669   echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 fi
1674 if test -z "$CC"; then
1675   if test -n "$ac_tool_prefix"; then
1676   for ac_prog in cl
1677   do
1678     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$CC"; then
1686   ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 CC=$ac_cv_prog_CC
1705 if test -n "$CC"; then
1706   echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713     test -n "$CC" && break
1714   done
1715 fi
1716 if test -z "$CC"; then
1717   ac_ct_CC=$CC
1718   for ac_prog in cl
1719 do
1720   # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   if test -n "$ac_ct_CC"; then
1728   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   for ac_exec_ext in '' $ac_executable_extensions; do
1736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737     ac_cv_prog_ac_ct_CC="$ac_prog"
1738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739     break 2
1740   fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if test -n "$ac_ct_CC"; then
1748   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749 echo "${ECHO_T}$ac_ct_CC" >&6
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755   test -n "$ac_ct_CC" && break
1756 done
1757
1758   CC=$ac_ct_CC
1759 fi
1760
1761 fi
1762
1763
1764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&5
1766 echo "$as_me: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&2;}
1768    { (exit 1); exit 1; }; }
1769
1770 # Provide some information about the compiler.
1771 echo "$as_me:$LINENO:" \
1772      "checking for C compiler version" >&5
1773 ac_compiler=`set X $ac_compile; echo $2`
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1775   (eval $ac_compiler --version </dev/null >&5) 2>&5
1776   ac_status=$?
1777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778   (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1780   (eval $ac_compiler -v </dev/null >&5) 2>&5
1781   ac_status=$?
1782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783   (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1785   (eval $ac_compiler -V </dev/null >&5) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }
1789
1790 cat >conftest.$ac_ext <<_ACEOF
1791 #line $LINENO "configure"
1792 /* confdefs.h.  */
1793 _ACEOF
1794 cat confdefs.h >>conftest.$ac_ext
1795 cat >>conftest.$ac_ext <<_ACEOF
1796 /* end confdefs.h.  */
1797
1798 int
1799 main ()
1800 {
1801
1802   ;
1803   return 0;
1804 }
1805 _ACEOF
1806 ac_clean_files_save=$ac_clean_files
1807 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1808 # Try to create an executable without -o first, disregard a.out.
1809 # It will help us diagnose broken compilers, and finding out an intuition
1810 # of exeext.
1811 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1812 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1813 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1814 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1815   (eval $ac_link_default) 2>&5
1816   ac_status=$?
1817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818   (exit $ac_status); }; then
1819   # Find the output, starting from the most likely.  This scheme is
1820 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1821 # resort.
1822
1823 # Be careful to initialize this variable, since it used to be cached.
1824 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1825 ac_cv_exeext=
1826 # b.out is created by i960 compilers.
1827 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828 do
1829   test -f "$ac_file" || continue
1830   case $ac_file in
1831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832         ;;
1833     conftest.$ac_ext )
1834         # This is the source file.
1835         ;;
1836     [ab].out )
1837         # We found the default executable, but exeext='' is most
1838         # certainly right.
1839         break;;
1840     *.* )
1841         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842         # FIXME: I believe we export ac_cv_exeext for Libtool,
1843         # but it would be cool to find out if it's true.  Does anybody
1844         # maintain Libtool? --akim.
1845         export ac_cv_exeext
1846         break;;
1847     * )
1848         break;;
1849   esac
1850 done
1851 else
1852   echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&2;}
1859    { (exit 77); exit 77; }; }
1860 fi
1861
1862 ac_exeext=$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_file" >&5
1864 echo "${ECHO_T}$ac_file" >&6
1865
1866 # Check the compiler produces executables we can run.  If not, either
1867 # the compiler is broken, or we cross compile.
1868 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871 # If not cross compiling, check that we can run a simple program.
1872 if test "$cross_compiling" != yes; then
1873   if { ac_try='./$ac_file'
1874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875   (eval $ac_try) 2>&5
1876   ac_status=$?
1877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878   (exit $ac_status); }; }; then
1879     cross_compiling=no
1880   else
1881     if test "$cross_compiling" = maybe; then
1882         cross_compiling=yes
1883     else
1884         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'.
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: cannot run C compiled programs.
1888 If you meant to cross compile, use \`--host'.
1889 See \`config.log' for more details." >&2;}
1890    { (exit 1); exit 1; }; }
1891     fi
1892   fi
1893 fi
1894 echo "$as_me:$LINENO: result: yes" >&5
1895 echo "${ECHO_T}yes" >&6
1896
1897 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1898 ac_clean_files=$ac_clean_files_save
1899 # Check the compiler produces executables we can run.  If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1902 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1903 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1904 echo "${ECHO_T}$cross_compiling" >&6
1905
1906 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1909   (eval $ac_link) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }; then
1913   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1915 # work properly (i.e., refer to `conftest.exe'), while it won't with
1916 # `rm'.
1917 for ac_file in conftest.exe conftest conftest.*; do
1918   test -f "$ac_file" || continue
1919   case $ac_file in
1920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1921     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1922           export ac_cv_exeext
1923           break;;
1924     * ) break;;
1925   esac
1926 done
1927 else
1928   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934
1935 rm -f conftest$ac_cv_exeext
1936 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1937 echo "${ECHO_T}$ac_cv_exeext" >&6
1938
1939 rm -f conftest.$ac_ext
1940 EXEEXT=$ac_cv_exeext
1941 ac_exeext=$EXEEXT
1942 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1944 if test "${ac_cv_objext+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   cat >conftest.$ac_ext <<_ACEOF
1948 #line $LINENO "configure"
1949 /* confdefs.h.  */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h.  */
1954
1955 int
1956 main ()
1957 {
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.o conftest.obj
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965   (eval $ac_compile) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }; then
1969   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1970   case $ac_file in
1971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1972     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973        break;;
1974   esac
1975 done
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1988 fi
1989 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1990 echo "${ECHO_T}$ac_cv_objext" >&6
1991 OBJEXT=$ac_cv_objext
1992 ac_objext=$OBJEXT
1993 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1994 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 #line $LINENO "configure"
2000 /* confdefs.h.  */
2001 _ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h.  */
2005
2006 int
2007 main ()
2008 {
2009 #ifndef __GNUC__
2010        choke me
2011 #endif
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019   (eval $ac_compile) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); } &&
2023          { ac_try='test -s conftest.$ac_objext'
2024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025   (eval $ac_try) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }; }; then
2029   ac_compiler_gnu=yes
2030 else
2031   echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_compiler_gnu=no
2035 fi
2036 rm -f conftest.$ac_objext conftest.$ac_ext
2037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2038
2039 fi
2040 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2042 GCC=`test $ac_compiler_gnu = yes && echo yes`
2043 ac_test_CFLAGS=${CFLAGS+set}
2044 ac_save_CFLAGS=$CFLAGS
2045 CFLAGS="-g"
2046 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_g+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   cat >conftest.$ac_ext <<_ACEOF
2052 #line $LINENO "configure"
2053 /* confdefs.h.  */
2054 _ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h.  */
2058
2059 int
2060 main ()
2061 {
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069   (eval $ac_compile) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); } &&
2073          { ac_try='test -s conftest.$ac_objext'
2074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075   (eval $ac_try) 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }; }; then
2079   ac_cv_prog_cc_g=yes
2080 else
2081   echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 ac_cv_prog_cc_g=no
2085 fi
2086 rm -f conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2089 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2090 if test "$ac_test_CFLAGS" = set; then
2091   CFLAGS=$ac_save_CFLAGS
2092 elif test $ac_cv_prog_cc_g = yes; then
2093   if test "$GCC" = yes; then
2094     CFLAGS="-g -O2"
2095   else
2096     CFLAGS="-g"
2097   fi
2098 else
2099   if test "$GCC" = yes; then
2100     CFLAGS="-O2"
2101   else
2102     CFLAGS=
2103   fi
2104 fi
2105 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2106 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2107 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   ac_cv_prog_cc_stdc=no
2111 ac_save_CC=$CC
2112 cat >conftest.$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2114 /* confdefs.h.  */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h.  */
2119 #include <stdarg.h>
2120 #include <stdio.h>
2121 #include <sys/types.h>
2122 #include <sys/stat.h>
2123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2124 struct buf { int x; };
2125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2126 static char *e (p, i)
2127      char **p;
2128      int i;
2129 {
2130   return p[i];
2131 }
2132 static char *f (char * (*g) (char **, int), char **p, ...)
2133 {
2134   char *s;
2135   va_list v;
2136   va_start (v,p);
2137   s = g (p, va_arg (v,int));
2138   va_end (v);
2139   return s;
2140 }
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2147 int
2148 main ()
2149 {
2150 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX                   -qlanglvl=ansi
2158 # Ultrix and OSF/1      -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2161 # SVR4                  -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 do
2164   CC="$ac_save_CC $ac_arg"
2165   rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167   (eval $ac_compile) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); } &&
2171          { ac_try='test -s conftest.$ac_objext'
2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; }; then
2177   ac_cv_prog_cc_stdc=$ac_arg
2178 break
2179 else
2180   echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 fi
2184 rm -f conftest.$ac_objext
2185 done
2186 rm -f conftest.$ac_ext conftest.$ac_objext
2187 CC=$ac_save_CC
2188
2189 fi
2190
2191 case "x$ac_cv_prog_cc_stdc" in
2192   x|xno)
2193     echo "$as_me:$LINENO: result: none needed" >&5
2194 echo "${ECHO_T}none needed" >&6 ;;
2195   *)
2196     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2197 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2198     CC="$CC $ac_cv_prog_cc_stdc" ;;
2199 esac
2200
2201 # Some people use a C++ compiler to compile C.  Since we use `exit',
2202 # in C++ we need to declare it.  In case someone uses the same compiler
2203 # for both compiling C and C++ we need to have the C++ compiler decide
2204 # the declaration of exit, since it's the most demanding environment.
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #ifndef __cplusplus
2207   choke me
2208 #endif
2209 _ACEOF
2210 rm -f conftest.$ac_objext
2211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212   (eval $ac_compile) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); } &&
2216          { ac_try='test -s conftest.$ac_objext'
2217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218   (eval $ac_try) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }; }; then
2222   for ac_declaration in \
2223    ''\
2224    '#include <stdlib.h>' \
2225    'extern "C" void std::exit (int) throw (); using std::exit;' \
2226    'extern "C" void std::exit (int); using std::exit;' \
2227    'extern "C" void exit (int) throw ();' \
2228    'extern "C" void exit (int);' \
2229    'void exit (int);'
2230 do
2231   cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238 #include <stdlib.h>
2239 $ac_declaration
2240 int
2241 main ()
2242 {
2243 exit (42);
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); } &&
2254          { ac_try='test -s conftest.$ac_objext'
2255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256   (eval $ac_try) 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; }; then
2260   :
2261 else
2262   echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 continue
2266 fi
2267 rm -f conftest.$ac_objext conftest.$ac_ext
2268   cat >conftest.$ac_ext <<_ACEOF
2269 #line $LINENO "configure"
2270 /* confdefs.h.  */
2271 _ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h.  */
2275 $ac_declaration
2276 int
2277 main ()
2278 {
2279 exit (42);
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 rm -f conftest.$ac_objext
2285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286   (eval $ac_compile) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); } &&
2290          { ac_try='test -s conftest.$ac_objext'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   break
2297 else
2298   echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301 fi
2302 rm -f conftest.$ac_objext conftest.$ac_ext
2303 done
2304 rm -f conftest*
2305 if test -n "$ac_declaration"; then
2306   echo '#ifdef __cplusplus' >>confdefs.h
2307   echo $ac_declaration      >>confdefs.h
2308   echo '#endif'             >>confdefs.h
2309 fi
2310
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323     if test "$GCC" = yes ; then
2324             if test "$SHLICC2" = yes ; then
2325                     ac_cv_lbl_gcc_vers=2
2326                     V_CCOPT="-O2"
2327             else
2328                     echo "$as_me:$LINENO: checking gcc version" >&5
2329 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2330                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2334                             sed -e '/^gcc version /!d' \
2335                                 -e 's/^gcc version //' \
2336                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2337                                 -e 's/\..*//'`
2338 fi
2339
2340                     echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2341 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2342                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2343                             V_CCOPT="-O2"
2344                     fi
2345             fi
2346     else
2347             echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2348 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2349             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360 #include <sys/types.h>
2361 int
2362 main ()
2363 {
2364 int frob(int, char *)
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -s conftest.$ac_objext'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; }; then
2381   ac_cv_lbl_cc_ansi_prototypes=yes
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_cv_lbl_cc_ansi_prototypes=no
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 fi
2390
2391             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2392 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2393             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2394                     case "$target_os" in
2395
2396                     hpux*)
2397                             echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2398 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2399                             savedcflags="$CFLAGS"
2400                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2401                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   cat >conftest.$ac_ext <<_ACEOF
2405 #line $LINENO "configure"
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411 #include <sys/types.h>
2412 int
2413 main ()
2414 {
2415 int frob(int, char *)
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -s conftest.$ac_objext'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; }; then
2432   ac_cv_lbl_cc_hpux_cc_aa=yes
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 ac_cv_lbl_cc_hpux_cc_aa=no
2438 fi
2439 rm -f conftest.$ac_objext conftest.$ac_ext
2440 fi
2441
2442                             echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2443 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2444                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2445                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2446 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2447    { (exit 1); exit 1; }; }
2448                             fi
2449                             CFLAGS="$savedcflags"
2450                             V_CCOPT="-Aa $V_CCOPT"
2451
2452 cat >>confdefs.h <<\_ACEOF
2453 #define _HPUX_SOURCE 1
2454 _ACEOF
2455
2456                             ;;
2457
2458                     *)
2459                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2460 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2461    { (exit 1); exit 1; }; }
2462                             ;;
2463                     esac
2464             fi
2465             V_INCLS="$V_INCLS -I/usr/local/include"
2466             LDFLAGS="$LDFLAGS -L/usr/local/lib"
2467
2468             case "$target_os" in
2469
2470             irix*)
2471                     V_CCOPT="$V_CCOPT -xansi -signed -g3"
2472                     ;;
2473
2474             osf*)
2475                     V_CCOPT="$V_CCOPT -std1 -g3"
2476                     ;;
2477
2478             ultrix*)
2479                     echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2480 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2481                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491 #include <sys/types.h>
2492 int
2493 main ()
2494 {
2495 struct a { int b; };
2496                             void c(const struct a *)
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503   (eval $ac_compile) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -s conftest.$ac_objext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   ac_cv_lbl_cc_const_proto=yes
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 ac_cv_lbl_cc_const_proto=no
2519 fi
2520 rm -f conftest.$ac_objext conftest.$ac_ext
2521 fi
2522
2523                     echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2524 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2525                     if test $ac_cv_lbl_cc_const_proto = no ; then
2526                             cat >>confdefs.h <<\_ACEOF
2527 #define const
2528 _ACEOF
2529
2530                     fi
2531                     ;;
2532             esac
2533     fi
2534
2535 echo "$as_me:$LINENO: checking for inline" >&5
2536 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2537     if test "${ac_cv_lbl_inline+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540
2541         ac_cv_lbl_inline=""
2542         ac_lbl_cc_inline=no
2543         for ac_lbl_inline in inline __inline__ __inline
2544         do
2545             cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552 #define inline $ac_lbl_inline
2553                 static inline struct iltest *foo(void);
2554                 struct iltest {
2555                     int iltest1;
2556                     int iltest2;
2557                 };
2558
2559                 static inline struct iltest *
2560                 foo()
2561                 {
2562                     static struct iltest xxx;
2563
2564                     return &xxx;
2565                 }
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_lbl_cc_inline=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 fi
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2593             if test "$ac_lbl_cc_inline" = yes ; then
2594                 break;
2595             fi
2596         done
2597         if test "$ac_lbl_cc_inline" = yes ; then
2598             ac_cv_lbl_inline=$ac_lbl_inline
2599         fi
2600 fi
2601
2602     if test ! -z "$ac_cv_lbl_inline" ; then
2603         echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2604 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2605     else
2606         echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2608     fi
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define inline $ac_cv_lbl_inline
2612 _ACEOF
2613
2614
2615 echo "$as_me:$LINENO: checking for __attribute__" >&5
2616 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2617 if test "${ac_cv___attribute__+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628
2629 #include <stdlib.h>
2630
2631 int
2632 main ()
2633 {
2634
2635 static void foo(void) __attribute__ ((noreturn));
2636
2637 static void
2638 foo(void)
2639 {
2640   exit(1);
2641 }
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv___attribute__=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_cv___attribute__=no
2665 fi
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2667 fi
2668
2669 if test "$ac_cv___attribute__" = "yes"; then
2670
2671 cat >>confdefs.h <<\_ACEOF
2672 #define HAVE___ATTRIBUTE__ 1
2673 _ACEOF
2674
2675   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2676 else
2677   V_DEFS="$V_DEFS -D_U_=\"\""
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2680 echo "${ECHO_T}$ac_cv___attribute__" >&6
2681
2682
2683 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2684 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2685     if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 #       include "confdefs.h"
2697 #       include <sys/types.h>
2698 #       if STDC_HEADERS
2699 #       include <stdlib.h>
2700 #       include <stddef.h>
2701 #       endif
2702 int
2703 main ()
2704 {
2705 u_int8_t i
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712   (eval $ac_compile) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_lbl_have_u_int8_t=yes
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_cv_lbl_have_u_int8_t=no
2728 fi
2729 rm -f conftest.$ac_objext conftest.$ac_ext
2730 fi
2731
2732     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2733 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2734     if test $ac_cv_lbl_have_u_int8_t = no ; then
2735
2736 cat >>confdefs.h <<\_ACEOF
2737 #define u_int8_t u_char
2738 _ACEOF
2739
2740     fi
2741 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2742 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2743     if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   cat >conftest.$ac_ext <<_ACEOF
2747 #line $LINENO "configure"
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753
2754 #       include "confdefs.h"
2755 #       include <sys/types.h>
2756 #       if STDC_HEADERS
2757 #       include <stdlib.h>
2758 #       include <stddef.h>
2759 #       endif
2760 int
2761 main ()
2762 {
2763 u_int16_t i
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -s conftest.$ac_objext'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   ac_cv_lbl_have_u_int16_t=yes
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 ac_cv_lbl_have_u_int16_t=no
2786 fi
2787 rm -f conftest.$ac_objext conftest.$ac_ext
2788 fi
2789
2790     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2791 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2792     if test $ac_cv_lbl_have_u_int16_t = no ; then
2793
2794 cat >>confdefs.h <<\_ACEOF
2795 #define u_int16_t u_short
2796 _ACEOF
2797
2798     fi
2799 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2800 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2801     if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 #       include "confdefs.h"
2813 #       include <sys/types.h>
2814 #       if STDC_HEADERS
2815 #       include <stdlib.h>
2816 #       include <stddef.h>
2817 #       endif
2818 int
2819 main ()
2820 {
2821 u_int32_t i
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832          { ac_try='test -s conftest.$ac_objext'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838   ac_cv_lbl_have_u_int32_t=yes
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 ac_cv_lbl_have_u_int32_t=no
2844 fi
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846 fi
2847
2848     echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
2850     if test $ac_cv_lbl_have_u_int32_t = no ; then
2851
2852 cat >>confdefs.h <<\_ACEOF
2853 #define u_int32_t u_int
2854 _ACEOF
2855
2856     fi
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2864 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2865 # On Suns, sometimes $CPP names a directory.
2866 if test -n "$CPP" && test -d "$CPP"; then
2867   CPP=
2868 fi
2869 if test -z "$CPP"; then
2870   if test "${ac_cv_prog_CPP+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873       # Double quotes because CPP needs to be expanded
2874     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2875     do
2876       ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   break
2971 fi
2972
2973     done
2974     ac_cv_prog_CPP=$CPP
2975
2976 fi
2977   CPP=$ac_cv_prog_CPP
2978 else
2979   ac_cv_prog_CPP=$CPP
2980 fi
2981 echo "$as_me:$LINENO: result: $CPP" >&5
2982 echo "${ECHO_T}$CPP" >&6
2983 ac_preproc_ok=false
2984 for ac_c_preproc_warn_flag in '' yes
2985 do
2986   # Use a header file that comes with gcc, so configuring glibc
2987   # with a fresh cross-compiler works.
2988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2989   # <limits.h> exists even on freestanding compilers.
2990   # On the NeXT, cc -E runs the code through the compiler's parser,
2991   # not just through cpp. "Syntax error" is here to catch this case.
2992   cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999 #ifdef __STDC__
3000 # include <limits.h>
3001 #else
3002 # include <assert.h>
3003 #endif
3004                      Syntax error
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016   else
3017     ac_cpp_err=
3018   fi
3019 else
3020   ac_cpp_err=yes
3021 fi
3022 if test -z "$ac_cpp_err"; then
3023   :
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028   # Broken: fails on valid input.
3029 continue
3030 fi
3031 rm -f conftest.err conftest.$ac_ext
3032
3033   # OK, works on sane cases.  Now check whether non-existent headers
3034   # can be detected and how.
3035   cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042 #include <ac_nonexistent.h>
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } >/dev/null; then
3052   if test -s conftest.err; then
3053     ac_cpp_err=$ac_c_preproc_warn_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   # Broken: success on invalid input.
3062 continue
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067   # Passes both tests.
3068 ac_preproc_ok=:
3069 break
3070 fi
3071 rm -f conftest.err conftest.$ac_ext
3072
3073 done
3074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3075 rm -f conftest.err conftest.$ac_ext
3076 if $ac_preproc_ok; then
3077   :
3078 else
3079   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3080 See \`config.log' for more details." >&5
3081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3082 See \`config.log' for more details." >&2;}
3083    { (exit 1); exit 1; }; }
3084 fi
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092
3093 echo "$as_me:$LINENO: checking for egrep" >&5
3094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3095 if test "${ac_cv_prog_egrep+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3099     then ac_cv_prog_egrep='grep -E'
3100     else ac_cv_prog_egrep='egrep'
3101     fi
3102 fi
3103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3105  EGREP=$ac_cv_prog_egrep
3106
3107
3108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3110 if test "${ac_cv_header_stdc+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #include <stdlib.h>
3121 #include <stdarg.h>
3122 #include <string.h>
3123 #include <float.h>
3124
3125 int
3126 main ()
3127 {
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135   (eval $ac_compile) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -s conftest.$ac_objext'
3140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_cv_header_stdc=yes
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ac_cv_header_stdc=no
3151 fi
3152 rm -f conftest.$ac_objext conftest.$ac_ext
3153
3154 if test $ac_cv_header_stdc = yes; then
3155   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156   cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163 #include <string.h>
3164
3165 _ACEOF
3166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3167   $EGREP "memchr" >/dev/null 2>&1; then
3168   :
3169 else
3170   ac_cv_header_stdc=no
3171 fi
3172 rm -f conftest*
3173
3174 fi
3175
3176 if test $ac_cv_header_stdc = yes; then
3177   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3178   cat >conftest.$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185 #include <stdlib.h>
3186
3187 _ACEOF
3188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189   $EGREP "free" >/dev/null 2>&1; then
3190   :
3191 else
3192   ac_cv_header_stdc=no
3193 fi
3194 rm -f conftest*
3195
3196 fi
3197
3198 if test $ac_cv_header_stdc = yes; then
3199   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3200   if test "$cross_compiling" = yes; then
3201   :
3202 else
3203   cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210 #include <ctype.h>
3211 #if ((' ' & 0x0FF) == 0x020)
3212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3214 #else
3215 # define ISLOWER(c) \
3216                    (('a' <= (c) && (c) <= 'i') \
3217                      || ('j' <= (c) && (c) <= 'r') \
3218                      || ('s' <= (c) && (c) <= 'z'))
3219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3220 #endif
3221
3222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3223 int
3224 main ()
3225 {
3226   int i;
3227   for (i = 0; i < 256; i++)
3228     if (XOR (islower (i), ISLOWER (i))
3229         || toupper (i) != TOUPPER (i))
3230       exit(2);
3231   exit (0);
3232 }
3233 _ACEOF
3234 rm -f conftest$ac_exeext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236   (eval $ac_link) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; }; then
3245   :
3246 else
3247   echo "$as_me: program exited with status $ac_status" >&5
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 ( exit $ac_status )
3252 ac_cv_header_stdc=no
3253 fi
3254 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3255 fi
3256 fi
3257 fi
3258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3260 if test $ac_cv_header_stdc = yes; then
3261
3262 cat >>confdefs.h <<\_ACEOF
3263 #define STDC_HEADERS 1
3264 _ACEOF
3265
3266 fi
3267
3268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3279                   inttypes.h stdint.h unistd.h
3280 do
3281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3282 echo "$as_me:$LINENO: checking for $ac_header" >&5
3283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   cat >conftest.$ac_ext <<_ACEOF
3288 #line $LINENO "configure"
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 $ac_includes_default
3295
3296 #include <$ac_header>
3297 _ACEOF
3298 rm -f conftest.$ac_objext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300   (eval $ac_compile) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } &&
3304          { ac_try='test -s conftest.$ac_objext'
3305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306   (eval $ac_try) 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; }; then
3310   eval "$as_ac_Header=yes"
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 eval "$as_ac_Header=no"
3316 fi
3317 rm -f conftest.$ac_objext conftest.$ac_ext
3318 fi
3319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3322   cat >>confdefs.h <<_ACEOF
3323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3324 _ACEOF
3325
3326 fi
3327
3328 done
3329
3330
3331
3332
3333
3334
3335 for ac_header in sys/ioccom.h sys/sockio.h ifaddrs.h limits.h
3336 do
3337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3339   echo "$as_me:$LINENO: checking for $ac_header" >&5
3340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 fi
3344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3346 else
3347   # Is the header compilable?
3348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3350 cat >conftest.$ac_ext <<_ACEOF
3351 #line $LINENO "configure"
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 $ac_includes_default
3358 #include <$ac_header>
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362   (eval $ac_compile) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -s conftest.$ac_objext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_header_compiler=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_header_compiler=no
3378 fi
3379 rm -f conftest.$ac_objext conftest.$ac_ext
3380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3381 echo "${ECHO_T}$ac_header_compiler" >&6
3382
3383 # Is the header present?
3384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #include <$ac_header>
3394 _ACEOF
3395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   ac_header_preproc=yes
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417   ac_header_preproc=no
3418 fi
3419 rm -f conftest.err conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3421 echo "${ECHO_T}$ac_header_preproc" >&6
3422
3423 # So?  What about this header?
3424 case $ac_header_compiler:$ac_header_preproc in
3425   yes:no )
3426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3430     (
3431       cat <<\_ASBOX
3432 ## ------------------------------------ ##
3433 ## Report this to bug-autoconf@gnu.org. ##
3434 ## ------------------------------------ ##
3435 _ASBOX
3436     ) |
3437       sed "s/^/$as_me: WARNING:     /" >&2
3438     ;;
3439   no:yes )
3440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3442     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3446     (
3447       cat <<\_ASBOX
3448 ## ------------------------------------ ##
3449 ## Report this to bug-autoconf@gnu.org. ##
3450 ## ------------------------------------ ##
3451 _ASBOX
3452     ) |
3453       sed "s/^/$as_me: WARNING:     /" >&2
3454     ;;
3455 esac
3456 echo "$as_me:$LINENO: checking for $ac_header" >&5
3457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   eval "$as_ac_Header=$ac_header_preproc"
3462 fi
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3465
3466 fi
3467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3468   cat >>confdefs.h <<_ACEOF
3469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3470 _ACEOF
3471
3472 fi
3473
3474 done
3475
3476
3477 for ac_header in netinet/if_ether.h
3478 do
3479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492 #include <sys/types.h>
3493 #include <sys/socket.h>
3494
3495 #include <$ac_header>
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499   (eval $ac_compile) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } &&
3503          { ac_try='test -s conftest.$ac_objext'
3504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505   (eval $ac_try) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   eval "$as_ac_Header=yes"
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 eval "$as_ac_Header=no"
3515 fi
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517 fi
3518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3521   cat >>confdefs.h <<_ACEOF
3522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3523 _ACEOF
3524
3525 fi
3526
3527 done
3528
3529
3530 if test "$GCC" = yes ; then
3531             echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3532 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3533             if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 /*
3544                      * This generates a "duplicate case value" when fixincludes
3545                      * has not be run.
3546                      */
3547 #               include <sys/types.h>
3548 #               include <sys/time.h>
3549 #               include <sys/ioctl.h>
3550 #               ifdef HAVE_SYS_IOCCOM_H
3551 #               include <sys/ioccom.h>
3552 #               endif
3553 int
3554 main ()
3555 {
3556 switch (0) {
3557                     case _IO('A', 1):;
3558                     case _IO('B', 1):;
3559                     }
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566   (eval $ac_compile) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } &&
3570          { ac_try='test -s conftest.$ac_objext'
3571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572   (eval $ac_try) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; }; then
3576   ac_cv_lbl_gcc_fixincludes=yes
3577 else
3578   echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_cv_lbl_gcc_fixincludes=no
3582 fi
3583 rm -f conftest.$ac_objext conftest.$ac_ext
3584 fi
3585
3586             echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3587 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3588             if test $ac_cv_lbl_gcc_fixincludes = no ; then
3589                     # Don't cache failure
3590                     unset ac_cv_lbl_gcc_fixincludes
3591                     { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3592 echo "$as_me: error: see the INSTALL for more info" >&2;}
3593    { (exit 1); exit 1; }; }
3594             fi
3595     fi
3596
3597
3598
3599
3600 for ac_func in ether_hostton strerror strlcpy
3601 do
3602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3603 echo "$as_me:$LINENO: checking for $ac_func" >&5
3604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3605 if eval "test \"\${$as_ac_var+set}\" = set"; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   cat >conftest.$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3610 /* confdefs.h.  */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h.  */
3615 /* System header to define __stub macros and hopefully few prototypes,
3616     which can conflict with char $ac_func (); below.
3617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618     <limits.h> exists even on freestanding compilers.  */
3619 #ifdef __STDC__
3620 # include <limits.h>
3621 #else
3622 # include <assert.h>
3623 #endif
3624 /* Override any gcc2 internal prototype to avoid an error.  */
3625 #ifdef __cplusplus
3626 extern "C"
3627 {
3628 #endif
3629 /* We use char because int might match the return type of a gcc2
3630    builtin and then its argument prototype would still apply.  */
3631 char $ac_func ();
3632 /* The GNU C library defines this for functions which it implements
3633     to always fail with ENOSYS.  Some functions are actually named
3634     something starting with __ and the normal name is an alias.  */
3635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3636 choke me
3637 #else
3638 char (*f) () = $ac_func;
3639 #endif
3640 #ifdef __cplusplus
3641 }
3642 #endif
3643
3644 int
3645 main ()
3646 {
3647 return f != $ac_func;
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654   (eval $ac_link) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -s conftest$ac_exeext'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; }; then
3664   eval "$as_ac_var=yes"
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 eval "$as_ac_var=no"
3670 fi
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 fi
3673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3675 if test `eval echo '${'$as_ac_var'}'` = yes; then
3676   cat >>confdefs.h <<_ACEOF
3677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3678 _ACEOF
3679
3680 fi
3681 done
3682
3683
3684 needsnprintf=no
3685
3686
3687 for ac_func in vsnprintf snprintf
3688 do
3689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3690 echo "$as_me:$LINENO: checking for $ac_func" >&5
3691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3692 if eval "test \"\${$as_ac_var+set}\" = set"; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3697 /* confdefs.h.  */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h.  */
3702 /* System header to define __stub macros and hopefully few prototypes,
3703     which can conflict with char $ac_func (); below.
3704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705     <limits.h> exists even on freestanding compilers.  */
3706 #ifdef __STDC__
3707 # include <limits.h>
3708 #else
3709 # include <assert.h>
3710 #endif
3711 /* Override any gcc2 internal prototype to avoid an error.  */
3712 #ifdef __cplusplus
3713 extern "C"
3714 {
3715 #endif
3716 /* We use char because int might match the return type of a gcc2
3717    builtin and then its argument prototype would still apply.  */
3718 char $ac_func ();
3719 /* The GNU C library defines this for functions which it implements
3720     to always fail with ENOSYS.  Some functions are actually named
3721     something starting with __ and the normal name is an alias.  */
3722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3723 choke me
3724 #else
3725 char (*f) () = $ac_func;
3726 #endif
3727 #ifdef __cplusplus
3728 }
3729 #endif
3730
3731 int
3732 main ()
3733 {
3734 return f != $ac_func;
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741   (eval $ac_link) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -s conftest$ac_exeext'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; }; then
3751   eval "$as_ac_var=yes"
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 eval "$as_ac_var=no"
3757 fi
3758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3759 fi
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3762 if test `eval echo '${'$as_ac_var'}'` = yes; then
3763   cat >>confdefs.h <<_ACEOF
3764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3765 _ACEOF
3766
3767 else
3768   needsnprintf=yes
3769 fi
3770 done
3771
3772 if test $needsnprintf = yes; then
3773         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
3774 fi
3775
3776 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
3777 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
3778 # Check whether --enable-protochain or --disable-protochain was given.
3779 if test "${enable_protochain+set}" = set; then
3780   enableval="$enable_protochain"
3781
3782 fi;
3783 case "x$enable_protochain" in
3784 xyes)   enable_protochain=enabled       ;;
3785 xno)    enable_protochain=disabled      ;;
3786 x)      enable_protochain=enabled       ;;
3787 esac
3788
3789 if test "$enable_protochain" = "disabled"; then
3790
3791 cat >>confdefs.h <<\_ACEOF
3792 #define NO_PROTOCHAIN 1
3793 _ACEOF
3794
3795 fi
3796 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
3797 echo "${ECHO_T}${enable_protochain}" >&6
3798
3799 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
3800         { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
3801 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
3802    { (exit 1); exit 1; }; }
3803 fi
3804
3805 # Check whether --with-pcap or --without-pcap was given.
3806 if test "${with_pcap+set}" = set; then
3807   withval="$with_pcap"
3808
3809 fi;
3810 echo "$as_me:$LINENO: checking packet capture type" >&5
3811 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
3812 if test ! -z "$with_pcap" ; then
3813         V_PCAP="$withval"
3814 elif test -r /dev/bpf0 ; then
3815         V_PCAP=bpf
3816 elif test -r /usr/include/net/pfilt.h ; then
3817         V_PCAP=pf
3818 elif test -r /dev/enet ; then
3819         V_PCAP=enet
3820 elif test -r /dev/nit ; then
3821         V_PCAP=snit
3822 elif test -r /usr/include/sys/net/nit.h ; then
3823         V_PCAP=nit
3824 elif test -r /usr/include/linux/socket.h ; then
3825         V_PCAP=linux
3826 elif test -r /usr/include/net/raw.h ; then
3827         V_PCAP=snoop
3828 elif test -r /usr/include/odmi.h ; then
3829         #
3830         # On AIX, the BPF devices might not yet be present - they're
3831         # created the first time libpcap runs after booting.
3832         # We check for odmi.h instead.
3833         #
3834         V_PCAP=bpf
3835 elif test -r /usr/include/sys/dlpi.h ; then
3836         V_PCAP=dlpi
3837 elif test -c /dev/bpf0 ; then           # check again in case not readable
3838         V_PCAP=bpf
3839 elif test -c /dev/enet ; then           # check again in case not readable
3840         V_PCAP=enet
3841 elif test -c /dev/nit ; then            # check again in case not readable
3842         V_PCAP=snit
3843 else
3844         V_PCAP=null
3845 fi
3846 echo "$as_me:$LINENO: result: $V_PCAP" >&5
3847 echo "${ECHO_T}$V_PCAP" >&6
3848
3849 echo "$as_me:$LINENO: checking for getifaddrs" >&5
3850 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
3851 if test "${ac_cv_func_getifaddrs+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861 /* System header to define __stub macros and hopefully few prototypes,
3862     which can conflict with char getifaddrs (); below.
3863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864     <limits.h> exists even on freestanding compilers.  */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870 /* Override any gcc2 internal prototype to avoid an error.  */
3871 #ifdef __cplusplus
3872 extern "C"
3873 {
3874 #endif
3875 /* We use char because int might match the return type of a gcc2
3876    builtin and then its argument prototype would still apply.  */
3877 char getifaddrs ();
3878 /* The GNU C library defines this for functions which it implements
3879     to always fail with ENOSYS.  Some functions are actually named
3880     something starting with __ and the normal name is an alias.  */
3881 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
3882 choke me
3883 #else
3884 char (*f) () = getifaddrs;
3885 #endif
3886 #ifdef __cplusplus
3887 }
3888 #endif
3889
3890 int
3891 main ()
3892 {
3893 return f != getifaddrs;
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900   (eval $ac_link) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } &&
3904          { ac_try='test -s conftest$ac_exeext'
3905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906   (eval $ac_try) 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   ac_cv_func_getifaddrs=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ac_cv_func_getifaddrs=no
3916 fi
3917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3918 fi
3919 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
3920 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
3921 if test $ac_cv_func_getifaddrs = yes; then
3922
3923         #
3924         # We have "getifaddrs()", so we use that to get the list
3925         #
3926         V_FINDALLDEVS=getad
3927
3928 else
3929
3930         #
3931         # Well, we don't have "getifaddrs()", so we have to use some
3932         # other mechanism; determine what that mechanism is.
3933         #
3934         # The first thing we use is the type of capture mechanism,
3935         # which is somewhat of a proxy for the OS we're using.
3936         #
3937         case "$V_PCAP" in
3938
3939         dlpi)
3940                 #
3941                 # This might be Solaris 8 or later, with SIOCGLIFCONF,
3942                 # or it might be some other OS, with just SIOCGIFCONF.
3943                 #
3944                 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
3945 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
3946                 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956 #include <sys/param.h>
3957                         #include <sys/file.h>
3958                         #include <sys/ioctl.h>
3959                         #include <sys/socket.h>
3960                         #include <sys/sockio.h>
3961 int
3962 main ()
3963 {
3964 ioctl(0, SIOCGLIFCONF, (char *)0);
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971   (eval $ac_compile) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -s conftest.$ac_objext'
3976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   ac_cv_lbl_have_siocglifconf=yes
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ac_cv_lbl_have_siocglifconf=no
3987 fi
3988 rm -f conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991                 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
3992 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
3993                 if test $ac_cv_lbl_have_siocglifconf = yes ; then
3994                         V_FINDALLDEVS=glifc
3995                 else
3996                         V_FINDALLDEVS=gifc
3997                 fi
3998                 ;;
3999
4000         null)
4001                 #
4002                 # We can't capture, so we can't open any capture
4003                 # devices, so we won't return any interfaces.
4004                 #
4005                 V_FINDALLDEVS=null
4006                 ;;
4007
4008         *)
4009                 #
4010                 # Assume we just have SIOCGIFCONF.
4011                 # (XXX - on at least later Linux kernels, there's
4012                 # another mechanism, and we should be using that
4013                 # instead.)
4014                 #
4015                 V_FINDALLDEVS=gifc
4016                 ;;
4017         esac
4018 fi
4019
4020
4021 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
4022 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
4023 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4024 if test "${enable_ipv6+set}" = set; then
4025   enableval="$enable_ipv6"
4026
4027 fi;
4028 if test "$enable_ipv6" = "yes"; then
4029
4030 cat >>confdefs.h <<\_ACEOF
4031 #define INET6 1
4032 _ACEOF
4033
4034 fi
4035 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
4036 echo "${ECHO_T}${enable_ipv6-no}" >&6
4037
4038 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
4039 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
4040 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
4041 if test "${enable_optimizer_dbg+set}" = set; then
4042   enableval="$enable_optimizer_dbg"
4043
4044 fi;
4045 if test "$enable_optimizer_dbg" = "yes"; then
4046
4047 cat >>confdefs.h <<\_ACEOF
4048 #define BDEBUG 1
4049 _ACEOF
4050
4051 fi
4052 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
4053 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
4054
4055 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
4056 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
4057 # Check whether --enable-yydebug or --disable-yydebug was given.
4058 if test "${enable_yydebug+set}" = set; then
4059   enableval="$enable_yydebug"
4060
4061 fi;
4062 if test "$enable_yydebug" = "yes"; then
4063
4064 cat >>confdefs.h <<\_ACEOF
4065 #define YYDEBUG 1
4066 _ACEOF
4067
4068 fi
4069 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
4070 echo "${ECHO_T}${enable_yydebug-no}" >&6
4071
4072 case "$V_PCAP" in
4073
4074 dlpi)
4075
4076
4077 for ac_header in sys/bufmod.h sys/dlpi_ext.h
4078 do
4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081   echo "$as_me:$LINENO: checking for $ac_header" >&5
4082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 fi
4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4088 else
4089   # Is the header compilable?
4090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 $ac_includes_default
4100 #include <$ac_header>
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -s conftest.$ac_objext'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   ac_header_compiler=yes
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 ac_header_compiler=no
4120 fi
4121 rm -f conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4123 echo "${ECHO_T}$ac_header_compiler" >&6
4124
4125 # Is the header present?
4126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4128 cat >conftest.$ac_ext <<_ACEOF
4129 #line $LINENO "configure"
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <$ac_header>
4136 _ACEOF
4137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4139   ac_status=$?
4140   grep -v '^ *+' conftest.er1 >conftest.err
4141   rm -f conftest.er1
4142   cat conftest.err >&5
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } >/dev/null; then
4145   if test -s conftest.err; then
4146     ac_cpp_err=$ac_c_preproc_warn_flag
4147   else
4148     ac_cpp_err=
4149   fi
4150 else
4151   ac_cpp_err=yes
4152 fi
4153 if test -z "$ac_cpp_err"; then
4154   ac_header_preproc=yes
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159   ac_header_preproc=no
4160 fi
4161 rm -f conftest.err conftest.$ac_ext
4162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4163 echo "${ECHO_T}$ac_header_preproc" >&6
4164
4165 # So?  What about this header?
4166 case $ac_header_compiler:$ac_header_preproc in
4167   yes:no )
4168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4172     (
4173       cat <<\_ASBOX
4174 ## ------------------------------------ ##
4175 ## Report this to bug-autoconf@gnu.org. ##
4176 ## ------------------------------------ ##
4177 _ASBOX
4178     ) |
4179       sed "s/^/$as_me: WARNING:     /" >&2
4180     ;;
4181   no:yes )
4182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4184     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4188     (
4189       cat <<\_ASBOX
4190 ## ------------------------------------ ##
4191 ## Report this to bug-autoconf@gnu.org. ##
4192 ## ------------------------------------ ##
4193 _ASBOX
4194     ) |
4195       sed "s/^/$as_me: WARNING:     /" >&2
4196     ;;
4197 esac
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   eval "$as_ac_Header=$ac_header_preproc"
4204 fi
4205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4207
4208 fi
4209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4210   cat >>confdefs.h <<_ACEOF
4211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212 _ACEOF
4213
4214 fi
4215
4216 done
4217
4218         echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
4219 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
4220         if test -c /dev/dlpi ; then
4221                 echo "$as_me:$LINENO: result: yes" >&5
4222 echo "${ECHO_T}yes" >&6
4223
4224 cat >>confdefs.h <<\_ACEOF
4225 #define HAVE_DEV_DLPI 1
4226 _ACEOF
4227
4228         else
4229                 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231                 dir="/dev/dlpi"
4232                 echo "$as_me:$LINENO: checking for $dir directory" >&5
4233 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
4234                 if test -d $dir ; then
4235                         echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4237
4238 cat >>confdefs.h <<_ACEOF
4239 #define PCAP_DEV_PREFIX "$dir"
4240 _ACEOF
4241
4242                 else
4243                         echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4245                 fi
4246         fi
4247         ;;
4248
4249 linux)
4250         echo "$as_me:$LINENO: checking Linux kernel version" >&5
4251 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
4252         if test "$cross_compiling" = yes; then
4253                 if test "${ac_cv_linux_vers+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   ac_cv_linux_vers=unknown
4257 fi
4258
4259         else
4260                 if test "${ac_cv_linux_vers+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   ac_cv_linux_vers=`uname -r 2>&1 | \
4264                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
4265 fi
4266
4267         fi
4268         echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4269 echo "${ECHO_T}$ac_cv_linux_vers" >&6
4270         if test $ac_cv_linux_vers = unknown ; then
4271                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4272 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4273    { (exit 1); exit 1; }; }
4274         fi
4275         if test $ac_cv_linux_vers -lt 2 ; then
4276                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4277 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4278    { (exit 1); exit 1; }; }
4279         fi
4280         echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
4281 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
4282    if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   cat >conftest.$ac_ext <<_ACEOF
4286 #line $LINENO "configure"
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292
4293 #  include <linux/if_packet.h>
4294 int
4295 main ()
4296 {
4297 struct tpacket_stats stats
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } &&
4308          { ac_try='test -s conftest.$ac_objext'
4309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310   (eval $ac_try) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; }; then
4314   ac_cv_lbl_tpacket_stats=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_cv_lbl_tpacket_stats=no
4320 fi
4321 rm -f conftest.$ac_objext conftest.$ac_ext
4322 fi
4323
4324    echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
4325 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
4326    if test $ac_cv_lbl_tpacket_stats = yes; then
4327
4328 cat >>confdefs.h <<\_ACEOF
4329 #define HAVE_TPACKET_STATS 1
4330 _ACEOF
4331
4332    fi
4333         ;;
4334
4335 dag)
4336         V_DEFS="$V_DEFS -DDAG_ONLY"
4337         ;;
4338
4339 null)
4340         { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
4341 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
4342         { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
4343 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
4344         ;;
4345
4346 esac
4347
4348 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
4349 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
4350 if test -r /proc/net/dev ; then
4351         ac_cv_lbl_proc_net_dev=yes
4352 else
4353         ac_cv_lbl_proc_net_dev=no
4354 fi
4355 if test $ac_cv_lbl_proc_net_dev = yes; then
4356
4357 cat >>confdefs.h <<\_ACEOF
4358 #define HAVE_PROC_NET_DEV 1
4359 _ACEOF
4360
4361 fi
4362 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
4363 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
4364
4365
4366 # Check whether --with-dag or --without-dag was given.
4367 if test "${with_dag+set}" = set; then
4368   withval="$with_dag"
4369
4370         if test "$withval" = no
4371         then
4372                 want_dag=no
4373         elif test "$withval" = yes
4374         then
4375                 want_dag=yes
4376                 dag_root=
4377         else
4378                 want_dag=yes
4379                 dag_root=$withval
4380         fi
4381
4382 else
4383
4384         #
4385         # Use DAG API if present, otherwise don't
4386         #
4387         want_dag=ifpresent
4388         dag_root=/root/dag
4389
4390 fi;
4391 ac_cv_lbl_dag_api=no
4392 case "$V_PCAP" in
4393 linux|bpf|dag)
4394         #
4395         # We support the DAG API on Linux or BSD, or if we're building a
4396         # DAG-only libpcap.
4397         #
4398         ;;
4399 *)
4400         #
4401         # If the user explicitly requested DAG, tell them it's not
4402         # supported.
4403         #
4404         # If they expressed no preference, don't include it.
4405         #
4406         if test $want_dag = yes; then
4407                 { { echo "$as_me:$LINENO: error: DAG support only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
4408 echo "$as_me: error: DAG support only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
4409    { (exit 1); exit 1; }; }
4410         elif test $want_dag = yes; then
4411                 want_dag=no
4412         fi
4413         ;;
4414 esac
4415
4416 if test "$with_dag" != no; then
4417         echo "$as_me:$LINENO: checking whether we have DAG API" >&5
4418 echo $ECHO_N "checking whether we have DAG API... $ECHO_C" >&6
4419
4420         if test -z "$dag_root"; then
4421                 dag_root=$srcdir/../dag
4422         fi
4423
4424         if test -r "$dag_root/tools" -a -r "$dag_root/include"; then
4425                 dag_tools_dir="$dag_root/tools"
4426                 dag_include_dir="$dag_root/include"
4427         else
4428                 dag_tools_dir="$dag_root"
4429                 dag_include_dir="$dag_root"
4430         fi
4431
4432         ac_cv_lbl_dag_api=no
4433         if test -r "$dag_include_dir/dagapi.h" -a -r "$dag_tools_dir/dagapi.o" -a -r "$dag_tools_dir/dagopts.o"; then
4434                 V_INCLS="$V_INCLS -I $dag_include_dir"
4435                 V_LIBS="$V_LIBS $dag_tools_dir/dagapi.o $dag_tools_dir/dagopts.o"
4436                 if test "$V_PCAP" != dag ; then
4437                          SSRC="pcap-dag.c"
4438                 fi
4439                 ac_cv_lbl_dag_api=yes
4440         fi
4441         if test -r "$dag_root/lib/dagreg.c"; then # DAG 2.5.x
4442                 if test -r "$dag_tools_dir/dagreg.o"; then
4443                         V_LIBS="$V_LIBS $dag_tools_dir/dagreg.o"
4444                 else
4445                         ac_cv_lbl_dag_api=no
4446                 fi
4447         fi
4448         dag_version=
4449         if test $ac_cv_lbl_dag_api = yes -a -r "$dag_root/VERSION"; then
4450                 dag_version=" (`cat $dag_root/VERSION`)"
4451         fi
4452         echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api$dag_version" >&5
4453 echo "${ECHO_T}$ac_cv_lbl_dag_api$dag_version" >&6
4454         if test $ac_cv_lbl_dag_api = no; then
4455                 if test "$want_dag" = yes; then
4456                         { { echo "$as_me:$LINENO: error: DAG API not found under directory $dag_root; use --without-dag" >&5
4457 echo "$as_me: error: DAG API not found under directory $dag_root; use --without-dag" >&2;}
4458    { (exit 1); exit 1; }; }
4459                 fi
4460         else
4461
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_DAG_API 1
4464 _ACEOF
4465
4466         fi
4467 fi
4468
4469 if test "$V_PCAP" = dag -a "$ac_cv_lbl_dag_api" = no; then
4470         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'dag' requires the DAG API to be present; use --with-dag=DIR" >&5
4471 echo "$as_me: error: Specifying the capture type as 'dag' requires the DAG API to be present; use --with-dag=DIR" >&2;}
4472    { (exit 1); exit 1; }; }
4473 fi
4474
4475
4476
4477 # Check whether --with-flex or --without-flex was given.
4478 if test "${with_flex+set}" = set; then
4479   withval="$with_flex"
4480
4481 fi;
4482
4483 # Check whether --with-bison or --without-bison was given.
4484 if test "${with_bison+set}" = set; then
4485   withval="$with_bison"
4486
4487 fi;
4488     if test "$with_flex" = no ; then
4489             V_LEX=lex
4490     else
4491             for ac_prog in flex
4492 do
4493   # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_V_LEX+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   if test -n "$V_LEX"; then
4501   ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510     ac_cv_prog_V_LEX="$ac_prog"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516
4517 fi
4518 fi
4519 V_LEX=$ac_cv_prog_V_LEX
4520 if test -n "$V_LEX"; then
4521   echo "$as_me:$LINENO: result: $V_LEX" >&5
4522 echo "${ECHO_T}$V_LEX" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528   test -n "$V_LEX" && break
4529 done
4530 test -n "$V_LEX" || V_LEX="lex"
4531
4532     fi
4533     if test "$V_LEX" = flex ; then
4534             # The -V flag was added in 2.4
4535             echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
4536 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
4537             if test "${ac_cv_lbl_flex_v24+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   if flex -V >/dev/null 2>&1; then
4541                         ac_cv_lbl_flex_v24=yes
4542                 else
4543                         ac_cv_lbl_flex_v24=no
4544                 fi
4545 fi
4546
4547             echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
4548 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
4549             if test $ac_cv_lbl_flex_v24 = no ; then
4550                     s="2.4 or higher required"
4551                     { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
4552 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
4553                     V_LEX=lex
4554             fi
4555     fi
4556     if test "$with_bison" = no ; then
4557             V_YACC=yacc
4558     else
4559             for ac_prog in bison
4560 do
4561   # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_V_YACC+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   if test -n "$V_YACC"; then
4569   ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_prog_V_YACC="$ac_prog"
4579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583 done
4584
4585 fi
4586 fi
4587 V_YACC=$ac_cv_prog_V_YACC
4588 if test -n "$V_YACC"; then
4589   echo "$as_me:$LINENO: result: $V_YACC" >&5
4590 echo "${ECHO_T}$V_YACC" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596   test -n "$V_YACC" && break
4597 done
4598 test -n "$V_YACC" || V_YACC="yacc"
4599
4600     fi
4601     if test "$V_YACC" = bison ; then
4602             V_YACC="$V_YACC -y"
4603     fi
4604     if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
4605             { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
4606 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
4607             V_LEX=lex
4608             V_YACC=yacc
4609     fi
4610     if test "$V_LEX" = flex -a -n "pcap_" ; then
4611             V_LEX="$V_LEX -Ppcap_"
4612             V_YACC="$V_YACC -p pcap_"
4613     fi
4614 if test "$V_LEX" = lex ; then
4615 # Some versions of lex can't handle the definitions section of scanner.l .
4616 # Try lexing it and complain if it can't deal.
4617         echo "$as_me:$LINENO: checking for capable lex" >&5
4618 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
4619 if test "${tcpdump_cv_capable_lex+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   if lex -t scanner.l > /dev/null 2>&1; then
4623                         tcpdump_cv_capable_lex=yes
4624                 else
4625                         tcpdump_cv_capable_lex=insufficient
4626                 fi
4627 fi
4628 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
4629 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
4630         if test $tcpdump_cv_capable_lex = insufficient ; then
4631                 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
4632  libpcap.  flex is a lex replacement that has many advantages, including
4633  being able to compile libpcap.  For more information, see
4634  http://www.gnu.org/software/flex/flex.html ." >&5
4635 echo "$as_me: error: Your operating system's lex is insufficient to compile
4636  libpcap.  flex is a lex replacement that has many advantages, including
4637  being able to compile libpcap.  For more information, see
4638  http://www.gnu.org/software/flex/flex.html ." >&2;}
4639    { (exit 1); exit 1; }; }
4640         fi
4641 fi
4642
4643 case "$host_os" in
4644
4645 aix*)
4646
4647 cat >>confdefs.h <<\_ACEOF
4648 #define _SUN 1
4649 _ACEOF
4650
4651         ;;
4652
4653 hpux9*)
4654
4655 cat >>confdefs.h <<\_ACEOF
4656 #define HAVE_HPUX9 1
4657 _ACEOF
4658
4659         ;;
4660
4661 hpux10.0*)
4662         ;;
4663
4664 hpux10.1*)
4665         ;;
4666
4667 hpux*)
4668
4669 cat >>confdefs.h <<\_ACEOF
4670 #define HAVE_HPUX10_20 1
4671 _ACEOF
4672
4673         ;;
4674
4675 sinix*)
4676         echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
4677 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
4678         if test "${ac_cv_cc_sinix_defined+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   cat >conftest.$ac_ext <<_ACEOF
4682 #line $LINENO "configure"
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688
4689 int
4690 main ()
4691 {
4692 int i = sinix;
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_cv_cc_sinix_defined=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 ac_cv_cc_sinix_defined=no
4715 fi
4716 rm -f conftest.$ac_objext conftest.$ac_ext
4717 fi
4718
4719             echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
4720 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
4721             if test $ac_cv_cc_sinix_defined = no ; then
4722
4723 cat >>confdefs.h <<\_ACEOF
4724 #define sinix 1
4725 _ACEOF
4726
4727             fi
4728         ;;
4729
4730 solaris*)
4731
4732 cat >>confdefs.h <<\_ACEOF
4733 #define HAVE_SOLARIS 1
4734 _ACEOF
4735
4736         ;;
4737 esac
4738
4739 if test -n "$ac_tool_prefix"; then
4740   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   if test -n "$RANLIB"; then
4748   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763
4764 fi
4765 fi
4766 RANLIB=$ac_cv_prog_RANLIB
4767 if test -n "$RANLIB"; then
4768   echo "$as_me:$LINENO: result: $RANLIB" >&5
4769 echo "${ECHO_T}$RANLIB" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 fi
4776 if test -z "$ac_cv_prog_RANLIB"; then
4777   ac_ct_RANLIB=$RANLIB
4778   # Extract the first word of "ranlib", so it can be a program name with args.
4779 set dummy ranlib; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   if test -n "$ac_ct_RANLIB"; then
4786   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_prog_ac_ct_RANLIB="ranlib"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801
4802   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4803 fi
4804 fi
4805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4806 if test -n "$ac_ct_RANLIB"; then
4807   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4808 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814   RANLIB=$ac_ct_RANLIB
4815 else
4816   RANLIB="$ac_cv_prog_RANLIB"
4817 fi
4818
4819
4820 rm -f os-proto.h
4821     if test "${LBL_CFLAGS+set}" = set; then
4822             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
4823     fi
4824     if test -f .devel ; then
4825             if test "$GCC" = yes ; then
4826                     if test "${LBL_CFLAGS+set}" != set; then
4827                             if test "$ac_cv_prog_cc_g" = yes ; then
4828                                     V_CCOPT="-g $V_CCOPT"
4829                             fi
4830                             V_CCOPT="$V_CCOPT -Wall"
4831                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4832                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4833                             fi
4834                     fi
4835             else
4836                     case "$target_os" in
4837
4838                     irix6*)
4839                             V_CCOPT="$V_CCOPT -n32"
4840                             ;;
4841
4842                     *)
4843                             ;;
4844                     esac
4845             fi
4846             os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4847             name="lbl/os-$os.h"
4848             if test -f $name ; then
4849                     ln -s $name os-proto.h
4850
4851 cat >>confdefs.h <<\_ACEOF
4852 #define HAVE_OS_PROTO_H 1
4853 _ACEOF
4854
4855             else
4856                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
4857 echo "$as_me: WARNING: can't find $name" >&2;}
4858             fi
4859     fi
4860
4861 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
4862 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
4863     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873
4874 #       include <sys/types.h>
4875 #       include <sys/socket.h>
4876 int
4877 main ()
4878 {
4879 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -s conftest.$ac_objext'
4891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892   (eval $ac_try) 2>&5
4893   ac_status=$?
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); }; }; then
4896   ac_cv_lbl_sockaddr_has_sa_len=yes
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_lbl_sockaddr_has_sa_len=no
4902 fi
4903 rm -f conftest.$ac_objext conftest.$ac_ext
4904 fi
4905
4906     echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
4907 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
4908     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4909
4910 cat >>confdefs.h <<\_ACEOF
4911 #define HAVE_SOCKADDR_SA_LEN 1
4912 _ACEOF
4913
4914     fi
4915
4916 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
4917 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
4918     if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928
4929 #       include <sys/types.h>
4930 #       include <sys/socket.h>
4931 int
4932 main ()
4933 {
4934 u_int i = sizeof (struct sockaddr_storage)
4935   ;
4936   return 0;
4937 }
4938 _ACEOF
4939 rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941   (eval $ac_compile) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } &&
4945          { ac_try='test -s conftest.$ac_objext'
4946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947   (eval $ac_try) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); }; }; then
4951   ac_cv_lbl_has_sockaddr_storage=yes
4952 else
4953   echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_cv_lbl_has_sockaddr_storage=no
4957 fi
4958 rm -f conftest.$ac_objext conftest.$ac_ext
4959 fi
4960
4961     echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
4962 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
4963     if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
4964
4965 cat >>confdefs.h <<\_ACEOF
4966 #define HAVE_SOCKADDR_STORAGE 1
4967 _ACEOF
4968
4969     fi
4970
4971 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
4972 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
4973     if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   cat >conftest.$ac_ext <<_ACEOF
4977 #line $LINENO "configure"
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983
4984 #       include <sys/types.h>
4985 #       include <sys/dlpi.h>
4986 #       include <sys/dlpi_ext.h>
4987 int
4988 main ()
4989 {
4990 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997   (eval $ac_compile) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } &&
5001          { ac_try='test -s conftest.$ac_objext'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; }; then
5007   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
5013 fi
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5015 fi
5016
5017     echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
5018 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
5019     if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
5020
5021 cat >>confdefs.h <<\_ACEOF
5022 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
5023 _ACEOF
5024
5025     fi
5026
5027 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
5028 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
5029     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   case "$host_cpu" in
5033
5034         #
5035         # These are CPU types where:
5036         #
5037         #       the CPU faults on an unaligned access, but at least some
5038         #       OSes that support that CPU catch the fault and simulate
5039         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
5040         #       the simulation is slow, so we don't want to use it;
5041         #
5042         #       the CPU, I infer (from the old
5043         #
5044         # XXX: should also check that they don't do weird things (like on arm)
5045         #
5046         #       comment) doesn't fault on unaligned accesses, but doesn't
5047         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
5048         #
5049         #       for whatever reason, the test program doesn't work
5050         #       (this has been claimed to be the case for several of those
5051         #       CPUs - I don't know what the problem is; the problem
5052         #       was reported as "the test program dumps core" for SuperH,
5053         #       but that's what the test program is *supposed* to do -
5054         #       it dumps core before it writes anything, so the test
5055         #       for an empty output file should find an empty output
5056         #       file and conclude that unaligned accesses don't work).
5057         #
5058         # This run-time test won't work if you're cross-compiling, so
5059         # in order to support cross-compiling for a particular CPU,
5060         # we have to wire in the list of CPU types anyway, as far as
5061         # I know, so perhaps we should just have a set of CPUs on
5062         # which we know it doesn't work, a set of CPUs on which we
5063         # know it does work, and have the script just fail on other
5064         # cpu types and update it when such a failure occurs.
5065         #
5066         alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
5067                 ac_cv_lbl_unaligned_fail=yes
5068                 ;;
5069
5070         *)
5071                 cat >conftest.c <<EOF
5072 #               include <sys/types.h>
5073 #               include <sys/wait.h>
5074 #               include <stdio.h>
5075                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
5076                 main() {
5077                 unsigned int i;
5078                 pid_t pid;
5079                 int status;
5080                 /* avoid "core dumped" message */
5081                 pid = fork();
5082                 if (pid <  0)
5083                         exit(2);
5084                 if (pid > 0) {
5085                         /* parent */
5086                         pid = waitpid(pid, &status, 0);
5087                         if (pid < 0)
5088                                 exit(3);
5089                         exit(!WIFEXITED(status));
5090                 }
5091                 /* child */
5092                 i = *(unsigned int *)&a[1];
5093                 printf("%d\n", i);
5094                 exit(0);
5095                 }
5096 EOF
5097                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
5098                     conftest.c $LIBS >/dev/null 2>&1
5099                 if test ! -x conftest ; then
5100                                                 ac_cv_lbl_unaligned_fail=yes
5101                 else
5102                         ./conftest >conftest.out
5103                         if test ! -s conftest.out ; then
5104                                 ac_cv_lbl_unaligned_fail=yes
5105                         else
5106                                 ac_cv_lbl_unaligned_fail=no
5107                         fi
5108                 fi
5109                 rm -f conftest* core core.conftest
5110                 ;;
5111         esac
5112 fi
5113
5114     echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
5115 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
5116     if test $ac_cv_lbl_unaligned_fail = yes ; then
5117
5118 cat >>confdefs.h <<\_ACEOF
5119 #define LBL_ALIGN 1
5120 _ACEOF
5121
5122     fi
5123
5124 rm -f net
5125 ln -s ${srcdir}/bpf/net net
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 # Find a good install program.  We prefer a C program (faster),
5139 # so one script is as good as another.  But avoid the broken or
5140 # incompatible versions:
5141 # SysV /etc/install, /usr/sbin/install
5142 # SunOS /usr/etc/install
5143 # IRIX /sbin/install
5144 # AIX /bin/install
5145 # AmigaOS /C/install, which installs bootblocks on floppy discs
5146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5149 # ./install, which can be erroneously created by make from ./install.sh.
5150 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5151 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5152 if test -z "$INSTALL"; then
5153 if test "${ac_cv_path_install+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   # Account for people who put trailing slashes in PATH elements.
5162 case $as_dir/ in
5163   ./ | .// | /cC/* | \
5164   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5165   /usr/ucb/* ) ;;
5166   *)
5167     # OSF1 and SCO ODT 3.0 have their own names for install.
5168     # Don't use installbsd from OSF since it installs stuff as root
5169     # by default.
5170     for ac_prog in ginstall scoinst install; do
5171       for ac_exec_ext in '' $ac_executable_extensions; do
5172         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5173           if test $ac_prog = install &&
5174             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5175             # AIX install.  It has an incompatible calling convention.
5176             :
5177           elif test $ac_prog = install &&
5178             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5179             # program-specific install script used by HP pwplus--don't use.
5180             :
5181           else
5182             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5183             break 3
5184           fi
5185         fi
5186       done
5187     done
5188     ;;
5189 esac
5190 done
5191
5192
5193 fi
5194   if test "${ac_cv_path_install+set}" = set; then
5195     INSTALL=$ac_cv_path_install
5196   else
5197     # As a last resort, use the slow shell script.  We don't cache a
5198     # path for INSTALL within a source directory, because that will
5199     # break other packages using the cache if that directory is
5200     # removed, or if the path is relative.
5201     INSTALL=$ac_install_sh
5202   fi
5203 fi
5204 echo "$as_me:$LINENO: result: $INSTALL" >&5
5205 echo "${ECHO_T}$INSTALL" >&6
5206
5207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5208 # It thinks the first close brace ends the variable substitution.
5209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5210
5211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5212
5213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5214
5215
5216           ac_config_headers="$ac_config_headers config.h"
5217
5218
5219           ac_config_files="$ac_config_files Makefile"
5220 cat >confcache <<\_ACEOF
5221 # This file is a shell script that caches the results of configure
5222 # tests run on this system so they can be shared between configure
5223 # scripts and configure runs, see configure's option --config-cache.
5224 # It is not useful on other systems.  If it contains results you don't
5225 # want to keep, you may remove or edit it.
5226 #
5227 # config.status only pays attention to the cache file if you give it
5228 # the --recheck option to rerun configure.
5229 #
5230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5232 # following values.
5233
5234 _ACEOF
5235
5236 # The following way of writing the cache mishandles newlines in values,
5237 # but we know of no workaround that is simple, portable, and efficient.
5238 # So, don't put newlines in cache variables' values.
5239 # Ultrix sh set writes to stderr and can't be redirected directly,
5240 # and sets the high bit in the cache file unless we assign to the vars.
5241 {
5242   (set) 2>&1 |
5243     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5244     *ac_space=\ *)
5245       # `set' does not quote correctly, so add quotes (double-quote
5246       # substitution turns \\\\ into \\, and sed turns \\ into \).
5247       sed -n \
5248         "s/'/'\\\\''/g;
5249           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5250       ;;
5251     *)
5252       # `set' quotes correctly as required by POSIX, so do not add quotes.
5253       sed -n \
5254         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5255       ;;
5256     esac;
5257 } |
5258   sed '
5259      t clear
5260      : clear
5261      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5262      t end
5263      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5264      : end' >>confcache
5265 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5266   if test -w $cache_file; then
5267     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5268     cat confcache >$cache_file
5269   else
5270     echo "not updating unwritable cache $cache_file"
5271   fi
5272 fi
5273 rm -f confcache
5274
5275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5276 # Let make expand exec_prefix.
5277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5278
5279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5281 # trailing colons and then remove the whole line if VPATH becomes empty
5282 # (actually we leave an empty line to preserve line numbers).
5283 if test "x$srcdir" = x.; then
5284   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5285 s/:*\$(srcdir):*/:/;
5286 s/:*\${srcdir}:*/:/;
5287 s/:*@srcdir@:*/:/;
5288 s/^\([^=]*=[    ]*\):*/\1/;
5289 s/:*$//;
5290 s/^[^=]*=[      ]*$//;
5291 }'
5292 fi
5293
5294 DEFS=-DHAVE_CONFIG_H
5295
5296 ac_libobjs=
5297 ac_ltlibobjs=
5298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5299   # 1. Remove the extension, and $U if already installed.
5300   ac_i=`echo "$ac_i" |
5301          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5302   # 2. Add them.
5303   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5304   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5305 done
5306 LIBOBJS=$ac_libobjs
5307
5308 LTLIBOBJS=$ac_ltlibobjs
5309
5310
5311
5312 : ${CONFIG_STATUS=./config.status}
5313 ac_clean_files_save=$ac_clean_files
5314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5317 cat >$CONFIG_STATUS <<_ACEOF
5318 #! $SHELL
5319 # Generated by $as_me.
5320 # Run this file to recreate the current configuration.
5321 # Compiler output produced by configure, useful for debugging
5322 # configure, is in config.log if it exists.
5323
5324 debug=false
5325 ac_cs_recheck=false
5326 ac_cs_silent=false
5327 SHELL=\${CONFIG_SHELL-$SHELL}
5328 _ACEOF
5329
5330 cat >>$CONFIG_STATUS <<\_ACEOF
5331 ## --------------------- ##
5332 ## M4sh Initialization.  ##
5333 ## --------------------- ##
5334
5335 # Be Bourne compatible
5336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5337   emulate sh
5338   NULLCMD=:
5339   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5340   # is contrary to our usage.  Disable this feature.
5341   alias -g '${1+"$@"}'='"$@"'
5342 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5343   set -o posix
5344 fi
5345
5346 # Support unset when possible.
5347 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5348   as_unset=unset
5349 else
5350   as_unset=false
5351 fi
5352
5353
5354 # Work around bugs in pre-3.0 UWIN ksh.
5355 $as_unset ENV MAIL MAILPATH
5356 PS1='$ '
5357 PS2='> '
5358 PS4='+ '
5359
5360 # NLS nuisances.
5361 for as_var in \
5362   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5363   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5364   LC_TELEPHONE LC_TIME
5365 do
5366   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5367     eval $as_var=C; export $as_var
5368   else
5369     $as_unset $as_var
5370   fi
5371 done
5372
5373 # Required to use basename.
5374 if expr a : '\(a\)' >/dev/null 2>&1; then
5375   as_expr=expr
5376 else
5377   as_expr=false
5378 fi
5379
5380 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5381   as_basename=basename
5382 else
5383   as_basename=false
5384 fi
5385
5386
5387 # Name of the executable.
5388 as_me=`$as_basename "$0" ||
5389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5390          X"$0" : 'X\(//\)$' \| \
5391          X"$0" : 'X\(/\)$' \| \
5392          .     : '\(.\)' 2>/dev/null ||
5393 echo X/"$0" |
5394     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5395           /^X\/\(\/\/\)$/{ s//\1/; q; }
5396           /^X\/\(\/\).*/{ s//\1/; q; }
5397           s/.*/./; q'`
5398
5399
5400 # PATH needs CR, and LINENO needs CR and PATH.
5401 # Avoid depending upon Character Ranges.
5402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5405 as_cr_digits='0123456789'
5406 as_cr_alnum=$as_cr_Letters$as_cr_digits
5407
5408 # The user is always right.
5409 if test "${PATH_SEPARATOR+set}" != set; then
5410   echo "#! /bin/sh" >conf$$.sh
5411   echo  "exit 0"   >>conf$$.sh
5412   chmod +x conf$$.sh
5413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5414     PATH_SEPARATOR=';'
5415   else
5416     PATH_SEPARATOR=:
5417   fi
5418   rm -f conf$$.sh
5419 fi
5420
5421
5422   as_lineno_1=$LINENO
5423   as_lineno_2=$LINENO
5424   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5425   test "x$as_lineno_1" != "x$as_lineno_2" &&
5426   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5427   # Find who we are.  Look in the path if we contain no path at all
5428   # relative or not.
5429   case $0 in
5430     *[\\/]* ) as_myself=$0 ;;
5431     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5437 done
5438
5439        ;;
5440   esac
5441   # We did not find ourselves, most probably we were run as `sh COMMAND'
5442   # in which case we are not to be found in the path.
5443   if test "x$as_myself" = x; then
5444     as_myself=$0
5445   fi
5446   if test ! -f "$as_myself"; then
5447     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5448 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5449    { (exit 1); exit 1; }; }
5450   fi
5451   case $CONFIG_SHELL in
5452   '')
5453     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458   for as_base in sh bash ksh sh5; do
5459          case $as_dir in
5460          /*)
5461            if ("$as_dir/$as_base" -c '
5462   as_lineno_1=$LINENO
5463   as_lineno_2=$LINENO
5464   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5465   test "x$as_lineno_1" != "x$as_lineno_2" &&
5466   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5467              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5468              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5469              CONFIG_SHELL=$as_dir/$as_base
5470              export CONFIG_SHELL
5471              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5472            fi;;
5473          esac
5474        done
5475 done
5476 ;;
5477   esac
5478
5479   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5480   # uniformly replaced by the line number.  The first 'sed' inserts a
5481   # line-number line before each line; the second 'sed' does the real
5482   # work.  The second script uses 'N' to pair each line-number line
5483   # with the numbered line, and appends trailing '-' during
5484   # substitution so that $LINENO is not a special case at line end.
5485   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5486   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5487   sed '=' <$as_myself |
5488     sed '
5489       N
5490       s,$,-,
5491       : loop
5492       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5493       t loop
5494       s,-$,,
5495       s,^['$as_cr_digits']*\n,,
5496     ' >$as_me.lineno &&
5497   chmod +x $as_me.lineno ||
5498     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5499 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5500    { (exit 1); exit 1; }; }
5501
5502   # Don't try to exec as it changes $[0], causing all sort of problems
5503   # (the dirname of $[0] is not the place where we might find the
5504   # original and so on.  Autoconf is especially sensible to this).
5505   . ./$as_me.lineno
5506   # Exit status is that of the last command.
5507   exit
5508 }
5509
5510
5511 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5512   *c*,-n*) ECHO_N= ECHO_C='
5513 ' ECHO_T='      ' ;;
5514   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5515   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5516 esac
5517
5518 if expr a : '\(a\)' >/dev/null 2>&1; then
5519   as_expr=expr
5520 else
5521   as_expr=false
5522 fi
5523
5524 rm -f conf$$ conf$$.exe conf$$.file
5525 echo >conf$$.file
5526 if ln -s conf$$.file conf$$ 2>/dev/null; then
5527   # We could just check for DJGPP; but this test a) works b) is more generic
5528   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5529   if test -f conf$$.exe; then
5530     # Don't use ln at all; we don't have any links
5531     as_ln_s='cp -p'
5532   else
5533     as_ln_s='ln -s'
5534   fi
5535 elif ln conf$$.file conf$$ 2>/dev/null; then
5536   as_ln_s=ln
5537 else
5538   as_ln_s='cp -p'
5539 fi
5540 rm -f conf$$ conf$$.exe conf$$.file
5541
5542 if mkdir -p . 2>/dev/null; then
5543   as_mkdir_p=:
5544 else
5545   as_mkdir_p=false
5546 fi
5547
5548 as_executable_p="test -f"
5549
5550 # Sed expression to map a string onto a valid CPP name.
5551 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5552
5553 # Sed expression to map a string onto a valid variable name.
5554 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5555
5556
5557 # IFS
5558 # We need space, tab and new line, in precisely that order.
5559 as_nl='
5560 '
5561 IFS="   $as_nl"
5562
5563 # CDPATH.
5564 $as_unset CDPATH
5565
5566 exec 6>&1
5567
5568 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5569 # report actual input values of CONFIG_FILES etc. instead of their
5570 # values after options handling.  Logging --version etc. is OK.
5571 exec 5>>config.log
5572 {
5573   echo
5574   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5575 ## Running $as_me. ##
5576 _ASBOX
5577 } >&5
5578 cat >&5 <<_CSEOF
5579
5580 This file was extended by $as_me, which was
5581 generated by GNU Autoconf 2.57.  Invocation command line was
5582
5583   CONFIG_FILES    = $CONFIG_FILES
5584   CONFIG_HEADERS  = $CONFIG_HEADERS
5585   CONFIG_LINKS    = $CONFIG_LINKS
5586   CONFIG_COMMANDS = $CONFIG_COMMANDS
5587   $ $0 $@
5588
5589 _CSEOF
5590 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5591 echo >&5
5592 _ACEOF
5593
5594 # Files that config.status was made for.
5595 if test -n "$ac_config_files"; then
5596   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5597 fi
5598
5599 if test -n "$ac_config_headers"; then
5600   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5601 fi
5602
5603 if test -n "$ac_config_links"; then
5604   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5605 fi
5606
5607 if test -n "$ac_config_commands"; then
5608   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5609 fi
5610
5611 cat >>$CONFIG_STATUS <<\_ACEOF
5612
5613 ac_cs_usage="\
5614 \`$as_me' instantiates files from templates according to the
5615 current configuration.
5616
5617 Usage: $0 [OPTIONS] [FILE]...
5618
5619   -h, --help       print this help, then exit
5620   -V, --version    print version number, then exit
5621   -q, --quiet      do not print progress messages
5622   -d, --debug      don't remove temporary files
5623       --recheck    update $as_me by reconfiguring in the same conditions
5624   --file=FILE[:TEMPLATE]
5625                    instantiate the configuration file FILE
5626   --header=FILE[:TEMPLATE]
5627                    instantiate the configuration header FILE
5628
5629 Configuration files:
5630 $config_files
5631
5632 Configuration headers:
5633 $config_headers
5634
5635 Report bugs to <bug-autoconf@gnu.org>."
5636 _ACEOF
5637
5638 cat >>$CONFIG_STATUS <<_ACEOF
5639 ac_cs_version="\\
5640 config.status
5641 configured by $0, generated by GNU Autoconf 2.57,
5642   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5643
5644 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5645 Free Software Foundation, Inc.
5646 This config.status script is free software; the Free Software Foundation
5647 gives unlimited permission to copy, distribute and modify it."
5648 srcdir=$srcdir
5649 INSTALL="$INSTALL"
5650 _ACEOF
5651
5652 cat >>$CONFIG_STATUS <<\_ACEOF
5653 # If no file are specified by the user, then we need to provide default
5654 # value.  By we need to know if files were specified by the user.
5655 ac_need_defaults=:
5656 while test $# != 0
5657 do
5658   case $1 in
5659   --*=*)
5660     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5661     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5662     ac_shift=:
5663     ;;
5664   -*)
5665     ac_option=$1
5666     ac_optarg=$2
5667     ac_shift=shift
5668     ;;
5669   *) # This is not an option, so the user has probably given explicit
5670      # arguments.
5671      ac_option=$1
5672      ac_need_defaults=false;;
5673   esac
5674
5675   case $ac_option in
5676   # Handling of the options.
5677 _ACEOF
5678 cat >>$CONFIG_STATUS <<\_ACEOF
5679   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5680     ac_cs_recheck=: ;;
5681   --version | --vers* | -V )
5682     echo "$ac_cs_version"; exit 0 ;;
5683   --he | --h)
5684     # Conflict between --help and --header
5685     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5686 Try \`$0 --help' for more information." >&5
5687 echo "$as_me: error: ambiguous option: $1
5688 Try \`$0 --help' for more information." >&2;}
5689    { (exit 1); exit 1; }; };;
5690   --help | --hel | -h )
5691     echo "$ac_cs_usage"; exit 0 ;;
5692   --debug | --d* | -d )
5693     debug=: ;;
5694   --file | --fil | --fi | --f )
5695     $ac_shift
5696     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5697     ac_need_defaults=false;;
5698   --header | --heade | --head | --hea )
5699     $ac_shift
5700     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5701     ac_need_defaults=false;;
5702   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5703   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5704     ac_cs_silent=: ;;
5705
5706   # This is an error.
5707   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5708 Try \`$0 --help' for more information." >&5
5709 echo "$as_me: error: unrecognized option: $1
5710 Try \`$0 --help' for more information." >&2;}
5711    { (exit 1); exit 1; }; } ;;
5712
5713   *) ac_config_targets="$ac_config_targets $1" ;;
5714
5715   esac
5716   shift
5717 done
5718
5719 ac_configure_extra_args=
5720
5721 if $ac_cs_silent; then
5722   exec 6>/dev/null
5723   ac_configure_extra_args="$ac_configure_extra_args --silent"
5724 fi
5725
5726 _ACEOF
5727 cat >>$CONFIG_STATUS <<_ACEOF
5728 if \$ac_cs_recheck; then
5729   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5730   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5731 fi
5732
5733 _ACEOF
5734
5735
5736
5737
5738
5739 cat >>$CONFIG_STATUS <<\_ACEOF
5740 for ac_config_target in $ac_config_targets
5741 do
5742   case "$ac_config_target" in
5743   # Handling of arguments.
5744   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5745   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5746   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5748    { (exit 1); exit 1; }; };;
5749   esac
5750 done
5751
5752 # If the user did not use the arguments to specify the items to instantiate,
5753 # then the envvar interface is used.  Set only those that are not.
5754 # We use the long form for the default assignment because of an extremely
5755 # bizarre bug on SunOS 4.1.3.
5756 if $ac_need_defaults; then
5757   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5758   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5759 fi
5760
5761 # Have a temporary directory for convenience.  Make it in the build tree
5762 # simply because there is no reason to put it here, and in addition,
5763 # creating and moving files from /tmp can sometimes cause problems.
5764 # Create a temporary directory, and hook for its removal unless debugging.
5765 $debug ||
5766 {
5767   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5768   trap '{ (exit 1); exit 1; }' 1 2 13 15
5769 }
5770
5771 # Create a (secure) tmp directory for tmp files.
5772
5773 {
5774   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5775   test -n "$tmp" && test -d "$tmp"
5776 }  ||
5777 {
5778   tmp=./confstat$$-$RANDOM
5779   (umask 077 && mkdir $tmp)
5780 } ||
5781 {
5782    echo "$me: cannot create a temporary directory in ." >&2
5783    { (exit 1); exit 1; }
5784 }
5785
5786 _ACEOF
5787
5788 cat >>$CONFIG_STATUS <<_ACEOF
5789
5790 #
5791 # CONFIG_FILES section.
5792 #
5793
5794 # No need to generate the scripts if there are no CONFIG_FILES.
5795 # This happens for instance when ./config.status config.h
5796 if test -n "\$CONFIG_FILES"; then
5797   # Protect against being on the right side of a sed subst in config.status.
5798   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5799    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5800 s,@SHELL@,$SHELL,;t t
5801 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5802 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5803 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5804 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5805 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5806 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5807 s,@exec_prefix@,$exec_prefix,;t t
5808 s,@prefix@,$prefix,;t t
5809 s,@program_transform_name@,$program_transform_name,;t t
5810 s,@bindir@,$bindir,;t t
5811 s,@sbindir@,$sbindir,;t t
5812 s,@libexecdir@,$libexecdir,;t t
5813 s,@datadir@,$datadir,;t t
5814 s,@sysconfdir@,$sysconfdir,;t t
5815 s,@sharedstatedir@,$sharedstatedir,;t t
5816 s,@localstatedir@,$localstatedir,;t t
5817 s,@libdir@,$libdir,;t t
5818 s,@includedir@,$includedir,;t t
5819 s,@oldincludedir@,$oldincludedir,;t t
5820 s,@infodir@,$infodir,;t t
5821 s,@mandir@,$mandir,;t t
5822 s,@build_alias@,$build_alias,;t t
5823 s,@host_alias@,$host_alias,;t t
5824 s,@target_alias@,$target_alias,;t t
5825 s,@DEFS@,$DEFS,;t t
5826 s,@ECHO_C@,$ECHO_C,;t t
5827 s,@ECHO_N@,$ECHO_N,;t t
5828 s,@ECHO_T@,$ECHO_T,;t t
5829 s,@LIBS@,$LIBS,;t t
5830 s,@build@,$build,;t t
5831 s,@build_cpu@,$build_cpu,;t t
5832 s,@build_vendor@,$build_vendor,;t t
5833 s,@build_os@,$build_os,;t t
5834 s,@host@,$host,;t t
5835 s,@host_cpu@,$host_cpu,;t t
5836 s,@host_vendor@,$host_vendor,;t t
5837 s,@host_os@,$host_os,;t t
5838 s,@target@,$target,;t t
5839 s,@target_cpu@,$target_cpu,;t t
5840 s,@target_vendor@,$target_vendor,;t t
5841 s,@target_os@,$target_os,;t t
5842 s,@SHLICC2@,$SHLICC2,;t t
5843 s,@CC@,$CC,;t t
5844 s,@CFLAGS@,$CFLAGS,;t t
5845 s,@LDFLAGS@,$LDFLAGS,;t t
5846 s,@CPPFLAGS@,$CPPFLAGS,;t t
5847 s,@ac_ct_CC@,$ac_ct_CC,;t t
5848 s,@EXEEXT@,$EXEEXT,;t t
5849 s,@OBJEXT@,$OBJEXT,;t t
5850 s,@CPP@,$CPP,;t t
5851 s,@EGREP@,$EGREP,;t t
5852 s,@LIBOBJS@,$LIBOBJS,;t t
5853 s,@V_LEX@,$V_LEX,;t t
5854 s,@V_YACC@,$V_YACC,;t t
5855 s,@RANLIB@,$RANLIB,;t t
5856 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5857 s,@V_CCOPT@,$V_CCOPT,;t t
5858 s,@V_DEFS@,$V_DEFS,;t t
5859 s,@V_INCLS@,$V_INCLS,;t t
5860 s,@V_LIBS@,$V_LIBS,;t t
5861 s,@V_PCAP@,$V_PCAP,;t t
5862 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
5863 s,@V_RANLIB@,$V_RANLIB,;t t
5864 s,@SSRC@,$SSRC,;t t
5865 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5866 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5867 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5869 CEOF
5870
5871 _ACEOF
5872
5873   cat >>$CONFIG_STATUS <<\_ACEOF
5874   # Split the substitutions into bite-sized pieces for seds with
5875   # small command number limits, like on Digital OSF/1 and HP-UX.
5876   ac_max_sed_lines=48
5877   ac_sed_frag=1 # Number of current file.
5878   ac_beg=1 # First line for current file.
5879   ac_end=$ac_max_sed_lines # Line after last line for current file.
5880   ac_more_lines=:
5881   ac_sed_cmds=
5882   while $ac_more_lines; do
5883     if test $ac_beg -gt 1; then
5884       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5885     else
5886       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5887     fi
5888     if test ! -s $tmp/subs.frag; then
5889       ac_more_lines=false
5890     else
5891       # The purpose of the label and of the branching condition is to
5892       # speed up the sed processing (if there are no `@' at all, there
5893       # is no need to browse any of the substitutions).
5894       # These are the two extra sed commands mentioned above.
5895       (echo ':t
5896   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5897       if test -z "$ac_sed_cmds"; then
5898         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5899       else
5900         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5901       fi
5902       ac_sed_frag=`expr $ac_sed_frag + 1`
5903       ac_beg=$ac_end
5904       ac_end=`expr $ac_end + $ac_max_sed_lines`
5905     fi
5906   done
5907   if test -z "$ac_sed_cmds"; then
5908     ac_sed_cmds=cat
5909   fi
5910 fi # test -n "$CONFIG_FILES"
5911
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<\_ACEOF
5914 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5916   case $ac_file in
5917   - | *:- | *:-:* ) # input from stdin
5918         cat >$tmp/stdin
5919         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5920         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5921   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5922         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5923   * )   ac_file_in=$ac_file.in ;;
5924   esac
5925
5926   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5927   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5929          X"$ac_file" : 'X\(//\)[^/]' \| \
5930          X"$ac_file" : 'X\(//\)$' \| \
5931          X"$ac_file" : 'X\(/\)' \| \
5932          .     : '\(.\)' 2>/dev/null ||
5933 echo X"$ac_file" |
5934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5935           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5936           /^X\(\/\/\)$/{ s//\1/; q; }
5937           /^X\(\/\).*/{ s//\1/; q; }
5938           s/.*/./; q'`
5939   { if $as_mkdir_p; then
5940     mkdir -p "$ac_dir"
5941   else
5942     as_dir="$ac_dir"
5943     as_dirs=
5944     while test ! -d "$as_dir"; do
5945       as_dirs="$as_dir $as_dirs"
5946       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5948          X"$as_dir" : 'X\(//\)[^/]' \| \
5949          X"$as_dir" : 'X\(//\)$' \| \
5950          X"$as_dir" : 'X\(/\)' \| \
5951          .     : '\(.\)' 2>/dev/null ||
5952 echo X"$as_dir" |
5953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5955           /^X\(\/\/\)$/{ s//\1/; q; }
5956           /^X\(\/\).*/{ s//\1/; q; }
5957           s/.*/./; q'`
5958     done
5959     test ! -n "$as_dirs" || mkdir $as_dirs
5960   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5962    { (exit 1); exit 1; }; }; }
5963
5964   ac_builddir=.
5965
5966 if test "$ac_dir" != .; then
5967   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5968   # A "../" for each directory in $ac_dir_suffix.
5969   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5970 else
5971   ac_dir_suffix= ac_top_builddir=
5972 fi
5973
5974 case $srcdir in
5975   .)  # No --srcdir option.  We are building in place.
5976     ac_srcdir=.
5977     if test -z "$ac_top_builddir"; then
5978        ac_top_srcdir=.
5979     else
5980        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5981     fi ;;
5982   [\\/]* | ?:[\\/]* )  # Absolute path.
5983     ac_srcdir=$srcdir$ac_dir_suffix;
5984     ac_top_srcdir=$srcdir ;;
5985   *) # Relative path.
5986     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5987     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5988 esac
5989 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5990 # absolute.
5991 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5992 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5993 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5994 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5995
5996
5997   case $INSTALL in
5998   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5999   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6000   esac
6001
6002   if test x"$ac_file" != x-; then
6003     { echo "$as_me:$LINENO: creating $ac_file" >&5
6004 echo "$as_me: creating $ac_file" >&6;}
6005     rm -f "$ac_file"
6006   fi
6007   # Let's still pretend it is `configure' which instantiates (i.e., don't
6008   # use $as_me), people would be surprised to read:
6009   #    /* config.h.  Generated by config.status.  */
6010   if test x"$ac_file" = x-; then
6011     configure_input=
6012   else
6013     configure_input="$ac_file.  "
6014   fi
6015   configure_input=$configure_input"Generated from `echo $ac_file_in |
6016                                      sed 's,.*/,,'` by configure."
6017
6018   # First look for the input files in the build tree, otherwise in the
6019   # src tree.
6020   ac_file_inputs=`IFS=:
6021     for f in $ac_file_in; do
6022       case $f in
6023       -) echo $tmp/stdin ;;
6024       [\\/$]*)
6025          # Absolute (can't be DOS-style, as IFS=:)
6026          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6027 echo "$as_me: error: cannot find input file: $f" >&2;}
6028    { (exit 1); exit 1; }; }
6029          echo $f;;
6030       *) # Relative
6031          if test -f "$f"; then
6032            # Build tree
6033            echo $f
6034          elif test -f "$srcdir/$f"; then
6035            # Source tree
6036            echo $srcdir/$f
6037          else
6038            # /dev/null tree
6039            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6040 echo "$as_me: error: cannot find input file: $f" >&2;}
6041    { (exit 1); exit 1; }; }
6042          fi;;
6043       esac
6044     done` || { (exit 1); exit 1; }
6045 _ACEOF
6046 cat >>$CONFIG_STATUS <<_ACEOF
6047   sed "$ac_vpsub
6048 $extrasub
6049 _ACEOF
6050 cat >>$CONFIG_STATUS <<\_ACEOF
6051 :t
6052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6053 s,@configure_input@,$configure_input,;t t
6054 s,@srcdir@,$ac_srcdir,;t t
6055 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6056 s,@top_srcdir@,$ac_top_srcdir,;t t
6057 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6058 s,@builddir@,$ac_builddir,;t t
6059 s,@abs_builddir@,$ac_abs_builddir,;t t
6060 s,@top_builddir@,$ac_top_builddir,;t t
6061 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6062 s,@INSTALL@,$ac_INSTALL,;t t
6063 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6064   rm -f $tmp/stdin
6065   if test x"$ac_file" != x-; then
6066     mv $tmp/out $ac_file
6067   else
6068     cat $tmp/out
6069     rm -f $tmp/out
6070   fi
6071
6072 done
6073 _ACEOF
6074 cat >>$CONFIG_STATUS <<\_ACEOF
6075
6076 #
6077 # CONFIG_HEADER section.
6078 #
6079
6080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6082 #
6083 # ac_d sets the value in "#define NAME VALUE" lines.
6084 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6085 ac_dB='[        ].*$,\1#\2'
6086 ac_dC=' '
6087 ac_dD=',;t'
6088 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6089 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6090 ac_uB='$,\1#\2define\3'
6091 ac_uC=' '
6092 ac_uD=',;t'
6093
6094 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6095   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6096   case $ac_file in
6097   - | *:- | *:-:* ) # input from stdin
6098         cat >$tmp/stdin
6099         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6100         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6101   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6102         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6103   * )   ac_file_in=$ac_file.in ;;
6104   esac
6105
6106   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6107 echo "$as_me: creating $ac_file" >&6;}
6108
6109   # First look for the input files in the build tree, otherwise in the
6110   # src tree.
6111   ac_file_inputs=`IFS=:
6112     for f in $ac_file_in; do
6113       case $f in
6114       -) echo $tmp/stdin ;;
6115       [\\/$]*)
6116          # Absolute (can't be DOS-style, as IFS=:)
6117          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6118 echo "$as_me: error: cannot find input file: $f" >&2;}
6119    { (exit 1); exit 1; }; }
6120          echo $f;;
6121       *) # Relative
6122          if test -f "$f"; then
6123            # Build tree
6124            echo $f
6125          elif test -f "$srcdir/$f"; then
6126            # Source tree
6127            echo $srcdir/$f
6128          else
6129            # /dev/null tree
6130            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6131 echo "$as_me: error: cannot find input file: $f" >&2;}
6132    { (exit 1); exit 1; }; }
6133          fi;;
6134       esac
6135     done` || { (exit 1); exit 1; }
6136   # Remove the trailing spaces.
6137   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6138
6139 _ACEOF
6140
6141 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6142 # `conftest.undefs', that substitutes the proper values into
6143 # config.h.in to produce config.h.  The first handles `#define'
6144 # templates, and the second `#undef' templates.
6145 # And first: Protect against being on the right side of a sed subst in
6146 # config.status.  Protect against being in an unquoted here document
6147 # in config.status.
6148 rm -f conftest.defines conftest.undefs
6149 # Using a here document instead of a string reduces the quoting nightmare.
6150 # Putting comments in sed scripts is not portable.
6151 #
6152 # `end' is used to avoid that the second main sed command (meant for
6153 # 0-ary CPP macros) applies to n-ary macro definitions.
6154 # See the Autoconf documentation for `clear'.
6155 cat >confdef2sed.sed <<\_ACEOF
6156 s/[\\&,]/\\&/g
6157 s,[\\$`],\\&,g
6158 t clear
6159 : clear
6160 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6161 t end
6162 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6163 : end
6164 _ACEOF
6165 # If some macros were called several times there might be several times
6166 # the same #defines, which is useless.  Nevertheless, we may not want to
6167 # sort them, since we want the *last* AC-DEFINE to be honored.
6168 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6169 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6170 rm -f confdef2sed.sed
6171
6172 # This sed command replaces #undef with comments.  This is necessary, for
6173 # example, in the case of _POSIX_SOURCE, which is predefined and required
6174 # on some systems where configure will not decide to define it.
6175 cat >>conftest.undefs <<\_ACEOF
6176 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6177 _ACEOF
6178
6179 # Break up conftest.defines because some shells have a limit on the size
6180 # of here documents, and old seds have small limits too (100 cmds).
6181 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6182 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6183 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6184 echo '  :' >>$CONFIG_STATUS
6185 rm -f conftest.tail
6186 while grep . conftest.defines >/dev/null
6187 do
6188   # Write a limited-size here document to $tmp/defines.sed.
6189   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6190   # Speed up: don't consider the non `#define' lines.
6191   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6192   # Work around the forget-to-reset-the-flag bug.
6193   echo 't clr' >>$CONFIG_STATUS
6194   echo ': clr' >>$CONFIG_STATUS
6195   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6196   echo 'CEOF
6197   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6198   rm -f $tmp/in
6199   mv $tmp/out $tmp/in
6200 ' >>$CONFIG_STATUS
6201   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6202   rm -f conftest.defines
6203   mv conftest.tail conftest.defines
6204 done
6205 rm -f conftest.defines
6206 echo '  fi # grep' >>$CONFIG_STATUS
6207 echo >>$CONFIG_STATUS
6208
6209 # Break up conftest.undefs because some shells have a limit on the size
6210 # of here documents, and old seds have small limits too (100 cmds).
6211 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6212 rm -f conftest.tail
6213 while grep . conftest.undefs >/dev/null
6214 do
6215   # Write a limited-size here document to $tmp/undefs.sed.
6216   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6217   # Speed up: don't consider the non `#undef'
6218   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6219   # Work around the forget-to-reset-the-flag bug.
6220   echo 't clr' >>$CONFIG_STATUS
6221   echo ': clr' >>$CONFIG_STATUS
6222   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6223   echo 'CEOF
6224   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6225   rm -f $tmp/in
6226   mv $tmp/out $tmp/in
6227 ' >>$CONFIG_STATUS
6228   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6229   rm -f conftest.undefs
6230   mv conftest.tail conftest.undefs
6231 done
6232 rm -f conftest.undefs
6233
6234 cat >>$CONFIG_STATUS <<\_ACEOF
6235   # Let's still pretend it is `configure' which instantiates (i.e., don't
6236   # use $as_me), people would be surprised to read:
6237   #    /* config.h.  Generated by config.status.  */
6238   if test x"$ac_file" = x-; then
6239     echo "/* Generated by configure.  */" >$tmp/config.h
6240   else
6241     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6242   fi
6243   cat $tmp/in >>$tmp/config.h
6244   rm -f $tmp/in
6245   if test x"$ac_file" != x-; then
6246     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6247       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6248 echo "$as_me: $ac_file is unchanged" >&6;}
6249     else
6250       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6252          X"$ac_file" : 'X\(//\)[^/]' \| \
6253          X"$ac_file" : 'X\(//\)$' \| \
6254          X"$ac_file" : 'X\(/\)' \| \
6255          .     : '\(.\)' 2>/dev/null ||
6256 echo X"$ac_file" |
6257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6258           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6259           /^X\(\/\/\)$/{ s//\1/; q; }
6260           /^X\(\/\).*/{ s//\1/; q; }
6261           s/.*/./; q'`
6262       { if $as_mkdir_p; then
6263     mkdir -p "$ac_dir"
6264   else
6265     as_dir="$ac_dir"
6266     as_dirs=
6267     while test ! -d "$as_dir"; do
6268       as_dirs="$as_dir $as_dirs"
6269       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6271          X"$as_dir" : 'X\(//\)[^/]' \| \
6272          X"$as_dir" : 'X\(//\)$' \| \
6273          X"$as_dir" : 'X\(/\)' \| \
6274          .     : '\(.\)' 2>/dev/null ||
6275 echo X"$as_dir" |
6276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6278           /^X\(\/\/\)$/{ s//\1/; q; }
6279           /^X\(\/\).*/{ s//\1/; q; }
6280           s/.*/./; q'`
6281     done
6282     test ! -n "$as_dirs" || mkdir $as_dirs
6283   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6285    { (exit 1); exit 1; }; }; }
6286
6287       rm -f $ac_file
6288       mv $tmp/config.h $ac_file
6289     fi
6290   else
6291     cat $tmp/config.h
6292     rm -f $tmp/config.h
6293   fi
6294 done
6295 _ACEOF
6296
6297 cat >>$CONFIG_STATUS <<\_ACEOF
6298
6299 { (exit 0); exit 0; }
6300 _ACEOF
6301 chmod +x $CONFIG_STATUS
6302 ac_clean_files=$ac_clean_files_save
6303
6304
6305 # configure is writing to config.log, and then calls config.status.
6306 # config.status does its own redirection, appending to config.log.
6307 # Unfortunately, on DOS this fails, as config.log is still kept open
6308 # by configure, so config.status won't be able to write to it; its
6309 # output is simply discarded.  So we exec the FD to /dev/null,
6310 # effectively closing config.log, so it can be properly (re)opened and
6311 # appended to by config.status.  When coming back to configure, we
6312 # need to make the FD available again.
6313 if test "$no_create" != yes; then
6314   ac_cs_success=:
6315   ac_config_status_args=
6316   test "$silent" = yes &&
6317     ac_config_status_args="$ac_config_status_args --quiet"
6318   exec 5>/dev/null
6319   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6320   exec 5>>config.log
6321   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6322   # would make configure fail if this is the last instruction.
6323   $ac_cs_success || { (exit 1); exit 1; }
6324 fi
6325
6326
6327 if test -f .devel ; then
6328         make depend
6329 fi
6330 exit 0