configure revision 1.65 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.65 christos # Generated by GNU Autoconf 2.61 for libnbcompat noversion.
4 1.1 tv #
5 1.41 salo # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 1.1 tv #
7 1.65 christos # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 1.65 christos # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 1.1 tv # This configure script is free software; the Free Software Foundation
10 1.1 tv # gives unlimited permission to copy, distribute and modify it.
11 1.65 christos ## --------------------- ##
12 1.65 christos ## M4sh Initialization. ##
13 1.65 christos ## --------------------- ##
14 1.1 tv
15 1.65 christos # Be more Bourne compatible
16 1.65 christos DUALCASE=1; export DUALCASE # for MKS sh
17 1.65 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 1.65 christos emulate sh
19 1.65 christos NULLCMD=:
20 1.65 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 1.65 christos # is contrary to our usage. Disable this feature.
22 1.65 christos alias -g '${1+"$@"}'='"$@"'
23 1.65 christos setopt NO_GLOB_SUBST
24 1.65 christos else
25 1.65 christos case `(set -o) 2>/dev/null` in
26 1.65 christos *posix*) set -o posix ;;
27 1.65 christos esac
28 1.65 christos
29 1.65 christos fi
30 1.65 christos
31 1.65 christos
32 1.65 christos
33 1.65 christos
34 1.65 christos # PATH needs CR
35 1.1 tv # Avoid depending upon Character Ranges.
36 1.1 tv as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 1.1 tv as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 1.1 tv as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 1.1 tv as_cr_digits='0123456789'
40 1.1 tv as_cr_alnum=$as_cr_Letters$as_cr_digits
41 1.1 tv
42 1.65 christos # The user is always right.
43 1.65 christos if test "${PATH_SEPARATOR+set}" != set; then
44 1.65 christos echo "#! /bin/sh" >conf$$.sh
45 1.65 christos echo "exit 0" >>conf$$.sh
46 1.65 christos chmod +x conf$$.sh
47 1.65 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 1.65 christos PATH_SEPARATOR=';'
49 1.65 christos else
50 1.65 christos PATH_SEPARATOR=:
51 1.65 christos fi
52 1.65 christos rm -f conf$$.sh
53 1.65 christos fi
54 1.65 christos
55 1.65 christos # Support unset when possible.
56 1.65 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 1.65 christos as_unset=unset
58 1.65 christos else
59 1.65 christos as_unset=false
60 1.65 christos fi
61 1.65 christos
62 1.65 christos
63 1.65 christos # IFS
64 1.65 christos # We need space, tab and new line, in precisely that order. Quoting is
65 1.65 christos # there to prevent editors from complaining about space-tab.
66 1.65 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 1.65 christos # splitting by setting IFS to empty value.)
68 1.65 christos as_nl='
69 1.65 christos '
70 1.65 christos IFS=" "" $as_nl"
71 1.65 christos
72 1.65 christos # Find who we are. Look in the path if we contain no directory separator.
73 1.65 christos case $0 in
74 1.65 christos *[\\/]* ) as_myself=$0 ;;
75 1.65 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 1.65 christos for as_dir in $PATH
77 1.65 christos do
78 1.65 christos IFS=$as_save_IFS
79 1.65 christos test -z "$as_dir" && as_dir=.
80 1.65 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 1.65 christos done
82 1.65 christos IFS=$as_save_IFS
83 1.65 christos
84 1.65 christos ;;
85 1.65 christos esac
86 1.65 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
87 1.65 christos # in which case we are not to be found in the path.
88 1.65 christos if test "x$as_myself" = x; then
89 1.65 christos as_myself=$0
90 1.65 christos fi
91 1.65 christos if test ! -f "$as_myself"; then
92 1.65 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 1.65 christos { (exit 1); exit 1; }
94 1.65 christos fi
95 1.65 christos
96 1.65 christos # Work around bugs in pre-3.0 UWIN ksh.
97 1.65 christos for as_var in ENV MAIL MAILPATH
98 1.65 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 1.65 christos done
100 1.65 christos PS1='$ '
101 1.65 christos PS2='> '
102 1.65 christos PS4='+ '
103 1.65 christos
104 1.65 christos # NLS nuisances.
105 1.65 christos for as_var in \
106 1.65 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 1.65 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 1.65 christos LC_TELEPHONE LC_TIME
109 1.65 christos do
110 1.65 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 1.65 christos eval $as_var=C; export $as_var
112 1.65 christos else
113 1.65 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 1.65 christos fi
115 1.65 christos done
116 1.65 christos
117 1.65 christos # Required to use basename.
118 1.65 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
119 1.65 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 1.65 christos as_expr=expr
121 1.65 christos else
122 1.65 christos as_expr=false
123 1.65 christos fi
124 1.65 christos
125 1.65 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 1.65 christos as_basename=basename
127 1.65 christos else
128 1.65 christos as_basename=false
129 1.65 christos fi
130 1.65 christos
131 1.65 christos
132 1.65 christos # Name of the executable.
133 1.65 christos as_me=`$as_basename -- "$0" ||
134 1.65 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 1.65 christos X"$0" : 'X\(//\)$' \| \
136 1.65 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 1.65 christos echo X/"$0" |
138 1.65 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
139 1.65 christos s//\1/
140 1.65 christos q
141 1.65 christos }
142 1.65 christos /^X\/\(\/\/\)$/{
143 1.65 christos s//\1/
144 1.65 christos q
145 1.65 christos }
146 1.65 christos /^X\/\(\/\).*/{
147 1.65 christos s//\1/
148 1.65 christos q
149 1.65 christos }
150 1.65 christos s/.*/./; q'`
151 1.65 christos
152 1.65 christos # CDPATH.
153 1.65 christos $as_unset CDPATH
154 1.65 christos
155 1.65 christos
156 1.65 christos if test "x$CONFIG_SHELL" = x; then
157 1.65 christos if (eval ":") 2>/dev/null; then
158 1.65 christos as_have_required=yes
159 1.65 christos else
160 1.65 christos as_have_required=no
161 1.65 christos fi
162 1.65 christos
163 1.65 christos if test $as_have_required = yes && (eval ":
164 1.65 christos (as_func_return () {
165 1.65 christos (exit \$1)
166 1.65 christos }
167 1.65 christos as_func_success () {
168 1.65 christos as_func_return 0
169 1.65 christos }
170 1.65 christos as_func_failure () {
171 1.65 christos as_func_return 1
172 1.65 christos }
173 1.65 christos as_func_ret_success () {
174 1.65 christos return 0
175 1.65 christos }
176 1.65 christos as_func_ret_failure () {
177 1.65 christos return 1
178 1.65 christos }
179 1.65 christos
180 1.65 christos exitcode=0
181 1.65 christos if as_func_success; then
182 1.65 christos :
183 1.65 christos else
184 1.65 christos exitcode=1
185 1.65 christos echo as_func_success failed.
186 1.65 christos fi
187 1.65 christos
188 1.65 christos if as_func_failure; then
189 1.65 christos exitcode=1
190 1.65 christos echo as_func_failure succeeded.
191 1.65 christos fi
192 1.65 christos
193 1.65 christos if as_func_ret_success; then
194 1.65 christos :
195 1.65 christos else
196 1.65 christos exitcode=1
197 1.65 christos echo as_func_ret_success failed.
198 1.65 christos fi
199 1.65 christos
200 1.65 christos if as_func_ret_failure; then
201 1.65 christos exitcode=1
202 1.65 christos echo as_func_ret_failure succeeded.
203 1.65 christos fi
204 1.65 christos
205 1.65 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 1.65 christos :
207 1.65 christos else
208 1.65 christos exitcode=1
209 1.65 christos echo positional parameters were not saved.
210 1.65 christos fi
211 1.65 christos
212 1.65 christos test \$exitcode = 0) || { (exit 1); exit 1; }
213 1.65 christos
214 1.65 christos (
215 1.65 christos as_lineno_1=\$LINENO
216 1.65 christos as_lineno_2=\$LINENO
217 1.65 christos test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 1.65 christos test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 1.65 christos ") 2> /dev/null; then
220 1.65 christos :
221 1.65 christos else
222 1.65 christos as_candidate_shells=
223 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 1.65 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 1.65 christos do
226 1.65 christos IFS=$as_save_IFS
227 1.65 christos test -z "$as_dir" && as_dir=.
228 1.65 christos case $as_dir in
229 1.65 christos /*)
230 1.65 christos for as_base in sh bash ksh sh5; do
231 1.65 christos as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 1.65 christos done;;
233 1.65 christos esac
234 1.65 christos done
235 1.65 christos IFS=$as_save_IFS
236 1.65 christos
237 1.65 christos
238 1.65 christos for as_shell in $as_candidate_shells $SHELL; do
239 1.65 christos # Try only shells that exist, to save several forks.
240 1.65 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 1.65 christos { ("$as_shell") 2> /dev/null <<\_ASEOF
242 1.65 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 1.65 christos emulate sh
244 1.65 christos NULLCMD=:
245 1.65 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 1.65 christos # is contrary to our usage. Disable this feature.
247 1.65 christos alias -g '${1+"$@"}'='"$@"'
248 1.65 christos setopt NO_GLOB_SUBST
249 1.65 christos else
250 1.65 christos case `(set -o) 2>/dev/null` in
251 1.65 christos *posix*) set -o posix ;;
252 1.65 christos esac
253 1.65 christos
254 1.65 christos fi
255 1.61 christos
256 1.61 christos
257 1.65 christos :
258 1.65 christos _ASEOF
259 1.65 christos }; then
260 1.65 christos CONFIG_SHELL=$as_shell
261 1.65 christos as_have_required=yes
262 1.65 christos if { "$as_shell" 2> /dev/null <<\_ASEOF
263 1.63 apb if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 1.63 apb emulate sh
265 1.63 apb NULLCMD=:
266 1.65 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 1.65 christos # is contrary to our usage. Disable this feature.
268 1.65 christos alias -g '${1+"$@"}'='"$@"'
269 1.65 christos setopt NO_GLOB_SUBST
270 1.65 christos else
271 1.65 christos case `(set -o) 2>/dev/null` in
272 1.65 christos *posix*) set -o posix ;;
273 1.65 christos esac
274 1.65 christos
275 1.65 christos fi
276 1.65 christos
277 1.65 christos
278 1.65 christos :
279 1.65 christos (as_func_return () {
280 1.65 christos (exit $1)
281 1.65 christos }
282 1.65 christos as_func_success () {
283 1.65 christos as_func_return 0
284 1.65 christos }
285 1.65 christos as_func_failure () {
286 1.65 christos as_func_return 1
287 1.65 christos }
288 1.65 christos as_func_ret_success () {
289 1.65 christos return 0
290 1.65 christos }
291 1.65 christos as_func_ret_failure () {
292 1.65 christos return 1
293 1.65 christos }
294 1.65 christos
295 1.65 christos exitcode=0
296 1.65 christos if as_func_success; then
297 1.65 christos :
298 1.65 christos else
299 1.65 christos exitcode=1
300 1.65 christos echo as_func_success failed.
301 1.65 christos fi
302 1.65 christos
303 1.65 christos if as_func_failure; then
304 1.65 christos exitcode=1
305 1.65 christos echo as_func_failure succeeded.
306 1.65 christos fi
307 1.65 christos
308 1.65 christos if as_func_ret_success; then
309 1.65 christos :
310 1.65 christos else
311 1.65 christos exitcode=1
312 1.65 christos echo as_func_ret_success failed.
313 1.65 christos fi
314 1.65 christos
315 1.65 christos if as_func_ret_failure; then
316 1.65 christos exitcode=1
317 1.65 christos echo as_func_ret_failure succeeded.
318 1.65 christos fi
319 1.65 christos
320 1.65 christos if ( set x; as_func_ret_success y && test x = "$1" ); then
321 1.65 christos :
322 1.65 christos else
323 1.65 christos exitcode=1
324 1.65 christos echo positional parameters were not saved.
325 1.65 christos fi
326 1.65 christos
327 1.65 christos test $exitcode = 0) || { (exit 1); exit 1; }
328 1.65 christos
329 1.65 christos (
330 1.65 christos as_lineno_1=$LINENO
331 1.65 christos as_lineno_2=$LINENO
332 1.65 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
333 1.65 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334 1.65 christos
335 1.65 christos _ASEOF
336 1.65 christos }; then
337 1.65 christos break
338 1.65 christos fi
339 1.65 christos
340 1.63 apb fi
341 1.53 dogcow
342 1.65 christos done
343 1.65 christos
344 1.65 christos if test "x$CONFIG_SHELL" != x; then
345 1.65 christos for as_var in BASH_ENV ENV
346 1.65 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 1.65 christos done
348 1.65 christos export CONFIG_SHELL
349 1.65 christos exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 1.65 christos fi
351 1.65 christos
352 1.65 christos
353 1.65 christos if test $as_have_required = no; then
354 1.65 christos echo This script requires a shell more modern than all the
355 1.65 christos echo shells that I found on your system. Please install a
356 1.65 christos echo modern shell, or manually run the script under such a
357 1.65 christos echo shell if you do have one.
358 1.65 christos { (exit 1); exit 1; }
359 1.65 christos fi
360 1.65 christos
361 1.65 christos
362 1.65 christos fi
363 1.65 christos
364 1.65 christos fi
365 1.65 christos
366 1.65 christos
367 1.65 christos
368 1.65 christos (eval "as_func_return () {
369 1.65 christos (exit \$1)
370 1.65 christos }
371 1.65 christos as_func_success () {
372 1.65 christos as_func_return 0
373 1.65 christos }
374 1.65 christos as_func_failure () {
375 1.65 christos as_func_return 1
376 1.65 christos }
377 1.65 christos as_func_ret_success () {
378 1.65 christos return 0
379 1.65 christos }
380 1.65 christos as_func_ret_failure () {
381 1.65 christos return 1
382 1.65 christos }
383 1.65 christos
384 1.65 christos exitcode=0
385 1.65 christos if as_func_success; then
386 1.65 christos :
387 1.65 christos else
388 1.65 christos exitcode=1
389 1.65 christos echo as_func_success failed.
390 1.65 christos fi
391 1.65 christos
392 1.65 christos if as_func_failure; then
393 1.65 christos exitcode=1
394 1.65 christos echo as_func_failure succeeded.
395 1.65 christos fi
396 1.65 christos
397 1.65 christos if as_func_ret_success; then
398 1.65 christos :
399 1.65 christos else
400 1.65 christos exitcode=1
401 1.65 christos echo as_func_ret_success failed.
402 1.65 christos fi
403 1.65 christos
404 1.65 christos if as_func_ret_failure; then
405 1.65 christos exitcode=1
406 1.65 christos echo as_func_ret_failure succeeded.
407 1.65 christos fi
408 1.65 christos
409 1.65 christos if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 1.65 christos :
411 1.65 christos else
412 1.65 christos exitcode=1
413 1.65 christos echo positional parameters were not saved.
414 1.65 christos fi
415 1.65 christos
416 1.65 christos test \$exitcode = 0") || {
417 1.65 christos echo No shell found that supports shell functions.
418 1.65 christos echo Please tell autoconf@gnu.org about your system,
419 1.65 christos echo including any error possibly output before this
420 1.65 christos echo message
421 1.65 christos }
422 1.65 christos
423 1.65 christos
424 1.65 christos
425 1.65 christos as_lineno_1=$LINENO
426 1.65 christos as_lineno_2=$LINENO
427 1.65 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
428 1.65 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 1.65 christos
430 1.65 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 1.65 christos # uniformly replaced by the line number. The first 'sed' inserts a
432 1.65 christos # line-number line after each line using $LINENO; the second 'sed'
433 1.65 christos # does the real work. The second script uses 'N' to pair each
434 1.65 christos # line-number line with the line containing $LINENO, and appends
435 1.65 christos # trailing '-' during substitution so that $LINENO is not a special
436 1.65 christos # case at line end.
437 1.65 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 1.65 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
439 1.65 christos # E. McMahon (1931-1989) for sed's syntax. :-)
440 1.65 christos sed -n '
441 1.65 christos p
442 1.65 christos /[$]LINENO/=
443 1.65 christos ' <$as_myself |
444 1.65 christos sed '
445 1.65 christos s/[$]LINENO.*/&-/
446 1.65 christos t lineno
447 1.65 christos b
448 1.65 christos :lineno
449 1.65 christos N
450 1.65 christos :loop
451 1.65 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 1.65 christos t loop
453 1.65 christos s/-\n.*//
454 1.65 christos ' >$as_me.lineno &&
455 1.65 christos chmod +x "$as_me.lineno" ||
456 1.65 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 1.65 christos { (exit 1); exit 1; }; }
458 1.65 christos
459 1.65 christos # Don't try to exec as it changes $[0], causing all sort of problems
460 1.65 christos # (the dirname of $[0] is not the place where we might find the
461 1.65 christos # original and so on. Autoconf is especially sensitive to this).
462 1.65 christos . "./$as_me.lineno"
463 1.65 christos # Exit status is that of the last command.
464 1.65 christos exit
465 1.65 christos }
466 1.65 christos
467 1.65 christos
468 1.65 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 1.65 christos as_dirname=dirname
470 1.65 christos else
471 1.65 christos as_dirname=false
472 1.65 christos fi
473 1.65 christos
474 1.65 christos ECHO_C= ECHO_N= ECHO_T=
475 1.65 christos case `echo -n x` in
476 1.65 christos -n*)
477 1.65 christos case `echo 'x\c'` in
478 1.65 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 1.65 christos *) ECHO_C='\c';;
480 1.65 christos esac;;
481 1.65 christos *)
482 1.65 christos ECHO_N='-n';;
483 1.65 christos esac
484 1.1 tv
485 1.65 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
486 1.65 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 1.1 tv as_expr=expr
488 1.1 tv else
489 1.1 tv as_expr=false
490 1.1 tv fi
491 1.1 tv
492 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
493 1.65 christos if test -d conf$$.dir; then
494 1.65 christos rm -f conf$$.dir/conf$$.file
495 1.65 christos else
496 1.65 christos rm -f conf$$.dir
497 1.65 christos mkdir conf$$.dir
498 1.65 christos fi
499 1.1 tv echo >conf$$.file
500 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
501 1.65 christos as_ln_s='ln -s'
502 1.65 christos # ... but there are two gotchas:
503 1.65 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 1.65 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 1.65 christos # In both cases, we have to default to `cp -p'.
506 1.65 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 1.1 tv as_ln_s='cp -p'
508 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
509 1.1 tv as_ln_s=ln
510 1.1 tv else
511 1.1 tv as_ln_s='cp -p'
512 1.1 tv fi
513 1.65 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 1.65 christos rmdir conf$$.dir 2>/dev/null
515 1.1 tv
516 1.65 christos if mkdir -p . 2>/dev/null; then
517 1.65 christos as_mkdir_p=:
518 1.65 christos else
519 1.65 christos test -d ./-p && rmdir ./-p
520 1.65 christos as_mkdir_p=false
521 1.65 christos fi
522 1.63 apb
523 1.65 christos if test -x / >/dev/null 2>&1; then
524 1.65 christos as_test_x='test -x'
525 1.61 christos else
526 1.65 christos if ls -dL / >/dev/null 2>&1; then
527 1.65 christos as_ls_L_option=L
528 1.65 christos else
529 1.65 christos as_ls_L_option=
530 1.65 christos fi
531 1.65 christos as_test_x='
532 1.65 christos eval sh -c '\''
533 1.65 christos if test -d "$1"; then
534 1.65 christos test -d "$1/.";
535 1.65 christos else
536 1.65 christos case $1 in
537 1.65 christos -*)set "./$1";;
538 1.65 christos esac;
539 1.65 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 1.65 christos ???[sx]*):;;*)false;;esac;fi
541 1.65 christos '\'' sh
542 1.65 christos '
543 1.61 christos fi
544 1.65 christos as_executable_p=$as_test_x
545 1.65 christos
546 1.65 christos # Sed expression to map a string onto a valid CPP name.
547 1.65 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 1.65 christos
549 1.65 christos # Sed expression to map a string onto a valid variable name.
550 1.65 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551 1.61 christos
552 1.1 tv
553 1.1 tv
554 1.65 christos exec 7<&0 </dev/null 6>&1
555 1.1 tv
556 1.1 tv # Name of the host.
557 1.1 tv # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 1.1 tv # so uname gets run too.
559 1.1 tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 1.1 tv
561 1.1 tv #
562 1.1 tv # Initializations.
563 1.1 tv #
564 1.1 tv ac_default_prefix=/usr/local
565 1.65 christos ac_clean_files=
566 1.65 christos ac_config_libobj_dir=.
567 1.65 christos LIBOBJS=
568 1.1 tv cross_compiling=no
569 1.1 tv subdirs=
570 1.65 christos MFLAGS=
571 1.65 christos MAKEFLAGS=
572 1.1 tv SHELL=${CONFIG_SHELL-/bin/sh}
573 1.1 tv
574 1.65 christos # Identity of this package.
575 1.65 christos PACKAGE_NAME='libnbcompat'
576 1.65 christos PACKAGE_TARNAME='libnbcompat'
577 1.65 christos PACKAGE_VERSION='noversion'
578 1.65 christos PACKAGE_STRING='libnbcompat noversion'
579 1.65 christos PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
580 1.1 tv
581 1.1 tv # Factoring default headers for most tests.
582 1.1 tv ac_includes_default="\
583 1.1 tv #include <stdio.h>
584 1.65 christos #ifdef HAVE_SYS_TYPES_H
585 1.1 tv # include <sys/types.h>
586 1.1 tv #endif
587 1.65 christos #ifdef HAVE_SYS_STAT_H
588 1.1 tv # include <sys/stat.h>
589 1.1 tv #endif
590 1.65 christos #ifdef STDC_HEADERS
591 1.1 tv # include <stdlib.h>
592 1.1 tv # include <stddef.h>
593 1.1 tv #else
594 1.65 christos # ifdef HAVE_STDLIB_H
595 1.1 tv # include <stdlib.h>
596 1.1 tv # endif
597 1.1 tv #endif
598 1.65 christos #ifdef HAVE_STRING_H
599 1.65 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 1.1 tv # include <memory.h>
601 1.1 tv # endif
602 1.1 tv # include <string.h>
603 1.1 tv #endif
604 1.65 christos #ifdef HAVE_STRINGS_H
605 1.1 tv # include <strings.h>
606 1.1 tv #endif
607 1.65 christos #ifdef HAVE_INTTYPES_H
608 1.1 tv # include <inttypes.h>
609 1.1 tv #endif
610 1.65 christos #ifdef HAVE_STDINT_H
611 1.65 christos # include <stdint.h>
612 1.65 christos #endif
613 1.65 christos #ifdef HAVE_UNISTD_H
614 1.1 tv # include <unistd.h>
615 1.1 tv #endif"
616 1.1 tv
617 1.65 christos ac_subst_vars='SHELL
618 1.65 christos PATH_SEPARATOR
619 1.65 christos PACKAGE_NAME
620 1.65 christos PACKAGE_TARNAME
621 1.65 christos PACKAGE_VERSION
622 1.65 christos PACKAGE_STRING
623 1.65 christos PACKAGE_BUGREPORT
624 1.65 christos exec_prefix
625 1.65 christos prefix
626 1.65 christos program_transform_name
627 1.65 christos bindir
628 1.65 christos sbindir
629 1.65 christos libexecdir
630 1.65 christos datarootdir
631 1.65 christos datadir
632 1.65 christos sysconfdir
633 1.65 christos sharedstatedir
634 1.65 christos localstatedir
635 1.65 christos includedir
636 1.65 christos oldincludedir
637 1.65 christos docdir
638 1.65 christos infodir
639 1.65 christos htmldir
640 1.65 christos dvidir
641 1.65 christos pdfdir
642 1.65 christos psdir
643 1.65 christos libdir
644 1.65 christos localedir
645 1.65 christos mandir
646 1.65 christos DEFS
647 1.65 christos ECHO_C
648 1.65 christos ECHO_N
649 1.65 christos ECHO_T
650 1.65 christos LIBS
651 1.65 christos build_alias
652 1.65 christos host_alias
653 1.65 christos target_alias
654 1.65 christos CC
655 1.65 christos CFLAGS
656 1.65 christos LDFLAGS
657 1.65 christos CPPFLAGS
658 1.65 christos ac_ct_CC
659 1.65 christos EXEEXT
660 1.65 christos OBJEXT
661 1.65 christos CPP
662 1.65 christos GREP
663 1.65 christos EGREP
664 1.65 christos BSHELL
665 1.65 christos ALLOCA
666 1.65 christos LIBOBJS
667 1.65 christos LTLIBOBJS'
668 1.65 christos ac_subst_files=''
669 1.65 christos ac_precious_vars='build_alias
670 1.65 christos host_alias
671 1.65 christos target_alias
672 1.65 christos CC
673 1.65 christos CFLAGS
674 1.65 christos LDFLAGS
675 1.65 christos LIBS
676 1.65 christos CPPFLAGS
677 1.65 christos CPP'
678 1.65 christos
679 1.65 christos
680 1.1 tv # Initialize some variables set by options.
681 1.1 tv ac_init_help=
682 1.1 tv ac_init_version=false
683 1.1 tv # The variables have the same names as the options, with
684 1.1 tv # dashes changed to underlines.
685 1.1 tv cache_file=/dev/null
686 1.1 tv exec_prefix=NONE
687 1.1 tv no_create=
688 1.1 tv no_recursion=
689 1.1 tv prefix=NONE
690 1.1 tv program_prefix=NONE
691 1.1 tv program_suffix=NONE
692 1.1 tv program_transform_name=s,x,x,
693 1.1 tv silent=
694 1.1 tv site=
695 1.1 tv srcdir=
696 1.1 tv verbose=
697 1.1 tv x_includes=NONE
698 1.1 tv x_libraries=NONE
699 1.1 tv
700 1.1 tv # Installation directory options.
701 1.1 tv # These are left unexpanded so users can "make install exec_prefix=/foo"
702 1.1 tv # and all the variables that are supposed to be based on exec_prefix
703 1.1 tv # by default will actually change.
704 1.1 tv # Use braces instead of parens because sh, perl, etc. also accept them.
705 1.65 christos # (The list follows the same order as the GNU Coding Standards.)
706 1.1 tv bindir='${exec_prefix}/bin'
707 1.1 tv sbindir='${exec_prefix}/sbin'
708 1.1 tv libexecdir='${exec_prefix}/libexec'
709 1.65 christos datarootdir='${prefix}/share'
710 1.65 christos datadir='${datarootdir}'
711 1.1 tv sysconfdir='${prefix}/etc'
712 1.1 tv sharedstatedir='${prefix}/com'
713 1.1 tv localstatedir='${prefix}/var'
714 1.1 tv includedir='${prefix}/include'
715 1.1 tv oldincludedir='/usr/include'
716 1.65 christos docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 1.65 christos infodir='${datarootdir}/info'
718 1.65 christos htmldir='${docdir}'
719 1.65 christos dvidir='${docdir}'
720 1.65 christos pdfdir='${docdir}'
721 1.65 christos psdir='${docdir}'
722 1.65 christos libdir='${exec_prefix}/lib'
723 1.65 christos localedir='${datarootdir}/locale'
724 1.65 christos mandir='${datarootdir}/man'
725 1.63 apb
726 1.1 tv ac_prev=
727 1.65 christos ac_dashdash=
728 1.1 tv for ac_option
729 1.1 tv do
730 1.1 tv # If the previous option needs an argument, assign it.
731 1.1 tv if test -n "$ac_prev"; then
732 1.65 christos eval $ac_prev=\$ac_option
733 1.1 tv ac_prev=
734 1.1 tv continue
735 1.1 tv fi
736 1.1 tv
737 1.65 christos case $ac_option in
738 1.65 christos *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 1.65 christos *) ac_optarg=yes ;;
740 1.65 christos esac
741 1.1 tv
742 1.1 tv # Accept the important Cygnus configure options, so we can diagnose typos.
743 1.1 tv
744 1.65 christos case $ac_dashdash$ac_option in
745 1.65 christos --)
746 1.65 christos ac_dashdash=yes ;;
747 1.1 tv
748 1.1 tv -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 1.1 tv ac_prev=bindir ;;
750 1.1 tv -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 1.1 tv bindir=$ac_optarg ;;
752 1.1 tv
753 1.1 tv -build | --build | --buil | --bui | --bu)
754 1.1 tv ac_prev=build_alias ;;
755 1.1 tv -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 1.1 tv build_alias=$ac_optarg ;;
757 1.1 tv
758 1.1 tv -cache-file | --cache-file | --cache-fil | --cache-fi \
759 1.1 tv | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 1.1 tv ac_prev=cache_file ;;
761 1.1 tv -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 1.1 tv | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 1.1 tv cache_file=$ac_optarg ;;
764 1.1 tv
765 1.1 tv --config-cache | -C)
766 1.1 tv cache_file=config.cache ;;
767 1.1 tv
768 1.65 christos -datadir | --datadir | --datadi | --datad)
769 1.1 tv ac_prev=datadir ;;
770 1.65 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 1.1 tv datadir=$ac_optarg ;;
772 1.1 tv
773 1.65 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 1.65 christos | --dataroo | --dataro | --datar)
775 1.65 christos ac_prev=datarootdir ;;
776 1.65 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 1.65 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 1.65 christos datarootdir=$ac_optarg ;;
779 1.65 christos
780 1.1 tv -disable-* | --disable-*)
781 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 1.1 tv # Reject names that are not valid shell variable names.
783 1.65 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 1.1 tv { (exit 1); exit 1; }; }
786 1.65 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 1.65 christos eval enable_$ac_feature=no ;;
788 1.65 christos
789 1.65 christos -docdir | --docdir | --docdi | --doc | --do)
790 1.65 christos ac_prev=docdir ;;
791 1.65 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 1.65 christos docdir=$ac_optarg ;;
793 1.65 christos
794 1.65 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 1.65 christos ac_prev=dvidir ;;
796 1.65 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 1.65 christos dvidir=$ac_optarg ;;
798 1.1 tv
799 1.1 tv -enable-* | --enable-*)
800 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 1.1 tv # Reject names that are not valid shell variable names.
802 1.65 christos expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 1.1 tv { (exit 1); exit 1; }; }
805 1.65 christos ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 1.65 christos eval enable_$ac_feature=\$ac_optarg ;;
807 1.1 tv
808 1.1 tv -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 1.1 tv | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 1.1 tv | --exec | --exe | --ex)
811 1.1 tv ac_prev=exec_prefix ;;
812 1.1 tv -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 1.1 tv | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 1.1 tv | --exec=* | --exe=* | --ex=*)
815 1.1 tv exec_prefix=$ac_optarg ;;
816 1.1 tv
817 1.1 tv -gas | --gas | --ga | --g)
818 1.1 tv # Obsolete; use --with-gas.
819 1.1 tv with_gas=yes ;;
820 1.1 tv
821 1.1 tv -help | --help | --hel | --he | -h)
822 1.1 tv ac_init_help=long ;;
823 1.1 tv -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 1.1 tv ac_init_help=recursive ;;
825 1.1 tv -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 1.1 tv ac_init_help=short ;;
827 1.1 tv
828 1.1 tv -host | --host | --hos | --ho)
829 1.1 tv ac_prev=host_alias ;;
830 1.1 tv -host=* | --host=* | --hos=* | --ho=*)
831 1.1 tv host_alias=$ac_optarg ;;
832 1.1 tv
833 1.65 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 1.65 christos ac_prev=htmldir ;;
835 1.65 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 1.65 christos | --ht=*)
837 1.65 christos htmldir=$ac_optarg ;;
838 1.65 christos
839 1.1 tv -includedir | --includedir | --includedi | --included | --include \
840 1.1 tv | --includ | --inclu | --incl | --inc)
841 1.1 tv ac_prev=includedir ;;
842 1.1 tv -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 1.1 tv | --includ=* | --inclu=* | --incl=* | --inc=*)
844 1.1 tv includedir=$ac_optarg ;;
845 1.1 tv
846 1.1 tv -infodir | --infodir | --infodi | --infod | --info | --inf)
847 1.1 tv ac_prev=infodir ;;
848 1.1 tv -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 1.1 tv infodir=$ac_optarg ;;
850 1.1 tv
851 1.1 tv -libdir | --libdir | --libdi | --libd)
852 1.1 tv ac_prev=libdir ;;
853 1.1 tv -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 1.1 tv libdir=$ac_optarg ;;
855 1.1 tv
856 1.1 tv -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 1.1 tv | --libexe | --libex | --libe)
858 1.1 tv ac_prev=libexecdir ;;
859 1.1 tv -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 1.1 tv | --libexe=* | --libex=* | --libe=*)
861 1.1 tv libexecdir=$ac_optarg ;;
862 1.1 tv
863 1.65 christos -localedir | --localedir | --localedi | --localed | --locale)
864 1.65 christos ac_prev=localedir ;;
865 1.65 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 1.65 christos localedir=$ac_optarg ;;
867 1.65 christos
868 1.1 tv -localstatedir | --localstatedir | --localstatedi | --localstated \
869 1.65 christos | --localstate | --localstat | --localsta | --localst | --locals)
870 1.1 tv ac_prev=localstatedir ;;
871 1.1 tv -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 1.65 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 1.1 tv localstatedir=$ac_optarg ;;
874 1.1 tv
875 1.1 tv -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 1.1 tv ac_prev=mandir ;;
877 1.1 tv -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 1.1 tv mandir=$ac_optarg ;;
879 1.1 tv
880 1.1 tv -nfp | --nfp | --nf)
881 1.1 tv # Obsolete; use --without-fp.
882 1.1 tv with_fp=no ;;
883 1.1 tv
884 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 1.65 christos | --no-cr | --no-c | -n)
886 1.1 tv no_create=yes ;;
887 1.1 tv
888 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 1.1 tv no_recursion=yes ;;
891 1.1 tv
892 1.1 tv -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 1.1 tv | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 1.1 tv | --oldin | --oldi | --old | --ol | --o)
895 1.1 tv ac_prev=oldincludedir ;;
896 1.1 tv -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 1.1 tv | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 1.1 tv | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 1.1 tv oldincludedir=$ac_optarg ;;
900 1.1 tv
901 1.1 tv -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 1.1 tv ac_prev=prefix ;;
903 1.1 tv -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 1.1 tv prefix=$ac_optarg ;;
905 1.1 tv
906 1.1 tv -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 1.1 tv | --program-pre | --program-pr | --program-p)
908 1.1 tv ac_prev=program_prefix ;;
909 1.1 tv -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 1.1 tv | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 1.1 tv program_prefix=$ac_optarg ;;
912 1.1 tv
913 1.1 tv -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 1.1 tv | --program-suf | --program-su | --program-s)
915 1.1 tv ac_prev=program_suffix ;;
916 1.1 tv -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 1.1 tv | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 1.1 tv program_suffix=$ac_optarg ;;
919 1.1 tv
920 1.1 tv -program-transform-name | --program-transform-name \
921 1.1 tv | --program-transform-nam | --program-transform-na \
922 1.1 tv | --program-transform-n | --program-transform- \
923 1.1 tv | --program-transform | --program-transfor \
924 1.1 tv | --program-transfo | --program-transf \
925 1.1 tv | --program-trans | --program-tran \
926 1.1 tv | --progr-tra | --program-tr | --program-t)
927 1.1 tv ac_prev=program_transform_name ;;
928 1.1 tv -program-transform-name=* | --program-transform-name=* \
929 1.1 tv | --program-transform-nam=* | --program-transform-na=* \
930 1.1 tv | --program-transform-n=* | --program-transform-=* \
931 1.1 tv | --program-transform=* | --program-transfor=* \
932 1.1 tv | --program-transfo=* | --program-transf=* \
933 1.1 tv | --program-trans=* | --program-tran=* \
934 1.1 tv | --progr-tra=* | --program-tr=* | --program-t=*)
935 1.1 tv program_transform_name=$ac_optarg ;;
936 1.1 tv
937 1.65 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 1.65 christos ac_prev=pdfdir ;;
939 1.65 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 1.65 christos pdfdir=$ac_optarg ;;
941 1.65 christos
942 1.65 christos -psdir | --psdir | --psdi | --psd | --ps)
943 1.65 christos ac_prev=psdir ;;
944 1.65 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 1.65 christos psdir=$ac_optarg ;;
946 1.65 christos
947 1.1 tv -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 1.1 tv | -silent | --silent | --silen | --sile | --sil)
949 1.1 tv silent=yes ;;
950 1.1 tv
951 1.1 tv -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 1.1 tv ac_prev=sbindir ;;
953 1.1 tv -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 1.1 tv | --sbi=* | --sb=*)
955 1.1 tv sbindir=$ac_optarg ;;
956 1.1 tv
957 1.1 tv -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 1.1 tv | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 1.1 tv | --sharedst | --shareds | --shared | --share | --shar \
960 1.1 tv | --sha | --sh)
961 1.1 tv ac_prev=sharedstatedir ;;
962 1.1 tv -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 1.1 tv | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 1.1 tv | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 1.1 tv | --sha=* | --sh=*)
966 1.1 tv sharedstatedir=$ac_optarg ;;
967 1.1 tv
968 1.1 tv -site | --site | --sit)
969 1.1 tv ac_prev=site ;;
970 1.1 tv -site=* | --site=* | --sit=*)
971 1.1 tv site=$ac_optarg ;;
972 1.1 tv
973 1.1 tv -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 1.1 tv ac_prev=srcdir ;;
975 1.1 tv -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 1.1 tv srcdir=$ac_optarg ;;
977 1.1 tv
978 1.1 tv -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 1.1 tv | --syscon | --sysco | --sysc | --sys | --sy)
980 1.1 tv ac_prev=sysconfdir ;;
981 1.1 tv -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 1.1 tv | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 1.1 tv sysconfdir=$ac_optarg ;;
984 1.1 tv
985 1.1 tv -target | --target | --targe | --targ | --tar | --ta | --t)
986 1.1 tv ac_prev=target_alias ;;
987 1.1 tv -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 1.1 tv target_alias=$ac_optarg ;;
989 1.1 tv
990 1.1 tv -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 1.1 tv verbose=yes ;;
992 1.1 tv
993 1.1 tv -version | --version | --versio | --versi | --vers | -V)
994 1.1 tv ac_init_version=: ;;
995 1.1 tv
996 1.1 tv -with-* | --with-*)
997 1.1 tv ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 1.1 tv # Reject names that are not valid shell variable names.
999 1.65 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 1.1 tv { (exit 1); exit 1; }; }
1002 1.65 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 1.65 christos eval with_$ac_package=\$ac_optarg ;;
1004 1.1 tv
1005 1.1 tv -without-* | --without-*)
1006 1.1 tv ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 1.1 tv # Reject names that are not valid shell variable names.
1008 1.65 christos expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 1.1 tv { (exit 1); exit 1; }; }
1011 1.65 christos ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 1.65 christos eval with_$ac_package=no ;;
1013 1.1 tv
1014 1.1 tv --x)
1015 1.1 tv # Obsolete; use --with-x.
1016 1.1 tv with_x=yes ;;
1017 1.1 tv
1018 1.1 tv -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 1.1 tv | --x-incl | --x-inc | --x-in | --x-i)
1020 1.1 tv ac_prev=x_includes ;;
1021 1.1 tv -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 1.1 tv | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 1.1 tv x_includes=$ac_optarg ;;
1024 1.1 tv
1025 1.1 tv -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 1.1 tv | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 1.1 tv ac_prev=x_libraries ;;
1028 1.1 tv -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 1.1 tv | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 1.1 tv x_libraries=$ac_optarg ;;
1031 1.1 tv
1032 1.1 tv -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 1.1 tv Try \`$0 --help' for more information." >&2
1034 1.1 tv { (exit 1); exit 1; }; }
1035 1.1 tv ;;
1036 1.1 tv
1037 1.1 tv *=*)
1038 1.1 tv ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 1.1 tv # Reject names that are not valid shell variable names.
1040 1.1 tv expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 1.1 tv { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 1.1 tv { (exit 1); exit 1; }; }
1043 1.65 christos eval $ac_envvar=\$ac_optarg
1044 1.1 tv export $ac_envvar ;;
1045 1.1 tv
1046 1.1 tv *)
1047 1.1 tv # FIXME: should be removed in autoconf 3.0.
1048 1.1 tv echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 1.1 tv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 1.1 tv echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 1.1 tv : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 1.1 tv ;;
1053 1.1 tv
1054 1.1 tv esac
1055 1.1 tv done
1056 1.1 tv
1057 1.1 tv if test -n "$ac_prev"; then
1058 1.1 tv ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 1.1 tv { echo "$as_me: error: missing argument to $ac_option" >&2
1060 1.1 tv { (exit 1); exit 1; }; }
1061 1.1 tv fi
1062 1.1 tv
1063 1.65 christos # Be sure to have absolute directory names.
1064 1.65 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 1.65 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1066 1.65 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 1.65 christos libdir localedir mandir
1068 1.1 tv do
1069 1.65 christos eval ac_val=\$$ac_var
1070 1.1 tv case $ac_val in
1071 1.65 christos [\\/$]* | ?:[\\/]* ) continue;;
1072 1.65 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 1.1 tv esac
1074 1.65 christos { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 1.65 christos { (exit 1); exit 1; }; }
1076 1.1 tv done
1077 1.1 tv
1078 1.1 tv # There might be people who depend on the old broken behavior: `$host'
1079 1.1 tv # used to hold the argument of --host etc.
1080 1.65 christos # FIXME: To remove some day.
1081 1.1 tv build=$build_alias
1082 1.1 tv host=$host_alias
1083 1.1 tv target=$target_alias
1084 1.1 tv
1085 1.65 christos # FIXME: To remove some day.
1086 1.1 tv if test "x$host_alias" != x; then
1087 1.1 tv if test "x$build_alias" = x; then
1088 1.1 tv cross_compiling=maybe
1089 1.1 tv echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 1.1 tv If a cross compiler is detected then cross compile mode will be used." >&2
1091 1.1 tv elif test "x$build_alias" != "x$host_alias"; then
1092 1.1 tv cross_compiling=yes
1093 1.1 tv fi
1094 1.1 tv fi
1095 1.1 tv
1096 1.1 tv ac_tool_prefix=
1097 1.1 tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098 1.1 tv
1099 1.1 tv test "$silent" = yes && exec 6>/dev/null
1100 1.1 tv
1101 1.65 christos
1102 1.65 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 1.65 christos ac_ls_di=`ls -di .` &&
1104 1.65 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 1.65 christos { echo "$as_me: error: Working directory cannot be determined" >&2
1106 1.65 christos { (exit 1); exit 1; }; }
1107 1.65 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 1.65 christos { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 1.65 christos { (exit 1); exit 1; }; }
1110 1.65 christos
1111 1.65 christos
1112 1.1 tv # Find the source files, if location was not specified.
1113 1.1 tv if test -z "$srcdir"; then
1114 1.1 tv ac_srcdir_defaulted=yes
1115 1.65 christos # Try the directory containing this script, then the parent directory.
1116 1.65 christos ac_confdir=`$as_dirname -- "$0" ||
1117 1.65 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 1.65 christos X"$0" : 'X\(//\)[^/]' \| \
1119 1.65 christos X"$0" : 'X\(//\)$' \| \
1120 1.65 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 1.65 christos echo X"$0" |
1122 1.65 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 1.65 christos s//\1/
1124 1.65 christos q
1125 1.65 christos }
1126 1.65 christos /^X\(\/\/\)[^/].*/{
1127 1.65 christos s//\1/
1128 1.65 christos q
1129 1.65 christos }
1130 1.65 christos /^X\(\/\/\)$/{
1131 1.65 christos s//\1/
1132 1.65 christos q
1133 1.65 christos }
1134 1.65 christos /^X\(\/\).*/{
1135 1.65 christos s//\1/
1136 1.65 christos q
1137 1.65 christos }
1138 1.65 christos s/.*/./; q'`
1139 1.1 tv srcdir=$ac_confdir
1140 1.65 christos if test ! -r "$srcdir/$ac_unique_file"; then
1141 1.1 tv srcdir=..
1142 1.1 tv fi
1143 1.1 tv else
1144 1.1 tv ac_srcdir_defaulted=no
1145 1.1 tv fi
1146 1.65 christos if test ! -r "$srcdir/$ac_unique_file"; then
1147 1.65 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 1.65 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 1.1 tv { (exit 1); exit 1; }; }
1150 1.65 christos fi
1151 1.65 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 1.65 christos ac_abs_confdir=`(
1153 1.65 christos cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 1.1 tv { (exit 1); exit 1; }; }
1155 1.65 christos pwd)`
1156 1.65 christos # When building in place, set srcdir=.
1157 1.65 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 1.65 christos srcdir=.
1159 1.65 christos fi
1160 1.65 christos # Remove unnecessary trailing slashes from srcdir.
1161 1.65 christos # Double slashes in file names in object file debugging info
1162 1.65 christos # mess up M-x gdb in Emacs.
1163 1.65 christos case $srcdir in
1164 1.65 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 1.65 christos esac
1166 1.65 christos for ac_var in $ac_precious_vars; do
1167 1.65 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 1.65 christos eval ac_env_${ac_var}_value=\$${ac_var}
1169 1.65 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 1.65 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 1.65 christos done
1172 1.1 tv
1173 1.1 tv #
1174 1.1 tv # Report the --help message.
1175 1.1 tv #
1176 1.1 tv if test "$ac_init_help" = "long"; then
1177 1.1 tv # Omit some internal or obsolete options to make the list less imposing.
1178 1.1 tv # This message is too long to be a string in the A/UX 3.1 sh.
1179 1.65 christos cat <<_ACEOF
1180 1.1 tv \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
1181 1.1 tv
1182 1.1 tv Usage: $0 [OPTION]... [VAR=VALUE]...
1183 1.1 tv
1184 1.1 tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 1.1 tv VAR=VALUE. See below for descriptions of some of the useful variables.
1186 1.1 tv
1187 1.1 tv Defaults for the options are specified in brackets.
1188 1.1 tv
1189 1.1 tv Configuration:
1190 1.1 tv -h, --help display this help and exit
1191 1.1 tv --help=short display options specific to this package
1192 1.1 tv --help=recursive display the short help of all the included packages
1193 1.1 tv -V, --version display version information and exit
1194 1.1 tv -q, --quiet, --silent do not print \`checking...' messages
1195 1.1 tv --cache-file=FILE cache test results in FILE [disabled]
1196 1.1 tv -C, --config-cache alias for \`--cache-file=config.cache'
1197 1.1 tv -n, --no-create do not create output files
1198 1.1 tv --srcdir=DIR find the sources in DIR [configure dir or \`..']
1199 1.1 tv
1200 1.1 tv Installation directories:
1201 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
1202 1.65 christos [$ac_default_prefix]
1203 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 1.65 christos [PREFIX]
1205 1.1 tv
1206 1.1 tv By default, \`make install' will install all the files in
1207 1.1 tv \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 1.1 tv an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 1.1 tv for instance \`--prefix=\$HOME'.
1210 1.1 tv
1211 1.1 tv For better control, use the options below.
1212 1.1 tv
1213 1.1 tv Fine tuning of the installation directories:
1214 1.1 tv --bindir=DIR user executables [EPREFIX/bin]
1215 1.1 tv --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 1.1 tv --libexecdir=DIR program executables [EPREFIX/libexec]
1217 1.1 tv --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 1.1 tv --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 1.1 tv --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 1.1 tv --libdir=DIR object code libraries [EPREFIX/lib]
1221 1.1 tv --includedir=DIR C header files [PREFIX/include]
1222 1.1 tv --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 1.65 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 1.65 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 1.65 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1226 1.65 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 1.65 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1228 1.65 christos --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat]
1229 1.65 christos --htmldir=DIR html documentation [DOCDIR]
1230 1.65 christos --dvidir=DIR dvi documentation [DOCDIR]
1231 1.65 christos --pdfdir=DIR pdf documentation [DOCDIR]
1232 1.65 christos --psdir=DIR ps documentation [DOCDIR]
1233 1.65 christos _ACEOF
1234 1.1 tv
1235 1.65 christos cat <<\_ACEOF
1236 1.65 christos _ACEOF
1237 1.1 tv fi
1238 1.1 tv
1239 1.1 tv if test -n "$ac_init_help"; then
1240 1.1 tv case $ac_init_help in
1241 1.1 tv short | recursive ) echo "Configuration of libnbcompat noversion:";;
1242 1.1 tv esac
1243 1.65 christos cat <<\_ACEOF
1244 1.1 tv
1245 1.1 tv Some influential environment variables:
1246 1.1 tv CC C compiler command
1247 1.1 tv CFLAGS C compiler flags
1248 1.1 tv LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1249 1.1 tv nonstandard directory <lib dir>
1250 1.65 christos LIBS libraries to pass to the linker, e.g. -l<library>
1251 1.65 christos CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1252 1.65 christos you have headers in a nonstandard directory <include dir>
1253 1.1 tv CPP C preprocessor
1254 1.1 tv
1255 1.1 tv Use these variables to override the choices made by `configure' or to help
1256 1.1 tv it to find libraries and programs with nonstandard names/locations.
1257 1.1 tv
1258 1.41 salo Report bugs to <lib-bug-people@NetBSD.org>.
1259 1.65 christos _ACEOF
1260 1.65 christos ac_status=$?
1261 1.1 tv fi
1262 1.1 tv
1263 1.1 tv if test "$ac_init_help" = "recursive"; then
1264 1.1 tv # If there are subdirs, report their specific --help.
1265 1.65 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1266 1.65 christos test -d "$ac_dir" || continue
1267 1.65 christos ac_builddir=.
1268 1.65 christos
1269 1.65 christos case "$ac_dir" in
1270 1.65 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271 1.65 christos *)
1272 1.65 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1273 1.65 christos # A ".." for each directory in $ac_dir_suffix.
1274 1.65 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1275 1.65 christos case $ac_top_builddir_sub in
1276 1.65 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1277 1.65 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1278 1.65 christos esac ;;
1279 1.65 christos esac
1280 1.65 christos ac_abs_top_builddir=$ac_pwd
1281 1.65 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1282 1.65 christos # for backward compatibility:
1283 1.65 christos ac_top_builddir=$ac_top_build_prefix
1284 1.65 christos
1285 1.65 christos case $srcdir in
1286 1.65 christos .) # We are building in place.
1287 1.65 christos ac_srcdir=.
1288 1.65 christos ac_top_srcdir=$ac_top_builddir_sub
1289 1.65 christos ac_abs_top_srcdir=$ac_pwd ;;
1290 1.65 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1291 1.65 christos ac_srcdir=$srcdir$ac_dir_suffix;
1292 1.65 christos ac_top_srcdir=$srcdir
1293 1.65 christos ac_abs_top_srcdir=$srcdir ;;
1294 1.65 christos *) # Relative name.
1295 1.65 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1296 1.65 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1297 1.65 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1298 1.65 christos esac
1299 1.65 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1300 1.1 tv
1301 1.65 christos cd "$ac_dir" || { ac_status=$?; continue; }
1302 1.65 christos # Check for guested configure.
1303 1.65 christos if test -f "$ac_srcdir/configure.gnu"; then
1304 1.65 christos echo &&
1305 1.65 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1306 1.65 christos elif test -f "$ac_srcdir/configure"; then
1307 1.65 christos echo &&
1308 1.65 christos $SHELL "$ac_srcdir/configure" --help=recursive
1309 1.65 christos else
1310 1.65 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1311 1.65 christos fi || ac_status=$?
1312 1.65 christos cd "$ac_pwd" || { ac_status=$?; break; }
1313 1.65 christos done
1314 1.1 tv fi
1315 1.1 tv
1316 1.65 christos test -n "$ac_init_help" && exit $ac_status
1317 1.1 tv if $ac_init_version; then
1318 1.65 christos cat <<\_ACEOF
1319 1.1 tv libnbcompat configure noversion
1320 1.65 christos generated by GNU Autoconf 2.61
1321 1.1 tv
1322 1.65 christos Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1323 1.65 christos 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1324 1.1 tv This configure script is free software; the Free Software Foundation
1325 1.1 tv gives unlimited permission to copy, distribute and modify it.
1326 1.65 christos _ACEOF
1327 1.65 christos exit
1328 1.1 tv fi
1329 1.65 christos cat >config.log <<_ACEOF
1330 1.1 tv This file contains any messages produced by compilers while
1331 1.1 tv running configure, to aid debugging if configure makes a mistake.
1332 1.1 tv
1333 1.1 tv It was created by libnbcompat $as_me noversion, which was
1334 1.65 christos generated by GNU Autoconf 2.61. Invocation command line was
1335 1.1 tv
1336 1.1 tv $ $0 $@
1337 1.1 tv
1338 1.65 christos _ACEOF
1339 1.65 christos exec 5>>config.log
1340 1.1 tv {
1341 1.1 tv cat <<_ASUNAME
1342 1.65 christos ## --------- ##
1343 1.65 christos ## Platform. ##
1344 1.65 christos ## --------- ##
1345 1.1 tv
1346 1.1 tv hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1347 1.1 tv uname -m = `(uname -m) 2>/dev/null || echo unknown`
1348 1.1 tv uname -r = `(uname -r) 2>/dev/null || echo unknown`
1349 1.1 tv uname -s = `(uname -s) 2>/dev/null || echo unknown`
1350 1.1 tv uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351 1.1 tv
1352 1.1 tv /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1353 1.1 tv /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1354 1.1 tv
1355 1.1 tv /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1356 1.1 tv /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1357 1.1 tv /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1358 1.65 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1359 1.1 tv /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1360 1.1 tv /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1361 1.1 tv /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1362 1.1 tv
1363 1.65 christos _ASUNAME
1364 1.65 christos
1365 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 1.65 christos for as_dir in $PATH
1367 1.65 christos do
1368 1.65 christos IFS=$as_save_IFS
1369 1.65 christos test -z "$as_dir" && as_dir=.
1370 1.65 christos echo "PATH: $as_dir"
1371 1.65 christos done
1372 1.65 christos IFS=$as_save_IFS
1373 1.63 apb
1374 1.1 tv } >&5
1375 1.1 tv
1376 1.65 christos cat >&5 <<_ACEOF
1377 1.65 christos
1378 1.65 christos
1379 1.65 christos ## ----------- ##
1380 1.65 christos ## Core tests. ##
1381 1.65 christos ## ----------- ##
1382 1.65 christos
1383 1.65 christos _ACEOF
1384 1.1 tv
1385 1.1 tv
1386 1.1 tv # Keep a trace of the command line.
1387 1.1 tv # Strip out --no-create and --no-recursion so they do not pile up.
1388 1.65 christos # Strip out --silent because we don't want to record it for future runs.
1389 1.1 tv # Also quote any args containing shell meta-characters.
1390 1.65 christos # Make two passes to allow for proper duplicate-argument suppression.
1391 1.1 tv ac_configure_args=
1392 1.65 christos ac_configure_args0=
1393 1.65 christos ac_configure_args1=
1394 1.65 christos ac_must_keep_next=false
1395 1.65 christos for ac_pass in 1 2
1396 1.1 tv do
1397 1.65 christos for ac_arg
1398 1.65 christos do
1399 1.65 christos case $ac_arg in
1400 1.65 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1401 1.65 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402 1.65 christos | -silent | --silent | --silen | --sile | --sil)
1403 1.65 christos continue ;;
1404 1.65 christos *\'*)
1405 1.65 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406 1.65 christos esac
1407 1.65 christos case $ac_pass in
1408 1.65 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1409 1.65 christos 2)
1410 1.65 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1411 1.65 christos if test $ac_must_keep_next = true; then
1412 1.65 christos ac_must_keep_next=false # Got value, back to normal.
1413 1.65 christos else
1414 1.65 christos case $ac_arg in
1415 1.65 christos *=* | --config-cache | -C | -disable-* | --disable-* \
1416 1.65 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1417 1.65 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1418 1.65 christos | -with-* | --with-* | -without-* | --without-* | --x)
1419 1.65 christos case "$ac_configure_args0 " in
1420 1.65 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421 1.65 christos esac
1422 1.65 christos ;;
1423 1.65 christos -* ) ac_must_keep_next=true ;;
1424 1.65 christos esac
1425 1.65 christos fi
1426 1.65 christos ac_configure_args="$ac_configure_args '$ac_arg'"
1427 1.65 christos ;;
1428 1.65 christos esac
1429 1.65 christos done
1430 1.1 tv done
1431 1.65 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432 1.65 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433 1.1 tv
1434 1.1 tv # When interrupted or exit'd, cleanup temporary files, and complete
1435 1.1 tv # config.log. We remove comments because anyway the quotes in there
1436 1.1 tv # would cause problems or look ugly.
1437 1.65 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
1438 1.65 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1439 1.1 tv trap 'exit_status=$?
1440 1.1 tv # Save into config.log some information that might help in debugging.
1441 1.65 christos {
1442 1.65 christos echo
1443 1.65 christos
1444 1.65 christos cat <<\_ASBOX
1445 1.65 christos ## ---------------- ##
1446 1.65 christos ## Cache variables. ##
1447 1.65 christos ## ---------------- ##
1448 1.65 christos _ASBOX
1449 1.65 christos echo
1450 1.65 christos # The following way of writing the cache mishandles newlines in values,
1451 1.65 christos (
1452 1.65 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1453 1.65 christos eval ac_val=\$$ac_var
1454 1.65 christos case $ac_val in #(
1455 1.65 christos *${as_nl}*)
1456 1.65 christos case $ac_var in #(
1457 1.65 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1458 1.65 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1459 1.65 christos esac
1460 1.65 christos case $ac_var in #(
1461 1.65 christos _ | IFS | as_nl) ;; #(
1462 1.65 christos *) $as_unset $ac_var ;;
1463 1.65 christos esac ;;
1464 1.65 christos esac
1465 1.65 christos done
1466 1.1 tv (set) 2>&1 |
1467 1.65 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1468 1.65 christos *${as_nl}ac_space=\ *)
1469 1.1 tv sed -n \
1470 1.65 christos "s/'\''/'\''\\\\'\'''\''/g;
1471 1.65 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1472 1.65 christos ;; #(
1473 1.1 tv *)
1474 1.65 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1475 1.1 tv ;;
1476 1.65 christos esac |
1477 1.65 christos sort
1478 1.65 christos )
1479 1.65 christos echo
1480 1.65 christos
1481 1.65 christos cat <<\_ASBOX
1482 1.65 christos ## ----------------- ##
1483 1.65 christos ## Output variables. ##
1484 1.65 christos ## ----------------- ##
1485 1.65 christos _ASBOX
1486 1.65 christos echo
1487 1.65 christos for ac_var in $ac_subst_vars
1488 1.65 christos do
1489 1.65 christos eval ac_val=\$$ac_var
1490 1.65 christos case $ac_val in
1491 1.65 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1492 1.65 christos esac
1493 1.65 christos echo "$ac_var='\''$ac_val'\''"
1494 1.65 christos done | sort
1495 1.65 christos echo
1496 1.65 christos
1497 1.65 christos if test -n "$ac_subst_files"; then
1498 1.65 christos cat <<\_ASBOX
1499 1.65 christos ## ------------------- ##
1500 1.65 christos ## File substitutions. ##
1501 1.65 christos ## ------------------- ##
1502 1.65 christos _ASBOX
1503 1.65 christos echo
1504 1.65 christos for ac_var in $ac_subst_files
1505 1.65 christos do
1506 1.65 christos eval ac_val=\$$ac_var
1507 1.65 christos case $ac_val in
1508 1.65 christos *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1509 1.65 christos esac
1510 1.65 christos echo "$ac_var='\''$ac_val'\''"
1511 1.65 christos done | sort
1512 1.65 christos echo
1513 1.65 christos fi
1514 1.65 christos
1515 1.65 christos if test -s confdefs.h; then
1516 1.65 christos cat <<\_ASBOX
1517 1.65 christos ## ----------- ##
1518 1.65 christos ## confdefs.h. ##
1519 1.65 christos ## ----------- ##
1520 1.65 christos _ASBOX
1521 1.65 christos echo
1522 1.65 christos cat confdefs.h
1523 1.65 christos echo
1524 1.65 christos fi
1525 1.65 christos test "$ac_signal" != 0 &&
1526 1.65 christos echo "$as_me: caught signal $ac_signal"
1527 1.65 christos echo "$as_me: exit $exit_status"
1528 1.65 christos } >&5
1529 1.65 christos rm -f core *.core core.conftest.* &&
1530 1.65 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1531 1.1 tv exit $exit_status
1532 1.65 christos ' 0
1533 1.1 tv for ac_signal in 1 2 13 15; do
1534 1.1 tv trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1535 1.1 tv done
1536 1.1 tv ac_signal=0
1537 1.1 tv
1538 1.1 tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
1539 1.65 christos rm -f -r conftest* confdefs.h
1540 1.65 christos
1541 1.65 christos # Predefined preprocessor variables.
1542 1.65 christos
1543 1.65 christos cat >>confdefs.h <<_ACEOF
1544 1.65 christos #define PACKAGE_NAME "$PACKAGE_NAME"
1545 1.65 christos _ACEOF
1546 1.65 christos
1547 1.65 christos
1548 1.65 christos cat >>confdefs.h <<_ACEOF
1549 1.65 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550 1.65 christos _ACEOF
1551 1.65 christos
1552 1.65 christos
1553 1.65 christos cat >>confdefs.h <<_ACEOF
1554 1.65 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
1555 1.65 christos _ACEOF
1556 1.65 christos
1557 1.65 christos
1558 1.65 christos cat >>confdefs.h <<_ACEOF
1559 1.65 christos #define PACKAGE_STRING "$PACKAGE_STRING"
1560 1.65 christos _ACEOF
1561 1.65 christos
1562 1.65 christos
1563 1.65 christos cat >>confdefs.h <<_ACEOF
1564 1.65 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565 1.65 christos _ACEOF
1566 1.65 christos
1567 1.1 tv
1568 1.1 tv # Let the site file select an alternate cache file if it wants to.
1569 1.1 tv # Prefer explicitly selected file to automatically selected ones.
1570 1.65 christos if test -n "$CONFIG_SITE"; then
1571 1.65 christos set x "$CONFIG_SITE"
1572 1.65 christos elif test "x$prefix" != xNONE; then
1573 1.65 christos set x "$prefix/share/config.site" "$prefix/etc/config.site"
1574 1.65 christos else
1575 1.65 christos set x "$ac_default_prefix/share/config.site" \
1576 1.65 christos "$ac_default_prefix/etc/config.site"
1577 1.1 tv fi
1578 1.65 christos shift
1579 1.65 christos for ac_site_file
1580 1.65 christos do
1581 1.1 tv if test -r "$ac_site_file"; then
1582 1.65 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583 1.1 tv echo "$as_me: loading site script $ac_site_file" >&6;}
1584 1.65 christos sed 's/^/| /' "$ac_site_file" >&5
1585 1.1 tv . "$ac_site_file"
1586 1.1 tv fi
1587 1.1 tv done
1588 1.1 tv
1589 1.1 tv if test -r "$cache_file"; then
1590 1.1 tv # Some versions of bash will fail to source /dev/null (special
1591 1.1 tv # files actually), so we avoid doing that.
1592 1.1 tv if test -f "$cache_file"; then
1593 1.65 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594 1.1 tv echo "$as_me: loading cache $cache_file" >&6;}
1595 1.1 tv case $cache_file in
1596 1.65 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
1597 1.65 christos *) . "./$cache_file";;
1598 1.1 tv esac
1599 1.1 tv fi
1600 1.1 tv else
1601 1.65 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602 1.1 tv echo "$as_me: creating cache $cache_file" >&6;}
1603 1.1 tv >$cache_file
1604 1.1 tv fi
1605 1.1 tv
1606 1.1 tv # Check that the precious variables saved in the cache have kept the same
1607 1.1 tv # value.
1608 1.1 tv ac_cache_corrupted=false
1609 1.65 christos for ac_var in $ac_precious_vars; do
1610 1.1 tv eval ac_old_set=\$ac_cv_env_${ac_var}_set
1611 1.1 tv eval ac_new_set=\$ac_env_${ac_var}_set
1612 1.65 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
1613 1.65 christos eval ac_new_val=\$ac_env_${ac_var}_value
1614 1.1 tv case $ac_old_set,$ac_new_set in
1615 1.1 tv set,)
1616 1.65 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1617 1.1 tv echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1618 1.1 tv ac_cache_corrupted=: ;;
1619 1.1 tv ,set)
1620 1.65 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1621 1.1 tv echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1622 1.1 tv ac_cache_corrupted=: ;;
1623 1.1 tv ,);;
1624 1.1 tv *)
1625 1.1 tv if test "x$ac_old_val" != "x$ac_new_val"; then
1626 1.65 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1627 1.1 tv echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1628 1.65 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1629 1.1 tv echo "$as_me: former value: $ac_old_val" >&2;}
1630 1.65 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1631 1.1 tv echo "$as_me: current value: $ac_new_val" >&2;}
1632 1.65 christos ac_cache_corrupted=:
1633 1.1 tv fi;;
1634 1.1 tv esac
1635 1.65 christos # Pass precious variables to config.status.
1636 1.1 tv if test "$ac_new_set" = set; then
1637 1.1 tv case $ac_new_val in
1638 1.65 christos *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 1.65 christos *) ac_arg=$ac_var=$ac_new_val ;;
1640 1.65 christos esac
1641 1.65 christos case " $ac_configure_args " in
1642 1.65 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1643 1.65 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644 1.1 tv esac
1645 1.1 tv fi
1646 1.1 tv done
1647 1.1 tv if $ac_cache_corrupted; then
1648 1.65 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649 1.1 tv echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650 1.65 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651 1.1 tv echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652 1.1 tv { (exit 1); exit 1; }; }
1653 1.1 tv fi
1654 1.1 tv
1655 1.65 christos
1656 1.65 christos
1657 1.65 christos
1658 1.65 christos
1659 1.65 christos
1660 1.65 christos
1661 1.65 christos
1662 1.65 christos
1663 1.65 christos
1664 1.65 christos
1665 1.65 christos
1666 1.65 christos
1667 1.65 christos
1668 1.65 christos
1669 1.65 christos
1670 1.65 christos
1671 1.65 christos
1672 1.65 christos
1673 1.65 christos
1674 1.65 christos
1675 1.65 christos
1676 1.65 christos
1677 1.65 christos
1678 1.65 christos
1679 1.1 tv ac_ext=c
1680 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1681 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684 1.1 tv
1685 1.1 tv
1686 1.63 apb ac_config_headers="$ac_config_headers nbtool_config.h"
1687 1.1 tv
1688 1.63 apb ac_config_files="$ac_config_files defs.mk"
1689 1.1 tv
1690 1.65 christos
1691 1.57 wiz # Autoheader header and footer
1692 1.57 wiz
1693 1.65 christos
1694 1.65 christos
1695 1.65 christos
1696 1.65 christos
1697 1.65 christos
1698 1.45 jmc # AC_NETBSD
1699 1.20 bjh21
1700 1.1 tv ac_ext=c
1701 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1702 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1703 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1704 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1705 1.1 tv if test -n "$ac_tool_prefix"; then
1706 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1707 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
1708 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1710 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1711 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1712 1.1 tv else
1713 1.1 tv if test -n "$CC"; then
1714 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1715 1.1 tv else
1716 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 1.65 christos for as_dir in $PATH
1718 1.65 christos do
1719 1.65 christos IFS=$as_save_IFS
1720 1.65 christos test -z "$as_dir" && as_dir=.
1721 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1722 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1723 1.65 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
1724 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 1.65 christos break 2
1726 1.65 christos fi
1727 1.65 christos done
1728 1.1 tv done
1729 1.65 christos IFS=$as_save_IFS
1730 1.1 tv
1731 1.1 tv fi
1732 1.1 tv fi
1733 1.1 tv CC=$ac_cv_prog_CC
1734 1.1 tv if test -n "$CC"; then
1735 1.65 christos { echo "$as_me:$LINENO: result: $CC" >&5
1736 1.65 christos echo "${ECHO_T}$CC" >&6; }
1737 1.1 tv else
1738 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1739 1.65 christos echo "${ECHO_T}no" >&6; }
1740 1.1 tv fi
1741 1.1 tv
1742 1.65 christos
1743 1.1 tv fi
1744 1.1 tv if test -z "$ac_cv_prog_CC"; then
1745 1.1 tv ac_ct_CC=$CC
1746 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
1747 1.1 tv set dummy gcc; ac_word=$2
1748 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1750 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1752 1.1 tv else
1753 1.1 tv if test -n "$ac_ct_CC"; then
1754 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 1.1 tv else
1756 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 1.65 christos for as_dir in $PATH
1758 1.65 christos do
1759 1.65 christos IFS=$as_save_IFS
1760 1.65 christos test -z "$as_dir" && as_dir=.
1761 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1762 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1763 1.65 christos ac_cv_prog_ac_ct_CC="gcc"
1764 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 1.65 christos break 2
1766 1.65 christos fi
1767 1.65 christos done
1768 1.1 tv done
1769 1.65 christos IFS=$as_save_IFS
1770 1.1 tv
1771 1.1 tv fi
1772 1.1 tv fi
1773 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 1.1 tv if test -n "$ac_ct_CC"; then
1775 1.65 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 1.65 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
1777 1.1 tv else
1778 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1779 1.65 christos echo "${ECHO_T}no" >&6; }
1780 1.1 tv fi
1781 1.1 tv
1782 1.65 christos if test "x$ac_ct_CC" = x; then
1783 1.65 christos CC=""
1784 1.65 christos else
1785 1.65 christos case $cross_compiling:$ac_tool_warned in
1786 1.65 christos yes:)
1787 1.65 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1788 1.65 christos whose name does not start with the host triplet. If you think this
1789 1.65 christos configuration is useful to you, please write to autoconf@gnu.org." >&5
1790 1.65 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1791 1.65 christos whose name does not start with the host triplet. If you think this
1792 1.65 christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1793 1.65 christos ac_tool_warned=yes ;;
1794 1.65 christos esac
1795 1.65 christos CC=$ac_ct_CC
1796 1.65 christos fi
1797 1.1 tv else
1798 1.1 tv CC="$ac_cv_prog_CC"
1799 1.1 tv fi
1800 1.1 tv
1801 1.1 tv if test -z "$CC"; then
1802 1.65 christos if test -n "$ac_tool_prefix"; then
1803 1.65 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1804 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
1805 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1807 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1808 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1809 1.1 tv else
1810 1.1 tv if test -n "$CC"; then
1811 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1812 1.1 tv else
1813 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 1.65 christos for as_dir in $PATH
1815 1.65 christos do
1816 1.65 christos IFS=$as_save_IFS
1817 1.65 christos test -z "$as_dir" && as_dir=.
1818 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1819 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1820 1.65 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
1821 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 1.65 christos break 2
1823 1.65 christos fi
1824 1.65 christos done
1825 1.1 tv done
1826 1.65 christos IFS=$as_save_IFS
1827 1.1 tv
1828 1.1 tv fi
1829 1.1 tv fi
1830 1.1 tv CC=$ac_cv_prog_CC
1831 1.1 tv if test -n "$CC"; then
1832 1.65 christos { echo "$as_me:$LINENO: result: $CC" >&5
1833 1.65 christos echo "${ECHO_T}$CC" >&6; }
1834 1.1 tv else
1835 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1836 1.65 christos echo "${ECHO_T}no" >&6; }
1837 1.1 tv fi
1838 1.1 tv
1839 1.1 tv
1840 1.65 christos fi
1841 1.1 tv fi
1842 1.1 tv if test -z "$CC"; then
1843 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1844 1.1 tv set dummy cc; ac_word=$2
1845 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1847 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1848 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1849 1.1 tv else
1850 1.1 tv if test -n "$CC"; then
1851 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1852 1.1 tv else
1853 1.1 tv ac_prog_rejected=no
1854 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 1.65 christos for as_dir in $PATH
1856 1.65 christos do
1857 1.65 christos IFS=$as_save_IFS
1858 1.65 christos test -z "$as_dir" && as_dir=.
1859 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1860 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1861 1.65 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1862 1.65 christos ac_prog_rejected=yes
1863 1.65 christos continue
1864 1.65 christos fi
1865 1.65 christos ac_cv_prog_CC="cc"
1866 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 1.65 christos break 2
1868 1.65 christos fi
1869 1.65 christos done
1870 1.1 tv done
1871 1.65 christos IFS=$as_save_IFS
1872 1.1 tv
1873 1.1 tv if test $ac_prog_rejected = yes; then
1874 1.1 tv # We found a bogon in the path, so make sure we never use it.
1875 1.1 tv set dummy $ac_cv_prog_CC
1876 1.1 tv shift
1877 1.1 tv if test $# != 0; then
1878 1.1 tv # We chose a different compiler from the bogus one.
1879 1.1 tv # However, it has the same basename, so the bogon will be chosen
1880 1.1 tv # first if we set CC to just the basename; use the full file name.
1881 1.1 tv shift
1882 1.65 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883 1.1 tv fi
1884 1.1 tv fi
1885 1.1 tv fi
1886 1.1 tv fi
1887 1.1 tv CC=$ac_cv_prog_CC
1888 1.1 tv if test -n "$CC"; then
1889 1.65 christos { echo "$as_me:$LINENO: result: $CC" >&5
1890 1.65 christos echo "${ECHO_T}$CC" >&6; }
1891 1.1 tv else
1892 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1893 1.65 christos echo "${ECHO_T}no" >&6; }
1894 1.1 tv fi
1895 1.1 tv
1896 1.65 christos
1897 1.1 tv fi
1898 1.1 tv if test -z "$CC"; then
1899 1.1 tv if test -n "$ac_tool_prefix"; then
1900 1.65 christos for ac_prog in cl.exe
1901 1.1 tv do
1902 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1906 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1907 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1908 1.1 tv else
1909 1.1 tv if test -n "$CC"; then
1910 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1911 1.1 tv else
1912 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 1.65 christos for as_dir in $PATH
1914 1.65 christos do
1915 1.65 christos IFS=$as_save_IFS
1916 1.65 christos test -z "$as_dir" && as_dir=.
1917 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1918 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1919 1.65 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 1.65 christos break 2
1922 1.65 christos fi
1923 1.65 christos done
1924 1.1 tv done
1925 1.65 christos IFS=$as_save_IFS
1926 1.1 tv
1927 1.1 tv fi
1928 1.1 tv fi
1929 1.1 tv CC=$ac_cv_prog_CC
1930 1.1 tv if test -n "$CC"; then
1931 1.65 christos { echo "$as_me:$LINENO: result: $CC" >&5
1932 1.65 christos echo "${ECHO_T}$CC" >&6; }
1933 1.1 tv else
1934 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1935 1.65 christos echo "${ECHO_T}no" >&6; }
1936 1.1 tv fi
1937 1.1 tv
1938 1.65 christos
1939 1.1 tv test -n "$CC" && break
1940 1.1 tv done
1941 1.1 tv fi
1942 1.1 tv if test -z "$CC"; then
1943 1.1 tv ac_ct_CC=$CC
1944 1.65 christos for ac_prog in cl.exe
1945 1.1 tv do
1946 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 1.1 tv set dummy $ac_prog; ac_word=$2
1948 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1950 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1952 1.1 tv else
1953 1.1 tv if test -n "$ac_ct_CC"; then
1954 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 1.1 tv else
1956 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 1.65 christos for as_dir in $PATH
1958 1.65 christos do
1959 1.65 christos IFS=$as_save_IFS
1960 1.65 christos test -z "$as_dir" && as_dir=.
1961 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
1962 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 1.65 christos ac_cv_prog_ac_ct_CC="$ac_prog"
1964 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 1.65 christos break 2
1966 1.65 christos fi
1967 1.65 christos done
1968 1.1 tv done
1969 1.65 christos IFS=$as_save_IFS
1970 1.1 tv
1971 1.1 tv fi
1972 1.1 tv fi
1973 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 1.1 tv if test -n "$ac_ct_CC"; then
1975 1.65 christos { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 1.65 christos echo "${ECHO_T}$ac_ct_CC" >&6; }
1977 1.1 tv else
1978 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
1979 1.65 christos echo "${ECHO_T}no" >&6; }
1980 1.1 tv fi
1981 1.1 tv
1982 1.65 christos
1983 1.1 tv test -n "$ac_ct_CC" && break
1984 1.1 tv done
1985 1.1 tv
1986 1.65 christos if test "x$ac_ct_CC" = x; then
1987 1.65 christos CC=""
1988 1.65 christos else
1989 1.65 christos case $cross_compiling:$ac_tool_warned in
1990 1.65 christos yes:)
1991 1.65 christos { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1992 1.65 christos whose name does not start with the host triplet. If you think this
1993 1.65 christos configuration is useful to you, please write to autoconf@gnu.org." >&5
1994 1.65 christos echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1995 1.65 christos whose name does not start with the host triplet. If you think this
1996 1.65 christos configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1997 1.65 christos ac_tool_warned=yes ;;
1998 1.65 christos esac
1999 1.65 christos CC=$ac_ct_CC
2000 1.65 christos fi
2001 1.1 tv fi
2002 1.1 tv
2003 1.1 tv fi
2004 1.1 tv
2005 1.65 christos
2006 1.65 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2007 1.65 christos See \`config.log' for more details." >&5
2008 1.65 christos echo "$as_me: error: no acceptable C compiler found in \$PATH
2009 1.65 christos See \`config.log' for more details." >&2;}
2010 1.1 tv { (exit 1); exit 1; }; }
2011 1.1 tv
2012 1.1 tv # Provide some information about the compiler.
2013 1.65 christos echo "$as_me:$LINENO: checking for C compiler version" >&5
2014 1.1 tv ac_compiler=`set X $ac_compile; echo $2`
2015 1.65 christos { (ac_try="$ac_compiler --version >&5"
2016 1.65 christos case "(($ac_try" in
2017 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 1.65 christos *) ac_try_echo=$ac_try;;
2019 1.65 christos esac
2020 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2021 1.65 christos (eval "$ac_compiler --version >&5") 2>&5
2022 1.1 tv ac_status=$?
2023 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 1.1 tv (exit $ac_status); }
2025 1.65 christos { (ac_try="$ac_compiler -v >&5"
2026 1.65 christos case "(($ac_try" in
2027 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 1.65 christos *) ac_try_echo=$ac_try;;
2029 1.65 christos esac
2030 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2031 1.65 christos (eval "$ac_compiler -v >&5") 2>&5
2032 1.1 tv ac_status=$?
2033 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 1.1 tv (exit $ac_status); }
2035 1.65 christos { (ac_try="$ac_compiler -V >&5"
2036 1.65 christos case "(($ac_try" in
2037 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 1.65 christos *) ac_try_echo=$ac_try;;
2039 1.65 christos esac
2040 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2041 1.65 christos (eval "$ac_compiler -V >&5") 2>&5
2042 1.1 tv ac_status=$?
2043 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 1.1 tv (exit $ac_status); }
2045 1.1 tv
2046 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2047 1.65 christos /* confdefs.h. */
2048 1.65 christos _ACEOF
2049 1.65 christos cat confdefs.h >>conftest.$ac_ext
2050 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2051 1.65 christos /* end confdefs.h. */
2052 1.1 tv
2053 1.1 tv int
2054 1.1 tv main ()
2055 1.1 tv {
2056 1.1 tv
2057 1.1 tv ;
2058 1.1 tv return 0;
2059 1.1 tv }
2060 1.1 tv _ACEOF
2061 1.1 tv ac_clean_files_save=$ac_clean_files
2062 1.65 christos ac_clean_files="$ac_clean_files a.out a.exe b.out"
2063 1.1 tv # Try to create an executable without -o first, disregard a.out.
2064 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
2065 1.1 tv # of exeext.
2066 1.65 christos { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2067 1.65 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2068 1.1 tv ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2069 1.65 christos #
2070 1.65 christos # List of possible output files, starting from the most likely.
2071 1.65 christos # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2072 1.65 christos # only as a last resort. b.out is created by i960 compilers.
2073 1.65 christos ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2074 1.65 christos #
2075 1.65 christos # The IRIX 6 linker writes into existing files which may not be
2076 1.65 christos # executable, retaining their permissions. Remove them first so a
2077 1.65 christos # subsequent execution test works.
2078 1.65 christos ac_rmfiles=
2079 1.65 christos for ac_file in $ac_files
2080 1.65 christos do
2081 1.65 christos case $ac_file in
2082 1.65 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2083 1.65 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2084 1.65 christos esac
2085 1.65 christos done
2086 1.65 christos rm -f $ac_rmfiles
2087 1.65 christos
2088 1.65 christos if { (ac_try="$ac_link_default"
2089 1.65 christos case "(($ac_try" in
2090 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 1.65 christos *) ac_try_echo=$ac_try;;
2092 1.65 christos esac
2093 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 1.65 christos (eval "$ac_link_default") 2>&5
2095 1.1 tv ac_status=$?
2096 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 1.1 tv (exit $ac_status); }; then
2098 1.65 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2099 1.65 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2100 1.65 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
2101 1.65 christos # so that the user can short-circuit this test for compilers unknown to
2102 1.65 christos # Autoconf.
2103 1.65 christos for ac_file in $ac_files ''
2104 1.65 christos do
2105 1.65 christos test -f "$ac_file" || continue
2106 1.1 tv case $ac_file in
2107 1.65 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2108 1.65 christos ;;
2109 1.65 christos [ab].out )
2110 1.65 christos # We found the default executable, but exeext='' is most
2111 1.65 christos # certainly right.
2112 1.65 christos break;;
2113 1.65 christos *.* )
2114 1.65 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2115 1.65 christos then :; else
2116 1.65 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117 1.65 christos fi
2118 1.65 christos # We set ac_cv_exeext here because the later test for it is not
2119 1.65 christos # safe: cross compilers may not add the suffix if given an `-o'
2120 1.65 christos # argument, so we may need to know it at that point already.
2121 1.65 christos # Even if this section looks crufty: it has the advantage of
2122 1.65 christos # actually working.
2123 1.65 christos break;;
2124 1.65 christos * )
2125 1.65 christos break;;
2126 1.1 tv esac
2127 1.1 tv done
2128 1.65 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
2129 1.65 christos
2130 1.1 tv else
2131 1.65 christos ac_file=''
2132 1.65 christos fi
2133 1.65 christos
2134 1.65 christos { echo "$as_me:$LINENO: result: $ac_file" >&5
2135 1.65 christos echo "${ECHO_T}$ac_file" >&6; }
2136 1.65 christos if test -z "$ac_file"; then
2137 1.1 tv echo "$as_me: failed program was:" >&5
2138 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2139 1.65 christos
2140 1.65 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2141 1.65 christos See \`config.log' for more details." >&5
2142 1.65 christos echo "$as_me: error: C compiler cannot create executables
2143 1.65 christos See \`config.log' for more details." >&2;}
2144 1.1 tv { (exit 77); exit 77; }; }
2145 1.1 tv fi
2146 1.1 tv
2147 1.1 tv ac_exeext=$ac_cv_exeext
2148 1.1 tv
2149 1.65 christos # Check that the compiler produces executables we can run. If not, either
2150 1.1 tv # the compiler is broken, or we cross compile.
2151 1.65 christos { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152 1.65 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2153 1.1 tv # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154 1.1 tv # If not cross compiling, check that we can run a simple program.
2155 1.1 tv if test "$cross_compiling" != yes; then
2156 1.1 tv if { ac_try='./$ac_file'
2157 1.65 christos { (case "(($ac_try" in
2158 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 1.65 christos *) ac_try_echo=$ac_try;;
2160 1.65 christos esac
2161 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162 1.65 christos (eval "$ac_try") 2>&5
2163 1.1 tv ac_status=$?
2164 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 1.1 tv (exit $ac_status); }; }; then
2166 1.1 tv cross_compiling=no
2167 1.1 tv else
2168 1.1 tv if test "$cross_compiling" = maybe; then
2169 1.1 tv cross_compiling=yes
2170 1.1 tv else
2171 1.65 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2172 1.65 christos If you meant to cross compile, use \`--host'.
2173 1.65 christos See \`config.log' for more details." >&5
2174 1.1 tv echo "$as_me: error: cannot run C compiled programs.
2175 1.65 christos If you meant to cross compile, use \`--host'.
2176 1.65 christos See \`config.log' for more details." >&2;}
2177 1.1 tv { (exit 1); exit 1; }; }
2178 1.1 tv fi
2179 1.1 tv fi
2180 1.1 tv fi
2181 1.65 christos { echo "$as_me:$LINENO: result: yes" >&5
2182 1.65 christos echo "${ECHO_T}yes" >&6; }
2183 1.1 tv
2184 1.65 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out
2185 1.1 tv ac_clean_files=$ac_clean_files_save
2186 1.65 christos # Check that the compiler produces executables we can run. If not, either
2187 1.1 tv # the compiler is broken, or we cross compile.
2188 1.65 christos { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 1.65 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2190 1.65 christos { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 1.65 christos echo "${ECHO_T}$cross_compiling" >&6; }
2192 1.65 christos
2193 1.65 christos { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 1.65 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2195 1.65 christos if { (ac_try="$ac_link"
2196 1.65 christos case "(($ac_try" in
2197 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 1.65 christos *) ac_try_echo=$ac_try;;
2199 1.65 christos esac
2200 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 1.65 christos (eval "$ac_link") 2>&5
2202 1.1 tv ac_status=$?
2203 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 1.1 tv (exit $ac_status); }; then
2205 1.1 tv # If both `conftest.exe' and `conftest' are `present' (well, observable)
2206 1.1 tv # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2207 1.1 tv # work properly (i.e., refer to `conftest.exe'), while it won't with
2208 1.1 tv # `rm'.
2209 1.65 christos for ac_file in conftest.exe conftest conftest.*; do
2210 1.65 christos test -f "$ac_file" || continue
2211 1.1 tv case $ac_file in
2212 1.65 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2213 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 1.65 christos break;;
2215 1.1 tv * ) break;;
2216 1.1 tv esac
2217 1.1 tv done
2218 1.1 tv else
2219 1.65 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2220 1.65 christos See \`config.log' for more details." >&5
2221 1.65 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2222 1.65 christos See \`config.log' for more details." >&2;}
2223 1.1 tv { (exit 1); exit 1; }; }
2224 1.1 tv fi
2225 1.1 tv
2226 1.1 tv rm -f conftest$ac_cv_exeext
2227 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2228 1.65 christos echo "${ECHO_T}$ac_cv_exeext" >&6; }
2229 1.1 tv
2230 1.1 tv rm -f conftest.$ac_ext
2231 1.1 tv EXEEXT=$ac_cv_exeext
2232 1.1 tv ac_exeext=$EXEEXT
2233 1.65 christos { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2234 1.65 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2235 1.1 tv if test "${ac_cv_objext+set}" = set; then
2236 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2237 1.1 tv else
2238 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2239 1.65 christos /* confdefs.h. */
2240 1.65 christos _ACEOF
2241 1.65 christos cat confdefs.h >>conftest.$ac_ext
2242 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2243 1.65 christos /* end confdefs.h. */
2244 1.1 tv
2245 1.1 tv int
2246 1.1 tv main ()
2247 1.1 tv {
2248 1.1 tv
2249 1.1 tv ;
2250 1.1 tv return 0;
2251 1.1 tv }
2252 1.1 tv _ACEOF
2253 1.1 tv rm -f conftest.o conftest.obj
2254 1.65 christos if { (ac_try="$ac_compile"
2255 1.65 christos case "(($ac_try" in
2256 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 1.65 christos *) ac_try_echo=$ac_try;;
2258 1.65 christos esac
2259 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 1.65 christos (eval "$ac_compile") 2>&5
2261 1.1 tv ac_status=$?
2262 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 1.1 tv (exit $ac_status); }; then
2264 1.65 christos for ac_file in conftest.o conftest.obj conftest.*; do
2265 1.65 christos test -f "$ac_file" || continue;
2266 1.1 tv case $ac_file in
2267 1.65 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2268 1.1 tv *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269 1.1 tv break;;
2270 1.1 tv esac
2271 1.1 tv done
2272 1.1 tv else
2273 1.1 tv echo "$as_me: failed program was:" >&5
2274 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2275 1.65 christos
2276 1.65 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277 1.65 christos See \`config.log' for more details." >&5
2278 1.65 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279 1.65 christos See \`config.log' for more details." >&2;}
2280 1.1 tv { (exit 1); exit 1; }; }
2281 1.1 tv fi
2282 1.1 tv
2283 1.1 tv rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 1.1 tv fi
2285 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 1.65 christos echo "${ECHO_T}$ac_cv_objext" >&6; }
2287 1.1 tv OBJEXT=$ac_cv_objext
2288 1.1 tv ac_objext=$OBJEXT
2289 1.65 christos { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290 1.65 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2291 1.1 tv if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2293 1.1 tv else
2294 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2295 1.65 christos /* confdefs.h. */
2296 1.65 christos _ACEOF
2297 1.65 christos cat confdefs.h >>conftest.$ac_ext
2298 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2299 1.65 christos /* end confdefs.h. */
2300 1.1 tv
2301 1.1 tv int
2302 1.1 tv main ()
2303 1.1 tv {
2304 1.1 tv #ifndef __GNUC__
2305 1.1 tv choke me
2306 1.1 tv #endif
2307 1.1 tv
2308 1.1 tv ;
2309 1.1 tv return 0;
2310 1.1 tv }
2311 1.1 tv _ACEOF
2312 1.1 tv rm -f conftest.$ac_objext
2313 1.65 christos if { (ac_try="$ac_compile"
2314 1.65 christos case "(($ac_try" in
2315 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 1.65 christos *) ac_try_echo=$ac_try;;
2317 1.65 christos esac
2318 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 1.65 christos (eval "$ac_compile") 2>conftest.er1
2320 1.1 tv ac_status=$?
2321 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2322 1.65 christos rm -f conftest.er1
2323 1.65 christos cat conftest.err >&5
2324 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 1.65 christos (exit $ac_status); } && {
2326 1.65 christos test -z "$ac_c_werror_flag" ||
2327 1.65 christos test ! -s conftest.err
2328 1.65 christos } && test -s conftest.$ac_objext; then
2329 1.1 tv ac_compiler_gnu=yes
2330 1.1 tv else
2331 1.1 tv echo "$as_me: failed program was:" >&5
2332 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2333 1.65 christos
2334 1.65 christos ac_compiler_gnu=no
2335 1.1 tv fi
2336 1.65 christos
2337 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
2339 1.1 tv
2340 1.1 tv fi
2341 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2342 1.65 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2343 1.1 tv GCC=`test $ac_compiler_gnu = yes && echo yes`
2344 1.1 tv ac_test_CFLAGS=${CFLAGS+set}
2345 1.1 tv ac_save_CFLAGS=$CFLAGS
2346 1.65 christos { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2347 1.65 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2348 1.1 tv if test "${ac_cv_prog_cc_g+set}" = set; then
2349 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2350 1.1 tv else
2351 1.65 christos ac_save_c_werror_flag=$ac_c_werror_flag
2352 1.65 christos ac_c_werror_flag=yes
2353 1.65 christos ac_cv_prog_cc_g=no
2354 1.65 christos CFLAGS="-g"
2355 1.65 christos cat >conftest.$ac_ext <<_ACEOF
2356 1.65 christos /* confdefs.h. */
2357 1.65 christos _ACEOF
2358 1.65 christos cat confdefs.h >>conftest.$ac_ext
2359 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2360 1.65 christos /* end confdefs.h. */
2361 1.1 tv
2362 1.1 tv int
2363 1.1 tv main ()
2364 1.1 tv {
2365 1.1 tv
2366 1.1 tv ;
2367 1.1 tv return 0;
2368 1.1 tv }
2369 1.1 tv _ACEOF
2370 1.1 tv rm -f conftest.$ac_objext
2371 1.65 christos if { (ac_try="$ac_compile"
2372 1.65 christos case "(($ac_try" in
2373 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 1.65 christos *) ac_try_echo=$ac_try;;
2375 1.65 christos esac
2376 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 1.65 christos (eval "$ac_compile") 2>conftest.er1
2378 1.1 tv ac_status=$?
2379 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2380 1.65 christos rm -f conftest.er1
2381 1.65 christos cat conftest.err >&5
2382 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 1.65 christos (exit $ac_status); } && {
2384 1.65 christos test -z "$ac_c_werror_flag" ||
2385 1.65 christos test ! -s conftest.err
2386 1.65 christos } && test -s conftest.$ac_objext; then
2387 1.1 tv ac_cv_prog_cc_g=yes
2388 1.1 tv else
2389 1.1 tv echo "$as_me: failed program was:" >&5
2390 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2391 1.65 christos
2392 1.65 christos CFLAGS=""
2393 1.65 christos cat >conftest.$ac_ext <<_ACEOF
2394 1.65 christos /* confdefs.h. */
2395 1.1 tv _ACEOF
2396 1.65 christos cat confdefs.h >>conftest.$ac_ext
2397 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2398 1.65 christos /* end confdefs.h. */
2399 1.65 christos
2400 1.1 tv int
2401 1.1 tv main ()
2402 1.1 tv {
2403 1.65 christos
2404 1.1 tv ;
2405 1.1 tv return 0;
2406 1.1 tv }
2407 1.1 tv _ACEOF
2408 1.1 tv rm -f conftest.$ac_objext
2409 1.65 christos if { (ac_try="$ac_compile"
2410 1.65 christos case "(($ac_try" in
2411 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 1.65 christos *) ac_try_echo=$ac_try;;
2413 1.65 christos esac
2414 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 1.65 christos (eval "$ac_compile") 2>conftest.er1
2416 1.1 tv ac_status=$?
2417 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2418 1.65 christos rm -f conftest.er1
2419 1.65 christos cat conftest.err >&5
2420 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 1.65 christos (exit $ac_status); } && {
2422 1.65 christos test -z "$ac_c_werror_flag" ||
2423 1.65 christos test ! -s conftest.err
2424 1.65 christos } && test -s conftest.$ac_objext; then
2425 1.1 tv :
2426 1.1 tv else
2427 1.1 tv echo "$as_me: failed program was:" >&5
2428 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2429 1.65 christos
2430 1.65 christos ac_c_werror_flag=$ac_save_c_werror_flag
2431 1.65 christos CFLAGS="-g"
2432 1.65 christos cat >conftest.$ac_ext <<_ACEOF
2433 1.65 christos /* confdefs.h. */
2434 1.65 christos _ACEOF
2435 1.65 christos cat confdefs.h >>conftest.$ac_ext
2436 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2437 1.65 christos /* end confdefs.h. */
2438 1.65 christos
2439 1.1 tv int
2440 1.1 tv main ()
2441 1.1 tv {
2442 1.65 christos
2443 1.1 tv ;
2444 1.1 tv return 0;
2445 1.1 tv }
2446 1.1 tv _ACEOF
2447 1.1 tv rm -f conftest.$ac_objext
2448 1.65 christos if { (ac_try="$ac_compile"
2449 1.65 christos case "(($ac_try" in
2450 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 1.65 christos *) ac_try_echo=$ac_try;;
2452 1.65 christos esac
2453 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 1.65 christos (eval "$ac_compile") 2>conftest.er1
2455 1.1 tv ac_status=$?
2456 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2457 1.65 christos rm -f conftest.er1
2458 1.65 christos cat conftest.err >&5
2459 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 1.65 christos (exit $ac_status); } && {
2461 1.65 christos test -z "$ac_c_werror_flag" ||
2462 1.65 christos test ! -s conftest.err
2463 1.65 christos } && test -s conftest.$ac_objext; then
2464 1.65 christos ac_cv_prog_cc_g=yes
2465 1.1 tv else
2466 1.1 tv echo "$as_me: failed program was:" >&5
2467 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2468 1.65 christos
2469 1.65 christos
2470 1.65 christos fi
2471 1.65 christos
2472 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 1.65 christos fi
2474 1.65 christos
2475 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 1.65 christos fi
2477 1.65 christos
2478 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 1.65 christos ac_c_werror_flag=$ac_save_c_werror_flag
2480 1.1 tv fi
2481 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2482 1.65 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2483 1.65 christos if test "$ac_test_CFLAGS" = set; then
2484 1.65 christos CFLAGS=$ac_save_CFLAGS
2485 1.65 christos elif test $ac_cv_prog_cc_g = yes; then
2486 1.65 christos if test "$GCC" = yes; then
2487 1.65 christos CFLAGS="-g -O2"
2488 1.65 christos else
2489 1.65 christos CFLAGS="-g"
2490 1.65 christos fi
2491 1.65 christos else
2492 1.65 christos if test "$GCC" = yes; then
2493 1.65 christos CFLAGS="-O2"
2494 1.65 christos else
2495 1.65 christos CFLAGS=
2496 1.65 christos fi
2497 1.1 tv fi
2498 1.65 christos { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2499 1.65 christos echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2500 1.65 christos if test "${ac_cv_prog_cc_c89+set}" = set; then
2501 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2502 1.65 christos else
2503 1.65 christos ac_cv_prog_cc_c89=no
2504 1.65 christos ac_save_CC=$CC
2505 1.65 christos cat >conftest.$ac_ext <<_ACEOF
2506 1.65 christos /* confdefs.h. */
2507 1.65 christos _ACEOF
2508 1.65 christos cat confdefs.h >>conftest.$ac_ext
2509 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2510 1.65 christos /* end confdefs.h. */
2511 1.65 christos #include <stdarg.h>
2512 1.65 christos #include <stdio.h>
2513 1.65 christos #include <sys/types.h>
2514 1.65 christos #include <sys/stat.h>
2515 1.65 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2516 1.65 christos struct buf { int x; };
2517 1.65 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518 1.65 christos static char *e (p, i)
2519 1.65 christos char **p;
2520 1.65 christos int i;
2521 1.65 christos {
2522 1.65 christos return p[i];
2523 1.65 christos }
2524 1.65 christos static char *f (char * (*g) (char **, int), char **p, ...)
2525 1.65 christos {
2526 1.65 christos char *s;
2527 1.65 christos va_list v;
2528 1.65 christos va_start (v,p);
2529 1.65 christos s = g (p, va_arg (v,int));
2530 1.65 christos va_end (v);
2531 1.65 christos return s;
2532 1.65 christos }
2533 1.1 tv
2534 1.65 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2535 1.65 christos function prototypes and stuff, but not '\xHH' hex character constants.
2536 1.65 christos These don't provoke an error unfortunately, instead are silently treated
2537 1.65 christos as 'x'. The following induces an error, until -std is added to get
2538 1.65 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2539 1.65 christos array size at least. It's necessary to write '\x00'==0 to get something
2540 1.65 christos that's true only with -std. */
2541 1.65 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542 1.65 christos
2543 1.65 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2544 1.65 christos inside strings and character constants. */
2545 1.65 christos #define FOO(x) 'x'
2546 1.65 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2547 1.65 christos
2548 1.65 christos int test (int i, double x);
2549 1.65 christos struct s1 {int (*f) (int a);};
2550 1.65 christos struct s2 {int (*f) (double a);};
2551 1.65 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552 1.65 christos int argc;
2553 1.65 christos char **argv;
2554 1.65 christos int
2555 1.65 christos main ()
2556 1.65 christos {
2557 1.65 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2558 1.65 christos ;
2559 1.65 christos return 0;
2560 1.65 christos }
2561 1.65 christos _ACEOF
2562 1.65 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2563 1.65 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564 1.65 christos do
2565 1.65 christos CC="$ac_save_CC $ac_arg"
2566 1.65 christos rm -f conftest.$ac_objext
2567 1.65 christos if { (ac_try="$ac_compile"
2568 1.65 christos case "(($ac_try" in
2569 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 1.65 christos *) ac_try_echo=$ac_try;;
2571 1.65 christos esac
2572 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 1.65 christos (eval "$ac_compile") 2>conftest.er1
2574 1.65 christos ac_status=$?
2575 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2576 1.65 christos rm -f conftest.er1
2577 1.65 christos cat conftest.err >&5
2578 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 1.65 christos (exit $ac_status); } && {
2580 1.65 christos test -z "$ac_c_werror_flag" ||
2581 1.65 christos test ! -s conftest.err
2582 1.65 christos } && test -s conftest.$ac_objext; then
2583 1.65 christos ac_cv_prog_cc_c89=$ac_arg
2584 1.1 tv else
2585 1.1 tv echo "$as_me: failed program was:" >&5
2586 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2587 1.65 christos
2588 1.65 christos
2589 1.65 christos fi
2590 1.65 christos
2591 1.65 christos rm -f core conftest.err conftest.$ac_objext
2592 1.65 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
2593 1.65 christos done
2594 1.65 christos rm -f conftest.$ac_ext
2595 1.65 christos CC=$ac_save_CC
2596 1.65 christos
2597 1.1 tv fi
2598 1.65 christos # AC_CACHE_VAL
2599 1.65 christos case "x$ac_cv_prog_cc_c89" in
2600 1.65 christos x)
2601 1.65 christos { echo "$as_me:$LINENO: result: none needed" >&5
2602 1.65 christos echo "${ECHO_T}none needed" >&6; } ;;
2603 1.65 christos xno)
2604 1.65 christos { echo "$as_me:$LINENO: result: unsupported" >&5
2605 1.65 christos echo "${ECHO_T}unsupported" >&6; } ;;
2606 1.65 christos *)
2607 1.65 christos CC="$CC $ac_cv_prog_cc_c89"
2608 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2609 1.65 christos echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2610 1.65 christos esac
2611 1.65 christos
2612 1.65 christos
2613 1.1 tv ac_ext=c
2614 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2615 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 1.1 tv
2619 1.65 christos
2620 1.1 tv ac_ext=c
2621 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2622 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625 1.65 christos { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2626 1.65 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2627 1.1 tv # On Suns, sometimes $CPP names a directory.
2628 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
2629 1.1 tv CPP=
2630 1.1 tv fi
2631 1.1 tv if test -z "$CPP"; then
2632 1.1 tv if test "${ac_cv_prog_CPP+set}" = set; then
2633 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2634 1.1 tv else
2635 1.1 tv # Double quotes because CPP needs to be expanded
2636 1.1 tv for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2637 1.1 tv do
2638 1.1 tv ac_preproc_ok=false
2639 1.1 tv for ac_c_preproc_warn_flag in '' yes
2640 1.1 tv do
2641 1.1 tv # Use a header file that comes with gcc, so configuring glibc
2642 1.1 tv # with a fresh cross-compiler works.
2643 1.65 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2644 1.65 christos # <limits.h> exists even on freestanding compilers.
2645 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
2646 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
2647 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2648 1.65 christos /* confdefs.h. */
2649 1.65 christos _ACEOF
2650 1.65 christos cat confdefs.h >>conftest.$ac_ext
2651 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2652 1.65 christos /* end confdefs.h. */
2653 1.65 christos #ifdef __STDC__
2654 1.65 christos # include <limits.h>
2655 1.65 christos #else
2656 1.65 christos # include <assert.h>
2657 1.65 christos #endif
2658 1.65 christos Syntax error
2659 1.48 jmc _ACEOF
2660 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
2661 1.65 christos case "(($ac_try" in
2662 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 1.65 christos *) ac_try_echo=$ac_try;;
2664 1.65 christos esac
2665 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2667 1.1 tv ac_status=$?
2668 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2669 1.1 tv rm -f conftest.er1
2670 1.1 tv cat conftest.err >&5
2671 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 1.65 christos (exit $ac_status); } >/dev/null && {
2673 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2674 1.65 christos test ! -s conftest.err
2675 1.65 christos }; then
2676 1.1 tv :
2677 1.1 tv else
2678 1.1 tv echo "$as_me: failed program was:" >&5
2679 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2680 1.65 christos
2681 1.1 tv # Broken: fails on valid input.
2682 1.1 tv continue
2683 1.1 tv fi
2684 1.65 christos
2685 1.1 tv rm -f conftest.err conftest.$ac_ext
2686 1.1 tv
2687 1.65 christos # OK, works on sane cases. Now check whether nonexistent headers
2688 1.1 tv # can be detected and how.
2689 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2690 1.65 christos /* confdefs.h. */
2691 1.65 christos _ACEOF
2692 1.65 christos cat confdefs.h >>conftest.$ac_ext
2693 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2694 1.65 christos /* end confdefs.h. */
2695 1.1 tv #include <ac_nonexistent.h>
2696 1.1 tv _ACEOF
2697 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
2698 1.65 christos case "(($ac_try" in
2699 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 1.65 christos *) ac_try_echo=$ac_try;;
2701 1.65 christos esac
2702 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2704 1.1 tv ac_status=$?
2705 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2706 1.1 tv rm -f conftest.er1
2707 1.1 tv cat conftest.err >&5
2708 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 1.65 christos (exit $ac_status); } >/dev/null && {
2710 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2711 1.65 christos test ! -s conftest.err
2712 1.65 christos }; then
2713 1.1 tv # Broken: success on invalid input.
2714 1.1 tv continue
2715 1.1 tv else
2716 1.1 tv echo "$as_me: failed program was:" >&5
2717 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2718 1.65 christos
2719 1.1 tv # Passes both tests.
2720 1.1 tv ac_preproc_ok=:
2721 1.1 tv break
2722 1.1 tv fi
2723 1.65 christos
2724 1.1 tv rm -f conftest.err conftest.$ac_ext
2725 1.1 tv
2726 1.1 tv done
2727 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2728 1.1 tv rm -f conftest.err conftest.$ac_ext
2729 1.1 tv if $ac_preproc_ok; then
2730 1.1 tv break
2731 1.1 tv fi
2732 1.1 tv
2733 1.1 tv done
2734 1.1 tv ac_cv_prog_CPP=$CPP
2735 1.1 tv
2736 1.1 tv fi
2737 1.1 tv CPP=$ac_cv_prog_CPP
2738 1.1 tv else
2739 1.1 tv ac_cv_prog_CPP=$CPP
2740 1.1 tv fi
2741 1.65 christos { echo "$as_me:$LINENO: result: $CPP" >&5
2742 1.65 christos echo "${ECHO_T}$CPP" >&6; }
2743 1.1 tv ac_preproc_ok=false
2744 1.1 tv for ac_c_preproc_warn_flag in '' yes
2745 1.1 tv do
2746 1.1 tv # Use a header file that comes with gcc, so configuring glibc
2747 1.1 tv # with a fresh cross-compiler works.
2748 1.65 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2749 1.65 christos # <limits.h> exists even on freestanding compilers.
2750 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
2751 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
2752 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2753 1.65 christos /* confdefs.h. */
2754 1.53 dogcow _ACEOF
2755 1.65 christos cat confdefs.h >>conftest.$ac_ext
2756 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2757 1.65 christos /* end confdefs.h. */
2758 1.65 christos #ifdef __STDC__
2759 1.65 christos # include <limits.h>
2760 1.65 christos #else
2761 1.65 christos # include <assert.h>
2762 1.65 christos #endif
2763 1.65 christos Syntax error
2764 1.65 christos _ACEOF
2765 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
2766 1.65 christos case "(($ac_try" in
2767 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 1.65 christos *) ac_try_echo=$ac_try;;
2769 1.65 christos esac
2770 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2772 1.1 tv ac_status=$?
2773 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2774 1.1 tv rm -f conftest.er1
2775 1.1 tv cat conftest.err >&5
2776 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 1.65 christos (exit $ac_status); } >/dev/null && {
2778 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2779 1.65 christos test ! -s conftest.err
2780 1.65 christos }; then
2781 1.1 tv :
2782 1.1 tv else
2783 1.1 tv echo "$as_me: failed program was:" >&5
2784 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2785 1.65 christos
2786 1.1 tv # Broken: fails on valid input.
2787 1.1 tv continue
2788 1.1 tv fi
2789 1.65 christos
2790 1.1 tv rm -f conftest.err conftest.$ac_ext
2791 1.1 tv
2792 1.65 christos # OK, works on sane cases. Now check whether nonexistent headers
2793 1.1 tv # can be detected and how.
2794 1.1 tv cat >conftest.$ac_ext <<_ACEOF
2795 1.65 christos /* confdefs.h. */
2796 1.65 christos _ACEOF
2797 1.65 christos cat confdefs.h >>conftest.$ac_ext
2798 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
2799 1.65 christos /* end confdefs.h. */
2800 1.1 tv #include <ac_nonexistent.h>
2801 1.1 tv _ACEOF
2802 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
2803 1.65 christos case "(($ac_try" in
2804 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 1.65 christos *) ac_try_echo=$ac_try;;
2806 1.65 christos esac
2807 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2809 1.1 tv ac_status=$?
2810 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
2811 1.1 tv rm -f conftest.er1
2812 1.1 tv cat conftest.err >&5
2813 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 1.65 christos (exit $ac_status); } >/dev/null && {
2815 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2816 1.65 christos test ! -s conftest.err
2817 1.65 christos }; then
2818 1.45 jmc # Broken: success on invalid input.
2819 1.45 jmc continue
2820 1.45 jmc else
2821 1.45 jmc echo "$as_me: failed program was:" >&5
2822 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
2823 1.65 christos
2824 1.45 jmc # Passes both tests.
2825 1.45 jmc ac_preproc_ok=:
2826 1.45 jmc break
2827 1.45 jmc fi
2828 1.65 christos
2829 1.45 jmc rm -f conftest.err conftest.$ac_ext
2830 1.45 jmc
2831 1.45 jmc done
2832 1.45 jmc # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2833 1.45 jmc rm -f conftest.err conftest.$ac_ext
2834 1.45 jmc if $ac_preproc_ok; then
2835 1.45 jmc :
2836 1.45 jmc else
2837 1.65 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2838 1.65 christos See \`config.log' for more details." >&5
2839 1.65 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2840 1.65 christos See \`config.log' for more details." >&2;}
2841 1.45 jmc { (exit 1); exit 1; }; }
2842 1.45 jmc fi
2843 1.45 jmc
2844 1.45 jmc ac_ext=c
2845 1.45 jmc ac_cpp='$CPP $CPPFLAGS'
2846 1.45 jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 1.45 jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 1.45 jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 1.45 jmc
2850 1.65 christos
2851 1.65 christos { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2852 1.65 christos echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2853 1.65 christos if test "${ac_cv_path_GREP+set}" = set; then
2854 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2855 1.65 christos else
2856 1.65 christos # Extract the first word of "grep ggrep" to use in msg output
2857 1.65 christos if test -z "$GREP"; then
2858 1.65 christos set dummy grep ggrep; ac_prog_name=$2
2859 1.65 christos if test "${ac_cv_path_GREP+set}" = set; then
2860 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2861 1.65 christos else
2862 1.65 christos ac_path_GREP_found=false
2863 1.65 christos # Loop through the user's path and test for each of PROGNAME-LIST
2864 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 1.65 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2866 1.65 christos do
2867 1.65 christos IFS=$as_save_IFS
2868 1.65 christos test -z "$as_dir" && as_dir=.
2869 1.65 christos for ac_prog in grep ggrep; do
2870 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
2871 1.65 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2872 1.65 christos { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2873 1.65 christos # Check for GNU ac_path_GREP and select it if it is found.
2874 1.65 christos # Check for GNU $ac_path_GREP
2875 1.65 christos case `"$ac_path_GREP" --version 2>&1` in
2876 1.65 christos *GNU*)
2877 1.65 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2878 1.65 christos *)
2879 1.65 christos ac_count=0
2880 1.65 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2881 1.65 christos while :
2882 1.65 christos do
2883 1.65 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
2884 1.65 christos mv "conftest.tmp" "conftest.in"
2885 1.65 christos cp "conftest.in" "conftest.nl"
2886 1.65 christos echo 'GREP' >> "conftest.nl"
2887 1.65 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2888 1.65 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2889 1.65 christos ac_count=`expr $ac_count + 1`
2890 1.65 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
2891 1.65 christos # Best one so far, save it but keep looking for a better one
2892 1.65 christos ac_cv_path_GREP="$ac_path_GREP"
2893 1.65 christos ac_path_GREP_max=$ac_count
2894 1.65 christos fi
2895 1.65 christos # 10*(2^10) chars as input seems more than enough
2896 1.65 christos test $ac_count -gt 10 && break
2897 1.65 christos done
2898 1.65 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2899 1.65 christos esac
2900 1.65 christos
2901 1.65 christos
2902 1.65 christos $ac_path_GREP_found && break 3
2903 1.65 christos done
2904 1.65 christos done
2905 1.65 christos
2906 1.65 christos done
2907 1.65 christos IFS=$as_save_IFS
2908 1.65 christos
2909 1.65 christos
2910 1.65 christos fi
2911 1.65 christos
2912 1.65 christos GREP="$ac_cv_path_GREP"
2913 1.65 christos if test -z "$GREP"; then
2914 1.65 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2915 1.65 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2916 1.65 christos { (exit 1); exit 1; }; }
2917 1.65 christos fi
2918 1.65 christos
2919 1.65 christos else
2920 1.65 christos ac_cv_path_GREP=$GREP
2921 1.65 christos fi
2922 1.65 christos
2923 1.65 christos
2924 1.65 christos fi
2925 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2926 1.65 christos echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2927 1.65 christos GREP="$ac_cv_path_GREP"
2928 1.65 christos
2929 1.65 christos
2930 1.65 christos { echo "$as_me:$LINENO: checking for egrep" >&5
2931 1.65 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2932 1.65 christos if test "${ac_cv_path_EGREP+set}" = set; then
2933 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2934 1.65 christos else
2935 1.65 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2936 1.65 christos then ac_cv_path_EGREP="$GREP -E"
2937 1.65 christos else
2938 1.65 christos # Extract the first word of "egrep" to use in msg output
2939 1.65 christos if test -z "$EGREP"; then
2940 1.65 christos set dummy egrep; ac_prog_name=$2
2941 1.65 christos if test "${ac_cv_path_EGREP+set}" = set; then
2942 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2943 1.65 christos else
2944 1.65 christos ac_path_EGREP_found=false
2945 1.65 christos # Loop through the user's path and test for each of PROGNAME-LIST
2946 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 1.65 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2948 1.65 christos do
2949 1.65 christos IFS=$as_save_IFS
2950 1.65 christos test -z "$as_dir" && as_dir=.
2951 1.65 christos for ac_prog in egrep; do
2952 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
2953 1.65 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2954 1.65 christos { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2955 1.65 christos # Check for GNU ac_path_EGREP and select it if it is found.
2956 1.65 christos # Check for GNU $ac_path_EGREP
2957 1.65 christos case `"$ac_path_EGREP" --version 2>&1` in
2958 1.65 christos *GNU*)
2959 1.65 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2960 1.65 christos *)
2961 1.65 christos ac_count=0
2962 1.65 christos echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2963 1.65 christos while :
2964 1.65 christos do
2965 1.65 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
2966 1.65 christos mv "conftest.tmp" "conftest.in"
2967 1.65 christos cp "conftest.in" "conftest.nl"
2968 1.65 christos echo 'EGREP' >> "conftest.nl"
2969 1.65 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2970 1.65 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2971 1.65 christos ac_count=`expr $ac_count + 1`
2972 1.65 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2973 1.65 christos # Best one so far, save it but keep looking for a better one
2974 1.65 christos ac_cv_path_EGREP="$ac_path_EGREP"
2975 1.65 christos ac_path_EGREP_max=$ac_count
2976 1.65 christos fi
2977 1.65 christos # 10*(2^10) chars as input seems more than enough
2978 1.65 christos test $ac_count -gt 10 && break
2979 1.65 christos done
2980 1.65 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2981 1.65 christos esac
2982 1.65 christos
2983 1.65 christos
2984 1.65 christos $ac_path_EGREP_found && break 3
2985 1.65 christos done
2986 1.65 christos done
2987 1.65 christos
2988 1.65 christos done
2989 1.65 christos IFS=$as_save_IFS
2990 1.65 christos
2991 1.65 christos
2992 1.65 christos fi
2993 1.65 christos
2994 1.65 christos EGREP="$ac_cv_path_EGREP"
2995 1.65 christos if test -z "$EGREP"; then
2996 1.65 christos { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2997 1.65 christos echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2998 1.65 christos { (exit 1); exit 1; }; }
2999 1.65 christos fi
3000 1.65 christos
3001 1.65 christos else
3002 1.65 christos ac_cv_path_EGREP=$EGREP
3003 1.65 christos fi
3004 1.65 christos
3005 1.65 christos
3006 1.65 christos fi
3007 1.65 christos fi
3008 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3009 1.65 christos echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3010 1.65 christos EGREP="$ac_cv_path_EGREP"
3011 1.65 christos
3012 1.65 christos
3013 1.65 christos { echo "$as_me:$LINENO: checking for NetBSD" >&5
3014 1.65 christos echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6; }
3015 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
3016 1.65 christos /* confdefs.h. */
3017 1.65 christos _ACEOF
3018 1.65 christos cat confdefs.h >>conftest.$ac_ext
3019 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3020 1.65 christos /* end confdefs.h. */
3021 1.45 jmc #ifdef __NetBSD__
3022 1.45 jmc yes
3023 1.45 jmc #endif
3024 1.45 jmc
3025 1.45 jmc _ACEOF
3026 1.45 jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 1.65 christos $EGREP "yes" >/dev/null 2>&1; then
3028 1.65 christos { echo "$as_me:$LINENO: result: yes" >&5
3029 1.65 christos echo "${ECHO_T}yes" >&6; }
3030 1.54 wiz
3031 1.65 christos cat >>confdefs.h <<\_ACEOF
3032 1.45 jmc #define _POSIX_SOURCE 1
3033 1.65 christos _ACEOF
3034 1.65 christos
3035 1.54 wiz
3036 1.65 christos cat >>confdefs.h <<\_ACEOF
3037 1.45 jmc #define _POSIX_C_SOURCE 200112L
3038 1.65 christos _ACEOF
3039 1.65 christos
3040 1.54 wiz
3041 1.65 christos cat >>confdefs.h <<\_ACEOF
3042 1.45 jmc #define _XOPEN_SOURCE 600
3043 1.65 christos _ACEOF
3044 1.45 jmc
3045 1.45 jmc else
3046 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
3047 1.65 christos echo "${ECHO_T}no" >&6; }
3048 1.45 jmc fi
3049 1.45 jmc rm -f conftest*
3050 1.45 jmc
3051 1.65 christos
3052 1.45 jmc # Extract the first word of "sh", so it can be a program name with args.
3053 1.45 jmc set dummy sh; ac_word=$2
3054 1.65 christos { echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 1.65 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3056 1.45 jmc if test "${ac_cv_path_BSHELL+set}" = set; then
3057 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
3058 1.45 jmc else
3059 1.45 jmc case $BSHELL in
3060 1.45 jmc [\\/]* | ?:[\\/]*)
3061 1.45 jmc ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
3062 1.45 jmc ;;
3063 1.45 jmc *)
3064 1.65 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 1.65 christos for as_dir in $PATH
3066 1.65 christos do
3067 1.65 christos IFS=$as_save_IFS
3068 1.65 christos test -z "$as_dir" && as_dir=.
3069 1.65 christos for ac_exec_ext in '' $ac_executable_extensions; do
3070 1.65 christos if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 1.65 christos ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
3072 1.65 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 1.65 christos break 2
3074 1.65 christos fi
3075 1.65 christos done
3076 1.45 jmc done
3077 1.65 christos IFS=$as_save_IFS
3078 1.45 jmc
3079 1.45 jmc ;;
3080 1.45 jmc esac
3081 1.45 jmc fi
3082 1.45 jmc BSHELL=$ac_cv_path_BSHELL
3083 1.45 jmc if test -n "$BSHELL"; then
3084 1.65 christos { echo "$as_me:$LINENO: result: $BSHELL" >&5
3085 1.65 christos echo "${ECHO_T}$BSHELL" >&6; }
3086 1.45 jmc else
3087 1.65 christos { echo "$as_me:$LINENO: result: no" >&5
3088 1.65 christos echo "${ECHO_T}no" >&6; }
3089 1.45 jmc fi
3090 1.45 jmc
3091 1.65 christos
3092 1.45 jmc if test x"$BSHELL" = x; then
3093 1.65 christos { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
3094 1.45 jmc echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
3095 1.45 jmc { (exit 1); exit 1; }; }
3096 1.45 jmc fi
3097 1.54 wiz
3098 1.65 christos cat >>confdefs.h <<_ACEOF
3099 1.45 jmc #define PATH_BSHELL "$BSHELL"
3100 1.65 christos _ACEOF
3101 1.53 dogcow
3102 1.65 christos
3103 1.65 christos { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3104 1.65 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3105 1.65 christos if test "${ac_cv_header_stdc+set}" = set; then
3106 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
3107 1.45 jmc else
3108 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3109 1.65 christos /* confdefs.h. */
3110 1.65 christos _ACEOF
3111 1.65 christos cat confdefs.h >>conftest.$ac_ext
3112 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3113 1.65 christos /* end confdefs.h. */
3114 1.65 christos #include <stdlib.h>
3115 1.65 christos #include <stdarg.h>
3116 1.65 christos #include <string.h>
3117 1.65 christos #include <float.h>
3118 1.45 jmc
3119 1.45 jmc int
3120 1.45 jmc main ()
3121 1.45 jmc {
3122 1.45 jmc
3123 1.45 jmc ;
3124 1.45 jmc return 0;
3125 1.45 jmc }
3126 1.45 jmc _ACEOF
3127 1.45 jmc rm -f conftest.$ac_objext
3128 1.65 christos if { (ac_try="$ac_compile"
3129 1.65 christos case "(($ac_try" in
3130 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 1.65 christos *) ac_try_echo=$ac_try;;
3132 1.65 christos esac
3133 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 1.65 christos (eval "$ac_compile") 2>conftest.er1
3135 1.45 jmc ac_status=$?
3136 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3137 1.65 christos rm -f conftest.er1
3138 1.65 christos cat conftest.err >&5
3139 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 1.65 christos (exit $ac_status); } && {
3141 1.65 christos test -z "$ac_c_werror_flag" ||
3142 1.65 christos test ! -s conftest.err
3143 1.65 christos } && test -s conftest.$ac_objext; then
3144 1.65 christos ac_cv_header_stdc=yes
3145 1.65 christos else
3146 1.65 christos echo "$as_me: failed program was:" >&5
3147 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3148 1.65 christos
3149 1.65 christos ac_cv_header_stdc=no
3150 1.65 christos fi
3151 1.65 christos
3152 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 1.45 jmc
3154 1.65 christos if test $ac_cv_header_stdc = yes; then
3155 1.65 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3157 1.65 christos /* confdefs.h. */
3158 1.65 christos _ACEOF
3159 1.65 christos cat confdefs.h >>conftest.$ac_ext
3160 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3161 1.65 christos /* end confdefs.h. */
3162 1.65 christos #include <string.h>
3163 1.45 jmc
3164 1.45 jmc _ACEOF
3165 1.65 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 1.65 christos $EGREP "memchr" >/dev/null 2>&1; then
3167 1.65 christos :
3168 1.45 jmc else
3169 1.65 christos ac_cv_header_stdc=no
3170 1.45 jmc fi
3171 1.65 christos rm -f conftest*
3172 1.65 christos
3173 1.63 apb fi
3174 1.65 christos
3175 1.65 christos if test $ac_cv_header_stdc = yes; then
3176 1.65 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3177 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
3178 1.65 christos /* confdefs.h. */
3179 1.65 christos _ACEOF
3180 1.65 christos cat confdefs.h >>conftest.$ac_ext
3181 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3182 1.65 christos /* end confdefs.h. */
3183 1.65 christos #include <stdlib.h>
3184 1.65 christos
3185 1.65 christos _ACEOF
3186 1.65 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 1.65 christos $EGREP "free" >/dev/null 2>&1; then
3188 1.65 christos :
3189 1.65 christos else
3190 1.65 christos ac_cv_header_stdc=no
3191 1.65 christos fi
3192 1.65 christos rm -f conftest*
3193 1.65 christos
3194 1.65 christos fi
3195 1.65 christos
3196 1.65 christos if test $ac_cv_header_stdc = yes; then
3197 1.65 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3198 1.65 christos if test "$cross_compiling" = yes; then
3199 1.65 christos :
3200 1.65 christos else
3201 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3202 1.65 christos /* confdefs.h. */
3203 1.65 christos _ACEOF
3204 1.65 christos cat confdefs.h >>conftest.$ac_ext
3205 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3206 1.65 christos /* end confdefs.h. */
3207 1.65 christos #include <ctype.h>
3208 1.65 christos #include <stdlib.h>
3209 1.65 christos #if ((' ' & 0x0FF) == 0x020)
3210 1.65 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3211 1.65 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3212 1.65 christos #else
3213 1.65 christos # define ISLOWER(c) \
3214 1.65 christos (('a' <= (c) && (c) <= 'i') \
3215 1.65 christos || ('j' <= (c) && (c) <= 'r') \
3216 1.65 christos || ('s' <= (c) && (c) <= 'z'))
3217 1.65 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3218 1.65 christos #endif
3219 1.65 christos
3220 1.65 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3221 1.65 christos int
3222 1.65 christos main ()
3223 1.65 christos {
3224 1.65 christos int i;
3225 1.65 christos for (i = 0; i < 256; i++)
3226 1.65 christos if (XOR (islower (i), ISLOWER (i))
3227 1.65 christos || toupper (i) != TOUPPER (i))
3228 1.65 christos return 2;
3229 1.65 christos return 0;
3230 1.65 christos }
3231 1.65 christos _ACEOF
3232 1.65 christos rm -f conftest$ac_exeext
3233 1.65 christos if { (ac_try="$ac_link"
3234 1.65 christos case "(($ac_try" in
3235 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 1.65 christos *) ac_try_echo=$ac_try;;
3237 1.65 christos esac
3238 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 1.65 christos (eval "$ac_link") 2>&5
3240 1.65 christos ac_status=$?
3241 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 1.65 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3243 1.65 christos { (case "(($ac_try" in
3244 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 1.65 christos *) ac_try_echo=$ac_try;;
3246 1.65 christos esac
3247 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 1.65 christos (eval "$ac_try") 2>&5
3249 1.65 christos ac_status=$?
3250 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 1.65 christos (exit $ac_status); }; }; then
3252 1.65 christos :
3253 1.65 christos else
3254 1.65 christos echo "$as_me: program exited with status $ac_status" >&5
3255 1.65 christos echo "$as_me: failed program was:" >&5
3256 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3257 1.65 christos
3258 1.65 christos ( exit $ac_status )
3259 1.65 christos ac_cv_header_stdc=no
3260 1.65 christos fi
3261 1.65 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3262 1.65 christos fi
3263 1.65 christos
3264 1.65 christos
3265 1.65 christos fi
3266 1.65 christos fi
3267 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3268 1.65 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3269 1.65 christos if test $ac_cv_header_stdc = yes; then
3270 1.65 christos
3271 1.65 christos cat >>confdefs.h <<\_ACEOF
3272 1.65 christos #define STDC_HEADERS 1
3273 1.65 christos _ACEOF
3274 1.65 christos
3275 1.65 christos fi
3276 1.65 christos
3277 1.65 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3278 1.65 christos
3279 1.65 christos
3280 1.65 christos
3281 1.65 christos
3282 1.65 christos
3283 1.65 christos
3284 1.65 christos
3285 1.65 christos
3286 1.65 christos
3287 1.65 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3288 1.65 christos inttypes.h stdint.h unistd.h
3289 1.65 christos do
3290 1.65 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3291 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
3292 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3293 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3294 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3295 1.65 christos else
3296 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3297 1.65 christos /* confdefs.h. */
3298 1.65 christos _ACEOF
3299 1.65 christos cat confdefs.h >>conftest.$ac_ext
3300 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3301 1.65 christos /* end confdefs.h. */
3302 1.65 christos $ac_includes_default
3303 1.65 christos
3304 1.65 christos #include <$ac_header>
3305 1.65 christos _ACEOF
3306 1.65 christos rm -f conftest.$ac_objext
3307 1.65 christos if { (ac_try="$ac_compile"
3308 1.65 christos case "(($ac_try" in
3309 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 1.65 christos *) ac_try_echo=$ac_try;;
3311 1.65 christos esac
3312 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 1.65 christos (eval "$ac_compile") 2>conftest.er1
3314 1.65 christos ac_status=$?
3315 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3316 1.65 christos rm -f conftest.er1
3317 1.65 christos cat conftest.err >&5
3318 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 1.65 christos (exit $ac_status); } && {
3320 1.65 christos test -z "$ac_c_werror_flag" ||
3321 1.65 christos test ! -s conftest.err
3322 1.65 christos } && test -s conftest.$ac_objext; then
3323 1.65 christos eval "$as_ac_Header=yes"
3324 1.65 christos else
3325 1.65 christos echo "$as_me: failed program was:" >&5
3326 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3327 1.65 christos
3328 1.65 christos eval "$as_ac_Header=no"
3329 1.65 christos fi
3330 1.65 christos
3331 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 1.65 christos fi
3333 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
3334 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
3335 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
3336 1.65 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
3337 1.65 christos cat >>confdefs.h <<_ACEOF
3338 1.65 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3339 1.65 christos _ACEOF
3340 1.65 christos
3341 1.65 christos fi
3342 1.65 christos
3343 1.65 christos done
3344 1.65 christos
3345 1.65 christos
3346 1.65 christos { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3347 1.65 christos echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3348 1.65 christos if test "${ac_cv_c_bigendian+set}" = set; then
3349 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3350 1.65 christos else
3351 1.65 christos # See if sys/param.h defines the BYTE_ORDER macro.
3352 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3353 1.65 christos /* confdefs.h. */
3354 1.65 christos _ACEOF
3355 1.65 christos cat confdefs.h >>conftest.$ac_ext
3356 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3357 1.65 christos /* end confdefs.h. */
3358 1.65 christos #include <sys/types.h>
3359 1.65 christos #include <sys/param.h>
3360 1.65 christos
3361 1.65 christos int
3362 1.65 christos main ()
3363 1.65 christos {
3364 1.65 christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3365 1.65 christos && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3366 1.65 christos bogus endian macros
3367 1.65 christos #endif
3368 1.65 christos
3369 1.65 christos ;
3370 1.65 christos return 0;
3371 1.65 christos }
3372 1.65 christos _ACEOF
3373 1.65 christos rm -f conftest.$ac_objext
3374 1.65 christos if { (ac_try="$ac_compile"
3375 1.65 christos case "(($ac_try" in
3376 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 1.65 christos *) ac_try_echo=$ac_try;;
3378 1.65 christos esac
3379 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 1.65 christos (eval "$ac_compile") 2>conftest.er1
3381 1.65 christos ac_status=$?
3382 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3383 1.65 christos rm -f conftest.er1
3384 1.65 christos cat conftest.err >&5
3385 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 1.65 christos (exit $ac_status); } && {
3387 1.65 christos test -z "$ac_c_werror_flag" ||
3388 1.65 christos test ! -s conftest.err
3389 1.65 christos } && test -s conftest.$ac_objext; then
3390 1.65 christos # It does; now see whether it defined to BIG_ENDIAN or not.
3391 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3392 1.65 christos /* confdefs.h. */
3393 1.65 christos _ACEOF
3394 1.65 christos cat confdefs.h >>conftest.$ac_ext
3395 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3396 1.65 christos /* end confdefs.h. */
3397 1.65 christos #include <sys/types.h>
3398 1.65 christos #include <sys/param.h>
3399 1.65 christos
3400 1.65 christos int
3401 1.65 christos main ()
3402 1.65 christos {
3403 1.65 christos #if BYTE_ORDER != BIG_ENDIAN
3404 1.65 christos not big endian
3405 1.65 christos #endif
3406 1.65 christos
3407 1.65 christos ;
3408 1.65 christos return 0;
3409 1.65 christos }
3410 1.65 christos _ACEOF
3411 1.65 christos rm -f conftest.$ac_objext
3412 1.65 christos if { (ac_try="$ac_compile"
3413 1.65 christos case "(($ac_try" in
3414 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 1.65 christos *) ac_try_echo=$ac_try;;
3416 1.65 christos esac
3417 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 1.65 christos (eval "$ac_compile") 2>conftest.er1
3419 1.65 christos ac_status=$?
3420 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3421 1.65 christos rm -f conftest.er1
3422 1.65 christos cat conftest.err >&5
3423 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 1.65 christos (exit $ac_status); } && {
3425 1.65 christos test -z "$ac_c_werror_flag" ||
3426 1.65 christos test ! -s conftest.err
3427 1.65 christos } && test -s conftest.$ac_objext; then
3428 1.65 christos ac_cv_c_bigendian=yes
3429 1.65 christos else
3430 1.65 christos echo "$as_me: failed program was:" >&5
3431 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3432 1.65 christos
3433 1.65 christos ac_cv_c_bigendian=no
3434 1.65 christos fi
3435 1.65 christos
3436 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 1.65 christos else
3438 1.65 christos echo "$as_me: failed program was:" >&5
3439 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3440 1.65 christos
3441 1.65 christos # It does not; compile a test program.
3442 1.65 christos if test "$cross_compiling" = yes; then
3443 1.65 christos # try to guess the endianness by grepping values into an object file
3444 1.65 christos ac_cv_c_bigendian=unknown
3445 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3446 1.65 christos /* confdefs.h. */
3447 1.65 christos _ACEOF
3448 1.65 christos cat confdefs.h >>conftest.$ac_ext
3449 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3450 1.65 christos /* end confdefs.h. */
3451 1.65 christos short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3452 1.65 christos short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3453 1.65 christos void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3454 1.65 christos short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3455 1.65 christos short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3456 1.65 christos void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3457 1.65 christos int
3458 1.65 christos main ()
3459 1.65 christos {
3460 1.65 christos _ascii (); _ebcdic ();
3461 1.65 christos ;
3462 1.65 christos return 0;
3463 1.65 christos }
3464 1.65 christos _ACEOF
3465 1.65 christos rm -f conftest.$ac_objext
3466 1.65 christos if { (ac_try="$ac_compile"
3467 1.65 christos case "(($ac_try" in
3468 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 1.65 christos *) ac_try_echo=$ac_try;;
3470 1.65 christos esac
3471 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 1.65 christos (eval "$ac_compile") 2>conftest.er1
3473 1.65 christos ac_status=$?
3474 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3475 1.65 christos rm -f conftest.er1
3476 1.65 christos cat conftest.err >&5
3477 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 1.65 christos (exit $ac_status); } && {
3479 1.65 christos test -z "$ac_c_werror_flag" ||
3480 1.65 christos test ! -s conftest.err
3481 1.65 christos } && test -s conftest.$ac_objext; then
3482 1.65 christos if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3483 1.65 christos ac_cv_c_bigendian=yes
3484 1.65 christos fi
3485 1.65 christos if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3486 1.65 christos if test "$ac_cv_c_bigendian" = unknown; then
3487 1.65 christos ac_cv_c_bigendian=no
3488 1.65 christos else
3489 1.65 christos # finding both strings is unlikely to happen, but who knows?
3490 1.65 christos ac_cv_c_bigendian=unknown
3491 1.65 christos fi
3492 1.65 christos fi
3493 1.65 christos else
3494 1.65 christos echo "$as_me: failed program was:" >&5
3495 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3496 1.65 christos
3497 1.65 christos
3498 1.65 christos fi
3499 1.65 christos
3500 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 1.65 christos else
3502 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3503 1.65 christos /* confdefs.h. */
3504 1.65 christos _ACEOF
3505 1.65 christos cat confdefs.h >>conftest.$ac_ext
3506 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3507 1.65 christos /* end confdefs.h. */
3508 1.65 christos $ac_includes_default
3509 1.65 christos int
3510 1.65 christos main ()
3511 1.65 christos {
3512 1.65 christos
3513 1.65 christos /* Are we little or big endian? From Harbison&Steele. */
3514 1.65 christos union
3515 1.65 christos {
3516 1.65 christos long int l;
3517 1.65 christos char c[sizeof (long int)];
3518 1.65 christos } u;
3519 1.65 christos u.l = 1;
3520 1.65 christos return u.c[sizeof (long int) - 1] == 1;
3521 1.65 christos
3522 1.65 christos ;
3523 1.65 christos return 0;
3524 1.65 christos }
3525 1.45 jmc _ACEOF
3526 1.45 jmc rm -f conftest$ac_exeext
3527 1.65 christos if { (ac_try="$ac_link"
3528 1.65 christos case "(($ac_try" in
3529 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 1.65 christos *) ac_try_echo=$ac_try;;
3531 1.65 christos esac
3532 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 1.65 christos (eval "$ac_link") 2>&5
3534 1.45 jmc ac_status=$?
3535 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 1.45 jmc (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3537 1.65 christos { (case "(($ac_try" in
3538 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 1.65 christos *) ac_try_echo=$ac_try;;
3540 1.65 christos esac
3541 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 1.65 christos (eval "$ac_try") 2>&5
3543 1.45 jmc ac_status=$?
3544 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 1.45 jmc (exit $ac_status); }; }; then
3546 1.45 jmc ac_cv_c_bigendian=no
3547 1.45 jmc else
3548 1.45 jmc echo "$as_me: program exited with status $ac_status" >&5
3549 1.45 jmc echo "$as_me: failed program was:" >&5
3550 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3551 1.65 christos
3552 1.65 christos ( exit $ac_status )
3553 1.45 jmc ac_cv_c_bigendian=yes
3554 1.45 jmc fi
3555 1.65 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3556 1.45 jmc fi
3557 1.65 christos
3558 1.65 christos
3559 1.1 tv fi
3560 1.65 christos
3561 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 1.1 tv fi
3563 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3564 1.65 christos echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3565 1.65 christos case $ac_cv_c_bigendian in
3566 1.65 christos yes)
3567 1.45 jmc
3568 1.65 christos cat >>confdefs.h <<\_ACEOF
3569 1.45 jmc #define WORDS_BIGENDIAN 1
3570 1.65 christos _ACEOF
3571 1.65 christos ;;
3572 1.65 christos no)
3573 1.65 christos ;;
3574 1.65 christos *)
3575 1.65 christos { { echo "$as_me:$LINENO: error: unknown endianness
3576 1.65 christos presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3577 1.65 christos echo "$as_me: error: unknown endianness
3578 1.65 christos presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3579 1.65 christos { (exit 1); exit 1; }; } ;;
3580 1.65 christos esac
3581 1.52 dbj
3582 1.65 christos { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3583 1.65 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3584 1.6 tv if test "${ac_cv_header_stdc+set}" = set; then
3585 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3586 1.6 tv else
3587 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3588 1.65 christos /* confdefs.h. */
3589 1.65 christos _ACEOF
3590 1.65 christos cat confdefs.h >>conftest.$ac_ext
3591 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3592 1.65 christos /* end confdefs.h. */
3593 1.6 tv #include <stdlib.h>
3594 1.6 tv #include <stdarg.h>
3595 1.6 tv #include <string.h>
3596 1.6 tv #include <float.h>
3597 1.6 tv
3598 1.65 christos int
3599 1.65 christos main ()
3600 1.65 christos {
3601 1.65 christos
3602 1.65 christos ;
3603 1.65 christos return 0;
3604 1.65 christos }
3605 1.6 tv _ACEOF
3606 1.65 christos rm -f conftest.$ac_objext
3607 1.65 christos if { (ac_try="$ac_compile"
3608 1.65 christos case "(($ac_try" in
3609 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 1.65 christos *) ac_try_echo=$ac_try;;
3611 1.65 christos esac
3612 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 1.65 christos (eval "$ac_compile") 2>conftest.er1
3614 1.39 fredb ac_status=$?
3615 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3616 1.50 jmc rm -f conftest.er1
3617 1.50 jmc cat conftest.err >&5
3618 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 1.65 christos (exit $ac_status); } && {
3620 1.65 christos test -z "$ac_c_werror_flag" ||
3621 1.65 christos test ! -s conftest.err
3622 1.65 christos } && test -s conftest.$ac_objext; then
3623 1.6 tv ac_cv_header_stdc=yes
3624 1.6 tv else
3625 1.6 tv echo "$as_me: failed program was:" >&5
3626 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3627 1.65 christos
3628 1.65 christos ac_cv_header_stdc=no
3629 1.6 tv fi
3630 1.65 christos
3631 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 1.6 tv
3633 1.6 tv if test $ac_cv_header_stdc = yes; then
3634 1.6 tv # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3636 1.65 christos /* confdefs.h. */
3637 1.65 christos _ACEOF
3638 1.65 christos cat confdefs.h >>conftest.$ac_ext
3639 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3640 1.65 christos /* end confdefs.h. */
3641 1.6 tv #include <string.h>
3642 1.6 tv
3643 1.6 tv _ACEOF
3644 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 1.65 christos $EGREP "memchr" >/dev/null 2>&1; then
3646 1.6 tv :
3647 1.6 tv else
3648 1.6 tv ac_cv_header_stdc=no
3649 1.6 tv fi
3650 1.6 tv rm -f conftest*
3651 1.6 tv
3652 1.6 tv fi
3653 1.6 tv
3654 1.6 tv if test $ac_cv_header_stdc = yes; then
3655 1.6 tv # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3657 1.65 christos /* confdefs.h. */
3658 1.65 christos _ACEOF
3659 1.65 christos cat confdefs.h >>conftest.$ac_ext
3660 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3661 1.65 christos /* end confdefs.h. */
3662 1.6 tv #include <stdlib.h>
3663 1.6 tv
3664 1.6 tv _ACEOF
3665 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 1.65 christos $EGREP "free" >/dev/null 2>&1; then
3667 1.6 tv :
3668 1.6 tv else
3669 1.6 tv ac_cv_header_stdc=no
3670 1.6 tv fi
3671 1.6 tv rm -f conftest*
3672 1.6 tv
3673 1.6 tv fi
3674 1.6 tv
3675 1.6 tv if test $ac_cv_header_stdc = yes; then
3676 1.6 tv # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677 1.6 tv if test "$cross_compiling" = yes; then
3678 1.6 tv :
3679 1.6 tv else
3680 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3681 1.65 christos /* confdefs.h. */
3682 1.65 christos _ACEOF
3683 1.65 christos cat confdefs.h >>conftest.$ac_ext
3684 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3685 1.65 christos /* end confdefs.h. */
3686 1.6 tv #include <ctype.h>
3687 1.65 christos #include <stdlib.h>
3688 1.6 tv #if ((' ' & 0x0FF) == 0x020)
3689 1.6 tv # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3691 1.6 tv #else
3692 1.65 christos # define ISLOWER(c) \
3693 1.65 christos (('a' <= (c) && (c) <= 'i') \
3694 1.65 christos || ('j' <= (c) && (c) <= 'r') \
3695 1.65 christos || ('s' <= (c) && (c) <= 'z'))
3696 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3697 1.6 tv #endif
3698 1.6 tv
3699 1.6 tv #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3700 1.6 tv int
3701 1.6 tv main ()
3702 1.6 tv {
3703 1.6 tv int i;
3704 1.6 tv for (i = 0; i < 256; i++)
3705 1.6 tv if (XOR (islower (i), ISLOWER (i))
3706 1.65 christos || toupper (i) != TOUPPER (i))
3707 1.65 christos return 2;
3708 1.65 christos return 0;
3709 1.6 tv }
3710 1.6 tv _ACEOF
3711 1.6 tv rm -f conftest$ac_exeext
3712 1.65 christos if { (ac_try="$ac_link"
3713 1.65 christos case "(($ac_try" in
3714 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 1.65 christos *) ac_try_echo=$ac_try;;
3716 1.65 christos esac
3717 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 1.65 christos (eval "$ac_link") 2>&5
3719 1.6 tv ac_status=$?
3720 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 1.6 tv (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3722 1.65 christos { (case "(($ac_try" in
3723 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 1.65 christos *) ac_try_echo=$ac_try;;
3725 1.65 christos esac
3726 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 1.65 christos (eval "$ac_try") 2>&5
3728 1.6 tv ac_status=$?
3729 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 1.6 tv (exit $ac_status); }; }; then
3731 1.6 tv :
3732 1.6 tv else
3733 1.6 tv echo "$as_me: program exited with status $ac_status" >&5
3734 1.6 tv echo "$as_me: failed program was:" >&5
3735 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3736 1.65 christos
3737 1.65 christos ( exit $ac_status )
3738 1.6 tv ac_cv_header_stdc=no
3739 1.6 tv fi
3740 1.65 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3741 1.6 tv fi
3742 1.65 christos
3743 1.65 christos
3744 1.6 tv fi
3745 1.6 tv fi
3746 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 1.65 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 1.6 tv if test $ac_cv_header_stdc = yes; then
3749 1.6 tv
3750 1.65 christos cat >>confdefs.h <<\_ACEOF
3751 1.6 tv #define STDC_HEADERS 1
3752 1.65 christos _ACEOF
3753 1.6 tv
3754 1.6 tv fi
3755 1.6 tv
3756 1.65 christos
3757 1.6 tv # Confirm existence of zlib. (This is available as a default install
3758 1.6 tv # option on many OS's; this could be added as a reachover build in the
3759 1.6 tv # future.)
3760 1.65 christos if test "${ac_cv_header_zlib_h+set}" = set; then
3761 1.65 christos { echo "$as_me:$LINENO: checking for zlib.h" >&5
3762 1.65 christos echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
3763 1.63 apb if test "${ac_cv_header_zlib_h+set}" = set; then
3764 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3765 1.65 christos fi
3766 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3767 1.65 christos echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
3768 1.39 fredb else
3769 1.65 christos # Is the header compilable?
3770 1.65 christos { echo "$as_me:$LINENO: checking zlib.h usability" >&5
3771 1.65 christos echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
3772 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3773 1.65 christos /* confdefs.h. */
3774 1.65 christos _ACEOF
3775 1.65 christos cat confdefs.h >>conftest.$ac_ext
3776 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3777 1.65 christos /* end confdefs.h. */
3778 1.65 christos $ac_includes_default
3779 1.63 apb #include <zlib.h>
3780 1.61 christos _ACEOF
3781 1.65 christos rm -f conftest.$ac_objext
3782 1.65 christos if { (ac_try="$ac_compile"
3783 1.65 christos case "(($ac_try" in
3784 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 1.65 christos *) ac_try_echo=$ac_try;;
3786 1.65 christos esac
3787 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 1.65 christos (eval "$ac_compile") 2>conftest.er1
3789 1.4 tv ac_status=$?
3790 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3791 1.50 jmc rm -f conftest.er1
3792 1.50 jmc cat conftest.err >&5
3793 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 1.65 christos (exit $ac_status); } && {
3795 1.65 christos test -z "$ac_c_werror_flag" ||
3796 1.65 christos test ! -s conftest.err
3797 1.65 christos } && test -s conftest.$ac_objext; then
3798 1.65 christos ac_header_compiler=yes
3799 1.4 tv else
3800 1.4 tv echo "$as_me: failed program was:" >&5
3801 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3802 1.65 christos
3803 1.65 christos ac_header_compiler=no
3804 1.4 tv fi
3805 1.65 christos
3806 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3808 1.65 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
3809 1.65 christos
3810 1.65 christos # Is the header present?
3811 1.65 christos { echo "$as_me:$LINENO: checking zlib.h presence" >&5
3812 1.65 christos echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
3813 1.65 christos cat >conftest.$ac_ext <<_ACEOF
3814 1.65 christos /* confdefs.h. */
3815 1.65 christos _ACEOF
3816 1.65 christos cat confdefs.h >>conftest.$ac_ext
3817 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3818 1.65 christos /* end confdefs.h. */
3819 1.65 christos #include <zlib.h>
3820 1.65 christos _ACEOF
3821 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 1.65 christos case "(($ac_try" in
3823 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 1.65 christos *) ac_try_echo=$ac_try;;
3825 1.65 christos esac
3826 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 1.65 christos ac_status=$?
3829 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3830 1.65 christos rm -f conftest.er1
3831 1.65 christos cat conftest.err >&5
3832 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 1.65 christos (exit $ac_status); } >/dev/null && {
3834 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3835 1.65 christos test ! -s conftest.err
3836 1.65 christos }; then
3837 1.65 christos ac_header_preproc=yes
3838 1.65 christos else
3839 1.65 christos echo "$as_me: failed program was:" >&5
3840 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3841 1.65 christos
3842 1.65 christos ac_header_preproc=no
3843 1.65 christos fi
3844 1.65 christos
3845 1.63 apb rm -f conftest.err conftest.$ac_ext
3846 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3847 1.65 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
3848 1.65 christos
3849 1.65 christos # So? What about this header?
3850 1.65 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3851 1.65 christos yes:no: )
3852 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3853 1.65 christos echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3854 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3855 1.65 christos echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3856 1.65 christos ac_header_preproc=yes
3857 1.65 christos ;;
3858 1.65 christos no:yes:* )
3859 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3860 1.65 christos echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3861 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
3862 1.65 christos echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
3863 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3864 1.65 christos echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3865 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
3866 1.65 christos echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3867 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3868 1.65 christos echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3869 1.65 christos { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3870 1.65 christos echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3871 1.65 christos ( cat <<\_ASBOX
3872 1.65 christos ## ---------------------------------------- ##
3873 1.65 christos ## Report this to lib-bug-people (at] NetBSD.org ##
3874 1.65 christos ## ---------------------------------------- ##
3875 1.65 christos _ASBOX
3876 1.65 christos ) | sed "s/^/$as_me: WARNING: /" >&2
3877 1.65 christos ;;
3878 1.65 christos esac
3879 1.65 christos { echo "$as_me:$LINENO: checking for zlib.h" >&5
3880 1.65 christos echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
3881 1.65 christos if test "${ac_cv_header_zlib_h+set}" = set; then
3882 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3883 1.65 christos else
3884 1.65 christos ac_cv_header_zlib_h=$ac_header_preproc
3885 1.65 christos fi
3886 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3887 1.65 christos echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
3888 1.65 christos
3889 1.4 tv fi
3890 1.63 apb if test $ac_cv_header_zlib_h = yes; then
3891 1.63 apb :
3892 1.63 apb else
3893 1.65 christos { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3894 1.63 apb echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3895 1.63 apb { (exit 1); exit 1; }; }
3896 1.6 tv fi
3897 1.6 tv
3898 1.65 christos
3899 1.65 christos
3900 1.65 christos { echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3901 1.65 christos echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6; }
3902 1.63 apb if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3903 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
3904 1.52 dbj else
3905 1.52 dbj ac_check_lib_save_LIBS=$LIBS
3906 1.52 dbj LIBS="-lz $LIBS"
3907 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
3908 1.65 christos /* confdefs.h. */
3909 1.65 christos _ACEOF
3910 1.65 christos cat confdefs.h >>conftest.$ac_ext
3911 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
3912 1.65 christos /* end confdefs.h. */
3913 1.48 jmc
3914 1.65 christos /* Override any GCC internal prototype to avoid an error.
3915 1.65 christos Use char because int might match the return type of a GCC
3916 1.65 christos builtin and then its argument prototype would still apply. */
3917 1.6 tv #ifdef __cplusplus
3918 1.6 tv extern "C"
3919 1.6 tv #endif
3920 1.6 tv char gzdopen ();
3921 1.6 tv int
3922 1.6 tv main ()
3923 1.6 tv {
3924 1.65 christos return gzdopen ();
3925 1.6 tv ;
3926 1.6 tv return 0;
3927 1.6 tv }
3928 1.6 tv _ACEOF
3929 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
3930 1.65 christos if { (ac_try="$ac_link"
3931 1.65 christos case "(($ac_try" in
3932 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 1.65 christos *) ac_try_echo=$ac_try;;
3934 1.65 christos esac
3935 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 1.65 christos (eval "$ac_link") 2>conftest.er1
3937 1.6 tv ac_status=$?
3938 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
3939 1.65 christos rm -f conftest.er1
3940 1.65 christos cat conftest.err >&5
3941 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 1.65 christos (exit $ac_status); } && {
3943 1.65 christos test -z "$ac_c_werror_flag" ||
3944 1.65 christos test ! -s conftest.err
3945 1.65 christos } && test -s conftest$ac_exeext &&
3946 1.65 christos $as_test_x conftest$ac_exeext; then
3947 1.6 tv ac_cv_lib_z_gzdopen=yes
3948 1.6 tv else
3949 1.6 tv echo "$as_me: failed program was:" >&5
3950 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
3951 1.65 christos
3952 1.65 christos ac_cv_lib_z_gzdopen=no
3953 1.6 tv fi
3954 1.65 christos
3955 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 1.65 christos conftest$ac_exeext conftest.$ac_ext
3957 1.6 tv LIBS=$ac_check_lib_save_LIBS
3958 1.6 tv fi
3959 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3960 1.65 christos echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6; }
3961 1.6 tv if test $ac_cv_lib_z_gzdopen = yes; then
3962 1.65 christos cat >>confdefs.h <<_ACEOF
3963 1.6 tv #define HAVE_LIBZ 1
3964 1.65 christos _ACEOF
3965 1.4 tv
3966 1.6 tv LIBS="-lz $LIBS"
3967 1.6 tv
3968 1.4 tv else
3969 1.65 christos { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3970 1.6 tv echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3971 1.4 tv { (exit 1); exit 1; }; }
3972 1.4 tv fi
3973 1.4 tv
3974 1.65 christos
3975 1.6 tv # Make sure certain required headers are available.
3976 1.6 tv # These are not necessarily required by the code, but they are not
3977 1.6 tv # currently conditionalized.
3978 1.4 tv
3979 1.65 christos
3980 1.65 christos
3981 1.65 christos
3982 1.65 christos
3983 1.65 christos
3984 1.65 christos
3985 1.65 christos
3986 1.65 christos
3987 1.65 christos
3988 1.65 christos
3989 1.65 christos
3990 1.65 christos
3991 1.65 christos
3992 1.65 christos
3993 1.65 christos
3994 1.65 christos
3995 1.65 christos
3996 1.65 christos
3997 1.65 christos
3998 1.65 christos
3999 1.65 christos
4000 1.65 christos
4001 1.65 christos
4002 1.65 christos
4003 1.65 christos
4004 1.43 dbj for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
4005 1.43 dbj sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
4006 1.43 dbj sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
4007 1.43 dbj netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
4008 1.43 dbj termios.h unistd.h
4009 1.43 dbj do
4010 1.43 dbj as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4012 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
4016 1.65 christos fi
4017 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4018 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4019 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4020 1.65 christos else
4021 1.65 christos # Is the header compilable?
4022 1.65 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4023 1.65 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4024 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4025 1.65 christos /* confdefs.h. */
4026 1.65 christos _ACEOF
4027 1.65 christos cat confdefs.h >>conftest.$ac_ext
4028 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4029 1.65 christos /* end confdefs.h. */
4030 1.65 christos $ac_includes_default
4031 1.48 jmc #include <$ac_header>
4032 1.48 jmc _ACEOF
4033 1.65 christos rm -f conftest.$ac_objext
4034 1.65 christos if { (ac_try="$ac_compile"
4035 1.65 christos case "(($ac_try" in
4036 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 1.65 christos *) ac_try_echo=$ac_try;;
4038 1.65 christos esac
4039 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 1.65 christos (eval "$ac_compile") 2>conftest.er1
4041 1.4 tv ac_status=$?
4042 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4043 1.4 tv rm -f conftest.er1
4044 1.4 tv cat conftest.err >&5
4045 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 1.65 christos (exit $ac_status); } && {
4047 1.65 christos test -z "$ac_c_werror_flag" ||
4048 1.65 christos test ! -s conftest.err
4049 1.65 christos } && test -s conftest.$ac_objext; then
4050 1.65 christos ac_header_compiler=yes
4051 1.4 tv else
4052 1.65 christos echo "$as_me: failed program was:" >&5
4053 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4054 1.65 christos
4055 1.65 christos ac_header_compiler=no
4056 1.6 tv fi
4057 1.65 christos
4058 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4060 1.65 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4061 1.65 christos
4062 1.65 christos # Is the header present?
4063 1.65 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4064 1.65 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4065 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4066 1.65 christos /* confdefs.h. */
4067 1.65 christos _ACEOF
4068 1.65 christos cat confdefs.h >>conftest.$ac_ext
4069 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4070 1.65 christos /* end confdefs.h. */
4071 1.65 christos #include <$ac_header>
4072 1.65 christos _ACEOF
4073 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 1.65 christos case "(($ac_try" in
4075 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 1.65 christos *) ac_try_echo=$ac_try;;
4077 1.65 christos esac
4078 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080 1.65 christos ac_status=$?
4081 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4082 1.65 christos rm -f conftest.er1
4083 1.65 christos cat conftest.err >&5
4084 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 1.65 christos (exit $ac_status); } >/dev/null && {
4086 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 1.65 christos test ! -s conftest.err
4088 1.65 christos }; then
4089 1.65 christos ac_header_preproc=yes
4090 1.6 tv else
4091 1.6 tv echo "$as_me: failed program was:" >&5
4092 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4093 1.65 christos
4094 1.65 christos ac_header_preproc=no
4095 1.6 tv fi
4096 1.65 christos
4097 1.6 tv rm -f conftest.err conftest.$ac_ext
4098 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4099 1.65 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4100 1.65 christos
4101 1.65 christos # So? What about this header?
4102 1.65 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4103 1.65 christos yes:no: )
4104 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4105 1.65 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4106 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4107 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4108 1.65 christos ac_header_preproc=yes
4109 1.65 christos ;;
4110 1.65 christos no:yes:* )
4111 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4112 1.65 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4113 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4114 1.65 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4115 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4116 1.65 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4117 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4118 1.65 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4119 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4120 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4121 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4122 1.65 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4123 1.65 christos ( cat <<\_ASBOX
4124 1.65 christos ## ---------------------------------------- ##
4125 1.65 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4126 1.65 christos ## ---------------------------------------- ##
4127 1.65 christos _ASBOX
4128 1.65 christos ) | sed "s/^/$as_me: WARNING: /" >&2
4129 1.65 christos ;;
4130 1.65 christos esac
4131 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4133 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4134 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4135 1.65 christos else
4136 1.65 christos eval "$as_ac_Header=\$ac_header_preproc"
4137 1.65 christos fi
4138 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4139 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4141 1.65 christos
4142 1.6 tv fi
4143 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 1.65 christos cat >>confdefs.h <<_ACEOF
4145 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 1.65 christos _ACEOF
4147 1.6 tv
4148 1.6 tv else
4149 1.65 christos { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
4150 1.6 tv echo "$as_me: error: standard system header file not found" >&2;}
4151 1.6 tv { (exit 1); exit 1; }; }
4152 1.6 tv fi
4153 1.65 christos
4154 1.6 tv done
4155 1.6 tv
4156 1.65 christos
4157 1.6 tv # Find headers that may not be available.
4158 1.6 tv
4159 1.65 christos
4160 1.65 christos
4161 1.65 christos
4162 1.65 christos
4163 1.6 tv ac_header_dirent=no
4164 1.6 tv for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4165 1.6 tv as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4166 1.65 christos { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4167 1.65 christos echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4168 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4169 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4170 1.6 tv else
4171 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4172 1.65 christos /* confdefs.h. */
4173 1.65 christos _ACEOF
4174 1.65 christos cat confdefs.h >>conftest.$ac_ext
4175 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4176 1.65 christos /* end confdefs.h. */
4177 1.6 tv #include <sys/types.h>
4178 1.6 tv #include <$ac_hdr>
4179 1.6 tv
4180 1.6 tv int
4181 1.6 tv main ()
4182 1.6 tv {
4183 1.6 tv if ((DIR *) 0)
4184 1.6 tv return 0;
4185 1.6 tv ;
4186 1.6 tv return 0;
4187 1.6 tv }
4188 1.6 tv _ACEOF
4189 1.6 tv rm -f conftest.$ac_objext
4190 1.65 christos if { (ac_try="$ac_compile"
4191 1.65 christos case "(($ac_try" in
4192 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 1.65 christos *) ac_try_echo=$ac_try;;
4194 1.65 christos esac
4195 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 1.65 christos (eval "$ac_compile") 2>conftest.er1
4197 1.6 tv ac_status=$?
4198 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4199 1.65 christos rm -f conftest.er1
4200 1.65 christos cat conftest.err >&5
4201 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 1.65 christos (exit $ac_status); } && {
4203 1.65 christos test -z "$ac_c_werror_flag" ||
4204 1.65 christos test ! -s conftest.err
4205 1.65 christos } && test -s conftest.$ac_objext; then
4206 1.6 tv eval "$as_ac_Header=yes"
4207 1.6 tv else
4208 1.6 tv echo "$as_me: failed program was:" >&5
4209 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4210 1.65 christos
4211 1.65 christos eval "$as_ac_Header=no"
4212 1.6 tv fi
4213 1.65 christos
4214 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 1.6 tv fi
4216 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4217 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4218 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4219 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
4220 1.65 christos cat >>confdefs.h <<_ACEOF
4221 1.6 tv #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4222 1.65 christos _ACEOF
4223 1.6 tv
4224 1.6 tv ac_header_dirent=$ac_hdr; break
4225 1.6 tv fi
4226 1.6 tv
4227 1.6 tv done
4228 1.6 tv # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4229 1.6 tv if test $ac_header_dirent = dirent.h; then
4230 1.65 christos { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4231 1.65 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4232 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4233 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4234 1.6 tv else
4235 1.65 christos ac_func_search_save_LIBS=$LIBS
4236 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4237 1.65 christos /* confdefs.h. */
4238 1.65 christos _ACEOF
4239 1.65 christos cat confdefs.h >>conftest.$ac_ext
4240 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4241 1.65 christos /* end confdefs.h. */
4242 1.48 jmc
4243 1.65 christos /* Override any GCC internal prototype to avoid an error.
4244 1.65 christos Use char because int might match the return type of a GCC
4245 1.65 christos builtin and then its argument prototype would still apply. */
4246 1.48 jmc #ifdef __cplusplus
4247 1.48 jmc extern "C"
4248 1.48 jmc #endif
4249 1.48 jmc char opendir ();
4250 1.48 jmc int
4251 1.48 jmc main ()
4252 1.48 jmc {
4253 1.65 christos return opendir ();
4254 1.48 jmc ;
4255 1.48 jmc return 0;
4256 1.48 jmc }
4257 1.48 jmc _ACEOF
4258 1.65 christos for ac_lib in '' dir; do
4259 1.65 christos if test -z "$ac_lib"; then
4260 1.65 christos ac_res="none required"
4261 1.65 christos else
4262 1.65 christos ac_res=-l$ac_lib
4263 1.65 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4264 1.65 christos fi
4265 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
4266 1.65 christos if { (ac_try="$ac_link"
4267 1.65 christos case "(($ac_try" in
4268 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 1.65 christos *) ac_try_echo=$ac_try;;
4270 1.65 christos esac
4271 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 1.65 christos (eval "$ac_link") 2>conftest.er1
4273 1.6 tv ac_status=$?
4274 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4275 1.65 christos rm -f conftest.er1
4276 1.65 christos cat conftest.err >&5
4277 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 1.65 christos (exit $ac_status); } && {
4279 1.65 christos test -z "$ac_c_werror_flag" ||
4280 1.65 christos test ! -s conftest.err
4281 1.65 christos } && test -s conftest$ac_exeext &&
4282 1.65 christos $as_test_x conftest$ac_exeext; then
4283 1.65 christos ac_cv_search_opendir=$ac_res
4284 1.6 tv else
4285 1.6 tv echo "$as_me: failed program was:" >&5
4286 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4287 1.65 christos
4288 1.65 christos
4289 1.63 apb fi
4290 1.65 christos
4291 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4292 1.65 christos conftest$ac_exeext
4293 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4294 1.65 christos break
4295 1.65 christos fi
4296 1.65 christos done
4297 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4298 1.65 christos :
4299 1.65 christos else
4300 1.65 christos ac_cv_search_opendir=no
4301 1.65 christos fi
4302 1.65 christos rm conftest.$ac_ext
4303 1.65 christos LIBS=$ac_func_search_save_LIBS
4304 1.63 apb fi
4305 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4306 1.65 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4307 1.65 christos ac_res=$ac_cv_search_opendir
4308 1.65 christos if test "$ac_res" != no; then
4309 1.65 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4310 1.65 christos
4311 1.63 apb fi
4312 1.61 christos
4313 1.63 apb else
4314 1.65 christos { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4315 1.65 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4316 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4317 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
4318 1.63 apb else
4319 1.65 christos ac_func_search_save_LIBS=$LIBS
4320 1.63 apb cat >conftest.$ac_ext <<_ACEOF
4321 1.65 christos /* confdefs.h. */
4322 1.65 christos _ACEOF
4323 1.65 christos cat confdefs.h >>conftest.$ac_ext
4324 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4325 1.65 christos /* end confdefs.h. */
4326 1.6 tv
4327 1.65 christos /* Override any GCC internal prototype to avoid an error.
4328 1.65 christos Use char because int might match the return type of a GCC
4329 1.65 christos builtin and then its argument prototype would still apply. */
4330 1.6 tv #ifdef __cplusplus
4331 1.6 tv extern "C"
4332 1.6 tv #endif
4333 1.6 tv char opendir ();
4334 1.6 tv int
4335 1.6 tv main ()
4336 1.6 tv {
4337 1.65 christos return opendir ();
4338 1.6 tv ;
4339 1.6 tv return 0;
4340 1.6 tv }
4341 1.6 tv _ACEOF
4342 1.65 christos for ac_lib in '' x; do
4343 1.65 christos if test -z "$ac_lib"; then
4344 1.65 christos ac_res="none required"
4345 1.65 christos else
4346 1.65 christos ac_res=-l$ac_lib
4347 1.65 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4348 1.65 christos fi
4349 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
4350 1.65 christos if { (ac_try="$ac_link"
4351 1.65 christos case "(($ac_try" in
4352 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 1.65 christos *) ac_try_echo=$ac_try;;
4354 1.65 christos esac
4355 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 1.65 christos (eval "$ac_link") 2>conftest.er1
4357 1.48 jmc ac_status=$?
4358 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4359 1.65 christos rm -f conftest.er1
4360 1.65 christos cat conftest.err >&5
4361 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 1.65 christos (exit $ac_status); } && {
4363 1.65 christos test -z "$ac_c_werror_flag" ||
4364 1.65 christos test ! -s conftest.err
4365 1.65 christos } && test -s conftest$ac_exeext &&
4366 1.65 christos $as_test_x conftest$ac_exeext; then
4367 1.65 christos ac_cv_search_opendir=$ac_res
4368 1.48 jmc else
4369 1.48 jmc echo "$as_me: failed program was:" >&5
4370 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4371 1.65 christos
4372 1.65 christos
4373 1.65 christos fi
4374 1.65 christos
4375 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4376 1.65 christos conftest$ac_exeext
4377 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4378 1.65 christos break
4379 1.65 christos fi
4380 1.65 christos done
4381 1.65 christos if test "${ac_cv_search_opendir+set}" = set; then
4382 1.65 christos :
4383 1.65 christos else
4384 1.65 christos ac_cv_search_opendir=no
4385 1.48 jmc fi
4386 1.65 christos rm conftest.$ac_ext
4387 1.65 christos LIBS=$ac_func_search_save_LIBS
4388 1.48 jmc fi
4389 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4390 1.65 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4391 1.65 christos ac_res=$ac_cv_search_opendir
4392 1.65 christos if test "$ac_res" != no; then
4393 1.65 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4394 1.65 christos
4395 1.6 tv fi
4396 1.39 fredb
4397 1.6 tv fi
4398 1.6 tv
4399 1.65 christos
4400 1.65 christos
4401 1.65 christos
4402 1.65 christos
4403 1.65 christos
4404 1.65 christos
4405 1.65 christos
4406 1.63 apb for ac_header in sys/sysmacros.h sys/syslimits.h \
4407 1.63 apb getopt.h features.h malloc.h sys/poll.h stddef.h
4408 1.63 apb do
4409 1.63 apb as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4410 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4411 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4412 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4413 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4414 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4415 1.65 christos fi
4416 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4417 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4418 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4419 1.65 christos else
4420 1.65 christos # Is the header compilable?
4421 1.65 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4422 1.65 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4423 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4424 1.65 christos /* confdefs.h. */
4425 1.65 christos _ACEOF
4426 1.65 christos cat confdefs.h >>conftest.$ac_ext
4427 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4428 1.65 christos /* end confdefs.h. */
4429 1.65 christos $ac_includes_default
4430 1.63 apb #include <$ac_header>
4431 1.61 christos _ACEOF
4432 1.65 christos rm -f conftest.$ac_objext
4433 1.65 christos if { (ac_try="$ac_compile"
4434 1.65 christos case "(($ac_try" in
4435 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 1.65 christos *) ac_try_echo=$ac_try;;
4437 1.65 christos esac
4438 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 1.65 christos (eval "$ac_compile") 2>conftest.er1
4440 1.6 tv ac_status=$?
4441 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4442 1.6 tv rm -f conftest.er1
4443 1.6 tv cat conftest.err >&5
4444 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 1.65 christos (exit $ac_status); } && {
4446 1.65 christos test -z "$ac_c_werror_flag" ||
4447 1.65 christos test ! -s conftest.err
4448 1.65 christos } && test -s conftest.$ac_objext; then
4449 1.65 christos ac_header_compiler=yes
4450 1.63 apb else
4451 1.65 christos echo "$as_me: failed program was:" >&5
4452 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4453 1.65 christos
4454 1.65 christos ac_header_compiler=no
4455 1.63 apb fi
4456 1.65 christos
4457 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459 1.65 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4460 1.65 christos
4461 1.65 christos # Is the header present?
4462 1.65 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4463 1.65 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4464 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4465 1.65 christos /* confdefs.h. */
4466 1.65 christos _ACEOF
4467 1.65 christos cat confdefs.h >>conftest.$ac_ext
4468 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4469 1.65 christos /* end confdefs.h. */
4470 1.65 christos #include <$ac_header>
4471 1.65 christos _ACEOF
4472 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 1.65 christos case "(($ac_try" in
4474 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 1.65 christos *) ac_try_echo=$ac_try;;
4476 1.65 christos esac
4477 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479 1.65 christos ac_status=$?
4480 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4481 1.65 christos rm -f conftest.er1
4482 1.65 christos cat conftest.err >&5
4483 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 1.65 christos (exit $ac_status); } >/dev/null && {
4485 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486 1.65 christos test ! -s conftest.err
4487 1.65 christos }; then
4488 1.65 christos ac_header_preproc=yes
4489 1.6 tv else
4490 1.6 tv echo "$as_me: failed program was:" >&5
4491 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4492 1.65 christos
4493 1.65 christos ac_header_preproc=no
4494 1.63 apb fi
4495 1.65 christos
4496 1.63 apb rm -f conftest.err conftest.$ac_ext
4497 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4498 1.65 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4499 1.65 christos
4500 1.65 christos # So? What about this header?
4501 1.65 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4502 1.65 christos yes:no: )
4503 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4504 1.65 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4505 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4506 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4507 1.65 christos ac_header_preproc=yes
4508 1.65 christos ;;
4509 1.65 christos no:yes:* )
4510 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4511 1.65 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4512 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4513 1.65 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4514 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4515 1.65 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4516 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4517 1.65 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4518 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4519 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4520 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4521 1.65 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4522 1.65 christos ( cat <<\_ASBOX
4523 1.65 christos ## ---------------------------------------- ##
4524 1.65 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4525 1.65 christos ## ---------------------------------------- ##
4526 1.65 christos _ASBOX
4527 1.65 christos ) | sed "s/^/$as_me: WARNING: /" >&2
4528 1.65 christos ;;
4529 1.65 christos esac
4530 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4531 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4532 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4534 1.65 christos else
4535 1.65 christos eval "$as_ac_Header=\$ac_header_preproc"
4536 1.65 christos fi
4537 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4538 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4539 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4540 1.65 christos
4541 1.63 apb fi
4542 1.63 apb if test `eval echo '${'$as_ac_Header'}'` = yes; then
4543 1.65 christos cat >>confdefs.h <<_ACEOF
4544 1.63 apb #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4545 1.65 christos _ACEOF
4546 1.6 tv
4547 1.6 tv fi
4548 1.65 christos
4549 1.63 apb done
4550 1.6 tv
4551 1.65 christos
4552 1.65 christos
4553 1.65 christos
4554 1.65 christos
4555 1.65 christos
4556 1.65 christos
4557 1.65 christos
4558 1.65 christos
4559 1.65 christos
4560 1.65 christos
4561 1.65 christos
4562 1.63 apb for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
4563 1.63 apb sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h
4564 1.63 apb do
4565 1.63 apb as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4567 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4569 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4570 1.39 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
4571 1.65 christos fi
4572 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4573 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4574 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4575 1.65 christos else
4576 1.65 christos # Is the header compilable?
4577 1.65 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 1.65 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4579 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4580 1.65 christos /* confdefs.h. */
4581 1.65 christos _ACEOF
4582 1.65 christos cat confdefs.h >>conftest.$ac_ext
4583 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4584 1.65 christos /* end confdefs.h. */
4585 1.65 christos $ac_includes_default
4586 1.48 jmc #include <$ac_header>
4587 1.48 jmc _ACEOF
4588 1.65 christos rm -f conftest.$ac_objext
4589 1.65 christos if { (ac_try="$ac_compile"
4590 1.65 christos case "(($ac_try" in
4591 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 1.65 christos *) ac_try_echo=$ac_try;;
4593 1.65 christos esac
4594 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 1.65 christos (eval "$ac_compile") 2>conftest.er1
4596 1.6 tv ac_status=$?
4597 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4598 1.6 tv rm -f conftest.er1
4599 1.6 tv cat conftest.err >&5
4600 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 1.65 christos (exit $ac_status); } && {
4602 1.65 christos test -z "$ac_c_werror_flag" ||
4603 1.65 christos test ! -s conftest.err
4604 1.65 christos } && test -s conftest.$ac_objext; then
4605 1.65 christos ac_header_compiler=yes
4606 1.6 tv else
4607 1.65 christos echo "$as_me: failed program was:" >&5
4608 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4609 1.65 christos
4610 1.65 christos ac_header_compiler=no
4611 1.6 tv fi
4612 1.65 christos
4613 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4615 1.65 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4616 1.65 christos
4617 1.65 christos # Is the header present?
4618 1.65 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4619 1.65 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4620 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4621 1.65 christos /* confdefs.h. */
4622 1.65 christos _ACEOF
4623 1.65 christos cat confdefs.h >>conftest.$ac_ext
4624 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4625 1.65 christos /* end confdefs.h. */
4626 1.65 christos #include <$ac_header>
4627 1.65 christos _ACEOF
4628 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4629 1.65 christos case "(($ac_try" in
4630 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 1.65 christos *) ac_try_echo=$ac_try;;
4632 1.65 christos esac
4633 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4635 1.65 christos ac_status=$?
4636 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4637 1.65 christos rm -f conftest.er1
4638 1.65 christos cat conftest.err >&5
4639 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 1.65 christos (exit $ac_status); } >/dev/null && {
4641 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4642 1.65 christos test ! -s conftest.err
4643 1.65 christos }; then
4644 1.65 christos ac_header_preproc=yes
4645 1.6 tv else
4646 1.6 tv echo "$as_me: failed program was:" >&5
4647 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4648 1.65 christos
4649 1.65 christos ac_header_preproc=no
4650 1.6 tv fi
4651 1.65 christos
4652 1.6 tv rm -f conftest.err conftest.$ac_ext
4653 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4654 1.65 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4655 1.65 christos
4656 1.65 christos # So? What about this header?
4657 1.65 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4658 1.65 christos yes:no: )
4659 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4660 1.65 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4661 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4662 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4663 1.65 christos ac_header_preproc=yes
4664 1.65 christos ;;
4665 1.65 christos no:yes:* )
4666 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4667 1.65 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4668 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4669 1.65 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4670 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4671 1.65 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4672 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4673 1.65 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4674 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4675 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4676 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4677 1.65 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4678 1.65 christos ( cat <<\_ASBOX
4679 1.65 christos ## ---------------------------------------- ##
4680 1.65 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4681 1.65 christos ## ---------------------------------------- ##
4682 1.65 christos _ASBOX
4683 1.65 christos ) | sed "s/^/$as_me: WARNING: /" >&2
4684 1.65 christos ;;
4685 1.65 christos esac
4686 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4687 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4688 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4689 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4690 1.65 christos else
4691 1.65 christos eval "$as_ac_Header=\$ac_header_preproc"
4692 1.65 christos fi
4693 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4694 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4695 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4696 1.65 christos
4697 1.6 tv fi
4698 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699 1.65 christos cat >>confdefs.h <<_ACEOF
4700 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 1.65 christos _ACEOF
4702 1.6 tv
4703 1.63 apb else
4704 1.63 apb test -f include/$ac_header || touch include/$ac_header
4705 1.6 tv fi
4706 1.65 christos
4707 1.6 tv done
4708 1.6 tv
4709 1.65 christos
4710 1.65 christos
4711 1.63 apb for ac_header in rpc/types.h netconfig.h
4712 1.7 tv do
4713 1.7 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4715 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4716 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4717 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4718 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4719 1.65 christos fi
4720 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4721 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4722 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4723 1.65 christos else
4724 1.65 christos # Is the header compilable?
4725 1.65 christos { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4726 1.65 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4727 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4728 1.65 christos /* confdefs.h. */
4729 1.65 christos _ACEOF
4730 1.65 christos cat confdefs.h >>conftest.$ac_ext
4731 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4732 1.65 christos /* end confdefs.h. */
4733 1.65 christos $ac_includes_default
4734 1.7 tv #include <$ac_header>
4735 1.7 tv _ACEOF
4736 1.65 christos rm -f conftest.$ac_objext
4737 1.65 christos if { (ac_try="$ac_compile"
4738 1.65 christos case "(($ac_try" in
4739 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 1.65 christos *) ac_try_echo=$ac_try;;
4741 1.65 christos esac
4742 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 1.65 christos (eval "$ac_compile") 2>conftest.er1
4744 1.7 tv ac_status=$?
4745 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4746 1.7 tv rm -f conftest.er1
4747 1.7 tv cat conftest.err >&5
4748 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 1.65 christos (exit $ac_status); } && {
4750 1.65 christos test -z "$ac_c_werror_flag" ||
4751 1.65 christos test ! -s conftest.err
4752 1.65 christos } && test -s conftest.$ac_objext; then
4753 1.65 christos ac_header_compiler=yes
4754 1.7 tv else
4755 1.65 christos echo "$as_me: failed program was:" >&5
4756 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4757 1.65 christos
4758 1.65 christos ac_header_compiler=no
4759 1.7 tv fi
4760 1.65 christos
4761 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4763 1.65 christos echo "${ECHO_T}$ac_header_compiler" >&6; }
4764 1.65 christos
4765 1.65 christos # Is the header present?
4766 1.65 christos { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4767 1.65 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4768 1.65 christos cat >conftest.$ac_ext <<_ACEOF
4769 1.65 christos /* confdefs.h. */
4770 1.65 christos _ACEOF
4771 1.65 christos cat confdefs.h >>conftest.$ac_ext
4772 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4773 1.65 christos /* end confdefs.h. */
4774 1.65 christos #include <$ac_header>
4775 1.65 christos _ACEOF
4776 1.65 christos if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 1.65 christos case "(($ac_try" in
4778 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 1.65 christos *) ac_try_echo=$ac_try;;
4780 1.65 christos esac
4781 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 1.65 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 1.65 christos ac_status=$?
4784 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4785 1.65 christos rm -f conftest.er1
4786 1.65 christos cat conftest.err >&5
4787 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 1.65 christos (exit $ac_status); } >/dev/null && {
4789 1.65 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4790 1.65 christos test ! -s conftest.err
4791 1.65 christos }; then
4792 1.65 christos ac_header_preproc=yes
4793 1.7 tv else
4794 1.7 tv echo "$as_me: failed program was:" >&5
4795 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4796 1.65 christos
4797 1.65 christos ac_header_preproc=no
4798 1.43 dbj fi
4799 1.65 christos
4800 1.43 dbj rm -f conftest.err conftest.$ac_ext
4801 1.65 christos { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4802 1.65 christos echo "${ECHO_T}$ac_header_preproc" >&6; }
4803 1.65 christos
4804 1.65 christos # So? What about this header?
4805 1.65 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4806 1.65 christos yes:no: )
4807 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4808 1.65 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4809 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4810 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4811 1.65 christos ac_header_preproc=yes
4812 1.65 christos ;;
4813 1.65 christos no:yes:* )
4814 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4815 1.65 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4816 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4817 1.65 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4818 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4819 1.65 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4820 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4821 1.65 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4822 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4823 1.65 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4824 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4825 1.65 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4826 1.65 christos ( cat <<\_ASBOX
4827 1.65 christos ## ---------------------------------------- ##
4828 1.65 christos ## Report this to lib-bug-people (at] NetBSD.org ##
4829 1.65 christos ## ---------------------------------------- ##
4830 1.65 christos _ASBOX
4831 1.65 christos ) | sed "s/^/$as_me: WARNING: /" >&2
4832 1.65 christos ;;
4833 1.65 christos esac
4834 1.65 christos { echo "$as_me:$LINENO: checking for $ac_header" >&5
4835 1.65 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4836 1.65 christos if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4837 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4838 1.65 christos else
4839 1.65 christos eval "$as_ac_Header=\$ac_header_preproc"
4840 1.65 christos fi
4841 1.65 christos ac_res=`eval echo '${'$as_ac_Header'}'`
4842 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
4843 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
4844 1.65 christos
4845 1.43 dbj fi
4846 1.43 dbj if test `eval echo '${'$as_ac_Header'}'` = yes; then
4847 1.65 christos cat >>confdefs.h <<_ACEOF
4848 1.43 dbj #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4849 1.65 christos _ACEOF
4850 1.39 fredb
4851 1.43 dbj else
4852 1.63 apb echo '#include "nbtool_config.h"' >include/$ac_header.new
4853 1.63 apb echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4854 1.63 apb if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4855 1.63 apb rm -f include/$ac_header.new
4856 1.63 apb else
4857 1.63 apb mv -f include/$ac_header.new include/$ac_header
4858 1.63 apb fi
4859 1.7 tv fi
4860 1.65 christos
4861 1.52 dbj done
4862 1.52 dbj
4863 1.65 christos
4864 1.63 apb # Typedefs.
4865 1.65 christos { echo "$as_me:$LINENO: checking for size_t" >&5
4866 1.65 christos echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4867 1.65 christos if test "${ac_cv_type_size_t+set}" = set; then
4868 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
4869 1.52 dbj else
4870 1.63 apb cat >conftest.$ac_ext <<_ACEOF
4871 1.65 christos /* confdefs.h. */
4872 1.52 dbj _ACEOF
4873 1.65 christos cat confdefs.h >>conftest.$ac_ext
4874 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4875 1.65 christos /* end confdefs.h. */
4876 1.6 tv $ac_includes_default
4877 1.65 christos typedef size_t ac__type_new_;
4878 1.6 tv int
4879 1.6 tv main ()
4880 1.6 tv {
4881 1.65 christos if ((ac__type_new_ *) 0)
4882 1.6 tv return 0;
4883 1.65 christos if (sizeof (ac__type_new_))
4884 1.6 tv return 0;
4885 1.6 tv ;
4886 1.6 tv return 0;
4887 1.6 tv }
4888 1.6 tv _ACEOF
4889 1.6 tv rm -f conftest.$ac_objext
4890 1.65 christos if { (ac_try="$ac_compile"
4891 1.65 christos case "(($ac_try" in
4892 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 1.65 christos *) ac_try_echo=$ac_try;;
4894 1.65 christos esac
4895 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 1.65 christos (eval "$ac_compile") 2>conftest.er1
4897 1.6 tv ac_status=$?
4898 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4899 1.65 christos rm -f conftest.er1
4900 1.65 christos cat conftest.err >&5
4901 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 1.65 christos (exit $ac_status); } && {
4903 1.65 christos test -z "$ac_c_werror_flag" ||
4904 1.65 christos test ! -s conftest.err
4905 1.65 christos } && test -s conftest.$ac_objext; then
4906 1.6 tv ac_cv_type_size_t=yes
4907 1.6 tv else
4908 1.6 tv echo "$as_me: failed program was:" >&5
4909 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4910 1.65 christos
4911 1.65 christos ac_cv_type_size_t=no
4912 1.6 tv fi
4913 1.65 christos
4914 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 1.6 tv fi
4916 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4917 1.65 christos echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4918 1.6 tv if test $ac_cv_type_size_t = yes; then
4919 1.6 tv :
4920 1.6 tv else
4921 1.6 tv
4922 1.65 christos cat >>confdefs.h <<_ACEOF
4923 1.65 christos #define size_t unsigned int
4924 1.65 christos _ACEOF
4925 1.6 tv
4926 1.6 tv fi
4927 1.6 tv
4928 1.65 christos { echo "$as_me:$LINENO: checking for id_t" >&5
4929 1.65 christos echo $ECHO_N "checking for id_t... $ECHO_C" >&6; }
4930 1.6 tv if test "${ac_cv_type_id_t+set}" = set; then
4931 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4932 1.6 tv else
4933 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4934 1.65 christos /* confdefs.h. */
4935 1.65 christos _ACEOF
4936 1.65 christos cat confdefs.h >>conftest.$ac_ext
4937 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4938 1.65 christos /* end confdefs.h. */
4939 1.6 tv $ac_includes_default
4940 1.65 christos typedef id_t ac__type_new_;
4941 1.6 tv int
4942 1.6 tv main ()
4943 1.6 tv {
4944 1.65 christos if ((ac__type_new_ *) 0)
4945 1.6 tv return 0;
4946 1.65 christos if (sizeof (ac__type_new_))
4947 1.6 tv return 0;
4948 1.6 tv ;
4949 1.6 tv return 0;
4950 1.6 tv }
4951 1.6 tv _ACEOF
4952 1.6 tv rm -f conftest.$ac_objext
4953 1.65 christos if { (ac_try="$ac_compile"
4954 1.65 christos case "(($ac_try" in
4955 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 1.65 christos *) ac_try_echo=$ac_try;;
4957 1.65 christos esac
4958 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 1.65 christos (eval "$ac_compile") 2>conftest.er1
4960 1.6 tv ac_status=$?
4961 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
4962 1.65 christos rm -f conftest.er1
4963 1.65 christos cat conftest.err >&5
4964 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 1.65 christos (exit $ac_status); } && {
4966 1.65 christos test -z "$ac_c_werror_flag" ||
4967 1.65 christos test ! -s conftest.err
4968 1.65 christos } && test -s conftest.$ac_objext; then
4969 1.6 tv ac_cv_type_id_t=yes
4970 1.6 tv else
4971 1.6 tv echo "$as_me: failed program was:" >&5
4972 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
4973 1.65 christos
4974 1.65 christos ac_cv_type_id_t=no
4975 1.6 tv fi
4976 1.65 christos
4977 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 1.6 tv fi
4979 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4980 1.65 christos echo "${ECHO_T}$ac_cv_type_id_t" >&6; }
4981 1.6 tv if test $ac_cv_type_id_t = yes; then
4982 1.6 tv
4983 1.65 christos cat >>confdefs.h <<_ACEOF
4984 1.6 tv #define HAVE_ID_T 1
4985 1.65 christos _ACEOF
4986 1.65 christos
4987 1.6 tv
4988 1.6 tv fi
4989 1.65 christos { echo "$as_me:$LINENO: checking for long long" >&5
4990 1.65 christos echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
4991 1.6 tv if test "${ac_cv_type_long_long+set}" = set; then
4992 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4993 1.6 tv else
4994 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4995 1.65 christos /* confdefs.h. */
4996 1.65 christos _ACEOF
4997 1.65 christos cat confdefs.h >>conftest.$ac_ext
4998 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
4999 1.65 christos /* end confdefs.h. */
5000 1.6 tv $ac_includes_default
5001 1.65 christos typedef long long ac__type_new_;
5002 1.6 tv int
5003 1.6 tv main ()
5004 1.6 tv {
5005 1.65 christos if ((ac__type_new_ *) 0)
5006 1.6 tv return 0;
5007 1.65 christos if (sizeof (ac__type_new_))
5008 1.6 tv return 0;
5009 1.6 tv ;
5010 1.6 tv return 0;
5011 1.6 tv }
5012 1.6 tv _ACEOF
5013 1.6 tv rm -f conftest.$ac_objext
5014 1.65 christos if { (ac_try="$ac_compile"
5015 1.65 christos case "(($ac_try" in
5016 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 1.65 christos *) ac_try_echo=$ac_try;;
5018 1.65 christos esac
5019 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 1.65 christos (eval "$ac_compile") 2>conftest.er1
5021 1.6 tv ac_status=$?
5022 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5023 1.65 christos rm -f conftest.er1
5024 1.65 christos cat conftest.err >&5
5025 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 1.65 christos (exit $ac_status); } && {
5027 1.65 christos test -z "$ac_c_werror_flag" ||
5028 1.65 christos test ! -s conftest.err
5029 1.65 christos } && test -s conftest.$ac_objext; then
5030 1.6 tv ac_cv_type_long_long=yes
5031 1.6 tv else
5032 1.6 tv echo "$as_me: failed program was:" >&5
5033 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5034 1.65 christos
5035 1.65 christos ac_cv_type_long_long=no
5036 1.6 tv fi
5037 1.65 christos
5038 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 1.6 tv fi
5040 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5041 1.65 christos echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5042 1.6 tv if test $ac_cv_type_long_long = yes; then
5043 1.6 tv
5044 1.65 christos cat >>confdefs.h <<_ACEOF
5045 1.52 dbj #define HAVE_LONG_LONG 1
5046 1.65 christos _ACEOF
5047 1.65 christos
5048 1.6 tv
5049 1.6 tv fi
5050 1.65 christos { echo "$as_me:$LINENO: checking for u_long" >&5
5051 1.65 christos echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
5052 1.38 fredb if test "${ac_cv_type_u_long+set}" = set; then
5053 1.38 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
5054 1.38 fredb else
5055 1.38 fredb cat >conftest.$ac_ext <<_ACEOF
5056 1.65 christos /* confdefs.h. */
5057 1.65 christos _ACEOF
5058 1.65 christos cat confdefs.h >>conftest.$ac_ext
5059 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5060 1.65 christos /* end confdefs.h. */
5061 1.38 fredb $ac_includes_default
5062 1.65 christos typedef u_long ac__type_new_;
5063 1.38 fredb int
5064 1.38 fredb main ()
5065 1.38 fredb {
5066 1.65 christos if ((ac__type_new_ *) 0)
5067 1.38 fredb return 0;
5068 1.65 christos if (sizeof (ac__type_new_))
5069 1.38 fredb return 0;
5070 1.38 fredb ;
5071 1.38 fredb return 0;
5072 1.38 fredb }
5073 1.38 fredb _ACEOF
5074 1.38 fredb rm -f conftest.$ac_objext
5075 1.65 christos if { (ac_try="$ac_compile"
5076 1.65 christos case "(($ac_try" in
5077 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 1.65 christos *) ac_try_echo=$ac_try;;
5079 1.65 christos esac
5080 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 1.65 christos (eval "$ac_compile") 2>conftest.er1
5082 1.38 fredb ac_status=$?
5083 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5084 1.65 christos rm -f conftest.er1
5085 1.65 christos cat conftest.err >&5
5086 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 1.65 christos (exit $ac_status); } && {
5088 1.65 christos test -z "$ac_c_werror_flag" ||
5089 1.65 christos test ! -s conftest.err
5090 1.65 christos } && test -s conftest.$ac_objext; then
5091 1.38 fredb ac_cv_type_u_long=yes
5092 1.38 fredb else
5093 1.38 fredb echo "$as_me: failed program was:" >&5
5094 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5095 1.65 christos
5096 1.65 christos ac_cv_type_u_long=no
5097 1.38 fredb fi
5098 1.65 christos
5099 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 1.38 fredb fi
5101 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
5102 1.65 christos echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
5103 1.38 fredb if test $ac_cv_type_u_long = yes; then
5104 1.38 fredb
5105 1.65 christos cat >>confdefs.h <<_ACEOF
5106 1.38 fredb #define HAVE_U_LONG 1
5107 1.65 christos _ACEOF
5108 1.65 christos
5109 1.39 fredb
5110 1.38 fredb fi
5111 1.65 christos { echo "$as_me:$LINENO: checking for u_char" >&5
5112 1.65 christos echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
5113 1.45 jmc if test "${ac_cv_type_u_char+set}" = set; then
5114 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
5115 1.45 jmc else
5116 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
5117 1.65 christos /* confdefs.h. */
5118 1.65 christos _ACEOF
5119 1.65 christos cat confdefs.h >>conftest.$ac_ext
5120 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5121 1.65 christos /* end confdefs.h. */
5122 1.45 jmc $ac_includes_default
5123 1.65 christos typedef u_char ac__type_new_;
5124 1.45 jmc int
5125 1.45 jmc main ()
5126 1.45 jmc {
5127 1.65 christos if ((ac__type_new_ *) 0)
5128 1.45 jmc return 0;
5129 1.65 christos if (sizeof (ac__type_new_))
5130 1.45 jmc return 0;
5131 1.45 jmc ;
5132 1.45 jmc return 0;
5133 1.45 jmc }
5134 1.45 jmc _ACEOF
5135 1.45 jmc rm -f conftest.$ac_objext
5136 1.65 christos if { (ac_try="$ac_compile"
5137 1.65 christos case "(($ac_try" in
5138 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 1.65 christos *) ac_try_echo=$ac_try;;
5140 1.65 christos esac
5141 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 1.65 christos (eval "$ac_compile") 2>conftest.er1
5143 1.45 jmc ac_status=$?
5144 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5145 1.65 christos rm -f conftest.er1
5146 1.65 christos cat conftest.err >&5
5147 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 1.65 christos (exit $ac_status); } && {
5149 1.65 christos test -z "$ac_c_werror_flag" ||
5150 1.65 christos test ! -s conftest.err
5151 1.65 christos } && test -s conftest.$ac_objext; then
5152 1.45 jmc ac_cv_type_u_char=yes
5153 1.45 jmc else
5154 1.45 jmc echo "$as_me: failed program was:" >&5
5155 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5156 1.65 christos
5157 1.65 christos ac_cv_type_u_char=no
5158 1.45 jmc fi
5159 1.65 christos
5160 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 1.45 jmc fi
5162 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
5163 1.65 christos echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
5164 1.45 jmc if test $ac_cv_type_u_char = yes; then
5165 1.45 jmc
5166 1.65 christos cat >>confdefs.h <<_ACEOF
5167 1.45 jmc #define HAVE_U_CHAR 1
5168 1.65 christos _ACEOF
5169 1.65 christos
5170 1.45 jmc
5171 1.45 jmc fi
5172 1.65 christos { echo "$as_me:$LINENO: checking for u_short" >&5
5173 1.65 christos echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
5174 1.45 jmc if test "${ac_cv_type_u_short+set}" = set; then
5175 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
5176 1.45 jmc else
5177 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
5178 1.65 christos /* confdefs.h. */
5179 1.65 christos _ACEOF
5180 1.65 christos cat confdefs.h >>conftest.$ac_ext
5181 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5182 1.65 christos /* end confdefs.h. */
5183 1.45 jmc $ac_includes_default
5184 1.65 christos typedef u_short ac__type_new_;
5185 1.45 jmc int
5186 1.45 jmc main ()
5187 1.45 jmc {
5188 1.65 christos if ((ac__type_new_ *) 0)
5189 1.45 jmc return 0;
5190 1.65 christos if (sizeof (ac__type_new_))
5191 1.45 jmc return 0;
5192 1.45 jmc ;
5193 1.45 jmc return 0;
5194 1.45 jmc }
5195 1.45 jmc _ACEOF
5196 1.45 jmc rm -f conftest.$ac_objext
5197 1.65 christos if { (ac_try="$ac_compile"
5198 1.65 christos case "(($ac_try" in
5199 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 1.65 christos *) ac_try_echo=$ac_try;;
5201 1.65 christos esac
5202 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 1.65 christos (eval "$ac_compile") 2>conftest.er1
5204 1.45 jmc ac_status=$?
5205 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5206 1.65 christos rm -f conftest.er1
5207 1.65 christos cat conftest.err >&5
5208 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 1.65 christos (exit $ac_status); } && {
5210 1.65 christos test -z "$ac_c_werror_flag" ||
5211 1.65 christos test ! -s conftest.err
5212 1.65 christos } && test -s conftest.$ac_objext; then
5213 1.45 jmc ac_cv_type_u_short=yes
5214 1.45 jmc else
5215 1.45 jmc echo "$as_me: failed program was:" >&5
5216 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5217 1.65 christos
5218 1.65 christos ac_cv_type_u_short=no
5219 1.45 jmc fi
5220 1.65 christos
5221 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 1.45 jmc fi
5223 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
5224 1.65 christos echo "${ECHO_T}$ac_cv_type_u_short" >&6; }
5225 1.45 jmc if test $ac_cv_type_u_short = yes; then
5226 1.45 jmc
5227 1.65 christos cat >>confdefs.h <<_ACEOF
5228 1.45 jmc #define HAVE_U_SHORT 1
5229 1.65 christos _ACEOF
5230 1.65 christos
5231 1.45 jmc
5232 1.45 jmc fi
5233 1.65 christos { echo "$as_me:$LINENO: checking for u_int" >&5
5234 1.65 christos echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
5235 1.45 jmc if test "${ac_cv_type_u_int+set}" = set; then
5236 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
5237 1.45 jmc else
5238 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
5239 1.65 christos /* confdefs.h. */
5240 1.65 christos _ACEOF
5241 1.65 christos cat confdefs.h >>conftest.$ac_ext
5242 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5243 1.65 christos /* end confdefs.h. */
5244 1.45 jmc $ac_includes_default
5245 1.65 christos typedef u_int ac__type_new_;
5246 1.45 jmc int
5247 1.45 jmc main ()
5248 1.45 jmc {
5249 1.65 christos if ((ac__type_new_ *) 0)
5250 1.45 jmc return 0;
5251 1.65 christos if (sizeof (ac__type_new_))
5252 1.45 jmc return 0;
5253 1.45 jmc ;
5254 1.45 jmc return 0;
5255 1.45 jmc }
5256 1.45 jmc _ACEOF
5257 1.45 jmc rm -f conftest.$ac_objext
5258 1.65 christos if { (ac_try="$ac_compile"
5259 1.65 christos case "(($ac_try" in
5260 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 1.65 christos *) ac_try_echo=$ac_try;;
5262 1.65 christos esac
5263 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 1.65 christos (eval "$ac_compile") 2>conftest.er1
5265 1.45 jmc ac_status=$?
5266 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5267 1.65 christos rm -f conftest.er1
5268 1.65 christos cat conftest.err >&5
5269 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 1.65 christos (exit $ac_status); } && {
5271 1.65 christos test -z "$ac_c_werror_flag" ||
5272 1.65 christos test ! -s conftest.err
5273 1.65 christos } && test -s conftest.$ac_objext; then
5274 1.45 jmc ac_cv_type_u_int=yes
5275 1.45 jmc else
5276 1.45 jmc echo "$as_me: failed program was:" >&5
5277 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5278 1.65 christos
5279 1.65 christos ac_cv_type_u_int=no
5280 1.45 jmc fi
5281 1.65 christos
5282 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 1.45 jmc fi
5284 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
5285 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
5286 1.45 jmc if test $ac_cv_type_u_int = yes; then
5287 1.45 jmc
5288 1.65 christos cat >>confdefs.h <<_ACEOF
5289 1.45 jmc #define HAVE_U_INT 1
5290 1.65 christos _ACEOF
5291 1.65 christos
5292 1.45 jmc
5293 1.45 jmc fi
5294 1.65 christos { echo "$as_me:$LINENO: checking for u_quad_t" >&5
5295 1.65 christos echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; }
5296 1.7 tv if test "${ac_cv_type_u_quad_t+set}" = set; then
5297 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5298 1.7 tv else
5299 1.7 tv cat >conftest.$ac_ext <<_ACEOF
5300 1.65 christos /* confdefs.h. */
5301 1.65 christos _ACEOF
5302 1.65 christos cat confdefs.h >>conftest.$ac_ext
5303 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5304 1.65 christos /* end confdefs.h. */
5305 1.7 tv $ac_includes_default
5306 1.65 christos typedef u_quad_t ac__type_new_;
5307 1.7 tv int
5308 1.7 tv main ()
5309 1.7 tv {
5310 1.65 christos if ((ac__type_new_ *) 0)
5311 1.7 tv return 0;
5312 1.65 christos if (sizeof (ac__type_new_))
5313 1.7 tv return 0;
5314 1.7 tv ;
5315 1.7 tv return 0;
5316 1.7 tv }
5317 1.7 tv _ACEOF
5318 1.7 tv rm -f conftest.$ac_objext
5319 1.65 christos if { (ac_try="$ac_compile"
5320 1.65 christos case "(($ac_try" in
5321 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 1.65 christos *) ac_try_echo=$ac_try;;
5323 1.65 christos esac
5324 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 1.65 christos (eval "$ac_compile") 2>conftest.er1
5326 1.7 tv ac_status=$?
5327 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5328 1.65 christos rm -f conftest.er1
5329 1.65 christos cat conftest.err >&5
5330 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 1.65 christos (exit $ac_status); } && {
5332 1.65 christos test -z "$ac_c_werror_flag" ||
5333 1.65 christos test ! -s conftest.err
5334 1.65 christos } && test -s conftest.$ac_objext; then
5335 1.7 tv ac_cv_type_u_quad_t=yes
5336 1.7 tv else
5337 1.7 tv echo "$as_me: failed program was:" >&5
5338 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5339 1.65 christos
5340 1.65 christos ac_cv_type_u_quad_t=no
5341 1.7 tv fi
5342 1.65 christos
5343 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 1.7 tv fi
5345 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
5346 1.65 christos echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; }
5347 1.7 tv if test $ac_cv_type_u_quad_t = yes; then
5348 1.7 tv
5349 1.65 christos cat >>confdefs.h <<_ACEOF
5350 1.7 tv #define HAVE_U_QUAD_T 1
5351 1.65 christos _ACEOF
5352 1.65 christos
5353 1.7 tv
5354 1.7 tv fi
5355 1.35 thorpej
5356 1.65 christos { echo "$as_me:$LINENO: checking for socklen_t" >&5
5357 1.65 christos echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5358 1.34 thorpej if test "${ac_cv_type_socklen_t+set}" = set; then
5359 1.34 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
5360 1.34 thorpej else
5361 1.34 thorpej cat >conftest.$ac_ext <<_ACEOF
5362 1.65 christos /* confdefs.h. */
5363 1.65 christos _ACEOF
5364 1.65 christos cat confdefs.h >>conftest.$ac_ext
5365 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5366 1.65 christos /* end confdefs.h. */
5367 1.35 thorpej #include <sys/types.h>
5368 1.35 thorpej #include <sys/socket.h>
5369 1.35 thorpej
5370 1.65 christos typedef socklen_t ac__type_new_;
5371 1.34 thorpej int
5372 1.34 thorpej main ()
5373 1.34 thorpej {
5374 1.65 christos if ((ac__type_new_ *) 0)
5375 1.34 thorpej return 0;
5376 1.65 christos if (sizeof (ac__type_new_))
5377 1.34 thorpej return 0;
5378 1.34 thorpej ;
5379 1.34 thorpej return 0;
5380 1.34 thorpej }
5381 1.34 thorpej _ACEOF
5382 1.34 thorpej rm -f conftest.$ac_objext
5383 1.65 christos if { (ac_try="$ac_compile"
5384 1.65 christos case "(($ac_try" in
5385 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 1.65 christos *) ac_try_echo=$ac_try;;
5387 1.65 christos esac
5388 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 1.65 christos (eval "$ac_compile") 2>conftest.er1
5390 1.34 thorpej ac_status=$?
5391 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5392 1.65 christos rm -f conftest.er1
5393 1.65 christos cat conftest.err >&5
5394 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 1.65 christos (exit $ac_status); } && {
5396 1.65 christos test -z "$ac_c_werror_flag" ||
5397 1.65 christos test ! -s conftest.err
5398 1.65 christos } && test -s conftest.$ac_objext; then
5399 1.34 thorpej ac_cv_type_socklen_t=yes
5400 1.34 thorpej else
5401 1.34 thorpej echo "$as_me: failed program was:" >&5
5402 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5403 1.65 christos
5404 1.65 christos ac_cv_type_socklen_t=no
5405 1.34 thorpej fi
5406 1.65 christos
5407 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 1.34 thorpej fi
5409 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5410 1.65 christos echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5411 1.34 thorpej if test $ac_cv_type_socklen_t = yes; then
5412 1.54 wiz
5413 1.65 christos cat >>confdefs.h <<\_ACEOF
5414 1.34 thorpej #define HAVE_SOCKLEN_T 1
5415 1.65 christos _ACEOF
5416 1.34 thorpej
5417 1.34 thorpej fi
5418 1.34 thorpej
5419 1.65 christos
5420 1.65 christos
5421 1.65 christos
5422 1.65 christos
5423 1.65 christos { echo "$as_me:$LINENO: checking for uint8_t" >&5
5424 1.65 christos echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5425 1.9 tv if test "${ac_cv_type_uint8_t+set}" = set; then
5426 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5427 1.6 tv else
5428 1.6 tv cat >conftest.$ac_ext <<_ACEOF
5429 1.65 christos /* confdefs.h. */
5430 1.65 christos _ACEOF
5431 1.65 christos cat confdefs.h >>conftest.$ac_ext
5432 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5433 1.65 christos /* end confdefs.h. */
5434 1.6 tv $ac_includes_default
5435 1.65 christos typedef uint8_t ac__type_new_;
5436 1.6 tv int
5437 1.6 tv main ()
5438 1.6 tv {
5439 1.65 christos if ((ac__type_new_ *) 0)
5440 1.6 tv return 0;
5441 1.65 christos if (sizeof (ac__type_new_))
5442 1.6 tv return 0;
5443 1.6 tv ;
5444 1.6 tv return 0;
5445 1.6 tv }
5446 1.6 tv _ACEOF
5447 1.6 tv rm -f conftest.$ac_objext
5448 1.65 christos if { (ac_try="$ac_compile"
5449 1.65 christos case "(($ac_try" in
5450 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 1.65 christos *) ac_try_echo=$ac_try;;
5452 1.65 christos esac
5453 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 1.65 christos (eval "$ac_compile") 2>conftest.er1
5455 1.6 tv ac_status=$?
5456 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5457 1.65 christos rm -f conftest.er1
5458 1.65 christos cat conftest.err >&5
5459 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 1.65 christos (exit $ac_status); } && {
5461 1.65 christos test -z "$ac_c_werror_flag" ||
5462 1.65 christos test ! -s conftest.err
5463 1.65 christos } && test -s conftest.$ac_objext; then
5464 1.9 tv ac_cv_type_uint8_t=yes
5465 1.9 tv else
5466 1.9 tv echo "$as_me: failed program was:" >&5
5467 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5468 1.65 christos
5469 1.65 christos ac_cv_type_uint8_t=no
5470 1.9 tv fi
5471 1.65 christos
5472 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 1.9 tv fi
5474 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5475 1.65 christos echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
5476 1.9 tv if test $ac_cv_type_uint8_t = yes; then
5477 1.9 tv :
5478 1.9 tv else
5479 1.9 tv
5480 1.65 christos { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5481 1.65 christos echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5482 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
5483 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5484 1.9 tv else
5485 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5486 1.65 christos /* confdefs.h. */
5487 1.65 christos _ACEOF
5488 1.65 christos cat confdefs.h >>conftest.$ac_ext
5489 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5490 1.65 christos /* end confdefs.h. */
5491 1.9 tv $ac_includes_default
5492 1.65 christos typedef u_int8_t ac__type_new_;
5493 1.9 tv int
5494 1.9 tv main ()
5495 1.9 tv {
5496 1.65 christos if ((ac__type_new_ *) 0)
5497 1.9 tv return 0;
5498 1.65 christos if (sizeof (ac__type_new_))
5499 1.9 tv return 0;
5500 1.9 tv ;
5501 1.9 tv return 0;
5502 1.9 tv }
5503 1.9 tv _ACEOF
5504 1.9 tv rm -f conftest.$ac_objext
5505 1.65 christos if { (ac_try="$ac_compile"
5506 1.65 christos case "(($ac_try" in
5507 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 1.65 christos *) ac_try_echo=$ac_try;;
5509 1.65 christos esac
5510 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 1.65 christos (eval "$ac_compile") 2>conftest.er1
5512 1.9 tv ac_status=$?
5513 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5514 1.65 christos rm -f conftest.er1
5515 1.65 christos cat conftest.err >&5
5516 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 1.65 christos (exit $ac_status); } && {
5518 1.65 christos test -z "$ac_c_werror_flag" ||
5519 1.65 christos test ! -s conftest.err
5520 1.65 christos } && test -s conftest.$ac_objext; then
5521 1.6 tv ac_cv_type_u_int8_t=yes
5522 1.6 tv else
5523 1.6 tv echo "$as_me: failed program was:" >&5
5524 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5525 1.65 christos
5526 1.65 christos ac_cv_type_u_int8_t=no
5527 1.6 tv fi
5528 1.65 christos
5529 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 1.6 tv fi
5531 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5532 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5533 1.9 tv if test $ac_cv_type_u_int8_t = yes; then
5534 1.54 wiz
5535 1.65 christos cat >>confdefs.h <<\_ACEOF
5536 1.9 tv #define uint8_t u_int8_t
5537 1.65 christos _ACEOF
5538 1.9 tv
5539 1.9 tv else
5540 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
5541 1.9 tv echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
5542 1.9 tv { (exit 1); exit 1; }; }
5543 1.9 tv fi
5544 1.9 tv
5545 1.65 christos
5546 1.9 tv fi
5547 1.9 tv
5548 1.65 christos { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5549 1.65 christos echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5550 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
5551 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5552 1.9 tv else
5553 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5554 1.65 christos /* confdefs.h. */
5555 1.65 christos _ACEOF
5556 1.65 christos cat confdefs.h >>conftest.$ac_ext
5557 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5558 1.65 christos /* end confdefs.h. */
5559 1.9 tv $ac_includes_default
5560 1.65 christos typedef u_int8_t ac__type_new_;
5561 1.9 tv int
5562 1.9 tv main ()
5563 1.9 tv {
5564 1.65 christos if ((ac__type_new_ *) 0)
5565 1.9 tv return 0;
5566 1.65 christos if (sizeof (ac__type_new_))
5567 1.9 tv return 0;
5568 1.9 tv ;
5569 1.9 tv return 0;
5570 1.9 tv }
5571 1.9 tv _ACEOF
5572 1.9 tv rm -f conftest.$ac_objext
5573 1.65 christos if { (ac_try="$ac_compile"
5574 1.65 christos case "(($ac_try" in
5575 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 1.65 christos *) ac_try_echo=$ac_try;;
5577 1.65 christos esac
5578 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 1.65 christos (eval "$ac_compile") 2>conftest.er1
5580 1.9 tv ac_status=$?
5581 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5582 1.65 christos rm -f conftest.er1
5583 1.65 christos cat conftest.err >&5
5584 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 1.65 christos (exit $ac_status); } && {
5586 1.65 christos test -z "$ac_c_werror_flag" ||
5587 1.65 christos test ! -s conftest.err
5588 1.65 christos } && test -s conftest.$ac_objext; then
5589 1.9 tv ac_cv_type_u_int8_t=yes
5590 1.9 tv else
5591 1.9 tv echo "$as_me: failed program was:" >&5
5592 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5593 1.65 christos
5594 1.65 christos ac_cv_type_u_int8_t=no
5595 1.9 tv fi
5596 1.65 christos
5597 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 1.9 tv fi
5599 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5600 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5601 1.6 tv if test $ac_cv_type_u_int8_t = yes; then
5602 1.6 tv :
5603 1.6 tv else
5604 1.6 tv
5605 1.65 christos { echo "$as_me:$LINENO: checking for uint8_t" >&5
5606 1.65 christos echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5607 1.6 tv if test "${ac_cv_type_uint8_t+set}" = set; then
5608 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5609 1.6 tv else
5610 1.6 tv cat >conftest.$ac_ext <<_ACEOF
5611 1.65 christos /* confdefs.h. */
5612 1.65 christos _ACEOF
5613 1.65 christos cat confdefs.h >>conftest.$ac_ext
5614 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5615 1.65 christos /* end confdefs.h. */
5616 1.6 tv $ac_includes_default
5617 1.65 christos typedef uint8_t ac__type_new_;
5618 1.6 tv int
5619 1.6 tv main ()
5620 1.6 tv {
5621 1.65 christos if ((ac__type_new_ *) 0)
5622 1.6 tv return 0;
5623 1.65 christos if (sizeof (ac__type_new_))
5624 1.6 tv return 0;
5625 1.6 tv ;
5626 1.6 tv return 0;
5627 1.6 tv }
5628 1.6 tv _ACEOF
5629 1.6 tv rm -f conftest.$ac_objext
5630 1.65 christos if { (ac_try="$ac_compile"
5631 1.65 christos case "(($ac_try" in
5632 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 1.65 christos *) ac_try_echo=$ac_try;;
5634 1.65 christos esac
5635 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 1.65 christos (eval "$ac_compile") 2>conftest.er1
5637 1.6 tv ac_status=$?
5638 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5639 1.65 christos rm -f conftest.er1
5640 1.65 christos cat conftest.err >&5
5641 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 1.65 christos (exit $ac_status); } && {
5643 1.65 christos test -z "$ac_c_werror_flag" ||
5644 1.65 christos test ! -s conftest.err
5645 1.65 christos } && test -s conftest.$ac_objext; then
5646 1.6 tv ac_cv_type_uint8_t=yes
5647 1.4 tv else
5648 1.4 tv echo "$as_me: failed program was:" >&5
5649 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5650 1.65 christos
5651 1.65 christos ac_cv_type_uint8_t=no
5652 1.4 tv fi
5653 1.65 christos
5654 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 1.4 tv fi
5656 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5657 1.65 christos echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
5658 1.6 tv if test $ac_cv_type_uint8_t = yes; then
5659 1.54 wiz
5660 1.65 christos cat >>confdefs.h <<\_ACEOF
5661 1.6 tv #define u_int8_t uint8_t
5662 1.65 christos _ACEOF
5663 1.4 tv
5664 1.6 tv else
5665 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5666 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5667 1.6 tv { (exit 1); exit 1; }; }
5668 1.6 tv fi
5669 1.6 tv
5670 1.65 christos
5671 1.4 tv fi
5672 1.4 tv
5673 1.65 christos
5674 1.65 christos
5675 1.65 christos { echo "$as_me:$LINENO: checking for uint16_t" >&5
5676 1.65 christos echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5677 1.9 tv if test "${ac_cv_type_uint16_t+set}" = set; then
5678 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5679 1.9 tv else
5680 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5681 1.65 christos /* confdefs.h. */
5682 1.65 christos _ACEOF
5683 1.65 christos cat confdefs.h >>conftest.$ac_ext
5684 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5685 1.65 christos /* end confdefs.h. */
5686 1.9 tv $ac_includes_default
5687 1.65 christos typedef uint16_t ac__type_new_;
5688 1.9 tv int
5689 1.9 tv main ()
5690 1.9 tv {
5691 1.65 christos if ((ac__type_new_ *) 0)
5692 1.9 tv return 0;
5693 1.65 christos if (sizeof (ac__type_new_))
5694 1.9 tv return 0;
5695 1.9 tv ;
5696 1.9 tv return 0;
5697 1.9 tv }
5698 1.9 tv _ACEOF
5699 1.9 tv rm -f conftest.$ac_objext
5700 1.65 christos if { (ac_try="$ac_compile"
5701 1.65 christos case "(($ac_try" in
5702 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 1.65 christos *) ac_try_echo=$ac_try;;
5704 1.65 christos esac
5705 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 1.65 christos (eval "$ac_compile") 2>conftest.er1
5707 1.9 tv ac_status=$?
5708 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5709 1.65 christos rm -f conftest.er1
5710 1.65 christos cat conftest.err >&5
5711 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 1.65 christos (exit $ac_status); } && {
5713 1.65 christos test -z "$ac_c_werror_flag" ||
5714 1.65 christos test ! -s conftest.err
5715 1.65 christos } && test -s conftest.$ac_objext; then
5716 1.9 tv ac_cv_type_uint16_t=yes
5717 1.9 tv else
5718 1.9 tv echo "$as_me: failed program was:" >&5
5719 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5720 1.65 christos
5721 1.65 christos ac_cv_type_uint16_t=no
5722 1.9 tv fi
5723 1.65 christos
5724 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 1.9 tv fi
5726 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5727 1.65 christos echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
5728 1.9 tv if test $ac_cv_type_uint16_t = yes; then
5729 1.9 tv :
5730 1.9 tv else
5731 1.9 tv
5732 1.65 christos { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5733 1.65 christos echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5734 1.9 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
5735 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5736 1.9 tv else
5737 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5738 1.65 christos /* confdefs.h. */
5739 1.65 christos _ACEOF
5740 1.65 christos cat confdefs.h >>conftest.$ac_ext
5741 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5742 1.65 christos /* end confdefs.h. */
5743 1.9 tv $ac_includes_default
5744 1.65 christos typedef u_int16_t ac__type_new_;
5745 1.9 tv int
5746 1.9 tv main ()
5747 1.9 tv {
5748 1.65 christos if ((ac__type_new_ *) 0)
5749 1.9 tv return 0;
5750 1.65 christos if (sizeof (ac__type_new_))
5751 1.9 tv return 0;
5752 1.9 tv ;
5753 1.9 tv return 0;
5754 1.9 tv }
5755 1.9 tv _ACEOF
5756 1.9 tv rm -f conftest.$ac_objext
5757 1.65 christos if { (ac_try="$ac_compile"
5758 1.65 christos case "(($ac_try" in
5759 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 1.65 christos *) ac_try_echo=$ac_try;;
5761 1.65 christos esac
5762 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 1.65 christos (eval "$ac_compile") 2>conftest.er1
5764 1.9 tv ac_status=$?
5765 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5766 1.65 christos rm -f conftest.er1
5767 1.65 christos cat conftest.err >&5
5768 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 1.65 christos (exit $ac_status); } && {
5770 1.65 christos test -z "$ac_c_werror_flag" ||
5771 1.65 christos test ! -s conftest.err
5772 1.65 christos } && test -s conftest.$ac_objext; then
5773 1.9 tv ac_cv_type_u_int16_t=yes
5774 1.9 tv else
5775 1.9 tv echo "$as_me: failed program was:" >&5
5776 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5777 1.65 christos
5778 1.65 christos ac_cv_type_u_int16_t=no
5779 1.9 tv fi
5780 1.65 christos
5781 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 1.9 tv fi
5783 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5784 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5785 1.9 tv if test $ac_cv_type_u_int16_t = yes; then
5786 1.54 wiz
5787 1.65 christos cat >>confdefs.h <<\_ACEOF
5788 1.9 tv #define uint16_t u_int16_t
5789 1.65 christos _ACEOF
5790 1.9 tv
5791 1.9 tv else
5792 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5793 1.9 tv echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5794 1.9 tv { (exit 1); exit 1; }; }
5795 1.9 tv fi
5796 1.9 tv
5797 1.65 christos
5798 1.9 tv fi
5799 1.9 tv
5800 1.65 christos { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5801 1.65 christos echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5802 1.6 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
5803 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5804 1.1 tv else
5805 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5806 1.65 christos /* confdefs.h. */
5807 1.65 christos _ACEOF
5808 1.65 christos cat confdefs.h >>conftest.$ac_ext
5809 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5810 1.65 christos /* end confdefs.h. */
5811 1.6 tv $ac_includes_default
5812 1.65 christos typedef u_int16_t ac__type_new_;
5813 1.6 tv int
5814 1.6 tv main ()
5815 1.6 tv {
5816 1.65 christos if ((ac__type_new_ *) 0)
5817 1.6 tv return 0;
5818 1.65 christos if (sizeof (ac__type_new_))
5819 1.6 tv return 0;
5820 1.6 tv ;
5821 1.6 tv return 0;
5822 1.6 tv }
5823 1.1 tv _ACEOF
5824 1.6 tv rm -f conftest.$ac_objext
5825 1.65 christos if { (ac_try="$ac_compile"
5826 1.65 christos case "(($ac_try" in
5827 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 1.65 christos *) ac_try_echo=$ac_try;;
5829 1.65 christos esac
5830 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 1.65 christos (eval "$ac_compile") 2>conftest.er1
5832 1.6 tv ac_status=$?
5833 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5834 1.65 christos rm -f conftest.er1
5835 1.65 christos cat conftest.err >&5
5836 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 1.65 christos (exit $ac_status); } && {
5838 1.65 christos test -z "$ac_c_werror_flag" ||
5839 1.65 christos test ! -s conftest.err
5840 1.65 christos } && test -s conftest.$ac_objext; then
5841 1.6 tv ac_cv_type_u_int16_t=yes
5842 1.1 tv else
5843 1.6 tv echo "$as_me: failed program was:" >&5
5844 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5845 1.65 christos
5846 1.65 christos ac_cv_type_u_int16_t=no
5847 1.6 tv fi
5848 1.65 christos
5849 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 1.1 tv fi
5851 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5852 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5853 1.6 tv if test $ac_cv_type_u_int16_t = yes; then
5854 1.6 tv :
5855 1.1 tv else
5856 1.1 tv
5857 1.65 christos { echo "$as_me:$LINENO: checking for uint16_t" >&5
5858 1.65 christos echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5859 1.6 tv if test "${ac_cv_type_uint16_t+set}" = set; then
5860 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5861 1.6 tv else
5862 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5863 1.65 christos /* confdefs.h. */
5864 1.65 christos _ACEOF
5865 1.65 christos cat confdefs.h >>conftest.$ac_ext
5866 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5867 1.65 christos /* end confdefs.h. */
5868 1.6 tv $ac_includes_default
5869 1.65 christos typedef uint16_t ac__type_new_;
5870 1.6 tv int
5871 1.6 tv main ()
5872 1.6 tv {
5873 1.65 christos if ((ac__type_new_ *) 0)
5874 1.6 tv return 0;
5875 1.65 christos if (sizeof (ac__type_new_))
5876 1.6 tv return 0;
5877 1.6 tv ;
5878 1.6 tv return 0;
5879 1.6 tv }
5880 1.1 tv _ACEOF
5881 1.6 tv rm -f conftest.$ac_objext
5882 1.65 christos if { (ac_try="$ac_compile"
5883 1.65 christos case "(($ac_try" in
5884 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 1.65 christos *) ac_try_echo=$ac_try;;
5886 1.65 christos esac
5887 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 1.65 christos (eval "$ac_compile") 2>conftest.er1
5889 1.6 tv ac_status=$?
5890 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5891 1.65 christos rm -f conftest.er1
5892 1.65 christos cat conftest.err >&5
5893 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 1.65 christos (exit $ac_status); } && {
5895 1.65 christos test -z "$ac_c_werror_flag" ||
5896 1.65 christos test ! -s conftest.err
5897 1.65 christos } && test -s conftest.$ac_objext; then
5898 1.6 tv ac_cv_type_uint16_t=yes
5899 1.1 tv else
5900 1.6 tv echo "$as_me: failed program was:" >&5
5901 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5902 1.65 christos
5903 1.65 christos ac_cv_type_uint16_t=no
5904 1.1 tv fi
5905 1.65 christos
5906 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 1.1 tv fi
5908 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5909 1.65 christos echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
5910 1.6 tv if test $ac_cv_type_uint16_t = yes; then
5911 1.54 wiz
5912 1.65 christos cat >>confdefs.h <<\_ACEOF
5913 1.6 tv #define u_int16_t uint16_t
5914 1.65 christos _ACEOF
5915 1.1 tv
5916 1.1 tv else
5917 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5918 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5919 1.6 tv { (exit 1); exit 1; }; }
5920 1.1 tv fi
5921 1.1 tv
5922 1.65 christos
5923 1.1 tv fi
5924 1.1 tv
5925 1.65 christos
5926 1.65 christos
5927 1.65 christos { echo "$as_me:$LINENO: checking for uint32_t" >&5
5928 1.65 christos echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5929 1.9 tv if test "${ac_cv_type_uint32_t+set}" = set; then
5930 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5931 1.9 tv else
5932 1.9 tv cat >conftest.$ac_ext <<_ACEOF
5933 1.65 christos /* confdefs.h. */
5934 1.65 christos _ACEOF
5935 1.65 christos cat confdefs.h >>conftest.$ac_ext
5936 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5937 1.65 christos /* end confdefs.h. */
5938 1.9 tv $ac_includes_default
5939 1.65 christos typedef uint32_t ac__type_new_;
5940 1.9 tv int
5941 1.9 tv main ()
5942 1.9 tv {
5943 1.65 christos if ((ac__type_new_ *) 0)
5944 1.9 tv return 0;
5945 1.65 christos if (sizeof (ac__type_new_))
5946 1.9 tv return 0;
5947 1.9 tv ;
5948 1.9 tv return 0;
5949 1.9 tv }
5950 1.9 tv _ACEOF
5951 1.9 tv rm -f conftest.$ac_objext
5952 1.65 christos if { (ac_try="$ac_compile"
5953 1.65 christos case "(($ac_try" in
5954 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 1.65 christos *) ac_try_echo=$ac_try;;
5956 1.65 christos esac
5957 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 1.65 christos (eval "$ac_compile") 2>conftest.er1
5959 1.9 tv ac_status=$?
5960 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
5961 1.65 christos rm -f conftest.er1
5962 1.65 christos cat conftest.err >&5
5963 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 1.65 christos (exit $ac_status); } && {
5965 1.65 christos test -z "$ac_c_werror_flag" ||
5966 1.65 christos test ! -s conftest.err
5967 1.65 christos } && test -s conftest.$ac_objext; then
5968 1.9 tv ac_cv_type_uint32_t=yes
5969 1.9 tv else
5970 1.9 tv echo "$as_me: failed program was:" >&5
5971 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
5972 1.65 christos
5973 1.65 christos ac_cv_type_uint32_t=no
5974 1.9 tv fi
5975 1.65 christos
5976 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 1.9 tv fi
5978 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5979 1.65 christos echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
5980 1.9 tv if test $ac_cv_type_uint32_t = yes; then
5981 1.9 tv :
5982 1.9 tv else
5983 1.9 tv
5984 1.65 christos { echo "$as_me:$LINENO: checking for u_int32_t" >&5
5985 1.65 christos echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
5986 1.6 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
5987 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
5988 1.1 tv else
5989 1.1 tv cat >conftest.$ac_ext <<_ACEOF
5990 1.65 christos /* confdefs.h. */
5991 1.65 christos _ACEOF
5992 1.65 christos cat confdefs.h >>conftest.$ac_ext
5993 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
5994 1.65 christos /* end confdefs.h. */
5995 1.9 tv $ac_includes_default
5996 1.65 christos typedef u_int32_t ac__type_new_;
5997 1.9 tv int
5998 1.9 tv main ()
5999 1.9 tv {
6000 1.65 christos if ((ac__type_new_ *) 0)
6001 1.9 tv return 0;
6002 1.65 christos if (sizeof (ac__type_new_))
6003 1.9 tv return 0;
6004 1.9 tv ;
6005 1.9 tv return 0;
6006 1.9 tv }
6007 1.9 tv _ACEOF
6008 1.9 tv rm -f conftest.$ac_objext
6009 1.65 christos if { (ac_try="$ac_compile"
6010 1.65 christos case "(($ac_try" in
6011 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 1.65 christos *) ac_try_echo=$ac_try;;
6013 1.65 christos esac
6014 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 1.65 christos (eval "$ac_compile") 2>conftest.er1
6016 1.9 tv ac_status=$?
6017 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6018 1.65 christos rm -f conftest.er1
6019 1.65 christos cat conftest.err >&5
6020 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 1.65 christos (exit $ac_status); } && {
6022 1.65 christos test -z "$ac_c_werror_flag" ||
6023 1.65 christos test ! -s conftest.err
6024 1.65 christos } && test -s conftest.$ac_objext; then
6025 1.9 tv ac_cv_type_u_int32_t=yes
6026 1.9 tv else
6027 1.9 tv echo "$as_me: failed program was:" >&5
6028 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6029 1.65 christos
6030 1.65 christos ac_cv_type_u_int32_t=no
6031 1.9 tv fi
6032 1.65 christos
6033 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 1.9 tv fi
6035 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6036 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
6037 1.9 tv if test $ac_cv_type_u_int32_t = yes; then
6038 1.54 wiz
6039 1.65 christos cat >>confdefs.h <<\_ACEOF
6040 1.9 tv #define uint32_t u_int32_t
6041 1.65 christos _ACEOF
6042 1.9 tv
6043 1.9 tv else
6044 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
6045 1.9 tv echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
6046 1.9 tv { (exit 1); exit 1; }; }
6047 1.9 tv fi
6048 1.9 tv
6049 1.65 christos
6050 1.9 tv fi
6051 1.9 tv
6052 1.65 christos { echo "$as_me:$LINENO: checking for u_int32_t" >&5
6053 1.65 christos echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
6054 1.9 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
6055 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6056 1.9 tv else
6057 1.9 tv cat >conftest.$ac_ext <<_ACEOF
6058 1.65 christos /* confdefs.h. */
6059 1.65 christos _ACEOF
6060 1.65 christos cat confdefs.h >>conftest.$ac_ext
6061 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6062 1.65 christos /* end confdefs.h. */
6063 1.6 tv $ac_includes_default
6064 1.65 christos typedef u_int32_t ac__type_new_;
6065 1.1 tv int
6066 1.1 tv main ()
6067 1.1 tv {
6068 1.65 christos if ((ac__type_new_ *) 0)
6069 1.6 tv return 0;
6070 1.65 christos if (sizeof (ac__type_new_))
6071 1.6 tv return 0;
6072 1.6 tv ;
6073 1.6 tv return 0;
6074 1.1 tv }
6075 1.1 tv _ACEOF
6076 1.6 tv rm -f conftest.$ac_objext
6077 1.65 christos if { (ac_try="$ac_compile"
6078 1.65 christos case "(($ac_try" in
6079 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 1.65 christos *) ac_try_echo=$ac_try;;
6081 1.65 christos esac
6082 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 1.65 christos (eval "$ac_compile") 2>conftest.er1
6084 1.1 tv ac_status=$?
6085 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6086 1.65 christos rm -f conftest.er1
6087 1.65 christos cat conftest.err >&5
6088 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 1.65 christos (exit $ac_status); } && {
6090 1.65 christos test -z "$ac_c_werror_flag" ||
6091 1.65 christos test ! -s conftest.err
6092 1.65 christos } && test -s conftest.$ac_objext; then
6093 1.6 tv ac_cv_type_u_int32_t=yes
6094 1.1 tv else
6095 1.6 tv echo "$as_me: failed program was:" >&5
6096 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6097 1.65 christos
6098 1.65 christos ac_cv_type_u_int32_t=no
6099 1.1 tv fi
6100 1.65 christos
6101 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 1.1 tv fi
6103 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6104 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
6105 1.6 tv if test $ac_cv_type_u_int32_t = yes; then
6106 1.6 tv :
6107 1.6 tv else
6108 1.1 tv
6109 1.65 christos { echo "$as_me:$LINENO: checking for uint32_t" >&5
6110 1.65 christos echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6111 1.6 tv if test "${ac_cv_type_uint32_t+set}" = set; then
6112 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6113 1.1 tv else
6114 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6115 1.65 christos /* confdefs.h. */
6116 1.65 christos _ACEOF
6117 1.65 christos cat confdefs.h >>conftest.$ac_ext
6118 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6119 1.65 christos /* end confdefs.h. */
6120 1.1 tv $ac_includes_default
6121 1.65 christos typedef uint32_t ac__type_new_;
6122 1.6 tv int
6123 1.6 tv main ()
6124 1.6 tv {
6125 1.65 christos if ((ac__type_new_ *) 0)
6126 1.6 tv return 0;
6127 1.65 christos if (sizeof (ac__type_new_))
6128 1.6 tv return 0;
6129 1.6 tv ;
6130 1.6 tv return 0;
6131 1.6 tv }
6132 1.1 tv _ACEOF
6133 1.1 tv rm -f conftest.$ac_objext
6134 1.65 christos if { (ac_try="$ac_compile"
6135 1.65 christos case "(($ac_try" in
6136 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 1.65 christos *) ac_try_echo=$ac_try;;
6138 1.65 christos esac
6139 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 1.65 christos (eval "$ac_compile") 2>conftest.er1
6141 1.1 tv ac_status=$?
6142 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6143 1.65 christos rm -f conftest.er1
6144 1.65 christos cat conftest.err >&5
6145 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 1.65 christos (exit $ac_status); } && {
6147 1.65 christos test -z "$ac_c_werror_flag" ||
6148 1.65 christos test ! -s conftest.err
6149 1.65 christos } && test -s conftest.$ac_objext; then
6150 1.6 tv ac_cv_type_uint32_t=yes
6151 1.1 tv else
6152 1.1 tv echo "$as_me: failed program was:" >&5
6153 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6154 1.65 christos
6155 1.65 christos ac_cv_type_uint32_t=no
6156 1.1 tv fi
6157 1.65 christos
6158 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 1.1 tv fi
6160 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6161 1.65 christos echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6162 1.6 tv if test $ac_cv_type_uint32_t = yes; then
6163 1.54 wiz
6164 1.65 christos cat >>confdefs.h <<\_ACEOF
6165 1.6 tv #define u_int32_t uint32_t
6166 1.65 christos _ACEOF
6167 1.1 tv
6168 1.6 tv else
6169 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
6170 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
6171 1.6 tv { (exit 1); exit 1; }; }
6172 1.6 tv fi
6173 1.6 tv
6174 1.65 christos
6175 1.1 tv fi
6176 1.1 tv
6177 1.65 christos
6178 1.65 christos
6179 1.65 christos { echo "$as_me:$LINENO: checking for uint64_t" >&5
6180 1.65 christos echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6181 1.9 tv if test "${ac_cv_type_uint64_t+set}" = set; then
6182 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6183 1.9 tv else
6184 1.9 tv cat >conftest.$ac_ext <<_ACEOF
6185 1.65 christos /* confdefs.h. */
6186 1.65 christos _ACEOF
6187 1.65 christos cat confdefs.h >>conftest.$ac_ext
6188 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6189 1.65 christos /* end confdefs.h. */
6190 1.9 tv $ac_includes_default
6191 1.65 christos typedef uint64_t ac__type_new_;
6192 1.9 tv int
6193 1.9 tv main ()
6194 1.9 tv {
6195 1.65 christos if ((ac__type_new_ *) 0)
6196 1.9 tv return 0;
6197 1.65 christos if (sizeof (ac__type_new_))
6198 1.9 tv return 0;
6199 1.9 tv ;
6200 1.9 tv return 0;
6201 1.9 tv }
6202 1.9 tv _ACEOF
6203 1.9 tv rm -f conftest.$ac_objext
6204 1.65 christos if { (ac_try="$ac_compile"
6205 1.65 christos case "(($ac_try" in
6206 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 1.65 christos *) ac_try_echo=$ac_try;;
6208 1.65 christos esac
6209 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 1.65 christos (eval "$ac_compile") 2>conftest.er1
6211 1.9 tv ac_status=$?
6212 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6213 1.65 christos rm -f conftest.er1
6214 1.65 christos cat conftest.err >&5
6215 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 1.65 christos (exit $ac_status); } && {
6217 1.65 christos test -z "$ac_c_werror_flag" ||
6218 1.65 christos test ! -s conftest.err
6219 1.65 christos } && test -s conftest.$ac_objext; then
6220 1.9 tv ac_cv_type_uint64_t=yes
6221 1.9 tv else
6222 1.9 tv echo "$as_me: failed program was:" >&5
6223 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6224 1.65 christos
6225 1.65 christos ac_cv_type_uint64_t=no
6226 1.9 tv fi
6227 1.65 christos
6228 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 1.9 tv fi
6230 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6231 1.65 christos echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6232 1.9 tv if test $ac_cv_type_uint64_t = yes; then
6233 1.9 tv :
6234 1.9 tv else
6235 1.9 tv
6236 1.65 christos { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6237 1.65 christos echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6238 1.9 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
6239 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6240 1.9 tv else
6241 1.9 tv cat >conftest.$ac_ext <<_ACEOF
6242 1.65 christos /* confdefs.h. */
6243 1.65 christos _ACEOF
6244 1.65 christos cat confdefs.h >>conftest.$ac_ext
6245 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6246 1.65 christos /* end confdefs.h. */
6247 1.9 tv $ac_includes_default
6248 1.65 christos typedef u_int64_t ac__type_new_;
6249 1.9 tv int
6250 1.9 tv main ()
6251 1.9 tv {
6252 1.65 christos if ((ac__type_new_ *) 0)
6253 1.9 tv return 0;
6254 1.65 christos if (sizeof (ac__type_new_))
6255 1.9 tv return 0;
6256 1.9 tv ;
6257 1.9 tv return 0;
6258 1.9 tv }
6259 1.9 tv _ACEOF
6260 1.9 tv rm -f conftest.$ac_objext
6261 1.65 christos if { (ac_try="$ac_compile"
6262 1.65 christos case "(($ac_try" in
6263 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 1.65 christos *) ac_try_echo=$ac_try;;
6265 1.65 christos esac
6266 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 1.65 christos (eval "$ac_compile") 2>conftest.er1
6268 1.9 tv ac_status=$?
6269 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6270 1.65 christos rm -f conftest.er1
6271 1.65 christos cat conftest.err >&5
6272 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 1.65 christos (exit $ac_status); } && {
6274 1.65 christos test -z "$ac_c_werror_flag" ||
6275 1.65 christos test ! -s conftest.err
6276 1.65 christos } && test -s conftest.$ac_objext; then
6277 1.9 tv ac_cv_type_u_int64_t=yes
6278 1.9 tv else
6279 1.9 tv echo "$as_me: failed program was:" >&5
6280 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6281 1.65 christos
6282 1.65 christos ac_cv_type_u_int64_t=no
6283 1.9 tv fi
6284 1.65 christos
6285 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 1.9 tv fi
6287 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6288 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6289 1.9 tv if test $ac_cv_type_u_int64_t = yes; then
6290 1.54 wiz
6291 1.65 christos cat >>confdefs.h <<\_ACEOF
6292 1.9 tv #define uint64_t u_int64_t
6293 1.65 christos _ACEOF
6294 1.9 tv
6295 1.9 tv else
6296 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
6297 1.9 tv echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
6298 1.9 tv { (exit 1); exit 1; }; }
6299 1.9 tv fi
6300 1.9 tv
6301 1.65 christos
6302 1.9 tv fi
6303 1.9 tv
6304 1.65 christos { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6305 1.65 christos echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6306 1.6 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
6307 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6308 1.1 tv else
6309 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6310 1.65 christos /* confdefs.h. */
6311 1.65 christos _ACEOF
6312 1.65 christos cat confdefs.h >>conftest.$ac_ext
6313 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6314 1.65 christos /* end confdefs.h. */
6315 1.1 tv $ac_includes_default
6316 1.65 christos typedef u_int64_t ac__type_new_;
6317 1.1 tv int
6318 1.1 tv main ()
6319 1.1 tv {
6320 1.65 christos if ((ac__type_new_ *) 0)
6321 1.1 tv return 0;
6322 1.65 christos if (sizeof (ac__type_new_))
6323 1.1 tv return 0;
6324 1.1 tv ;
6325 1.1 tv return 0;
6326 1.1 tv }
6327 1.1 tv _ACEOF
6328 1.1 tv rm -f conftest.$ac_objext
6329 1.65 christos if { (ac_try="$ac_compile"
6330 1.65 christos case "(($ac_try" in
6331 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 1.65 christos *) ac_try_echo=$ac_try;;
6333 1.65 christos esac
6334 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 1.65 christos (eval "$ac_compile") 2>conftest.er1
6336 1.1 tv ac_status=$?
6337 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6338 1.65 christos rm -f conftest.er1
6339 1.65 christos cat conftest.err >&5
6340 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 1.65 christos (exit $ac_status); } && {
6342 1.65 christos test -z "$ac_c_werror_flag" ||
6343 1.65 christos test ! -s conftest.err
6344 1.65 christos } && test -s conftest.$ac_objext; then
6345 1.6 tv ac_cv_type_u_int64_t=yes
6346 1.1 tv else
6347 1.1 tv echo "$as_me: failed program was:" >&5
6348 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6349 1.65 christos
6350 1.65 christos ac_cv_type_u_int64_t=no
6351 1.1 tv fi
6352 1.65 christos
6353 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 1.1 tv fi
6355 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6356 1.65 christos echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6357 1.6 tv if test $ac_cv_type_u_int64_t = yes; then
6358 1.1 tv :
6359 1.1 tv else
6360 1.1 tv
6361 1.65 christos { echo "$as_me:$LINENO: checking for uint64_t" >&5
6362 1.65 christos echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6363 1.6 tv if test "${ac_cv_type_uint64_t+set}" = set; then
6364 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6365 1.1 tv else
6366 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6367 1.65 christos /* confdefs.h. */
6368 1.65 christos _ACEOF
6369 1.65 christos cat confdefs.h >>conftest.$ac_ext
6370 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6371 1.65 christos /* end confdefs.h. */
6372 1.4 tv $ac_includes_default
6373 1.65 christos typedef uint64_t ac__type_new_;
6374 1.4 tv int
6375 1.4 tv main ()
6376 1.4 tv {
6377 1.65 christos if ((ac__type_new_ *) 0)
6378 1.4 tv return 0;
6379 1.65 christos if (sizeof (ac__type_new_))
6380 1.4 tv return 0;
6381 1.4 tv ;
6382 1.4 tv return 0;
6383 1.4 tv }
6384 1.1 tv _ACEOF
6385 1.4 tv rm -f conftest.$ac_objext
6386 1.65 christos if { (ac_try="$ac_compile"
6387 1.65 christos case "(($ac_try" in
6388 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 1.65 christos *) ac_try_echo=$ac_try;;
6390 1.65 christos esac
6391 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 1.65 christos (eval "$ac_compile") 2>conftest.er1
6393 1.4 tv ac_status=$?
6394 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6395 1.65 christos rm -f conftest.er1
6396 1.65 christos cat conftest.err >&5
6397 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 1.65 christos (exit $ac_status); } && {
6399 1.65 christos test -z "$ac_c_werror_flag" ||
6400 1.65 christos test ! -s conftest.err
6401 1.65 christos } && test -s conftest.$ac_objext; then
6402 1.6 tv ac_cv_type_uint64_t=yes
6403 1.4 tv else
6404 1.4 tv echo "$as_me: failed program was:" >&5
6405 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6406 1.65 christos
6407 1.65 christos ac_cv_type_uint64_t=no
6408 1.4 tv fi
6409 1.65 christos
6410 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 1.4 tv fi
6412 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6413 1.65 christos echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6414 1.6 tv if test $ac_cv_type_uint64_t = yes; then
6415 1.54 wiz
6416 1.65 christos cat >>confdefs.h <<\_ACEOF
6417 1.6 tv #define u_int64_t uint64_t
6418 1.65 christos _ACEOF
6419 1.4 tv
6420 1.6 tv else
6421 1.65 christos { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
6422 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
6423 1.6 tv { (exit 1); exit 1; }; }
6424 1.6 tv fi
6425 1.4 tv
6426 1.65 christos
6427 1.4 tv fi
6428 1.4 tv
6429 1.65 christos
6430 1.65 christos
6431 1.4 tv # Struct members.
6432 1.65 christos { echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
6433 1.65 christos echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6; }
6434 1.7 tv if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
6435 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6436 1.7 tv else
6437 1.7 tv cat >conftest.$ac_ext <<_ACEOF
6438 1.65 christos /* confdefs.h. */
6439 1.65 christos _ACEOF
6440 1.65 christos cat confdefs.h >>conftest.$ac_ext
6441 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6442 1.65 christos /* end confdefs.h. */
6443 1.32 thorpej #include <sys/types.h>
6444 1.7 tv #include <dirent.h>
6445 1.7 tv
6446 1.7 tv int
6447 1.7 tv main ()
6448 1.7 tv {
6449 1.7 tv static DIR ac_aggr;
6450 1.7 tv if (ac_aggr.dd_fd)
6451 1.7 tv return 0;
6452 1.7 tv ;
6453 1.7 tv return 0;
6454 1.7 tv }
6455 1.7 tv _ACEOF
6456 1.7 tv rm -f conftest.$ac_objext
6457 1.65 christos if { (ac_try="$ac_compile"
6458 1.65 christos case "(($ac_try" in
6459 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 1.65 christos *) ac_try_echo=$ac_try;;
6461 1.65 christos esac
6462 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 1.65 christos (eval "$ac_compile") 2>conftest.er1
6464 1.53 dogcow ac_status=$?
6465 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6466 1.65 christos rm -f conftest.er1
6467 1.65 christos cat conftest.err >&5
6468 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 1.65 christos (exit $ac_status); } && {
6470 1.65 christos test -z "$ac_c_werror_flag" ||
6471 1.65 christos test ! -s conftest.err
6472 1.65 christos } && test -s conftest.$ac_objext; then
6473 1.65 christos ac_cv_member_DIR_dd_fd=yes
6474 1.65 christos else
6475 1.65 christos echo "$as_me: failed program was:" >&5
6476 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6477 1.65 christos
6478 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6479 1.65 christos /* confdefs.h. */
6480 1.65 christos _ACEOF
6481 1.65 christos cat confdefs.h >>conftest.$ac_ext
6482 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6483 1.65 christos /* end confdefs.h. */
6484 1.65 christos #include <sys/types.h>
6485 1.65 christos #include <dirent.h>
6486 1.65 christos
6487 1.65 christos int
6488 1.65 christos main ()
6489 1.65 christos {
6490 1.65 christos static DIR ac_aggr;
6491 1.65 christos if (sizeof ac_aggr.dd_fd)
6492 1.65 christos return 0;
6493 1.65 christos ;
6494 1.65 christos return 0;
6495 1.65 christos }
6496 1.65 christos _ACEOF
6497 1.65 christos rm -f conftest.$ac_objext
6498 1.65 christos if { (ac_try="$ac_compile"
6499 1.65 christos case "(($ac_try" in
6500 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 1.65 christos *) ac_try_echo=$ac_try;;
6502 1.65 christos esac
6503 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 1.65 christos (eval "$ac_compile") 2>conftest.er1
6505 1.61 christos ac_status=$?
6506 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6507 1.65 christos rm -f conftest.er1
6508 1.65 christos cat conftest.err >&5
6509 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 1.65 christos (exit $ac_status); } && {
6511 1.65 christos test -z "$ac_c_werror_flag" ||
6512 1.65 christos test ! -s conftest.err
6513 1.65 christos } && test -s conftest.$ac_objext; then
6514 1.53 dogcow ac_cv_member_DIR_dd_fd=yes
6515 1.53 dogcow else
6516 1.53 dogcow echo "$as_me: failed program was:" >&5
6517 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6518 1.65 christos
6519 1.65 christos ac_cv_member_DIR_dd_fd=no
6520 1.65 christos fi
6521 1.65 christos
6522 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 1.48 jmc fi
6524 1.65 christos
6525 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 1.61 christos fi
6527 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6528 1.65 christos echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6; }
6529 1.48 jmc if test $ac_cv_member_DIR_dd_fd = yes; then
6530 1.48 jmc
6531 1.65 christos cat >>confdefs.h <<_ACEOF
6532 1.48 jmc #define HAVE_DIR_DD_FD 1
6533 1.65 christos _ACEOF
6534 1.65 christos
6535 1.48 jmc
6536 1.48 jmc fi
6537 1.65 christos { echo "$as_me:$LINENO: checking for DIR.__dd_fd" >&5
6538 1.65 christos echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6; }
6539 1.59 thorpej if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
6540 1.59 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
6541 1.59 thorpej else
6542 1.59 thorpej cat >conftest.$ac_ext <<_ACEOF
6543 1.65 christos /* confdefs.h. */
6544 1.65 christos _ACEOF
6545 1.65 christos cat confdefs.h >>conftest.$ac_ext
6546 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6547 1.65 christos /* end confdefs.h. */
6548 1.59 thorpej #include <sys/types.h>
6549 1.59 thorpej #include <dirent.h>
6550 1.59 thorpej
6551 1.59 thorpej int
6552 1.59 thorpej main ()
6553 1.59 thorpej {
6554 1.59 thorpej static DIR ac_aggr;
6555 1.59 thorpej if (ac_aggr.__dd_fd)
6556 1.59 thorpej return 0;
6557 1.59 thorpej ;
6558 1.59 thorpej return 0;
6559 1.59 thorpej }
6560 1.59 thorpej _ACEOF
6561 1.59 thorpej rm -f conftest.$ac_objext
6562 1.65 christos if { (ac_try="$ac_compile"
6563 1.65 christos case "(($ac_try" in
6564 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 1.65 christos *) ac_try_echo=$ac_try;;
6566 1.65 christos esac
6567 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 1.65 christos (eval "$ac_compile") 2>conftest.er1
6569 1.61 christos ac_status=$?
6570 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6571 1.65 christos rm -f conftest.er1
6572 1.65 christos cat conftest.err >&5
6573 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 1.65 christos (exit $ac_status); } && {
6575 1.65 christos test -z "$ac_c_werror_flag" ||
6576 1.65 christos test ! -s conftest.err
6577 1.65 christos } && test -s conftest.$ac_objext; then
6578 1.65 christos ac_cv_member_DIR___dd_fd=yes
6579 1.65 christos else
6580 1.65 christos echo "$as_me: failed program was:" >&5
6581 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6582 1.65 christos
6583 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6584 1.65 christos /* confdefs.h. */
6585 1.65 christos _ACEOF
6586 1.65 christos cat confdefs.h >>conftest.$ac_ext
6587 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6588 1.65 christos /* end confdefs.h. */
6589 1.65 christos #include <sys/types.h>
6590 1.65 christos #include <dirent.h>
6591 1.65 christos
6592 1.65 christos int
6593 1.65 christos main ()
6594 1.65 christos {
6595 1.65 christos static DIR ac_aggr;
6596 1.65 christos if (sizeof ac_aggr.__dd_fd)
6597 1.65 christos return 0;
6598 1.65 christos ;
6599 1.65 christos return 0;
6600 1.65 christos }
6601 1.65 christos _ACEOF
6602 1.65 christos rm -f conftest.$ac_objext
6603 1.65 christos if { (ac_try="$ac_compile"
6604 1.65 christos case "(($ac_try" in
6605 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 1.65 christos *) ac_try_echo=$ac_try;;
6607 1.65 christos esac
6608 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 1.65 christos (eval "$ac_compile") 2>conftest.er1
6610 1.61 christos ac_status=$?
6611 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6612 1.65 christos rm -f conftest.er1
6613 1.65 christos cat conftest.err >&5
6614 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 1.65 christos (exit $ac_status); } && {
6616 1.65 christos test -z "$ac_c_werror_flag" ||
6617 1.65 christos test ! -s conftest.err
6618 1.65 christos } && test -s conftest.$ac_objext; then
6619 1.61 christos ac_cv_member_DIR___dd_fd=yes
6620 1.61 christos else
6621 1.61 christos echo "$as_me: failed program was:" >&5
6622 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6623 1.65 christos
6624 1.65 christos ac_cv_member_DIR___dd_fd=no
6625 1.65 christos fi
6626 1.65 christos
6627 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 1.63 apb fi
6629 1.65 christos
6630 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 1.63 apb fi
6632 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_DIR___dd_fd" >&5
6633 1.65 christos echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6; }
6634 1.63 apb if test $ac_cv_member_DIR___dd_fd = yes; then
6635 1.63 apb
6636 1.65 christos cat >>confdefs.h <<_ACEOF
6637 1.63 apb #define HAVE_DIR___DD_FD 1
6638 1.65 christos _ACEOF
6639 1.65 christos
6640 1.61 christos
6641 1.63 apb fi
6642 1.65 christos { echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6643 1.65 christos echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; }
6644 1.63 apb if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6645 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
6646 1.63 apb else
6647 1.63 apb cat >conftest.$ac_ext <<_ACEOF
6648 1.65 christos /* confdefs.h. */
6649 1.65 christos _ACEOF
6650 1.65 christos cat confdefs.h >>conftest.$ac_ext
6651 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6652 1.65 christos /* end confdefs.h. */
6653 1.65 christos #include <sys/types.h>
6654 1.65 christos #include <dirent.h>
6655 1.65 christos
6656 1.65 christos int
6657 1.65 christos main ()
6658 1.65 christos {
6659 1.65 christos static struct dirent ac_aggr;
6660 1.65 christos if (ac_aggr.d_namlen)
6661 1.65 christos return 0;
6662 1.65 christos ;
6663 1.65 christos return 0;
6664 1.65 christos }
6665 1.65 christos _ACEOF
6666 1.65 christos rm -f conftest.$ac_objext
6667 1.65 christos if { (ac_try="$ac_compile"
6668 1.65 christos case "(($ac_try" in
6669 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 1.65 christos *) ac_try_echo=$ac_try;;
6671 1.65 christos esac
6672 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 1.65 christos (eval "$ac_compile") 2>conftest.er1
6674 1.65 christos ac_status=$?
6675 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6676 1.65 christos rm -f conftest.er1
6677 1.65 christos cat conftest.err >&5
6678 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 1.65 christos (exit $ac_status); } && {
6680 1.65 christos test -z "$ac_c_werror_flag" ||
6681 1.65 christos test ! -s conftest.err
6682 1.65 christos } && test -s conftest.$ac_objext; then
6683 1.65 christos ac_cv_member_struct_dirent_d_namlen=yes
6684 1.65 christos else
6685 1.65 christos echo "$as_me: failed program was:" >&5
6686 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6687 1.65 christos
6688 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6689 1.65 christos /* confdefs.h. */
6690 1.65 christos _ACEOF
6691 1.65 christos cat confdefs.h >>conftest.$ac_ext
6692 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6693 1.65 christos /* end confdefs.h. */
6694 1.65 christos #include <sys/types.h>
6695 1.65 christos #include <dirent.h>
6696 1.65 christos
6697 1.65 christos int
6698 1.65 christos main ()
6699 1.65 christos {
6700 1.65 christos static struct dirent ac_aggr;
6701 1.65 christos if (sizeof ac_aggr.d_namlen)
6702 1.65 christos return 0;
6703 1.65 christos ;
6704 1.65 christos return 0;
6705 1.65 christos }
6706 1.65 christos _ACEOF
6707 1.65 christos rm -f conftest.$ac_objext
6708 1.65 christos if { (ac_try="$ac_compile"
6709 1.65 christos case "(($ac_try" in
6710 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 1.65 christos *) ac_try_echo=$ac_try;;
6712 1.65 christos esac
6713 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 1.65 christos (eval "$ac_compile") 2>conftest.er1
6715 1.65 christos ac_status=$?
6716 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6717 1.65 christos rm -f conftest.er1
6718 1.65 christos cat conftest.err >&5
6719 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 1.65 christos (exit $ac_status); } && {
6721 1.65 christos test -z "$ac_c_werror_flag" ||
6722 1.65 christos test ! -s conftest.err
6723 1.65 christos } && test -s conftest.$ac_objext; then
6724 1.65 christos ac_cv_member_struct_dirent_d_namlen=yes
6725 1.65 christos else
6726 1.65 christos echo "$as_me: failed program was:" >&5
6727 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6728 1.65 christos
6729 1.65 christos ac_cv_member_struct_dirent_d_namlen=no
6730 1.65 christos fi
6731 1.65 christos
6732 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 1.65 christos fi
6734 1.65 christos
6735 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 1.65 christos fi
6737 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6738 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6; }
6739 1.65 christos if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6740 1.65 christos
6741 1.65 christos cat >>confdefs.h <<_ACEOF
6742 1.65 christos #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6743 1.65 christos _ACEOF
6744 1.65 christos
6745 1.65 christos
6746 1.65 christos fi
6747 1.65 christos
6748 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6749 1.65 christos echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
6750 1.65 christos if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6751 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6752 1.65 christos else
6753 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6754 1.65 christos /* confdefs.h. */
6755 1.65 christos _ACEOF
6756 1.65 christos cat confdefs.h >>conftest.$ac_ext
6757 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6758 1.65 christos /* end confdefs.h. */
6759 1.65 christos #include <sys/stat.h>
6760 1.65 christos
6761 1.65 christos int
6762 1.65 christos main ()
6763 1.65 christos {
6764 1.65 christos static struct stat ac_aggr;
6765 1.65 christos if (ac_aggr.st_flags)
6766 1.65 christos return 0;
6767 1.65 christos ;
6768 1.65 christos return 0;
6769 1.65 christos }
6770 1.65 christos _ACEOF
6771 1.65 christos rm -f conftest.$ac_objext
6772 1.65 christos if { (ac_try="$ac_compile"
6773 1.65 christos case "(($ac_try" in
6774 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 1.65 christos *) ac_try_echo=$ac_try;;
6776 1.65 christos esac
6777 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 1.65 christos (eval "$ac_compile") 2>conftest.er1
6779 1.65 christos ac_status=$?
6780 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6781 1.65 christos rm -f conftest.er1
6782 1.65 christos cat conftest.err >&5
6783 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 1.65 christos (exit $ac_status); } && {
6785 1.65 christos test -z "$ac_c_werror_flag" ||
6786 1.65 christos test ! -s conftest.err
6787 1.65 christos } && test -s conftest.$ac_objext; then
6788 1.65 christos ac_cv_member_struct_stat_st_flags=yes
6789 1.65 christos else
6790 1.65 christos echo "$as_me: failed program was:" >&5
6791 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6792 1.65 christos
6793 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6794 1.65 christos /* confdefs.h. */
6795 1.65 christos _ACEOF
6796 1.65 christos cat confdefs.h >>conftest.$ac_ext
6797 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6798 1.65 christos /* end confdefs.h. */
6799 1.65 christos #include <sys/stat.h>
6800 1.65 christos
6801 1.65 christos int
6802 1.65 christos main ()
6803 1.65 christos {
6804 1.65 christos static struct stat ac_aggr;
6805 1.65 christos if (sizeof ac_aggr.st_flags)
6806 1.65 christos return 0;
6807 1.65 christos ;
6808 1.65 christos return 0;
6809 1.65 christos }
6810 1.65 christos _ACEOF
6811 1.65 christos rm -f conftest.$ac_objext
6812 1.65 christos if { (ac_try="$ac_compile"
6813 1.65 christos case "(($ac_try" in
6814 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 1.65 christos *) ac_try_echo=$ac_try;;
6816 1.65 christos esac
6817 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 1.65 christos (eval "$ac_compile") 2>conftest.er1
6819 1.65 christos ac_status=$?
6820 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6821 1.65 christos rm -f conftest.er1
6822 1.65 christos cat conftest.err >&5
6823 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 1.65 christos (exit $ac_status); } && {
6825 1.65 christos test -z "$ac_c_werror_flag" ||
6826 1.65 christos test ! -s conftest.err
6827 1.65 christos } && test -s conftest.$ac_objext; then
6828 1.65 christos ac_cv_member_struct_stat_st_flags=yes
6829 1.65 christos else
6830 1.65 christos echo "$as_me: failed program was:" >&5
6831 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6832 1.65 christos
6833 1.65 christos ac_cv_member_struct_stat_st_flags=no
6834 1.65 christos fi
6835 1.65 christos
6836 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 1.65 christos fi
6838 1.65 christos
6839 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 1.65 christos fi
6841 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6842 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
6843 1.65 christos if test $ac_cv_member_struct_stat_st_flags = yes; then
6844 1.65 christos
6845 1.65 christos cat >>confdefs.h <<_ACEOF
6846 1.65 christos #define HAVE_STRUCT_STAT_ST_FLAGS 1
6847 1.65 christos _ACEOF
6848 1.65 christos
6849 1.65 christos
6850 1.65 christos fi
6851 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6852 1.65 christos echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
6853 1.65 christos if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6854 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6855 1.65 christos else
6856 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6857 1.65 christos /* confdefs.h. */
6858 1.65 christos _ACEOF
6859 1.65 christos cat confdefs.h >>conftest.$ac_ext
6860 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6861 1.65 christos /* end confdefs.h. */
6862 1.65 christos #include <sys/stat.h>
6863 1.65 christos
6864 1.65 christos int
6865 1.65 christos main ()
6866 1.65 christos {
6867 1.65 christos static struct stat ac_aggr;
6868 1.65 christos if (ac_aggr.st_gen)
6869 1.65 christos return 0;
6870 1.65 christos ;
6871 1.65 christos return 0;
6872 1.65 christos }
6873 1.65 christos _ACEOF
6874 1.65 christos rm -f conftest.$ac_objext
6875 1.65 christos if { (ac_try="$ac_compile"
6876 1.65 christos case "(($ac_try" in
6877 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 1.65 christos *) ac_try_echo=$ac_try;;
6879 1.65 christos esac
6880 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 1.65 christos (eval "$ac_compile") 2>conftest.er1
6882 1.65 christos ac_status=$?
6883 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6884 1.65 christos rm -f conftest.er1
6885 1.65 christos cat conftest.err >&5
6886 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 1.65 christos (exit $ac_status); } && {
6888 1.65 christos test -z "$ac_c_werror_flag" ||
6889 1.65 christos test ! -s conftest.err
6890 1.65 christos } && test -s conftest.$ac_objext; then
6891 1.65 christos ac_cv_member_struct_stat_st_gen=yes
6892 1.65 christos else
6893 1.65 christos echo "$as_me: failed program was:" >&5
6894 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6895 1.65 christos
6896 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6897 1.65 christos /* confdefs.h. */
6898 1.65 christos _ACEOF
6899 1.65 christos cat confdefs.h >>conftest.$ac_ext
6900 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6901 1.65 christos /* end confdefs.h. */
6902 1.65 christos #include <sys/stat.h>
6903 1.65 christos
6904 1.65 christos int
6905 1.65 christos main ()
6906 1.65 christos {
6907 1.65 christos static struct stat ac_aggr;
6908 1.65 christos if (sizeof ac_aggr.st_gen)
6909 1.65 christos return 0;
6910 1.65 christos ;
6911 1.65 christos return 0;
6912 1.65 christos }
6913 1.65 christos _ACEOF
6914 1.65 christos rm -f conftest.$ac_objext
6915 1.65 christos if { (ac_try="$ac_compile"
6916 1.65 christos case "(($ac_try" in
6917 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 1.65 christos *) ac_try_echo=$ac_try;;
6919 1.65 christos esac
6920 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 1.65 christos (eval "$ac_compile") 2>conftest.er1
6922 1.65 christos ac_status=$?
6923 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6924 1.65 christos rm -f conftest.er1
6925 1.65 christos cat conftest.err >&5
6926 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 1.65 christos (exit $ac_status); } && {
6928 1.65 christos test -z "$ac_c_werror_flag" ||
6929 1.65 christos test ! -s conftest.err
6930 1.65 christos } && test -s conftest.$ac_objext; then
6931 1.65 christos ac_cv_member_struct_stat_st_gen=yes
6932 1.65 christos else
6933 1.65 christos echo "$as_me: failed program was:" >&5
6934 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6935 1.65 christos
6936 1.65 christos ac_cv_member_struct_stat_st_gen=no
6937 1.65 christos fi
6938 1.65 christos
6939 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 1.65 christos fi
6941 1.65 christos
6942 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 1.65 christos fi
6944 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6945 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
6946 1.65 christos if test $ac_cv_member_struct_stat_st_gen = yes; then
6947 1.65 christos
6948 1.65 christos cat >>confdefs.h <<_ACEOF
6949 1.65 christos #define HAVE_STRUCT_STAT_ST_GEN 1
6950 1.65 christos _ACEOF
6951 1.65 christos
6952 1.65 christos
6953 1.65 christos fi
6954 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6955 1.65 christos echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
6956 1.65 christos if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6957 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
6958 1.65 christos else
6959 1.65 christos cat >conftest.$ac_ext <<_ACEOF
6960 1.65 christos /* confdefs.h. */
6961 1.65 christos _ACEOF
6962 1.65 christos cat confdefs.h >>conftest.$ac_ext
6963 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
6964 1.65 christos /* end confdefs.h. */
6965 1.65 christos #include <sys/stat.h>
6966 1.65 christos
6967 1.65 christos int
6968 1.65 christos main ()
6969 1.65 christos {
6970 1.65 christos static struct stat ac_aggr;
6971 1.65 christos if (ac_aggr.st_birthtime)
6972 1.65 christos return 0;
6973 1.65 christos ;
6974 1.65 christos return 0;
6975 1.65 christos }
6976 1.65 christos _ACEOF
6977 1.65 christos rm -f conftest.$ac_objext
6978 1.65 christos if { (ac_try="$ac_compile"
6979 1.65 christos case "(($ac_try" in
6980 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 1.65 christos *) ac_try_echo=$ac_try;;
6982 1.65 christos esac
6983 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 1.65 christos (eval "$ac_compile") 2>conftest.er1
6985 1.65 christos ac_status=$?
6986 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
6987 1.65 christos rm -f conftest.er1
6988 1.65 christos cat conftest.err >&5
6989 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 1.65 christos (exit $ac_status); } && {
6991 1.65 christos test -z "$ac_c_werror_flag" ||
6992 1.65 christos test ! -s conftest.err
6993 1.65 christos } && test -s conftest.$ac_objext; then
6994 1.65 christos ac_cv_member_struct_stat_st_birthtime=yes
6995 1.65 christos else
6996 1.65 christos echo "$as_me: failed program was:" >&5
6997 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
6998 1.65 christos
6999 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7000 1.65 christos /* confdefs.h. */
7001 1.65 christos _ACEOF
7002 1.65 christos cat confdefs.h >>conftest.$ac_ext
7003 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7004 1.65 christos /* end confdefs.h. */
7005 1.65 christos #include <sys/stat.h>
7006 1.65 christos
7007 1.65 christos int
7008 1.65 christos main ()
7009 1.65 christos {
7010 1.65 christos static struct stat ac_aggr;
7011 1.65 christos if (sizeof ac_aggr.st_birthtime)
7012 1.65 christos return 0;
7013 1.65 christos ;
7014 1.65 christos return 0;
7015 1.65 christos }
7016 1.65 christos _ACEOF
7017 1.65 christos rm -f conftest.$ac_objext
7018 1.65 christos if { (ac_try="$ac_compile"
7019 1.65 christos case "(($ac_try" in
7020 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 1.65 christos *) ac_try_echo=$ac_try;;
7022 1.65 christos esac
7023 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 1.65 christos (eval "$ac_compile") 2>conftest.er1
7025 1.65 christos ac_status=$?
7026 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7027 1.65 christos rm -f conftest.er1
7028 1.65 christos cat conftest.err >&5
7029 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 1.65 christos (exit $ac_status); } && {
7031 1.65 christos test -z "$ac_c_werror_flag" ||
7032 1.65 christos test ! -s conftest.err
7033 1.65 christos } && test -s conftest.$ac_objext; then
7034 1.65 christos ac_cv_member_struct_stat_st_birthtime=yes
7035 1.65 christos else
7036 1.65 christos echo "$as_me: failed program was:" >&5
7037 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7038 1.65 christos
7039 1.65 christos ac_cv_member_struct_stat_st_birthtime=no
7040 1.65 christos fi
7041 1.65 christos
7042 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 1.65 christos fi
7044 1.65 christos
7045 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 1.65 christos fi
7047 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
7048 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
7049 1.65 christos if test $ac_cv_member_struct_stat_st_birthtime = yes; then
7050 1.65 christos
7051 1.65 christos cat >>confdefs.h <<_ACEOF
7052 1.65 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
7053 1.65 christos _ACEOF
7054 1.65 christos
7055 1.65 christos
7056 1.65 christos fi
7057 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
7058 1.65 christos echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
7059 1.65 christos if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
7060 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7061 1.65 christos else
7062 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7063 1.65 christos /* confdefs.h. */
7064 1.65 christos _ACEOF
7065 1.65 christos cat confdefs.h >>conftest.$ac_ext
7066 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7067 1.65 christos /* end confdefs.h. */
7068 1.65 christos #include <sys/stat.h>
7069 1.65 christos
7070 1.65 christos int
7071 1.65 christos main ()
7072 1.65 christos {
7073 1.65 christos static struct stat ac_aggr;
7074 1.65 christos if (ac_aggr.st_birthtimensec)
7075 1.65 christos return 0;
7076 1.65 christos ;
7077 1.65 christos return 0;
7078 1.65 christos }
7079 1.65 christos _ACEOF
7080 1.65 christos rm -f conftest.$ac_objext
7081 1.65 christos if { (ac_try="$ac_compile"
7082 1.65 christos case "(($ac_try" in
7083 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 1.65 christos *) ac_try_echo=$ac_try;;
7085 1.65 christos esac
7086 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 1.65 christos (eval "$ac_compile") 2>conftest.er1
7088 1.65 christos ac_status=$?
7089 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7090 1.65 christos rm -f conftest.er1
7091 1.65 christos cat conftest.err >&5
7092 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 1.65 christos (exit $ac_status); } && {
7094 1.65 christos test -z "$ac_c_werror_flag" ||
7095 1.65 christos test ! -s conftest.err
7096 1.65 christos } && test -s conftest.$ac_objext; then
7097 1.65 christos ac_cv_member_struct_stat_st_birthtimensec=yes
7098 1.65 christos else
7099 1.65 christos echo "$as_me: failed program was:" >&5
7100 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7101 1.65 christos
7102 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7103 1.65 christos /* confdefs.h. */
7104 1.65 christos _ACEOF
7105 1.65 christos cat confdefs.h >>conftest.$ac_ext
7106 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7107 1.65 christos /* end confdefs.h. */
7108 1.65 christos #include <sys/stat.h>
7109 1.65 christos
7110 1.65 christos int
7111 1.65 christos main ()
7112 1.65 christos {
7113 1.65 christos static struct stat ac_aggr;
7114 1.65 christos if (sizeof ac_aggr.st_birthtimensec)
7115 1.65 christos return 0;
7116 1.65 christos ;
7117 1.65 christos return 0;
7118 1.65 christos }
7119 1.65 christos _ACEOF
7120 1.65 christos rm -f conftest.$ac_objext
7121 1.65 christos if { (ac_try="$ac_compile"
7122 1.65 christos case "(($ac_try" in
7123 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 1.65 christos *) ac_try_echo=$ac_try;;
7125 1.65 christos esac
7126 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 1.65 christos (eval "$ac_compile") 2>conftest.er1
7128 1.65 christos ac_status=$?
7129 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7130 1.65 christos rm -f conftest.er1
7131 1.65 christos cat conftest.err >&5
7132 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 1.65 christos (exit $ac_status); } && {
7134 1.65 christos test -z "$ac_c_werror_flag" ||
7135 1.65 christos test ! -s conftest.err
7136 1.65 christos } && test -s conftest.$ac_objext; then
7137 1.65 christos ac_cv_member_struct_stat_st_birthtimensec=yes
7138 1.65 christos else
7139 1.65 christos echo "$as_me: failed program was:" >&5
7140 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7141 1.65 christos
7142 1.65 christos ac_cv_member_struct_stat_st_birthtimensec=no
7143 1.65 christos fi
7144 1.65 christos
7145 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 1.65 christos fi
7147 1.65 christos
7148 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 1.65 christos fi
7150 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
7151 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
7152 1.65 christos if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
7153 1.65 christos
7154 1.65 christos cat >>confdefs.h <<_ACEOF
7155 1.65 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
7156 1.65 christos _ACEOF
7157 1.65 christos
7158 1.65 christos
7159 1.65 christos fi
7160 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
7161 1.65 christos echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
7162 1.65 christos if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
7163 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7164 1.65 christos else
7165 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7166 1.65 christos /* confdefs.h. */
7167 1.65 christos _ACEOF
7168 1.65 christos cat confdefs.h >>conftest.$ac_ext
7169 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7170 1.65 christos /* end confdefs.h. */
7171 1.65 christos #include <sys/stat.h>
7172 1.65 christos
7173 1.65 christos int
7174 1.65 christos main ()
7175 1.65 christos {
7176 1.65 christos static struct stat ac_aggr;
7177 1.65 christos if (ac_aggr.st_atim)
7178 1.65 christos return 0;
7179 1.65 christos ;
7180 1.65 christos return 0;
7181 1.65 christos }
7182 1.65 christos _ACEOF
7183 1.65 christos rm -f conftest.$ac_objext
7184 1.65 christos if { (ac_try="$ac_compile"
7185 1.65 christos case "(($ac_try" in
7186 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 1.65 christos *) ac_try_echo=$ac_try;;
7188 1.65 christos esac
7189 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 1.65 christos (eval "$ac_compile") 2>conftest.er1
7191 1.65 christos ac_status=$?
7192 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7193 1.65 christos rm -f conftest.er1
7194 1.65 christos cat conftest.err >&5
7195 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 1.65 christos (exit $ac_status); } && {
7197 1.65 christos test -z "$ac_c_werror_flag" ||
7198 1.65 christos test ! -s conftest.err
7199 1.65 christos } && test -s conftest.$ac_objext; then
7200 1.65 christos ac_cv_member_struct_stat_st_atim=yes
7201 1.65 christos else
7202 1.65 christos echo "$as_me: failed program was:" >&5
7203 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7204 1.65 christos
7205 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7206 1.65 christos /* confdefs.h. */
7207 1.65 christos _ACEOF
7208 1.65 christos cat confdefs.h >>conftest.$ac_ext
7209 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7210 1.65 christos /* end confdefs.h. */
7211 1.65 christos #include <sys/stat.h>
7212 1.65 christos
7213 1.65 christos int
7214 1.65 christos main ()
7215 1.65 christos {
7216 1.65 christos static struct stat ac_aggr;
7217 1.65 christos if (sizeof ac_aggr.st_atim)
7218 1.65 christos return 0;
7219 1.65 christos ;
7220 1.65 christos return 0;
7221 1.65 christos }
7222 1.65 christos _ACEOF
7223 1.65 christos rm -f conftest.$ac_objext
7224 1.65 christos if { (ac_try="$ac_compile"
7225 1.65 christos case "(($ac_try" in
7226 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 1.65 christos *) ac_try_echo=$ac_try;;
7228 1.65 christos esac
7229 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 1.65 christos (eval "$ac_compile") 2>conftest.er1
7231 1.65 christos ac_status=$?
7232 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7233 1.65 christos rm -f conftest.er1
7234 1.65 christos cat conftest.err >&5
7235 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 1.65 christos (exit $ac_status); } && {
7237 1.65 christos test -z "$ac_c_werror_flag" ||
7238 1.65 christos test ! -s conftest.err
7239 1.65 christos } && test -s conftest.$ac_objext; then
7240 1.65 christos ac_cv_member_struct_stat_st_atim=yes
7241 1.65 christos else
7242 1.65 christos echo "$as_me: failed program was:" >&5
7243 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7244 1.65 christos
7245 1.65 christos ac_cv_member_struct_stat_st_atim=no
7246 1.65 christos fi
7247 1.65 christos
7248 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 1.65 christos fi
7250 1.65 christos
7251 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 1.65 christos fi
7253 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
7254 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
7255 1.65 christos if test $ac_cv_member_struct_stat_st_atim = yes; then
7256 1.65 christos
7257 1.65 christos cat >>confdefs.h <<_ACEOF
7258 1.65 christos #define HAVE_STRUCT_STAT_ST_ATIM 1
7259 1.65 christos _ACEOF
7260 1.65 christos
7261 1.65 christos
7262 1.65 christos fi
7263 1.65 christos { echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
7264 1.65 christos echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6; }
7265 1.65 christos if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
7266 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7267 1.65 christos else
7268 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7269 1.65 christos /* confdefs.h. */
7270 1.65 christos _ACEOF
7271 1.65 christos cat confdefs.h >>conftest.$ac_ext
7272 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7273 1.65 christos /* end confdefs.h. */
7274 1.65 christos #include <sys/stat.h>
7275 1.65 christos
7276 1.65 christos int
7277 1.65 christos main ()
7278 1.65 christos {
7279 1.65 christos static struct stat ac_aggr;
7280 1.65 christos if (ac_aggr.st_mtimensec)
7281 1.65 christos return 0;
7282 1.65 christos ;
7283 1.65 christos return 0;
7284 1.65 christos }
7285 1.65 christos _ACEOF
7286 1.65 christos rm -f conftest.$ac_objext
7287 1.65 christos if { (ac_try="$ac_compile"
7288 1.65 christos case "(($ac_try" in
7289 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 1.65 christos *) ac_try_echo=$ac_try;;
7291 1.65 christos esac
7292 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 1.65 christos (eval "$ac_compile") 2>conftest.er1
7294 1.65 christos ac_status=$?
7295 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7296 1.65 christos rm -f conftest.er1
7297 1.65 christos cat conftest.err >&5
7298 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 1.65 christos (exit $ac_status); } && {
7300 1.65 christos test -z "$ac_c_werror_flag" ||
7301 1.65 christos test ! -s conftest.err
7302 1.65 christos } && test -s conftest.$ac_objext; then
7303 1.65 christos ac_cv_member_struct_stat_st_mtimensec=yes
7304 1.65 christos else
7305 1.65 christos echo "$as_me: failed program was:" >&5
7306 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7307 1.65 christos
7308 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7309 1.65 christos /* confdefs.h. */
7310 1.65 christos _ACEOF
7311 1.65 christos cat confdefs.h >>conftest.$ac_ext
7312 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7313 1.65 christos /* end confdefs.h. */
7314 1.65 christos #include <sys/stat.h>
7315 1.65 christos
7316 1.65 christos int
7317 1.65 christos main ()
7318 1.65 christos {
7319 1.65 christos static struct stat ac_aggr;
7320 1.65 christos if (sizeof ac_aggr.st_mtimensec)
7321 1.65 christos return 0;
7322 1.65 christos ;
7323 1.65 christos return 0;
7324 1.65 christos }
7325 1.65 christos _ACEOF
7326 1.65 christos rm -f conftest.$ac_objext
7327 1.65 christos if { (ac_try="$ac_compile"
7328 1.65 christos case "(($ac_try" in
7329 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 1.65 christos *) ac_try_echo=$ac_try;;
7331 1.65 christos esac
7332 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 1.65 christos (eval "$ac_compile") 2>conftest.er1
7334 1.65 christos ac_status=$?
7335 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7336 1.65 christos rm -f conftest.er1
7337 1.65 christos cat conftest.err >&5
7338 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 1.65 christos (exit $ac_status); } && {
7340 1.65 christos test -z "$ac_c_werror_flag" ||
7341 1.65 christos test ! -s conftest.err
7342 1.65 christos } && test -s conftest.$ac_objext; then
7343 1.65 christos ac_cv_member_struct_stat_st_mtimensec=yes
7344 1.65 christos else
7345 1.65 christos echo "$as_me: failed program was:" >&5
7346 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7347 1.65 christos
7348 1.65 christos ac_cv_member_struct_stat_st_mtimensec=no
7349 1.65 christos fi
7350 1.65 christos
7351 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 1.65 christos fi
7353 1.65 christos
7354 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 1.65 christos fi
7356 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
7357 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6; }
7358 1.65 christos if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
7359 1.65 christos
7360 1.65 christos cat >>confdefs.h <<_ACEOF
7361 1.65 christos #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7362 1.65 christos _ACEOF
7363 1.65 christos
7364 1.65 christos
7365 1.65 christos fi
7366 1.65 christos
7367 1.65 christos { echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
7368 1.65 christos echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6; }
7369 1.65 christos if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
7370 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7371 1.65 christos else
7372 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7373 1.65 christos /* confdefs.h. */
7374 1.65 christos _ACEOF
7375 1.65 christos cat confdefs.h >>conftest.$ac_ext
7376 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7377 1.65 christos /* end confdefs.h. */
7378 1.65 christos #include <sys/statvfs.h>
7379 1.65 christos
7380 1.65 christos int
7381 1.65 christos main ()
7382 1.65 christos {
7383 1.65 christos static struct statvfs ac_aggr;
7384 1.65 christos if (ac_aggr.f_iosize)
7385 1.65 christos return 0;
7386 1.65 christos ;
7387 1.65 christos return 0;
7388 1.65 christos }
7389 1.65 christos _ACEOF
7390 1.65 christos rm -f conftest.$ac_objext
7391 1.65 christos if { (ac_try="$ac_compile"
7392 1.65 christos case "(($ac_try" in
7393 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 1.65 christos *) ac_try_echo=$ac_try;;
7395 1.65 christos esac
7396 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 1.65 christos (eval "$ac_compile") 2>conftest.er1
7398 1.65 christos ac_status=$?
7399 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7400 1.65 christos rm -f conftest.er1
7401 1.65 christos cat conftest.err >&5
7402 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 1.65 christos (exit $ac_status); } && {
7404 1.65 christos test -z "$ac_c_werror_flag" ||
7405 1.65 christos test ! -s conftest.err
7406 1.65 christos } && test -s conftest.$ac_objext; then
7407 1.65 christos ac_cv_member_struct_statvfs_f_iosize=yes
7408 1.65 christos else
7409 1.65 christos echo "$as_me: failed program was:" >&5
7410 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7411 1.65 christos
7412 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7413 1.65 christos /* confdefs.h. */
7414 1.65 christos _ACEOF
7415 1.65 christos cat confdefs.h >>conftest.$ac_ext
7416 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7417 1.65 christos /* end confdefs.h. */
7418 1.65 christos #include <sys/statvfs.h>
7419 1.65 christos
7420 1.65 christos int
7421 1.65 christos main ()
7422 1.65 christos {
7423 1.65 christos static struct statvfs ac_aggr;
7424 1.65 christos if (sizeof ac_aggr.f_iosize)
7425 1.65 christos return 0;
7426 1.65 christos ;
7427 1.65 christos return 0;
7428 1.65 christos }
7429 1.65 christos _ACEOF
7430 1.65 christos rm -f conftest.$ac_objext
7431 1.65 christos if { (ac_try="$ac_compile"
7432 1.65 christos case "(($ac_try" in
7433 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 1.65 christos *) ac_try_echo=$ac_try;;
7435 1.65 christos esac
7436 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 1.65 christos (eval "$ac_compile") 2>conftest.er1
7438 1.65 christos ac_status=$?
7439 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7440 1.65 christos rm -f conftest.er1
7441 1.65 christos cat conftest.err >&5
7442 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 1.65 christos (exit $ac_status); } && {
7444 1.65 christos test -z "$ac_c_werror_flag" ||
7445 1.65 christos test ! -s conftest.err
7446 1.65 christos } && test -s conftest.$ac_objext; then
7447 1.65 christos ac_cv_member_struct_statvfs_f_iosize=yes
7448 1.65 christos else
7449 1.65 christos echo "$as_me: failed program was:" >&5
7450 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7451 1.65 christos
7452 1.65 christos ac_cv_member_struct_statvfs_f_iosize=no
7453 1.65 christos fi
7454 1.65 christos
7455 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 1.65 christos fi
7457 1.65 christos
7458 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 1.65 christos fi
7460 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
7461 1.65 christos echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6; }
7462 1.65 christos if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
7463 1.65 christos
7464 1.65 christos cat >>confdefs.h <<_ACEOF
7465 1.65 christos #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
7466 1.65 christos _ACEOF
7467 1.65 christos
7468 1.65 christos
7469 1.65 christos fi
7470 1.65 christos
7471 1.65 christos
7472 1.65 christos # Global variable decls.
7473 1.65 christos { echo "$as_me:$LINENO: checking whether optind is declared" >&5
7474 1.65 christos echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
7475 1.65 christos if test "${ac_cv_have_decl_optind+set}" = set; then
7476 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7477 1.65 christos else
7478 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7479 1.65 christos /* confdefs.h. */
7480 1.65 christos _ACEOF
7481 1.65 christos cat confdefs.h >>conftest.$ac_ext
7482 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7483 1.65 christos /* end confdefs.h. */
7484 1.65 christos
7485 1.65 christos #include <stdio.h>
7486 1.65 christos #include <stdlib.h>
7487 1.65 christos #include <unistd.h>
7488 1.65 christos
7489 1.65 christos
7490 1.65 christos int
7491 1.65 christos main ()
7492 1.65 christos {
7493 1.65 christos #ifndef optind
7494 1.65 christos (void) optind;
7495 1.65 christos #endif
7496 1.65 christos
7497 1.65 christos ;
7498 1.65 christos return 0;
7499 1.65 christos }
7500 1.65 christos _ACEOF
7501 1.65 christos rm -f conftest.$ac_objext
7502 1.65 christos if { (ac_try="$ac_compile"
7503 1.65 christos case "(($ac_try" in
7504 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 1.65 christos *) ac_try_echo=$ac_try;;
7506 1.65 christos esac
7507 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 1.65 christos (eval "$ac_compile") 2>conftest.er1
7509 1.65 christos ac_status=$?
7510 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7511 1.65 christos rm -f conftest.er1
7512 1.65 christos cat conftest.err >&5
7513 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 1.65 christos (exit $ac_status); } && {
7515 1.65 christos test -z "$ac_c_werror_flag" ||
7516 1.65 christos test ! -s conftest.err
7517 1.65 christos } && test -s conftest.$ac_objext; then
7518 1.65 christos ac_cv_have_decl_optind=yes
7519 1.65 christos else
7520 1.65 christos echo "$as_me: failed program was:" >&5
7521 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7522 1.65 christos
7523 1.65 christos ac_cv_have_decl_optind=no
7524 1.65 christos fi
7525 1.65 christos
7526 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 1.65 christos fi
7528 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
7529 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
7530 1.65 christos if test $ac_cv_have_decl_optind = yes; then
7531 1.65 christos
7532 1.65 christos cat >>confdefs.h <<_ACEOF
7533 1.65 christos #define HAVE_DECL_OPTIND 1
7534 1.65 christos _ACEOF
7535 1.65 christos
7536 1.65 christos
7537 1.65 christos else
7538 1.65 christos cat >>confdefs.h <<_ACEOF
7539 1.65 christos #define HAVE_DECL_OPTIND 0
7540 1.65 christos _ACEOF
7541 1.65 christos
7542 1.65 christos
7543 1.65 christos fi
7544 1.65 christos { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7545 1.65 christos echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
7546 1.65 christos if test "${ac_cv_have_decl_optreset+set}" = set; then
7547 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7548 1.65 christos else
7549 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7550 1.65 christos /* confdefs.h. */
7551 1.65 christos _ACEOF
7552 1.65 christos cat confdefs.h >>conftest.$ac_ext
7553 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7554 1.65 christos /* end confdefs.h. */
7555 1.65 christos
7556 1.65 christos #include <stdio.h>
7557 1.65 christos #include <stdlib.h>
7558 1.65 christos #include <unistd.h>
7559 1.65 christos
7560 1.65 christos
7561 1.65 christos int
7562 1.65 christos main ()
7563 1.65 christos {
7564 1.65 christos #ifndef optreset
7565 1.65 christos (void) optreset;
7566 1.65 christos #endif
7567 1.65 christos
7568 1.65 christos ;
7569 1.65 christos return 0;
7570 1.65 christos }
7571 1.65 christos _ACEOF
7572 1.65 christos rm -f conftest.$ac_objext
7573 1.65 christos if { (ac_try="$ac_compile"
7574 1.65 christos case "(($ac_try" in
7575 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 1.65 christos *) ac_try_echo=$ac_try;;
7577 1.65 christos esac
7578 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 1.65 christos (eval "$ac_compile") 2>conftest.er1
7580 1.65 christos ac_status=$?
7581 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7582 1.65 christos rm -f conftest.er1
7583 1.65 christos cat conftest.err >&5
7584 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 1.65 christos (exit $ac_status); } && {
7586 1.65 christos test -z "$ac_c_werror_flag" ||
7587 1.65 christos test ! -s conftest.err
7588 1.65 christos } && test -s conftest.$ac_objext; then
7589 1.65 christos ac_cv_have_decl_optreset=yes
7590 1.65 christos else
7591 1.65 christos echo "$as_me: failed program was:" >&5
7592 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7593 1.65 christos
7594 1.65 christos ac_cv_have_decl_optreset=no
7595 1.65 christos fi
7596 1.65 christos
7597 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 1.65 christos fi
7599 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7600 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
7601 1.65 christos if test $ac_cv_have_decl_optreset = yes; then
7602 1.65 christos
7603 1.65 christos cat >>confdefs.h <<_ACEOF
7604 1.65 christos #define HAVE_DECL_OPTRESET 1
7605 1.65 christos _ACEOF
7606 1.65 christos
7607 1.65 christos
7608 1.65 christos else
7609 1.65 christos cat >>confdefs.h <<_ACEOF
7610 1.65 christos #define HAVE_DECL_OPTRESET 0
7611 1.65 christos _ACEOF
7612 1.65 christos
7613 1.65 christos
7614 1.65 christos fi
7615 1.65 christos
7616 1.65 christos
7617 1.65 christos { echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7618 1.65 christos echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6; }
7619 1.65 christos if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7620 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7621 1.65 christos else
7622 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7623 1.65 christos /* confdefs.h. */
7624 1.65 christos _ACEOF
7625 1.65 christos cat confdefs.h >>conftest.$ac_ext
7626 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7627 1.65 christos /* end confdefs.h. */
7628 1.65 christos #include <signal.h>
7629 1.65 christos
7630 1.65 christos int
7631 1.65 christos main ()
7632 1.65 christos {
7633 1.65 christos #ifndef sys_signame
7634 1.65 christos (void) sys_signame;
7635 1.65 christos #endif
7636 1.65 christos
7637 1.65 christos ;
7638 1.65 christos return 0;
7639 1.65 christos }
7640 1.65 christos _ACEOF
7641 1.65 christos rm -f conftest.$ac_objext
7642 1.65 christos if { (ac_try="$ac_compile"
7643 1.65 christos case "(($ac_try" in
7644 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 1.65 christos *) ac_try_echo=$ac_try;;
7646 1.65 christos esac
7647 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 1.65 christos (eval "$ac_compile") 2>conftest.er1
7649 1.65 christos ac_status=$?
7650 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7651 1.65 christos rm -f conftest.er1
7652 1.65 christos cat conftest.err >&5
7653 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 1.65 christos (exit $ac_status); } && {
7655 1.65 christos test -z "$ac_c_werror_flag" ||
7656 1.65 christos test ! -s conftest.err
7657 1.65 christos } && test -s conftest.$ac_objext; then
7658 1.65 christos ac_cv_have_decl_sys_signame=yes
7659 1.65 christos else
7660 1.65 christos echo "$as_me: failed program was:" >&5
7661 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7662 1.65 christos
7663 1.65 christos ac_cv_have_decl_sys_signame=no
7664 1.65 christos fi
7665 1.65 christos
7666 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 1.65 christos fi
7668 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7669 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6; }
7670 1.65 christos if test $ac_cv_have_decl_sys_signame = yes; then
7671 1.65 christos
7672 1.65 christos cat >>confdefs.h <<_ACEOF
7673 1.65 christos #define HAVE_DECL_SYS_SIGNAME 1
7674 1.65 christos _ACEOF
7675 1.65 christos
7676 1.65 christos
7677 1.65 christos else
7678 1.65 christos cat >>confdefs.h <<_ACEOF
7679 1.65 christos #define HAVE_DECL_SYS_SIGNAME 0
7680 1.65 christos _ACEOF
7681 1.65 christos
7682 1.65 christos
7683 1.65 christos fi
7684 1.65 christos
7685 1.65 christos
7686 1.65 christos
7687 1.65 christos # Library functions (where a .h check isn't enough).
7688 1.65 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7689 1.65 christos # for constant arguments. Useless!
7690 1.65 christos { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7691 1.65 christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7692 1.65 christos if test "${ac_cv_working_alloca_h+set}" = set; then
7693 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7694 1.65 christos else
7695 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7696 1.65 christos /* confdefs.h. */
7697 1.65 christos _ACEOF
7698 1.65 christos cat confdefs.h >>conftest.$ac_ext
7699 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7700 1.65 christos /* end confdefs.h. */
7701 1.65 christos #include <alloca.h>
7702 1.65 christos int
7703 1.65 christos main ()
7704 1.65 christos {
7705 1.65 christos char *p = (char *) alloca (2 * sizeof (int));
7706 1.65 christos if (p) return 0;
7707 1.65 christos ;
7708 1.65 christos return 0;
7709 1.65 christos }
7710 1.65 christos _ACEOF
7711 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
7712 1.65 christos if { (ac_try="$ac_link"
7713 1.65 christos case "(($ac_try" in
7714 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 1.65 christos *) ac_try_echo=$ac_try;;
7716 1.65 christos esac
7717 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 1.65 christos (eval "$ac_link") 2>conftest.er1
7719 1.65 christos ac_status=$?
7720 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7721 1.65 christos rm -f conftest.er1
7722 1.65 christos cat conftest.err >&5
7723 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 1.65 christos (exit $ac_status); } && {
7725 1.65 christos test -z "$ac_c_werror_flag" ||
7726 1.65 christos test ! -s conftest.err
7727 1.65 christos } && test -s conftest$ac_exeext &&
7728 1.65 christos $as_test_x conftest$ac_exeext; then
7729 1.65 christos ac_cv_working_alloca_h=yes
7730 1.65 christos else
7731 1.65 christos echo "$as_me: failed program was:" >&5
7732 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7733 1.65 christos
7734 1.65 christos ac_cv_working_alloca_h=no
7735 1.65 christos fi
7736 1.65 christos
7737 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 1.65 christos conftest$ac_exeext conftest.$ac_ext
7739 1.65 christos fi
7740 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7741 1.65 christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7742 1.65 christos if test $ac_cv_working_alloca_h = yes; then
7743 1.65 christos
7744 1.65 christos cat >>confdefs.h <<\_ACEOF
7745 1.65 christos #define HAVE_ALLOCA_H 1
7746 1.65 christos _ACEOF
7747 1.65 christos
7748 1.65 christos fi
7749 1.65 christos
7750 1.65 christos { echo "$as_me:$LINENO: checking for alloca" >&5
7751 1.65 christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7752 1.65 christos if test "${ac_cv_func_alloca_works+set}" = set; then
7753 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7754 1.65 christos else
7755 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7756 1.65 christos /* confdefs.h. */
7757 1.65 christos _ACEOF
7758 1.65 christos cat confdefs.h >>conftest.$ac_ext
7759 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7760 1.65 christos /* end confdefs.h. */
7761 1.65 christos #ifdef __GNUC__
7762 1.65 christos # define alloca __builtin_alloca
7763 1.65 christos #else
7764 1.65 christos # ifdef _MSC_VER
7765 1.65 christos # include <malloc.h>
7766 1.65 christos # define alloca _alloca
7767 1.65 christos # else
7768 1.65 christos # ifdef HAVE_ALLOCA_H
7769 1.65 christos # include <alloca.h>
7770 1.65 christos # else
7771 1.65 christos # ifdef _AIX
7772 1.65 christos #pragma alloca
7773 1.65 christos # else
7774 1.65 christos # ifndef alloca /* predefined by HP cc +Olibcalls */
7775 1.65 christos char *alloca ();
7776 1.65 christos # endif
7777 1.65 christos # endif
7778 1.65 christos # endif
7779 1.65 christos # endif
7780 1.65 christos #endif
7781 1.65 christos
7782 1.65 christos int
7783 1.65 christos main ()
7784 1.65 christos {
7785 1.65 christos char *p = (char *) alloca (1);
7786 1.65 christos if (p) return 0;
7787 1.65 christos ;
7788 1.65 christos return 0;
7789 1.65 christos }
7790 1.65 christos _ACEOF
7791 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
7792 1.65 christos if { (ac_try="$ac_link"
7793 1.65 christos case "(($ac_try" in
7794 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 1.65 christos *) ac_try_echo=$ac_try;;
7796 1.65 christos esac
7797 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 1.65 christos (eval "$ac_link") 2>conftest.er1
7799 1.65 christos ac_status=$?
7800 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7801 1.65 christos rm -f conftest.er1
7802 1.65 christos cat conftest.err >&5
7803 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 1.65 christos (exit $ac_status); } && {
7805 1.65 christos test -z "$ac_c_werror_flag" ||
7806 1.65 christos test ! -s conftest.err
7807 1.65 christos } && test -s conftest$ac_exeext &&
7808 1.65 christos $as_test_x conftest$ac_exeext; then
7809 1.65 christos ac_cv_func_alloca_works=yes
7810 1.65 christos else
7811 1.65 christos echo "$as_me: failed program was:" >&5
7812 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7813 1.65 christos
7814 1.65 christos ac_cv_func_alloca_works=no
7815 1.65 christos fi
7816 1.65 christos
7817 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818 1.65 christos conftest$ac_exeext conftest.$ac_ext
7819 1.65 christos fi
7820 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7821 1.65 christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7822 1.65 christos
7823 1.65 christos if test $ac_cv_func_alloca_works = yes; then
7824 1.65 christos
7825 1.65 christos cat >>confdefs.h <<\_ACEOF
7826 1.65 christos #define HAVE_ALLOCA 1
7827 1.65 christos _ACEOF
7828 1.65 christos
7829 1.65 christos else
7830 1.65 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7831 1.65 christos # that cause trouble. Some versions do not even contain alloca or
7832 1.65 christos # contain a buggy version. If you still want to use their alloca,
7833 1.65 christos # use ar to extract alloca.o from them instead of compiling alloca.c.
7834 1.65 christos
7835 1.65 christos ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7836 1.65 christos
7837 1.65 christos cat >>confdefs.h <<\_ACEOF
7838 1.65 christos #define C_ALLOCA 1
7839 1.65 christos _ACEOF
7840 1.65 christos
7841 1.65 christos
7842 1.65 christos { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7843 1.65 christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7844 1.65 christos if test "${ac_cv_os_cray+set}" = set; then
7845 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7846 1.65 christos else
7847 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7848 1.65 christos /* confdefs.h. */
7849 1.65 christos _ACEOF
7850 1.65 christos cat confdefs.h >>conftest.$ac_ext
7851 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7852 1.65 christos /* end confdefs.h. */
7853 1.65 christos #if defined CRAY && ! defined CRAY2
7854 1.65 christos webecray
7855 1.65 christos #else
7856 1.65 christos wenotbecray
7857 1.65 christos #endif
7858 1.65 christos
7859 1.65 christos _ACEOF
7860 1.65 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7861 1.65 christos $EGREP "webecray" >/dev/null 2>&1; then
7862 1.65 christos ac_cv_os_cray=yes
7863 1.65 christos else
7864 1.65 christos ac_cv_os_cray=no
7865 1.65 christos fi
7866 1.65 christos rm -f conftest*
7867 1.65 christos
7868 1.65 christos fi
7869 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7870 1.65 christos echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7871 1.65 christos if test $ac_cv_os_cray = yes; then
7872 1.65 christos for ac_func in _getb67 GETB67 getb67; do
7873 1.65 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7874 1.65 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
7875 1.65 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7876 1.65 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7877 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7878 1.65 christos else
7879 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7880 1.65 christos /* confdefs.h. */
7881 1.65 christos _ACEOF
7882 1.65 christos cat confdefs.h >>conftest.$ac_ext
7883 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7884 1.65 christos /* end confdefs.h. */
7885 1.65 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7886 1.65 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
7887 1.65 christos #define $ac_func innocuous_$ac_func
7888 1.65 christos
7889 1.65 christos /* System header to define __stub macros and hopefully few prototypes,
7890 1.65 christos which can conflict with char $ac_func (); below.
7891 1.65 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892 1.65 christos <limits.h> exists even on freestanding compilers. */
7893 1.65 christos
7894 1.65 christos #ifdef __STDC__
7895 1.65 christos # include <limits.h>
7896 1.65 christos #else
7897 1.65 christos # include <assert.h>
7898 1.65 christos #endif
7899 1.65 christos
7900 1.65 christos #undef $ac_func
7901 1.65 christos
7902 1.65 christos /* Override any GCC internal prototype to avoid an error.
7903 1.65 christos Use char because int might match the return type of a GCC
7904 1.65 christos builtin and then its argument prototype would still apply. */
7905 1.65 christos #ifdef __cplusplus
7906 1.65 christos extern "C"
7907 1.65 christos #endif
7908 1.65 christos char $ac_func ();
7909 1.65 christos /* The GNU C library defines this for functions which it implements
7910 1.65 christos to always fail with ENOSYS. Some functions are actually named
7911 1.65 christos something starting with __ and the normal name is an alias. */
7912 1.65 christos #if defined __stub_$ac_func || defined __stub___$ac_func
7913 1.65 christos choke me
7914 1.65 christos #endif
7915 1.65 christos
7916 1.65 christos int
7917 1.65 christos main ()
7918 1.65 christos {
7919 1.65 christos return $ac_func ();
7920 1.65 christos ;
7921 1.65 christos return 0;
7922 1.65 christos }
7923 1.65 christos _ACEOF
7924 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
7925 1.65 christos if { (ac_try="$ac_link"
7926 1.65 christos case "(($ac_try" in
7927 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 1.65 christos *) ac_try_echo=$ac_try;;
7929 1.65 christos esac
7930 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 1.65 christos (eval "$ac_link") 2>conftest.er1
7932 1.65 christos ac_status=$?
7933 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
7934 1.65 christos rm -f conftest.er1
7935 1.65 christos cat conftest.err >&5
7936 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 1.65 christos (exit $ac_status); } && {
7938 1.65 christos test -z "$ac_c_werror_flag" ||
7939 1.65 christos test ! -s conftest.err
7940 1.65 christos } && test -s conftest$ac_exeext &&
7941 1.65 christos $as_test_x conftest$ac_exeext; then
7942 1.65 christos eval "$as_ac_var=yes"
7943 1.65 christos else
7944 1.65 christos echo "$as_me: failed program was:" >&5
7945 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
7946 1.65 christos
7947 1.65 christos eval "$as_ac_var=no"
7948 1.65 christos fi
7949 1.65 christos
7950 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7951 1.65 christos conftest$ac_exeext conftest.$ac_ext
7952 1.65 christos fi
7953 1.65 christos ac_res=`eval echo '${'$as_ac_var'}'`
7954 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
7955 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
7956 1.65 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
7957 1.65 christos
7958 1.65 christos cat >>confdefs.h <<_ACEOF
7959 1.65 christos #define CRAY_STACKSEG_END $ac_func
7960 1.65 christos _ACEOF
7961 1.65 christos
7962 1.65 christos break
7963 1.65 christos fi
7964 1.65 christos
7965 1.65 christos done
7966 1.65 christos fi
7967 1.65 christos
7968 1.65 christos { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7969 1.65 christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7970 1.65 christos if test "${ac_cv_c_stack_direction+set}" = set; then
7971 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
7972 1.65 christos else
7973 1.65 christos if test "$cross_compiling" = yes; then
7974 1.65 christos ac_cv_c_stack_direction=0
7975 1.65 christos else
7976 1.65 christos cat >conftest.$ac_ext <<_ACEOF
7977 1.65 christos /* confdefs.h. */
7978 1.65 christos _ACEOF
7979 1.65 christos cat confdefs.h >>conftest.$ac_ext
7980 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
7981 1.65 christos /* end confdefs.h. */
7982 1.65 christos $ac_includes_default
7983 1.65 christos int
7984 1.65 christos find_stack_direction ()
7985 1.65 christos {
7986 1.65 christos static char *addr = 0;
7987 1.65 christos auto char dummy;
7988 1.65 christos if (addr == 0)
7989 1.65 christos {
7990 1.65 christos addr = &dummy;
7991 1.65 christos return find_stack_direction ();
7992 1.65 christos }
7993 1.65 christos else
7994 1.65 christos return (&dummy > addr) ? 1 : -1;
7995 1.65 christos }
7996 1.65 christos
7997 1.65 christos int
7998 1.65 christos main ()
7999 1.65 christos {
8000 1.65 christos return find_stack_direction () < 0;
8001 1.65 christos }
8002 1.65 christos _ACEOF
8003 1.65 christos rm -f conftest$ac_exeext
8004 1.65 christos if { (ac_try="$ac_link"
8005 1.65 christos case "(($ac_try" in
8006 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 1.65 christos *) ac_try_echo=$ac_try;;
8008 1.65 christos esac
8009 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 1.65 christos (eval "$ac_link") 2>&5
8011 1.65 christos ac_status=$?
8012 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 1.65 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8014 1.65 christos { (case "(($ac_try" in
8015 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 1.65 christos *) ac_try_echo=$ac_try;;
8017 1.65 christos esac
8018 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 1.65 christos (eval "$ac_try") 2>&5
8020 1.65 christos ac_status=$?
8021 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 1.65 christos (exit $ac_status); }; }; then
8023 1.65 christos ac_cv_c_stack_direction=1
8024 1.65 christos else
8025 1.65 christos echo "$as_me: program exited with status $ac_status" >&5
8026 1.65 christos echo "$as_me: failed program was:" >&5
8027 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8028 1.65 christos
8029 1.65 christos ( exit $ac_status )
8030 1.65 christos ac_cv_c_stack_direction=-1
8031 1.65 christos fi
8032 1.65 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8033 1.65 christos fi
8034 1.65 christos
8035 1.65 christos
8036 1.65 christos fi
8037 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8038 1.65 christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8039 1.65 christos
8040 1.65 christos cat >>confdefs.h <<_ACEOF
8041 1.65 christos #define STACK_DIRECTION $ac_cv_c_stack_direction
8042 1.65 christos _ACEOF
8043 1.65 christos
8044 1.65 christos
8045 1.65 christos fi
8046 1.65 christos
8047 1.65 christos
8048 1.65 christos
8049 1.65 christos
8050 1.65 christos
8051 1.65 christos
8052 1.65 christos
8053 1.65 christos
8054 1.65 christos
8055 1.65 christos
8056 1.65 christos
8057 1.65 christos
8058 1.65 christos
8059 1.65 christos
8060 1.65 christos
8061 1.65 christos
8062 1.65 christos
8063 1.65 christos
8064 1.65 christos
8065 1.65 christos
8066 1.65 christos
8067 1.65 christos
8068 1.65 christos
8069 1.65 christos
8070 1.65 christos
8071 1.65 christos
8072 1.65 christos
8073 1.65 christos
8074 1.65 christos
8075 1.65 christos
8076 1.65 christos
8077 1.65 christos
8078 1.65 christos
8079 1.65 christos
8080 1.65 christos
8081 1.65 christos
8082 1.65 christos
8083 1.65 christos
8084 1.65 christos
8085 1.65 christos
8086 1.65 christos
8087 1.65 christos
8088 1.65 christos
8089 1.65 christos
8090 1.65 christos
8091 1.65 christos
8092 1.65 christos
8093 1.65 christos
8094 1.65 christos
8095 1.65 christos
8096 1.65 christos
8097 1.65 christos for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
8098 1.65 christos esetfunc fgetln flock fparseln futimes getopt getopt_long \
8099 1.65 christos group_from_gid gid_from_group \
8100 1.65 christos heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
8101 1.65 christos mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb pwrite \
8102 1.65 christos raise_default_signal random setenv \
8103 1.65 christos setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
8104 1.65 christos strndup strsep strsuftoll strtoll \
8105 1.65 christos user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
8106 1.65 christos do
8107 1.65 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8108 1.65 christos { echo "$as_me:$LINENO: checking for $ac_func" >&5
8109 1.65 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8110 1.65 christos if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8111 1.65 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8112 1.65 christos else
8113 1.65 christos cat >conftest.$ac_ext <<_ACEOF
8114 1.65 christos /* confdefs.h. */
8115 1.65 christos _ACEOF
8116 1.65 christos cat confdefs.h >>conftest.$ac_ext
8117 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8118 1.65 christos /* end confdefs.h. */
8119 1.65 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8120 1.65 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121 1.65 christos #define $ac_func innocuous_$ac_func
8122 1.65 christos
8123 1.65 christos /* System header to define __stub macros and hopefully few prototypes,
8124 1.65 christos which can conflict with char $ac_func (); below.
8125 1.65 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 1.65 christos <limits.h> exists even on freestanding compilers. */
8127 1.65 christos
8128 1.65 christos #ifdef __STDC__
8129 1.65 christos # include <limits.h>
8130 1.65 christos #else
8131 1.65 christos # include <assert.h>
8132 1.65 christos #endif
8133 1.65 christos
8134 1.65 christos #undef $ac_func
8135 1.65 christos
8136 1.65 christos /* Override any GCC internal prototype to avoid an error.
8137 1.65 christos Use char because int might match the return type of a GCC
8138 1.65 christos builtin and then its argument prototype would still apply. */
8139 1.65 christos #ifdef __cplusplus
8140 1.65 christos extern "C"
8141 1.65 christos #endif
8142 1.65 christos char $ac_func ();
8143 1.65 christos /* The GNU C library defines this for functions which it implements
8144 1.65 christos to always fail with ENOSYS. Some functions are actually named
8145 1.65 christos something starting with __ and the normal name is an alias. */
8146 1.65 christos #if defined __stub_$ac_func || defined __stub___$ac_func
8147 1.65 christos choke me
8148 1.65 christos #endif
8149 1.61 christos
8150 1.61 christos int
8151 1.61 christos main ()
8152 1.61 christos {
8153 1.65 christos return $ac_func ();
8154 1.61 christos ;
8155 1.61 christos return 0;
8156 1.61 christos }
8157 1.61 christos _ACEOF
8158 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
8159 1.65 christos if { (ac_try="$ac_link"
8160 1.65 christos case "(($ac_try" in
8161 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 1.65 christos *) ac_try_echo=$ac_try;;
8163 1.65 christos esac
8164 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 1.65 christos (eval "$ac_link") 2>conftest.er1
8166 1.59 thorpej ac_status=$?
8167 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8168 1.65 christos rm -f conftest.er1
8169 1.65 christos cat conftest.err >&5
8170 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 1.65 christos (exit $ac_status); } && {
8172 1.65 christos test -z "$ac_c_werror_flag" ||
8173 1.65 christos test ! -s conftest.err
8174 1.65 christos } && test -s conftest$ac_exeext &&
8175 1.65 christos $as_test_x conftest$ac_exeext; then
8176 1.65 christos eval "$as_ac_var=yes"
8177 1.59 thorpej else
8178 1.59 thorpej echo "$as_me: failed program was:" >&5
8179 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8180 1.65 christos
8181 1.65 christos eval "$as_ac_var=no"
8182 1.59 thorpej fi
8183 1.65 christos
8184 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 1.65 christos conftest$ac_exeext conftest.$ac_ext
8186 1.61 christos fi
8187 1.65 christos ac_res=`eval echo '${'$as_ac_var'}'`
8188 1.65 christos { echo "$as_me:$LINENO: result: $ac_res" >&5
8189 1.65 christos echo "${ECHO_T}$ac_res" >&6; }
8190 1.65 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
8191 1.65 christos cat >>confdefs.h <<_ACEOF
8192 1.65 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193 1.65 christos _ACEOF
8194 1.59 thorpej
8195 1.65 christos fi
8196 1.65 christos done
8197 1.61 christos
8198 1.59 thorpej
8199 1.65 christos { echo "$as_me:$LINENO: checking whether user_from_uid is declared" >&5
8200 1.65 christos echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6; }
8201 1.65 christos if test "${ac_cv_have_decl_user_from_uid+set}" = set; then
8202 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
8203 1.48 jmc else
8204 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
8205 1.65 christos /* confdefs.h. */
8206 1.65 christos _ACEOF
8207 1.65 christos cat confdefs.h >>conftest.$ac_ext
8208 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8209 1.65 christos /* end confdefs.h. */
8210 1.65 christos
8211 1.65 christos #include <pwd.h>
8212 1.65 christos
8213 1.8 tv
8214 1.8 tv int
8215 1.8 tv main ()
8216 1.8 tv {
8217 1.65 christos #ifndef user_from_uid
8218 1.65 christos (void) user_from_uid;
8219 1.65 christos #endif
8220 1.65 christos
8221 1.8 tv ;
8222 1.8 tv return 0;
8223 1.8 tv }
8224 1.8 tv _ACEOF
8225 1.8 tv rm -f conftest.$ac_objext
8226 1.65 christos if { (ac_try="$ac_compile"
8227 1.65 christos case "(($ac_try" in
8228 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 1.65 christos *) ac_try_echo=$ac_try;;
8230 1.65 christos esac
8231 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 1.65 christos (eval "$ac_compile") 2>conftest.er1
8233 1.61 christos ac_status=$?
8234 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8235 1.65 christos rm -f conftest.er1
8236 1.65 christos cat conftest.err >&5
8237 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 1.65 christos (exit $ac_status); } && {
8239 1.65 christos test -z "$ac_c_werror_flag" ||
8240 1.65 christos test ! -s conftest.err
8241 1.65 christos } && test -s conftest.$ac_objext; then
8242 1.65 christos ac_cv_have_decl_user_from_uid=yes
8243 1.61 christos else
8244 1.61 christos echo "$as_me: failed program was:" >&5
8245 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8246 1.65 christos
8247 1.65 christos ac_cv_have_decl_user_from_uid=no
8248 1.63 apb fi
8249 1.65 christos
8250 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 1.63 apb fi
8252 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_user_from_uid" >&5
8253 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6; }
8254 1.65 christos if test $ac_cv_have_decl_user_from_uid = yes; then
8255 1.65 christos
8256 1.65 christos cat >>confdefs.h <<_ACEOF
8257 1.65 christos #define HAVE_DECL_USER_FROM_UID 1
8258 1.65 christos _ACEOF
8259 1.63 apb
8260 1.61 christos
8261 1.63 apb else
8262 1.65 christos cat >>confdefs.h <<_ACEOF
8263 1.65 christos #define HAVE_DECL_USER_FROM_UID 0
8264 1.61 christos _ACEOF
8265 1.61 christos
8266 1.61 christos
8267 1.61 christos fi
8268 1.65 christos { echo "$as_me:$LINENO: checking whether uid_from_user is declared" >&5
8269 1.65 christos echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6; }
8270 1.65 christos if test "${ac_cv_have_decl_uid_from_user+set}" = set; then
8271 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8272 1.61 christos else
8273 1.61 christos cat >conftest.$ac_ext <<_ACEOF
8274 1.65 christos /* confdefs.h. */
8275 1.65 christos _ACEOF
8276 1.65 christos cat confdefs.h >>conftest.$ac_ext
8277 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8278 1.65 christos /* end confdefs.h. */
8279 1.65 christos
8280 1.65 christos #include <pwd.h>
8281 1.65 christos
8282 1.61 christos
8283 1.61 christos int
8284 1.61 christos main ()
8285 1.61 christos {
8286 1.65 christos #ifndef uid_from_user
8287 1.65 christos (void) uid_from_user;
8288 1.65 christos #endif
8289 1.65 christos
8290 1.61 christos ;
8291 1.61 christos return 0;
8292 1.61 christos }
8293 1.61 christos _ACEOF
8294 1.61 christos rm -f conftest.$ac_objext
8295 1.65 christos if { (ac_try="$ac_compile"
8296 1.65 christos case "(($ac_try" in
8297 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 1.65 christos *) ac_try_echo=$ac_try;;
8299 1.65 christos esac
8300 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 1.65 christos (eval "$ac_compile") 2>conftest.er1
8302 1.61 christos ac_status=$?
8303 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8304 1.65 christos rm -f conftest.er1
8305 1.65 christos cat conftest.err >&5
8306 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 1.65 christos (exit $ac_status); } && {
8308 1.65 christos test -z "$ac_c_werror_flag" ||
8309 1.65 christos test ! -s conftest.err
8310 1.65 christos } && test -s conftest.$ac_objext; then
8311 1.65 christos ac_cv_have_decl_uid_from_user=yes
8312 1.61 christos else
8313 1.61 christos echo "$as_me: failed program was:" >&5
8314 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8315 1.65 christos
8316 1.65 christos ac_cv_have_decl_uid_from_user=no
8317 1.63 apb fi
8318 1.65 christos
8319 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 1.63 apb fi
8321 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_uid_from_user" >&5
8322 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6; }
8323 1.65 christos if test $ac_cv_have_decl_uid_from_user = yes; then
8324 1.65 christos
8325 1.65 christos cat >>confdefs.h <<_ACEOF
8326 1.65 christos #define HAVE_DECL_UID_FROM_USER 1
8327 1.65 christos _ACEOF
8328 1.63 apb
8329 1.61 christos
8330 1.63 apb else
8331 1.65 christos cat >>confdefs.h <<_ACEOF
8332 1.65 christos #define HAVE_DECL_UID_FROM_USER 0
8333 1.61 christos _ACEOF
8334 1.61 christos
8335 1.61 christos
8336 1.61 christos fi
8337 1.65 christos { echo "$as_me:$LINENO: checking whether pwcache_userdb is declared" >&5
8338 1.65 christos echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6; }
8339 1.65 christos if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then
8340 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
8341 1.61 christos else
8342 1.61 christos cat >conftest.$ac_ext <<_ACEOF
8343 1.65 christos /* confdefs.h. */
8344 1.61 christos _ACEOF
8345 1.65 christos cat confdefs.h >>conftest.$ac_ext
8346 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8347 1.65 christos /* end confdefs.h. */
8348 1.63 apb
8349 1.65 christos #include <pwd.h>
8350 1.61 christos
8351 1.53 dogcow
8352 1.61 christos int
8353 1.61 christos main ()
8354 1.61 christos {
8355 1.65 christos #ifndef pwcache_userdb
8356 1.65 christos (void) pwcache_userdb;
8357 1.65 christos #endif
8358 1.65 christos
8359 1.61 christos ;
8360 1.61 christos return 0;
8361 1.61 christos }
8362 1.61 christos _ACEOF
8363 1.61 christos rm -f conftest.$ac_objext
8364 1.65 christos if { (ac_try="$ac_compile"
8365 1.65 christos case "(($ac_try" in
8366 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 1.65 christos *) ac_try_echo=$ac_try;;
8368 1.65 christos esac
8369 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 1.65 christos (eval "$ac_compile") 2>conftest.er1
8371 1.61 christos ac_status=$?
8372 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8373 1.65 christos rm -f conftest.er1
8374 1.65 christos cat conftest.err >&5
8375 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 1.65 christos (exit $ac_status); } && {
8377 1.65 christos test -z "$ac_c_werror_flag" ||
8378 1.65 christos test ! -s conftest.err
8379 1.65 christos } && test -s conftest.$ac_objext; then
8380 1.65 christos ac_cv_have_decl_pwcache_userdb=yes
8381 1.61 christos else
8382 1.61 christos echo "$as_me: failed program was:" >&5
8383 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8384 1.65 christos
8385 1.65 christos ac_cv_have_decl_pwcache_userdb=no
8386 1.61 christos fi
8387 1.65 christos
8388 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 1.61 christos fi
8390 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_userdb" >&5
8391 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6; }
8392 1.65 christos if test $ac_cv_have_decl_pwcache_userdb = yes; then
8393 1.61 christos
8394 1.65 christos cat >>confdefs.h <<_ACEOF
8395 1.65 christos #define HAVE_DECL_PWCACHE_USERDB 1
8396 1.65 christos _ACEOF
8397 1.61 christos
8398 1.61 christos
8399 1.61 christos else
8400 1.65 christos cat >>confdefs.h <<_ACEOF
8401 1.65 christos #define HAVE_DECL_PWCACHE_USERDB 0
8402 1.61 christos _ACEOF
8403 1.61 christos
8404 1.63 apb
8405 1.63 apb fi
8406 1.63 apb
8407 1.65 christos
8408 1.65 christos { echo "$as_me:$LINENO: checking whether group_from_gid is declared" >&5
8409 1.65 christos echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6; }
8410 1.65 christos if test "${ac_cv_have_decl_group_from_gid+set}" = set; then
8411 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
8412 1.63 apb else
8413 1.63 apb cat >conftest.$ac_ext <<_ACEOF
8414 1.65 christos /* confdefs.h. */
8415 1.65 christos _ACEOF
8416 1.65 christos cat confdefs.h >>conftest.$ac_ext
8417 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8418 1.65 christos /* end confdefs.h. */
8419 1.65 christos
8420 1.65 christos #include <grp.h>
8421 1.63 apb
8422 1.61 christos
8423 1.61 christos int
8424 1.61 christos main ()
8425 1.61 christos {
8426 1.65 christos #ifndef group_from_gid
8427 1.65 christos (void) group_from_gid;
8428 1.63 apb #endif
8429 1.63 apb
8430 1.61 christos ;
8431 1.61 christos return 0;
8432 1.61 christos }
8433 1.61 christos _ACEOF
8434 1.61 christos rm -f conftest.$ac_objext
8435 1.65 christos if { (ac_try="$ac_compile"
8436 1.65 christos case "(($ac_try" in
8437 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 1.65 christos *) ac_try_echo=$ac_try;;
8439 1.65 christos esac
8440 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 1.65 christos (eval "$ac_compile") 2>conftest.er1
8442 1.61 christos ac_status=$?
8443 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8444 1.65 christos rm -f conftest.er1
8445 1.65 christos cat conftest.err >&5
8446 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 1.65 christos (exit $ac_status); } && {
8448 1.65 christos test -z "$ac_c_werror_flag" ||
8449 1.65 christos test ! -s conftest.err
8450 1.65 christos } && test -s conftest.$ac_objext; then
8451 1.65 christos ac_cv_have_decl_group_from_gid=yes
8452 1.61 christos else
8453 1.61 christos echo "$as_me: failed program was:" >&5
8454 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8455 1.65 christos
8456 1.65 christos ac_cv_have_decl_group_from_gid=no
8457 1.61 christos fi
8458 1.65 christos
8459 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 1.61 christos fi
8461 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_group_from_gid" >&5
8462 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6; }
8463 1.65 christos if test $ac_cv_have_decl_group_from_gid = yes; then
8464 1.65 christos
8465 1.65 christos cat >>confdefs.h <<_ACEOF
8466 1.65 christos #define HAVE_DECL_GROUP_FROM_GID 1
8467 1.65 christos _ACEOF
8468 1.61 christos
8469 1.61 christos
8470 1.63 apb else
8471 1.65 christos cat >>confdefs.h <<_ACEOF
8472 1.65 christos #define HAVE_DECL_GROUP_FROM_GID 0
8473 1.65 christos _ACEOF
8474 1.65 christos
8475 1.61 christos
8476 1.61 christos fi
8477 1.65 christos { echo "$as_me:$LINENO: checking whether gid_from_group is declared" >&5
8478 1.65 christos echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6; }
8479 1.65 christos if test "${ac_cv_have_decl_gid_from_group+set}" = set; then
8480 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
8481 1.43 dbj else
8482 1.43 dbj cat >conftest.$ac_ext <<_ACEOF
8483 1.65 christos /* confdefs.h. */
8484 1.65 christos _ACEOF
8485 1.65 christos cat confdefs.h >>conftest.$ac_ext
8486 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8487 1.65 christos /* end confdefs.h. */
8488 1.65 christos
8489 1.65 christos #include <grp.h>
8490 1.63 apb
8491 1.40 atatat
8492 1.40 atatat int
8493 1.40 atatat main ()
8494 1.40 atatat {
8495 1.65 christos #ifndef gid_from_group
8496 1.65 christos (void) gid_from_group;
8497 1.63 apb #endif
8498 1.63 apb
8499 1.40 atatat ;
8500 1.40 atatat return 0;
8501 1.40 atatat }
8502 1.40 atatat _ACEOF
8503 1.40 atatat rm -f conftest.$ac_objext
8504 1.65 christos if { (ac_try="$ac_compile"
8505 1.65 christos case "(($ac_try" in
8506 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 1.65 christos *) ac_try_echo=$ac_try;;
8508 1.65 christos esac
8509 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 1.65 christos (eval "$ac_compile") 2>conftest.er1
8511 1.53 dogcow ac_status=$?
8512 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8513 1.65 christos rm -f conftest.er1
8514 1.65 christos cat conftest.err >&5
8515 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 1.65 christos (exit $ac_status); } && {
8517 1.65 christos test -z "$ac_c_werror_flag" ||
8518 1.65 christos test ! -s conftest.err
8519 1.65 christos } && test -s conftest.$ac_objext; then
8520 1.65 christos ac_cv_have_decl_gid_from_group=yes
8521 1.53 dogcow else
8522 1.53 dogcow echo "$as_me: failed program was:" >&5
8523 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8524 1.65 christos
8525 1.65 christos ac_cv_have_decl_gid_from_group=no
8526 1.63 apb fi
8527 1.65 christos
8528 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 1.63 apb fi
8530 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gid_from_group" >&5
8531 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6; }
8532 1.65 christos if test $ac_cv_have_decl_gid_from_group = yes; then
8533 1.65 christos
8534 1.65 christos cat >>confdefs.h <<_ACEOF
8535 1.65 christos #define HAVE_DECL_GID_FROM_GROUP 1
8536 1.65 christos _ACEOF
8537 1.63 apb
8538 1.63 apb
8539 1.63 apb else
8540 1.65 christos cat >>confdefs.h <<_ACEOF
8541 1.65 christos #define HAVE_DECL_GID_FROM_GROUP 0
8542 1.65 christos _ACEOF
8543 1.65 christos
8544 1.63 apb
8545 1.63 apb fi
8546 1.65 christos { echo "$as_me:$LINENO: checking whether pwcache_groupdb is declared" >&5
8547 1.65 christos echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6; }
8548 1.65 christos if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then
8549 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
8550 1.63 apb else
8551 1.63 apb cat >conftest.$ac_ext <<_ACEOF
8552 1.65 christos /* confdefs.h. */
8553 1.65 christos _ACEOF
8554 1.65 christos cat confdefs.h >>conftest.$ac_ext
8555 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8556 1.65 christos /* end confdefs.h. */
8557 1.65 christos
8558 1.65 christos #include <grp.h>
8559 1.65 christos
8560 1.53 dogcow
8561 1.53 dogcow int
8562 1.53 dogcow main ()
8563 1.53 dogcow {
8564 1.65 christos #ifndef pwcache_groupdb
8565 1.65 christos (void) pwcache_groupdb;
8566 1.63 apb #endif
8567 1.63 apb
8568 1.53 dogcow ;
8569 1.53 dogcow return 0;
8570 1.53 dogcow }
8571 1.53 dogcow _ACEOF
8572 1.53 dogcow rm -f conftest.$ac_objext
8573 1.65 christos if { (ac_try="$ac_compile"
8574 1.65 christos case "(($ac_try" in
8575 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 1.65 christos *) ac_try_echo=$ac_try;;
8577 1.65 christos esac
8578 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 1.65 christos (eval "$ac_compile") 2>conftest.er1
8580 1.40 atatat ac_status=$?
8581 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8582 1.65 christos rm -f conftest.er1
8583 1.65 christos cat conftest.err >&5
8584 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 1.65 christos (exit $ac_status); } && {
8586 1.65 christos test -z "$ac_c_werror_flag" ||
8587 1.65 christos test ! -s conftest.err
8588 1.65 christos } && test -s conftest.$ac_objext; then
8589 1.65 christos ac_cv_have_decl_pwcache_groupdb=yes
8590 1.40 atatat else
8591 1.40 atatat echo "$as_me: failed program was:" >&5
8592 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8593 1.65 christos
8594 1.65 christos ac_cv_have_decl_pwcache_groupdb=no
8595 1.61 christos fi
8596 1.65 christos
8597 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 1.40 atatat fi
8599 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_groupdb" >&5
8600 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6; }
8601 1.65 christos if test $ac_cv_have_decl_pwcache_groupdb = yes; then
8602 1.65 christos
8603 1.65 christos cat >>confdefs.h <<_ACEOF
8604 1.65 christos #define HAVE_DECL_PWCACHE_GROUPDB 1
8605 1.65 christos _ACEOF
8606 1.61 christos
8607 1.53 dogcow
8608 1.63 apb else
8609 1.65 christos cat >>confdefs.h <<_ACEOF
8610 1.65 christos #define HAVE_DECL_PWCACHE_GROUPDB 0
8611 1.65 christos _ACEOF
8612 1.65 christos
8613 1.40 atatat
8614 1.40 atatat fi
8615 1.63 apb
8616 1.65 christos
8617 1.65 christos { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8618 1.65 christos echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
8619 1.65 christos if test "${ac_cv_have_decl_strndup+set}" = set; then
8620 1.40 atatat echo $ECHO_N "(cached) $ECHO_C" >&6
8621 1.40 atatat else
8622 1.40 atatat cat >conftest.$ac_ext <<_ACEOF
8623 1.65 christos /* confdefs.h. */
8624 1.65 christos _ACEOF
8625 1.65 christos cat confdefs.h >>conftest.$ac_ext
8626 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8627 1.65 christos /* end confdefs.h. */
8628 1.65 christos #include <string.h>
8629 1.65 christos
8630 1.40 atatat int
8631 1.40 atatat main ()
8632 1.40 atatat {
8633 1.65 christos #ifndef strndup
8634 1.65 christos (void) strndup;
8635 1.65 christos #endif
8636 1.65 christos
8637 1.40 atatat ;
8638 1.40 atatat return 0;
8639 1.40 atatat }
8640 1.40 atatat _ACEOF
8641 1.65 christos rm -f conftest.$ac_objext
8642 1.65 christos if { (ac_try="$ac_compile"
8643 1.65 christos case "(($ac_try" in
8644 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 1.65 christos *) ac_try_echo=$ac_try;;
8646 1.65 christos esac
8647 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 1.65 christos (eval "$ac_compile") 2>conftest.er1
8649 1.53 dogcow ac_status=$?
8650 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8651 1.65 christos rm -f conftest.er1
8652 1.65 christos cat conftest.err >&5
8653 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 1.65 christos (exit $ac_status); } && {
8655 1.65 christos test -z "$ac_c_werror_flag" ||
8656 1.65 christos test ! -s conftest.err
8657 1.65 christos } && test -s conftest.$ac_objext; then
8658 1.65 christos ac_cv_have_decl_strndup=yes
8659 1.53 dogcow else
8660 1.53 dogcow echo "$as_me: failed program was:" >&5
8661 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8662 1.65 christos
8663 1.65 christos ac_cv_have_decl_strndup=no
8664 1.63 apb fi
8665 1.65 christos
8666 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 1.63 apb fi
8668 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8669 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
8670 1.65 christos if test $ac_cv_have_decl_strndup = yes; then
8671 1.65 christos
8672 1.65 christos cat >>confdefs.h <<_ACEOF
8673 1.65 christos #define HAVE_DECL_STRNDUP 1
8674 1.65 christos _ACEOF
8675 1.65 christos
8676 1.65 christos
8677 1.65 christos else
8678 1.65 christos cat >>confdefs.h <<_ACEOF
8679 1.65 christos #define HAVE_DECL_STRNDUP 0
8680 1.65 christos _ACEOF
8681 1.63 apb
8682 1.60 apb
8683 1.63 apb fi
8684 1.63 apb
8685 1.65 christos
8686 1.65 christos { echo "$as_me:$LINENO: checking whether strsuftoll is declared" >&5
8687 1.65 christos echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6; }
8688 1.65 christos if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
8689 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
8690 1.63 apb else
8691 1.63 apb cat >conftest.$ac_ext <<_ACEOF
8692 1.65 christos /* confdefs.h. */
8693 1.65 christos _ACEOF
8694 1.65 christos cat confdefs.h >>conftest.$ac_ext
8695 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8696 1.65 christos /* end confdefs.h. */
8697 1.65 christos #include <stdlib.h>
8698 1.53 dogcow
8699 1.53 dogcow int
8700 1.53 dogcow main ()
8701 1.53 dogcow {
8702 1.65 christos #ifndef strsuftoll
8703 1.65 christos (void) strsuftoll;
8704 1.65 christos #endif
8705 1.65 christos
8706 1.53 dogcow ;
8707 1.53 dogcow return 0;
8708 1.53 dogcow }
8709 1.53 dogcow _ACEOF
8710 1.65 christos rm -f conftest.$ac_objext
8711 1.65 christos if { (ac_try="$ac_compile"
8712 1.65 christos case "(($ac_try" in
8713 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 1.65 christos *) ac_try_echo=$ac_try;;
8715 1.65 christos esac
8716 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 1.65 christos (eval "$ac_compile") 2>conftest.er1
8718 1.40 atatat ac_status=$?
8719 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8720 1.65 christos rm -f conftest.er1
8721 1.65 christos cat conftest.err >&5
8722 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 1.65 christos (exit $ac_status); } && {
8724 1.65 christos test -z "$ac_c_werror_flag" ||
8725 1.65 christos test ! -s conftest.err
8726 1.65 christos } && test -s conftest.$ac_objext; then
8727 1.65 christos ac_cv_have_decl_strsuftoll=yes
8728 1.40 atatat else
8729 1.40 atatat echo "$as_me: failed program was:" >&5
8730 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8731 1.65 christos
8732 1.65 christos ac_cv_have_decl_strsuftoll=no
8733 1.61 christos fi
8734 1.65 christos
8735 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 1.40 atatat fi
8737 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5
8738 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6; }
8739 1.65 christos if test $ac_cv_have_decl_strsuftoll = yes; then
8740 1.63 apb
8741 1.65 christos cat >>confdefs.h <<_ACEOF
8742 1.65 christos #define HAVE_DECL_STRSUFTOLL 1
8743 1.65 christos _ACEOF
8744 1.63 apb
8745 1.63 apb
8746 1.63 apb else
8747 1.65 christos cat >>confdefs.h <<_ACEOF
8748 1.65 christos #define HAVE_DECL_STRSUFTOLL 0
8749 1.65 christos _ACEOF
8750 1.65 christos
8751 1.61 christos
8752 1.65 christos fi
8753 1.53 dogcow
8754 1.40 atatat
8755 1.65 christos { echo "$as_me:$LINENO: checking whether lchflags is declared" >&5
8756 1.65 christos echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6; }
8757 1.65 christos if test "${ac_cv_have_decl_lchflags+set}" = set; then
8758 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
8759 1.7 tv else
8760 1.7 tv cat >conftest.$ac_ext <<_ACEOF
8761 1.65 christos /* confdefs.h. */
8762 1.65 christos _ACEOF
8763 1.65 christos cat confdefs.h >>conftest.$ac_ext
8764 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8765 1.65 christos /* end confdefs.h. */
8766 1.7 tv
8767 1.65 christos #include <sys/stat.h>
8768 1.65 christos #include <unistd.h>
8769 1.60 apb
8770 1.53 dogcow
8771 1.53 dogcow int
8772 1.53 dogcow main ()
8773 1.53 dogcow {
8774 1.65 christos #ifndef lchflags
8775 1.65 christos (void) lchflags;
8776 1.63 apb #endif
8777 1.63 apb
8778 1.53 dogcow ;
8779 1.53 dogcow return 0;
8780 1.53 dogcow }
8781 1.53 dogcow _ACEOF
8782 1.65 christos rm -f conftest.$ac_objext
8783 1.65 christos if { (ac_try="$ac_compile"
8784 1.65 christos case "(($ac_try" in
8785 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 1.65 christos *) ac_try_echo=$ac_try;;
8787 1.65 christos esac
8788 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 1.65 christos (eval "$ac_compile") 2>conftest.er1
8790 1.7 tv ac_status=$?
8791 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8792 1.65 christos rm -f conftest.er1
8793 1.65 christos cat conftest.err >&5
8794 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 1.65 christos (exit $ac_status); } && {
8796 1.65 christos test -z "$ac_c_werror_flag" ||
8797 1.65 christos test ! -s conftest.err
8798 1.65 christos } && test -s conftest.$ac_objext; then
8799 1.65 christos ac_cv_have_decl_lchflags=yes
8800 1.7 tv else
8801 1.7 tv echo "$as_me: failed program was:" >&5
8802 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8803 1.65 christos
8804 1.65 christos ac_cv_have_decl_lchflags=no
8805 1.7 tv fi
8806 1.65 christos
8807 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 1.7 tv fi
8809 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchflags" >&5
8810 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6; }
8811 1.65 christos if test $ac_cv_have_decl_lchflags = yes; then
8812 1.7 tv
8813 1.65 christos cat >>confdefs.h <<_ACEOF
8814 1.65 christos #define HAVE_DECL_LCHFLAGS 1
8815 1.65 christos _ACEOF
8816 1.7 tv
8817 1.4 tv
8818 1.63 apb else
8819 1.65 christos cat >>confdefs.h <<_ACEOF
8820 1.65 christos #define HAVE_DECL_LCHFLAGS 0
8821 1.48 jmc _ACEOF
8822 1.63 apb
8823 1.63 apb
8824 1.63 apb fi
8825 1.65 christos { echo "$as_me:$LINENO: checking whether lchmod is declared" >&5
8826 1.65 christos echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6; }
8827 1.65 christos if test "${ac_cv_have_decl_lchmod+set}" = set; then
8828 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
8829 1.63 apb else
8830 1.63 apb cat >conftest.$ac_ext <<_ACEOF
8831 1.65 christos /* confdefs.h. */
8832 1.65 christos _ACEOF
8833 1.65 christos cat confdefs.h >>conftest.$ac_ext
8834 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8835 1.65 christos /* end confdefs.h. */
8836 1.65 christos
8837 1.65 christos #include <sys/stat.h>
8838 1.65 christos #include <unistd.h>
8839 1.65 christos
8840 1.61 christos
8841 1.61 christos int
8842 1.61 christos main ()
8843 1.61 christos {
8844 1.65 christos #ifndef lchmod
8845 1.65 christos (void) lchmod;
8846 1.63 apb #endif
8847 1.63 apb
8848 1.61 christos ;
8849 1.61 christos return 0;
8850 1.61 christos }
8851 1.61 christos _ACEOF
8852 1.65 christos rm -f conftest.$ac_objext
8853 1.65 christos if { (ac_try="$ac_compile"
8854 1.65 christos case "(($ac_try" in
8855 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 1.65 christos *) ac_try_echo=$ac_try;;
8857 1.65 christos esac
8858 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 1.65 christos (eval "$ac_compile") 2>conftest.er1
8860 1.7 tv ac_status=$?
8861 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8862 1.65 christos rm -f conftest.er1
8863 1.65 christos cat conftest.err >&5
8864 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 1.65 christos (exit $ac_status); } && {
8866 1.65 christos test -z "$ac_c_werror_flag" ||
8867 1.65 christos test ! -s conftest.err
8868 1.65 christos } && test -s conftest.$ac_objext; then
8869 1.65 christos ac_cv_have_decl_lchmod=yes
8870 1.53 dogcow else
8871 1.53 dogcow echo "$as_me: failed program was:" >&5
8872 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8873 1.65 christos
8874 1.65 christos ac_cv_have_decl_lchmod=no
8875 1.53 dogcow fi
8876 1.65 christos
8877 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 1.61 christos fi
8879 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchmod" >&5
8880 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6; }
8881 1.65 christos if test $ac_cv_have_decl_lchmod = yes; then
8882 1.65 christos
8883 1.65 christos cat >>confdefs.h <<_ACEOF
8884 1.65 christos #define HAVE_DECL_LCHMOD 1
8885 1.65 christos _ACEOF
8886 1.65 christos
8887 1.65 christos
8888 1.65 christos else
8889 1.65 christos cat >>confdefs.h <<_ACEOF
8890 1.65 christos #define HAVE_DECL_LCHMOD 0
8891 1.65 christos _ACEOF
8892 1.65 christos
8893 1.53 dogcow
8894 1.53 dogcow fi
8895 1.65 christos { echo "$as_me:$LINENO: checking whether lchown is declared" >&5
8896 1.65 christos echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6; }
8897 1.65 christos if test "${ac_cv_have_decl_lchown+set}" = set; then
8898 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
8899 1.53 dogcow else
8900 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
8901 1.65 christos /* confdefs.h. */
8902 1.65 christos _ACEOF
8903 1.65 christos cat confdefs.h >>conftest.$ac_ext
8904 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8905 1.65 christos /* end confdefs.h. */
8906 1.65 christos
8907 1.65 christos #include <sys/stat.h>
8908 1.65 christos #include <unistd.h>
8909 1.65 christos
8910 1.61 christos
8911 1.53 dogcow int
8912 1.53 dogcow main ()
8913 1.53 dogcow {
8914 1.65 christos #ifndef lchown
8915 1.65 christos (void) lchown;
8916 1.53 dogcow #endif
8917 1.53 dogcow
8918 1.53 dogcow ;
8919 1.53 dogcow return 0;
8920 1.53 dogcow }
8921 1.53 dogcow _ACEOF
8922 1.53 dogcow rm -f conftest.$ac_objext
8923 1.65 christos if { (ac_try="$ac_compile"
8924 1.65 christos case "(($ac_try" in
8925 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 1.65 christos *) ac_try_echo=$ac_try;;
8927 1.65 christos esac
8928 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 1.65 christos (eval "$ac_compile") 2>conftest.er1
8930 1.53 dogcow ac_status=$?
8931 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
8932 1.65 christos rm -f conftest.er1
8933 1.65 christos cat conftest.err >&5
8934 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 1.65 christos (exit $ac_status); } && {
8936 1.65 christos test -z "$ac_c_werror_flag" ||
8937 1.65 christos test ! -s conftest.err
8938 1.65 christos } && test -s conftest.$ac_objext; then
8939 1.65 christos ac_cv_have_decl_lchown=yes
8940 1.7 tv else
8941 1.7 tv echo "$as_me: failed program was:" >&5
8942 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
8943 1.65 christos
8944 1.65 christos ac_cv_have_decl_lchown=no
8945 1.7 tv fi
8946 1.65 christos
8947 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 1.7 tv fi
8949 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5
8950 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6; }
8951 1.65 christos if test $ac_cv_have_decl_lchown = yes; then
8952 1.65 christos
8953 1.65 christos cat >>confdefs.h <<_ACEOF
8954 1.65 christos #define HAVE_DECL_LCHOWN 1
8955 1.65 christos _ACEOF
8956 1.61 christos
8957 1.7 tv
8958 1.7 tv else
8959 1.65 christos cat >>confdefs.h <<_ACEOF
8960 1.65 christos #define HAVE_DECL_LCHOWN 0
8961 1.65 christos _ACEOF
8962 1.65 christos
8963 1.61 christos
8964 1.63 apb fi
8965 1.7 tv
8966 1.65 christos
8967 1.65 christos
8968 1.65 christos { echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
8969 1.65 christos echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6; }
8970 1.63 apb if test "${ac_cv_have_decl_htobe16+set}" = set; then
8971 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
8972 1.7 tv else
8973 1.7 tv cat >conftest.$ac_ext <<_ACEOF
8974 1.65 christos /* confdefs.h. */
8975 1.65 christos _ACEOF
8976 1.65 christos cat confdefs.h >>conftest.$ac_ext
8977 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
8978 1.65 christos /* end confdefs.h. */
8979 1.63 apb #include <sys/types.h>
8980 1.61 christos
8981 1.7 tv int
8982 1.7 tv main ()
8983 1.7 tv {
8984 1.63 apb #ifndef htobe16
8985 1.65 christos (void) htobe16;
8986 1.7 tv #endif
8987 1.7 tv
8988 1.7 tv ;
8989 1.7 tv return 0;
8990 1.7 tv }
8991 1.7 tv _ACEOF
8992 1.7 tv rm -f conftest.$ac_objext
8993 1.65 christos if { (ac_try="$ac_compile"
8994 1.65 christos case "(($ac_try" in
8995 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 1.65 christos *) ac_try_echo=$ac_try;;
8997 1.65 christos esac
8998 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 1.65 christos (eval "$ac_compile") 2>conftest.er1
9000 1.7 tv ac_status=$?
9001 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9002 1.65 christos rm -f conftest.er1
9003 1.65 christos cat conftest.err >&5
9004 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 1.65 christos (exit $ac_status); } && {
9006 1.65 christos test -z "$ac_c_werror_flag" ||
9007 1.65 christos test ! -s conftest.err
9008 1.65 christos } && test -s conftest.$ac_objext; then
9009 1.63 apb ac_cv_have_decl_htobe16=yes
9010 1.7 tv else
9011 1.7 tv echo "$as_me: failed program was:" >&5
9012 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9013 1.65 christos
9014 1.65 christos ac_cv_have_decl_htobe16=no
9015 1.7 tv fi
9016 1.65 christos
9017 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 1.7 tv fi
9019 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
9020 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6; }
9021 1.63 apb if test $ac_cv_have_decl_htobe16 = yes; then
9022 1.61 christos
9023 1.65 christos cat >>confdefs.h <<_ACEOF
9024 1.63 apb #define HAVE_DECL_HTOBE16 1
9025 1.65 christos _ACEOF
9026 1.65 christos
9027 1.7 tv
9028 1.7 tv else
9029 1.65 christos cat >>confdefs.h <<_ACEOF
9030 1.63 apb #define HAVE_DECL_HTOBE16 0
9031 1.65 christos _ACEOF
9032 1.65 christos
9033 1.7 tv
9034 1.7 tv fi
9035 1.65 christos { echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
9036 1.65 christos echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6; }
9037 1.63 apb if test "${ac_cv_have_decl_htobe32+set}" = set; then
9038 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
9039 1.4 tv else
9040 1.4 tv cat >conftest.$ac_ext <<_ACEOF
9041 1.65 christos /* confdefs.h. */
9042 1.65 christos _ACEOF
9043 1.65 christos cat confdefs.h >>conftest.$ac_ext
9044 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9045 1.65 christos /* end confdefs.h. */
9046 1.63 apb #include <sys/types.h>
9047 1.4 tv
9048 1.4 tv int
9049 1.4 tv main ()
9050 1.4 tv {
9051 1.63 apb #ifndef htobe32
9052 1.65 christos (void) htobe32;
9053 1.4 tv #endif
9054 1.4 tv
9055 1.4 tv ;
9056 1.4 tv return 0;
9057 1.4 tv }
9058 1.4 tv _ACEOF
9059 1.4 tv rm -f conftest.$ac_objext
9060 1.65 christos if { (ac_try="$ac_compile"
9061 1.65 christos case "(($ac_try" in
9062 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 1.65 christos *) ac_try_echo=$ac_try;;
9064 1.65 christos esac
9065 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 1.65 christos (eval "$ac_compile") 2>conftest.er1
9067 1.4 tv ac_status=$?
9068 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9069 1.65 christos rm -f conftest.er1
9070 1.65 christos cat conftest.err >&5
9071 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 1.65 christos (exit $ac_status); } && {
9073 1.65 christos test -z "$ac_c_werror_flag" ||
9074 1.65 christos test ! -s conftest.err
9075 1.65 christos } && test -s conftest.$ac_objext; then
9076 1.63 apb ac_cv_have_decl_htobe32=yes
9077 1.4 tv else
9078 1.4 tv echo "$as_me: failed program was:" >&5
9079 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9080 1.65 christos
9081 1.65 christos ac_cv_have_decl_htobe32=no
9082 1.4 tv fi
9083 1.65 christos
9084 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 1.4 tv fi
9086 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
9087 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6; }
9088 1.63 apb if test $ac_cv_have_decl_htobe32 = yes; then
9089 1.61 christos
9090 1.65 christos cat >>confdefs.h <<_ACEOF
9091 1.63 apb #define HAVE_DECL_HTOBE32 1
9092 1.65 christos _ACEOF
9093 1.65 christos
9094 1.4 tv
9095 1.4 tv else
9096 1.65 christos cat >>confdefs.h <<_ACEOF
9097 1.63 apb #define HAVE_DECL_HTOBE32 0
9098 1.65 christos _ACEOF
9099 1.65 christos
9100 1.4 tv
9101 1.4 tv fi
9102 1.65 christos { echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
9103 1.65 christos echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6; }
9104 1.63 apb if test "${ac_cv_have_decl_htobe64+set}" = set; then
9105 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 1.19 bjh21 else
9107 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
9108 1.65 christos /* confdefs.h. */
9109 1.65 christos _ACEOF
9110 1.65 christos cat confdefs.h >>conftest.$ac_ext
9111 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9112 1.65 christos /* end confdefs.h. */
9113 1.63 apb #include <sys/types.h>
9114 1.63 apb
9115 1.19 bjh21 int
9116 1.19 bjh21 main ()
9117 1.19 bjh21 {
9118 1.63 apb #ifndef htobe64
9119 1.65 christos (void) htobe64;
9120 1.63 apb #endif
9121 1.63 apb
9122 1.19 bjh21 ;
9123 1.19 bjh21 return 0;
9124 1.19 bjh21 }
9125 1.19 bjh21 _ACEOF
9126 1.63 apb rm -f conftest.$ac_objext
9127 1.65 christos if { (ac_try="$ac_compile"
9128 1.65 christos case "(($ac_try" in
9129 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 1.65 christos *) ac_try_echo=$ac_try;;
9131 1.65 christos esac
9132 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 1.65 christos (eval "$ac_compile") 2>conftest.er1
9134 1.19 bjh21 ac_status=$?
9135 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9136 1.65 christos rm -f conftest.er1
9137 1.65 christos cat conftest.err >&5
9138 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 1.65 christos (exit $ac_status); } && {
9140 1.65 christos test -z "$ac_c_werror_flag" ||
9141 1.65 christos test ! -s conftest.err
9142 1.65 christos } && test -s conftest.$ac_objext; then
9143 1.63 apb ac_cv_have_decl_htobe64=yes
9144 1.19 bjh21 else
9145 1.19 bjh21 echo "$as_me: failed program was:" >&5
9146 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9147 1.65 christos
9148 1.65 christos ac_cv_have_decl_htobe64=no
9149 1.19 bjh21 fi
9150 1.65 christos
9151 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 1.19 bjh21 fi
9153 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
9154 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6; }
9155 1.63 apb if test $ac_cv_have_decl_htobe64 = yes; then
9156 1.63 apb
9157 1.65 christos cat >>confdefs.h <<_ACEOF
9158 1.63 apb #define HAVE_DECL_HTOBE64 1
9159 1.65 christos _ACEOF
9160 1.65 christos
9161 1.19 bjh21
9162 1.63 apb else
9163 1.65 christos cat >>confdefs.h <<_ACEOF
9164 1.63 apb #define HAVE_DECL_HTOBE64 0
9165 1.65 christos _ACEOF
9166 1.65 christos
9167 1.19 bjh21
9168 1.19 bjh21 fi
9169 1.65 christos { echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
9170 1.65 christos echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6; }
9171 1.63 apb if test "${ac_cv_have_decl_htole16+set}" = set; then
9172 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 1.19 bjh21 else
9174 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
9175 1.65 christos /* confdefs.h. */
9176 1.65 christos _ACEOF
9177 1.65 christos cat confdefs.h >>conftest.$ac_ext
9178 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9179 1.65 christos /* end confdefs.h. */
9180 1.63 apb #include <sys/types.h>
9181 1.63 apb
9182 1.63 apb int
9183 1.63 apb main ()
9184 1.63 apb {
9185 1.63 apb #ifndef htole16
9186 1.65 christos (void) htole16;
9187 1.19 bjh21 #endif
9188 1.19 bjh21
9189 1.19 bjh21 ;
9190 1.19 bjh21 return 0;
9191 1.19 bjh21 }
9192 1.19 bjh21 _ACEOF
9193 1.63 apb rm -f conftest.$ac_objext
9194 1.65 christos if { (ac_try="$ac_compile"
9195 1.65 christos case "(($ac_try" in
9196 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 1.65 christos *) ac_try_echo=$ac_try;;
9198 1.65 christos esac
9199 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 1.65 christos (eval "$ac_compile") 2>conftest.er1
9201 1.19 bjh21 ac_status=$?
9202 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9203 1.65 christos rm -f conftest.er1
9204 1.65 christos cat conftest.err >&5
9205 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 1.65 christos (exit $ac_status); } && {
9207 1.65 christos test -z "$ac_c_werror_flag" ||
9208 1.65 christos test ! -s conftest.err
9209 1.65 christos } && test -s conftest.$ac_objext; then
9210 1.63 apb ac_cv_have_decl_htole16=yes
9211 1.19 bjh21 else
9212 1.19 bjh21 echo "$as_me: failed program was:" >&5
9213 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9214 1.65 christos
9215 1.65 christos ac_cv_have_decl_htole16=no
9216 1.19 bjh21 fi
9217 1.65 christos
9218 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 1.19 bjh21 fi
9220 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
9221 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6; }
9222 1.63 apb if test $ac_cv_have_decl_htole16 = yes; then
9223 1.19 bjh21
9224 1.65 christos cat >>confdefs.h <<_ACEOF
9225 1.63 apb #define HAVE_DECL_HTOLE16 1
9226 1.65 christos _ACEOF
9227 1.65 christos
9228 1.19 bjh21
9229 1.63 apb else
9230 1.65 christos cat >>confdefs.h <<_ACEOF
9231 1.63 apb #define HAVE_DECL_HTOLE16 0
9232 1.65 christos _ACEOF
9233 1.65 christos
9234 1.19 bjh21
9235 1.63 apb fi
9236 1.65 christos { echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
9237 1.65 christos echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6; }
9238 1.63 apb if test "${ac_cv_have_decl_htole32+set}" = set; then
9239 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
9240 1.19 bjh21 else
9241 1.63 apb cat >conftest.$ac_ext <<_ACEOF
9242 1.65 christos /* confdefs.h. */
9243 1.65 christos _ACEOF
9244 1.65 christos cat confdefs.h >>conftest.$ac_ext
9245 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9246 1.65 christos /* end confdefs.h. */
9247 1.63 apb #include <sys/types.h>
9248 1.19 bjh21
9249 1.63 apb int
9250 1.63 apb main ()
9251 1.63 apb {
9252 1.63 apb #ifndef htole32
9253 1.65 christos (void) htole32;
9254 1.63 apb #endif
9255 1.19 bjh21
9256 1.63 apb ;
9257 1.63 apb return 0;
9258 1.63 apb }
9259 1.61 christos _ACEOF
9260 1.63 apb rm -f conftest.$ac_objext
9261 1.65 christos if { (ac_try="$ac_compile"
9262 1.65 christos case "(($ac_try" in
9263 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 1.65 christos *) ac_try_echo=$ac_try;;
9265 1.65 christos esac
9266 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 1.65 christos (eval "$ac_compile") 2>conftest.er1
9268 1.63 apb ac_status=$?
9269 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9270 1.65 christos rm -f conftest.er1
9271 1.65 christos cat conftest.err >&5
9272 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 1.65 christos (exit $ac_status); } && {
9274 1.65 christos test -z "$ac_c_werror_flag" ||
9275 1.65 christos test ! -s conftest.err
9276 1.65 christos } && test -s conftest.$ac_objext; then
9277 1.63 apb ac_cv_have_decl_htole32=yes
9278 1.63 apb else
9279 1.63 apb echo "$as_me: failed program was:" >&5
9280 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9281 1.65 christos
9282 1.65 christos ac_cv_have_decl_htole32=no
9283 1.63 apb fi
9284 1.65 christos
9285 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 1.63 apb fi
9287 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
9288 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6; }
9289 1.63 apb if test $ac_cv_have_decl_htole32 = yes; then
9290 1.39 fredb
9291 1.65 christos cat >>confdefs.h <<_ACEOF
9292 1.63 apb #define HAVE_DECL_HTOLE32 1
9293 1.65 christos _ACEOF
9294 1.65 christos
9295 1.63 apb
9296 1.63 apb else
9297 1.65 christos cat >>confdefs.h <<_ACEOF
9298 1.63 apb #define HAVE_DECL_HTOLE32 0
9299 1.65 christos _ACEOF
9300 1.65 christos
9301 1.61 christos
9302 1.63 apb fi
9303 1.65 christos { echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
9304 1.65 christos echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6; }
9305 1.63 apb if test "${ac_cv_have_decl_htole64+set}" = set; then
9306 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 1.19 bjh21 else
9308 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
9309 1.65 christos /* confdefs.h. */
9310 1.65 christos _ACEOF
9311 1.65 christos cat confdefs.h >>conftest.$ac_ext
9312 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9313 1.65 christos /* end confdefs.h. */
9314 1.63 apb #include <sys/types.h>
9315 1.63 apb
9316 1.63 apb int
9317 1.63 apb main ()
9318 1.63 apb {
9319 1.63 apb #ifndef htole64
9320 1.65 christos (void) htole64;
9321 1.19 bjh21 #endif
9322 1.19 bjh21
9323 1.63 apb ;
9324 1.63 apb return 0;
9325 1.63 apb }
9326 1.19 bjh21 _ACEOF
9327 1.63 apb rm -f conftest.$ac_objext
9328 1.65 christos if { (ac_try="$ac_compile"
9329 1.65 christos case "(($ac_try" in
9330 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 1.65 christos *) ac_try_echo=$ac_try;;
9332 1.65 christos esac
9333 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334 1.65 christos (eval "$ac_compile") 2>conftest.er1
9335 1.63 apb ac_status=$?
9336 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9337 1.65 christos rm -f conftest.er1
9338 1.65 christos cat conftest.err >&5
9339 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 1.65 christos (exit $ac_status); } && {
9341 1.65 christos test -z "$ac_c_werror_flag" ||
9342 1.65 christos test ! -s conftest.err
9343 1.65 christos } && test -s conftest.$ac_objext; then
9344 1.63 apb ac_cv_have_decl_htole64=yes
9345 1.19 bjh21 else
9346 1.63 apb echo "$as_me: failed program was:" >&5
9347 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9348 1.65 christos
9349 1.65 christos ac_cv_have_decl_htole64=no
9350 1.63 apb fi
9351 1.65 christos
9352 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 1.19 bjh21 fi
9354 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
9355 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6; }
9356 1.63 apb if test $ac_cv_have_decl_htole64 = yes; then
9357 1.63 apb
9358 1.65 christos cat >>confdefs.h <<_ACEOF
9359 1.63 apb #define HAVE_DECL_HTOLE64 1
9360 1.65 christos _ACEOF
9361 1.65 christos
9362 1.63 apb
9363 1.63 apb else
9364 1.65 christos cat >>confdefs.h <<_ACEOF
9365 1.63 apb #define HAVE_DECL_HTOLE64 0
9366 1.65 christos _ACEOF
9367 1.65 christos
9368 1.19 bjh21
9369 1.19 bjh21 fi
9370 1.65 christos { echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
9371 1.65 christos echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6; }
9372 1.63 apb if test "${ac_cv_have_decl_be16toh+set}" = set; then
9373 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 1.19 bjh21 else
9375 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
9376 1.65 christos /* confdefs.h. */
9377 1.65 christos _ACEOF
9378 1.65 christos cat confdefs.h >>conftest.$ac_ext
9379 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9380 1.65 christos /* end confdefs.h. */
9381 1.63 apb #include <sys/types.h>
9382 1.61 christos
9383 1.63 apb int
9384 1.63 apb main ()
9385 1.61 christos {
9386 1.63 apb #ifndef be16toh
9387 1.65 christos (void) be16toh;
9388 1.19 bjh21 #endif
9389 1.19 bjh21
9390 1.19 bjh21 ;
9391 1.19 bjh21 return 0;
9392 1.19 bjh21 }
9393 1.19 bjh21 _ACEOF
9394 1.63 apb rm -f conftest.$ac_objext
9395 1.65 christos if { (ac_try="$ac_compile"
9396 1.65 christos case "(($ac_try" in
9397 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 1.65 christos *) ac_try_echo=$ac_try;;
9399 1.65 christos esac
9400 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 1.65 christos (eval "$ac_compile") 2>conftest.er1
9402 1.61 christos ac_status=$?
9403 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9404 1.65 christos rm -f conftest.er1
9405 1.65 christos cat conftest.err >&5
9406 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 1.65 christos (exit $ac_status); } && {
9408 1.65 christos test -z "$ac_c_werror_flag" ||
9409 1.65 christos test ! -s conftest.err
9410 1.65 christos } && test -s conftest.$ac_objext; then
9411 1.63 apb ac_cv_have_decl_be16toh=yes
9412 1.19 bjh21 else
9413 1.19 bjh21 echo "$as_me: failed program was:" >&5
9414 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9415 1.65 christos
9416 1.65 christos ac_cv_have_decl_be16toh=no
9417 1.19 bjh21 fi
9418 1.65 christos
9419 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 1.19 bjh21 fi
9421 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
9422 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6; }
9423 1.63 apb if test $ac_cv_have_decl_be16toh = yes; then
9424 1.19 bjh21
9425 1.65 christos cat >>confdefs.h <<_ACEOF
9426 1.63 apb #define HAVE_DECL_BE16TOH 1
9427 1.65 christos _ACEOF
9428 1.65 christos
9429 1.19 bjh21
9430 1.63 apb else
9431 1.65 christos cat >>confdefs.h <<_ACEOF
9432 1.63 apb #define HAVE_DECL_BE16TOH 0
9433 1.65 christos _ACEOF
9434 1.65 christos
9435 1.19 bjh21
9436 1.19 bjh21 fi
9437 1.65 christos { echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
9438 1.65 christos echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6; }
9439 1.63 apb if test "${ac_cv_have_decl_be32toh+set}" = set; then
9440 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 1.19 bjh21 else
9442 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
9443 1.65 christos /* confdefs.h. */
9444 1.65 christos _ACEOF
9445 1.65 christos cat confdefs.h >>conftest.$ac_ext
9446 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9447 1.65 christos /* end confdefs.h. */
9448 1.63 apb #include <sys/types.h>
9449 1.19 bjh21
9450 1.43 dbj int
9451 1.43 dbj main ()
9452 1.43 dbj {
9453 1.63 apb #ifndef be32toh
9454 1.65 christos (void) be32toh;
9455 1.63 apb #endif
9456 1.63 apb
9457 1.63 apb ;
9458 1.63 apb return 0;
9459 1.43 dbj }
9460 1.43 dbj _ACEOF
9461 1.63 apb rm -f conftest.$ac_objext
9462 1.65 christos if { (ac_try="$ac_compile"
9463 1.65 christos case "(($ac_try" in
9464 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 1.65 christos *) ac_try_echo=$ac_try;;
9466 1.65 christos esac
9467 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 1.65 christos (eval "$ac_compile") 2>conftest.er1
9469 1.43 dbj ac_status=$?
9470 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9471 1.65 christos rm -f conftest.er1
9472 1.65 christos cat conftest.err >&5
9473 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 1.65 christos (exit $ac_status); } && {
9475 1.65 christos test -z "$ac_c_werror_flag" ||
9476 1.65 christos test ! -s conftest.err
9477 1.65 christos } && test -s conftest.$ac_objext; then
9478 1.63 apb ac_cv_have_decl_be32toh=yes
9479 1.43 dbj else
9480 1.63 apb echo "$as_me: failed program was:" >&5
9481 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9482 1.65 christos
9483 1.65 christos ac_cv_have_decl_be32toh=no
9484 1.43 dbj fi
9485 1.65 christos
9486 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 1.43 dbj fi
9488 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
9489 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6; }
9490 1.63 apb if test $ac_cv_have_decl_be32toh = yes; then
9491 1.39 fredb
9492 1.65 christos cat >>confdefs.h <<_ACEOF
9493 1.63 apb #define HAVE_DECL_BE32TOH 1
9494 1.65 christos _ACEOF
9495 1.65 christos
9496 1.61 christos
9497 1.63 apb else
9498 1.65 christos cat >>confdefs.h <<_ACEOF
9499 1.63 apb #define HAVE_DECL_BE32TOH 0
9500 1.65 christos _ACEOF
9501 1.65 christos
9502 1.39 fredb
9503 1.43 dbj fi
9504 1.65 christos { echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
9505 1.65 christos echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6; }
9506 1.63 apb if test "${ac_cv_have_decl_be64toh+set}" = set; then
9507 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
9508 1.63 apb else
9509 1.63 apb cat >conftest.$ac_ext <<_ACEOF
9510 1.65 christos /* confdefs.h. */
9511 1.65 christos _ACEOF
9512 1.65 christos cat confdefs.h >>conftest.$ac_ext
9513 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9514 1.65 christos /* end confdefs.h. */
9515 1.63 apb #include <sys/types.h>
9516 1.40 atatat
9517 1.63 apb int
9518 1.63 apb main ()
9519 1.63 apb {
9520 1.63 apb #ifndef be64toh
9521 1.65 christos (void) be64toh;
9522 1.63 apb #endif
9523 1.61 christos
9524 1.63 apb ;
9525 1.63 apb return 0;
9526 1.63 apb }
9527 1.63 apb _ACEOF
9528 1.63 apb rm -f conftest.$ac_objext
9529 1.65 christos if { (ac_try="$ac_compile"
9530 1.65 christos case "(($ac_try" in
9531 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 1.65 christos *) ac_try_echo=$ac_try;;
9533 1.65 christos esac
9534 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 1.65 christos (eval "$ac_compile") 2>conftest.er1
9536 1.63 apb ac_status=$?
9537 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9538 1.65 christos rm -f conftest.er1
9539 1.65 christos cat conftest.err >&5
9540 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 1.65 christos (exit $ac_status); } && {
9542 1.65 christos test -z "$ac_c_werror_flag" ||
9543 1.65 christos test ! -s conftest.err
9544 1.65 christos } && test -s conftest.$ac_objext; then
9545 1.63 apb ac_cv_have_decl_be64toh=yes
9546 1.63 apb else
9547 1.63 apb echo "$as_me: failed program was:" >&5
9548 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9549 1.65 christos
9550 1.65 christos ac_cv_have_decl_be64toh=no
9551 1.63 apb fi
9552 1.65 christos
9553 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 1.63 apb fi
9555 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
9556 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6; }
9557 1.63 apb if test $ac_cv_have_decl_be64toh = yes; then
9558 1.61 christos
9559 1.65 christos cat >>confdefs.h <<_ACEOF
9560 1.63 apb #define HAVE_DECL_BE64TOH 1
9561 1.65 christos _ACEOF
9562 1.65 christos
9563 1.61 christos
9564 1.63 apb else
9565 1.65 christos cat >>confdefs.h <<_ACEOF
9566 1.63 apb #define HAVE_DECL_BE64TOH 0
9567 1.65 christos _ACEOF
9568 1.65 christos
9569 1.61 christos
9570 1.63 apb fi
9571 1.65 christos { echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
9572 1.65 christos echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6; }
9573 1.63 apb if test "${ac_cv_have_decl_le16toh+set}" = set; then
9574 1.63 apb echo $ECHO_N "(cached) $ECHO_C" >&6
9575 1.63 apb else
9576 1.63 apb cat >conftest.$ac_ext <<_ACEOF
9577 1.65 christos /* confdefs.h. */
9578 1.65 christos _ACEOF
9579 1.65 christos cat confdefs.h >>conftest.$ac_ext
9580 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9581 1.65 christos /* end confdefs.h. */
9582 1.63 apb #include <sys/types.h>
9583 1.61 christos
9584 1.63 apb int
9585 1.63 apb main ()
9586 1.63 apb {
9587 1.63 apb #ifndef le16toh
9588 1.65 christos (void) le16toh;
9589 1.63 apb #endif
9590 1.61 christos
9591 1.63 apb ;
9592 1.63 apb return 0;
9593 1.63 apb }
9594 1.63 apb _ACEOF
9595 1.63 apb rm -f conftest.$ac_objext
9596 1.65 christos if { (ac_try="$ac_compile"
9597 1.65 christos case "(($ac_try" in
9598 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 1.65 christos *) ac_try_echo=$ac_try;;
9600 1.65 christos esac
9601 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 1.65 christos (eval "$ac_compile") 2>conftest.er1
9603 1.63 apb ac_status=$?
9604 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9605 1.65 christos rm -f conftest.er1
9606 1.65 christos cat conftest.err >&5
9607 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 1.65 christos (exit $ac_status); } && {
9609 1.65 christos test -z "$ac_c_werror_flag" ||
9610 1.65 christos test ! -s conftest.err
9611 1.65 christos } && test -s conftest.$ac_objext; then
9612 1.63 apb ac_cv_have_decl_le16toh=yes
9613 1.63 apb else
9614 1.63 apb echo "$as_me: failed program was:" >&5
9615 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9616 1.65 christos
9617 1.65 christos ac_cv_have_decl_le16toh=no
9618 1.63 apb fi
9619 1.65 christos
9620 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 1.63 apb fi
9622 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
9623 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6; }
9624 1.63 apb if test $ac_cv_have_decl_le16toh = yes; then
9625 1.61 christos
9626 1.65 christos cat >>confdefs.h <<_ACEOF
9627 1.63 apb #define HAVE_DECL_LE16TOH 1
9628 1.65 christos _ACEOF
9629 1.65 christos
9630 1.61 christos
9631 1.63 apb else
9632 1.65 christos cat >>confdefs.h <<_ACEOF
9633 1.63 apb #define HAVE_DECL_LE16TOH 0
9634 1.65 christos _ACEOF
9635 1.65 christos
9636 1.61 christos
9637 1.63 apb fi
9638 1.65 christos { echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
9639 1.65 christos echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6; }
9640 1.63 apb if test "${ac_cv_have_decl_le32toh+set}" = set; then
9641 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
9642 1.45 jmc else
9643 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
9644 1.65 christos /* confdefs.h. */
9645 1.65 christos _ACEOF
9646 1.65 christos cat confdefs.h >>conftest.$ac_ext
9647 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9648 1.65 christos /* end confdefs.h. */
9649 1.63 apb #include <sys/types.h>
9650 1.61 christos
9651 1.63 apb int
9652 1.63 apb main ()
9653 1.61 christos {
9654 1.63 apb #ifndef le32toh
9655 1.65 christos (void) le32toh;
9656 1.45 jmc #endif
9657 1.45 jmc
9658 1.45 jmc ;
9659 1.45 jmc return 0;
9660 1.45 jmc }
9661 1.45 jmc _ACEOF
9662 1.63 apb rm -f conftest.$ac_objext
9663 1.65 christos if { (ac_try="$ac_compile"
9664 1.65 christos case "(($ac_try" in
9665 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 1.65 christos *) ac_try_echo=$ac_try;;
9667 1.65 christos esac
9668 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 1.65 christos (eval "$ac_compile") 2>conftest.er1
9670 1.45 jmc ac_status=$?
9671 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9672 1.65 christos rm -f conftest.er1
9673 1.65 christos cat conftest.err >&5
9674 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 1.65 christos (exit $ac_status); } && {
9676 1.65 christos test -z "$ac_c_werror_flag" ||
9677 1.65 christos test ! -s conftest.err
9678 1.65 christos } && test -s conftest.$ac_objext; then
9679 1.63 apb ac_cv_have_decl_le32toh=yes
9680 1.45 jmc else
9681 1.45 jmc echo "$as_me: failed program was:" >&5
9682 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9683 1.65 christos
9684 1.65 christos ac_cv_have_decl_le32toh=no
9685 1.45 jmc fi
9686 1.65 christos
9687 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 1.45 jmc fi
9689 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
9690 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6; }
9691 1.63 apb if test $ac_cv_have_decl_le32toh = yes; then
9692 1.45 jmc
9693 1.65 christos cat >>confdefs.h <<_ACEOF
9694 1.63 apb #define HAVE_DECL_LE32TOH 1
9695 1.65 christos _ACEOF
9696 1.65 christos
9697 1.45 jmc
9698 1.63 apb else
9699 1.65 christos cat >>confdefs.h <<_ACEOF
9700 1.63 apb #define HAVE_DECL_LE32TOH 0
9701 1.65 christos _ACEOF
9702 1.65 christos
9703 1.61 christos
9704 1.63 apb fi
9705 1.65 christos { echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
9706 1.65 christos echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6; }
9707 1.63 apb if test "${ac_cv_have_decl_le64toh+set}" = set; then
9708 1.55 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
9709 1.55 wiz else
9710 1.55 wiz cat >conftest.$ac_ext <<_ACEOF
9711 1.65 christos /* confdefs.h. */
9712 1.65 christos _ACEOF
9713 1.65 christos cat confdefs.h >>conftest.$ac_ext
9714 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9715 1.65 christos /* end confdefs.h. */
9716 1.63 apb #include <sys/types.h>
9717 1.55 wiz
9718 1.55 wiz int
9719 1.55 wiz main ()
9720 1.55 wiz {
9721 1.63 apb #ifndef le64toh
9722 1.65 christos (void) le64toh;
9723 1.55 wiz #endif
9724 1.55 wiz
9725 1.55 wiz ;
9726 1.55 wiz return 0;
9727 1.55 wiz }
9728 1.55 wiz _ACEOF
9729 1.55 wiz rm -f conftest.$ac_objext
9730 1.65 christos if { (ac_try="$ac_compile"
9731 1.65 christos case "(($ac_try" in
9732 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 1.65 christos *) ac_try_echo=$ac_try;;
9734 1.65 christos esac
9735 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 1.65 christos (eval "$ac_compile") 2>conftest.er1
9737 1.55 wiz ac_status=$?
9738 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9739 1.65 christos rm -f conftest.er1
9740 1.65 christos cat conftest.err >&5
9741 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 1.65 christos (exit $ac_status); } && {
9743 1.65 christos test -z "$ac_c_werror_flag" ||
9744 1.65 christos test ! -s conftest.err
9745 1.65 christos } && test -s conftest.$ac_objext; then
9746 1.63 apb ac_cv_have_decl_le64toh=yes
9747 1.55 wiz else
9748 1.55 wiz echo "$as_me: failed program was:" >&5
9749 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9750 1.65 christos
9751 1.65 christos ac_cv_have_decl_le64toh=no
9752 1.55 wiz fi
9753 1.65 christos
9754 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 1.55 wiz fi
9756 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
9757 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6; }
9758 1.63 apb if test $ac_cv_have_decl_le64toh = yes; then
9759 1.61 christos
9760 1.65 christos cat >>confdefs.h <<_ACEOF
9761 1.63 apb #define HAVE_DECL_LE64TOH 1
9762 1.65 christos _ACEOF
9763 1.65 christos
9764 1.55 wiz
9765 1.55 wiz else
9766 1.65 christos cat >>confdefs.h <<_ACEOF
9767 1.63 apb #define HAVE_DECL_LE64TOH 0
9768 1.65 christos _ACEOF
9769 1.65 christos
9770 1.55 wiz
9771 1.55 wiz fi
9772 1.55 wiz
9773 1.65 christos
9774 1.65 christos
9775 1.65 christos { echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5
9776 1.65 christos echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6; }
9777 1.63 apb if test "${ac_cv_have_decl_bswap16+set}" = set; then
9778 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
9779 1.45 jmc else
9780 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
9781 1.65 christos /* confdefs.h. */
9782 1.65 christos _ACEOF
9783 1.65 christos cat confdefs.h >>conftest.$ac_ext
9784 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9785 1.65 christos /* end confdefs.h. */
9786 1.63 apb #include <machine/bswap.h>
9787 1.53 dogcow
9788 1.52 dbj int
9789 1.52 dbj main ()
9790 1.52 dbj {
9791 1.63 apb #ifndef bswap16
9792 1.65 christos (void) bswap16;
9793 1.48 jmc #endif
9794 1.45 jmc
9795 1.48 jmc ;
9796 1.48 jmc return 0;
9797 1.48 jmc }
9798 1.48 jmc _ACEOF
9799 1.53 dogcow rm -f conftest.$ac_objext
9800 1.65 christos if { (ac_try="$ac_compile"
9801 1.65 christos case "(($ac_try" in
9802 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 1.65 christos *) ac_try_echo=$ac_try;;
9804 1.65 christos esac
9805 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 1.65 christos (eval "$ac_compile") 2>conftest.er1
9807 1.48 jmc ac_status=$?
9808 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9809 1.65 christos rm -f conftest.er1
9810 1.65 christos cat conftest.err >&5
9811 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 1.65 christos (exit $ac_status); } && {
9813 1.65 christos test -z "$ac_c_werror_flag" ||
9814 1.65 christos test ! -s conftest.err
9815 1.65 christos } && test -s conftest.$ac_objext; then
9816 1.63 apb ac_cv_have_decl_bswap16=yes
9817 1.48 jmc else
9818 1.48 jmc echo "$as_me: failed program was:" >&5
9819 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9820 1.65 christos
9821 1.65 christos ac_cv_have_decl_bswap16=no
9822 1.48 jmc fi
9823 1.65 christos
9824 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 1.48 jmc fi
9826 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5
9827 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6; }
9828 1.63 apb if test $ac_cv_have_decl_bswap16 = yes; then
9829 1.61 christos
9830 1.65 christos cat >>confdefs.h <<_ACEOF
9831 1.63 apb #define HAVE_DECL_BSWAP16 1
9832 1.65 christos _ACEOF
9833 1.65 christos
9834 1.53 dogcow
9835 1.53 dogcow else
9836 1.65 christos cat >>confdefs.h <<_ACEOF
9837 1.63 apb #define HAVE_DECL_BSWAP16 0
9838 1.65 christos _ACEOF
9839 1.65 christos
9840 1.48 jmc
9841 1.48 jmc fi
9842 1.65 christos { echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5
9843 1.65 christos echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6; }
9844 1.63 apb if test "${ac_cv_have_decl_bswap32+set}" = set; then
9845 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
9846 1.48 jmc else
9847 1.48 jmc cat >conftest.$ac_ext <<_ACEOF
9848 1.65 christos /* confdefs.h. */
9849 1.65 christos _ACEOF
9850 1.65 christos cat confdefs.h >>conftest.$ac_ext
9851 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9852 1.65 christos /* end confdefs.h. */
9853 1.63 apb #include <machine/bswap.h>
9854 1.53 dogcow
9855 1.53 dogcow int
9856 1.53 dogcow main ()
9857 1.53 dogcow {
9858 1.63 apb #ifndef bswap32
9859 1.65 christos (void) bswap32;
9860 1.53 dogcow #endif
9861 1.53 dogcow
9862 1.53 dogcow ;
9863 1.53 dogcow return 0;
9864 1.53 dogcow }
9865 1.53 dogcow _ACEOF
9866 1.53 dogcow rm -f conftest.$ac_objext
9867 1.65 christos if { (ac_try="$ac_compile"
9868 1.65 christos case "(($ac_try" in
9869 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 1.65 christos *) ac_try_echo=$ac_try;;
9871 1.65 christos esac
9872 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 1.65 christos (eval "$ac_compile") 2>conftest.er1
9874 1.53 dogcow ac_status=$?
9875 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9876 1.65 christos rm -f conftest.er1
9877 1.65 christos cat conftest.err >&5
9878 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 1.65 christos (exit $ac_status); } && {
9880 1.65 christos test -z "$ac_c_werror_flag" ||
9881 1.65 christos test ! -s conftest.err
9882 1.65 christos } && test -s conftest.$ac_objext; then
9883 1.63 apb ac_cv_have_decl_bswap32=yes
9884 1.53 dogcow else
9885 1.53 dogcow echo "$as_me: failed program was:" >&5
9886 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9887 1.65 christos
9888 1.65 christos ac_cv_have_decl_bswap32=no
9889 1.53 dogcow fi
9890 1.65 christos
9891 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 1.53 dogcow fi
9893 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5
9894 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6; }
9895 1.63 apb if test $ac_cv_have_decl_bswap32 = yes; then
9896 1.61 christos
9897 1.65 christos cat >>confdefs.h <<_ACEOF
9898 1.63 apb #define HAVE_DECL_BSWAP32 1
9899 1.65 christos _ACEOF
9900 1.65 christos
9901 1.53 dogcow
9902 1.53 dogcow else
9903 1.65 christos cat >>confdefs.h <<_ACEOF
9904 1.63 apb #define HAVE_DECL_BSWAP32 0
9905 1.65 christos _ACEOF
9906 1.65 christos
9907 1.53 dogcow
9908 1.53 dogcow fi
9909 1.65 christos { echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5
9910 1.65 christos echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6; }
9911 1.63 apb if test "${ac_cv_have_decl_bswap64+set}" = set; then
9912 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
9913 1.53 dogcow else
9914 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
9915 1.65 christos /* confdefs.h. */
9916 1.65 christos _ACEOF
9917 1.65 christos cat confdefs.h >>conftest.$ac_ext
9918 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9919 1.65 christos /* end confdefs.h. */
9920 1.63 apb #include <machine/bswap.h>
9921 1.53 dogcow
9922 1.53 dogcow int
9923 1.53 dogcow main ()
9924 1.53 dogcow {
9925 1.63 apb #ifndef bswap64
9926 1.65 christos (void) bswap64;
9927 1.53 dogcow #endif
9928 1.53 dogcow
9929 1.53 dogcow ;
9930 1.53 dogcow return 0;
9931 1.53 dogcow }
9932 1.53 dogcow _ACEOF
9933 1.53 dogcow rm -f conftest.$ac_objext
9934 1.65 christos if { (ac_try="$ac_compile"
9935 1.65 christos case "(($ac_try" in
9936 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 1.65 christos *) ac_try_echo=$ac_try;;
9938 1.65 christos esac
9939 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 1.65 christos (eval "$ac_compile") 2>conftest.er1
9941 1.53 dogcow ac_status=$?
9942 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
9943 1.65 christos rm -f conftest.er1
9944 1.65 christos cat conftest.err >&5
9945 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 1.65 christos (exit $ac_status); } && {
9947 1.65 christos test -z "$ac_c_werror_flag" ||
9948 1.65 christos test ! -s conftest.err
9949 1.65 christos } && test -s conftest.$ac_objext; then
9950 1.63 apb ac_cv_have_decl_bswap64=yes
9951 1.53 dogcow else
9952 1.53 dogcow echo "$as_me: failed program was:" >&5
9953 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
9954 1.65 christos
9955 1.65 christos ac_cv_have_decl_bswap64=no
9956 1.53 dogcow fi
9957 1.65 christos
9958 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 1.53 dogcow fi
9960 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5
9961 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6; }
9962 1.63 apb if test $ac_cv_have_decl_bswap64 = yes; then
9963 1.61 christos
9964 1.65 christos cat >>confdefs.h <<_ACEOF
9965 1.63 apb #define HAVE_DECL_BSWAP64 1
9966 1.65 christos _ACEOF
9967 1.65 christos
9968 1.53 dogcow
9969 1.53 dogcow else
9970 1.65 christos cat >>confdefs.h <<_ACEOF
9971 1.63 apb #define HAVE_DECL_BSWAP64 0
9972 1.65 christos _ACEOF
9973 1.65 christos
9974 1.61 christos
9975 1.63 apb fi
9976 1.53 dogcow
9977 1.65 christos
9978 1.65 christos
9979 1.65 christos { echo "$as_me:$LINENO: checking whether be16enc is declared" >&5
9980 1.65 christos echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6; }
9981 1.63 apb if test "${ac_cv_have_decl_be16enc+set}" = set; then
9982 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
9983 1.53 dogcow else
9984 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
9985 1.65 christos /* confdefs.h. */
9986 1.65 christos _ACEOF
9987 1.65 christos cat confdefs.h >>conftest.$ac_ext
9988 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
9989 1.65 christos /* end confdefs.h. */
9990 1.63 apb #include <sys/endian.h>
9991 1.53 dogcow
9992 1.53 dogcow int
9993 1.53 dogcow main ()
9994 1.53 dogcow {
9995 1.63 apb #ifndef be16enc
9996 1.65 christos (void) be16enc;
9997 1.53 dogcow #endif
9998 1.53 dogcow
9999 1.53 dogcow ;
10000 1.53 dogcow return 0;
10001 1.53 dogcow }
10002 1.53 dogcow _ACEOF
10003 1.53 dogcow rm -f conftest.$ac_objext
10004 1.65 christos if { (ac_try="$ac_compile"
10005 1.65 christos case "(($ac_try" in
10006 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 1.65 christos *) ac_try_echo=$ac_try;;
10008 1.65 christos esac
10009 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 1.65 christos (eval "$ac_compile") 2>conftest.er1
10011 1.53 dogcow ac_status=$?
10012 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10013 1.65 christos rm -f conftest.er1
10014 1.65 christos cat conftest.err >&5
10015 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 1.65 christos (exit $ac_status); } && {
10017 1.65 christos test -z "$ac_c_werror_flag" ||
10018 1.65 christos test ! -s conftest.err
10019 1.65 christos } && test -s conftest.$ac_objext; then
10020 1.63 apb ac_cv_have_decl_be16enc=yes
10021 1.53 dogcow else
10022 1.53 dogcow echo "$as_me: failed program was:" >&5
10023 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10024 1.65 christos
10025 1.65 christos ac_cv_have_decl_be16enc=no
10026 1.53 dogcow fi
10027 1.65 christos
10028 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 1.53 dogcow fi
10030 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16enc" >&5
10031 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6; }
10032 1.63 apb if test $ac_cv_have_decl_be16enc = yes; then
10033 1.61 christos
10034 1.65 christos cat >>confdefs.h <<_ACEOF
10035 1.63 apb #define HAVE_DECL_BE16ENC 1
10036 1.65 christos _ACEOF
10037 1.65 christos
10038 1.53 dogcow
10039 1.53 dogcow else
10040 1.65 christos cat >>confdefs.h <<_ACEOF
10041 1.63 apb #define HAVE_DECL_BE16ENC 0
10042 1.65 christos _ACEOF
10043 1.65 christos
10044 1.53 dogcow
10045 1.53 dogcow fi
10046 1.65 christos { echo "$as_me:$LINENO: checking whether le16enc is declared" >&5
10047 1.65 christos echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6; }
10048 1.63 apb if test "${ac_cv_have_decl_le16enc+set}" = set; then
10049 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10050 1.53 dogcow else
10051 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10052 1.65 christos /* confdefs.h. */
10053 1.65 christos _ACEOF
10054 1.65 christos cat confdefs.h >>conftest.$ac_ext
10055 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10056 1.65 christos /* end confdefs.h. */
10057 1.63 apb #include <sys/endian.h>
10058 1.53 dogcow
10059 1.53 dogcow int
10060 1.53 dogcow main ()
10061 1.53 dogcow {
10062 1.63 apb #ifndef le16enc
10063 1.65 christos (void) le16enc;
10064 1.53 dogcow #endif
10065 1.53 dogcow
10066 1.53 dogcow ;
10067 1.53 dogcow return 0;
10068 1.53 dogcow }
10069 1.53 dogcow _ACEOF
10070 1.53 dogcow rm -f conftest.$ac_objext
10071 1.65 christos if { (ac_try="$ac_compile"
10072 1.65 christos case "(($ac_try" in
10073 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 1.65 christos *) ac_try_echo=$ac_try;;
10075 1.65 christos esac
10076 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 1.65 christos (eval "$ac_compile") 2>conftest.er1
10078 1.53 dogcow ac_status=$?
10079 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10080 1.65 christos rm -f conftest.er1
10081 1.65 christos cat conftest.err >&5
10082 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 1.65 christos (exit $ac_status); } && {
10084 1.65 christos test -z "$ac_c_werror_flag" ||
10085 1.65 christos test ! -s conftest.err
10086 1.65 christos } && test -s conftest.$ac_objext; then
10087 1.63 apb ac_cv_have_decl_le16enc=yes
10088 1.53 dogcow else
10089 1.53 dogcow echo "$as_me: failed program was:" >&5
10090 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10091 1.65 christos
10092 1.65 christos ac_cv_have_decl_le16enc=no
10093 1.53 dogcow fi
10094 1.65 christos
10095 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 1.53 dogcow fi
10097 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16enc" >&5
10098 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6; }
10099 1.63 apb if test $ac_cv_have_decl_le16enc = yes; then
10100 1.61 christos
10101 1.65 christos cat >>confdefs.h <<_ACEOF
10102 1.63 apb #define HAVE_DECL_LE16ENC 1
10103 1.65 christos _ACEOF
10104 1.65 christos
10105 1.53 dogcow
10106 1.53 dogcow else
10107 1.65 christos cat >>confdefs.h <<_ACEOF
10108 1.63 apb #define HAVE_DECL_LE16ENC 0
10109 1.65 christos _ACEOF
10110 1.65 christos
10111 1.53 dogcow
10112 1.53 dogcow fi
10113 1.65 christos { echo "$as_me:$LINENO: checking whether be16dec is declared" >&5
10114 1.65 christos echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6; }
10115 1.63 apb if test "${ac_cv_have_decl_be16dec+set}" = set; then
10116 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10117 1.53 dogcow else
10118 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10119 1.65 christos /* confdefs.h. */
10120 1.65 christos _ACEOF
10121 1.65 christos cat confdefs.h >>conftest.$ac_ext
10122 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10123 1.65 christos /* end confdefs.h. */
10124 1.63 apb #include <sys/endian.h>
10125 1.53 dogcow
10126 1.53 dogcow int
10127 1.53 dogcow main ()
10128 1.53 dogcow {
10129 1.63 apb #ifndef be16dec
10130 1.65 christos (void) be16dec;
10131 1.53 dogcow #endif
10132 1.53 dogcow
10133 1.53 dogcow ;
10134 1.53 dogcow return 0;
10135 1.53 dogcow }
10136 1.53 dogcow _ACEOF
10137 1.53 dogcow rm -f conftest.$ac_objext
10138 1.65 christos if { (ac_try="$ac_compile"
10139 1.65 christos case "(($ac_try" in
10140 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 1.65 christos *) ac_try_echo=$ac_try;;
10142 1.65 christos esac
10143 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 1.65 christos (eval "$ac_compile") 2>conftest.er1
10145 1.53 dogcow ac_status=$?
10146 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10147 1.65 christos rm -f conftest.er1
10148 1.65 christos cat conftest.err >&5
10149 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 1.65 christos (exit $ac_status); } && {
10151 1.65 christos test -z "$ac_c_werror_flag" ||
10152 1.65 christos test ! -s conftest.err
10153 1.65 christos } && test -s conftest.$ac_objext; then
10154 1.63 apb ac_cv_have_decl_be16dec=yes
10155 1.53 dogcow else
10156 1.53 dogcow echo "$as_me: failed program was:" >&5
10157 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10158 1.65 christos
10159 1.65 christos ac_cv_have_decl_be16dec=no
10160 1.53 dogcow fi
10161 1.65 christos
10162 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 1.53 dogcow fi
10164 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16dec" >&5
10165 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6; }
10166 1.63 apb if test $ac_cv_have_decl_be16dec = yes; then
10167 1.61 christos
10168 1.65 christos cat >>confdefs.h <<_ACEOF
10169 1.63 apb #define HAVE_DECL_BE16DEC 1
10170 1.65 christos _ACEOF
10171 1.65 christos
10172 1.53 dogcow
10173 1.53 dogcow else
10174 1.65 christos cat >>confdefs.h <<_ACEOF
10175 1.63 apb #define HAVE_DECL_BE16DEC 0
10176 1.65 christos _ACEOF
10177 1.65 christos
10178 1.53 dogcow
10179 1.53 dogcow fi
10180 1.65 christos { echo "$as_me:$LINENO: checking whether le16dec is declared" >&5
10181 1.65 christos echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6; }
10182 1.63 apb if test "${ac_cv_have_decl_le16dec+set}" = set; then
10183 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10184 1.53 dogcow else
10185 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10186 1.65 christos /* confdefs.h. */
10187 1.65 christos _ACEOF
10188 1.65 christos cat confdefs.h >>conftest.$ac_ext
10189 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10190 1.65 christos /* end confdefs.h. */
10191 1.63 apb #include <sys/endian.h>
10192 1.53 dogcow
10193 1.53 dogcow int
10194 1.53 dogcow main ()
10195 1.53 dogcow {
10196 1.63 apb #ifndef le16dec
10197 1.65 christos (void) le16dec;
10198 1.53 dogcow #endif
10199 1.53 dogcow
10200 1.53 dogcow ;
10201 1.53 dogcow return 0;
10202 1.53 dogcow }
10203 1.53 dogcow _ACEOF
10204 1.53 dogcow rm -f conftest.$ac_objext
10205 1.65 christos if { (ac_try="$ac_compile"
10206 1.65 christos case "(($ac_try" in
10207 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 1.65 christos *) ac_try_echo=$ac_try;;
10209 1.65 christos esac
10210 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 1.65 christos (eval "$ac_compile") 2>conftest.er1
10212 1.53 dogcow ac_status=$?
10213 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10214 1.65 christos rm -f conftest.er1
10215 1.65 christos cat conftest.err >&5
10216 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 1.65 christos (exit $ac_status); } && {
10218 1.65 christos test -z "$ac_c_werror_flag" ||
10219 1.65 christos test ! -s conftest.err
10220 1.65 christos } && test -s conftest.$ac_objext; then
10221 1.63 apb ac_cv_have_decl_le16dec=yes
10222 1.53 dogcow else
10223 1.53 dogcow echo "$as_me: failed program was:" >&5
10224 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10225 1.65 christos
10226 1.65 christos ac_cv_have_decl_le16dec=no
10227 1.53 dogcow fi
10228 1.65 christos
10229 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 1.53 dogcow fi
10231 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16dec" >&5
10232 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6; }
10233 1.63 apb if test $ac_cv_have_decl_le16dec = yes; then
10234 1.61 christos
10235 1.65 christos cat >>confdefs.h <<_ACEOF
10236 1.63 apb #define HAVE_DECL_LE16DEC 1
10237 1.65 christos _ACEOF
10238 1.65 christos
10239 1.53 dogcow
10240 1.53 dogcow else
10241 1.65 christos cat >>confdefs.h <<_ACEOF
10242 1.63 apb #define HAVE_DECL_LE16DEC 0
10243 1.65 christos _ACEOF
10244 1.65 christos
10245 1.53 dogcow
10246 1.53 dogcow fi
10247 1.65 christos { echo "$as_me:$LINENO: checking whether be32enc is declared" >&5
10248 1.65 christos echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6; }
10249 1.63 apb if test "${ac_cv_have_decl_be32enc+set}" = set; then
10250 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10251 1.53 dogcow else
10252 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10253 1.65 christos /* confdefs.h. */
10254 1.65 christos _ACEOF
10255 1.65 christos cat confdefs.h >>conftest.$ac_ext
10256 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10257 1.65 christos /* end confdefs.h. */
10258 1.63 apb #include <sys/endian.h>
10259 1.53 dogcow
10260 1.53 dogcow int
10261 1.53 dogcow main ()
10262 1.53 dogcow {
10263 1.63 apb #ifndef be32enc
10264 1.65 christos (void) be32enc;
10265 1.53 dogcow #endif
10266 1.53 dogcow
10267 1.53 dogcow ;
10268 1.53 dogcow return 0;
10269 1.53 dogcow }
10270 1.53 dogcow _ACEOF
10271 1.53 dogcow rm -f conftest.$ac_objext
10272 1.65 christos if { (ac_try="$ac_compile"
10273 1.65 christos case "(($ac_try" in
10274 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 1.65 christos *) ac_try_echo=$ac_try;;
10276 1.65 christos esac
10277 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 1.65 christos (eval "$ac_compile") 2>conftest.er1
10279 1.53 dogcow ac_status=$?
10280 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10281 1.65 christos rm -f conftest.er1
10282 1.65 christos cat conftest.err >&5
10283 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 1.65 christos (exit $ac_status); } && {
10285 1.65 christos test -z "$ac_c_werror_flag" ||
10286 1.65 christos test ! -s conftest.err
10287 1.65 christos } && test -s conftest.$ac_objext; then
10288 1.63 apb ac_cv_have_decl_be32enc=yes
10289 1.53 dogcow else
10290 1.53 dogcow echo "$as_me: failed program was:" >&5
10291 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10292 1.65 christos
10293 1.65 christos ac_cv_have_decl_be32enc=no
10294 1.53 dogcow fi
10295 1.65 christos
10296 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 1.53 dogcow fi
10298 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32enc" >&5
10299 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6; }
10300 1.63 apb if test $ac_cv_have_decl_be32enc = yes; then
10301 1.61 christos
10302 1.65 christos cat >>confdefs.h <<_ACEOF
10303 1.63 apb #define HAVE_DECL_BE32ENC 1
10304 1.65 christos _ACEOF
10305 1.65 christos
10306 1.53 dogcow
10307 1.53 dogcow else
10308 1.65 christos cat >>confdefs.h <<_ACEOF
10309 1.63 apb #define HAVE_DECL_BE32ENC 0
10310 1.65 christos _ACEOF
10311 1.65 christos
10312 1.53 dogcow
10313 1.53 dogcow fi
10314 1.65 christos { echo "$as_me:$LINENO: checking whether le32enc is declared" >&5
10315 1.65 christos echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6; }
10316 1.63 apb if test "${ac_cv_have_decl_le32enc+set}" = set; then
10317 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10318 1.53 dogcow else
10319 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10320 1.65 christos /* confdefs.h. */
10321 1.65 christos _ACEOF
10322 1.65 christos cat confdefs.h >>conftest.$ac_ext
10323 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10324 1.65 christos /* end confdefs.h. */
10325 1.63 apb #include <sys/endian.h>
10326 1.53 dogcow
10327 1.53 dogcow int
10328 1.53 dogcow main ()
10329 1.53 dogcow {
10330 1.63 apb #ifndef le32enc
10331 1.65 christos (void) le32enc;
10332 1.53 dogcow #endif
10333 1.53 dogcow
10334 1.53 dogcow ;
10335 1.53 dogcow return 0;
10336 1.53 dogcow }
10337 1.53 dogcow _ACEOF
10338 1.53 dogcow rm -f conftest.$ac_objext
10339 1.65 christos if { (ac_try="$ac_compile"
10340 1.65 christos case "(($ac_try" in
10341 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 1.65 christos *) ac_try_echo=$ac_try;;
10343 1.65 christos esac
10344 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 1.65 christos (eval "$ac_compile") 2>conftest.er1
10346 1.53 dogcow ac_status=$?
10347 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10348 1.65 christos rm -f conftest.er1
10349 1.65 christos cat conftest.err >&5
10350 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 1.65 christos (exit $ac_status); } && {
10352 1.65 christos test -z "$ac_c_werror_flag" ||
10353 1.65 christos test ! -s conftest.err
10354 1.65 christos } && test -s conftest.$ac_objext; then
10355 1.63 apb ac_cv_have_decl_le32enc=yes
10356 1.53 dogcow else
10357 1.53 dogcow echo "$as_me: failed program was:" >&5
10358 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10359 1.65 christos
10360 1.65 christos ac_cv_have_decl_le32enc=no
10361 1.53 dogcow fi
10362 1.65 christos
10363 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 1.53 dogcow fi
10365 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32enc" >&5
10366 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6; }
10367 1.63 apb if test $ac_cv_have_decl_le32enc = yes; then
10368 1.61 christos
10369 1.65 christos cat >>confdefs.h <<_ACEOF
10370 1.63 apb #define HAVE_DECL_LE32ENC 1
10371 1.65 christos _ACEOF
10372 1.65 christos
10373 1.53 dogcow
10374 1.53 dogcow else
10375 1.65 christos cat >>confdefs.h <<_ACEOF
10376 1.63 apb #define HAVE_DECL_LE32ENC 0
10377 1.65 christos _ACEOF
10378 1.65 christos
10379 1.53 dogcow
10380 1.53 dogcow fi
10381 1.65 christos { echo "$as_me:$LINENO: checking whether be32dec is declared" >&5
10382 1.65 christos echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6; }
10383 1.63 apb if test "${ac_cv_have_decl_be32dec+set}" = set; then
10384 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10385 1.53 dogcow else
10386 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10387 1.65 christos /* confdefs.h. */
10388 1.65 christos _ACEOF
10389 1.65 christos cat confdefs.h >>conftest.$ac_ext
10390 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10391 1.65 christos /* end confdefs.h. */
10392 1.63 apb #include <sys/endian.h>
10393 1.53 dogcow
10394 1.53 dogcow int
10395 1.53 dogcow main ()
10396 1.53 dogcow {
10397 1.63 apb #ifndef be32dec
10398 1.65 christos (void) be32dec;
10399 1.53 dogcow #endif
10400 1.53 dogcow
10401 1.53 dogcow ;
10402 1.53 dogcow return 0;
10403 1.53 dogcow }
10404 1.53 dogcow _ACEOF
10405 1.53 dogcow rm -f conftest.$ac_objext
10406 1.65 christos if { (ac_try="$ac_compile"
10407 1.65 christos case "(($ac_try" in
10408 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 1.65 christos *) ac_try_echo=$ac_try;;
10410 1.65 christos esac
10411 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 1.65 christos (eval "$ac_compile") 2>conftest.er1
10413 1.53 dogcow ac_status=$?
10414 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10415 1.65 christos rm -f conftest.er1
10416 1.65 christos cat conftest.err >&5
10417 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 1.65 christos (exit $ac_status); } && {
10419 1.65 christos test -z "$ac_c_werror_flag" ||
10420 1.65 christos test ! -s conftest.err
10421 1.65 christos } && test -s conftest.$ac_objext; then
10422 1.63 apb ac_cv_have_decl_be32dec=yes
10423 1.53 dogcow else
10424 1.53 dogcow echo "$as_me: failed program was:" >&5
10425 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10426 1.65 christos
10427 1.65 christos ac_cv_have_decl_be32dec=no
10428 1.53 dogcow fi
10429 1.65 christos
10430 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 1.53 dogcow fi
10432 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32dec" >&5
10433 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6; }
10434 1.63 apb if test $ac_cv_have_decl_be32dec = yes; then
10435 1.61 christos
10436 1.65 christos cat >>confdefs.h <<_ACEOF
10437 1.63 apb #define HAVE_DECL_BE32DEC 1
10438 1.65 christos _ACEOF
10439 1.65 christos
10440 1.53 dogcow
10441 1.53 dogcow else
10442 1.65 christos cat >>confdefs.h <<_ACEOF
10443 1.63 apb #define HAVE_DECL_BE32DEC 0
10444 1.65 christos _ACEOF
10445 1.65 christos
10446 1.53 dogcow
10447 1.53 dogcow fi
10448 1.65 christos { echo "$as_me:$LINENO: checking whether le32dec is declared" >&5
10449 1.65 christos echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6; }
10450 1.63 apb if test "${ac_cv_have_decl_le32dec+set}" = set; then
10451 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10452 1.53 dogcow else
10453 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10454 1.65 christos /* confdefs.h. */
10455 1.65 christos _ACEOF
10456 1.65 christos cat confdefs.h >>conftest.$ac_ext
10457 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10458 1.65 christos /* end confdefs.h. */
10459 1.63 apb #include <sys/endian.h>
10460 1.53 dogcow
10461 1.53 dogcow int
10462 1.53 dogcow main ()
10463 1.53 dogcow {
10464 1.63 apb #ifndef le32dec
10465 1.65 christos (void) le32dec;
10466 1.53 dogcow #endif
10467 1.53 dogcow
10468 1.53 dogcow ;
10469 1.53 dogcow return 0;
10470 1.53 dogcow }
10471 1.53 dogcow _ACEOF
10472 1.53 dogcow rm -f conftest.$ac_objext
10473 1.65 christos if { (ac_try="$ac_compile"
10474 1.65 christos case "(($ac_try" in
10475 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 1.65 christos *) ac_try_echo=$ac_try;;
10477 1.65 christos esac
10478 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 1.65 christos (eval "$ac_compile") 2>conftest.er1
10480 1.53 dogcow ac_status=$?
10481 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10482 1.65 christos rm -f conftest.er1
10483 1.65 christos cat conftest.err >&5
10484 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 1.65 christos (exit $ac_status); } && {
10486 1.65 christos test -z "$ac_c_werror_flag" ||
10487 1.65 christos test ! -s conftest.err
10488 1.65 christos } && test -s conftest.$ac_objext; then
10489 1.63 apb ac_cv_have_decl_le32dec=yes
10490 1.53 dogcow else
10491 1.53 dogcow echo "$as_me: failed program was:" >&5
10492 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10493 1.65 christos
10494 1.65 christos ac_cv_have_decl_le32dec=no
10495 1.53 dogcow fi
10496 1.65 christos
10497 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 1.53 dogcow fi
10499 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32dec" >&5
10500 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6; }
10501 1.63 apb if test $ac_cv_have_decl_le32dec = yes; then
10502 1.61 christos
10503 1.65 christos cat >>confdefs.h <<_ACEOF
10504 1.63 apb #define HAVE_DECL_LE32DEC 1
10505 1.65 christos _ACEOF
10506 1.65 christos
10507 1.53 dogcow
10508 1.53 dogcow else
10509 1.65 christos cat >>confdefs.h <<_ACEOF
10510 1.63 apb #define HAVE_DECL_LE32DEC 0
10511 1.65 christos _ACEOF
10512 1.65 christos
10513 1.53 dogcow
10514 1.53 dogcow fi
10515 1.65 christos { echo "$as_me:$LINENO: checking whether be64enc is declared" >&5
10516 1.65 christos echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6; }
10517 1.63 apb if test "${ac_cv_have_decl_be64enc+set}" = set; then
10518 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10519 1.53 dogcow else
10520 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10521 1.65 christos /* confdefs.h. */
10522 1.65 christos _ACEOF
10523 1.65 christos cat confdefs.h >>conftest.$ac_ext
10524 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10525 1.65 christos /* end confdefs.h. */
10526 1.63 apb #include <sys/endian.h>
10527 1.53 dogcow
10528 1.53 dogcow int
10529 1.53 dogcow main ()
10530 1.53 dogcow {
10531 1.63 apb #ifndef be64enc
10532 1.65 christos (void) be64enc;
10533 1.53 dogcow #endif
10534 1.53 dogcow
10535 1.53 dogcow ;
10536 1.53 dogcow return 0;
10537 1.53 dogcow }
10538 1.53 dogcow _ACEOF
10539 1.53 dogcow rm -f conftest.$ac_objext
10540 1.65 christos if { (ac_try="$ac_compile"
10541 1.65 christos case "(($ac_try" in
10542 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 1.65 christos *) ac_try_echo=$ac_try;;
10544 1.65 christos esac
10545 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 1.65 christos (eval "$ac_compile") 2>conftest.er1
10547 1.53 dogcow ac_status=$?
10548 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10549 1.65 christos rm -f conftest.er1
10550 1.65 christos cat conftest.err >&5
10551 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 1.65 christos (exit $ac_status); } && {
10553 1.65 christos test -z "$ac_c_werror_flag" ||
10554 1.65 christos test ! -s conftest.err
10555 1.65 christos } && test -s conftest.$ac_objext; then
10556 1.63 apb ac_cv_have_decl_be64enc=yes
10557 1.53 dogcow else
10558 1.53 dogcow echo "$as_me: failed program was:" >&5
10559 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10560 1.65 christos
10561 1.65 christos ac_cv_have_decl_be64enc=no
10562 1.53 dogcow fi
10563 1.65 christos
10564 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 1.53 dogcow fi
10566 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64enc" >&5
10567 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6; }
10568 1.63 apb if test $ac_cv_have_decl_be64enc = yes; then
10569 1.61 christos
10570 1.65 christos cat >>confdefs.h <<_ACEOF
10571 1.63 apb #define HAVE_DECL_BE64ENC 1
10572 1.65 christos _ACEOF
10573 1.65 christos
10574 1.53 dogcow
10575 1.53 dogcow else
10576 1.65 christos cat >>confdefs.h <<_ACEOF
10577 1.63 apb #define HAVE_DECL_BE64ENC 0
10578 1.65 christos _ACEOF
10579 1.65 christos
10580 1.53 dogcow
10581 1.53 dogcow fi
10582 1.65 christos { echo "$as_me:$LINENO: checking whether le64enc is declared" >&5
10583 1.65 christos echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6; }
10584 1.63 apb if test "${ac_cv_have_decl_le64enc+set}" = set; then
10585 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
10586 1.54 wiz else
10587 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
10588 1.65 christos /* confdefs.h. */
10589 1.65 christos _ACEOF
10590 1.65 christos cat confdefs.h >>conftest.$ac_ext
10591 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10592 1.65 christos /* end confdefs.h. */
10593 1.63 apb #include <sys/endian.h>
10594 1.54 wiz
10595 1.54 wiz int
10596 1.54 wiz main ()
10597 1.54 wiz {
10598 1.63 apb #ifndef le64enc
10599 1.65 christos (void) le64enc;
10600 1.54 wiz #endif
10601 1.54 wiz
10602 1.54 wiz ;
10603 1.54 wiz return 0;
10604 1.54 wiz }
10605 1.54 wiz _ACEOF
10606 1.54 wiz rm -f conftest.$ac_objext
10607 1.65 christos if { (ac_try="$ac_compile"
10608 1.65 christos case "(($ac_try" in
10609 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 1.65 christos *) ac_try_echo=$ac_try;;
10611 1.65 christos esac
10612 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 1.65 christos (eval "$ac_compile") 2>conftest.er1
10614 1.54 wiz ac_status=$?
10615 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10616 1.65 christos rm -f conftest.er1
10617 1.65 christos cat conftest.err >&5
10618 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 1.65 christos (exit $ac_status); } && {
10620 1.65 christos test -z "$ac_c_werror_flag" ||
10621 1.65 christos test ! -s conftest.err
10622 1.65 christos } && test -s conftest.$ac_objext; then
10623 1.63 apb ac_cv_have_decl_le64enc=yes
10624 1.54 wiz else
10625 1.54 wiz echo "$as_me: failed program was:" >&5
10626 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10627 1.65 christos
10628 1.65 christos ac_cv_have_decl_le64enc=no
10629 1.54 wiz fi
10630 1.65 christos
10631 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 1.54 wiz fi
10633 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64enc" >&5
10634 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6; }
10635 1.63 apb if test $ac_cv_have_decl_le64enc = yes; then
10636 1.61 christos
10637 1.65 christos cat >>confdefs.h <<_ACEOF
10638 1.63 apb #define HAVE_DECL_LE64ENC 1
10639 1.65 christos _ACEOF
10640 1.65 christos
10641 1.53 dogcow
10642 1.54 wiz else
10643 1.65 christos cat >>confdefs.h <<_ACEOF
10644 1.63 apb #define HAVE_DECL_LE64ENC 0
10645 1.65 christos _ACEOF
10646 1.65 christos
10647 1.53 dogcow
10648 1.54 wiz fi
10649 1.65 christos { echo "$as_me:$LINENO: checking whether be64dec is declared" >&5
10650 1.65 christos echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6; }
10651 1.63 apb if test "${ac_cv_have_decl_be64dec+set}" = set; then
10652 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
10653 1.53 dogcow else
10654 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
10655 1.65 christos /* confdefs.h. */
10656 1.65 christos _ACEOF
10657 1.65 christos cat confdefs.h >>conftest.$ac_ext
10658 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10659 1.65 christos /* end confdefs.h. */
10660 1.63 apb #include <sys/endian.h>
10661 1.53 dogcow
10662 1.54 wiz int
10663 1.54 wiz main ()
10664 1.53 dogcow {
10665 1.63 apb #ifndef be64dec
10666 1.65 christos (void) be64dec;
10667 1.48 jmc #endif
10668 1.54 wiz
10669 1.54 wiz ;
10670 1.54 wiz return 0;
10671 1.53 dogcow }
10672 1.54 wiz _ACEOF
10673 1.54 wiz rm -f conftest.$ac_objext
10674 1.65 christos if { (ac_try="$ac_compile"
10675 1.65 christos case "(($ac_try" in
10676 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 1.65 christos *) ac_try_echo=$ac_try;;
10678 1.65 christos esac
10679 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 1.65 christos (eval "$ac_compile") 2>conftest.er1
10681 1.54 wiz ac_status=$?
10682 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10683 1.65 christos rm -f conftest.er1
10684 1.65 christos cat conftest.err >&5
10685 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 1.65 christos (exit $ac_status); } && {
10687 1.65 christos test -z "$ac_c_werror_flag" ||
10688 1.65 christos test ! -s conftest.err
10689 1.65 christos } && test -s conftest.$ac_objext; then
10690 1.63 apb ac_cv_have_decl_be64dec=yes
10691 1.54 wiz else
10692 1.54 wiz echo "$as_me: failed program was:" >&5
10693 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10694 1.65 christos
10695 1.65 christos ac_cv_have_decl_be64dec=no
10696 1.54 wiz fi
10697 1.65 christos
10698 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 1.54 wiz fi
10700 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64dec" >&5
10701 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6; }
10702 1.63 apb if test $ac_cv_have_decl_be64dec = yes; then
10703 1.61 christos
10704 1.65 christos cat >>confdefs.h <<_ACEOF
10705 1.63 apb #define HAVE_DECL_BE64DEC 1
10706 1.65 christos _ACEOF
10707 1.65 christos
10708 1.54 wiz
10709 1.54 wiz else
10710 1.65 christos cat >>confdefs.h <<_ACEOF
10711 1.63 apb #define HAVE_DECL_BE64DEC 0
10712 1.65 christos _ACEOF
10713 1.65 christos
10714 1.54 wiz
10715 1.54 wiz fi
10716 1.65 christos { echo "$as_me:$LINENO: checking whether le64dec is declared" >&5
10717 1.65 christos echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6; }
10718 1.63 apb if test "${ac_cv_have_decl_le64dec+set}" = set; then
10719 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
10720 1.54 wiz else
10721 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
10722 1.65 christos /* confdefs.h. */
10723 1.65 christos _ACEOF
10724 1.65 christos cat confdefs.h >>conftest.$ac_ext
10725 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10726 1.65 christos /* end confdefs.h. */
10727 1.63 apb #include <sys/endian.h>
10728 1.54 wiz
10729 1.53 dogcow int
10730 1.53 dogcow main ()
10731 1.53 dogcow {
10732 1.63 apb #ifndef le64dec
10733 1.65 christos (void) le64dec;
10734 1.54 wiz #endif
10735 1.54 wiz
10736 1.45 jmc ;
10737 1.45 jmc return 0;
10738 1.45 jmc }
10739 1.45 jmc _ACEOF
10740 1.54 wiz rm -f conftest.$ac_objext
10741 1.65 christos if { (ac_try="$ac_compile"
10742 1.65 christos case "(($ac_try" in
10743 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 1.65 christos *) ac_try_echo=$ac_try;;
10745 1.65 christos esac
10746 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 1.65 christos (eval "$ac_compile") 2>conftest.er1
10748 1.45 jmc ac_status=$?
10749 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10750 1.65 christos rm -f conftest.er1
10751 1.65 christos cat conftest.err >&5
10752 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 1.65 christos (exit $ac_status); } && {
10754 1.65 christos test -z "$ac_c_werror_flag" ||
10755 1.65 christos test ! -s conftest.err
10756 1.65 christos } && test -s conftest.$ac_objext; then
10757 1.63 apb ac_cv_have_decl_le64dec=yes
10758 1.45 jmc else
10759 1.45 jmc echo "$as_me: failed program was:" >&5
10760 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10761 1.65 christos
10762 1.65 christos ac_cv_have_decl_le64dec=no
10763 1.45 jmc fi
10764 1.65 christos
10765 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 1.45 jmc fi
10767 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64dec" >&5
10768 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6; }
10769 1.63 apb if test $ac_cv_have_decl_le64dec = yes; then
10770 1.61 christos
10771 1.65 christos cat >>confdefs.h <<_ACEOF
10772 1.63 apb #define HAVE_DECL_LE64DEC 1
10773 1.65 christos _ACEOF
10774 1.65 christos
10775 1.54 wiz
10776 1.54 wiz else
10777 1.65 christos cat >>confdefs.h <<_ACEOF
10778 1.63 apb #define HAVE_DECL_LE64DEC 0
10779 1.65 christos _ACEOF
10780 1.65 christos
10781 1.54 wiz
10782 1.45 jmc fi
10783 1.45 jmc
10784 1.65 christos
10785 1.65 christos
10786 1.65 christos { echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5
10787 1.65 christos echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6; }
10788 1.54 wiz if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
10789 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
10790 1.1 tv else
10791 1.1 tv cat >conftest.$ac_ext <<_ACEOF
10792 1.65 christos /* confdefs.h. */
10793 1.65 christos _ACEOF
10794 1.65 christos cat confdefs.h >>conftest.$ac_ext
10795 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10796 1.65 christos /* end confdefs.h. */
10797 1.54 wiz #include <sys/statvfs.h>
10798 1.53 dogcow
10799 1.54 wiz int
10800 1.54 wiz main ()
10801 1.53 dogcow {
10802 1.54 wiz #ifndef fstatvfs
10803 1.65 christos (void) fstatvfs;
10804 1.1 tv #endif
10805 1.1 tv
10806 1.1 tv ;
10807 1.1 tv return 0;
10808 1.1 tv }
10809 1.1 tv _ACEOF
10810 1.54 wiz rm -f conftest.$ac_objext
10811 1.65 christos if { (ac_try="$ac_compile"
10812 1.65 christos case "(($ac_try" in
10813 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 1.65 christos *) ac_try_echo=$ac_try;;
10815 1.65 christos esac
10816 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 1.65 christos (eval "$ac_compile") 2>conftest.er1
10818 1.1 tv ac_status=$?
10819 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10820 1.65 christos rm -f conftest.er1
10821 1.65 christos cat conftest.err >&5
10822 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 1.65 christos (exit $ac_status); } && {
10824 1.65 christos test -z "$ac_c_werror_flag" ||
10825 1.65 christos test ! -s conftest.err
10826 1.65 christos } && test -s conftest.$ac_objext; then
10827 1.54 wiz ac_cv_have_decl_fstatvfs=yes
10828 1.1 tv else
10829 1.1 tv echo "$as_me: failed program was:" >&5
10830 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10831 1.65 christos
10832 1.65 christos ac_cv_have_decl_fstatvfs=no
10833 1.1 tv fi
10834 1.65 christos
10835 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 1.1 tv fi
10837 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5
10838 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6; }
10839 1.54 wiz if test $ac_cv_have_decl_fstatvfs = yes; then
10840 1.54 wiz
10841 1.65 christos cat >>confdefs.h <<_ACEOF
10842 1.54 wiz #define HAVE_DECL_FSTATVFS 1
10843 1.65 christos _ACEOF
10844 1.65 christos
10845 1.54 wiz
10846 1.54 wiz else
10847 1.65 christos cat >>confdefs.h <<_ACEOF
10848 1.54 wiz #define HAVE_DECL_FSTATVFS 0
10849 1.65 christos _ACEOF
10850 1.65 christos
10851 1.54 wiz
10852 1.1 tv fi
10853 1.54 wiz
10854 1.65 christos
10855 1.65 christos
10856 1.65 christos { echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
10857 1.65 christos echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6; }
10858 1.8 tv if test "${ac_cv_have_decl_setgroupent+set}" = set; then
10859 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
10860 1.8 tv else
10861 1.8 tv cat >conftest.$ac_ext <<_ACEOF
10862 1.65 christos /* confdefs.h. */
10863 1.65 christos _ACEOF
10864 1.65 christos cat confdefs.h >>conftest.$ac_ext
10865 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10866 1.65 christos /* end confdefs.h. */
10867 1.8 tv
10868 1.33 thorpej #include <sys/types.h>
10869 1.8 tv #include <grp.h>
10870 1.8 tv #include <pwd.h>
10871 1.8 tv
10872 1.65 christos
10873 1.8 tv int
10874 1.8 tv main ()
10875 1.8 tv {
10876 1.8 tv #ifndef setgroupent
10877 1.65 christos (void) setgroupent;
10878 1.8 tv #endif
10879 1.8 tv
10880 1.8 tv ;
10881 1.8 tv return 0;
10882 1.8 tv }
10883 1.8 tv _ACEOF
10884 1.8 tv rm -f conftest.$ac_objext
10885 1.65 christos if { (ac_try="$ac_compile"
10886 1.65 christos case "(($ac_try" in
10887 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 1.65 christos *) ac_try_echo=$ac_try;;
10889 1.65 christos esac
10890 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 1.65 christos (eval "$ac_compile") 2>conftest.er1
10892 1.8 tv ac_status=$?
10893 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10894 1.65 christos rm -f conftest.er1
10895 1.65 christos cat conftest.err >&5
10896 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 1.65 christos (exit $ac_status); } && {
10898 1.65 christos test -z "$ac_c_werror_flag" ||
10899 1.65 christos test ! -s conftest.err
10900 1.65 christos } && test -s conftest.$ac_objext; then
10901 1.8 tv ac_cv_have_decl_setgroupent=yes
10902 1.8 tv else
10903 1.8 tv echo "$as_me: failed program was:" >&5
10904 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10905 1.65 christos
10906 1.65 christos ac_cv_have_decl_setgroupent=no
10907 1.8 tv fi
10908 1.65 christos
10909 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 1.8 tv fi
10911 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
10912 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6; }
10913 1.8 tv if test $ac_cv_have_decl_setgroupent = yes; then
10914 1.8 tv
10915 1.65 christos cat >>confdefs.h <<_ACEOF
10916 1.8 tv #define HAVE_DECL_SETGROUPENT 1
10917 1.65 christos _ACEOF
10918 1.65 christos
10919 1.8 tv
10920 1.8 tv else
10921 1.65 christos cat >>confdefs.h <<_ACEOF
10922 1.8 tv #define HAVE_DECL_SETGROUPENT 0
10923 1.65 christos _ACEOF
10924 1.65 christos
10925 1.8 tv
10926 1.8 tv fi
10927 1.65 christos { echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
10928 1.65 christos echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6; }
10929 1.8 tv if test "${ac_cv_have_decl_setpassent+set}" = set; then
10930 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
10931 1.8 tv else
10932 1.8 tv cat >conftest.$ac_ext <<_ACEOF
10933 1.65 christos /* confdefs.h. */
10934 1.65 christos _ACEOF
10935 1.65 christos cat confdefs.h >>conftest.$ac_ext
10936 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
10937 1.65 christos /* end confdefs.h. */
10938 1.8 tv
10939 1.33 thorpej #include <sys/types.h>
10940 1.8 tv #include <grp.h>
10941 1.8 tv #include <pwd.h>
10942 1.8 tv
10943 1.65 christos
10944 1.8 tv int
10945 1.8 tv main ()
10946 1.8 tv {
10947 1.8 tv #ifndef setpassent
10948 1.65 christos (void) setpassent;
10949 1.8 tv #endif
10950 1.8 tv
10951 1.8 tv ;
10952 1.8 tv return 0;
10953 1.8 tv }
10954 1.8 tv _ACEOF
10955 1.8 tv rm -f conftest.$ac_objext
10956 1.65 christos if { (ac_try="$ac_compile"
10957 1.65 christos case "(($ac_try" in
10958 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 1.65 christos *) ac_try_echo=$ac_try;;
10960 1.65 christos esac
10961 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 1.65 christos (eval "$ac_compile") 2>conftest.er1
10963 1.8 tv ac_status=$?
10964 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
10965 1.65 christos rm -f conftest.er1
10966 1.65 christos cat conftest.err >&5
10967 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 1.65 christos (exit $ac_status); } && {
10969 1.65 christos test -z "$ac_c_werror_flag" ||
10970 1.65 christos test ! -s conftest.err
10971 1.65 christos } && test -s conftest.$ac_objext; then
10972 1.8 tv ac_cv_have_decl_setpassent=yes
10973 1.8 tv else
10974 1.8 tv echo "$as_me: failed program was:" >&5
10975 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
10976 1.65 christos
10977 1.65 christos ac_cv_have_decl_setpassent=no
10978 1.8 tv fi
10979 1.65 christos
10980 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 1.8 tv fi
10982 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
10983 1.65 christos echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6; }
10984 1.8 tv if test $ac_cv_have_decl_setpassent = yes; then
10985 1.8 tv
10986 1.65 christos cat >>confdefs.h <<_ACEOF
10987 1.8 tv #define HAVE_DECL_SETPASSENT 1
10988 1.65 christos _ACEOF
10989 1.65 christos
10990 1.8 tv
10991 1.8 tv else
10992 1.65 christos cat >>confdefs.h <<_ACEOF
10993 1.8 tv #define HAVE_DECL_SETPASSENT 0
10994 1.65 christos _ACEOF
10995 1.65 christos
10996 1.8 tv
10997 1.8 tv fi
10998 1.8 tv
10999 1.65 christos
11000 1.65 christos
11001 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
11002 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
11003 1.4 tv
11004 1.65 christos
11005 1.65 christos { echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
11006 1.65 christos echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6; }
11007 1.4 tv if test "${ac_cv_lib_regex_regfree+set}" = set; then
11008 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
11009 1.4 tv else
11010 1.4 tv ac_check_lib_save_LIBS=$LIBS
11011 1.4 tv LIBS="-lregex $LIBS"
11012 1.4 tv cat >conftest.$ac_ext <<_ACEOF
11013 1.65 christos /* confdefs.h. */
11014 1.65 christos _ACEOF
11015 1.65 christos cat confdefs.h >>conftest.$ac_ext
11016 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
11017 1.65 christos /* end confdefs.h. */
11018 1.4 tv
11019 1.65 christos /* Override any GCC internal prototype to avoid an error.
11020 1.65 christos Use char because int might match the return type of a GCC
11021 1.65 christos builtin and then its argument prototype would still apply. */
11022 1.4 tv #ifdef __cplusplus
11023 1.4 tv extern "C"
11024 1.4 tv #endif
11025 1.4 tv char regfree ();
11026 1.4 tv int
11027 1.4 tv main ()
11028 1.4 tv {
11029 1.65 christos return regfree ();
11030 1.4 tv ;
11031 1.4 tv return 0;
11032 1.4 tv }
11033 1.4 tv _ACEOF
11034 1.4 tv rm -f conftest.$ac_objext conftest$ac_exeext
11035 1.65 christos if { (ac_try="$ac_link"
11036 1.65 christos case "(($ac_try" in
11037 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 1.65 christos *) ac_try_echo=$ac_try;;
11039 1.65 christos esac
11040 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 1.65 christos (eval "$ac_link") 2>conftest.er1
11042 1.4 tv ac_status=$?
11043 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
11044 1.65 christos rm -f conftest.er1
11045 1.65 christos cat conftest.err >&5
11046 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 1.65 christos (exit $ac_status); } && {
11048 1.65 christos test -z "$ac_c_werror_flag" ||
11049 1.65 christos test ! -s conftest.err
11050 1.65 christos } && test -s conftest$ac_exeext &&
11051 1.65 christos $as_test_x conftest$ac_exeext; then
11052 1.4 tv ac_cv_lib_regex_regfree=yes
11053 1.4 tv else
11054 1.4 tv echo "$as_me: failed program was:" >&5
11055 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
11056 1.65 christos
11057 1.65 christos ac_cv_lib_regex_regfree=no
11058 1.4 tv fi
11059 1.65 christos
11060 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11061 1.65 christos conftest$ac_exeext conftest.$ac_ext
11062 1.4 tv LIBS=$ac_check_lib_save_LIBS
11063 1.4 tv fi
11064 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
11065 1.65 christos echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6; }
11066 1.4 tv if test $ac_cv_lib_regex_regfree = yes; then
11067 1.65 christos cat >>confdefs.h <<_ACEOF
11068 1.4 tv #define HAVE_LIBREGEX 1
11069 1.65 christos _ACEOF
11070 1.4 tv
11071 1.4 tv LIBS="-lregex $LIBS"
11072 1.4 tv
11073 1.4 tv fi
11074 1.4 tv
11075 1.65 christos { echo "$as_me:$LINENO: checking for library containing regfree" >&5
11076 1.65 christos echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
11077 1.4 tv if test "${ac_cv_search_regfree+set}" = set; then
11078 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
11079 1.1 tv else
11080 1.1 tv ac_func_search_save_LIBS=$LIBS
11081 1.1 tv cat >conftest.$ac_ext <<_ACEOF
11082 1.65 christos /* confdefs.h. */
11083 1.65 christos _ACEOF
11084 1.65 christos cat confdefs.h >>conftest.$ac_ext
11085 1.65 christos cat >>conftest.$ac_ext <<_ACEOF
11086 1.65 christos /* end confdefs.h. */
11087 1.1 tv
11088 1.65 christos /* Override any GCC internal prototype to avoid an error.
11089 1.65 christos Use char because int might match the return type of a GCC
11090 1.65 christos builtin and then its argument prototype would still apply. */
11091 1.1 tv #ifdef __cplusplus
11092 1.1 tv extern "C"
11093 1.1 tv #endif
11094 1.4 tv char regfree ();
11095 1.1 tv int
11096 1.1 tv main ()
11097 1.1 tv {
11098 1.65 christos return regfree ();
11099 1.1 tv ;
11100 1.1 tv return 0;
11101 1.1 tv }
11102 1.1 tv _ACEOF
11103 1.65 christos for ac_lib in '' rx posix; do
11104 1.65 christos if test -z "$ac_lib"; then
11105 1.65 christos ac_res="none required"
11106 1.65 christos else
11107 1.65 christos ac_res=-l$ac_lib
11108 1.65 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11109 1.65 christos fi
11110 1.65 christos rm -f conftest.$ac_objext conftest$ac_exeext
11111 1.65 christos if { (ac_try="$ac_link"
11112 1.65 christos case "(($ac_try" in
11113 1.65 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 1.65 christos *) ac_try_echo=$ac_try;;
11115 1.65 christos esac
11116 1.65 christos eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 1.65 christos (eval "$ac_link") 2>conftest.er1
11118 1.1 tv ac_status=$?
11119 1.65 christos grep -v '^ *+' conftest.er1 >conftest.err
11120 1.65 christos rm -f conftest.er1
11121 1.65 christos cat conftest.err >&5
11122 1.65 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 1.65 christos (exit $ac_status); } && {
11124 1.65 christos test -z "$ac_c_werror_flag" ||
11125 1.65 christos test ! -s conftest.err
11126 1.65 christos } && test -s conftest$ac_exeext &&
11127 1.65 christos $as_test_x conftest$ac_exeext; then
11128 1.65 christos ac_cv_search_regfree=$ac_res
11129 1.1 tv else
11130 1.1 tv echo "$as_me: failed program was:" >&5
11131 1.65 christos sed 's/^/| /' conftest.$ac_ext >&5
11132 1.65 christos
11133 1.65 christos
11134 1.1 tv fi
11135 1.1 tv
11136 1.65 christos rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 1.65 christos conftest$ac_exeext
11138 1.65 christos if test "${ac_cv_search_regfree+set}" = set; then
11139 1.65 christos break
11140 1.65 christos fi
11141 1.65 christos done
11142 1.65 christos if test "${ac_cv_search_regfree+set}" = set; then
11143 1.65 christos :
11144 1.1 tv else
11145 1.65 christos ac_cv_search_regfree=no
11146 1.1 tv fi
11147 1.65 christos rm conftest.$ac_ext
11148 1.1 tv LIBS=$ac_func_search_save_LIBS
11149 1.1 tv fi
11150 1.65 christos { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
11151 1.65 christos echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
11152 1.65 christos ac_res=$ac_cv_search_regfree
11153 1.65 christos if test "$ac_res" != no; then
11154 1.65 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11155 1.1 tv
11156 1.1 tv fi
11157 1.1 tv
11158 1.65 christos
11159 1.1 tv cat >confcache <<\_ACEOF
11160 1.1 tv # This file is a shell script that caches the results of configure
11161 1.1 tv # tests run on this system so they can be shared between configure
11162 1.1 tv # scripts and configure runs, see configure's option --config-cache.
11163 1.1 tv # It is not useful on other systems. If it contains results you don't
11164 1.1 tv # want to keep, you may remove or edit it.
11165 1.1 tv #
11166 1.1 tv # config.status only pays attention to the cache file if you give it
11167 1.1 tv # the --recheck option to rerun configure.
11168 1.1 tv #
11169 1.65 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
11170 1.1 tv # loading this file, other *unset* `ac_cv_foo' will be assigned the
11171 1.1 tv # following values.
11172 1.1 tv
11173 1.1 tv _ACEOF
11174 1.1 tv
11175 1.1 tv # The following way of writing the cache mishandles newlines in values,
11176 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
11177 1.65 christos # So, we kill variables containing newlines.
11178 1.1 tv # Ultrix sh set writes to stderr and can't be redirected directly,
11179 1.1 tv # and sets the high bit in the cache file unless we assign to the vars.
11180 1.65 christos (
11181 1.65 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11182 1.65 christos eval ac_val=\$$ac_var
11183 1.65 christos case $ac_val in #(
11184 1.65 christos *${as_nl}*)
11185 1.65 christos case $ac_var in #(
11186 1.65 christos *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11187 1.65 christos echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11188 1.65 christos esac
11189 1.65 christos case $ac_var in #(
11190 1.65 christos _ | IFS | as_nl) ;; #(
11191 1.65 christos *) $as_unset $ac_var ;;
11192 1.65 christos esac ;;
11193 1.65 christos esac
11194 1.65 christos done
11195 1.65 christos
11196 1.65 christos (set) 2>&1 |
11197 1.65 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
11198 1.65 christos *${as_nl}ac_space=\ *)
11199 1.65 christos # `set' does not quote correctly, so add quotes (double-quote
11200 1.65 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
11201 1.65 christos sed -n \
11202 1.65 christos "s/'/'\\\\''/g;
11203 1.65 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11204 1.65 christos ;; #(
11205 1.65 christos *)
11206 1.65 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
11207 1.65 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11208 1.65 christos ;;
11209 1.65 christos esac |
11210 1.65 christos sort
11211 1.65 christos ) |
11212 1.65 christos sed '
11213 1.65 christos /^ac_cv_env_/b end
11214 1.65 christos t clear
11215 1.65 christos :clear
11216 1.65 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11217 1.65 christos t end
11218 1.65 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11219 1.65 christos :end' >>confcache
11220 1.65 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11221 1.65 christos if test -w "$cache_file"; then
11222 1.65 christos test "x$cache_file" != "x/dev/null" &&
11223 1.65 christos { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11224 1.65 christos echo "$as_me: updating cache $cache_file" >&6;}
11225 1.65 christos cat confcache >$cache_file
11226 1.65 christos else
11227 1.65 christos { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11228 1.65 christos echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11229 1.65 christos fi
11230 1.65 christos fi
11231 1.65 christos rm -f confcache
11232 1.65 christos
11233 1.65 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
11234 1.65 christos # Let make expand exec_prefix.
11235 1.65 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11236 1.65 christos
11237 1.65 christos DEFS=-DHAVE_CONFIG_H
11238 1.65 christos
11239 1.65 christos ac_libobjs=
11240 1.65 christos ac_ltlibobjs=
11241 1.65 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11242 1.65 christos # 1. Remove the extension, and $U if already installed.
11243 1.65 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11244 1.65 christos ac_i=`echo "$ac_i" | sed "$ac_script"`
11245 1.65 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11246 1.65 christos # will be set to the directory where LIBOBJS objects are built.
11247 1.65 christos ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11248 1.65 christos ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11249 1.65 christos done
11250 1.65 christos LIBOBJS=$ac_libobjs
11251 1.65 christos
11252 1.65 christos LTLIBOBJS=$ac_ltlibobjs
11253 1.65 christos
11254 1.65 christos
11255 1.65 christos
11256 1.65 christos : ${CONFIG_STATUS=./config.status}
11257 1.65 christos ac_clean_files_save=$ac_clean_files
11258 1.65 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11259 1.65 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11260 1.65 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
11261 1.65 christos cat >$CONFIG_STATUS <<_ACEOF
11262 1.65 christos #! $SHELL
11263 1.65 christos # Generated by $as_me.
11264 1.65 christos # Run this file to recreate the current configuration.
11265 1.65 christos # Compiler output produced by configure, useful for debugging
11266 1.65 christos # configure, is in config.log if it exists.
11267 1.65 christos
11268 1.65 christos debug=false
11269 1.65 christos ac_cs_recheck=false
11270 1.65 christos ac_cs_silent=false
11271 1.65 christos SHELL=\${CONFIG_SHELL-$SHELL}
11272 1.65 christos _ACEOF
11273 1.65 christos
11274 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11275 1.65 christos ## --------------------- ##
11276 1.65 christos ## M4sh Initialization. ##
11277 1.65 christos ## --------------------- ##
11278 1.65 christos
11279 1.65 christos # Be more Bourne compatible
11280 1.65 christos DUALCASE=1; export DUALCASE # for MKS sh
11281 1.65 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11282 1.65 christos emulate sh
11283 1.65 christos NULLCMD=:
11284 1.65 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11285 1.65 christos # is contrary to our usage. Disable this feature.
11286 1.65 christos alias -g '${1+"$@"}'='"$@"'
11287 1.65 christos setopt NO_GLOB_SUBST
11288 1.65 christos else
11289 1.65 christos case `(set -o) 2>/dev/null` in
11290 1.65 christos *posix*) set -o posix ;;
11291 1.65 christos esac
11292 1.65 christos
11293 1.65 christos fi
11294 1.65 christos
11295 1.65 christos
11296 1.65 christos
11297 1.65 christos
11298 1.65 christos # PATH needs CR
11299 1.65 christos # Avoid depending upon Character Ranges.
11300 1.65 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11301 1.65 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11302 1.65 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11303 1.65 christos as_cr_digits='0123456789'
11304 1.65 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
11305 1.65 christos
11306 1.65 christos # The user is always right.
11307 1.65 christos if test "${PATH_SEPARATOR+set}" != set; then
11308 1.65 christos echo "#! /bin/sh" >conf$$.sh
11309 1.65 christos echo "exit 0" >>conf$$.sh
11310 1.65 christos chmod +x conf$$.sh
11311 1.65 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11312 1.65 christos PATH_SEPARATOR=';'
11313 1.65 christos else
11314 1.65 christos PATH_SEPARATOR=:
11315 1.65 christos fi
11316 1.65 christos rm -f conf$$.sh
11317 1.65 christos fi
11318 1.65 christos
11319 1.65 christos # Support unset when possible.
11320 1.65 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11321 1.65 christos as_unset=unset
11322 1.65 christos else
11323 1.65 christos as_unset=false
11324 1.65 christos fi
11325 1.65 christos
11326 1.65 christos
11327 1.65 christos # IFS
11328 1.65 christos # We need space, tab and new line, in precisely that order. Quoting is
11329 1.65 christos # there to prevent editors from complaining about space-tab.
11330 1.65 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11331 1.65 christos # splitting by setting IFS to empty value.)
11332 1.65 christos as_nl='
11333 1.65 christos '
11334 1.65 christos IFS=" "" $as_nl"
11335 1.65 christos
11336 1.65 christos # Find who we are. Look in the path if we contain no directory separator.
11337 1.65 christos case $0 in
11338 1.65 christos *[\\/]* ) as_myself=$0 ;;
11339 1.65 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 1.65 christos for as_dir in $PATH
11341 1.65 christos do
11342 1.65 christos IFS=$as_save_IFS
11343 1.65 christos test -z "$as_dir" && as_dir=.
11344 1.65 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11345 1.65 christos done
11346 1.65 christos IFS=$as_save_IFS
11347 1.65 christos
11348 1.65 christos ;;
11349 1.65 christos esac
11350 1.65 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
11351 1.65 christos # in which case we are not to be found in the path.
11352 1.65 christos if test "x$as_myself" = x; then
11353 1.65 christos as_myself=$0
11354 1.65 christos fi
11355 1.65 christos if test ! -f "$as_myself"; then
11356 1.65 christos echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357 1.65 christos { (exit 1); exit 1; }
11358 1.65 christos fi
11359 1.65 christos
11360 1.65 christos # Work around bugs in pre-3.0 UWIN ksh.
11361 1.65 christos for as_var in ENV MAIL MAILPATH
11362 1.65 christos do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11363 1.65 christos done
11364 1.65 christos PS1='$ '
11365 1.65 christos PS2='> '
11366 1.65 christos PS4='+ '
11367 1.65 christos
11368 1.65 christos # NLS nuisances.
11369 1.65 christos for as_var in \
11370 1.65 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11371 1.65 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11372 1.65 christos LC_TELEPHONE LC_TIME
11373 1.65 christos do
11374 1.65 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11375 1.65 christos eval $as_var=C; export $as_var
11376 1.1 tv else
11377 1.65 christos ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11378 1.1 tv fi
11379 1.65 christos done
11380 1.65 christos
11381 1.65 christos # Required to use basename.
11382 1.65 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
11383 1.65 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
11384 1.65 christos as_expr=expr
11385 1.65 christos else
11386 1.65 christos as_expr=false
11387 1.1 tv fi
11388 1.1 tv
11389 1.65 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11390 1.65 christos as_basename=basename
11391 1.65 christos else
11392 1.65 christos as_basename=false
11393 1.65 christos fi
11394 1.65 christos
11395 1.65 christos
11396 1.65 christos # Name of the executable.
11397 1.65 christos as_me=`$as_basename -- "$0" ||
11398 1.65 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11399 1.65 christos X"$0" : 'X\(//\)$' \| \
11400 1.65 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11401 1.65 christos echo X/"$0" |
11402 1.65 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
11403 1.65 christos s//\1/
11404 1.65 christos q
11405 1.65 christos }
11406 1.65 christos /^X\/\(\/\/\)$/{
11407 1.65 christos s//\1/
11408 1.65 christos q
11409 1.65 christos }
11410 1.65 christos /^X\/\(\/\).*/{
11411 1.65 christos s//\1/
11412 1.65 christos q
11413 1.65 christos }
11414 1.65 christos s/.*/./; q'`
11415 1.1 tv
11416 1.65 christos # CDPATH.
11417 1.65 christos $as_unset CDPATH
11418 1.1 tv
11419 1.1 tv
11420 1.1 tv
11421 1.65 christos as_lineno_1=$LINENO
11422 1.65 christos as_lineno_2=$LINENO
11423 1.65 christos test "x$as_lineno_1" != "x$as_lineno_2" &&
11424 1.65 christos test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11425 1.65 christos
11426 1.65 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11427 1.65 christos # uniformly replaced by the line number. The first 'sed' inserts a
11428 1.65 christos # line-number line after each line using $LINENO; the second 'sed'
11429 1.65 christos # does the real work. The second script uses 'N' to pair each
11430 1.65 christos # line-number line with the line containing $LINENO, and appends
11431 1.65 christos # trailing '-' during substitution so that $LINENO is not a special
11432 1.65 christos # case at line end.
11433 1.65 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11434 1.65 christos # scripts with optimization help from Paolo Bonzini. Blame Lee
11435 1.65 christos # E. McMahon (1931-1989) for sed's syntax. :-)
11436 1.65 christos sed -n '
11437 1.65 christos p
11438 1.65 christos /[$]LINENO/=
11439 1.65 christos ' <$as_myself |
11440 1.65 christos sed '
11441 1.65 christos s/[$]LINENO.*/&-/
11442 1.65 christos t lineno
11443 1.65 christos b
11444 1.65 christos :lineno
11445 1.65 christos N
11446 1.65 christos :loop
11447 1.65 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11448 1.65 christos t loop
11449 1.65 christos s/-\n.*//
11450 1.65 christos ' >$as_me.lineno &&
11451 1.65 christos chmod +x "$as_me.lineno" ||
11452 1.65 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11453 1.65 christos { (exit 1); exit 1; }; }
11454 1.63 apb
11455 1.65 christos # Don't try to exec as it changes $[0], causing all sort of problems
11456 1.65 christos # (the dirname of $[0] is not the place where we might find the
11457 1.65 christos # original and so on. Autoconf is especially sensitive to this).
11458 1.65 christos . "./$as_me.lineno"
11459 1.65 christos # Exit status is that of the last command.
11460 1.65 christos exit
11461 1.65 christos }
11462 1.1 tv
11463 1.1 tv
11464 1.65 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11465 1.65 christos as_dirname=dirname
11466 1.65 christos else
11467 1.65 christos as_dirname=false
11468 1.65 christos fi
11469 1.65 christos
11470 1.65 christos ECHO_C= ECHO_N= ECHO_T=
11471 1.65 christos case `echo -n x` in
11472 1.65 christos -n*)
11473 1.65 christos case `echo 'x\c'` in
11474 1.65 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11475 1.65 christos *) ECHO_C='\c';;
11476 1.65 christos esac;;
11477 1.65 christos *)
11478 1.65 christos ECHO_N='-n';;
11479 1.65 christos esac
11480 1.1 tv
11481 1.65 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
11482 1.65 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
11483 1.1 tv as_expr=expr
11484 1.1 tv else
11485 1.1 tv as_expr=false
11486 1.1 tv fi
11487 1.1 tv
11488 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
11489 1.65 christos if test -d conf$$.dir; then
11490 1.65 christos rm -f conf$$.dir/conf$$.file
11491 1.65 christos else
11492 1.65 christos rm -f conf$$.dir
11493 1.65 christos mkdir conf$$.dir
11494 1.65 christos fi
11495 1.1 tv echo >conf$$.file
11496 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
11497 1.65 christos as_ln_s='ln -s'
11498 1.65 christos # ... but there are two gotchas:
11499 1.65 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11500 1.65 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11501 1.65 christos # In both cases, we have to default to `cp -p'.
11502 1.65 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11503 1.1 tv as_ln_s='cp -p'
11504 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
11505 1.1 tv as_ln_s=ln
11506 1.1 tv else
11507 1.1 tv as_ln_s='cp -p'
11508 1.1 tv fi
11509 1.65 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11510 1.65 christos rmdir conf$$.dir 2>/dev/null
11511 1.1 tv
11512 1.65 christos if mkdir -p . 2>/dev/null; then
11513 1.65 christos as_mkdir_p=:
11514 1.65 christos else
11515 1.65 christos test -d ./-p && rmdir ./-p
11516 1.65 christos as_mkdir_p=false
11517 1.65 christos fi
11518 1.63 apb
11519 1.65 christos if test -x / >/dev/null 2>&1; then
11520 1.65 christos as_test_x='test -x'
11521 1.61 christos else
11522 1.65 christos if ls -dL / >/dev/null 2>&1; then
11523 1.65 christos as_ls_L_option=L
11524 1.65 christos else
11525 1.65 christos as_ls_L_option=
11526 1.65 christos fi
11527 1.65 christos as_test_x='
11528 1.65 christos eval sh -c '\''
11529 1.65 christos if test -d "$1"; then
11530 1.65 christos test -d "$1/.";
11531 1.65 christos else
11532 1.65 christos case $1 in
11533 1.65 christos -*)set "./$1";;
11534 1.65 christos esac;
11535 1.65 christos case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11536 1.65 christos ???[sx]*):;;*)false;;esac;fi
11537 1.65 christos '\'' sh
11538 1.65 christos '
11539 1.61 christos fi
11540 1.65 christos as_executable_p=$as_test_x
11541 1.61 christos
11542 1.65 christos # Sed expression to map a string onto a valid CPP name.
11543 1.65 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11544 1.1 tv
11545 1.65 christos # Sed expression to map a string onto a valid variable name.
11546 1.65 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11547 1.1 tv
11548 1.1 tv
11549 1.1 tv exec 6>&1
11550 1.1 tv
11551 1.65 christos # Save the log message, to keep $[0] and so on meaningful, and to
11552 1.65 christos # report actual input values of CONFIG_FILES etc. instead of their
11553 1.65 christos # values after options handling.
11554 1.65 christos ac_log="
11555 1.65 christos This file was extended by libnbcompat $as_me noversion, which was
11556 1.65 christos generated by GNU Autoconf 2.61. Invocation command line was
11557 1.1 tv
11558 1.65 christos CONFIG_FILES = $CONFIG_FILES
11559 1.65 christos CONFIG_HEADERS = $CONFIG_HEADERS
11560 1.65 christos CONFIG_LINKS = $CONFIG_LINKS
11561 1.65 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
11562 1.65 christos $ $0 $@
11563 1.1 tv
11564 1.65 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
11565 1.65 christos "
11566 1.1 tv
11567 1.65 christos _ACEOF
11568 1.1 tv
11569 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11570 1.65 christos # Files that config.status was made for.
11571 1.65 christos config_files="$ac_config_files"
11572 1.65 christos config_headers="$ac_config_headers"
11573 1.1 tv
11574 1.65 christos _ACEOF
11575 1.1 tv
11576 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11577 1.1 tv ac_cs_usage="\
11578 1.1 tv \`$as_me' instantiates files from templates according to the
11579 1.1 tv current configuration.
11580 1.1 tv
11581 1.1 tv Usage: $0 [OPTIONS] [FILE]...
11582 1.1 tv
11583 1.1 tv -h, --help print this help, then exit
11584 1.65 christos -V, --version print version number and configuration settings, then exit
11585 1.65 christos -q, --quiet do not print progress messages
11586 1.1 tv -d, --debug don't remove temporary files
11587 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
11588 1.1 tv --file=FILE[:TEMPLATE]
11589 1.65 christos instantiate the configuration file FILE
11590 1.1 tv --header=FILE[:TEMPLATE]
11591 1.65 christos instantiate the configuration header FILE
11592 1.1 tv
11593 1.1 tv Configuration files:
11594 1.1 tv $config_files
11595 1.1 tv
11596 1.1 tv Configuration headers:
11597 1.1 tv $config_headers
11598 1.1 tv
11599 1.1 tv Report bugs to <bug-autoconf (at] gnu.org>."
11600 1.1 tv
11601 1.65 christos _ACEOF
11602 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11603 1.1 tv ac_cs_version="\\
11604 1.1 tv libnbcompat config.status noversion
11605 1.65 christos configured by $0, generated by GNU Autoconf 2.61,
11606 1.65 christos with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11607 1.1 tv
11608 1.65 christos Copyright (C) 2006 Free Software Foundation, Inc.
11609 1.1 tv This config.status script is free software; the Free Software Foundation
11610 1.1 tv gives unlimited permission to copy, distribute and modify it."
11611 1.1 tv
11612 1.65 christos ac_pwd='$ac_pwd'
11613 1.65 christos srcdir='$srcdir'
11614 1.65 christos _ACEOF
11615 1.65 christos
11616 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11617 1.1 tv # If no file are specified by the user, then we need to provide default
11618 1.1 tv # value. By we need to know if files were specified by the user.
11619 1.1 tv ac_need_defaults=:
11620 1.1 tv while test $# != 0
11621 1.1 tv do
11622 1.1 tv case $1 in
11623 1.1 tv --*=*)
11624 1.65 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
11625 1.65 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11626 1.65 christos ac_shift=:
11627 1.65 christos ;;
11628 1.65 christos *)
11629 1.65 christos ac_option=$1
11630 1.65 christos ac_optarg=$2
11631 1.65 christos ac_shift=shift
11632 1.1 tv ;;
11633 1.1 tv esac
11634 1.1 tv
11635 1.65 christos case $ac_option in
11636 1.1 tv # Handling of the options.
11637 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11638 1.65 christos ac_cs_recheck=: ;;
11639 1.65 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11640 1.65 christos echo "$ac_cs_version"; exit ;;
11641 1.65 christos --debug | --debu | --deb | --de | --d | -d )
11642 1.1 tv debug=: ;;
11643 1.1 tv --file | --fil | --fi | --f )
11644 1.65 christos $ac_shift
11645 1.65 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11646 1.1 tv ac_need_defaults=false;;
11647 1.1 tv --header | --heade | --head | --hea )
11648 1.65 christos $ac_shift
11649 1.65 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11650 1.1 tv ac_need_defaults=false;;
11651 1.65 christos --he | --h)
11652 1.65 christos # Conflict between --help and --header
11653 1.65 christos { echo "$as_me: error: ambiguous option: $1
11654 1.65 christos Try \`$0 --help' for more information." >&2
11655 1.65 christos { (exit 1); exit 1; }; };;
11656 1.65 christos --help | --hel | -h )
11657 1.65 christos echo "$ac_cs_usage"; exit ;;
11658 1.65 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11659 1.65 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
11660 1.65 christos ac_cs_silent=: ;;
11661 1.1 tv
11662 1.1 tv # This is an error.
11663 1.65 christos -*) { echo "$as_me: error: unrecognized option: $1
11664 1.65 christos Try \`$0 --help' for more information." >&2
11665 1.1 tv { (exit 1); exit 1; }; } ;;
11666 1.1 tv
11667 1.65 christos *) ac_config_targets="$ac_config_targets $1"
11668 1.65 christos ac_need_defaults=false ;;
11669 1.1 tv
11670 1.1 tv esac
11671 1.1 tv shift
11672 1.1 tv done
11673 1.1 tv
11674 1.65 christos ac_configure_extra_args=
11675 1.65 christos
11676 1.65 christos if $ac_cs_silent; then
11677 1.65 christos exec 6>/dev/null
11678 1.65 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
11679 1.65 christos fi
11680 1.1 tv
11681 1.65 christos _ACEOF
11682 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11683 1.65 christos if \$ac_cs_recheck; then
11684 1.65 christos echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11685 1.65 christos CONFIG_SHELL=$SHELL
11686 1.65 christos export CONFIG_SHELL
11687 1.65 christos exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11688 1.65 christos fi
11689 1.1 tv
11690 1.65 christos _ACEOF
11691 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11692 1.65 christos exec 5>>config.log
11693 1.65 christos {
11694 1.65 christos echo
11695 1.65 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11696 1.65 christos ## Running $as_me. ##
11697 1.65 christos _ASBOX
11698 1.65 christos echo "$ac_log"
11699 1.65 christos } >&5
11700 1.1 tv
11701 1.1 tv _ACEOF
11702 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11703 1.65 christos _ACEOF
11704 1.65 christos
11705 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11706 1.1 tv
11707 1.65 christos # Handling of arguments.
11708 1.1 tv for ac_config_target in $ac_config_targets
11709 1.1 tv do
11710 1.65 christos case $ac_config_target in
11711 1.65 christos "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
11712 1.65 christos "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
11713 1.65 christos
11714 1.65 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11715 1.1 tv echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11716 1.1 tv { (exit 1); exit 1; }; };;
11717 1.1 tv esac
11718 1.1 tv done
11719 1.1 tv
11720 1.65 christos
11721 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
11722 1.1 tv # then the envvar interface is used. Set only those that are not.
11723 1.1 tv # We use the long form for the default assignment because of an extremely
11724 1.1 tv # bizarre bug on SunOS 4.1.3.
11725 1.1 tv if $ac_need_defaults; then
11726 1.1 tv test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11727 1.1 tv test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11728 1.1 tv fi
11729 1.1 tv
11730 1.65 christos # Have a temporary directory for convenience. Make it in the build tree
11731 1.65 christos # simply because there is no reason against having it here, and in addition,
11732 1.65 christos # creating and moving files from /tmp can sometimes cause problems.
11733 1.65 christos # Hook for its removal unless debugging.
11734 1.65 christos # Note that there is a small window in which the directory will not be cleaned:
11735 1.65 christos # after its creation but before its name has been assigned to `$tmp'.
11736 1.1 tv $debug ||
11737 1.1 tv {
11738 1.65 christos tmp=
11739 1.65 christos trap 'exit_status=$?
11740 1.65 christos { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11741 1.65 christos ' 0
11742 1.1 tv trap '{ (exit 1); exit 1; }' 1 2 13 15
11743 1.1 tv }
11744 1.65 christos # Create a (secure) tmp directory for tmp files.
11745 1.1 tv
11746 1.1 tv {
11747 1.65 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11748 1.1 tv test -n "$tmp" && test -d "$tmp"
11749 1.1 tv } ||
11750 1.1 tv {
11751 1.65 christos tmp=./conf$$-$RANDOM
11752 1.65 christos (umask 077 && mkdir "$tmp")
11753 1.1 tv } ||
11754 1.1 tv {
11755 1.65 christos echo "$me: cannot create a temporary directory in ." >&2
11756 1.1 tv { (exit 1); exit 1; }
11757 1.1 tv }
11758 1.1 tv
11759 1.1 tv #
11760 1.65 christos # Set up the sed scripts for CONFIG_FILES section.
11761 1.1 tv #
11762 1.1 tv
11763 1.1 tv # No need to generate the scripts if there are no CONFIG_FILES.
11764 1.1 tv # This happens for instance when ./config.status config.h
11765 1.65 christos if test -n "$CONFIG_FILES"; then
11766 1.65 christos
11767 1.65 christos _ACEOF
11768 1.65 christos
11769 1.65 christos
11770 1.65 christos
11771 1.65 christos ac_delim='%!_!# '
11772 1.65 christos for ac_last_try in false false false false false :; do
11773 1.65 christos cat >conf$$subs.sed <<_ACEOF
11774 1.65 christos SHELL!$SHELL$ac_delim
11775 1.65 christos PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11776 1.65 christos PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11777 1.65 christos PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11778 1.65 christos PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11779 1.65 christos PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11780 1.65 christos PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11781 1.65 christos exec_prefix!$exec_prefix$ac_delim
11782 1.65 christos prefix!$prefix$ac_delim
11783 1.65 christos program_transform_name!$program_transform_name$ac_delim
11784 1.65 christos bindir!$bindir$ac_delim
11785 1.65 christos sbindir!$sbindir$ac_delim
11786 1.65 christos libexecdir!$libexecdir$ac_delim
11787 1.65 christos datarootdir!$datarootdir$ac_delim
11788 1.65 christos datadir!$datadir$ac_delim
11789 1.65 christos sysconfdir!$sysconfdir$ac_delim
11790 1.65 christos sharedstatedir!$sharedstatedir$ac_delim
11791 1.65 christos localstatedir!$localstatedir$ac_delim
11792 1.65 christos includedir!$includedir$ac_delim
11793 1.65 christos oldincludedir!$oldincludedir$ac_delim
11794 1.65 christos docdir!$docdir$ac_delim
11795 1.65 christos infodir!$infodir$ac_delim
11796 1.65 christos htmldir!$htmldir$ac_delim
11797 1.65 christos dvidir!$dvidir$ac_delim
11798 1.65 christos pdfdir!$pdfdir$ac_delim
11799 1.65 christos psdir!$psdir$ac_delim
11800 1.65 christos libdir!$libdir$ac_delim
11801 1.65 christos localedir!$localedir$ac_delim
11802 1.65 christos mandir!$mandir$ac_delim
11803 1.65 christos DEFS!$DEFS$ac_delim
11804 1.65 christos ECHO_C!$ECHO_C$ac_delim
11805 1.65 christos ECHO_N!$ECHO_N$ac_delim
11806 1.65 christos ECHO_T!$ECHO_T$ac_delim
11807 1.65 christos LIBS!$LIBS$ac_delim
11808 1.65 christos build_alias!$build_alias$ac_delim
11809 1.65 christos host_alias!$host_alias$ac_delim
11810 1.65 christos target_alias!$target_alias$ac_delim
11811 1.65 christos CC!$CC$ac_delim
11812 1.65 christos CFLAGS!$CFLAGS$ac_delim
11813 1.65 christos LDFLAGS!$LDFLAGS$ac_delim
11814 1.65 christos CPPFLAGS!$CPPFLAGS$ac_delim
11815 1.65 christos ac_ct_CC!$ac_ct_CC$ac_delim
11816 1.65 christos EXEEXT!$EXEEXT$ac_delim
11817 1.65 christos OBJEXT!$OBJEXT$ac_delim
11818 1.65 christos CPP!$CPP$ac_delim
11819 1.65 christos GREP!$GREP$ac_delim
11820 1.65 christos EGREP!$EGREP$ac_delim
11821 1.65 christos BSHELL!$BSHELL$ac_delim
11822 1.65 christos ALLOCA!$ALLOCA$ac_delim
11823 1.65 christos LIBOBJS!$LIBOBJS$ac_delim
11824 1.65 christos LTLIBOBJS!$LTLIBOBJS$ac_delim
11825 1.65 christos _ACEOF
11826 1.65 christos
11827 1.65 christos if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
11828 1.65 christos break
11829 1.65 christos elif $ac_last_try; then
11830 1.65 christos { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11831 1.65 christos echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11832 1.65 christos { (exit 1); exit 1; }; }
11833 1.65 christos else
11834 1.65 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11835 1.1 tv fi
11836 1.65 christos done
11837 1.65 christos
11838 1.65 christos ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11839 1.65 christos if test -n "$ac_eof"; then
11840 1.65 christos ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11841 1.65 christos ac_eof=`expr $ac_eof + 1`
11842 1.65 christos fi
11843 1.65 christos
11844 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11845 1.65 christos cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11846 1.65 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11847 1.65 christos _ACEOF
11848 1.65 christos sed '
11849 1.65 christos s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11850 1.65 christos s/^/s,@/; s/!/@,|#_!!_#|/
11851 1.65 christos :n
11852 1.65 christos t n
11853 1.65 christos s/'"$ac_delim"'$/,g/; t
11854 1.65 christos s/$/\\/; p
11855 1.65 christos N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11856 1.65 christos ' >>$CONFIG_STATUS <conf$$subs.sed
11857 1.65 christos rm -f conf$$subs.sed
11858 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
11859 1.65 christos :end
11860 1.65 christos s/|#_!!_#|//g
11861 1.65 christos CEOF$ac_eof
11862 1.65 christos _ACEOF
11863 1.65 christos
11864 1.65 christos
11865 1.65 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
11866 1.65 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11867 1.65 christos # trailing colons and then remove the whole line if VPATH becomes empty
11868 1.65 christos # (actually we leave an empty line to preserve line numbers).
11869 1.65 christos if test "x$srcdir" = x.; then
11870 1.65 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
11871 1.65 christos s/:*\$(srcdir):*/:/
11872 1.65 christos s/:*\${srcdir}:*/:/
11873 1.65 christos s/:*@srcdir@:*/:/
11874 1.65 christos s/^\([^=]*=[ ]*\):*/\1/
11875 1.65 christos s/:*$//
11876 1.65 christos s/^[^=]*=[ ]*$//
11877 1.65 christos }'
11878 1.65 christos fi
11879 1.65 christos
11880 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
11881 1.1 tv fi # test -n "$CONFIG_FILES"
11882 1.1 tv
11883 1.65 christos
11884 1.65 christos for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11885 1.65 christos do
11886 1.65 christos case $ac_tag in
11887 1.65 christos :[FHLC]) ac_mode=$ac_tag; continue;;
11888 1.65 christos esac
11889 1.65 christos case $ac_mode$ac_tag in
11890 1.65 christos :[FHL]*:*);;
11891 1.65 christos :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11892 1.65 christos echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11893 1.65 christos { (exit 1); exit 1; }; };;
11894 1.65 christos :[FH]-) ac_tag=-:-;;
11895 1.65 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11896 1.65 christos esac
11897 1.65 christos ac_save_IFS=$IFS
11898 1.65 christos IFS=:
11899 1.65 christos set x $ac_tag
11900 1.65 christos IFS=$ac_save_IFS
11901 1.65 christos shift
11902 1.65 christos ac_file=$1
11903 1.65 christos shift
11904 1.65 christos
11905 1.65 christos case $ac_mode in
11906 1.65 christos :L) ac_source=$1;;
11907 1.65 christos :[FH])
11908 1.65 christos ac_file_inputs=
11909 1.65 christos for ac_f
11910 1.65 christos do
11911 1.65 christos case $ac_f in
11912 1.65 christos -) ac_f="$tmp/stdin";;
11913 1.65 christos *) # Look for the file first in the build tree, then in the source tree
11914 1.65 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
11915 1.65 christos # because $ac_f cannot contain `:'.
11916 1.65 christos test -f "$ac_f" ||
11917 1.65 christos case $ac_f in
11918 1.65 christos [\\/$]*) false;;
11919 1.65 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11920 1.65 christos esac ||
11921 1.65 christos { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11922 1.65 christos echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11923 1.65 christos { (exit 1); exit 1; }; };;
11924 1.65 christos esac
11925 1.65 christos ac_file_inputs="$ac_file_inputs $ac_f"
11926 1.65 christos done
11927 1.65 christos
11928 1.65 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
11929 1.65 christos # use $as_me), people would be surprised to read:
11930 1.65 christos # /* config.h. Generated by config.status. */
11931 1.65 christos configure_input="Generated from "`IFS=:
11932 1.65 christos echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11933 1.65 christos if test x"$ac_file" != x-; then
11934 1.65 christos configure_input="$ac_file. $configure_input"
11935 1.65 christos { echo "$as_me:$LINENO: creating $ac_file" >&5
11936 1.65 christos echo "$as_me: creating $ac_file" >&6;}
11937 1.65 christos fi
11938 1.65 christos
11939 1.65 christos case $ac_tag in
11940 1.65 christos *:-:* | *:-) cat >"$tmp/stdin";;
11941 1.65 christos esac
11942 1.65 christos ;;
11943 1.1 tv esac
11944 1.1 tv
11945 1.65 christos ac_dir=`$as_dirname -- "$ac_file" ||
11946 1.65 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11947 1.65 christos X"$ac_file" : 'X\(//\)[^/]' \| \
11948 1.65 christos X"$ac_file" : 'X\(//\)$' \| \
11949 1.65 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11950 1.1 tv echo X"$ac_file" |
11951 1.65 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11952 1.65 christos s//\1/
11953 1.65 christos q
11954 1.65 christos }
11955 1.65 christos /^X\(\/\/\)[^/].*/{
11956 1.65 christos s//\1/
11957 1.65 christos q
11958 1.65 christos }
11959 1.65 christos /^X\(\/\/\)$/{
11960 1.65 christos s//\1/
11961 1.65 christos q
11962 1.65 christos }
11963 1.65 christos /^X\(\/\).*/{
11964 1.65 christos s//\1/
11965 1.65 christos q
11966 1.65 christos }
11967 1.65 christos s/.*/./; q'`
11968 1.65 christos { as_dir="$ac_dir"
11969 1.65 christos case $as_dir in #(
11970 1.65 christos -*) as_dir=./$as_dir;;
11971 1.63 apb esac
11972 1.65 christos test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11973 1.65 christos as_dirs=
11974 1.65 christos while :; do
11975 1.65 christos case $as_dir in #(
11976 1.65 christos *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11977 1.65 christos *) as_qdir=$as_dir;;
11978 1.65 christos esac
11979 1.65 christos as_dirs="'$as_qdir' $as_dirs"
11980 1.65 christos as_dir=`$as_dirname -- "$as_dir" ||
11981 1.65 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 1.65 christos X"$as_dir" : 'X\(//\)[^/]' \| \
11983 1.65 christos X"$as_dir" : 'X\(//\)$' \| \
11984 1.65 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11985 1.65 christos echo X"$as_dir" |
11986 1.65 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 1.65 christos s//\1/
11988 1.65 christos q
11989 1.65 christos }
11990 1.65 christos /^X\(\/\/\)[^/].*/{
11991 1.65 christos s//\1/
11992 1.65 christos q
11993 1.65 christos }
11994 1.65 christos /^X\(\/\/\)$/{
11995 1.65 christos s//\1/
11996 1.65 christos q
11997 1.65 christos }
11998 1.65 christos /^X\(\/\).*/{
11999 1.65 christos s//\1/
12000 1.65 christos q
12001 1.65 christos }
12002 1.65 christos s/.*/./; q'`
12003 1.65 christos test -d "$as_dir" && break
12004 1.65 christos done
12005 1.65 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
12006 1.65 christos } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12007 1.65 christos echo "$as_me: error: cannot create directory $as_dir" >&2;}
12008 1.65 christos { (exit 1); exit 1; }; }; }
12009 1.65 christos ac_builddir=.
12010 1.65 christos
12011 1.65 christos case "$ac_dir" in
12012 1.65 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12013 1.65 christos *)
12014 1.65 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12015 1.65 christos # A ".." for each directory in $ac_dir_suffix.
12016 1.65 christos ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12017 1.65 christos case $ac_top_builddir_sub in
12018 1.65 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12019 1.65 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12020 1.65 christos esac ;;
12021 1.65 christos esac
12022 1.65 christos ac_abs_top_builddir=$ac_pwd
12023 1.65 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
12024 1.65 christos # for backward compatibility:
12025 1.65 christos ac_top_builddir=$ac_top_build_prefix
12026 1.65 christos
12027 1.65 christos case $srcdir in
12028 1.65 christos .) # We are building in place.
12029 1.65 christos ac_srcdir=.
12030 1.65 christos ac_top_srcdir=$ac_top_builddir_sub
12031 1.65 christos ac_abs_top_srcdir=$ac_pwd ;;
12032 1.65 christos [\\/]* | ?:[\\/]* ) # Absolute name.
12033 1.65 christos ac_srcdir=$srcdir$ac_dir_suffix;
12034 1.65 christos ac_top_srcdir=$srcdir
12035 1.65 christos ac_abs_top_srcdir=$srcdir ;;
12036 1.65 christos *) # Relative name.
12037 1.65 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12038 1.65 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
12039 1.65 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12040 1.65 christos esac
12041 1.65 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12042 1.65 christos
12043 1.1 tv
12044 1.65 christos case $ac_mode in
12045 1.65 christos :F)
12046 1.65 christos #
12047 1.65 christos # CONFIG_FILE
12048 1.65 christos #
12049 1.65 christos
12050 1.65 christos _ACEOF
12051 1.1 tv
12052 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
12053 1.65 christos # If the template does not know about datarootdir, expand it.
12054 1.65 christos # FIXME: This hack should be removed a few years after 2.60.
12055 1.65 christos ac_datarootdir_hack=; ac_datarootdir_seen=
12056 1.65 christos
12057 1.65 christos case `sed -n '/datarootdir/ {
12058 1.65 christos p
12059 1.65 christos q
12060 1.65 christos }
12061 1.65 christos /@datadir@/p
12062 1.65 christos /@docdir@/p
12063 1.65 christos /@infodir@/p
12064 1.65 christos /@localedir@/p
12065 1.65 christos /@mandir@/p
12066 1.65 christos ' $ac_file_inputs` in
12067 1.65 christos *datarootdir*) ac_datarootdir_seen=yes;;
12068 1.65 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12069 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12070 1.65 christos echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12071 1.65 christos _ACEOF
12072 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
12073 1.65 christos ac_datarootdir_hack='
12074 1.65 christos s&@datadir@&$datadir&g
12075 1.65 christos s&@docdir@&$docdir&g
12076 1.65 christos s&@infodir@&$infodir&g
12077 1.65 christos s&@localedir@&$localedir&g
12078 1.65 christos s&@mandir@&$mandir&g
12079 1.65 christos s&\\\${datarootdir}&$datarootdir&g' ;;
12080 1.65 christos esac
12081 1.65 christos _ACEOF
12082 1.1 tv
12083 1.65 christos # Neutralize VPATH when `$srcdir' = `.'.
12084 1.65 christos # Shell code in configure.ac might set extrasub.
12085 1.65 christos # FIXME: do we really want to maintain this feature?
12086 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
12087 1.1 tv sed "$ac_vpsub
12088 1.1 tv $extrasub
12089 1.65 christos _ACEOF
12090 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
12091 1.1 tv :t
12092 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12093 1.65 christos s&@configure_input@&$configure_input&;t t
12094 1.65 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
12095 1.65 christos s&@srcdir@&$ac_srcdir&;t t
12096 1.65 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
12097 1.65 christos s&@top_srcdir@&$ac_top_srcdir&;t t
12098 1.65 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12099 1.65 christos s&@builddir@&$ac_builddir&;t t
12100 1.65 christos s&@abs_builddir@&$ac_abs_builddir&;t t
12101 1.65 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12102 1.65 christos $ac_datarootdir_hack
12103 1.65 christos " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12104 1.65 christos
12105 1.65 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12106 1.65 christos { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12107 1.65 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12108 1.65 christos { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12109 1.65 christos which seems to be undefined. Please make sure it is defined." >&5
12110 1.65 christos echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12111 1.65 christos which seems to be undefined. Please make sure it is defined." >&2;}
12112 1.1 tv
12113 1.65 christos rm -f "$tmp/stdin"
12114 1.1 tv case $ac_file in
12115 1.65 christos -) cat "$tmp/out"; rm -f "$tmp/out";;
12116 1.65 christos *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12117 1.1 tv esac
12118 1.65 christos ;;
12119 1.65 christos :H)
12120 1.65 christos #
12121 1.65 christos # CONFIG_HEADER
12122 1.65 christos #
12123 1.65 christos _ACEOF
12124 1.65 christos
12125 1.65 christos # Transform confdefs.h into a sed script `conftest.defines', that
12126 1.65 christos # substitutes the proper values into config.h.in to produce config.h.
12127 1.65 christos rm -f conftest.defines conftest.tail
12128 1.65 christos # First, append a space to every undef/define line, to ease matching.
12129 1.65 christos echo 's/$/ /' >conftest.defines
12130 1.65 christos # Then, protect against being on the right side of a sed subst, or in
12131 1.65 christos # an unquoted here document, in config.status. If some macros were
12132 1.65 christos # called several times there might be several #defines for the same
12133 1.65 christos # symbol, which is useless. But do not sort them, since the last
12134 1.65 christos # AC_DEFINE must be honored.
12135 1.65 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12136 1.65 christos # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12137 1.65 christos # NAME is the cpp macro being defined, VALUE is the value it is being given.
12138 1.65 christos # PARAMS is the parameter list in the macro definition--in most cases, it's
12139 1.65 christos # just an empty string.
12140 1.65 christos ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12141 1.65 christos ac_dB='\\)[ (].*,\\1define\\2'
12142 1.65 christos ac_dC=' '
12143 1.65 christos ac_dD=' ,'
12144 1.1 tv
12145 1.65 christos uniq confdefs.h |
12146 1.65 christos sed -n '
12147 1.65 christos t rset
12148 1.65 christos :rset
12149 1.65 christos s/^[ ]*#[ ]*define[ ][ ]*//
12150 1.65 christos t ok
12151 1.65 christos d
12152 1.65 christos :ok
12153 1.65 christos s/[\\&,]/\\&/g
12154 1.65 christos s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12155 1.65 christos s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12156 1.65 christos ' >>conftest.defines
12157 1.1 tv
12158 1.65 christos # Remove the space that was appended to ease matching.
12159 1.65 christos # Then replace #undef with comments. This is necessary, for
12160 1.1 tv # example, in the case of _POSIX_SOURCE, which is predefined and required
12161 1.1 tv # on some systems where configure will not decide to define it.
12162 1.65 christos # (The regexp can be short, since the line contains either #define or #undef.)
12163 1.65 christos echo 's/ $//
12164 1.65 christos s,^[ #]*u.*,/* & */,' >>conftest.defines
12165 1.65 christos
12166 1.65 christos # Break up conftest.defines:
12167 1.65 christos ac_max_sed_lines=50
12168 1.65 christos
12169 1.65 christos # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12170 1.65 christos # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12171 1.65 christos # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12172 1.65 christos # et cetera.
12173 1.65 christos ac_in='$ac_file_inputs'
12174 1.65 christos ac_out='"$tmp/out1"'
12175 1.65 christos ac_nxt='"$tmp/out2"'
12176 1.65 christos
12177 1.65 christos while :
12178 1.1 tv do
12179 1.65 christos # Write a here document:
12180 1.65 christos cat >>$CONFIG_STATUS <<_ACEOF
12181 1.65 christos # First, check the format of the line:
12182 1.65 christos cat >"\$tmp/defines.sed" <<\\CEOF
12183 1.65 christos /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12184 1.65 christos /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12185 1.65 christos b
12186 1.65 christos :def
12187 1.65 christos _ACEOF
12188 1.65 christos sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12189 1.1 tv echo 'CEOF
12190 1.65 christos sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12191 1.65 christos ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12192 1.65 christos sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12193 1.65 christos grep . conftest.tail >/dev/null || break
12194 1.1 tv rm -f conftest.defines
12195 1.1 tv mv conftest.tail conftest.defines
12196 1.1 tv done
12197 1.65 christos rm -f conftest.defines conftest.tail
12198 1.65 christos
12199 1.65 christos echo "ac_result=$ac_in" >>$CONFIG_STATUS
12200 1.65 christos cat >>$CONFIG_STATUS <<\_ACEOF
12201 1.1 tv if test x"$ac_file" != x-; then
12202 1.65 christos echo "/* $configure_input */" >"$tmp/config.h"
12203 1.65 christos cat "$ac_result" >>"$tmp/config.h"
12204 1.65 christos if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12205 1.65 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12206 1.1 tv echo "$as_me: $ac_file is unchanged" >&6;}
12207 1.1 tv else
12208 1.1 tv rm -f $ac_file
12209 1.65 christos mv "$tmp/config.h" $ac_file
12210 1.1 tv fi
12211 1.1 tv else
12212 1.65 christos echo "/* $configure_input */"
12213 1.65 christos cat "$ac_result"
12214 1.1 tv fi
12215 1.65 christos rm -f "$tmp/out12"
12216 1.65 christos ;;
12217 1.65 christos
12218 1.65 christos
12219 1.65 christos esac
12220 1.65 christos
12221 1.65 christos done # for ac_tag
12222 1.1 tv
12223 1.1 tv
12224 1.1 tv { (exit 0); exit 0; }
12225 1.65 christos _ACEOF
12226 1.1 tv chmod +x $CONFIG_STATUS
12227 1.1 tv ac_clean_files=$ac_clean_files_save
12228 1.1 tv
12229 1.65 christos
12230 1.1 tv # configure is writing to config.log, and then calls config.status.
12231 1.1 tv # config.status does its own redirection, appending to config.log.
12232 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
12233 1.1 tv # by configure, so config.status won't be able to write to it; its
12234 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
12235 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
12236 1.1 tv # appended to by config.status. When coming back to configure, we
12237 1.1 tv # need to make the FD available again.
12238 1.1 tv if test "$no_create" != yes; then
12239 1.1 tv ac_cs_success=:
12240 1.65 christos ac_config_status_args=
12241 1.65 christos test "$silent" = yes &&
12242 1.65 christos ac_config_status_args="$ac_config_status_args --quiet"
12243 1.1 tv exec 5>/dev/null
12244 1.65 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12245 1.1 tv exec 5>>config.log
12246 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12247 1.1 tv # would make configure fail if this is the last instruction.
12248 1.1 tv $ac_cs_success || { (exit 1); exit 1; }
12249 1.1 tv fi
12250 1.1 tv
12251