configure revision 1.1 1 1.1 christos #! /bin/sh
2 1.1 christos # From configure.in Revision: 1.204 .
3 1.1 christos # Guess values for system-dependent variables and create Makefiles.
4 1.1 christos # Generated by GNU Autoconf 2.61.
5 1.1 christos #
6 1.1 christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 1.1 christos # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 1.1 christos # This configure script is free software; the Free Software Foundation
9 1.1 christos # gives unlimited permission to copy, distribute and modify it.
10 1.1 christos ## --------------------- ##
11 1.1 christos ## M4sh Initialization. ##
12 1.1 christos ## --------------------- ##
13 1.1 christos
14 1.1 christos # Be more Bourne compatible
15 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
16 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 1.1 christos emulate sh
18 1.1 christos NULLCMD=:
19 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 1.1 christos # is contrary to our usage. Disable this feature.
21 1.1 christos alias -g '${1+"$@"}'='"$@"'
22 1.1 christos setopt NO_GLOB_SUBST
23 1.1 christos else
24 1.1 christos case `(set -o) 2>/dev/null` in
25 1.1 christos *posix*) set -o posix ;;
26 1.1 christos esac
27 1.1 christos
28 1.1 christos fi
29 1.1 christos
30 1.1 christos
31 1.1 christos
32 1.1 christos
33 1.1 christos # PATH needs CR
34 1.1 christos # Avoid depending upon Character Ranges.
35 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 1.1 christos as_cr_digits='0123456789'
39 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
40 1.1 christos
41 1.1 christos # The user is always right.
42 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
43 1.1 christos echo "#! /bin/sh" >conf$$.sh
44 1.1 christos echo "exit 0" >>conf$$.sh
45 1.1 christos chmod +x conf$$.sh
46 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 1.1 christos PATH_SEPARATOR=';'
48 1.1 christos else
49 1.1 christos PATH_SEPARATOR=:
50 1.1 christos fi
51 1.1 christos rm -f conf$$.sh
52 1.1 christos fi
53 1.1 christos
54 1.1 christos # Support unset when possible.
55 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 1.1 christos as_unset=unset
57 1.1 christos else
58 1.1 christos as_unset=false
59 1.1 christos fi
60 1.1 christos
61 1.1 christos
62 1.1 christos # IFS
63 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
64 1.1 christos # there to prevent editors from complaining about space-tab.
65 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 1.1 christos # splitting by setting IFS to empty value.)
67 1.1 christos as_nl='
68 1.1 christos '
69 1.1 christos IFS=" "" $as_nl"
70 1.1 christos
71 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
72 1.1 christos case $0 in
73 1.1 christos *[\\/]* ) as_myself=$0 ;;
74 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 1.1 christos for as_dir in $PATH
76 1.1 christos do
77 1.1 christos IFS=$as_save_IFS
78 1.1 christos test -z "$as_dir" && as_dir=.
79 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 1.1 christos done
81 1.1 christos IFS=$as_save_IFS
82 1.1 christos
83 1.1 christos ;;
84 1.1 christos esac
85 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
86 1.1 christos # in which case we are not to be found in the path.
87 1.1 christos if test "x$as_myself" = x; then
88 1.1 christos as_myself=$0
89 1.1 christos fi
90 1.1 christos if test ! -f "$as_myself"; then
91 1.1 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 1.1 christos { (exit 1); exit 1; }
93 1.1 christos fi
94 1.1 christos
95 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
96 1.1 christos for as_var in ENV MAIL MAILPATH
97 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 1.1 christos done
99 1.1 christos PS1='$ '
100 1.1 christos PS2='> '
101 1.1 christos PS4='+ '
102 1.1 christos
103 1.1 christos # NLS nuisances.
104 1.1 christos for as_var in \
105 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 1.1 christos LC_TELEPHONE LC_TIME
108 1.1 christos do
109 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 1.1 christos eval $as_var=C; export $as_var
111 1.1 christos else
112 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 1.1 christos fi
114 1.1 christos done
115 1.1 christos
116 1.1 christos # Required to use basename.
117 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
118 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 1.1 christos as_expr=expr
120 1.1 christos else
121 1.1 christos as_expr=false
122 1.1 christos fi
123 1.1 christos
124 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 1.1 christos as_basename=basename
126 1.1 christos else
127 1.1 christos as_basename=false
128 1.1 christos fi
129 1.1 christos
130 1.1 christos
131 1.1 christos # Name of the executable.
132 1.1 christos as_me=`$as_basename -- "$0" ||
133 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 1.1 christos X"$0" : 'X\(//\)$' \| \
135 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 1.1 christos echo X/"$0" |
137 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
138 1.1 christos s//\1/
139 1.1 christos q
140 1.1 christos }
141 1.1 christos /^X\/\(\/\/\)$/{
142 1.1 christos s//\1/
143 1.1 christos q
144 1.1 christos }
145 1.1 christos /^X\/\(\/\).*/{
146 1.1 christos s//\1/
147 1.1 christos q
148 1.1 christos }
149 1.1 christos s/.*/./; q'`
150 1.1 christos
151 1.1 christos # CDPATH.
152 1.1 christos $as_unset CDPATH
153 1.1 christos
154 1.1 christos
155 1.1 christos if test "x$CONFIG_SHELL" = x; then
156 1.1 christos if (eval ":") 2>/dev/null; then
157 1.1 christos as_have_required=yes
158 1.1 christos else
159 1.1 christos as_have_required=no
160 1.1 christos fi
161 1.1 christos
162 1.1 christos if test $as_have_required = yes && (eval ":
163 1.1 christos (as_func_return () {
164 1.1 christos (exit \$1)
165 1.1 christos }
166 1.1 christos as_func_success () {
167 1.1 christos as_func_return 0
168 1.1 christos }
169 1.1 christos as_func_failure () {
170 1.1 christos as_func_return 1
171 1.1 christos }
172 1.1 christos as_func_ret_success () {
173 1.1 christos return 0
174 1.1 christos }
175 1.1 christos as_func_ret_failure () {
176 1.1 christos return 1
177 1.1 christos }
178 1.1 christos
179 1.1 christos exitcode=0
180 1.1 christos if as_func_success; then
181 1.1 christos :
182 1.1 christos else
183 1.1 christos exitcode=1
184 1.1 christos echo as_func_success failed.
185 1.1 christos fi
186 1.1 christos
187 1.1 christos if as_func_failure; then
188 1.1 christos exitcode=1
189 1.1 christos echo as_func_failure succeeded.
190 1.1 christos fi
191 1.1 christos
192 1.1 christos if as_func_ret_success; then
193 1.1 christos :
194 1.1 christos else
195 1.1 christos exitcode=1
196 1.1 christos echo as_func_ret_success failed.
197 1.1 christos fi
198 1.1 christos
199 1.1 christos if as_func_ret_failure; then
200 1.1 christos exitcode=1
201 1.1 christos echo as_func_ret_failure succeeded.
202 1.1 christos fi
203 1.1 christos
204 1.1 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 1.1 christos :
206 1.1 christos else
207 1.1 christos exitcode=1
208 1.1 christos echo positional parameters were not saved.
209 1.1 christos fi
210 1.1 christos
211 1.1 christos test \$exitcode = 0) || { (exit 1); exit 1; }
212 1.1 christos
213 1.1 christos (
214 1.1 christos as_lineno_1=\$LINENO
215 1.1 christos as_lineno_2=\$LINENO
216 1.1 christos test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 1.1 christos test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 1.1 christos ") 2> /dev/null; then
219 1.1 christos :
220 1.1 christos else
221 1.1 christos as_candidate_shells=
222 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 1.1 christos do
225 1.1 christos IFS=$as_save_IFS
226 1.1 christos test -z "$as_dir" && as_dir=.
227 1.1 christos case $as_dir in
228 1.1 christos /*)
229 1.1 christos for as_base in sh bash ksh sh5; do
230 1.1 christos as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 1.1 christos done;;
232 1.1 christos esac
233 1.1 christos done
234 1.1 christos IFS=$as_save_IFS
235 1.1 christos
236 1.1 christos
237 1.1 christos for as_shell in $as_candidate_shells $SHELL; do
238 1.1 christos # Try only shells that exist, to save several forks.
239 1.1 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 1.1 christos { ("$as_shell") 2> /dev/null <<\_ASEOF
241 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 1.1 christos emulate sh
243 1.1 christos NULLCMD=:
244 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 1.1 christos # is contrary to our usage. Disable this feature.
246 1.1 christos alias -g '${1+"$@"}'='"$@"'
247 1.1 christos setopt NO_GLOB_SUBST
248 1.1 christos else
249 1.1 christos case `(set -o) 2>/dev/null` in
250 1.1 christos *posix*) set -o posix ;;
251 1.1 christos esac
252 1.1 christos
253 1.1 christos fi
254 1.1 christos
255 1.1 christos
256 1.1 christos :
257 1.1 christos _ASEOF
258 1.1 christos }; then
259 1.1 christos CONFIG_SHELL=$as_shell
260 1.1 christos as_have_required=yes
261 1.1 christos if { "$as_shell" 2> /dev/null <<\_ASEOF
262 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 1.1 christos emulate sh
264 1.1 christos NULLCMD=:
265 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 1.1 christos # is contrary to our usage. Disable this feature.
267 1.1 christos alias -g '${1+"$@"}'='"$@"'
268 1.1 christos setopt NO_GLOB_SUBST
269 1.1 christos else
270 1.1 christos case `(set -o) 2>/dev/null` in
271 1.1 christos *posix*) set -o posix ;;
272 1.1 christos esac
273 1.1 christos
274 1.1 christos fi
275 1.1 christos
276 1.1 christos
277 1.1 christos :
278 1.1 christos (as_func_return () {
279 1.1 christos (exit $1)
280 1.1 christos }
281 1.1 christos as_func_success () {
282 1.1 christos as_func_return 0
283 1.1 christos }
284 1.1 christos as_func_failure () {
285 1.1 christos as_func_return 1
286 1.1 christos }
287 1.1 christos as_func_ret_success () {
288 1.1 christos return 0
289 1.1 christos }
290 1.1 christos as_func_ret_failure () {
291 1.1 christos return 1
292 1.1 christos }
293 1.1 christos
294 1.1 christos exitcode=0
295 1.1 christos if as_func_success; then
296 1.1 christos :
297 1.1 christos else
298 1.1 christos exitcode=1
299 1.1 christos echo as_func_success failed.
300 1.1 christos fi
301 1.1 christos
302 1.1 christos if as_func_failure; then
303 1.1 christos exitcode=1
304 1.1 christos echo as_func_failure succeeded.
305 1.1 christos fi
306 1.1 christos
307 1.1 christos if as_func_ret_success; then
308 1.1 christos :
309 1.1 christos else
310 1.1 christos exitcode=1
311 1.1 christos echo as_func_ret_success failed.
312 1.1 christos fi
313 1.1 christos
314 1.1 christos if as_func_ret_failure; then
315 1.1 christos exitcode=1
316 1.1 christos echo as_func_ret_failure succeeded.
317 1.1 christos fi
318 1.1 christos
319 1.1 christos if ( set x; as_func_ret_success y && test x = "$1" ); then
320 1.1 christos :
321 1.1 christos else
322 1.1 christos exitcode=1
323 1.1 christos echo positional parameters were not saved.
324 1.1 christos fi
325 1.1 christos
326 1.1 christos test $exitcode = 0) || { (exit 1); exit 1; }
327 1.1 christos
328 1.1 christos (
329 1.1 christos as_lineno_1=$LINENO
330 1.1 christos as_lineno_2=$LINENO
331 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
332 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 1.1 christos
334 1.1 christos _ASEOF
335 1.1 christos }; then
336 1.1 christos break
337 1.1 christos fi
338 1.1 christos
339 1.1 christos fi
340 1.1 christos
341 1.1 christos done
342 1.1 christos
343 1.1 christos if test "x$CONFIG_SHELL" != x; then
344 1.1 christos for as_var in BASH_ENV ENV
345 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 1.1 christos done
347 1.1 christos export CONFIG_SHELL
348 1.1 christos exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 1.1 christos fi
350 1.1 christos
351 1.1 christos
352 1.1 christos if test $as_have_required = no; then
353 1.1 christos echo This script requires a shell more modern than all the
354 1.1 christos echo shells that I found on your system. Please install a
355 1.1 christos echo modern shell, or manually run the script under such a
356 1.1 christos echo shell if you do have one.
357 1.1 christos { (exit 1); exit 1; }
358 1.1 christos fi
359 1.1 christos
360 1.1 christos
361 1.1 christos fi
362 1.1 christos
363 1.1 christos fi
364 1.1 christos
365 1.1 christos
366 1.1 christos
367 1.1 christos (eval "as_func_return () {
368 1.1 christos (exit \$1)
369 1.1 christos }
370 1.1 christos as_func_success () {
371 1.1 christos as_func_return 0
372 1.1 christos }
373 1.1 christos as_func_failure () {
374 1.1 christos as_func_return 1
375 1.1 christos }
376 1.1 christos as_func_ret_success () {
377 1.1 christos return 0
378 1.1 christos }
379 1.1 christos as_func_ret_failure () {
380 1.1 christos return 1
381 1.1 christos }
382 1.1 christos
383 1.1 christos exitcode=0
384 1.1 christos if as_func_success; then
385 1.1 christos :
386 1.1 christos else
387 1.1 christos exitcode=1
388 1.1 christos echo as_func_success failed.
389 1.1 christos fi
390 1.1 christos
391 1.1 christos if as_func_failure; then
392 1.1 christos exitcode=1
393 1.1 christos echo as_func_failure succeeded.
394 1.1 christos fi
395 1.1 christos
396 1.1 christos if as_func_ret_success; then
397 1.1 christos :
398 1.1 christos else
399 1.1 christos exitcode=1
400 1.1 christos echo as_func_ret_success failed.
401 1.1 christos fi
402 1.1 christos
403 1.1 christos if as_func_ret_failure; then
404 1.1 christos exitcode=1
405 1.1 christos echo as_func_ret_failure succeeded.
406 1.1 christos fi
407 1.1 christos
408 1.1 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 1.1 christos :
410 1.1 christos else
411 1.1 christos exitcode=1
412 1.1 christos echo positional parameters were not saved.
413 1.1 christos fi
414 1.1 christos
415 1.1 christos test \$exitcode = 0") || {
416 1.1 christos echo No shell found that supports shell functions.
417 1.1 christos echo Please tell autoconf@gnu.org about your system,
418 1.1 christos echo including any error possibly output before this
419 1.1 christos echo message
420 1.1 christos }
421 1.1 christos
422 1.1 christos
423 1.1 christos
424 1.1 christos as_lineno_1=$LINENO
425 1.1 christos as_lineno_2=$LINENO
426 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
427 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 1.1 christos
429 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
431 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
432 1.1 christos # does the real work. The second script uses 'N' to pair each
433 1.1 christos # line-number line with the line containing $LINENO, and appends
434 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
435 1.1 christos # case at line end.
436 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
438 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
439 1.1 christos sed -n '
440 1.1 christos p
441 1.1 christos /[$]LINENO/=
442 1.1 christos ' <$as_myself |
443 1.1 christos sed '
444 1.1 christos s/[$]LINENO.*/&-/
445 1.1 christos t lineno
446 1.1 christos b
447 1.1 christos :lineno
448 1.1 christos N
449 1.1 christos :loop
450 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 1.1 christos t loop
452 1.1 christos s/-\n.*//
453 1.1 christos ' >$as_me.lineno &&
454 1.1 christos chmod +x "$as_me.lineno" ||
455 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 1.1 christos { (exit 1); exit 1; }; }
457 1.1 christos
458 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
459 1.1 christos # (the dirname of $[0] is not the place where we might find the
460 1.1 christos # original and so on. Autoconf is especially sensitive to this).
461 1.1 christos . "./$as_me.lineno"
462 1.1 christos # Exit status is that of the last command.
463 1.1 christos exit
464 1.1 christos }
465 1.1 christos
466 1.1 christos
467 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 1.1 christos as_dirname=dirname
469 1.1 christos else
470 1.1 christos as_dirname=false
471 1.1 christos fi
472 1.1 christos
473 1.1 christos ECHO_C= ECHO_N= ECHO_T=
474 1.1 christos case `echo -n x` in
475 1.1 christos -n*)
476 1.1 christos case `echo 'x\c'` in
477 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 1.1 christos *) ECHO_C='\c';;
479 1.1 christos esac;;
480 1.1 christos *)
481 1.1 christos ECHO_N='-n';;
482 1.1 christos esac
483 1.1 christos
484 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
485 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 1.1 christos as_expr=expr
487 1.1 christos else
488 1.1 christos as_expr=false
489 1.1 christos fi
490 1.1 christos
491 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
492 1.1 christos if test -d conf$$.dir; then
493 1.1 christos rm -f conf$$.dir/conf$$.file
494 1.1 christos else
495 1.1 christos rm -f conf$$.dir
496 1.1 christos mkdir conf$$.dir
497 1.1 christos fi
498 1.1 christos echo >conf$$.file
499 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
500 1.1 christos as_ln_s='ln -s'
501 1.1 christos # ... but there are two gotchas:
502 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 1.1 christos # In both cases, we have to default to `cp -p'.
505 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 1.1 christos as_ln_s='cp -p'
507 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
508 1.1 christos as_ln_s=ln
509 1.1 christos else
510 1.1 christos as_ln_s='cp -p'
511 1.1 christos fi
512 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 1.1 christos rmdir conf$$.dir 2>/dev/null
514 1.1 christos
515 1.1 christos if mkdir -p . 2>/dev/null; then
516 1.1 christos as_mkdir_p=:
517 1.1 christos else
518 1.1 christos test -d ./-p && rmdir ./-p
519 1.1 christos as_mkdir_p=false
520 1.1 christos fi
521 1.1 christos
522 1.1 christos if test -x / >/dev/null 2>&1; then
523 1.1 christos as_test_x='test -x'
524 1.1 christos else
525 1.1 christos if ls -dL / >/dev/null 2>&1; then
526 1.1 christos as_ls_L_option=L
527 1.1 christos else
528 1.1 christos as_ls_L_option=
529 1.1 christos fi
530 1.1 christos as_test_x='
531 1.1 christos eval sh -c '\''
532 1.1 christos if test -d "$1"; then
533 1.1 christos test -d "$1/.";
534 1.1 christos else
535 1.1 christos case $1 in
536 1.1 christos -*)set "./$1";;
537 1.1 christos esac;
538 1.1 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 1.1 christos ???[sx]*):;;*)false;;esac;fi
540 1.1 christos '\'' sh
541 1.1 christos '
542 1.1 christos fi
543 1.1 christos as_executable_p=$as_test_x
544 1.1 christos
545 1.1 christos # Sed expression to map a string onto a valid CPP name.
546 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 1.1 christos
548 1.1 christos # Sed expression to map a string onto a valid variable name.
549 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550 1.1 christos
551 1.1 christos
552 1.1 christos
553 1.1 christos exec 7<&0 </dev/null 6>&1
554 1.1 christos
555 1.1 christos # Name of the host.
556 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 1.1 christos # so uname gets run too.
558 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 1.1 christos
560 1.1 christos #
561 1.1 christos # Initializations.
562 1.1 christos #
563 1.1 christos ac_default_prefix=/usr/local
564 1.1 christos ac_clean_files=
565 1.1 christos ac_config_libobj_dir=.
566 1.1 christos LIBOBJS=
567 1.1 christos cross_compiling=no
568 1.1 christos subdirs=
569 1.1 christos MFLAGS=
570 1.1 christos MAKEFLAGS=
571 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh}
572 1.1 christos
573 1.1 christos # Identity of this package.
574 1.1 christos PACKAGE_NAME=
575 1.1 christos PACKAGE_TARNAME=
576 1.1 christos PACKAGE_VERSION=
577 1.1 christos PACKAGE_STRING=
578 1.1 christos PACKAGE_BUGREPORT=
579 1.1 christos
580 1.1 christos ac_unique_file="tcpdump.c"
581 1.1 christos # Factoring default headers for most tests.
582 1.1 christos ac_includes_default="\
583 1.1 christos #include <stdio.h>
584 1.1 christos #ifdef HAVE_SYS_TYPES_H
585 1.1 christos # include <sys/types.h>
586 1.1 christos #endif
587 1.1 christos #ifdef HAVE_SYS_STAT_H
588 1.1 christos # include <sys/stat.h>
589 1.1 christos #endif
590 1.1 christos #ifdef STDC_HEADERS
591 1.1 christos # include <stdlib.h>
592 1.1 christos # include <stddef.h>
593 1.1 christos #else
594 1.1 christos # ifdef HAVE_STDLIB_H
595 1.1 christos # include <stdlib.h>
596 1.1 christos # endif
597 1.1 christos #endif
598 1.1 christos #ifdef HAVE_STRING_H
599 1.1 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 1.1 christos # include <memory.h>
601 1.1 christos # endif
602 1.1 christos # include <string.h>
603 1.1 christos #endif
604 1.1 christos #ifdef HAVE_STRINGS_H
605 1.1 christos # include <strings.h>
606 1.1 christos #endif
607 1.1 christos #ifdef HAVE_INTTYPES_H
608 1.1 christos # include <inttypes.h>
609 1.1 christos #endif
610 1.1 christos #ifdef HAVE_STDINT_H
611 1.1 christos # include <stdint.h>
612 1.1 christos #endif
613 1.1 christos #ifdef HAVE_UNISTD_H
614 1.1 christos # include <unistd.h>
615 1.1 christos #endif"
616 1.1 christos
617 1.1 christos ac_subst_vars='SHELL
618 1.1 christos PATH_SEPARATOR
619 1.1 christos PACKAGE_NAME
620 1.1 christos PACKAGE_TARNAME
621 1.1 christos PACKAGE_VERSION
622 1.1 christos PACKAGE_STRING
623 1.1 christos PACKAGE_BUGREPORT
624 1.1 christos exec_prefix
625 1.1 christos prefix
626 1.1 christos program_transform_name
627 1.1 christos bindir
628 1.1 christos sbindir
629 1.1 christos libexecdir
630 1.1 christos datarootdir
631 1.1 christos datadir
632 1.1 christos sysconfdir
633 1.1 christos sharedstatedir
634 1.1 christos localstatedir
635 1.1 christos includedir
636 1.1 christos oldincludedir
637 1.1 christos docdir
638 1.1 christos infodir
639 1.1 christos htmldir
640 1.1 christos dvidir
641 1.1 christos pdfdir
642 1.1 christos psdir
643 1.1 christos libdir
644 1.1 christos localedir
645 1.1 christos mandir
646 1.1 christos DEFS
647 1.1 christos ECHO_C
648 1.1 christos ECHO_N
649 1.1 christos ECHO_T
650 1.1 christos LIBS
651 1.1 christos build_alias
652 1.1 christos host_alias
653 1.1 christos target_alias
654 1.1 christos build
655 1.1 christos build_cpu
656 1.1 christos build_vendor
657 1.1 christos build_os
658 1.1 christos host
659 1.1 christos host_cpu
660 1.1 christos host_vendor
661 1.1 christos host_os
662 1.1 christos SHLICC2
663 1.1 christos CC
664 1.1 christos CFLAGS
665 1.1 christos LDFLAGS
666 1.1 christos CPPFLAGS
667 1.1 christos ac_ct_CC
668 1.1 christos EXEEXT
669 1.1 christos OBJEXT
670 1.1 christos CPP
671 1.1 christos GREP
672 1.1 christos EGREP
673 1.1 christos LIBOBJS
674 1.1 christos PCAP_CONFIG
675 1.1 christos RANLIB
676 1.1 christos V_CCOPT
677 1.1 christos V_DEFS
678 1.1 christos V_GROUP
679 1.1 christos V_INCLS
680 1.1 christos V_PCAPDEP
681 1.1 christos LOCALSRC
682 1.1 christos MAN_FILE_FORMATS
683 1.1 christos MAN_MISC_INFO
684 1.1 christos INSTALL_PROGRAM
685 1.1 christos INSTALL_SCRIPT
686 1.1 christos INSTALL_DATA
687 1.1 christos LTLIBOBJS'
688 1.1 christos ac_subst_files=''
689 1.1 christos ac_precious_vars='build_alias
690 1.1 christos host_alias
691 1.1 christos target_alias
692 1.1 christos CC
693 1.1 christos CFLAGS
694 1.1 christos LDFLAGS
695 1.1 christos LIBS
696 1.1 christos CPPFLAGS
697 1.1 christos CPP'
698 1.1 christos
699 1.1 christos
700 1.1 christos # Initialize some variables set by options.
701 1.1 christos ac_init_help=
702 1.1 christos ac_init_version=false
703 1.1 christos # The variables have the same names as the options, with
704 1.1 christos # dashes changed to underlines.
705 1.1 christos cache_file=/dev/null
706 1.1 christos exec_prefix=NONE
707 1.1 christos no_create=
708 1.1 christos no_recursion=
709 1.1 christos prefix=NONE
710 1.1 christos program_prefix=NONE
711 1.1 christos program_suffix=NONE
712 1.1 christos program_transform_name=s,x,x,
713 1.1 christos silent=
714 1.1 christos site=
715 1.1 christos srcdir=
716 1.1 christos verbose=
717 1.1 christos x_includes=NONE
718 1.1 christos x_libraries=NONE
719 1.1 christos
720 1.1 christos # Installation directory options.
721 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
722 1.1 christos # and all the variables that are supposed to be based on exec_prefix
723 1.1 christos # by default will actually change.
724 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
725 1.1 christos # (The list follows the same order as the GNU Coding Standards.)
726 1.1 christos bindir='${exec_prefix}/bin'
727 1.1 christos sbindir='${exec_prefix}/sbin'
728 1.1 christos libexecdir='${exec_prefix}/libexec'
729 1.1 christos datarootdir='${prefix}/share'
730 1.1 christos datadir='${datarootdir}'
731 1.1 christos sysconfdir='${prefix}/etc'
732 1.1 christos sharedstatedir='${prefix}/com'
733 1.1 christos localstatedir='${prefix}/var'
734 1.1 christos includedir='${prefix}/include'
735 1.1 christos oldincludedir='/usr/include'
736 1.1 christos docdir='${datarootdir}/doc/${PACKAGE}'
737 1.1 christos infodir='${datarootdir}/info'
738 1.1 christos htmldir='${docdir}'
739 1.1 christos dvidir='${docdir}'
740 1.1 christos pdfdir='${docdir}'
741 1.1 christos psdir='${docdir}'
742 1.1 christos libdir='${exec_prefix}/lib'
743 1.1 christos localedir='${datarootdir}/locale'
744 1.1 christos mandir='${datarootdir}/man'
745 1.1 christos
746 1.1 christos ac_prev=
747 1.1 christos ac_dashdash=
748 1.1 christos for ac_option
749 1.1 christos do
750 1.1 christos # If the previous option needs an argument, assign it.
751 1.1 christos if test -n "$ac_prev"; then
752 1.1 christos eval $ac_prev=\$ac_option
753 1.1 christos ac_prev=
754 1.1 christos continue
755 1.1 christos fi
756 1.1 christos
757 1.1 christos case $ac_option in
758 1.1 christos *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 1.1 christos *) ac_optarg=yes ;;
760 1.1 christos esac
761 1.1 christos
762 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
763 1.1 christos
764 1.1 christos case $ac_dashdash$ac_option in
765 1.1 christos --)
766 1.1 christos ac_dashdash=yes ;;
767 1.1 christos
768 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 1.1 christos ac_prev=bindir ;;
770 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 1.1 christos bindir=$ac_optarg ;;
772 1.1 christos
773 1.1 christos -build | --build | --buil | --bui | --bu)
774 1.1 christos ac_prev=build_alias ;;
775 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776 1.1 christos build_alias=$ac_optarg ;;
777 1.1 christos
778 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
779 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780 1.1 christos ac_prev=cache_file ;;
781 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783 1.1 christos cache_file=$ac_optarg ;;
784 1.1 christos
785 1.1 christos --config-cache | -C)
786 1.1 christos cache_file=config.cache ;;
787 1.1 christos
788 1.1 christos -datadir | --datadir | --datadi | --datad)
789 1.1 christos ac_prev=datadir ;;
790 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
791 1.1 christos datadir=$ac_optarg ;;
792 1.1 christos
793 1.1 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794 1.1 christos | --dataroo | --dataro | --datar)
795 1.1 christos ac_prev=datarootdir ;;
796 1.1 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797 1.1 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798 1.1 christos datarootdir=$ac_optarg ;;
799 1.1 christos
800 1.1 christos -disable-* | --disable-*)
801 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 1.1 christos # Reject names that are not valid shell variable names.
803 1.1 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 1.1 christos { (exit 1); exit 1; }; }
806 1.1 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807 1.1 christos eval enable_$ac_feature=no ;;
808 1.1 christos
809 1.1 christos -docdir | --docdir | --docdi | --doc | --do)
810 1.1 christos ac_prev=docdir ;;
811 1.1 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 1.1 christos docdir=$ac_optarg ;;
813 1.1 christos
814 1.1 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 1.1 christos ac_prev=dvidir ;;
816 1.1 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 1.1 christos dvidir=$ac_optarg ;;
818 1.1 christos
819 1.1 christos -enable-* | --enable-*)
820 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 1.1 christos # Reject names that are not valid shell variable names.
822 1.1 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 1.1 christos { (exit 1); exit 1; }; }
825 1.1 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 1.1 christos eval enable_$ac_feature=\$ac_optarg ;;
827 1.1 christos
828 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830 1.1 christos | --exec | --exe | --ex)
831 1.1 christos ac_prev=exec_prefix ;;
832 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834 1.1 christos | --exec=* | --exe=* | --ex=*)
835 1.1 christos exec_prefix=$ac_optarg ;;
836 1.1 christos
837 1.1 christos -gas | --gas | --ga | --g)
838 1.1 christos # Obsolete; use --with-gas.
839 1.1 christos with_gas=yes ;;
840 1.1 christos
841 1.1 christos -help | --help | --hel | --he | -h)
842 1.1 christos ac_init_help=long ;;
843 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844 1.1 christos ac_init_help=recursive ;;
845 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846 1.1 christos ac_init_help=short ;;
847 1.1 christos
848 1.1 christos -host | --host | --hos | --ho)
849 1.1 christos ac_prev=host_alias ;;
850 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
851 1.1 christos host_alias=$ac_optarg ;;
852 1.1 christos
853 1.1 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854 1.1 christos ac_prev=htmldir ;;
855 1.1 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856 1.1 christos | --ht=*)
857 1.1 christos htmldir=$ac_optarg ;;
858 1.1 christos
859 1.1 christos -includedir | --includedir | --includedi | --included | --include \
860 1.1 christos | --includ | --inclu | --incl | --inc)
861 1.1 christos ac_prev=includedir ;;
862 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
864 1.1 christos includedir=$ac_optarg ;;
865 1.1 christos
866 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
867 1.1 christos ac_prev=infodir ;;
868 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869 1.1 christos infodir=$ac_optarg ;;
870 1.1 christos
871 1.1 christos -libdir | --libdir | --libdi | --libd)
872 1.1 christos ac_prev=libdir ;;
873 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 1.1 christos libdir=$ac_optarg ;;
875 1.1 christos
876 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877 1.1 christos | --libexe | --libex | --libe)
878 1.1 christos ac_prev=libexecdir ;;
879 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880 1.1 christos | --libexe=* | --libex=* | --libe=*)
881 1.1 christos libexecdir=$ac_optarg ;;
882 1.1 christos
883 1.1 christos -localedir | --localedir | --localedi | --localed | --locale)
884 1.1 christos ac_prev=localedir ;;
885 1.1 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886 1.1 christos localedir=$ac_optarg ;;
887 1.1 christos
888 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
889 1.1 christos | --localstate | --localstat | --localsta | --localst | --locals)
890 1.1 christos ac_prev=localstatedir ;;
891 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893 1.1 christos localstatedir=$ac_optarg ;;
894 1.1 christos
895 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896 1.1 christos ac_prev=mandir ;;
897 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 1.1 christos mandir=$ac_optarg ;;
899 1.1 christos
900 1.1 christos -nfp | --nfp | --nf)
901 1.1 christos # Obsolete; use --without-fp.
902 1.1 christos with_fp=no ;;
903 1.1 christos
904 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905 1.1 christos | --no-cr | --no-c | -n)
906 1.1 christos no_create=yes ;;
907 1.1 christos
908 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 1.1 christos no_recursion=yes ;;
911 1.1 christos
912 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914 1.1 christos | --oldin | --oldi | --old | --ol | --o)
915 1.1 christos ac_prev=oldincludedir ;;
916 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919 1.1 christos oldincludedir=$ac_optarg ;;
920 1.1 christos
921 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922 1.1 christos ac_prev=prefix ;;
923 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 1.1 christos prefix=$ac_optarg ;;
925 1.1 christos
926 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
927 1.1 christos | --program-pre | --program-pr | --program-p)
928 1.1 christos ac_prev=program_prefix ;;
929 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
930 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931 1.1 christos program_prefix=$ac_optarg ;;
932 1.1 christos
933 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
934 1.1 christos | --program-suf | --program-su | --program-s)
935 1.1 christos ac_prev=program_suffix ;;
936 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
937 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938 1.1 christos program_suffix=$ac_optarg ;;
939 1.1 christos
940 1.1 christos -program-transform-name | --program-transform-name \
941 1.1 christos | --program-transform-nam | --program-transform-na \
942 1.1 christos | --program-transform-n | --program-transform- \
943 1.1 christos | --program-transform | --program-transfor \
944 1.1 christos | --program-transfo | --program-transf \
945 1.1 christos | --program-trans | --program-tran \
946 1.1 christos | --progr-tra | --program-tr | --program-t)
947 1.1 christos ac_prev=program_transform_name ;;
948 1.1 christos -program-transform-name=* | --program-transform-name=* \
949 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
950 1.1 christos | --program-transform-n=* | --program-transform-=* \
951 1.1 christos | --program-transform=* | --program-transfor=* \
952 1.1 christos | --program-transfo=* | --program-transf=* \
953 1.1 christos | --program-trans=* | --program-tran=* \
954 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
955 1.1 christos program_transform_name=$ac_optarg ;;
956 1.1 christos
957 1.1 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958 1.1 christos ac_prev=pdfdir ;;
959 1.1 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 1.1 christos pdfdir=$ac_optarg ;;
961 1.1 christos
962 1.1 christos -psdir | --psdir | --psdi | --psd | --ps)
963 1.1 christos ac_prev=psdir ;;
964 1.1 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 1.1 christos psdir=$ac_optarg ;;
966 1.1 christos
967 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968 1.1 christos | -silent | --silent | --silen | --sile | --sil)
969 1.1 christos silent=yes ;;
970 1.1 christos
971 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972 1.1 christos ac_prev=sbindir ;;
973 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974 1.1 christos | --sbi=* | --sb=*)
975 1.1 christos sbindir=$ac_optarg ;;
976 1.1 christos
977 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
978 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
980 1.1 christos | --sha | --sh)
981 1.1 christos ac_prev=sharedstatedir ;;
982 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985 1.1 christos | --sha=* | --sh=*)
986 1.1 christos sharedstatedir=$ac_optarg ;;
987 1.1 christos
988 1.1 christos -site | --site | --sit)
989 1.1 christos ac_prev=site ;;
990 1.1 christos -site=* | --site=* | --sit=*)
991 1.1 christos site=$ac_optarg ;;
992 1.1 christos
993 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994 1.1 christos ac_prev=srcdir ;;
995 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 1.1 christos srcdir=$ac_optarg ;;
997 1.1 christos
998 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
1000 1.1 christos ac_prev=sysconfdir ;;
1001 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003 1.1 christos sysconfdir=$ac_optarg ;;
1004 1.1 christos
1005 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
1006 1.1 christos ac_prev=target_alias ;;
1007 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008 1.1 christos target_alias=$ac_optarg ;;
1009 1.1 christos
1010 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 1.1 christos verbose=yes ;;
1012 1.1 christos
1013 1.1 christos -version | --version | --versio | --versi | --vers | -V)
1014 1.1 christos ac_init_version=: ;;
1015 1.1 christos
1016 1.1 christos -with-* | --with-*)
1017 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 1.1 christos # Reject names that are not valid shell variable names.
1019 1.1 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 1.1 christos { (exit 1); exit 1; }; }
1022 1.1 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 1.1 christos eval with_$ac_package=\$ac_optarg ;;
1024 1.1 christos
1025 1.1 christos -without-* | --without-*)
1026 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 1.1 christos # Reject names that are not valid shell variable names.
1028 1.1 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 1.1 christos { (exit 1); exit 1; }; }
1031 1.1 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032 1.1 christos eval with_$ac_package=no ;;
1033 1.1 christos
1034 1.1 christos --x)
1035 1.1 christos # Obsolete; use --with-x.
1036 1.1 christos with_x=yes ;;
1037 1.1 christos
1038 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
1040 1.1 christos ac_prev=x_includes ;;
1041 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043 1.1 christos x_includes=$ac_optarg ;;
1044 1.1 christos
1045 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047 1.1 christos ac_prev=x_libraries ;;
1048 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050 1.1 christos x_libraries=$ac_optarg ;;
1051 1.1 christos
1052 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 1.1 christos Try \`$0 --help' for more information." >&2
1054 1.1 christos { (exit 1); exit 1; }; }
1055 1.1 christos ;;
1056 1.1 christos
1057 1.1 christos *=*)
1058 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 1.1 christos # Reject names that are not valid shell variable names.
1060 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 1.1 christos { (exit 1); exit 1; }; }
1063 1.1 christos eval $ac_envvar=\$ac_optarg
1064 1.1 christos export $ac_envvar ;;
1065 1.1 christos
1066 1.1 christos *)
1067 1.1 christos # FIXME: should be removed in autoconf 3.0.
1068 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 1.1 christos ;;
1073 1.1 christos
1074 1.1 christos esac
1075 1.1 christos done
1076 1.1 christos
1077 1.1 christos if test -n "$ac_prev"; then
1078 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2
1080 1.1 christos { (exit 1); exit 1; }; }
1081 1.1 christos fi
1082 1.1 christos
1083 1.1 christos # Be sure to have absolute directory names.
1084 1.1 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 1.1 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1086 1.1 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 1.1 christos libdir localedir mandir
1088 1.1 christos do
1089 1.1 christos eval ac_val=\$$ac_var
1090 1.1 christos case $ac_val in
1091 1.1 christos [\\/$]* | ?:[\\/]* ) continue;;
1092 1.1 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093 1.1 christos esac
1094 1.1 christos { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 1.1 christos { (exit 1); exit 1; }; }
1096 1.1 christos done
1097 1.1 christos
1098 1.1 christos # There might be people who depend on the old broken behavior: `$host'
1099 1.1 christos # used to hold the argument of --host etc.
1100 1.1 christos # FIXME: To remove some day.
1101 1.1 christos build=$build_alias
1102 1.1 christos host=$host_alias
1103 1.1 christos target=$target_alias
1104 1.1 christos
1105 1.1 christos # FIXME: To remove some day.
1106 1.1 christos if test "x$host_alias" != x; then
1107 1.1 christos if test "x$build_alias" = x; then
1108 1.1 christos cross_compiling=maybe
1109 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2
1111 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
1112 1.1 christos cross_compiling=yes
1113 1.1 christos fi
1114 1.1 christos fi
1115 1.1 christos
1116 1.1 christos ac_tool_prefix=
1117 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118 1.1 christos
1119 1.1 christos test "$silent" = yes && exec 6>/dev/null
1120 1.1 christos
1121 1.1 christos
1122 1.1 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 1.1 christos ac_ls_di=`ls -di .` &&
1124 1.1 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125 1.1 christos { echo "$as_me: error: Working directory cannot be determined" >&2
1126 1.1 christos { (exit 1); exit 1; }; }
1127 1.1 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 1.1 christos { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 1.1 christos { (exit 1); exit 1; }; }
1130 1.1 christos
1131 1.1 christos
1132 1.1 christos # Find the source files, if location was not specified.
1133 1.1 christos if test -z "$srcdir"; then
1134 1.1 christos ac_srcdir_defaulted=yes
1135 1.1 christos # Try the directory containing this script, then the parent directory.
1136 1.1 christos ac_confdir=`$as_dirname -- "$0" ||
1137 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 1.1 christos X"$0" : 'X\(//\)[^/]' \| \
1139 1.1 christos X"$0" : 'X\(//\)$' \| \
1140 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 1.1 christos echo X"$0" |
1142 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143 1.1 christos s//\1/
1144 1.1 christos q
1145 1.1 christos }
1146 1.1 christos /^X\(\/\/\)[^/].*/{
1147 1.1 christos s//\1/
1148 1.1 christos q
1149 1.1 christos }
1150 1.1 christos /^X\(\/\/\)$/{
1151 1.1 christos s//\1/
1152 1.1 christos q
1153 1.1 christos }
1154 1.1 christos /^X\(\/\).*/{
1155 1.1 christos s//\1/
1156 1.1 christos q
1157 1.1 christos }
1158 1.1 christos s/.*/./; q'`
1159 1.1 christos srcdir=$ac_confdir
1160 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1161 1.1 christos srcdir=..
1162 1.1 christos fi
1163 1.1 christos else
1164 1.1 christos ac_srcdir_defaulted=no
1165 1.1 christos fi
1166 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1167 1.1 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 1.1 christos { (exit 1); exit 1; }; }
1170 1.1 christos fi
1171 1.1 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 1.1 christos ac_abs_confdir=`(
1173 1.1 christos cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 1.1 christos { (exit 1); exit 1; }; }
1175 1.1 christos pwd)`
1176 1.1 christos # When building in place, set srcdir=.
1177 1.1 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 1.1 christos srcdir=.
1179 1.1 christos fi
1180 1.1 christos # Remove unnecessary trailing slashes from srcdir.
1181 1.1 christos # Double slashes in file names in object file debugging info
1182 1.1 christos # mess up M-x gdb in Emacs.
1183 1.1 christos case $srcdir in
1184 1.1 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 1.1 christos esac
1186 1.1 christos for ac_var in $ac_precious_vars; do
1187 1.1 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188 1.1 christos eval ac_env_${ac_var}_value=\$${ac_var}
1189 1.1 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190 1.1 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 1.1 christos done
1192 1.1 christos
1193 1.1 christos #
1194 1.1 christos # Report the --help message.
1195 1.1 christos #
1196 1.1 christos if test "$ac_init_help" = "long"; then
1197 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1198 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1199 1.1 christos cat <<_ACEOF
1200 1.1 christos \`configure' configures this package to adapt to many kinds of systems.
1201 1.1 christos
1202 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1203 1.1 christos
1204 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1206 1.1 christos
1207 1.1 christos Defaults for the options are specified in brackets.
1208 1.1 christos
1209 1.1 christos Configuration:
1210 1.1 christos -h, --help display this help and exit
1211 1.1 christos --help=short display options specific to this package
1212 1.1 christos --help=recursive display the short help of all the included packages
1213 1.1 christos -V, --version display version information and exit
1214 1.1 christos -q, --quiet, --silent do not print \`checking...' messages
1215 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1216 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1217 1.1 christos -n, --no-create do not create output files
1218 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219 1.1 christos
1220 1.1 christos Installation directories:
1221 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1222 1.1 christos [$ac_default_prefix]
1223 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1224 1.1 christos [PREFIX]
1225 1.1 christos
1226 1.1 christos By default, \`make install' will install all the files in
1227 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 1.1 christos for instance \`--prefix=\$HOME'.
1230 1.1 christos
1231 1.1 christos For better control, use the options below.
1232 1.1 christos
1233 1.1 christos Fine tuning of the installation directories:
1234 1.1 christos --bindir=DIR user executables [EPREFIX/bin]
1235 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1237 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib]
1241 1.1 christos --includedir=DIR C header files [PREFIX/include]
1242 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 1.1 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 1.1 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 1.1 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1246 1.1 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 1.1 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1248 1.1 christos --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 1.1 christos --htmldir=DIR html documentation [DOCDIR]
1250 1.1 christos --dvidir=DIR dvi documentation [DOCDIR]
1251 1.1 christos --pdfdir=DIR pdf documentation [DOCDIR]
1252 1.1 christos --psdir=DIR ps documentation [DOCDIR]
1253 1.1 christos _ACEOF
1254 1.1 christos
1255 1.1 christos cat <<\_ACEOF
1256 1.1 christos
1257 1.1 christos System types:
1258 1.1 christos --build=BUILD configure for building on BUILD [guessed]
1259 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD]
1260 1.1 christos _ACEOF
1261 1.1 christos fi
1262 1.1 christos
1263 1.1 christos if test -n "$ac_init_help"; then
1264 1.1 christos
1265 1.1 christos cat <<\_ACEOF
1266 1.1 christos
1267 1.1 christos Optional Features:
1268 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1269 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1270 1.1 christos --enable-smb enable possibly-buggy SMB printer default=yes
1271 1.1 christos --disable-smb disable possibly-buggy SMB printer
1272 1.1 christos --enable-ipv6 enable ipv6 (with ipv4) support
1273 1.1 christos --disable-ipv6 disable ipv6 support
1274 1.1 christos
1275 1.1 christos Optional Packages:
1276 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278 1.1 christos --without-gcc don't use gcc
1279 1.1 christos --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280 1.1 christos --without-smi don't link with libsmi
1281 1.1 christos --with-user=USERNAME drop privileges by default to USERNAME
1282 1.1 christos --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1283 1.1 christos --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1284 1.1 christos supplied). [default=yes, if available]
1285 1.1 christos
1286 1.1 christos Some influential environment variables:
1287 1.1 christos CC C compiler command
1288 1.1 christos CFLAGS C compiler flags
1289 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 1.1 christos nonstandard directory <lib dir>
1291 1.1 christos LIBS libraries to pass to the linker, e.g. -l<library>
1292 1.1 christos CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 1.1 christos you have headers in a nonstandard directory <include dir>
1294 1.1 christos CPP C preprocessor
1295 1.1 christos
1296 1.1 christos Use these variables to override the choices made by `configure' or to help
1297 1.1 christos it to find libraries and programs with nonstandard names/locations.
1298 1.1 christos
1299 1.1 christos _ACEOF
1300 1.1 christos ac_status=$?
1301 1.1 christos fi
1302 1.1 christos
1303 1.1 christos if test "$ac_init_help" = "recursive"; then
1304 1.1 christos # If there are subdirs, report their specific --help.
1305 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 1.1 christos test -d "$ac_dir" || continue
1307 1.1 christos ac_builddir=.
1308 1.1 christos
1309 1.1 christos case "$ac_dir" in
1310 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 1.1 christos *)
1312 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 1.1 christos # A ".." for each directory in $ac_dir_suffix.
1314 1.1 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 1.1 christos case $ac_top_builddir_sub in
1316 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 1.1 christos esac ;;
1319 1.1 christos esac
1320 1.1 christos ac_abs_top_builddir=$ac_pwd
1321 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 1.1 christos # for backward compatibility:
1323 1.1 christos ac_top_builddir=$ac_top_build_prefix
1324 1.1 christos
1325 1.1 christos case $srcdir in
1326 1.1 christos .) # We are building in place.
1327 1.1 christos ac_srcdir=.
1328 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
1329 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
1330 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1331 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1332 1.1 christos ac_top_srcdir=$srcdir
1333 1.1 christos ac_abs_top_srcdir=$srcdir ;;
1334 1.1 christos *) # Relative name.
1335 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 1.1 christos esac
1339 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340 1.1 christos
1341 1.1 christos cd "$ac_dir" || { ac_status=$?; continue; }
1342 1.1 christos # Check for guested configure.
1343 1.1 christos if test -f "$ac_srcdir/configure.gnu"; then
1344 1.1 christos echo &&
1345 1.1 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 1.1 christos elif test -f "$ac_srcdir/configure"; then
1347 1.1 christos echo &&
1348 1.1 christos $SHELL "$ac_srcdir/configure" --help=recursive
1349 1.1 christos else
1350 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 1.1 christos fi || ac_status=$?
1352 1.1 christos cd "$ac_pwd" || { ac_status=$?; break; }
1353 1.1 christos done
1354 1.1 christos fi
1355 1.1 christos
1356 1.1 christos test -n "$ac_init_help" && exit $ac_status
1357 1.1 christos if $ac_init_version; then
1358 1.1 christos cat <<\_ACEOF
1359 1.1 christos configure
1360 1.1 christos generated by GNU Autoconf 2.61
1361 1.1 christos
1362 1.1 christos Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 1.1 christos 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 1.1 christos This configure script is free software; the Free Software Foundation
1365 1.1 christos gives unlimited permission to copy, distribute and modify it.
1366 1.1 christos _ACEOF
1367 1.1 christos exit
1368 1.1 christos fi
1369 1.1 christos cat >config.log <<_ACEOF
1370 1.1 christos This file contains any messages produced by compilers while
1371 1.1 christos running configure, to aid debugging if configure makes a mistake.
1372 1.1 christos
1373 1.1 christos It was created by $as_me, which was
1374 1.1 christos generated by GNU Autoconf 2.61. Invocation command line was
1375 1.1 christos
1376 1.1 christos $ $0 $@
1377 1.1 christos
1378 1.1 christos _ACEOF
1379 1.1 christos exec 5>>config.log
1380 1.1 christos {
1381 1.1 christos cat <<_ASUNAME
1382 1.1 christos ## --------- ##
1383 1.1 christos ## Platform. ##
1384 1.1 christos ## --------- ##
1385 1.1 christos
1386 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
1391 1.1 christos
1392 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1394 1.1 christos
1395 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 1.1 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402 1.1 christos
1403 1.1 christos _ASUNAME
1404 1.1 christos
1405 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 1.1 christos for as_dir in $PATH
1407 1.1 christos do
1408 1.1 christos IFS=$as_save_IFS
1409 1.1 christos test -z "$as_dir" && as_dir=.
1410 1.1 christos echo "PATH: $as_dir"
1411 1.1 christos done
1412 1.1 christos IFS=$as_save_IFS
1413 1.1 christos
1414 1.1 christos } >&5
1415 1.1 christos
1416 1.1 christos cat >&5 <<_ACEOF
1417 1.1 christos
1418 1.1 christos
1419 1.1 christos ## ----------- ##
1420 1.1 christos ## Core tests. ##
1421 1.1 christos ## ----------- ##
1422 1.1 christos
1423 1.1 christos _ACEOF
1424 1.1 christos
1425 1.1 christos
1426 1.1 christos # Keep a trace of the command line.
1427 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
1428 1.1 christos # Strip out --silent because we don't want to record it for future runs.
1429 1.1 christos # Also quote any args containing shell meta-characters.
1430 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
1431 1.1 christos ac_configure_args=
1432 1.1 christos ac_configure_args0=
1433 1.1 christos ac_configure_args1=
1434 1.1 christos ac_must_keep_next=false
1435 1.1 christos for ac_pass in 1 2
1436 1.1 christos do
1437 1.1 christos for ac_arg
1438 1.1 christos do
1439 1.1 christos case $ac_arg in
1440 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1443 1.1 christos continue ;;
1444 1.1 christos *\'*)
1445 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 1.1 christos esac
1447 1.1 christos case $ac_pass in
1448 1.1 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 1.1 christos 2)
1450 1.1 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 1.1 christos if test $ac_must_keep_next = true; then
1452 1.1 christos ac_must_keep_next=false # Got value, back to normal.
1453 1.1 christos else
1454 1.1 christos case $ac_arg in
1455 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1456 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
1459 1.1 christos case "$ac_configure_args0 " in
1460 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461 1.1 christos esac
1462 1.1 christos ;;
1463 1.1 christos -* ) ac_must_keep_next=true ;;
1464 1.1 christos esac
1465 1.1 christos fi
1466 1.1 christos ac_configure_args="$ac_configure_args '$ac_arg'"
1467 1.1 christos ;;
1468 1.1 christos esac
1469 1.1 christos done
1470 1.1 christos done
1471 1.1 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 1.1 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473 1.1 christos
1474 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
1475 1.1 christos # config.log. We remove comments because anyway the quotes in there
1476 1.1 christos # would cause problems or look ugly.
1477 1.1 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 1.1 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 1.1 christos trap 'exit_status=$?
1480 1.1 christos # Save into config.log some information that might help in debugging.
1481 1.1 christos {
1482 1.1 christos echo
1483 1.1 christos
1484 1.1 christos cat <<\_ASBOX
1485 1.1 christos ## ---------------- ##
1486 1.1 christos ## Cache variables. ##
1487 1.1 christos ## ---------------- ##
1488 1.1 christos _ASBOX
1489 1.1 christos echo
1490 1.1 christos # The following way of writing the cache mishandles newlines in values,
1491 1.1 christos (
1492 1.1 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 1.1 christos eval ac_val=\$$ac_var
1494 1.1 christos case $ac_val in #(
1495 1.1 christos *${as_nl}*)
1496 1.1 christos case $ac_var in #(
1497 1.1 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 1.1 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499 1.1 christos esac
1500 1.1 christos case $ac_var in #(
1501 1.1 christos _ | IFS | as_nl) ;; #(
1502 1.1 christos *) $as_unset $ac_var ;;
1503 1.1 christos esac ;;
1504 1.1 christos esac
1505 1.1 christos done
1506 1.1 christos (set) 2>&1 |
1507 1.1 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 1.1 christos *${as_nl}ac_space=\ *)
1509 1.1 christos sed -n \
1510 1.1 christos "s/'\''/'\''\\\\'\'''\''/g;
1511 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512 1.1 christos ;; #(
1513 1.1 christos *)
1514 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 1.1 christos ;;
1516 1.1 christos esac |
1517 1.1 christos sort
1518 1.1 christos )
1519 1.1 christos echo
1520 1.1 christos
1521 1.1 christos cat <<\_ASBOX
1522 1.1 christos ## ----------------- ##
1523 1.1 christos ## Output variables. ##
1524 1.1 christos ## ----------------- ##
1525 1.1 christos _ASBOX
1526 1.1 christos echo
1527 1.1 christos for ac_var in $ac_subst_vars
1528 1.1 christos do
1529 1.1 christos eval ac_val=\$$ac_var
1530 1.1 christos case $ac_val in
1531 1.1 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 1.1 christos esac
1533 1.1 christos echo "$ac_var='\''$ac_val'\''"
1534 1.1 christos done | sort
1535 1.1 christos echo
1536 1.1 christos
1537 1.1 christos if test -n "$ac_subst_files"; then
1538 1.1 christos cat <<\_ASBOX
1539 1.1 christos ## ------------------- ##
1540 1.1 christos ## File substitutions. ##
1541 1.1 christos ## ------------------- ##
1542 1.1 christos _ASBOX
1543 1.1 christos echo
1544 1.1 christos for ac_var in $ac_subst_files
1545 1.1 christos do
1546 1.1 christos eval ac_val=\$$ac_var
1547 1.1 christos case $ac_val in
1548 1.1 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 1.1 christos esac
1550 1.1 christos echo "$ac_var='\''$ac_val'\''"
1551 1.1 christos done | sort
1552 1.1 christos echo
1553 1.1 christos fi
1554 1.1 christos
1555 1.1 christos if test -s confdefs.h; then
1556 1.1 christos cat <<\_ASBOX
1557 1.1 christos ## ----------- ##
1558 1.1 christos ## confdefs.h. ##
1559 1.1 christos ## ----------- ##
1560 1.1 christos _ASBOX
1561 1.1 christos echo
1562 1.1 christos cat confdefs.h
1563 1.1 christos echo
1564 1.1 christos fi
1565 1.1 christos test "$ac_signal" != 0 &&
1566 1.1 christos echo "$as_me: caught signal $ac_signal"
1567 1.1 christos echo "$as_me: exit $exit_status"
1568 1.1 christos } >&5
1569 1.1 christos rm -f core *.core core.conftest.* &&
1570 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571 1.1 christos exit $exit_status
1572 1.1 christos ' 0
1573 1.1 christos for ac_signal in 1 2 13 15; do
1574 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 1.1 christos done
1576 1.1 christos ac_signal=0
1577 1.1 christos
1578 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 1.1 christos rm -f -r conftest* confdefs.h
1580 1.1 christos
1581 1.1 christos # Predefined preprocessor variables.
1582 1.1 christos
1583 1.1 christos cat >>confdefs.h <<_ACEOF
1584 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
1585 1.1 christos _ACEOF
1586 1.1 christos
1587 1.1 christos
1588 1.1 christos cat >>confdefs.h <<_ACEOF
1589 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 1.1 christos _ACEOF
1591 1.1 christos
1592 1.1 christos
1593 1.1 christos cat >>confdefs.h <<_ACEOF
1594 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 1.1 christos _ACEOF
1596 1.1 christos
1597 1.1 christos
1598 1.1 christos cat >>confdefs.h <<_ACEOF
1599 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
1600 1.1 christos _ACEOF
1601 1.1 christos
1602 1.1 christos
1603 1.1 christos cat >>confdefs.h <<_ACEOF
1604 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 1.1 christos _ACEOF
1606 1.1 christos
1607 1.1 christos
1608 1.1 christos # Let the site file select an alternate cache file if it wants to.
1609 1.1 christos # Prefer explicitly selected file to automatically selected ones.
1610 1.1 christos if test -n "$CONFIG_SITE"; then
1611 1.1 christos set x "$CONFIG_SITE"
1612 1.1 christos elif test "x$prefix" != xNONE; then
1613 1.1 christos set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 1.1 christos else
1615 1.1 christos set x "$ac_default_prefix/share/config.site" \
1616 1.1 christos "$ac_default_prefix/etc/config.site"
1617 1.1 christos fi
1618 1.1 christos shift
1619 1.1 christos for ac_site_file
1620 1.1 christos do
1621 1.1 christos if test -r "$ac_site_file"; then
1622 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;}
1624 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
1625 1.1 christos . "$ac_site_file"
1626 1.1 christos fi
1627 1.1 christos done
1628 1.1 christos
1629 1.1 christos if test -r "$cache_file"; then
1630 1.1 christos # Some versions of bash will fail to source /dev/null (special
1631 1.1 christos # files actually), so we avoid doing that.
1632 1.1 christos if test -f "$cache_file"; then
1633 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 1.1 christos echo "$as_me: loading cache $cache_file" >&6;}
1635 1.1 christos case $cache_file in
1636 1.1 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 1.1 christos *) . "./$cache_file";;
1638 1.1 christos esac
1639 1.1 christos fi
1640 1.1 christos else
1641 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 1.1 christos echo "$as_me: creating cache $cache_file" >&6;}
1643 1.1 christos >$cache_file
1644 1.1 christos fi
1645 1.1 christos
1646 1.1 christos # Check that the precious variables saved in the cache have kept the same
1647 1.1 christos # value.
1648 1.1 christos ac_cache_corrupted=false
1649 1.1 christos for ac_var in $ac_precious_vars; do
1650 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
1652 1.1 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 1.1 christos eval ac_new_val=\$ac_env_${ac_var}_value
1654 1.1 christos case $ac_old_set,$ac_new_set in
1655 1.1 christos set,)
1656 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 1.1 christos ac_cache_corrupted=: ;;
1659 1.1 christos ,set)
1660 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 1.1 christos ac_cache_corrupted=: ;;
1663 1.1 christos ,);;
1664 1.1 christos *)
1665 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
1666 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;}
1670 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;}
1672 1.1 christos ac_cache_corrupted=:
1673 1.1 christos fi;;
1674 1.1 christos esac
1675 1.1 christos # Pass precious variables to config.status.
1676 1.1 christos if test "$ac_new_set" = set; then
1677 1.1 christos case $ac_new_val in
1678 1.1 christos *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
1680 1.1 christos esac
1681 1.1 christos case " $ac_configure_args " in
1682 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 1.1 christos esac
1685 1.1 christos fi
1686 1.1 christos done
1687 1.1 christos if $ac_cache_corrupted; then
1688 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 1.1 christos { (exit 1); exit 1; }; }
1693 1.1 christos fi
1694 1.1 christos
1695 1.1 christos
1696 1.1 christos
1697 1.1 christos
1698 1.1 christos
1699 1.1 christos
1700 1.1 christos
1701 1.1 christos
1702 1.1 christos
1703 1.1 christos
1704 1.1 christos
1705 1.1 christos
1706 1.1 christos
1707 1.1 christos
1708 1.1 christos
1709 1.1 christos
1710 1.1 christos
1711 1.1 christos ac_ext=c
1712 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1713 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716 1.1 christos
1717 1.1 christos
1718 1.1 christos
1719 1.1 christos ac_aux_dir=
1720 1.1 christos for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 1.1 christos if test -f "$ac_dir/install-sh"; then
1722 1.1 christos ac_aux_dir=$ac_dir
1723 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
1724 1.1 christos break
1725 1.1 christos elif test -f "$ac_dir/install.sh"; then
1726 1.1 christos ac_aux_dir=$ac_dir
1727 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
1728 1.1 christos break
1729 1.1 christos elif test -f "$ac_dir/shtool"; then
1730 1.1 christos ac_aux_dir=$ac_dir
1731 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
1732 1.1 christos break
1733 1.1 christos fi
1734 1.1 christos done
1735 1.1 christos if test -z "$ac_aux_dir"; then
1736 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 1.1 christos { (exit 1); exit 1; }; }
1739 1.1 christos fi
1740 1.1 christos
1741 1.1 christos # These three variables are undocumented and unsupported,
1742 1.1 christos # and are intended to be withdrawn in a future Autoconf release.
1743 1.1 christos # They can cause serious problems if a builder's source tree is in a directory
1744 1.1 christos # whose full name contains unusual characters.
1745 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1748 1.1 christos
1749 1.1 christos
1750 1.1 christos # Make sure we can run config.sub.
1751 1.1 christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 1.1 christos { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 1.1 christos echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 1.1 christos { (exit 1); exit 1; }; }
1755 1.1 christos
1756 1.1 christos { echo "$as_me:$LINENO: checking build system type" >&5
1757 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 1.1 christos if test "${ac_cv_build+set}" = set; then
1759 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1760 1.1 christos else
1761 1.1 christos ac_build_alias=$build_alias
1762 1.1 christos test "x$ac_build_alias" = x &&
1763 1.1 christos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 1.1 christos test "x$ac_build_alias" = x &&
1765 1.1 christos { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 1.1 christos { (exit 1); exit 1; }; }
1768 1.1 christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 1.1 christos { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 1.1 christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 1.1 christos { (exit 1); exit 1; }; }
1772 1.1 christos
1773 1.1 christos fi
1774 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6; }
1776 1.1 christos case $ac_cv_build in
1777 1.1 christos *-*-*) ;;
1778 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 1.1 christos echo "$as_me: error: invalid value of canonical build" >&2;}
1780 1.1 christos { (exit 1); exit 1; }; };;
1781 1.1 christos esac
1782 1.1 christos build=$ac_cv_build
1783 1.1 christos ac_save_IFS=$IFS; IFS='-'
1784 1.1 christos set x $ac_cv_build
1785 1.1 christos shift
1786 1.1 christos build_cpu=$1
1787 1.1 christos build_vendor=$2
1788 1.1 christos shift; shift
1789 1.1 christos # Remember, the first character of IFS is used to create $*,
1790 1.1 christos # except with old shells:
1791 1.1 christos build_os=$*
1792 1.1 christos IFS=$ac_save_IFS
1793 1.1 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1794 1.1 christos
1795 1.1 christos
1796 1.1 christos { echo "$as_me:$LINENO: checking host system type" >&5
1797 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 1.1 christos if test "${ac_cv_host+set}" = set; then
1799 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1800 1.1 christos else
1801 1.1 christos if test "x$host_alias" = x; then
1802 1.1 christos ac_cv_host=$ac_cv_build
1803 1.1 christos else
1804 1.1 christos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 1.1 christos { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 1.1 christos echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 1.1 christos { (exit 1); exit 1; }; }
1808 1.1 christos fi
1809 1.1 christos
1810 1.1 christos fi
1811 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6; }
1813 1.1 christos case $ac_cv_host in
1814 1.1 christos *-*-*) ;;
1815 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 1.1 christos echo "$as_me: error: invalid value of canonical host" >&2;}
1817 1.1 christos { (exit 1); exit 1; }; };;
1818 1.1 christos esac
1819 1.1 christos host=$ac_cv_host
1820 1.1 christos ac_save_IFS=$IFS; IFS='-'
1821 1.1 christos set x $ac_cv_host
1822 1.1 christos shift
1823 1.1 christos host_cpu=$1
1824 1.1 christos host_vendor=$2
1825 1.1 christos shift; shift
1826 1.1 christos # Remember, the first character of IFS is used to create $*,
1827 1.1 christos # except with old shells:
1828 1.1 christos host_os=$*
1829 1.1 christos IFS=$ac_save_IFS
1830 1.1 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1831 1.1 christos
1832 1.1 christos
1833 1.1 christos
1834 1.1 christos
1835 1.1 christos
1836 1.1 christos
1837 1.1 christos
1838 1.1 christos
1839 1.1 christos
1840 1.1 christos # Check whether --with-gcc was given.
1841 1.1 christos if test "${with_gcc+set}" = set; then
1842 1.1 christos withval=$with_gcc;
1843 1.1 christos fi
1844 1.1 christos
1845 1.1 christos V_CCOPT="-O"
1846 1.1 christos V_INCLS=""
1847 1.1 christos if test "${srcdir}" != "." ; then
1848 1.1 christos V_INCLS="-I\$(srcdir)"
1849 1.1 christos fi
1850 1.1 christos if test "${CFLAGS+set}" = set; then
1851 1.1 christos LBL_CFLAGS="$CFLAGS"
1852 1.1 christos fi
1853 1.1 christos if test -z "$CC" ; then
1854 1.1 christos case "$host_os" in
1855 1.1 christos
1856 1.1 christos bsdi*)
1857 1.1 christos # Extract the first word of "shlicc2", so it can be a program name with args.
1858 1.1 christos set dummy shlicc2; ac_word=$2
1859 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 1.1 christos if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1863 1.1 christos else
1864 1.1 christos if test -n "$SHLICC2"; then
1865 1.1 christos ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866 1.1 christos else
1867 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 1.1 christos for as_dir in $PATH
1869 1.1 christos do
1870 1.1 christos IFS=$as_save_IFS
1871 1.1 christos test -z "$as_dir" && as_dir=.
1872 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1873 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 1.1 christos ac_cv_prog_SHLICC2="yes"
1875 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 1.1 christos break 2
1877 1.1 christos fi
1878 1.1 christos done
1879 1.1 christos done
1880 1.1 christos IFS=$as_save_IFS
1881 1.1 christos
1882 1.1 christos test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883 1.1 christos fi
1884 1.1 christos fi
1885 1.1 christos SHLICC2=$ac_cv_prog_SHLICC2
1886 1.1 christos if test -n "$SHLICC2"; then
1887 1.1 christos { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 1.1 christos echo "${ECHO_T}$SHLICC2" >&6; }
1889 1.1 christos else
1890 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
1891 1.1 christos echo "${ECHO_T}no" >&6; }
1892 1.1 christos fi
1893 1.1 christos
1894 1.1 christos
1895 1.1 christos if test $SHLICC2 = yes ; then
1896 1.1 christos CC=shlicc2
1897 1.1 christos export CC
1898 1.1 christos fi
1899 1.1 christos ;;
1900 1.1 christos esac
1901 1.1 christos fi
1902 1.1 christos if test -z "$CC" -a "$with_gcc" = no ; then
1903 1.1 christos CC=cc
1904 1.1 christos export CC
1905 1.1 christos fi
1906 1.1 christos
1907 1.1 christos ac_ext=c
1908 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1909 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 1.1 christos if test -n "$ac_tool_prefix"; then
1913 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1918 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1919 1.1 christos else
1920 1.1 christos if test -n "$CC"; then
1921 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1922 1.1 christos else
1923 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 1.1 christos for as_dir in $PATH
1925 1.1 christos do
1926 1.1 christos IFS=$as_save_IFS
1927 1.1 christos test -z "$as_dir" && as_dir=.
1928 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1929 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 1.1 christos break 2
1933 1.1 christos fi
1934 1.1 christos done
1935 1.1 christos done
1936 1.1 christos IFS=$as_save_IFS
1937 1.1 christos
1938 1.1 christos fi
1939 1.1 christos fi
1940 1.1 christos CC=$ac_cv_prog_CC
1941 1.1 christos if test -n "$CC"; then
1942 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
1943 1.1 christos echo "${ECHO_T}$CC" >&6; }
1944 1.1 christos else
1945 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
1946 1.1 christos echo "${ECHO_T}no" >&6; }
1947 1.1 christos fi
1948 1.1 christos
1949 1.1 christos
1950 1.1 christos fi
1951 1.1 christos if test -z "$ac_cv_prog_CC"; then
1952 1.1 christos ac_ct_CC=$CC
1953 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
1954 1.1 christos set dummy gcc; ac_word=$2
1955 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1959 1.1 christos else
1960 1.1 christos if test -n "$ac_ct_CC"; then
1961 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 1.1 christos else
1963 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 1.1 christos for as_dir in $PATH
1965 1.1 christos do
1966 1.1 christos IFS=$as_save_IFS
1967 1.1 christos test -z "$as_dir" && as_dir=.
1968 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
1969 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
1971 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 1.1 christos break 2
1973 1.1 christos fi
1974 1.1 christos done
1975 1.1 christos done
1976 1.1 christos IFS=$as_save_IFS
1977 1.1 christos
1978 1.1 christos fi
1979 1.1 christos fi
1980 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 1.1 christos if test -n "$ac_ct_CC"; then
1982 1.1 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
1984 1.1 christos else
1985 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
1986 1.1 christos echo "${ECHO_T}no" >&6; }
1987 1.1 christos fi
1988 1.1 christos
1989 1.1 christos if test "x$ac_ct_CC" = x; then
1990 1.1 christos CC=""
1991 1.1 christos else
1992 1.1 christos case $cross_compiling:$ac_tool_warned in
1993 1.1 christos yes:)
1994 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 1.1 christos whose name does not start with the host triplet. If you think this
1996 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
1997 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 1.1 christos whose name does not start with the host triplet. If you think this
1999 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2000 1.1 christos ac_tool_warned=yes ;;
2001 1.1 christos esac
2002 1.1 christos CC=$ac_ct_CC
2003 1.1 christos fi
2004 1.1 christos else
2005 1.1 christos CC="$ac_cv_prog_CC"
2006 1.1 christos fi
2007 1.1 christos
2008 1.1 christos if test -z "$CC"; then
2009 1.1 christos if test -n "$ac_tool_prefix"; then
2010 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2015 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2016 1.1 christos else
2017 1.1 christos if test -n "$CC"; then
2018 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2019 1.1 christos else
2020 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 1.1 christos for as_dir in $PATH
2022 1.1 christos do
2023 1.1 christos IFS=$as_save_IFS
2024 1.1 christos test -z "$as_dir" && as_dir=.
2025 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2026 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 1.1 christos break 2
2030 1.1 christos fi
2031 1.1 christos done
2032 1.1 christos done
2033 1.1 christos IFS=$as_save_IFS
2034 1.1 christos
2035 1.1 christos fi
2036 1.1 christos fi
2037 1.1 christos CC=$ac_cv_prog_CC
2038 1.1 christos if test -n "$CC"; then
2039 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2040 1.1 christos echo "${ECHO_T}$CC" >&6; }
2041 1.1 christos else
2042 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2043 1.1 christos echo "${ECHO_T}no" >&6; }
2044 1.1 christos fi
2045 1.1 christos
2046 1.1 christos
2047 1.1 christos fi
2048 1.1 christos fi
2049 1.1 christos if test -z "$CC"; then
2050 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
2051 1.1 christos set dummy cc; ac_word=$2
2052 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2055 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2056 1.1 christos else
2057 1.1 christos if test -n "$CC"; then
2058 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2059 1.1 christos else
2060 1.1 christos ac_prog_rejected=no
2061 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 1.1 christos for as_dir in $PATH
2063 1.1 christos do
2064 1.1 christos IFS=$as_save_IFS
2065 1.1 christos test -z "$as_dir" && as_dir=.
2066 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2067 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 1.1 christos ac_prog_rejected=yes
2070 1.1 christos continue
2071 1.1 christos fi
2072 1.1 christos ac_cv_prog_CC="cc"
2073 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 1.1 christos break 2
2075 1.1 christos fi
2076 1.1 christos done
2077 1.1 christos done
2078 1.1 christos IFS=$as_save_IFS
2079 1.1 christos
2080 1.1 christos if test $ac_prog_rejected = yes; then
2081 1.1 christos # We found a bogon in the path, so make sure we never use it.
2082 1.1 christos set dummy $ac_cv_prog_CC
2083 1.1 christos shift
2084 1.1 christos if test $# != 0; then
2085 1.1 christos # We chose a different compiler from the bogus one.
2086 1.1 christos # However, it has the same basename, so the bogon will be chosen
2087 1.1 christos # first if we set CC to just the basename; use the full file name.
2088 1.1 christos shift
2089 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090 1.1 christos fi
2091 1.1 christos fi
2092 1.1 christos fi
2093 1.1 christos fi
2094 1.1 christos CC=$ac_cv_prog_CC
2095 1.1 christos if test -n "$CC"; then
2096 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2097 1.1 christos echo "${ECHO_T}$CC" >&6; }
2098 1.1 christos else
2099 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2100 1.1 christos echo "${ECHO_T}no" >&6; }
2101 1.1 christos fi
2102 1.1 christos
2103 1.1 christos
2104 1.1 christos fi
2105 1.1 christos if test -z "$CC"; then
2106 1.1 christos if test -n "$ac_tool_prefix"; then
2107 1.1 christos for ac_prog in cl.exe
2108 1.1 christos do
2109 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
2114 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2115 1.1 christos else
2116 1.1 christos if test -n "$CC"; then
2117 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2118 1.1 christos else
2119 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 1.1 christos for as_dir in $PATH
2121 1.1 christos do
2122 1.1 christos IFS=$as_save_IFS
2123 1.1 christos test -z "$as_dir" && as_dir=.
2124 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2125 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 1.1 christos break 2
2129 1.1 christos fi
2130 1.1 christos done
2131 1.1 christos done
2132 1.1 christos IFS=$as_save_IFS
2133 1.1 christos
2134 1.1 christos fi
2135 1.1 christos fi
2136 1.1 christos CC=$ac_cv_prog_CC
2137 1.1 christos if test -n "$CC"; then
2138 1.1 christos { echo "$as_me:$LINENO: result: $CC" >&5
2139 1.1 christos echo "${ECHO_T}$CC" >&6; }
2140 1.1 christos else
2141 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2142 1.1 christos echo "${ECHO_T}no" >&6; }
2143 1.1 christos fi
2144 1.1 christos
2145 1.1 christos
2146 1.1 christos test -n "$CC" && break
2147 1.1 christos done
2148 1.1 christos fi
2149 1.1 christos if test -z "$CC"; then
2150 1.1 christos ac_ct_CC=$CC
2151 1.1 christos for ac_prog in cl.exe
2152 1.1 christos do
2153 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 1.1 christos set dummy $ac_prog; ac_word=$2
2155 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2159 1.1 christos else
2160 1.1 christos if test -n "$ac_ct_CC"; then
2161 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 1.1 christos else
2163 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 1.1 christos for as_dir in $PATH
2165 1.1 christos do
2166 1.1 christos IFS=$as_save_IFS
2167 1.1 christos test -z "$as_dir" && as_dir=.
2168 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2169 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
2171 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 1.1 christos break 2
2173 1.1 christos fi
2174 1.1 christos done
2175 1.1 christos done
2176 1.1 christos IFS=$as_save_IFS
2177 1.1 christos
2178 1.1 christos fi
2179 1.1 christos fi
2180 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 1.1 christos if test -n "$ac_ct_CC"; then
2182 1.1 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
2184 1.1 christos else
2185 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
2186 1.1 christos echo "${ECHO_T}no" >&6; }
2187 1.1 christos fi
2188 1.1 christos
2189 1.1 christos
2190 1.1 christos test -n "$ac_ct_CC" && break
2191 1.1 christos done
2192 1.1 christos
2193 1.1 christos if test "x$ac_ct_CC" = x; then
2194 1.1 christos CC=""
2195 1.1 christos else
2196 1.1 christos case $cross_compiling:$ac_tool_warned in
2197 1.1 christos yes:)
2198 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 1.1 christos whose name does not start with the host triplet. If you think this
2200 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2201 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 1.1 christos whose name does not start with the host triplet. If you think this
2203 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2204 1.1 christos ac_tool_warned=yes ;;
2205 1.1 christos esac
2206 1.1 christos CC=$ac_ct_CC
2207 1.1 christos fi
2208 1.1 christos fi
2209 1.1 christos
2210 1.1 christos fi
2211 1.1 christos
2212 1.1 christos
2213 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 1.1 christos See \`config.log' for more details." >&5
2215 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 1.1 christos See \`config.log' for more details." >&2;}
2217 1.1 christos { (exit 1); exit 1; }; }
2218 1.1 christos
2219 1.1 christos # Provide some information about the compiler.
2220 1.1 christos echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 1.1 christos ac_compiler=`set X $ac_compile; echo $2`
2222 1.1 christos { (ac_try="$ac_compiler --version >&5"
2223 1.1 christos case "(($ac_try" in
2224 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 1.1 christos *) ac_try_echo=$ac_try;;
2226 1.1 christos esac
2227 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 1.1 christos (eval "$ac_compiler --version >&5") 2>&5
2229 1.1 christos ac_status=$?
2230 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 1.1 christos (exit $ac_status); }
2232 1.1 christos { (ac_try="$ac_compiler -v >&5"
2233 1.1 christos case "(($ac_try" in
2234 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 1.1 christos *) ac_try_echo=$ac_try;;
2236 1.1 christos esac
2237 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 1.1 christos (eval "$ac_compiler -v >&5") 2>&5
2239 1.1 christos ac_status=$?
2240 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 1.1 christos (exit $ac_status); }
2242 1.1 christos { (ac_try="$ac_compiler -V >&5"
2243 1.1 christos case "(($ac_try" in
2244 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 1.1 christos *) ac_try_echo=$ac_try;;
2246 1.1 christos esac
2247 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 1.1 christos (eval "$ac_compiler -V >&5") 2>&5
2249 1.1 christos ac_status=$?
2250 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 1.1 christos (exit $ac_status); }
2252 1.1 christos
2253 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2254 1.1 christos /* confdefs.h. */
2255 1.1 christos _ACEOF
2256 1.1 christos cat confdefs.h >>conftest.$ac_ext
2257 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2258 1.1 christos /* end confdefs.h. */
2259 1.1 christos
2260 1.1 christos int
2261 1.1 christos main ()
2262 1.1 christos {
2263 1.1 christos
2264 1.1 christos ;
2265 1.1 christos return 0;
2266 1.1 christos }
2267 1.1 christos _ACEOF
2268 1.1 christos ac_clean_files_save=$ac_clean_files
2269 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 1.1 christos # Try to create an executable without -o first, disregard a.out.
2271 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
2272 1.1 christos # of exeext.
2273 1.1 christos { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 1.1 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276 1.1 christos #
2277 1.1 christos # List of possible output files, starting from the most likely.
2278 1.1 christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 1.1 christos # only as a last resort. b.out is created by i960 compilers.
2280 1.1 christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2281 1.1 christos #
2282 1.1 christos # The IRIX 6 linker writes into existing files which may not be
2283 1.1 christos # executable, retaining their permissions. Remove them first so a
2284 1.1 christos # subsequent execution test works.
2285 1.1 christos ac_rmfiles=
2286 1.1 christos for ac_file in $ac_files
2287 1.1 christos do
2288 1.1 christos case $ac_file in
2289 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291 1.1 christos esac
2292 1.1 christos done
2293 1.1 christos rm -f $ac_rmfiles
2294 1.1 christos
2295 1.1 christos if { (ac_try="$ac_link_default"
2296 1.1 christos case "(($ac_try" in
2297 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 1.1 christos *) ac_try_echo=$ac_try;;
2299 1.1 christos esac
2300 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 1.1 christos (eval "$ac_link_default") 2>&5
2302 1.1 christos ac_status=$?
2303 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 1.1 christos (exit $ac_status); }; then
2305 1.1 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 1.1 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 1.1 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 1.1 christos # so that the user can short-circuit this test for compilers unknown to
2309 1.1 christos # Autoconf.
2310 1.1 christos for ac_file in $ac_files ''
2311 1.1 christos do
2312 1.1 christos test -f "$ac_file" || continue
2313 1.1 christos case $ac_file in
2314 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315 1.1 christos ;;
2316 1.1 christos [ab].out )
2317 1.1 christos # We found the default executable, but exeext='' is most
2318 1.1 christos # certainly right.
2319 1.1 christos break;;
2320 1.1 christos *.* )
2321 1.1 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322 1.1 christos then :; else
2323 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 1.1 christos fi
2325 1.1 christos # We set ac_cv_exeext here because the later test for it is not
2326 1.1 christos # safe: cross compilers may not add the suffix if given an `-o'
2327 1.1 christos # argument, so we may need to know it at that point already.
2328 1.1 christos # Even if this section looks crufty: it has the advantage of
2329 1.1 christos # actually working.
2330 1.1 christos break;;
2331 1.1 christos * )
2332 1.1 christos break;;
2333 1.1 christos esac
2334 1.1 christos done
2335 1.1 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
2336 1.1 christos
2337 1.1 christos else
2338 1.1 christos ac_file=''
2339 1.1 christos fi
2340 1.1 christos
2341 1.1 christos { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 1.1 christos echo "${ECHO_T}$ac_file" >&6; }
2343 1.1 christos if test -z "$ac_file"; then
2344 1.1 christos echo "$as_me: failed program was:" >&5
2345 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2346 1.1 christos
2347 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 1.1 christos See \`config.log' for more details." >&5
2349 1.1 christos echo "$as_me: error: C compiler cannot create executables
2350 1.1 christos See \`config.log' for more details." >&2;}
2351 1.1 christos { (exit 77); exit 77; }; }
2352 1.1 christos fi
2353 1.1 christos
2354 1.1 christos ac_exeext=$ac_cv_exeext
2355 1.1 christos
2356 1.1 christos # Check that the compiler produces executables we can run. If not, either
2357 1.1 christos # the compiler is broken, or we cross compile.
2358 1.1 christos { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 1.1 christos # If not cross compiling, check that we can run a simple program.
2362 1.1 christos if test "$cross_compiling" != yes; then
2363 1.1 christos if { ac_try='./$ac_file'
2364 1.1 christos { (case "(($ac_try" in
2365 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 1.1 christos *) ac_try_echo=$ac_try;;
2367 1.1 christos esac
2368 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 1.1 christos (eval "$ac_try") 2>&5
2370 1.1 christos ac_status=$?
2371 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 1.1 christos (exit $ac_status); }; }; then
2373 1.1 christos cross_compiling=no
2374 1.1 christos else
2375 1.1 christos if test "$cross_compiling" = maybe; then
2376 1.1 christos cross_compiling=yes
2377 1.1 christos else
2378 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 1.1 christos If you meant to cross compile, use \`--host'.
2380 1.1 christos See \`config.log' for more details." >&5
2381 1.1 christos echo "$as_me: error: cannot run C compiled programs.
2382 1.1 christos If you meant to cross compile, use \`--host'.
2383 1.1 christos See \`config.log' for more details." >&2;}
2384 1.1 christos { (exit 1); exit 1; }; }
2385 1.1 christos fi
2386 1.1 christos fi
2387 1.1 christos fi
2388 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
2389 1.1 christos echo "${ECHO_T}yes" >&6; }
2390 1.1 christos
2391 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 1.1 christos ac_clean_files=$ac_clean_files_save
2393 1.1 christos # Check that the compiler produces executables we can run. If not, either
2394 1.1 christos # the compiler is broken, or we cross compile.
2395 1.1 christos { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 1.1 christos { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 1.1 christos echo "${ECHO_T}$cross_compiling" >&6; }
2399 1.1 christos
2400 1.1 christos { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 1.1 christos if { (ac_try="$ac_link"
2403 1.1 christos case "(($ac_try" in
2404 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 1.1 christos *) ac_try_echo=$ac_try;;
2406 1.1 christos esac
2407 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 1.1 christos (eval "$ac_link") 2>&5
2409 1.1 christos ac_status=$?
2410 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 1.1 christos (exit $ac_status); }; then
2412 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 1.1 christos # `rm'.
2416 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
2417 1.1 christos test -f "$ac_file" || continue
2418 1.1 christos case $ac_file in
2419 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 1.1 christos break;;
2422 1.1 christos * ) break;;
2423 1.1 christos esac
2424 1.1 christos done
2425 1.1 christos else
2426 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 1.1 christos See \`config.log' for more details." >&5
2428 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 1.1 christos See \`config.log' for more details." >&2;}
2430 1.1 christos { (exit 1); exit 1; }; }
2431 1.1 christos fi
2432 1.1 christos
2433 1.1 christos rm -f conftest$ac_cv_exeext
2434 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6; }
2436 1.1 christos
2437 1.1 christos rm -f conftest.$ac_ext
2438 1.1 christos EXEEXT=$ac_cv_exeext
2439 1.1 christos ac_exeext=$EXEEXT
2440 1.1 christos { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 1.1 christos if test "${ac_cv_objext+set}" = set; then
2443 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2444 1.1 christos else
2445 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2446 1.1 christos /* confdefs.h. */
2447 1.1 christos _ACEOF
2448 1.1 christos cat confdefs.h >>conftest.$ac_ext
2449 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2450 1.1 christos /* end confdefs.h. */
2451 1.1 christos
2452 1.1 christos int
2453 1.1 christos main ()
2454 1.1 christos {
2455 1.1 christos
2456 1.1 christos ;
2457 1.1 christos return 0;
2458 1.1 christos }
2459 1.1 christos _ACEOF
2460 1.1 christos rm -f conftest.o conftest.obj
2461 1.1 christos if { (ac_try="$ac_compile"
2462 1.1 christos case "(($ac_try" in
2463 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 1.1 christos *) ac_try_echo=$ac_try;;
2465 1.1 christos esac
2466 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 1.1 christos (eval "$ac_compile") 2>&5
2468 1.1 christos ac_status=$?
2469 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 1.1 christos (exit $ac_status); }; then
2471 1.1 christos for ac_file in conftest.o conftest.obj conftest.*; do
2472 1.1 christos test -f "$ac_file" || continue;
2473 1.1 christos case $ac_file in
2474 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 1.1 christos break;;
2477 1.1 christos esac
2478 1.1 christos done
2479 1.1 christos else
2480 1.1 christos echo "$as_me: failed program was:" >&5
2481 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2482 1.1 christos
2483 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 1.1 christos See \`config.log' for more details." >&5
2485 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 1.1 christos See \`config.log' for more details." >&2;}
2487 1.1 christos { (exit 1); exit 1; }; }
2488 1.1 christos fi
2489 1.1 christos
2490 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 1.1 christos fi
2492 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 1.1 christos OBJEXT=$ac_cv_objext
2495 1.1 christos ac_objext=$OBJEXT
2496 1.1 christos { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2500 1.1 christos else
2501 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2502 1.1 christos /* confdefs.h. */
2503 1.1 christos _ACEOF
2504 1.1 christos cat confdefs.h >>conftest.$ac_ext
2505 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2506 1.1 christos /* end confdefs.h. */
2507 1.1 christos
2508 1.1 christos int
2509 1.1 christos main ()
2510 1.1 christos {
2511 1.1 christos #ifndef __GNUC__
2512 1.1 christos choke me
2513 1.1 christos #endif
2514 1.1 christos
2515 1.1 christos ;
2516 1.1 christos return 0;
2517 1.1 christos }
2518 1.1 christos _ACEOF
2519 1.1 christos rm -f conftest.$ac_objext
2520 1.1 christos if { (ac_try="$ac_compile"
2521 1.1 christos case "(($ac_try" in
2522 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 1.1 christos *) ac_try_echo=$ac_try;;
2524 1.1 christos esac
2525 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 1.1 christos (eval "$ac_compile") 2>conftest.er1
2527 1.1 christos ac_status=$?
2528 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2529 1.1 christos rm -f conftest.er1
2530 1.1 christos cat conftest.err >&5
2531 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 1.1 christos (exit $ac_status); } && {
2533 1.1 christos test -z "$ac_c_werror_flag" ||
2534 1.1 christos test ! -s conftest.err
2535 1.1 christos } && test -s conftest.$ac_objext; then
2536 1.1 christos ac_compiler_gnu=yes
2537 1.1 christos else
2538 1.1 christos echo "$as_me: failed program was:" >&5
2539 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2540 1.1 christos
2541 1.1 christos ac_compiler_gnu=no
2542 1.1 christos fi
2543 1.1 christos
2544 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546 1.1 christos
2547 1.1 christos fi
2548 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
2552 1.1 christos ac_save_CFLAGS=$CFLAGS
2553 1.1 christos { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then
2556 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2557 1.1 christos else
2558 1.1 christos ac_save_c_werror_flag=$ac_c_werror_flag
2559 1.1 christos ac_c_werror_flag=yes
2560 1.1 christos ac_cv_prog_cc_g=no
2561 1.1 christos CFLAGS="-g"
2562 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2563 1.1 christos /* confdefs.h. */
2564 1.1 christos _ACEOF
2565 1.1 christos cat confdefs.h >>conftest.$ac_ext
2566 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2567 1.1 christos /* end confdefs.h. */
2568 1.1 christos
2569 1.1 christos int
2570 1.1 christos main ()
2571 1.1 christos {
2572 1.1 christos
2573 1.1 christos ;
2574 1.1 christos return 0;
2575 1.1 christos }
2576 1.1 christos _ACEOF
2577 1.1 christos rm -f conftest.$ac_objext
2578 1.1 christos if { (ac_try="$ac_compile"
2579 1.1 christos case "(($ac_try" in
2580 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 1.1 christos *) ac_try_echo=$ac_try;;
2582 1.1 christos esac
2583 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 1.1 christos (eval "$ac_compile") 2>conftest.er1
2585 1.1 christos ac_status=$?
2586 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2587 1.1 christos rm -f conftest.er1
2588 1.1 christos cat conftest.err >&5
2589 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 1.1 christos (exit $ac_status); } && {
2591 1.1 christos test -z "$ac_c_werror_flag" ||
2592 1.1 christos test ! -s conftest.err
2593 1.1 christos } && test -s conftest.$ac_objext; then
2594 1.1 christos ac_cv_prog_cc_g=yes
2595 1.1 christos else
2596 1.1 christos echo "$as_me: failed program was:" >&5
2597 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2598 1.1 christos
2599 1.1 christos CFLAGS=""
2600 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2601 1.1 christos /* confdefs.h. */
2602 1.1 christos _ACEOF
2603 1.1 christos cat confdefs.h >>conftest.$ac_ext
2604 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2605 1.1 christos /* end confdefs.h. */
2606 1.1 christos
2607 1.1 christos int
2608 1.1 christos main ()
2609 1.1 christos {
2610 1.1 christos
2611 1.1 christos ;
2612 1.1 christos return 0;
2613 1.1 christos }
2614 1.1 christos _ACEOF
2615 1.1 christos rm -f conftest.$ac_objext
2616 1.1 christos if { (ac_try="$ac_compile"
2617 1.1 christos case "(($ac_try" in
2618 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 1.1 christos *) ac_try_echo=$ac_try;;
2620 1.1 christos esac
2621 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 1.1 christos (eval "$ac_compile") 2>conftest.er1
2623 1.1 christos ac_status=$?
2624 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2625 1.1 christos rm -f conftest.er1
2626 1.1 christos cat conftest.err >&5
2627 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 1.1 christos (exit $ac_status); } && {
2629 1.1 christos test -z "$ac_c_werror_flag" ||
2630 1.1 christos test ! -s conftest.err
2631 1.1 christos } && test -s conftest.$ac_objext; then
2632 1.1 christos :
2633 1.1 christos else
2634 1.1 christos echo "$as_me: failed program was:" >&5
2635 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2636 1.1 christos
2637 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2638 1.1 christos CFLAGS="-g"
2639 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2640 1.1 christos /* confdefs.h. */
2641 1.1 christos _ACEOF
2642 1.1 christos cat confdefs.h >>conftest.$ac_ext
2643 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2644 1.1 christos /* end confdefs.h. */
2645 1.1 christos
2646 1.1 christos int
2647 1.1 christos main ()
2648 1.1 christos {
2649 1.1 christos
2650 1.1 christos ;
2651 1.1 christos return 0;
2652 1.1 christos }
2653 1.1 christos _ACEOF
2654 1.1 christos rm -f conftest.$ac_objext
2655 1.1 christos if { (ac_try="$ac_compile"
2656 1.1 christos case "(($ac_try" in
2657 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 1.1 christos *) ac_try_echo=$ac_try;;
2659 1.1 christos esac
2660 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 1.1 christos (eval "$ac_compile") 2>conftest.er1
2662 1.1 christos ac_status=$?
2663 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2664 1.1 christos rm -f conftest.er1
2665 1.1 christos cat conftest.err >&5
2666 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 1.1 christos (exit $ac_status); } && {
2668 1.1 christos test -z "$ac_c_werror_flag" ||
2669 1.1 christos test ! -s conftest.err
2670 1.1 christos } && test -s conftest.$ac_objext; then
2671 1.1 christos ac_cv_prog_cc_g=yes
2672 1.1 christos else
2673 1.1 christos echo "$as_me: failed program was:" >&5
2674 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2675 1.1 christos
2676 1.1 christos
2677 1.1 christos fi
2678 1.1 christos
2679 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 1.1 christos fi
2681 1.1 christos
2682 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 1.1 christos fi
2684 1.1 christos
2685 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
2687 1.1 christos fi
2688 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 1.1 christos if test "$ac_test_CFLAGS" = set; then
2691 1.1 christos CFLAGS=$ac_save_CFLAGS
2692 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
2693 1.1 christos if test "$GCC" = yes; then
2694 1.1 christos CFLAGS="-g -O2"
2695 1.1 christos else
2696 1.1 christos CFLAGS="-g"
2697 1.1 christos fi
2698 1.1 christos else
2699 1.1 christos if test "$GCC" = yes; then
2700 1.1 christos CFLAGS="-O2"
2701 1.1 christos else
2702 1.1 christos CFLAGS=
2703 1.1 christos fi
2704 1.1 christos fi
2705 1.1 christos { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 1.1 christos echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 1.1 christos if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2709 1.1 christos else
2710 1.1 christos ac_cv_prog_cc_c89=no
2711 1.1 christos ac_save_CC=$CC
2712 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2713 1.1 christos /* confdefs.h. */
2714 1.1 christos _ACEOF
2715 1.1 christos cat confdefs.h >>conftest.$ac_ext
2716 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2717 1.1 christos /* end confdefs.h. */
2718 1.1 christos #include <stdarg.h>
2719 1.1 christos #include <stdio.h>
2720 1.1 christos #include <sys/types.h>
2721 1.1 christos #include <sys/stat.h>
2722 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 1.1 christos struct buf { int x; };
2724 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 1.1 christos static char *e (p, i)
2726 1.1 christos char **p;
2727 1.1 christos int i;
2728 1.1 christos {
2729 1.1 christos return p[i];
2730 1.1 christos }
2731 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
2732 1.1 christos {
2733 1.1 christos char *s;
2734 1.1 christos va_list v;
2735 1.1 christos va_start (v,p);
2736 1.1 christos s = g (p, va_arg (v,int));
2737 1.1 christos va_end (v);
2738 1.1 christos return s;
2739 1.1 christos }
2740 1.1 christos
2741 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
2743 1.1 christos These don't provoke an error unfortunately, instead are silently treated
2744 1.1 christos as 'x'. The following induces an error, until -std is added to get
2745 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
2747 1.1 christos that's true only with -std. */
2748 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749 1.1 christos
2750 1.1 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 1.1 christos inside strings and character constants. */
2752 1.1 christos #define FOO(x) 'x'
2753 1.1 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2754 1.1 christos
2755 1.1 christos int test (int i, double x);
2756 1.1 christos struct s1 {int (*f) (int a);};
2757 1.1 christos struct s2 {int (*f) (double a);};
2758 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 1.1 christos int argc;
2760 1.1 christos char **argv;
2761 1.1 christos int
2762 1.1 christos main ()
2763 1.1 christos {
2764 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 1.1 christos ;
2766 1.1 christos return 0;
2767 1.1 christos }
2768 1.1 christos _ACEOF
2769 1.1 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 1.1 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 1.1 christos do
2772 1.1 christos CC="$ac_save_CC $ac_arg"
2773 1.1 christos rm -f conftest.$ac_objext
2774 1.1 christos if { (ac_try="$ac_compile"
2775 1.1 christos case "(($ac_try" in
2776 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 1.1 christos *) ac_try_echo=$ac_try;;
2778 1.1 christos esac
2779 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 1.1 christos (eval "$ac_compile") 2>conftest.er1
2781 1.1 christos ac_status=$?
2782 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2783 1.1 christos rm -f conftest.er1
2784 1.1 christos cat conftest.err >&5
2785 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 1.1 christos (exit $ac_status); } && {
2787 1.1 christos test -z "$ac_c_werror_flag" ||
2788 1.1 christos test ! -s conftest.err
2789 1.1 christos } && test -s conftest.$ac_objext; then
2790 1.1 christos ac_cv_prog_cc_c89=$ac_arg
2791 1.1 christos else
2792 1.1 christos echo "$as_me: failed program was:" >&5
2793 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2794 1.1 christos
2795 1.1 christos
2796 1.1 christos fi
2797 1.1 christos
2798 1.1 christos rm -f core conftest.err conftest.$ac_objext
2799 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
2800 1.1 christos done
2801 1.1 christos rm -f conftest.$ac_ext
2802 1.1 christos CC=$ac_save_CC
2803 1.1 christos
2804 1.1 christos fi
2805 1.1 christos # AC_CACHE_VAL
2806 1.1 christos case "x$ac_cv_prog_cc_c89" in
2807 1.1 christos x)
2808 1.1 christos { echo "$as_me:$LINENO: result: none needed" >&5
2809 1.1 christos echo "${ECHO_T}none needed" >&6; } ;;
2810 1.1 christos xno)
2811 1.1 christos { echo "$as_me:$LINENO: result: unsupported" >&5
2812 1.1 christos echo "${ECHO_T}unsupported" >&6; } ;;
2813 1.1 christos *)
2814 1.1 christos CC="$CC $ac_cv_prog_cc_c89"
2815 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817 1.1 christos esac
2818 1.1 christos
2819 1.1 christos
2820 1.1 christos ac_ext=c
2821 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2822 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 1.1 christos
2826 1.1 christos
2827 1.1 christos
2828 1.1 christos
2829 1.1 christos
2830 1.1 christos if test "$GCC" = yes ; then
2831 1.1 christos if test "$SHLICC2" = yes ; then
2832 1.1 christos ac_cv_lbl_gcc_vers=2
2833 1.1 christos V_CCOPT="-O2"
2834 1.1 christos else
2835 1.1 christos { echo "$as_me:$LINENO: checking gcc version" >&5
2836 1.1 christos echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 1.1 christos if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2839 1.1 christos else
2840 1.1 christos ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841 1.1 christos sed -e '/^gcc version /!d' \
2842 1.1 christos -e 's/^gcc version //' \
2843 1.1 christos -e 's/ .*//' -e 's/^[^0-9]*//' \
2844 1.1 christos -e 's/\..*//'`
2845 1.1 christos fi
2846 1.1 christos
2847 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 1.1 christos echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 1.1 christos if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2850 1.1 christos V_CCOPT="-O2"
2851 1.1 christos fi
2852 1.1 christos fi
2853 1.1 christos else
2854 1.1 christos { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 1.1 christos echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 1.1 christos if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2858 1.1 christos else
2859 1.1 christos
2860 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2861 1.1 christos /* confdefs.h. */
2862 1.1 christos _ACEOF
2863 1.1 christos cat confdefs.h >>conftest.$ac_ext
2864 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2865 1.1 christos /* end confdefs.h. */
2866 1.1 christos #include <sys/types.h>
2867 1.1 christos int
2868 1.1 christos main ()
2869 1.1 christos {
2870 1.1 christos int frob(int, char *)
2871 1.1 christos ;
2872 1.1 christos return 0;
2873 1.1 christos }
2874 1.1 christos _ACEOF
2875 1.1 christos rm -f conftest.$ac_objext
2876 1.1 christos if { (ac_try="$ac_compile"
2877 1.1 christos case "(($ac_try" in
2878 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 1.1 christos *) ac_try_echo=$ac_try;;
2880 1.1 christos esac
2881 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 1.1 christos (eval "$ac_compile") 2>conftest.er1
2883 1.1 christos ac_status=$?
2884 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2885 1.1 christos rm -f conftest.er1
2886 1.1 christos cat conftest.err >&5
2887 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 1.1 christos (exit $ac_status); } && {
2889 1.1 christos test -z "$ac_c_werror_flag" ||
2890 1.1 christos test ! -s conftest.err
2891 1.1 christos } && test -s conftest.$ac_objext; then
2892 1.1 christos ac_cv_lbl_cc_ansi_prototypes=yes
2893 1.1 christos else
2894 1.1 christos echo "$as_me: failed program was:" >&5
2895 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2896 1.1 christos
2897 1.1 christos ac_cv_lbl_cc_ansi_prototypes=no
2898 1.1 christos fi
2899 1.1 christos
2900 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 1.1 christos fi
2902 1.1 christos
2903 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 1.1 christos echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 1.1 christos if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2906 1.1 christos case "$host_os" in
2907 1.1 christos
2908 1.1 christos hpux*)
2909 1.1 christos { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 1.1 christos echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 1.1 christos savedcflags="$CFLAGS"
2912 1.1 christos CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 1.1 christos if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2915 1.1 christos else
2916 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2917 1.1 christos /* confdefs.h. */
2918 1.1 christos _ACEOF
2919 1.1 christos cat confdefs.h >>conftest.$ac_ext
2920 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2921 1.1 christos /* end confdefs.h. */
2922 1.1 christos #include <sys/types.h>
2923 1.1 christos int
2924 1.1 christos main ()
2925 1.1 christos {
2926 1.1 christos int frob(int, char *)
2927 1.1 christos ;
2928 1.1 christos return 0;
2929 1.1 christos }
2930 1.1 christos _ACEOF
2931 1.1 christos rm -f conftest.$ac_objext
2932 1.1 christos if { (ac_try="$ac_compile"
2933 1.1 christos case "(($ac_try" in
2934 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 1.1 christos *) ac_try_echo=$ac_try;;
2936 1.1 christos esac
2937 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 1.1 christos (eval "$ac_compile") 2>conftest.er1
2939 1.1 christos ac_status=$?
2940 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
2941 1.1 christos rm -f conftest.er1
2942 1.1 christos cat conftest.err >&5
2943 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 1.1 christos (exit $ac_status); } && {
2945 1.1 christos test -z "$ac_c_werror_flag" ||
2946 1.1 christos test ! -s conftest.err
2947 1.1 christos } && test -s conftest.$ac_objext; then
2948 1.1 christos ac_cv_lbl_cc_hpux_cc_aa=yes
2949 1.1 christos else
2950 1.1 christos echo "$as_me: failed program was:" >&5
2951 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
2952 1.1 christos
2953 1.1 christos ac_cv_lbl_cc_hpux_cc_aa=no
2954 1.1 christos fi
2955 1.1 christos
2956 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 1.1 christos fi
2958 1.1 christos
2959 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 1.1 christos echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 1.1 christos if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962 1.1 christos { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 1.1 christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 1.1 christos { (exit 1); exit 1; }; }
2965 1.1 christos fi
2966 1.1 christos CFLAGS="$savedcflags"
2967 1.1 christos V_CCOPT="-Aa $V_CCOPT"
2968 1.1 christos
2969 1.1 christos cat >>confdefs.h <<\_ACEOF
2970 1.1 christos #define _HPUX_SOURCE 1
2971 1.1 christos _ACEOF
2972 1.1 christos
2973 1.1 christos ;;
2974 1.1 christos
2975 1.1 christos osf*)
2976 1.1 christos { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 1.1 christos echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 1.1 christos savedcflags="$CFLAGS"
2979 1.1 christos CFLAGS="-std1"
2980 1.1 christos if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2982 1.1 christos else
2983 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2984 1.1 christos /* confdefs.h. */
2985 1.1 christos _ACEOF
2986 1.1 christos cat confdefs.h >>conftest.$ac_ext
2987 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
2988 1.1 christos /* end confdefs.h. */
2989 1.1 christos #include <sys/types.h>
2990 1.1 christos int
2991 1.1 christos main ()
2992 1.1 christos {
2993 1.1 christos int frob(int, char *)
2994 1.1 christos ;
2995 1.1 christos return 0;
2996 1.1 christos }
2997 1.1 christos _ACEOF
2998 1.1 christos rm -f conftest.$ac_objext
2999 1.1 christos if { (ac_try="$ac_compile"
3000 1.1 christos case "(($ac_try" in
3001 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 1.1 christos *) ac_try_echo=$ac_try;;
3003 1.1 christos esac
3004 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 1.1 christos (eval "$ac_compile") 2>conftest.er1
3006 1.1 christos ac_status=$?
3007 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3008 1.1 christos rm -f conftest.er1
3009 1.1 christos cat conftest.err >&5
3010 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 1.1 christos (exit $ac_status); } && {
3012 1.1 christos test -z "$ac_c_werror_flag" ||
3013 1.1 christos test ! -s conftest.err
3014 1.1 christos } && test -s conftest.$ac_objext; then
3015 1.1 christos ac_cv_lbl_cc_osf1_cc_std1=yes
3016 1.1 christos else
3017 1.1 christos echo "$as_me: failed program was:" >&5
3018 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3019 1.1 christos
3020 1.1 christos ac_cv_lbl_cc_osf1_cc_std1=no
3021 1.1 christos fi
3022 1.1 christos
3023 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 1.1 christos fi
3025 1.1 christos
3026 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 1.1 christos echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 1.1 christos if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 1.1 christos { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 1.1 christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 1.1 christos { (exit 1); exit 1; }; }
3032 1.1 christos fi
3033 1.1 christos CFLAGS="$savedcflags"
3034 1.1 christos V_CCOPT="-std1 $V_CCOPT"
3035 1.1 christos ;;
3036 1.1 christos
3037 1.1 christos *)
3038 1.1 christos { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 1.1 christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 1.1 christos { (exit 1); exit 1; }; }
3041 1.1 christos ;;
3042 1.1 christos esac
3043 1.1 christos fi
3044 1.1 christos V_INCLS="$V_INCLS -I/usr/local/include"
3045 1.1 christos LDFLAGS="$LDFLAGS -L/usr/local/lib"
3046 1.1 christos
3047 1.1 christos case "$host_os" in
3048 1.1 christos
3049 1.1 christos irix*)
3050 1.1 christos V_CCOPT="$V_CCOPT -xansi -signed -O"
3051 1.1 christos ;;
3052 1.1 christos
3053 1.1 christos osf*)
3054 1.1 christos #
3055 1.1 christos # Presumed to be DEC OSF/1, Digital UNIX, or
3056 1.1 christos # Tru64 UNIX.
3057 1.1 christos #
3058 1.1 christos V_CCOPT="$V_CCOPT -O"
3059 1.1 christos ;;
3060 1.1 christos
3061 1.1 christos ultrix*)
3062 1.1 christos { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 1.1 christos echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 1.1 christos if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3066 1.1 christos else
3067 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3068 1.1 christos /* confdefs.h. */
3069 1.1 christos _ACEOF
3070 1.1 christos cat confdefs.h >>conftest.$ac_ext
3071 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3072 1.1 christos /* end confdefs.h. */
3073 1.1 christos #include <sys/types.h>
3074 1.1 christos int
3075 1.1 christos main ()
3076 1.1 christos {
3077 1.1 christos struct a { int b; };
3078 1.1 christos void c(const struct a *)
3079 1.1 christos ;
3080 1.1 christos return 0;
3081 1.1 christos }
3082 1.1 christos _ACEOF
3083 1.1 christos rm -f conftest.$ac_objext
3084 1.1 christos if { (ac_try="$ac_compile"
3085 1.1 christos case "(($ac_try" in
3086 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 1.1 christos *) ac_try_echo=$ac_try;;
3088 1.1 christos esac
3089 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 1.1 christos (eval "$ac_compile") 2>conftest.er1
3091 1.1 christos ac_status=$?
3092 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3093 1.1 christos rm -f conftest.er1
3094 1.1 christos cat conftest.err >&5
3095 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 1.1 christos (exit $ac_status); } && {
3097 1.1 christos test -z "$ac_c_werror_flag" ||
3098 1.1 christos test ! -s conftest.err
3099 1.1 christos } && test -s conftest.$ac_objext; then
3100 1.1 christos ac_cv_lbl_cc_const_proto=yes
3101 1.1 christos else
3102 1.1 christos echo "$as_me: failed program was:" >&5
3103 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3104 1.1 christos
3105 1.1 christos ac_cv_lbl_cc_const_proto=no
3106 1.1 christos fi
3107 1.1 christos
3108 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 1.1 christos fi
3110 1.1 christos
3111 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 1.1 christos echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 1.1 christos if test $ac_cv_lbl_cc_const_proto = no ; then
3114 1.1 christos
3115 1.1 christos cat >>confdefs.h <<\_ACEOF
3116 1.1 christos #define const
3117 1.1 christos _ACEOF
3118 1.1 christos
3119 1.1 christos fi
3120 1.1 christos ;;
3121 1.1 christos esac
3122 1.1 christos fi
3123 1.1 christos
3124 1.1 christos { echo "$as_me:$LINENO: checking for inline" >&5
3125 1.1 christos echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 1.1 christos save_CFLAGS="$CFLAGS"
3127 1.1 christos CFLAGS="$V_CCOPT"
3128 1.1 christos if test "${ac_cv_lbl_inline+set}" = set; then
3129 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3130 1.1 christos else
3131 1.1 christos
3132 1.1 christos ac_cv_lbl_inline=""
3133 1.1 christos ac_lbl_cc_inline=no
3134 1.1 christos for ac_lbl_inline in inline __inline__ __inline
3135 1.1 christos do
3136 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3137 1.1 christos /* confdefs.h. */
3138 1.1 christos _ACEOF
3139 1.1 christos cat confdefs.h >>conftest.$ac_ext
3140 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3141 1.1 christos /* end confdefs.h. */
3142 1.1 christos #define inline $ac_lbl_inline
3143 1.1 christos static inline struct iltest *foo(void);
3144 1.1 christos struct iltest {
3145 1.1 christos int iltest1;
3146 1.1 christos int iltest2;
3147 1.1 christos };
3148 1.1 christos
3149 1.1 christos static inline struct iltest *
3150 1.1 christos foo()
3151 1.1 christos {
3152 1.1 christos static struct iltest xxx;
3153 1.1 christos
3154 1.1 christos return &xxx;
3155 1.1 christos }
3156 1.1 christos int
3157 1.1 christos main ()
3158 1.1 christos {
3159 1.1 christos
3160 1.1 christos ;
3161 1.1 christos return 0;
3162 1.1 christos }
3163 1.1 christos _ACEOF
3164 1.1 christos rm -f conftest.$ac_objext
3165 1.1 christos if { (ac_try="$ac_compile"
3166 1.1 christos case "(($ac_try" in
3167 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 1.1 christos *) ac_try_echo=$ac_try;;
3169 1.1 christos esac
3170 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 1.1 christos (eval "$ac_compile") 2>conftest.er1
3172 1.1 christos ac_status=$?
3173 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3174 1.1 christos rm -f conftest.er1
3175 1.1 christos cat conftest.err >&5
3176 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 1.1 christos (exit $ac_status); } && {
3178 1.1 christos test -z "$ac_c_werror_flag" ||
3179 1.1 christos test ! -s conftest.err
3180 1.1 christos } && test -s conftest.$ac_objext; then
3181 1.1 christos ac_lbl_cc_inline=yes
3182 1.1 christos else
3183 1.1 christos echo "$as_me: failed program was:" >&5
3184 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3185 1.1 christos
3186 1.1 christos
3187 1.1 christos fi
3188 1.1 christos
3189 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 1.1 christos if test "$ac_lbl_cc_inline" = yes ; then
3191 1.1 christos break;
3192 1.1 christos fi
3193 1.1 christos done
3194 1.1 christos if test "$ac_lbl_cc_inline" = yes ; then
3195 1.1 christos ac_cv_lbl_inline=$ac_lbl_inline
3196 1.1 christos fi
3197 1.1 christos fi
3198 1.1 christos
3199 1.1 christos CFLAGS="$save_CFLAGS"
3200 1.1 christos if test ! -z "$ac_cv_lbl_inline" ; then
3201 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 1.1 christos echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3203 1.1 christos else
3204 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
3205 1.1 christos echo "${ECHO_T}no" >&6; }
3206 1.1 christos fi
3207 1.1 christos
3208 1.1 christos cat >>confdefs.h <<_ACEOF
3209 1.1 christos #define inline $ac_cv_lbl_inline
3210 1.1 christos _ACEOF
3211 1.1 christos
3212 1.1 christos
3213 1.1 christos { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 1.1 christos echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 1.1 christos if test "${ac_cv___attribute__+set}" = set; then
3216 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3217 1.1 christos else
3218 1.1 christos
3219 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3220 1.1 christos /* confdefs.h. */
3221 1.1 christos _ACEOF
3222 1.1 christos cat confdefs.h >>conftest.$ac_ext
3223 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3224 1.1 christos /* end confdefs.h. */
3225 1.1 christos
3226 1.1 christos #include <stdlib.h>
3227 1.1 christos
3228 1.1 christos static void foo(void) __attribute__ ((noreturn));
3229 1.1 christos
3230 1.1 christos static void
3231 1.1 christos foo(void)
3232 1.1 christos {
3233 1.1 christos exit(1);
3234 1.1 christos }
3235 1.1 christos
3236 1.1 christos int
3237 1.1 christos main(int argc, char **argv)
3238 1.1 christos {
3239 1.1 christos foo();
3240 1.1 christos }
3241 1.1 christos
3242 1.1 christos _ACEOF
3243 1.1 christos rm -f conftest.$ac_objext
3244 1.1 christos if { (ac_try="$ac_compile"
3245 1.1 christos case "(($ac_try" in
3246 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 1.1 christos *) ac_try_echo=$ac_try;;
3248 1.1 christos esac
3249 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 1.1 christos (eval "$ac_compile") 2>conftest.er1
3251 1.1 christos ac_status=$?
3252 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3253 1.1 christos rm -f conftest.er1
3254 1.1 christos cat conftest.err >&5
3255 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 1.1 christos (exit $ac_status); } && {
3257 1.1 christos test -z "$ac_c_werror_flag" ||
3258 1.1 christos test ! -s conftest.err
3259 1.1 christos } && test -s conftest.$ac_objext; then
3260 1.1 christos ac_cv___attribute__=yes
3261 1.1 christos else
3262 1.1 christos echo "$as_me: failed program was:" >&5
3263 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3264 1.1 christos
3265 1.1 christos ac_cv___attribute__=no
3266 1.1 christos fi
3267 1.1 christos
3268 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 1.1 christos fi
3270 1.1 christos
3271 1.1 christos if test "$ac_cv___attribute__" = "yes"; then
3272 1.1 christos
3273 1.1 christos cat >>confdefs.h <<\_ACEOF
3274 1.1 christos #define HAVE___ATTRIBUTE__ 1
3275 1.1 christos _ACEOF
3276 1.1 christos
3277 1.1 christos V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3278 1.1 christos else
3279 1.1 christos V_DEFS="$V_DEFS -D_U_=\"\""
3280 1.1 christos fi
3281 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3282 1.1 christos echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3283 1.1 christos
3284 1.1 christos if test "$ac_cv___attribute__" = "yes"; then
3285 1.1 christos
3286 1.1 christos { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3287 1.1 christos echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3288 1.1 christos if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3289 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3290 1.1 christos else
3291 1.1 christos
3292 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3293 1.1 christos /* confdefs.h. */
3294 1.1 christos _ACEOF
3295 1.1 christos cat confdefs.h >>conftest.$ac_ext
3296 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3297 1.1 christos /* end confdefs.h. */
3298 1.1 christos
3299 1.1 christos #include <stdlib.h>
3300 1.1 christos
3301 1.1 christos extern int (*foo)(const char *fmt, ...)
3302 1.1 christos __attribute__ ((format (printf, 1, 2)));
3303 1.1 christos
3304 1.1 christos int
3305 1.1 christos main(int argc, char **argv)
3306 1.1 christos {
3307 1.1 christos (*foo)("%s", "test");
3308 1.1 christos }
3309 1.1 christos
3310 1.1 christos _ACEOF
3311 1.1 christos rm -f conftest.$ac_objext
3312 1.1 christos if { (ac_try="$ac_compile"
3313 1.1 christos case "(($ac_try" in
3314 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 1.1 christos *) ac_try_echo=$ac_try;;
3316 1.1 christos esac
3317 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 1.1 christos (eval "$ac_compile") 2>conftest.er1
3319 1.1 christos ac_status=$?
3320 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3321 1.1 christos rm -f conftest.er1
3322 1.1 christos cat conftest.err >&5
3323 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 1.1 christos (exit $ac_status); } && {
3325 1.1 christos test -z "$ac_c_werror_flag" ||
3326 1.1 christos test ! -s conftest.err
3327 1.1 christos } && test -s conftest.$ac_objext; then
3328 1.1 christos ac_cv___attribute___format_function_pointer=yes
3329 1.1 christos else
3330 1.1 christos echo "$as_me: failed program was:" >&5
3331 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3332 1.1 christos
3333 1.1 christos ac_cv___attribute___format_function_pointer=no
3334 1.1 christos fi
3335 1.1 christos
3336 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 1.1 christos fi
3338 1.1 christos
3339 1.1 christos if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3340 1.1 christos
3341 1.1 christos cat >>confdefs.h <<\_ACEOF
3342 1.1 christos #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3343 1.1 christos _ACEOF
3344 1.1 christos
3345 1.1 christos fi
3346 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3347 1.1 christos echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3348 1.1 christos
3349 1.1 christos fi
3350 1.1 christos ac_ext=c
3351 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3352 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 1.1 christos { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3356 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3357 1.1 christos # On Suns, sometimes $CPP names a directory.
3358 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
3359 1.1 christos CPP=
3360 1.1 christos fi
3361 1.1 christos if test -z "$CPP"; then
3362 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then
3363 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3364 1.1 christos else
3365 1.1 christos # Double quotes because CPP needs to be expanded
3366 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 1.1 christos do
3368 1.1 christos ac_preproc_ok=false
3369 1.1 christos for ac_c_preproc_warn_flag in '' yes
3370 1.1 christos do
3371 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3372 1.1 christos # with a fresh cross-compiler works.
3373 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 1.1 christos # <limits.h> exists even on freestanding compilers.
3375 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3376 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3377 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3378 1.1 christos /* confdefs.h. */
3379 1.1 christos _ACEOF
3380 1.1 christos cat confdefs.h >>conftest.$ac_ext
3381 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3382 1.1 christos /* end confdefs.h. */
3383 1.1 christos #ifdef __STDC__
3384 1.1 christos # include <limits.h>
3385 1.1 christos #else
3386 1.1 christos # include <assert.h>
3387 1.1 christos #endif
3388 1.1 christos Syntax error
3389 1.1 christos _ACEOF
3390 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 1.1 christos case "(($ac_try" in
3392 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 1.1 christos *) ac_try_echo=$ac_try;;
3394 1.1 christos esac
3395 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 1.1 christos ac_status=$?
3398 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3399 1.1 christos rm -f conftest.er1
3400 1.1 christos cat conftest.err >&5
3401 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 1.1 christos (exit $ac_status); } >/dev/null && {
3403 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3404 1.1 christos test ! -s conftest.err
3405 1.1 christos }; then
3406 1.1 christos :
3407 1.1 christos else
3408 1.1 christos echo "$as_me: failed program was:" >&5
3409 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3410 1.1 christos
3411 1.1 christos # Broken: fails on valid input.
3412 1.1 christos continue
3413 1.1 christos fi
3414 1.1 christos
3415 1.1 christos rm -f conftest.err conftest.$ac_ext
3416 1.1 christos
3417 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
3418 1.1 christos # can be detected and how.
3419 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3420 1.1 christos /* confdefs.h. */
3421 1.1 christos _ACEOF
3422 1.1 christos cat confdefs.h >>conftest.$ac_ext
3423 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3424 1.1 christos /* end confdefs.h. */
3425 1.1 christos #include <ac_nonexistent.h>
3426 1.1 christos _ACEOF
3427 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 1.1 christos case "(($ac_try" in
3429 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 1.1 christos *) ac_try_echo=$ac_try;;
3431 1.1 christos esac
3432 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 1.1 christos ac_status=$?
3435 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3436 1.1 christos rm -f conftest.er1
3437 1.1 christos cat conftest.err >&5
3438 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 1.1 christos (exit $ac_status); } >/dev/null && {
3440 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3441 1.1 christos test ! -s conftest.err
3442 1.1 christos }; then
3443 1.1 christos # Broken: success on invalid input.
3444 1.1 christos continue
3445 1.1 christos else
3446 1.1 christos echo "$as_me: failed program was:" >&5
3447 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3448 1.1 christos
3449 1.1 christos # Passes both tests.
3450 1.1 christos ac_preproc_ok=:
3451 1.1 christos break
3452 1.1 christos fi
3453 1.1 christos
3454 1.1 christos rm -f conftest.err conftest.$ac_ext
3455 1.1 christos
3456 1.1 christos done
3457 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 1.1 christos rm -f conftest.err conftest.$ac_ext
3459 1.1 christos if $ac_preproc_ok; then
3460 1.1 christos break
3461 1.1 christos fi
3462 1.1 christos
3463 1.1 christos done
3464 1.1 christos ac_cv_prog_CPP=$CPP
3465 1.1 christos
3466 1.1 christos fi
3467 1.1 christos CPP=$ac_cv_prog_CPP
3468 1.1 christos else
3469 1.1 christos ac_cv_prog_CPP=$CPP
3470 1.1 christos fi
3471 1.1 christos { echo "$as_me:$LINENO: result: $CPP" >&5
3472 1.1 christos echo "${ECHO_T}$CPP" >&6; }
3473 1.1 christos ac_preproc_ok=false
3474 1.1 christos for ac_c_preproc_warn_flag in '' yes
3475 1.1 christos do
3476 1.1 christos # Use a header file that comes with gcc, so configuring glibc
3477 1.1 christos # with a fresh cross-compiler works.
3478 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479 1.1 christos # <limits.h> exists even on freestanding compilers.
3480 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3481 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
3482 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3483 1.1 christos /* confdefs.h. */
3484 1.1 christos _ACEOF
3485 1.1 christos cat confdefs.h >>conftest.$ac_ext
3486 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3487 1.1 christos /* end confdefs.h. */
3488 1.1 christos #ifdef __STDC__
3489 1.1 christos # include <limits.h>
3490 1.1 christos #else
3491 1.1 christos # include <assert.h>
3492 1.1 christos #endif
3493 1.1 christos Syntax error
3494 1.1 christos _ACEOF
3495 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 1.1 christos case "(($ac_try" in
3497 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 1.1 christos *) ac_try_echo=$ac_try;;
3499 1.1 christos esac
3500 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 1.1 christos ac_status=$?
3503 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3504 1.1 christos rm -f conftest.er1
3505 1.1 christos cat conftest.err >&5
3506 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 1.1 christos (exit $ac_status); } >/dev/null && {
3508 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 1.1 christos test ! -s conftest.err
3510 1.1 christos }; then
3511 1.1 christos :
3512 1.1 christos else
3513 1.1 christos echo "$as_me: failed program was:" >&5
3514 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3515 1.1 christos
3516 1.1 christos # Broken: fails on valid input.
3517 1.1 christos continue
3518 1.1 christos fi
3519 1.1 christos
3520 1.1 christos rm -f conftest.err conftest.$ac_ext
3521 1.1 christos
3522 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
3523 1.1 christos # can be detected and how.
3524 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3525 1.1 christos /* confdefs.h. */
3526 1.1 christos _ACEOF
3527 1.1 christos cat confdefs.h >>conftest.$ac_ext
3528 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3529 1.1 christos /* end confdefs.h. */
3530 1.1 christos #include <ac_nonexistent.h>
3531 1.1 christos _ACEOF
3532 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 1.1 christos case "(($ac_try" in
3534 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 1.1 christos *) ac_try_echo=$ac_try;;
3536 1.1 christos esac
3537 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 1.1 christos ac_status=$?
3540 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3541 1.1 christos rm -f conftest.er1
3542 1.1 christos cat conftest.err >&5
3543 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 1.1 christos (exit $ac_status); } >/dev/null && {
3545 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546 1.1 christos test ! -s conftest.err
3547 1.1 christos }; then
3548 1.1 christos # Broken: success on invalid input.
3549 1.1 christos continue
3550 1.1 christos else
3551 1.1 christos echo "$as_me: failed program was:" >&5
3552 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3553 1.1 christos
3554 1.1 christos # Passes both tests.
3555 1.1 christos ac_preproc_ok=:
3556 1.1 christos break
3557 1.1 christos fi
3558 1.1 christos
3559 1.1 christos rm -f conftest.err conftest.$ac_ext
3560 1.1 christos
3561 1.1 christos done
3562 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 1.1 christos rm -f conftest.err conftest.$ac_ext
3564 1.1 christos if $ac_preproc_ok; then
3565 1.1 christos :
3566 1.1 christos else
3567 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 1.1 christos See \`config.log' for more details." >&5
3569 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 1.1 christos See \`config.log' for more details." >&2;}
3571 1.1 christos { (exit 1); exit 1; }; }
3572 1.1 christos fi
3573 1.1 christos
3574 1.1 christos ac_ext=c
3575 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3576 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 1.1 christos
3580 1.1 christos
3581 1.1 christos { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582 1.1 christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3583 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
3584 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3585 1.1 christos else
3586 1.1 christos # Extract the first word of "grep ggrep" to use in msg output
3587 1.1 christos if test -z "$GREP"; then
3588 1.1 christos set dummy grep ggrep; ac_prog_name=$2
3589 1.1 christos if test "${ac_cv_path_GREP+set}" = set; then
3590 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3591 1.1 christos else
3592 1.1 christos ac_path_GREP_found=false
3593 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
3594 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596 1.1 christos do
3597 1.1 christos IFS=$as_save_IFS
3598 1.1 christos test -z "$as_dir" && as_dir=.
3599 1.1 christos for ac_prog in grep ggrep; do
3600 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3601 1.1 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602 1.1 christos { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603 1.1 christos # Check for GNU ac_path_GREP and select it if it is found.
3604 1.1 christos # Check for GNU $ac_path_GREP
3605 1.1 christos case `"$ac_path_GREP" --version 2>&1` in
3606 1.1 christos *GNU*)
3607 1.1 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3608 1.1 christos *)
3609 1.1 christos ac_count=0
3610 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3611 1.1 christos while :
3612 1.1 christos do
3613 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
3614 1.1 christos mv "conftest.tmp" "conftest.in"
3615 1.1 christos cp "conftest.in" "conftest.nl"
3616 1.1 christos echo 'GREP' >> "conftest.nl"
3617 1.1 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619 1.1 christos ac_count=`expr $ac_count + 1`
3620 1.1 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 1.1 christos # Best one so far, save it but keep looking for a better one
3622 1.1 christos ac_cv_path_GREP="$ac_path_GREP"
3623 1.1 christos ac_path_GREP_max=$ac_count
3624 1.1 christos fi
3625 1.1 christos # 10*(2^10) chars as input seems more than enough
3626 1.1 christos test $ac_count -gt 10 && break
3627 1.1 christos done
3628 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629 1.1 christos esac
3630 1.1 christos
3631 1.1 christos
3632 1.1 christos $ac_path_GREP_found && break 3
3633 1.1 christos done
3634 1.1 christos done
3635 1.1 christos
3636 1.1 christos done
3637 1.1 christos IFS=$as_save_IFS
3638 1.1 christos
3639 1.1 christos
3640 1.1 christos fi
3641 1.1 christos
3642 1.1 christos GREP="$ac_cv_path_GREP"
3643 1.1 christos if test -z "$GREP"; then
3644 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 1.1 christos { (exit 1); exit 1; }; }
3647 1.1 christos fi
3648 1.1 christos
3649 1.1 christos else
3650 1.1 christos ac_cv_path_GREP=$GREP
3651 1.1 christos fi
3652 1.1 christos
3653 1.1 christos
3654 1.1 christos fi
3655 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3656 1.1 christos echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3657 1.1 christos GREP="$ac_cv_path_GREP"
3658 1.1 christos
3659 1.1 christos
3660 1.1 christos { echo "$as_me:$LINENO: checking for egrep" >&5
3661 1.1 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3662 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
3663 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3664 1.1 christos else
3665 1.1 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3666 1.1 christos then ac_cv_path_EGREP="$GREP -E"
3667 1.1 christos else
3668 1.1 christos # Extract the first word of "egrep" to use in msg output
3669 1.1 christos if test -z "$EGREP"; then
3670 1.1 christos set dummy egrep; ac_prog_name=$2
3671 1.1 christos if test "${ac_cv_path_EGREP+set}" = set; then
3672 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3673 1.1 christos else
3674 1.1 christos ac_path_EGREP_found=false
3675 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
3676 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 1.1 christos do
3679 1.1 christos IFS=$as_save_IFS
3680 1.1 christos test -z "$as_dir" && as_dir=.
3681 1.1 christos for ac_prog in egrep; do
3682 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
3683 1.1 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3684 1.1 christos { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3685 1.1 christos # Check for GNU ac_path_EGREP and select it if it is found.
3686 1.1 christos # Check for GNU $ac_path_EGREP
3687 1.1 christos case `"$ac_path_EGREP" --version 2>&1` in
3688 1.1 christos *GNU*)
3689 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690 1.1 christos *)
3691 1.1 christos ac_count=0
3692 1.1 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 1.1 christos while :
3694 1.1 christos do
3695 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 1.1 christos mv "conftest.tmp" "conftest.in"
3697 1.1 christos cp "conftest.in" "conftest.nl"
3698 1.1 christos echo 'EGREP' >> "conftest.nl"
3699 1.1 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 1.1 christos ac_count=`expr $ac_count + 1`
3702 1.1 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3703 1.1 christos # Best one so far, save it but keep looking for a better one
3704 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP"
3705 1.1 christos ac_path_EGREP_max=$ac_count
3706 1.1 christos fi
3707 1.1 christos # 10*(2^10) chars as input seems more than enough
3708 1.1 christos test $ac_count -gt 10 && break
3709 1.1 christos done
3710 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 1.1 christos esac
3712 1.1 christos
3713 1.1 christos
3714 1.1 christos $ac_path_EGREP_found && break 3
3715 1.1 christos done
3716 1.1 christos done
3717 1.1 christos
3718 1.1 christos done
3719 1.1 christos IFS=$as_save_IFS
3720 1.1 christos
3721 1.1 christos
3722 1.1 christos fi
3723 1.1 christos
3724 1.1 christos EGREP="$ac_cv_path_EGREP"
3725 1.1 christos if test -z "$EGREP"; then
3726 1.1 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 1.1 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 1.1 christos { (exit 1); exit 1; }; }
3729 1.1 christos fi
3730 1.1 christos
3731 1.1 christos else
3732 1.1 christos ac_cv_path_EGREP=$EGREP
3733 1.1 christos fi
3734 1.1 christos
3735 1.1 christos
3736 1.1 christos fi
3737 1.1 christos fi
3738 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3739 1.1 christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3740 1.1 christos EGREP="$ac_cv_path_EGREP"
3741 1.1 christos
3742 1.1 christos
3743 1.1 christos { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3744 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3745 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then
3746 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3747 1.1 christos else
3748 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3749 1.1 christos /* confdefs.h. */
3750 1.1 christos _ACEOF
3751 1.1 christos cat confdefs.h >>conftest.$ac_ext
3752 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3753 1.1 christos /* end confdefs.h. */
3754 1.1 christos #include <stdlib.h>
3755 1.1 christos #include <stdarg.h>
3756 1.1 christos #include <string.h>
3757 1.1 christos #include <float.h>
3758 1.1 christos
3759 1.1 christos int
3760 1.1 christos main ()
3761 1.1 christos {
3762 1.1 christos
3763 1.1 christos ;
3764 1.1 christos return 0;
3765 1.1 christos }
3766 1.1 christos _ACEOF
3767 1.1 christos rm -f conftest.$ac_objext
3768 1.1 christos if { (ac_try="$ac_compile"
3769 1.1 christos case "(($ac_try" in
3770 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 1.1 christos *) ac_try_echo=$ac_try;;
3772 1.1 christos esac
3773 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 1.1 christos (eval "$ac_compile") 2>conftest.er1
3775 1.1 christos ac_status=$?
3776 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3777 1.1 christos rm -f conftest.er1
3778 1.1 christos cat conftest.err >&5
3779 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 1.1 christos (exit $ac_status); } && {
3781 1.1 christos test -z "$ac_c_werror_flag" ||
3782 1.1 christos test ! -s conftest.err
3783 1.1 christos } && test -s conftest.$ac_objext; then
3784 1.1 christos ac_cv_header_stdc=yes
3785 1.1 christos else
3786 1.1 christos echo "$as_me: failed program was:" >&5
3787 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3788 1.1 christos
3789 1.1 christos ac_cv_header_stdc=no
3790 1.1 christos fi
3791 1.1 christos
3792 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 1.1 christos
3794 1.1 christos if test $ac_cv_header_stdc = yes; then
3795 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3797 1.1 christos /* confdefs.h. */
3798 1.1 christos _ACEOF
3799 1.1 christos cat confdefs.h >>conftest.$ac_ext
3800 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3801 1.1 christos /* end confdefs.h. */
3802 1.1 christos #include <string.h>
3803 1.1 christos
3804 1.1 christos _ACEOF
3805 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then
3807 1.1 christos :
3808 1.1 christos else
3809 1.1 christos ac_cv_header_stdc=no
3810 1.1 christos fi
3811 1.1 christos rm -f -r conftest*
3812 1.1 christos
3813 1.1 christos fi
3814 1.1 christos
3815 1.1 christos if test $ac_cv_header_stdc = yes; then
3816 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3817 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3818 1.1 christos /* confdefs.h. */
3819 1.1 christos _ACEOF
3820 1.1 christos cat confdefs.h >>conftest.$ac_ext
3821 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3822 1.1 christos /* end confdefs.h. */
3823 1.1 christos #include <stdlib.h>
3824 1.1 christos
3825 1.1 christos _ACEOF
3826 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 1.1 christos $EGREP "free" >/dev/null 2>&1; then
3828 1.1 christos :
3829 1.1 christos else
3830 1.1 christos ac_cv_header_stdc=no
3831 1.1 christos fi
3832 1.1 christos rm -f -r conftest*
3833 1.1 christos
3834 1.1 christos fi
3835 1.1 christos
3836 1.1 christos if test $ac_cv_header_stdc = yes; then
3837 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3838 1.1 christos if test "$cross_compiling" = yes; then
3839 1.1 christos :
3840 1.1 christos else
3841 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3842 1.1 christos /* confdefs.h. */
3843 1.1 christos _ACEOF
3844 1.1 christos cat confdefs.h >>conftest.$ac_ext
3845 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3846 1.1 christos /* end confdefs.h. */
3847 1.1 christos #include <ctype.h>
3848 1.1 christos #include <stdlib.h>
3849 1.1 christos #if ((' ' & 0x0FF) == 0x020)
3850 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3851 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3852 1.1 christos #else
3853 1.1 christos # define ISLOWER(c) \
3854 1.1 christos (('a' <= (c) && (c) <= 'i') \
3855 1.1 christos || ('j' <= (c) && (c) <= 'r') \
3856 1.1 christos || ('s' <= (c) && (c) <= 'z'))
3857 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3858 1.1 christos #endif
3859 1.1 christos
3860 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3861 1.1 christos int
3862 1.1 christos main ()
3863 1.1 christos {
3864 1.1 christos int i;
3865 1.1 christos for (i = 0; i < 256; i++)
3866 1.1 christos if (XOR (islower (i), ISLOWER (i))
3867 1.1 christos || toupper (i) != TOUPPER (i))
3868 1.1 christos return 2;
3869 1.1 christos return 0;
3870 1.1 christos }
3871 1.1 christos _ACEOF
3872 1.1 christos rm -f conftest$ac_exeext
3873 1.1 christos if { (ac_try="$ac_link"
3874 1.1 christos case "(($ac_try" in
3875 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 1.1 christos *) ac_try_echo=$ac_try;;
3877 1.1 christos esac
3878 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 1.1 christos (eval "$ac_link") 2>&5
3880 1.1 christos ac_status=$?
3881 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3883 1.1 christos { (case "(($ac_try" in
3884 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 1.1 christos *) ac_try_echo=$ac_try;;
3886 1.1 christos esac
3887 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 1.1 christos (eval "$ac_try") 2>&5
3889 1.1 christos ac_status=$?
3890 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 1.1 christos (exit $ac_status); }; }; then
3892 1.1 christos :
3893 1.1 christos else
3894 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
3895 1.1 christos echo "$as_me: failed program was:" >&5
3896 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3897 1.1 christos
3898 1.1 christos ( exit $ac_status )
3899 1.1 christos ac_cv_header_stdc=no
3900 1.1 christos fi
3901 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3902 1.1 christos fi
3903 1.1 christos
3904 1.1 christos
3905 1.1 christos fi
3906 1.1 christos fi
3907 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3908 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3909 1.1 christos if test $ac_cv_header_stdc = yes; then
3910 1.1 christos
3911 1.1 christos cat >>confdefs.h <<\_ACEOF
3912 1.1 christos #define STDC_HEADERS 1
3913 1.1 christos _ACEOF
3914 1.1 christos
3915 1.1 christos fi
3916 1.1 christos
3917 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3918 1.1 christos
3919 1.1 christos
3920 1.1 christos
3921 1.1 christos
3922 1.1 christos
3923 1.1 christos
3924 1.1 christos
3925 1.1 christos
3926 1.1 christos
3927 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3928 1.1 christos inttypes.h stdint.h unistd.h
3929 1.1 christos do
3930 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3931 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
3932 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3933 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3934 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3935 1.1 christos else
3936 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3937 1.1 christos /* confdefs.h. */
3938 1.1 christos _ACEOF
3939 1.1 christos cat confdefs.h >>conftest.$ac_ext
3940 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
3941 1.1 christos /* end confdefs.h. */
3942 1.1 christos $ac_includes_default
3943 1.1 christos
3944 1.1 christos #include <$ac_header>
3945 1.1 christos _ACEOF
3946 1.1 christos rm -f conftest.$ac_objext
3947 1.1 christos if { (ac_try="$ac_compile"
3948 1.1 christos case "(($ac_try" in
3949 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 1.1 christos *) ac_try_echo=$ac_try;;
3951 1.1 christos esac
3952 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 1.1 christos (eval "$ac_compile") 2>conftest.er1
3954 1.1 christos ac_status=$?
3955 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
3956 1.1 christos rm -f conftest.er1
3957 1.1 christos cat conftest.err >&5
3958 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 1.1 christos (exit $ac_status); } && {
3960 1.1 christos test -z "$ac_c_werror_flag" ||
3961 1.1 christos test ! -s conftest.err
3962 1.1 christos } && test -s conftest.$ac_objext; then
3963 1.1 christos eval "$as_ac_Header=yes"
3964 1.1 christos else
3965 1.1 christos echo "$as_me: failed program was:" >&5
3966 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3967 1.1 christos
3968 1.1 christos eval "$as_ac_Header=no"
3969 1.1 christos fi
3970 1.1 christos
3971 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 1.1 christos fi
3973 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
3974 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
3975 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
3976 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
3977 1.1 christos cat >>confdefs.h <<_ACEOF
3978 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 1.1 christos _ACEOF
3980 1.1 christos
3981 1.1 christos fi
3982 1.1 christos
3983 1.1 christos done
3984 1.1 christos
3985 1.1 christos
3986 1.1 christos
3987 1.1 christos
3988 1.1 christos
3989 1.1 christos for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3990 1.1 christos do
3991 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
3994 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3995 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3997 1.1 christos fi
3998 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
3999 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4001 1.1 christos else
4002 1.1 christos # Is the header compilable?
4003 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4004 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4005 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4006 1.1 christos /* confdefs.h. */
4007 1.1 christos _ACEOF
4008 1.1 christos cat confdefs.h >>conftest.$ac_ext
4009 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4010 1.1 christos /* end confdefs.h. */
4011 1.1 christos $ac_includes_default
4012 1.1 christos #include <$ac_header>
4013 1.1 christos _ACEOF
4014 1.1 christos rm -f conftest.$ac_objext
4015 1.1 christos if { (ac_try="$ac_compile"
4016 1.1 christos case "(($ac_try" in
4017 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 1.1 christos *) ac_try_echo=$ac_try;;
4019 1.1 christos esac
4020 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 1.1 christos (eval "$ac_compile") 2>conftest.er1
4022 1.1 christos ac_status=$?
4023 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4024 1.1 christos rm -f conftest.er1
4025 1.1 christos cat conftest.err >&5
4026 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 1.1 christos (exit $ac_status); } && {
4028 1.1 christos test -z "$ac_c_werror_flag" ||
4029 1.1 christos test ! -s conftest.err
4030 1.1 christos } && test -s conftest.$ac_objext; then
4031 1.1 christos ac_header_compiler=yes
4032 1.1 christos else
4033 1.1 christos echo "$as_me: failed program was:" >&5
4034 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4035 1.1 christos
4036 1.1 christos ac_header_compiler=no
4037 1.1 christos fi
4038 1.1 christos
4039 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4041 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4042 1.1 christos
4043 1.1 christos # Is the header present?
4044 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4045 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4046 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4047 1.1 christos /* confdefs.h. */
4048 1.1 christos _ACEOF
4049 1.1 christos cat confdefs.h >>conftest.$ac_ext
4050 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4051 1.1 christos /* end confdefs.h. */
4052 1.1 christos #include <$ac_header>
4053 1.1 christos _ACEOF
4054 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 1.1 christos case "(($ac_try" in
4056 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 1.1 christos *) ac_try_echo=$ac_try;;
4058 1.1 christos esac
4059 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061 1.1 christos ac_status=$?
4062 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4063 1.1 christos rm -f conftest.er1
4064 1.1 christos cat conftest.err >&5
4065 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 1.1 christos (exit $ac_status); } >/dev/null && {
4067 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 1.1 christos test ! -s conftest.err
4069 1.1 christos }; then
4070 1.1 christos ac_header_preproc=yes
4071 1.1 christos else
4072 1.1 christos echo "$as_me: failed program was:" >&5
4073 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4074 1.1 christos
4075 1.1 christos ac_header_preproc=no
4076 1.1 christos fi
4077 1.1 christos
4078 1.1 christos rm -f conftest.err conftest.$ac_ext
4079 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4081 1.1 christos
4082 1.1 christos # So? What about this header?
4083 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4084 1.1 christos yes:no: )
4085 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4088 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4089 1.1 christos ac_header_preproc=yes
4090 1.1 christos ;;
4091 1.1 christos no:yes:* )
4092 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4093 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4094 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4095 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4096 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4097 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4098 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4099 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4100 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4101 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4103 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4104 1.1 christos
4105 1.1 christos ;;
4106 1.1 christos esac
4107 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4108 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4109 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4110 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4111 1.1 christos else
4112 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
4113 1.1 christos fi
4114 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4115 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4116 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4117 1.1 christos
4118 1.1 christos fi
4119 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 1.1 christos cat >>confdefs.h <<_ACEOF
4121 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 1.1 christos _ACEOF
4123 1.1 christos
4124 1.1 christos fi
4125 1.1 christos
4126 1.1 christos done
4127 1.1 christos
4128 1.1 christos
4129 1.1 christos for ac_header in net/pfvar.h
4130 1.1 christos do
4131 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4134 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4135 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4136 1.1 christos else
4137 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4138 1.1 christos /* confdefs.h. */
4139 1.1 christos _ACEOF
4140 1.1 christos cat confdefs.h >>conftest.$ac_ext
4141 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4142 1.1 christos /* end confdefs.h. */
4143 1.1 christos #include <sys/types.h>
4144 1.1 christos #include <sys/socket.h>
4145 1.1 christos #include <net/if.h>
4146 1.1 christos
4147 1.1 christos #include <$ac_header>
4148 1.1 christos _ACEOF
4149 1.1 christos rm -f conftest.$ac_objext
4150 1.1 christos if { (ac_try="$ac_compile"
4151 1.1 christos case "(($ac_try" in
4152 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 1.1 christos *) ac_try_echo=$ac_try;;
4154 1.1 christos esac
4155 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 1.1 christos (eval "$ac_compile") 2>conftest.er1
4157 1.1 christos ac_status=$?
4158 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4159 1.1 christos rm -f conftest.er1
4160 1.1 christos cat conftest.err >&5
4161 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 1.1 christos (exit $ac_status); } && {
4163 1.1 christos test -z "$ac_c_werror_flag" ||
4164 1.1 christos test ! -s conftest.err
4165 1.1 christos } && test -s conftest.$ac_objext; then
4166 1.1 christos eval "$as_ac_Header=yes"
4167 1.1 christos else
4168 1.1 christos echo "$as_me: failed program was:" >&5
4169 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4170 1.1 christos
4171 1.1 christos eval "$as_ac_Header=no"
4172 1.1 christos fi
4173 1.1 christos
4174 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 1.1 christos fi
4176 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4177 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4178 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4179 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 1.1 christos cat >>confdefs.h <<_ACEOF
4181 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 1.1 christos _ACEOF
4183 1.1 christos
4184 1.1 christos fi
4185 1.1 christos
4186 1.1 christos done
4187 1.1 christos
4188 1.1 christos if test "$ac_cv_header_net_pfvar_h" = yes; then
4189 1.1 christos LOCALSRC="print-pflog.c $LOCALSRC"
4190 1.1 christos fi
4191 1.1 christos
4192 1.1 christos for ac_header in netinet/if_ether.h
4193 1.1 christos do
4194 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4196 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4197 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4198 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4199 1.1 christos else
4200 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4201 1.1 christos /* confdefs.h. */
4202 1.1 christos _ACEOF
4203 1.1 christos cat confdefs.h >>conftest.$ac_ext
4204 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4205 1.1 christos /* end confdefs.h. */
4206 1.1 christos #include <sys/types.h>
4207 1.1 christos #include <sys/socket.h>
4208 1.1 christos
4209 1.1 christos #include <$ac_header>
4210 1.1 christos _ACEOF
4211 1.1 christos rm -f conftest.$ac_objext
4212 1.1 christos if { (ac_try="$ac_compile"
4213 1.1 christos case "(($ac_try" in
4214 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 1.1 christos *) ac_try_echo=$ac_try;;
4216 1.1 christos esac
4217 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 1.1 christos (eval "$ac_compile") 2>conftest.er1
4219 1.1 christos ac_status=$?
4220 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4221 1.1 christos rm -f conftest.er1
4222 1.1 christos cat conftest.err >&5
4223 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 1.1 christos (exit $ac_status); } && {
4225 1.1 christos test -z "$ac_c_werror_flag" ||
4226 1.1 christos test ! -s conftest.err
4227 1.1 christos } && test -s conftest.$ac_objext; then
4228 1.1 christos eval "$as_ac_Header=yes"
4229 1.1 christos else
4230 1.1 christos echo "$as_me: failed program was:" >&5
4231 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4232 1.1 christos
4233 1.1 christos eval "$as_ac_Header=no"
4234 1.1 christos fi
4235 1.1 christos
4236 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 1.1 christos fi
4238 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4239 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4240 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4241 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 1.1 christos cat >>confdefs.h <<_ACEOF
4243 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 1.1 christos _ACEOF
4245 1.1 christos
4246 1.1 christos fi
4247 1.1 christos
4248 1.1 christos done
4249 1.1 christos
4250 1.1 christos if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4251 1.1 christos #
4252 1.1 christos # The simple test didn't work.
4253 1.1 christos # Do we need to include <net/if.h> first?
4254 1.1 christos # Unset ac_cv_header_netinet_if_ether_h so we don't
4255 1.1 christos # treat the previous failure as a cached value and
4256 1.1 christos # suppress the next test.
4257 1.1 christos #
4258 1.1 christos { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4259 1.1 christos echo "$as_me: Rechecking with some additional includes" >&6;}
4260 1.1 christos unset ac_cv_header_netinet_if_ether_h
4261 1.1 christos
4262 1.1 christos for ac_header in netinet/if_ether.h
4263 1.1 christos do
4264 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4266 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4267 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4268 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4269 1.1 christos else
4270 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4271 1.1 christos /* confdefs.h. */
4272 1.1 christos _ACEOF
4273 1.1 christos cat confdefs.h >>conftest.$ac_ext
4274 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4275 1.1 christos /* end confdefs.h. */
4276 1.1 christos #include <sys/types.h>
4277 1.1 christos #include <sys/socket.h>
4278 1.1 christos #include <netinet/in.h>
4279 1.1 christos struct mbuf;
4280 1.1 christos struct rtentry;
4281 1.1 christos #include <net/if.h>
4282 1.1 christos
4283 1.1 christos #include <$ac_header>
4284 1.1 christos _ACEOF
4285 1.1 christos rm -f conftest.$ac_objext
4286 1.1 christos if { (ac_try="$ac_compile"
4287 1.1 christos case "(($ac_try" in
4288 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 1.1 christos *) ac_try_echo=$ac_try;;
4290 1.1 christos esac
4291 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 1.1 christos (eval "$ac_compile") 2>conftest.er1
4293 1.1 christos ac_status=$?
4294 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4295 1.1 christos rm -f conftest.er1
4296 1.1 christos cat conftest.err >&5
4297 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 1.1 christos (exit $ac_status); } && {
4299 1.1 christos test -z "$ac_c_werror_flag" ||
4300 1.1 christos test ! -s conftest.err
4301 1.1 christos } && test -s conftest.$ac_objext; then
4302 1.1 christos eval "$as_ac_Header=yes"
4303 1.1 christos else
4304 1.1 christos echo "$as_me: failed program was:" >&5
4305 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4306 1.1 christos
4307 1.1 christos eval "$as_ac_Header=no"
4308 1.1 christos fi
4309 1.1 christos
4310 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 1.1 christos fi
4312 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4313 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4314 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4315 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 1.1 christos cat >>confdefs.h <<_ACEOF
4317 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 1.1 christos _ACEOF
4319 1.1 christos
4320 1.1 christos fi
4321 1.1 christos
4322 1.1 christos done
4323 1.1 christos
4324 1.1 christos fi
4325 1.1 christos
4326 1.1 christos { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4327 1.1 christos echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4328 1.1 christos if test "${ac_cv_header_time+set}" = set; then
4329 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4330 1.1 christos else
4331 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4332 1.1 christos /* confdefs.h. */
4333 1.1 christos _ACEOF
4334 1.1 christos cat confdefs.h >>conftest.$ac_ext
4335 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4336 1.1 christos /* end confdefs.h. */
4337 1.1 christos #include <sys/types.h>
4338 1.1 christos #include <sys/time.h>
4339 1.1 christos #include <time.h>
4340 1.1 christos
4341 1.1 christos int
4342 1.1 christos main ()
4343 1.1 christos {
4344 1.1 christos if ((struct tm *) 0)
4345 1.1 christos return 0;
4346 1.1 christos ;
4347 1.1 christos return 0;
4348 1.1 christos }
4349 1.1 christos _ACEOF
4350 1.1 christos rm -f conftest.$ac_objext
4351 1.1 christos if { (ac_try="$ac_compile"
4352 1.1 christos case "(($ac_try" in
4353 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 1.1 christos *) ac_try_echo=$ac_try;;
4355 1.1 christos esac
4356 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 1.1 christos (eval "$ac_compile") 2>conftest.er1
4358 1.1 christos ac_status=$?
4359 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4360 1.1 christos rm -f conftest.er1
4361 1.1 christos cat conftest.err >&5
4362 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 1.1 christos (exit $ac_status); } && {
4364 1.1 christos test -z "$ac_c_werror_flag" ||
4365 1.1 christos test ! -s conftest.err
4366 1.1 christos } && test -s conftest.$ac_objext; then
4367 1.1 christos ac_cv_header_time=yes
4368 1.1 christos else
4369 1.1 christos echo "$as_me: failed program was:" >&5
4370 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4371 1.1 christos
4372 1.1 christos ac_cv_header_time=no
4373 1.1 christos fi
4374 1.1 christos
4375 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 1.1 christos fi
4377 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4378 1.1 christos echo "${ECHO_T}$ac_cv_header_time" >&6; }
4379 1.1 christos if test $ac_cv_header_time = yes; then
4380 1.1 christos
4381 1.1 christos cat >>confdefs.h <<\_ACEOF
4382 1.1 christos #define TIME_WITH_SYS_TIME 1
4383 1.1 christos _ACEOF
4384 1.1 christos
4385 1.1 christos fi
4386 1.1 christos
4387 1.1 christos
4388 1.1 christos case "$host_os" in
4389 1.1 christos
4390 1.1 christos linux*)
4391 1.1 christos { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4392 1.1 christos echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4393 1.1 christos if test "$cross_compiling" = yes; then
4394 1.1 christos if test "${ac_cv_linux_vers+set}" = set; then
4395 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4396 1.1 christos else
4397 1.1 christos ac_cv_linux_vers=unknown
4398 1.1 christos fi
4399 1.1 christos
4400 1.1 christos else
4401 1.1 christos if test "${ac_cv_linux_vers+set}" = set; then
4402 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4403 1.1 christos else
4404 1.1 christos ac_cv_linux_vers=`uname -r 2>&1 | \
4405 1.1 christos sed -n -e '$s/.* //' -e '$s/\..*//p'`
4406 1.1 christos fi
4407 1.1 christos
4408 1.1 christos fi
4409 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4410 1.1 christos echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4411 1.1 christos if test $ac_cv_linux_vers = unknown ; then
4412 1.1 christos { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4413 1.1 christos echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4414 1.1 christos { (exit 1); exit 1; }; }
4415 1.1 christos fi
4416 1.1 christos if test $ac_cv_linux_vers -lt 2 ; then
4417 1.1 christos { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4418 1.1 christos echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4419 1.1 christos { (exit 1); exit 1; }; }
4420 1.1 christos fi
4421 1.1 christos ;;
4422 1.1 christos
4423 1.1 christos *)
4424 1.1 christos ;;
4425 1.1 christos esac
4426 1.1 christos
4427 1.1 christos
4428 1.1 christos
4429 1.1 christos # Check whether --with-smi was given.
4430 1.1 christos if test "${with_smi+set}" = set; then
4431 1.1 christos withval=$with_smi;
4432 1.1 christos else
4433 1.1 christos with_smi=yes
4434 1.1 christos fi
4435 1.1 christos
4436 1.1 christos
4437 1.1 christos if test "x$with_smi" != "xno" ; then
4438 1.1 christos
4439 1.1 christos for ac_header in smi.h
4440 1.1 christos do
4441 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4444 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4445 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4446 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4447 1.1 christos fi
4448 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4449 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4450 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4451 1.1 christos else
4452 1.1 christos # Is the header compilable?
4453 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4454 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4455 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4456 1.1 christos /* confdefs.h. */
4457 1.1 christos _ACEOF
4458 1.1 christos cat confdefs.h >>conftest.$ac_ext
4459 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4460 1.1 christos /* end confdefs.h. */
4461 1.1 christos $ac_includes_default
4462 1.1 christos #include <$ac_header>
4463 1.1 christos _ACEOF
4464 1.1 christos rm -f conftest.$ac_objext
4465 1.1 christos if { (ac_try="$ac_compile"
4466 1.1 christos case "(($ac_try" in
4467 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 1.1 christos *) ac_try_echo=$ac_try;;
4469 1.1 christos esac
4470 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 1.1 christos (eval "$ac_compile") 2>conftest.er1
4472 1.1 christos ac_status=$?
4473 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4474 1.1 christos rm -f conftest.er1
4475 1.1 christos cat conftest.err >&5
4476 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 1.1 christos (exit $ac_status); } && {
4478 1.1 christos test -z "$ac_c_werror_flag" ||
4479 1.1 christos test ! -s conftest.err
4480 1.1 christos } && test -s conftest.$ac_objext; then
4481 1.1 christos ac_header_compiler=yes
4482 1.1 christos else
4483 1.1 christos echo "$as_me: failed program was:" >&5
4484 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4485 1.1 christos
4486 1.1 christos ac_header_compiler=no
4487 1.1 christos fi
4488 1.1 christos
4489 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4492 1.1 christos
4493 1.1 christos # Is the header present?
4494 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4496 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4497 1.1 christos /* confdefs.h. */
4498 1.1 christos _ACEOF
4499 1.1 christos cat confdefs.h >>conftest.$ac_ext
4500 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4501 1.1 christos /* end confdefs.h. */
4502 1.1 christos #include <$ac_header>
4503 1.1 christos _ACEOF
4504 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4505 1.1 christos case "(($ac_try" in
4506 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 1.1 christos *) ac_try_echo=$ac_try;;
4508 1.1 christos esac
4509 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4511 1.1 christos ac_status=$?
4512 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4513 1.1 christos rm -f conftest.er1
4514 1.1 christos cat conftest.err >&5
4515 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 1.1 christos (exit $ac_status); } >/dev/null && {
4517 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518 1.1 christos test ! -s conftest.err
4519 1.1 christos }; then
4520 1.1 christos ac_header_preproc=yes
4521 1.1 christos else
4522 1.1 christos echo "$as_me: failed program was:" >&5
4523 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4524 1.1 christos
4525 1.1 christos ac_header_preproc=no
4526 1.1 christos fi
4527 1.1 christos
4528 1.1 christos rm -f conftest.err conftest.$ac_ext
4529 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4530 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4531 1.1 christos
4532 1.1 christos # So? What about this header?
4533 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4534 1.1 christos yes:no: )
4535 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4536 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4537 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4538 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4539 1.1 christos ac_header_preproc=yes
4540 1.1 christos ;;
4541 1.1 christos no:yes:* )
4542 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4543 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4544 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4545 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4546 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4547 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4548 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4549 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4550 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4552 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4553 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4554 1.1 christos
4555 1.1 christos ;;
4556 1.1 christos esac
4557 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4559 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4560 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4561 1.1 christos else
4562 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
4563 1.1 christos fi
4564 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4565 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4566 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
4567 1.1 christos
4568 1.1 christos fi
4569 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 1.1 christos cat >>confdefs.h <<_ACEOF
4571 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4572 1.1 christos _ACEOF
4573 1.1 christos
4574 1.1 christos fi
4575 1.1 christos
4576 1.1 christos done
4577 1.1 christos
4578 1.1 christos
4579 1.1 christos { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4580 1.1 christos echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4581 1.1 christos if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4582 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4583 1.1 christos else
4584 1.1 christos ac_check_lib_save_LIBS=$LIBS
4585 1.1 christos LIBS="-lsmi $LIBS"
4586 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4587 1.1 christos /* confdefs.h. */
4588 1.1 christos _ACEOF
4589 1.1 christos cat confdefs.h >>conftest.$ac_ext
4590 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4591 1.1 christos /* end confdefs.h. */
4592 1.1 christos
4593 1.1 christos /* Override any GCC internal prototype to avoid an error.
4594 1.1 christos Use char because int might match the return type of a GCC
4595 1.1 christos builtin and then its argument prototype would still apply. */
4596 1.1 christos #ifdef __cplusplus
4597 1.1 christos extern "C"
4598 1.1 christos #endif
4599 1.1 christos char smiInit ();
4600 1.1 christos int
4601 1.1 christos main ()
4602 1.1 christos {
4603 1.1 christos return smiInit ();
4604 1.1 christos ;
4605 1.1 christos return 0;
4606 1.1 christos }
4607 1.1 christos _ACEOF
4608 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4609 1.1 christos if { (ac_try="$ac_link"
4610 1.1 christos case "(($ac_try" in
4611 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 1.1 christos *) ac_try_echo=$ac_try;;
4613 1.1 christos esac
4614 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 1.1 christos (eval "$ac_link") 2>conftest.er1
4616 1.1 christos ac_status=$?
4617 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
4618 1.1 christos rm -f conftest.er1
4619 1.1 christos cat conftest.err >&5
4620 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 1.1 christos (exit $ac_status); } && {
4622 1.1 christos test -z "$ac_c_werror_flag" ||
4623 1.1 christos test ! -s conftest.err
4624 1.1 christos } && test -s conftest$ac_exeext &&
4625 1.1 christos $as_test_x conftest$ac_exeext; then
4626 1.1 christos ac_cv_lib_smi_smiInit=yes
4627 1.1 christos else
4628 1.1 christos echo "$as_me: failed program was:" >&5
4629 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4630 1.1 christos
4631 1.1 christos ac_cv_lib_smi_smiInit=no
4632 1.1 christos fi
4633 1.1 christos
4634 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4635 1.1 christos conftest$ac_exeext conftest.$ac_ext
4636 1.1 christos LIBS=$ac_check_lib_save_LIBS
4637 1.1 christos fi
4638 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4639 1.1 christos echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4640 1.1 christos if test $ac_cv_lib_smi_smiInit = yes; then
4641 1.1 christos cat >>confdefs.h <<_ACEOF
4642 1.1 christos #define HAVE_LIBSMI 1
4643 1.1 christos _ACEOF
4644 1.1 christos
4645 1.1 christos LIBS="-lsmi $LIBS"
4646 1.1 christos
4647 1.1 christos fi
4648 1.1 christos
4649 1.1 christos if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4650 1.1 christos then
4651 1.1 christos { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4652 1.1 christos echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4653 1.1 christos if test "$cross_compiling" = yes; then
4654 1.1 christos { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4655 1.1 christos echo "${ECHO_T}not when cross-compiling" >&6; }
4656 1.1 christos libsmi=no
4657 1.1 christos
4658 1.1 christos else
4659 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4660 1.1 christos /* confdefs.h. */
4661 1.1 christos _ACEOF
4662 1.1 christos cat confdefs.h >>conftest.$ac_ext
4663 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4664 1.1 christos /* end confdefs.h. */
4665 1.1 christos /* libsmi available check */
4666 1.1 christos #include <smi.h>
4667 1.1 christos main()
4668 1.1 christos {
4669 1.1 christos int current, revision, age, n;
4670 1.1 christos const int required = 2;
4671 1.1 christos if (smiInit(""))
4672 1.1 christos exit(1);
4673 1.1 christos if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4674 1.1 christos exit(2);
4675 1.1 christos n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
4676 1.1 christos if (n != 3)
4677 1.1 christos exit(3);
4678 1.1 christos if (required < current - age || required > current)
4679 1.1 christos exit(4);
4680 1.1 christos exit(0);
4681 1.1 christos }
4682 1.1 christos
4683 1.1 christos _ACEOF
4684 1.1 christos rm -f conftest$ac_exeext
4685 1.1 christos if { (ac_try="$ac_link"
4686 1.1 christos case "(($ac_try" in
4687 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 1.1 christos *) ac_try_echo=$ac_try;;
4689 1.1 christos esac
4690 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 1.1 christos (eval "$ac_link") 2>&5
4692 1.1 christos ac_status=$?
4693 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 1.1 christos { (case "(($ac_try" in
4696 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 1.1 christos *) ac_try_echo=$ac_try;;
4698 1.1 christos esac
4699 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 1.1 christos (eval "$ac_try") 2>&5
4701 1.1 christos ac_status=$?
4702 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 1.1 christos (exit $ac_status); }; }; then
4704 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
4705 1.1 christos echo "${ECHO_T}yes" >&6; }
4706 1.1 christos cat >>confdefs.h <<\_ACEOF
4707 1.1 christos #define LIBSMI 1
4708 1.1 christos _ACEOF
4709 1.1 christos
4710 1.1 christos libsmi=yes
4711 1.1 christos else
4712 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
4713 1.1 christos echo "$as_me: failed program was:" >&5
4714 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4715 1.1 christos
4716 1.1 christos ( exit $ac_status )
4717 1.1 christos case $? in
4718 1.1 christos 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4719 1.1 christos echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4720 1.1 christos 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4721 1.1 christos echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4722 1.1 christos 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4723 1.1 christos echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4724 1.1 christos 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4725 1.1 christos echo "${ECHO_T}no - too old" >&6; } ;;
4726 1.1 christos *) { echo "$as_me:$LINENO: result: no" >&5
4727 1.1 christos echo "${ECHO_T}no" >&6; } ;;
4728 1.1 christos esac
4729 1.1 christos libsmi=no
4730 1.1 christos fi
4731 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 1.1 christos fi
4733 1.1 christos
4734 1.1 christos
4735 1.1 christos fi
4736 1.1 christos fi
4737 1.1 christos
4738 1.1 christos { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4739 1.1 christos echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4740 1.1 christos # Check whether --enable-smb was given.
4741 1.1 christos if test "${enable_smb+set}" = set; then
4742 1.1 christos enableval=$enable_smb;
4743 1.1 christos else
4744 1.1 christos enableval=yes
4745 1.1 christos fi
4746 1.1 christos
4747 1.1 christos case "$enableval" in
4748 1.1 christos yes) { echo "$as_me:$LINENO: result: yes" >&5
4749 1.1 christos echo "${ECHO_T}yes" >&6; }
4750 1.1 christos { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4751 1.1 christos echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4752 1.1 christos cat >>confdefs.h <<\_ACEOF
4753 1.1 christos #define TCPDUMP_DO_SMB 1
4754 1.1 christos _ACEOF
4755 1.1 christos
4756 1.1 christos LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4757 1.1 christos ;;
4758 1.1 christos *) { echo "$as_me:$LINENO: result: no" >&5
4759 1.1 christos echo "${ECHO_T}no" >&6; }
4760 1.1 christos ;;
4761 1.1 christos esac
4762 1.1 christos
4763 1.1 christos
4764 1.1 christos # Check whether --with-user was given.
4765 1.1 christos if test "${with_user+set}" = set; then
4766 1.1 christos withval=$with_user;
4767 1.1 christos fi
4768 1.1 christos
4769 1.1 christos { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4770 1.1 christos echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4771 1.1 christos if test ! -z "$with_user" ; then
4772 1.1 christos cat >>confdefs.h <<_ACEOF
4773 1.1 christos #define WITH_USER "$withval"
4774 1.1 christos _ACEOF
4775 1.1 christos
4776 1.1 christos { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4777 1.1 christos echo "${ECHO_T}to \"$withval\"" >&6; }
4778 1.1 christos else
4779 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
4780 1.1 christos echo "${ECHO_T}no" >&6; }
4781 1.1 christos fi
4782 1.1 christos
4783 1.1 christos
4784 1.1 christos # Check whether --with-chroot was given.
4785 1.1 christos if test "${with_chroot+set}" = set; then
4786 1.1 christos withval=$with_chroot;
4787 1.1 christos fi
4788 1.1 christos
4789 1.1 christos { echo "$as_me:$LINENO: checking whether to chroot" >&5
4790 1.1 christos echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4791 1.1 christos if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4792 1.1 christos cat >>confdefs.h <<_ACEOF
4793 1.1 christos #define WITH_CHROOT "$withval"
4794 1.1 christos _ACEOF
4795 1.1 christos
4796 1.1 christos { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4797 1.1 christos echo "${ECHO_T}to \"$withval\"" >&6; }
4798 1.1 christos else
4799 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
4800 1.1 christos echo "${ECHO_T}no" >&6; }
4801 1.1 christos fi
4802 1.1 christos
4803 1.1 christos { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4804 1.1 christos echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4805 1.1 christos # Check whether --enable-ipv6 was given.
4806 1.1 christos if test "${enable_ipv6+set}" = set; then
4807 1.1 christos enableval=$enable_ipv6; case "$enableval" in
4808 1.1 christos yes) { echo "$as_me:$LINENO: result: yes" >&5
4809 1.1 christos echo "${ECHO_T}yes" >&6; }
4810 1.1 christos LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4811 1.1 christos cat >>confdefs.h <<\_ACEOF
4812 1.1 christos #define INET6 1
4813 1.1 christos _ACEOF
4814 1.1 christos
4815 1.1 christos ipv6=yes
4816 1.1 christos ;;
4817 1.1 christos *)
4818 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
4819 1.1 christos echo "${ECHO_T}no" >&6; }
4820 1.1 christos ipv6=no
4821 1.1 christos ;;
4822 1.1 christos esac
4823 1.1 christos else
4824 1.1 christos if test "$cross_compiling" = yes; then
4825 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
4826 1.1 christos echo "${ECHO_T}no" >&6; }
4827 1.1 christos ipv6=no
4828 1.1 christos
4829 1.1 christos else
4830 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4831 1.1 christos /* confdefs.h. */
4832 1.1 christos _ACEOF
4833 1.1 christos cat confdefs.h >>conftest.$ac_ext
4834 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4835 1.1 christos /* end confdefs.h. */
4836 1.1 christos /* AF_INET6 available check */
4837 1.1 christos #include <sys/types.h>
4838 1.1 christos #include <sys/socket.h>
4839 1.1 christos main()
4840 1.1 christos {
4841 1.1 christos if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4842 1.1 christos exit(1);
4843 1.1 christos else
4844 1.1 christos exit(0);
4845 1.1 christos }
4846 1.1 christos
4847 1.1 christos _ACEOF
4848 1.1 christos rm -f conftest$ac_exeext
4849 1.1 christos if { (ac_try="$ac_link"
4850 1.1 christos case "(($ac_try" in
4851 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 1.1 christos *) ac_try_echo=$ac_try;;
4853 1.1 christos esac
4854 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 1.1 christos (eval "$ac_link") 2>&5
4856 1.1 christos ac_status=$?
4857 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 1.1 christos { (case "(($ac_try" in
4860 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 1.1 christos *) ac_try_echo=$ac_try;;
4862 1.1 christos esac
4863 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 1.1 christos (eval "$ac_try") 2>&5
4865 1.1 christos ac_status=$?
4866 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 1.1 christos (exit $ac_status); }; }; then
4868 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
4869 1.1 christos echo "${ECHO_T}yes" >&6; }
4870 1.1 christos LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4871 1.1 christos cat >>confdefs.h <<\_ACEOF
4872 1.1 christos #define INET6 1
4873 1.1 christos _ACEOF
4874 1.1 christos
4875 1.1 christos ipv6=yes
4876 1.1 christos else
4877 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
4878 1.1 christos echo "$as_me: failed program was:" >&5
4879 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
4880 1.1 christos
4881 1.1 christos ( exit $ac_status )
4882 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
4883 1.1 christos echo "${ECHO_T}no" >&6; }
4884 1.1 christos ipv6=no
4885 1.1 christos fi
4886 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 1.1 christos fi
4888 1.1 christos
4889 1.1 christos
4890 1.1 christos fi
4891 1.1 christos
4892 1.1 christos
4893 1.1 christos ipv6type=unknown
4894 1.1 christos ipv6lib=none
4895 1.1 christos ipv6trylibc=no
4896 1.1 christos
4897 1.1 christos if test "$ipv6" = "yes"; then
4898 1.1 christos { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4899 1.1 christos echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4900 1.1 christos for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4901 1.1 christos case $i in
4902 1.1 christos inria)
4903 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4904 1.1 christos /* confdefs.h. */
4905 1.1 christos _ACEOF
4906 1.1 christos cat confdefs.h >>conftest.$ac_ext
4907 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4908 1.1 christos /* end confdefs.h. */
4909 1.1 christos #include <netinet/in.h>
4910 1.1 christos #ifdef IPV6_INRIA_VERSION
4911 1.1 christos yes
4912 1.1 christos #endif
4913 1.1 christos _ACEOF
4914 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
4916 1.1 christos ipv6type=$i;
4917 1.1 christos CFLAGS="-DINET6 $CFLAGS"
4918 1.1 christos fi
4919 1.1 christos rm -f -r conftest*
4920 1.1 christos
4921 1.1 christos ;;
4922 1.1 christos kame)
4923 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4924 1.1 christos /* confdefs.h. */
4925 1.1 christos _ACEOF
4926 1.1 christos cat confdefs.h >>conftest.$ac_ext
4927 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4928 1.1 christos /* end confdefs.h. */
4929 1.1 christos #include <netinet/in.h>
4930 1.1 christos #ifdef __KAME__
4931 1.1 christos yes
4932 1.1 christos #endif
4933 1.1 christos _ACEOF
4934 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
4936 1.1 christos ipv6type=$i;
4937 1.1 christos ipv6lib=inet6;
4938 1.1 christos ipv6libdir=/usr/local/v6/lib;
4939 1.1 christos ipv6trylibc=yes;
4940 1.1 christos CFLAGS="-DINET6 $CFLAGS"
4941 1.1 christos fi
4942 1.1 christos rm -f -r conftest*
4943 1.1 christos
4944 1.1 christos ;;
4945 1.1 christos linux-glibc)
4946 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4947 1.1 christos /* confdefs.h. */
4948 1.1 christos _ACEOF
4949 1.1 christos cat confdefs.h >>conftest.$ac_ext
4950 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4951 1.1 christos /* end confdefs.h. */
4952 1.1 christos #include <features.h>
4953 1.1 christos #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4954 1.1 christos yes
4955 1.1 christos #endif
4956 1.1 christos _ACEOF
4957 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
4959 1.1 christos ipv6type=$i;
4960 1.1 christos CFLAGS="-DINET6 $CFLAGS"
4961 1.1 christos fi
4962 1.1 christos rm -f -r conftest*
4963 1.1 christos
4964 1.1 christos ;;
4965 1.1 christos linux-libinet6)
4966 1.1 christos if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4967 1.1 christos ipv6type=$i
4968 1.1 christos ipv6lib=inet6
4969 1.1 christos ipv6libdir=/usr/inet6/lib
4970 1.1 christos ipv6trylibc=yes;
4971 1.1 christos CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4972 1.1 christos fi
4973 1.1 christos ;;
4974 1.1 christos toshiba)
4975 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4976 1.1 christos /* confdefs.h. */
4977 1.1 christos _ACEOF
4978 1.1 christos cat confdefs.h >>conftest.$ac_ext
4979 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
4980 1.1 christos /* end confdefs.h. */
4981 1.1 christos #include <sys/param.h>
4982 1.1 christos #ifdef _TOSHIBA_INET6
4983 1.1 christos yes
4984 1.1 christos #endif
4985 1.1 christos _ACEOF
4986 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
4988 1.1 christos ipv6type=$i;
4989 1.1 christos ipv6lib=inet6;
4990 1.1 christos ipv6libdir=/usr/local/v6/lib;
4991 1.1 christos CFLAGS="-DINET6 $CFLAGS"
4992 1.1 christos fi
4993 1.1 christos rm -f -r conftest*
4994 1.1 christos
4995 1.1 christos ;;
4996 1.1 christos v6d)
4997 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4998 1.1 christos /* confdefs.h. */
4999 1.1 christos _ACEOF
5000 1.1 christos cat confdefs.h >>conftest.$ac_ext
5001 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5002 1.1 christos /* end confdefs.h. */
5003 1.1 christos #include </usr/local/v6/include/sys/v6config.h>
5004 1.1 christos #ifdef __V6D__
5005 1.1 christos yes
5006 1.1 christos #endif
5007 1.1 christos _ACEOF
5008 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
5010 1.1 christos ipv6type=$i;
5011 1.1 christos ipv6lib=v6;
5012 1.1 christos ipv6libdir=/usr/local/v6/lib;
5013 1.1 christos CFLAGS="-I/usr/local/v6/include $CFLAGS"
5014 1.1 christos fi
5015 1.1 christos rm -f -r conftest*
5016 1.1 christos
5017 1.1 christos ;;
5018 1.1 christos zeta)
5019 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5020 1.1 christos /* confdefs.h. */
5021 1.1 christos _ACEOF
5022 1.1 christos cat confdefs.h >>conftest.$ac_ext
5023 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5024 1.1 christos /* end confdefs.h. */
5025 1.1 christos #include <sys/param.h>
5026 1.1 christos #ifdef _ZETA_MINAMI_INET6
5027 1.1 christos yes
5028 1.1 christos #endif
5029 1.1 christos _ACEOF
5030 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
5032 1.1 christos ipv6type=$i;
5033 1.1 christos ipv6lib=inet6;
5034 1.1 christos ipv6libdir=/usr/local/v6/lib;
5035 1.1 christos CFLAGS="-DINET6 $CFLAGS"
5036 1.1 christos fi
5037 1.1 christos rm -f -r conftest*
5038 1.1 christos
5039 1.1 christos ;;
5040 1.1 christos esac
5041 1.1 christos if test "$ipv6type" != "unknown"; then
5042 1.1 christos break
5043 1.1 christos fi
5044 1.1 christos done
5045 1.1 christos { echo "$as_me:$LINENO: result: $ipv6type" >&5
5046 1.1 christos echo "${ECHO_T}$ipv6type" >&6; }
5047 1.1 christos fi
5048 1.1 christos
5049 1.1 christos if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5050 1.1 christos if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5051 1.1 christos LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5052 1.1 christos echo "You have $ipv6lib library, using it"
5053 1.1 christos else
5054 1.1 christos if test "$ipv6trylibc" = "yes"; then
5055 1.1 christos echo "You do not have $ipv6lib library, using libc"
5056 1.1 christos else
5057 1.1 christos echo 'Fatal: no $ipv6lib library found. cannot continue.'
5058 1.1 christos echo "You need to fetch lib$ipv6lib.a from appropriate"
5059 1.1 christos echo 'ipv6 kit and compile beforehand.'
5060 1.1 christos exit 1
5061 1.1 christos fi
5062 1.1 christos fi
5063 1.1 christos fi
5064 1.1 christos
5065 1.1 christos
5066 1.1 christos if test "$ipv6" = "yes"; then
5067 1.1 christos #
5068 1.1 christos # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5069 1.1 christos # function in libc; there are "ngetaddrinfo()" and
5070 1.1 christos # "ogetaddrinfo()" functions, and <netdb.h> #defines
5071 1.1 christos # "getaddrinfo" to be either "ngetaddrinfo" or
5072 1.1 christos # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5073 1.1 christos # or _XOPEN_SOURCE_EXTENDED are defined or not.
5074 1.1 christos #
5075 1.1 christos # So this test doesn't work on Tru64 5.1, and possibly
5076 1.1 christos # on other 5.x releases. This causes the configure
5077 1.1 christos # script to become confused, and results in libpcap
5078 1.1 christos # being unbuildable.
5079 1.1 christos #
5080 1.1 christos { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5081 1.1 christos echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5082 1.1 christos if test "${ac_cv_search_getaddrinfo+set}" = set; then
5083 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5084 1.1 christos else
5085 1.1 christos ac_func_search_save_LIBS=$LIBS
5086 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5087 1.1 christos /* confdefs.h. */
5088 1.1 christos _ACEOF
5089 1.1 christos cat confdefs.h >>conftest.$ac_ext
5090 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5091 1.1 christos /* end confdefs.h. */
5092 1.1 christos
5093 1.1 christos /* Override any GCC internal prototype to avoid an error.
5094 1.1 christos Use char because int might match the return type of a GCC
5095 1.1 christos builtin and then its argument prototype would still apply. */
5096 1.1 christos #ifdef __cplusplus
5097 1.1 christos extern "C"
5098 1.1 christos #endif
5099 1.1 christos char getaddrinfo ();
5100 1.1 christos int
5101 1.1 christos main ()
5102 1.1 christos {
5103 1.1 christos return getaddrinfo ();
5104 1.1 christos ;
5105 1.1 christos return 0;
5106 1.1 christos }
5107 1.1 christos _ACEOF
5108 1.1 christos for ac_lib in '' socket; do
5109 1.1 christos if test -z "$ac_lib"; then
5110 1.1 christos ac_res="none required"
5111 1.1 christos else
5112 1.1 christos ac_res=-l$ac_lib
5113 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5114 1.1 christos fi
5115 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
5116 1.1 christos if { (ac_try="$ac_link"
5117 1.1 christos case "(($ac_try" in
5118 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 1.1 christos *) ac_try_echo=$ac_try;;
5120 1.1 christos esac
5121 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 1.1 christos (eval "$ac_link") 2>conftest.er1
5123 1.1 christos ac_status=$?
5124 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5125 1.1 christos rm -f conftest.er1
5126 1.1 christos cat conftest.err >&5
5127 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 1.1 christos (exit $ac_status); } && {
5129 1.1 christos test -z "$ac_c_werror_flag" ||
5130 1.1 christos test ! -s conftest.err
5131 1.1 christos } && test -s conftest$ac_exeext &&
5132 1.1 christos $as_test_x conftest$ac_exeext; then
5133 1.1 christos ac_cv_search_getaddrinfo=$ac_res
5134 1.1 christos else
5135 1.1 christos echo "$as_me: failed program was:" >&5
5136 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5137 1.1 christos
5138 1.1 christos
5139 1.1 christos fi
5140 1.1 christos
5141 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5142 1.1 christos conftest$ac_exeext
5143 1.1 christos if test "${ac_cv_search_getaddrinfo+set}" = set; then
5144 1.1 christos break
5145 1.1 christos fi
5146 1.1 christos done
5147 1.1 christos if test "${ac_cv_search_getaddrinfo+set}" = set; then
5148 1.1 christos :
5149 1.1 christos else
5150 1.1 christos ac_cv_search_getaddrinfo=no
5151 1.1 christos fi
5152 1.1 christos rm conftest.$ac_ext
5153 1.1 christos LIBS=$ac_func_search_save_LIBS
5154 1.1 christos fi
5155 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5156 1.1 christos echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5157 1.1 christos ac_res=$ac_cv_search_getaddrinfo
5158 1.1 christos if test "$ac_res" != no; then
5159 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5160 1.1 christos { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5161 1.1 christos echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5162 1.1 christos if test "${td_cv_buggygetaddrinfo+set}" = set; then
5163 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5164 1.1 christos else
5165 1.1 christos if test "$cross_compiling" = yes; then
5166 1.1 christos td_cv_buggygetaddrinfo=yes
5167 1.1 christos else
5168 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5169 1.1 christos /* confdefs.h. */
5170 1.1 christos _ACEOF
5171 1.1 christos cat confdefs.h >>conftest.$ac_ext
5172 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5173 1.1 christos /* end confdefs.h. */
5174 1.1 christos
5175 1.1 christos #include <sys/types.h>
5176 1.1 christos #include <netdb.h>
5177 1.1 christos #include <string.h>
5178 1.1 christos #include <sys/socket.h>
5179 1.1 christos #include <netinet/in.h>
5180 1.1 christos
5181 1.1 christos main()
5182 1.1 christos {
5183 1.1 christos int passive, gaierr, inet4 = 0, inet6 = 0;
5184 1.1 christos struct addrinfo hints, *ai, *aitop;
5185 1.1 christos char straddr[INET6_ADDRSTRLEN], strport[16];
5186 1.1 christos
5187 1.1 christos for (passive = 0; passive <= 1; passive++) {
5188 1.1 christos memset(&hints, 0, sizeof(hints));
5189 1.1 christos hints.ai_family = AF_UNSPEC;
5190 1.1 christos hints.ai_flags = passive ? AI_PASSIVE : 0;
5191 1.1 christos hints.ai_socktype = SOCK_STREAM;
5192 1.1 christos hints.ai_protocol = IPPROTO_TCP;
5193 1.1 christos if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5194 1.1 christos (void)gai_strerror(gaierr);
5195 1.1 christos goto bad;
5196 1.1 christos }
5197 1.1 christos for (ai = aitop; ai; ai = ai->ai_next) {
5198 1.1 christos if (ai->ai_addr == NULL ||
5199 1.1 christos ai->ai_addrlen == 0 ||
5200 1.1 christos getnameinfo(ai->ai_addr, ai->ai_addrlen,
5201 1.1 christos straddr, sizeof(straddr), strport, sizeof(strport),
5202 1.1 christos NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5203 1.1 christos goto bad;
5204 1.1 christos }
5205 1.1 christos switch (ai->ai_family) {
5206 1.1 christos case AF_INET:
5207 1.1 christos if (strcmp(strport, "54321") != 0) {
5208 1.1 christos goto bad;
5209 1.1 christos }
5210 1.1 christos if (passive) {
5211 1.1 christos if (strcmp(straddr, "0.0.0.0") != 0) {
5212 1.1 christos goto bad;
5213 1.1 christos }
5214 1.1 christos } else {
5215 1.1 christos if (strcmp(straddr, "127.0.0.1") != 0) {
5216 1.1 christos goto bad;
5217 1.1 christos }
5218 1.1 christos }
5219 1.1 christos inet4++;
5220 1.1 christos break;
5221 1.1 christos case AF_INET6:
5222 1.1 christos if (strcmp(strport, "54321") != 0) {
5223 1.1 christos goto bad;
5224 1.1 christos }
5225 1.1 christos if (passive) {
5226 1.1 christos if (strcmp(straddr, "::") != 0) {
5227 1.1 christos goto bad;
5228 1.1 christos }
5229 1.1 christos } else {
5230 1.1 christos if (strcmp(straddr, "::1") != 0) {
5231 1.1 christos goto bad;
5232 1.1 christos }
5233 1.1 christos }
5234 1.1 christos inet6++;
5235 1.1 christos break;
5236 1.1 christos case AF_UNSPEC:
5237 1.1 christos goto bad;
5238 1.1 christos break;
5239 1.1 christos #ifdef AF_UNIX
5240 1.1 christos case AF_UNIX:
5241 1.1 christos #else
5242 1.1 christos #ifdef AF_LOCAL
5243 1.1 christos case AF_LOCAL:
5244 1.1 christos #endif
5245 1.1 christos #endif
5246 1.1 christos default:
5247 1.1 christos /* another family support? */
5248 1.1 christos break;
5249 1.1 christos }
5250 1.1 christos }
5251 1.1 christos }
5252 1.1 christos
5253 1.1 christos /* supported family should be 2, unsupported family should be 0 */
5254 1.1 christos if (!(inet4 == 0 || inet4 == 2))
5255 1.1 christos goto bad;
5256 1.1 christos if (!(inet6 == 0 || inet6 == 2))
5257 1.1 christos goto bad;
5258 1.1 christos
5259 1.1 christos if (aitop)
5260 1.1 christos freeaddrinfo(aitop);
5261 1.1 christos exit(0);
5262 1.1 christos
5263 1.1 christos bad:
5264 1.1 christos if (aitop)
5265 1.1 christos freeaddrinfo(aitop);
5266 1.1 christos exit(1);
5267 1.1 christos }
5268 1.1 christos
5269 1.1 christos _ACEOF
5270 1.1 christos rm -f conftest$ac_exeext
5271 1.1 christos if { (ac_try="$ac_link"
5272 1.1 christos case "(($ac_try" in
5273 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 1.1 christos *) ac_try_echo=$ac_try;;
5275 1.1 christos esac
5276 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 1.1 christos (eval "$ac_link") 2>&5
5278 1.1 christos ac_status=$?
5279 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281 1.1 christos { (case "(($ac_try" in
5282 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 1.1 christos *) ac_try_echo=$ac_try;;
5284 1.1 christos esac
5285 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 1.1 christos (eval "$ac_try") 2>&5
5287 1.1 christos ac_status=$?
5288 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 1.1 christos (exit $ac_status); }; }; then
5290 1.1 christos td_cv_buggygetaddrinfo=no
5291 1.1 christos else
5292 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
5293 1.1 christos echo "$as_me: failed program was:" >&5
5294 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5295 1.1 christos
5296 1.1 christos ( exit $ac_status )
5297 1.1 christos td_cv_buggygetaddrinfo=yes
5298 1.1 christos fi
5299 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 1.1 christos fi
5301 1.1 christos
5302 1.1 christos
5303 1.1 christos fi
5304 1.1 christos
5305 1.1 christos if test "$td_cv_buggygetaddrinfo" = no; then
5306 1.1 christos { echo "$as_me:$LINENO: result: good" >&5
5307 1.1 christos echo "${ECHO_T}good" >&6; }
5308 1.1 christos else
5309 1.1 christos { echo "$as_me:$LINENO: result: buggy" >&5
5310 1.1 christos echo "${ECHO_T}buggy" >&6; }
5311 1.1 christos fi
5312 1.1 christos
5313 1.1 christos if test "$td_cv_buggygetaddrinfo" = "yes"; then
5314 1.1 christos #
5315 1.1 christos # XXX - it doesn't appear that "ipv6type" can ever be
5316 1.1 christos # set to "linux". Should this be testing for
5317 1.1 christos # "linux-glibc", or for that *or* "linux-libinet6"?
5318 1.1 christos # If the latter, note that "linux-libinet6" is also
5319 1.1 christos # the type given to some non-Linux OSes.
5320 1.1 christos #
5321 1.1 christos if test "$ipv6type" != "linux"; then
5322 1.1 christos echo 'Fatal: You must get working getaddrinfo() function.'
5323 1.1 christos echo ' or you can specify "--disable-ipv6"'.
5324 1.1 christos exit 1
5325 1.1 christos else
5326 1.1 christos echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5327 1.1 christos echo ' Better upgrade your system library to newest version'
5328 1.1 christos echo ' of GNU C library (aka glibc).'
5329 1.1 christos fi
5330 1.1 christos fi
5331 1.1 christos
5332 1.1 christos fi
5333 1.1 christos
5334 1.1 christos
5335 1.1 christos for ac_func in getnameinfo
5336 1.1 christos do
5337 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
5339 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5340 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5341 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5342 1.1 christos else
5343 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5344 1.1 christos /* confdefs.h. */
5345 1.1 christos _ACEOF
5346 1.1 christos cat confdefs.h >>conftest.$ac_ext
5347 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5348 1.1 christos /* end confdefs.h. */
5349 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5350 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
5351 1.1 christos #define $ac_func innocuous_$ac_func
5352 1.1 christos
5353 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
5354 1.1 christos which can conflict with char $ac_func (); below.
5355 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356 1.1 christos <limits.h> exists even on freestanding compilers. */
5357 1.1 christos
5358 1.1 christos #ifdef __STDC__
5359 1.1 christos # include <limits.h>
5360 1.1 christos #else
5361 1.1 christos # include <assert.h>
5362 1.1 christos #endif
5363 1.1 christos
5364 1.1 christos #undef $ac_func
5365 1.1 christos
5366 1.1 christos /* Override any GCC internal prototype to avoid an error.
5367 1.1 christos Use char because int might match the return type of a GCC
5368 1.1 christos builtin and then its argument prototype would still apply. */
5369 1.1 christos #ifdef __cplusplus
5370 1.1 christos extern "C"
5371 1.1 christos #endif
5372 1.1 christos char $ac_func ();
5373 1.1 christos /* The GNU C library defines this for functions which it implements
5374 1.1 christos to always fail with ENOSYS. Some functions are actually named
5375 1.1 christos something starting with __ and the normal name is an alias. */
5376 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
5377 1.1 christos choke me
5378 1.1 christos #endif
5379 1.1 christos
5380 1.1 christos int
5381 1.1 christos main ()
5382 1.1 christos {
5383 1.1 christos return $ac_func ();
5384 1.1 christos ;
5385 1.1 christos return 0;
5386 1.1 christos }
5387 1.1 christos _ACEOF
5388 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
5389 1.1 christos if { (ac_try="$ac_link"
5390 1.1 christos case "(($ac_try" in
5391 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 1.1 christos *) ac_try_echo=$ac_try;;
5393 1.1 christos esac
5394 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 1.1 christos (eval "$ac_link") 2>conftest.er1
5396 1.1 christos ac_status=$?
5397 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5398 1.1 christos rm -f conftest.er1
5399 1.1 christos cat conftest.err >&5
5400 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 1.1 christos (exit $ac_status); } && {
5402 1.1 christos test -z "$ac_c_werror_flag" ||
5403 1.1 christos test ! -s conftest.err
5404 1.1 christos } && test -s conftest$ac_exeext &&
5405 1.1 christos $as_test_x conftest$ac_exeext; then
5406 1.1 christos eval "$as_ac_var=yes"
5407 1.1 christos else
5408 1.1 christos echo "$as_me: failed program was:" >&5
5409 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5410 1.1 christos
5411 1.1 christos eval "$as_ac_var=no"
5412 1.1 christos fi
5413 1.1 christos
5414 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415 1.1 christos conftest$ac_exeext conftest.$ac_ext
5416 1.1 christos fi
5417 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
5418 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
5419 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
5420 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
5421 1.1 christos cat >>confdefs.h <<_ACEOF
5422 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 1.1 christos _ACEOF
5424 1.1 christos
5425 1.1 christos else
5426 1.1 christos case " $LIBOBJS " in
5427 1.1 christos *" $ac_func.$ac_objext "* ) ;;
5428 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5429 1.1 christos ;;
5430 1.1 christos esac
5431 1.1 christos
5432 1.1 christos fi
5433 1.1 christos done
5434 1.1 christos
5435 1.1 christos
5436 1.1 christos fi
5437 1.1 christos
5438 1.1 christos { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5439 1.1 christos echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5440 1.1 christos if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5441 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5442 1.1 christos else
5443 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5444 1.1 christos /* confdefs.h. */
5445 1.1 christos _ACEOF
5446 1.1 christos cat confdefs.h >>conftest.$ac_ext
5447 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5448 1.1 christos /* end confdefs.h. */
5449 1.1 christos #include <netdnet/dnetdb.h>
5450 1.1 christos
5451 1.1 christos _ACEOF
5452 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 1.1 christos $EGREP "dnet_htoa" >/dev/null 2>&1; then
5454 1.1 christos td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5455 1.1 christos else
5456 1.1 christos td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5457 1.1 christos fi
5458 1.1 christos rm -f -r conftest*
5459 1.1 christos
5460 1.1 christos fi
5461 1.1 christos { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5462 1.1 christos echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5463 1.1 christos if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5464 1.1 christos cat >>confdefs.h <<\_ACEOF
5465 1.1 christos #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5466 1.1 christos _ACEOF
5467 1.1 christos
5468 1.1 christos fi
5469 1.1 christos
5470 1.1 christos { echo "$as_me:$LINENO: checking for char" >&5
5471 1.1 christos echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5472 1.1 christos if test "${ac_cv_type_char+set}" = set; then
5473 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5474 1.1 christos else
5475 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5476 1.1 christos /* confdefs.h. */
5477 1.1 christos _ACEOF
5478 1.1 christos cat confdefs.h >>conftest.$ac_ext
5479 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5480 1.1 christos /* end confdefs.h. */
5481 1.1 christos $ac_includes_default
5482 1.1 christos typedef char ac__type_new_;
5483 1.1 christos int
5484 1.1 christos main ()
5485 1.1 christos {
5486 1.1 christos if ((ac__type_new_ *) 0)
5487 1.1 christos return 0;
5488 1.1 christos if (sizeof (ac__type_new_))
5489 1.1 christos return 0;
5490 1.1 christos ;
5491 1.1 christos return 0;
5492 1.1 christos }
5493 1.1 christos _ACEOF
5494 1.1 christos rm -f conftest.$ac_objext
5495 1.1 christos if { (ac_try="$ac_compile"
5496 1.1 christos case "(($ac_try" in
5497 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 1.1 christos *) ac_try_echo=$ac_try;;
5499 1.1 christos esac
5500 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 1.1 christos (eval "$ac_compile") 2>conftest.er1
5502 1.1 christos ac_status=$?
5503 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5504 1.1 christos rm -f conftest.er1
5505 1.1 christos cat conftest.err >&5
5506 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 1.1 christos (exit $ac_status); } && {
5508 1.1 christos test -z "$ac_c_werror_flag" ||
5509 1.1 christos test ! -s conftest.err
5510 1.1 christos } && test -s conftest.$ac_objext; then
5511 1.1 christos ac_cv_type_char=yes
5512 1.1 christos else
5513 1.1 christos echo "$as_me: failed program was:" >&5
5514 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5515 1.1 christos
5516 1.1 christos ac_cv_type_char=no
5517 1.1 christos fi
5518 1.1 christos
5519 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 1.1 christos fi
5521 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5522 1.1 christos echo "${ECHO_T}$ac_cv_type_char" >&6; }
5523 1.1 christos
5524 1.1 christos # The cast to long int works around a bug in the HP C Compiler
5525 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5526 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5527 1.1 christos # This bug is HP SR number 8606223364.
5528 1.1 christos { echo "$as_me:$LINENO: checking size of char" >&5
5529 1.1 christos echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5530 1.1 christos if test "${ac_cv_sizeof_char+set}" = set; then
5531 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5532 1.1 christos else
5533 1.1 christos if test "$cross_compiling" = yes; then
5534 1.1 christos # Depending upon the size, compute the lo and hi bounds.
5535 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5536 1.1 christos /* confdefs.h. */
5537 1.1 christos _ACEOF
5538 1.1 christos cat confdefs.h >>conftest.$ac_ext
5539 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5540 1.1 christos /* end confdefs.h. */
5541 1.1 christos $ac_includes_default
5542 1.1 christos typedef char ac__type_sizeof_;
5543 1.1 christos int
5544 1.1 christos main ()
5545 1.1 christos {
5546 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5547 1.1 christos test_array [0] = 0
5548 1.1 christos
5549 1.1 christos ;
5550 1.1 christos return 0;
5551 1.1 christos }
5552 1.1 christos _ACEOF
5553 1.1 christos rm -f conftest.$ac_objext
5554 1.1 christos if { (ac_try="$ac_compile"
5555 1.1 christos case "(($ac_try" in
5556 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 1.1 christos *) ac_try_echo=$ac_try;;
5558 1.1 christos esac
5559 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 1.1 christos (eval "$ac_compile") 2>conftest.er1
5561 1.1 christos ac_status=$?
5562 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5563 1.1 christos rm -f conftest.er1
5564 1.1 christos cat conftest.err >&5
5565 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 1.1 christos (exit $ac_status); } && {
5567 1.1 christos test -z "$ac_c_werror_flag" ||
5568 1.1 christos test ! -s conftest.err
5569 1.1 christos } && test -s conftest.$ac_objext; then
5570 1.1 christos ac_lo=0 ac_mid=0
5571 1.1 christos while :; do
5572 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5573 1.1 christos /* confdefs.h. */
5574 1.1 christos _ACEOF
5575 1.1 christos cat confdefs.h >>conftest.$ac_ext
5576 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5577 1.1 christos /* end confdefs.h. */
5578 1.1 christos $ac_includes_default
5579 1.1 christos typedef char ac__type_sizeof_;
5580 1.1 christos int
5581 1.1 christos main ()
5582 1.1 christos {
5583 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5584 1.1 christos test_array [0] = 0
5585 1.1 christos
5586 1.1 christos ;
5587 1.1 christos return 0;
5588 1.1 christos }
5589 1.1 christos _ACEOF
5590 1.1 christos rm -f conftest.$ac_objext
5591 1.1 christos if { (ac_try="$ac_compile"
5592 1.1 christos case "(($ac_try" in
5593 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 1.1 christos *) ac_try_echo=$ac_try;;
5595 1.1 christos esac
5596 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 1.1 christos (eval "$ac_compile") 2>conftest.er1
5598 1.1 christos ac_status=$?
5599 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5600 1.1 christos rm -f conftest.er1
5601 1.1 christos cat conftest.err >&5
5602 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 1.1 christos (exit $ac_status); } && {
5604 1.1 christos test -z "$ac_c_werror_flag" ||
5605 1.1 christos test ! -s conftest.err
5606 1.1 christos } && test -s conftest.$ac_objext; then
5607 1.1 christos ac_hi=$ac_mid; break
5608 1.1 christos else
5609 1.1 christos echo "$as_me: failed program was:" >&5
5610 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5611 1.1 christos
5612 1.1 christos ac_lo=`expr $ac_mid + 1`
5613 1.1 christos if test $ac_lo -le $ac_mid; then
5614 1.1 christos ac_lo= ac_hi=
5615 1.1 christos break
5616 1.1 christos fi
5617 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1`
5618 1.1 christos fi
5619 1.1 christos
5620 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 1.1 christos done
5622 1.1 christos else
5623 1.1 christos echo "$as_me: failed program was:" >&5
5624 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5625 1.1 christos
5626 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5627 1.1 christos /* confdefs.h. */
5628 1.1 christos _ACEOF
5629 1.1 christos cat confdefs.h >>conftest.$ac_ext
5630 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5631 1.1 christos /* end confdefs.h. */
5632 1.1 christos $ac_includes_default
5633 1.1 christos typedef char ac__type_sizeof_;
5634 1.1 christos int
5635 1.1 christos main ()
5636 1.1 christos {
5637 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5638 1.1 christos test_array [0] = 0
5639 1.1 christos
5640 1.1 christos ;
5641 1.1 christos return 0;
5642 1.1 christos }
5643 1.1 christos _ACEOF
5644 1.1 christos rm -f conftest.$ac_objext
5645 1.1 christos if { (ac_try="$ac_compile"
5646 1.1 christos case "(($ac_try" in
5647 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 1.1 christos *) ac_try_echo=$ac_try;;
5649 1.1 christos esac
5650 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 1.1 christos (eval "$ac_compile") 2>conftest.er1
5652 1.1 christos ac_status=$?
5653 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5654 1.1 christos rm -f conftest.er1
5655 1.1 christos cat conftest.err >&5
5656 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 1.1 christos (exit $ac_status); } && {
5658 1.1 christos test -z "$ac_c_werror_flag" ||
5659 1.1 christos test ! -s conftest.err
5660 1.1 christos } && test -s conftest.$ac_objext; then
5661 1.1 christos ac_hi=-1 ac_mid=-1
5662 1.1 christos while :; do
5663 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5664 1.1 christos /* confdefs.h. */
5665 1.1 christos _ACEOF
5666 1.1 christos cat confdefs.h >>conftest.$ac_ext
5667 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5668 1.1 christos /* end confdefs.h. */
5669 1.1 christos $ac_includes_default
5670 1.1 christos typedef char ac__type_sizeof_;
5671 1.1 christos int
5672 1.1 christos main ()
5673 1.1 christos {
5674 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5675 1.1 christos test_array [0] = 0
5676 1.1 christos
5677 1.1 christos ;
5678 1.1 christos return 0;
5679 1.1 christos }
5680 1.1 christos _ACEOF
5681 1.1 christos rm -f conftest.$ac_objext
5682 1.1 christos if { (ac_try="$ac_compile"
5683 1.1 christos case "(($ac_try" in
5684 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 1.1 christos *) ac_try_echo=$ac_try;;
5686 1.1 christos esac
5687 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 1.1 christos (eval "$ac_compile") 2>conftest.er1
5689 1.1 christos ac_status=$?
5690 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5691 1.1 christos rm -f conftest.er1
5692 1.1 christos cat conftest.err >&5
5693 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 1.1 christos (exit $ac_status); } && {
5695 1.1 christos test -z "$ac_c_werror_flag" ||
5696 1.1 christos test ! -s conftest.err
5697 1.1 christos } && test -s conftest.$ac_objext; then
5698 1.1 christos ac_lo=$ac_mid; break
5699 1.1 christos else
5700 1.1 christos echo "$as_me: failed program was:" >&5
5701 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5702 1.1 christos
5703 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1`
5704 1.1 christos if test $ac_mid -le $ac_hi; then
5705 1.1 christos ac_lo= ac_hi=
5706 1.1 christos break
5707 1.1 christos fi
5708 1.1 christos ac_mid=`expr 2 '*' $ac_mid`
5709 1.1 christos fi
5710 1.1 christos
5711 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 1.1 christos done
5713 1.1 christos else
5714 1.1 christos echo "$as_me: failed program was:" >&5
5715 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5716 1.1 christos
5717 1.1 christos ac_lo= ac_hi=
5718 1.1 christos fi
5719 1.1 christos
5720 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 1.1 christos fi
5722 1.1 christos
5723 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 1.1 christos # Binary search between lo and hi bounds.
5725 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
5726 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5727 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5728 1.1 christos /* confdefs.h. */
5729 1.1 christos _ACEOF
5730 1.1 christos cat confdefs.h >>conftest.$ac_ext
5731 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5732 1.1 christos /* end confdefs.h. */
5733 1.1 christos $ac_includes_default
5734 1.1 christos typedef char ac__type_sizeof_;
5735 1.1 christos int
5736 1.1 christos main ()
5737 1.1 christos {
5738 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5739 1.1 christos test_array [0] = 0
5740 1.1 christos
5741 1.1 christos ;
5742 1.1 christos return 0;
5743 1.1 christos }
5744 1.1 christos _ACEOF
5745 1.1 christos rm -f conftest.$ac_objext
5746 1.1 christos if { (ac_try="$ac_compile"
5747 1.1 christos case "(($ac_try" in
5748 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 1.1 christos *) ac_try_echo=$ac_try;;
5750 1.1 christos esac
5751 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 1.1 christos (eval "$ac_compile") 2>conftest.er1
5753 1.1 christos ac_status=$?
5754 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5755 1.1 christos rm -f conftest.er1
5756 1.1 christos cat conftest.err >&5
5757 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 1.1 christos (exit $ac_status); } && {
5759 1.1 christos test -z "$ac_c_werror_flag" ||
5760 1.1 christos test ! -s conftest.err
5761 1.1 christos } && test -s conftest.$ac_objext; then
5762 1.1 christos ac_hi=$ac_mid
5763 1.1 christos else
5764 1.1 christos echo "$as_me: failed program was:" >&5
5765 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5766 1.1 christos
5767 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1`
5768 1.1 christos fi
5769 1.1 christos
5770 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 1.1 christos done
5772 1.1 christos case $ac_lo in
5773 1.1 christos ?*) ac_cv_sizeof_char=$ac_lo;;
5774 1.1 christos '') if test "$ac_cv_type_char" = yes; then
5775 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5776 1.1 christos See \`config.log' for more details." >&5
5777 1.1 christos echo "$as_me: error: cannot compute sizeof (char)
5778 1.1 christos See \`config.log' for more details." >&2;}
5779 1.1 christos { (exit 77); exit 77; }; }
5780 1.1 christos else
5781 1.1 christos ac_cv_sizeof_char=0
5782 1.1 christos fi ;;
5783 1.1 christos esac
5784 1.1 christos else
5785 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5786 1.1 christos /* confdefs.h. */
5787 1.1 christos _ACEOF
5788 1.1 christos cat confdefs.h >>conftest.$ac_ext
5789 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5790 1.1 christos /* end confdefs.h. */
5791 1.1 christos $ac_includes_default
5792 1.1 christos typedef char ac__type_sizeof_;
5793 1.1 christos static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5794 1.1 christos static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795 1.1 christos #include <stdio.h>
5796 1.1 christos #include <stdlib.h>
5797 1.1 christos int
5798 1.1 christos main ()
5799 1.1 christos {
5800 1.1 christos
5801 1.1 christos FILE *f = fopen ("conftest.val", "w");
5802 1.1 christos if (! f)
5803 1.1 christos return 1;
5804 1.1 christos if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5805 1.1 christos {
5806 1.1 christos long int i = longval ();
5807 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
5808 1.1 christos return 1;
5809 1.1 christos fprintf (f, "%ld\n", i);
5810 1.1 christos }
5811 1.1 christos else
5812 1.1 christos {
5813 1.1 christos unsigned long int i = ulongval ();
5814 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
5815 1.1 christos return 1;
5816 1.1 christos fprintf (f, "%lu\n", i);
5817 1.1 christos }
5818 1.1 christos return ferror (f) || fclose (f) != 0;
5819 1.1 christos
5820 1.1 christos ;
5821 1.1 christos return 0;
5822 1.1 christos }
5823 1.1 christos _ACEOF
5824 1.1 christos rm -f conftest$ac_exeext
5825 1.1 christos if { (ac_try="$ac_link"
5826 1.1 christos case "(($ac_try" in
5827 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 1.1 christos *) ac_try_echo=$ac_try;;
5829 1.1 christos esac
5830 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 1.1 christos (eval "$ac_link") 2>&5
5832 1.1 christos ac_status=$?
5833 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835 1.1 christos { (case "(($ac_try" in
5836 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 1.1 christos *) ac_try_echo=$ac_try;;
5838 1.1 christos esac
5839 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 1.1 christos (eval "$ac_try") 2>&5
5841 1.1 christos ac_status=$?
5842 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 1.1 christos (exit $ac_status); }; }; then
5844 1.1 christos ac_cv_sizeof_char=`cat conftest.val`
5845 1.1 christos else
5846 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
5847 1.1 christos echo "$as_me: failed program was:" >&5
5848 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5849 1.1 christos
5850 1.1 christos ( exit $ac_status )
5851 1.1 christos if test "$ac_cv_type_char" = yes; then
5852 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5853 1.1 christos See \`config.log' for more details." >&5
5854 1.1 christos echo "$as_me: error: cannot compute sizeof (char)
5855 1.1 christos See \`config.log' for more details." >&2;}
5856 1.1 christos { (exit 77); exit 77; }; }
5857 1.1 christos else
5858 1.1 christos ac_cv_sizeof_char=0
5859 1.1 christos fi
5860 1.1 christos fi
5861 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862 1.1 christos fi
5863 1.1 christos rm -f conftest.val
5864 1.1 christos fi
5865 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5866 1.1 christos echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5867 1.1 christos
5868 1.1 christos
5869 1.1 christos
5870 1.1 christos cat >>confdefs.h <<_ACEOF
5871 1.1 christos #define SIZEOF_CHAR $ac_cv_sizeof_char
5872 1.1 christos _ACEOF
5873 1.1 christos
5874 1.1 christos
5875 1.1 christos { echo "$as_me:$LINENO: checking for short" >&5
5876 1.1 christos echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5877 1.1 christos if test "${ac_cv_type_short+set}" = set; then
5878 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5879 1.1 christos else
5880 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5881 1.1 christos /* confdefs.h. */
5882 1.1 christos _ACEOF
5883 1.1 christos cat confdefs.h >>conftest.$ac_ext
5884 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5885 1.1 christos /* end confdefs.h. */
5886 1.1 christos $ac_includes_default
5887 1.1 christos typedef short ac__type_new_;
5888 1.1 christos int
5889 1.1 christos main ()
5890 1.1 christos {
5891 1.1 christos if ((ac__type_new_ *) 0)
5892 1.1 christos return 0;
5893 1.1 christos if (sizeof (ac__type_new_))
5894 1.1 christos return 0;
5895 1.1 christos ;
5896 1.1 christos return 0;
5897 1.1 christos }
5898 1.1 christos _ACEOF
5899 1.1 christos rm -f conftest.$ac_objext
5900 1.1 christos if { (ac_try="$ac_compile"
5901 1.1 christos case "(($ac_try" in
5902 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 1.1 christos *) ac_try_echo=$ac_try;;
5904 1.1 christos esac
5905 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 1.1 christos (eval "$ac_compile") 2>conftest.er1
5907 1.1 christos ac_status=$?
5908 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5909 1.1 christos rm -f conftest.er1
5910 1.1 christos cat conftest.err >&5
5911 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 1.1 christos (exit $ac_status); } && {
5913 1.1 christos test -z "$ac_c_werror_flag" ||
5914 1.1 christos test ! -s conftest.err
5915 1.1 christos } && test -s conftest.$ac_objext; then
5916 1.1 christos ac_cv_type_short=yes
5917 1.1 christos else
5918 1.1 christos echo "$as_me: failed program was:" >&5
5919 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
5920 1.1 christos
5921 1.1 christos ac_cv_type_short=no
5922 1.1 christos fi
5923 1.1 christos
5924 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 1.1 christos fi
5926 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5927 1.1 christos echo "${ECHO_T}$ac_cv_type_short" >&6; }
5928 1.1 christos
5929 1.1 christos # The cast to long int works around a bug in the HP C Compiler
5930 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 1.1 christos # This bug is HP SR number 8606223364.
5933 1.1 christos { echo "$as_me:$LINENO: checking size of short" >&5
5934 1.1 christos echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5935 1.1 christos if test "${ac_cv_sizeof_short+set}" = set; then
5936 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
5937 1.1 christos else
5938 1.1 christos if test "$cross_compiling" = yes; then
5939 1.1 christos # Depending upon the size, compute the lo and hi bounds.
5940 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5941 1.1 christos /* confdefs.h. */
5942 1.1 christos _ACEOF
5943 1.1 christos cat confdefs.h >>conftest.$ac_ext
5944 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5945 1.1 christos /* end confdefs.h. */
5946 1.1 christos $ac_includes_default
5947 1.1 christos typedef short ac__type_sizeof_;
5948 1.1 christos int
5949 1.1 christos main ()
5950 1.1 christos {
5951 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5952 1.1 christos test_array [0] = 0
5953 1.1 christos
5954 1.1 christos ;
5955 1.1 christos return 0;
5956 1.1 christos }
5957 1.1 christos _ACEOF
5958 1.1 christos rm -f conftest.$ac_objext
5959 1.1 christos if { (ac_try="$ac_compile"
5960 1.1 christos case "(($ac_try" in
5961 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 1.1 christos *) ac_try_echo=$ac_try;;
5963 1.1 christos esac
5964 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 1.1 christos (eval "$ac_compile") 2>conftest.er1
5966 1.1 christos ac_status=$?
5967 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
5968 1.1 christos rm -f conftest.er1
5969 1.1 christos cat conftest.err >&5
5970 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 1.1 christos (exit $ac_status); } && {
5972 1.1 christos test -z "$ac_c_werror_flag" ||
5973 1.1 christos test ! -s conftest.err
5974 1.1 christos } && test -s conftest.$ac_objext; then
5975 1.1 christos ac_lo=0 ac_mid=0
5976 1.1 christos while :; do
5977 1.1 christos cat >conftest.$ac_ext <<_ACEOF
5978 1.1 christos /* confdefs.h. */
5979 1.1 christos _ACEOF
5980 1.1 christos cat confdefs.h >>conftest.$ac_ext
5981 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
5982 1.1 christos /* end confdefs.h. */
5983 1.1 christos $ac_includes_default
5984 1.1 christos typedef short ac__type_sizeof_;
5985 1.1 christos int
5986 1.1 christos main ()
5987 1.1 christos {
5988 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5989 1.1 christos test_array [0] = 0
5990 1.1 christos
5991 1.1 christos ;
5992 1.1 christos return 0;
5993 1.1 christos }
5994 1.1 christos _ACEOF
5995 1.1 christos rm -f conftest.$ac_objext
5996 1.1 christos if { (ac_try="$ac_compile"
5997 1.1 christos case "(($ac_try" in
5998 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 1.1 christos *) ac_try_echo=$ac_try;;
6000 1.1 christos esac
6001 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 1.1 christos (eval "$ac_compile") 2>conftest.er1
6003 1.1 christos ac_status=$?
6004 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6005 1.1 christos rm -f conftest.er1
6006 1.1 christos cat conftest.err >&5
6007 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 1.1 christos (exit $ac_status); } && {
6009 1.1 christos test -z "$ac_c_werror_flag" ||
6010 1.1 christos test ! -s conftest.err
6011 1.1 christos } && test -s conftest.$ac_objext; then
6012 1.1 christos ac_hi=$ac_mid; break
6013 1.1 christos else
6014 1.1 christos echo "$as_me: failed program was:" >&5
6015 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6016 1.1 christos
6017 1.1 christos ac_lo=`expr $ac_mid + 1`
6018 1.1 christos if test $ac_lo -le $ac_mid; then
6019 1.1 christos ac_lo= ac_hi=
6020 1.1 christos break
6021 1.1 christos fi
6022 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1`
6023 1.1 christos fi
6024 1.1 christos
6025 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 1.1 christos done
6027 1.1 christos else
6028 1.1 christos echo "$as_me: failed program was:" >&5
6029 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6030 1.1 christos
6031 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6032 1.1 christos /* confdefs.h. */
6033 1.1 christos _ACEOF
6034 1.1 christos cat confdefs.h >>conftest.$ac_ext
6035 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6036 1.1 christos /* end confdefs.h. */
6037 1.1 christos $ac_includes_default
6038 1.1 christos typedef short ac__type_sizeof_;
6039 1.1 christos int
6040 1.1 christos main ()
6041 1.1 christos {
6042 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6043 1.1 christos test_array [0] = 0
6044 1.1 christos
6045 1.1 christos ;
6046 1.1 christos return 0;
6047 1.1 christos }
6048 1.1 christos _ACEOF
6049 1.1 christos rm -f conftest.$ac_objext
6050 1.1 christos if { (ac_try="$ac_compile"
6051 1.1 christos case "(($ac_try" in
6052 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 1.1 christos *) ac_try_echo=$ac_try;;
6054 1.1 christos esac
6055 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 1.1 christos (eval "$ac_compile") 2>conftest.er1
6057 1.1 christos ac_status=$?
6058 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6059 1.1 christos rm -f conftest.er1
6060 1.1 christos cat conftest.err >&5
6061 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 1.1 christos (exit $ac_status); } && {
6063 1.1 christos test -z "$ac_c_werror_flag" ||
6064 1.1 christos test ! -s conftest.err
6065 1.1 christos } && test -s conftest.$ac_objext; then
6066 1.1 christos ac_hi=-1 ac_mid=-1
6067 1.1 christos while :; do
6068 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6069 1.1 christos /* confdefs.h. */
6070 1.1 christos _ACEOF
6071 1.1 christos cat confdefs.h >>conftest.$ac_ext
6072 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6073 1.1 christos /* end confdefs.h. */
6074 1.1 christos $ac_includes_default
6075 1.1 christos typedef short ac__type_sizeof_;
6076 1.1 christos int
6077 1.1 christos main ()
6078 1.1 christos {
6079 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6080 1.1 christos test_array [0] = 0
6081 1.1 christos
6082 1.1 christos ;
6083 1.1 christos return 0;
6084 1.1 christos }
6085 1.1 christos _ACEOF
6086 1.1 christos rm -f conftest.$ac_objext
6087 1.1 christos if { (ac_try="$ac_compile"
6088 1.1 christos case "(($ac_try" in
6089 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 1.1 christos *) ac_try_echo=$ac_try;;
6091 1.1 christos esac
6092 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 1.1 christos (eval "$ac_compile") 2>conftest.er1
6094 1.1 christos ac_status=$?
6095 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6096 1.1 christos rm -f conftest.er1
6097 1.1 christos cat conftest.err >&5
6098 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 1.1 christos (exit $ac_status); } && {
6100 1.1 christos test -z "$ac_c_werror_flag" ||
6101 1.1 christos test ! -s conftest.err
6102 1.1 christos } && test -s conftest.$ac_objext; then
6103 1.1 christos ac_lo=$ac_mid; break
6104 1.1 christos else
6105 1.1 christos echo "$as_me: failed program was:" >&5
6106 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6107 1.1 christos
6108 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1`
6109 1.1 christos if test $ac_mid -le $ac_hi; then
6110 1.1 christos ac_lo= ac_hi=
6111 1.1 christos break
6112 1.1 christos fi
6113 1.1 christos ac_mid=`expr 2 '*' $ac_mid`
6114 1.1 christos fi
6115 1.1 christos
6116 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 1.1 christos done
6118 1.1 christos else
6119 1.1 christos echo "$as_me: failed program was:" >&5
6120 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6121 1.1 christos
6122 1.1 christos ac_lo= ac_hi=
6123 1.1 christos fi
6124 1.1 christos
6125 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 1.1 christos fi
6127 1.1 christos
6128 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 1.1 christos # Binary search between lo and hi bounds.
6130 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
6131 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6132 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6133 1.1 christos /* confdefs.h. */
6134 1.1 christos _ACEOF
6135 1.1 christos cat confdefs.h >>conftest.$ac_ext
6136 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6137 1.1 christos /* end confdefs.h. */
6138 1.1 christos $ac_includes_default
6139 1.1 christos typedef short ac__type_sizeof_;
6140 1.1 christos int
6141 1.1 christos main ()
6142 1.1 christos {
6143 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6144 1.1 christos test_array [0] = 0
6145 1.1 christos
6146 1.1 christos ;
6147 1.1 christos return 0;
6148 1.1 christos }
6149 1.1 christos _ACEOF
6150 1.1 christos rm -f conftest.$ac_objext
6151 1.1 christos if { (ac_try="$ac_compile"
6152 1.1 christos case "(($ac_try" in
6153 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 1.1 christos *) ac_try_echo=$ac_try;;
6155 1.1 christos esac
6156 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 1.1 christos (eval "$ac_compile") 2>conftest.er1
6158 1.1 christos ac_status=$?
6159 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6160 1.1 christos rm -f conftest.er1
6161 1.1 christos cat conftest.err >&5
6162 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 1.1 christos (exit $ac_status); } && {
6164 1.1 christos test -z "$ac_c_werror_flag" ||
6165 1.1 christos test ! -s conftest.err
6166 1.1 christos } && test -s conftest.$ac_objext; then
6167 1.1 christos ac_hi=$ac_mid
6168 1.1 christos else
6169 1.1 christos echo "$as_me: failed program was:" >&5
6170 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6171 1.1 christos
6172 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1`
6173 1.1 christos fi
6174 1.1 christos
6175 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 1.1 christos done
6177 1.1 christos case $ac_lo in
6178 1.1 christos ?*) ac_cv_sizeof_short=$ac_lo;;
6179 1.1 christos '') if test "$ac_cv_type_short" = yes; then
6180 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6181 1.1 christos See \`config.log' for more details." >&5
6182 1.1 christos echo "$as_me: error: cannot compute sizeof (short)
6183 1.1 christos See \`config.log' for more details." >&2;}
6184 1.1 christos { (exit 77); exit 77; }; }
6185 1.1 christos else
6186 1.1 christos ac_cv_sizeof_short=0
6187 1.1 christos fi ;;
6188 1.1 christos esac
6189 1.1 christos else
6190 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6191 1.1 christos /* confdefs.h. */
6192 1.1 christos _ACEOF
6193 1.1 christos cat confdefs.h >>conftest.$ac_ext
6194 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6195 1.1 christos /* end confdefs.h. */
6196 1.1 christos $ac_includes_default
6197 1.1 christos typedef short ac__type_sizeof_;
6198 1.1 christos static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6199 1.1 christos static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200 1.1 christos #include <stdio.h>
6201 1.1 christos #include <stdlib.h>
6202 1.1 christos int
6203 1.1 christos main ()
6204 1.1 christos {
6205 1.1 christos
6206 1.1 christos FILE *f = fopen ("conftest.val", "w");
6207 1.1 christos if (! f)
6208 1.1 christos return 1;
6209 1.1 christos if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6210 1.1 christos {
6211 1.1 christos long int i = longval ();
6212 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
6213 1.1 christos return 1;
6214 1.1 christos fprintf (f, "%ld\n", i);
6215 1.1 christos }
6216 1.1 christos else
6217 1.1 christos {
6218 1.1 christos unsigned long int i = ulongval ();
6219 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
6220 1.1 christos return 1;
6221 1.1 christos fprintf (f, "%lu\n", i);
6222 1.1 christos }
6223 1.1 christos return ferror (f) || fclose (f) != 0;
6224 1.1 christos
6225 1.1 christos ;
6226 1.1 christos return 0;
6227 1.1 christos }
6228 1.1 christos _ACEOF
6229 1.1 christos rm -f conftest$ac_exeext
6230 1.1 christos if { (ac_try="$ac_link"
6231 1.1 christos case "(($ac_try" in
6232 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 1.1 christos *) ac_try_echo=$ac_try;;
6234 1.1 christos esac
6235 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 1.1 christos (eval "$ac_link") 2>&5
6237 1.1 christos ac_status=$?
6238 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6240 1.1 christos { (case "(($ac_try" in
6241 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 1.1 christos *) ac_try_echo=$ac_try;;
6243 1.1 christos esac
6244 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 1.1 christos (eval "$ac_try") 2>&5
6246 1.1 christos ac_status=$?
6247 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 1.1 christos (exit $ac_status); }; }; then
6249 1.1 christos ac_cv_sizeof_short=`cat conftest.val`
6250 1.1 christos else
6251 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
6252 1.1 christos echo "$as_me: failed program was:" >&5
6253 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6254 1.1 christos
6255 1.1 christos ( exit $ac_status )
6256 1.1 christos if test "$ac_cv_type_short" = yes; then
6257 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6258 1.1 christos See \`config.log' for more details." >&5
6259 1.1 christos echo "$as_me: error: cannot compute sizeof (short)
6260 1.1 christos See \`config.log' for more details." >&2;}
6261 1.1 christos { (exit 77); exit 77; }; }
6262 1.1 christos else
6263 1.1 christos ac_cv_sizeof_short=0
6264 1.1 christos fi
6265 1.1 christos fi
6266 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267 1.1 christos fi
6268 1.1 christos rm -f conftest.val
6269 1.1 christos fi
6270 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6271 1.1 christos echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6272 1.1 christos
6273 1.1 christos
6274 1.1 christos
6275 1.1 christos cat >>confdefs.h <<_ACEOF
6276 1.1 christos #define SIZEOF_SHORT $ac_cv_sizeof_short
6277 1.1 christos _ACEOF
6278 1.1 christos
6279 1.1 christos
6280 1.1 christos { echo "$as_me:$LINENO: checking for int" >&5
6281 1.1 christos echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6282 1.1 christos if test "${ac_cv_type_int+set}" = set; then
6283 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6284 1.1 christos else
6285 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6286 1.1 christos /* confdefs.h. */
6287 1.1 christos _ACEOF
6288 1.1 christos cat confdefs.h >>conftest.$ac_ext
6289 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6290 1.1 christos /* end confdefs.h. */
6291 1.1 christos $ac_includes_default
6292 1.1 christos typedef int ac__type_new_;
6293 1.1 christos int
6294 1.1 christos main ()
6295 1.1 christos {
6296 1.1 christos if ((ac__type_new_ *) 0)
6297 1.1 christos return 0;
6298 1.1 christos if (sizeof (ac__type_new_))
6299 1.1 christos return 0;
6300 1.1 christos ;
6301 1.1 christos return 0;
6302 1.1 christos }
6303 1.1 christos _ACEOF
6304 1.1 christos rm -f conftest.$ac_objext
6305 1.1 christos if { (ac_try="$ac_compile"
6306 1.1 christos case "(($ac_try" in
6307 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 1.1 christos *) ac_try_echo=$ac_try;;
6309 1.1 christos esac
6310 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 1.1 christos (eval "$ac_compile") 2>conftest.er1
6312 1.1 christos ac_status=$?
6313 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6314 1.1 christos rm -f conftest.er1
6315 1.1 christos cat conftest.err >&5
6316 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 1.1 christos (exit $ac_status); } && {
6318 1.1 christos test -z "$ac_c_werror_flag" ||
6319 1.1 christos test ! -s conftest.err
6320 1.1 christos } && test -s conftest.$ac_objext; then
6321 1.1 christos ac_cv_type_int=yes
6322 1.1 christos else
6323 1.1 christos echo "$as_me: failed program was:" >&5
6324 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6325 1.1 christos
6326 1.1 christos ac_cv_type_int=no
6327 1.1 christos fi
6328 1.1 christos
6329 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 1.1 christos fi
6331 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332 1.1 christos echo "${ECHO_T}$ac_cv_type_int" >&6; }
6333 1.1 christos
6334 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6335 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6336 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6337 1.1 christos # This bug is HP SR number 8606223364.
6338 1.1 christos { echo "$as_me:$LINENO: checking size of int" >&5
6339 1.1 christos echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6340 1.1 christos if test "${ac_cv_sizeof_int+set}" = set; then
6341 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6342 1.1 christos else
6343 1.1 christos if test "$cross_compiling" = yes; then
6344 1.1 christos # Depending upon the size, compute the lo and hi bounds.
6345 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6346 1.1 christos /* confdefs.h. */
6347 1.1 christos _ACEOF
6348 1.1 christos cat confdefs.h >>conftest.$ac_ext
6349 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6350 1.1 christos /* end confdefs.h. */
6351 1.1 christos $ac_includes_default
6352 1.1 christos typedef int ac__type_sizeof_;
6353 1.1 christos int
6354 1.1 christos main ()
6355 1.1 christos {
6356 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6357 1.1 christos test_array [0] = 0
6358 1.1 christos
6359 1.1 christos ;
6360 1.1 christos return 0;
6361 1.1 christos }
6362 1.1 christos _ACEOF
6363 1.1 christos rm -f conftest.$ac_objext
6364 1.1 christos if { (ac_try="$ac_compile"
6365 1.1 christos case "(($ac_try" in
6366 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 1.1 christos *) ac_try_echo=$ac_try;;
6368 1.1 christos esac
6369 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 1.1 christos (eval "$ac_compile") 2>conftest.er1
6371 1.1 christos ac_status=$?
6372 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6373 1.1 christos rm -f conftest.er1
6374 1.1 christos cat conftest.err >&5
6375 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 1.1 christos (exit $ac_status); } && {
6377 1.1 christos test -z "$ac_c_werror_flag" ||
6378 1.1 christos test ! -s conftest.err
6379 1.1 christos } && test -s conftest.$ac_objext; then
6380 1.1 christos ac_lo=0 ac_mid=0
6381 1.1 christos while :; do
6382 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6383 1.1 christos /* confdefs.h. */
6384 1.1 christos _ACEOF
6385 1.1 christos cat confdefs.h >>conftest.$ac_ext
6386 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6387 1.1 christos /* end confdefs.h. */
6388 1.1 christos $ac_includes_default
6389 1.1 christos typedef int ac__type_sizeof_;
6390 1.1 christos int
6391 1.1 christos main ()
6392 1.1 christos {
6393 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6394 1.1 christos test_array [0] = 0
6395 1.1 christos
6396 1.1 christos ;
6397 1.1 christos return 0;
6398 1.1 christos }
6399 1.1 christos _ACEOF
6400 1.1 christos rm -f conftest.$ac_objext
6401 1.1 christos if { (ac_try="$ac_compile"
6402 1.1 christos case "(($ac_try" in
6403 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 1.1 christos *) ac_try_echo=$ac_try;;
6405 1.1 christos esac
6406 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 1.1 christos (eval "$ac_compile") 2>conftest.er1
6408 1.1 christos ac_status=$?
6409 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6410 1.1 christos rm -f conftest.er1
6411 1.1 christos cat conftest.err >&5
6412 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 1.1 christos (exit $ac_status); } && {
6414 1.1 christos test -z "$ac_c_werror_flag" ||
6415 1.1 christos test ! -s conftest.err
6416 1.1 christos } && test -s conftest.$ac_objext; then
6417 1.1 christos ac_hi=$ac_mid; break
6418 1.1 christos else
6419 1.1 christos echo "$as_me: failed program was:" >&5
6420 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6421 1.1 christos
6422 1.1 christos ac_lo=`expr $ac_mid + 1`
6423 1.1 christos if test $ac_lo -le $ac_mid; then
6424 1.1 christos ac_lo= ac_hi=
6425 1.1 christos break
6426 1.1 christos fi
6427 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1`
6428 1.1 christos fi
6429 1.1 christos
6430 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 1.1 christos done
6432 1.1 christos else
6433 1.1 christos echo "$as_me: failed program was:" >&5
6434 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6435 1.1 christos
6436 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6437 1.1 christos /* confdefs.h. */
6438 1.1 christos _ACEOF
6439 1.1 christos cat confdefs.h >>conftest.$ac_ext
6440 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6441 1.1 christos /* end confdefs.h. */
6442 1.1 christos $ac_includes_default
6443 1.1 christos typedef int ac__type_sizeof_;
6444 1.1 christos int
6445 1.1 christos main ()
6446 1.1 christos {
6447 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6448 1.1 christos test_array [0] = 0
6449 1.1 christos
6450 1.1 christos ;
6451 1.1 christos return 0;
6452 1.1 christos }
6453 1.1 christos _ACEOF
6454 1.1 christos rm -f conftest.$ac_objext
6455 1.1 christos if { (ac_try="$ac_compile"
6456 1.1 christos case "(($ac_try" in
6457 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 1.1 christos *) ac_try_echo=$ac_try;;
6459 1.1 christos esac
6460 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 1.1 christos (eval "$ac_compile") 2>conftest.er1
6462 1.1 christos ac_status=$?
6463 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6464 1.1 christos rm -f conftest.er1
6465 1.1 christos cat conftest.err >&5
6466 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 1.1 christos (exit $ac_status); } && {
6468 1.1 christos test -z "$ac_c_werror_flag" ||
6469 1.1 christos test ! -s conftest.err
6470 1.1 christos } && test -s conftest.$ac_objext; then
6471 1.1 christos ac_hi=-1 ac_mid=-1
6472 1.1 christos while :; do
6473 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6474 1.1 christos /* confdefs.h. */
6475 1.1 christos _ACEOF
6476 1.1 christos cat confdefs.h >>conftest.$ac_ext
6477 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6478 1.1 christos /* end confdefs.h. */
6479 1.1 christos $ac_includes_default
6480 1.1 christos typedef int ac__type_sizeof_;
6481 1.1 christos int
6482 1.1 christos main ()
6483 1.1 christos {
6484 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6485 1.1 christos test_array [0] = 0
6486 1.1 christos
6487 1.1 christos ;
6488 1.1 christos return 0;
6489 1.1 christos }
6490 1.1 christos _ACEOF
6491 1.1 christos rm -f conftest.$ac_objext
6492 1.1 christos if { (ac_try="$ac_compile"
6493 1.1 christos case "(($ac_try" in
6494 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 1.1 christos *) ac_try_echo=$ac_try;;
6496 1.1 christos esac
6497 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 1.1 christos (eval "$ac_compile") 2>conftest.er1
6499 1.1 christos ac_status=$?
6500 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6501 1.1 christos rm -f conftest.er1
6502 1.1 christos cat conftest.err >&5
6503 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 1.1 christos (exit $ac_status); } && {
6505 1.1 christos test -z "$ac_c_werror_flag" ||
6506 1.1 christos test ! -s conftest.err
6507 1.1 christos } && test -s conftest.$ac_objext; then
6508 1.1 christos ac_lo=$ac_mid; break
6509 1.1 christos else
6510 1.1 christos echo "$as_me: failed program was:" >&5
6511 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6512 1.1 christos
6513 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1`
6514 1.1 christos if test $ac_mid -le $ac_hi; then
6515 1.1 christos ac_lo= ac_hi=
6516 1.1 christos break
6517 1.1 christos fi
6518 1.1 christos ac_mid=`expr 2 '*' $ac_mid`
6519 1.1 christos fi
6520 1.1 christos
6521 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 1.1 christos done
6523 1.1 christos else
6524 1.1 christos echo "$as_me: failed program was:" >&5
6525 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6526 1.1 christos
6527 1.1 christos ac_lo= ac_hi=
6528 1.1 christos fi
6529 1.1 christos
6530 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 1.1 christos fi
6532 1.1 christos
6533 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 1.1 christos # Binary search between lo and hi bounds.
6535 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
6536 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6537 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6538 1.1 christos /* confdefs.h. */
6539 1.1 christos _ACEOF
6540 1.1 christos cat confdefs.h >>conftest.$ac_ext
6541 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6542 1.1 christos /* end confdefs.h. */
6543 1.1 christos $ac_includes_default
6544 1.1 christos typedef int ac__type_sizeof_;
6545 1.1 christos int
6546 1.1 christos main ()
6547 1.1 christos {
6548 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6549 1.1 christos test_array [0] = 0
6550 1.1 christos
6551 1.1 christos ;
6552 1.1 christos return 0;
6553 1.1 christos }
6554 1.1 christos _ACEOF
6555 1.1 christos rm -f conftest.$ac_objext
6556 1.1 christos if { (ac_try="$ac_compile"
6557 1.1 christos case "(($ac_try" in
6558 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 1.1 christos *) ac_try_echo=$ac_try;;
6560 1.1 christos esac
6561 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 1.1 christos (eval "$ac_compile") 2>conftest.er1
6563 1.1 christos ac_status=$?
6564 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6565 1.1 christos rm -f conftest.er1
6566 1.1 christos cat conftest.err >&5
6567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 1.1 christos (exit $ac_status); } && {
6569 1.1 christos test -z "$ac_c_werror_flag" ||
6570 1.1 christos test ! -s conftest.err
6571 1.1 christos } && test -s conftest.$ac_objext; then
6572 1.1 christos ac_hi=$ac_mid
6573 1.1 christos else
6574 1.1 christos echo "$as_me: failed program was:" >&5
6575 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6576 1.1 christos
6577 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1`
6578 1.1 christos fi
6579 1.1 christos
6580 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 1.1 christos done
6582 1.1 christos case $ac_lo in
6583 1.1 christos ?*) ac_cv_sizeof_int=$ac_lo;;
6584 1.1 christos '') if test "$ac_cv_type_int" = yes; then
6585 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6586 1.1 christos See \`config.log' for more details." >&5
6587 1.1 christos echo "$as_me: error: cannot compute sizeof (int)
6588 1.1 christos See \`config.log' for more details." >&2;}
6589 1.1 christos { (exit 77); exit 77; }; }
6590 1.1 christos else
6591 1.1 christos ac_cv_sizeof_int=0
6592 1.1 christos fi ;;
6593 1.1 christos esac
6594 1.1 christos else
6595 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6596 1.1 christos /* confdefs.h. */
6597 1.1 christos _ACEOF
6598 1.1 christos cat confdefs.h >>conftest.$ac_ext
6599 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6600 1.1 christos /* end confdefs.h. */
6601 1.1 christos $ac_includes_default
6602 1.1 christos typedef int ac__type_sizeof_;
6603 1.1 christos static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6604 1.1 christos static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605 1.1 christos #include <stdio.h>
6606 1.1 christos #include <stdlib.h>
6607 1.1 christos int
6608 1.1 christos main ()
6609 1.1 christos {
6610 1.1 christos
6611 1.1 christos FILE *f = fopen ("conftest.val", "w");
6612 1.1 christos if (! f)
6613 1.1 christos return 1;
6614 1.1 christos if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6615 1.1 christos {
6616 1.1 christos long int i = longval ();
6617 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
6618 1.1 christos return 1;
6619 1.1 christos fprintf (f, "%ld\n", i);
6620 1.1 christos }
6621 1.1 christos else
6622 1.1 christos {
6623 1.1 christos unsigned long int i = ulongval ();
6624 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
6625 1.1 christos return 1;
6626 1.1 christos fprintf (f, "%lu\n", i);
6627 1.1 christos }
6628 1.1 christos return ferror (f) || fclose (f) != 0;
6629 1.1 christos
6630 1.1 christos ;
6631 1.1 christos return 0;
6632 1.1 christos }
6633 1.1 christos _ACEOF
6634 1.1 christos rm -f conftest$ac_exeext
6635 1.1 christos if { (ac_try="$ac_link"
6636 1.1 christos case "(($ac_try" in
6637 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 1.1 christos *) ac_try_echo=$ac_try;;
6639 1.1 christos esac
6640 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 1.1 christos (eval "$ac_link") 2>&5
6642 1.1 christos ac_status=$?
6643 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645 1.1 christos { (case "(($ac_try" in
6646 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 1.1 christos *) ac_try_echo=$ac_try;;
6648 1.1 christos esac
6649 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 1.1 christos (eval "$ac_try") 2>&5
6651 1.1 christos ac_status=$?
6652 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 1.1 christos (exit $ac_status); }; }; then
6654 1.1 christos ac_cv_sizeof_int=`cat conftest.val`
6655 1.1 christos else
6656 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
6657 1.1 christos echo "$as_me: failed program was:" >&5
6658 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6659 1.1 christos
6660 1.1 christos ( exit $ac_status )
6661 1.1 christos if test "$ac_cv_type_int" = yes; then
6662 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6663 1.1 christos See \`config.log' for more details." >&5
6664 1.1 christos echo "$as_me: error: cannot compute sizeof (int)
6665 1.1 christos See \`config.log' for more details." >&2;}
6666 1.1 christos { (exit 77); exit 77; }; }
6667 1.1 christos else
6668 1.1 christos ac_cv_sizeof_int=0
6669 1.1 christos fi
6670 1.1 christos fi
6671 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672 1.1 christos fi
6673 1.1 christos rm -f conftest.val
6674 1.1 christos fi
6675 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6676 1.1 christos echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6677 1.1 christos
6678 1.1 christos
6679 1.1 christos
6680 1.1 christos cat >>confdefs.h <<_ACEOF
6681 1.1 christos #define SIZEOF_INT $ac_cv_sizeof_int
6682 1.1 christos _ACEOF
6683 1.1 christos
6684 1.1 christos
6685 1.1 christos { echo "$as_me:$LINENO: checking for long" >&5
6686 1.1 christos echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6687 1.1 christos if test "${ac_cv_type_long+set}" = set; then
6688 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6689 1.1 christos else
6690 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6691 1.1 christos /* confdefs.h. */
6692 1.1 christos _ACEOF
6693 1.1 christos cat confdefs.h >>conftest.$ac_ext
6694 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6695 1.1 christos /* end confdefs.h. */
6696 1.1 christos $ac_includes_default
6697 1.1 christos typedef long ac__type_new_;
6698 1.1 christos int
6699 1.1 christos main ()
6700 1.1 christos {
6701 1.1 christos if ((ac__type_new_ *) 0)
6702 1.1 christos return 0;
6703 1.1 christos if (sizeof (ac__type_new_))
6704 1.1 christos return 0;
6705 1.1 christos ;
6706 1.1 christos return 0;
6707 1.1 christos }
6708 1.1 christos _ACEOF
6709 1.1 christos rm -f conftest.$ac_objext
6710 1.1 christos if { (ac_try="$ac_compile"
6711 1.1 christos case "(($ac_try" in
6712 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 1.1 christos *) ac_try_echo=$ac_try;;
6714 1.1 christos esac
6715 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 1.1 christos (eval "$ac_compile") 2>conftest.er1
6717 1.1 christos ac_status=$?
6718 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6719 1.1 christos rm -f conftest.er1
6720 1.1 christos cat conftest.err >&5
6721 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 1.1 christos (exit $ac_status); } && {
6723 1.1 christos test -z "$ac_c_werror_flag" ||
6724 1.1 christos test ! -s conftest.err
6725 1.1 christos } && test -s conftest.$ac_objext; then
6726 1.1 christos ac_cv_type_long=yes
6727 1.1 christos else
6728 1.1 christos echo "$as_me: failed program was:" >&5
6729 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6730 1.1 christos
6731 1.1 christos ac_cv_type_long=no
6732 1.1 christos fi
6733 1.1 christos
6734 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 1.1 christos fi
6736 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6737 1.1 christos echo "${ECHO_T}$ac_cv_type_long" >&6; }
6738 1.1 christos
6739 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6740 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6741 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6742 1.1 christos # This bug is HP SR number 8606223364.
6743 1.1 christos { echo "$as_me:$LINENO: checking size of long" >&5
6744 1.1 christos echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6745 1.1 christos if test "${ac_cv_sizeof_long+set}" = set; then
6746 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6747 1.1 christos else
6748 1.1 christos if test "$cross_compiling" = yes; then
6749 1.1 christos # Depending upon the size, compute the lo and hi bounds.
6750 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6751 1.1 christos /* confdefs.h. */
6752 1.1 christos _ACEOF
6753 1.1 christos cat confdefs.h >>conftest.$ac_ext
6754 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6755 1.1 christos /* end confdefs.h. */
6756 1.1 christos $ac_includes_default
6757 1.1 christos typedef long ac__type_sizeof_;
6758 1.1 christos int
6759 1.1 christos main ()
6760 1.1 christos {
6761 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6762 1.1 christos test_array [0] = 0
6763 1.1 christos
6764 1.1 christos ;
6765 1.1 christos return 0;
6766 1.1 christos }
6767 1.1 christos _ACEOF
6768 1.1 christos rm -f conftest.$ac_objext
6769 1.1 christos if { (ac_try="$ac_compile"
6770 1.1 christos case "(($ac_try" in
6771 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 1.1 christos *) ac_try_echo=$ac_try;;
6773 1.1 christos esac
6774 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 1.1 christos (eval "$ac_compile") 2>conftest.er1
6776 1.1 christos ac_status=$?
6777 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6778 1.1 christos rm -f conftest.er1
6779 1.1 christos cat conftest.err >&5
6780 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 1.1 christos (exit $ac_status); } && {
6782 1.1 christos test -z "$ac_c_werror_flag" ||
6783 1.1 christos test ! -s conftest.err
6784 1.1 christos } && test -s conftest.$ac_objext; then
6785 1.1 christos ac_lo=0 ac_mid=0
6786 1.1 christos while :; do
6787 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6788 1.1 christos /* confdefs.h. */
6789 1.1 christos _ACEOF
6790 1.1 christos cat confdefs.h >>conftest.$ac_ext
6791 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6792 1.1 christos /* end confdefs.h. */
6793 1.1 christos $ac_includes_default
6794 1.1 christos typedef long ac__type_sizeof_;
6795 1.1 christos int
6796 1.1 christos main ()
6797 1.1 christos {
6798 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6799 1.1 christos test_array [0] = 0
6800 1.1 christos
6801 1.1 christos ;
6802 1.1 christos return 0;
6803 1.1 christos }
6804 1.1 christos _ACEOF
6805 1.1 christos rm -f conftest.$ac_objext
6806 1.1 christos if { (ac_try="$ac_compile"
6807 1.1 christos case "(($ac_try" in
6808 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 1.1 christos *) ac_try_echo=$ac_try;;
6810 1.1 christos esac
6811 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 1.1 christos (eval "$ac_compile") 2>conftest.er1
6813 1.1 christos ac_status=$?
6814 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6815 1.1 christos rm -f conftest.er1
6816 1.1 christos cat conftest.err >&5
6817 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 1.1 christos (exit $ac_status); } && {
6819 1.1 christos test -z "$ac_c_werror_flag" ||
6820 1.1 christos test ! -s conftest.err
6821 1.1 christos } && test -s conftest.$ac_objext; then
6822 1.1 christos ac_hi=$ac_mid; break
6823 1.1 christos else
6824 1.1 christos echo "$as_me: failed program was:" >&5
6825 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6826 1.1 christos
6827 1.1 christos ac_lo=`expr $ac_mid + 1`
6828 1.1 christos if test $ac_lo -le $ac_mid; then
6829 1.1 christos ac_lo= ac_hi=
6830 1.1 christos break
6831 1.1 christos fi
6832 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1`
6833 1.1 christos fi
6834 1.1 christos
6835 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 1.1 christos done
6837 1.1 christos else
6838 1.1 christos echo "$as_me: failed program was:" >&5
6839 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6840 1.1 christos
6841 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6842 1.1 christos /* confdefs.h. */
6843 1.1 christos _ACEOF
6844 1.1 christos cat confdefs.h >>conftest.$ac_ext
6845 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6846 1.1 christos /* end confdefs.h. */
6847 1.1 christos $ac_includes_default
6848 1.1 christos typedef long ac__type_sizeof_;
6849 1.1 christos int
6850 1.1 christos main ()
6851 1.1 christos {
6852 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6853 1.1 christos test_array [0] = 0
6854 1.1 christos
6855 1.1 christos ;
6856 1.1 christos return 0;
6857 1.1 christos }
6858 1.1 christos _ACEOF
6859 1.1 christos rm -f conftest.$ac_objext
6860 1.1 christos if { (ac_try="$ac_compile"
6861 1.1 christos case "(($ac_try" in
6862 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 1.1 christos *) ac_try_echo=$ac_try;;
6864 1.1 christos esac
6865 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 1.1 christos (eval "$ac_compile") 2>conftest.er1
6867 1.1 christos ac_status=$?
6868 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6869 1.1 christos rm -f conftest.er1
6870 1.1 christos cat conftest.err >&5
6871 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 1.1 christos (exit $ac_status); } && {
6873 1.1 christos test -z "$ac_c_werror_flag" ||
6874 1.1 christos test ! -s conftest.err
6875 1.1 christos } && test -s conftest.$ac_objext; then
6876 1.1 christos ac_hi=-1 ac_mid=-1
6877 1.1 christos while :; do
6878 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6879 1.1 christos /* confdefs.h. */
6880 1.1 christos _ACEOF
6881 1.1 christos cat confdefs.h >>conftest.$ac_ext
6882 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6883 1.1 christos /* end confdefs.h. */
6884 1.1 christos $ac_includes_default
6885 1.1 christos typedef long ac__type_sizeof_;
6886 1.1 christos int
6887 1.1 christos main ()
6888 1.1 christos {
6889 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6890 1.1 christos test_array [0] = 0
6891 1.1 christos
6892 1.1 christos ;
6893 1.1 christos return 0;
6894 1.1 christos }
6895 1.1 christos _ACEOF
6896 1.1 christos rm -f conftest.$ac_objext
6897 1.1 christos if { (ac_try="$ac_compile"
6898 1.1 christos case "(($ac_try" in
6899 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 1.1 christos *) ac_try_echo=$ac_try;;
6901 1.1 christos esac
6902 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 1.1 christos (eval "$ac_compile") 2>conftest.er1
6904 1.1 christos ac_status=$?
6905 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6906 1.1 christos rm -f conftest.er1
6907 1.1 christos cat conftest.err >&5
6908 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 1.1 christos (exit $ac_status); } && {
6910 1.1 christos test -z "$ac_c_werror_flag" ||
6911 1.1 christos test ! -s conftest.err
6912 1.1 christos } && test -s conftest.$ac_objext; then
6913 1.1 christos ac_lo=$ac_mid; break
6914 1.1 christos else
6915 1.1 christos echo "$as_me: failed program was:" >&5
6916 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6917 1.1 christos
6918 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1`
6919 1.1 christos if test $ac_mid -le $ac_hi; then
6920 1.1 christos ac_lo= ac_hi=
6921 1.1 christos break
6922 1.1 christos fi
6923 1.1 christos ac_mid=`expr 2 '*' $ac_mid`
6924 1.1 christos fi
6925 1.1 christos
6926 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 1.1 christos done
6928 1.1 christos else
6929 1.1 christos echo "$as_me: failed program was:" >&5
6930 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6931 1.1 christos
6932 1.1 christos ac_lo= ac_hi=
6933 1.1 christos fi
6934 1.1 christos
6935 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 1.1 christos fi
6937 1.1 christos
6938 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 1.1 christos # Binary search between lo and hi bounds.
6940 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
6941 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6942 1.1 christos cat >conftest.$ac_ext <<_ACEOF
6943 1.1 christos /* confdefs.h. */
6944 1.1 christos _ACEOF
6945 1.1 christos cat confdefs.h >>conftest.$ac_ext
6946 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
6947 1.1 christos /* end confdefs.h. */
6948 1.1 christos $ac_includes_default
6949 1.1 christos typedef long ac__type_sizeof_;
6950 1.1 christos int
6951 1.1 christos main ()
6952 1.1 christos {
6953 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6954 1.1 christos test_array [0] = 0
6955 1.1 christos
6956 1.1 christos ;
6957 1.1 christos return 0;
6958 1.1 christos }
6959 1.1 christos _ACEOF
6960 1.1 christos rm -f conftest.$ac_objext
6961 1.1 christos if { (ac_try="$ac_compile"
6962 1.1 christos case "(($ac_try" in
6963 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 1.1 christos *) ac_try_echo=$ac_try;;
6965 1.1 christos esac
6966 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 1.1 christos (eval "$ac_compile") 2>conftest.er1
6968 1.1 christos ac_status=$?
6969 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
6970 1.1 christos rm -f conftest.er1
6971 1.1 christos cat conftest.err >&5
6972 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 1.1 christos (exit $ac_status); } && {
6974 1.1 christos test -z "$ac_c_werror_flag" ||
6975 1.1 christos test ! -s conftest.err
6976 1.1 christos } && test -s conftest.$ac_objext; then
6977 1.1 christos ac_hi=$ac_mid
6978 1.1 christos else
6979 1.1 christos echo "$as_me: failed program was:" >&5
6980 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
6981 1.1 christos
6982 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1`
6983 1.1 christos fi
6984 1.1 christos
6985 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 1.1 christos done
6987 1.1 christos case $ac_lo in
6988 1.1 christos ?*) ac_cv_sizeof_long=$ac_lo;;
6989 1.1 christos '') if test "$ac_cv_type_long" = yes; then
6990 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6991 1.1 christos See \`config.log' for more details." >&5
6992 1.1 christos echo "$as_me: error: cannot compute sizeof (long)
6993 1.1 christos See \`config.log' for more details." >&2;}
6994 1.1 christos { (exit 77); exit 77; }; }
6995 1.1 christos else
6996 1.1 christos ac_cv_sizeof_long=0
6997 1.1 christos fi ;;
6998 1.1 christos esac
6999 1.1 christos else
7000 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7001 1.1 christos /* confdefs.h. */
7002 1.1 christos _ACEOF
7003 1.1 christos cat confdefs.h >>conftest.$ac_ext
7004 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7005 1.1 christos /* end confdefs.h. */
7006 1.1 christos $ac_includes_default
7007 1.1 christos typedef long ac__type_sizeof_;
7008 1.1 christos static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7009 1.1 christos static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010 1.1 christos #include <stdio.h>
7011 1.1 christos #include <stdlib.h>
7012 1.1 christos int
7013 1.1 christos main ()
7014 1.1 christos {
7015 1.1 christos
7016 1.1 christos FILE *f = fopen ("conftest.val", "w");
7017 1.1 christos if (! f)
7018 1.1 christos return 1;
7019 1.1 christos if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7020 1.1 christos {
7021 1.1 christos long int i = longval ();
7022 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
7023 1.1 christos return 1;
7024 1.1 christos fprintf (f, "%ld\n", i);
7025 1.1 christos }
7026 1.1 christos else
7027 1.1 christos {
7028 1.1 christos unsigned long int i = ulongval ();
7029 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
7030 1.1 christos return 1;
7031 1.1 christos fprintf (f, "%lu\n", i);
7032 1.1 christos }
7033 1.1 christos return ferror (f) || fclose (f) != 0;
7034 1.1 christos
7035 1.1 christos ;
7036 1.1 christos return 0;
7037 1.1 christos }
7038 1.1 christos _ACEOF
7039 1.1 christos rm -f conftest$ac_exeext
7040 1.1 christos if { (ac_try="$ac_link"
7041 1.1 christos case "(($ac_try" in
7042 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 1.1 christos *) ac_try_echo=$ac_try;;
7044 1.1 christos esac
7045 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 1.1 christos (eval "$ac_link") 2>&5
7047 1.1 christos ac_status=$?
7048 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7050 1.1 christos { (case "(($ac_try" in
7051 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 1.1 christos *) ac_try_echo=$ac_try;;
7053 1.1 christos esac
7054 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 1.1 christos (eval "$ac_try") 2>&5
7056 1.1 christos ac_status=$?
7057 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 1.1 christos (exit $ac_status); }; }; then
7059 1.1 christos ac_cv_sizeof_long=`cat conftest.val`
7060 1.1 christos else
7061 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
7062 1.1 christos echo "$as_me: failed program was:" >&5
7063 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7064 1.1 christos
7065 1.1 christos ( exit $ac_status )
7066 1.1 christos if test "$ac_cv_type_long" = yes; then
7067 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7068 1.1 christos See \`config.log' for more details." >&5
7069 1.1 christos echo "$as_me: error: cannot compute sizeof (long)
7070 1.1 christos See \`config.log' for more details." >&2;}
7071 1.1 christos { (exit 77); exit 77; }; }
7072 1.1 christos else
7073 1.1 christos ac_cv_sizeof_long=0
7074 1.1 christos fi
7075 1.1 christos fi
7076 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7077 1.1 christos fi
7078 1.1 christos rm -f conftest.val
7079 1.1 christos fi
7080 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7081 1.1 christos echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7082 1.1 christos
7083 1.1 christos
7084 1.1 christos
7085 1.1 christos cat >>confdefs.h <<_ACEOF
7086 1.1 christos #define SIZEOF_LONG $ac_cv_sizeof_long
7087 1.1 christos _ACEOF
7088 1.1 christos
7089 1.1 christos
7090 1.1 christos { echo "$as_me:$LINENO: checking for long long" >&5
7091 1.1 christos echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7092 1.1 christos if test "${ac_cv_type_long_long+set}" = set; then
7093 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7094 1.1 christos else
7095 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7096 1.1 christos /* confdefs.h. */
7097 1.1 christos _ACEOF
7098 1.1 christos cat confdefs.h >>conftest.$ac_ext
7099 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7100 1.1 christos /* end confdefs.h. */
7101 1.1 christos $ac_includes_default
7102 1.1 christos typedef long long ac__type_new_;
7103 1.1 christos int
7104 1.1 christos main ()
7105 1.1 christos {
7106 1.1 christos if ((ac__type_new_ *) 0)
7107 1.1 christos return 0;
7108 1.1 christos if (sizeof (ac__type_new_))
7109 1.1 christos return 0;
7110 1.1 christos ;
7111 1.1 christos return 0;
7112 1.1 christos }
7113 1.1 christos _ACEOF
7114 1.1 christos rm -f conftest.$ac_objext
7115 1.1 christos if { (ac_try="$ac_compile"
7116 1.1 christos case "(($ac_try" in
7117 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 1.1 christos *) ac_try_echo=$ac_try;;
7119 1.1 christos esac
7120 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 1.1 christos (eval "$ac_compile") 2>conftest.er1
7122 1.1 christos ac_status=$?
7123 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7124 1.1 christos rm -f conftest.er1
7125 1.1 christos cat conftest.err >&5
7126 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 1.1 christos (exit $ac_status); } && {
7128 1.1 christos test -z "$ac_c_werror_flag" ||
7129 1.1 christos test ! -s conftest.err
7130 1.1 christos } && test -s conftest.$ac_objext; then
7131 1.1 christos ac_cv_type_long_long=yes
7132 1.1 christos else
7133 1.1 christos echo "$as_me: failed program was:" >&5
7134 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7135 1.1 christos
7136 1.1 christos ac_cv_type_long_long=no
7137 1.1 christos fi
7138 1.1 christos
7139 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 1.1 christos fi
7141 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7142 1.1 christos echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7143 1.1 christos
7144 1.1 christos # The cast to long int works around a bug in the HP C Compiler
7145 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7146 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7147 1.1 christos # This bug is HP SR number 8606223364.
7148 1.1 christos { echo "$as_me:$LINENO: checking size of long long" >&5
7149 1.1 christos echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7150 1.1 christos if test "${ac_cv_sizeof_long_long+set}" = set; then
7151 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7152 1.1 christos else
7153 1.1 christos if test "$cross_compiling" = yes; then
7154 1.1 christos # Depending upon the size, compute the lo and hi bounds.
7155 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7156 1.1 christos /* confdefs.h. */
7157 1.1 christos _ACEOF
7158 1.1 christos cat confdefs.h >>conftest.$ac_ext
7159 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7160 1.1 christos /* end confdefs.h. */
7161 1.1 christos $ac_includes_default
7162 1.1 christos typedef long long ac__type_sizeof_;
7163 1.1 christos int
7164 1.1 christos main ()
7165 1.1 christos {
7166 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7167 1.1 christos test_array [0] = 0
7168 1.1 christos
7169 1.1 christos ;
7170 1.1 christos return 0;
7171 1.1 christos }
7172 1.1 christos _ACEOF
7173 1.1 christos rm -f conftest.$ac_objext
7174 1.1 christos if { (ac_try="$ac_compile"
7175 1.1 christos case "(($ac_try" in
7176 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 1.1 christos *) ac_try_echo=$ac_try;;
7178 1.1 christos esac
7179 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 1.1 christos (eval "$ac_compile") 2>conftest.er1
7181 1.1 christos ac_status=$?
7182 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7183 1.1 christos rm -f conftest.er1
7184 1.1 christos cat conftest.err >&5
7185 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 1.1 christos (exit $ac_status); } && {
7187 1.1 christos test -z "$ac_c_werror_flag" ||
7188 1.1 christos test ! -s conftest.err
7189 1.1 christos } && test -s conftest.$ac_objext; then
7190 1.1 christos ac_lo=0 ac_mid=0
7191 1.1 christos while :; do
7192 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7193 1.1 christos /* confdefs.h. */
7194 1.1 christos _ACEOF
7195 1.1 christos cat confdefs.h >>conftest.$ac_ext
7196 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7197 1.1 christos /* end confdefs.h. */
7198 1.1 christos $ac_includes_default
7199 1.1 christos typedef long long ac__type_sizeof_;
7200 1.1 christos int
7201 1.1 christos main ()
7202 1.1 christos {
7203 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7204 1.1 christos test_array [0] = 0
7205 1.1 christos
7206 1.1 christos ;
7207 1.1 christos return 0;
7208 1.1 christos }
7209 1.1 christos _ACEOF
7210 1.1 christos rm -f conftest.$ac_objext
7211 1.1 christos if { (ac_try="$ac_compile"
7212 1.1 christos case "(($ac_try" in
7213 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 1.1 christos *) ac_try_echo=$ac_try;;
7215 1.1 christos esac
7216 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 1.1 christos (eval "$ac_compile") 2>conftest.er1
7218 1.1 christos ac_status=$?
7219 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7220 1.1 christos rm -f conftest.er1
7221 1.1 christos cat conftest.err >&5
7222 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 1.1 christos (exit $ac_status); } && {
7224 1.1 christos test -z "$ac_c_werror_flag" ||
7225 1.1 christos test ! -s conftest.err
7226 1.1 christos } && test -s conftest.$ac_objext; then
7227 1.1 christos ac_hi=$ac_mid; break
7228 1.1 christos else
7229 1.1 christos echo "$as_me: failed program was:" >&5
7230 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7231 1.1 christos
7232 1.1 christos ac_lo=`expr $ac_mid + 1`
7233 1.1 christos if test $ac_lo -le $ac_mid; then
7234 1.1 christos ac_lo= ac_hi=
7235 1.1 christos break
7236 1.1 christos fi
7237 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1`
7238 1.1 christos fi
7239 1.1 christos
7240 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 1.1 christos done
7242 1.1 christos else
7243 1.1 christos echo "$as_me: failed program was:" >&5
7244 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7245 1.1 christos
7246 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7247 1.1 christos /* confdefs.h. */
7248 1.1 christos _ACEOF
7249 1.1 christos cat confdefs.h >>conftest.$ac_ext
7250 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7251 1.1 christos /* end confdefs.h. */
7252 1.1 christos $ac_includes_default
7253 1.1 christos typedef long long ac__type_sizeof_;
7254 1.1 christos int
7255 1.1 christos main ()
7256 1.1 christos {
7257 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7258 1.1 christos test_array [0] = 0
7259 1.1 christos
7260 1.1 christos ;
7261 1.1 christos return 0;
7262 1.1 christos }
7263 1.1 christos _ACEOF
7264 1.1 christos rm -f conftest.$ac_objext
7265 1.1 christos if { (ac_try="$ac_compile"
7266 1.1 christos case "(($ac_try" in
7267 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 1.1 christos *) ac_try_echo=$ac_try;;
7269 1.1 christos esac
7270 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 1.1 christos (eval "$ac_compile") 2>conftest.er1
7272 1.1 christos ac_status=$?
7273 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7274 1.1 christos rm -f conftest.er1
7275 1.1 christos cat conftest.err >&5
7276 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 1.1 christos (exit $ac_status); } && {
7278 1.1 christos test -z "$ac_c_werror_flag" ||
7279 1.1 christos test ! -s conftest.err
7280 1.1 christos } && test -s conftest.$ac_objext; then
7281 1.1 christos ac_hi=-1 ac_mid=-1
7282 1.1 christos while :; do
7283 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7284 1.1 christos /* confdefs.h. */
7285 1.1 christos _ACEOF
7286 1.1 christos cat confdefs.h >>conftest.$ac_ext
7287 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7288 1.1 christos /* end confdefs.h. */
7289 1.1 christos $ac_includes_default
7290 1.1 christos typedef long long ac__type_sizeof_;
7291 1.1 christos int
7292 1.1 christos main ()
7293 1.1 christos {
7294 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7295 1.1 christos test_array [0] = 0
7296 1.1 christos
7297 1.1 christos ;
7298 1.1 christos return 0;
7299 1.1 christos }
7300 1.1 christos _ACEOF
7301 1.1 christos rm -f conftest.$ac_objext
7302 1.1 christos if { (ac_try="$ac_compile"
7303 1.1 christos case "(($ac_try" in
7304 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 1.1 christos *) ac_try_echo=$ac_try;;
7306 1.1 christos esac
7307 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 1.1 christos (eval "$ac_compile") 2>conftest.er1
7309 1.1 christos ac_status=$?
7310 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7311 1.1 christos rm -f conftest.er1
7312 1.1 christos cat conftest.err >&5
7313 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 1.1 christos (exit $ac_status); } && {
7315 1.1 christos test -z "$ac_c_werror_flag" ||
7316 1.1 christos test ! -s conftest.err
7317 1.1 christos } && test -s conftest.$ac_objext; then
7318 1.1 christos ac_lo=$ac_mid; break
7319 1.1 christos else
7320 1.1 christos echo "$as_me: failed program was:" >&5
7321 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7322 1.1 christos
7323 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1`
7324 1.1 christos if test $ac_mid -le $ac_hi; then
7325 1.1 christos ac_lo= ac_hi=
7326 1.1 christos break
7327 1.1 christos fi
7328 1.1 christos ac_mid=`expr 2 '*' $ac_mid`
7329 1.1 christos fi
7330 1.1 christos
7331 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 1.1 christos done
7333 1.1 christos else
7334 1.1 christos echo "$as_me: failed program was:" >&5
7335 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7336 1.1 christos
7337 1.1 christos ac_lo= ac_hi=
7338 1.1 christos fi
7339 1.1 christos
7340 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 1.1 christos fi
7342 1.1 christos
7343 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 1.1 christos # Binary search between lo and hi bounds.
7345 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
7346 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7347 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7348 1.1 christos /* confdefs.h. */
7349 1.1 christos _ACEOF
7350 1.1 christos cat confdefs.h >>conftest.$ac_ext
7351 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7352 1.1 christos /* end confdefs.h. */
7353 1.1 christos $ac_includes_default
7354 1.1 christos typedef long long ac__type_sizeof_;
7355 1.1 christos int
7356 1.1 christos main ()
7357 1.1 christos {
7358 1.1 christos static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7359 1.1 christos test_array [0] = 0
7360 1.1 christos
7361 1.1 christos ;
7362 1.1 christos return 0;
7363 1.1 christos }
7364 1.1 christos _ACEOF
7365 1.1 christos rm -f conftest.$ac_objext
7366 1.1 christos if { (ac_try="$ac_compile"
7367 1.1 christos case "(($ac_try" in
7368 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 1.1 christos *) ac_try_echo=$ac_try;;
7370 1.1 christos esac
7371 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 1.1 christos (eval "$ac_compile") 2>conftest.er1
7373 1.1 christos ac_status=$?
7374 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7375 1.1 christos rm -f conftest.er1
7376 1.1 christos cat conftest.err >&5
7377 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 1.1 christos (exit $ac_status); } && {
7379 1.1 christos test -z "$ac_c_werror_flag" ||
7380 1.1 christos test ! -s conftest.err
7381 1.1 christos } && test -s conftest.$ac_objext; then
7382 1.1 christos ac_hi=$ac_mid
7383 1.1 christos else
7384 1.1 christos echo "$as_me: failed program was:" >&5
7385 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7386 1.1 christos
7387 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1`
7388 1.1 christos fi
7389 1.1 christos
7390 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 1.1 christos done
7392 1.1 christos case $ac_lo in
7393 1.1 christos ?*) ac_cv_sizeof_long_long=$ac_lo;;
7394 1.1 christos '') if test "$ac_cv_type_long_long" = yes; then
7395 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7396 1.1 christos See \`config.log' for more details." >&5
7397 1.1 christos echo "$as_me: error: cannot compute sizeof (long long)
7398 1.1 christos See \`config.log' for more details." >&2;}
7399 1.1 christos { (exit 77); exit 77; }; }
7400 1.1 christos else
7401 1.1 christos ac_cv_sizeof_long_long=0
7402 1.1 christos fi ;;
7403 1.1 christos esac
7404 1.1 christos else
7405 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7406 1.1 christos /* confdefs.h. */
7407 1.1 christos _ACEOF
7408 1.1 christos cat confdefs.h >>conftest.$ac_ext
7409 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7410 1.1 christos /* end confdefs.h. */
7411 1.1 christos $ac_includes_default
7412 1.1 christos typedef long long ac__type_sizeof_;
7413 1.1 christos static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7414 1.1 christos static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415 1.1 christos #include <stdio.h>
7416 1.1 christos #include <stdlib.h>
7417 1.1 christos int
7418 1.1 christos main ()
7419 1.1 christos {
7420 1.1 christos
7421 1.1 christos FILE *f = fopen ("conftest.val", "w");
7422 1.1 christos if (! f)
7423 1.1 christos return 1;
7424 1.1 christos if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7425 1.1 christos {
7426 1.1 christos long int i = longval ();
7427 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
7428 1.1 christos return 1;
7429 1.1 christos fprintf (f, "%ld\n", i);
7430 1.1 christos }
7431 1.1 christos else
7432 1.1 christos {
7433 1.1 christos unsigned long int i = ulongval ();
7434 1.1 christos if (i != ((long int) (sizeof (ac__type_sizeof_))))
7435 1.1 christos return 1;
7436 1.1 christos fprintf (f, "%lu\n", i);
7437 1.1 christos }
7438 1.1 christos return ferror (f) || fclose (f) != 0;
7439 1.1 christos
7440 1.1 christos ;
7441 1.1 christos return 0;
7442 1.1 christos }
7443 1.1 christos _ACEOF
7444 1.1 christos rm -f conftest$ac_exeext
7445 1.1 christos if { (ac_try="$ac_link"
7446 1.1 christos case "(($ac_try" in
7447 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 1.1 christos *) ac_try_echo=$ac_try;;
7449 1.1 christos esac
7450 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 1.1 christos (eval "$ac_link") 2>&5
7452 1.1 christos ac_status=$?
7453 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455 1.1 christos { (case "(($ac_try" in
7456 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 1.1 christos *) ac_try_echo=$ac_try;;
7458 1.1 christos esac
7459 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 1.1 christos (eval "$ac_try") 2>&5
7461 1.1 christos ac_status=$?
7462 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 1.1 christos (exit $ac_status); }; }; then
7464 1.1 christos ac_cv_sizeof_long_long=`cat conftest.val`
7465 1.1 christos else
7466 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
7467 1.1 christos echo "$as_me: failed program was:" >&5
7468 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7469 1.1 christos
7470 1.1 christos ( exit $ac_status )
7471 1.1 christos if test "$ac_cv_type_long_long" = yes; then
7472 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7473 1.1 christos See \`config.log' for more details." >&5
7474 1.1 christos echo "$as_me: error: cannot compute sizeof (long long)
7475 1.1 christos See \`config.log' for more details." >&2;}
7476 1.1 christos { (exit 77); exit 77; }; }
7477 1.1 christos else
7478 1.1 christos ac_cv_sizeof_long_long=0
7479 1.1 christos fi
7480 1.1 christos fi
7481 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482 1.1 christos fi
7483 1.1 christos rm -f conftest.val
7484 1.1 christos fi
7485 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7486 1.1 christos echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7487 1.1 christos
7488 1.1 christos
7489 1.1 christos
7490 1.1 christos cat >>confdefs.h <<_ACEOF
7491 1.1 christos #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7492 1.1 christos _ACEOF
7493 1.1 christos
7494 1.1 christos
7495 1.1 christos
7496 1.1 christos
7497 1.1 christos { echo "$as_me:$LINENO: checking for addrinfo" >&5
7498 1.1 christos echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7499 1.1 christos if test "${ac_cv_addrinfo+set}" = set; then
7500 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7501 1.1 christos else
7502 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7503 1.1 christos /* confdefs.h. */
7504 1.1 christos _ACEOF
7505 1.1 christos cat confdefs.h >>conftest.$ac_ext
7506 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7507 1.1 christos /* end confdefs.h. */
7508 1.1 christos
7509 1.1 christos # include <netdb.h>
7510 1.1 christos int
7511 1.1 christos main ()
7512 1.1 christos {
7513 1.1 christos struct addrinfo a
7514 1.1 christos ;
7515 1.1 christos return 0;
7516 1.1 christos }
7517 1.1 christos _ACEOF
7518 1.1 christos rm -f conftest.$ac_objext
7519 1.1 christos if { (ac_try="$ac_compile"
7520 1.1 christos case "(($ac_try" in
7521 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 1.1 christos *) ac_try_echo=$ac_try;;
7523 1.1 christos esac
7524 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 1.1 christos (eval "$ac_compile") 2>conftest.er1
7526 1.1 christos ac_status=$?
7527 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7528 1.1 christos rm -f conftest.er1
7529 1.1 christos cat conftest.err >&5
7530 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 1.1 christos (exit $ac_status); } && {
7532 1.1 christos test -z "$ac_c_werror_flag" ||
7533 1.1 christos test ! -s conftest.err
7534 1.1 christos } && test -s conftest.$ac_objext; then
7535 1.1 christos ac_cv_addrinfo=yes
7536 1.1 christos else
7537 1.1 christos echo "$as_me: failed program was:" >&5
7538 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7539 1.1 christos
7540 1.1 christos ac_cv_addrinfo=no
7541 1.1 christos fi
7542 1.1 christos
7543 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 1.1 christos fi
7545 1.1 christos
7546 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7547 1.1 christos echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7548 1.1 christos if test $ac_cv_addrinfo = yes; then
7549 1.1 christos cat >>confdefs.h <<\_ACEOF
7550 1.1 christos #define HAVE_ADDRINFO 1
7551 1.1 christos _ACEOF
7552 1.1 christos
7553 1.1 christos else
7554 1.1 christos cat >>confdefs.h <<\_ACEOF
7555 1.1 christos #define NEED_ADDRINFO_H 1
7556 1.1 christos _ACEOF
7557 1.1 christos
7558 1.1 christos fi
7559 1.1 christos
7560 1.1 christos if test "$ac_cv_addrinfo" = no; then
7561 1.1 christos missing_includes=yes
7562 1.1 christos fi
7563 1.1 christos
7564 1.1 christos
7565 1.1 christos { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7566 1.1 christos echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7567 1.1 christos if test "${ac_cv_maxserv+set}" = set; then
7568 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7569 1.1 christos else
7570 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7571 1.1 christos /* confdefs.h. */
7572 1.1 christos _ACEOF
7573 1.1 christos cat confdefs.h >>conftest.$ac_ext
7574 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7575 1.1 christos /* end confdefs.h. */
7576 1.1 christos #include <netdb.h>
7577 1.1 christos #ifdef NI_MAXSERV
7578 1.1 christos yes
7579 1.1 christos #endif
7580 1.1 christos _ACEOF
7581 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
7583 1.1 christos ac_cv_maxserv=yes
7584 1.1 christos else
7585 1.1 christos ac_cv_maxserv=no
7586 1.1 christos fi
7587 1.1 christos rm -f -r conftest*
7588 1.1 christos
7589 1.1 christos fi
7590 1.1 christos
7591 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7592 1.1 christos echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7593 1.1 christos if test $ac_cv_maxserv != yes; then
7594 1.1 christos cat >>confdefs.h <<\_ACEOF
7595 1.1 christos #define NEED_ADDRINFO_H 1
7596 1.1 christos _ACEOF
7597 1.1 christos
7598 1.1 christos fi
7599 1.1 christos
7600 1.1 christos if test "$ac_cv_maxserv" = no; then
7601 1.1 christos missing_includes=yes
7602 1.1 christos fi
7603 1.1 christos
7604 1.1 christos
7605 1.1 christos { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7606 1.1 christos echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7607 1.1 christos if test "${ac_cv_namereqd+set}" = set; then
7608 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7609 1.1 christos else
7610 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7611 1.1 christos /* confdefs.h. */
7612 1.1 christos _ACEOF
7613 1.1 christos cat confdefs.h >>conftest.$ac_ext
7614 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7615 1.1 christos /* end confdefs.h. */
7616 1.1 christos #include <netdb.h>
7617 1.1 christos #ifdef NI_NOFQDN
7618 1.1 christos yes
7619 1.1 christos #endif
7620 1.1 christos _ACEOF
7621 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622 1.1 christos $EGREP "yes" >/dev/null 2>&1; then
7623 1.1 christos ac_cv_namereqd=yes
7624 1.1 christos else
7625 1.1 christos ac_cv_namereqd=no
7626 1.1 christos fi
7627 1.1 christos rm -f -r conftest*
7628 1.1 christos
7629 1.1 christos fi
7630 1.1 christos
7631 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7632 1.1 christos echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7633 1.1 christos if test $ac_cv_namereqd != yes; then
7634 1.1 christos cat >>confdefs.h <<\_ACEOF
7635 1.1 christos #define NEED_ADDRINFO_H 1
7636 1.1 christos _ACEOF
7637 1.1 christos
7638 1.1 christos fi
7639 1.1 christos
7640 1.1 christos if test "$ac_cv_namereqd" = no; then
7641 1.1 christos missing_includes=yes
7642 1.1 christos fi
7643 1.1 christos
7644 1.1 christos
7645 1.1 christos { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7646 1.1 christos echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7647 1.1 christos if test "${ac_cv_sa_storage+set}" = set; then
7648 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7649 1.1 christos else
7650 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7651 1.1 christos /* confdefs.h. */
7652 1.1 christos _ACEOF
7653 1.1 christos cat confdefs.h >>conftest.$ac_ext
7654 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7655 1.1 christos /* end confdefs.h. */
7656 1.1 christos
7657 1.1 christos # include <sys/types.h>
7658 1.1 christos # include <sys/socket.h>
7659 1.1 christos int
7660 1.1 christos main ()
7661 1.1 christos {
7662 1.1 christos struct sockaddr_storage s
7663 1.1 christos ;
7664 1.1 christos return 0;
7665 1.1 christos }
7666 1.1 christos _ACEOF
7667 1.1 christos rm -f conftest.$ac_objext
7668 1.1 christos if { (ac_try="$ac_compile"
7669 1.1 christos case "(($ac_try" in
7670 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 1.1 christos *) ac_try_echo=$ac_try;;
7672 1.1 christos esac
7673 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 1.1 christos (eval "$ac_compile") 2>conftest.er1
7675 1.1 christos ac_status=$?
7676 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7677 1.1 christos rm -f conftest.er1
7678 1.1 christos cat conftest.err >&5
7679 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 1.1 christos (exit $ac_status); } && {
7681 1.1 christos test -z "$ac_c_werror_flag" ||
7682 1.1 christos test ! -s conftest.err
7683 1.1 christos } && test -s conftest.$ac_objext; then
7684 1.1 christos ac_cv_sa_storage=yes
7685 1.1 christos else
7686 1.1 christos echo "$as_me: failed program was:" >&5
7687 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7688 1.1 christos
7689 1.1 christos ac_cv_sa_storage=no
7690 1.1 christos fi
7691 1.1 christos
7692 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 1.1 christos fi
7694 1.1 christos
7695 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7696 1.1 christos echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7697 1.1 christos if test $ac_cv_sa_storage = yes; then
7698 1.1 christos cat >>confdefs.h <<\_ACEOF
7699 1.1 christos #define HAVE_SOCKADDR_STORAGE 1
7700 1.1 christos _ACEOF
7701 1.1 christos
7702 1.1 christos fi
7703 1.1 christos
7704 1.1 christos if test "$ac_cv_sa_storage" = no; then
7705 1.1 christos missing_includes=yes
7706 1.1 christos fi
7707 1.1 christos
7708 1.1 christos
7709 1.1 christos ac_cv_addrsz=yes
7710 1.1 christos { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7711 1.1 christos echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7712 1.1 christos if test "${ac_cv_inaddrsz+set}" = set; then
7713 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7714 1.1 christos else
7715 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7716 1.1 christos /* confdefs.h. */
7717 1.1 christos _ACEOF
7718 1.1 christos cat confdefs.h >>conftest.$ac_ext
7719 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7720 1.1 christos /* end confdefs.h. */
7721 1.1 christos
7722 1.1 christos # include <arpa/nameser.h>
7723 1.1 christos int
7724 1.1 christos main ()
7725 1.1 christos {
7726 1.1 christos int a = INADDRSZ
7727 1.1 christos ;
7728 1.1 christos return 0;
7729 1.1 christos }
7730 1.1 christos _ACEOF
7731 1.1 christos rm -f conftest.$ac_objext
7732 1.1 christos if { (ac_try="$ac_compile"
7733 1.1 christos case "(($ac_try" in
7734 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 1.1 christos *) ac_try_echo=$ac_try;;
7736 1.1 christos esac
7737 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 1.1 christos (eval "$ac_compile") 2>conftest.er1
7739 1.1 christos ac_status=$?
7740 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7741 1.1 christos rm -f conftest.er1
7742 1.1 christos cat conftest.err >&5
7743 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 1.1 christos (exit $ac_status); } && {
7745 1.1 christos test -z "$ac_c_werror_flag" ||
7746 1.1 christos test ! -s conftest.err
7747 1.1 christos } && test -s conftest.$ac_objext; then
7748 1.1 christos ac_cv_inaddrsz=yes
7749 1.1 christos else
7750 1.1 christos echo "$as_me: failed program was:" >&5
7751 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7752 1.1 christos
7753 1.1 christos ac_cv_inaddrsz=no
7754 1.1 christos fi
7755 1.1 christos
7756 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 1.1 christos fi
7758 1.1 christos
7759 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7760 1.1 christos echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7761 1.1 christos if test $ac_cv_inaddrsz = yes; then
7762 1.1 christos cat >>confdefs.h <<\_ACEOF
7763 1.1 christos #define HAVE_INADDRSZ 1
7764 1.1 christos _ACEOF
7765 1.1 christos
7766 1.1 christos else
7767 1.1 christos ac_cv_addrsz=no
7768 1.1 christos fi
7769 1.1 christos { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7770 1.1 christos echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7771 1.1 christos if test "${ac_cv_in6addrsz+set}" = set; then
7772 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7773 1.1 christos else
7774 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7775 1.1 christos /* confdefs.h. */
7776 1.1 christos _ACEOF
7777 1.1 christos cat confdefs.h >>conftest.$ac_ext
7778 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7779 1.1 christos /* end confdefs.h. */
7780 1.1 christos
7781 1.1 christos # include <arpa/nameser.h>
7782 1.1 christos int
7783 1.1 christos main ()
7784 1.1 christos {
7785 1.1 christos int a = IN6ADDRSZ
7786 1.1 christos ;
7787 1.1 christos return 0;
7788 1.1 christos }
7789 1.1 christos _ACEOF
7790 1.1 christos rm -f conftest.$ac_objext
7791 1.1 christos if { (ac_try="$ac_compile"
7792 1.1 christos case "(($ac_try" in
7793 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 1.1 christos *) ac_try_echo=$ac_try;;
7795 1.1 christos esac
7796 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 1.1 christos (eval "$ac_compile") 2>conftest.er1
7798 1.1 christos ac_status=$?
7799 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7800 1.1 christos rm -f conftest.er1
7801 1.1 christos cat conftest.err >&5
7802 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 1.1 christos (exit $ac_status); } && {
7804 1.1 christos test -z "$ac_c_werror_flag" ||
7805 1.1 christos test ! -s conftest.err
7806 1.1 christos } && test -s conftest.$ac_objext; then
7807 1.1 christos ac_cv_in6addrsz=yes
7808 1.1 christos else
7809 1.1 christos echo "$as_me: failed program was:" >&5
7810 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7811 1.1 christos
7812 1.1 christos ac_cv_in6addrsz=no
7813 1.1 christos fi
7814 1.1 christos
7815 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 1.1 christos fi
7817 1.1 christos
7818 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7819 1.1 christos echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7820 1.1 christos if test $ac_cv_in6addrsz = yes; then
7821 1.1 christos cat >>confdefs.h <<\_ACEOF
7822 1.1 christos #define HAVE_IN6ADDRSZ 1
7823 1.1 christos _ACEOF
7824 1.1 christos
7825 1.1 christos else
7826 1.1 christos ac_cv_addrsz=no
7827 1.1 christos fi
7828 1.1 christos
7829 1.1 christos if test "$ac_cv_addrsz" = no; then
7830 1.1 christos missing_includes=yes
7831 1.1 christos fi
7832 1.1 christos
7833 1.1 christos
7834 1.1 christos { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7835 1.1 christos echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7836 1.1 christos if test "${ac_cv_res_inet6+set}" = set; then
7837 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7838 1.1 christos else
7839 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7840 1.1 christos /* confdefs.h. */
7841 1.1 christos _ACEOF
7842 1.1 christos cat confdefs.h >>conftest.$ac_ext
7843 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7844 1.1 christos /* end confdefs.h. */
7845 1.1 christos
7846 1.1 christos # include <sys/types.h>
7847 1.1 christos # include <netinet/in.h>
7848 1.1 christos # include <resolv.h>
7849 1.1 christos int
7850 1.1 christos main ()
7851 1.1 christos {
7852 1.1 christos int a = RES_USE_INET6
7853 1.1 christos ;
7854 1.1 christos return 0;
7855 1.1 christos }
7856 1.1 christos _ACEOF
7857 1.1 christos rm -f conftest.$ac_objext
7858 1.1 christos if { (ac_try="$ac_compile"
7859 1.1 christos case "(($ac_try" in
7860 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 1.1 christos *) ac_try_echo=$ac_try;;
7862 1.1 christos esac
7863 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 1.1 christos (eval "$ac_compile") 2>conftest.er1
7865 1.1 christos ac_status=$?
7866 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7867 1.1 christos rm -f conftest.er1
7868 1.1 christos cat conftest.err >&5
7869 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 1.1 christos (exit $ac_status); } && {
7871 1.1 christos test -z "$ac_c_werror_flag" ||
7872 1.1 christos test ! -s conftest.err
7873 1.1 christos } && test -s conftest.$ac_objext; then
7874 1.1 christos ac_cv_res_inet6=yes
7875 1.1 christos else
7876 1.1 christos echo "$as_me: failed program was:" >&5
7877 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7878 1.1 christos
7879 1.1 christos ac_cv_res_inet6=no
7880 1.1 christos fi
7881 1.1 christos
7882 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 1.1 christos fi
7884 1.1 christos
7885 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7886 1.1 christos echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7887 1.1 christos if test $ac_cv_res_inet6 = yes; then
7888 1.1 christos cat >>confdefs.h <<\_ACEOF
7889 1.1 christos #define HAVE_RES_USE_INET6 1
7890 1.1 christos _ACEOF
7891 1.1 christos
7892 1.1 christos fi
7893 1.1 christos
7894 1.1 christos if test "$ac_cv_res_inet6" = no; then
7895 1.1 christos missing_includes=yes
7896 1.1 christos fi
7897 1.1 christos
7898 1.1 christos
7899 1.1 christos { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7900 1.1 christos echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7901 1.1 christos if test "${ac_cv_res_state_ext+set}" = set; then
7902 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7903 1.1 christos else
7904 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7905 1.1 christos /* confdefs.h. */
7906 1.1 christos _ACEOF
7907 1.1 christos cat confdefs.h >>conftest.$ac_ext
7908 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7909 1.1 christos /* end confdefs.h. */
7910 1.1 christos
7911 1.1 christos # include <sys/types.h>
7912 1.1 christos # include <netinet/in.h>
7913 1.1 christos # include <netinet6/in6.h>
7914 1.1 christos # include <resolv.h>
7915 1.1 christos int
7916 1.1 christos main ()
7917 1.1 christos {
7918 1.1 christos struct __res_state_ext e
7919 1.1 christos ;
7920 1.1 christos return 0;
7921 1.1 christos }
7922 1.1 christos _ACEOF
7923 1.1 christos rm -f conftest.$ac_objext
7924 1.1 christos if { (ac_try="$ac_compile"
7925 1.1 christos case "(($ac_try" in
7926 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 1.1 christos *) ac_try_echo=$ac_try;;
7928 1.1 christos esac
7929 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 1.1 christos (eval "$ac_compile") 2>conftest.er1
7931 1.1 christos ac_status=$?
7932 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7933 1.1 christos rm -f conftest.er1
7934 1.1 christos cat conftest.err >&5
7935 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 1.1 christos (exit $ac_status); } && {
7937 1.1 christos test -z "$ac_c_werror_flag" ||
7938 1.1 christos test ! -s conftest.err
7939 1.1 christos } && test -s conftest.$ac_objext; then
7940 1.1 christos ac_cv_res_state_ext=yes
7941 1.1 christos else
7942 1.1 christos echo "$as_me: failed program was:" >&5
7943 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
7944 1.1 christos
7945 1.1 christos ac_cv_res_state_ext=no
7946 1.1 christos fi
7947 1.1 christos
7948 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 1.1 christos fi
7950 1.1 christos
7951 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7952 1.1 christos echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7953 1.1 christos if test $ac_cv_res_state_ext = yes; then
7954 1.1 christos cat >>confdefs.h <<\_ACEOF
7955 1.1 christos #define HAVE_RES_STATE_EXT 1
7956 1.1 christos _ACEOF
7957 1.1 christos
7958 1.1 christos fi
7959 1.1 christos
7960 1.1 christos if test "$ac_cv_res_state_ext" = no; then
7961 1.1 christos missing_includes=yes
7962 1.1 christos fi
7963 1.1 christos
7964 1.1 christos
7965 1.1 christos { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7966 1.1 christos echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7967 1.1 christos if test "${ac_cv_res_state+set}" = set; then
7968 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7969 1.1 christos else
7970 1.1 christos cat >conftest.$ac_ext <<_ACEOF
7971 1.1 christos /* confdefs.h. */
7972 1.1 christos _ACEOF
7973 1.1 christos cat confdefs.h >>conftest.$ac_ext
7974 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
7975 1.1 christos /* end confdefs.h. */
7976 1.1 christos
7977 1.1 christos # include <sys/types.h>
7978 1.1 christos # include <netinet/in.h>
7979 1.1 christos # include <netinet6/in6.h>
7980 1.1 christos # include <resolv.h>
7981 1.1 christos int
7982 1.1 christos main ()
7983 1.1 christos {
7984 1.1 christos struct __res_state e; e.nsort = 0
7985 1.1 christos ;
7986 1.1 christos return 0;
7987 1.1 christos }
7988 1.1 christos _ACEOF
7989 1.1 christos rm -f conftest.$ac_objext
7990 1.1 christos if { (ac_try="$ac_compile"
7991 1.1 christos case "(($ac_try" in
7992 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 1.1 christos *) ac_try_echo=$ac_try;;
7994 1.1 christos esac
7995 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 1.1 christos (eval "$ac_compile") 2>conftest.er1
7997 1.1 christos ac_status=$?
7998 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
7999 1.1 christos rm -f conftest.er1
8000 1.1 christos cat conftest.err >&5
8001 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 1.1 christos (exit $ac_status); } && {
8003 1.1 christos test -z "$ac_c_werror_flag" ||
8004 1.1 christos test ! -s conftest.err
8005 1.1 christos } && test -s conftest.$ac_objext; then
8006 1.1 christos ac_cv_res_state=yes
8007 1.1 christos else
8008 1.1 christos echo "$as_me: failed program was:" >&5
8009 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8010 1.1 christos
8011 1.1 christos ac_cv_res_state=no
8012 1.1 christos fi
8013 1.1 christos
8014 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 1.1 christos fi
8016 1.1 christos
8017 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8018 1.1 christos echo "${ECHO_T}$ac_cv_res_state" >&6; }
8019 1.1 christos if test $ac_cv_res_state = yes; then
8020 1.1 christos cat >>confdefs.h <<\_ACEOF
8021 1.1 christos #define HAVE_NEW_RES_STATE 1
8022 1.1 christos _ACEOF
8023 1.1 christos
8024 1.1 christos fi
8025 1.1 christos
8026 1.1 christos
8027 1.1 christos
8028 1.1 christos
8029 1.1 christos
8030 1.1 christos
8031 1.1 christos
8032 1.1 christos
8033 1.1 christos
8034 1.1 christos for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8035 1.1 christos do
8036 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8037 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8038 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8039 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8040 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8041 1.1 christos else
8042 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8043 1.1 christos /* confdefs.h. */
8044 1.1 christos _ACEOF
8045 1.1 christos cat confdefs.h >>conftest.$ac_ext
8046 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8047 1.1 christos /* end confdefs.h. */
8048 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8049 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8050 1.1 christos #define $ac_func innocuous_$ac_func
8051 1.1 christos
8052 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8053 1.1 christos which can conflict with char $ac_func (); below.
8054 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8055 1.1 christos <limits.h> exists even on freestanding compilers. */
8056 1.1 christos
8057 1.1 christos #ifdef __STDC__
8058 1.1 christos # include <limits.h>
8059 1.1 christos #else
8060 1.1 christos # include <assert.h>
8061 1.1 christos #endif
8062 1.1 christos
8063 1.1 christos #undef $ac_func
8064 1.1 christos
8065 1.1 christos /* Override any GCC internal prototype to avoid an error.
8066 1.1 christos Use char because int might match the return type of a GCC
8067 1.1 christos builtin and then its argument prototype would still apply. */
8068 1.1 christos #ifdef __cplusplus
8069 1.1 christos extern "C"
8070 1.1 christos #endif
8071 1.1 christos char $ac_func ();
8072 1.1 christos /* The GNU C library defines this for functions which it implements
8073 1.1 christos to always fail with ENOSYS. Some functions are actually named
8074 1.1 christos something starting with __ and the normal name is an alias. */
8075 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8076 1.1 christos choke me
8077 1.1 christos #endif
8078 1.1 christos
8079 1.1 christos int
8080 1.1 christos main ()
8081 1.1 christos {
8082 1.1 christos return $ac_func ();
8083 1.1 christos ;
8084 1.1 christos return 0;
8085 1.1 christos }
8086 1.1 christos _ACEOF
8087 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8088 1.1 christos if { (ac_try="$ac_link"
8089 1.1 christos case "(($ac_try" in
8090 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 1.1 christos *) ac_try_echo=$ac_try;;
8092 1.1 christos esac
8093 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 1.1 christos (eval "$ac_link") 2>conftest.er1
8095 1.1 christos ac_status=$?
8096 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8097 1.1 christos rm -f conftest.er1
8098 1.1 christos cat conftest.err >&5
8099 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 1.1 christos (exit $ac_status); } && {
8101 1.1 christos test -z "$ac_c_werror_flag" ||
8102 1.1 christos test ! -s conftest.err
8103 1.1 christos } && test -s conftest$ac_exeext &&
8104 1.1 christos $as_test_x conftest$ac_exeext; then
8105 1.1 christos eval "$as_ac_var=yes"
8106 1.1 christos else
8107 1.1 christos echo "$as_me: failed program was:" >&5
8108 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8109 1.1 christos
8110 1.1 christos eval "$as_ac_var=no"
8111 1.1 christos fi
8112 1.1 christos
8113 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114 1.1 christos conftest$ac_exeext conftest.$ac_ext
8115 1.1 christos fi
8116 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8117 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8119 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8120 1.1 christos cat >>confdefs.h <<_ACEOF
8121 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8122 1.1 christos _ACEOF
8123 1.1 christos
8124 1.1 christos else
8125 1.1 christos case " $LIBOBJS " in
8126 1.1 christos *" $ac_func.$ac_objext "* ) ;;
8127 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8128 1.1 christos ;;
8129 1.1 christos esac
8130 1.1 christos
8131 1.1 christos fi
8132 1.1 christos done
8133 1.1 christos
8134 1.1 christos
8135 1.1 christos
8136 1.1 christos for ac_func in strftime
8137 1.1 christos do
8138 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8141 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8142 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8143 1.1 christos else
8144 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8145 1.1 christos /* confdefs.h. */
8146 1.1 christos _ACEOF
8147 1.1 christos cat confdefs.h >>conftest.$ac_ext
8148 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8149 1.1 christos /* end confdefs.h. */
8150 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152 1.1 christos #define $ac_func innocuous_$ac_func
8153 1.1 christos
8154 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8155 1.1 christos which can conflict with char $ac_func (); below.
8156 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 1.1 christos <limits.h> exists even on freestanding compilers. */
8158 1.1 christos
8159 1.1 christos #ifdef __STDC__
8160 1.1 christos # include <limits.h>
8161 1.1 christos #else
8162 1.1 christos # include <assert.h>
8163 1.1 christos #endif
8164 1.1 christos
8165 1.1 christos #undef $ac_func
8166 1.1 christos
8167 1.1 christos /* Override any GCC internal prototype to avoid an error.
8168 1.1 christos Use char because int might match the return type of a GCC
8169 1.1 christos builtin and then its argument prototype would still apply. */
8170 1.1 christos #ifdef __cplusplus
8171 1.1 christos extern "C"
8172 1.1 christos #endif
8173 1.1 christos char $ac_func ();
8174 1.1 christos /* The GNU C library defines this for functions which it implements
8175 1.1 christos to always fail with ENOSYS. Some functions are actually named
8176 1.1 christos something starting with __ and the normal name is an alias. */
8177 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8178 1.1 christos choke me
8179 1.1 christos #endif
8180 1.1 christos
8181 1.1 christos int
8182 1.1 christos main ()
8183 1.1 christos {
8184 1.1 christos return $ac_func ();
8185 1.1 christos ;
8186 1.1 christos return 0;
8187 1.1 christos }
8188 1.1 christos _ACEOF
8189 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8190 1.1 christos if { (ac_try="$ac_link"
8191 1.1 christos case "(($ac_try" in
8192 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 1.1 christos *) ac_try_echo=$ac_try;;
8194 1.1 christos esac
8195 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 1.1 christos (eval "$ac_link") 2>conftest.er1
8197 1.1 christos ac_status=$?
8198 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8199 1.1 christos rm -f conftest.er1
8200 1.1 christos cat conftest.err >&5
8201 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 1.1 christos (exit $ac_status); } && {
8203 1.1 christos test -z "$ac_c_werror_flag" ||
8204 1.1 christos test ! -s conftest.err
8205 1.1 christos } && test -s conftest$ac_exeext &&
8206 1.1 christos $as_test_x conftest$ac_exeext; then
8207 1.1 christos eval "$as_ac_var=yes"
8208 1.1 christos else
8209 1.1 christos echo "$as_me: failed program was:" >&5
8210 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8211 1.1 christos
8212 1.1 christos eval "$as_ac_var=no"
8213 1.1 christos fi
8214 1.1 christos
8215 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8216 1.1 christos conftest$ac_exeext conftest.$ac_ext
8217 1.1 christos fi
8218 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8219 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8220 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8221 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8222 1.1 christos cat >>confdefs.h <<_ACEOF
8223 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8224 1.1 christos _ACEOF
8225 1.1 christos
8226 1.1 christos fi
8227 1.1 christos done
8228 1.1 christos
8229 1.1 christos
8230 1.1 christos
8231 1.1 christos for ac_func in setlinebuf alarm
8232 1.1 christos do
8233 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8234 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8235 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8236 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8237 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8238 1.1 christos else
8239 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8240 1.1 christos /* confdefs.h. */
8241 1.1 christos _ACEOF
8242 1.1 christos cat confdefs.h >>conftest.$ac_ext
8243 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8244 1.1 christos /* end confdefs.h. */
8245 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8246 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8247 1.1 christos #define $ac_func innocuous_$ac_func
8248 1.1 christos
8249 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8250 1.1 christos which can conflict with char $ac_func (); below.
8251 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252 1.1 christos <limits.h> exists even on freestanding compilers. */
8253 1.1 christos
8254 1.1 christos #ifdef __STDC__
8255 1.1 christos # include <limits.h>
8256 1.1 christos #else
8257 1.1 christos # include <assert.h>
8258 1.1 christos #endif
8259 1.1 christos
8260 1.1 christos #undef $ac_func
8261 1.1 christos
8262 1.1 christos /* Override any GCC internal prototype to avoid an error.
8263 1.1 christos Use char because int might match the return type of a GCC
8264 1.1 christos builtin and then its argument prototype would still apply. */
8265 1.1 christos #ifdef __cplusplus
8266 1.1 christos extern "C"
8267 1.1 christos #endif
8268 1.1 christos char $ac_func ();
8269 1.1 christos /* The GNU C library defines this for functions which it implements
8270 1.1 christos to always fail with ENOSYS. Some functions are actually named
8271 1.1 christos something starting with __ and the normal name is an alias. */
8272 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8273 1.1 christos choke me
8274 1.1 christos #endif
8275 1.1 christos
8276 1.1 christos int
8277 1.1 christos main ()
8278 1.1 christos {
8279 1.1 christos return $ac_func ();
8280 1.1 christos ;
8281 1.1 christos return 0;
8282 1.1 christos }
8283 1.1 christos _ACEOF
8284 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8285 1.1 christos if { (ac_try="$ac_link"
8286 1.1 christos case "(($ac_try" in
8287 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 1.1 christos *) ac_try_echo=$ac_try;;
8289 1.1 christos esac
8290 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 1.1 christos (eval "$ac_link") 2>conftest.er1
8292 1.1 christos ac_status=$?
8293 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8294 1.1 christos rm -f conftest.er1
8295 1.1 christos cat conftest.err >&5
8296 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 1.1 christos (exit $ac_status); } && {
8298 1.1 christos test -z "$ac_c_werror_flag" ||
8299 1.1 christos test ! -s conftest.err
8300 1.1 christos } && test -s conftest$ac_exeext &&
8301 1.1 christos $as_test_x conftest$ac_exeext; then
8302 1.1 christos eval "$as_ac_var=yes"
8303 1.1 christos else
8304 1.1 christos echo "$as_me: failed program was:" >&5
8305 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8306 1.1 christos
8307 1.1 christos eval "$as_ac_var=no"
8308 1.1 christos fi
8309 1.1 christos
8310 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8311 1.1 christos conftest$ac_exeext conftest.$ac_ext
8312 1.1 christos fi
8313 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8314 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8315 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8316 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8317 1.1 christos cat >>confdefs.h <<_ACEOF
8318 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8319 1.1 christos _ACEOF
8320 1.1 christos
8321 1.1 christos fi
8322 1.1 christos done
8323 1.1 christos
8324 1.1 christos
8325 1.1 christos needsnprintf=no
8326 1.1 christos
8327 1.1 christos
8328 1.1 christos for ac_func in vsnprintf snprintf
8329 1.1 christos do
8330 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8333 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8334 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8335 1.1 christos else
8336 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8337 1.1 christos /* confdefs.h. */
8338 1.1 christos _ACEOF
8339 1.1 christos cat confdefs.h >>conftest.$ac_ext
8340 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8341 1.1 christos /* end confdefs.h. */
8342 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8344 1.1 christos #define $ac_func innocuous_$ac_func
8345 1.1 christos
8346 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8347 1.1 christos which can conflict with char $ac_func (); below.
8348 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349 1.1 christos <limits.h> exists even on freestanding compilers. */
8350 1.1 christos
8351 1.1 christos #ifdef __STDC__
8352 1.1 christos # include <limits.h>
8353 1.1 christos #else
8354 1.1 christos # include <assert.h>
8355 1.1 christos #endif
8356 1.1 christos
8357 1.1 christos #undef $ac_func
8358 1.1 christos
8359 1.1 christos /* Override any GCC internal prototype to avoid an error.
8360 1.1 christos Use char because int might match the return type of a GCC
8361 1.1 christos builtin and then its argument prototype would still apply. */
8362 1.1 christos #ifdef __cplusplus
8363 1.1 christos extern "C"
8364 1.1 christos #endif
8365 1.1 christos char $ac_func ();
8366 1.1 christos /* The GNU C library defines this for functions which it implements
8367 1.1 christos to always fail with ENOSYS. Some functions are actually named
8368 1.1 christos something starting with __ and the normal name is an alias. */
8369 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8370 1.1 christos choke me
8371 1.1 christos #endif
8372 1.1 christos
8373 1.1 christos int
8374 1.1 christos main ()
8375 1.1 christos {
8376 1.1 christos return $ac_func ();
8377 1.1 christos ;
8378 1.1 christos return 0;
8379 1.1 christos }
8380 1.1 christos _ACEOF
8381 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8382 1.1 christos if { (ac_try="$ac_link"
8383 1.1 christos case "(($ac_try" in
8384 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 1.1 christos *) ac_try_echo=$ac_try;;
8386 1.1 christos esac
8387 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 1.1 christos (eval "$ac_link") 2>conftest.er1
8389 1.1 christos ac_status=$?
8390 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8391 1.1 christos rm -f conftest.er1
8392 1.1 christos cat conftest.err >&5
8393 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 1.1 christos (exit $ac_status); } && {
8395 1.1 christos test -z "$ac_c_werror_flag" ||
8396 1.1 christos test ! -s conftest.err
8397 1.1 christos } && test -s conftest$ac_exeext &&
8398 1.1 christos $as_test_x conftest$ac_exeext; then
8399 1.1 christos eval "$as_ac_var=yes"
8400 1.1 christos else
8401 1.1 christos echo "$as_me: failed program was:" >&5
8402 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8403 1.1 christos
8404 1.1 christos eval "$as_ac_var=no"
8405 1.1 christos fi
8406 1.1 christos
8407 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408 1.1 christos conftest$ac_exeext conftest.$ac_ext
8409 1.1 christos fi
8410 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8411 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8412 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8413 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8414 1.1 christos cat >>confdefs.h <<_ACEOF
8415 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8416 1.1 christos _ACEOF
8417 1.1 christos
8418 1.1 christos else
8419 1.1 christos needsnprintf=yes
8420 1.1 christos fi
8421 1.1 christos done
8422 1.1 christos
8423 1.1 christos if test $needsnprintf = yes; then
8424 1.1 christos case " $LIBOBJS " in
8425 1.1 christos *" snprintf.$ac_objext "* ) ;;
8426 1.1 christos *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8427 1.1 christos ;;
8428 1.1 christos esac
8429 1.1 christos
8430 1.1 christos fi
8431 1.1 christos
8432 1.1 christos
8433 1.1 christos { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8434 1.1 christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8435 1.1 christos if test "${ac_cv_type_signal+set}" = set; then
8436 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8437 1.1 christos else
8438 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8439 1.1 christos /* confdefs.h. */
8440 1.1 christos _ACEOF
8441 1.1 christos cat confdefs.h >>conftest.$ac_ext
8442 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8443 1.1 christos /* end confdefs.h. */
8444 1.1 christos #include <sys/types.h>
8445 1.1 christos #include <signal.h>
8446 1.1 christos
8447 1.1 christos int
8448 1.1 christos main ()
8449 1.1 christos {
8450 1.1 christos return *(signal (0, 0)) (0) == 1;
8451 1.1 christos ;
8452 1.1 christos return 0;
8453 1.1 christos }
8454 1.1 christos _ACEOF
8455 1.1 christos rm -f conftest.$ac_objext
8456 1.1 christos if { (ac_try="$ac_compile"
8457 1.1 christos case "(($ac_try" in
8458 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 1.1 christos *) ac_try_echo=$ac_try;;
8460 1.1 christos esac
8461 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 1.1 christos (eval "$ac_compile") 2>conftest.er1
8463 1.1 christos ac_status=$?
8464 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8465 1.1 christos rm -f conftest.er1
8466 1.1 christos cat conftest.err >&5
8467 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 1.1 christos (exit $ac_status); } && {
8469 1.1 christos test -z "$ac_c_werror_flag" ||
8470 1.1 christos test ! -s conftest.err
8471 1.1 christos } && test -s conftest.$ac_objext; then
8472 1.1 christos ac_cv_type_signal=int
8473 1.1 christos else
8474 1.1 christos echo "$as_me: failed program was:" >&5
8475 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8476 1.1 christos
8477 1.1 christos ac_cv_type_signal=void
8478 1.1 christos fi
8479 1.1 christos
8480 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 1.1 christos fi
8482 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8483 1.1 christos echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8484 1.1 christos
8485 1.1 christos cat >>confdefs.h <<_ACEOF
8486 1.1 christos #define RETSIGTYPE $ac_cv_type_signal
8487 1.1 christos _ACEOF
8488 1.1 christos
8489 1.1 christos
8490 1.1 christos if test "$ac_cv_type_signal" = void ; then
8491 1.1 christos
8492 1.1 christos cat >>confdefs.h <<\_ACEOF
8493 1.1 christos #define RETSIGVAL
8494 1.1 christos _ACEOF
8495 1.1 christos
8496 1.1 christos else
8497 1.1 christos
8498 1.1 christos cat >>confdefs.h <<\_ACEOF
8499 1.1 christos #define RETSIGVAL (0)
8500 1.1 christos _ACEOF
8501 1.1 christos
8502 1.1 christos fi
8503 1.1 christos case "$host_os" in
8504 1.1 christos
8505 1.1 christos irix*)
8506 1.1 christos
8507 1.1 christos cat >>confdefs.h <<\_ACEOF
8508 1.1 christos #define _BSD_SIGNALS 1
8509 1.1 christos _ACEOF
8510 1.1 christos
8511 1.1 christos ;;
8512 1.1 christos
8513 1.1 christos *)
8514 1.1 christos
8515 1.1 christos for ac_func in sigaction
8516 1.1 christos do
8517 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8518 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8519 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8520 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8521 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8522 1.1 christos else
8523 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8524 1.1 christos /* confdefs.h. */
8525 1.1 christos _ACEOF
8526 1.1 christos cat confdefs.h >>conftest.$ac_ext
8527 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8528 1.1 christos /* end confdefs.h. */
8529 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8530 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531 1.1 christos #define $ac_func innocuous_$ac_func
8532 1.1 christos
8533 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8534 1.1 christos which can conflict with char $ac_func (); below.
8535 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 1.1 christos <limits.h> exists even on freestanding compilers. */
8537 1.1 christos
8538 1.1 christos #ifdef __STDC__
8539 1.1 christos # include <limits.h>
8540 1.1 christos #else
8541 1.1 christos # include <assert.h>
8542 1.1 christos #endif
8543 1.1 christos
8544 1.1 christos #undef $ac_func
8545 1.1 christos
8546 1.1 christos /* Override any GCC internal prototype to avoid an error.
8547 1.1 christos Use char because int might match the return type of a GCC
8548 1.1 christos builtin and then its argument prototype would still apply. */
8549 1.1 christos #ifdef __cplusplus
8550 1.1 christos extern "C"
8551 1.1 christos #endif
8552 1.1 christos char $ac_func ();
8553 1.1 christos /* The GNU C library defines this for functions which it implements
8554 1.1 christos to always fail with ENOSYS. Some functions are actually named
8555 1.1 christos something starting with __ and the normal name is an alias. */
8556 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8557 1.1 christos choke me
8558 1.1 christos #endif
8559 1.1 christos
8560 1.1 christos int
8561 1.1 christos main ()
8562 1.1 christos {
8563 1.1 christos return $ac_func ();
8564 1.1 christos ;
8565 1.1 christos return 0;
8566 1.1 christos }
8567 1.1 christos _ACEOF
8568 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8569 1.1 christos if { (ac_try="$ac_link"
8570 1.1 christos case "(($ac_try" in
8571 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 1.1 christos *) ac_try_echo=$ac_try;;
8573 1.1 christos esac
8574 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 1.1 christos (eval "$ac_link") 2>conftest.er1
8576 1.1 christos ac_status=$?
8577 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8578 1.1 christos rm -f conftest.er1
8579 1.1 christos cat conftest.err >&5
8580 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 1.1 christos (exit $ac_status); } && {
8582 1.1 christos test -z "$ac_c_werror_flag" ||
8583 1.1 christos test ! -s conftest.err
8584 1.1 christos } && test -s conftest$ac_exeext &&
8585 1.1 christos $as_test_x conftest$ac_exeext; then
8586 1.1 christos eval "$as_ac_var=yes"
8587 1.1 christos else
8588 1.1 christos echo "$as_me: failed program was:" >&5
8589 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8590 1.1 christos
8591 1.1 christos eval "$as_ac_var=no"
8592 1.1 christos fi
8593 1.1 christos
8594 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8595 1.1 christos conftest$ac_exeext conftest.$ac_ext
8596 1.1 christos fi
8597 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8598 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8599 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8600 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8601 1.1 christos cat >>confdefs.h <<_ACEOF
8602 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8603 1.1 christos _ACEOF
8604 1.1 christos
8605 1.1 christos fi
8606 1.1 christos done
8607 1.1 christos
8608 1.1 christos if test $ac_cv_func_sigaction = no ; then
8609 1.1 christos
8610 1.1 christos for ac_func in sigset
8611 1.1 christos do
8612 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8613 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8614 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8615 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8616 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8617 1.1 christos else
8618 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8619 1.1 christos /* confdefs.h. */
8620 1.1 christos _ACEOF
8621 1.1 christos cat confdefs.h >>conftest.$ac_ext
8622 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8623 1.1 christos /* end confdefs.h. */
8624 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8625 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8626 1.1 christos #define $ac_func innocuous_$ac_func
8627 1.1 christos
8628 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
8629 1.1 christos which can conflict with char $ac_func (); below.
8630 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 1.1 christos <limits.h> exists even on freestanding compilers. */
8632 1.1 christos
8633 1.1 christos #ifdef __STDC__
8634 1.1 christos # include <limits.h>
8635 1.1 christos #else
8636 1.1 christos # include <assert.h>
8637 1.1 christos #endif
8638 1.1 christos
8639 1.1 christos #undef $ac_func
8640 1.1 christos
8641 1.1 christos /* Override any GCC internal prototype to avoid an error.
8642 1.1 christos Use char because int might match the return type of a GCC
8643 1.1 christos builtin and then its argument prototype would still apply. */
8644 1.1 christos #ifdef __cplusplus
8645 1.1 christos extern "C"
8646 1.1 christos #endif
8647 1.1 christos char $ac_func ();
8648 1.1 christos /* The GNU C library defines this for functions which it implements
8649 1.1 christos to always fail with ENOSYS. Some functions are actually named
8650 1.1 christos something starting with __ and the normal name is an alias. */
8651 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8652 1.1 christos choke me
8653 1.1 christos #endif
8654 1.1 christos
8655 1.1 christos int
8656 1.1 christos main ()
8657 1.1 christos {
8658 1.1 christos return $ac_func ();
8659 1.1 christos ;
8660 1.1 christos return 0;
8661 1.1 christos }
8662 1.1 christos _ACEOF
8663 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8664 1.1 christos if { (ac_try="$ac_link"
8665 1.1 christos case "(($ac_try" in
8666 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 1.1 christos *) ac_try_echo=$ac_try;;
8668 1.1 christos esac
8669 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 1.1 christos (eval "$ac_link") 2>conftest.er1
8671 1.1 christos ac_status=$?
8672 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8673 1.1 christos rm -f conftest.er1
8674 1.1 christos cat conftest.err >&5
8675 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 1.1 christos (exit $ac_status); } && {
8677 1.1 christos test -z "$ac_c_werror_flag" ||
8678 1.1 christos test ! -s conftest.err
8679 1.1 christos } && test -s conftest$ac_exeext &&
8680 1.1 christos $as_test_x conftest$ac_exeext; then
8681 1.1 christos eval "$as_ac_var=yes"
8682 1.1 christos else
8683 1.1 christos echo "$as_me: failed program was:" >&5
8684 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8685 1.1 christos
8686 1.1 christos eval "$as_ac_var=no"
8687 1.1 christos fi
8688 1.1 christos
8689 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8690 1.1 christos conftest$ac_exeext conftest.$ac_ext
8691 1.1 christos fi
8692 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
8693 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8694 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
8695 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 1.1 christos cat >>confdefs.h <<_ACEOF
8697 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 1.1 christos _ACEOF
8699 1.1 christos
8700 1.1 christos fi
8701 1.1 christos done
8702 1.1 christos
8703 1.1 christos fi
8704 1.1 christos ;;
8705 1.1 christos esac
8706 1.1 christos
8707 1.1 christos { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8708 1.1 christos echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8709 1.1 christos if test "${ac_cv_search_dnet_htoa+set}" = set; then
8710 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8711 1.1 christos else
8712 1.1 christos ac_func_search_save_LIBS=$LIBS
8713 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8714 1.1 christos /* confdefs.h. */
8715 1.1 christos _ACEOF
8716 1.1 christos cat confdefs.h >>conftest.$ac_ext
8717 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8718 1.1 christos /* end confdefs.h. */
8719 1.1 christos
8720 1.1 christos /* Override any GCC internal prototype to avoid an error.
8721 1.1 christos Use char because int might match the return type of a GCC
8722 1.1 christos builtin and then its argument prototype would still apply. */
8723 1.1 christos #ifdef __cplusplus
8724 1.1 christos extern "C"
8725 1.1 christos #endif
8726 1.1 christos char dnet_htoa ();
8727 1.1 christos int
8728 1.1 christos main ()
8729 1.1 christos {
8730 1.1 christos return dnet_htoa ();
8731 1.1 christos ;
8732 1.1 christos return 0;
8733 1.1 christos }
8734 1.1 christos _ACEOF
8735 1.1 christos for ac_lib in '' dnet; do
8736 1.1 christos if test -z "$ac_lib"; then
8737 1.1 christos ac_res="none required"
8738 1.1 christos else
8739 1.1 christos ac_res=-l$ac_lib
8740 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8741 1.1 christos fi
8742 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8743 1.1 christos if { (ac_try="$ac_link"
8744 1.1 christos case "(($ac_try" in
8745 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 1.1 christos *) ac_try_echo=$ac_try;;
8747 1.1 christos esac
8748 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 1.1 christos (eval "$ac_link") 2>conftest.er1
8750 1.1 christos ac_status=$?
8751 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8752 1.1 christos rm -f conftest.er1
8753 1.1 christos cat conftest.err >&5
8754 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 1.1 christos (exit $ac_status); } && {
8756 1.1 christos test -z "$ac_c_werror_flag" ||
8757 1.1 christos test ! -s conftest.err
8758 1.1 christos } && test -s conftest$ac_exeext &&
8759 1.1 christos $as_test_x conftest$ac_exeext; then
8760 1.1 christos ac_cv_search_dnet_htoa=$ac_res
8761 1.1 christos else
8762 1.1 christos echo "$as_me: failed program was:" >&5
8763 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8764 1.1 christos
8765 1.1 christos
8766 1.1 christos fi
8767 1.1 christos
8768 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8769 1.1 christos conftest$ac_exeext
8770 1.1 christos if test "${ac_cv_search_dnet_htoa+set}" = set; then
8771 1.1 christos break
8772 1.1 christos fi
8773 1.1 christos done
8774 1.1 christos if test "${ac_cv_search_dnet_htoa+set}" = set; then
8775 1.1 christos :
8776 1.1 christos else
8777 1.1 christos ac_cv_search_dnet_htoa=no
8778 1.1 christos fi
8779 1.1 christos rm conftest.$ac_ext
8780 1.1 christos LIBS=$ac_func_search_save_LIBS
8781 1.1 christos fi
8782 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8783 1.1 christos echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8784 1.1 christos ac_res=$ac_cv_search_dnet_htoa
8785 1.1 christos if test "$ac_res" != no; then
8786 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8787 1.1 christos cat >>confdefs.h <<\_ACEOF
8788 1.1 christos #define HAVE_DNET_HTOA 1
8789 1.1 christos _ACEOF
8790 1.1 christos
8791 1.1 christos fi
8792 1.1 christos
8793 1.1 christos
8794 1.1 christos
8795 1.1 christos { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8796 1.1 christos echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8797 1.1 christos if test "${ac_cv_lib_rpc_main+set}" = set; then
8798 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8799 1.1 christos else
8800 1.1 christos ac_check_lib_save_LIBS=$LIBS
8801 1.1 christos LIBS="-lrpc $LIBS"
8802 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8803 1.1 christos /* confdefs.h. */
8804 1.1 christos _ACEOF
8805 1.1 christos cat confdefs.h >>conftest.$ac_ext
8806 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8807 1.1 christos /* end confdefs.h. */
8808 1.1 christos
8809 1.1 christos
8810 1.1 christos int
8811 1.1 christos main ()
8812 1.1 christos {
8813 1.1 christos return main ();
8814 1.1 christos ;
8815 1.1 christos return 0;
8816 1.1 christos }
8817 1.1 christos _ACEOF
8818 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8819 1.1 christos if { (ac_try="$ac_link"
8820 1.1 christos case "(($ac_try" in
8821 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 1.1 christos *) ac_try_echo=$ac_try;;
8823 1.1 christos esac
8824 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 1.1 christos (eval "$ac_link") 2>conftest.er1
8826 1.1 christos ac_status=$?
8827 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8828 1.1 christos rm -f conftest.er1
8829 1.1 christos cat conftest.err >&5
8830 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 1.1 christos (exit $ac_status); } && {
8832 1.1 christos test -z "$ac_c_werror_flag" ||
8833 1.1 christos test ! -s conftest.err
8834 1.1 christos } && test -s conftest$ac_exeext &&
8835 1.1 christos $as_test_x conftest$ac_exeext; then
8836 1.1 christos ac_cv_lib_rpc_main=yes
8837 1.1 christos else
8838 1.1 christos echo "$as_me: failed program was:" >&5
8839 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8840 1.1 christos
8841 1.1 christos ac_cv_lib_rpc_main=no
8842 1.1 christos fi
8843 1.1 christos
8844 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8845 1.1 christos conftest$ac_exeext conftest.$ac_ext
8846 1.1 christos LIBS=$ac_check_lib_save_LIBS
8847 1.1 christos fi
8848 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8849 1.1 christos echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8850 1.1 christos if test $ac_cv_lib_rpc_main = yes; then
8851 1.1 christos cat >>confdefs.h <<_ACEOF
8852 1.1 christos #define HAVE_LIBRPC 1
8853 1.1 christos _ACEOF
8854 1.1 christos
8855 1.1 christos LIBS="-lrpc $LIBS"
8856 1.1 christos
8857 1.1 christos fi
8858 1.1 christos
8859 1.1 christos { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8860 1.1 christos echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8861 1.1 christos if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8862 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8863 1.1 christos else
8864 1.1 christos ac_func_search_save_LIBS=$LIBS
8865 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8866 1.1 christos /* confdefs.h. */
8867 1.1 christos _ACEOF
8868 1.1 christos cat confdefs.h >>conftest.$ac_ext
8869 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8870 1.1 christos /* end confdefs.h. */
8871 1.1 christos
8872 1.1 christos /* Override any GCC internal prototype to avoid an error.
8873 1.1 christos Use char because int might match the return type of a GCC
8874 1.1 christos builtin and then its argument prototype would still apply. */
8875 1.1 christos #ifdef __cplusplus
8876 1.1 christos extern "C"
8877 1.1 christos #endif
8878 1.1 christos char getrpcbynumber ();
8879 1.1 christos int
8880 1.1 christos main ()
8881 1.1 christos {
8882 1.1 christos return getrpcbynumber ();
8883 1.1 christos ;
8884 1.1 christos return 0;
8885 1.1 christos }
8886 1.1 christos _ACEOF
8887 1.1 christos for ac_lib in '' nsl; do
8888 1.1 christos if test -z "$ac_lib"; then
8889 1.1 christos ac_res="none required"
8890 1.1 christos else
8891 1.1 christos ac_res=-l$ac_lib
8892 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8893 1.1 christos fi
8894 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8895 1.1 christos if { (ac_try="$ac_link"
8896 1.1 christos case "(($ac_try" in
8897 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 1.1 christos *) ac_try_echo=$ac_try;;
8899 1.1 christos esac
8900 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 1.1 christos (eval "$ac_link") 2>conftest.er1
8902 1.1 christos ac_status=$?
8903 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8904 1.1 christos rm -f conftest.er1
8905 1.1 christos cat conftest.err >&5
8906 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 1.1 christos (exit $ac_status); } && {
8908 1.1 christos test -z "$ac_c_werror_flag" ||
8909 1.1 christos test ! -s conftest.err
8910 1.1 christos } && test -s conftest$ac_exeext &&
8911 1.1 christos $as_test_x conftest$ac_exeext; then
8912 1.1 christos ac_cv_search_getrpcbynumber=$ac_res
8913 1.1 christos else
8914 1.1 christos echo "$as_me: failed program was:" >&5
8915 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
8916 1.1 christos
8917 1.1 christos
8918 1.1 christos fi
8919 1.1 christos
8920 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8921 1.1 christos conftest$ac_exeext
8922 1.1 christos if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8923 1.1 christos break
8924 1.1 christos fi
8925 1.1 christos done
8926 1.1 christos if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8927 1.1 christos :
8928 1.1 christos else
8929 1.1 christos ac_cv_search_getrpcbynumber=no
8930 1.1 christos fi
8931 1.1 christos rm conftest.$ac_ext
8932 1.1 christos LIBS=$ac_func_search_save_LIBS
8933 1.1 christos fi
8934 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8935 1.1 christos echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8936 1.1 christos ac_res=$ac_cv_search_getrpcbynumber
8937 1.1 christos if test "$ac_res" != no; then
8938 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8939 1.1 christos cat >>confdefs.h <<\_ACEOF
8940 1.1 christos #define HAVE_GETRPCBYNUMBER 1
8941 1.1 christos _ACEOF
8942 1.1 christos
8943 1.1 christos fi
8944 1.1 christos
8945 1.1 christos
8946 1.1 christos
8947 1.1 christos
8948 1.1 christos # Most operating systems have gethostbyname() in the default searched
8949 1.1 christos # libraries (i.e. libc):
8950 1.1 christos # Some OSes (eg. Solaris) place it in libnsl
8951 1.1 christos # Some strange OSes (SINIX) have it in libsocket:
8952 1.1 christos { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8953 1.1 christos echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8954 1.1 christos if test "${ac_cv_search_gethostbyname+set}" = set; then
8955 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8956 1.1 christos else
8957 1.1 christos ac_func_search_save_LIBS=$LIBS
8958 1.1 christos cat >conftest.$ac_ext <<_ACEOF
8959 1.1 christos /* confdefs.h. */
8960 1.1 christos _ACEOF
8961 1.1 christos cat confdefs.h >>conftest.$ac_ext
8962 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
8963 1.1 christos /* end confdefs.h. */
8964 1.1 christos
8965 1.1 christos /* Override any GCC internal prototype to avoid an error.
8966 1.1 christos Use char because int might match the return type of a GCC
8967 1.1 christos builtin and then its argument prototype would still apply. */
8968 1.1 christos #ifdef __cplusplus
8969 1.1 christos extern "C"
8970 1.1 christos #endif
8971 1.1 christos char gethostbyname ();
8972 1.1 christos int
8973 1.1 christos main ()
8974 1.1 christos {
8975 1.1 christos return gethostbyname ();
8976 1.1 christos ;
8977 1.1 christos return 0;
8978 1.1 christos }
8979 1.1 christos _ACEOF
8980 1.1 christos for ac_lib in '' nsl socket resolv; do
8981 1.1 christos if test -z "$ac_lib"; then
8982 1.1 christos ac_res="none required"
8983 1.1 christos else
8984 1.1 christos ac_res=-l$ac_lib
8985 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8986 1.1 christos fi
8987 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
8988 1.1 christos if { (ac_try="$ac_link"
8989 1.1 christos case "(($ac_try" in
8990 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 1.1 christos *) ac_try_echo=$ac_try;;
8992 1.1 christos esac
8993 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 1.1 christos (eval "$ac_link") 2>conftest.er1
8995 1.1 christos ac_status=$?
8996 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
8997 1.1 christos rm -f conftest.er1
8998 1.1 christos cat conftest.err >&5
8999 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 1.1 christos (exit $ac_status); } && {
9001 1.1 christos test -z "$ac_c_werror_flag" ||
9002 1.1 christos test ! -s conftest.err
9003 1.1 christos } && test -s conftest$ac_exeext &&
9004 1.1 christos $as_test_x conftest$ac_exeext; then
9005 1.1 christos ac_cv_search_gethostbyname=$ac_res
9006 1.1 christos else
9007 1.1 christos echo "$as_me: failed program was:" >&5
9008 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9009 1.1 christos
9010 1.1 christos
9011 1.1 christos fi
9012 1.1 christos
9013 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9014 1.1 christos conftest$ac_exeext
9015 1.1 christos if test "${ac_cv_search_gethostbyname+set}" = set; then
9016 1.1 christos break
9017 1.1 christos fi
9018 1.1 christos done
9019 1.1 christos if test "${ac_cv_search_gethostbyname+set}" = set; then
9020 1.1 christos :
9021 1.1 christos else
9022 1.1 christos ac_cv_search_gethostbyname=no
9023 1.1 christos fi
9024 1.1 christos rm conftest.$ac_ext
9025 1.1 christos LIBS=$ac_func_search_save_LIBS
9026 1.1 christos fi
9027 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9028 1.1 christos echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9029 1.1 christos ac_res=$ac_cv_search_gethostbyname
9030 1.1 christos if test "$ac_res" != no; then
9031 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032 1.1 christos
9033 1.1 christos fi
9034 1.1 christos
9035 1.1 christos # Unfortunately libsocket sometimes depends on libnsl and
9036 1.1 christos # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9037 1.1 christos if test "$ac_cv_search_gethostbyname" = "no"
9038 1.1 christos then
9039 1.1 christos { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9040 1.1 christos echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9041 1.1 christos if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9042 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9043 1.1 christos else
9044 1.1 christos ac_check_lib_save_LIBS=$LIBS
9045 1.1 christos LIBS="-lsocket -lnsl $LIBS"
9046 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9047 1.1 christos /* confdefs.h. */
9048 1.1 christos _ACEOF
9049 1.1 christos cat confdefs.h >>conftest.$ac_ext
9050 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9051 1.1 christos /* end confdefs.h. */
9052 1.1 christos
9053 1.1 christos /* Override any GCC internal prototype to avoid an error.
9054 1.1 christos Use char because int might match the return type of a GCC
9055 1.1 christos builtin and then its argument prototype would still apply. */
9056 1.1 christos #ifdef __cplusplus
9057 1.1 christos extern "C"
9058 1.1 christos #endif
9059 1.1 christos char gethostbyname ();
9060 1.1 christos int
9061 1.1 christos main ()
9062 1.1 christos {
9063 1.1 christos return gethostbyname ();
9064 1.1 christos ;
9065 1.1 christos return 0;
9066 1.1 christos }
9067 1.1 christos _ACEOF
9068 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9069 1.1 christos if { (ac_try="$ac_link"
9070 1.1 christos case "(($ac_try" in
9071 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 1.1 christos *) ac_try_echo=$ac_try;;
9073 1.1 christos esac
9074 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 1.1 christos (eval "$ac_link") 2>conftest.er1
9076 1.1 christos ac_status=$?
9077 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9078 1.1 christos rm -f conftest.er1
9079 1.1 christos cat conftest.err >&5
9080 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 1.1 christos (exit $ac_status); } && {
9082 1.1 christos test -z "$ac_c_werror_flag" ||
9083 1.1 christos test ! -s conftest.err
9084 1.1 christos } && test -s conftest$ac_exeext &&
9085 1.1 christos $as_test_x conftest$ac_exeext; then
9086 1.1 christos ac_cv_lib_socket_gethostbyname=yes
9087 1.1 christos else
9088 1.1 christos echo "$as_me: failed program was:" >&5
9089 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9090 1.1 christos
9091 1.1 christos ac_cv_lib_socket_gethostbyname=no
9092 1.1 christos fi
9093 1.1 christos
9094 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095 1.1 christos conftest$ac_exeext conftest.$ac_ext
9096 1.1 christos LIBS=$ac_check_lib_save_LIBS
9097 1.1 christos fi
9098 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9099 1.1 christos echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9100 1.1 christos if test $ac_cv_lib_socket_gethostbyname = yes; then
9101 1.1 christos LIBS="-lsocket -lnsl $LIBS"
9102 1.1 christos fi
9103 1.1 christos
9104 1.1 christos fi
9105 1.1 christos { echo "$as_me:$LINENO: checking for library containing socket" >&5
9106 1.1 christos echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9107 1.1 christos if test "${ac_cv_search_socket+set}" = set; then
9108 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9109 1.1 christos else
9110 1.1 christos ac_func_search_save_LIBS=$LIBS
9111 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9112 1.1 christos /* confdefs.h. */
9113 1.1 christos _ACEOF
9114 1.1 christos cat confdefs.h >>conftest.$ac_ext
9115 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9116 1.1 christos /* end confdefs.h. */
9117 1.1 christos
9118 1.1 christos /* Override any GCC internal prototype to avoid an error.
9119 1.1 christos Use char because int might match the return type of a GCC
9120 1.1 christos builtin and then its argument prototype would still apply. */
9121 1.1 christos #ifdef __cplusplus
9122 1.1 christos extern "C"
9123 1.1 christos #endif
9124 1.1 christos char socket ();
9125 1.1 christos int
9126 1.1 christos main ()
9127 1.1 christos {
9128 1.1 christos return socket ();
9129 1.1 christos ;
9130 1.1 christos return 0;
9131 1.1 christos }
9132 1.1 christos _ACEOF
9133 1.1 christos for ac_lib in '' socket; do
9134 1.1 christos if test -z "$ac_lib"; then
9135 1.1 christos ac_res="none required"
9136 1.1 christos else
9137 1.1 christos ac_res=-l$ac_lib
9138 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9139 1.1 christos fi
9140 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9141 1.1 christos if { (ac_try="$ac_link"
9142 1.1 christos case "(($ac_try" in
9143 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 1.1 christos *) ac_try_echo=$ac_try;;
9145 1.1 christos esac
9146 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 1.1 christos (eval "$ac_link") 2>conftest.er1
9148 1.1 christos ac_status=$?
9149 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9150 1.1 christos rm -f conftest.er1
9151 1.1 christos cat conftest.err >&5
9152 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 1.1 christos (exit $ac_status); } && {
9154 1.1 christos test -z "$ac_c_werror_flag" ||
9155 1.1 christos test ! -s conftest.err
9156 1.1 christos } && test -s conftest$ac_exeext &&
9157 1.1 christos $as_test_x conftest$ac_exeext; then
9158 1.1 christos ac_cv_search_socket=$ac_res
9159 1.1 christos else
9160 1.1 christos echo "$as_me: failed program was:" >&5
9161 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9162 1.1 christos
9163 1.1 christos
9164 1.1 christos fi
9165 1.1 christos
9166 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9167 1.1 christos conftest$ac_exeext
9168 1.1 christos if test "${ac_cv_search_socket+set}" = set; then
9169 1.1 christos break
9170 1.1 christos fi
9171 1.1 christos done
9172 1.1 christos if test "${ac_cv_search_socket+set}" = set; then
9173 1.1 christos :
9174 1.1 christos else
9175 1.1 christos ac_cv_search_socket=no
9176 1.1 christos fi
9177 1.1 christos rm conftest.$ac_ext
9178 1.1 christos LIBS=$ac_func_search_save_LIBS
9179 1.1 christos fi
9180 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9181 1.1 christos echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9182 1.1 christos ac_res=$ac_cv_search_socket
9183 1.1 christos if test "$ac_res" != no; then
9184 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9185 1.1 christos
9186 1.1 christos else
9187 1.1 christos { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9188 1.1 christos echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9189 1.1 christos if test "${ac_cv_lib_socket_socket+set}" = set; then
9190 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9191 1.1 christos else
9192 1.1 christos ac_check_lib_save_LIBS=$LIBS
9193 1.1 christos LIBS="-lsocket -lnsl $LIBS"
9194 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9195 1.1 christos /* confdefs.h. */
9196 1.1 christos _ACEOF
9197 1.1 christos cat confdefs.h >>conftest.$ac_ext
9198 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9199 1.1 christos /* end confdefs.h. */
9200 1.1 christos
9201 1.1 christos /* Override any GCC internal prototype to avoid an error.
9202 1.1 christos Use char because int might match the return type of a GCC
9203 1.1 christos builtin and then its argument prototype would still apply. */
9204 1.1 christos #ifdef __cplusplus
9205 1.1 christos extern "C"
9206 1.1 christos #endif
9207 1.1 christos char socket ();
9208 1.1 christos int
9209 1.1 christos main ()
9210 1.1 christos {
9211 1.1 christos return socket ();
9212 1.1 christos ;
9213 1.1 christos return 0;
9214 1.1 christos }
9215 1.1 christos _ACEOF
9216 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9217 1.1 christos if { (ac_try="$ac_link"
9218 1.1 christos case "(($ac_try" in
9219 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 1.1 christos *) ac_try_echo=$ac_try;;
9221 1.1 christos esac
9222 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 1.1 christos (eval "$ac_link") 2>conftest.er1
9224 1.1 christos ac_status=$?
9225 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9226 1.1 christos rm -f conftest.er1
9227 1.1 christos cat conftest.err >&5
9228 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 1.1 christos (exit $ac_status); } && {
9230 1.1 christos test -z "$ac_c_werror_flag" ||
9231 1.1 christos test ! -s conftest.err
9232 1.1 christos } && test -s conftest$ac_exeext &&
9233 1.1 christos $as_test_x conftest$ac_exeext; then
9234 1.1 christos ac_cv_lib_socket_socket=yes
9235 1.1 christos else
9236 1.1 christos echo "$as_me: failed program was:" >&5
9237 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9238 1.1 christos
9239 1.1 christos ac_cv_lib_socket_socket=no
9240 1.1 christos fi
9241 1.1 christos
9242 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243 1.1 christos conftest$ac_exeext conftest.$ac_ext
9244 1.1 christos LIBS=$ac_check_lib_save_LIBS
9245 1.1 christos fi
9246 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9247 1.1 christos echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9248 1.1 christos if test $ac_cv_lib_socket_socket = yes; then
9249 1.1 christos LIBS="-lsocket -lnsl $LIBS"
9250 1.1 christos fi
9251 1.1 christos
9252 1.1 christos fi
9253 1.1 christos
9254 1.1 christos # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9255 1.1 christos { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9256 1.1 christos echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9257 1.1 christos if test "${ac_cv_search_putmsg+set}" = set; then
9258 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9259 1.1 christos else
9260 1.1 christos ac_func_search_save_LIBS=$LIBS
9261 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9262 1.1 christos /* confdefs.h. */
9263 1.1 christos _ACEOF
9264 1.1 christos cat confdefs.h >>conftest.$ac_ext
9265 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9266 1.1 christos /* end confdefs.h. */
9267 1.1 christos
9268 1.1 christos /* Override any GCC internal prototype to avoid an error.
9269 1.1 christos Use char because int might match the return type of a GCC
9270 1.1 christos builtin and then its argument prototype would still apply. */
9271 1.1 christos #ifdef __cplusplus
9272 1.1 christos extern "C"
9273 1.1 christos #endif
9274 1.1 christos char putmsg ();
9275 1.1 christos int
9276 1.1 christos main ()
9277 1.1 christos {
9278 1.1 christos return putmsg ();
9279 1.1 christos ;
9280 1.1 christos return 0;
9281 1.1 christos }
9282 1.1 christos _ACEOF
9283 1.1 christos for ac_lib in '' str; do
9284 1.1 christos if test -z "$ac_lib"; then
9285 1.1 christos ac_res="none required"
9286 1.1 christos else
9287 1.1 christos ac_res=-l$ac_lib
9288 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9289 1.1 christos fi
9290 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9291 1.1 christos if { (ac_try="$ac_link"
9292 1.1 christos case "(($ac_try" in
9293 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 1.1 christos *) ac_try_echo=$ac_try;;
9295 1.1 christos esac
9296 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 1.1 christos (eval "$ac_link") 2>conftest.er1
9298 1.1 christos ac_status=$?
9299 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9300 1.1 christos rm -f conftest.er1
9301 1.1 christos cat conftest.err >&5
9302 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 1.1 christos (exit $ac_status); } && {
9304 1.1 christos test -z "$ac_c_werror_flag" ||
9305 1.1 christos test ! -s conftest.err
9306 1.1 christos } && test -s conftest$ac_exeext &&
9307 1.1 christos $as_test_x conftest$ac_exeext; then
9308 1.1 christos ac_cv_search_putmsg=$ac_res
9309 1.1 christos else
9310 1.1 christos echo "$as_me: failed program was:" >&5
9311 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9312 1.1 christos
9313 1.1 christos
9314 1.1 christos fi
9315 1.1 christos
9316 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 1.1 christos conftest$ac_exeext
9318 1.1 christos if test "${ac_cv_search_putmsg+set}" = set; then
9319 1.1 christos break
9320 1.1 christos fi
9321 1.1 christos done
9322 1.1 christos if test "${ac_cv_search_putmsg+set}" = set; then
9323 1.1 christos :
9324 1.1 christos else
9325 1.1 christos ac_cv_search_putmsg=no
9326 1.1 christos fi
9327 1.1 christos rm conftest.$ac_ext
9328 1.1 christos LIBS=$ac_func_search_save_LIBS
9329 1.1 christos fi
9330 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9331 1.1 christos echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9332 1.1 christos ac_res=$ac_cv_search_putmsg
9333 1.1 christos if test "$ac_res" != no; then
9334 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9335 1.1 christos
9336 1.1 christos fi
9337 1.1 christos
9338 1.1 christos
9339 1.1 christos
9340 1.1 christos LBL_LIBS="$LIBS"
9341 1.1 christos pfopen=/usr/examples/packetfilter/pfopen.c
9342 1.1 christos if test -f $pfopen ; then
9343 1.1 christos
9344 1.1 christos for ac_func in pfopen
9345 1.1 christos do
9346 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9349 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9350 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9351 1.1 christos else
9352 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9353 1.1 christos /* confdefs.h. */
9354 1.1 christos _ACEOF
9355 1.1 christos cat confdefs.h >>conftest.$ac_ext
9356 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9357 1.1 christos /* end confdefs.h. */
9358 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9360 1.1 christos #define $ac_func innocuous_$ac_func
9361 1.1 christos
9362 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9363 1.1 christos which can conflict with char $ac_func (); below.
9364 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365 1.1 christos <limits.h> exists even on freestanding compilers. */
9366 1.1 christos
9367 1.1 christos #ifdef __STDC__
9368 1.1 christos # include <limits.h>
9369 1.1 christos #else
9370 1.1 christos # include <assert.h>
9371 1.1 christos #endif
9372 1.1 christos
9373 1.1 christos #undef $ac_func
9374 1.1 christos
9375 1.1 christos /* Override any GCC internal prototype to avoid an error.
9376 1.1 christos Use char because int might match the return type of a GCC
9377 1.1 christos builtin and then its argument prototype would still apply. */
9378 1.1 christos #ifdef __cplusplus
9379 1.1 christos extern "C"
9380 1.1 christos #endif
9381 1.1 christos char $ac_func ();
9382 1.1 christos /* The GNU C library defines this for functions which it implements
9383 1.1 christos to always fail with ENOSYS. Some functions are actually named
9384 1.1 christos something starting with __ and the normal name is an alias. */
9385 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
9386 1.1 christos choke me
9387 1.1 christos #endif
9388 1.1 christos
9389 1.1 christos int
9390 1.1 christos main ()
9391 1.1 christos {
9392 1.1 christos return $ac_func ();
9393 1.1 christos ;
9394 1.1 christos return 0;
9395 1.1 christos }
9396 1.1 christos _ACEOF
9397 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9398 1.1 christos if { (ac_try="$ac_link"
9399 1.1 christos case "(($ac_try" in
9400 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 1.1 christos *) ac_try_echo=$ac_try;;
9402 1.1 christos esac
9403 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 1.1 christos (eval "$ac_link") 2>conftest.er1
9405 1.1 christos ac_status=$?
9406 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9407 1.1 christos rm -f conftest.er1
9408 1.1 christos cat conftest.err >&5
9409 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 1.1 christos (exit $ac_status); } && {
9411 1.1 christos test -z "$ac_c_werror_flag" ||
9412 1.1 christos test ! -s conftest.err
9413 1.1 christos } && test -s conftest$ac_exeext &&
9414 1.1 christos $as_test_x conftest$ac_exeext; then
9415 1.1 christos eval "$as_ac_var=yes"
9416 1.1 christos else
9417 1.1 christos echo "$as_me: failed program was:" >&5
9418 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9419 1.1 christos
9420 1.1 christos eval "$as_ac_var=no"
9421 1.1 christos fi
9422 1.1 christos
9423 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 1.1 christos conftest$ac_exeext conftest.$ac_ext
9425 1.1 christos fi
9426 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
9427 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
9428 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
9429 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
9430 1.1 christos cat >>confdefs.h <<_ACEOF
9431 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432 1.1 christos _ACEOF
9433 1.1 christos
9434 1.1 christos fi
9435 1.1 christos done
9436 1.1 christos
9437 1.1 christos if test $ac_cv_func_pfopen = "no" ; then
9438 1.1 christos { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9439 1.1 christos echo "${ECHO_T}Using $pfopen" >&6; }
9440 1.1 christos LIBS="$LIBS $pfopen"
9441 1.1 christos fi
9442 1.1 christos fi
9443 1.1 christos { echo "$as_me:$LINENO: checking for local pcap library" >&5
9444 1.1 christos echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9445 1.1 christos libpcap=FAIL
9446 1.1 christos lastdir=FAIL
9447 1.1 christos places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9448 1.1 christos egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9449 1.1 christos for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9450 1.1 christos basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
9451 1.1 christos sed -e 's/-PRE-GIT$//' `
9452 1.1 christos if test $lastdir = $basedir ; then
9453 1.1 christos continue;
9454 1.1 christos fi
9455 1.1 christos lastdir=$dir
9456 1.1 christos if test -r $dir/libpcap.a ; then
9457 1.1 christos libpcap=$dir/libpcap.a
9458 1.1 christos d=$dir
9459 1.1 christos fi
9460 1.1 christos done
9461 1.1 christos if test $libpcap = FAIL ; then
9462 1.1 christos { echo "$as_me:$LINENO: result: not found" >&5
9463 1.1 christos echo "${ECHO_T}not found" >&6; }
9464 1.1 christos
9465 1.1 christos #
9466 1.1 christos # Look for pcap-config.
9467 1.1 christos #
9468 1.1 christos # Extract the first word of "pcap-config", so it can be a program name with args.
9469 1.1 christos set dummy pcap-config; ac_word=$2
9470 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
9471 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9472 1.1 christos if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9473 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9474 1.1 christos else
9475 1.1 christos case $PCAP_CONFIG in
9476 1.1 christos [\\/]* | ?:[\\/]*)
9477 1.1 christos ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9478 1.1 christos ;;
9479 1.1 christos *)
9480 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 1.1 christos for as_dir in $PATH
9482 1.1 christos do
9483 1.1 christos IFS=$as_save_IFS
9484 1.1 christos test -z "$as_dir" && as_dir=.
9485 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
9486 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 1.1 christos ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9488 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 1.1 christos break 2
9490 1.1 christos fi
9491 1.1 christos done
9492 1.1 christos done
9493 1.1 christos IFS=$as_save_IFS
9494 1.1 christos
9495 1.1 christos ;;
9496 1.1 christos esac
9497 1.1 christos fi
9498 1.1 christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9499 1.1 christos if test -n "$PCAP_CONFIG"; then
9500 1.1 christos { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9501 1.1 christos echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9502 1.1 christos else
9503 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
9504 1.1 christos echo "${ECHO_T}no" >&6; }
9505 1.1 christos fi
9506 1.1 christos
9507 1.1 christos
9508 1.1 christos if test -n "$PCAP_CONFIG" ; then
9509 1.1 christos #
9510 1.1 christos # Found - use it to get the include flags for
9511 1.1 christos # libpcap and the flags to link with libpcap.
9512 1.1 christos #
9513 1.1 christos V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9514 1.1 christos libpcap="`\"$PCAP_CONFIG\" --libs`"
9515 1.1 christos else
9516 1.1 christos #
9517 1.1 christos # Not found; look for pcap.
9518 1.1 christos #
9519 1.1 christos { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9520 1.1 christos echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9521 1.1 christos if test "${ac_cv_lib_pcap_main+set}" = set; then
9522 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9523 1.1 christos else
9524 1.1 christos ac_check_lib_save_LIBS=$LIBS
9525 1.1 christos LIBS="-lpcap $LIBS"
9526 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9527 1.1 christos /* confdefs.h. */
9528 1.1 christos _ACEOF
9529 1.1 christos cat confdefs.h >>conftest.$ac_ext
9530 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9531 1.1 christos /* end confdefs.h. */
9532 1.1 christos
9533 1.1 christos
9534 1.1 christos int
9535 1.1 christos main ()
9536 1.1 christos {
9537 1.1 christos return main ();
9538 1.1 christos ;
9539 1.1 christos return 0;
9540 1.1 christos }
9541 1.1 christos _ACEOF
9542 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9543 1.1 christos if { (ac_try="$ac_link"
9544 1.1 christos case "(($ac_try" in
9545 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 1.1 christos *) ac_try_echo=$ac_try;;
9547 1.1 christos esac
9548 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 1.1 christos (eval "$ac_link") 2>conftest.er1
9550 1.1 christos ac_status=$?
9551 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9552 1.1 christos rm -f conftest.er1
9553 1.1 christos cat conftest.err >&5
9554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 1.1 christos (exit $ac_status); } && {
9556 1.1 christos test -z "$ac_c_werror_flag" ||
9557 1.1 christos test ! -s conftest.err
9558 1.1 christos } && test -s conftest$ac_exeext &&
9559 1.1 christos $as_test_x conftest$ac_exeext; then
9560 1.1 christos ac_cv_lib_pcap_main=yes
9561 1.1 christos else
9562 1.1 christos echo "$as_me: failed program was:" >&5
9563 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9564 1.1 christos
9565 1.1 christos ac_cv_lib_pcap_main=no
9566 1.1 christos fi
9567 1.1 christos
9568 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9569 1.1 christos conftest$ac_exeext conftest.$ac_ext
9570 1.1 christos LIBS=$ac_check_lib_save_LIBS
9571 1.1 christos fi
9572 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9573 1.1 christos echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9574 1.1 christos if test $ac_cv_lib_pcap_main = yes; then
9575 1.1 christos libpcap="-lpcap"
9576 1.1 christos fi
9577 1.1 christos
9578 1.1 christos if test $libpcap = FAIL ; then
9579 1.1 christos { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9580 1.1 christos echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9581 1.1 christos { (exit 1); exit 1; }; }
9582 1.1 christos fi
9583 1.1 christos { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9584 1.1 christos echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9585 1.1 christos if test \( ! -r /usr/local/include/pcap.h \) -a \
9586 1.1 christos \( ! -r /usr/include/pcap.h \); then
9587 1.1 christos if test -r /usr/local/include/pcap/pcap.h; then
9588 1.1 christos d="/usr/local/include/pcap"
9589 1.1 christos elif test -r /usr/include/pcap/pcap.h; then
9590 1.1 christos d="/usr/include/pcap"
9591 1.1 christos fi
9592 1.1 christos fi
9593 1.1 christos if test -z "$d" ; then
9594 1.1 christos { echo "$as_me:$LINENO: result: not found" >&5
9595 1.1 christos echo "${ECHO_T}not found" >&6; }
9596 1.1 christos else
9597 1.1 christos V_INCLS="-I$d $V_INCLS"
9598 1.1 christos { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9599 1.1 christos echo "${ECHO_T}found -- -I$d added" >&6; }
9600 1.1 christos fi
9601 1.1 christos fi
9602 1.1 christos else
9603 1.1 christos V_PCAPDEP=$libpcap
9604 1.1 christos places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9605 1.1 christos egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9606 1.1 christos if test -r $d/pcap.h; then
9607 1.1 christos V_INCLS="-I$d $V_INCLS"
9608 1.1 christos elif test -r $places/pcap.h; then
9609 1.1 christos V_INCLS="-I$places $V_INCLS"
9610 1.1 christos else
9611 1.1 christos { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9612 1.1 christos echo "$as_me: error: cannot find pcap.h" >&2;}
9613 1.1 christos { (exit see INSTALL); exit see INSTALL; }; }
9614 1.1 christos fi
9615 1.1 christos { echo "$as_me:$LINENO: result: $libpcap" >&5
9616 1.1 christos echo "${ECHO_T}$libpcap" >&6; }
9617 1.1 christos # Extract the first word of "pcap-config", so it can be a program name with args.
9618 1.1 christos set dummy pcap-config; ac_word=$2
9619 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621 1.1 christos if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9622 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9623 1.1 christos else
9624 1.1 christos case $PCAP_CONFIG in
9625 1.1 christos [\\/]* | ?:[\\/]*)
9626 1.1 christos ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9627 1.1 christos ;;
9628 1.1 christos *)
9629 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 1.1 christos for as_dir in $d
9631 1.1 christos do
9632 1.1 christos IFS=$as_save_IFS
9633 1.1 christos test -z "$as_dir" && as_dir=.
9634 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
9635 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 1.1 christos ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9637 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 1.1 christos break 2
9639 1.1 christos fi
9640 1.1 christos done
9641 1.1 christos done
9642 1.1 christos IFS=$as_save_IFS
9643 1.1 christos
9644 1.1 christos ;;
9645 1.1 christos esac
9646 1.1 christos fi
9647 1.1 christos PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9648 1.1 christos if test -n "$PCAP_CONFIG"; then
9649 1.1 christos { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9650 1.1 christos echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9651 1.1 christos else
9652 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
9653 1.1 christos echo "${ECHO_T}no" >&6; }
9654 1.1 christos fi
9655 1.1 christos
9656 1.1 christos
9657 1.1 christos if test -n "$PCAP_CONFIG"; then
9658 1.1 christos #
9659 1.1 christos # The libpcap directory has a pcap-config script.
9660 1.1 christos # Use it to get any additioal libraries needed
9661 1.1 christos # to link with the libpcap archive library in
9662 1.1 christos # that directory
9663 1.1 christos #
9664 1.1 christos libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9665 1.1 christos fi
9666 1.1 christos fi
9667 1.1 christos LIBS="$libpcap $LIBS"
9668 1.1 christos if ! test -n "$PCAP_CONFIG" ; then
9669 1.1 christos #
9670 1.1 christos # We don't have pcap-config; find out any additional link flags
9671 1.1 christos # we need. (If we have pcap-config, we assume it tells us what
9672 1.1 christos # we need.)
9673 1.1 christos #
9674 1.1 christos case "$host_os" in
9675 1.1 christos
9676 1.1 christos aix*)
9677 1.1 christos #
9678 1.1 christos # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9679 1.1 christos # present, as we use the STREAMS routines.
9680 1.1 christos #
9681 1.1 christos # (XXX - true only if we're linking with a static libpcap?)
9682 1.1 christos #
9683 1.1 christos pseexe="/lib/pse.exp"
9684 1.1 christos { echo "$as_me:$LINENO: checking for $pseexe" >&5
9685 1.1 christos echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9686 1.1 christos if test -f $pseexe ; then
9687 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
9688 1.1 christos echo "${ECHO_T}yes" >&6; }
9689 1.1 christos LIBS="$LIBS -I:$pseexe"
9690 1.1 christos fi
9691 1.1 christos
9692 1.1 christos #
9693 1.1 christos # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9694 1.1 christos # we use them to load the BPF module.
9695 1.1 christos #
9696 1.1 christos # (XXX - true only if we're linking with a static libpcap?)
9697 1.1 christos #
9698 1.1 christos LIBS="$LIBS -lodm -lcfg"
9699 1.1 christos ;;
9700 1.1 christos esac
9701 1.1 christos fi
9702 1.1 christos
9703 1.1 christos { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9704 1.1 christos echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9705 1.1 christos if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9706 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9707 1.1 christos else
9708 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9709 1.1 christos /* confdefs.h. */
9710 1.1 christos _ACEOF
9711 1.1 christos cat confdefs.h >>conftest.$ac_ext
9712 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9713 1.1 christos /* end confdefs.h. */
9714 1.1 christos /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9715 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 1.1 christos #define pcap_list_datalinks innocuous_pcap_list_datalinks
9717 1.1 christos
9718 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9719 1.1 christos which can conflict with char pcap_list_datalinks (); below.
9720 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 1.1 christos <limits.h> exists even on freestanding compilers. */
9722 1.1 christos
9723 1.1 christos #ifdef __STDC__
9724 1.1 christos # include <limits.h>
9725 1.1 christos #else
9726 1.1 christos # include <assert.h>
9727 1.1 christos #endif
9728 1.1 christos
9729 1.1 christos #undef pcap_list_datalinks
9730 1.1 christos
9731 1.1 christos /* Override any GCC internal prototype to avoid an error.
9732 1.1 christos Use char because int might match the return type of a GCC
9733 1.1 christos builtin and then its argument prototype would still apply. */
9734 1.1 christos #ifdef __cplusplus
9735 1.1 christos extern "C"
9736 1.1 christos #endif
9737 1.1 christos char pcap_list_datalinks ();
9738 1.1 christos /* The GNU C library defines this for functions which it implements
9739 1.1 christos to always fail with ENOSYS. Some functions are actually named
9740 1.1 christos something starting with __ and the normal name is an alias. */
9741 1.1 christos #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9742 1.1 christos choke me
9743 1.1 christos #endif
9744 1.1 christos
9745 1.1 christos int
9746 1.1 christos main ()
9747 1.1 christos {
9748 1.1 christos return pcap_list_datalinks ();
9749 1.1 christos ;
9750 1.1 christos return 0;
9751 1.1 christos }
9752 1.1 christos _ACEOF
9753 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9754 1.1 christos if { (ac_try="$ac_link"
9755 1.1 christos case "(($ac_try" in
9756 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 1.1 christos *) ac_try_echo=$ac_try;;
9758 1.1 christos esac
9759 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 1.1 christos (eval "$ac_link") 2>conftest.er1
9761 1.1 christos ac_status=$?
9762 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9763 1.1 christos rm -f conftest.er1
9764 1.1 christos cat conftest.err >&5
9765 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 1.1 christos (exit $ac_status); } && {
9767 1.1 christos test -z "$ac_c_werror_flag" ||
9768 1.1 christos test ! -s conftest.err
9769 1.1 christos } && test -s conftest$ac_exeext &&
9770 1.1 christos $as_test_x conftest$ac_exeext; then
9771 1.1 christos ac_cv_func_pcap_list_datalinks=yes
9772 1.1 christos else
9773 1.1 christos echo "$as_me: failed program was:" >&5
9774 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9775 1.1 christos
9776 1.1 christos ac_cv_func_pcap_list_datalinks=no
9777 1.1 christos fi
9778 1.1 christos
9779 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 1.1 christos conftest$ac_exeext conftest.$ac_ext
9781 1.1 christos fi
9782 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9783 1.1 christos echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9784 1.1 christos if test $ac_cv_func_pcap_list_datalinks = yes; then
9785 1.1 christos cat >>confdefs.h <<\_ACEOF
9786 1.1 christos #define HAVE_PCAP_LIST_DATALINKS 1
9787 1.1 christos _ACEOF
9788 1.1 christos
9789 1.1 christos else
9790 1.1 christos
9791 1.1 christos case " $LIBOBJS " in
9792 1.1 christos *" datalinks.$ac_objext "* ) ;;
9793 1.1 christos *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9794 1.1 christos ;;
9795 1.1 christos esac
9796 1.1 christos
9797 1.1 christos
9798 1.1 christos fi
9799 1.1 christos
9800 1.1 christos { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9801 1.1 christos echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9802 1.1 christos if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9803 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9804 1.1 christos else
9805 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9806 1.1 christos /* confdefs.h. */
9807 1.1 christos _ACEOF
9808 1.1 christos cat confdefs.h >>conftest.$ac_ext
9809 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9810 1.1 christos /* end confdefs.h. */
9811 1.1 christos /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9812 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9813 1.1 christos #define pcap_set_datalink innocuous_pcap_set_datalink
9814 1.1 christos
9815 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9816 1.1 christos which can conflict with char pcap_set_datalink (); below.
9817 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818 1.1 christos <limits.h> exists even on freestanding compilers. */
9819 1.1 christos
9820 1.1 christos #ifdef __STDC__
9821 1.1 christos # include <limits.h>
9822 1.1 christos #else
9823 1.1 christos # include <assert.h>
9824 1.1 christos #endif
9825 1.1 christos
9826 1.1 christos #undef pcap_set_datalink
9827 1.1 christos
9828 1.1 christos /* Override any GCC internal prototype to avoid an error.
9829 1.1 christos Use char because int might match the return type of a GCC
9830 1.1 christos builtin and then its argument prototype would still apply. */
9831 1.1 christos #ifdef __cplusplus
9832 1.1 christos extern "C"
9833 1.1 christos #endif
9834 1.1 christos char pcap_set_datalink ();
9835 1.1 christos /* The GNU C library defines this for functions which it implements
9836 1.1 christos to always fail with ENOSYS. Some functions are actually named
9837 1.1 christos something starting with __ and the normal name is an alias. */
9838 1.1 christos #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9839 1.1 christos choke me
9840 1.1 christos #endif
9841 1.1 christos
9842 1.1 christos int
9843 1.1 christos main ()
9844 1.1 christos {
9845 1.1 christos return pcap_set_datalink ();
9846 1.1 christos ;
9847 1.1 christos return 0;
9848 1.1 christos }
9849 1.1 christos _ACEOF
9850 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9851 1.1 christos if { (ac_try="$ac_link"
9852 1.1 christos case "(($ac_try" in
9853 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 1.1 christos *) ac_try_echo=$ac_try;;
9855 1.1 christos esac
9856 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 1.1 christos (eval "$ac_link") 2>conftest.er1
9858 1.1 christos ac_status=$?
9859 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9860 1.1 christos rm -f conftest.er1
9861 1.1 christos cat conftest.err >&5
9862 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 1.1 christos (exit $ac_status); } && {
9864 1.1 christos test -z "$ac_c_werror_flag" ||
9865 1.1 christos test ! -s conftest.err
9866 1.1 christos } && test -s conftest$ac_exeext &&
9867 1.1 christos $as_test_x conftest$ac_exeext; then
9868 1.1 christos ac_cv_func_pcap_set_datalink=yes
9869 1.1 christos else
9870 1.1 christos echo "$as_me: failed program was:" >&5
9871 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9872 1.1 christos
9873 1.1 christos ac_cv_func_pcap_set_datalink=no
9874 1.1 christos fi
9875 1.1 christos
9876 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9877 1.1 christos conftest$ac_exeext conftest.$ac_ext
9878 1.1 christos fi
9879 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9880 1.1 christos echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9881 1.1 christos if test $ac_cv_func_pcap_set_datalink = yes; then
9882 1.1 christos cat >>confdefs.h <<\_ACEOF
9883 1.1 christos #define HAVE_PCAP_SET_DATALINK 1
9884 1.1 christos _ACEOF
9885 1.1 christos
9886 1.1 christos fi
9887 1.1 christos
9888 1.1 christos { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9889 1.1 christos echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9890 1.1 christos if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9891 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9892 1.1 christos else
9893 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9894 1.1 christos /* confdefs.h. */
9895 1.1 christos _ACEOF
9896 1.1 christos cat confdefs.h >>conftest.$ac_ext
9897 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9898 1.1 christos /* end confdefs.h. */
9899 1.1 christos /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9900 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 1.1 christos #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9902 1.1 christos
9903 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9904 1.1 christos which can conflict with char pcap_datalink_name_to_val (); below.
9905 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 1.1 christos <limits.h> exists even on freestanding compilers. */
9907 1.1 christos
9908 1.1 christos #ifdef __STDC__
9909 1.1 christos # include <limits.h>
9910 1.1 christos #else
9911 1.1 christos # include <assert.h>
9912 1.1 christos #endif
9913 1.1 christos
9914 1.1 christos #undef pcap_datalink_name_to_val
9915 1.1 christos
9916 1.1 christos /* Override any GCC internal prototype to avoid an error.
9917 1.1 christos Use char because int might match the return type of a GCC
9918 1.1 christos builtin and then its argument prototype would still apply. */
9919 1.1 christos #ifdef __cplusplus
9920 1.1 christos extern "C"
9921 1.1 christos #endif
9922 1.1 christos char pcap_datalink_name_to_val ();
9923 1.1 christos /* The GNU C library defines this for functions which it implements
9924 1.1 christos to always fail with ENOSYS. Some functions are actually named
9925 1.1 christos something starting with __ and the normal name is an alias. */
9926 1.1 christos #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9927 1.1 christos choke me
9928 1.1 christos #endif
9929 1.1 christos
9930 1.1 christos int
9931 1.1 christos main ()
9932 1.1 christos {
9933 1.1 christos return pcap_datalink_name_to_val ();
9934 1.1 christos ;
9935 1.1 christos return 0;
9936 1.1 christos }
9937 1.1 christos _ACEOF
9938 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
9939 1.1 christos if { (ac_try="$ac_link"
9940 1.1 christos case "(($ac_try" in
9941 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 1.1 christos *) ac_try_echo=$ac_try;;
9943 1.1 christos esac
9944 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 1.1 christos (eval "$ac_link") 2>conftest.er1
9946 1.1 christos ac_status=$?
9947 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
9948 1.1 christos rm -f conftest.er1
9949 1.1 christos cat conftest.err >&5
9950 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 1.1 christos (exit $ac_status); } && {
9952 1.1 christos test -z "$ac_c_werror_flag" ||
9953 1.1 christos test ! -s conftest.err
9954 1.1 christos } && test -s conftest$ac_exeext &&
9955 1.1 christos $as_test_x conftest$ac_exeext; then
9956 1.1 christos ac_cv_func_pcap_datalink_name_to_val=yes
9957 1.1 christos else
9958 1.1 christos echo "$as_me: failed program was:" >&5
9959 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
9960 1.1 christos
9961 1.1 christos ac_cv_func_pcap_datalink_name_to_val=no
9962 1.1 christos fi
9963 1.1 christos
9964 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 1.1 christos conftest$ac_exeext conftest.$ac_ext
9966 1.1 christos fi
9967 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9968 1.1 christos echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9969 1.1 christos if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9970 1.1 christos
9971 1.1 christos cat >>confdefs.h <<\_ACEOF
9972 1.1 christos #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9973 1.1 christos _ACEOF
9974 1.1 christos
9975 1.1 christos { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9976 1.1 christos echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9977 1.1 christos if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9978 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
9979 1.1 christos else
9980 1.1 christos cat >conftest.$ac_ext <<_ACEOF
9981 1.1 christos /* confdefs.h. */
9982 1.1 christos _ACEOF
9983 1.1 christos cat confdefs.h >>conftest.$ac_ext
9984 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
9985 1.1 christos /* end confdefs.h. */
9986 1.1 christos /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9987 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
9988 1.1 christos #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9989 1.1 christos
9990 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
9991 1.1 christos which can conflict with char pcap_datalink_val_to_description (); below.
9992 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993 1.1 christos <limits.h> exists even on freestanding compilers. */
9994 1.1 christos
9995 1.1 christos #ifdef __STDC__
9996 1.1 christos # include <limits.h>
9997 1.1 christos #else
9998 1.1 christos # include <assert.h>
9999 1.1 christos #endif
10000 1.1 christos
10001 1.1 christos #undef pcap_datalink_val_to_description
10002 1.1 christos
10003 1.1 christos /* Override any GCC internal prototype to avoid an error.
10004 1.1 christos Use char because int might match the return type of a GCC
10005 1.1 christos builtin and then its argument prototype would still apply. */
10006 1.1 christos #ifdef __cplusplus
10007 1.1 christos extern "C"
10008 1.1 christos #endif
10009 1.1 christos char pcap_datalink_val_to_description ();
10010 1.1 christos /* The GNU C library defines this for functions which it implements
10011 1.1 christos to always fail with ENOSYS. Some functions are actually named
10012 1.1 christos something starting with __ and the normal name is an alias. */
10013 1.1 christos #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10014 1.1 christos choke me
10015 1.1 christos #endif
10016 1.1 christos
10017 1.1 christos int
10018 1.1 christos main ()
10019 1.1 christos {
10020 1.1 christos return pcap_datalink_val_to_description ();
10021 1.1 christos ;
10022 1.1 christos return 0;
10023 1.1 christos }
10024 1.1 christos _ACEOF
10025 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10026 1.1 christos if { (ac_try="$ac_link"
10027 1.1 christos case "(($ac_try" in
10028 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 1.1 christos *) ac_try_echo=$ac_try;;
10030 1.1 christos esac
10031 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 1.1 christos (eval "$ac_link") 2>conftest.er1
10033 1.1 christos ac_status=$?
10034 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10035 1.1 christos rm -f conftest.er1
10036 1.1 christos cat conftest.err >&5
10037 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 1.1 christos (exit $ac_status); } && {
10039 1.1 christos test -z "$ac_c_werror_flag" ||
10040 1.1 christos test ! -s conftest.err
10041 1.1 christos } && test -s conftest$ac_exeext &&
10042 1.1 christos $as_test_x conftest$ac_exeext; then
10043 1.1 christos ac_cv_func_pcap_datalink_val_to_description=yes
10044 1.1 christos else
10045 1.1 christos echo "$as_me: failed program was:" >&5
10046 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10047 1.1 christos
10048 1.1 christos ac_cv_func_pcap_datalink_val_to_description=no
10049 1.1 christos fi
10050 1.1 christos
10051 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10052 1.1 christos conftest$ac_exeext conftest.$ac_ext
10053 1.1 christos fi
10054 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10055 1.1 christos echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10056 1.1 christos if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10057 1.1 christos cat >>confdefs.h <<\_ACEOF
10058 1.1 christos #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10059 1.1 christos _ACEOF
10060 1.1 christos
10061 1.1 christos else
10062 1.1 christos
10063 1.1 christos case " $LIBOBJS " in
10064 1.1 christos *" dlnames.$ac_objext "* ) ;;
10065 1.1 christos *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10066 1.1 christos ;;
10067 1.1 christos esac
10068 1.1 christos
10069 1.1 christos
10070 1.1 christos fi
10071 1.1 christos
10072 1.1 christos
10073 1.1 christos else
10074 1.1 christos
10075 1.1 christos case " $LIBOBJS " in
10076 1.1 christos *" dlnames.$ac_objext "* ) ;;
10077 1.1 christos *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10078 1.1 christos ;;
10079 1.1 christos esac
10080 1.1 christos
10081 1.1 christos
10082 1.1 christos fi
10083 1.1 christos
10084 1.1 christos
10085 1.1 christos
10086 1.1 christos for ac_func in pcap_breakloop
10087 1.1 christos do
10088 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10089 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
10090 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10091 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10092 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10093 1.1 christos else
10094 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10095 1.1 christos /* confdefs.h. */
10096 1.1 christos _ACEOF
10097 1.1 christos cat confdefs.h >>conftest.$ac_ext
10098 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10099 1.1 christos /* end confdefs.h. */
10100 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10101 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
10102 1.1 christos #define $ac_func innocuous_$ac_func
10103 1.1 christos
10104 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
10105 1.1 christos which can conflict with char $ac_func (); below.
10106 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10107 1.1 christos <limits.h> exists even on freestanding compilers. */
10108 1.1 christos
10109 1.1 christos #ifdef __STDC__
10110 1.1 christos # include <limits.h>
10111 1.1 christos #else
10112 1.1 christos # include <assert.h>
10113 1.1 christos #endif
10114 1.1 christos
10115 1.1 christos #undef $ac_func
10116 1.1 christos
10117 1.1 christos /* Override any GCC internal prototype to avoid an error.
10118 1.1 christos Use char because int might match the return type of a GCC
10119 1.1 christos builtin and then its argument prototype would still apply. */
10120 1.1 christos #ifdef __cplusplus
10121 1.1 christos extern "C"
10122 1.1 christos #endif
10123 1.1 christos char $ac_func ();
10124 1.1 christos /* The GNU C library defines this for functions which it implements
10125 1.1 christos to always fail with ENOSYS. Some functions are actually named
10126 1.1 christos something starting with __ and the normal name is an alias. */
10127 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
10128 1.1 christos choke me
10129 1.1 christos #endif
10130 1.1 christos
10131 1.1 christos int
10132 1.1 christos main ()
10133 1.1 christos {
10134 1.1 christos return $ac_func ();
10135 1.1 christos ;
10136 1.1 christos return 0;
10137 1.1 christos }
10138 1.1 christos _ACEOF
10139 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10140 1.1 christos if { (ac_try="$ac_link"
10141 1.1 christos case "(($ac_try" in
10142 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 1.1 christos *) ac_try_echo=$ac_try;;
10144 1.1 christos esac
10145 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 1.1 christos (eval "$ac_link") 2>conftest.er1
10147 1.1 christos ac_status=$?
10148 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10149 1.1 christos rm -f conftest.er1
10150 1.1 christos cat conftest.err >&5
10151 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 1.1 christos (exit $ac_status); } && {
10153 1.1 christos test -z "$ac_c_werror_flag" ||
10154 1.1 christos test ! -s conftest.err
10155 1.1 christos } && test -s conftest$ac_exeext &&
10156 1.1 christos $as_test_x conftest$ac_exeext; then
10157 1.1 christos eval "$as_ac_var=yes"
10158 1.1 christos else
10159 1.1 christos echo "$as_me: failed program was:" >&5
10160 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10161 1.1 christos
10162 1.1 christos eval "$as_ac_var=no"
10163 1.1 christos fi
10164 1.1 christos
10165 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10166 1.1 christos conftest$ac_exeext conftest.$ac_ext
10167 1.1 christos fi
10168 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
10169 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
10171 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
10172 1.1 christos cat >>confdefs.h <<_ACEOF
10173 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10174 1.1 christos _ACEOF
10175 1.1 christos
10176 1.1 christos fi
10177 1.1 christos done
10178 1.1 christos
10179 1.1 christos
10180 1.1 christos { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10181 1.1 christos echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10182 1.1 christos if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10183 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10184 1.1 christos else
10185 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10186 1.1 christos /* confdefs.h. */
10187 1.1 christos _ACEOF
10188 1.1 christos cat confdefs.h >>conftest.$ac_ext
10189 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10190 1.1 christos /* end confdefs.h. */
10191 1.1 christos /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10192 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
10193 1.1 christos #define pcap_dump_ftell innocuous_pcap_dump_ftell
10194 1.1 christos
10195 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
10196 1.1 christos which can conflict with char pcap_dump_ftell (); below.
10197 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198 1.1 christos <limits.h> exists even on freestanding compilers. */
10199 1.1 christos
10200 1.1 christos #ifdef __STDC__
10201 1.1 christos # include <limits.h>
10202 1.1 christos #else
10203 1.1 christos # include <assert.h>
10204 1.1 christos #endif
10205 1.1 christos
10206 1.1 christos #undef pcap_dump_ftell
10207 1.1 christos
10208 1.1 christos /* Override any GCC internal prototype to avoid an error.
10209 1.1 christos Use char because int might match the return type of a GCC
10210 1.1 christos builtin and then its argument prototype would still apply. */
10211 1.1 christos #ifdef __cplusplus
10212 1.1 christos extern "C"
10213 1.1 christos #endif
10214 1.1 christos char pcap_dump_ftell ();
10215 1.1 christos /* The GNU C library defines this for functions which it implements
10216 1.1 christos to always fail with ENOSYS. Some functions are actually named
10217 1.1 christos something starting with __ and the normal name is an alias. */
10218 1.1 christos #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10219 1.1 christos choke me
10220 1.1 christos #endif
10221 1.1 christos
10222 1.1 christos int
10223 1.1 christos main ()
10224 1.1 christos {
10225 1.1 christos return pcap_dump_ftell ();
10226 1.1 christos ;
10227 1.1 christos return 0;
10228 1.1 christos }
10229 1.1 christos _ACEOF
10230 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10231 1.1 christos if { (ac_try="$ac_link"
10232 1.1 christos case "(($ac_try" in
10233 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 1.1 christos *) ac_try_echo=$ac_try;;
10235 1.1 christos esac
10236 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 1.1 christos (eval "$ac_link") 2>conftest.er1
10238 1.1 christos ac_status=$?
10239 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10240 1.1 christos rm -f conftest.er1
10241 1.1 christos cat conftest.err >&5
10242 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 1.1 christos (exit $ac_status); } && {
10244 1.1 christos test -z "$ac_c_werror_flag" ||
10245 1.1 christos test ! -s conftest.err
10246 1.1 christos } && test -s conftest$ac_exeext &&
10247 1.1 christos $as_test_x conftest$ac_exeext; then
10248 1.1 christos ac_cv_func_pcap_dump_ftell=yes
10249 1.1 christos else
10250 1.1 christos echo "$as_me: failed program was:" >&5
10251 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10252 1.1 christos
10253 1.1 christos ac_cv_func_pcap_dump_ftell=no
10254 1.1 christos fi
10255 1.1 christos
10256 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 1.1 christos conftest$ac_exeext conftest.$ac_ext
10258 1.1 christos fi
10259 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10260 1.1 christos echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10261 1.1 christos if test $ac_cv_func_pcap_dump_ftell = yes; then
10262 1.1 christos cat >>confdefs.h <<\_ACEOF
10263 1.1 christos #define HAVE_PCAP_DUMP_FTELL 1
10264 1.1 christos _ACEOF
10265 1.1 christos
10266 1.1 christos else
10267 1.1 christos
10268 1.1 christos case " $LIBOBJS " in
10269 1.1 christos *" pcap_dump_ftell.$ac_objext "* ) ;;
10270 1.1 christos *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10271 1.1 christos ;;
10272 1.1 christos esac
10273 1.1 christos
10274 1.1 christos
10275 1.1 christos fi
10276 1.1 christos
10277 1.1 christos
10278 1.1 christos
10279 1.1 christos #
10280 1.1 christos # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10281 1.1 christos # libraries (e.g., "-lsocket -lnsl" on Solaris).
10282 1.1 christos #
10283 1.1 christos # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10284 1.1 christos # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10285 1.1 christos # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10286 1.1 christos # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10287 1.1 christos # it does not ship with a libc symbol "inet_ntop()", it ships with
10288 1.1 christos # "_inet_ntop()", and has a #define macro in one of the system headers
10289 1.1 christos # to rename it.
10290 1.1 christos #
10291 1.1 christos { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10292 1.1 christos echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10293 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10294 1.1 christos /* confdefs.h. */
10295 1.1 christos _ACEOF
10296 1.1 christos cat confdefs.h >>conftest.$ac_ext
10297 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10298 1.1 christos /* end confdefs.h. */
10299 1.1 christos #include <sys/types.h>
10300 1.1 christos #include <sys/socket.h>
10301 1.1 christos #include <netinet/in.h>
10302 1.1 christos #include <arpa/inet.h>
10303 1.1 christos int
10304 1.1 christos main ()
10305 1.1 christos {
10306 1.1 christos char src[4], dst[128];
10307 1.1 christos inet_ntop(AF_INET, src, dst, sizeof(dst));
10308 1.1 christos ;
10309 1.1 christos return 0;
10310 1.1 christos }
10311 1.1 christos _ACEOF
10312 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10313 1.1 christos if { (ac_try="$ac_link"
10314 1.1 christos case "(($ac_try" in
10315 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 1.1 christos *) ac_try_echo=$ac_try;;
10317 1.1 christos esac
10318 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 1.1 christos (eval "$ac_link") 2>conftest.er1
10320 1.1 christos ac_status=$?
10321 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10322 1.1 christos rm -f conftest.er1
10323 1.1 christos cat conftest.err >&5
10324 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 1.1 christos (exit $ac_status); } && {
10326 1.1 christos test -z "$ac_c_werror_flag" ||
10327 1.1 christos test ! -s conftest.err
10328 1.1 christos } && test -s conftest$ac_exeext &&
10329 1.1 christos $as_test_x conftest$ac_exeext; then
10330 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
10331 1.1 christos echo "${ECHO_T}yes" >&6; }
10332 1.1 christos else
10333 1.1 christos echo "$as_me: failed program was:" >&5
10334 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10335 1.1 christos
10336 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
10337 1.1 christos echo "${ECHO_T}no" >&6; }
10338 1.1 christos case " $LIBOBJS " in
10339 1.1 christos *" inet_ntop.$ac_objext "* ) ;;
10340 1.1 christos *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10341 1.1 christos ;;
10342 1.1 christos esac
10343 1.1 christos
10344 1.1 christos fi
10345 1.1 christos
10346 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 1.1 christos conftest$ac_exeext conftest.$ac_ext
10348 1.1 christos { echo "$as_me:$LINENO: checking for inet_pton" >&5
10349 1.1 christos echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10350 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10351 1.1 christos /* confdefs.h. */
10352 1.1 christos _ACEOF
10353 1.1 christos cat confdefs.h >>conftest.$ac_ext
10354 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10355 1.1 christos /* end confdefs.h. */
10356 1.1 christos #include <sys/types.h>
10357 1.1 christos #include <sys/socket.h>
10358 1.1 christos #include <netinet/in.h>
10359 1.1 christos #include <arpa/inet.h>
10360 1.1 christos int
10361 1.1 christos main ()
10362 1.1 christos {
10363 1.1 christos char src[128], dst[4];
10364 1.1 christos inet_pton(AF_INET, src, dst);
10365 1.1 christos ;
10366 1.1 christos return 0;
10367 1.1 christos }
10368 1.1 christos _ACEOF
10369 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10370 1.1 christos if { (ac_try="$ac_link"
10371 1.1 christos case "(($ac_try" in
10372 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 1.1 christos *) ac_try_echo=$ac_try;;
10374 1.1 christos esac
10375 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 1.1 christos (eval "$ac_link") 2>conftest.er1
10377 1.1 christos ac_status=$?
10378 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10379 1.1 christos rm -f conftest.er1
10380 1.1 christos cat conftest.err >&5
10381 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 1.1 christos (exit $ac_status); } && {
10383 1.1 christos test -z "$ac_c_werror_flag" ||
10384 1.1 christos test ! -s conftest.err
10385 1.1 christos } && test -s conftest$ac_exeext &&
10386 1.1 christos $as_test_x conftest$ac_exeext; then
10387 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
10388 1.1 christos echo "${ECHO_T}yes" >&6; }
10389 1.1 christos else
10390 1.1 christos echo "$as_me: failed program was:" >&5
10391 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10392 1.1 christos
10393 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
10394 1.1 christos echo "${ECHO_T}no" >&6; }
10395 1.1 christos case " $LIBOBJS " in
10396 1.1 christos *" inet_pton.$ac_objext "* ) ;;
10397 1.1 christos *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10398 1.1 christos ;;
10399 1.1 christos esac
10400 1.1 christos
10401 1.1 christos fi
10402 1.1 christos
10403 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10404 1.1 christos conftest$ac_exeext conftest.$ac_ext
10405 1.1 christos { echo "$as_me:$LINENO: checking for inet_aton" >&5
10406 1.1 christos echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10407 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10408 1.1 christos /* confdefs.h. */
10409 1.1 christos _ACEOF
10410 1.1 christos cat confdefs.h >>conftest.$ac_ext
10411 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10412 1.1 christos /* end confdefs.h. */
10413 1.1 christos #include <sys/types.h>
10414 1.1 christos #include <netinet/in.h>
10415 1.1 christos #include <arpa/inet.h>
10416 1.1 christos int
10417 1.1 christos main ()
10418 1.1 christos {
10419 1.1 christos char src[128];
10420 1.1 christos struct in_addr dst;
10421 1.1 christos inet_aton(src, &dst);
10422 1.1 christos ;
10423 1.1 christos return 0;
10424 1.1 christos }
10425 1.1 christos _ACEOF
10426 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10427 1.1 christos if { (ac_try="$ac_link"
10428 1.1 christos case "(($ac_try" in
10429 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 1.1 christos *) ac_try_echo=$ac_try;;
10431 1.1 christos esac
10432 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 1.1 christos (eval "$ac_link") 2>conftest.er1
10434 1.1 christos ac_status=$?
10435 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10436 1.1 christos rm -f conftest.er1
10437 1.1 christos cat conftest.err >&5
10438 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 1.1 christos (exit $ac_status); } && {
10440 1.1 christos test -z "$ac_c_werror_flag" ||
10441 1.1 christos test ! -s conftest.err
10442 1.1 christos } && test -s conftest$ac_exeext &&
10443 1.1 christos $as_test_x conftest$ac_exeext; then
10444 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
10445 1.1 christos echo "${ECHO_T}yes" >&6; }
10446 1.1 christos else
10447 1.1 christos echo "$as_me: failed program was:" >&5
10448 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10449 1.1 christos
10450 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
10451 1.1 christos echo "${ECHO_T}no" >&6; }
10452 1.1 christos case " $LIBOBJS " in
10453 1.1 christos *" inet_aton.$ac_objext "* ) ;;
10454 1.1 christos *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10455 1.1 christos ;;
10456 1.1 christos esac
10457 1.1 christos
10458 1.1 christos fi
10459 1.1 christos
10460 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461 1.1 christos conftest$ac_exeext conftest.$ac_ext
10462 1.1 christos
10463 1.1 christos #
10464 1.1 christos # Check for these after AC_LBL_LIBPCAP, for the same reason.
10465 1.1 christos #
10466 1.1 christos # You are in a twisty little maze of UN*Xes, all different.
10467 1.1 christos # Some might not have ether_ntohost().
10468 1.1 christos # Some might have it, but not declare it in any header file.
10469 1.1 christos # Some might have it, but declare it in <netinet/if_ether.h>.
10470 1.1 christos # Some might have it, but declare it in <netinet/ether.h>
10471 1.1 christos # (And some might have it but document it as something declared in
10472 1.1 christos # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10473 1.1 christos #
10474 1.1 christos # Before you is a C compiler.
10475 1.1 christos #
10476 1.1 christos
10477 1.1 christos for ac_func in ether_ntohost
10478 1.1 christos do
10479 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10480 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
10481 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10482 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10483 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10484 1.1 christos else
10485 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10486 1.1 christos /* confdefs.h. */
10487 1.1 christos _ACEOF
10488 1.1 christos cat confdefs.h >>conftest.$ac_ext
10489 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10490 1.1 christos /* end confdefs.h. */
10491 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10492 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
10493 1.1 christos #define $ac_func innocuous_$ac_func
10494 1.1 christos
10495 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
10496 1.1 christos which can conflict with char $ac_func (); below.
10497 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 1.1 christos <limits.h> exists even on freestanding compilers. */
10499 1.1 christos
10500 1.1 christos #ifdef __STDC__
10501 1.1 christos # include <limits.h>
10502 1.1 christos #else
10503 1.1 christos # include <assert.h>
10504 1.1 christos #endif
10505 1.1 christos
10506 1.1 christos #undef $ac_func
10507 1.1 christos
10508 1.1 christos /* Override any GCC internal prototype to avoid an error.
10509 1.1 christos Use char because int might match the return type of a GCC
10510 1.1 christos builtin and then its argument prototype would still apply. */
10511 1.1 christos #ifdef __cplusplus
10512 1.1 christos extern "C"
10513 1.1 christos #endif
10514 1.1 christos char $ac_func ();
10515 1.1 christos /* The GNU C library defines this for functions which it implements
10516 1.1 christos to always fail with ENOSYS. Some functions are actually named
10517 1.1 christos something starting with __ and the normal name is an alias. */
10518 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
10519 1.1 christos choke me
10520 1.1 christos #endif
10521 1.1 christos
10522 1.1 christos int
10523 1.1 christos main ()
10524 1.1 christos {
10525 1.1 christos return $ac_func ();
10526 1.1 christos ;
10527 1.1 christos return 0;
10528 1.1 christos }
10529 1.1 christos _ACEOF
10530 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
10531 1.1 christos if { (ac_try="$ac_link"
10532 1.1 christos case "(($ac_try" in
10533 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 1.1 christos *) ac_try_echo=$ac_try;;
10535 1.1 christos esac
10536 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 1.1 christos (eval "$ac_link") 2>conftest.er1
10538 1.1 christos ac_status=$?
10539 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10540 1.1 christos rm -f conftest.er1
10541 1.1 christos cat conftest.err >&5
10542 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 1.1 christos (exit $ac_status); } && {
10544 1.1 christos test -z "$ac_c_werror_flag" ||
10545 1.1 christos test ! -s conftest.err
10546 1.1 christos } && test -s conftest$ac_exeext &&
10547 1.1 christos $as_test_x conftest$ac_exeext; then
10548 1.1 christos eval "$as_ac_var=yes"
10549 1.1 christos else
10550 1.1 christos echo "$as_me: failed program was:" >&5
10551 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10552 1.1 christos
10553 1.1 christos eval "$as_ac_var=no"
10554 1.1 christos fi
10555 1.1 christos
10556 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 1.1 christos conftest$ac_exeext conftest.$ac_ext
10558 1.1 christos fi
10559 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
10560 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
10562 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
10563 1.1 christos cat >>confdefs.h <<_ACEOF
10564 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10565 1.1 christos _ACEOF
10566 1.1 christos
10567 1.1 christos { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10568 1.1 christos echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10569 1.1 christos if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10570 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10571 1.1 christos else
10572 1.1 christos
10573 1.1 christos if test "$cross_compiling" = yes; then
10574 1.1 christos ac_cv_buggy_ether_ntohost="not while cross-compiling"
10575 1.1 christos else
10576 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10577 1.1 christos /* confdefs.h. */
10578 1.1 christos _ACEOF
10579 1.1 christos cat confdefs.h >>conftest.$ac_ext
10580 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10581 1.1 christos /* end confdefs.h. */
10582 1.1 christos
10583 1.1 christos #include <netdb.h>
10584 1.1 christos #include <sys/types.h>
10585 1.1 christos #include <sys/param.h>
10586 1.1 christos #include <sys/socket.h>
10587 1.1 christos
10588 1.1 christos int
10589 1.1 christos main(int argc, char **argv)
10590 1.1 christos {
10591 1.1 christos u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10592 1.1 christos char name[MAXHOSTNAMELEN];
10593 1.1 christos
10594 1.1 christos ether_ntohost(name, (struct ether_addr *)ea);
10595 1.1 christos exit(0);
10596 1.1 christos }
10597 1.1 christos
10598 1.1 christos _ACEOF
10599 1.1 christos rm -f conftest$ac_exeext
10600 1.1 christos if { (ac_try="$ac_link"
10601 1.1 christos case "(($ac_try" in
10602 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 1.1 christos *) ac_try_echo=$ac_try;;
10604 1.1 christos esac
10605 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 1.1 christos (eval "$ac_link") 2>&5
10607 1.1 christos ac_status=$?
10608 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10610 1.1 christos { (case "(($ac_try" in
10611 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 1.1 christos *) ac_try_echo=$ac_try;;
10613 1.1 christos esac
10614 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 1.1 christos (eval "$ac_try") 2>&5
10616 1.1 christos ac_status=$?
10617 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 1.1 christos (exit $ac_status); }; }; then
10619 1.1 christos ac_cv_buggy_ether_ntohost=no
10620 1.1 christos else
10621 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
10622 1.1 christos echo "$as_me: failed program was:" >&5
10623 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10624 1.1 christos
10625 1.1 christos ( exit $ac_status )
10626 1.1 christos ac_cv_buggy_ether_ntohost=yes
10627 1.1 christos fi
10628 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10629 1.1 christos fi
10630 1.1 christos
10631 1.1 christos
10632 1.1 christos fi
10633 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10634 1.1 christos echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10635 1.1 christos if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10636 1.1 christos cat >>confdefs.h <<\_ACEOF
10637 1.1 christos #define USE_ETHER_NTOHOST 1
10638 1.1 christos _ACEOF
10639 1.1 christos
10640 1.1 christos fi
10641 1.1 christos
10642 1.1 christos fi
10643 1.1 christos done
10644 1.1 christos
10645 1.1 christos if test "$ac_cv_func_ether_ntohost" = yes -a \
10646 1.1 christos "$ac_cv_buggy_ether_ntohost" = "no"; then
10647 1.1 christos #
10648 1.1 christos # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10649 1.1 christos #
10650 1.1 christos if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10651 1.1 christos #
10652 1.1 christos # Yes. Does it declare ether_ntohost()?
10653 1.1 christos #
10654 1.1 christos { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10655 1.1 christos echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10656 1.1 christos if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10657 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10658 1.1 christos else
10659 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10660 1.1 christos /* confdefs.h. */
10661 1.1 christos _ACEOF
10662 1.1 christos cat confdefs.h >>conftest.$ac_ext
10663 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10664 1.1 christos /* end confdefs.h. */
10665 1.1 christos
10666 1.1 christos #include <sys/types.h>
10667 1.1 christos #include <sys/socket.h>
10668 1.1 christos #include <netinet/in.h>
10669 1.1 christos #include <arpa/inet.h>
10670 1.1 christos struct mbuf;
10671 1.1 christos struct rtentry;
10672 1.1 christos #include <net/if.h>
10673 1.1 christos #include <netinet/if_ether.h>
10674 1.1 christos
10675 1.1 christos
10676 1.1 christos int
10677 1.1 christos main ()
10678 1.1 christos {
10679 1.1 christos #ifndef ether_ntohost
10680 1.1 christos (void) ether_ntohost;
10681 1.1 christos #endif
10682 1.1 christos
10683 1.1 christos ;
10684 1.1 christos return 0;
10685 1.1 christos }
10686 1.1 christos _ACEOF
10687 1.1 christos rm -f conftest.$ac_objext
10688 1.1 christos if { (ac_try="$ac_compile"
10689 1.1 christos case "(($ac_try" in
10690 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 1.1 christos *) ac_try_echo=$ac_try;;
10692 1.1 christos esac
10693 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 1.1 christos (eval "$ac_compile") 2>conftest.er1
10695 1.1 christos ac_status=$?
10696 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10697 1.1 christos rm -f conftest.er1
10698 1.1 christos cat conftest.err >&5
10699 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 1.1 christos (exit $ac_status); } && {
10701 1.1 christos test -z "$ac_c_werror_flag" ||
10702 1.1 christos test ! -s conftest.err
10703 1.1 christos } && test -s conftest.$ac_objext; then
10704 1.1 christos ac_cv_have_decl_ether_ntohost=yes
10705 1.1 christos else
10706 1.1 christos echo "$as_me: failed program was:" >&5
10707 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10708 1.1 christos
10709 1.1 christos ac_cv_have_decl_ether_ntohost=no
10710 1.1 christos fi
10711 1.1 christos
10712 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 1.1 christos fi
10714 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10715 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10716 1.1 christos if test $ac_cv_have_decl_ether_ntohost = yes; then
10717 1.1 christos
10718 1.1 christos
10719 1.1 christos cat >>confdefs.h <<\_ACEOF
10720 1.1 christos #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10721 1.1 christos _ACEOF
10722 1.1 christos
10723 1.1 christos
10724 1.1 christos fi
10725 1.1 christos
10726 1.1 christos fi
10727 1.1 christos #
10728 1.1 christos # Did that succeed?
10729 1.1 christos #
10730 1.1 christos if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10731 1.1 christos #
10732 1.1 christos # No, how about <netinet/ether.h>, as on Linux?
10733 1.1 christos #
10734 1.1 christos
10735 1.1 christos for ac_header in netinet/ether.h
10736 1.1 christos do
10737 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
10740 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10741 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10743 1.1 christos fi
10744 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
10745 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
10746 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
10747 1.1 christos else
10748 1.1 christos # Is the header compilable?
10749 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10750 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10751 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10752 1.1 christos /* confdefs.h. */
10753 1.1 christos _ACEOF
10754 1.1 christos cat confdefs.h >>conftest.$ac_ext
10755 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10756 1.1 christos /* end confdefs.h. */
10757 1.1 christos $ac_includes_default
10758 1.1 christos #include <$ac_header>
10759 1.1 christos _ACEOF
10760 1.1 christos rm -f conftest.$ac_objext
10761 1.1 christos if { (ac_try="$ac_compile"
10762 1.1 christos case "(($ac_try" in
10763 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 1.1 christos *) ac_try_echo=$ac_try;;
10765 1.1 christos esac
10766 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 1.1 christos (eval "$ac_compile") 2>conftest.er1
10768 1.1 christos ac_status=$?
10769 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10770 1.1 christos rm -f conftest.er1
10771 1.1 christos cat conftest.err >&5
10772 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 1.1 christos (exit $ac_status); } && {
10774 1.1 christos test -z "$ac_c_werror_flag" ||
10775 1.1 christos test ! -s conftest.err
10776 1.1 christos } && test -s conftest.$ac_objext; then
10777 1.1 christos ac_header_compiler=yes
10778 1.1 christos else
10779 1.1 christos echo "$as_me: failed program was:" >&5
10780 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10781 1.1 christos
10782 1.1 christos ac_header_compiler=no
10783 1.1 christos fi
10784 1.1 christos
10785 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10787 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
10788 1.1 christos
10789 1.1 christos # Is the header present?
10790 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10791 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10792 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10793 1.1 christos /* confdefs.h. */
10794 1.1 christos _ACEOF
10795 1.1 christos cat confdefs.h >>conftest.$ac_ext
10796 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10797 1.1 christos /* end confdefs.h. */
10798 1.1 christos #include <$ac_header>
10799 1.1 christos _ACEOF
10800 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
10801 1.1 christos case "(($ac_try" in
10802 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 1.1 christos *) ac_try_echo=$ac_try;;
10804 1.1 christos esac
10805 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10807 1.1 christos ac_status=$?
10808 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10809 1.1 christos rm -f conftest.er1
10810 1.1 christos cat conftest.err >&5
10811 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 1.1 christos (exit $ac_status); } >/dev/null && {
10813 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10814 1.1 christos test ! -s conftest.err
10815 1.1 christos }; then
10816 1.1 christos ac_header_preproc=yes
10817 1.1 christos else
10818 1.1 christos echo "$as_me: failed program was:" >&5
10819 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10820 1.1 christos
10821 1.1 christos ac_header_preproc=no
10822 1.1 christos fi
10823 1.1 christos
10824 1.1 christos rm -f conftest.err conftest.$ac_ext
10825 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10826 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
10827 1.1 christos
10828 1.1 christos # So? What about this header?
10829 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10830 1.1 christos yes:no: )
10831 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10832 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10833 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10834 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10835 1.1 christos ac_header_preproc=yes
10836 1.1 christos ;;
10837 1.1 christos no:yes:* )
10838 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10839 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10840 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10841 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10842 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10843 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10844 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10845 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10846 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10847 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10848 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10849 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10850 1.1 christos
10851 1.1 christos ;;
10852 1.1 christos esac
10853 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10857 1.1 christos else
10858 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
10859 1.1 christos fi
10860 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
10861 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
10862 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
10863 1.1 christos
10864 1.1 christos fi
10865 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
10866 1.1 christos cat >>confdefs.h <<_ACEOF
10867 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10868 1.1 christos _ACEOF
10869 1.1 christos
10870 1.1 christos fi
10871 1.1 christos
10872 1.1 christos done
10873 1.1 christos
10874 1.1 christos if test "$ac_cv_header_netinet_ether_h" = yes; then
10875 1.1 christos #
10876 1.1 christos # We have it - does it declare ether_ntohost()?
10877 1.1 christos # Unset ac_cv_have_decl_ether_ntohost so we don't
10878 1.1 christos # treat the previous failure as a cached value and
10879 1.1 christos # suppress the next test.
10880 1.1 christos #
10881 1.1 christos unset ac_cv_have_decl_ether_ntohost
10882 1.1 christos { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10883 1.1 christos echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10884 1.1 christos if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10885 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10886 1.1 christos else
10887 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10888 1.1 christos /* confdefs.h. */
10889 1.1 christos _ACEOF
10890 1.1 christos cat confdefs.h >>conftest.$ac_ext
10891 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10892 1.1 christos /* end confdefs.h. */
10893 1.1 christos
10894 1.1 christos #include <netinet/ether.h>
10895 1.1 christos
10896 1.1 christos
10897 1.1 christos int
10898 1.1 christos main ()
10899 1.1 christos {
10900 1.1 christos #ifndef ether_ntohost
10901 1.1 christos (void) ether_ntohost;
10902 1.1 christos #endif
10903 1.1 christos
10904 1.1 christos ;
10905 1.1 christos return 0;
10906 1.1 christos }
10907 1.1 christos _ACEOF
10908 1.1 christos rm -f conftest.$ac_objext
10909 1.1 christos if { (ac_try="$ac_compile"
10910 1.1 christos case "(($ac_try" in
10911 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 1.1 christos *) ac_try_echo=$ac_try;;
10913 1.1 christos esac
10914 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 1.1 christos (eval "$ac_compile") 2>conftest.er1
10916 1.1 christos ac_status=$?
10917 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
10918 1.1 christos rm -f conftest.er1
10919 1.1 christos cat conftest.err >&5
10920 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 1.1 christos (exit $ac_status); } && {
10922 1.1 christos test -z "$ac_c_werror_flag" ||
10923 1.1 christos test ! -s conftest.err
10924 1.1 christos } && test -s conftest.$ac_objext; then
10925 1.1 christos ac_cv_have_decl_ether_ntohost=yes
10926 1.1 christos else
10927 1.1 christos echo "$as_me: failed program was:" >&5
10928 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
10929 1.1 christos
10930 1.1 christos ac_cv_have_decl_ether_ntohost=no
10931 1.1 christos fi
10932 1.1 christos
10933 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 1.1 christos fi
10935 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10936 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10937 1.1 christos if test $ac_cv_have_decl_ether_ntohost = yes; then
10938 1.1 christos
10939 1.1 christos
10940 1.1 christos cat >>confdefs.h <<\_ACEOF
10941 1.1 christos #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10942 1.1 christos _ACEOF
10943 1.1 christos
10944 1.1 christos
10945 1.1 christos fi
10946 1.1 christos
10947 1.1 christos fi
10948 1.1 christos fi
10949 1.1 christos #
10950 1.1 christos # Is ether_ntohost() declared?
10951 1.1 christos #
10952 1.1 christos if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10953 1.1 christos #
10954 1.1 christos # No, we'll have to declare it ourselves.
10955 1.1 christos # Do we have "struct ether_addr"?
10956 1.1 christos #
10957 1.1 christos { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10958 1.1 christos echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10959 1.1 christos if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10960 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
10961 1.1 christos else
10962 1.1 christos cat >conftest.$ac_ext <<_ACEOF
10963 1.1 christos /* confdefs.h. */
10964 1.1 christos _ACEOF
10965 1.1 christos cat confdefs.h >>conftest.$ac_ext
10966 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
10967 1.1 christos /* end confdefs.h. */
10968 1.1 christos
10969 1.1 christos #include <sys/types.h>
10970 1.1 christos #include <sys/socket.h>
10971 1.1 christos #include <netinet/in.h>
10972 1.1 christos #include <arpa/inet.h>
10973 1.1 christos struct mbuf;
10974 1.1 christos struct rtentry;
10975 1.1 christos #include <net/if.h>
10976 1.1 christos #include <netinet/if_ether.h>
10977 1.1 christos
10978 1.1 christos
10979 1.1 christos typedef struct ether_addr ac__type_new_;
10980 1.1 christos int
10981 1.1 christos main ()
10982 1.1 christos {
10983 1.1 christos if ((ac__type_new_ *) 0)
10984 1.1 christos return 0;
10985 1.1 christos if (sizeof (ac__type_new_))
10986 1.1 christos return 0;
10987 1.1 christos ;
10988 1.1 christos return 0;
10989 1.1 christos }
10990 1.1 christos _ACEOF
10991 1.1 christos rm -f conftest.$ac_objext
10992 1.1 christos if { (ac_try="$ac_compile"
10993 1.1 christos case "(($ac_try" in
10994 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 1.1 christos *) ac_try_echo=$ac_try;;
10996 1.1 christos esac
10997 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 1.1 christos (eval "$ac_compile") 2>conftest.er1
10999 1.1 christos ac_status=$?
11000 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11001 1.1 christos rm -f conftest.er1
11002 1.1 christos cat conftest.err >&5
11003 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 1.1 christos (exit $ac_status); } && {
11005 1.1 christos test -z "$ac_c_werror_flag" ||
11006 1.1 christos test ! -s conftest.err
11007 1.1 christos } && test -s conftest.$ac_objext; then
11008 1.1 christos ac_cv_type_struct_ether_addr=yes
11009 1.1 christos else
11010 1.1 christos echo "$as_me: failed program was:" >&5
11011 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11012 1.1 christos
11013 1.1 christos ac_cv_type_struct_ether_addr=no
11014 1.1 christos fi
11015 1.1 christos
11016 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 1.1 christos fi
11018 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11019 1.1 christos echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11020 1.1 christos if test $ac_cv_type_struct_ether_addr = yes; then
11021 1.1 christos
11022 1.1 christos cat >>confdefs.h <<_ACEOF
11023 1.1 christos #define HAVE_STRUCT_ETHER_ADDR 1
11024 1.1 christos _ACEOF
11025 1.1 christos
11026 1.1 christos
11027 1.1 christos fi
11028 1.1 christos
11029 1.1 christos
11030 1.1 christos cat >>confdefs.h <<\_ACEOF
11031 1.1 christos #define HAVE_DECL_ETHER_NTOHOST 0
11032 1.1 christos _ACEOF
11033 1.1 christos
11034 1.1 christos else
11035 1.1 christos
11036 1.1 christos cat >>confdefs.h <<\_ACEOF
11037 1.1 christos #define HAVE_DECL_ETHER_NTOHOST 1
11038 1.1 christos _ACEOF
11039 1.1 christos
11040 1.1 christos fi
11041 1.1 christos fi
11042 1.1 christos
11043 1.1 christos # libdlpi is needed for Solaris 11 and later.
11044 1.1 christos { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11045 1.1 christos echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11046 1.1 christos if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11047 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11048 1.1 christos else
11049 1.1 christos ac_check_lib_save_LIBS=$LIBS
11050 1.1 christos LIBS="-ldlpi -L/lib $LIBS"
11051 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11052 1.1 christos /* confdefs.h. */
11053 1.1 christos _ACEOF
11054 1.1 christos cat confdefs.h >>conftest.$ac_ext
11055 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11056 1.1 christos /* end confdefs.h. */
11057 1.1 christos
11058 1.1 christos /* Override any GCC internal prototype to avoid an error.
11059 1.1 christos Use char because int might match the return type of a GCC
11060 1.1 christos builtin and then its argument prototype would still apply. */
11061 1.1 christos #ifdef __cplusplus
11062 1.1 christos extern "C"
11063 1.1 christos #endif
11064 1.1 christos char dlpi_walk ();
11065 1.1 christos int
11066 1.1 christos main ()
11067 1.1 christos {
11068 1.1 christos return dlpi_walk ();
11069 1.1 christos ;
11070 1.1 christos return 0;
11071 1.1 christos }
11072 1.1 christos _ACEOF
11073 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11074 1.1 christos if { (ac_try="$ac_link"
11075 1.1 christos case "(($ac_try" in
11076 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 1.1 christos *) ac_try_echo=$ac_try;;
11078 1.1 christos esac
11079 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 1.1 christos (eval "$ac_link") 2>conftest.er1
11081 1.1 christos ac_status=$?
11082 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11083 1.1 christos rm -f conftest.er1
11084 1.1 christos cat conftest.err >&5
11085 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 1.1 christos (exit $ac_status); } && {
11087 1.1 christos test -z "$ac_c_werror_flag" ||
11088 1.1 christos test ! -s conftest.err
11089 1.1 christos } && test -s conftest$ac_exeext &&
11090 1.1 christos $as_test_x conftest$ac_exeext; then
11091 1.1 christos ac_cv_lib_dlpi_dlpi_walk=yes
11092 1.1 christos else
11093 1.1 christos echo "$as_me: failed program was:" >&5
11094 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11095 1.1 christos
11096 1.1 christos ac_cv_lib_dlpi_dlpi_walk=no
11097 1.1 christos fi
11098 1.1 christos
11099 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 1.1 christos conftest$ac_exeext conftest.$ac_ext
11101 1.1 christos LIBS=$ac_check_lib_save_LIBS
11102 1.1 christos fi
11103 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11104 1.1 christos echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11105 1.1 christos if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11106 1.1 christos LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
11107 1.1 christos fi
11108 1.1 christos
11109 1.1 christos
11110 1.1 christos
11111 1.1 christos { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11112 1.1 christos echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11113 1.1 christos if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11114 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11115 1.1 christos else
11116 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11117 1.1 christos /* confdefs.h. */
11118 1.1 christos _ACEOF
11119 1.1 christos cat confdefs.h >>conftest.$ac_ext
11120 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11121 1.1 christos /* end confdefs.h. */
11122 1.1 christos
11123 1.1 christos # include <sys/types.h>
11124 1.1 christos # include <sys/socket.h>
11125 1.1 christos int
11126 1.1 christos main ()
11127 1.1 christos {
11128 1.1 christos u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11129 1.1 christos ;
11130 1.1 christos return 0;
11131 1.1 christos }
11132 1.1 christos _ACEOF
11133 1.1 christos rm -f conftest.$ac_objext
11134 1.1 christos if { (ac_try="$ac_compile"
11135 1.1 christos case "(($ac_try" in
11136 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 1.1 christos *) ac_try_echo=$ac_try;;
11138 1.1 christos esac
11139 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 1.1 christos (eval "$ac_compile") 2>conftest.er1
11141 1.1 christos ac_status=$?
11142 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11143 1.1 christos rm -f conftest.er1
11144 1.1 christos cat conftest.err >&5
11145 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 1.1 christos (exit $ac_status); } && {
11147 1.1 christos test -z "$ac_c_werror_flag" ||
11148 1.1 christos test ! -s conftest.err
11149 1.1 christos } && test -s conftest.$ac_objext; then
11150 1.1 christos ac_cv_sockaddr_has_sa_len=yes
11151 1.1 christos else
11152 1.1 christos echo "$as_me: failed program was:" >&5
11153 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11154 1.1 christos
11155 1.1 christos ac_cv_sockaddr_has_sa_len=no
11156 1.1 christos fi
11157 1.1 christos
11158 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 1.1 christos fi
11160 1.1 christos
11161 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11162 1.1 christos echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11163 1.1 christos if test $ac_cv_sockaddr_has_sa_len = yes ; then
11164 1.1 christos cat >>confdefs.h <<\_ACEOF
11165 1.1 christos #define HAVE_SOCKADDR_SA_LEN 1
11166 1.1 christos _ACEOF
11167 1.1 christos
11168 1.1 christos fi
11169 1.1 christos
11170 1.1 christos if test "$ac_cv_sockaddr_has_sa_len" = no; then
11171 1.1 christos missing_includes=yes
11172 1.1 christos fi
11173 1.1 christos
11174 1.1 christos #
11175 1.1 christos # Do we have the new open API? Check for pcap_create, and assume that,
11176 1.1 christos # if we do, we also have pcap_activate() and the other new routines.
11177 1.1 christos
11178 1.1 christos for ac_func in pcap_create
11179 1.1 christos do
11180 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11185 1.1 christos else
11186 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11187 1.1 christos /* confdefs.h. */
11188 1.1 christos _ACEOF
11189 1.1 christos cat confdefs.h >>conftest.$ac_ext
11190 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11191 1.1 christos /* end confdefs.h. */
11192 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 1.1 christos #define $ac_func innocuous_$ac_func
11195 1.1 christos
11196 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
11197 1.1 christos which can conflict with char $ac_func (); below.
11198 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 1.1 christos <limits.h> exists even on freestanding compilers. */
11200 1.1 christos
11201 1.1 christos #ifdef __STDC__
11202 1.1 christos # include <limits.h>
11203 1.1 christos #else
11204 1.1 christos # include <assert.h>
11205 1.1 christos #endif
11206 1.1 christos
11207 1.1 christos #undef $ac_func
11208 1.1 christos
11209 1.1 christos /* Override any GCC internal prototype to avoid an error.
11210 1.1 christos Use char because int might match the return type of a GCC
11211 1.1 christos builtin and then its argument prototype would still apply. */
11212 1.1 christos #ifdef __cplusplus
11213 1.1 christos extern "C"
11214 1.1 christos #endif
11215 1.1 christos char $ac_func ();
11216 1.1 christos /* The GNU C library defines this for functions which it implements
11217 1.1 christos to always fail with ENOSYS. Some functions are actually named
11218 1.1 christos something starting with __ and the normal name is an alias. */
11219 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
11220 1.1 christos choke me
11221 1.1 christos #endif
11222 1.1 christos
11223 1.1 christos int
11224 1.1 christos main ()
11225 1.1 christos {
11226 1.1 christos return $ac_func ();
11227 1.1 christos ;
11228 1.1 christos return 0;
11229 1.1 christos }
11230 1.1 christos _ACEOF
11231 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11232 1.1 christos if { (ac_try="$ac_link"
11233 1.1 christos case "(($ac_try" in
11234 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 1.1 christos *) ac_try_echo=$ac_try;;
11236 1.1 christos esac
11237 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 1.1 christos (eval "$ac_link") 2>conftest.er1
11239 1.1 christos ac_status=$?
11240 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11241 1.1 christos rm -f conftest.er1
11242 1.1 christos cat conftest.err >&5
11243 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 1.1 christos (exit $ac_status); } && {
11245 1.1 christos test -z "$ac_c_werror_flag" ||
11246 1.1 christos test ! -s conftest.err
11247 1.1 christos } && test -s conftest$ac_exeext &&
11248 1.1 christos $as_test_x conftest$ac_exeext; then
11249 1.1 christos eval "$as_ac_var=yes"
11250 1.1 christos else
11251 1.1 christos echo "$as_me: failed program was:" >&5
11252 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11253 1.1 christos
11254 1.1 christos eval "$as_ac_var=no"
11255 1.1 christos fi
11256 1.1 christos
11257 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 1.1 christos conftest$ac_exeext conftest.$ac_ext
11259 1.1 christos fi
11260 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
11261 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11263 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 1.1 christos cat >>confdefs.h <<_ACEOF
11265 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 1.1 christos _ACEOF
11267 1.1 christos
11268 1.1 christos fi
11269 1.1 christos done
11270 1.1 christos
11271 1.1 christos
11272 1.1 christos
11273 1.1 christos
11274 1.1 christos
11275 1.1 christos for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11276 1.1 christos do
11277 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11278 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
11279 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11280 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11281 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11282 1.1 christos else
11283 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11284 1.1 christos /* confdefs.h. */
11285 1.1 christos _ACEOF
11286 1.1 christos cat confdefs.h >>conftest.$ac_ext
11287 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11288 1.1 christos /* end confdefs.h. */
11289 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11290 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291 1.1 christos #define $ac_func innocuous_$ac_func
11292 1.1 christos
11293 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
11294 1.1 christos which can conflict with char $ac_func (); below.
11295 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 1.1 christos <limits.h> exists even on freestanding compilers. */
11297 1.1 christos
11298 1.1 christos #ifdef __STDC__
11299 1.1 christos # include <limits.h>
11300 1.1 christos #else
11301 1.1 christos # include <assert.h>
11302 1.1 christos #endif
11303 1.1 christos
11304 1.1 christos #undef $ac_func
11305 1.1 christos
11306 1.1 christos /* Override any GCC internal prototype to avoid an error.
11307 1.1 christos Use char because int might match the return type of a GCC
11308 1.1 christos builtin and then its argument prototype would still apply. */
11309 1.1 christos #ifdef __cplusplus
11310 1.1 christos extern "C"
11311 1.1 christos #endif
11312 1.1 christos char $ac_func ();
11313 1.1 christos /* The GNU C library defines this for functions which it implements
11314 1.1 christos to always fail with ENOSYS. Some functions are actually named
11315 1.1 christos something starting with __ and the normal name is an alias. */
11316 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
11317 1.1 christos choke me
11318 1.1 christos #endif
11319 1.1 christos
11320 1.1 christos int
11321 1.1 christos main ()
11322 1.1 christos {
11323 1.1 christos return $ac_func ();
11324 1.1 christos ;
11325 1.1 christos return 0;
11326 1.1 christos }
11327 1.1 christos _ACEOF
11328 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11329 1.1 christos if { (ac_try="$ac_link"
11330 1.1 christos case "(($ac_try" in
11331 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 1.1 christos *) ac_try_echo=$ac_try;;
11333 1.1 christos esac
11334 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 1.1 christos (eval "$ac_link") 2>conftest.er1
11336 1.1 christos ac_status=$?
11337 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11338 1.1 christos rm -f conftest.er1
11339 1.1 christos cat conftest.err >&5
11340 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 1.1 christos (exit $ac_status); } && {
11342 1.1 christos test -z "$ac_c_werror_flag" ||
11343 1.1 christos test ! -s conftest.err
11344 1.1 christos } && test -s conftest$ac_exeext &&
11345 1.1 christos $as_test_x conftest$ac_exeext; then
11346 1.1 christos eval "$as_ac_var=yes"
11347 1.1 christos else
11348 1.1 christos echo "$as_me: failed program was:" >&5
11349 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11350 1.1 christos
11351 1.1 christos eval "$as_ac_var=no"
11352 1.1 christos fi
11353 1.1 christos
11354 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11355 1.1 christos conftest$ac_exeext conftest.$ac_ext
11356 1.1 christos fi
11357 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
11358 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11359 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11360 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
11361 1.1 christos cat >>confdefs.h <<_ACEOF
11362 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363 1.1 christos _ACEOF
11364 1.1 christos
11365 1.1 christos fi
11366 1.1 christos done
11367 1.1 christos
11368 1.1 christos if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11369 1.1 christos savedppflags="$CPPLAGS"
11370 1.1 christos CPPFLAGS="$CPPFLAGS $V_INCLS"
11371 1.1 christos { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11372 1.1 christos echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11373 1.1 christos if test "${ac_cv_type_pcap_if_t+set}" = set; then
11374 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11375 1.1 christos else
11376 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11377 1.1 christos /* confdefs.h. */
11378 1.1 christos _ACEOF
11379 1.1 christos cat confdefs.h >>conftest.$ac_ext
11380 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11381 1.1 christos /* end confdefs.h. */
11382 1.1 christos #include <pcap.h>
11383 1.1 christos
11384 1.1 christos typedef pcap_if_t ac__type_new_;
11385 1.1 christos int
11386 1.1 christos main ()
11387 1.1 christos {
11388 1.1 christos if ((ac__type_new_ *) 0)
11389 1.1 christos return 0;
11390 1.1 christos if (sizeof (ac__type_new_))
11391 1.1 christos return 0;
11392 1.1 christos ;
11393 1.1 christos return 0;
11394 1.1 christos }
11395 1.1 christos _ACEOF
11396 1.1 christos rm -f conftest.$ac_objext
11397 1.1 christos if { (ac_try="$ac_compile"
11398 1.1 christos case "(($ac_try" in
11399 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 1.1 christos *) ac_try_echo=$ac_try;;
11401 1.1 christos esac
11402 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 1.1 christos (eval "$ac_compile") 2>conftest.er1
11404 1.1 christos ac_status=$?
11405 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11406 1.1 christos rm -f conftest.er1
11407 1.1 christos cat conftest.err >&5
11408 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 1.1 christos (exit $ac_status); } && {
11410 1.1 christos test -z "$ac_c_werror_flag" ||
11411 1.1 christos test ! -s conftest.err
11412 1.1 christos } && test -s conftest.$ac_objext; then
11413 1.1 christos ac_cv_type_pcap_if_t=yes
11414 1.1 christos else
11415 1.1 christos echo "$as_me: failed program was:" >&5
11416 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11417 1.1 christos
11418 1.1 christos ac_cv_type_pcap_if_t=no
11419 1.1 christos fi
11420 1.1 christos
11421 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 1.1 christos fi
11423 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11424 1.1 christos echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11425 1.1 christos if test $ac_cv_type_pcap_if_t = yes; then
11426 1.1 christos
11427 1.1 christos cat >>confdefs.h <<_ACEOF
11428 1.1 christos #define HAVE_PCAP_IF_T 1
11429 1.1 christos _ACEOF
11430 1.1 christos
11431 1.1 christos
11432 1.1 christos fi
11433 1.1 christos
11434 1.1 christos CPPFLAGS="$savedcppflags"
11435 1.1 christos fi
11436 1.1 christos
11437 1.1 christos if test $ac_cv_func_pcap_lib_version = "no" ; then
11438 1.1 christos { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11439 1.1 christos echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11440 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11441 1.1 christos /* confdefs.h. */
11442 1.1 christos _ACEOF
11443 1.1 christos cat confdefs.h >>conftest.$ac_ext
11444 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11445 1.1 christos /* end confdefs.h. */
11446 1.1 christos
11447 1.1 christos int
11448 1.1 christos main ()
11449 1.1 christos {
11450 1.1 christos
11451 1.1 christos extern char pcap_version[];
11452 1.1 christos
11453 1.1 christos return (int)pcap_version;
11454 1.1 christos
11455 1.1 christos ;
11456 1.1 christos return 0;
11457 1.1 christos }
11458 1.1 christos _ACEOF
11459 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11460 1.1 christos if { (ac_try="$ac_link"
11461 1.1 christos case "(($ac_try" in
11462 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 1.1 christos *) ac_try_echo=$ac_try;;
11464 1.1 christos esac
11465 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 1.1 christos (eval "$ac_link") 2>conftest.er1
11467 1.1 christos ac_status=$?
11468 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11469 1.1 christos rm -f conftest.er1
11470 1.1 christos cat conftest.err >&5
11471 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 1.1 christos (exit $ac_status); } && {
11473 1.1 christos test -z "$ac_c_werror_flag" ||
11474 1.1 christos test ! -s conftest.err
11475 1.1 christos } && test -s conftest$ac_exeext &&
11476 1.1 christos $as_test_x conftest$ac_exeext; then
11477 1.1 christos ac_lbl_cv_pcap_version_defined=yes
11478 1.1 christos else
11479 1.1 christos echo "$as_me: failed program was:" >&5
11480 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11481 1.1 christos
11482 1.1 christos ac_lbl_cv_pcap_version_defined=no
11483 1.1 christos fi
11484 1.1 christos
11485 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 1.1 christos conftest$ac_exeext conftest.$ac_ext
11487 1.1 christos if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11488 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
11489 1.1 christos echo "${ECHO_T}yes" >&6; }
11490 1.1 christos cat >>confdefs.h <<\_ACEOF
11491 1.1 christos #define HAVE_PCAP_VERSION 1
11492 1.1 christos _ACEOF
11493 1.1 christos
11494 1.1 christos else
11495 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
11496 1.1 christos echo "${ECHO_T}no" >&6; }
11497 1.1 christos fi
11498 1.1 christos fi
11499 1.1 christos { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11500 1.1 christos echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11501 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11502 1.1 christos /* confdefs.h. */
11503 1.1 christos _ACEOF
11504 1.1 christos cat confdefs.h >>conftest.$ac_ext
11505 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11506 1.1 christos /* end confdefs.h. */
11507 1.1 christos
11508 1.1 christos int
11509 1.1 christos main ()
11510 1.1 christos {
11511 1.1 christos
11512 1.1 christos extern int pcap_debug;
11513 1.1 christos
11514 1.1 christos return pcap_debug;
11515 1.1 christos
11516 1.1 christos ;
11517 1.1 christos return 0;
11518 1.1 christos }
11519 1.1 christos _ACEOF
11520 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11521 1.1 christos if { (ac_try="$ac_link"
11522 1.1 christos case "(($ac_try" in
11523 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 1.1 christos *) ac_try_echo=$ac_try;;
11525 1.1 christos esac
11526 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 1.1 christos (eval "$ac_link") 2>conftest.er1
11528 1.1 christos ac_status=$?
11529 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11530 1.1 christos rm -f conftest.er1
11531 1.1 christos cat conftest.err >&5
11532 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 1.1 christos (exit $ac_status); } && {
11534 1.1 christos test -z "$ac_c_werror_flag" ||
11535 1.1 christos test ! -s conftest.err
11536 1.1 christos } && test -s conftest$ac_exeext &&
11537 1.1 christos $as_test_x conftest$ac_exeext; then
11538 1.1 christos ac_lbl_cv_pcap_debug_defined=yes
11539 1.1 christos else
11540 1.1 christos echo "$as_me: failed program was:" >&5
11541 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11542 1.1 christos
11543 1.1 christos ac_lbl_cv_pcap_debug_defined=no
11544 1.1 christos fi
11545 1.1 christos
11546 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11547 1.1 christos conftest$ac_exeext conftest.$ac_ext
11548 1.1 christos if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11549 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
11550 1.1 christos echo "${ECHO_T}yes" >&6; }
11551 1.1 christos cat >>confdefs.h <<\_ACEOF
11552 1.1 christos #define HAVE_PCAP_DEBUG 1
11553 1.1 christos _ACEOF
11554 1.1 christos
11555 1.1 christos else
11556 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
11557 1.1 christos echo "${ECHO_T}no" >&6; }
11558 1.1 christos #
11559 1.1 christos # OK, what about "yydebug"?
11560 1.1 christos #
11561 1.1 christos { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11562 1.1 christos echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11563 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11564 1.1 christos /* confdefs.h. */
11565 1.1 christos _ACEOF
11566 1.1 christos cat confdefs.h >>conftest.$ac_ext
11567 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11568 1.1 christos /* end confdefs.h. */
11569 1.1 christos
11570 1.1 christos int
11571 1.1 christos main ()
11572 1.1 christos {
11573 1.1 christos
11574 1.1 christos extern int yydebug;
11575 1.1 christos
11576 1.1 christos return yydebug;
11577 1.1 christos
11578 1.1 christos ;
11579 1.1 christos return 0;
11580 1.1 christos }
11581 1.1 christos _ACEOF
11582 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11583 1.1 christos if { (ac_try="$ac_link"
11584 1.1 christos case "(($ac_try" in
11585 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 1.1 christos *) ac_try_echo=$ac_try;;
11587 1.1 christos esac
11588 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 1.1 christos (eval "$ac_link") 2>conftest.er1
11590 1.1 christos ac_status=$?
11591 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11592 1.1 christos rm -f conftest.er1
11593 1.1 christos cat conftest.err >&5
11594 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 1.1 christos (exit $ac_status); } && {
11596 1.1 christos test -z "$ac_c_werror_flag" ||
11597 1.1 christos test ! -s conftest.err
11598 1.1 christos } && test -s conftest$ac_exeext &&
11599 1.1 christos $as_test_x conftest$ac_exeext; then
11600 1.1 christos ac_lbl_cv_yydebug_defined=yes
11601 1.1 christos else
11602 1.1 christos echo "$as_me: failed program was:" >&5
11603 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11604 1.1 christos
11605 1.1 christos ac_lbl_cv_yydebug_defined=no
11606 1.1 christos fi
11607 1.1 christos
11608 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609 1.1 christos conftest$ac_exeext conftest.$ac_ext
11610 1.1 christos if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11611 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
11612 1.1 christos echo "${ECHO_T}yes" >&6; }
11613 1.1 christos cat >>confdefs.h <<\_ACEOF
11614 1.1 christos #define HAVE_YYDEBUG 1
11615 1.1 christos _ACEOF
11616 1.1 christos
11617 1.1 christos else
11618 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
11619 1.1 christos echo "${ECHO_T}no" >&6; }
11620 1.1 christos fi
11621 1.1 christos fi
11622 1.1 christos
11623 1.1 christos for ac_func in bpf_dump
11624 1.1 christos do
11625 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626 1.1 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
11627 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11628 1.1 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11629 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11630 1.1 christos else
11631 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11632 1.1 christos /* confdefs.h. */
11633 1.1 christos _ACEOF
11634 1.1 christos cat confdefs.h >>conftest.$ac_ext
11635 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11636 1.1 christos /* end confdefs.h. */
11637 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11638 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639 1.1 christos #define $ac_func innocuous_$ac_func
11640 1.1 christos
11641 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
11642 1.1 christos which can conflict with char $ac_func (); below.
11643 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 1.1 christos <limits.h> exists even on freestanding compilers. */
11645 1.1 christos
11646 1.1 christos #ifdef __STDC__
11647 1.1 christos # include <limits.h>
11648 1.1 christos #else
11649 1.1 christos # include <assert.h>
11650 1.1 christos #endif
11651 1.1 christos
11652 1.1 christos #undef $ac_func
11653 1.1 christos
11654 1.1 christos /* Override any GCC internal prototype to avoid an error.
11655 1.1 christos Use char because int might match the return type of a GCC
11656 1.1 christos builtin and then its argument prototype would still apply. */
11657 1.1 christos #ifdef __cplusplus
11658 1.1 christos extern "C"
11659 1.1 christos #endif
11660 1.1 christos char $ac_func ();
11661 1.1 christos /* The GNU C library defines this for functions which it implements
11662 1.1 christos to always fail with ENOSYS. Some functions are actually named
11663 1.1 christos something starting with __ and the normal name is an alias. */
11664 1.1 christos #if defined __stub_$ac_func || defined __stub___$ac_func
11665 1.1 christos choke me
11666 1.1 christos #endif
11667 1.1 christos
11668 1.1 christos int
11669 1.1 christos main ()
11670 1.1 christos {
11671 1.1 christos return $ac_func ();
11672 1.1 christos ;
11673 1.1 christos return 0;
11674 1.1 christos }
11675 1.1 christos _ACEOF
11676 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
11677 1.1 christos if { (ac_try="$ac_link"
11678 1.1 christos case "(($ac_try" in
11679 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 1.1 christos *) ac_try_echo=$ac_try;;
11681 1.1 christos esac
11682 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 1.1 christos (eval "$ac_link") 2>conftest.er1
11684 1.1 christos ac_status=$?
11685 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11686 1.1 christos rm -f conftest.er1
11687 1.1 christos cat conftest.err >&5
11688 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 1.1 christos (exit $ac_status); } && {
11690 1.1 christos test -z "$ac_c_werror_flag" ||
11691 1.1 christos test ! -s conftest.err
11692 1.1 christos } && test -s conftest$ac_exeext &&
11693 1.1 christos $as_test_x conftest$ac_exeext; then
11694 1.1 christos eval "$as_ac_var=yes"
11695 1.1 christos else
11696 1.1 christos echo "$as_me: failed program was:" >&5
11697 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11698 1.1 christos
11699 1.1 christos eval "$as_ac_var=no"
11700 1.1 christos fi
11701 1.1 christos
11702 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11703 1.1 christos conftest$ac_exeext conftest.$ac_ext
11704 1.1 christos fi
11705 1.1 christos ac_res=`eval echo '${'$as_ac_var'}'`
11706 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11708 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 1.1 christos cat >>confdefs.h <<_ACEOF
11710 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 1.1 christos _ACEOF
11712 1.1 christos
11713 1.1 christos else
11714 1.1 christos case " $LIBOBJS " in
11715 1.1 christos *" $ac_func.$ac_objext "* ) ;;
11716 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11717 1.1 christos ;;
11718 1.1 christos esac
11719 1.1 christos
11720 1.1 christos fi
11721 1.1 christos done
11722 1.1 christos
11723 1.1 christos
11724 1.1 christos V_GROUP=0
11725 1.1 christos if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11726 1.1 christos V_GROUP=wheel
11727 1.1 christos fi
11728 1.1 christos #
11729 1.1 christos # Assume V7/BSD convention for man pages (file formats in section 5,
11730 1.1 christos # miscellaneous info in section 7).
11731 1.1 christos #
11732 1.1 christos MAN_FILE_FORMATS=5
11733 1.1 christos MAN_MISC_INFO=7
11734 1.1 christos case "$host_os" in
11735 1.1 christos
11736 1.1 christos aix*)
11737 1.1 christos cat >>confdefs.h <<\_ACEOF
11738 1.1 christos #define _SUN 1
11739 1.1 christos _ACEOF
11740 1.1 christos
11741 1.1 christos ;;
11742 1.1 christos
11743 1.1 christos hpux*)
11744 1.1 christos #
11745 1.1 christos # Use System V conventions for man pages.
11746 1.1 christos #
11747 1.1 christos MAN_FILE_FORMATS=4
11748 1.1 christos MAN_MISC_INFO=5
11749 1.1 christos ;;
11750 1.1 christos
11751 1.1 christos irix*)
11752 1.1 christos V_GROUP=sys
11753 1.1 christos
11754 1.1 christos #
11755 1.1 christos # Use System V conventions for man pages.
11756 1.1 christos #
11757 1.1 christos MAN_FILE_FORMATS=4
11758 1.1 christos MAN_MISC_INFO=5
11759 1.1 christos ;;
11760 1.1 christos
11761 1.1 christos osf*)
11762 1.1 christos V_GROUP=system
11763 1.1 christos
11764 1.1 christos #
11765 1.1 christos # Use System V conventions for man pages.
11766 1.1 christos #
11767 1.1 christos MAN_FILE_FORMATS=4
11768 1.1 christos MAN_MISC_INFO=5
11769 1.1 christos ;;
11770 1.1 christos
11771 1.1 christos solaris*)
11772 1.1 christos V_GROUP=sys
11773 1.1 christos
11774 1.1 christos #
11775 1.1 christos # Use System V conventions for man pages.
11776 1.1 christos #
11777 1.1 christos MAN_FILE_FORMATS=4
11778 1.1 christos MAN_MISC_INFO=5
11779 1.1 christos ;;
11780 1.1 christos esac
11781 1.1 christos
11782 1.1 christos if test -f /dev/bpf0 ; then
11783 1.1 christos V_GROUP=bpf
11784 1.1 christos fi
11785 1.1 christos
11786 1.1 christos #
11787 1.1 christos # Check for some headers introduced in later versions of libpcap
11788 1.1 christos # and used by some printers.
11789 1.1 christos #
11790 1.1 christos savedcppflags="$CPPFLAGS"
11791 1.1 christos CPPFLAGS="$CPPFLAGS $V_INCLS"
11792 1.1 christos
11793 1.1 christos for ac_header in pcap/bluetooth.h
11794 1.1 christos do
11795 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11801 1.1 christos fi
11802 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
11803 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11805 1.1 christos else
11806 1.1 christos # Is the header compilable?
11807 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11810 1.1 christos /* confdefs.h. */
11811 1.1 christos _ACEOF
11812 1.1 christos cat confdefs.h >>conftest.$ac_ext
11813 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11814 1.1 christos /* end confdefs.h. */
11815 1.1 christos $ac_includes_default
11816 1.1 christos #include <$ac_header>
11817 1.1 christos _ACEOF
11818 1.1 christos rm -f conftest.$ac_objext
11819 1.1 christos if { (ac_try="$ac_compile"
11820 1.1 christos case "(($ac_try" in
11821 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 1.1 christos *) ac_try_echo=$ac_try;;
11823 1.1 christos esac
11824 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 1.1 christos (eval "$ac_compile") 2>conftest.er1
11826 1.1 christos ac_status=$?
11827 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11828 1.1 christos rm -f conftest.er1
11829 1.1 christos cat conftest.err >&5
11830 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 1.1 christos (exit $ac_status); } && {
11832 1.1 christos test -z "$ac_c_werror_flag" ||
11833 1.1 christos test ! -s conftest.err
11834 1.1 christos } && test -s conftest.$ac_objext; then
11835 1.1 christos ac_header_compiler=yes
11836 1.1 christos else
11837 1.1 christos echo "$as_me: failed program was:" >&5
11838 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11839 1.1 christos
11840 1.1 christos ac_header_compiler=no
11841 1.1 christos fi
11842 1.1 christos
11843 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
11846 1.1 christos
11847 1.1 christos # Is the header present?
11848 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11851 1.1 christos /* confdefs.h. */
11852 1.1 christos _ACEOF
11853 1.1 christos cat confdefs.h >>conftest.$ac_ext
11854 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11855 1.1 christos /* end confdefs.h. */
11856 1.1 christos #include <$ac_header>
11857 1.1 christos _ACEOF
11858 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 1.1 christos case "(($ac_try" in
11860 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 1.1 christos *) ac_try_echo=$ac_try;;
11862 1.1 christos esac
11863 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865 1.1 christos ac_status=$?
11866 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11867 1.1 christos rm -f conftest.er1
11868 1.1 christos cat conftest.err >&5
11869 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 1.1 christos (exit $ac_status); } >/dev/null && {
11871 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872 1.1 christos test ! -s conftest.err
11873 1.1 christos }; then
11874 1.1 christos ac_header_preproc=yes
11875 1.1 christos else
11876 1.1 christos echo "$as_me: failed program was:" >&5
11877 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11878 1.1 christos
11879 1.1 christos ac_header_preproc=no
11880 1.1 christos fi
11881 1.1 christos
11882 1.1 christos rm -f conftest.err conftest.$ac_ext
11883 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
11885 1.1 christos
11886 1.1 christos # So? What about this header?
11887 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 1.1 christos yes:no: )
11889 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 1.1 christos ac_header_preproc=yes
11894 1.1 christos ;;
11895 1.1 christos no:yes:* )
11896 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908 1.1 christos
11909 1.1 christos ;;
11910 1.1 christos esac
11911 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11915 1.1 christos else
11916 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
11917 1.1 christos fi
11918 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
11919 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11921 1.1 christos
11922 1.1 christos fi
11923 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
11924 1.1 christos cat >>confdefs.h <<_ACEOF
11925 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11926 1.1 christos _ACEOF
11927 1.1 christos
11928 1.1 christos fi
11929 1.1 christos
11930 1.1 christos done
11931 1.1 christos
11932 1.1 christos
11933 1.1 christos for ac_header in pcap/usb.h
11934 1.1 christos do
11935 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11936 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11939 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
11941 1.1 christos fi
11942 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
11943 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
11944 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
11945 1.1 christos else
11946 1.1 christos # Is the header compilable?
11947 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11948 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11949 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11950 1.1 christos /* confdefs.h. */
11951 1.1 christos _ACEOF
11952 1.1 christos cat confdefs.h >>conftest.$ac_ext
11953 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11954 1.1 christos /* end confdefs.h. */
11955 1.1 christos $ac_includes_default
11956 1.1 christos #include <$ac_header>
11957 1.1 christos _ACEOF
11958 1.1 christos rm -f conftest.$ac_objext
11959 1.1 christos if { (ac_try="$ac_compile"
11960 1.1 christos case "(($ac_try" in
11961 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 1.1 christos *) ac_try_echo=$ac_try;;
11963 1.1 christos esac
11964 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 1.1 christos (eval "$ac_compile") 2>conftest.er1
11966 1.1 christos ac_status=$?
11967 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
11968 1.1 christos rm -f conftest.er1
11969 1.1 christos cat conftest.err >&5
11970 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 1.1 christos (exit $ac_status); } && {
11972 1.1 christos test -z "$ac_c_werror_flag" ||
11973 1.1 christos test ! -s conftest.err
11974 1.1 christos } && test -s conftest.$ac_objext; then
11975 1.1 christos ac_header_compiler=yes
11976 1.1 christos else
11977 1.1 christos echo "$as_me: failed program was:" >&5
11978 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
11979 1.1 christos
11980 1.1 christos ac_header_compiler=no
11981 1.1 christos fi
11982 1.1 christos
11983 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
11986 1.1 christos
11987 1.1 christos # Is the header present?
11988 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11990 1.1 christos cat >conftest.$ac_ext <<_ACEOF
11991 1.1 christos /* confdefs.h. */
11992 1.1 christos _ACEOF
11993 1.1 christos cat confdefs.h >>conftest.$ac_ext
11994 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
11995 1.1 christos /* end confdefs.h. */
11996 1.1 christos #include <$ac_header>
11997 1.1 christos _ACEOF
11998 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
11999 1.1 christos case "(($ac_try" in
12000 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 1.1 christos *) ac_try_echo=$ac_try;;
12002 1.1 christos esac
12003 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12005 1.1 christos ac_status=$?
12006 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12007 1.1 christos rm -f conftest.er1
12008 1.1 christos cat conftest.err >&5
12009 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 1.1 christos (exit $ac_status); } >/dev/null && {
12011 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12012 1.1 christos test ! -s conftest.err
12013 1.1 christos }; then
12014 1.1 christos ac_header_preproc=yes
12015 1.1 christos else
12016 1.1 christos echo "$as_me: failed program was:" >&5
12017 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12018 1.1 christos
12019 1.1 christos ac_header_preproc=no
12020 1.1 christos fi
12021 1.1 christos
12022 1.1 christos rm -f conftest.err conftest.$ac_ext
12023 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12024 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
12025 1.1 christos
12026 1.1 christos # So? What about this header?
12027 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12028 1.1 christos yes:no: )
12029 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12030 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12031 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12032 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12033 1.1 christos ac_header_preproc=yes
12034 1.1 christos ;;
12035 1.1 christos no:yes:* )
12036 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12037 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12038 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12039 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12040 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12041 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12042 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12043 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12044 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12046 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12047 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048 1.1 christos
12049 1.1 christos ;;
12050 1.1 christos esac
12051 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12053 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12055 1.1 christos else
12056 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
12057 1.1 christos fi
12058 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
12059 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
12060 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
12061 1.1 christos
12062 1.1 christos fi
12063 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
12064 1.1 christos cat >>confdefs.h <<_ACEOF
12065 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066 1.1 christos _ACEOF
12067 1.1 christos
12068 1.1 christos fi
12069 1.1 christos
12070 1.1 christos done
12071 1.1 christos
12072 1.1 christos CPPFLAGS="$savedcppflags"
12073 1.1 christos
12074 1.1 christos
12075 1.1 christos for ac_header in sys/bitypes.h
12076 1.1 christos do
12077 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
12080 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12081 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12083 1.1 christos fi
12084 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
12085 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
12087 1.1 christos else
12088 1.1 christos # Is the header compilable?
12089 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12091 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12092 1.1 christos /* confdefs.h. */
12093 1.1 christos _ACEOF
12094 1.1 christos cat confdefs.h >>conftest.$ac_ext
12095 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12096 1.1 christos /* end confdefs.h. */
12097 1.1 christos $ac_includes_default
12098 1.1 christos #include <$ac_header>
12099 1.1 christos _ACEOF
12100 1.1 christos rm -f conftest.$ac_objext
12101 1.1 christos if { (ac_try="$ac_compile"
12102 1.1 christos case "(($ac_try" in
12103 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 1.1 christos *) ac_try_echo=$ac_try;;
12105 1.1 christos esac
12106 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 1.1 christos (eval "$ac_compile") 2>conftest.er1
12108 1.1 christos ac_status=$?
12109 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12110 1.1 christos rm -f conftest.er1
12111 1.1 christos cat conftest.err >&5
12112 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 1.1 christos (exit $ac_status); } && {
12114 1.1 christos test -z "$ac_c_werror_flag" ||
12115 1.1 christos test ! -s conftest.err
12116 1.1 christos } && test -s conftest.$ac_objext; then
12117 1.1 christos ac_header_compiler=yes
12118 1.1 christos else
12119 1.1 christos echo "$as_me: failed program was:" >&5
12120 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12121 1.1 christos
12122 1.1 christos ac_header_compiler=no
12123 1.1 christos fi
12124 1.1 christos
12125 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12127 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
12128 1.1 christos
12129 1.1 christos # Is the header present?
12130 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12131 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12132 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12133 1.1 christos /* confdefs.h. */
12134 1.1 christos _ACEOF
12135 1.1 christos cat confdefs.h >>conftest.$ac_ext
12136 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12137 1.1 christos /* end confdefs.h. */
12138 1.1 christos #include <$ac_header>
12139 1.1 christos _ACEOF
12140 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
12141 1.1 christos case "(($ac_try" in
12142 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 1.1 christos *) ac_try_echo=$ac_try;;
12144 1.1 christos esac
12145 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12147 1.1 christos ac_status=$?
12148 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12149 1.1 christos rm -f conftest.er1
12150 1.1 christos cat conftest.err >&5
12151 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 1.1 christos (exit $ac_status); } >/dev/null && {
12153 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12154 1.1 christos test ! -s conftest.err
12155 1.1 christos }; then
12156 1.1 christos ac_header_preproc=yes
12157 1.1 christos else
12158 1.1 christos echo "$as_me: failed program was:" >&5
12159 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12160 1.1 christos
12161 1.1 christos ac_header_preproc=no
12162 1.1 christos fi
12163 1.1 christos
12164 1.1 christos rm -f conftest.err conftest.$ac_ext
12165 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12166 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
12167 1.1 christos
12168 1.1 christos # So? What about this header?
12169 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12170 1.1 christos yes:no: )
12171 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12172 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12173 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12174 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12175 1.1 christos ac_header_preproc=yes
12176 1.1 christos ;;
12177 1.1 christos no:yes:* )
12178 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12179 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12180 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12181 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12182 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12183 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12184 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12185 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12186 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12187 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12188 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12189 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12190 1.1 christos
12191 1.1 christos ;;
12192 1.1 christos esac
12193 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
12194 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12197 1.1 christos else
12198 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
12199 1.1 christos fi
12200 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
12201 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
12203 1.1 christos
12204 1.1 christos fi
12205 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 1.1 christos cat >>confdefs.h <<_ACEOF
12207 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 1.1 christos _ACEOF
12209 1.1 christos
12210 1.1 christos fi
12211 1.1 christos
12212 1.1 christos done
12213 1.1 christos
12214 1.1 christos
12215 1.1 christos { echo "$as_me:$LINENO: checking for int8_t" >&5
12216 1.1 christos echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12217 1.1 christos if test "${ac_cv_type_int8_t+set}" = set; then
12218 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12219 1.1 christos else
12220 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12221 1.1 christos /* confdefs.h. */
12222 1.1 christos _ACEOF
12223 1.1 christos cat confdefs.h >>conftest.$ac_ext
12224 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12225 1.1 christos /* end confdefs.h. */
12226 1.1 christos $ac_includes_default
12227 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12228 1.1 christos #include <sys/bitypes.h>
12229 1.1 christos #endif
12230 1.1 christos
12231 1.1 christos typedef int8_t ac__type_new_;
12232 1.1 christos int
12233 1.1 christos main ()
12234 1.1 christos {
12235 1.1 christos if ((ac__type_new_ *) 0)
12236 1.1 christos return 0;
12237 1.1 christos if (sizeof (ac__type_new_))
12238 1.1 christos return 0;
12239 1.1 christos ;
12240 1.1 christos return 0;
12241 1.1 christos }
12242 1.1 christos _ACEOF
12243 1.1 christos rm -f conftest.$ac_objext
12244 1.1 christos if { (ac_try="$ac_compile"
12245 1.1 christos case "(($ac_try" in
12246 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 1.1 christos *) ac_try_echo=$ac_try;;
12248 1.1 christos esac
12249 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 1.1 christos (eval "$ac_compile") 2>conftest.er1
12251 1.1 christos ac_status=$?
12252 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12253 1.1 christos rm -f conftest.er1
12254 1.1 christos cat conftest.err >&5
12255 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 1.1 christos (exit $ac_status); } && {
12257 1.1 christos test -z "$ac_c_werror_flag" ||
12258 1.1 christos test ! -s conftest.err
12259 1.1 christos } && test -s conftest.$ac_objext; then
12260 1.1 christos ac_cv_type_int8_t=yes
12261 1.1 christos else
12262 1.1 christos echo "$as_me: failed program was:" >&5
12263 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12264 1.1 christos
12265 1.1 christos ac_cv_type_int8_t=no
12266 1.1 christos fi
12267 1.1 christos
12268 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 1.1 christos fi
12270 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12271 1.1 christos echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12272 1.1 christos if test $ac_cv_type_int8_t = yes; then
12273 1.1 christos :
12274 1.1 christos else
12275 1.1 christos
12276 1.1 christos cat >>confdefs.h <<\_ACEOF
12277 1.1 christos #define int8_t signed char
12278 1.1 christos _ACEOF
12279 1.1 christos
12280 1.1 christos fi
12281 1.1 christos
12282 1.1 christos { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12283 1.1 christos echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12284 1.1 christos if test "${ac_cv_type_u_int8_t+set}" = set; then
12285 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12286 1.1 christos else
12287 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12288 1.1 christos /* confdefs.h. */
12289 1.1 christos _ACEOF
12290 1.1 christos cat confdefs.h >>conftest.$ac_ext
12291 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12292 1.1 christos /* end confdefs.h. */
12293 1.1 christos $ac_includes_default
12294 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12295 1.1 christos #include <sys/bitypes.h>
12296 1.1 christos #endif
12297 1.1 christos
12298 1.1 christos typedef u_int8_t ac__type_new_;
12299 1.1 christos int
12300 1.1 christos main ()
12301 1.1 christos {
12302 1.1 christos if ((ac__type_new_ *) 0)
12303 1.1 christos return 0;
12304 1.1 christos if (sizeof (ac__type_new_))
12305 1.1 christos return 0;
12306 1.1 christos ;
12307 1.1 christos return 0;
12308 1.1 christos }
12309 1.1 christos _ACEOF
12310 1.1 christos rm -f conftest.$ac_objext
12311 1.1 christos if { (ac_try="$ac_compile"
12312 1.1 christos case "(($ac_try" in
12313 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 1.1 christos *) ac_try_echo=$ac_try;;
12315 1.1 christos esac
12316 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 1.1 christos (eval "$ac_compile") 2>conftest.er1
12318 1.1 christos ac_status=$?
12319 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12320 1.1 christos rm -f conftest.er1
12321 1.1 christos cat conftest.err >&5
12322 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 1.1 christos (exit $ac_status); } && {
12324 1.1 christos test -z "$ac_c_werror_flag" ||
12325 1.1 christos test ! -s conftest.err
12326 1.1 christos } && test -s conftest.$ac_objext; then
12327 1.1 christos ac_cv_type_u_int8_t=yes
12328 1.1 christos else
12329 1.1 christos echo "$as_me: failed program was:" >&5
12330 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12331 1.1 christos
12332 1.1 christos ac_cv_type_u_int8_t=no
12333 1.1 christos fi
12334 1.1 christos
12335 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 1.1 christos fi
12337 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12338 1.1 christos echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12339 1.1 christos if test $ac_cv_type_u_int8_t = yes; then
12340 1.1 christos :
12341 1.1 christos else
12342 1.1 christos
12343 1.1 christos cat >>confdefs.h <<\_ACEOF
12344 1.1 christos #define u_int8_t unsigned char
12345 1.1 christos _ACEOF
12346 1.1 christos
12347 1.1 christos fi
12348 1.1 christos
12349 1.1 christos { echo "$as_me:$LINENO: checking for int16_t" >&5
12350 1.1 christos echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12351 1.1 christos if test "${ac_cv_type_int16_t+set}" = set; then
12352 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12353 1.1 christos else
12354 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12355 1.1 christos /* confdefs.h. */
12356 1.1 christos _ACEOF
12357 1.1 christos cat confdefs.h >>conftest.$ac_ext
12358 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12359 1.1 christos /* end confdefs.h. */
12360 1.1 christos $ac_includes_default
12361 1.1 christos typedef int16_t ac__type_new_;
12362 1.1 christos int
12363 1.1 christos main ()
12364 1.1 christos {
12365 1.1 christos if ((ac__type_new_ *) 0)
12366 1.1 christos return 0;
12367 1.1 christos if (sizeof (ac__type_new_))
12368 1.1 christos return 0;
12369 1.1 christos ;
12370 1.1 christos return 0;
12371 1.1 christos }
12372 1.1 christos _ACEOF
12373 1.1 christos rm -f conftest.$ac_objext
12374 1.1 christos if { (ac_try="$ac_compile"
12375 1.1 christos case "(($ac_try" in
12376 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 1.1 christos *) ac_try_echo=$ac_try;;
12378 1.1 christos esac
12379 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 1.1 christos (eval "$ac_compile") 2>conftest.er1
12381 1.1 christos ac_status=$?
12382 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12383 1.1 christos rm -f conftest.er1
12384 1.1 christos cat conftest.err >&5
12385 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 1.1 christos (exit $ac_status); } && {
12387 1.1 christos test -z "$ac_c_werror_flag" ||
12388 1.1 christos test ! -s conftest.err
12389 1.1 christos } && test -s conftest.$ac_objext; then
12390 1.1 christos ac_cv_type_int16_t=yes
12391 1.1 christos else
12392 1.1 christos echo "$as_me: failed program was:" >&5
12393 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12394 1.1 christos
12395 1.1 christos ac_cv_type_int16_t=no
12396 1.1 christos fi
12397 1.1 christos
12398 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 1.1 christos fi
12400 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12401 1.1 christos echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12402 1.1 christos if test $ac_cv_type_int16_t = yes; then
12403 1.1 christos :
12404 1.1 christos else
12405 1.1 christos
12406 1.1 christos cat >>confdefs.h <<\_ACEOF
12407 1.1 christos #define int16_t short
12408 1.1 christos _ACEOF
12409 1.1 christos
12410 1.1 christos $ac_includes_default
12411 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12412 1.1 christos #include <sys/bitypes.h>
12413 1.1 christos #endif
12414 1.1 christos fi
12415 1.1 christos
12416 1.1 christos { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12417 1.1 christos echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12418 1.1 christos if test "${ac_cv_type_u_int16_t+set}" = set; then
12419 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12420 1.1 christos else
12421 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12422 1.1 christos /* confdefs.h. */
12423 1.1 christos _ACEOF
12424 1.1 christos cat confdefs.h >>conftest.$ac_ext
12425 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12426 1.1 christos /* end confdefs.h. */
12427 1.1 christos $ac_includes_default
12428 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12429 1.1 christos #include <sys/bitypes.h>
12430 1.1 christos #endif
12431 1.1 christos
12432 1.1 christos typedef u_int16_t ac__type_new_;
12433 1.1 christos int
12434 1.1 christos main ()
12435 1.1 christos {
12436 1.1 christos if ((ac__type_new_ *) 0)
12437 1.1 christos return 0;
12438 1.1 christos if (sizeof (ac__type_new_))
12439 1.1 christos return 0;
12440 1.1 christos ;
12441 1.1 christos return 0;
12442 1.1 christos }
12443 1.1 christos _ACEOF
12444 1.1 christos rm -f conftest.$ac_objext
12445 1.1 christos if { (ac_try="$ac_compile"
12446 1.1 christos case "(($ac_try" in
12447 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 1.1 christos *) ac_try_echo=$ac_try;;
12449 1.1 christos esac
12450 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 1.1 christos (eval "$ac_compile") 2>conftest.er1
12452 1.1 christos ac_status=$?
12453 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12454 1.1 christos rm -f conftest.er1
12455 1.1 christos cat conftest.err >&5
12456 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 1.1 christos (exit $ac_status); } && {
12458 1.1 christos test -z "$ac_c_werror_flag" ||
12459 1.1 christos test ! -s conftest.err
12460 1.1 christos } && test -s conftest.$ac_objext; then
12461 1.1 christos ac_cv_type_u_int16_t=yes
12462 1.1 christos else
12463 1.1 christos echo "$as_me: failed program was:" >&5
12464 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12465 1.1 christos
12466 1.1 christos ac_cv_type_u_int16_t=no
12467 1.1 christos fi
12468 1.1 christos
12469 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 1.1 christos fi
12471 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12472 1.1 christos echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12473 1.1 christos if test $ac_cv_type_u_int16_t = yes; then
12474 1.1 christos :
12475 1.1 christos else
12476 1.1 christos
12477 1.1 christos cat >>confdefs.h <<\_ACEOF
12478 1.1 christos #define u_int16_t unsigned short
12479 1.1 christos _ACEOF
12480 1.1 christos
12481 1.1 christos fi
12482 1.1 christos
12483 1.1 christos { echo "$as_me:$LINENO: checking for int32_t" >&5
12484 1.1 christos echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12485 1.1 christos if test "${ac_cv_type_int32_t+set}" = set; then
12486 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12487 1.1 christos else
12488 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12489 1.1 christos /* confdefs.h. */
12490 1.1 christos _ACEOF
12491 1.1 christos cat confdefs.h >>conftest.$ac_ext
12492 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12493 1.1 christos /* end confdefs.h. */
12494 1.1 christos $ac_includes_default
12495 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12496 1.1 christos #include <sys/bitypes.h>
12497 1.1 christos #endif
12498 1.1 christos
12499 1.1 christos typedef int32_t ac__type_new_;
12500 1.1 christos int
12501 1.1 christos main ()
12502 1.1 christos {
12503 1.1 christos if ((ac__type_new_ *) 0)
12504 1.1 christos return 0;
12505 1.1 christos if (sizeof (ac__type_new_))
12506 1.1 christos return 0;
12507 1.1 christos ;
12508 1.1 christos return 0;
12509 1.1 christos }
12510 1.1 christos _ACEOF
12511 1.1 christos rm -f conftest.$ac_objext
12512 1.1 christos if { (ac_try="$ac_compile"
12513 1.1 christos case "(($ac_try" in
12514 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 1.1 christos *) ac_try_echo=$ac_try;;
12516 1.1 christos esac
12517 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 1.1 christos (eval "$ac_compile") 2>conftest.er1
12519 1.1 christos ac_status=$?
12520 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12521 1.1 christos rm -f conftest.er1
12522 1.1 christos cat conftest.err >&5
12523 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 1.1 christos (exit $ac_status); } && {
12525 1.1 christos test -z "$ac_c_werror_flag" ||
12526 1.1 christos test ! -s conftest.err
12527 1.1 christos } && test -s conftest.$ac_objext; then
12528 1.1 christos ac_cv_type_int32_t=yes
12529 1.1 christos else
12530 1.1 christos echo "$as_me: failed program was:" >&5
12531 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12532 1.1 christos
12533 1.1 christos ac_cv_type_int32_t=no
12534 1.1 christos fi
12535 1.1 christos
12536 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 1.1 christos fi
12538 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12539 1.1 christos echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12540 1.1 christos if test $ac_cv_type_int32_t = yes; then
12541 1.1 christos :
12542 1.1 christos else
12543 1.1 christos
12544 1.1 christos cat >>confdefs.h <<\_ACEOF
12545 1.1 christos #define int32_t int
12546 1.1 christos _ACEOF
12547 1.1 christos
12548 1.1 christos fi
12549 1.1 christos
12550 1.1 christos { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12551 1.1 christos echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12552 1.1 christos if test "${ac_cv_type_u_int32_t+set}" = set; then
12553 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12554 1.1 christos else
12555 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12556 1.1 christos /* confdefs.h. */
12557 1.1 christos _ACEOF
12558 1.1 christos cat confdefs.h >>conftest.$ac_ext
12559 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12560 1.1 christos /* end confdefs.h. */
12561 1.1 christos $ac_includes_default
12562 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12563 1.1 christos #include <sys/bitypes.h>
12564 1.1 christos #endif
12565 1.1 christos
12566 1.1 christos typedef u_int32_t ac__type_new_;
12567 1.1 christos int
12568 1.1 christos main ()
12569 1.1 christos {
12570 1.1 christos if ((ac__type_new_ *) 0)
12571 1.1 christos return 0;
12572 1.1 christos if (sizeof (ac__type_new_))
12573 1.1 christos return 0;
12574 1.1 christos ;
12575 1.1 christos return 0;
12576 1.1 christos }
12577 1.1 christos _ACEOF
12578 1.1 christos rm -f conftest.$ac_objext
12579 1.1 christos if { (ac_try="$ac_compile"
12580 1.1 christos case "(($ac_try" in
12581 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 1.1 christos *) ac_try_echo=$ac_try;;
12583 1.1 christos esac
12584 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 1.1 christos (eval "$ac_compile") 2>conftest.er1
12586 1.1 christos ac_status=$?
12587 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12588 1.1 christos rm -f conftest.er1
12589 1.1 christos cat conftest.err >&5
12590 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 1.1 christos (exit $ac_status); } && {
12592 1.1 christos test -z "$ac_c_werror_flag" ||
12593 1.1 christos test ! -s conftest.err
12594 1.1 christos } && test -s conftest.$ac_objext; then
12595 1.1 christos ac_cv_type_u_int32_t=yes
12596 1.1 christos else
12597 1.1 christos echo "$as_me: failed program was:" >&5
12598 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12599 1.1 christos
12600 1.1 christos ac_cv_type_u_int32_t=no
12601 1.1 christos fi
12602 1.1 christos
12603 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 1.1 christos fi
12605 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12606 1.1 christos echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12607 1.1 christos if test $ac_cv_type_u_int32_t = yes; then
12608 1.1 christos :
12609 1.1 christos else
12610 1.1 christos
12611 1.1 christos cat >>confdefs.h <<\_ACEOF
12612 1.1 christos #define u_int32_t unsigned int
12613 1.1 christos _ACEOF
12614 1.1 christos
12615 1.1 christos fi
12616 1.1 christos
12617 1.1 christos { echo "$as_me:$LINENO: checking for int64_t" >&5
12618 1.1 christos echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12619 1.1 christos if test "${ac_cv_type_int64_t+set}" = set; then
12620 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12621 1.1 christos else
12622 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12623 1.1 christos /* confdefs.h. */
12624 1.1 christos _ACEOF
12625 1.1 christos cat confdefs.h >>conftest.$ac_ext
12626 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12627 1.1 christos /* end confdefs.h. */
12628 1.1 christos $ac_includes_default
12629 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12630 1.1 christos #include <sys/bitypes.h>
12631 1.1 christos #endif
12632 1.1 christos
12633 1.1 christos typedef int64_t ac__type_new_;
12634 1.1 christos int
12635 1.1 christos main ()
12636 1.1 christos {
12637 1.1 christos if ((ac__type_new_ *) 0)
12638 1.1 christos return 0;
12639 1.1 christos if (sizeof (ac__type_new_))
12640 1.1 christos return 0;
12641 1.1 christos ;
12642 1.1 christos return 0;
12643 1.1 christos }
12644 1.1 christos _ACEOF
12645 1.1 christos rm -f conftest.$ac_objext
12646 1.1 christos if { (ac_try="$ac_compile"
12647 1.1 christos case "(($ac_try" in
12648 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 1.1 christos *) ac_try_echo=$ac_try;;
12650 1.1 christos esac
12651 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 1.1 christos (eval "$ac_compile") 2>conftest.er1
12653 1.1 christos ac_status=$?
12654 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12655 1.1 christos rm -f conftest.er1
12656 1.1 christos cat conftest.err >&5
12657 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 1.1 christos (exit $ac_status); } && {
12659 1.1 christos test -z "$ac_c_werror_flag" ||
12660 1.1 christos test ! -s conftest.err
12661 1.1 christos } && test -s conftest.$ac_objext; then
12662 1.1 christos ac_cv_type_int64_t=yes
12663 1.1 christos else
12664 1.1 christos echo "$as_me: failed program was:" >&5
12665 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12666 1.1 christos
12667 1.1 christos ac_cv_type_int64_t=no
12668 1.1 christos fi
12669 1.1 christos
12670 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 1.1 christos fi
12672 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12673 1.1 christos echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12674 1.1 christos if test $ac_cv_type_int64_t = yes; then
12675 1.1 christos :
12676 1.1 christos else
12677 1.1 christos
12678 1.1 christos cat >>confdefs.h <<\_ACEOF
12679 1.1 christos #define int64_t long long
12680 1.1 christos _ACEOF
12681 1.1 christos
12682 1.1 christos fi
12683 1.1 christos
12684 1.1 christos { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12685 1.1 christos echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12686 1.1 christos if test "${ac_cv_type_u_int64_t+set}" = set; then
12687 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12688 1.1 christos else
12689 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12690 1.1 christos /* confdefs.h. */
12691 1.1 christos _ACEOF
12692 1.1 christos cat confdefs.h >>conftest.$ac_ext
12693 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12694 1.1 christos /* end confdefs.h. */
12695 1.1 christos $ac_includes_default
12696 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12697 1.1 christos #include <sys/bitypes.h>
12698 1.1 christos #endif
12699 1.1 christos
12700 1.1 christos typedef u_int64_t ac__type_new_;
12701 1.1 christos int
12702 1.1 christos main ()
12703 1.1 christos {
12704 1.1 christos if ((ac__type_new_ *) 0)
12705 1.1 christos return 0;
12706 1.1 christos if (sizeof (ac__type_new_))
12707 1.1 christos return 0;
12708 1.1 christos ;
12709 1.1 christos return 0;
12710 1.1 christos }
12711 1.1 christos _ACEOF
12712 1.1 christos rm -f conftest.$ac_objext
12713 1.1 christos if { (ac_try="$ac_compile"
12714 1.1 christos case "(($ac_try" in
12715 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 1.1 christos *) ac_try_echo=$ac_try;;
12717 1.1 christos esac
12718 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 1.1 christos (eval "$ac_compile") 2>conftest.er1
12720 1.1 christos ac_status=$?
12721 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12722 1.1 christos rm -f conftest.er1
12723 1.1 christos cat conftest.err >&5
12724 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 1.1 christos (exit $ac_status); } && {
12726 1.1 christos test -z "$ac_c_werror_flag" ||
12727 1.1 christos test ! -s conftest.err
12728 1.1 christos } && test -s conftest.$ac_objext; then
12729 1.1 christos ac_cv_type_u_int64_t=yes
12730 1.1 christos else
12731 1.1 christos echo "$as_me: failed program was:" >&5
12732 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12733 1.1 christos
12734 1.1 christos ac_cv_type_u_int64_t=no
12735 1.1 christos fi
12736 1.1 christos
12737 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738 1.1 christos fi
12739 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12740 1.1 christos echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12741 1.1 christos if test $ac_cv_type_u_int64_t = yes; then
12742 1.1 christos :
12743 1.1 christos else
12744 1.1 christos
12745 1.1 christos cat >>confdefs.h <<\_ACEOF
12746 1.1 christos #define u_int64_t unsigned long long
12747 1.1 christos _ACEOF
12748 1.1 christos
12749 1.1 christos fi
12750 1.1 christos
12751 1.1 christos
12752 1.1 christos #
12753 1.1 christos # We can't just check for <inttypes.h> - some systems have one that
12754 1.1 christos # doesn't define all the PRI[doxu]64 macros.
12755 1.1 christos #
12756 1.1 christos
12757 1.1 christos for ac_header in inttypes.h
12758 1.1 christos do
12759 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12761 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
12762 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12763 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12765 1.1 christos fi
12766 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
12767 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
12768 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
12769 1.1 christos else
12770 1.1 christos # Is the header compilable?
12771 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12772 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12773 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12774 1.1 christos /* confdefs.h. */
12775 1.1 christos _ACEOF
12776 1.1 christos cat confdefs.h >>conftest.$ac_ext
12777 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12778 1.1 christos /* end confdefs.h. */
12779 1.1 christos $ac_includes_default
12780 1.1 christos #include <$ac_header>
12781 1.1 christos _ACEOF
12782 1.1 christos rm -f conftest.$ac_objext
12783 1.1 christos if { (ac_try="$ac_compile"
12784 1.1 christos case "(($ac_try" in
12785 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 1.1 christos *) ac_try_echo=$ac_try;;
12787 1.1 christos esac
12788 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 1.1 christos (eval "$ac_compile") 2>conftest.er1
12790 1.1 christos ac_status=$?
12791 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12792 1.1 christos rm -f conftest.er1
12793 1.1 christos cat conftest.err >&5
12794 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 1.1 christos (exit $ac_status); } && {
12796 1.1 christos test -z "$ac_c_werror_flag" ||
12797 1.1 christos test ! -s conftest.err
12798 1.1 christos } && test -s conftest.$ac_objext; then
12799 1.1 christos ac_header_compiler=yes
12800 1.1 christos else
12801 1.1 christos echo "$as_me: failed program was:" >&5
12802 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12803 1.1 christos
12804 1.1 christos ac_header_compiler=no
12805 1.1 christos fi
12806 1.1 christos
12807 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12809 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
12810 1.1 christos
12811 1.1 christos # Is the header present?
12812 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12813 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12814 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12815 1.1 christos /* confdefs.h. */
12816 1.1 christos _ACEOF
12817 1.1 christos cat confdefs.h >>conftest.$ac_ext
12818 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12819 1.1 christos /* end confdefs.h. */
12820 1.1 christos #include <$ac_header>
12821 1.1 christos _ACEOF
12822 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
12823 1.1 christos case "(($ac_try" in
12824 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 1.1 christos *) ac_try_echo=$ac_try;;
12826 1.1 christos esac
12827 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12829 1.1 christos ac_status=$?
12830 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12831 1.1 christos rm -f conftest.er1
12832 1.1 christos cat conftest.err >&5
12833 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 1.1 christos (exit $ac_status); } >/dev/null && {
12835 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12836 1.1 christos test ! -s conftest.err
12837 1.1 christos }; then
12838 1.1 christos ac_header_preproc=yes
12839 1.1 christos else
12840 1.1 christos echo "$as_me: failed program was:" >&5
12841 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12842 1.1 christos
12843 1.1 christos ac_header_preproc=no
12844 1.1 christos fi
12845 1.1 christos
12846 1.1 christos rm -f conftest.err conftest.$ac_ext
12847 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12848 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
12849 1.1 christos
12850 1.1 christos # So? What about this header?
12851 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12852 1.1 christos yes:no: )
12853 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12854 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12855 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12856 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12857 1.1 christos ac_header_preproc=yes
12858 1.1 christos ;;
12859 1.1 christos no:yes:* )
12860 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12861 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12862 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12863 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12864 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12865 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12866 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12867 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12868 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12869 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12870 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12871 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12872 1.1 christos
12873 1.1 christos ;;
12874 1.1 christos esac
12875 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
12876 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12877 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12878 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12879 1.1 christos else
12880 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
12881 1.1 christos fi
12882 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
12883 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
12884 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
12885 1.1 christos
12886 1.1 christos fi
12887 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
12888 1.1 christos cat >>confdefs.h <<_ACEOF
12889 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890 1.1 christos _ACEOF
12891 1.1 christos
12892 1.1 christos #
12893 1.1 christos # OK, we have inttypes.h, but does it define those macros?
12894 1.1 christos #
12895 1.1 christos { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12896 1.1 christos echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12897 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12898 1.1 christos
12899 1.1 christos /* confdefs.h. */
12900 1.1 christos _ACEOF
12901 1.1 christos cat confdefs.h >>conftest.$ac_ext
12902 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12903 1.1 christos /* end confdefs.h. */
12904 1.1 christos
12905 1.1 christos #include <inttypes.h>
12906 1.1 christos #include <stdio.h>
12907 1.1 christos #include <sys/types.h>
12908 1.1 christos #ifdef HAVE_SYS_BITYPES_H
12909 1.1 christos #include <sys/bitypes.h>
12910 1.1 christos #endif
12911 1.1 christos
12912 1.1 christos main()
12913 1.1 christos {
12914 1.1 christos printf("%" PRId64 "\n", (u_int64_t)1);
12915 1.1 christos printf("%" PRIo64 "\n", (u_int64_t)1);
12916 1.1 christos printf("%" PRIx64 "\n", (u_int64_t)1);
12917 1.1 christos printf("%" PRIu64 "\n", (u_int64_t)1);
12918 1.1 christos }
12919 1.1 christos
12920 1.1 christos
12921 1.1 christos _ACEOF
12922 1.1 christos rm -f conftest.$ac_objext
12923 1.1 christos if { (ac_try="$ac_compile"
12924 1.1 christos case "(($ac_try" in
12925 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 1.1 christos *) ac_try_echo=$ac_try;;
12927 1.1 christos esac
12928 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 1.1 christos (eval "$ac_compile") 2>conftest.er1
12930 1.1 christos ac_status=$?
12931 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
12932 1.1 christos rm -f conftest.er1
12933 1.1 christos cat conftest.err >&5
12934 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 1.1 christos (exit $ac_status); } && {
12936 1.1 christos test -z "$ac_c_werror_flag" ||
12937 1.1 christos test ! -s conftest.err
12938 1.1 christos } && test -s conftest.$ac_objext; then
12939 1.1 christos
12940 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
12941 1.1 christos echo "${ECHO_T}yes" >&6; }
12942 1.1 christos ac_lbl_inttypes_h_defines_formats=yes
12943 1.1 christos
12944 1.1 christos else
12945 1.1 christos echo "$as_me: failed program was:" >&5
12946 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
12947 1.1 christos
12948 1.1 christos
12949 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
12950 1.1 christos echo "${ECHO_T}no" >&6; }
12951 1.1 christos ac_lbl_inttypes_h_defines_formats=no
12952 1.1 christos
12953 1.1 christos fi
12954 1.1 christos
12955 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 1.1 christos
12957 1.1 christos else
12958 1.1 christos
12959 1.1 christos #
12960 1.1 christos # We don't have inttypes.h, so it obviously can't define those
12961 1.1 christos # macros.
12962 1.1 christos #
12963 1.1 christos ac_lbl_inttypes_h_defines_formats=no
12964 1.1 christos
12965 1.1 christos fi
12966 1.1 christos
12967 1.1 christos done
12968 1.1 christos
12969 1.1 christos if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12970 1.1 christos
12971 1.1 christos { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12972 1.1 christos echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12973 1.1 christos if test "$cross_compiling" = yes; then
12974 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12975 1.1 christos See \`config.log' for more details." >&5
12976 1.1 christos echo "$as_me: error: cannot run test program while cross compiling
12977 1.1 christos See \`config.log' for more details." >&2;}
12978 1.1 christos { (exit 1); exit 1; }; }
12979 1.1 christos else
12980 1.1 christos cat >conftest.$ac_ext <<_ACEOF
12981 1.1 christos
12982 1.1 christos /* confdefs.h. */
12983 1.1 christos _ACEOF
12984 1.1 christos cat confdefs.h >>conftest.$ac_ext
12985 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
12986 1.1 christos /* end confdefs.h. */
12987 1.1 christos
12988 1.1 christos # ifdef HAVE_INTTYPES_H
12989 1.1 christos #include <inttypes.h>
12990 1.1 christos # endif
12991 1.1 christos # ifdef HAVE_SYS_BITYPES_H
12992 1.1 christos #include <sys/bitypes.h>
12993 1.1 christos # endif
12994 1.1 christos #include <stdio.h>
12995 1.1 christos #include <sys/types.h>
12996 1.1 christos
12997 1.1 christos main()
12998 1.1 christos {
12999 1.1 christos u_int64_t t = 1;
13000 1.1 christos char strbuf[16+1];
13001 1.1 christos sprintf(strbuf, "%016lx", t << 32);
13002 1.1 christos if (strcmp(strbuf, "0000000100000000") == 0)
13003 1.1 christos exit(0);
13004 1.1 christos else
13005 1.1 christos exit(1);
13006 1.1 christos }
13007 1.1 christos
13008 1.1 christos
13009 1.1 christos _ACEOF
13010 1.1 christos rm -f conftest$ac_exeext
13011 1.1 christos if { (ac_try="$ac_link"
13012 1.1 christos case "(($ac_try" in
13013 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 1.1 christos *) ac_try_echo=$ac_try;;
13015 1.1 christos esac
13016 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 1.1 christos (eval "$ac_link") 2>&5
13018 1.1 christos ac_status=$?
13019 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13021 1.1 christos { (case "(($ac_try" in
13022 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 1.1 christos *) ac_try_echo=$ac_try;;
13024 1.1 christos esac
13025 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 1.1 christos (eval "$ac_try") 2>&5
13027 1.1 christos ac_status=$?
13028 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 1.1 christos (exit $ac_status); }; }; then
13030 1.1 christos
13031 1.1 christos cat >>confdefs.h <<\_ACEOF
13032 1.1 christos #define PRId64 "ld"
13033 1.1 christos _ACEOF
13034 1.1 christos
13035 1.1 christos cat >>confdefs.h <<\_ACEOF
13036 1.1 christos #define PRIo64 "lo"
13037 1.1 christos _ACEOF
13038 1.1 christos
13039 1.1 christos cat >>confdefs.h <<\_ACEOF
13040 1.1 christos #define PRIx64 "lx"
13041 1.1 christos _ACEOF
13042 1.1 christos
13043 1.1 christos cat >>confdefs.h <<\_ACEOF
13044 1.1 christos #define PRIu64 "lu"
13045 1.1 christos _ACEOF
13046 1.1 christos
13047 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13048 1.1 christos echo "${ECHO_T}yes" >&6; }
13049 1.1 christos
13050 1.1 christos else
13051 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
13052 1.1 christos echo "$as_me: failed program was:" >&5
13053 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13054 1.1 christos
13055 1.1 christos ( exit $ac_status )
13056 1.1 christos
13057 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13058 1.1 christos echo "${ECHO_T}no" >&6; }
13059 1.1 christos
13060 1.1 christos
13061 1.1 christos { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13062 1.1 christos echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13063 1.1 christos if test "$cross_compiling" = yes; then
13064 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13065 1.1 christos See \`config.log' for more details." >&5
13066 1.1 christos echo "$as_me: error: cannot run test program while cross compiling
13067 1.1 christos See \`config.log' for more details." >&2;}
13068 1.1 christos { (exit 1); exit 1; }; }
13069 1.1 christos else
13070 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13071 1.1 christos
13072 1.1 christos /* confdefs.h. */
13073 1.1 christos _ACEOF
13074 1.1 christos cat confdefs.h >>conftest.$ac_ext
13075 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13076 1.1 christos /* end confdefs.h. */
13077 1.1 christos
13078 1.1 christos # ifdef HAVE_INTTYPES_H
13079 1.1 christos #include <inttypes.h>
13080 1.1 christos # endif
13081 1.1 christos # ifdef HAVE_SYS_BITYPES_H
13082 1.1 christos #include <sys/bitypes.h>
13083 1.1 christos # endif
13084 1.1 christos #include <stdio.h>
13085 1.1 christos #include <sys/types.h>
13086 1.1 christos
13087 1.1 christos main()
13088 1.1 christos {
13089 1.1 christos u_int64_t t = 1;
13090 1.1 christos char strbuf[16+1];
13091 1.1 christos sprintf(strbuf, "%016llx", t << 32);
13092 1.1 christos if (strcmp(strbuf, "0000000100000000") == 0)
13093 1.1 christos exit(0);
13094 1.1 christos else
13095 1.1 christos exit(1);
13096 1.1 christos }
13097 1.1 christos
13098 1.1 christos
13099 1.1 christos _ACEOF
13100 1.1 christos rm -f conftest$ac_exeext
13101 1.1 christos if { (ac_try="$ac_link"
13102 1.1 christos case "(($ac_try" in
13103 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 1.1 christos *) ac_try_echo=$ac_try;;
13105 1.1 christos esac
13106 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 1.1 christos (eval "$ac_link") 2>&5
13108 1.1 christos ac_status=$?
13109 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13111 1.1 christos { (case "(($ac_try" in
13112 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 1.1 christos *) ac_try_echo=$ac_try;;
13114 1.1 christos esac
13115 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 1.1 christos (eval "$ac_try") 2>&5
13117 1.1 christos ac_status=$?
13118 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 1.1 christos (exit $ac_status); }; }; then
13120 1.1 christos
13121 1.1 christos cat >>confdefs.h <<\_ACEOF
13122 1.1 christos #define PRId64 "lld"
13123 1.1 christos _ACEOF
13124 1.1 christos
13125 1.1 christos cat >>confdefs.h <<\_ACEOF
13126 1.1 christos #define PRIo64 "llo"
13127 1.1 christos _ACEOF
13128 1.1 christos
13129 1.1 christos cat >>confdefs.h <<\_ACEOF
13130 1.1 christos #define PRIx64 "llx"
13131 1.1 christos _ACEOF
13132 1.1 christos
13133 1.1 christos cat >>confdefs.h <<\_ACEOF
13134 1.1 christos #define PRIu64 "llu"
13135 1.1 christos _ACEOF
13136 1.1 christos
13137 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13138 1.1 christos echo "${ECHO_T}yes" >&6; }
13139 1.1 christos
13140 1.1 christos else
13141 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
13142 1.1 christos echo "$as_me: failed program was:" >&5
13143 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13144 1.1 christos
13145 1.1 christos ( exit $ac_status )
13146 1.1 christos
13147 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13148 1.1 christos echo "${ECHO_T}no" >&6; }
13149 1.1 christos
13150 1.1 christos
13151 1.1 christos { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13152 1.1 christos echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13153 1.1 christos if test "$cross_compiling" = yes; then
13154 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13155 1.1 christos See \`config.log' for more details." >&5
13156 1.1 christos echo "$as_me: error: cannot run test program while cross compiling
13157 1.1 christos See \`config.log' for more details." >&2;}
13158 1.1 christos { (exit 1); exit 1; }; }
13159 1.1 christos else
13160 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13161 1.1 christos
13162 1.1 christos /* confdefs.h. */
13163 1.1 christos _ACEOF
13164 1.1 christos cat confdefs.h >>conftest.$ac_ext
13165 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13166 1.1 christos /* end confdefs.h. */
13167 1.1 christos
13168 1.1 christos # ifdef HAVE_INTTYPES_H
13169 1.1 christos #include <inttypes.h>
13170 1.1 christos # endif
13171 1.1 christos # ifdef HAVE_SYS_BITYPES_H
13172 1.1 christos #include <sys/bitypes.h>
13173 1.1 christos # endif
13174 1.1 christos #include <stdio.h>
13175 1.1 christos #include <sys/types.h>
13176 1.1 christos
13177 1.1 christos main()
13178 1.1 christos {
13179 1.1 christos u_int64_t t = 1;
13180 1.1 christos char strbuf[16+1];
13181 1.1 christos sprintf(strbuf, "%016Lx", t << 32);
13182 1.1 christos if (strcmp(strbuf, "0000000100000000") == 0)
13183 1.1 christos exit(0);
13184 1.1 christos else
13185 1.1 christos exit(1);
13186 1.1 christos }
13187 1.1 christos
13188 1.1 christos
13189 1.1 christos _ACEOF
13190 1.1 christos rm -f conftest$ac_exeext
13191 1.1 christos if { (ac_try="$ac_link"
13192 1.1 christos case "(($ac_try" in
13193 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 1.1 christos *) ac_try_echo=$ac_try;;
13195 1.1 christos esac
13196 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 1.1 christos (eval "$ac_link") 2>&5
13198 1.1 christos ac_status=$?
13199 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13201 1.1 christos { (case "(($ac_try" in
13202 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 1.1 christos *) ac_try_echo=$ac_try;;
13204 1.1 christos esac
13205 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 1.1 christos (eval "$ac_try") 2>&5
13207 1.1 christos ac_status=$?
13208 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 1.1 christos (exit $ac_status); }; }; then
13210 1.1 christos
13211 1.1 christos cat >>confdefs.h <<\_ACEOF
13212 1.1 christos #define PRId64 "Ld"
13213 1.1 christos _ACEOF
13214 1.1 christos
13215 1.1 christos cat >>confdefs.h <<\_ACEOF
13216 1.1 christos #define PRIo64 "Lo"
13217 1.1 christos _ACEOF
13218 1.1 christos
13219 1.1 christos cat >>confdefs.h <<\_ACEOF
13220 1.1 christos #define PRIx64 "Lx"
13221 1.1 christos _ACEOF
13222 1.1 christos
13223 1.1 christos cat >>confdefs.h <<\_ACEOF
13224 1.1 christos #define PRIu64 "Lu"
13225 1.1 christos _ACEOF
13226 1.1 christos
13227 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13228 1.1 christos echo "${ECHO_T}yes" >&6; }
13229 1.1 christos
13230 1.1 christos else
13231 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
13232 1.1 christos echo "$as_me: failed program was:" >&5
13233 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13234 1.1 christos
13235 1.1 christos ( exit $ac_status )
13236 1.1 christos
13237 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13238 1.1 christos echo "${ECHO_T}no" >&6; }
13239 1.1 christos
13240 1.1 christos
13241 1.1 christos { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13242 1.1 christos echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13243 1.1 christos if test "$cross_compiling" = yes; then
13244 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13245 1.1 christos See \`config.log' for more details." >&5
13246 1.1 christos echo "$as_me: error: cannot run test program while cross compiling
13247 1.1 christos See \`config.log' for more details." >&2;}
13248 1.1 christos { (exit 1); exit 1; }; }
13249 1.1 christos else
13250 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13251 1.1 christos
13252 1.1 christos /* confdefs.h. */
13253 1.1 christos _ACEOF
13254 1.1 christos cat confdefs.h >>conftest.$ac_ext
13255 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13256 1.1 christos /* end confdefs.h. */
13257 1.1 christos
13258 1.1 christos # ifdef HAVE_INTTYPES_H
13259 1.1 christos #include <inttypes.h>
13260 1.1 christos # endif
13261 1.1 christos # ifdef HAVE_SYS_BITYPES_H
13262 1.1 christos #include <sys/bitypes.h>
13263 1.1 christos # endif
13264 1.1 christos #include <stdio.h>
13265 1.1 christos #include <sys/types.h>
13266 1.1 christos
13267 1.1 christos main()
13268 1.1 christos {
13269 1.1 christos u_int64_t t = 1;
13270 1.1 christos char strbuf[16+1];
13271 1.1 christos sprintf(strbuf, "%016qx", t << 32);
13272 1.1 christos if (strcmp(strbuf, "0000000100000000") == 0)
13273 1.1 christos exit(0);
13274 1.1 christos else
13275 1.1 christos exit(1);
13276 1.1 christos }
13277 1.1 christos
13278 1.1 christos
13279 1.1 christos _ACEOF
13280 1.1 christos rm -f conftest$ac_exeext
13281 1.1 christos if { (ac_try="$ac_link"
13282 1.1 christos case "(($ac_try" in
13283 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 1.1 christos *) ac_try_echo=$ac_try;;
13285 1.1 christos esac
13286 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 1.1 christos (eval "$ac_link") 2>&5
13288 1.1 christos ac_status=$?
13289 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13291 1.1 christos { (case "(($ac_try" in
13292 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 1.1 christos *) ac_try_echo=$ac_try;;
13294 1.1 christos esac
13295 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 1.1 christos (eval "$ac_try") 2>&5
13297 1.1 christos ac_status=$?
13298 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 1.1 christos (exit $ac_status); }; }; then
13300 1.1 christos
13301 1.1 christos cat >>confdefs.h <<\_ACEOF
13302 1.1 christos #define PRId64 "qd"
13303 1.1 christos _ACEOF
13304 1.1 christos
13305 1.1 christos cat >>confdefs.h <<\_ACEOF
13306 1.1 christos #define PRIo64 "qo"
13307 1.1 christos _ACEOF
13308 1.1 christos
13309 1.1 christos cat >>confdefs.h <<\_ACEOF
13310 1.1 christos #define PRIx64 "qx"
13311 1.1 christos _ACEOF
13312 1.1 christos
13313 1.1 christos cat >>confdefs.h <<\_ACEOF
13314 1.1 christos #define PRIu64 "qu"
13315 1.1 christos _ACEOF
13316 1.1 christos
13317 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13318 1.1 christos echo "${ECHO_T}yes" >&6; }
13319 1.1 christos
13320 1.1 christos else
13321 1.1 christos echo "$as_me: program exited with status $ac_status" >&5
13322 1.1 christos echo "$as_me: failed program was:" >&5
13323 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13324 1.1 christos
13325 1.1 christos ( exit $ac_status )
13326 1.1 christos
13327 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13328 1.1 christos echo "${ECHO_T}no" >&6; }
13329 1.1 christos
13330 1.1 christos { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13331 1.1 christos echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13332 1.1 christos { (exit 1); exit 1; }; }
13333 1.1 christos
13334 1.1 christos
13335 1.1 christos fi
13336 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337 1.1 christos fi
13338 1.1 christos
13339 1.1 christos
13340 1.1 christos
13341 1.1 christos
13342 1.1 christos
13343 1.1 christos fi
13344 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13345 1.1 christos fi
13346 1.1 christos
13347 1.1 christos
13348 1.1 christos
13349 1.1 christos
13350 1.1 christos
13351 1.1 christos fi
13352 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353 1.1 christos fi
13354 1.1 christos
13355 1.1 christos
13356 1.1 christos
13357 1.1 christos
13358 1.1 christos
13359 1.1 christos fi
13360 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13361 1.1 christos fi
13362 1.1 christos
13363 1.1 christos
13364 1.1 christos
13365 1.1 christos fi
13366 1.1 christos
13367 1.1 christos if test -n "$ac_tool_prefix"; then
13368 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13369 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13370 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
13371 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13372 1.1 christos if test "${ac_cv_prog_RANLIB+set}" = set; then
13373 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13374 1.1 christos else
13375 1.1 christos if test -n "$RANLIB"; then
13376 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13377 1.1 christos else
13378 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 1.1 christos for as_dir in $PATH
13380 1.1 christos do
13381 1.1 christos IFS=$as_save_IFS
13382 1.1 christos test -z "$as_dir" && as_dir=.
13383 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
13384 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13386 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 1.1 christos break 2
13388 1.1 christos fi
13389 1.1 christos done
13390 1.1 christos done
13391 1.1 christos IFS=$as_save_IFS
13392 1.1 christos
13393 1.1 christos fi
13394 1.1 christos fi
13395 1.1 christos RANLIB=$ac_cv_prog_RANLIB
13396 1.1 christos if test -n "$RANLIB"; then
13397 1.1 christos { echo "$as_me:$LINENO: result: $RANLIB" >&5
13398 1.1 christos echo "${ECHO_T}$RANLIB" >&6; }
13399 1.1 christos else
13400 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13401 1.1 christos echo "${ECHO_T}no" >&6; }
13402 1.1 christos fi
13403 1.1 christos
13404 1.1 christos
13405 1.1 christos fi
13406 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then
13407 1.1 christos ac_ct_RANLIB=$RANLIB
13408 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args.
13409 1.1 christos set dummy ranlib; ac_word=$2
13410 1.1 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
13411 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13412 1.1 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13413 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13414 1.1 christos else
13415 1.1 christos if test -n "$ac_ct_RANLIB"; then
13416 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13417 1.1 christos else
13418 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 1.1 christos for as_dir in $PATH
13420 1.1 christos do
13421 1.1 christos IFS=$as_save_IFS
13422 1.1 christos test -z "$as_dir" && as_dir=.
13423 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
13424 1.1 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib"
13426 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 1.1 christos break 2
13428 1.1 christos fi
13429 1.1 christos done
13430 1.1 christos done
13431 1.1 christos IFS=$as_save_IFS
13432 1.1 christos
13433 1.1 christos fi
13434 1.1 christos fi
13435 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13436 1.1 christos if test -n "$ac_ct_RANLIB"; then
13437 1.1 christos { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13438 1.1 christos echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13439 1.1 christos else
13440 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13441 1.1 christos echo "${ECHO_T}no" >&6; }
13442 1.1 christos fi
13443 1.1 christos
13444 1.1 christos if test "x$ac_ct_RANLIB" = x; then
13445 1.1 christos RANLIB=":"
13446 1.1 christos else
13447 1.1 christos case $cross_compiling:$ac_tool_warned in
13448 1.1 christos yes:)
13449 1.1 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13450 1.1 christos whose name does not start with the host triplet. If you think this
13451 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&5
13452 1.1 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13453 1.1 christos whose name does not start with the host triplet. If you think this
13454 1.1 christos configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
13455 1.1 christos ac_tool_warned=yes ;;
13456 1.1 christos esac
13457 1.1 christos RANLIB=$ac_ct_RANLIB
13458 1.1 christos fi
13459 1.1 christos else
13460 1.1 christos RANLIB="$ac_cv_prog_RANLIB"
13461 1.1 christos fi
13462 1.1 christos
13463 1.1 christos
13464 1.1 christos rm -f os-proto.h
13465 1.1 christos if test "${LBL_CFLAGS+set}" = set; then
13466 1.1 christos V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13467 1.1 christos fi
13468 1.1 christos if test -f .devel ; then
13469 1.1 christos if test "$GCC" = yes ; then
13470 1.1 christos if test "${LBL_CFLAGS+set}" != set; then
13471 1.1 christos if test "$ac_cv_prog_cc_g" = yes ; then
13472 1.1 christos V_CCOPT="-g $V_CCOPT"
13473 1.1 christos fi
13474 1.1 christos V_CCOPT="$V_CCOPT -Wall"
13475 1.1 christos if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13476 1.1 christos V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13477 1.1 christos fi
13478 1.1 christos fi
13479 1.1 christos else
13480 1.1 christos case "$host_os" in
13481 1.1 christos
13482 1.1 christos irix6*)
13483 1.1 christos V_CCOPT="$V_CCOPT -n32"
13484 1.1 christos ;;
13485 1.1 christos
13486 1.1 christos *)
13487 1.1 christos ;;
13488 1.1 christos esac
13489 1.1 christos fi
13490 1.1 christos os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13491 1.1 christos name="lbl/os-$os.h"
13492 1.1 christos if test -f $name ; then
13493 1.1 christos ln -s $name os-proto.h
13494 1.1 christos
13495 1.1 christos cat >>confdefs.h <<\_ACEOF
13496 1.1 christos #define HAVE_OS_PROTO_H 1
13497 1.1 christos _ACEOF
13498 1.1 christos
13499 1.1 christos else
13500 1.1 christos { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13501 1.1 christos echo "$as_me: WARNING: can't find $name" >&2;}
13502 1.1 christos fi
13503 1.1 christos fi
13504 1.1 christos
13505 1.1 christos { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13506 1.1 christos echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13507 1.1 christos if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13508 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13509 1.1 christos else
13510 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13511 1.1 christos /* confdefs.h. */
13512 1.1 christos _ACEOF
13513 1.1 christos cat confdefs.h >>conftest.$ac_ext
13514 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13515 1.1 christos /* end confdefs.h. */
13516 1.1 christos
13517 1.1 christos # include <sys/types.h>
13518 1.1 christos # include <sys/socket.h>
13519 1.1 christos int
13520 1.1 christos main ()
13521 1.1 christos {
13522 1.1 christos u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13523 1.1 christos ;
13524 1.1 christos return 0;
13525 1.1 christos }
13526 1.1 christos _ACEOF
13527 1.1 christos rm -f conftest.$ac_objext
13528 1.1 christos if { (ac_try="$ac_compile"
13529 1.1 christos case "(($ac_try" in
13530 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 1.1 christos *) ac_try_echo=$ac_try;;
13532 1.1 christos esac
13533 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 1.1 christos (eval "$ac_compile") 2>conftest.er1
13535 1.1 christos ac_status=$?
13536 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
13537 1.1 christos rm -f conftest.er1
13538 1.1 christos cat conftest.err >&5
13539 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 1.1 christos (exit $ac_status); } && {
13541 1.1 christos test -z "$ac_c_werror_flag" ||
13542 1.1 christos test ! -s conftest.err
13543 1.1 christos } && test -s conftest.$ac_objext; then
13544 1.1 christos ac_cv_lbl_sockaddr_has_sa_len=yes
13545 1.1 christos else
13546 1.1 christos echo "$as_me: failed program was:" >&5
13547 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13548 1.1 christos
13549 1.1 christos ac_cv_lbl_sockaddr_has_sa_len=no
13550 1.1 christos fi
13551 1.1 christos
13552 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 1.1 christos fi
13554 1.1 christos
13555 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13556 1.1 christos echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13557 1.1 christos if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13558 1.1 christos
13559 1.1 christos cat >>confdefs.h <<\_ACEOF
13560 1.1 christos #define HAVE_SOCKADDR_SA_LEN 1
13561 1.1 christos _ACEOF
13562 1.1 christos
13563 1.1 christos fi
13564 1.1 christos
13565 1.1 christos { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13566 1.1 christos echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13567 1.1 christos if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13568 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13569 1.1 christos else
13570 1.1 christos case "$host_cpu" in
13571 1.1 christos
13572 1.1 christos #
13573 1.1 christos # These are CPU types where:
13574 1.1 christos #
13575 1.1 christos # the CPU faults on an unaligned access, but at least some
13576 1.1 christos # OSes that support that CPU catch the fault and simulate
13577 1.1 christos # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13578 1.1 christos # the simulation is slow, so we don't want to use it;
13579 1.1 christos #
13580 1.1 christos # the CPU, I infer (from the old
13581 1.1 christos #
13582 1.1 christos # XXX: should also check that they don't do weird things (like on arm)
13583 1.1 christos #
13584 1.1 christos # comment) doesn't fault on unaligned accesses, but doesn't
13585 1.1 christos # do a normal unaligned fetch, either (e.g., presumably, ARM);
13586 1.1 christos #
13587 1.1 christos # for whatever reason, the test program doesn't work
13588 1.1 christos # (this has been claimed to be the case for several of those
13589 1.1 christos # CPUs - I don't know what the problem is; the problem
13590 1.1 christos # was reported as "the test program dumps core" for SuperH,
13591 1.1 christos # but that's what the test program is *supposed* to do -
13592 1.1 christos # it dumps core before it writes anything, so the test
13593 1.1 christos # for an empty output file should find an empty output
13594 1.1 christos # file and conclude that unaligned accesses don't work).
13595 1.1 christos #
13596 1.1 christos # This run-time test won't work if you're cross-compiling, so
13597 1.1 christos # in order to support cross-compiling for a particular CPU,
13598 1.1 christos # we have to wire in the list of CPU types anyway, as far as
13599 1.1 christos # I know, so perhaps we should just have a set of CPUs on
13600 1.1 christos # which we know it doesn't work, a set of CPUs on which we
13601 1.1 christos # know it does work, and have the script just fail on other
13602 1.1 christos # cpu types and update it when such a failure occurs.
13603 1.1 christos #
13604 1.1 christos alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13605 1.1 christos ac_cv_lbl_unaligned_fail=yes
13606 1.1 christos ;;
13607 1.1 christos
13608 1.1 christos *)
13609 1.1 christos cat >conftest.c <<EOF
13610 1.1 christos # include <sys/types.h>
13611 1.1 christos # include <sys/wait.h>
13612 1.1 christos # include <stdio.h>
13613 1.1 christos unsigned char a[5] = { 1, 2, 3, 4, 5 };
13614 1.1 christos main() {
13615 1.1 christos unsigned int i;
13616 1.1 christos pid_t pid;
13617 1.1 christos int status;
13618 1.1 christos /* avoid "core dumped" message */
13619 1.1 christos pid = fork();
13620 1.1 christos if (pid < 0)
13621 1.1 christos exit(2);
13622 1.1 christos if (pid > 0) {
13623 1.1 christos /* parent */
13624 1.1 christos pid = waitpid(pid, &status, 0);
13625 1.1 christos if (pid < 0)
13626 1.1 christos exit(3);
13627 1.1 christos exit(!WIFEXITED(status));
13628 1.1 christos }
13629 1.1 christos /* child */
13630 1.1 christos i = *(unsigned int *)&a[1];
13631 1.1 christos printf("%d\n", i);
13632 1.1 christos exit(0);
13633 1.1 christos }
13634 1.1 christos EOF
13635 1.1 christos ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13636 1.1 christos conftest.c $LIBS >/dev/null 2>&1
13637 1.1 christos if test ! -x conftest ; then
13638 1.1 christos ac_cv_lbl_unaligned_fail=yes
13639 1.1 christos else
13640 1.1 christos ./conftest >conftest.out
13641 1.1 christos if test ! -s conftest.out ; then
13642 1.1 christos ac_cv_lbl_unaligned_fail=yes
13643 1.1 christos else
13644 1.1 christos ac_cv_lbl_unaligned_fail=no
13645 1.1 christos fi
13646 1.1 christos fi
13647 1.1 christos rm -f -r conftest* core core.conftest
13648 1.1 christos ;;
13649 1.1 christos esac
13650 1.1 christos fi
13651 1.1 christos
13652 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13653 1.1 christos echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13654 1.1 christos if test $ac_cv_lbl_unaligned_fail = yes ; then
13655 1.1 christos
13656 1.1 christos cat >>confdefs.h <<\_ACEOF
13657 1.1 christos #define LBL_ALIGN 1
13658 1.1 christos _ACEOF
13659 1.1 christos
13660 1.1 christos fi
13661 1.1 christos
13662 1.1 christos
13663 1.1 christos { echo "$as_me:$LINENO: checking for h_errno" >&5
13664 1.1 christos echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13665 1.1 christos if test "${ac_cv_var_h_errno+set}" = set; then
13666 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13667 1.1 christos else
13668 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13669 1.1 christos /* confdefs.h. */
13670 1.1 christos _ACEOF
13671 1.1 christos cat confdefs.h >>conftest.$ac_ext
13672 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13673 1.1 christos /* end confdefs.h. */
13674 1.1 christos
13675 1.1 christos # include <sys/types.h>
13676 1.1 christos # include <netdb.h>
13677 1.1 christos int
13678 1.1 christos main ()
13679 1.1 christos {
13680 1.1 christos int foo = h_errno;
13681 1.1 christos ;
13682 1.1 christos return 0;
13683 1.1 christos }
13684 1.1 christos _ACEOF
13685 1.1 christos rm -f conftest.$ac_objext
13686 1.1 christos if { (ac_try="$ac_compile"
13687 1.1 christos case "(($ac_try" in
13688 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 1.1 christos *) ac_try_echo=$ac_try;;
13690 1.1 christos esac
13691 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 1.1 christos (eval "$ac_compile") 2>conftest.er1
13693 1.1 christos ac_status=$?
13694 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
13695 1.1 christos rm -f conftest.er1
13696 1.1 christos cat conftest.err >&5
13697 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 1.1 christos (exit $ac_status); } && {
13699 1.1 christos test -z "$ac_c_werror_flag" ||
13700 1.1 christos test ! -s conftest.err
13701 1.1 christos } && test -s conftest.$ac_objext; then
13702 1.1 christos ac_cv_var_h_errno=yes
13703 1.1 christos else
13704 1.1 christos echo "$as_me: failed program was:" >&5
13705 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13706 1.1 christos
13707 1.1 christos ac_cv_var_h_errno=no
13708 1.1 christos fi
13709 1.1 christos
13710 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711 1.1 christos fi
13712 1.1 christos
13713 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13714 1.1 christos echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13715 1.1 christos if test "$ac_cv_var_h_errno" = "yes"; then
13716 1.1 christos cat >>confdefs.h <<\_ACEOF
13717 1.1 christos #define HAVE_H_ERRNO 1
13718 1.1 christos _ACEOF
13719 1.1 christos
13720 1.1 christos fi
13721 1.1 christos
13722 1.1 christos
13723 1.1 christos # Check for SSLeay
13724 1.1 christos { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13725 1.1 christos echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13726 1.1 christos # Specify location for both includes and libraries.
13727 1.1 christos want_libcrypto=youmama
13728 1.1 christos
13729 1.1 christos # Check whether --with-crypto was given.
13730 1.1 christos if test "${with_crypto+set}" = set; then
13731 1.1 christos withval=$with_crypto;
13732 1.1 christos if test $withval = no
13733 1.1 christos then
13734 1.1 christos want_libcrypto=no
13735 1.1 christos { echo "$as_me:$LINENO: result: no" >&5
13736 1.1 christos echo "${ECHO_T}no" >&6; }
13737 1.1 christos elif test $withval = yes
13738 1.1 christos then
13739 1.1 christos want_libcrypto=yes
13740 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13741 1.1 christos echo "${ECHO_T}yes" >&6; }
13742 1.1 christos else
13743 1.1 christos want_libcrypto=yes
13744 1.1 christos { echo "$as_me:$LINENO: result: yes" >&5
13745 1.1 christos echo "${ECHO_T}yes" >&6; }
13746 1.1 christos crypto_dir=$withval
13747 1.1 christos fi
13748 1.1 christos
13749 1.1 christos else
13750 1.1 christos
13751 1.1 christos #
13752 1.1 christos # Use libcrypto if it's present, otherwise don't.
13753 1.1 christos #
13754 1.1 christos want_libcrypto=ifavailable
13755 1.1 christos { echo "$as_me:$LINENO: result: yes, if available" >&5
13756 1.1 christos echo "${ECHO_T}yes, if available" >&6; }
13757 1.1 christos
13758 1.1 christos fi
13759 1.1 christos
13760 1.1 christos if test "$want_libcrypto" != "no"; then
13761 1.1 christos ac_cv_ssleay_path=no
13762 1.1 christos incdir=no
13763 1.1 christos if test "x$crypto_dir" = x; then
13764 1.1 christos #
13765 1.1 christos # Location not specified; check the default locations.
13766 1.1 christos #
13767 1.1 christos { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13768 1.1 christos echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13769 1.1 christos dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13770 1.1 christos if test "x${host_alias}" != x; then
13771 1.1 christos dirs="/usr/${host_alias} $dirs"
13772 1.1 christos fi
13773 1.1 christos for dir in $dirs; do
13774 1.1 christos
13775 1.1 christos #
13776 1.1 christos # Find the last component of $libdir; it's not necessarily
13777 1.1 christos # "lib" - it might be "lib64" on, for example, x86-64
13778 1.1 christos # Linux systems.
13779 1.1 christos #
13780 1.1 christos # We assume the directory in which we're looking for
13781 1.1 christos # libcrypto has a subdirectory with that as its name.
13782 1.1 christos #
13783 1.1 christos tmplib=`echo "$libdir" | sed 's,.*/,,'`
13784 1.1 christos
13785 1.1 christos #
13786 1.1 christos # XXX - is there a better way to check if a given library is
13787 1.1 christos # in a given directory than checking each of the possible
13788 1.1 christos # shared library suffixes?
13789 1.1 christos #
13790 1.1 christos # Are there any other suffixes we need to look for? Do we
13791 1.1 christos # have to worry about ".so.{version}"?
13792 1.1 christos #
13793 1.1 christos # Or should we just look for "libcrypto.*"?
13794 1.1 christos #
13795 1.1 christos if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
13796 1.1 christos -f "$dir/$tmplib/libcrypto.so" -o \
13797 1.1 christos -f "$dir/$tmplib/libcrypto.sl" -o \
13798 1.1 christos -f "$dir/$tmplib/libcrypto.dylib" \); then
13799 1.1 christos ac_cv_ssleay_path="$dir"
13800 1.1 christos fi
13801 1.1 christos
13802 1.1 christos #
13803 1.1 christos # Make sure we have the headers as well.
13804 1.1 christos #
13805 1.1 christos if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13806 1.1 christos incdir="-I$dir/include"
13807 1.1 christos fi
13808 1.1 christos
13809 1.1 christos
13810 1.1 christos if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13811 1.1 christos break;
13812 1.1 christos else
13813 1.1 christos ac_cv_ssleay_path=no
13814 1.1 christos incdir=no
13815 1.1 christos fi
13816 1.1 christos done
13817 1.1 christos if test "$ac_cv_ssleay_path" != no; then
13818 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13819 1.1 christos echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13820 1.1 christos fi
13821 1.1 christos else
13822 1.1 christos { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13823 1.1 christos echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13824 1.1 christos
13825 1.1 christos #
13826 1.1 christos # Find the last component of $libdir; it's not necessarily
13827 1.1 christos # "lib" - it might be "lib64" on, for example, x86-64
13828 1.1 christos # Linux systems.
13829 1.1 christos #
13830 1.1 christos # We assume the directory in which we're looking for
13831 1.1 christos # libcrypto has a subdirectory with that as its name.
13832 1.1 christos #
13833 1.1 christos tmplib=`echo "$libdir" | sed 's,.*/,,'`
13834 1.1 christos
13835 1.1 christos #
13836 1.1 christos # XXX - is there a better way to check if a given library is
13837 1.1 christos # in a given directory than checking each of the possible
13838 1.1 christos # shared library suffixes?
13839 1.1 christos #
13840 1.1 christos # Are there any other suffixes we need to look for? Do we
13841 1.1 christos # have to worry about ".so.{version}"?
13842 1.1 christos #
13843 1.1 christos # Or should we just look for "libcrypto.*"?
13844 1.1 christos #
13845 1.1 christos if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13846 1.1 christos -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13847 1.1 christos -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13848 1.1 christos -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
13849 1.1 christos ac_cv_ssleay_path="$crypto_dir"
13850 1.1 christos fi
13851 1.1 christos
13852 1.1 christos #
13853 1.1 christos # Make sure we have the headers as well.
13854 1.1 christos #
13855 1.1 christos if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13856 1.1 christos incdir="-I$crypto_dir/include"
13857 1.1 christos fi
13858 1.1 christos
13859 1.1 christos if test "$ac_cv_ssleay_path" != no; then
13860 1.1 christos { echo "$as_me:$LINENO: result: found" >&5
13861 1.1 christos echo "${ECHO_T}found" >&6; }
13862 1.1 christos fi
13863 1.1 christos fi
13864 1.1 christos if test "$ac_cv_ssleay_path" != no; then
13865 1.1 christos V_INCLS="$V_INCLS $incdir"
13866 1.1 christos if test "$dir" != "/usr"; then
13867 1.1 christos LDFLAGS="-L$dir/lib $LDFLAGS"
13868 1.1 christos fi
13869 1.1 christos if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13870 1.1 christos LIBS="$LIBS -lRSAglue"
13871 1.1 christos fi
13872 1.1 christos if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13873 1.1 christos LIBS="$LIBS -lrsaref"
13874 1.1 christos fi
13875 1.1 christos
13876 1.1 christos { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13877 1.1 christos echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13878 1.1 christos if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13879 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13880 1.1 christos else
13881 1.1 christos ac_check_lib_save_LIBS=$LIBS
13882 1.1 christos LIBS="-lcrypto $LIBS"
13883 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13884 1.1 christos /* confdefs.h. */
13885 1.1 christos _ACEOF
13886 1.1 christos cat confdefs.h >>conftest.$ac_ext
13887 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13888 1.1 christos /* end confdefs.h. */
13889 1.1 christos
13890 1.1 christos /* Override any GCC internal prototype to avoid an error.
13891 1.1 christos Use char because int might match the return type of a GCC
13892 1.1 christos builtin and then its argument prototype would still apply. */
13893 1.1 christos #ifdef __cplusplus
13894 1.1 christos extern "C"
13895 1.1 christos #endif
13896 1.1 christos char DES_cbc_encrypt ();
13897 1.1 christos int
13898 1.1 christos main ()
13899 1.1 christos {
13900 1.1 christos return DES_cbc_encrypt ();
13901 1.1 christos ;
13902 1.1 christos return 0;
13903 1.1 christos }
13904 1.1 christos _ACEOF
13905 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
13906 1.1 christos if { (ac_try="$ac_link"
13907 1.1 christos case "(($ac_try" in
13908 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 1.1 christos *) ac_try_echo=$ac_try;;
13910 1.1 christos esac
13911 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 1.1 christos (eval "$ac_link") 2>conftest.er1
13913 1.1 christos ac_status=$?
13914 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
13915 1.1 christos rm -f conftest.er1
13916 1.1 christos cat conftest.err >&5
13917 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 1.1 christos (exit $ac_status); } && {
13919 1.1 christos test -z "$ac_c_werror_flag" ||
13920 1.1 christos test ! -s conftest.err
13921 1.1 christos } && test -s conftest$ac_exeext &&
13922 1.1 christos $as_test_x conftest$ac_exeext; then
13923 1.1 christos ac_cv_lib_crypto_DES_cbc_encrypt=yes
13924 1.1 christos else
13925 1.1 christos echo "$as_me: failed program was:" >&5
13926 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13927 1.1 christos
13928 1.1 christos ac_cv_lib_crypto_DES_cbc_encrypt=no
13929 1.1 christos fi
13930 1.1 christos
13931 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932 1.1 christos conftest$ac_exeext conftest.$ac_ext
13933 1.1 christos LIBS=$ac_check_lib_save_LIBS
13934 1.1 christos fi
13935 1.1 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13936 1.1 christos echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13937 1.1 christos if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13938 1.1 christos cat >>confdefs.h <<_ACEOF
13939 1.1 christos #define HAVE_LIBCRYPTO 1
13940 1.1 christos _ACEOF
13941 1.1 christos
13942 1.1 christos LIBS="-lcrypto $LIBS"
13943 1.1 christos
13944 1.1 christos fi
13945 1.1 christos
13946 1.1 christos
13947 1.1 christos CPPFLAGS="$CPPFLAGS $V_INCLS"
13948 1.1 christos
13949 1.1 christos for ac_header in openssl/evp.h
13950 1.1 christos do
13951 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13952 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13953 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
13954 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13955 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13956 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
13957 1.1 christos fi
13958 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
13959 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
13960 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
13961 1.1 christos else
13962 1.1 christos # Is the header compilable?
13963 1.1 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13964 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13965 1.1 christos cat >conftest.$ac_ext <<_ACEOF
13966 1.1 christos /* confdefs.h. */
13967 1.1 christos _ACEOF
13968 1.1 christos cat confdefs.h >>conftest.$ac_ext
13969 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
13970 1.1 christos /* end confdefs.h. */
13971 1.1 christos $ac_includes_default
13972 1.1 christos #include <$ac_header>
13973 1.1 christos _ACEOF
13974 1.1 christos rm -f conftest.$ac_objext
13975 1.1 christos if { (ac_try="$ac_compile"
13976 1.1 christos case "(($ac_try" in
13977 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 1.1 christos *) ac_try_echo=$ac_try;;
13979 1.1 christos esac
13980 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 1.1 christos (eval "$ac_compile") 2>conftest.er1
13982 1.1 christos ac_status=$?
13983 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
13984 1.1 christos rm -f conftest.er1
13985 1.1 christos cat conftest.err >&5
13986 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 1.1 christos (exit $ac_status); } && {
13988 1.1 christos test -z "$ac_c_werror_flag" ||
13989 1.1 christos test ! -s conftest.err
13990 1.1 christos } && test -s conftest.$ac_objext; then
13991 1.1 christos ac_header_compiler=yes
13992 1.1 christos else
13993 1.1 christos echo "$as_me: failed program was:" >&5
13994 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
13995 1.1 christos
13996 1.1 christos ac_header_compiler=no
13997 1.1 christos fi
13998 1.1 christos
13999 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14001 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
14002 1.1 christos
14003 1.1 christos # Is the header present?
14004 1.1 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14005 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14006 1.1 christos cat >conftest.$ac_ext <<_ACEOF
14007 1.1 christos /* confdefs.h. */
14008 1.1 christos _ACEOF
14009 1.1 christos cat confdefs.h >>conftest.$ac_ext
14010 1.1 christos cat >>conftest.$ac_ext <<_ACEOF
14011 1.1 christos /* end confdefs.h. */
14012 1.1 christos #include <$ac_header>
14013 1.1 christos _ACEOF
14014 1.1 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
14015 1.1 christos case "(($ac_try" in
14016 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 1.1 christos *) ac_try_echo=$ac_try;;
14018 1.1 christos esac
14019 1.1 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14021 1.1 christos ac_status=$?
14022 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err
14023 1.1 christos rm -f conftest.er1
14024 1.1 christos cat conftest.err >&5
14025 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 1.1 christos (exit $ac_status); } >/dev/null && {
14027 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14028 1.1 christos test ! -s conftest.err
14029 1.1 christos }; then
14030 1.1 christos ac_header_preproc=yes
14031 1.1 christos else
14032 1.1 christos echo "$as_me: failed program was:" >&5
14033 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
14034 1.1 christos
14035 1.1 christos ac_header_preproc=no
14036 1.1 christos fi
14037 1.1 christos
14038 1.1 christos rm -f conftest.err conftest.$ac_ext
14039 1.1 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14040 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
14041 1.1 christos
14042 1.1 christos # So? What about this header?
14043 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14044 1.1 christos yes:no: )
14045 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14046 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14047 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14048 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14049 1.1 christos ac_header_preproc=yes
14050 1.1 christos ;;
14051 1.1 christos no:yes:* )
14052 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14053 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14054 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14055 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14056 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14057 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14058 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14059 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14060 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14061 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14062 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14063 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14064 1.1 christos
14065 1.1 christos ;;
14066 1.1 christos esac
14067 1.1 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14069 1.1 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14070 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
14071 1.1 christos else
14072 1.1 christos eval "$as_ac_Header=\$ac_header_preproc"
14073 1.1 christos fi
14074 1.1 christos ac_res=`eval echo '${'$as_ac_Header'}'`
14075 1.1 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
14076 1.1 christos echo "${ECHO_T}$ac_res" >&6; }
14077 1.1 christos
14078 1.1 christos fi
14079 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
14080 1.1 christos cat >>confdefs.h <<_ACEOF
14081 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14082 1.1 christos _ACEOF
14083 1.1 christos
14084 1.1 christos fi
14085 1.1 christos
14086 1.1 christos done
14087 1.1 christos
14088 1.1 christos else
14089 1.1 christos #
14090 1.1 christos # Not found. Did the user explicitly ask for it?
14091 1.1 christos #
14092 1.1 christos { echo "$as_me:$LINENO: result: not found" >&5
14093 1.1 christos echo "${ECHO_T}not found" >&6; }
14094 1.1 christos if test "$want_libcrypto" = yes; then
14095 1.1 christos { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14096 1.1 christos echo "$as_me: error: SSLeay not found" >&2;}
14097 1.1 christos { (exit 1); exit 1; }; }
14098 1.1 christos fi
14099 1.1 christos fi
14100 1.1 christos fi
14101 1.1 christos
14102 1.1 christos if test "$missing_includes" = "yes"; then
14103 1.1 christos CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14104 1.1 christos V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14105 1.1 christos fi
14106 1.1 christos
14107 1.1 christos
14108 1.1 christos
14109 1.1 christos
14110 1.1 christos
14111 1.1 christos
14112 1.1 christos
14113 1.1 christos
14114 1.1 christos
14115 1.1 christos
14116 1.1 christos # Find a good install program. We prefer a C program (faster),
14117 1.1 christos # so one script is as good as another. But avoid the broken or
14118 1.1 christos # incompatible versions:
14119 1.1 christos # SysV /etc/install, /usr/sbin/install
14120 1.1 christos # SunOS /usr/etc/install
14121 1.1 christos # IRIX /sbin/install
14122 1.1 christos # AIX /bin/install
14123 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
14124 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14125 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14126 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14127 1.1 christos # OS/2's system install, which has a completely different semantic
14128 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
14129 1.1 christos { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14130 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14131 1.1 christos if test -z "$INSTALL"; then
14132 1.1 christos if test "${ac_cv_path_install+set}" = set; then
14133 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
14134 1.1 christos else
14135 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 1.1 christos for as_dir in $PATH
14137 1.1 christos do
14138 1.1 christos IFS=$as_save_IFS
14139 1.1 christos test -z "$as_dir" && as_dir=.
14140 1.1 christos # Account for people who put trailing slashes in PATH elements.
14141 1.1 christos case $as_dir/ in
14142 1.1 christos ./ | .// | /cC/* | \
14143 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14144 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14145 1.1 christos /usr/ucb/* ) ;;
14146 1.1 christos *)
14147 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
14148 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
14149 1.1 christos # by default.
14150 1.1 christos for ac_prog in ginstall scoinst install; do
14151 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
14152 1.1 christos if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14153 1.1 christos if test $ac_prog = install &&
14154 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14155 1.1 christos # AIX install. It has an incompatible calling convention.
14156 1.1 christos :
14157 1.1 christos elif test $ac_prog = install &&
14158 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14159 1.1 christos # program-specific install script used by HP pwplus--don't use.
14160 1.1 christos :
14161 1.1 christos else
14162 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14163 1.1 christos break 3
14164 1.1 christos fi
14165 1.1 christos fi
14166 1.1 christos done
14167 1.1 christos done
14168 1.1 christos ;;
14169 1.1 christos esac
14170 1.1 christos done
14171 1.1 christos IFS=$as_save_IFS
14172 1.1 christos
14173 1.1 christos
14174 1.1 christos fi
14175 1.1 christos if test "${ac_cv_path_install+set}" = set; then
14176 1.1 christos INSTALL=$ac_cv_path_install
14177 1.1 christos else
14178 1.1 christos # As a last resort, use the slow shell script. Don't cache a
14179 1.1 christos # value for INSTALL within a source directory, because that will
14180 1.1 christos # break other packages using the cache if that directory is
14181 1.1 christos # removed, or if the value is a relative name.
14182 1.1 christos INSTALL=$ac_install_sh
14183 1.1 christos fi
14184 1.1 christos fi
14185 1.1 christos { echo "$as_me:$LINENO: result: $INSTALL" >&5
14186 1.1 christos echo "${ECHO_T}$INSTALL" >&6; }
14187 1.1 christos
14188 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14189 1.1 christos # It thinks the first close brace ends the variable substitution.
14190 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14191 1.1 christos
14192 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14193 1.1 christos
14194 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14195 1.1 christos
14196 1.1 christos
14197 1.1 christos ac_config_headers="$ac_config_headers config.h"
14198 1.1 christos
14199 1.1 christos
14200 1.1 christos ac_config_commands="$ac_config_commands default-1"
14201 1.1 christos
14202 1.1 christos ac_config_files="$ac_config_files Makefile tcpdump.1"
14203 1.1 christos
14204 1.1 christos cat >confcache <<\_ACEOF
14205 1.1 christos # This file is a shell script that caches the results of configure
14206 1.1 christos # tests run on this system so they can be shared between configure
14207 1.1 christos # scripts and configure runs, see configure's option --config-cache.
14208 1.1 christos # It is not useful on other systems. If it contains results you don't
14209 1.1 christos # want to keep, you may remove or edit it.
14210 1.1 christos #
14211 1.1 christos # config.status only pays attention to the cache file if you give it
14212 1.1 christos # the --recheck option to rerun configure.
14213 1.1 christos #
14214 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
14215 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
14216 1.1 christos # following values.
14217 1.1 christos
14218 1.1 christos _ACEOF
14219 1.1 christos
14220 1.1 christos # The following way of writing the cache mishandles newlines in values,
14221 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
14222 1.1 christos # So, we kill variables containing newlines.
14223 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
14224 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
14225 1.1 christos (
14226 1.1 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14227 1.1 christos eval ac_val=\$$ac_var
14228 1.1 christos case $ac_val in #(
14229 1.1 christos *${as_nl}*)
14230 1.1 christos case $ac_var in #(
14231 1.1 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14232 1.1 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14233 1.1 christos esac
14234 1.1 christos case $ac_var in #(
14235 1.1 christos _ | IFS | as_nl) ;; #(
14236 1.1 christos *) $as_unset $ac_var ;;
14237 1.1 christos esac ;;
14238 1.1 christos esac
14239 1.1 christos done
14240 1.1 christos
14241 1.1 christos (set) 2>&1 |
14242 1.1 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
14243 1.1 christos *${as_nl}ac_space=\ *)
14244 1.1 christos # `set' does not quote correctly, so add quotes (double-quote
14245 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
14246 1.1 christos sed -n \
14247 1.1 christos "s/'/'\\\\''/g;
14248 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14249 1.1 christos ;; #(
14250 1.1 christos *)
14251 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
14252 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14253 1.1 christos ;;
14254 1.1 christos esac |
14255 1.1 christos sort
14256 1.1 christos ) |
14257 1.1 christos sed '
14258 1.1 christos /^ac_cv_env_/b end
14259 1.1 christos t clear
14260 1.1 christos :clear
14261 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14262 1.1 christos t end
14263 1.1 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14264 1.1 christos :end' >>confcache
14265 1.1 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14266 1.1 christos if test -w "$cache_file"; then
14267 1.1 christos test "x$cache_file" != "x/dev/null" &&
14268 1.1 christos { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14269 1.1 christos echo "$as_me: updating cache $cache_file" >&6;}
14270 1.1 christos cat confcache >$cache_file
14271 1.1 christos else
14272 1.1 christos { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14273 1.1 christos echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14274 1.1 christos fi
14275 1.1 christos fi
14276 1.1 christos rm -f confcache
14277 1.1 christos
14278 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
14279 1.1 christos # Let make expand exec_prefix.
14280 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14281 1.1 christos
14282 1.1 christos DEFS=-DHAVE_CONFIG_H
14283 1.1 christos
14284 1.1 christos ac_libobjs=
14285 1.1 christos ac_ltlibobjs=
14286 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14287 1.1 christos # 1. Remove the extension, and $U if already installed.
14288 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14289 1.1 christos ac_i=`echo "$ac_i" | sed "$ac_script"`
14290 1.1 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14291 1.1 christos # will be set to the directory where LIBOBJS objects are built.
14292 1.1 christos ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14293 1.1 christos ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14294 1.1 christos done
14295 1.1 christos LIBOBJS=$ac_libobjs
14296 1.1 christos
14297 1.1 christos LTLIBOBJS=$ac_ltlibobjs
14298 1.1 christos
14299 1.1 christos
14300 1.1 christos
14301 1.1 christos : ${CONFIG_STATUS=./config.status}
14302 1.1 christos ac_clean_files_save=$ac_clean_files
14303 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14304 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14305 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
14306 1.1 christos cat >$CONFIG_STATUS <<_ACEOF
14307 1.1 christos #! $SHELL
14308 1.1 christos # Generated by $as_me.
14309 1.1 christos # Run this file to recreate the current configuration.
14310 1.1 christos # Compiler output produced by configure, useful for debugging
14311 1.1 christos # configure, is in config.log if it exists.
14312 1.1 christos
14313 1.1 christos debug=false
14314 1.1 christos ac_cs_recheck=false
14315 1.1 christos ac_cs_silent=false
14316 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
14317 1.1 christos _ACEOF
14318 1.1 christos
14319 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14320 1.1 christos ## --------------------- ##
14321 1.1 christos ## M4sh Initialization. ##
14322 1.1 christos ## --------------------- ##
14323 1.1 christos
14324 1.1 christos # Be more Bourne compatible
14325 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
14326 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14327 1.1 christos emulate sh
14328 1.1 christos NULLCMD=:
14329 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14330 1.1 christos # is contrary to our usage. Disable this feature.
14331 1.1 christos alias -g '${1+"$@"}'='"$@"'
14332 1.1 christos setopt NO_GLOB_SUBST
14333 1.1 christos else
14334 1.1 christos case `(set -o) 2>/dev/null` in
14335 1.1 christos *posix*) set -o posix ;;
14336 1.1 christos esac
14337 1.1 christos
14338 1.1 christos fi
14339 1.1 christos
14340 1.1 christos
14341 1.1 christos
14342 1.1 christos
14343 1.1 christos # PATH needs CR
14344 1.1 christos # Avoid depending upon Character Ranges.
14345 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14346 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14347 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14348 1.1 christos as_cr_digits='0123456789'
14349 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
14350 1.1 christos
14351 1.1 christos # The user is always right.
14352 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
14353 1.1 christos echo "#! /bin/sh" >conf$$.sh
14354 1.1 christos echo "exit 0" >>conf$$.sh
14355 1.1 christos chmod +x conf$$.sh
14356 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14357 1.1 christos PATH_SEPARATOR=';'
14358 1.1 christos else
14359 1.1 christos PATH_SEPARATOR=:
14360 1.1 christos fi
14361 1.1 christos rm -f conf$$.sh
14362 1.1 christos fi
14363 1.1 christos
14364 1.1 christos # Support unset when possible.
14365 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14366 1.1 christos as_unset=unset
14367 1.1 christos else
14368 1.1 christos as_unset=false
14369 1.1 christos fi
14370 1.1 christos
14371 1.1 christos
14372 1.1 christos # IFS
14373 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
14374 1.1 christos # there to prevent editors from complaining about space-tab.
14375 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14376 1.1 christos # splitting by setting IFS to empty value.)
14377 1.1 christos as_nl='
14378 1.1 christos '
14379 1.1 christos IFS=" "" $as_nl"
14380 1.1 christos
14381 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
14382 1.1 christos case $0 in
14383 1.1 christos *[\\/]* ) as_myself=$0 ;;
14384 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 1.1 christos for as_dir in $PATH
14386 1.1 christos do
14387 1.1 christos IFS=$as_save_IFS
14388 1.1 christos test -z "$as_dir" && as_dir=.
14389 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14390 1.1 christos done
14391 1.1 christos IFS=$as_save_IFS
14392 1.1 christos
14393 1.1 christos ;;
14394 1.1 christos esac
14395 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
14396 1.1 christos # in which case we are not to be found in the path.
14397 1.1 christos if test "x$as_myself" = x; then
14398 1.1 christos as_myself=$0
14399 1.1 christos fi
14400 1.1 christos if test ! -f "$as_myself"; then
14401 1.1 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14402 1.1 christos { (exit 1); exit 1; }
14403 1.1 christos fi
14404 1.1 christos
14405 1.1 christos # Work around bugs in pre-3.0 UWIN ksh.
14406 1.1 christos for as_var in ENV MAIL MAILPATH
14407 1.1 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14408 1.1 christos done
14409 1.1 christos PS1='$ '
14410 1.1 christos PS2='> '
14411 1.1 christos PS4='+ '
14412 1.1 christos
14413 1.1 christos # NLS nuisances.
14414 1.1 christos for as_var in \
14415 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14416 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14417 1.1 christos LC_TELEPHONE LC_TIME
14418 1.1 christos do
14419 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14420 1.1 christos eval $as_var=C; export $as_var
14421 1.1 christos else
14422 1.1 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14423 1.1 christos fi
14424 1.1 christos done
14425 1.1 christos
14426 1.1 christos # Required to use basename.
14427 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
14428 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
14429 1.1 christos as_expr=expr
14430 1.1 christos else
14431 1.1 christos as_expr=false
14432 1.1 christos fi
14433 1.1 christos
14434 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14435 1.1 christos as_basename=basename
14436 1.1 christos else
14437 1.1 christos as_basename=false
14438 1.1 christos fi
14439 1.1 christos
14440 1.1 christos
14441 1.1 christos # Name of the executable.
14442 1.1 christos as_me=`$as_basename -- "$0" ||
14443 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14444 1.1 christos X"$0" : 'X\(//\)$' \| \
14445 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14446 1.1 christos echo X/"$0" |
14447 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
14448 1.1 christos s//\1/
14449 1.1 christos q
14450 1.1 christos }
14451 1.1 christos /^X\/\(\/\/\)$/{
14452 1.1 christos s//\1/
14453 1.1 christos q
14454 1.1 christos }
14455 1.1 christos /^X\/\(\/\).*/{
14456 1.1 christos s//\1/
14457 1.1 christos q
14458 1.1 christos }
14459 1.1 christos s/.*/./; q'`
14460 1.1 christos
14461 1.1 christos # CDPATH.
14462 1.1 christos $as_unset CDPATH
14463 1.1 christos
14464 1.1 christos
14465 1.1 christos
14466 1.1 christos as_lineno_1=$LINENO
14467 1.1 christos as_lineno_2=$LINENO
14468 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
14469 1.1 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14470 1.1 christos
14471 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14472 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a
14473 1.1 christos # line-number line after each line using $LINENO; the second 'sed'
14474 1.1 christos # does the real work. The second script uses 'N' to pair each
14475 1.1 christos # line-number line with the line containing $LINENO, and appends
14476 1.1 christos # trailing '-' during substitution so that $LINENO is not a special
14477 1.1 christos # case at line end.
14478 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14479 1.1 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
14480 1.1 christos # E. McMahon (1931-1989) for sed's syntax. :-)
14481 1.1 christos sed -n '
14482 1.1 christos p
14483 1.1 christos /[$]LINENO/=
14484 1.1 christos ' <$as_myself |
14485 1.1 christos sed '
14486 1.1 christos s/[$]LINENO.*/&-/
14487 1.1 christos t lineno
14488 1.1 christos b
14489 1.1 christos :lineno
14490 1.1 christos N
14491 1.1 christos :loop
14492 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14493 1.1 christos t loop
14494 1.1 christos s/-\n.*//
14495 1.1 christos ' >$as_me.lineno &&
14496 1.1 christos chmod +x "$as_me.lineno" ||
14497 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14498 1.1 christos { (exit 1); exit 1; }; }
14499 1.1 christos
14500 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
14501 1.1 christos # (the dirname of $[0] is not the place where we might find the
14502 1.1 christos # original and so on. Autoconf is especially sensitive to this).
14503 1.1 christos . "./$as_me.lineno"
14504 1.1 christos # Exit status is that of the last command.
14505 1.1 christos exit
14506 1.1 christos }
14507 1.1 christos
14508 1.1 christos
14509 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14510 1.1 christos as_dirname=dirname
14511 1.1 christos else
14512 1.1 christos as_dirname=false
14513 1.1 christos fi
14514 1.1 christos
14515 1.1 christos ECHO_C= ECHO_N= ECHO_T=
14516 1.1 christos case `echo -n x` in
14517 1.1 christos -n*)
14518 1.1 christos case `echo 'x\c'` in
14519 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14520 1.1 christos *) ECHO_C='\c';;
14521 1.1 christos esac;;
14522 1.1 christos *)
14523 1.1 christos ECHO_N='-n';;
14524 1.1 christos esac
14525 1.1 christos
14526 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
14527 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
14528 1.1 christos as_expr=expr
14529 1.1 christos else
14530 1.1 christos as_expr=false
14531 1.1 christos fi
14532 1.1 christos
14533 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
14534 1.1 christos if test -d conf$$.dir; then
14535 1.1 christos rm -f conf$$.dir/conf$$.file
14536 1.1 christos else
14537 1.1 christos rm -f conf$$.dir
14538 1.1 christos mkdir conf$$.dir
14539 1.1 christos fi
14540 1.1 christos echo >conf$$.file
14541 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
14542 1.1 christos as_ln_s='ln -s'
14543 1.1 christos # ... but there are two gotchas:
14544 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14545 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14546 1.1 christos # In both cases, we have to default to `cp -p'.
14547 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14548 1.1 christos as_ln_s='cp -p'
14549 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
14550 1.1 christos as_ln_s=ln
14551 1.1 christos else
14552 1.1 christos as_ln_s='cp -p'
14553 1.1 christos fi
14554 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14555 1.1 christos rmdir conf$$.dir 2>/dev/null
14556 1.1 christos
14557 1.1 christos if mkdir -p . 2>/dev/null; then
14558 1.1 christos as_mkdir_p=:
14559 1.1 christos else
14560 1.1 christos test -d ./-p && rmdir ./-p
14561 1.1 christos as_mkdir_p=false
14562 1.1 christos fi
14563 1.1 christos
14564 1.1 christos if test -x / >/dev/null 2>&1; then
14565 1.1 christos as_test_x='test -x'
14566 1.1 christos else
14567 1.1 christos if ls -dL / >/dev/null 2>&1; then
14568 1.1 christos as_ls_L_option=L
14569 1.1 christos else
14570 1.1 christos as_ls_L_option=
14571 1.1 christos fi
14572 1.1 christos as_test_x='
14573 1.1 christos eval sh -c '\''
14574 1.1 christos if test -d "$1"; then
14575 1.1 christos test -d "$1/.";
14576 1.1 christos else
14577 1.1 christos case $1 in
14578 1.1 christos -*)set "./$1";;
14579 1.1 christos esac;
14580 1.1 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14581 1.1 christos ???[sx]*):;;*)false;;esac;fi
14582 1.1 christos '\'' sh
14583 1.1 christos '
14584 1.1 christos fi
14585 1.1 christos as_executable_p=$as_test_x
14586 1.1 christos
14587 1.1 christos # Sed expression to map a string onto a valid CPP name.
14588 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14589 1.1 christos
14590 1.1 christos # Sed expression to map a string onto a valid variable name.
14591 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14592 1.1 christos
14593 1.1 christos
14594 1.1 christos exec 6>&1
14595 1.1 christos
14596 1.1 christos # Save the log message, to keep $[0] and so on meaningful, and to
14597 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
14598 1.1 christos # values after options handling.
14599 1.1 christos ac_log="
14600 1.1 christos This file was extended by $as_me, which was
14601 1.1 christos generated by GNU Autoconf 2.61. Invocation command line was
14602 1.1 christos
14603 1.1 christos CONFIG_FILES = $CONFIG_FILES
14604 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
14605 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
14606 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
14607 1.1 christos $ $0 $@
14608 1.1 christos
14609 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
14610 1.1 christos "
14611 1.1 christos
14612 1.1 christos _ACEOF
14613 1.1 christos
14614 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14615 1.1 christos # Files that config.status was made for.
14616 1.1 christos config_files="$ac_config_files"
14617 1.1 christos config_headers="$ac_config_headers"
14618 1.1 christos config_commands="$ac_config_commands"
14619 1.1 christos
14620 1.1 christos _ACEOF
14621 1.1 christos
14622 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14623 1.1 christos ac_cs_usage="\
14624 1.1 christos \`$as_me' instantiates files from templates according to the
14625 1.1 christos current configuration.
14626 1.1 christos
14627 1.1 christos Usage: $0 [OPTIONS] [FILE]...
14628 1.1 christos
14629 1.1 christos -h, --help print this help, then exit
14630 1.1 christos -V, --version print version number and configuration settings, then exit
14631 1.1 christos -q, --quiet do not print progress messages
14632 1.1 christos -d, --debug don't remove temporary files
14633 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
14634 1.1 christos --file=FILE[:TEMPLATE]
14635 1.1 christos instantiate the configuration file FILE
14636 1.1 christos --header=FILE[:TEMPLATE]
14637 1.1 christos instantiate the configuration header FILE
14638 1.1 christos
14639 1.1 christos Configuration files:
14640 1.1 christos $config_files
14641 1.1 christos
14642 1.1 christos Configuration headers:
14643 1.1 christos $config_headers
14644 1.1 christos
14645 1.1 christos Configuration commands:
14646 1.1 christos $config_commands
14647 1.1 christos
14648 1.1 christos Report bugs to <bug-autoconf (at] gnu.org>."
14649 1.1 christos
14650 1.1 christos _ACEOF
14651 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14652 1.1 christos ac_cs_version="\\
14653 1.1 christos config.status
14654 1.1 christos configured by $0, generated by GNU Autoconf 2.61,
14655 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14656 1.1 christos
14657 1.1 christos Copyright (C) 2006 Free Software Foundation, Inc.
14658 1.1 christos This config.status script is free software; the Free Software Foundation
14659 1.1 christos gives unlimited permission to copy, distribute and modify it."
14660 1.1 christos
14661 1.1 christos ac_pwd='$ac_pwd'
14662 1.1 christos srcdir='$srcdir'
14663 1.1 christos INSTALL='$INSTALL'
14664 1.1 christos _ACEOF
14665 1.1 christos
14666 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14667 1.1 christos # If no file are specified by the user, then we need to provide default
14668 1.1 christos # value. By we need to know if files were specified by the user.
14669 1.1 christos ac_need_defaults=:
14670 1.1 christos while test $# != 0
14671 1.1 christos do
14672 1.1 christos case $1 in
14673 1.1 christos --*=*)
14674 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
14675 1.1 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14676 1.1 christos ac_shift=:
14677 1.1 christos ;;
14678 1.1 christos *)
14679 1.1 christos ac_option=$1
14680 1.1 christos ac_optarg=$2
14681 1.1 christos ac_shift=shift
14682 1.1 christos ;;
14683 1.1 christos esac
14684 1.1 christos
14685 1.1 christos case $ac_option in
14686 1.1 christos # Handling of the options.
14687 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14688 1.1 christos ac_cs_recheck=: ;;
14689 1.1 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14690 1.1 christos echo "$ac_cs_version"; exit ;;
14691 1.1 christos --debug | --debu | --deb | --de | --d | -d )
14692 1.1 christos debug=: ;;
14693 1.1 christos --file | --fil | --fi | --f )
14694 1.1 christos $ac_shift
14695 1.1 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14696 1.1 christos ac_need_defaults=false;;
14697 1.1 christos --header | --heade | --head | --hea )
14698 1.1 christos $ac_shift
14699 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14700 1.1 christos ac_need_defaults=false;;
14701 1.1 christos --he | --h)
14702 1.1 christos # Conflict between --help and --header
14703 1.1 christos { echo "$as_me: error: ambiguous option: $1
14704 1.1 christos Try \`$0 --help' for more information." >&2
14705 1.1 christos { (exit 1); exit 1; }; };;
14706 1.1 christos --help | --hel | -h )
14707 1.1 christos echo "$ac_cs_usage"; exit ;;
14708 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14709 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
14710 1.1 christos ac_cs_silent=: ;;
14711 1.1 christos
14712 1.1 christos # This is an error.
14713 1.1 christos -*) { echo "$as_me: error: unrecognized option: $1
14714 1.1 christos Try \`$0 --help' for more information." >&2
14715 1.1 christos { (exit 1); exit 1; }; } ;;
14716 1.1 christos
14717 1.1 christos *) ac_config_targets="$ac_config_targets $1"
14718 1.1 christos ac_need_defaults=false ;;
14719 1.1 christos
14720 1.1 christos esac
14721 1.1 christos shift
14722 1.1 christos done
14723 1.1 christos
14724 1.1 christos ac_configure_extra_args=
14725 1.1 christos
14726 1.1 christos if $ac_cs_silent; then
14727 1.1 christos exec 6>/dev/null
14728 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
14729 1.1 christos fi
14730 1.1 christos
14731 1.1 christos _ACEOF
14732 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14733 1.1 christos if \$ac_cs_recheck; then
14734 1.1 christos echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14735 1.1 christos CONFIG_SHELL=$SHELL
14736 1.1 christos export CONFIG_SHELL
14737 1.1 christos exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14738 1.1 christos fi
14739 1.1 christos
14740 1.1 christos _ACEOF
14741 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14742 1.1 christos exec 5>>config.log
14743 1.1 christos {
14744 1.1 christos echo
14745 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14746 1.1 christos ## Running $as_me. ##
14747 1.1 christos _ASBOX
14748 1.1 christos echo "$ac_log"
14749 1.1 christos } >&5
14750 1.1 christos
14751 1.1 christos _ACEOF
14752 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14753 1.1 christos #
14754 1.1 christos # INIT-COMMANDS
14755 1.1 christos #
14756 1.1 christos
14757 1.1 christos
14758 1.1 christos _ACEOF
14759 1.1 christos
14760 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14761 1.1 christos
14762 1.1 christos # Handling of arguments.
14763 1.1 christos for ac_config_target in $ac_config_targets
14764 1.1 christos do
14765 1.1 christos case $ac_config_target in
14766 1.1 christos "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14767 1.1 christos "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14768 1.1 christos "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14769 1.1 christos "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14770 1.1 christos
14771 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14772 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14773 1.1 christos { (exit 1); exit 1; }; };;
14774 1.1 christos esac
14775 1.1 christos done
14776 1.1 christos
14777 1.1 christos
14778 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
14779 1.1 christos # then the envvar interface is used. Set only those that are not.
14780 1.1 christos # We use the long form for the default assignment because of an extremely
14781 1.1 christos # bizarre bug on SunOS 4.1.3.
14782 1.1 christos if $ac_need_defaults; then
14783 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14784 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14785 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14786 1.1 christos fi
14787 1.1 christos
14788 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
14789 1.1 christos # simply because there is no reason against having it here, and in addition,
14790 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
14791 1.1 christos # Hook for its removal unless debugging.
14792 1.1 christos # Note that there is a small window in which the directory will not be cleaned:
14793 1.1 christos # after its creation but before its name has been assigned to `$tmp'.
14794 1.1 christos $debug ||
14795 1.1 christos {
14796 1.1 christos tmp=
14797 1.1 christos trap 'exit_status=$?
14798 1.1 christos { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14799 1.1 christos ' 0
14800 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
14801 1.1 christos }
14802 1.1 christos # Create a (secure) tmp directory for tmp files.
14803 1.1 christos
14804 1.1 christos {
14805 1.1 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14806 1.1 christos test -n "$tmp" && test -d "$tmp"
14807 1.1 christos } ||
14808 1.1 christos {
14809 1.1 christos tmp=./conf$$-$RANDOM
14810 1.1 christos (umask 077 && mkdir "$tmp")
14811 1.1 christos } ||
14812 1.1 christos {
14813 1.1 christos echo "$me: cannot create a temporary directory in ." >&2
14814 1.1 christos { (exit 1); exit 1; }
14815 1.1 christos }
14816 1.1 christos
14817 1.1 christos #
14818 1.1 christos # Set up the sed scripts for CONFIG_FILES section.
14819 1.1 christos #
14820 1.1 christos
14821 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES.
14822 1.1 christos # This happens for instance when ./config.status config.h
14823 1.1 christos if test -n "$CONFIG_FILES"; then
14824 1.1 christos
14825 1.1 christos _ACEOF
14826 1.1 christos
14827 1.1 christos
14828 1.1 christos
14829 1.1 christos ac_delim='%!_!# '
14830 1.1 christos for ac_last_try in false false false false false :; do
14831 1.1 christos cat >conf$$subs.sed <<_ACEOF
14832 1.1 christos SHELL!$SHELL$ac_delim
14833 1.1 christos PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14834 1.1 christos PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14835 1.1 christos PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14836 1.1 christos PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14837 1.1 christos PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14838 1.1 christos PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14839 1.1 christos exec_prefix!$exec_prefix$ac_delim
14840 1.1 christos prefix!$prefix$ac_delim
14841 1.1 christos program_transform_name!$program_transform_name$ac_delim
14842 1.1 christos bindir!$bindir$ac_delim
14843 1.1 christos sbindir!$sbindir$ac_delim
14844 1.1 christos libexecdir!$libexecdir$ac_delim
14845 1.1 christos datarootdir!$datarootdir$ac_delim
14846 1.1 christos datadir!$datadir$ac_delim
14847 1.1 christos sysconfdir!$sysconfdir$ac_delim
14848 1.1 christos sharedstatedir!$sharedstatedir$ac_delim
14849 1.1 christos localstatedir!$localstatedir$ac_delim
14850 1.1 christos includedir!$includedir$ac_delim
14851 1.1 christos oldincludedir!$oldincludedir$ac_delim
14852 1.1 christos docdir!$docdir$ac_delim
14853 1.1 christos infodir!$infodir$ac_delim
14854 1.1 christos htmldir!$htmldir$ac_delim
14855 1.1 christos dvidir!$dvidir$ac_delim
14856 1.1 christos pdfdir!$pdfdir$ac_delim
14857 1.1 christos psdir!$psdir$ac_delim
14858 1.1 christos libdir!$libdir$ac_delim
14859 1.1 christos localedir!$localedir$ac_delim
14860 1.1 christos mandir!$mandir$ac_delim
14861 1.1 christos DEFS!$DEFS$ac_delim
14862 1.1 christos ECHO_C!$ECHO_C$ac_delim
14863 1.1 christos ECHO_N!$ECHO_N$ac_delim
14864 1.1 christos ECHO_T!$ECHO_T$ac_delim
14865 1.1 christos LIBS!$LIBS$ac_delim
14866 1.1 christos build_alias!$build_alias$ac_delim
14867 1.1 christos host_alias!$host_alias$ac_delim
14868 1.1 christos target_alias!$target_alias$ac_delim
14869 1.1 christos build!$build$ac_delim
14870 1.1 christos build_cpu!$build_cpu$ac_delim
14871 1.1 christos build_vendor!$build_vendor$ac_delim
14872 1.1 christos build_os!$build_os$ac_delim
14873 1.1 christos host!$host$ac_delim
14874 1.1 christos host_cpu!$host_cpu$ac_delim
14875 1.1 christos host_vendor!$host_vendor$ac_delim
14876 1.1 christos host_os!$host_os$ac_delim
14877 1.1 christos SHLICC2!$SHLICC2$ac_delim
14878 1.1 christos CC!$CC$ac_delim
14879 1.1 christos CFLAGS!$CFLAGS$ac_delim
14880 1.1 christos LDFLAGS!$LDFLAGS$ac_delim
14881 1.1 christos CPPFLAGS!$CPPFLAGS$ac_delim
14882 1.1 christos ac_ct_CC!$ac_ct_CC$ac_delim
14883 1.1 christos EXEEXT!$EXEEXT$ac_delim
14884 1.1 christos OBJEXT!$OBJEXT$ac_delim
14885 1.1 christos CPP!$CPP$ac_delim
14886 1.1 christos GREP!$GREP$ac_delim
14887 1.1 christos EGREP!$EGREP$ac_delim
14888 1.1 christos LIBOBJS!$LIBOBJS$ac_delim
14889 1.1 christos PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14890 1.1 christos RANLIB!$RANLIB$ac_delim
14891 1.1 christos V_CCOPT!$V_CCOPT$ac_delim
14892 1.1 christos V_DEFS!$V_DEFS$ac_delim
14893 1.1 christos V_GROUP!$V_GROUP$ac_delim
14894 1.1 christos V_INCLS!$V_INCLS$ac_delim
14895 1.1 christos V_PCAPDEP!$V_PCAPDEP$ac_delim
14896 1.1 christos LOCALSRC!$LOCALSRC$ac_delim
14897 1.1 christos MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14898 1.1 christos MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14899 1.1 christos INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14900 1.1 christos INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14901 1.1 christos INSTALL_DATA!$INSTALL_DATA$ac_delim
14902 1.1 christos LTLIBOBJS!$LTLIBOBJS$ac_delim
14903 1.1 christos _ACEOF
14904 1.1 christos
14905 1.1 christos if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14906 1.1 christos break
14907 1.1 christos elif $ac_last_try; then
14908 1.1 christos { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14909 1.1 christos echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14910 1.1 christos { (exit 1); exit 1; }; }
14911 1.1 christos else
14912 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14913 1.1 christos fi
14914 1.1 christos done
14915 1.1 christos
14916 1.1 christos ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14917 1.1 christos if test -n "$ac_eof"; then
14918 1.1 christos ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14919 1.1 christos ac_eof=`expr $ac_eof + 1`
14920 1.1 christos fi
14921 1.1 christos
14922 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14923 1.1 christos cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14924 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14925 1.1 christos _ACEOF
14926 1.1 christos sed '
14927 1.1 christos s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14928 1.1 christos s/^/s,@/; s/!/@,|#_!!_#|/
14929 1.1 christos :n
14930 1.1 christos t n
14931 1.1 christos s/'"$ac_delim"'$/,g/; t
14932 1.1 christos s/$/\\/; p
14933 1.1 christos N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14934 1.1 christos ' >>$CONFIG_STATUS <conf$$subs.sed
14935 1.1 christos rm -f conf$$subs.sed
14936 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
14937 1.1 christos :end
14938 1.1 christos s/|#_!!_#|//g
14939 1.1 christos CEOF$ac_eof
14940 1.1 christos _ACEOF
14941 1.1 christos
14942 1.1 christos
14943 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
14944 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14945 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
14946 1.1 christos # (actually we leave an empty line to preserve line numbers).
14947 1.1 christos if test "x$srcdir" = x.; then
14948 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
14949 1.1 christos s/:*\$(srcdir):*/:/
14950 1.1 christos s/:*\${srcdir}:*/:/
14951 1.1 christos s/:*@srcdir@:*/:/
14952 1.1 christos s/^\([^=]*=[ ]*\):*/\1/
14953 1.1 christos s/:*$//
14954 1.1 christos s/^[^=]*=[ ]*$//
14955 1.1 christos }'
14956 1.1 christos fi
14957 1.1 christos
14958 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
14959 1.1 christos fi # test -n "$CONFIG_FILES"
14960 1.1 christos
14961 1.1 christos
14962 1.1 christos for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14963 1.1 christos do
14964 1.1 christos case $ac_tag in
14965 1.1 christos :[FHLC]) ac_mode=$ac_tag; continue;;
14966 1.1 christos esac
14967 1.1 christos case $ac_mode$ac_tag in
14968 1.1 christos :[FHL]*:*);;
14969 1.1 christos :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14970 1.1 christos echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14971 1.1 christos { (exit 1); exit 1; }; };;
14972 1.1 christos :[FH]-) ac_tag=-:-;;
14973 1.1 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14974 1.1 christos esac
14975 1.1 christos ac_save_IFS=$IFS
14976 1.1 christos IFS=:
14977 1.1 christos set x $ac_tag
14978 1.1 christos IFS=$ac_save_IFS
14979 1.1 christos shift
14980 1.1 christos ac_file=$1
14981 1.1 christos shift
14982 1.1 christos
14983 1.1 christos case $ac_mode in
14984 1.1 christos :L) ac_source=$1;;
14985 1.1 christos :[FH])
14986 1.1 christos ac_file_inputs=
14987 1.1 christos for ac_f
14988 1.1 christos do
14989 1.1 christos case $ac_f in
14990 1.1 christos -) ac_f="$tmp/stdin";;
14991 1.1 christos *) # Look for the file first in the build tree, then in the source tree
14992 1.1 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
14993 1.1 christos # because $ac_f cannot contain `:'.
14994 1.1 christos test -f "$ac_f" ||
14995 1.1 christos case $ac_f in
14996 1.1 christos [\\/$]*) false;;
14997 1.1 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14998 1.1 christos esac ||
14999 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15000 1.1 christos echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15001 1.1 christos { (exit 1); exit 1; }; };;
15002 1.1 christos esac
15003 1.1 christos ac_file_inputs="$ac_file_inputs $ac_f"
15004 1.1 christos done
15005 1.1 christos
15006 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
15007 1.1 christos # use $as_me), people would be surprised to read:
15008 1.1 christos # /* config.h. Generated by config.status. */
15009 1.1 christos configure_input="Generated from "`IFS=:
15010 1.1 christos echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15011 1.1 christos if test x"$ac_file" != x-; then
15012 1.1 christos configure_input="$ac_file. $configure_input"
15013 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5
15014 1.1 christos echo "$as_me: creating $ac_file" >&6;}
15015 1.1 christos fi
15016 1.1 christos
15017 1.1 christos case $ac_tag in
15018 1.1 christos *:-:* | *:-) cat >"$tmp/stdin";;
15019 1.1 christos esac
15020 1.1 christos ;;
15021 1.1 christos esac
15022 1.1 christos
15023 1.1 christos ac_dir=`$as_dirname -- "$ac_file" ||
15024 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
15026 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
15027 1.1 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15028 1.1 christos echo X"$ac_file" |
15029 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030 1.1 christos s//\1/
15031 1.1 christos q
15032 1.1 christos }
15033 1.1 christos /^X\(\/\/\)[^/].*/{
15034 1.1 christos s//\1/
15035 1.1 christos q
15036 1.1 christos }
15037 1.1 christos /^X\(\/\/\)$/{
15038 1.1 christos s//\1/
15039 1.1 christos q
15040 1.1 christos }
15041 1.1 christos /^X\(\/\).*/{
15042 1.1 christos s//\1/
15043 1.1 christos q
15044 1.1 christos }
15045 1.1 christos s/.*/./; q'`
15046 1.1 christos { as_dir="$ac_dir"
15047 1.1 christos case $as_dir in #(
15048 1.1 christos -*) as_dir=./$as_dir;;
15049 1.1 christos esac
15050 1.1 christos test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15051 1.1 christos as_dirs=
15052 1.1 christos while :; do
15053 1.1 christos case $as_dir in #(
15054 1.1 christos *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15055 1.1 christos *) as_qdir=$as_dir;;
15056 1.1 christos esac
15057 1.1 christos as_dirs="'$as_qdir' $as_dirs"
15058 1.1 christos as_dir=`$as_dirname -- "$as_dir" ||
15059 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
15061 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
15062 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15063 1.1 christos echo X"$as_dir" |
15064 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15065 1.1 christos s//\1/
15066 1.1 christos q
15067 1.1 christos }
15068 1.1 christos /^X\(\/\/\)[^/].*/{
15069 1.1 christos s//\1/
15070 1.1 christos q
15071 1.1 christos }
15072 1.1 christos /^X\(\/\/\)$/{
15073 1.1 christos s//\1/
15074 1.1 christos q
15075 1.1 christos }
15076 1.1 christos /^X\(\/\).*/{
15077 1.1 christos s//\1/
15078 1.1 christos q
15079 1.1 christos }
15080 1.1 christos s/.*/./; q'`
15081 1.1 christos test -d "$as_dir" && break
15082 1.1 christos done
15083 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
15084 1.1 christos } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15085 1.1 christos echo "$as_me: error: cannot create directory $as_dir" >&2;}
15086 1.1 christos { (exit 1); exit 1; }; }; }
15087 1.1 christos ac_builddir=.
15088 1.1 christos
15089 1.1 christos case "$ac_dir" in
15090 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15091 1.1 christos *)
15092 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15093 1.1 christos # A ".." for each directory in $ac_dir_suffix.
15094 1.1 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15095 1.1 christos case $ac_top_builddir_sub in
15096 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15097 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15098 1.1 christos esac ;;
15099 1.1 christos esac
15100 1.1 christos ac_abs_top_builddir=$ac_pwd
15101 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
15102 1.1 christos # for backward compatibility:
15103 1.1 christos ac_top_builddir=$ac_top_build_prefix
15104 1.1 christos
15105 1.1 christos case $srcdir in
15106 1.1 christos .) # We are building in place.
15107 1.1 christos ac_srcdir=.
15108 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
15109 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
15110 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
15111 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
15112 1.1 christos ac_top_srcdir=$srcdir
15113 1.1 christos ac_abs_top_srcdir=$srcdir ;;
15114 1.1 christos *) # Relative name.
15115 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15116 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
15117 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15118 1.1 christos esac
15119 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15120 1.1 christos
15121 1.1 christos
15122 1.1 christos case $ac_mode in
15123 1.1 christos :F)
15124 1.1 christos #
15125 1.1 christos # CONFIG_FILE
15126 1.1 christos #
15127 1.1 christos
15128 1.1 christos case $INSTALL in
15129 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15130 1.1 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15131 1.1 christos esac
15132 1.1 christos _ACEOF
15133 1.1 christos
15134 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
15135 1.1 christos # If the template does not know about datarootdir, expand it.
15136 1.1 christos # FIXME: This hack should be removed a few years after 2.60.
15137 1.1 christos ac_datarootdir_hack=; ac_datarootdir_seen=
15138 1.1 christos
15139 1.1 christos case `sed -n '/datarootdir/ {
15140 1.1 christos p
15141 1.1 christos q
15142 1.1 christos }
15143 1.1 christos /@datadir@/p
15144 1.1 christos /@docdir@/p
15145 1.1 christos /@infodir@/p
15146 1.1 christos /@localedir@/p
15147 1.1 christos /@mandir@/p
15148 1.1 christos ' $ac_file_inputs` in
15149 1.1 christos *datarootdir*) ac_datarootdir_seen=yes;;
15150 1.1 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15151 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15152 1.1 christos echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15153 1.1 christos _ACEOF
15154 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
15155 1.1 christos ac_datarootdir_hack='
15156 1.1 christos s&@datadir@&$datadir&g
15157 1.1 christos s&@docdir@&$docdir&g
15158 1.1 christos s&@infodir@&$infodir&g
15159 1.1 christos s&@localedir@&$localedir&g
15160 1.1 christos s&@mandir@&$mandir&g
15161 1.1 christos s&\\\${datarootdir}&$datarootdir&g' ;;
15162 1.1 christos esac
15163 1.1 christos _ACEOF
15164 1.1 christos
15165 1.1 christos # Neutralize VPATH when `$srcdir' = `.'.
15166 1.1 christos # Shell code in configure.ac might set extrasub.
15167 1.1 christos # FIXME: do we really want to maintain this feature?
15168 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
15169 1.1 christos sed "$ac_vpsub
15170 1.1 christos $extrasub
15171 1.1 christos _ACEOF
15172 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
15173 1.1 christos :t
15174 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15175 1.1 christos s&@configure_input@&$configure_input&;t t
15176 1.1 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
15177 1.1 christos s&@srcdir@&$ac_srcdir&;t t
15178 1.1 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179 1.1 christos s&@top_srcdir@&$ac_top_srcdir&;t t
15180 1.1 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181 1.1 christos s&@builddir@&$ac_builddir&;t t
15182 1.1 christos s&@abs_builddir@&$ac_abs_builddir&;t t
15183 1.1 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184 1.1 christos s&@INSTALL@&$ac_INSTALL&;t t
15185 1.1 christos $ac_datarootdir_hack
15186 1.1 christos " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15187 1.1 christos
15188 1.1 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189 1.1 christos { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190 1.1 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192 1.1 christos which seems to be undefined. Please make sure it is defined." >&5
15193 1.1 christos echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194 1.1 christos which seems to be undefined. Please make sure it is defined." >&2;}
15195 1.1 christos
15196 1.1 christos rm -f "$tmp/stdin"
15197 1.1 christos case $ac_file in
15198 1.1 christos -) cat "$tmp/out"; rm -f "$tmp/out";;
15199 1.1 christos *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15200 1.1 christos esac
15201 1.1 christos ;;
15202 1.1 christos :H)
15203 1.1 christos #
15204 1.1 christos # CONFIG_HEADER
15205 1.1 christos #
15206 1.1 christos _ACEOF
15207 1.1 christos
15208 1.1 christos # Transform confdefs.h into a sed script `conftest.defines', that
15209 1.1 christos # substitutes the proper values into config.h.in to produce config.h.
15210 1.1 christos rm -f conftest.defines conftest.tail
15211 1.1 christos # First, append a space to every undef/define line, to ease matching.
15212 1.1 christos echo 's/$/ /' >conftest.defines
15213 1.1 christos # Then, protect against being on the right side of a sed subst, or in
15214 1.1 christos # an unquoted here document, in config.status. If some macros were
15215 1.1 christos # called several times there might be several #defines for the same
15216 1.1 christos # symbol, which is useless. But do not sort them, since the last
15217 1.1 christos # AC_DEFINE must be honored.
15218 1.1 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15219 1.1 christos # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15220 1.1 christos # NAME is the cpp macro being defined, VALUE is the value it is being given.
15221 1.1 christos # PARAMS is the parameter list in the macro definition--in most cases, it's
15222 1.1 christos # just an empty string.
15223 1.1 christos ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15224 1.1 christos ac_dB='\\)[ (].*,\\1define\\2'
15225 1.1 christos ac_dC=' '
15226 1.1 christos ac_dD=' ,'
15227 1.1 christos
15228 1.1 christos uniq confdefs.h |
15229 1.1 christos sed -n '
15230 1.1 christos t rset
15231 1.1 christos :rset
15232 1.1 christos s/^[ ]*#[ ]*define[ ][ ]*//
15233 1.1 christos t ok
15234 1.1 christos d
15235 1.1 christos :ok
15236 1.1 christos s/[\\&,]/\\&/g
15237 1.1 christos s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15238 1.1 christos s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15239 1.1 christos ' >>conftest.defines
15240 1.1 christos
15241 1.1 christos # Remove the space that was appended to ease matching.
15242 1.1 christos # Then replace #undef with comments. This is necessary, for
15243 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required
15244 1.1 christos # on some systems where configure will not decide to define it.
15245 1.1 christos # (The regexp can be short, since the line contains either #define or #undef.)
15246 1.1 christos echo 's/ $//
15247 1.1 christos s,^[ #]*u.*,/* & */,' >>conftest.defines
15248 1.1 christos
15249 1.1 christos # Break up conftest.defines:
15250 1.1 christos ac_max_sed_lines=50
15251 1.1 christos
15252 1.1 christos # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15253 1.1 christos # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15254 1.1 christos # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15255 1.1 christos # et cetera.
15256 1.1 christos ac_in='$ac_file_inputs'
15257 1.1 christos ac_out='"$tmp/out1"'
15258 1.1 christos ac_nxt='"$tmp/out2"'
15259 1.1 christos
15260 1.1 christos while :
15261 1.1 christos do
15262 1.1 christos # Write a here document:
15263 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF
15264 1.1 christos # First, check the format of the line:
15265 1.1 christos cat >"\$tmp/defines.sed" <<\\CEOF
15266 1.1 christos /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15267 1.1 christos /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15268 1.1 christos b
15269 1.1 christos :def
15270 1.1 christos _ACEOF
15271 1.1 christos sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15272 1.1 christos echo 'CEOF
15273 1.1 christos sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15274 1.1 christos ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15275 1.1 christos sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15276 1.1 christos grep . conftest.tail >/dev/null || break
15277 1.1 christos rm -f conftest.defines
15278 1.1 christos mv conftest.tail conftest.defines
15279 1.1 christos done
15280 1.1 christos rm -f conftest.defines conftest.tail
15281 1.1 christos
15282 1.1 christos echo "ac_result=$ac_in" >>$CONFIG_STATUS
15283 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
15284 1.1 christos if test x"$ac_file" != x-; then
15285 1.1 christos echo "/* $configure_input */" >"$tmp/config.h"
15286 1.1 christos cat "$ac_result" >>"$tmp/config.h"
15287 1.1 christos if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15288 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15289 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;}
15290 1.1 christos else
15291 1.1 christos rm -f $ac_file
15292 1.1 christos mv "$tmp/config.h" $ac_file
15293 1.1 christos fi
15294 1.1 christos else
15295 1.1 christos echo "/* $configure_input */"
15296 1.1 christos cat "$ac_result"
15297 1.1 christos fi
15298 1.1 christos rm -f "$tmp/out12"
15299 1.1 christos ;;
15300 1.1 christos
15301 1.1 christos :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15302 1.1 christos echo "$as_me: executing $ac_file commands" >&6;}
15303 1.1 christos ;;
15304 1.1 christos esac
15305 1.1 christos
15306 1.1 christos
15307 1.1 christos case $ac_file$ac_mode in
15308 1.1 christos "default-1":C) if test -f .devel; then
15309 1.1 christos echo timestamp > stamp-h
15310 1.1 christos cat Makefile-devel-adds >> Makefile
15311 1.1 christos make depend
15312 1.1 christos fi ;;
15313 1.1 christos
15314 1.1 christos esac
15315 1.1 christos done # for ac_tag
15316 1.1 christos
15317 1.1 christos
15318 1.1 christos { (exit 0); exit 0; }
15319 1.1 christos _ACEOF
15320 1.1 christos chmod +x $CONFIG_STATUS
15321 1.1 christos ac_clean_files=$ac_clean_files_save
15322 1.1 christos
15323 1.1 christos
15324 1.1 christos # configure is writing to config.log, and then calls config.status.
15325 1.1 christos # config.status does its own redirection, appending to config.log.
15326 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
15327 1.1 christos # by configure, so config.status won't be able to write to it; its
15328 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
15329 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
15330 1.1 christos # appended to by config.status. When coming back to configure, we
15331 1.1 christos # need to make the FD available again.
15332 1.1 christos if test "$no_create" != yes; then
15333 1.1 christos ac_cs_success=:
15334 1.1 christos ac_config_status_args=
15335 1.1 christos test "$silent" = yes &&
15336 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
15337 1.1 christos exec 5>/dev/null
15338 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15339 1.1 christos exec 5>>config.log
15340 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15341 1.1 christos # would make configure fail if this is the last instruction.
15342 1.1 christos $ac_cs_success || { (exit 1); exit 1; }
15343 1.1 christos fi
15344 1.1 christos
15345 1.1 christos exit 0
15346