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