]> The Tcpdump Group git mirrors - libpcap/blob - configure
AC_TRY_COMPILE works only for code that fits inside "main()"; the test
[libpcap] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.123 .
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 cat >>confdefs.h <<_ACEOF
4462 #define HAVE_DECL_ETHER_HOSTTON 1
4463 _ACEOF
4464
4465
4466
4467 cat >>confdefs.h <<\_ACEOF
4468 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4469 _ACEOF
4470
4471
4472 else
4473 cat >>confdefs.h <<_ACEOF
4474 #define HAVE_DECL_ETHER_HOSTTON 0
4475 _ACEOF
4476
4477
4478 fi
4479
4480
4481 fi
4482 #
4483 # Did that succeed?
4484 #
4485 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4486 #
4487 # No, how about <netinet/ether.h>, as on Linux?
4488 #
4489
4490 for ac_header in netinet/ether.h
4491 do
4492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo "$as_me:$LINENO: checking for $ac_header" >&5
4495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 fi
4499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501 else
4502 # Is the header compilable?
4503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4505 cat >conftest.$ac_ext <<_ACEOF
4506 #line $LINENO "configure"
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #include <$ac_header>
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_header_compiler=yes
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 ac_header_compiler=no
4533 fi
4534 rm -f conftest.$ac_objext conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536 echo "${ECHO_T}$ac_header_compiler" >&6
4537
4538 # Is the header present?
4539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #line $LINENO "configure"
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <$ac_header>
4549 _ACEOF
4550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_c_preproc_warn_flag
4560 else
4561 ac_cpp_err=
4562 fi
4563 else
4564 ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567 ac_header_preproc=yes
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ac_header_preproc=no
4573 fi
4574 rm -f conftest.err conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 echo "${ECHO_T}$ac_header_preproc" >&6
4577
4578 # So? What about this header?
4579 case $ac_header_compiler:$ac_header_preproc in
4580 yes:no )
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585 (
4586 cat <<\_ASBOX
4587 ## ------------------------------------ ##
4588 ## Report this to bug-autoconf@gnu.org. ##
4589 ## ------------------------------------ ##
4590 _ASBOX
4591 ) |
4592 sed "s/^/$as_me: WARNING: /" >&2
4593 ;;
4594 no:yes )
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 (
4602 cat <<\_ASBOX
4603 ## ------------------------------------ ##
4604 ## Report this to bug-autoconf@gnu.org. ##
4605 ## ------------------------------------ ##
4606 _ASBOX
4607 ) |
4608 sed "s/^/$as_me: WARNING: /" >&2
4609 ;;
4610 esac
4611 echo "$as_me:$LINENO: checking for $ac_header" >&5
4612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 eval "$as_ac_Header=$ac_header_preproc"
4617 fi
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620
4621 fi
4622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4623 cat >>confdefs.h <<_ACEOF
4624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625 _ACEOF
4626
4627 fi
4628
4629 done
4630
4631 if test "$ac_cv_header_netinet_ether_h" = yes; then
4632 #
4633 # We have it - does it declare ether_hostton()?
4634 # Unset ac_cv_have_decl_ether_hostton so we don't
4635 # treat the previous failure as a cached value and
4636 # suppress the next test.
4637 #
4638 unset ac_cv_have_decl_ether_hostton
4639 echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4640 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4641 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651
4652 #include <netinet/ether.h>
4653
4654
4655 int
4656 main ()
4657 {
4658 #ifndef ether_hostton
4659 char *p = (char *) ether_hostton;
4660 #endif
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_have_decl_ether_hostton=yes
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 ac_cv_have_decl_ether_hostton=no
4684 fi
4685 rm -f conftest.$ac_objext conftest.$ac_ext
4686 fi
4687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4688 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4689 if test $ac_cv_have_decl_ether_hostton = yes; then
4690
4691 cat >>confdefs.h <<_ACEOF
4692 #define HAVE_DECL_ETHER_HOSTTON 1
4693 _ACEOF
4694
4695
4696
4697 cat >>confdefs.h <<\_ACEOF
4698 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
4699 _ACEOF
4700
4701
4702 else
4703 cat >>confdefs.h <<_ACEOF
4704 #define HAVE_DECL_ETHER_HOSTTON 0
4705 _ACEOF
4706
4707
4708 fi
4709
4710
4711 fi
4712 fi
4713 #
4714 # Is ether_hostton() declared?
4715 #
4716 if test "$ac_cv_have_decl_ether_hostton" != yes; then
4717 #
4718 # No, we'll have to declare it ourselves.
4719 # Do we have "struct ether_addr"?
4720 #
4721 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
4722 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
4723 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 cat >conftest.$ac_ext <<_ACEOF
4727 #line $LINENO "configure"
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733
4734 #include <sys/types.h>
4735 #include <sys/socket.h>
4736 #include <netinet/in.h>
4737 #include <arpa/inet.h>
4738 struct mbuf;
4739 struct rtentry;
4740 #include <net/if.h>
4741 #include <netinet/if_ether.h>
4742
4743
4744 int
4745 main ()
4746 {
4747 if ((struct ether_addr *) 0)
4748 return 0;
4749 if (sizeof (struct ether_addr))
4750 return 0;
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_type_struct_ether_addr=yes
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_cv_type_struct_ether_addr=no
4773 fi
4774 rm -f conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
4777 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
4778 if test $ac_cv_type_struct_ether_addr = yes; then
4779
4780 cat >>confdefs.h <<_ACEOF
4781 #define HAVE_STRUCT_ETHER_ADDR 1
4782 _ACEOF
4783
4784
4785 fi
4786
4787 fi
4788 fi
4789
4790 echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
4791 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
4792 # Check whether --enable-protochain or --disable-protochain was given.
4793 if test "${enable_protochain+set}" = set; then
4794 enableval="$enable_protochain"
4795
4796 fi;
4797 case "x$enable_protochain" in
4798 xyes) enable_protochain=enabled ;;
4799 xno) enable_protochain=disabled ;;
4800 x) enable_protochain=enabled ;;
4801 esac
4802
4803 if test "$enable_protochain" = "disabled"; then
4804
4805 cat >>confdefs.h <<\_ACEOF
4806 #define NO_PROTOCHAIN 1
4807 _ACEOF
4808
4809 fi
4810 echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
4811 echo "${ECHO_T}${enable_protochain}" >&6
4812
4813 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
4814 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
4815 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
4816 { (exit 1); exit 1; }; }
4817 fi
4818
4819 # Check whether --with-pcap or --without-pcap was given.
4820 if test "${with_pcap+set}" = set; then
4821 withval="$with_pcap"
4822
4823 fi;
4824 echo "$as_me:$LINENO: checking packet capture type" >&5
4825 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
4826 if test ! -z "$with_pcap" ; then
4827 V_PCAP="$withval"
4828 elif test -r /dev/bpf0 ; then
4829 V_PCAP=bpf
4830 elif test -r /usr/include/net/pfilt.h ; then
4831 V_PCAP=pf
4832 elif test -r /dev/enet ; then
4833 V_PCAP=enet
4834 elif test -r /dev/nit ; then
4835 V_PCAP=snit
4836 elif test -r /usr/include/sys/net/nit.h ; then
4837 V_PCAP=nit
4838 elif test -r /usr/include/linux/socket.h ; then
4839 V_PCAP=linux
4840 elif test -r /usr/include/net/raw.h ; then
4841 V_PCAP=snoop
4842 elif test -r /usr/include/odmi.h ; then
4843 #
4844 # On AIX, the BPF devices might not yet be present - they're
4845 # created the first time libpcap runs after booting.
4846 # We check for odmi.h instead.
4847 #
4848 V_PCAP=bpf
4849 elif test -r /usr/include/sys/dlpi.h ; then
4850 V_PCAP=dlpi
4851 elif test -c /dev/bpf0 ; then # check again in case not readable
4852 V_PCAP=bpf
4853 elif test -c /dev/enet ; then # check again in case not readable
4854 V_PCAP=enet
4855 elif test -c /dev/nit ; then # check again in case not readable
4856 V_PCAP=snit
4857 else
4858 V_PCAP=null
4859 fi
4860 echo "$as_me:$LINENO: result: $V_PCAP" >&5
4861 echo "${ECHO_T}$V_PCAP" >&6
4862
4863 if test "$V_PCAP" = null
4864 then
4865 #
4866 # We can't capture, so we can't open any capture
4867 # devices, so we won't return any interfaces.
4868 #
4869 V_FINDALLDEVS=null
4870 else
4871 echo "$as_me:$LINENO: checking for getifaddrs" >&5
4872 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
4873 if test "${ac_cv_func_getifaddrs+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line $LINENO "configure"
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 /* System header to define __stub macros and hopefully few prototypes,
4884 which can conflict with char getifaddrs (); below.
4885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 <limits.h> exists even on freestanding compilers. */
4887 #ifdef __STDC__
4888 # include <limits.h>
4889 #else
4890 # include <assert.h>
4891 #endif
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 #ifdef __cplusplus
4894 extern "C"
4895 {
4896 #endif
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char getifaddrs ();
4900 /* The GNU C library defines this for functions which it implements
4901 to always fail with ENOSYS. Some functions are actually named
4902 something starting with __ and the normal name is an alias. */
4903 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
4904 choke me
4905 #else
4906 char (*f) () = getifaddrs;
4907 #endif
4908 #ifdef __cplusplus
4909 }
4910 #endif
4911
4912 int
4913 main ()
4914 {
4915 return f != getifaddrs;
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext conftest$ac_exeext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -s conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_func_getifaddrs=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ac_cv_func_getifaddrs=no
4938 fi
4939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4940 fi
4941 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
4942 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
4943 if test $ac_cv_func_getifaddrs = yes; then
4944
4945 #
4946 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
4947 # as well, just in case some platform is really weird.
4948 #
4949 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4950 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
4951 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
4952 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 fi
4955 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
4956 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
4957 else
4958 # Is the header compilable?
4959 echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
4960 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
4961 cat >conftest.$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4969 #include <ifaddrs.h>
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_header_compiler=yes
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 ac_header_compiler=no
4989 fi
4990 rm -f conftest.$ac_objext conftest.$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4992 echo "${ECHO_T}$ac_header_compiler" >&6
4993
4994 # Is the header present?
4995 echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
4996 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
4997 cat >conftest.$ac_ext <<_ACEOF
4998 #line $LINENO "configure"
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include <ifaddrs.h>
5005 _ACEOF
5006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_c_preproc_warn_flag
5016 else
5017 ac_cpp_err=
5018 fi
5019 else
5020 ac_cpp_err=yes
5021 fi
5022 if test -z "$ac_cpp_err"; then
5023 ac_header_preproc=yes
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ac_header_preproc=no
5029 fi
5030 rm -f conftest.err conftest.$ac_ext
5031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5032 echo "${ECHO_T}$ac_header_preproc" >&6
5033
5034 # So? What about this header?
5035 case $ac_header_compiler:$ac_header_preproc in
5036 yes:no )
5037 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5038 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5039 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5040 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5041 (
5042 cat <<\_ASBOX
5043 ## ------------------------------------ ##
5044 ## Report this to bug-autoconf@gnu.org. ##
5045 ## ------------------------------------ ##
5046 _ASBOX
5047 ) |
5048 sed "s/^/$as_me: WARNING: /" >&2
5049 ;;
5050 no:yes )
5051 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5052 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5054 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5056 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5057 (
5058 cat <<\_ASBOX
5059 ## ------------------------------------ ##
5060 ## Report this to bug-autoconf@gnu.org. ##
5061 ## ------------------------------------ ##
5062 _ASBOX
5063 ) |
5064 sed "s/^/$as_me: WARNING: /" >&2
5065 ;;
5066 esac
5067 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5068 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5069 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_cv_header_ifaddrs_h=$ac_header_preproc
5073 fi
5074 echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5075 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5076
5077 fi
5078 if test $ac_cv_header_ifaddrs_h = yes; then
5079
5080 #
5081 # We have the header, so we use "getifaddrs()" to
5082 # get the list of interfaces.
5083 #
5084 V_FINDALLDEVS=getad
5085
5086 else
5087
5088 #
5089 # We don't have the header - give up.
5090 # XXX - we could also fall back on some other
5091 # mechanism, but, for now, this'll catch this
5092 # problem so that we can at least try to figure
5093 # out something to do on systems with "getifaddrs()"
5094 # but without "ifaddrs.h", if there is something
5095 # we can do on those systems.
5096 #
5097 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5098 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5099 { (exit 1); exit 1; }; }
5100
5101 fi
5102
5103
5104
5105 else
5106
5107 #
5108 # Well, we don't have "getifaddrs()", so we have to use
5109 # some other mechanism; determine what that mechanism is.
5110 #
5111 # The first thing we use is the type of capture mechanism,
5112 # which is somewhat of a proxy for the OS we're using.
5113 #
5114 case "$V_PCAP" in
5115
5116 dlpi)
5117 #
5118 # This might be Solaris 8 or later, with
5119 # SIOCGLIFCONF, or it might be some other OS
5120 # or some older version of Solaris, with
5121 # just SIOCGIFCONF.
5122 #
5123 echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5124 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5125 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <sys/param.h>
5136 #include <sys/file.h>
5137 #include <sys/ioctl.h>
5138 #include <sys/socket.h>
5139 #include <sys/sockio.h>
5140 int
5141 main ()
5142 {
5143 ioctl(0, SIOCGLIFCONF, (char *)0);
5144 ;
5145 return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_lbl_have_siocglifconf=yes
5161 else
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 ac_cv_lbl_have_siocglifconf=no
5166 fi
5167 rm -f conftest.$ac_objext conftest.$ac_ext
5168 fi
5169
5170 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5171 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5172 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5173 V_FINDALLDEVS=glifc
5174 else
5175 V_FINDALLDEVS=gifc
5176 fi
5177 ;;
5178
5179 *)
5180 #
5181 # Assume we just have SIOCGIFCONF.
5182 # (XXX - on at least later Linux kernels, there's
5183 # another mechanism, and we should be using that
5184 # instead.)
5185 #
5186 V_FINDALLDEVS=gifc
5187 ;;
5188 esac
5189 fi
5190
5191 fi
5192
5193 echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5194 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5195 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5196 if test "${enable_ipv6+set}" = set; then
5197 enableval="$enable_ipv6"
5198
5199 fi;
5200 if test "$enable_ipv6" = "yes"; then
5201
5202 cat >>confdefs.h <<\_ACEOF
5203 #define INET6 1
5204 _ACEOF
5205
5206 fi
5207 echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5208 echo "${ECHO_T}${enable_ipv6-no}" >&6
5209
5210 echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5211 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5212 # Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5213 if test "${enable_optimizer_dbg+set}" = set; then
5214 enableval="$enable_optimizer_dbg"
5215
5216 fi;
5217 if test "$enable_optimizer_dbg" = "yes"; then
5218
5219 cat >>confdefs.h <<\_ACEOF
5220 #define BDEBUG 1
5221 _ACEOF
5222
5223 fi
5224 echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5225 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5226
5227 echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5228 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5229 # Check whether --enable-yydebug or --disable-yydebug was given.
5230 if test "${enable_yydebug+set}" = set; then
5231 enableval="$enable_yydebug"
5232
5233 fi;
5234 if test "$enable_yydebug" = "yes"; then
5235
5236 cat >>confdefs.h <<\_ACEOF
5237 #define YYDEBUG 1
5238 _ACEOF
5239
5240 fi
5241 echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5242 echo "${ECHO_T}${enable_yydebug-no}" >&6
5243
5244 case "$V_PCAP" in
5245
5246 dlpi)
5247
5248
5249 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5250 do
5251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253 echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 fi
5258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5260 else
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 $ac_includes_default
5272 #include <$ac_header>
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_header_compiler=yes
5287 else
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ac_header_compiler=no
5292 fi
5293 rm -f conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5295 echo "${ECHO_T}$ac_header_compiler" >&6
5296
5297 # Is the header present?
5298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5301 #line $LINENO "configure"
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <$ac_header>
5308 _ACEOF
5309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev/null; then
5317 if test -s conftest.err; then
5318 ac_cpp_err=$ac_c_preproc_warn_flag
5319 else
5320 ac_cpp_err=
5321 fi
5322 else
5323 ac_cpp_err=yes
5324 fi
5325 if test -z "$ac_cpp_err"; then
5326 ac_header_preproc=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_header_preproc=no
5332 fi
5333 rm -f conftest.err conftest.$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5335 echo "${ECHO_T}$ac_header_preproc" >&6
5336
5337 # So? What about this header?
5338 case $ac_header_compiler:$ac_header_preproc in
5339 yes:no )
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5344 (
5345 cat <<\_ASBOX
5346 ## ------------------------------------ ##
5347 ## Report this to bug-autoconf@gnu.org. ##
5348 ## ------------------------------------ ##
5349 _ASBOX
5350 ) |
5351 sed "s/^/$as_me: WARNING: /" >&2
5352 ;;
5353 no:yes )
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5360 (
5361 cat <<\_ASBOX
5362 ## ------------------------------------ ##
5363 ## Report this to bug-autoconf@gnu.org. ##
5364 ## ------------------------------------ ##
5365 _ASBOX
5366 ) |
5367 sed "s/^/$as_me: WARNING: /" >&2
5368 ;;
5369 esac
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 eval "$as_ac_Header=$ac_header_preproc"
5376 fi
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379
5380 fi
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5384 _ACEOF
5385
5386 fi
5387
5388 done
5389
5390 echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5391 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5392 if test -c /dev/dlpi ; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6
5395
5396 cat >>confdefs.h <<\_ACEOF
5397 #define HAVE_DEV_DLPI 1
5398 _ACEOF
5399
5400 else
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5403 dir="/dev/dlpi"
5404 echo "$as_me:$LINENO: checking for $dir directory" >&5
5405 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5406 if test -d $dir ; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408 echo "${ECHO_T}yes" >&6
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define PCAP_DEV_PREFIX "$dir"
5412 _ACEOF
5413
5414 else
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418 fi
5419 ;;
5420
5421 linux)
5422 echo "$as_me:$LINENO: checking Linux kernel version" >&5
5423 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5424 if test "$cross_compiling" = yes; then
5425 if test "${ac_cv_linux_vers+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 ac_cv_linux_vers=unknown
5429 fi
5430
5431 else
5432 if test "${ac_cv_linux_vers+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 ac_cv_linux_vers=`uname -r 2>&1 | \
5436 sed -n -e '$s/.* //' -e '$s/\..*//p'`
5437 fi
5438
5439 fi
5440 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5441 echo "${ECHO_T}$ac_cv_linux_vers" >&6
5442 if test $ac_cv_linux_vers = unknown ; then
5443 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5444 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5445 { (exit 1); exit 1; }; }
5446 fi
5447 if test $ac_cv_linux_vers -lt 2 ; then
5448 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5449 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5450 { (exit 1); exit 1; }; }
5451 fi
5452 echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5453 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5454 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 cat >conftest.$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464
5465 # include <linux/if_packet.h>
5466 int
5467 main ()
5468 {
5469 struct tpacket_stats stats
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_lbl_tpacket_stats=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_cv_lbl_tpacket_stats=no
5492 fi
5493 rm -f conftest.$ac_objext conftest.$ac_ext
5494 fi
5495
5496 echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5497 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5498 if test $ac_cv_lbl_tpacket_stats = yes; then
5499
5500 cat >>confdefs.h <<\_ACEOF
5501 #define HAVE_TPACKET_STATS 1
5502 _ACEOF
5503
5504 fi
5505 ;;
5506
5507 dag)
5508 V_DEFS="$V_DEFS -DDAG_ONLY"
5509 ;;
5510
5511 null)
5512 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5513 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5515 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5516 ;;
5517
5518 esac
5519
5520 echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5521 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5522 if test -r /proc/net/dev ; then
5523 ac_cv_lbl_proc_net_dev=yes
5524 else
5525 ac_cv_lbl_proc_net_dev=no
5526 fi
5527 if test $ac_cv_lbl_proc_net_dev = yes; then
5528
5529 cat >>confdefs.h <<\_ACEOF
5530 #define HAVE_PROC_NET_DEV 1
5531 _ACEOF
5532
5533 fi
5534 echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5535 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5536
5537 # Check for Endace DAG card support.
5538
5539 # Check whether --with-dag or --without-dag was given.
5540 if test "${with_dag+set}" = set; then
5541 withval="$with_dag"
5542
5543 if test "$withval" = no
5544 then
5545 # User doesn't want DAG support.
5546 want_dag=no
5547 elif test "$withval" = yes
5548 then
5549 # User wants DAG support but hasn't specified a directory.
5550 want_dag=yes
5551 else
5552 # User wants DAG support and has specified a directory, so use the provided value.
5553 want_dag=yes
5554 dag_root=$withval
5555 fi
5556
5557 else
5558
5559 #
5560 # Use DAG API if present, otherwise don't
5561 #
5562 want_dag=ifpresent
5563
5564 fi;
5565
5566
5567 # Check whether --with-dag-includes or --without-dag-includes was given.
5568 if test "${with_dag_includes+set}" = set; then
5569 withval="$with_dag_includes"
5570
5571 # User wants DAG support and has specified a header directory, so use the provided value.
5572 want_dag=yes
5573 dag_include_dir=$withval
5574
5575 fi;
5576
5577
5578 # Check whether --with-dag-libraries or --without-dag-libraries was given.
5579 if test "${with_dag_libraries+set}" = set; then
5580 withval="$with_dag_libraries"
5581
5582 # User wants DAG support and has specified a library directory, so use the provided value.
5583 want_dag=yes
5584 dag_lib_dir=$withval
5585
5586 fi;
5587
5588 case "$V_PCAP" in
5589 linux|bpf|dag)
5590 #
5591 # We support the DAG API on Linux or BSD, or if we're building a
5592 # DAG-only libpcap.
5593 #
5594 ;;
5595 *)
5596 #
5597 # If the user explicitly requested DAG, tell them it's not
5598 # supported.
5599 #
5600 # If they expressed no preference, don't include it.
5601 #
5602 if test $want_dag = yes; then
5603 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
5604 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
5605 { (exit 1); exit 1; }; }
5606 elif test $want_dag = yes; then
5607 want_dag=no
5608 fi
5609 ;;
5610 esac
5611
5612 ac_cv_lbl_dag_api=no
5613 if test "$want_dag" != no; then
5614
5615 echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
5616 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
5617
5618 # If necessary, set default paths for DAG API headers and libraries.
5619 if test -z "$dag_root"; then
5620 dag_root=/usr/local
5621 fi
5622
5623 if test -z "$dag_include_dir"; then
5624 dag_include_dir="$dag_root/include"
5625 fi
5626
5627 if test -z "$dag_lib_dir"; then
5628 dag_lib_dir="$dag_root/lib"
5629 fi
5630
5631 if test -z "$dag_tools_dir"; then
5632 dag_tools_dir="$dag_root/tools"
5633 fi
5634
5635 if test -r $dag_include_dir/dagapi.h; then
5636 ac_cv_lbl_dag_api=yes
5637 fi
5638 echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
5639 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
5640 fi
5641
5642 if test $ac_cv_lbl_dag_api = yes; then
5643
5644 echo "$as_me:$LINENO: checking dagapi.o" >&5
5645 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
5646 dagapi_obj=no
5647 if test -r $dag_tools_dir/dagapi.o; then
5648
5649 # 2.4.x.
5650 dagapi_obj=$dag_tools_dir/dagapi.o
5651
5652 elif test -r $dag_lib_dir/dagapi.o; then
5653
5654 # 2.5.x.
5655 dagapi_obj=$dag_lib_dir/dagapi.o
5656
5657 elif test -r $dag_lib_dir/libdag.a; then
5658
5659 # 2.5.x.
5660 ar x $dag_lib_dir/libdag.a dagapi.o
5661 if test -r ./dagapi.o; then
5662 dagapi_obj=./dagapi.o
5663 fi
5664 fi
5665
5666 if test $dagapi_obj = no; then
5667 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5668 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5669 ac_cv_lbl_dag_api=no
5670 else
5671 echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
5672 echo "${ECHO_T}yes ($dagapi_obj)" >&6
5673 fi
5674 fi
5675
5676 if test $ac_cv_lbl_dag_api = yes; then
5677
5678 echo "$as_me:$LINENO: checking dagopts.o" >&5
5679 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
5680 dagopts_obj=no
5681 if test -r $dag_tools_dir/dagopts.o; then
5682
5683 # 2.4.x.
5684 dagopts_obj=$dag_tools_dir/dagopts.o
5685
5686 elif test -r $dag_lib_dir/dagopts.o; then
5687
5688 # 2.5.x.
5689 dagopts_obj=$dag_lib_dir/dagopts.o
5690
5691 elif test -r $dag_lib_dir/libdag.a; then
5692
5693 # 2.5.x.
5694 ar x $dag_lib_dir/libdag.a dagopts.o
5695 if test -r ./dagopts.o; then
5696 dagopts_obj=./dagopts.o
5697 fi
5698 fi
5699
5700 if test $dagopts_obj = no; then
5701 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
5702 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6
5703 ac_cv_lbl_dag_api=no
5704 else
5705 echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
5706 echo "${ECHO_T}yes ($dagopts_obj)" >&6
5707 fi
5708 fi
5709
5710 if test $ac_cv_lbl_dag_api = yes; then
5711
5712 # Under 2.5.x only we need to add dagreg.o.
5713 if test -r $dag_include_dir/dagreg.h; then
5714
5715 echo "$as_me:$LINENO: checking dagreg.o" >&5
5716 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
5717 dagreg_obj=no
5718 if test -r $dag_lib_dir/dagreg.o; then
5719
5720 # Object file is ready and waiting.
5721 dagreg_obj=$dag_lib_dir/dagreg.o
5722
5723 elif test -r $dag_lib_dir/libdag.a; then
5724
5725 # Extract from libdag.a.
5726 ar x $dag_lib_dir/libdag.a dagreg.o
5727 if test -r ./dagreg.o; then
5728 dagreg_obj=./dagreg.o
5729 fi
5730 fi
5731
5732 if test $dagreg_obj = no; then
5733 echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
5734 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6
5735 ac_cv_lbl_dag_api=no
5736 else
5737 echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
5738 echo "${ECHO_T}yes ($dagreg_obj)" >&6
5739 fi
5740 fi
5741 fi
5742
5743 if test $ac_cv_lbl_dag_api = yes; then
5744
5745 V_INCLS="$V_INCLS -I$dag_include_dir"
5746 V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
5747 if test $V_PCAP != dag ; then
5748 SSRC="pcap-dag.c"
5749 fi
5750
5751 # See if we can find a general version string.
5752 # Don't need to save and restore LIBS to prevent -ldag being included if there's a found-action (arg 3).
5753 saved_ldflags=$LDFLAGS
5754 LDFLAGS="-L$dag_lib_dir"
5755 echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
5756 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
5757 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 ac_check_lib_save_LIBS=$LIBS
5761 LIBS="-ldag $LIBS"
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769
5770 /* Override any gcc2 internal prototype to avoid an error. */
5771 #ifdef __cplusplus
5772 extern "C"
5773 #endif
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5776 char dag_attach_stream ();
5777 int
5778 main ()
5779 {
5780 dag_attach_stream ();
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5787 (eval $ac_link) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -s conftest$ac_exeext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_lib_dag_dag_attach_stream=yes
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_cv_lib_dag_dag_attach_stream=no
5803 fi
5804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5805 LIBS=$ac_check_lib_save_LIBS
5806 fi
5807 echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
5808 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
5809 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
5810 dag_version="2.5.x"
5811 else
5812 dag_version="2.4.x"
5813 fi
5814
5815 LDFLAGS=$saved_ldflags
5816
5817 # See if we can find a specific version string.
5818 echo "$as_me:$LINENO: checking the DAG API version" >&5
5819 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
5820 if test -r "$dag_root/VERSION"; then
5821 dag_version="`cat $dag_root/VERSION`"
5822 fi
5823 echo "$as_me:$LINENO: result: $dag_version" >&5
5824 echo "${ECHO_T}$dag_version" >&6
5825
5826 cat >>confdefs.h <<\_ACEOF
5827 #define HAVE_DAG_API 1
5828 _ACEOF
5829
5830 fi
5831
5832 if test $ac_cv_lbl_dag_api = no; then
5833 if test "$want_dag" = yes; then
5834 # User wanted DAG support but we couldn't find it.
5835 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
5836 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
5837 { (exit 1); exit 1; }; }
5838 fi
5839
5840 if test "$V_PCAP" = dag; then
5841 # User requested "dag" capture type but the DAG API wasn't found.
5842 { { 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
5843 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;}
5844 { (exit 1); exit 1; }; }
5845 fi
5846 fi
5847
5848
5849
5850 # Check whether --with-flex or --without-flex was given.
5851 if test "${with_flex+set}" = set; then
5852 withval="$with_flex"
5853
5854 fi;
5855
5856 # Check whether --with-bison or --without-bison was given.
5857 if test "${with_bison+set}" = set; then
5858 withval="$with_bison"
5859
5860 fi;
5861 if test "$with_flex" = no ; then
5862 V_LEX=lex
5863 else
5864 for ac_prog in flex
5865 do
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_V_LEX+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 if test -n "$V_LEX"; then
5874 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_V_LEX="$ac_prog"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887 done
5888 done
5889
5890 fi
5891 fi
5892 V_LEX=$ac_cv_prog_V_LEX
5893 if test -n "$V_LEX"; then
5894 echo "$as_me:$LINENO: result: $V_LEX" >&5
5895 echo "${ECHO_T}$V_LEX" >&6
5896 else
5897 echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5899 fi
5900
5901 test -n "$V_LEX" && break
5902 done
5903 test -n "$V_LEX" || V_LEX="lex"
5904
5905 fi
5906 if test "$V_LEX" = flex ; then
5907 # The -V flag was added in 2.4
5908 echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
5909 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
5910 if test "${ac_cv_lbl_flex_v24+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if flex -V >/dev/null 2>&1; then
5914 ac_cv_lbl_flex_v24=yes
5915 else
5916 ac_cv_lbl_flex_v24=no
5917 fi
5918 fi
5919
5920 echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
5921 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
5922 if test $ac_cv_lbl_flex_v24 = no ; then
5923 s="2.4 or higher required"
5924 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
5925 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
5926 V_LEX=lex
5927 fi
5928 fi
5929 if test "$with_bison" = no ; then
5930 V_YACC=yacc
5931 else
5932 for ac_prog in bison
5933 do
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy $ac_prog; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_V_YACC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 if test -n "$V_YACC"; then
5942 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_V_YACC="$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957
5958 fi
5959 fi
5960 V_YACC=$ac_cv_prog_V_YACC
5961 if test -n "$V_YACC"; then
5962 echo "$as_me:$LINENO: result: $V_YACC" >&5
5963 echo "${ECHO_T}$V_YACC" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969 test -n "$V_YACC" && break
5970 done
5971 test -n "$V_YACC" || V_YACC="yacc"
5972
5973 fi
5974 if test "$V_YACC" = bison ; then
5975 V_YACC="$V_YACC -y"
5976 fi
5977 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
5978 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
5979 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
5980 V_LEX=lex
5981 V_YACC=yacc
5982 fi
5983 if test "$V_LEX" = flex -a -n "pcap_" ; then
5984 V_LEX="$V_LEX -Ppcap_"
5985 V_YACC="$V_YACC -p pcap_"
5986 fi
5987 if test "$V_LEX" = lex ; then
5988 # Some versions of lex can't handle the definitions section of scanner.l .
5989 # Try lexing it and complain if it can't deal.
5990 echo "$as_me:$LINENO: checking for capable lex" >&5
5991 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
5992 if test "${tcpdump_cv_capable_lex+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 if lex -t scanner.l > /dev/null 2>&1; then
5996 tcpdump_cv_capable_lex=yes
5997 else
5998 tcpdump_cv_capable_lex=insufficient
5999 fi
6000 fi
6001 echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6002 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6003 if test $tcpdump_cv_capable_lex = insufficient ; then
6004 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6005 libpcap. flex is a lex replacement that has many advantages, including
6006 being able to compile libpcap. For more information, see
6007 http://www.gnu.org/software/flex/flex.html ." >&5
6008 echo "$as_me: error: Your operating system's lex is insufficient to compile
6009 libpcap. flex is a lex replacement that has many advantages, including
6010 being able to compile libpcap. For more information, see
6011 http://www.gnu.org/software/flex/flex.html ." >&2;}
6012 { (exit 1); exit 1; }; }
6013 fi
6014 fi
6015
6016 DYEXT="so"
6017 case "$host_os" in
6018
6019 aix*)
6020
6021 cat >>confdefs.h <<\_ACEOF
6022 #define _SUN 1
6023 _ACEOF
6024
6025 ;;
6026
6027 hpux9*)
6028
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_HPUX9 1
6031 _ACEOF
6032
6033 ;;
6034
6035 hpux10.0*)
6036 ;;
6037
6038 hpux10.1*)
6039 ;;
6040
6041 hpux*)
6042
6043 cat >>confdefs.h <<\_ACEOF
6044 #define HAVE_HPUX10_20_OR_LATER 1
6045 _ACEOF
6046
6047 ;;
6048
6049 sinix*)
6050 echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6051 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6052 if test "${ac_cv_cc_sinix_defined+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062
6063 int
6064 main ()
6065 {
6066 int i = sinix;
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 ac_cv_cc_sinix_defined=yes
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088 ac_cv_cc_sinix_defined=no
6089 fi
6090 rm -f conftest.$ac_objext conftest.$ac_ext
6091 fi
6092
6093 echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6094 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6095 if test $ac_cv_cc_sinix_defined = no ; then
6096
6097 cat >>confdefs.h <<\_ACEOF
6098 #define sinix 1
6099 _ACEOF
6100
6101 fi
6102 ;;
6103
6104 solaris*)
6105
6106 cat >>confdefs.h <<\_ACEOF
6107 #define HAVE_SOLARIS 1
6108 _ACEOF
6109
6110 ;;
6111
6112 darwin*)
6113 DYEXT="dylib"
6114 V_CCOPT="$V_CCOPT -fno-common"
6115 ;;
6116 esac
6117
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_RANLIB+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 if test -n "$RANLIB"; then
6127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142
6143 fi
6144 fi
6145 RANLIB=$ac_cv_prog_RANLIB
6146 if test -n "$RANLIB"; then
6147 echo "$as_me:$LINENO: result: $RANLIB" >&5
6148 echo "${ECHO_T}$RANLIB" >&6
6149 else
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6152 fi
6153
6154 fi
6155 if test -z "$ac_cv_prog_RANLIB"; then
6156 ac_ct_RANLIB=$RANLIB
6157 # Extract the first word of "ranlib", so it can be a program name with args.
6158 set dummy ranlib; ac_word=$2
6159 echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 if test -n "$ac_ct_RANLIB"; then
6165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_ac_ct_RANLIB="ranlib"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180
6181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6182 fi
6183 fi
6184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6185 if test -n "$ac_ct_RANLIB"; then
6186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6188 else
6189 echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6
6191 fi
6192
6193 RANLIB=$ac_ct_RANLIB
6194 else
6195 RANLIB="$ac_cv_prog_RANLIB"
6196 fi
6197
6198
6199 rm -f os-proto.h
6200 if test "${LBL_CFLAGS+set}" = set; then
6201 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
6202 fi
6203 if test -f .devel ; then
6204 if test "$GCC" = yes ; then
6205 if test "${LBL_CFLAGS+set}" != set; then
6206 if test "$ac_cv_prog_cc_g" = yes ; then
6207 V_CCOPT="-g $V_CCOPT"
6208 fi
6209 V_CCOPT="$V_CCOPT -Wall"
6210 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6211 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6212 fi
6213 fi
6214 else
6215 case "$target_os" in
6216
6217 irix6*)
6218 V_CCOPT="$V_CCOPT -n32"
6219 ;;
6220
6221 *)
6222 ;;
6223 esac
6224 fi
6225 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6226 name="lbl/os-$os.h"
6227 if test -f $name ; then
6228 ln -s $name os-proto.h
6229
6230 cat >>confdefs.h <<\_ACEOF
6231 #define HAVE_OS_PROTO_H 1
6232 _ACEOF
6233
6234 else
6235 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6236 echo "$as_me: WARNING: can't find $name" >&2;}
6237 fi
6238 fi
6239
6240 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6241 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6242 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252
6253 # include <sys/types.h>
6254 # include <sys/socket.h>
6255 int
6256 main ()
6257 {
6258 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_lbl_sockaddr_has_sa_len=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 ac_cv_lbl_sockaddr_has_sa_len=no
6281 fi
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6283 fi
6284
6285 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6286 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6287 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6288
6289 cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_SOCKADDR_SA_LEN 1
6291 _ACEOF
6292
6293 fi
6294
6295 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6296 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6297 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 #line $LINENO "configure"
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307
6308 # include <sys/types.h>
6309 # include <sys/socket.h>
6310 int
6311 main ()
6312 {
6313 u_int i = sizeof (struct sockaddr_storage)
6314 ;
6315 return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_lbl_has_sockaddr_storage=yes
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_cv_lbl_has_sockaddr_storage=no
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 fi
6339
6340 echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
6341 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
6342 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
6343
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_SOCKADDR_STORAGE 1
6346 _ACEOF
6347
6348 fi
6349
6350 echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
6351 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
6352 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362
6363 # include <sys/types.h>
6364 # include <sys/dlpi.h>
6365 # include <sys/dlpi_ext.h>
6366 int
6367 main ()
6368 {
6369 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
6392 fi
6393 rm -f conftest.$ac_objext conftest.$ac_ext
6394 fi
6395
6396 echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
6397 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
6398 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
6399
6400 cat >>confdefs.h <<\_ACEOF
6401 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
6402 _ACEOF
6403
6404 fi
6405
6406 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
6407 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
6408 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 case "$host_cpu" in
6412
6413 #
6414 # These are CPU types where:
6415 #
6416 # the CPU faults on an unaligned access, but at least some
6417 # OSes that support that CPU catch the fault and simulate
6418 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
6419 # the simulation is slow, so we don't want to use it;
6420 #
6421 # the CPU, I infer (from the old
6422 #
6423 # XXX: should also check that they don't do weird things (like on arm)
6424 #
6425 # comment) doesn't fault on unaligned accesses, but doesn't
6426 # do a normal unaligned fetch, either (e.g., presumably, ARM);
6427 #
6428 # for whatever reason, the test program doesn't work
6429 # (this has been claimed to be the case for several of those
6430 # CPUs - I don't know what the problem is; the problem
6431 # was reported as "the test program dumps core" for SuperH,
6432 # but that's what the test program is *supposed* to do -
6433 # it dumps core before it writes anything, so the test
6434 # for an empty output file should find an empty output
6435 # file and conclude that unaligned accesses don't work).
6436 #
6437 # This run-time test won't work if you're cross-compiling, so
6438 # in order to support cross-compiling for a particular CPU,
6439 # we have to wire in the list of CPU types anyway, as far as
6440 # I know, so perhaps we should just have a set of CPUs on
6441 # which we know it doesn't work, a set of CPUs on which we
6442 # know it does work, and have the script just fail on other
6443 # cpu types and update it when such a failure occurs.
6444 #
6445 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
6446 ac_cv_lbl_unaligned_fail=yes
6447 ;;
6448
6449 *)
6450 cat >conftest.c <<EOF
6451 # include <sys/types.h>
6452 # include <sys/wait.h>
6453 # include <stdio.h>
6454 unsigned char a[5] = { 1, 2, 3, 4, 5 };
6455 main() {
6456 unsigned int i;
6457 pid_t pid;
6458 int status;
6459 /* avoid "core dumped" message */
6460 pid = fork();
6461 if (pid < 0)
6462 exit(2);
6463 if (pid > 0) {
6464 /* parent */
6465 pid = waitpid(pid, &status, 0);
6466 if (pid < 0)
6467 exit(3);
6468 exit(!WIFEXITED(status));
6469 }
6470 /* child */
6471 i = *(unsigned int *)&a[1];
6472 printf("%d\n", i);
6473 exit(0);
6474 }
6475 EOF
6476 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
6477 conftest.c $LIBS >/dev/null 2>&1
6478 if test ! -x conftest ; then
6479 ac_cv_lbl_unaligned_fail=yes
6480 else
6481 ./conftest >conftest.out
6482 if test ! -s conftest.out ; then
6483 ac_cv_lbl_unaligned_fail=yes
6484 else
6485 ac_cv_lbl_unaligned_fail=no
6486 fi
6487 fi
6488 rm -f conftest* core core.conftest
6489 ;;
6490 esac
6491 fi
6492
6493 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
6494 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
6495 if test $ac_cv_lbl_unaligned_fail = yes ; then
6496
6497 cat >>confdefs.h <<\_ACEOF
6498 #define LBL_ALIGN 1
6499 _ACEOF
6500
6501 fi
6502
6503 #
6504 # Makefile.in includes rules to generate version.h, so we assume
6505 # that it will be generated if autoconf is used.
6506 #
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_VERSION_H 1
6510 _ACEOF
6511
6512
6513 rm -f net
6514 ln -s ${srcdir}/bpf/net net
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528 # Find a good install program. We prefer a C program (faster),
6529 # so one script is as good as another. But avoid the broken or
6530 # incompatible versions:
6531 # SysV /etc/install, /usr/sbin/install
6532 # SunOS /usr/etc/install
6533 # IRIX /sbin/install
6534 # AIX /bin/install
6535 # AmigaOS /C/install, which installs bootblocks on floppy discs
6536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6539 # ./install, which can be erroneously created by make from ./install.sh.
6540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6542 if test -z "$INSTALL"; then
6543 if test "${ac_cv_path_install+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 # Account for people who put trailing slashes in PATH elements.
6552 case $as_dir/ in
6553 ./ | .// | /cC/* | \
6554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6555 /usr/ucb/* ) ;;
6556 *)
6557 # OSF1 and SCO ODT 3.0 have their own names for install.
6558 # Don't use installbsd from OSF since it installs stuff as root
6559 # by default.
6560 for ac_prog in ginstall scoinst install; do
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6563 if test $ac_prog = install &&
6564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6565 # AIX install. It has an incompatible calling convention.
6566 :
6567 elif test $ac_prog = install &&
6568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6569 # program-specific install script used by HP pwplus--don't use.
6570 :
6571 else
6572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6573 break 3
6574 fi
6575 fi
6576 done
6577 done
6578 ;;
6579 esac
6580 done
6581
6582
6583 fi
6584 if test "${ac_cv_path_install+set}" = set; then
6585 INSTALL=$ac_cv_path_install
6586 else
6587 # As a last resort, use the slow shell script. We don't cache a
6588 # path for INSTALL within a source directory, because that will
6589 # break other packages using the cache if that directory is
6590 # removed, or if the path is relative.
6591 INSTALL=$ac_install_sh
6592 fi
6593 fi
6594 echo "$as_me:$LINENO: result: $INSTALL" >&5
6595 echo "${ECHO_T}$INSTALL" >&6
6596
6597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6598 # It thinks the first close brace ends the variable substitution.
6599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6600
6601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6602
6603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6604
6605
6606 ac_config_headers="$ac_config_headers config.h"
6607
6608
6609 ac_config_files="$ac_config_files Makefile"
6610 cat >confcache <<\_ACEOF
6611 # This file is a shell script that caches the results of configure
6612 # tests run on this system so they can be shared between configure
6613 # scripts and configure runs, see configure's option --config-cache.
6614 # It is not useful on other systems. If it contains results you don't
6615 # want to keep, you may remove or edit it.
6616 #
6617 # config.status only pays attention to the cache file if you give it
6618 # the --recheck option to rerun configure.
6619 #
6620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6622 # following values.
6623
6624 _ACEOF
6625
6626 # The following way of writing the cache mishandles newlines in values,
6627 # but we know of no workaround that is simple, portable, and efficient.
6628 # So, don't put newlines in cache variables' values.
6629 # Ultrix sh set writes to stderr and can't be redirected directly,
6630 # and sets the high bit in the cache file unless we assign to the vars.
6631 {
6632 (set) 2>&1 |
6633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6634 *ac_space=\ *)
6635 # `set' does not quote correctly, so add quotes (double-quote
6636 # substitution turns \\\\ into \\, and sed turns \\ into \).
6637 sed -n \
6638 "s/'/'\\\\''/g;
6639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6640 ;;
6641 *)
6642 # `set' quotes correctly as required by POSIX, so do not add quotes.
6643 sed -n \
6644 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6645 ;;
6646 esac;
6647 } |
6648 sed '
6649 t clear
6650 : clear
6651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6652 t end
6653 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6654 : end' >>confcache
6655 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6656 if test -w $cache_file; then
6657 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6658 cat confcache >$cache_file
6659 else
6660 echo "not updating unwritable cache $cache_file"
6661 fi
6662 fi
6663 rm -f confcache
6664
6665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6666 # Let make expand exec_prefix.
6667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6668
6669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6671 # trailing colons and then remove the whole line if VPATH becomes empty
6672 # (actually we leave an empty line to preserve line numbers).
6673 if test "x$srcdir" = x.; then
6674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6675 s/:*\$(srcdir):*/:/;
6676 s/:*\${srcdir}:*/:/;
6677 s/:*@srcdir@:*/:/;
6678 s/^\([^=]*=[ ]*\):*/\1/;
6679 s/:*$//;
6680 s/^[^=]*=[ ]*$//;
6681 }'
6682 fi
6683
6684 DEFS=-DHAVE_CONFIG_H
6685
6686 ac_libobjs=
6687 ac_ltlibobjs=
6688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6689 # 1. Remove the extension, and $U if already installed.
6690 ac_i=`echo "$ac_i" |
6691 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6692 # 2. Add them.
6693 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6694 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6695 done
6696 LIBOBJS=$ac_libobjs
6697
6698 LTLIBOBJS=$ac_ltlibobjs
6699
6700
6701
6702 : ${CONFIG_STATUS=./config.status}
6703 ac_clean_files_save=$ac_clean_files
6704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6705 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6706 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6707 cat >$CONFIG_STATUS <<_ACEOF
6708 #! $SHELL
6709 # Generated by $as_me.
6710 # Run this file to recreate the current configuration.
6711 # Compiler output produced by configure, useful for debugging
6712 # configure, is in config.log if it exists.
6713
6714 debug=false
6715 ac_cs_recheck=false
6716 ac_cs_silent=false
6717 SHELL=\${CONFIG_SHELL-$SHELL}
6718 _ACEOF
6719
6720 cat >>$CONFIG_STATUS <<\_ACEOF
6721 ## --------------------- ##
6722 ## M4sh Initialization. ##
6723 ## --------------------- ##
6724
6725 # Be Bourne compatible
6726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6727 emulate sh
6728 NULLCMD=:
6729 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6730 # is contrary to our usage. Disable this feature.
6731 alias -g '${1+"$@"}'='"$@"'
6732 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6733 set -o posix
6734 fi
6735
6736 # Support unset when possible.
6737 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6738 as_unset=unset
6739 else
6740 as_unset=false
6741 fi
6742
6743
6744 # Work around bugs in pre-3.0 UWIN ksh.
6745 $as_unset ENV MAIL MAILPATH
6746 PS1='$ '
6747 PS2='> '
6748 PS4='+ '
6749
6750 # NLS nuisances.
6751 for as_var in \
6752 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6753 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6754 LC_TELEPHONE LC_TIME
6755 do
6756 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6757 eval $as_var=C; export $as_var
6758 else
6759 $as_unset $as_var
6760 fi
6761 done
6762
6763 # Required to use basename.
6764 if expr a : '\(a\)' >/dev/null 2>&1; then
6765 as_expr=expr
6766 else
6767 as_expr=false
6768 fi
6769
6770 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6771 as_basename=basename
6772 else
6773 as_basename=false
6774 fi
6775
6776
6777 # Name of the executable.
6778 as_me=`$as_basename "$0" ||
6779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6780 X"$0" : 'X\(//\)$' \| \
6781 X"$0" : 'X\(/\)$' \| \
6782 . : '\(.\)' 2>/dev/null ||
6783 echo X/"$0" |
6784 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6785 /^X\/\(\/\/\)$/{ s//\1/; q; }
6786 /^X\/\(\/\).*/{ s//\1/; q; }
6787 s/.*/./; q'`
6788
6789
6790 # PATH needs CR, and LINENO needs CR and PATH.
6791 # Avoid depending upon Character Ranges.
6792 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6793 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6794 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6795 as_cr_digits='0123456789'
6796 as_cr_alnum=$as_cr_Letters$as_cr_digits
6797
6798 # The user is always right.
6799 if test "${PATH_SEPARATOR+set}" != set; then
6800 echo "#! /bin/sh" >conf$$.sh
6801 echo "exit 0" >>conf$$.sh
6802 chmod +x conf$$.sh
6803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6804 PATH_SEPARATOR=';'
6805 else
6806 PATH_SEPARATOR=:
6807 fi
6808 rm -f conf$$.sh
6809 fi
6810
6811
6812 as_lineno_1=$LINENO
6813 as_lineno_2=$LINENO
6814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6815 test "x$as_lineno_1" != "x$as_lineno_2" &&
6816 test "x$as_lineno_3" = "x$as_lineno_2" || {
6817 # Find who we are. Look in the path if we contain no path at all
6818 # relative or not.
6819 case $0 in
6820 *[\\/]* ) as_myself=$0 ;;
6821 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6827 done
6828
6829 ;;
6830 esac
6831 # We did not find ourselves, most probably we were run as `sh COMMAND'
6832 # in which case we are not to be found in the path.
6833 if test "x$as_myself" = x; then
6834 as_myself=$0
6835 fi
6836 if test ! -f "$as_myself"; then
6837 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6838 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6839 { (exit 1); exit 1; }; }
6840 fi
6841 case $CONFIG_SHELL in
6842 '')
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for as_base in sh bash ksh sh5; do
6849 case $as_dir in
6850 /*)
6851 if ("$as_dir/$as_base" -c '
6852 as_lineno_1=$LINENO
6853 as_lineno_2=$LINENO
6854 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6855 test "x$as_lineno_1" != "x$as_lineno_2" &&
6856 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6857 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6858 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6859 CONFIG_SHELL=$as_dir/$as_base
6860 export CONFIG_SHELL
6861 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6862 fi;;
6863 esac
6864 done
6865 done
6866 ;;
6867 esac
6868
6869 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6870 # uniformly replaced by the line number. The first 'sed' inserts a
6871 # line-number line before each line; the second 'sed' does the real
6872 # work. The second script uses 'N' to pair each line-number line
6873 # with the numbered line, and appends trailing '-' during
6874 # substitution so that $LINENO is not a special case at line end.
6875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6876 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6877 sed '=' <$as_myself |
6878 sed '
6879 N
6880 s,$,-,
6881 : loop
6882 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6883 t loop
6884 s,-$,,
6885 s,^['$as_cr_digits']*\n,,
6886 ' >$as_me.lineno &&
6887 chmod +x $as_me.lineno ||
6888 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6889 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6890 { (exit 1); exit 1; }; }
6891
6892 # Don't try to exec as it changes $[0], causing all sort of problems
6893 # (the dirname of $[0] is not the place where we might find the
6894 # original and so on. Autoconf is especially sensible to this).
6895 . ./$as_me.lineno
6896 # Exit status is that of the last command.
6897 exit
6898 }
6899
6900
6901 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6902 *c*,-n*) ECHO_N= ECHO_C='
6903 ' ECHO_T=' ' ;;
6904 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6905 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6906 esac
6907
6908 if expr a : '\(a\)' >/dev/null 2>&1; then
6909 as_expr=expr
6910 else
6911 as_expr=false
6912 fi
6913
6914 rm -f conf$$ conf$$.exe conf$$.file
6915 echo >conf$$.file
6916 if ln -s conf$$.file conf$$ 2>/dev/null; then
6917 # We could just check for DJGPP; but this test a) works b) is more generic
6918 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6919 if test -f conf$$.exe; then
6920 # Don't use ln at all; we don't have any links
6921 as_ln_s='cp -p'
6922 else
6923 as_ln_s='ln -s'
6924 fi
6925 elif ln conf$$.file conf$$ 2>/dev/null; then
6926 as_ln_s=ln
6927 else
6928 as_ln_s='cp -p'
6929 fi
6930 rm -f conf$$ conf$$.exe conf$$.file
6931
6932 if mkdir -p . 2>/dev/null; then
6933 as_mkdir_p=:
6934 else
6935 as_mkdir_p=false
6936 fi
6937
6938 as_executable_p="test -f"
6939
6940 # Sed expression to map a string onto a valid CPP name.
6941 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6942
6943 # Sed expression to map a string onto a valid variable name.
6944 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6945
6946
6947 # IFS
6948 # We need space, tab and new line, in precisely that order.
6949 as_nl='
6950 '
6951 IFS=" $as_nl"
6952
6953 # CDPATH.
6954 $as_unset CDPATH
6955
6956 exec 6>&1
6957
6958 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6959 # report actual input values of CONFIG_FILES etc. instead of their
6960 # values after options handling. Logging --version etc. is OK.
6961 exec 5>>config.log
6962 {
6963 echo
6964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6965 ## Running $as_me. ##
6966 _ASBOX
6967 } >&5
6968 cat >&5 <<_CSEOF
6969
6970 This file was extended by $as_me, which was
6971 generated by GNU Autoconf 2.57. Invocation command line was
6972
6973 CONFIG_FILES = $CONFIG_FILES
6974 CONFIG_HEADERS = $CONFIG_HEADERS
6975 CONFIG_LINKS = $CONFIG_LINKS
6976 CONFIG_COMMANDS = $CONFIG_COMMANDS
6977 $ $0 $@
6978
6979 _CSEOF
6980 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6981 echo >&5
6982 _ACEOF
6983
6984 # Files that config.status was made for.
6985 if test -n "$ac_config_files"; then
6986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6987 fi
6988
6989 if test -n "$ac_config_headers"; then
6990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6991 fi
6992
6993 if test -n "$ac_config_links"; then
6994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6995 fi
6996
6997 if test -n "$ac_config_commands"; then
6998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6999 fi
7000
7001 cat >>$CONFIG_STATUS <<\_ACEOF
7002
7003 ac_cs_usage="\
7004 \`$as_me' instantiates files from templates according to the
7005 current configuration.
7006
7007 Usage: $0 [OPTIONS] [FILE]...
7008
7009 -h, --help print this help, then exit
7010 -V, --version print version number, then exit
7011 -q, --quiet do not print progress messages
7012 -d, --debug don't remove temporary files
7013 --recheck update $as_me by reconfiguring in the same conditions
7014 --file=FILE[:TEMPLATE]
7015 instantiate the configuration file FILE
7016 --header=FILE[:TEMPLATE]
7017 instantiate the configuration header FILE
7018
7019 Configuration files:
7020 $config_files
7021
7022 Configuration headers:
7023 $config_headers
7024
7025 Report bugs to <bug-autoconf@gnu.org>."
7026 _ACEOF
7027
7028 cat >>$CONFIG_STATUS <<_ACEOF
7029 ac_cs_version="\\
7030 config.status
7031 configured by $0, generated by GNU Autoconf 2.57,
7032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7033
7034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7035 Free Software Foundation, Inc.
7036 This config.status script is free software; the Free Software Foundation
7037 gives unlimited permission to copy, distribute and modify it."
7038 srcdir=$srcdir
7039 INSTALL="$INSTALL"
7040 _ACEOF
7041
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7043 # If no file are specified by the user, then we need to provide default
7044 # value. By we need to know if files were specified by the user.
7045 ac_need_defaults=:
7046 while test $# != 0
7047 do
7048 case $1 in
7049 --*=*)
7050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7052 ac_shift=:
7053 ;;
7054 -*)
7055 ac_option=$1
7056 ac_optarg=$2
7057 ac_shift=shift
7058 ;;
7059 *) # This is not an option, so the user has probably given explicit
7060 # arguments.
7061 ac_option=$1
7062 ac_need_defaults=false;;
7063 esac
7064
7065 case $ac_option in
7066 # Handling of the options.
7067 _ACEOF
7068 cat >>$CONFIG_STATUS <<\_ACEOF
7069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7070 ac_cs_recheck=: ;;
7071 --version | --vers* | -V )
7072 echo "$ac_cs_version"; exit 0 ;;
7073 --he | --h)
7074 # Conflict between --help and --header
7075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7076 Try \`$0 --help' for more information." >&5
7077 echo "$as_me: error: ambiguous option: $1
7078 Try \`$0 --help' for more information." >&2;}
7079 { (exit 1); exit 1; }; };;
7080 --help | --hel | -h )
7081 echo "$ac_cs_usage"; exit 0 ;;
7082 --debug | --d* | -d )
7083 debug=: ;;
7084 --file | --fil | --fi | --f )
7085 $ac_shift
7086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7087 ac_need_defaults=false;;
7088 --header | --heade | --head | --hea )
7089 $ac_shift
7090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7091 ac_need_defaults=false;;
7092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7094 ac_cs_silent=: ;;
7095
7096 # This is an error.
7097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7098 Try \`$0 --help' for more information." >&5
7099 echo "$as_me: error: unrecognized option: $1
7100 Try \`$0 --help' for more information." >&2;}
7101 { (exit 1); exit 1; }; } ;;
7102
7103 *) ac_config_targets="$ac_config_targets $1" ;;
7104
7105 esac
7106 shift
7107 done
7108
7109 ac_configure_extra_args=
7110
7111 if $ac_cs_silent; then
7112 exec 6>/dev/null
7113 ac_configure_extra_args="$ac_configure_extra_args --silent"
7114 fi
7115
7116 _ACEOF
7117 cat >>$CONFIG_STATUS <<_ACEOF
7118 if \$ac_cs_recheck; then
7119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7121 fi
7122
7123 _ACEOF
7124
7125
7126
7127
7128
7129 cat >>$CONFIG_STATUS <<\_ACEOF
7130 for ac_config_target in $ac_config_targets
7131 do
7132 case "$ac_config_target" in
7133 # Handling of arguments.
7134 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7135 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7136 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7137 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7138 { (exit 1); exit 1; }; };;
7139 esac
7140 done
7141
7142 # If the user did not use the arguments to specify the items to instantiate,
7143 # then the envvar interface is used. Set only those that are not.
7144 # We use the long form for the default assignment because of an extremely
7145 # bizarre bug on SunOS 4.1.3.
7146 if $ac_need_defaults; then
7147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7149 fi
7150
7151 # Have a temporary directory for convenience. Make it in the build tree
7152 # simply because there is no reason to put it here, and in addition,
7153 # creating and moving files from /tmp can sometimes cause problems.
7154 # Create a temporary directory, and hook for its removal unless debugging.
7155 $debug ||
7156 {
7157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7158 trap '{ (exit 1); exit 1; }' 1 2 13 15
7159 }
7160
7161 # Create a (secure) tmp directory for tmp files.
7162
7163 {
7164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7165 test -n "$tmp" && test -d "$tmp"
7166 } ||
7167 {
7168 tmp=./confstat$$-$RANDOM
7169 (umask 077 && mkdir $tmp)
7170 } ||
7171 {
7172 echo "$me: cannot create a temporary directory in ." >&2
7173 { (exit 1); exit 1; }
7174 }
7175
7176 _ACEOF
7177
7178 cat >>$CONFIG_STATUS <<_ACEOF
7179
7180 #
7181 # CONFIG_FILES section.
7182 #
7183
7184 # No need to generate the scripts if there are no CONFIG_FILES.
7185 # This happens for instance when ./config.status config.h
7186 if test -n "\$CONFIG_FILES"; then
7187 # Protect against being on the right side of a sed subst in config.status.
7188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7190 s,@SHELL@,$SHELL,;t t
7191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7197 s,@exec_prefix@,$exec_prefix,;t t
7198 s,@prefix@,$prefix,;t t
7199 s,@program_transform_name@,$program_transform_name,;t t
7200 s,@bindir@,$bindir,;t t
7201 s,@sbindir@,$sbindir,;t t
7202 s,@libexecdir@,$libexecdir,;t t
7203 s,@datadir@,$datadir,;t t
7204 s,@sysconfdir@,$sysconfdir,;t t
7205 s,@sharedstatedir@,$sharedstatedir,;t t
7206 s,@localstatedir@,$localstatedir,;t t
7207 s,@libdir@,$libdir,;t t
7208 s,@includedir@,$includedir,;t t
7209 s,@oldincludedir@,$oldincludedir,;t t
7210 s,@infodir@,$infodir,;t t
7211 s,@mandir@,$mandir,;t t
7212 s,@build_alias@,$build_alias,;t t
7213 s,@host_alias@,$host_alias,;t t
7214 s,@target_alias@,$target_alias,;t t
7215 s,@DEFS@,$DEFS,;t t
7216 s,@ECHO_C@,$ECHO_C,;t t
7217 s,@ECHO_N@,$ECHO_N,;t t
7218 s,@ECHO_T@,$ECHO_T,;t t
7219 s,@LIBS@,$LIBS,;t t
7220 s,@build@,$build,;t t
7221 s,@build_cpu@,$build_cpu,;t t
7222 s,@build_vendor@,$build_vendor,;t t
7223 s,@build_os@,$build_os,;t t
7224 s,@host@,$host,;t t
7225 s,@host_cpu@,$host_cpu,;t t
7226 s,@host_vendor@,$host_vendor,;t t
7227 s,@host_os@,$host_os,;t t
7228 s,@target@,$target,;t t
7229 s,@target_cpu@,$target_cpu,;t t
7230 s,@target_vendor@,$target_vendor,;t t
7231 s,@target_os@,$target_os,;t t
7232 s,@SHLICC2@,$SHLICC2,;t t
7233 s,@CC@,$CC,;t t
7234 s,@CFLAGS@,$CFLAGS,;t t
7235 s,@LDFLAGS@,$LDFLAGS,;t t
7236 s,@CPPFLAGS@,$CPPFLAGS,;t t
7237 s,@ac_ct_CC@,$ac_ct_CC,;t t
7238 s,@EXEEXT@,$EXEEXT,;t t
7239 s,@OBJEXT@,$OBJEXT,;t t
7240 s,@CPP@,$CPP,;t t
7241 s,@EGREP@,$EGREP,;t t
7242 s,@LIBOBJS@,$LIBOBJS,;t t
7243 s,@V_LEX@,$V_LEX,;t t
7244 s,@V_YACC@,$V_YACC,;t t
7245 s,@RANLIB@,$RANLIB,;t t
7246 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7247 s,@V_CCOPT@,$V_CCOPT,;t t
7248 s,@V_DEFS@,$V_DEFS,;t t
7249 s,@V_INCLS@,$V_INCLS,;t t
7250 s,@V_LIBS@,$V_LIBS,;t t
7251 s,@V_PCAP@,$V_PCAP,;t t
7252 s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
7253 s,@V_RANLIB@,$V_RANLIB,;t t
7254 s,@SSRC@,$SSRC,;t t
7255 s,@DYEXT@,$DYEXT,;t t
7256 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7257 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7258 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7260 CEOF
7261
7262 _ACEOF
7263
7264 cat >>$CONFIG_STATUS <<\_ACEOF
7265 # Split the substitutions into bite-sized pieces for seds with
7266 # small command number limits, like on Digital OSF/1 and HP-UX.
7267 ac_max_sed_lines=48
7268 ac_sed_frag=1 # Number of current file.
7269 ac_beg=1 # First line for current file.
7270 ac_end=$ac_max_sed_lines # Line after last line for current file.
7271 ac_more_lines=:
7272 ac_sed_cmds=
7273 while $ac_more_lines; do
7274 if test $ac_beg -gt 1; then
7275 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7276 else
7277 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7278 fi
7279 if test ! -s $tmp/subs.frag; then
7280 ac_more_lines=false
7281 else
7282 # The purpose of the label and of the branching condition is to
7283 # speed up the sed processing (if there are no `@' at all, there
7284 # is no need to browse any of the substitutions).
7285 # These are the two extra sed commands mentioned above.
7286 (echo ':t
7287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7288 if test -z "$ac_sed_cmds"; then
7289 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7290 else
7291 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7292 fi
7293 ac_sed_frag=`expr $ac_sed_frag + 1`
7294 ac_beg=$ac_end
7295 ac_end=`expr $ac_end + $ac_max_sed_lines`
7296 fi
7297 done
7298 if test -z "$ac_sed_cmds"; then
7299 ac_sed_cmds=cat
7300 fi
7301 fi # test -n "$CONFIG_FILES"
7302
7303 _ACEOF
7304 cat >>$CONFIG_STATUS <<\_ACEOF
7305 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7307 case $ac_file in
7308 - | *:- | *:-:* ) # input from stdin
7309 cat >$tmp/stdin
7310 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7312 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7314 * ) ac_file_in=$ac_file.in ;;
7315 esac
7316
7317 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$ac_file" : 'X\(//\)[^/]' \| \
7321 X"$ac_file" : 'X\(//\)$' \| \
7322 X"$ac_file" : 'X\(/\)' \| \
7323 . : '\(.\)' 2>/dev/null ||
7324 echo X"$ac_file" |
7325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327 /^X\(\/\/\)$/{ s//\1/; q; }
7328 /^X\(\/\).*/{ s//\1/; q; }
7329 s/.*/./; q'`
7330 { if $as_mkdir_p; then
7331 mkdir -p "$ac_dir"
7332 else
7333 as_dir="$ac_dir"
7334 as_dirs=
7335 while test ! -d "$as_dir"; do
7336 as_dirs="$as_dir $as_dirs"
7337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7339 X"$as_dir" : 'X\(//\)[^/]' \| \
7340 X"$as_dir" : 'X\(//\)$' \| \
7341 X"$as_dir" : 'X\(/\)' \| \
7342 . : '\(.\)' 2>/dev/null ||
7343 echo X"$as_dir" |
7344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7346 /^X\(\/\/\)$/{ s//\1/; q; }
7347 /^X\(\/\).*/{ s//\1/; q; }
7348 s/.*/./; q'`
7349 done
7350 test ! -n "$as_dirs" || mkdir $as_dirs
7351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7353 { (exit 1); exit 1; }; }; }
7354
7355 ac_builddir=.
7356
7357 if test "$ac_dir" != .; then
7358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7359 # A "../" for each directory in $ac_dir_suffix.
7360 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7361 else
7362 ac_dir_suffix= ac_top_builddir=
7363 fi
7364
7365 case $srcdir in
7366 .) # No --srcdir option. We are building in place.
7367 ac_srcdir=.
7368 if test -z "$ac_top_builddir"; then
7369 ac_top_srcdir=.
7370 else
7371 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7372 fi ;;
7373 [\\/]* | ?:[\\/]* ) # Absolute path.
7374 ac_srcdir=$srcdir$ac_dir_suffix;
7375 ac_top_srcdir=$srcdir ;;
7376 *) # Relative path.
7377 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7378 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7379 esac
7380 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7381 # absolute.
7382 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7383 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7384 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7385 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7386
7387
7388 case $INSTALL in
7389 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7390 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7391 esac
7392
7393 if test x"$ac_file" != x-; then
7394 { echo "$as_me:$LINENO: creating $ac_file" >&5
7395 echo "$as_me: creating $ac_file" >&6;}
7396 rm -f "$ac_file"
7397 fi
7398 # Let's still pretend it is `configure' which instantiates (i.e., don't
7399 # use $as_me), people would be surprised to read:
7400 # /* config.h. Generated by config.status. */
7401 if test x"$ac_file" = x-; then
7402 configure_input=
7403 else
7404 configure_input="$ac_file. "
7405 fi
7406 configure_input=$configure_input"Generated from `echo $ac_file_in |
7407 sed 's,.*/,,'` by configure."
7408
7409 # First look for the input files in the build tree, otherwise in the
7410 # src tree.
7411 ac_file_inputs=`IFS=:
7412 for f in $ac_file_in; do
7413 case $f in
7414 -) echo $tmp/stdin ;;
7415 [\\/$]*)
7416 # Absolute (can't be DOS-style, as IFS=:)
7417 test -f "$f" || { { 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 echo $f;;
7421 *) # Relative
7422 if test -f "$f"; then
7423 # Build tree
7424 echo $f
7425 elif test -f "$srcdir/$f"; then
7426 # Source tree
7427 echo $srcdir/$f
7428 else
7429 # /dev/null tree
7430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7431 echo "$as_me: error: cannot find input file: $f" >&2;}
7432 { (exit 1); exit 1; }; }
7433 fi;;
7434 esac
7435 done` || { (exit 1); exit 1; }
7436 _ACEOF
7437 cat >>$CONFIG_STATUS <<_ACEOF
7438 sed "$ac_vpsub
7439 $extrasub
7440 _ACEOF
7441 cat >>$CONFIG_STATUS <<\_ACEOF
7442 :t
7443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7444 s,@configure_input@,$configure_input,;t t
7445 s,@srcdir@,$ac_srcdir,;t t
7446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7447 s,@top_srcdir@,$ac_top_srcdir,;t t
7448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7449 s,@builddir@,$ac_builddir,;t t
7450 s,@abs_builddir@,$ac_abs_builddir,;t t
7451 s,@top_builddir@,$ac_top_builddir,;t t
7452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7453 s,@INSTALL@,$ac_INSTALL,;t t
7454 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7455 rm -f $tmp/stdin
7456 if test x"$ac_file" != x-; then
7457 mv $tmp/out $ac_file
7458 else
7459 cat $tmp/out
7460 rm -f $tmp/out
7461 fi
7462
7463 done
7464 _ACEOF
7465 cat >>$CONFIG_STATUS <<\_ACEOF
7466
7467 #
7468 # CONFIG_HEADER section.
7469 #
7470
7471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7473 #
7474 # ac_d sets the value in "#define NAME VALUE" lines.
7475 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7476 ac_dB='[ ].*$,\1#\2'
7477 ac_dC=' '
7478 ac_dD=',;t'
7479 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7480 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7481 ac_uB='$,\1#\2define\3'
7482 ac_uC=' '
7483 ac_uD=',;t'
7484
7485 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7487 case $ac_file in
7488 - | *:- | *:-:* ) # input from stdin
7489 cat >$tmp/stdin
7490 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7492 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7493 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7494 * ) ac_file_in=$ac_file.in ;;
7495 esac
7496
7497 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7498 echo "$as_me: creating $ac_file" >&6;}
7499
7500 # First look for the input files in the build tree, otherwise in the
7501 # src tree.
7502 ac_file_inputs=`IFS=:
7503 for f in $ac_file_in; do
7504 case $f in
7505 -) echo $tmp/stdin ;;
7506 [\\/$]*)
7507 # Absolute (can't be DOS-style, as IFS=:)
7508 test -f "$f" || { { 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 echo $f;;
7512 *) # Relative
7513 if test -f "$f"; then
7514 # Build tree
7515 echo $f
7516 elif test -f "$srcdir/$f"; then
7517 # Source tree
7518 echo $srcdir/$f
7519 else
7520 # /dev/null tree
7521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7522 echo "$as_me: error: cannot find input file: $f" >&2;}
7523 { (exit 1); exit 1; }; }
7524 fi;;
7525 esac
7526 done` || { (exit 1); exit 1; }
7527 # Remove the trailing spaces.
7528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7529
7530 _ACEOF
7531
7532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7533 # `conftest.undefs', that substitutes the proper values into
7534 # config.h.in to produce config.h. The first handles `#define'
7535 # templates, and the second `#undef' templates.
7536 # And first: Protect against being on the right side of a sed subst in
7537 # config.status. Protect against being in an unquoted here document
7538 # in config.status.
7539 rm -f conftest.defines conftest.undefs
7540 # Using a here document instead of a string reduces the quoting nightmare.
7541 # Putting comments in sed scripts is not portable.
7542 #
7543 # `end' is used to avoid that the second main sed command (meant for
7544 # 0-ary CPP macros) applies to n-ary macro definitions.
7545 # See the Autoconf documentation for `clear'.
7546 cat >confdef2sed.sed <<\_ACEOF
7547 s/[\\&,]/\\&/g
7548 s,[\\$`],\\&,g
7549 t clear
7550 : clear
7551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7552 t end
7553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7554 : end
7555 _ACEOF
7556 # If some macros were called several times there might be several times
7557 # the same #defines, which is useless. Nevertheless, we may not want to
7558 # sort them, since we want the *last* AC-DEFINE to be honored.
7559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7561 rm -f confdef2sed.sed
7562
7563 # This sed command replaces #undef with comments. This is necessary, for
7564 # example, in the case of _POSIX_SOURCE, which is predefined and required
7565 # on some systems where configure will not decide to define it.
7566 cat >>conftest.undefs <<\_ACEOF
7567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7568 _ACEOF
7569
7570 # Break up conftest.defines because some shells have a limit on the size
7571 # of here documents, and old seds have small limits too (100 cmds).
7572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7575 echo ' :' >>$CONFIG_STATUS
7576 rm -f conftest.tail
7577 while grep . conftest.defines >/dev/null
7578 do
7579 # Write a limited-size here document to $tmp/defines.sed.
7580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7581 # Speed up: don't consider the non `#define' lines.
7582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7583 # Work around the forget-to-reset-the-flag bug.
7584 echo 't clr' >>$CONFIG_STATUS
7585 echo ': clr' >>$CONFIG_STATUS
7586 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7587 echo 'CEOF
7588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7589 rm -f $tmp/in
7590 mv $tmp/out $tmp/in
7591 ' >>$CONFIG_STATUS
7592 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7593 rm -f conftest.defines
7594 mv conftest.tail conftest.defines
7595 done
7596 rm -f conftest.defines
7597 echo ' fi # grep' >>$CONFIG_STATUS
7598 echo >>$CONFIG_STATUS
7599
7600 # Break up conftest.undefs because some shells have a limit on the size
7601 # of here documents, and old seds have small limits too (100 cmds).
7602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7603 rm -f conftest.tail
7604 while grep . conftest.undefs >/dev/null
7605 do
7606 # Write a limited-size here document to $tmp/undefs.sed.
7607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7608 # Speed up: don't consider the non `#undef'
7609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7610 # Work around the forget-to-reset-the-flag bug.
7611 echo 't clr' >>$CONFIG_STATUS
7612 echo ': clr' >>$CONFIG_STATUS
7613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7614 echo 'CEOF
7615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7616 rm -f $tmp/in
7617 mv $tmp/out $tmp/in
7618 ' >>$CONFIG_STATUS
7619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7620 rm -f conftest.undefs
7621 mv conftest.tail conftest.undefs
7622 done
7623 rm -f conftest.undefs
7624
7625 cat >>$CONFIG_STATUS <<\_ACEOF
7626 # Let's still pretend it is `configure' which instantiates (i.e., don't
7627 # use $as_me), people would be surprised to read:
7628 # /* config.h. Generated by config.status. */
7629 if test x"$ac_file" = x-; then
7630 echo "/* Generated by configure. */" >$tmp/config.h
7631 else
7632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7633 fi
7634 cat $tmp/in >>$tmp/config.h
7635 rm -f $tmp/in
7636 if test x"$ac_file" != x-; then
7637 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7639 echo "$as_me: $ac_file is unchanged" >&6;}
7640 else
7641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7643 X"$ac_file" : 'X\(//\)[^/]' \| \
7644 X"$ac_file" : 'X\(//\)$' \| \
7645 X"$ac_file" : 'X\(/\)' \| \
7646 . : '\(.\)' 2>/dev/null ||
7647 echo X"$ac_file" |
7648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7650 /^X\(\/\/\)$/{ s//\1/; q; }
7651 /^X\(\/\).*/{ s//\1/; q; }
7652 s/.*/./; q'`
7653 { if $as_mkdir_p; then
7654 mkdir -p "$ac_dir"
7655 else
7656 as_dir="$ac_dir"
7657 as_dirs=
7658 while test ! -d "$as_dir"; do
7659 as_dirs="$as_dir $as_dirs"
7660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7662 X"$as_dir" : 'X\(//\)[^/]' \| \
7663 X"$as_dir" : 'X\(//\)$' \| \
7664 X"$as_dir" : 'X\(/\)' \| \
7665 . : '\(.\)' 2>/dev/null ||
7666 echo X"$as_dir" |
7667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7669 /^X\(\/\/\)$/{ s//\1/; q; }
7670 /^X\(\/\).*/{ s//\1/; q; }
7671 s/.*/./; q'`
7672 done
7673 test ! -n "$as_dirs" || mkdir $as_dirs
7674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7676 { (exit 1); exit 1; }; }; }
7677
7678 rm -f $ac_file
7679 mv $tmp/config.h $ac_file
7680 fi
7681 else
7682 cat $tmp/config.h
7683 rm -f $tmp/config.h
7684 fi
7685 done
7686 _ACEOF
7687
7688 cat >>$CONFIG_STATUS <<\_ACEOF
7689
7690 { (exit 0); exit 0; }
7691 _ACEOF
7692 chmod +x $CONFIG_STATUS
7693 ac_clean_files=$ac_clean_files_save
7694
7695
7696 # configure is writing to config.log, and then calls config.status.
7697 # config.status does its own redirection, appending to config.log.
7698 # Unfortunately, on DOS this fails, as config.log is still kept open
7699 # by configure, so config.status won't be able to write to it; its
7700 # output is simply discarded. So we exec the FD to /dev/null,
7701 # effectively closing config.log, so it can be properly (re)opened and
7702 # appended to by config.status. When coming back to configure, we
7703 # need to make the FD available again.
7704 if test "$no_create" != yes; then
7705 ac_cs_success=:
7706 ac_config_status_args=
7707 test "$silent" = yes &&
7708 ac_config_status_args="$ac_config_status_args --quiet"
7709 exec 5>/dev/null
7710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7711 exec 5>>config.log
7712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7713 # would make configure fail if this is the last instruction.
7714 $ac_cs_success || { (exit 1); exit 1; }
7715 fi
7716
7717
7718 if test -f .devel ; then
7719 make depend
7720 fi
7721 exit 0