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