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