improve of cmpl.
[bush.git] / configure
blobc684fdeb447f27d5a8e74b18b3811ea320e828fd
1 #! /bin/sh
2 # From configure.ac for Bush 5.1, version 5.022.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for bush 5.1-release.
6 # Report bugs to <bug-bush@gnu.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bush@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
303 return $1
304 } # as_fn_set_status
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
347 /^X\(\/\/\)$/{
348 s//\1/
351 /^X\(\/\).*/{
352 s//\1/
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362 } # as_fn_mkdir_p
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
380 eval $1+=\$2
382 else
383 as_fn_append ()
385 eval $1=\$$1\$2
387 fi # as_fn_append
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
397 as_val=$(( $* ))
399 else
400 as_fn_arith ()
402 as_val=`expr "$@" || test $? -eq 1`
404 fi # as_fn_arith
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
451 /^X\/\(\/\/\)$/{
452 s//\1/
455 /^X\/\(\/\).*/{
456 s//\1/
459 s/.*/./; q'`
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
482 :lineno
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
514 ECHO_N='-n';;
515 esac
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
538 else
539 as_ln_s='cp -pR'
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570 # Initializations.
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
581 # Identity of this package.
582 PACKAGE_NAME='bush'
583 PACKAGE_TARNAME='bush'
584 PACKAGE_VERSION='5.1-release'
585 PACKAGE_STRING='bush 5.1-release'
586 PACKAGE_BUGREPORT='bug-bush@gnu.org'
587 PACKAGE_URL=''
589 ac_unique_file="src/shell.h"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
626 gt_needs=
627 ac_header_list=
628 gl_use_threads_default=
629 ac_func_list=
630 ac_subst_vars='LTLIBOBJS
631 LOCAL_DEFS
632 LOCAL_LDFLAGS
633 LOCAL_CFLAGS
634 LOCAL_LIBS
635 MALLOC_DEBUG
636 DEBUG
637 RELSTATUS
638 BUSHVERS
639 headersdir
640 loadablesdir
641 BUILD_DIR
642 incdir
643 PROFILE_FLAGS
644 SHOBJ_STATUS
645 SHOBJ_LIBS
646 SHOBJ_XLDFLAGS
647 SHOBJ_LDFLAGS
648 SHOBJ_LD
649 SHOBJ_CFLAGS
650 SHOBJ_CC
651 JOBS_O
652 TERMCAP_DEP
653 TERMCAP_LIB
654 SIGLIST_O
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
658 LIBINTL_H
659 INTL_INC
660 INTL_DEP
661 LIBOBJS
662 POSUB
663 LTLIBINTL
664 LIBINTL
665 INTLLIBS
666 INTL_LIBTOOL_SUFFIX_PREFIX
667 INTLOBJS
668 GENCAT
669 INSTOBJEXT
670 DATADIRNAME
671 CATOBJEXT
672 USE_INCLUDED_LIBINTL
673 BUILD_INCLUDED_LIBINTL
674 WINDRES
675 WOE32
676 WOE32DLL
677 HAVE_NAMELESS_LOCALES
678 HAVE_WPRINTF
679 HAVE_NEWLOCALE
680 HAVE_SNPRINTF
681 HAVE_ASPRINTF
682 HAVE_POSIX_PRINTF
683 INTL_DEFAULT_VERBOSITY
684 ARFLAGS
685 INTL_MACOSX_LIBS
686 GLIBC21
687 GNULIB_OVERRIDES_WINT_T
688 INTLBISON
689 LTLIBICONV
690 LIBICONV
691 LTLIBMULTITHREAD
692 LIBMULTITHREAD
693 LTLIBTHREAD
694 LIBTHREAD
695 LIBPTH_PREFIX
696 LTLIBPTH
697 LIBPTH
698 PRI_MACROS_BROKEN
699 ALLOCA
700 HAVE_VISIBILITY
701 CFLAG_VISIBILITY
702 GLIBC2
703 XGETTEXT_EXTRA_OPTIONS
704 MSGMERGE
705 XGETTEXT_015
706 XGETTEXT
707 GMSGFMT_015
708 MSGFMT_015
709 GMSGFMT
710 MSGFMT
711 GETTEXT_MACRO_VERSION
712 USE_NLS
714 MKDIR_P
715 SIZE
716 MAKE_SHELL
717 SET_MAKE
718 YFLAGS
719 YACC
720 RANLIB
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 TILDE_LIB
726 HIST_LIBDIR
727 HISTORY_DEP
728 HISTORY_LIB
729 RL_INCLUDE
730 RL_INCLUDEDIR
731 RL_LIBDIR
732 READLINE_DEP
733 READLINE_LIB
734 RL_MINOR
735 RL_MAJOR
736 RL_VERSION
737 LIBS_FOR_BUILD
738 STATIC_LD
739 SIGNAMES_O
740 SIGNAMES_H
741 CROSS_COMPILE
742 EGREP
743 GREP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
752 HELPSTRINGS
753 HELPFILES_TARGET
754 HELPINSTALL
755 HELPDIRDEFINE
756 HELPDIR
757 MALLOC_DEP
758 MALLOC_LDFLAGS
759 MALLOC_LIBRARY
760 MALLOC_LIB
761 MALLOC_SRC
762 MALLOC_TARGET
763 TESTSCRIPT
764 CPPFLAGS_FOR_BUILD
765 LDFLAGS_FOR_BUILD
766 CFLAGS_FOR_BUILD
767 CC_FOR_BUILD
768 DEBUGGER_START_FILE
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 runstatedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 with_afs
820 with_bush_malloc
821 with_curses
822 with_gnu_malloc
823 with_installed_readline
824 enable_minimal_config
825 enable_alias
826 enable_arith_for_command
827 enable_array_variables
828 enable_bang_history
829 enable_brace_expansion
830 enable_casemod_attributes
831 enable_casemod_expansions
832 enable_command_timing
833 enable_cond_command
834 enable_cond_regexp
835 enable_coprocesses
836 enable_debugger
837 enable_dev_fd_stat_broken
838 enable_direxpand_default
839 enable_directory_stack
840 enable_disabled_builtins
841 enable_dparen_arithmetic
842 enable_extended_glob
843 enable_extended_glob_default
844 enable_function_import
845 enable_glob_asciiranges_default
846 enable_help_builtin
847 enable_history
848 enable_job_control
849 enable_multibyte
850 enable_net_redirections
851 enable_process_substitution
852 enable_progcomp
853 enable_prompt_string_decoding
854 enable_readline
855 enable_restricted
856 enable_select
857 enable_separate_helpfiles
858 enable_single_help_strings
859 enable_strict_posix_default
860 enable_usg_echo_default
861 enable_xpg_echo_default
862 enable_mem_scramble
863 enable_profiling
864 enable_static_link
865 enable_largefile
866 enable_nls
867 enable_threads
868 with_gnu_ld
869 enable_rpath
870 with_libpth_prefix
871 with_libiconv_prefix
872 with_included_gettext
873 with_libintl_prefix
875 ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 DEBUGGER_START_FILE
879 CC_FOR_BUILD
880 CFLAGS_FOR_BUILD
881 LDFLAGS_FOR_BUILD
882 CPPFLAGS_FOR_BUILD
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
889 YACC
890 YFLAGS'
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 ac_unrecognized_opts=
897 ac_unrecognized_sep=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 runstatedir='${localstatedir}/run'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
942 ac_prev=
943 ac_dashdash=
944 for ac_option
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
963 ac_dashdash=yes ;;
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
982 --config-cache | -C)
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1007 "*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -runstatedir | --runstatedir | --runstatedi | --runstated \
1183 | --runstate | --runstat | --runsta | --runst | --runs \
1184 | --run | --ru | --r)
1185 ac_prev=runstatedir ;;
1186 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1187 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1188 | --run=* | --ru=* | --r=*)
1189 runstatedir=$ac_optarg ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir runstatedir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1393 /^X\(\/\/\)$/{
1394 s//\1/
1397 /^X\(\/\).*/{
1398 s//\1/
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1406 else
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 done
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441 \`configure' configures bush 5.1-release to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1450 Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 [PREFIX]
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/bush]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of bush 5.1-release:";;
1508 esac
1509 cat <<\_ACEOF
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-minimal-config a minimal sh-like configuration
1516 --enable-alias enable shell aliases
1517 --enable-arith-for-command
1518 enable arithmetic for command
1519 --enable-array-variables
1520 include shell array variables
1521 --enable-bang-history turn on csh-style history substitution
1522 --enable-brace-expansion
1523 include brace expansion
1524 --enable-casemod-attributes
1525 include case-modifying variable attributes
1526 --enable-casemod-expansions
1527 include case-modifying word expansions
1528 --enable-command-timing enable the time reserved word and command timing
1529 --enable-cond-command enable the conditional command
1530 --enable-cond-regexp enable extended regular expression matching in
1531 conditional commands
1532 --enable-coprocesses enable coprocess support and the coproc reserved
1533 word
1534 --enable-debugger enable support for bush debugger
1535 --enable-dev-fd-stat-broken
1536 enable this option if stat on /dev/fd/N and fstat on
1537 file descriptor N don't return the same results
1538 --enable-direxpand-default
1539 enable the direxpand shell option by default
1540 --enable-directory-stack
1541 enable builtins pushd/popd/dirs
1542 --enable-disabled-builtins
1543 allow disabled builtins to still be invoked
1544 --enable-dparen-arithmetic
1545 include ((...)) command
1546 --enable-extended-glob include ksh-style extended pattern matching
1547 --enable-extended-glob-default
1548 force extended pattern matching to be enabled by
1549 default
1550 --enable-function-import
1551 allow bush to import exported function definitions
1552 by default
1553 --enable-glob-asciiranges-default
1554 force bracket range expressions in pattern matching
1555 to use the C locale by default
1556 --enable-help-builtin include the help builtin
1557 --enable-history turn on command history
1558 --enable-job-control enable job control features
1559 --enable-multibyte enable multibyte characters if OS supports them
1560 --enable-net-redirections
1561 enable /dev/tcp/host/port redirection
1562 --enable-process-substitution
1563 enable process substitution
1564 --enable-progcomp enable programmable completion and the complete
1565 builtin
1566 --enable-prompt-string-decoding
1567 turn on escape character decoding in prompts
1568 --enable-readline turn on command line editing
1569 --enable-restricted enable a restricted shell
1570 --enable-select include select command
1571 --enable-separate-helpfiles
1572 use external files for help builtin documentation
1573 --enable-single-help-strings
1574 store help documentation as a single string to ease
1575 translation
1576 --enable-strict-posix-default
1577 configure bush to be posix-conformant by default
1578 --enable-usg-echo-default
1579 a synonym for --enable-xpg-echo-default
1580 --enable-xpg-echo-default
1581 make the echo builtin expand escape sequences by
1582 default
1583 --enable-mem-scramble scramble memory on calls to malloc and free
1584 --enable-profiling allow profiling with gprof
1585 --enable-static-link link bush statically, for use as a root shell
1586 --disable-largefile omit support for large files
1587 --disable-nls do not use Native Language Support
1588 --enable-threads={posix|solaris|pth|windows}
1589 specify multithreading API
1590 --disable-threads build without multithread safety
1591 --disable-rpath do not hardcode runtime library paths
1593 Optional Packages:
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-afs if you are running AFS
1597 --with-bush-malloc use the Bush version of malloc
1598 --with-curses use the curses library instead of the termcap
1599 library
1600 --with-gnu-malloc synonym for --with-bush-malloc
1601 --with-installed-readline
1602 use a version of the readline library that is
1603 already installed
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1606 --without-libpth-prefix don't search for libpth in includedir and libdir
1607 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1608 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1609 --with-included-gettext use the GNU gettext library included here
1610 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1611 --without-libintl-prefix don't search for libintl in includedir and libdir
1613 Some influential environment variables:
1614 DEBUGGER_START_FILE
1615 location of bush debugger initialization file
1616 CC_FOR_BUILD
1617 C compiler used when compiling binaries used only at build time
1618 CFLAGS_FOR_BUILD
1619 Compilation options (CFLAGS) used when compiling binaries used
1620 only at build time
1621 LDFLAGS_FOR_BUILD
1622 Linker options (LDFLAGS) used when compiling binaries used only
1623 at build time
1624 CPPFLAGS_FOR_BUILD
1625 C preprocessor options (CPPFLAGS) used when compiling binaries
1626 used only at build time
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CPP C preprocessor
1635 YACC The `Yet Another Compiler Compiler' implementation to use.
1636 Defaults to the first program found out of: `bison -y', `byacc',
1637 `yacc'.
1638 YFLAGS The list of arguments that will be passed by default to $YACC.
1639 This script will default YFLAGS to the empty string to avoid a
1640 default value of `-d' given by some make applications.
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to <bug-bush@gnu.org>.
1646 _ACEOF
1647 ac_status=$?
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 bush configure 5.1-release
1709 generated by GNU Autoconf 2.69
1711 Copyright (C) 2012 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_link LINENO
1761 # -----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_link ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_link
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } > conftest.i && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1836 ac_retval=1
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_cpp
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_header_mongrel ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval \${$3+:} false; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 else
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1871 else
1872 ac_header_compiler=no
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1887 else
1888 ac_header_preproc=no
1890 rm -f conftest.err conftest.i conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896 yes:no: )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 no:yes:* )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ( $as_echo "## ------------------------------- ##
1914 ## Report this to bug-bush@gnu.org ##
1915 ## ------------------------------- ##"
1916 ) | sed "s/^/$as_me: WARNING: /" >&2
1918 esac
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=\$ac_header_compiler"
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_mongrel
1934 # ac_fn_c_try_run LINENO
1935 # ----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1937 # that executables *can* be run.
1938 ac_fn_c_try_run ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>&5
1949 ac_status=$?
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1952 { { case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_try") 2>&5
1959 ac_status=$?
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; }; }; then :
1962 ac_retval=0
1963 else
1964 $as_echo "$as_me: program exited with status $ac_status" >&5
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=$ac_status
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_run
1976 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists and can be compiled using the include files in
1979 # INCLUDES, setting the cache variable VAR accordingly.
1980 ac_fn_c_check_header_compile ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=yes"
1995 else
1996 eval "$3=no"
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_header_compile
2007 # ac_fn_c_check_func LINENO FUNC VAR
2008 # ----------------------------------
2009 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2010 ac_fn_c_check_func ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2022 #define $2 innocuous_$2
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char $2 (); below.
2026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2027 <limits.h> exists even on freestanding compilers. */
2029 #ifdef __STDC__
2030 # include <limits.h>
2031 #else
2032 # include <assert.h>
2033 #endif
2035 #undef $2
2037 /* Override any GCC internal prototype to avoid an error.
2038 Use char because int might match the return type of a GCC
2039 builtin and then its argument prototype would still apply. */
2040 #ifdef __cplusplus
2041 extern "C"
2042 #endif
2043 char $2 ();
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined __stub_$2 || defined __stub___$2
2048 choke me
2049 #endif
2052 main ()
2054 return $2 ();
2056 return 0;
2058 _ACEOF
2059 if ac_fn_c_try_link "$LINENO"; then :
2060 eval "$3=yes"
2061 else
2062 eval "$3=no"
2064 rm -f core conftest.err conftest.$ac_objext \
2065 conftest$ac_exeext conftest.$ac_ext
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_func
2074 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075 # -------------------------------------------
2076 # Tests whether TYPE exists after having included INCLUDES, setting cache
2077 # variable VAR accordingly.
2078 ac_fn_c_check_type ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 eval "$3=no"
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 if (sizeof ($2))
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 if (sizeof (($2)))
2107 return 0;
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2114 else
2115 eval "$3=yes"
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_type
2128 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2129 # ---------------------------------------------
2130 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2131 # accordingly.
2132 ac_fn_c_check_decl ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 as_decl_name=`echo $2|sed 's/ *(.*//'`
2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 #ifndef $as_decl_name
2149 #ifdef __cplusplus
2150 (void) $as_decl_use;
2151 #else
2152 (void) $as_decl_name;
2153 #endif
2154 #endif
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$3=yes"
2162 else
2163 eval "$3=no"
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_c_check_decl
2174 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2175 # --------------------------------------------
2176 # Tries to find the compile-time value of EXPR in a program that includes
2177 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2178 # computed
2179 ac_fn_c_compute_int ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if test "$cross_compiling" = yes; then
2183 # Depending upon the size, compute the lo and hi bounds.
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 main ()
2190 static int test_array [1 - 2 * !(($2) >= 0)];
2191 test_array [0] = 0;
2192 return test_array [0];
2195 return 0;
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_lo=0 ac_mid=0
2200 while :; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208 test_array [0] = 0;
2209 return test_array [0];
2212 return 0;
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 ac_hi=$ac_mid; break
2217 else
2218 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2219 if test $ac_lo -le $ac_mid; then
2220 ac_lo= ac_hi=
2221 break
2223 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2232 main ()
2234 static int test_array [1 - 2 * !(($2) < 0)];
2235 test_array [0] = 0;
2236 return test_array [0];
2239 return 0;
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 ac_hi=-1 ac_mid=-1
2244 while :; do
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 test_array [0] = 0;
2253 return test_array [0];
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 ac_lo=$ac_mid; break
2261 else
2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2263 if test $ac_mid -le $ac_hi; then
2264 ac_lo= ac_hi=
2265 break
2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 else
2272 ac_lo= ac_hi=
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid
2296 else
2297 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 done
2301 case $ac_lo in #((
2302 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2303 '') ac_retval=1 ;;
2304 esac
2305 else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 static long int longval () { return $2; }
2310 static unsigned long int ulongval () { return $2; }
2311 #include <stdio.h>
2312 #include <stdlib.h>
2314 main ()
2317 FILE *f = fopen ("conftest.val", "w");
2318 if (! f)
2319 return 1;
2320 if (($2) < 0)
2322 long int i = longval ();
2323 if (i != ($2))
2324 return 1;
2325 fprintf (f, "%ld", i);
2327 else
2329 unsigned long int i = ulongval ();
2330 if (i != ($2))
2331 return 1;
2332 fprintf (f, "%lu", i);
2334 /* Do not output a trailing newline, as this causes \r\n confusion
2335 on some platforms. */
2336 return ferror (f) || fclose (f) != 0;
2339 return 0;
2341 _ACEOF
2342 if ac_fn_c_try_run "$LINENO"; then :
2343 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2344 else
2345 ac_retval=1
2347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2348 conftest.$ac_objext conftest.beam conftest.$ac_ext
2349 rm -f conftest.val
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 as_fn_set_status $ac_retval
2355 } # ac_fn_c_compute_int
2357 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358 # ----------------------------------------------------
2359 # Tries to find if the field MEMBER exists in type AGGR, after including
2360 # INCLUDES, setting cache variable VAR accordingly.
2361 ac_fn_c_check_member ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365 $as_echo_n "checking for $2.$3... " >&6; }
2366 if eval \${$4+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 main ()
2375 static $2 ac_aggr;
2376 if (ac_aggr.$3)
2377 return 0;
2379 return 0;
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383 eval "$4=yes"
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 main ()
2391 static $2 ac_aggr;
2392 if (sizeof ac_aggr.$3)
2393 return 0;
2395 return 0;
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 eval "$4=yes"
2400 else
2401 eval "$4=no"
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 eval ac_res=\$$4
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 } # ac_fn_c_check_member
2413 cat >config.log <<_ACEOF
2414 This file contains any messages produced by compilers while
2415 running configure, to aid debugging if configure makes a mistake.
2417 It was created by bush $as_me 5.1-release, which was
2418 generated by GNU Autoconf 2.69. Invocation command line was
2420 $ $0 $@
2422 _ACEOF
2423 exec 5>>config.log
2425 cat <<_ASUNAME
2426 ## --------- ##
2427 ## Platform. ##
2428 ## --------- ##
2430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2447 _ASUNAME
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 $as_echo "PATH: $as_dir"
2455 done
2456 IFS=$as_save_IFS
2458 } >&5
2460 cat >&5 <<_ACEOF
2463 ## ----------- ##
2464 ## Core tests. ##
2465 ## ----------- ##
2467 _ACEOF
2470 # Keep a trace of the command line.
2471 # Strip out --no-create and --no-recursion so they do not pile up.
2472 # Strip out --silent because we don't want to record it for future runs.
2473 # Also quote any args containing shell meta-characters.
2474 # Make two passes to allow for proper duplicate-argument suppression.
2475 ac_configure_args=
2476 ac_configure_args0=
2477 ac_configure_args1=
2478 ac_must_keep_next=false
2479 for ac_pass in 1 2
2481 for ac_arg
2483 case $ac_arg in
2484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2486 | -silent | --silent | --silen | --sile | --sil)
2487 continue ;;
2488 *\'*)
2489 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 esac
2491 case $ac_pass in
2492 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2494 as_fn_append ac_configure_args1 " '$ac_arg'"
2495 if test $ac_must_keep_next = true; then
2496 ac_must_keep_next=false # Got value, back to normal.
2497 else
2498 case $ac_arg in
2499 *=* | --config-cache | -C | -disable-* | --disable-* \
2500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2502 | -with-* | --with-* | -without-* | --without-* | --x)
2503 case "$ac_configure_args0 " in
2504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2505 esac
2507 -* ) ac_must_keep_next=true ;;
2508 esac
2510 as_fn_append ac_configure_args " '$ac_arg'"
2512 esac
2513 done
2514 done
2515 { ac_configure_args0=; unset ac_configure_args0;}
2516 { ac_configure_args1=; unset ac_configure_args1;}
2518 # When interrupted or exit'd, cleanup temporary files, and complete
2519 # config.log. We remove comments because anyway the quotes in there
2520 # would cause problems or look ugly.
2521 # WARNING: Use '\'' to represent an apostrophe within the trap.
2522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2523 trap 'exit_status=$?
2524 # Save into config.log some information that might help in debugging.
2526 echo
2528 $as_echo "## ---------------- ##
2529 ## Cache variables. ##
2530 ## ---------------- ##"
2531 echo
2532 # The following way of writing the cache mishandles newlines in values,
2534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2535 eval ac_val=\$$ac_var
2536 case $ac_val in #(
2537 *${as_nl}*)
2538 case $ac_var in #(
2539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2541 esac
2542 case $ac_var in #(
2543 _ | IFS | as_nl) ;; #(
2544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2545 *) { eval $ac_var=; unset $ac_var;} ;;
2546 esac ;;
2547 esac
2548 done
2549 (set) 2>&1 |
2550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2551 *${as_nl}ac_space=\ *)
2552 sed -n \
2553 "s/'\''/'\''\\\\'\'''\''/g;
2554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2555 ;; #(
2557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559 esac |
2560 sort
2562 echo
2564 $as_echo "## ----------------- ##
2565 ## Output variables. ##
2566 ## ----------------- ##"
2567 echo
2568 for ac_var in $ac_subst_vars
2570 eval ac_val=\$$ac_var
2571 case $ac_val in
2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573 esac
2574 $as_echo "$ac_var='\''$ac_val'\''"
2575 done | sort
2576 echo
2578 if test -n "$ac_subst_files"; then
2579 $as_echo "## ------------------- ##
2580 ## File substitutions. ##
2581 ## ------------------- ##"
2582 echo
2583 for ac_var in $ac_subst_files
2585 eval ac_val=\$$ac_var
2586 case $ac_val in
2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 esac
2589 $as_echo "$ac_var='\''$ac_val'\''"
2590 done | sort
2591 echo
2594 if test -s confdefs.h; then
2595 $as_echo "## ----------- ##
2596 ## confdefs.h. ##
2597 ## ----------- ##"
2598 echo
2599 cat confdefs.h
2600 echo
2602 test "$ac_signal" != 0 &&
2603 $as_echo "$as_me: caught signal $ac_signal"
2604 $as_echo "$as_me: exit $exit_status"
2605 } >&5
2606 rm -f core *.core core.conftest.* &&
2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2608 exit $exit_status
2610 for ac_signal in 1 2 13 15; do
2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2612 done
2613 ac_signal=0
2615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2616 rm -f -r conftest* confdefs.h
2618 $as_echo "/* confdefs.h */" > confdefs.h
2620 # Predefined preprocessor variables.
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_NAME "$PACKAGE_NAME"
2624 _ACEOF
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2628 _ACEOF
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2632 _ACEOF
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_STRING "$PACKAGE_STRING"
2636 _ACEOF
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2640 _ACEOF
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_URL "$PACKAGE_URL"
2644 _ACEOF
2647 # Let the site file select an alternate cache file if it wants to.
2648 # Prefer an explicitly selected file to automatically selected ones.
2649 ac_site_file1=NONE
2650 ac_site_file2=NONE
2651 if test -n "$CONFIG_SITE"; then
2652 # We do not want a PATH search for config.site.
2653 case $CONFIG_SITE in #((
2654 -*) ac_site_file1=./$CONFIG_SITE;;
2655 */*) ac_site_file1=$CONFIG_SITE;;
2656 *) ac_site_file1=./$CONFIG_SITE;;
2657 esac
2658 elif test "x$prefix" != xNONE; then
2659 ac_site_file1=$prefix/share/config.site
2660 ac_site_file2=$prefix/etc/config.site
2661 else
2662 ac_site_file1=$ac_default_prefix/share/config.site
2663 ac_site_file2=$ac_default_prefix/etc/config.site
2665 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2667 test "x$ac_site_file" = xNONE && continue
2668 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2670 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2671 sed 's/^/| /' "$ac_site_file" >&5
2672 . "$ac_site_file" \
2673 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error $? "failed to load site script $ac_site_file
2676 See \`config.log' for more details" "$LINENO" 5; }
2678 done
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special files
2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2686 case $cache_file in
2687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2688 *) . "./$cache_file";;
2689 esac
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 >$cache_file
2697 gt_needs="$gt_needs need-ngettext"
2698 as_fn_append ac_header_list " stdlib.h"
2699 as_fn_append ac_header_list " unistd.h"
2700 as_fn_append ac_header_list " sys/param.h"
2701 as_fn_append ac_func_list " symlink"
2702 as_fn_append ac_func_list " uselocale"
2703 as_fn_append ac_header_list " xlocale.h"
2704 as_fn_append ac_header_list " sys/time.h"
2705 as_fn_append ac_func_list " alarm"
2706 as_fn_append ac_func_list " fpurge"
2707 as_fn_append ac_func_list " __fpurge"
2708 as_fn_append ac_func_list " snprintf"
2709 as_fn_append ac_func_list " vsnprintf"
2710 # Check that the precious variables saved in the cache have kept the same
2711 # value.
2712 ac_cache_corrupted=false
2713 for ac_var in $ac_precious_vars; do
2714 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715 eval ac_new_set=\$ac_env_${ac_var}_set
2716 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717 eval ac_new_val=\$ac_env_${ac_var}_value
2718 case $ac_old_set,$ac_new_set in
2719 set,)
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2723 ,set)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726 ac_cache_corrupted=: ;;
2727 ,);;
2729 if test "x$ac_old_val" != "x$ac_new_val"; then
2730 # differences in whitespace do not lead to failure.
2731 ac_old_val_w=`echo x $ac_old_val`
2732 ac_new_val_w=`echo x $ac_new_val`
2733 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736 ac_cache_corrupted=:
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740 eval $ac_var=\$ac_old_val
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2743 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2745 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2746 fi;;
2747 esac
2748 # Pass precious variables to config.status.
2749 if test "$ac_new_set" = set; then
2750 case $ac_new_val in
2751 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 *) ac_arg=$ac_var=$ac_new_val ;;
2753 esac
2754 case " $ac_configure_args " in
2755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2756 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2757 esac
2759 done
2760 if $ac_cache_corrupted; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 ac_aux_dir=
2783 for ac_dir in ./support "$srcdir"/./support; do
2784 if test -f "$ac_dir/install-sh"; then
2785 ac_aux_dir=$ac_dir
2786 ac_install_sh="$ac_aux_dir/install-sh -c"
2787 break
2788 elif test -f "$ac_dir/install.sh"; then
2789 ac_aux_dir=$ac_dir
2790 ac_install_sh="$ac_aux_dir/install.sh -c"
2791 break
2792 elif test -f "$ac_dir/shtool"; then
2793 ac_aux_dir=$ac_dir
2794 ac_install_sh="$ac_aux_dir/shtool install -c"
2795 break
2797 done
2798 if test -z "$ac_aux_dir"; then
2799 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2802 # These three variables are undocumented and unsupported,
2803 # and are intended to be withdrawn in a future Autoconf release.
2804 # They can cause serious problems if a builder's source tree is in a directory
2805 # whose full name contains unusual characters.
2806 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2807 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2808 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2811 ac_config_headers="$ac_config_headers config.h"
2814 BUSHVERS=5.1
2815 RELSTATUS=release
2817 case "$RELSTATUS" in
2818 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2819 *) DEBUG= MALLOC_DEBUG= ;;
2820 esac
2822 # Make sure we can run config.sub.
2823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2824 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2827 $as_echo_n "checking build system type... " >&6; }
2828 if ${ac_cv_build+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 ac_build_alias=$build_alias
2832 test "x$ac_build_alias" = x &&
2833 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2834 test "x$ac_build_alias" = x &&
2835 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2841 $as_echo "$ac_cv_build" >&6; }
2842 case $ac_cv_build in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2845 esac
2846 build=$ac_cv_build
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_build
2849 shift
2850 build_cpu=$1
2851 build_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 build_os=$*
2856 IFS=$ac_save_IFS
2857 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2861 $as_echo_n "checking host system type... " >&6; }
2862 if ${ac_cv_host+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test "x$host_alias" = x; then
2866 ac_cv_host=$ac_cv_build
2867 else
2868 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2874 $as_echo "$ac_cv_host" >&6; }
2875 case $ac_cv_host in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2878 esac
2879 host=$ac_cv_host
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_host
2882 shift
2883 host_cpu=$1
2884 host_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 host_os=$*
2889 IFS=$ac_save_IFS
2890 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2895 opt_bush_malloc=yes
2896 opt_afs=no
2897 opt_curses=no
2898 opt_with_installed_readline=no
2900 #htmldir=
2902 case "${host_cpu}-${host_os}" in
2903 # mostly obsolete platforms
2904 alpha*-*) opt_bush_malloc=no ;; # alpha running osf/1 or linux
2905 *[Cc]ray*-*) opt_bush_malloc=no ;; # Crays
2906 *-osf1*) opt_bush_malloc=no ;; # other osf/1 machines
2907 *-dgux*) opt_bush_malloc=no ;; # DG/UX machines
2908 sparc-svr4*) opt_bush_malloc=no ;; # sparc SVR4, SVR4.2
2909 m68k-sysv) opt_bush_malloc=no ;; # fixes file descriptor leak in closedir
2910 *-bsdi2.1|*-bsdi3.?) opt_bush_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2911 *-opennt*|*-interix*) opt_bush_malloc=no ;; # Interix, now owned by Microsoft
2912 *-beos*) opt_bush_malloc=no ;; # they say it's suitable
2913 # These need additional investigation
2914 sparc-linux*) opt_bush_malloc=no ;; # sparc running linux; requires ELF
2915 *-aix*) opt_bush_malloc=no ;; # AIX machines
2916 *-cygwin*) opt_bush_malloc=no ;; # Cygnus's CYGWIN environment
2917 # These lack a working sbrk(2)
2918 aarch64-freebsd*) opt_bush_malloc=no ;;
2919 riscv*-freebsd*) opt_bush_malloc=no ;;
2920 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
2921 *-nextstep*) opt_bush_malloc=no ;; # NeXT machines running NeXTstep
2922 *-openstep*) opt_bush_malloc=no ;; # i386/Sparc/HP machines running Openstep
2923 *-macos*) opt_bush_malloc=no ;; # Apple MacOS X
2924 *-rhapsody*) opt_bush_malloc=no ;; # Apple Rhapsody (MacOS X)
2925 *-darwin*) opt_bush_malloc=no ;; # Apple Darwin (MacOS X)
2926 *-machten4) opt_bush_malloc=no ;; # MachTen 4.x
2927 # Niche or non-mainstream-shell-user systems
2928 *-qnx*) opt_bush_malloc=no ;; # QNX 4.2, QNX [67].x
2929 *-nsk*) opt_bush_malloc=no ;; # HP NonStop
2930 *-haiku*) opt_bush_malloc=no ;; # Haiku OS
2931 *-genode*) opt_bush_malloc=no ;; # Genode has no sbrk
2932 esac
2934 # memory scrambling on free()
2935 case "${host_os}" in
2936 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2937 *) opt_memscramble=yes ;;
2938 esac
2943 # Check whether --with-afs was given.
2944 if test "${with_afs+set}" = set; then :
2945 withval=$with_afs; opt_afs=$withval
2949 # Check whether --with-bush-malloc was given.
2950 if test "${with_bush_malloc+set}" = set; then :
2951 withval=$with_bush_malloc; opt_bush_malloc=$withval
2955 # Check whether --with-curses was given.
2956 if test "${with_curses+set}" = set; then :
2957 withval=$with_curses; opt_curses=$withval
2961 # Check whether --with-gnu-malloc was given.
2962 if test "${with_gnu_malloc+set}" = set; then :
2963 withval=$with_gnu_malloc; opt_bush_malloc=$withval
2967 # Check whether --with-installed-readline was given.
2968 if test "${with_installed_readline+set}" = set; then :
2969 withval=$with_installed_readline; opt_with_installed_readline=$withval
2973 if test "$opt_bush_malloc" = yes; then
2974 MALLOC_TARGET=malloc
2975 MALLOC_SRC=malloc.c
2977 MALLOC_LIB='-lmalloc'
2978 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2979 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2980 MALLOC_DEP='$(MALLOC_LIBRARY)'
2982 $as_echo "#define USING_BUSH_MALLOC 1" >>confdefs.h
2984 else
2985 MALLOC_LIB=
2986 MALLOC_LIBRARY=
2987 MALLOC_LDFLAGS=
2988 MALLOC_DEP=
2991 if test "$opt_afs" = yes; then
2992 $as_echo "#define AFS 1" >>confdefs.h
2996 if test "$opt_curses" = yes; then
2997 prefer_curses=yes
3000 if test -z "${DEBUGGER_START_FILE}"; then
3001 DEBUGGER_START_FILE='${datadir}/bushdb/bushdb-main.inc'
3004 opt_minimal_config=no
3006 opt_job_control=yes
3007 opt_alias=yes
3008 opt_readline=yes
3009 opt_history=yes
3010 opt_bang_history=yes
3011 opt_dirstack=yes
3012 opt_restricted=yes
3013 opt_process_subst=yes
3014 opt_prompt_decoding=yes
3015 opt_select=yes
3016 opt_help=yes
3017 opt_array_variables=yes
3018 opt_dparen_arith=yes
3019 opt_extended_glob=yes
3020 opt_brace_expansion=yes
3021 opt_disabled_builtins=no
3022 opt_command_timing=yes
3023 opt_xpg_echo=no
3024 opt_strict_posix=no
3025 opt_cond_command=yes
3026 opt_cond_regexp=yes
3027 opt_coproc=yes
3028 opt_arith_for_command=yes
3029 opt_net_redirs=yes
3030 opt_progcomp=yes
3031 opt_separate_help=no
3032 opt_multibyte=yes
3033 opt_debugger=yes
3034 opt_single_longdoc_strings=yes
3035 opt_casemod_attrs=yes
3036 opt_casemod_expansions=yes
3037 opt_extglob_default=no
3038 opt_dircomplete_expand_default=no
3039 opt_globascii_default=yes
3040 opt_function_import=yes
3041 opt_dev_fd_stat_broken=no
3043 opt_static_link=no
3044 opt_profiling=no
3046 # Check whether --enable-minimal-config was given.
3047 if test "${enable_minimal_config+set}" = set; then :
3048 enableval=$enable_minimal_config; opt_minimal_config=$enableval
3052 if test $opt_minimal_config = yes; then
3053 opt_job_control=no opt_alias=no opt_readline=no
3054 opt_history=no opt_bang_history=no opt_dirstack=no
3055 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3056 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3057 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3058 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3059 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3060 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3061 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3062 opt_globascii_default=yes
3065 # Check whether --enable-alias was given.
3066 if test "${enable_alias+set}" = set; then :
3067 enableval=$enable_alias; opt_alias=$enableval
3070 # Check whether --enable-arith-for-command was given.
3071 if test "${enable_arith_for_command+set}" = set; then :
3072 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3075 # Check whether --enable-array-variables was given.
3076 if test "${enable_array_variables+set}" = set; then :
3077 enableval=$enable_array_variables; opt_array_variables=$enableval
3080 # Check whether --enable-bang-history was given.
3081 if test "${enable_bang_history+set}" = set; then :
3082 enableval=$enable_bang_history; opt_bang_history=$enableval
3085 # Check whether --enable-brace-expansion was given.
3086 if test "${enable_brace_expansion+set}" = set; then :
3087 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3090 # Check whether --enable-casemod-attributes was given.
3091 if test "${enable_casemod_attributes+set}" = set; then :
3092 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3095 # Check whether --enable-casemod-expansions was given.
3096 if test "${enable_casemod_expansions+set}" = set; then :
3097 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3100 # Check whether --enable-command-timing was given.
3101 if test "${enable_command_timing+set}" = set; then :
3102 enableval=$enable_command_timing; opt_command_timing=$enableval
3105 # Check whether --enable-cond-command was given.
3106 if test "${enable_cond_command+set}" = set; then :
3107 enableval=$enable_cond_command; opt_cond_command=$enableval
3110 # Check whether --enable-cond-regexp was given.
3111 if test "${enable_cond_regexp+set}" = set; then :
3112 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3115 # Check whether --enable-coprocesses was given.
3116 if test "${enable_coprocesses+set}" = set; then :
3117 enableval=$enable_coprocesses; opt_coproc=$enableval
3120 # Check whether --enable-debugger was given.
3121 if test "${enable_debugger+set}" = set; then :
3122 enableval=$enable_debugger; opt_debugger=$enableval
3125 # Check whether --enable-dev-fd-stat-broken was given.
3126 if test "${enable_dev_fd_stat_broken+set}" = set; then :
3127 enableval=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken=$enableval
3130 # Check whether --enable-direxpand-default was given.
3131 if test "${enable_direxpand_default+set}" = set; then :
3132 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3135 # Check whether --enable-directory-stack was given.
3136 if test "${enable_directory_stack+set}" = set; then :
3137 enableval=$enable_directory_stack; opt_dirstack=$enableval
3140 # Check whether --enable-disabled-builtins was given.
3141 if test "${enable_disabled_builtins+set}" = set; then :
3142 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3145 # Check whether --enable-dparen-arithmetic was given.
3146 if test "${enable_dparen_arithmetic+set}" = set; then :
3147 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3150 # Check whether --enable-extended-glob was given.
3151 if test "${enable_extended_glob+set}" = set; then :
3152 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3155 # Check whether --enable-extended-glob-default was given.
3156 if test "${enable_extended_glob_default+set}" = set; then :
3157 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3160 # Check whether --enable-function-import was given.
3161 if test "${enable_function_import+set}" = set; then :
3162 enableval=$enable_function_import; opt_function_import=$enableval
3165 # Check whether --enable-glob-asciiranges-default was given.
3166 if test "${enable_glob_asciiranges_default+set}" = set; then :
3167 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3170 # Check whether --enable-help-builtin was given.
3171 if test "${enable_help_builtin+set}" = set; then :
3172 enableval=$enable_help_builtin; opt_help=$enableval
3175 # Check whether --enable-history was given.
3176 if test "${enable_history+set}" = set; then :
3177 enableval=$enable_history; opt_history=$enableval
3180 # Check whether --enable-job-control was given.
3181 if test "${enable_job_control+set}" = set; then :
3182 enableval=$enable_job_control; opt_job_control=$enableval
3185 # Check whether --enable-multibyte was given.
3186 if test "${enable_multibyte+set}" = set; then :
3187 enableval=$enable_multibyte; opt_multibyte=$enableval
3190 # Check whether --enable-net-redirections was given.
3191 if test "${enable_net_redirections+set}" = set; then :
3192 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3195 # Check whether --enable-process-substitution was given.
3196 if test "${enable_process_substitution+set}" = set; then :
3197 enableval=$enable_process_substitution; opt_process_subst=$enableval
3200 # Check whether --enable-progcomp was given.
3201 if test "${enable_progcomp+set}" = set; then :
3202 enableval=$enable_progcomp; opt_progcomp=$enableval
3205 # Check whether --enable-prompt-string-decoding was given.
3206 if test "${enable_prompt_string_decoding+set}" = set; then :
3207 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3210 # Check whether --enable-readline was given.
3211 if test "${enable_readline+set}" = set; then :
3212 enableval=$enable_readline; opt_readline=$enableval
3215 # Check whether --enable-restricted was given.
3216 if test "${enable_restricted+set}" = set; then :
3217 enableval=$enable_restricted; opt_restricted=$enableval
3220 # Check whether --enable-select was given.
3221 if test "${enable_select+set}" = set; then :
3222 enableval=$enable_select; opt_select=$enableval
3225 # Check whether --enable-separate-helpfiles was given.
3226 if test "${enable_separate_helpfiles+set}" = set; then :
3227 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3230 # Check whether --enable-single-help-strings was given.
3231 if test "${enable_single_help_strings+set}" = set; then :
3232 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3235 # Check whether --enable-strict-posix-default was given.
3236 if test "${enable_strict_posix_default+set}" = set; then :
3237 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3240 # Check whether --enable-usg-echo-default was given.
3241 if test "${enable_usg_echo_default+set}" = set; then :
3242 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3245 # Check whether --enable-xpg-echo-default was given.
3246 if test "${enable_xpg_echo_default+set}" = set; then :
3247 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3251 # Check whether --enable-mem-scramble was given.
3252 if test "${enable_mem_scramble+set}" = set; then :
3253 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3256 # Check whether --enable-profiling was given.
3257 if test "${enable_profiling+set}" = set; then :
3258 enableval=$enable_profiling; opt_profiling=$enableval
3261 # Check whether --enable-static-link was given.
3262 if test "${enable_static_link+set}" = set; then :
3263 enableval=$enable_static_link; opt_static_link=$enableval
3274 if test $opt_alias = yes; then
3275 $as_echo "#define ALIAS 1" >>confdefs.h
3278 if test $opt_dirstack = yes; then
3279 $as_echo "#define PUSHD_AND_POPD 1" >>confdefs.h
3282 if test $opt_restricted = yes; then
3283 $as_echo "#define RESTRICTED_SHELL 1" >>confdefs.h
3286 if test $opt_process_subst = yes; then
3287 $as_echo "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3290 if test $opt_prompt_decoding = yes; then
3291 $as_echo "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3294 if test $opt_select = yes; then
3295 $as_echo "#define SELECT_COMMAND 1" >>confdefs.h
3298 if test $opt_help = yes; then
3299 $as_echo "#define HELP_BUILTIN 1" >>confdefs.h
3302 if test $opt_array_variables = yes; then
3303 $as_echo "#define ARRAY_VARS 1" >>confdefs.h
3306 if test $opt_dparen_arith = yes; then
3307 $as_echo "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3310 if test $opt_brace_expansion = yes; then
3311 $as_echo "#define BRACE_EXPANSION 1" >>confdefs.h
3314 if test $opt_disabled_builtins = yes; then
3315 $as_echo "#define DISABLED_BUILTINS 1" >>confdefs.h
3318 if test $opt_command_timing = yes; then
3319 $as_echo "#define COMMAND_TIMING 1" >>confdefs.h
3322 if test $opt_xpg_echo = yes ; then
3323 $as_echo "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3326 if test $opt_strict_posix = yes; then
3327 $as_echo "#define STRICT_POSIX 1" >>confdefs.h
3330 if test $opt_extended_glob = yes ; then
3331 $as_echo "#define EXTENDED_GLOB 1" >>confdefs.h
3334 if test $opt_extglob_default = yes; then
3335 $as_echo "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3337 else
3338 $as_echo "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3341 if test $opt_cond_command = yes ; then
3342 $as_echo "#define COND_COMMAND 1" >>confdefs.h
3345 if test $opt_cond_regexp = yes ; then
3346 $as_echo "#define COND_REGEXP 1" >>confdefs.h
3349 if test $opt_coproc = yes; then
3350 $as_echo "#define COPROCESS_SUPPORT 1" >>confdefs.h
3353 if test $opt_arith_for_command = yes; then
3354 $as_echo "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3357 if test $opt_net_redirs = yes; then
3358 $as_echo "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3361 if test $opt_progcomp = yes; then
3362 $as_echo "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3365 if test $opt_multibyte = no; then
3366 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3369 if test $opt_debugger = yes; then
3370 $as_echo "#define DEBUGGER 1" >>confdefs.h
3373 if test $opt_casemod_attrs = yes; then
3374 $as_echo "#define CASEMOD_ATTRS 1" >>confdefs.h
3377 if test $opt_casemod_expansions = yes; then
3378 $as_echo "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3381 if test $opt_dircomplete_expand_default = yes; then
3382 $as_echo "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3385 if test $opt_globascii_default = yes; then
3386 $as_echo "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3388 else
3389 $as_echo "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3392 if test $opt_function_import = yes; then
3393 $as_echo "#define FUNCTION_IMPORT 1" >>confdefs.h
3396 if test $opt_dev_fd_stat_broken = yes; then
3397 $as_echo "#define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3401 if test $opt_memscramble = yes; then
3402 $as_echo "#define MEMSCRAMBLE 1" >>confdefs.h
3406 if test "$opt_minimal_config" = yes; then
3407 TESTSCRIPT=run-minimal
3408 else
3409 TESTSCRIPT=run-all
3412 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3413 if test "$opt_separate_help" != no; then
3414 if test "$opt_separate_help" = "yes" ; then
3415 HELPDIR='${datadir}/bush'
3416 else
3417 HELPDIR=$opt_separate_help
3419 HELPDIRDEFINE='-H ${HELPDIR}'
3420 HELPINSTALL='install-help'
3421 HELPFILES_TARGET='helpdoc'
3423 HELPSTRINGS=
3424 if test "$opt_single_longdoc_strings" != "yes"; then
3425 HELPSTRINGS='-S'
3445 if test -z "$CFLAGS"; then
3446 want_auto_cflags=1
3449 echo ""
3450 echo "Beginning configuration for bush-$BUSHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3451 echo ""
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3498 ac_ct_CC=$CC
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3546 else
3547 CC="$ac_cv_prog_CC"
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3689 done
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3733 done
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744 CC=$ac_ct_CC
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 main ()
3789 return 0;
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3852 break;;
3853 esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857 else
3858 ac_file=''
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3925 main ()
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3931 return 0;
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4047 return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063 else
4064 GCC=
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 else
4091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4105 else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 struct stat;
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4162 char **p;
4163 int i;
4165 return p[i];
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4169 char *s;
4170 va_list v;
4171 va_start (v,p);
4172 s = g (p, va_arg (v,int));
4173 va_end (v);
4174 return s;
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4188 #define FOO(x) 'x'
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 int argc;
4196 char **argv;
4198 main ()
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4202 return 0;
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4219 # AC_CACHE_VAL
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4224 xno)
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 esac
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 if test -n "$want_auto_cflags"; then
4244 AUTO_CFLAGS="-g ${GCC+-O2}"
4245 AUTO_LDFLAGS="-g ${GCC+-O2}"
4246 STYLE_CFLAGS="${GCC+-Wno-parentheses} ${GCC+-Wno-format-security}"
4247 else
4248 AUTO_CFLAGS= AUTO_LDFLAGS= STYLE_CFLAGS=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4253 $as_echo_n "checking for library containing strerror... " >&6; }
4254 if ${ac_cv_search_strerror+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 ac_func_search_save_LIBS=$LIBS
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 /* Override any GCC internal prototype to avoid an error.
4262 Use char because int might match the return type of a GCC
4263 builtin and then its argument prototype would still apply. */
4264 #ifdef __cplusplus
4265 extern "C"
4266 #endif
4267 char strerror ();
4269 main ()
4271 return strerror ();
4273 return 0;
4275 _ACEOF
4276 for ac_lib in '' cposix; do
4277 if test -z "$ac_lib"; then
4278 ac_res="none required"
4279 else
4280 ac_res=-l$ac_lib
4281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4283 if ac_fn_c_try_link "$LINENO"; then :
4284 ac_cv_search_strerror=$ac_res
4286 rm -f core conftest.err conftest.$ac_objext \
4287 conftest$ac_exeext
4288 if ${ac_cv_search_strerror+:} false; then :
4289 break
4291 done
4292 if ${ac_cv_search_strerror+:} false; then :
4294 else
4295 ac_cv_search_strerror=no
4297 rm conftest.$ac_ext
4298 LIBS=$ac_func_search_save_LIBS
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4301 $as_echo "$ac_cv_search_strerror" >&6; }
4302 ac_res=$ac_cv_search_strerror
4303 if test "$ac_res" != no; then :
4304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4315 # On Suns, sometimes $CPP names a directory.
4316 if test -n "$CPP" && test -d "$CPP"; then
4317 CPP=
4319 if test -z "$CPP"; then
4320 if ${ac_cv_prog_CPP+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 # Double quotes because CPP needs to be expanded
4324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4346 else
4347 # Broken: fails on valid input.
4348 continue
4350 rm -f conftest.err conftest.i conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4360 continue
4361 else
4362 # Passes both tests.
4363 ac_preproc_ok=:
4364 break
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4368 done
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.i conftest.err conftest.$ac_ext
4371 if $ac_preproc_ok; then :
4372 break
4375 done
4376 ac_cv_prog_CPP=$CPP
4379 CPP=$ac_cv_prog_CPP
4380 else
4381 ac_cv_prog_CPP=$CPP
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4384 $as_echo "$CPP" >&6; }
4385 ac_preproc_ok=false
4386 for ac_c_preproc_warn_flag in '' yes
4388 # Use a header file that comes with gcc, so configuring glibc
4389 # with a fresh cross-compiler works.
4390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4391 # <limits.h> exists even on freestanding compilers.
4392 # On the NeXT, cc -E runs the code through the compiler's parser,
4393 # not just through cpp. "Syntax error" is here to catch this case.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #ifdef __STDC__
4397 # include <limits.h>
4398 #else
4399 # include <assert.h>
4400 #endif
4401 Syntax error
4402 _ACEOF
4403 if ac_fn_c_try_cpp "$LINENO"; then :
4405 else
4406 # Broken: fails on valid input.
4407 continue
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4411 # OK, works on sane cases. Now check whether nonexistent headers
4412 # can be detected and how.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <ac_nonexistent.h>
4416 _ACEOF
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4418 # Broken: success on invalid input.
4419 continue
4420 else
4421 # Passes both tests.
4422 ac_preproc_ok=:
4423 break
4425 rm -f conftest.err conftest.i conftest.$ac_ext
4427 done
4428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429 rm -f conftest.i conftest.err conftest.$ac_ext
4430 if $ac_preproc_ok; then :
4432 else
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details" "$LINENO" 5; }
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4447 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4448 if ${ac_cv_path_GREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -z "$GREP"; then
4452 ac_path_GREP_found=false
4453 # Loop through the user's path and test for each of PROGNAME-LIST
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_prog in grep ggrep; do
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4462 as_fn_executable_p "$ac_path_GREP" || continue
4463 # Check for GNU ac_path_GREP and select it if it is found.
4464 # Check for GNU $ac_path_GREP
4465 case `"$ac_path_GREP" --version 2>&1` in
4466 *GNU*)
4467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4469 ac_count=0
4470 $as_echo_n 0123456789 >"conftest.in"
4471 while :
4473 cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 mv "conftest.tmp" "conftest.in"
4475 cp "conftest.in" "conftest.nl"
4476 $as_echo 'GREP' >> "conftest.nl"
4477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4481 # Best one so far, save it but keep looking for a better one
4482 ac_cv_path_GREP="$ac_path_GREP"
4483 ac_path_GREP_max=$ac_count
4485 # 10*(2^10) chars as input seems more than enough
4486 test $ac_count -gt 10 && break
4487 done
4488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 esac
4491 $ac_path_GREP_found && break 3
4492 done
4493 done
4494 done
4495 IFS=$as_save_IFS
4496 if test -z "$ac_cv_path_GREP"; then
4497 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499 else
4500 ac_cv_path_GREP=$GREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4505 $as_echo "$ac_cv_path_GREP" >&6; }
4506 GREP="$ac_cv_path_GREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4510 $as_echo_n "checking for egrep... " >&6; }
4511 if ${ac_cv_path_EGREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4515 then ac_cv_path_EGREP="$GREP -E"
4516 else
4517 if test -z "$EGREP"; then
4518 ac_path_EGREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in egrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4528 as_fn_executable_p "$ac_path_EGREP" || continue
4529 # Check for GNU ac_path_EGREP and select it if it is found.
4530 # Check for GNU $ac_path_EGREP
4531 case `"$ac_path_EGREP" --version 2>&1` in
4532 *GNU*)
4533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4535 ac_count=0
4536 $as_echo_n 0123456789 >"conftest.in"
4537 while :
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'EGREP' >> "conftest.nl"
4543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_EGREP="$ac_path_EGREP"
4549 ac_path_EGREP_max=$ac_count
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4553 done
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 esac
4557 $ac_path_EGREP_found && break 3
4558 done
4559 done
4560 done
4561 IFS=$as_save_IFS
4562 if test -z "$ac_cv_path_EGREP"; then
4563 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4565 else
4566 ac_cv_path_EGREP=$EGREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if ${ac_cv_header_stdc+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <stdlib.h>
4584 #include <stdarg.h>
4585 #include <string.h>
4586 #include <float.h>
4589 main ()
4593 return 0;
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_header_stdc=yes
4598 else
4599 ac_cv_header_stdc=no
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <string.h>
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev/null 2>&1; then :
4613 else
4614 ac_cv_header_stdc=no
4616 rm -f conftest*
4620 if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <stdlib.h>
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev/null 2>&1; then :
4630 else
4631 ac_cv_header_stdc=no
4633 rm -f conftest*
4637 if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then :
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <ctype.h>
4645 #include <stdlib.h>
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 #else
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #endif
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659 main ()
4661 int i;
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4665 return 2;
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_run "$LINENO"; then :
4671 else
4672 ac_cv_header_stdc=no
4674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4675 conftest.$ac_objext conftest.beam conftest.$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4681 $as_echo "$ac_cv_header_stdc" >&6; }
4682 if test $ac_cv_header_stdc = yes; then
4684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4690 inttypes.h stdint.h unistd.h
4691 do :
4692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4696 cat >>confdefs.h <<_ACEOF
4697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 _ACEOF
4702 done
4706 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4707 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4708 MINIX=yes
4709 else
4710 MINIX=
4714 if test "$MINIX" = yes; then
4716 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4719 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4722 $as_echo "#define _MINIX 1" >>confdefs.h
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4728 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4729 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 # define __EXTENSIONS__ 1
4736 $ac_includes_default
4738 main ()
4742 return 0;
4744 _ACEOF
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_safe_to_define___extensions__=yes
4747 else
4748 ac_cv_safe_to_define___extensions__=no
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4753 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4754 test $ac_cv_safe_to_define___extensions__ = yes &&
4755 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4757 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4759 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4761 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4763 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4768 # Check whether --enable-largefile was given.
4769 if test "${enable_largefile+set}" = set; then :
4770 enableval=$enable_largefile;
4773 if test "$enable_largefile" != no; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4776 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4777 if ${ac_cv_sys_largefile_CC+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_cv_sys_largefile_CC=no
4781 if test "$GCC" != yes; then
4782 ac_save_CC=$CC
4783 while :; do
4784 # IRIX 6.2 and later do not support large files by default,
4785 # so use the C compiler's -n32 option if that helps.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4796 ? 1 : -1];
4798 main ()
4802 return 0;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 break
4808 rm -f core conftest.err conftest.$ac_objext
4809 CC="$CC -n32"
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 ac_cv_sys_largefile_CC=' -n32'; break
4813 rm -f core conftest.err conftest.$ac_objext
4814 break
4815 done
4816 CC=$ac_save_CC
4817 rm -f conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4821 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4822 if test "$ac_cv_sys_largefile_CC" != no; then
4823 CC=$CC$ac_cv_sys_largefile_CC
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4827 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4828 if ${ac_cv_sys_file_offset_bits+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 while :; do
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <sys/types.h>
4835 /* Check that off_t can represent 2**63 - 1 correctly.
4836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4837 since some C++ compilers masquerading as C compilers
4838 incorrectly reject 9223372036854775807. */
4839 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4841 && LARGE_OFF_T % 2147483647 == 1)
4842 ? 1 : -1];
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_sys_file_offset_bits=no; break
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #define _FILE_OFFSET_BITS 64
4858 #include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4866 ? 1 : -1];
4868 main ()
4872 return 0;
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_sys_file_offset_bits=64; break
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_cv_sys_file_offset_bits=unknown
4880 break
4881 done
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4885 case $ac_cv_sys_file_offset_bits in #(
4886 no | unknown) ;;
4888 cat >>confdefs.h <<_ACEOF
4889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4890 _ACEOF
4892 esac
4893 rm -rf conftest*
4894 if test $ac_cv_sys_file_offset_bits = unknown; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4897 if ${ac_cv_sys_large_files+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 while :; do
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4911 ? 1 : -1];
4913 main ()
4917 return 0;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_sys_large_files=no; break
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #define _LARGE_FILES 1
4927 #include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4935 ? 1 : -1];
4937 main ()
4941 return 0;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_sys_large_files=1; break
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_sys_large_files=unknown
4949 break
4950 done
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4953 $as_echo "$ac_cv_sys_large_files" >&6; }
4954 case $ac_cv_sys_large_files in #(
4955 no | unknown) ;;
4957 cat >>confdefs.h <<_ACEOF
4958 #define _LARGE_FILES $ac_cv_sys_large_files
4959 _ACEOF
4961 esac
4962 rm -rf conftest*
4970 SIGNAMES_O=
4971 SIGNAMES_H=src/lsignames.h
4975 CROSS_COMPILE=
4976 if test "x$cross_compiling" = "xyes"; then
4977 case "${host}" in
4978 *-cygwin*)
4979 cross_cache=${srcdir}/cross-build/cygwin32.cache
4981 *-mingw*)
4982 cross_cache=${srcdir}/cross-build/cygwin32.cache
4984 i[3456]86-*-beos*)
4985 cross_cache=${srcdir}/cross-build/x86-beos.cache
4987 *-qnx*)
4988 cross_cache=${srcdir}/cross-build/qnx.cache
4990 *) echo "configure: cross-compiling for $host is not supported" >&2
4992 esac
4993 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4994 echo "loading cross-build cache file ${cross_cache}"
4995 . ${cross_cache}
4997 unset cross_cache
4998 SIGNAMES_O='signames.o'
4999 CROSS_COMPILE='-DCROSS_COMPILING'
5006 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
5007 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
5009 if test "$opt_profiling" = "yes"; then
5010 PROFILE_FLAGS=-pg
5011 case "$host_os" in
5012 solaris2*|linux*) ;;
5013 *) opt_static_link=yes ;;
5014 esac
5015 DEBUG= MALLOC_DEBUG=
5018 prefer_shared=yes
5019 prefer_static=no
5021 if test "$opt_static_link" = yes; then
5022 prefer_static=yes
5023 prefer_shared=no
5024 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5025 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5026 STATIC_LD="-static"
5027 case "$host_os" in
5028 solaris2*|linux*) ;;
5029 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5030 esac
5034 # set the appropriate make variables for building the "build tools"
5035 # modify defaults based on whether or not we are cross compiling, since the
5036 # options for the target host may not be appropriate for the build host
5037 if test "X$cross_compiling" = "Xno"; then
5038 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
5039 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
5040 if test X"$opt_profiling" = Xyes; then
5041 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
5042 else
5043 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5045 # CFLAGS set above to default value if not passed in environment
5046 if test -n "$want_auto_cflags" ; then
5047 CFLAGS_FOR_BUILD="${CFLAGS} ${STYLE_CFLAGS}"
5048 else
5049 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5051 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
5052 else
5053 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
5054 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5055 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5056 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
5057 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
5071 if test $ac_cv_c_compiler_gnu = yes; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5073 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5074 if ${ac_cv_prog_gcc_traditional+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 ac_pattern="Autoconf.*'x'"
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #include <sgtty.h>
5081 Autoconf TIOCGETP
5082 _ACEOF
5083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5085 ac_cv_prog_gcc_traditional=yes
5086 else
5087 ac_cv_prog_gcc_traditional=no
5089 rm -f conftest*
5092 if test $ac_cv_prog_gcc_traditional = no; then
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 #include <termio.h>
5096 Autoconf TCGETA
5097 _ACEOF
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5100 ac_cv_prog_gcc_traditional=yes
5102 rm -f conftest*
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5107 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5108 if test $ac_cv_prog_gcc_traditional = yes; then
5109 CC="$CC -traditional"
5115 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5116 then
5117 # If the user specified --with-installed-readline=PREFIX and PREFIX
5118 # is not `yes', set ac_cv_rl_prefix to PREFIX
5119 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5122 if test "X$bush_cv_termcap_lib" = "X"; then
5123 _bush_needmsg=yes
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5126 $as_echo_n "checking which library has the termcap functions... " >&6; }
5127 _bush_needmsg=
5129 if ${bush_cv_termcap_lib+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5133 if test "x$ac_cv_func_tgetent" = xyes; then :
5134 bush_cv_termcap_lib=libc
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5137 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5138 if ${ac_cv_lib_termcap_tgetent+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 ac_check_lib_save_LIBS=$LIBS
5142 LIBS="-ltermcap $LIBS"
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5146 /* Override any GCC internal prototype to avoid an error.
5147 Use char because int might match the return type of a GCC
5148 builtin and then its argument prototype would still apply. */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 char tgetent ();
5154 main ()
5156 return tgetent ();
5158 return 0;
5160 _ACEOF
5161 if ac_fn_c_try_link "$LINENO"; then :
5162 ac_cv_lib_termcap_tgetent=yes
5163 else
5164 ac_cv_lib_termcap_tgetent=no
5166 rm -f core conftest.err conftest.$ac_objext \
5167 conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5171 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5172 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
5173 bush_cv_termcap_lib=libtermcap
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5176 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5177 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-ltinfo $LIBS"
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 /* Override any GCC internal prototype to avoid an error.
5186 Use char because int might match the return type of a GCC
5187 builtin and then its argument prototype would still apply. */
5188 #ifdef __cplusplus
5189 extern "C"
5190 #endif
5191 char tgetent ();
5193 main ()
5195 return tgetent ();
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_link "$LINENO"; then :
5201 ac_cv_lib_tinfo_tgetent=yes
5202 else
5203 ac_cv_lib_tinfo_tgetent=no
5205 rm -f core conftest.err conftest.$ac_objext \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5210 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5211 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
5212 bush_cv_termcap_lib=libtinfo
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5215 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5216 if ${ac_cv_lib_curses_tgetent+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 ac_check_lib_save_LIBS=$LIBS
5220 LIBS="-lcurses $LIBS"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5224 /* Override any GCC internal prototype to avoid an error.
5225 Use char because int might match the return type of a GCC
5226 builtin and then its argument prototype would still apply. */
5227 #ifdef __cplusplus
5228 extern "C"
5229 #endif
5230 char tgetent ();
5232 main ()
5234 return tgetent ();
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 ac_cv_lib_curses_tgetent=yes
5241 else
5242 ac_cv_lib_curses_tgetent=no
5244 rm -f core conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5249 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5250 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
5251 bush_cv_termcap_lib=libcurses
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5254 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5255 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 ac_check_lib_save_LIBS=$LIBS
5259 LIBS="-lncurses $LIBS"
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 /* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5266 #ifdef __cplusplus
5267 extern "C"
5268 #endif
5269 char tgetent ();
5271 main ()
5273 return tgetent ();
5275 return 0;
5277 _ACEOF
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 ac_cv_lib_ncurses_tgetent=yes
5280 else
5281 ac_cv_lib_ncurses_tgetent=no
5283 rm -f core conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5288 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5289 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
5290 bush_cv_termcap_lib=libncurses
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5293 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
5294 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lncursesw $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char tgetent ();
5310 main ()
5312 return tgetent ();
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 ac_cv_lib_ncursesw_tgetent=yes
5319 else
5320 ac_cv_lib_ncursesw_tgetent=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5327 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
5328 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
5329 bush_cv_termcap_lib=libncursesw
5330 else
5331 bush_cv_termcap_lib=gnutermcap
5346 if test "X$_bush_needmsg" = "Xyes"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5348 $as_echo_n "checking which library has the termcap functions... " >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bush_cv_termcap_lib" >&5
5351 $as_echo "using $bush_cv_termcap_lib" >&6; }
5352 if test $bush_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5353 LDFLAGS="$LDFLAGS -L./lib/termcap"
5354 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5355 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5356 elif test $bush_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5357 TERMCAP_LIB=-ltermcap
5358 TERMCAP_DEP=
5359 elif test $bush_cv_termcap_lib = libtinfo; then
5360 TERMCAP_LIB=-ltinfo
5361 TERMCAP_DEP=
5362 elif test $bush_cv_termcap_lib = libncurses; then
5363 TERMCAP_LIB=-lncurses
5364 TERMCAP_DEP=
5365 elif test $bush_cv_termcap_lib = libc; then
5366 TERMCAP_LIB=
5367 TERMCAP_DEP=
5368 else
5369 TERMCAP_LIB=-lcurses
5370 TERMCAP_DEP=
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5377 $as_echo_n "checking version of installed readline library... " >&6; }
5379 # What a pain in the ass this is.
5381 # save cpp and ld options
5382 _save_CFLAGS="$CFLAGS"
5383 _save_LDFLAGS="$LDFLAGS"
5384 _save_LIBS="$LIBS"
5386 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5387 # allows the caller to do something like $_rl_prefix=$withval if the user
5388 # specifies --with-installed-readline=PREFIX as an argument to configure
5390 if test -z "$ac_cv_rl_prefix"; then
5391 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5394 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5395 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5397 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5398 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5399 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5401 if ${ac_cv_rl_version+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test "$cross_compiling" = yes; then :
5405 ac_cv_rl_version='8.0'
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 #include <stdio.h>
5411 #include <readline/readline.h>
5412 #include <stdlib.h>
5414 extern int rl_gnu_readline_p;
5417 main()
5419 FILE *fp;
5420 fp = fopen("conftest.rlv", "w");
5421 if (fp == 0)
5422 exit(1);
5423 if (rl_gnu_readline_p != 1)
5424 fprintf(fp, "0.0\n");
5425 else
5426 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5427 fclose(fp);
5428 exit(0);
5431 _ACEOF
5432 if ac_fn_c_try_run "$LINENO"; then :
5433 ac_cv_rl_version=`cat conftest.rlv`
5434 else
5435 ac_cv_rl_version='0.0'
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5444 CFLAGS="$_save_CFLAGS"
5445 LDFLAGS="$_save_LDFLAGS"
5446 LIBS="$_save_LIBS"
5448 RL_MAJOR=0
5449 RL_MINOR=0
5452 case "$ac_cv_rl_version" in
5453 2*|3*|4*|5*|6*|7*|8*|9*)
5454 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5455 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5457 esac
5459 # (((
5460 case $RL_MAJOR in
5461 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5462 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5463 *) _RL_MAJOR=00 ;;
5464 esac
5466 # (((
5467 case $RL_MINOR in
5468 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5469 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5470 *) _RL_MINOR=00 ;;
5471 esac
5473 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5475 # Readline versions greater than 4.2 have these defines in readline.h
5477 if test $ac_cv_rl_version = '0.0' ; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
5479 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5480 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5481 # set these for use by the caller
5482 RL_PREFIX=$ac_cv_rl_prefix
5483 RL_LIBDIR=$ac_cv_rl_libdir
5484 RL_INCLUDEDIR=$ac_cv_rl_includedir
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5486 $as_echo "$ac_cv_rl_version" >&6; }
5487 else
5490 cat >>confdefs.h <<_ACEOF
5491 #define RL_READLINE_VERSION $RL_VERSION
5492 _ACEOF
5495 cat >>confdefs.h <<_ACEOF
5496 #define RL_VERSION_MAJOR $RL_MAJOR
5497 _ACEOF
5500 cat >>confdefs.h <<_ACEOF
5501 #define RL_VERSION_MINOR $RL_MINOR
5502 _ACEOF
5509 # set these for use by the caller
5510 RL_PREFIX=$ac_cv_rl_prefix
5511 RL_LIBDIR=$ac_cv_rl_libdir
5512 RL_INCLUDEDIR=$ac_cv_rl_includedir
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
5515 $as_echo "$ac_cv_rl_version" >&6; }
5520 case "$ac_cv_rl_version" in
5521 8*|9*) ;;
5522 *) opt_with_installed_readline=no
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bush" >&5
5524 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bush" >&2;}
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bush version" >&5
5526 $as_echo "$as_me: WARNING: using private bush version" >&2;}
5528 esac
5531 TILDE_LIB=-ltilde
5532 if test $opt_readline = yes; then
5533 $as_echo "#define READLINE 1" >>confdefs.h
5535 if test "$opt_with_installed_readline" != "no" ; then
5536 case "$opt_with_installed_readline" in
5537 yes) RL_INCLUDE= ;;
5538 *) case "$RL_INCLUDEDIR" in
5539 /usr/include) ;;
5540 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5541 esac
5543 esac
5544 READLINE_DEP=
5545 READLINE_LIB=-lreadline
5546 # section for OS versions that don't allow unresolved symbols
5547 # to be compiled into dynamic libraries.
5548 case "$host_os" in
5549 cygwin*) TILDE_LIB= ;;
5550 esac
5551 else
5552 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5553 READLINE_DEP='$(READLINE_LIBRARY)'
5554 # section for OS versions that ship an older/broken version of
5555 # readline as a standard dynamic library and don't allow a
5556 # static version specified as -llibname to override the
5557 # dynamic version
5558 case "${host_os}" in
5559 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5560 *) READLINE_LIB=-lreadline ;;
5561 esac
5563 else
5564 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5565 READLINE_LIB= READLINE_DEP=
5567 if test $opt_history = yes || test $opt_bang_history = yes; then
5568 if test $opt_history = yes; then
5569 $as_echo "#define HISTORY 1" >>confdefs.h
5572 if test $opt_bang_history = yes; then
5573 $as_echo "#define BANG_HISTORY 1" >>confdefs.h
5576 if test "$opt_with_installed_readline" != "no"; then
5577 HIST_LIBDIR=$RL_LIBDIR
5578 HISTORY_DEP=
5579 HISTORY_LIB=-lhistory
5580 case "$opt_with_installed_readline" in
5581 yes) RL_INCLUDE= ;;
5582 *) case "$RL_INCLUDEDIR" in
5583 /usr/include) ;;
5584 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5585 esac
5587 esac
5588 else
5589 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5590 HISTORY_DEP='$(HISTORY_LIBRARY)'
5591 # section for OS versions that ship an older version of
5592 # readline as a standard dynamic library and don't allow a
5593 # static version specified as -llibname to override the
5594 # dynamic version
5595 case "${host_os}" in
5596 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5597 *) HISTORY_LIB=-lhistory ;;
5598 esac
5600 else
5601 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5602 HISTORY_LIB= HISTORY_DEP=
5615 # Find a good install program. We prefer a C program (faster),
5616 # so one script is as good as another. But avoid the broken or
5617 # incompatible versions:
5618 # SysV /etc/install, /usr/sbin/install
5619 # SunOS /usr/etc/install
5620 # IRIX /sbin/install
5621 # AIX /bin/install
5622 # AmigaOS /C/install, which installs bootblocks on floppy discs
5623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5626 # OS/2's system install, which has a completely different semantic
5627 # ./install, which can be erroneously created by make from ./install.sh.
5628 # Reject install programs that cannot install multiple files.
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5630 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5631 if test -z "$INSTALL"; then
5632 if ${ac_cv_path_install+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 # Account for people who put trailing slashes in PATH elements.
5641 case $as_dir/ in #((
5642 ./ | .// | /[cC]/* | \
5643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5645 /usr/ucb/* ) ;;
5647 # OSF1 and SCO ODT 3.0 have their own names for install.
5648 # Don't use installbsd from OSF since it installs stuff as root
5649 # by default.
5650 for ac_prog in ginstall scoinst install; do
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5653 if test $ac_prog = install &&
5654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5655 # AIX install. It has an incompatible calling convention.
5657 elif test $ac_prog = install &&
5658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5659 # program-specific install script used by HP pwplus--don't use.
5661 else
5662 rm -rf conftest.one conftest.two conftest.dir
5663 echo one > conftest.one
5664 echo two > conftest.two
5665 mkdir conftest.dir
5666 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5667 test -s conftest.one && test -s conftest.two &&
5668 test -s conftest.dir/conftest.one &&
5669 test -s conftest.dir/conftest.two
5670 then
5671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5672 break 3
5676 done
5677 done
5679 esac
5681 done
5682 IFS=$as_save_IFS
5684 rm -rf conftest.one conftest.two conftest.dir
5687 if test "${ac_cv_path_install+set}" = set; then
5688 INSTALL=$ac_cv_path_install
5689 else
5690 # As a last resort, use the slow shell script. Don't cache a
5691 # value for INSTALL within a source directory, because that will
5692 # break other packages using the cache if that directory is
5693 # removed, or if the value is a relative name.
5694 INSTALL=$ac_install_sh
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5698 $as_echo "$INSTALL" >&6; }
5700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5701 # It thinks the first close brace ends the variable substitution.
5702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5708 if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}ar; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_AR+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$AR"; then
5717 ac_cv_prog_AR="$AR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_AR="${ac_tool_prefix}ar"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5736 AR=$ac_cv_prog_AR
5737 if test -n "$AR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5739 $as_echo "$AR" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5747 if test -z "$ac_cv_prog_AR"; then
5748 ac_ct_AR=$AR
5749 # Extract the first word of "ar", so it can be a program name with args.
5750 set dummy ar; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -n "$ac_ct_AR"; then
5757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_ac_ct_AR="ar"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 break 2
5770 done
5771 done
5772 IFS=$as_save_IFS
5776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5777 if test -n "$ac_ct_AR"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5779 $as_echo "$ac_ct_AR" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5785 if test "x$ac_ct_AR" = x; then
5786 AR=""
5787 else
5788 case $cross_compiling:$ac_tool_warned in
5789 yes:)
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794 AR=$ac_ct_AR
5796 else
5797 AR="$ac_cv_prog_AR"
5800 test -n "$ARFLAGS" || ARFLAGS="cr"
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_RANLIB+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 RANLIB=$ac_cv_prog_RANLIB
5830 if test -n "$RANLIB"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5832 $as_echo "$RANLIB" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5840 if test -z "$ac_cv_prog_RANLIB"; then
5841 ac_ct_RANLIB=$RANLIB
5842 # Extract the first word of "ranlib", so it can be a program name with args.
5843 set dummy ranlib; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$ac_ct_RANLIB"; then
5850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_RANLIB="ranlib"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5863 done
5864 done
5865 IFS=$as_save_IFS
5869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5870 if test -n "$ac_ct_RANLIB"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5872 $as_echo "$ac_ct_RANLIB" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5878 if test "x$ac_ct_RANLIB" = x; then
5879 RANLIB=":"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 RANLIB=$ac_ct_RANLIB
5889 else
5890 RANLIB="$ac_cv_prog_RANLIB"
5893 for ac_prog in 'bison -y' byacc
5895 # Extract the first word of "$ac_prog", so it can be a program name with args.
5896 set dummy $ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_prog_YACC+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test -n "$YACC"; then
5903 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_YACC="$ac_prog"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5916 done
5917 done
5918 IFS=$as_save_IFS
5922 YACC=$ac_cv_prog_YACC
5923 if test -n "$YACC"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5925 $as_echo "$YACC" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5932 test -n "$YACC" && break
5933 done
5934 test -n "$YACC" || YACC="yacc"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5938 set x ${MAKE-make}
5939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 cat >conftest.make <<\_ACEOF
5944 SHELL = /bin/sh
5945 all:
5946 @echo '@@@%%%=$(MAKE)=@@@%%%'
5947 _ACEOF
5948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5950 *@@@%%%=?*=@@@%%%*)
5951 eval ac_cv_prog_make_${ac_make}_set=yes;;
5953 eval ac_cv_prog_make_${ac_make}_set=no;;
5954 esac
5955 rm -f conftest.make
5957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5959 $as_echo "yes" >&6; }
5960 SET_MAKE=
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 SET_MAKE="MAKE=${MAKE-make}"
5968 case "$ac_cv_prog_YACC" in
5969 *bison*) ;;
5970 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
5971 $as_echo "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
5972 esac
5974 case "$host_os" in
5975 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5976 *) MAKE_SHELL=/bin/sh ;;
5977 esac
5980 if test x$SIZE = x; then
5981 if test x$ac_tool_prefix = x; then
5982 SIZE=size
5983 else
5984 SIZE=${ac_tool_prefix}size
5985 save_IFS=$IFS ; IFS=:
5986 size_found=0
5987 for dir in $PATH; do
5988 if test -x $dir/$SIZE ; then
5989 size_found=1
5990 break
5992 done
5993 if test $size_found -eq 0; then
5994 SIZE=:
5996 IFS=$save_IFS
6001 # Checks for stat-related time functions.
6003 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
6004 # Foundation, Inc.
6006 # This file is free software; the Free Software Foundation
6007 # gives unlimited permission to copy and/or distribute it,
6008 # with or without modifications, as long as this notice is preserved.
6011 # st_atim.tv_nsec - Linux, Solaris, Cygwin
6012 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
6013 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
6014 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
6016 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
6017 # st_birthtim - Cygwin 1.7.0+
6021 # Configure checks for struct timespec
6023 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
6025 # This file is free software; the Free Software Foundation
6026 # gives unlimited permission to copy and/or distribute it,
6027 # with or without modifications, as long as this notice is preserved.
6029 # Original written by Paul Eggert and Jim Meyering.
6030 # Modified by Chet Ramey for bush
6037 # codeset.m4 serial 5 (gettext-0.18.2)
6046 # fcntl-o.m4 serial 6
6051 # Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
6052 # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
6053 # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
6056 # gettext.m4 serial 69 (gettext-0.19.9)
6074 # glibc2.m4 serial 3
6076 # Test for the GNU C Library, version 2.0 or newer.
6077 # From Bruno Haible.
6081 # glibc21.m4 serial 5
6083 # Test for the GNU C Library, version 2.1 or newer, or uClibc.
6084 # From Bruno Haible.
6088 # host-cpu-c-abi.m4 serial 11
6096 # iconv.m4 serial 21
6106 # intdiv0.m4 serial 6 (gettext-0.18.2)
6111 # intl.m4 serial 34 (gettext-0.19.9)
6123 # intlmacosx.m4 serial 6 (gettext-0.19.9)
6127 # intl-thread-locale.m4 serial 4
6133 # intmax.m4 serial 6 (gettext-0.18.2)
6138 # inttypes-pri.m4 serial 7 (gettext-0.18.2)
6143 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
6144 # macros to non-string values. This is the case on AIX 4.3.3.
6148 # inttypes.m4 serial 27
6155 # Ensure that the PRI* and SCN* macros are defined appropriately.
6158 # Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
6159 # If $2 is true, the condition is $3; otherwise if long long int is supported
6160 # approximate the condition with $4; otherwise, assume the condition is false.
6161 # The condition should work on all C99 platforms; the approximations should be
6162 # good enough to work on all practical pre-C99 platforms.
6163 # $2 is evaluated by the C preprocessor, $3 and $4 as compile-time constants.
6170 # inttypes_h.m4 serial 10
6173 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
6174 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6178 # lcmessage.m4 serial 7 (gettext-0.18.2)
6181 # Check whether LC_MESSAGES is available in <locale.h>.
6185 # lib-ld.m4 serial 9
6192 # lib-link.m4 serial 28
6211 # lib-prefix.m4 serial 14
6222 # lock.m4 serial 14
6227 # Prerequisites of lib/glthread/lock.c.
6230 # nls.m4 serial 5 (gettext-0.18)
6237 # po.m4 serial 24a
6250 # printf-posix.m4 serial 6 (gettext-0.18.2)
6255 # progtest.m4 serial 7 (gettext-0.18.2)
6260 # Search path for a program which passes the given test.
6264 # pthread_rwlock_rdlock.m4 serial 2
6269 # size_max.m4 serial 11
6276 # stdint_h.m4 serial 9
6279 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
6280 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6284 # threadlib.m4 serial 16
6306 # uintmax_t.m4 serial 12
6311 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
6312 # if it is not already defined in <stdint.h> or <inttypes.h>.
6316 # ulonglong.m4 serial 10
6318 # visibility.m4 serial 6
6324 # wchar_t.m4 serial 4 (gettext-0.18.2)
6329 # wint_t.m4 serial 7
6336 # xsize.m4 serial 5
6341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6346 if ${ac_cv_c_const+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6353 main ()
6356 #ifndef __cplusplus
6357 /* Ultrix mips cc rejects this sort of thing. */
6358 typedef int charset[2];
6359 const charset cs = { 0, 0 };
6360 /* SunOS 4.1.1 cc rejects this. */
6361 char const *const *pcpcc;
6362 char **ppc;
6363 /* NEC SVR4.0.2 mips cc rejects this. */
6364 struct point {int x, y;};
6365 static struct point const zero = {0,0};
6366 /* AIX XL C 1.02.0.0 rejects this.
6367 It does not let you subtract one const X* pointer from another in
6368 an arm of an if-expression whose if-part is not a constant
6369 expression */
6370 const char *g = "string";
6371 pcpcc = &g + (g ? g-g : 0);
6372 /* HPUX 7.0 cc rejects these. */
6373 ++pcpcc;
6374 ppc = (char**) pcpcc;
6375 pcpcc = (char const *const *) ppc;
6376 { /* SCO 3.2v4 cc rejects this sort of thing. */
6377 char tx;
6378 char *t = &tx;
6379 char const *s = 0 ? (char *) 0 : (char const *) 0;
6381 *t++ = 0;
6382 if (s) return 0;
6384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6385 int x[] = {25, 17};
6386 const int *foo = &x[0];
6387 ++foo;
6389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6390 typedef const int *iptr;
6391 iptr p = 0;
6392 ++p;
6394 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6396 struct s { int j; const int *ap[3]; } bx;
6397 struct s *b = &bx; b->j = 5;
6399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6400 const int foo = 10;
6401 if (!foo) return 0;
6403 return !cs[0] && !zero.x;
6404 #endif
6407 return 0;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 ac_cv_c_const=yes
6412 else
6413 ac_cv_c_const=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6418 $as_echo "$ac_cv_c_const" >&6; }
6419 if test $ac_cv_c_const = no; then
6421 $as_echo "#define const /**/" >>confdefs.h
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6426 $as_echo_n "checking for inline... " >&6; }
6427 if ${ac_cv_c_inline+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 ac_cv_c_inline=no
6431 for ac_kw in inline __inline__ __inline; do
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #ifndef __cplusplus
6435 typedef int foo_t;
6436 static $ac_kw foo_t static_foo () {return 0; }
6437 $ac_kw foo_t foo () {return 0; }
6438 #endif
6440 _ACEOF
6441 if ac_fn_c_try_compile "$LINENO"; then :
6442 ac_cv_c_inline=$ac_kw
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 test "$ac_cv_c_inline" != no && break
6446 done
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6450 $as_echo "$ac_cv_c_inline" >&6; }
6452 case $ac_cv_c_inline in
6453 inline | yes) ;;
6455 case $ac_cv_c_inline in
6456 no) ac_val=;;
6457 *) ac_val=$ac_cv_c_inline;;
6458 esac
6459 cat >>confdefs.h <<_ACEOF
6460 #ifndef __cplusplus
6461 #define inline $ac_val
6462 #endif
6463 _ACEOF
6465 esac
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6468 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6469 if ${ac_cv_c_bigendian+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 ac_cv_c_bigendian=unknown
6473 # See if we're dealing with a universal compiler.
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #ifndef __APPLE_CC__
6477 not a universal capable compiler
6478 #endif
6479 typedef int dummy;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6484 # Check for potential -arch flags. It is not universal unless
6485 # there are at least two -arch flags with different values.
6486 ac_arch=
6487 ac_prev=
6488 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6489 if test -n "$ac_prev"; then
6490 case $ac_word in
6491 i?86 | x86_64 | ppc | ppc64)
6492 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6493 ac_arch=$ac_word
6494 else
6495 ac_cv_c_bigendian=universal
6496 break
6499 esac
6500 ac_prev=
6501 elif test "x$ac_word" = "x-arch"; then
6502 ac_prev=arch
6504 done
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 if test $ac_cv_c_bigendian = unknown; then
6508 # See if sys/param.h defines the BYTE_ORDER macro.
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <sys/types.h>
6512 #include <sys/param.h>
6515 main ()
6517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6518 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6519 && LITTLE_ENDIAN)
6520 bogus endian macros
6521 #endif
6524 return 0;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 # It does; now see whether it defined to BIG_ENDIAN or not.
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6532 #include <sys/param.h>
6535 main ()
6537 #if BYTE_ORDER != BIG_ENDIAN
6538 not big endian
6539 #endif
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 ac_cv_c_bigendian=yes
6547 else
6548 ac_cv_c_bigendian=no
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 if test $ac_cv_c_bigendian = unknown; then
6555 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <limits.h>
6561 main ()
6563 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6564 bogus endian macros
6565 #endif
6568 return 0;
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572 # It does; now see whether it defined to _BIG_ENDIAN or not.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <limits.h>
6578 main ()
6580 #ifndef _BIG_ENDIAN
6581 not big endian
6582 #endif
6585 return 0;
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 ac_cv_c_bigendian=yes
6590 else
6591 ac_cv_c_bigendian=no
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 if test $ac_cv_c_bigendian = unknown; then
6598 # Compile a test program.
6599 if test "$cross_compiling" = yes; then :
6600 # Try to guess by grepping values from an object file.
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 short int ascii_mm[] =
6604 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6605 short int ascii_ii[] =
6606 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6607 int use_ascii (int i) {
6608 return ascii_mm[i] + ascii_ii[i];
6610 short int ebcdic_ii[] =
6611 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6612 short int ebcdic_mm[] =
6613 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6614 int use_ebcdic (int i) {
6615 return ebcdic_mm[i] + ebcdic_ii[i];
6617 extern int foo;
6620 main ()
6622 return use_ascii (foo) == use_ebcdic (foo);
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6629 ac_cv_c_bigendian=yes
6631 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6632 if test "$ac_cv_c_bigendian" = unknown; then
6633 ac_cv_c_bigendian=no
6634 else
6635 # finding both strings is unlikely to happen, but who knows?
6636 ac_cv_c_bigendian=unknown
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 $ac_includes_default
6646 main ()
6649 /* Are we little or big endian? From Harbison&Steele. */
6650 union
6652 long int l;
6653 char c[sizeof (long int)];
6654 } u;
6655 u.l = 1;
6656 return u.c[sizeof (long int) - 1] == 1;
6659 return 0;
6661 _ACEOF
6662 if ac_fn_c_try_run "$LINENO"; then :
6663 ac_cv_c_bigendian=no
6664 else
6665 ac_cv_c_bigendian=yes
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668 conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6674 $as_echo "$ac_cv_c_bigendian" >&6; }
6675 case $ac_cv_c_bigendian in #(
6676 yes)
6677 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6678 ;; #(
6680 ;; #(
6681 universal)
6683 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6685 ;; #(
6687 as_fn_error $? "unknown endianness
6688 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6689 esac
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6692 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6693 if ${ac_cv_c_stringize+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #define x(y) #y
6700 char *s = x(teststring);
6701 _ACEOF
6702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6703 $EGREP "#teststring" >/dev/null 2>&1; then :
6704 ac_cv_c_stringize=no
6705 else
6706 ac_cv_c_stringize=yes
6708 rm -f conftest*
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6712 $as_echo "$ac_cv_c_stringize" >&6; }
6713 if test $ac_cv_c_stringize = yes; then
6715 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
6722 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6723 if ${ac_cv_type_long_double_wider+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <float.h>
6729 long double const a[] =
6731 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6732 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6734 long double
6735 f (long double x)
6737 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6738 + (x ? f (x) : 'c'));
6742 main ()
6744 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6745 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6746 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6747 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6748 && (int) LDBL_EPSILON == 0
6750 test_array [0] = 0;
6751 return test_array [0];
6754 return 0;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 ac_cv_type_long_double_wider=yes
6759 else
6760 ac_cv_type_long_double_wider=no
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
6765 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6766 if test $ac_cv_type_long_double_wider = yes; then
6768 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
6772 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6773 if test $ac_cv_c_long_double = yes; then
6775 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6780 $as_echo_n "checking for function prototypes... " >&6; }
6781 if test "$ac_cv_prog_cc_c89" != no; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6783 $as_echo "yes" >&6; }
6785 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6788 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
6796 $as_echo_n "checking whether char is unsigned... " >&6; }
6797 if ${ac_cv_c_char_unsigned+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 $ac_includes_default
6804 main ()
6806 static int test_array [1 - 2 * !(((char) -1) < 0)];
6807 test_array [0] = 0;
6808 return test_array [0];
6811 return 0;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 ac_cv_c_char_unsigned=no
6816 else
6817 ac_cv_c_char_unsigned=yes
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
6822 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6823 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6824 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6829 $as_echo_n "checking for working volatile... " >&6; }
6830 if ${ac_cv_c_volatile+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6837 main ()
6840 volatile int x;
6841 int * volatile y = (int *) 0;
6842 return !x && !y;
6844 return 0;
6846 _ACEOF
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 ac_cv_c_volatile=yes
6849 else
6850 ac_cv_c_volatile=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6855 $as_echo "$ac_cv_c_volatile" >&6; }
6856 if test $ac_cv_c_volatile = no; then
6858 $as_echo "#define volatile /**/" >>confdefs.h
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6863 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6864 if ${ac_cv_c_restrict+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 ac_cv_c_restrict=no
6868 # The order here caters to the fact that C++ does not require restrict.
6869 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 typedef int * int_ptr;
6873 int foo (int_ptr $ac_kw ip) {
6874 return ip[0];
6877 main ()
6879 int s[1];
6880 int * $ac_kw t = s;
6881 t[0] = 0;
6882 return foo(t)
6884 return 0;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_c_restrict=$ac_kw
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 test "$ac_cv_c_restrict" != no && break
6892 done
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6896 $as_echo "$ac_cv_c_restrict" >&6; }
6898 case $ac_cv_c_restrict in
6899 restrict) ;;
6900 no) $as_echo "#define restrict /**/" >>confdefs.h
6902 *) cat >>confdefs.h <<_ACEOF
6903 #define restrict $ac_cv_c_restrict
6904 _ACEOF
6906 esac
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6910 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6911 if test -z "$MKDIR_P"; then
6912 if ${ac_cv_path_mkdir+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_prog in mkdir gmkdir; do
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6924 'mkdir (GNU coreutils) '* | \
6925 'mkdir (coreutils) '* | \
6926 'mkdir (fileutils) '4.1*)
6927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6928 break 3;;
6929 esac
6930 done
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 test -d ./--version && rmdir ./--version
6938 if test "${ac_cv_path_mkdir+set}" = set; then
6939 MKDIR_P="$ac_cv_path_mkdir -p"
6940 else
6941 # As a last resort, use the slow shell script. Don't cache a
6942 # value for MKDIR_P within a source directory, because that will
6943 # break other packages using the cache if that directory is
6944 # removed, or if the value is a relative name.
6945 MKDIR_P="$ac_install_sh -d"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6949 $as_echo "$MKDIR_P" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6953 if ${ac_cv_path_SED+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6957 for ac_i in 1 2 3 4 5 6 7; do
6958 ac_script="$ac_script$as_nl$ac_script"
6959 done
6960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6961 { ac_script=; unset ac_script;}
6962 if test -z "$SED"; then
6963 ac_path_SED_found=false
6964 # Loop through the user's path and test for each of PROGNAME-LIST
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_prog in sed gsed; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6973 as_fn_executable_p "$ac_path_SED" || continue
6974 # Check for GNU ac_path_SED and select it if it is found.
6975 # Check for GNU $ac_path_SED
6976 case `"$ac_path_SED" --version 2>&1` in
6977 *GNU*)
6978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6980 ac_count=0
6981 $as_echo_n 0123456789 >"conftest.in"
6982 while :
6984 cat "conftest.in" "conftest.in" >"conftest.tmp"
6985 mv "conftest.tmp" "conftest.in"
6986 cp "conftest.in" "conftest.nl"
6987 $as_echo '' >> "conftest.nl"
6988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990 as_fn_arith $ac_count + 1 && ac_count=$as_val
6991 if test $ac_count -gt ${ac_path_SED_max-0}; then
6992 # Best one so far, save it but keep looking for a better one
6993 ac_cv_path_SED="$ac_path_SED"
6994 ac_path_SED_max=$ac_count
6996 # 10*(2^10) chars as input seems more than enough
6997 test $ac_count -gt 10 && break
6998 done
6999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7000 esac
7002 $ac_path_SED_found && break 3
7003 done
7004 done
7005 done
7006 IFS=$as_save_IFS
7007 if test -z "$ac_cv_path_SED"; then
7008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7010 else
7011 ac_cv_path_SED=$SED
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7016 $as_echo "$ac_cv_path_SED" >&6; }
7017 SED="$ac_cv_path_SED"
7018 rm -f conftest.sed
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7022 $as_echo_n "checking whether NLS is requested... " >&6; }
7023 # Check whether --enable-nls was given.
7024 if test "${enable_nls+set}" = set; then :
7025 enableval=$enable_nls; USE_NLS=$enableval
7026 else
7027 USE_NLS=yes
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7031 $as_echo "$USE_NLS" >&6; }
7036 GETTEXT_MACRO_VERSION=0.19
7041 # Prepare PATH_SEPARATOR.
7042 # The user is always right.
7043 if test "${PATH_SEPARATOR+set}" != set; then
7044 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7045 # contains only /bin. Note that ksh looks also at the FPATH variable,
7046 # so we have to set that as well for the test.
7047 PATH_SEPARATOR=:
7048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7049 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7050 || PATH_SEPARATOR=';'
7054 # Find out how to test for executable files. Don't use a zero-byte file,
7055 # as systems may use methods other than mode bits to determine executability.
7056 cat >conf$$.file <<_ASEOF
7057 #! /bin/sh
7058 exit 0
7059 _ASEOF
7060 chmod +x conf$$.file
7061 if test -x conf$$.file >/dev/null 2>&1; then
7062 ac_executable_p="test -x"
7063 else
7064 ac_executable_p="test -f"
7066 rm -f conf$$.file
7068 # Extract the first word of "msgfmt", so it can be a program name with args.
7069 set dummy msgfmt; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_MSGFMT+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 case "$MSGFMT" in
7076 [\\/]* | ?:[\\/]*)
7077 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7080 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7081 for ac_dir in $PATH; do
7082 IFS="$ac_save_IFS"
7083 test -z "$ac_dir" && ac_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7086 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7087 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7088 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7089 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7090 break 2
7093 done
7094 done
7095 IFS="$ac_save_IFS"
7096 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7098 esac
7100 MSGFMT="$ac_cv_path_MSGFMT"
7101 if test "$MSGFMT" != ":"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7103 $as_echo "$MSGFMT" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7109 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7110 set dummy gmsgfmt; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_path_GMSGFMT+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 case $GMSGFMT in
7117 [\\/]* | ?:[\\/]*)
7118 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7132 done
7133 done
7134 IFS=$as_save_IFS
7136 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7138 esac
7140 GMSGFMT=$ac_cv_path_GMSGFMT
7141 if test -n "$GMSGFMT"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7143 $as_echo "$GMSGFMT" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7151 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7152 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7153 *) MSGFMT_015=$MSGFMT ;;
7154 esac
7156 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7157 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7158 *) GMSGFMT_015=$GMSGFMT ;;
7159 esac
7163 # Prepare PATH_SEPARATOR.
7164 # The user is always right.
7165 if test "${PATH_SEPARATOR+set}" != set; then
7166 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7167 # contains only /bin. Note that ksh looks also at the FPATH variable,
7168 # so we have to set that as well for the test.
7169 PATH_SEPARATOR=:
7170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7171 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7172 || PATH_SEPARATOR=';'
7176 # Find out how to test for executable files. Don't use a zero-byte file,
7177 # as systems may use methods other than mode bits to determine executability.
7178 cat >conf$$.file <<_ASEOF
7179 #! /bin/sh
7180 exit 0
7181 _ASEOF
7182 chmod +x conf$$.file
7183 if test -x conf$$.file >/dev/null 2>&1; then
7184 ac_executable_p="test -x"
7185 else
7186 ac_executable_p="test -f"
7188 rm -f conf$$.file
7190 # Extract the first word of "xgettext", so it can be a program name with args.
7191 set dummy xgettext; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_path_XGETTEXT+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 case "$XGETTEXT" in
7198 [\\/]* | ?:[\\/]*)
7199 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7202 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7203 for ac_dir in $PATH; do
7204 IFS="$ac_save_IFS"
7205 test -z "$ac_dir" && ac_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7208 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7209 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7210 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7211 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7212 break 2
7215 done
7216 done
7217 IFS="$ac_save_IFS"
7218 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7220 esac
7222 XGETTEXT="$ac_cv_path_XGETTEXT"
7223 if test "$XGETTEXT" != ":"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7225 $as_echo "$XGETTEXT" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7231 rm -f messages.po
7233 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7234 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7235 *) XGETTEXT_015=$XGETTEXT ;;
7236 esac
7240 # Prepare PATH_SEPARATOR.
7241 # The user is always right.
7242 if test "${PATH_SEPARATOR+set}" != set; then
7243 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7244 # contains only /bin. Note that ksh looks also at the FPATH variable,
7245 # so we have to set that as well for the test.
7246 PATH_SEPARATOR=:
7247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7248 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7249 || PATH_SEPARATOR=';'
7253 # Find out how to test for executable files. Don't use a zero-byte file,
7254 # as systems may use methods other than mode bits to determine executability.
7255 cat >conf$$.file <<_ASEOF
7256 #! /bin/sh
7257 exit 0
7258 _ASEOF
7259 chmod +x conf$$.file
7260 if test -x conf$$.file >/dev/null 2>&1; then
7261 ac_executable_p="test -x"
7262 else
7263 ac_executable_p="test -f"
7265 rm -f conf$$.file
7267 # Extract the first word of "msgmerge", so it can be a program name with args.
7268 set dummy msgmerge; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_MSGMERGE+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 case "$MSGMERGE" in
7275 [\\/]* | ?:[\\/]*)
7276 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7280 for ac_dir in $PATH; do
7281 IFS="$ac_save_IFS"
7282 test -z "$ac_dir" && ac_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7285 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7286 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7287 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7288 break 2
7291 done
7292 done
7293 IFS="$ac_save_IFS"
7294 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7296 esac
7298 MSGMERGE="$ac_cv_path_MSGMERGE"
7299 if test "$MSGMERGE" != ":"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7301 $as_echo "$MSGMERGE" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7308 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7311 ac_config_commands="$ac_config_commands po-directories"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7316 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7317 if ${ac_cv_gnu_library_2+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7323 #include <features.h>
7324 #ifdef __GNU_LIBRARY__
7325 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
7326 Lucky GNU user
7327 #endif
7328 #endif
7330 _ACEOF
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7333 ac_cv_gnu_library_2=yes
7334 else
7335 ac_cv_gnu_library_2=no
7337 rm -f conftest*
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
7343 $as_echo "$ac_cv_gnu_library_2" >&6; }
7345 GLIBC2="$ac_cv_gnu_library_2"
7350 CFLAG_VISIBILITY=
7351 HAVE_VISIBILITY=0
7352 if test -n "$GCC"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
7354 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
7355 if ${gl_cv_cc_vis_werror+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 gl_save_CFLAGS="$CFLAGS"
7359 CFLAGS="$CFLAGS -Werror"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 main ()
7368 return 0;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 gl_cv_cc_vis_werror=yes
7373 else
7374 gl_cv_cc_vis_werror=no
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 CFLAGS="$gl_save_CFLAGS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
7381 $as_echo "$gl_cv_cc_vis_werror" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
7383 $as_echo_n "checking for simple visibility declarations... " >&6; }
7384 if ${gl_cv_cc_visibility+:} false; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 gl_save_CFLAGS="$CFLAGS"
7388 CFLAGS="$CFLAGS -fvisibility=hidden"
7389 if test $gl_cv_cc_vis_werror = yes; then
7390 CFLAGS="$CFLAGS -Werror"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
7395 extern __attribute__((__visibility__("default"))) int exportedvar;
7396 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
7397 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
7398 void dummyfunc (void) {}
7401 main ()
7405 return 0;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 gl_cv_cc_visibility=yes
7410 else
7411 gl_cv_cc_visibility=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 CFLAGS="$gl_save_CFLAGS"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
7418 $as_echo "$gl_cv_cc_visibility" >&6; }
7419 if test $gl_cv_cc_visibility = yes; then
7420 CFLAG_VISIBILITY="-fvisibility=hidden"
7421 HAVE_VISIBILITY=1
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_VISIBILITY $HAVE_VISIBILITY
7429 _ACEOF
7432 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7433 if test "x$ac_cv_type_size_t" = xyes; then :
7435 else
7437 cat >>confdefs.h <<_ACEOF
7438 #define size_t unsigned int
7439 _ACEOF
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7445 $as_echo_n "checking for stdint.h... " >&6; }
7446 if ${gl_cv_header_stdint_h+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 #include <sys/types.h>
7452 #include <stdint.h>
7454 main ()
7456 uintmax_t i = (uintmax_t) -1; return !i;
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 gl_cv_header_stdint_h=yes
7463 else
7464 gl_cv_header_stdint_h=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7469 $as_echo "$gl_cv_header_stdint_h" >&6; }
7470 if test $gl_cv_header_stdint_h = yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 #define HAVE_STDINT_H_WITH_UINTMAX 1
7474 _ACEOF
7478 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7479 # for constant arguments. Useless!
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7481 $as_echo_n "checking for working alloca.h... " >&6; }
7482 if ${ac_cv_working_alloca_h+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <alloca.h>
7489 main ()
7491 char *p = (char *) alloca (2 * sizeof (int));
7492 if (p) return 0;
7494 return 0;
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 ac_cv_working_alloca_h=yes
7499 else
7500 ac_cv_working_alloca_h=no
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7506 $as_echo "$ac_cv_working_alloca_h" >&6; }
7507 if test $ac_cv_working_alloca_h = yes; then
7509 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7514 $as_echo_n "checking for alloca... " >&6; }
7515 if ${ac_cv_func_alloca_works+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #ifdef __GNUC__
7521 # define alloca __builtin_alloca
7522 #else
7523 # ifdef _MSC_VER
7524 # include <malloc.h>
7525 # define alloca _alloca
7526 # else
7527 # ifdef HAVE_ALLOCA_H
7528 # include <alloca.h>
7529 # else
7530 # ifdef _AIX
7531 #pragma alloca
7532 # else
7533 # ifndef alloca /* predefined by HP cc +Olibcalls */
7534 void *alloca (size_t);
7535 # endif
7536 # endif
7537 # endif
7538 # endif
7539 #endif
7542 main ()
7544 char *p = (char *) alloca (1);
7545 if (p) return 0;
7547 return 0;
7549 _ACEOF
7550 if ac_fn_c_try_link "$LINENO"; then :
7551 ac_cv_func_alloca_works=yes
7552 else
7553 ac_cv_func_alloca_works=no
7555 rm -f core conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7559 $as_echo "$ac_cv_func_alloca_works" >&6; }
7561 if test $ac_cv_func_alloca_works = yes; then
7563 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7565 else
7566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7567 # that cause trouble. Some versions do not even contain alloca or
7568 # contain a buggy version. If you still want to use their alloca,
7569 # use ar to extract alloca.o from them instead of compiling alloca.c.
7571 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7573 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7577 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7578 if ${ac_cv_os_cray+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #if defined CRAY && ! defined CRAY2
7584 webecray
7585 #else
7586 wenotbecray
7587 #endif
7589 _ACEOF
7590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591 $EGREP "webecray" >/dev/null 2>&1; then :
7592 ac_cv_os_cray=yes
7593 else
7594 ac_cv_os_cray=no
7596 rm -f conftest*
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7600 $as_echo "$ac_cv_os_cray" >&6; }
7601 if test $ac_cv_os_cray = yes; then
7602 for ac_func in _getb67 GETB67 getb67; do
7603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7607 cat >>confdefs.h <<_ACEOF
7608 #define CRAY_STACKSEG_END $ac_func
7609 _ACEOF
7611 break
7614 done
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7618 $as_echo_n "checking stack direction for C alloca... " >&6; }
7619 if ${ac_cv_c_stack_direction+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test "$cross_compiling" = yes; then :
7623 ac_cv_c_stack_direction=0
7624 else
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 $ac_includes_default
7629 find_stack_direction (int *addr, int depth)
7631 int dir, dummy = 0;
7632 if (! addr)
7633 addr = &dummy;
7634 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7635 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7636 return dir + dummy;
7640 main (int argc, char **argv)
7642 return find_stack_direction (0, argc + !argv + 20) < 0;
7644 _ACEOF
7645 if ac_fn_c_try_run "$LINENO"; then :
7646 ac_cv_c_stack_direction=1
7647 else
7648 ac_cv_c_stack_direction=-1
7650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7651 conftest.$ac_objext conftest.beam conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7656 $as_echo "$ac_cv_c_stack_direction" >&6; }
7657 cat >>confdefs.h <<_ACEOF
7658 #define STACK_DIRECTION $ac_cv_c_stack_direction
7659 _ACEOF
7667 for ac_header in $ac_header_list
7668 do :
7669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7673 cat >>confdefs.h <<_ACEOF
7674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 _ACEOF
7679 done
7688 for ac_func in getpagesize
7689 do :
7690 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7691 if test "x$ac_cv_func_getpagesize" = xyes; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define HAVE_GETPAGESIZE 1
7694 _ACEOF
7697 done
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7700 $as_echo_n "checking for working mmap... " >&6; }
7701 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test "$cross_compiling" = yes; then :
7705 ac_cv_func_mmap_fixed_mapped=no
7706 else
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 $ac_includes_default
7710 /* malloc might have been renamed as rpl_malloc. */
7711 #undef malloc
7713 /* Thanks to Mike Haertel and Jim Avera for this test.
7714 Here is a matrix of mmap possibilities:
7715 mmap private not fixed
7716 mmap private fixed at somewhere currently unmapped
7717 mmap private fixed at somewhere already mapped
7718 mmap shared not fixed
7719 mmap shared fixed at somewhere currently unmapped
7720 mmap shared fixed at somewhere already mapped
7721 For private mappings, we should verify that changes cannot be read()
7722 back from the file, nor mmap's back from the file at a different
7723 address. (There have been systems where private was not correctly
7724 implemented like the infamous i386 svr4.0, and systems where the
7725 VM page cache was not coherent with the file system buffer cache
7726 like early versions of FreeBSD and possibly contemporary NetBSD.)
7727 For shared mappings, we should conversely verify that changes get
7728 propagated back to all the places they're supposed to be.
7730 Grep wants private fixed already mapped.
7731 The main things grep needs to know about mmap are:
7732 * does it exist and is it safe to write into the mmap'd area
7733 * how to use it (BSD variants) */
7735 #include <fcntl.h>
7736 #include <sys/mman.h>
7738 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7739 char *malloc ();
7740 #endif
7742 /* This mess was copied from the GNU getpagesize.h. */
7743 #ifndef HAVE_GETPAGESIZE
7744 # ifdef _SC_PAGESIZE
7745 # define getpagesize() sysconf(_SC_PAGESIZE)
7746 # else /* no _SC_PAGESIZE */
7747 # ifdef HAVE_SYS_PARAM_H
7748 # include <sys/param.h>
7749 # ifdef EXEC_PAGESIZE
7750 # define getpagesize() EXEC_PAGESIZE
7751 # else /* no EXEC_PAGESIZE */
7752 # ifdef NBPG
7753 # define getpagesize() NBPG * CLSIZE
7754 # ifndef CLSIZE
7755 # define CLSIZE 1
7756 # endif /* no CLSIZE */
7757 # else /* no NBPG */
7758 # ifdef NBPC
7759 # define getpagesize() NBPC
7760 # else /* no NBPC */
7761 # ifdef PAGESIZE
7762 # define getpagesize() PAGESIZE
7763 # endif /* PAGESIZE */
7764 # endif /* no NBPC */
7765 # endif /* no NBPG */
7766 # endif /* no EXEC_PAGESIZE */
7767 # else /* no HAVE_SYS_PARAM_H */
7768 # define getpagesize() 8192 /* punt totally */
7769 # endif /* no HAVE_SYS_PARAM_H */
7770 # endif /* no _SC_PAGESIZE */
7772 #endif /* no HAVE_GETPAGESIZE */
7775 main ()
7777 char *data, *data2, *data3;
7778 const char *cdata2;
7779 int i, pagesize;
7780 int fd, fd2;
7782 pagesize = getpagesize ();
7784 /* First, make a file with some known garbage in it. */
7785 data = (char *) malloc (pagesize);
7786 if (!data)
7787 return 1;
7788 for (i = 0; i < pagesize; ++i)
7789 *(data + i) = rand ();
7790 umask (0);
7791 fd = creat ("conftest.mmap", 0600);
7792 if (fd < 0)
7793 return 2;
7794 if (write (fd, data, pagesize) != pagesize)
7795 return 3;
7796 close (fd);
7798 /* Next, check that the tail of a page is zero-filled. File must have
7799 non-zero length, otherwise we risk SIGBUS for entire page. */
7800 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7801 if (fd2 < 0)
7802 return 4;
7803 cdata2 = "";
7804 if (write (fd2, cdata2, 1) != 1)
7805 return 5;
7806 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7807 if (data2 == MAP_FAILED)
7808 return 6;
7809 for (i = 0; i < pagesize; ++i)
7810 if (*(data2 + i))
7811 return 7;
7812 close (fd2);
7813 if (munmap (data2, pagesize))
7814 return 8;
7816 /* Next, try to mmap the file at a fixed address which already has
7817 something else allocated at it. If we can, also make sure that
7818 we see the same garbage. */
7819 fd = open ("conftest.mmap", O_RDWR);
7820 if (fd < 0)
7821 return 9;
7822 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7823 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7824 return 10;
7825 for (i = 0; i < pagesize; ++i)
7826 if (*(data + i) != *(data2 + i))
7827 return 11;
7829 /* Finally, make sure that changes to the mapped area do not
7830 percolate back to the file as seen by read(). (This is a bug on
7831 some variants of i386 svr4.0.) */
7832 for (i = 0; i < pagesize; ++i)
7833 *(data2 + i) = *(data2 + i) + 1;
7834 data3 = (char *) malloc (pagesize);
7835 if (!data3)
7836 return 12;
7837 if (read (fd, data3, pagesize) != pagesize)
7838 return 13;
7839 for (i = 0; i < pagesize; ++i)
7840 if (*(data + i) != *(data3 + i))
7841 return 14;
7842 close (fd);
7843 return 0;
7845 _ACEOF
7846 if ac_fn_c_try_run "$LINENO"; then :
7847 ac_cv_func_mmap_fixed_mapped=yes
7848 else
7849 ac_cv_func_mmap_fixed_mapped=no
7851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7852 conftest.$ac_objext conftest.beam conftest.$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7857 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7858 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7860 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7863 rm -f conftest.mmap conftest.txt
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7868 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7869 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7873 gt_cv_int_divbyzero_sigfpe=
7874 case "$host_os" in
7875 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7876 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7877 # compiling. If we were to perform the real test, 1 Crash Report
7878 # dialog window would pop up.
7879 case "$host_cpu" in
7880 i[34567]86 | x86_64)
7881 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7882 esac
7884 esac
7885 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7886 if test "$cross_compiling" = yes; then :
7888 # Guess based on the CPU.
7889 case "$host_cpu" in
7890 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7891 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7893 gt_cv_int_divbyzero_sigfpe="guessing no";;
7894 esac
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7900 #include <stdlib.h>
7901 #include <signal.h>
7903 static void
7904 sigfpe_handler (int sig)
7906 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7907 exit (sig != SIGFPE);
7910 int x = 1;
7911 int y = 0;
7912 int z;
7913 int xnan;
7915 int main ()
7917 signal (SIGFPE, sigfpe_handler);
7918 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7919 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7920 signal (SIGTRAP, sigfpe_handler);
7921 #endif
7922 /* Linux/SPARC yields signal SIGILL. */
7923 #if defined (__sparc__) && defined (__linux__)
7924 signal (SIGILL, sigfpe_handler);
7925 #endif
7927 z = x / y;
7928 xnan = y / y;
7929 exit (2);
7932 _ACEOF
7933 if ac_fn_c_try_run "$LINENO"; then :
7934 gt_cv_int_divbyzero_sigfpe=yes
7935 else
7936 gt_cv_int_divbyzero_sigfpe=no
7938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7939 conftest.$ac_objext conftest.beam conftest.$ac_ext
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7946 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7947 case "$gt_cv_int_divbyzero_sigfpe" in
7948 *yes) value=1;;
7949 *) value=0;;
7950 esac
7952 cat >>confdefs.h <<_ACEOF
7953 #define INTDIV0_RAISES_SIGFPE $value
7954 _ACEOF
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7959 $as_echo_n "checking for inttypes.h... " >&6; }
7960 if ${gl_cv_header_inttypes_h+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 #include <sys/types.h>
7967 #include <inttypes.h>
7970 main ()
7972 uintmax_t i = (uintmax_t) -1; return !i;
7974 return 0;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 gl_cv_header_inttypes_h=yes
7979 else
7980 gl_cv_header_inttypes_h=no
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7985 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7986 if test $gl_cv_header_inttypes_h = yes; then
7988 cat >>confdefs.h <<_ACEOF
7989 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7990 _ACEOF
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7996 $as_echo_n "checking for unsigned long long int... " >&6; }
7997 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 ac_cv_type_unsigned_long_long_int=yes
8001 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8005 /* For now, do not test the preprocessor; as of 2007 there are too many
8006 implementations with broken preprocessors. Perhaps this can
8007 be revisited in 2012. In the meantime, code should not expect
8008 #if to work with literals wider than 32 bits. */
8009 /* Test literals. */
8010 long long int ll = 9223372036854775807ll;
8011 long long int nll = -9223372036854775807LL;
8012 unsigned long long int ull = 18446744073709551615ULL;
8013 /* Test constant expressions. */
8014 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8015 ? 1 : -1)];
8016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8017 ? 1 : -1)];
8018 int i = 63;
8020 main ()
8022 /* Test availability of runtime routines for shift and division. */
8023 long long int llmax = 9223372036854775807ll;
8024 unsigned long long int ullmax = 18446744073709551615ull;
8025 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8026 | (llmax / ll) | (llmax % ll)
8027 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8028 | (ullmax / ull) | (ullmax % ull));
8030 return 0;
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8036 else
8037 ac_cv_type_unsigned_long_long_int=no
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8044 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8045 if test $ac_cv_type_unsigned_long_long_int = yes; then
8047 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8054 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8056 test $ac_cv_type_unsigned_long_long_int = yes \
8057 && ac_type='unsigned long long' \
8058 || ac_type='unsigned long'
8060 cat >>confdefs.h <<_ACEOF
8061 #define uintmax_t $ac_type
8062 _ACEOF
8064 else
8066 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8071 for ac_header in inttypes.h
8072 do :
8073 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8074 if test "x$ac_cv_header_inttypes_h" = xyes; then :
8075 cat >>confdefs.h <<_ACEOF
8076 #define HAVE_INTTYPES_H 1
8077 _ACEOF
8081 done
8083 if test $ac_cv_header_inttypes_h = yes; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8085 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8086 if ${gt_cv_inttypes_pri_broken+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 #include <inttypes.h>
8094 #ifdef PRId32
8095 char *p = PRId32;
8096 #endif
8099 main ()
8103 return 0;
8105 _ACEOF
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 gt_cv_inttypes_pri_broken=no
8108 else
8109 gt_cv_inttypes_pri_broken=yes
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8115 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8117 if test "$gt_cv_inttypes_pri_broken" = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define PRI_MACROS_BROKEN 1
8121 _ACEOF
8123 PRI_MACROS_BROKEN=1
8124 else
8125 PRI_MACROS_BROKEN=0
8134 # Check whether --enable-threads was given.
8135 if test "${enable_threads+set}" = set; then :
8136 enableval=$enable_threads; gl_use_threads=$enableval
8137 else
8138 if test -n "$gl_use_threads_default"; then
8139 gl_use_threads="$gl_use_threads_default"
8140 else
8141 case "$host_os" in
8142 osf*) gl_use_threads=no ;;
8143 cygwin*)
8144 case `uname -r` in
8145 1.[0-5].*) gl_use_threads=no ;;
8146 *) gl_use_threads=yes ;;
8147 esac
8149 *) gl_use_threads=yes ;;
8150 esac
8155 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8156 # For using <pthread.h>:
8157 case "$host_os" in
8158 osf*)
8159 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8160 # groks <pthread.h>. cc also understands the flag -pthread, but
8161 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8162 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8163 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8164 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8165 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8167 esac
8168 # Some systems optimize for single-threaded programs by default, and
8169 # need special flags to disable these optimizations. For example, the
8170 # definition of 'errno' in <errno.h>.
8171 case "$host_os" in
8172 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8173 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8174 esac
8181 if test "X$prefix" = "XNONE"; then
8182 acl_final_prefix="$ac_default_prefix"
8183 else
8184 acl_final_prefix="$prefix"
8186 if test "X$exec_prefix" = "XNONE"; then
8187 acl_final_exec_prefix='${prefix}'
8188 else
8189 acl_final_exec_prefix="$exec_prefix"
8191 acl_save_prefix="$prefix"
8192 prefix="$acl_final_prefix"
8193 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8194 prefix="$acl_save_prefix"
8198 # Check whether --with-gnu-ld was given.
8199 if test "${with_gnu_ld+set}" = set; then :
8200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8201 else
8202 with_gnu_ld=no
8205 # Prepare PATH_SEPARATOR.
8206 # The user is always right.
8207 if test "${PATH_SEPARATOR+set}" != set; then
8208 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8209 # contains only /bin. Note that ksh looks also at the FPATH variable,
8210 # so we have to set that as well for the test.
8211 PATH_SEPARATOR=:
8212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8213 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8214 || PATH_SEPARATOR=';'
8218 if test -n "$LD"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8220 $as_echo_n "checking for ld... " >&6; }
8221 elif test "$GCC" = yes; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8223 $as_echo_n "checking for ld used by $CC... " >&6; }
8224 elif test "$with_gnu_ld" = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8226 $as_echo_n "checking for GNU ld... " >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8229 $as_echo_n "checking for non-GNU ld... " >&6; }
8231 if test -n "$LD"; then
8232 # Let the user override the test with a path.
8234 else
8235 if ${acl_cv_path_LD+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8239 acl_cv_path_LD= # Final result of this test
8240 ac_prog=ld # Program to search in $PATH
8241 if test "$GCC" = yes; then
8242 # Check if gcc -print-prog-name=ld gives a path.
8243 case $host in
8244 *-*-mingw*)
8245 # gcc leaves a trailing carriage return which upsets mingw
8246 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8248 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8249 esac
8250 case $acl_output in
8251 # Accept absolute paths.
8252 [\\/]* | ?:[\\/]*)
8253 re_direlt='/[^/][^/]*/\.\./'
8254 # Canonicalize the pathname of ld
8255 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8256 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8257 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8258 done
8259 # Got the pathname. No search in PATH is needed.
8260 acl_cv_path_LD="$acl_output"
8261 ac_prog=
8264 # If it fails, then pretend we aren't using GCC.
8267 # If it is relative, then search for the first ld in PATH.
8268 with_gnu_ld=unknown
8270 esac
8272 if test -n "$ac_prog"; then
8273 # Search for $ac_prog in $PATH.
8274 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275 for ac_dir in $PATH; do
8276 IFS="$acl_save_ifs"
8277 test -z "$ac_dir" && ac_dir=.
8278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8279 acl_cv_path_LD="$ac_dir/$ac_prog"
8280 # Check to see if the program is GNU ld. I'd rather use --version,
8281 # but apparently some variants of GNU ld only accept -v.
8282 # Break only if it was the GNU/non-GNU ld that we prefer.
8283 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8284 *GNU* | *'with BFD'*)
8285 test "$with_gnu_ld" != no && break
8288 test "$with_gnu_ld" != yes && break
8290 esac
8292 done
8293 IFS="$acl_save_ifs"
8295 case $host in
8296 *-*-aix*)
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #if defined __powerpc64__ || defined _ARCH_PPC64
8300 int ok;
8301 #else
8302 error fail
8303 #endif
8305 _ACEOF
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307 # The compiler produces 64-bit code. Add option '-b64' so that the
8308 # linker groks 64-bit object files.
8309 case "$acl_cv_path_LD " in
8310 *" -b64 "*) ;;
8311 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8312 esac
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 sparc64-*-netbsd*)
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #if defined __sparcv9 || defined __arch64__
8321 int ok;
8322 #else
8323 error fail
8324 #endif
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8329 else
8330 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8331 # so that the linker groks 32-bit object files.
8332 case "$acl_cv_path_LD " in
8333 *" -m elf32_sparc "*) ;;
8334 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8335 esac
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 esac
8344 LD="$acl_cv_path_LD"
8346 if test -n "$LD"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8348 $as_echo "$LD" >&6; }
8349 else
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8356 if ${acl_cv_prog_gnu_ld+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8360 case `$LD -v 2>&1 </dev/null` in
8361 *GNU* | *'with BFD'*)
8362 acl_cv_prog_gnu_ld=yes
8365 acl_cv_prog_gnu_ld=no
8367 esac
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8370 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8371 with_gnu_ld=$acl_cv_prog_gnu_ld
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8377 $as_echo_n "checking for shared library run path origin... " >&6; }
8378 if ${acl_cv_rpath+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8382 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8383 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8384 . ./conftest.sh
8385 rm -f ./conftest.sh
8386 acl_cv_rpath=done
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8390 $as_echo "$acl_cv_rpath" >&6; }
8391 wl="$acl_cv_wl"
8392 acl_libext="$acl_cv_libext"
8393 acl_shlibext="$acl_cv_shlibext"
8394 acl_libname_spec="$acl_cv_libname_spec"
8395 acl_library_names_spec="$acl_cv_library_names_spec"
8396 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8397 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8398 acl_hardcode_direct="$acl_cv_hardcode_direct"
8399 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8400 # Check whether --enable-rpath was given.
8401 if test "${enable_rpath+set}" = set; then :
8402 enableval=$enable_rpath; :
8403 else
8404 enable_rpath=yes
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8411 $as_echo_n "checking 32-bit host C ABI... " >&6; }
8412 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$gl_cv_host_cpu_c_abi"; then
8416 case "$gl_cv_host_cpu_c_abi" in
8417 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8418 gl_cv_host_cpu_c_abi_32bit=yes ;;
8420 gl_cv_host_cpu_c_abi_32bit=no ;;
8421 esac
8422 else
8423 case "$host_cpu" in
8425 i[4567]86 )
8426 gl_cv_host_cpu_c_abi_32bit=yes
8429 x86_64 )
8430 # On x86_64 systems, the C compiler may be generating code in one of
8431 # these ABIs:
8432 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8433 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8434 # with native Windows (mingw, MSVC).
8435 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8436 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #if (defined __x86_64__ || defined __amd64__ \
8440 || defined _M_X64 || defined _M_AMD64) \
8441 && !(defined __ILP32__ || defined _ILP32)
8442 int ok;
8443 #else
8444 error fail
8445 #endif
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 gl_cv_host_cpu_c_abi_32bit=no
8450 else
8451 gl_cv_host_cpu_c_abi_32bit=yes
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 arm* | aarch64 )
8457 # Assume arm with EABI.
8458 # On arm64 systems, the C compiler may be generating code in one of
8459 # these ABIs:
8460 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8461 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8462 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8466 int ok;
8467 #else
8468 error fail
8469 #endif
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 gl_cv_host_cpu_c_abi_32bit=no
8474 else
8475 gl_cv_host_cpu_c_abi_32bit=yes
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8481 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8482 # code. In the latter case, it defines _LP64 and __LP64__.
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #ifdef __LP64__
8486 int ok;
8487 #else
8488 error fail
8489 #endif
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 gl_cv_host_cpu_c_abi_32bit=no
8494 else
8495 gl_cv_host_cpu_c_abi_32bit=yes
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 ia64* )
8501 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8502 # 32-bit code. In the latter case, it defines _ILP32.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #ifdef _ILP32
8506 int ok;
8507 #else
8508 error fail
8509 #endif
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 gl_cv_host_cpu_c_abi_32bit=yes
8514 else
8515 gl_cv_host_cpu_c_abi_32bit=no
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 mips* )
8521 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8522 # at 32.
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8526 int ok;
8527 #else
8528 error fail
8529 #endif
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 gl_cv_host_cpu_c_abi_32bit=no
8534 else
8535 gl_cv_host_cpu_c_abi_32bit=yes
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 powerpc* )
8541 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8542 # No need to distinguish them here; the caller may distinguish
8543 # them based on the OS.
8544 # On powerpc64 systems, the C compiler may still be generating
8545 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8546 # be generating 64-bit code.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #if defined __powerpc64__ || defined _ARCH_PPC64
8550 int ok;
8551 #else
8552 error fail
8553 #endif
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 gl_cv_host_cpu_c_abi_32bit=no
8558 else
8559 gl_cv_host_cpu_c_abi_32bit=yes
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 rs6000 )
8565 gl_cv_host_cpu_c_abi_32bit=yes
8568 riscv32 | riscv64 )
8569 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8570 # Size of 'long' and 'void *':
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 #if defined __LP64__
8574 int ok;
8575 #else
8576 error fail
8577 #endif
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 gl_cv_host_cpu_c_abi_32bit=no
8582 else
8583 gl_cv_host_cpu_c_abi_32bit=yes
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 s390* )
8589 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8590 # or 31-bit (= s390) code.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #if defined __LP64__ || defined __s390x__
8594 int ok;
8595 #else
8596 error fail
8597 #endif
8599 _ACEOF
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 gl_cv_host_cpu_c_abi_32bit=no
8602 else
8603 gl_cv_host_cpu_c_abi_32bit=yes
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 sparc | sparc64 )
8609 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8610 # C compiler still generates 32-bit code.
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #if defined __sparcv9 || defined __arch64__
8614 int ok;
8615 #else
8616 error fail
8617 #endif
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 gl_cv_host_cpu_c_abi_32bit=no
8622 else
8623 gl_cv_host_cpu_c_abi_32bit=yes
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 gl_cv_host_cpu_c_abi_32bit=no
8631 esac
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
8636 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
8638 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
8644 case "$host_os" in
8645 solaris*)
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8647 $as_echo_n "checking for 64-bit host... " >&6; }
8648 if ${gl_cv_solaris_64bit+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #ifdef _LP64
8654 int ok;
8655 #else
8656 error fail
8657 #endif
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 gl_cv_solaris_64bit=yes
8662 else
8663 gl_cv_solaris_64bit=no
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8669 $as_echo "$gl_cv_solaris_64bit" >&6; };;
8670 esac
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
8673 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
8674 if ${acl_cv_libdirstems+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 acl_libdirstem=lib
8678 acl_libdirstem2=
8679 case "$host_os" in
8680 solaris*)
8681 if test $gl_cv_solaris_64bit = yes; then
8682 acl_libdirstem=lib/64
8683 case "$host_cpu" in
8684 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8685 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8686 esac
8690 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
8691 searchpath=`(if test -f /usr/bin/gcc \
8692 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
8693 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
8694 else \
8695 LC_ALL=C $CC -print-search-dirs; \
8696 fi) 2>/dev/null \
8697 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8698 if test -n "$searchpath"; then
8699 acl_save_IFS="${IFS= }"; IFS=":"
8700 for searchdir in $searchpath; do
8701 if test -d "$searchdir"; then
8702 case "$searchdir" in
8703 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8704 */../ | */.. )
8705 # Better ignore directories of this form. They are misleading.
8707 *) searchdir=`cd "$searchdir" && pwd`
8708 case "$searchdir" in
8709 */lib64 ) acl_libdirstem=lib64 ;;
8710 esac ;;
8711 esac
8713 done
8714 IFS="$acl_save_IFS"
8718 esac
8719 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8720 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
8724 $as_echo "$acl_cv_libdirstems" >&6; }
8725 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
8726 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
8727 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
8731 gl_threads_api=none
8732 LIBTHREAD=
8733 LTLIBTHREAD=
8734 LIBMULTITHREAD=
8735 LTLIBMULTITHREAD=
8736 if test "$gl_use_threads" != no; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
8738 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
8739 if ${gl_cv_have_weak+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 gl_cv_have_weak=no
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 extern void xyzzy ();
8746 #pragma weak xyzzy
8748 main ()
8750 xyzzy();
8752 return 0;
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 gl_cv_have_weak=maybe
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 if test $gl_cv_have_weak = maybe; then
8761 if test "$cross_compiling" = yes; then :
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #ifdef __ELF__
8765 Extensible Linking Format
8766 #endif
8768 _ACEOF
8769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8770 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
8771 gl_cv_have_weak="guessing yes"
8772 else
8773 gl_cv_have_weak="guessing no"
8775 rm -f conftest*
8778 else
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8782 #include <stdio.h>
8783 #pragma weak fputs
8784 int main ()
8786 return (fputs == NULL);
8788 _ACEOF
8789 if ac_fn_c_try_run "$LINENO"; then :
8790 gl_cv_have_weak=yes
8791 else
8792 gl_cv_have_weak=no
8794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8795 conftest.$ac_objext conftest.beam conftest.$ac_ext
8799 case " $LDFLAGS " in
8800 *" -static "*) gl_cv_have_weak=no ;;
8801 esac
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
8805 $as_echo "$gl_cv_have_weak" >&6; }
8806 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8807 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
8808 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
8809 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8810 if test "x$ac_cv_header_pthread_h" = xyes; then :
8811 gl_have_pthread_h=yes
8812 else
8813 gl_have_pthread_h=no
8817 if test "$gl_have_pthread_h" = yes; then
8818 # Other possible tests:
8819 # -lpthreads (FSU threads, PCthreads)
8820 # -lgthreads
8821 gl_have_pthread=
8822 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8823 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8824 # the second one only in libpthread, and lock.c needs it.
8826 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
8827 # needs -pthread for some reason. See:
8828 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
8829 save_LIBS=$LIBS
8830 for gl_pthread in '' '-pthread'; do
8831 LIBS="$LIBS $gl_pthread"
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <pthread.h>
8835 pthread_mutex_t m;
8836 pthread_mutexattr_t ma;
8839 main ()
8841 pthread_mutex_lock (&m);
8842 pthread_mutexattr_init (&ma);
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 gl_have_pthread=yes
8849 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
8850 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$save_LIBS
8855 test -n "$gl_have_pthread" && break
8856 done
8858 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8859 # since it is defined as a macro on OSF/1.)
8860 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
8861 # The program links fine without libpthread. But it may actually
8862 # need to link with libpthread in order to create multiple threads.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8864 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8865 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-lpthread $LIBS"
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 char pthread_kill ();
8881 main ()
8883 return pthread_kill ();
8885 return 0;
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_lib_pthread_pthread_kill=yes
8890 else
8891 ac_cv_lib_pthread_pthread_kill=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8898 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8899 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8900 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8901 # On Solaris and HP-UX, most pthread functions exist also in libc.
8902 # Therefore pthread_in_use() needs to actually try to create a
8903 # thread: pthread_create from libc will fail, whereas
8904 # pthread_create will actually create a thread.
8905 # On Solaris 10 or newer, this test is no longer needed, because
8906 # libc contains the fully functional pthread functions.
8907 case "$host_os" in
8908 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
8910 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8912 esac
8916 elif test -z "$gl_have_pthread"; then
8917 # Some library is needed. Try libpthread and libc_r.
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8919 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8920 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 ac_check_lib_save_LIBS=$LIBS
8924 LIBS="-lpthread $LIBS"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 /* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8931 #ifdef __cplusplus
8932 extern "C"
8933 #endif
8934 char pthread_kill ();
8936 main ()
8938 return pthread_kill ();
8940 return 0;
8942 _ACEOF
8943 if ac_fn_c_try_link "$LINENO"; then :
8944 ac_cv_lib_pthread_pthread_kill=yes
8945 else
8946 ac_cv_lib_pthread_pthread_kill=no
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8953 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8954 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8955 gl_have_pthread=yes
8956 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8957 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8960 if test -z "$gl_have_pthread"; then
8961 # For FreeBSD 4.
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8963 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8964 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 ac_check_lib_save_LIBS=$LIBS
8968 LIBS="-lc_r $LIBS"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 char pthread_kill ();
8980 main ()
8982 return pthread_kill ();
8984 return 0;
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_c_r_pthread_kill=yes
8989 else
8990 ac_cv_lib_c_r_pthread_kill=no
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8997 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8998 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8999 gl_have_pthread=yes
9000 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9001 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9006 if test -n "$gl_have_pthread"; then
9007 gl_threads_api=posix
9009 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9011 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9012 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9014 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9016 LIBTHREAD=
9017 LTLIBTHREAD=
9023 if test -z "$gl_have_pthread"; then
9024 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9025 gl_have_solaristhread=
9026 gl_save_LIBS="$LIBS"
9027 LIBS="$LIBS -lthread"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 #include <thread.h>
9032 #include <synch.h>
9035 main ()
9037 thr_self();
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 gl_have_solaristhread=yes
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047 LIBS="$gl_save_LIBS"
9048 if test -n "$gl_have_solaristhread"; then
9049 gl_threads_api=solaris
9050 LIBTHREAD=-lthread
9051 LTLIBTHREAD=-lthread
9052 LIBMULTITHREAD="$LIBTHREAD"
9053 LTLIBMULTITHREAD="$LTLIBTHREAD"
9055 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9057 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9059 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9061 LIBTHREAD=
9062 LTLIBTHREAD=
9067 if test "$gl_use_threads" = pth; then
9068 gl_save_CPPFLAGS="$CPPFLAGS"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9075 $as_echo_n "checking how to link with libpth... " >&6; }
9076 if ${ac_cv_libpth_libs+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9086 use_additional=yes
9088 acl_save_prefix="$prefix"
9089 prefix="$acl_final_prefix"
9090 acl_save_exec_prefix="$exec_prefix"
9091 exec_prefix="$acl_final_exec_prefix"
9093 eval additional_includedir=\"$includedir\"
9094 eval additional_libdir=\"$libdir\"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9100 # Check whether --with-libpth-prefix was given.
9101 if test "${with_libpth_prefix+set}" = set; then :
9102 withval=$with_libpth_prefix;
9103 if test "X$withval" = "Xno"; then
9104 use_additional=no
9105 else
9106 if test "X$withval" = "X"; then
9108 acl_save_prefix="$prefix"
9109 prefix="$acl_final_prefix"
9110 acl_save_exec_prefix="$exec_prefix"
9111 exec_prefix="$acl_final_exec_prefix"
9113 eval additional_includedir=\"$includedir\"
9114 eval additional_libdir=\"$libdir\"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9119 else
9120 additional_includedir="$withval/include"
9121 additional_libdir="$withval/$acl_libdirstem"
9122 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9123 && test ! -d "$withval/$acl_libdirstem"; then
9124 additional_libdir="$withval/$acl_libdirstem2"
9131 LIBPTH=
9132 LTLIBPTH=
9133 INCPTH=
9134 LIBPTH_PREFIX=
9135 HAVE_LIBPTH=
9136 rpathdirs=
9137 ltrpathdirs=
9138 names_already_handled=
9139 names_next_round='pth '
9140 while test -n "$names_next_round"; do
9141 names_this_round="$names_next_round"
9142 names_next_round=
9143 for name in $names_this_round; do
9144 already_handled=
9145 for n in $names_already_handled; do
9146 if test "$n" = "$name"; then
9147 already_handled=yes
9148 break
9150 done
9151 if test -z "$already_handled"; then
9152 names_already_handled="$names_already_handled $name"
9153 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9154 eval value=\"\$HAVE_LIB$uppername\"
9155 if test -n "$value"; then
9156 if test "$value" = yes; then
9157 eval value=\"\$LIB$uppername\"
9158 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9159 eval value=\"\$LTLIB$uppername\"
9160 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9161 else
9164 else
9165 found_dir=
9166 found_la=
9167 found_so=
9168 found_a=
9169 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9170 if test -n "$acl_shlibext"; then
9171 shrext=".$acl_shlibext" # typically: shrext=.so
9172 else
9173 shrext=
9175 if test $use_additional = yes; then
9176 dir="$additional_libdir"
9177 if test -n "$acl_shlibext"; then
9178 if test -f "$dir/$libname$shrext"; then
9179 found_dir="$dir"
9180 found_so="$dir/$libname$shrext"
9181 else
9182 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9183 ver=`(cd "$dir" && \
9184 for f in "$libname$shrext".*; do echo "$f"; done \
9185 | sed -e "s,^$libname$shrext\\\\.,," \
9186 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9187 | sed 1q ) 2>/dev/null`
9188 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9189 found_dir="$dir"
9190 found_so="$dir/$libname$shrext.$ver"
9192 else
9193 eval library_names=\"$acl_library_names_spec\"
9194 for f in $library_names; do
9195 if test -f "$dir/$f"; then
9196 found_dir="$dir"
9197 found_so="$dir/$f"
9198 break
9200 done
9204 if test "X$found_dir" = "X"; then
9205 if test -f "$dir/$libname.$acl_libext"; then
9206 found_dir="$dir"
9207 found_a="$dir/$libname.$acl_libext"
9210 if test "X$found_dir" != "X"; then
9211 if test -f "$dir/$libname.la"; then
9212 found_la="$dir/$libname.la"
9216 if test "X$found_dir" = "X"; then
9217 for x in $LDFLAGS $LTLIBPTH; do
9219 acl_save_prefix="$prefix"
9220 prefix="$acl_final_prefix"
9221 acl_save_exec_prefix="$exec_prefix"
9222 exec_prefix="$acl_final_exec_prefix"
9223 eval x=\"$x\"
9224 exec_prefix="$acl_save_exec_prefix"
9225 prefix="$acl_save_prefix"
9227 case "$x" in
9228 -L*)
9229 dir=`echo "X$x" | sed -e 's/^X-L//'`
9230 if test -n "$acl_shlibext"; then
9231 if test -f "$dir/$libname$shrext"; then
9232 found_dir="$dir"
9233 found_so="$dir/$libname$shrext"
9234 else
9235 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9236 ver=`(cd "$dir" && \
9237 for f in "$libname$shrext".*; do echo "$f"; done \
9238 | sed -e "s,^$libname$shrext\\\\.,," \
9239 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9240 | sed 1q ) 2>/dev/null`
9241 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9242 found_dir="$dir"
9243 found_so="$dir/$libname$shrext.$ver"
9245 else
9246 eval library_names=\"$acl_library_names_spec\"
9247 for f in $library_names; do
9248 if test -f "$dir/$f"; then
9249 found_dir="$dir"
9250 found_so="$dir/$f"
9251 break
9253 done
9257 if test "X$found_dir" = "X"; then
9258 if test -f "$dir/$libname.$acl_libext"; then
9259 found_dir="$dir"
9260 found_a="$dir/$libname.$acl_libext"
9263 if test "X$found_dir" != "X"; then
9264 if test -f "$dir/$libname.la"; then
9265 found_la="$dir/$libname.la"
9269 esac
9270 if test "X$found_dir" != "X"; then
9271 break
9273 done
9275 if test "X$found_dir" != "X"; then
9276 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9277 if test "X$found_so" != "X"; then
9278 if test "$enable_rpath" = no \
9279 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9280 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9281 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9282 else
9283 haveit=
9284 for x in $ltrpathdirs; do
9285 if test "X$x" = "X$found_dir"; then
9286 haveit=yes
9287 break
9289 done
9290 if test -z "$haveit"; then
9291 ltrpathdirs="$ltrpathdirs $found_dir"
9293 if test "$acl_hardcode_direct" = yes; then
9294 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9295 else
9296 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9297 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9298 haveit=
9299 for x in $rpathdirs; do
9300 if test "X$x" = "X$found_dir"; then
9301 haveit=yes
9302 break
9304 done
9305 if test -z "$haveit"; then
9306 rpathdirs="$rpathdirs $found_dir"
9308 else
9309 haveit=
9310 for x in $LDFLAGS $LIBPTH; do
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9316 eval x=\"$x\"
9317 exec_prefix="$acl_save_exec_prefix"
9318 prefix="$acl_save_prefix"
9320 if test "X$x" = "X-L$found_dir"; then
9321 haveit=yes
9322 break
9324 done
9325 if test -z "$haveit"; then
9326 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9328 if test "$acl_hardcode_minus_L" != no; then
9329 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9330 else
9331 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9336 else
9337 if test "X$found_a" != "X"; then
9338 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9339 else
9340 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9343 additional_includedir=
9344 case "$found_dir" in
9345 */$acl_libdirstem | */$acl_libdirstem/)
9346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9347 if test "$name" = 'pth'; then
9348 LIBPTH_PREFIX="$basedir"
9350 additional_includedir="$basedir/include"
9352 */$acl_libdirstem2 | */$acl_libdirstem2/)
9353 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9354 if test "$name" = 'pth'; then
9355 LIBPTH_PREFIX="$basedir"
9357 additional_includedir="$basedir/include"
9359 esac
9360 if test "X$additional_includedir" != "X"; then
9361 if test "X$additional_includedir" != "X/usr/include"; then
9362 haveit=
9363 if test "X$additional_includedir" = "X/usr/local/include"; then
9364 if test -n "$GCC"; then
9365 case $host_os in
9366 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9367 esac
9370 if test -z "$haveit"; then
9371 for x in $CPPFLAGS $INCPTH; do
9373 acl_save_prefix="$prefix"
9374 prefix="$acl_final_prefix"
9375 acl_save_exec_prefix="$exec_prefix"
9376 exec_prefix="$acl_final_exec_prefix"
9377 eval x=\"$x\"
9378 exec_prefix="$acl_save_exec_prefix"
9379 prefix="$acl_save_prefix"
9381 if test "X$x" = "X-I$additional_includedir"; then
9382 haveit=yes
9383 break
9385 done
9386 if test -z "$haveit"; then
9387 if test -d "$additional_includedir"; then
9388 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
9394 if test -n "$found_la"; then
9395 save_libdir="$libdir"
9396 case "$found_la" in
9397 */* | *\\*) . "$found_la" ;;
9398 *) . "./$found_la" ;;
9399 esac
9400 libdir="$save_libdir"
9401 for dep in $dependency_libs; do
9402 case "$dep" in
9403 -L*)
9404 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9405 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9406 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9407 haveit=
9408 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9409 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9410 if test -n "$GCC"; then
9411 case $host_os in
9412 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9413 esac
9416 if test -z "$haveit"; then
9417 haveit=
9418 for x in $LDFLAGS $LIBPTH; do
9420 acl_save_prefix="$prefix"
9421 prefix="$acl_final_prefix"
9422 acl_save_exec_prefix="$exec_prefix"
9423 exec_prefix="$acl_final_exec_prefix"
9424 eval x=\"$x\"
9425 exec_prefix="$acl_save_exec_prefix"
9426 prefix="$acl_save_prefix"
9428 if test "X$x" = "X-L$additional_libdir"; then
9429 haveit=yes
9430 break
9432 done
9433 if test -z "$haveit"; then
9434 if test -d "$additional_libdir"; then
9435 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
9438 haveit=
9439 for x in $LDFLAGS $LTLIBPTH; do
9441 acl_save_prefix="$prefix"
9442 prefix="$acl_final_prefix"
9443 acl_save_exec_prefix="$exec_prefix"
9444 exec_prefix="$acl_final_exec_prefix"
9445 eval x=\"$x\"
9446 exec_prefix="$acl_save_exec_prefix"
9447 prefix="$acl_save_prefix"
9449 if test "X$x" = "X-L$additional_libdir"; then
9450 haveit=yes
9451 break
9453 done
9454 if test -z "$haveit"; then
9455 if test -d "$additional_libdir"; then
9456 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
9462 -R*)
9463 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9464 if test "$enable_rpath" != no; then
9465 haveit=
9466 for x in $rpathdirs; do
9467 if test "X$x" = "X$dir"; then
9468 haveit=yes
9469 break
9471 done
9472 if test -z "$haveit"; then
9473 rpathdirs="$rpathdirs $dir"
9475 haveit=
9476 for x in $ltrpathdirs; do
9477 if test "X$x" = "X$dir"; then
9478 haveit=yes
9479 break
9481 done
9482 if test -z "$haveit"; then
9483 ltrpathdirs="$ltrpathdirs $dir"
9487 -l*)
9488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9490 *.la)
9491 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9494 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
9495 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
9497 esac
9498 done
9500 else
9501 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9502 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
9506 done
9507 done
9508 if test "X$rpathdirs" != "X"; then
9509 if test -n "$acl_hardcode_libdir_separator"; then
9510 alldirs=
9511 for found_dir in $rpathdirs; do
9512 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9513 done
9514 acl_save_libdir="$libdir"
9515 libdir="$alldirs"
9516 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9517 libdir="$acl_save_libdir"
9518 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9519 else
9520 for found_dir in $rpathdirs; do
9521 acl_save_libdir="$libdir"
9522 libdir="$found_dir"
9523 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9524 libdir="$acl_save_libdir"
9525 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
9526 done
9529 if test "X$ltrpathdirs" != "X"; then
9530 for found_dir in $ltrpathdirs; do
9531 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
9532 done
9539 ac_cv_libpth_libs="$LIBPTH"
9540 ac_cv_libpth_ltlibs="$LTLIBPTH"
9541 ac_cv_libpth_cppflags="$INCPTH"
9542 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
9546 $as_echo "$ac_cv_libpth_libs" >&6; }
9547 LIBPTH="$ac_cv_libpth_libs"
9548 LTLIBPTH="$ac_cv_libpth_ltlibs"
9549 INCPTH="$ac_cv_libpth_cppflags"
9550 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
9552 for element in $INCPTH; do
9553 haveit=
9554 for x in $CPPFLAGS; do
9556 acl_save_prefix="$prefix"
9557 prefix="$acl_final_prefix"
9558 acl_save_exec_prefix="$exec_prefix"
9559 exec_prefix="$acl_final_exec_prefix"
9560 eval x=\"$x\"
9561 exec_prefix="$acl_save_exec_prefix"
9562 prefix="$acl_save_prefix"
9564 if test "X$x" = "X$element"; then
9565 haveit=yes
9566 break
9568 done
9569 if test -z "$haveit"; then
9570 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9572 done
9577 HAVE_LIBPTH=yes
9581 gl_have_pth=
9582 gl_save_LIBS="$LIBS"
9583 LIBS="$LIBS $LIBPTH"
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 #include <pth.h>
9588 main ()
9590 pth_self();
9592 return 0;
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 gl_have_pth=yes
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS="$gl_save_LIBS"
9601 if test -n "$gl_have_pth"; then
9602 gl_threads_api=pth
9603 LIBTHREAD="$LIBPTH"
9604 LTLIBTHREAD="$LTLIBPTH"
9605 LIBMULTITHREAD="$LIBTHREAD"
9606 LTLIBMULTITHREAD="$LTLIBTHREAD"
9608 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
9610 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9611 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9613 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
9615 LIBTHREAD=
9616 LTLIBTHREAD=
9619 else
9620 CPPFLAGS="$gl_save_CPPFLAGS"
9623 if test -z "$gl_have_pthread"; then
9624 case "$gl_use_threads" in
9625 yes | windows | win32) # The 'win32' is for backward compatibility.
9626 if { case "$host_os" in
9627 mingw*) true;;
9628 *) false;;
9629 esac
9630 }; then
9631 gl_threads_api=windows
9633 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
9637 esac
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
9641 $as_echo_n "checking for multithread API to use... " >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
9643 $as_echo "$gl_threads_api" >&6; }
9655 if test "$gl_threads_api" = posix; then
9656 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
9657 # pthread_rwlock_* functions.
9658 has_rwlock=false
9659 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
9661 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
9662 has_rwlock=true
9664 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
9668 if $has_rwlock; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
9672 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
9673 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 save_LIBS="$LIBS"
9677 LIBS="$LIBS $LIBMULTITHREAD"
9678 if test "$cross_compiling" = yes; then :
9679 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
9680 else
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 #include <errno.h>
9685 #include <pthread.h>
9686 #include <stdlib.h>
9687 #include <unistd.h>
9689 #define SUCCEED() exit (0)
9690 #define FAILURE() exit (1)
9691 #define UNEXPECTED(n) (exit (10 + (n)))
9693 /* The main thread creates the waiting writer and the requesting reader threads
9694 in the default way; this guarantees that they have the same priority.
9695 We can reuse the main thread as first reader thread. */
9697 static pthread_rwlock_t lock;
9698 static pthread_t reader1;
9699 static pthread_t writer;
9700 static pthread_t reader2;
9701 static pthread_t timer;
9702 /* Used to pass control from writer to reader2 and from reader2 to timer,
9703 as in a relay race.
9704 Passing control from one running thread to another running thread
9705 is most likely faster than to create the second thread. */
9706 static pthread_mutex_t baton;
9708 static void *
9709 timer_func (void *ignored)
9711 /* Step 13 (can be before or after step 12):
9712 The timer thread takes the baton, then waits a moment to make sure
9713 it can tell whether the second reader thread is blocked at step 12. */
9714 if (pthread_mutex_lock (&baton))
9715 UNEXPECTED (13);
9716 usleep (100000);
9717 /* By the time we get here, it's clear that the second reader thread is
9718 blocked at step 12. This is the desired behaviour. */
9719 SUCCEED ();
9722 static void *
9723 reader2_func (void *ignored)
9725 int err;
9727 /* Step 8 (can be before or after step 7):
9728 The second reader thread takes the baton, then waits a moment to make sure
9729 the writer thread has reached step 7. */
9730 if (pthread_mutex_lock (&baton))
9731 UNEXPECTED (8);
9732 usleep (100000);
9733 /* Step 9: The second reader thread requests the lock. */
9734 err = pthread_rwlock_tryrdlock (&lock);
9735 if (err == 0)
9736 FAILURE ();
9737 else if (err != EBUSY)
9738 UNEXPECTED (9);
9739 /* Step 10: Launch a timer, to test whether the next call blocks. */
9740 if (pthread_create (&timer, NULL, timer_func, NULL))
9741 UNEXPECTED (10);
9742 /* Step 11: Release the baton. */
9743 if (pthread_mutex_unlock (&baton))
9744 UNEXPECTED (11);
9745 /* Step 12: The second reader thread requests the lock. */
9746 err = pthread_rwlock_rdlock (&lock);
9747 if (err == 0)
9748 FAILURE ();
9749 else
9750 UNEXPECTED (12);
9753 static void *
9754 writer_func (void *ignored)
9756 /* Step 4: Take the baton, so that the second reader thread does not go ahead
9757 too early. */
9758 if (pthread_mutex_lock (&baton))
9759 UNEXPECTED (4);
9760 /* Step 5: Create the second reader thread. */
9761 if (pthread_create (&reader2, NULL, reader2_func, NULL))
9762 UNEXPECTED (5);
9763 /* Step 6: Release the baton. */
9764 if (pthread_mutex_unlock (&baton))
9765 UNEXPECTED (6);
9766 /* Step 7: The writer thread requests the lock. */
9767 if (pthread_rwlock_wrlock (&lock))
9768 UNEXPECTED (7);
9769 return NULL;
9773 main ()
9775 reader1 = pthread_self ();
9777 /* Step 1: The main thread initializes the lock and the baton. */
9778 if (pthread_rwlock_init (&lock, NULL))
9779 UNEXPECTED (1);
9780 if (pthread_mutex_init (&baton, NULL))
9781 UNEXPECTED (1);
9782 /* Step 2: The main thread acquires the lock as a reader. */
9783 if (pthread_rwlock_rdlock (&lock))
9784 UNEXPECTED (2);
9785 /* Step 3: Create the writer thread. */
9786 if (pthread_create (&writer, NULL, writer_func, NULL))
9787 UNEXPECTED (3);
9788 /* Job done. Go to sleep. */
9789 for (;;)
9791 sleep (1);
9795 _ACEOF
9796 if ac_fn_c_try_run "$LINENO"; then :
9797 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
9798 else
9799 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
9801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9802 conftest.$ac_objext conftest.beam conftest.$ac_ext
9805 LIBS="$save_LIBS"
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
9809 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
9810 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
9811 *yes)
9813 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
9816 esac
9819 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 #include <pthread.h>
9825 main ()
9828 #if __FreeBSD__ == 4
9829 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
9830 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
9831 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
9832 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
9833 #else
9834 int x = (int)PTHREAD_MUTEX_RECURSIVE;
9835 return !x;
9836 #endif
9839 return 0;
9841 _ACEOF
9842 if ac_fn_c_try_compile "$LINENO"; then :
9844 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 use_additional=yes
9863 acl_save_prefix="$prefix"
9864 prefix="$acl_final_prefix"
9865 acl_save_exec_prefix="$exec_prefix"
9866 exec_prefix="$acl_final_exec_prefix"
9868 eval additional_includedir=\"$includedir\"
9869 eval additional_libdir=\"$libdir\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9875 # Check whether --with-libiconv-prefix was given.
9876 if test "${with_libiconv_prefix+set}" = set; then :
9877 withval=$with_libiconv_prefix;
9878 if test "X$withval" = "Xno"; then
9879 use_additional=no
9880 else
9881 if test "X$withval" = "X"; then
9883 acl_save_prefix="$prefix"
9884 prefix="$acl_final_prefix"
9885 acl_save_exec_prefix="$exec_prefix"
9886 exec_prefix="$acl_final_exec_prefix"
9888 eval additional_includedir=\"$includedir\"
9889 eval additional_libdir=\"$libdir\"
9891 exec_prefix="$acl_save_exec_prefix"
9892 prefix="$acl_save_prefix"
9894 else
9895 additional_includedir="$withval/include"
9896 additional_libdir="$withval/$acl_libdirstem"
9897 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9898 && test ! -d "$withval/$acl_libdirstem"; then
9899 additional_libdir="$withval/$acl_libdirstem2"
9906 LIBICONV=
9907 LTLIBICONV=
9908 INCICONV=
9909 LIBICONV_PREFIX=
9910 HAVE_LIBICONV=
9911 rpathdirs=
9912 ltrpathdirs=
9913 names_already_handled=
9914 names_next_round='iconv '
9915 while test -n "$names_next_round"; do
9916 names_this_round="$names_next_round"
9917 names_next_round=
9918 for name in $names_this_round; do
9919 already_handled=
9920 for n in $names_already_handled; do
9921 if test "$n" = "$name"; then
9922 already_handled=yes
9923 break
9925 done
9926 if test -z "$already_handled"; then
9927 names_already_handled="$names_already_handled $name"
9928 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9929 eval value=\"\$HAVE_LIB$uppername\"
9930 if test -n "$value"; then
9931 if test "$value" = yes; then
9932 eval value=\"\$LIB$uppername\"
9933 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9934 eval value=\"\$LTLIB$uppername\"
9935 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9936 else
9939 else
9940 found_dir=
9941 found_la=
9942 found_so=
9943 found_a=
9944 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9945 if test -n "$acl_shlibext"; then
9946 shrext=".$acl_shlibext" # typically: shrext=.so
9947 else
9948 shrext=
9950 if test $use_additional = yes; then
9951 dir="$additional_libdir"
9952 if test -n "$acl_shlibext"; then
9953 if test -f "$dir/$libname$shrext"; then
9954 found_dir="$dir"
9955 found_so="$dir/$libname$shrext"
9956 else
9957 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9958 ver=`(cd "$dir" && \
9959 for f in "$libname$shrext".*; do echo "$f"; done \
9960 | sed -e "s,^$libname$shrext\\\\.,," \
9961 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9962 | sed 1q ) 2>/dev/null`
9963 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9964 found_dir="$dir"
9965 found_so="$dir/$libname$shrext.$ver"
9967 else
9968 eval library_names=\"$acl_library_names_spec\"
9969 for f in $library_names; do
9970 if test -f "$dir/$f"; then
9971 found_dir="$dir"
9972 found_so="$dir/$f"
9973 break
9975 done
9979 if test "X$found_dir" = "X"; then
9980 if test -f "$dir/$libname.$acl_libext"; then
9981 found_dir="$dir"
9982 found_a="$dir/$libname.$acl_libext"
9985 if test "X$found_dir" != "X"; then
9986 if test -f "$dir/$libname.la"; then
9987 found_la="$dir/$libname.la"
9991 if test "X$found_dir" = "X"; then
9992 for x in $LDFLAGS $LTLIBICONV; do
9994 acl_save_prefix="$prefix"
9995 prefix="$acl_final_prefix"
9996 acl_save_exec_prefix="$exec_prefix"
9997 exec_prefix="$acl_final_exec_prefix"
9998 eval x=\"$x\"
9999 exec_prefix="$acl_save_exec_prefix"
10000 prefix="$acl_save_prefix"
10002 case "$x" in
10003 -L*)
10004 dir=`echo "X$x" | sed -e 's/^X-L//'`
10005 if test -n "$acl_shlibext"; then
10006 if test -f "$dir/$libname$shrext"; then
10007 found_dir="$dir"
10008 found_so="$dir/$libname$shrext"
10009 else
10010 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10011 ver=`(cd "$dir" && \
10012 for f in "$libname$shrext".*; do echo "$f"; done \
10013 | sed -e "s,^$libname$shrext\\\\.,," \
10014 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10015 | sed 1q ) 2>/dev/null`
10016 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10017 found_dir="$dir"
10018 found_so="$dir/$libname$shrext.$ver"
10020 else
10021 eval library_names=\"$acl_library_names_spec\"
10022 for f in $library_names; do
10023 if test -f "$dir/$f"; then
10024 found_dir="$dir"
10025 found_so="$dir/$f"
10026 break
10028 done
10032 if test "X$found_dir" = "X"; then
10033 if test -f "$dir/$libname.$acl_libext"; then
10034 found_dir="$dir"
10035 found_a="$dir/$libname.$acl_libext"
10038 if test "X$found_dir" != "X"; then
10039 if test -f "$dir/$libname.la"; then
10040 found_la="$dir/$libname.la"
10044 esac
10045 if test "X$found_dir" != "X"; then
10046 break
10048 done
10050 if test "X$found_dir" != "X"; then
10051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10052 if test "X$found_so" != "X"; then
10053 if test "$enable_rpath" = no \
10054 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10055 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10057 else
10058 haveit=
10059 for x in $ltrpathdirs; do
10060 if test "X$x" = "X$found_dir"; then
10061 haveit=yes
10062 break
10064 done
10065 if test -z "$haveit"; then
10066 ltrpathdirs="$ltrpathdirs $found_dir"
10068 if test "$acl_hardcode_direct" = yes; then
10069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10070 else
10071 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10073 haveit=
10074 for x in $rpathdirs; do
10075 if test "X$x" = "X$found_dir"; then
10076 haveit=yes
10077 break
10079 done
10080 if test -z "$haveit"; then
10081 rpathdirs="$rpathdirs $found_dir"
10083 else
10084 haveit=
10085 for x in $LDFLAGS $LIBICONV; do
10087 acl_save_prefix="$prefix"
10088 prefix="$acl_final_prefix"
10089 acl_save_exec_prefix="$exec_prefix"
10090 exec_prefix="$acl_final_exec_prefix"
10091 eval x=\"$x\"
10092 exec_prefix="$acl_save_exec_prefix"
10093 prefix="$acl_save_prefix"
10095 if test "X$x" = "X-L$found_dir"; then
10096 haveit=yes
10097 break
10099 done
10100 if test -z "$haveit"; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10103 if test "$acl_hardcode_minus_L" != no; then
10104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10105 else
10106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10111 else
10112 if test "X$found_a" != "X"; then
10113 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10114 else
10115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10118 additional_includedir=
10119 case "$found_dir" in
10120 */$acl_libdirstem | */$acl_libdirstem/)
10121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10122 if test "$name" = 'iconv'; then
10123 LIBICONV_PREFIX="$basedir"
10125 additional_includedir="$basedir/include"
10127 */$acl_libdirstem2 | */$acl_libdirstem2/)
10128 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10129 if test "$name" = 'iconv'; then
10130 LIBICONV_PREFIX="$basedir"
10132 additional_includedir="$basedir/include"
10134 esac
10135 if test "X$additional_includedir" != "X"; then
10136 if test "X$additional_includedir" != "X/usr/include"; then
10137 haveit=
10138 if test "X$additional_includedir" = "X/usr/local/include"; then
10139 if test -n "$GCC"; then
10140 case $host_os in
10141 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10142 esac
10145 if test -z "$haveit"; then
10146 for x in $CPPFLAGS $INCICONV; do
10148 acl_save_prefix="$prefix"
10149 prefix="$acl_final_prefix"
10150 acl_save_exec_prefix="$exec_prefix"
10151 exec_prefix="$acl_final_exec_prefix"
10152 eval x=\"$x\"
10153 exec_prefix="$acl_save_exec_prefix"
10154 prefix="$acl_save_prefix"
10156 if test "X$x" = "X-I$additional_includedir"; then
10157 haveit=yes
10158 break
10160 done
10161 if test -z "$haveit"; then
10162 if test -d "$additional_includedir"; then
10163 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10169 if test -n "$found_la"; then
10170 save_libdir="$libdir"
10171 case "$found_la" in
10172 */* | *\\*) . "$found_la" ;;
10173 *) . "./$found_la" ;;
10174 esac
10175 libdir="$save_libdir"
10176 for dep in $dependency_libs; do
10177 case "$dep" in
10178 -L*)
10179 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10180 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10181 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10182 haveit=
10183 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10184 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10185 if test -n "$GCC"; then
10186 case $host_os in
10187 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10188 esac
10191 if test -z "$haveit"; then
10192 haveit=
10193 for x in $LDFLAGS $LIBICONV; do
10195 acl_save_prefix="$prefix"
10196 prefix="$acl_final_prefix"
10197 acl_save_exec_prefix="$exec_prefix"
10198 exec_prefix="$acl_final_exec_prefix"
10199 eval x=\"$x\"
10200 exec_prefix="$acl_save_exec_prefix"
10201 prefix="$acl_save_prefix"
10203 if test "X$x" = "X-L$additional_libdir"; then
10204 haveit=yes
10205 break
10207 done
10208 if test -z "$haveit"; then
10209 if test -d "$additional_libdir"; then
10210 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10213 haveit=
10214 for x in $LDFLAGS $LTLIBICONV; do
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10220 eval x=\"$x\"
10221 exec_prefix="$acl_save_exec_prefix"
10222 prefix="$acl_save_prefix"
10224 if test "X$x" = "X-L$additional_libdir"; then
10225 haveit=yes
10226 break
10228 done
10229 if test -z "$haveit"; then
10230 if test -d "$additional_libdir"; then
10231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10237 -R*)
10238 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10239 if test "$enable_rpath" != no; then
10240 haveit=
10241 for x in $rpathdirs; do
10242 if test "X$x" = "X$dir"; then
10243 haveit=yes
10244 break
10246 done
10247 if test -z "$haveit"; then
10248 rpathdirs="$rpathdirs $dir"
10250 haveit=
10251 for x in $ltrpathdirs; do
10252 if test "X$x" = "X$dir"; then
10253 haveit=yes
10254 break
10256 done
10257 if test -z "$haveit"; then
10258 ltrpathdirs="$ltrpathdirs $dir"
10262 -l*)
10263 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10265 *.la)
10266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10270 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10272 esac
10273 done
10275 else
10276 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10281 done
10282 done
10283 if test "X$rpathdirs" != "X"; then
10284 if test -n "$acl_hardcode_libdir_separator"; then
10285 alldirs=
10286 for found_dir in $rpathdirs; do
10287 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10288 done
10289 acl_save_libdir="$libdir"
10290 libdir="$alldirs"
10291 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10292 libdir="$acl_save_libdir"
10293 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10294 else
10295 for found_dir in $rpathdirs; do
10296 acl_save_libdir="$libdir"
10297 libdir="$found_dir"
10298 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10299 libdir="$acl_save_libdir"
10300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10301 done
10304 if test "X$ltrpathdirs" != "X"; then
10305 for found_dir in $ltrpathdirs; do
10306 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10307 done
10320 am_save_CPPFLAGS="$CPPFLAGS"
10322 for element in $INCICONV; do
10323 haveit=
10324 for x in $CPPFLAGS; do
10326 acl_save_prefix="$prefix"
10327 prefix="$acl_final_prefix"
10328 acl_save_exec_prefix="$exec_prefix"
10329 exec_prefix="$acl_final_exec_prefix"
10330 eval x=\"$x\"
10331 exec_prefix="$acl_save_exec_prefix"
10332 prefix="$acl_save_prefix"
10334 if test "X$x" = "X$element"; then
10335 haveit=yes
10336 break
10338 done
10339 if test -z "$haveit"; then
10340 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10342 done
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10346 $as_echo_n "checking for iconv... " >&6; }
10347 if ${am_cv_func_iconv+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10351 am_cv_func_iconv="no, consider installing GNU libiconv"
10352 am_cv_lib_iconv=no
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 #include <stdlib.h>
10357 #include <iconv.h>
10360 main ()
10362 iconv_t cd = iconv_open("","");
10363 iconv(cd,NULL,NULL,NULL,NULL);
10364 iconv_close(cd);
10366 return 0;
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 am_cv_func_iconv=yes
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 if test "$am_cv_func_iconv" != yes; then
10375 am_save_LIBS="$LIBS"
10376 LIBS="$LIBS $LIBICONV"
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10380 #include <stdlib.h>
10381 #include <iconv.h>
10384 main ()
10386 iconv_t cd = iconv_open("","");
10387 iconv(cd,NULL,NULL,NULL,NULL);
10388 iconv_close(cd);
10390 return 0;
10392 _ACEOF
10393 if ac_fn_c_try_link "$LINENO"; then :
10394 am_cv_lib_iconv=yes
10395 am_cv_func_iconv=yes
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS="$am_save_LIBS"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10404 $as_echo "$am_cv_func_iconv" >&6; }
10405 if test "$am_cv_func_iconv" = yes; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10407 $as_echo_n "checking for working iconv... " >&6; }
10408 if ${am_cv_func_iconv_works+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10412 am_save_LIBS="$LIBS"
10413 if test $am_cv_lib_iconv = yes; then
10414 LIBS="$LIBS $LIBICONV"
10416 am_cv_func_iconv_works=no
10417 for ac_iconv_const in '' 'const'; do
10418 if test "$cross_compiling" = yes; then :
10419 case "$host_os" in
10420 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10421 *) am_cv_func_iconv_works="guessing yes" ;;
10422 esac
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10427 #include <iconv.h>
10428 #include <string.h>
10430 #ifndef ICONV_CONST
10431 # define ICONV_CONST $ac_iconv_const
10432 #endif
10435 main ()
10437 int result = 0;
10438 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10439 returns. */
10441 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10442 if (cd_utf8_to_88591 != (iconv_t)(-1))
10444 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10445 char buf[10];
10446 ICONV_CONST char *inptr = input;
10447 size_t inbytesleft = strlen (input);
10448 char *outptr = buf;
10449 size_t outbytesleft = sizeof (buf);
10450 size_t res = iconv (cd_utf8_to_88591,
10451 &inptr, &inbytesleft,
10452 &outptr, &outbytesleft);
10453 if (res == 0)
10454 result |= 1;
10455 iconv_close (cd_utf8_to_88591);
10458 /* Test against Solaris 10 bug: Failures are not distinguishable from
10459 successful returns. */
10461 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10462 if (cd_ascii_to_88591 != (iconv_t)(-1))
10464 static ICONV_CONST char input[] = "\263";
10465 char buf[10];
10466 ICONV_CONST char *inptr = input;
10467 size_t inbytesleft = strlen (input);
10468 char *outptr = buf;
10469 size_t outbytesleft = sizeof (buf);
10470 size_t res = iconv (cd_ascii_to_88591,
10471 &inptr, &inbytesleft,
10472 &outptr, &outbytesleft);
10473 if (res == 0)
10474 result |= 2;
10475 iconv_close (cd_ascii_to_88591);
10478 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10480 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10481 if (cd_88591_to_utf8 != (iconv_t)(-1))
10483 static ICONV_CONST char input[] = "\304";
10484 static char buf[2] = { (char)0xDE, (char)0xAD };
10485 ICONV_CONST char *inptr = input;
10486 size_t inbytesleft = 1;
10487 char *outptr = buf;
10488 size_t outbytesleft = 1;
10489 size_t res = iconv (cd_88591_to_utf8,
10490 &inptr, &inbytesleft,
10491 &outptr, &outbytesleft);
10492 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10493 result |= 4;
10494 iconv_close (cd_88591_to_utf8);
10497 #if 0 /* This bug could be worked around by the caller. */
10498 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10500 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10501 if (cd_88591_to_utf8 != (iconv_t)(-1))
10503 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10504 char buf[50];
10505 ICONV_CONST char *inptr = input;
10506 size_t inbytesleft = strlen (input);
10507 char *outptr = buf;
10508 size_t outbytesleft = sizeof (buf);
10509 size_t res = iconv (cd_88591_to_utf8,
10510 &inptr, &inbytesleft,
10511 &outptr, &outbytesleft);
10512 if ((int)res > 0)
10513 result |= 8;
10514 iconv_close (cd_88591_to_utf8);
10517 #endif
10518 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10519 provided. */
10521 /* Try standardized names. */
10522 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10523 /* Try IRIX, OSF/1 names. */
10524 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10525 /* Try AIX names. */
10526 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10527 /* Try HP-UX names. */
10528 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10529 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10530 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10531 result |= 16;
10532 if (cd1 != (iconv_t)(-1))
10533 iconv_close (cd1);
10534 if (cd2 != (iconv_t)(-1))
10535 iconv_close (cd2);
10536 if (cd3 != (iconv_t)(-1))
10537 iconv_close (cd3);
10538 if (cd4 != (iconv_t)(-1))
10539 iconv_close (cd4);
10541 return result;
10544 return 0;
10546 _ACEOF
10547 if ac_fn_c_try_run "$LINENO"; then :
10548 am_cv_func_iconv_works=yes
10550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10551 conftest.$ac_objext conftest.beam conftest.$ac_ext
10554 test "$am_cv_func_iconv_works" = no || break
10555 done
10556 LIBS="$am_save_LIBS"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10560 $as_echo "$am_cv_func_iconv_works" >&6; }
10561 case "$am_cv_func_iconv_works" in
10562 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10563 *) am_func_iconv=yes ;;
10564 esac
10565 else
10566 am_func_iconv=no am_cv_lib_iconv=no
10568 if test "$am_func_iconv" = yes; then
10570 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10573 if test "$am_cv_lib_iconv" = yes; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10575 $as_echo_n "checking how to link with libiconv... " >&6; }
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10577 $as_echo "$LIBICONV" >&6; }
10578 else
10579 CPPFLAGS="$am_save_CPPFLAGS"
10580 LIBICONV=
10581 LTLIBICONV=
10586 if test "$am_cv_func_iconv" = yes; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10588 $as_echo_n "checking for iconv declaration... " >&6; }
10589 if ${am_cv_proto_iconv+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 #include <stdlib.h>
10597 #include <iconv.h>
10598 extern
10599 #ifdef __cplusplus
10601 #endif
10602 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
10603 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10604 #else
10605 size_t iconv();
10606 #endif
10609 main ()
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_compile "$LINENO"; then :
10617 am_cv_proto_iconv_arg1=""
10618 else
10619 am_cv_proto_iconv_arg1="const"
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10625 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
10627 $am_cv_proto_iconv" >&5
10628 $as_echo "
10629 $am_cv_proto_iconv" >&6; }
10630 else
10631 am_cv_proto_iconv_arg1=""
10634 cat >>confdefs.h <<_ACEOF
10635 #define ICONV_CONST $am_cv_proto_iconv_arg1
10636 _ACEOF
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
10647 main ()
10651 return 0;
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10656 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10662 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
10663 do :
10664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10667 cat >>confdefs.h <<_ACEOF
10668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669 _ACEOF
10673 done
10675 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
10676 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
10677 argz_next __fsetlocking
10678 do :
10679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10682 cat >>confdefs.h <<_ACEOF
10683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10684 _ACEOF
10687 done
10690 for ac_func in localeconv
10691 do :
10692 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
10693 if test "x$ac_cv_func_localeconv" = xyes; then :
10694 cat >>confdefs.h <<_ACEOF
10695 #define HAVE_LOCALECONV 1
10696 _ACEOF
10699 done
10702 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
10704 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
10705 ac_have_decl=1
10706 else
10707 ac_have_decl=0
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10712 _ACEOF
10713 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
10715 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
10716 ac_have_decl=1
10717 else
10718 ac_have_decl=0
10721 cat >>confdefs.h <<_ACEOF
10722 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10723 _ACEOF
10728 for ac_prog in bison
10730 # Extract the first word of "$ac_prog", so it can be a program name with args.
10731 set dummy $ac_prog; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_prog_INTLBISON+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 if test -n "$INTLBISON"; then
10738 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10747 ac_cv_prog_INTLBISON="$ac_prog"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10751 done
10752 done
10753 IFS=$as_save_IFS
10757 INTLBISON=$ac_cv_prog_INTLBISON
10758 if test -n "$INTLBISON"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
10760 $as_echo "$INTLBISON" >&6; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10767 test -n "$INTLBISON" && break
10768 done
10770 if test -z "$INTLBISON"; then
10771 ac_verc_fail=yes
10772 else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
10774 $as_echo_n "checking version of bison... " >&6; }
10775 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10776 case $ac_prog_version in
10777 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10778 2.[7-9]* | [3-9].*)
10779 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10780 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10781 esac
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
10783 $as_echo "$ac_prog_version" >&6; }
10785 if test $ac_verc_fail = yes; then
10786 INTLBISON=:
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10792 $as_echo_n "checking for long long int... " >&6; }
10793 if ${ac_cv_type_long_long_int+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 ac_cv_type_long_long_int=yes
10797 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10798 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10799 if test $ac_cv_type_long_long_int = yes; then
10800 if test "$cross_compiling" = yes; then :
10802 else
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 #include <limits.h>
10806 #ifndef LLONG_MAX
10807 # define HALF \
10808 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10809 # define LLONG_MAX (HALF - 1 + HALF)
10810 #endif
10812 main ()
10814 long long int n = 1;
10815 int i;
10816 for (i = 0; ; i++)
10818 long long int m = n << i;
10819 if (m >> i != n)
10820 return 1;
10821 if (LLONG_MAX / 2 < m)
10822 break;
10824 return 0;
10826 return 0;
10828 _ACEOF
10829 if ac_fn_c_try_run "$LINENO"; then :
10831 else
10832 ac_cv_type_long_long_int=no
10834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10835 conftest.$ac_objext conftest.beam conftest.$ac_ext
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10842 $as_echo "$ac_cv_type_long_long_int" >&6; }
10843 if test $ac_cv_type_long_long_int = yes; then
10845 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10851 $as_echo_n "checking for wchar_t... " >&6; }
10852 if ${gt_cv_c_wchar_t+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857 #include <stddef.h>
10858 wchar_t foo = (wchar_t)'\0';
10860 main ()
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_compile "$LINENO"; then :
10868 gt_cv_c_wchar_t=yes
10869 else
10870 gt_cv_c_wchar_t=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10875 $as_echo "$gt_cv_c_wchar_t" >&6; }
10876 if test $gt_cv_c_wchar_t = yes; then
10878 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10884 $as_echo_n "checking for wint_t... " >&6; }
10885 if ${gt_cv_c_wint_t+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10892 <wchar.h>.
10893 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10894 before <wchar.h>. */
10895 #include <stddef.h>
10896 #include <stdio.h>
10897 #include <time.h>
10898 #include <wchar.h>
10899 wint_t foo = (wchar_t)'\0';
10901 main ()
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_compile "$LINENO"; then :
10909 gt_cv_c_wint_t=yes
10910 else
10911 gt_cv_c_wint_t=no
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10916 $as_echo "$gt_cv_c_wint_t" >&6; }
10917 if test $gt_cv_c_wint_t = yes; then
10919 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
10923 $as_echo_n "checking whether wint_t is too small... " >&6; }
10924 if ${gl_cv_type_wint_t_too_small+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10931 <wchar.h>.
10932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10933 included before <wchar.h>. */
10934 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10935 # include <stddef.h>
10936 # include <stdio.h>
10937 # include <time.h>
10938 #endif
10939 #include <wchar.h>
10940 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
10943 main ()
10947 return 0;
10949 _ACEOF
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 gl_cv_type_wint_t_too_small=no
10952 else
10953 gl_cv_type_wint_t_too_small=yes
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
10958 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
10959 if test $gl_cv_type_wint_t_too_small = yes; then
10960 GNULIB_OVERRIDES_WINT_T=1
10961 else
10962 GNULIB_OVERRIDES_WINT_T=0
10964 else
10965 GNULIB_OVERRIDES_WINT_T=0
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10973 $as_echo_n "checking for intmax_t... " >&6; }
10974 if ${gt_cv_c_intmax_t+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10980 #include <stddef.h>
10981 #include <stdlib.h>
10982 #if HAVE_STDINT_H_WITH_UINTMAX
10983 #include <stdint.h>
10984 #endif
10985 #if HAVE_INTTYPES_H_WITH_UINTMAX
10986 #include <inttypes.h>
10987 #endif
10990 main ()
10992 intmax_t x = -1;
10993 return !x;
10995 return 0;
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 gt_cv_c_intmax_t=yes
11000 else
11001 gt_cv_c_intmax_t=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11006 $as_echo "$gt_cv_c_intmax_t" >&6; }
11007 if test $gt_cv_c_intmax_t = yes; then
11009 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11016 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11017 if ${gt_cv_func_printf_posix+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11021 if test "$cross_compiling" = yes; then :
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11027 notposix
11028 #endif
11030 _ACEOF
11031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11032 $EGREP "notposix" >/dev/null 2>&1; then :
11033 gt_cv_func_printf_posix="guessing no"
11034 else
11035 gt_cv_func_printf_posix="guessing yes"
11037 rm -f conftest*
11040 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 #include <stdio.h>
11045 #include <string.h>
11046 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11047 dollar expansion (possibly an autoconf bug). */
11048 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11049 static char buf[100];
11050 int main ()
11052 sprintf (buf, format, 33, 55);
11053 return (strcmp (buf, "55 33") != 0);
11055 _ACEOF
11056 if ac_fn_c_try_run "$LINENO"; then :
11057 gt_cv_func_printf_posix=yes
11058 else
11059 gt_cv_func_printf_posix=no
11061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11062 conftest.$ac_objext conftest.beam conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11068 $as_echo "$gt_cv_func_printf_posix" >&6; }
11069 case $gt_cv_func_printf_posix in
11070 *yes)
11072 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11075 esac
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11079 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11080 if ${ac_cv_gnu_library_2_1+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 #include <features.h>
11087 #ifdef __GNU_LIBRARY__
11088 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11089 Lucky GNU user
11090 #endif
11091 #endif
11092 #ifdef __UCLIBC__
11093 Lucky user
11094 #endif
11096 _ACEOF
11097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11098 $EGREP "Lucky" >/dev/null 2>&1; then :
11099 ac_cv_gnu_library_2_1=yes
11100 else
11101 ac_cv_gnu_library_2_1=no
11103 rm -f conftest*
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11109 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11111 GLIBC21="$ac_cv_gnu_library_2_1"
11115 for ac_header in stdint.h
11116 do :
11117 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11118 if test "x$ac_cv_header_stdint_h" = xyes; then :
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_STDINT_H 1
11121 _ACEOF
11125 done
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11128 $as_echo_n "checking for SIZE_MAX... " >&6; }
11129 if ${gl_cv_size_max+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11133 gl_cv_size_max=
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 #include <limits.h>
11138 #if HAVE_STDINT_H
11139 #include <stdint.h>
11140 #endif
11141 #ifdef SIZE_MAX
11142 Found it
11143 #endif
11145 _ACEOF
11146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11147 $EGREP "Found it" >/dev/null 2>&1; then :
11148 gl_cv_size_max=yes
11150 rm -f conftest*
11152 if test -z "$gl_cv_size_max"; then
11153 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11154 #include <limits.h>"; then :
11156 else
11157 size_t_bits_minus_1=
11160 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
11162 else
11163 fits_in_uint=
11166 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
11167 if test $fits_in_uint = 1; then
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170 #include <stddef.h>
11171 extern size_t foo;
11172 extern unsigned long foo;
11175 main ()
11179 return 0;
11181 _ACEOF
11182 if ac_fn_c_try_compile "$LINENO"; then :
11183 fits_in_uint=0
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 if test $fits_in_uint = 1; then
11188 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
11189 else
11190 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
11192 else
11193 gl_cv_size_max='((size_t)~(size_t)0)'
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
11199 $as_echo "$gl_cv_size_max" >&6; }
11200 if test "$gl_cv_size_max" != yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define SIZE_MAX $gl_cv_size_max
11204 _ACEOF
11211 for ac_header in stdint.h
11212 do :
11213 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11214 if test "x$ac_cv_header_stdint_h" = xyes; then :
11215 cat >>confdefs.h <<_ACEOF
11216 #define HAVE_STDINT_H 1
11217 _ACEOF
11221 done
11227 for ac_func in $ac_func_list
11228 do :
11229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11232 cat >>confdefs.h <<_ACEOF
11233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11234 _ACEOF
11237 done
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11247 $as_echo_n "checking for working fcntl.h... " >&6; }
11248 if ${gl_cv_header_working_fcntl_h+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test "$cross_compiling" = yes; then :
11252 case "$host_os" in
11253 # Guess 'no' on native Windows.
11254 mingw*) gl_cv_header_working_fcntl_h='no' ;;
11255 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
11256 esac
11258 else
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <sys/types.h>
11262 #include <sys/stat.h>
11263 #if HAVE_UNISTD_H
11264 # include <unistd.h>
11265 #else /* on Windows with MSVC */
11266 # include <io.h>
11267 # include <stdlib.h>
11268 # defined sleep(n) _sleep ((n) * 1000)
11269 #endif
11270 #include <fcntl.h>
11271 #ifndef O_NOATIME
11272 #define O_NOATIME 0
11273 #endif
11274 #ifndef O_NOFOLLOW
11275 #define O_NOFOLLOW 0
11276 #endif
11277 static int const constants[] =
11279 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11280 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11284 main ()
11287 int result = !constants;
11288 #if HAVE_SYMLINK
11290 static char const sym[] = "conftest.sym";
11291 if (symlink ("/dev/null", sym) != 0)
11292 result |= 2;
11293 else
11295 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
11296 if (fd >= 0)
11298 close (fd);
11299 result |= 4;
11302 if (unlink (sym) != 0 || symlink (".", sym) != 0)
11303 result |= 2;
11304 else
11306 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
11307 if (fd >= 0)
11309 close (fd);
11310 result |= 4;
11313 unlink (sym);
11315 #endif
11317 static char const file[] = "confdefs.h";
11318 int fd = open (file, O_RDONLY | O_NOATIME);
11319 if (fd < 0)
11320 result |= 8;
11321 else
11323 struct stat st0;
11324 if (fstat (fd, &st0) != 0)
11325 result |= 16;
11326 else
11328 char c;
11329 sleep (1);
11330 if (read (fd, &c, 1) != 1)
11331 result |= 24;
11332 else
11334 if (close (fd) != 0)
11335 result |= 32;
11336 else
11338 struct stat st1;
11339 if (stat (file, &st1) != 0)
11340 result |= 40;
11341 else
11342 if (st0.st_atime != st1.st_atime)
11343 result |= 64;
11349 return result;
11351 return 0;
11353 _ACEOF
11354 if ac_fn_c_try_run "$LINENO"; then :
11355 gl_cv_header_working_fcntl_h=yes
11356 else
11357 case $? in #(
11358 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11359 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11360 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11361 *) gl_cv_header_working_fcntl_h='no';;
11362 esac
11364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11365 conftest.$ac_objext conftest.beam conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11371 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11373 case $gl_cv_header_working_fcntl_h in #(
11374 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11375 *) ac_val=1;;
11376 esac
11378 cat >>confdefs.h <<_ACEOF
11379 #define HAVE_WORKING_O_NOATIME $ac_val
11380 _ACEOF
11383 case $gl_cv_header_working_fcntl_h in #(
11384 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11385 *) ac_val=1;;
11386 esac
11388 cat >>confdefs.h <<_ACEOF
11389 #define HAVE_WORKING_O_NOFOLLOW $ac_val
11390 _ACEOF
11407 if test $ac_cv_func_uselocale = yes; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
11410 $as_echo_n "checking whether uselocale works... " >&6; }
11411 if ${gt_cv_func_uselocale_works+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 if test "$cross_compiling" = yes; then :
11415 # Guess no on AIX, yes otherwise.
11416 case "$host_os" in
11417 aix*) gt_cv_func_uselocale_works="guessing no" ;;
11418 *) gt_cv_func_uselocale_works="guessing yes" ;;
11419 esac
11421 else
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #include <locale.h>
11426 #if HAVE_XLOCALE_H
11427 # include <xlocale.h>
11428 #endif
11429 int main ()
11431 uselocale (NULL);
11432 setlocale (LC_ALL, "en_US.UTF-8");
11433 return 0;
11435 _ACEOF
11436 if ac_fn_c_try_run "$LINENO"; then :
11437 gt_cv_func_uselocale_works=yes
11438 else
11439 gt_cv_func_uselocale_works=no
11441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11442 conftest.$ac_objext conftest.beam conftest.$ac_ext
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
11448 $as_echo "$gt_cv_func_uselocale_works" >&6; }
11449 else
11450 gt_cv_func_uselocale_works=no
11452 case "$gt_cv_func_uselocale_works" in
11453 *yes)
11455 $as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
11458 esac
11461 case "$gt_cv_func_uselocale_works" in
11462 *yes)
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
11465 $as_echo_n "checking for fake locale system (OpenBSD)... " >&6; }
11466 if ${gt_cv_locale_fake+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test "$cross_compiling" = yes; then :
11470 case "$host_os" in
11471 openbsd*) gt_cv_locale_fake="guessing yes" ;;
11472 *) gt_cv_locale_fake="guessing no" ;;
11473 esac
11475 else
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 #include <locale.h>
11480 #if HAVE_XLOCALE_H
11481 # include <xlocale.h>
11482 #endif
11483 int main ()
11485 locale_t loc1, loc2;
11486 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
11487 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
11488 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
11489 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
11490 return !(loc1 == loc2);
11492 _ACEOF
11493 if ac_fn_c_try_run "$LINENO"; then :
11494 gt_cv_locale_fake=yes
11495 else
11496 gt_cv_locale_fake=no
11498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11499 conftest.$ac_objext conftest.beam conftest.$ac_ext
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
11505 $as_echo "$gt_cv_locale_fake" >&6; }
11507 *) gt_cv_locale_fake=no ;;
11508 esac
11509 case "$gt_cv_locale_fake" in
11510 *yes)
11512 $as_echo "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
11515 esac
11517 case "$gt_cv_func_uselocale_works" in
11518 *yes)
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
11520 $as_echo_n "checking for Solaris 11.4 locale system... " >&6; }
11521 if ${gt_cv_locale_solaris114+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 case "$host_os" in
11525 solaris*)
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11529 #include <locale.h>
11530 struct _LC_locale_t *x;
11531 locale_t y;
11534 main ()
11536 *y = x;
11538 return 0;
11540 _ACEOF
11541 if ac_fn_c_try_compile "$LINENO"; then :
11542 gt_cv_locale_solaris114=yes
11543 else
11544 gt_cv_locale_solaris114=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 *) gt_cv_locale_solaris114=no ;;
11549 esac
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
11553 $as_echo "$gt_cv_locale_solaris114" >&6; }
11555 *) gt_cv_locale_solaris114=no ;;
11556 esac
11557 if test $gt_cv_locale_solaris114 = yes; then
11559 $as_echo "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
11563 case "$gt_cv_func_uselocale_works" in
11564 *yes)
11565 for ac_func in getlocalename_l
11566 do :
11567 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
11568 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE_GETLOCALENAME_L 1
11571 _ACEOF
11574 done
11577 esac
11579 gt_nameless_locales=no
11580 if false; then
11581 gt_nameless_locales=yes
11583 $as_echo "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11589 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11590 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 gt_save_LIBS="$LIBS"
11594 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <CoreFoundation/CFPreferences.h>
11599 main ()
11601 CFPreferencesCopyAppValue(NULL, NULL)
11603 return 0;
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 gt_cv_func_CFPreferencesCopyAppValue=yes
11608 else
11609 gt_cv_func_CFPreferencesCopyAppValue=no
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS="$gt_save_LIBS"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11616 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11617 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11619 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11623 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11624 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 gt_save_LIBS="$LIBS"
11628 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #include <CoreFoundation/CFLocale.h>
11633 main ()
11635 CFLocaleCopyCurrent();
11637 return 0;
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 gt_cv_func_CFLocaleCopyCurrent=yes
11642 else
11643 gt_cv_func_CFLocaleCopyCurrent=no
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS="$gt_save_LIBS"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11650 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11651 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11653 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
11657 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
11658 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 gt_save_LIBS="$LIBS"
11662 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <CoreFoundation/CFLocale.h>
11667 main ()
11669 CFLocaleCopyPreferredLanguages();
11671 return 0;
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
11676 else
11677 gt_cv_func_CFLocaleCopyPreferredLanguages=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS="$gt_save_LIBS"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
11684 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
11685 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11687 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
11690 INTL_MACOSX_LIBS=
11691 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
11692 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
11693 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
11694 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11705 $as_echo_n "checking for flexible array members... " >&6; }
11706 if ${ac_cv_c_flexmember+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 #include <stdlib.h>
11712 #include <stdio.h>
11713 #include <stddef.h>
11714 struct s { int n; double d[]; };
11716 main ()
11718 int m = getchar ();
11719 struct s *p = malloc (offsetof (struct s, d)
11720 + m * sizeof (double));
11721 p->d[0] = 0.0;
11722 return p->d != (double *) NULL;
11724 return 0;
11726 _ACEOF
11727 if ac_fn_c_try_compile "$LINENO"; then :
11728 ac_cv_c_flexmember=yes
11729 else
11730 ac_cv_c_flexmember=no
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11735 $as_echo "$ac_cv_c_flexmember" >&6; }
11736 if test $ac_cv_c_flexmember = yes; then
11738 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11740 else
11741 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11752 if test -n "$ac_tool_prefix"; then
11753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11754 set dummy ${ac_tool_prefix}ar; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if ${ac_cv_prog_AR+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if test -n "$AR"; then
11761 ac_cv_prog_AR="$AR" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_AR="${ac_tool_prefix}ar"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11774 done
11775 done
11776 IFS=$as_save_IFS
11780 AR=$ac_cv_prog_AR
11781 if test -n "$AR"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11783 $as_echo "$AR" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11791 if test -z "$ac_cv_prog_AR"; then
11792 ac_ct_AR=$AR
11793 # Extract the first word of "ar", so it can be a program name with args.
11794 set dummy ar; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 if test -n "$ac_ct_AR"; then
11801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11802 else
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_prog_ac_ct_AR="ar"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11814 done
11815 done
11816 IFS=$as_save_IFS
11820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11821 if test -n "$ac_ct_AR"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11823 $as_echo "$ac_ct_AR" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11829 if test "x$ac_ct_AR" = x; then
11830 AR="ar"
11831 else
11832 case $cross_compiling:$ac_tool_warned in
11833 yes:)
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11836 ac_tool_warned=yes ;;
11837 esac
11838 AR=$ac_ct_AR
11840 else
11841 AR="$ac_cv_prog_AR"
11844 if test -z "$ARFLAGS"; then
11845 ARFLAGS='cr'
11851 case "$enable_silent_rules" in
11852 yes) INTL_DEFAULT_VERBOSITY=0;;
11853 no) INTL_DEFAULT_VERBOSITY=1;;
11854 *) INTL_DEFAULT_VERBOSITY=1;;
11855 esac
11858 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11859 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11861 else
11863 $as_echo "#define ptrdiff_t long" >>confdefs.h
11868 for ac_header in features.h stddef.h stdlib.h string.h
11869 do :
11870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11873 cat >>confdefs.h <<_ACEOF
11874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 _ACEOF
11879 done
11881 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
11882 snprintf strnlen uselocale wcslen wcsnlen mbrtowc wcrtomb
11883 do :
11884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11887 cat >>confdefs.h <<_ACEOF
11888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 _ACEOF
11892 done
11895 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
11897 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
11898 ac_have_decl=1
11899 else
11900 ac_have_decl=0
11903 cat >>confdefs.h <<_ACEOF
11904 #define HAVE_DECL__SNPRINTF $ac_have_decl
11905 _ACEOF
11906 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
11908 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
11909 ac_have_decl=1
11910 else
11911 ac_have_decl=0
11914 cat >>confdefs.h <<_ACEOF
11915 #define HAVE_DECL__SNWPRINTF $ac_have_decl
11916 _ACEOF
11919 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
11921 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11922 ac_have_decl=1
11923 else
11924 ac_have_decl=0
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11929 _ACEOF
11932 case $gt_cv_func_printf_posix in
11933 *yes) HAVE_POSIX_PRINTF=1 ;;
11934 *) HAVE_POSIX_PRINTF=0 ;;
11935 esac
11937 if test "$ac_cv_func_asprintf" = yes; then
11938 HAVE_ASPRINTF=1
11939 else
11940 HAVE_ASPRINTF=0
11943 if test "$ac_cv_func_snprintf" = yes; then
11944 HAVE_SNPRINTF=1
11945 else
11946 HAVE_SNPRINTF=0
11949 if test "$ac_cv_func_newlocale" = yes; then
11950 HAVE_NEWLOCALE=1
11951 else
11952 HAVE_NEWLOCALE=0
11955 if test "$ac_cv_func_wprintf" = yes; then
11956 HAVE_WPRINTF=1
11957 else
11958 HAVE_WPRINTF=0
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11964 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11965 if ${am_cv_langinfo_codeset+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 #include <langinfo.h>
11972 main ()
11974 char* cs = nl_langinfo(CODESET); return !cs;
11976 return 0;
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 am_cv_langinfo_codeset=yes
11981 else
11982 am_cv_langinfo_codeset=no
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11989 $as_echo "$am_cv_langinfo_codeset" >&6; }
11990 if test $am_cv_langinfo_codeset = yes; then
11992 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11998 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11999 if ${gt_cv_val_LC_MESSAGES+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 #include <locale.h>
12006 main ()
12008 return LC_MESSAGES
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 gt_cv_val_LC_MESSAGES=yes
12015 else
12016 gt_cv_val_LC_MESSAGES=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12022 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
12023 if test $gt_cv_val_LC_MESSAGES = yes; then
12025 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12030 if test $gt_nameless_locales = yes; then
12031 HAVE_NAMELESS_LOCALES=1
12032 else
12033 HAVE_NAMELESS_LOCALES=0
12037 if test "$enable_shared" = yes; then
12038 case "$host_os" in
12039 mingw* | cygwin*) is_woe32dll=yes ;;
12040 *) is_woe32dll=no ;;
12041 esac
12042 else
12043 is_woe32dll=no
12045 WOE32DLL=$is_woe32dll
12048 case "$host_os" in
12049 mingw* | cygwin*) is_woe32=yes ;;
12050 *) is_woe32=no ;;
12051 esac
12052 WOE32=$is_woe32
12054 if test $WOE32 = yes; then
12055 if test -n "$ac_tool_prefix"; then
12056 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12057 set dummy ${ac_tool_prefix}windres; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_prog_WINDRES+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 if test -n "$WINDRES"; then
12064 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12065 else
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12077 done
12078 done
12079 IFS=$as_save_IFS
12083 WINDRES=$ac_cv_prog_WINDRES
12084 if test -n "$WINDRES"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12086 $as_echo "$WINDRES" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12094 if test -z "$ac_cv_prog_WINDRES"; then
12095 ac_ct_WINDRES=$WINDRES
12096 # Extract the first word of "windres", so it can be a program name with args.
12097 set dummy windres; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 if test -n "$ac_ct_WINDRES"; then
12104 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
12105 else
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_prog_ac_ct_WINDRES="windres"
12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12119 IFS=$as_save_IFS
12123 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
12124 if test -n "$ac_ct_WINDRES"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
12126 $as_echo "$ac_ct_WINDRES" >&6; }
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12132 if test "x$ac_ct_WINDRES" = x; then
12133 WINDRES=""
12134 else
12135 case $cross_compiling:$ac_tool_warned in
12136 yes:)
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12139 ac_tool_warned=yes ;;
12140 esac
12141 WINDRES=$ac_ct_WINDRES
12143 else
12144 WINDRES="$ac_cv_prog_WINDRES"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12175 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12176 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 gt_save_LIBS="$LIBS"
12180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <CoreFoundation/CFPreferences.h>
12185 main ()
12187 CFPreferencesCopyAppValue(NULL, NULL)
12189 return 0;
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 gt_cv_func_CFPreferencesCopyAppValue=yes
12194 else
12195 gt_cv_func_CFPreferencesCopyAppValue=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS="$gt_save_LIBS"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12202 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12203 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12205 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12209 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12210 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 gt_save_LIBS="$LIBS"
12214 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <CoreFoundation/CFLocale.h>
12219 main ()
12221 CFLocaleCopyCurrent();
12223 return 0;
12225 _ACEOF
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 gt_cv_func_CFLocaleCopyCurrent=yes
12228 else
12229 gt_cv_func_CFLocaleCopyCurrent=no
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 LIBS="$gt_save_LIBS"
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12236 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12237 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12239 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12243 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12244 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 gt_save_LIBS="$LIBS"
12248 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <CoreFoundation/CFLocale.h>
12253 main ()
12255 CFLocaleCopyPreferredLanguages();
12257 return 0;
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12262 else
12263 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS="$gt_save_LIBS"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12270 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12271 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12273 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12276 INTL_MACOSX_LIBS=
12277 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12278 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
12279 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12280 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12288 BUILD_INCLUDED_LIBINTL=no
12289 USE_INCLUDED_LIBINTL=no
12291 LIBINTL=
12292 LTLIBINTL=
12293 POSUB=
12295 case " $gt_needs " in
12296 *" need-formatstring-macros "*) gt_api_version=3 ;;
12297 *" need-ngettext "*) gt_api_version=2 ;;
12298 *) gt_api_version=1 ;;
12299 esac
12300 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12301 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12303 if test "$USE_NLS" = "yes"; then
12304 gt_use_preinstalled_gnugettext=no
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
12307 $as_echo_n "checking whether included gettext is requested... " >&6; }
12309 # Check whether --with-included-gettext was given.
12310 if test "${with_included_gettext+set}" = set; then :
12311 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12312 else
12313 nls_cv_force_use_gnu_gettext=no
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
12317 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
12319 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12320 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12323 if test $gt_api_version -ge 3; then
12324 gt_revision_test_code='
12325 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12326 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12327 #endif
12328 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12330 else
12331 gt_revision_test_code=
12333 if test $gt_api_version -ge 2; then
12334 gt_expression_test_code=' + * ngettext ("", "", 0)'
12335 else
12336 gt_expression_test_code=
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12340 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12341 if eval \${$gt_func_gnugettext_libc+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 #include <libintl.h>
12348 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12349 extern int _nl_msg_cat_cntr;
12350 extern int *_nl_domain_bindings;
12351 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12352 #else
12353 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12354 #endif
12355 $gt_revision_test_code
12358 main ()
12361 bindtextdomain ("", "");
12362 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12365 return 0;
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 eval "$gt_func_gnugettext_libc=yes"
12370 else
12371 eval "$gt_func_gnugettext_libc=no"
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12376 eval ac_res=\$$gt_func_gnugettext_libc
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12378 $as_echo "$ac_res" >&6; }
12380 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12388 use_additional=yes
12390 acl_save_prefix="$prefix"
12391 prefix="$acl_final_prefix"
12392 acl_save_exec_prefix="$exec_prefix"
12393 exec_prefix="$acl_final_exec_prefix"
12395 eval additional_includedir=\"$includedir\"
12396 eval additional_libdir=\"$libdir\"
12398 exec_prefix="$acl_save_exec_prefix"
12399 prefix="$acl_save_prefix"
12402 # Check whether --with-libintl-prefix was given.
12403 if test "${with_libintl_prefix+set}" = set; then :
12404 withval=$with_libintl_prefix;
12405 if test "X$withval" = "Xno"; then
12406 use_additional=no
12407 else
12408 if test "X$withval" = "X"; then
12410 acl_save_prefix="$prefix"
12411 prefix="$acl_final_prefix"
12412 acl_save_exec_prefix="$exec_prefix"
12413 exec_prefix="$acl_final_exec_prefix"
12415 eval additional_includedir=\"$includedir\"
12416 eval additional_libdir=\"$libdir\"
12418 exec_prefix="$acl_save_exec_prefix"
12419 prefix="$acl_save_prefix"
12421 else
12422 additional_includedir="$withval/include"
12423 additional_libdir="$withval/$acl_libdirstem"
12424 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12425 && test ! -d "$withval/$acl_libdirstem"; then
12426 additional_libdir="$withval/$acl_libdirstem2"
12433 LIBINTL=
12434 LTLIBINTL=
12435 INCINTL=
12436 LIBINTL_PREFIX=
12437 HAVE_LIBINTL=
12438 rpathdirs=
12439 ltrpathdirs=
12440 names_already_handled=
12441 names_next_round='intl '
12442 while test -n "$names_next_round"; do
12443 names_this_round="$names_next_round"
12444 names_next_round=
12445 for name in $names_this_round; do
12446 already_handled=
12447 for n in $names_already_handled; do
12448 if test "$n" = "$name"; then
12449 already_handled=yes
12450 break
12452 done
12453 if test -z "$already_handled"; then
12454 names_already_handled="$names_already_handled $name"
12455 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12456 eval value=\"\$HAVE_LIB$uppername\"
12457 if test -n "$value"; then
12458 if test "$value" = yes; then
12459 eval value=\"\$LIB$uppername\"
12460 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12461 eval value=\"\$LTLIB$uppername\"
12462 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12463 else
12466 else
12467 found_dir=
12468 found_la=
12469 found_so=
12470 found_a=
12471 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12472 if test -n "$acl_shlibext"; then
12473 shrext=".$acl_shlibext" # typically: shrext=.so
12474 else
12475 shrext=
12477 if test $use_additional = yes; then
12478 dir="$additional_libdir"
12479 if test -n "$acl_shlibext"; then
12480 if test -f "$dir/$libname$shrext"; then
12481 found_dir="$dir"
12482 found_so="$dir/$libname$shrext"
12483 else
12484 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12485 ver=`(cd "$dir" && \
12486 for f in "$libname$shrext".*; do echo "$f"; done \
12487 | sed -e "s,^$libname$shrext\\\\.,," \
12488 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12489 | sed 1q ) 2>/dev/null`
12490 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12491 found_dir="$dir"
12492 found_so="$dir/$libname$shrext.$ver"
12494 else
12495 eval library_names=\"$acl_library_names_spec\"
12496 for f in $library_names; do
12497 if test -f "$dir/$f"; then
12498 found_dir="$dir"
12499 found_so="$dir/$f"
12500 break
12502 done
12506 if test "X$found_dir" = "X"; then
12507 if test -f "$dir/$libname.$acl_libext"; then
12508 found_dir="$dir"
12509 found_a="$dir/$libname.$acl_libext"
12512 if test "X$found_dir" != "X"; then
12513 if test -f "$dir/$libname.la"; then
12514 found_la="$dir/$libname.la"
12518 if test "X$found_dir" = "X"; then
12519 for x in $LDFLAGS $LTLIBINTL; do
12521 acl_save_prefix="$prefix"
12522 prefix="$acl_final_prefix"
12523 acl_save_exec_prefix="$exec_prefix"
12524 exec_prefix="$acl_final_exec_prefix"
12525 eval x=\"$x\"
12526 exec_prefix="$acl_save_exec_prefix"
12527 prefix="$acl_save_prefix"
12529 case "$x" in
12530 -L*)
12531 dir=`echo "X$x" | sed -e 's/^X-L//'`
12532 if test -n "$acl_shlibext"; then
12533 if test -f "$dir/$libname$shrext"; then
12534 found_dir="$dir"
12535 found_so="$dir/$libname$shrext"
12536 else
12537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12538 ver=`(cd "$dir" && \
12539 for f in "$libname$shrext".*; do echo "$f"; done \
12540 | sed -e "s,^$libname$shrext\\\\.,," \
12541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12542 | sed 1q ) 2>/dev/null`
12543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12544 found_dir="$dir"
12545 found_so="$dir/$libname$shrext.$ver"
12547 else
12548 eval library_names=\"$acl_library_names_spec\"
12549 for f in $library_names; do
12550 if test -f "$dir/$f"; then
12551 found_dir="$dir"
12552 found_so="$dir/$f"
12553 break
12555 done
12559 if test "X$found_dir" = "X"; then
12560 if test -f "$dir/$libname.$acl_libext"; then
12561 found_dir="$dir"
12562 found_a="$dir/$libname.$acl_libext"
12565 if test "X$found_dir" != "X"; then
12566 if test -f "$dir/$libname.la"; then
12567 found_la="$dir/$libname.la"
12571 esac
12572 if test "X$found_dir" != "X"; then
12573 break
12575 done
12577 if test "X$found_dir" != "X"; then
12578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12579 if test "X$found_so" != "X"; then
12580 if test "$enable_rpath" = no \
12581 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12582 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12583 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12584 else
12585 haveit=
12586 for x in $ltrpathdirs; do
12587 if test "X$x" = "X$found_dir"; then
12588 haveit=yes
12589 break
12591 done
12592 if test -z "$haveit"; then
12593 ltrpathdirs="$ltrpathdirs $found_dir"
12595 if test "$acl_hardcode_direct" = yes; then
12596 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12597 else
12598 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12599 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12600 haveit=
12601 for x in $rpathdirs; do
12602 if test "X$x" = "X$found_dir"; then
12603 haveit=yes
12604 break
12606 done
12607 if test -z "$haveit"; then
12608 rpathdirs="$rpathdirs $found_dir"
12610 else
12611 haveit=
12612 for x in $LDFLAGS $LIBINTL; do
12614 acl_save_prefix="$prefix"
12615 prefix="$acl_final_prefix"
12616 acl_save_exec_prefix="$exec_prefix"
12617 exec_prefix="$acl_final_exec_prefix"
12618 eval x=\"$x\"
12619 exec_prefix="$acl_save_exec_prefix"
12620 prefix="$acl_save_prefix"
12622 if test "X$x" = "X-L$found_dir"; then
12623 haveit=yes
12624 break
12626 done
12627 if test -z "$haveit"; then
12628 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12630 if test "$acl_hardcode_minus_L" != no; then
12631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12632 else
12633 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12638 else
12639 if test "X$found_a" != "X"; then
12640 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12641 else
12642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12645 additional_includedir=
12646 case "$found_dir" in
12647 */$acl_libdirstem | */$acl_libdirstem/)
12648 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12649 if test "$name" = 'intl'; then
12650 LIBINTL_PREFIX="$basedir"
12652 additional_includedir="$basedir/include"
12654 */$acl_libdirstem2 | */$acl_libdirstem2/)
12655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12656 if test "$name" = 'intl'; then
12657 LIBINTL_PREFIX="$basedir"
12659 additional_includedir="$basedir/include"
12661 esac
12662 if test "X$additional_includedir" != "X"; then
12663 if test "X$additional_includedir" != "X/usr/include"; then
12664 haveit=
12665 if test "X$additional_includedir" = "X/usr/local/include"; then
12666 if test -n "$GCC"; then
12667 case $host_os in
12668 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12669 esac
12672 if test -z "$haveit"; then
12673 for x in $CPPFLAGS $INCINTL; do
12675 acl_save_prefix="$prefix"
12676 prefix="$acl_final_prefix"
12677 acl_save_exec_prefix="$exec_prefix"
12678 exec_prefix="$acl_final_exec_prefix"
12679 eval x=\"$x\"
12680 exec_prefix="$acl_save_exec_prefix"
12681 prefix="$acl_save_prefix"
12683 if test "X$x" = "X-I$additional_includedir"; then
12684 haveit=yes
12685 break
12687 done
12688 if test -z "$haveit"; then
12689 if test -d "$additional_includedir"; then
12690 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12696 if test -n "$found_la"; then
12697 save_libdir="$libdir"
12698 case "$found_la" in
12699 */* | *\\*) . "$found_la" ;;
12700 *) . "./$found_la" ;;
12701 esac
12702 libdir="$save_libdir"
12703 for dep in $dependency_libs; do
12704 case "$dep" in
12705 -L*)
12706 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12707 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12708 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12709 haveit=
12710 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12711 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12712 if test -n "$GCC"; then
12713 case $host_os in
12714 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12715 esac
12718 if test -z "$haveit"; then
12719 haveit=
12720 for x in $LDFLAGS $LIBINTL; do
12722 acl_save_prefix="$prefix"
12723 prefix="$acl_final_prefix"
12724 acl_save_exec_prefix="$exec_prefix"
12725 exec_prefix="$acl_final_exec_prefix"
12726 eval x=\"$x\"
12727 exec_prefix="$acl_save_exec_prefix"
12728 prefix="$acl_save_prefix"
12730 if test "X$x" = "X-L$additional_libdir"; then
12731 haveit=yes
12732 break
12734 done
12735 if test -z "$haveit"; then
12736 if test -d "$additional_libdir"; then
12737 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12740 haveit=
12741 for x in $LDFLAGS $LTLIBINTL; do
12743 acl_save_prefix="$prefix"
12744 prefix="$acl_final_prefix"
12745 acl_save_exec_prefix="$exec_prefix"
12746 exec_prefix="$acl_final_exec_prefix"
12747 eval x=\"$x\"
12748 exec_prefix="$acl_save_exec_prefix"
12749 prefix="$acl_save_prefix"
12751 if test "X$x" = "X-L$additional_libdir"; then
12752 haveit=yes
12753 break
12755 done
12756 if test -z "$haveit"; then
12757 if test -d "$additional_libdir"; then
12758 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12764 -R*)
12765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12766 if test "$enable_rpath" != no; then
12767 haveit=
12768 for x in $rpathdirs; do
12769 if test "X$x" = "X$dir"; then
12770 haveit=yes
12771 break
12773 done
12774 if test -z "$haveit"; then
12775 rpathdirs="$rpathdirs $dir"
12777 haveit=
12778 for x in $ltrpathdirs; do
12779 if test "X$x" = "X$dir"; then
12780 haveit=yes
12781 break
12783 done
12784 if test -z "$haveit"; then
12785 ltrpathdirs="$ltrpathdirs $dir"
12789 -l*)
12790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12792 *.la)
12793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12796 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12797 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12799 esac
12800 done
12802 else
12803 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12804 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12808 done
12809 done
12810 if test "X$rpathdirs" != "X"; then
12811 if test -n "$acl_hardcode_libdir_separator"; then
12812 alldirs=
12813 for found_dir in $rpathdirs; do
12814 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12815 done
12816 acl_save_libdir="$libdir"
12817 libdir="$alldirs"
12818 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12819 libdir="$acl_save_libdir"
12820 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12821 else
12822 for found_dir in $rpathdirs; do
12823 acl_save_libdir="$libdir"
12824 libdir="$found_dir"
12825 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12826 libdir="$acl_save_libdir"
12827 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12828 done
12831 if test "X$ltrpathdirs" != "X"; then
12832 for found_dir in $ltrpathdirs; do
12833 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12834 done
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12842 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12843 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 gt_save_CPPFLAGS="$CPPFLAGS"
12847 CPPFLAGS="$CPPFLAGS $INCINTL"
12848 gt_save_LIBS="$LIBS"
12849 LIBS="$LIBS $LIBINTL"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 #include <libintl.h>
12854 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12855 extern int _nl_msg_cat_cntr;
12856 extern
12857 #ifdef __cplusplus
12859 #endif
12860 const char *_nl_expand_alias (const char *);
12861 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12862 #else
12863 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12864 #endif
12865 $gt_revision_test_code
12868 main ()
12871 bindtextdomain ("", "");
12872 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12875 return 0;
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 eval "$gt_func_gnugettext_libintl=yes"
12880 else
12881 eval "$gt_func_gnugettext_libintl=no"
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12886 LIBS="$LIBS $LIBICONV"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 #include <libintl.h>
12891 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12892 extern int _nl_msg_cat_cntr;
12893 extern
12894 #ifdef __cplusplus
12896 #endif
12897 const char *_nl_expand_alias (const char *);
12898 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
12899 #else
12900 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12901 #endif
12902 $gt_revision_test_code
12905 main ()
12908 bindtextdomain ("", "");
12909 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12912 return 0;
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 LIBINTL="$LIBINTL $LIBICONV"
12917 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12918 eval "$gt_func_gnugettext_libintl=yes"
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 CPPFLAGS="$gt_save_CPPFLAGS"
12925 LIBS="$gt_save_LIBS"
12927 eval ac_res=\$$gt_func_gnugettext_libintl
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12929 $as_echo "$ac_res" >&6; }
12932 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12933 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12934 && test "$PACKAGE" != gettext-runtime \
12935 && test "$PACKAGE" != gettext-tools; }; then
12936 gt_use_preinstalled_gnugettext=yes
12937 else
12938 LIBINTL=
12939 LTLIBINTL=
12940 INCINTL=
12944 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12945 nls_cv_use_gnu_gettext=yes
12949 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12950 BUILD_INCLUDED_LIBINTL=yes
12951 USE_INCLUDED_LIBINTL=yes
12952 LIBINTL="lib/intl/libintl.a $LIBICONV $LIBTHREAD"
12953 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12954 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12957 CATOBJEXT=
12958 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12959 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12960 CATOBJEXT=.gmo
12964 if test -n "$INTL_MACOSX_LIBS"; then
12965 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12966 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12967 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12968 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12972 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12973 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12975 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12977 else
12978 USE_NLS=no
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12983 $as_echo_n "checking whether to use NLS... " >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12985 $as_echo "$USE_NLS" >&6; }
12986 if test "$USE_NLS" = "yes"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12988 $as_echo_n "checking where the gettext function comes from... " >&6; }
12989 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12990 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12991 gt_source="external libintl"
12992 else
12993 gt_source="libc"
12995 else
12996 gt_source="included intl directory"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12999 $as_echo "$gt_source" >&6; }
13002 if test "$USE_NLS" = "yes"; then
13004 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13005 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13007 $as_echo_n "checking how to link with libintl... " >&6; }
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13009 $as_echo "$LIBINTL" >&6; }
13011 for element in $INCINTL; do
13012 haveit=
13013 for x in $CPPFLAGS; do
13015 acl_save_prefix="$prefix"
13016 prefix="$acl_final_prefix"
13017 acl_save_exec_prefix="$exec_prefix"
13018 exec_prefix="$acl_final_exec_prefix"
13019 eval x=\"$x\"
13020 exec_prefix="$acl_save_exec_prefix"
13021 prefix="$acl_save_prefix"
13023 if test "X$x" = "X$element"; then
13024 haveit=yes
13025 break
13027 done
13028 if test -z "$haveit"; then
13029 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13031 done
13036 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13039 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13043 POSUB=po
13047 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13048 BUILD_INCLUDED_LIBINTL=yes
13055 nls_cv_header_intl=
13056 nls_cv_header_libgt=
13058 DATADIRNAME=share
13061 INSTOBJEXT=.mo
13064 GENCAT=gencat
13067 INTLOBJS=
13068 if test "$USE_INCLUDED_LIBINTL" = yes; then
13069 INTLOBJS="\$(GETTOBJS)"
13073 INTL_LIBTOOL_SUFFIX_PREFIX=
13077 INTLLIBS="$LIBINTL"
13085 ac_header_dirent=no
13086 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13087 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13089 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13090 if eval \${$as_ac_Header+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include <sys/types.h>
13096 #include <$ac_hdr>
13099 main ()
13101 if ((DIR *) 0)
13102 return 0;
13104 return 0;
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 eval "$as_ac_Header=yes"
13109 else
13110 eval "$as_ac_Header=no"
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 eval ac_res=\$$as_ac_Header
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13116 $as_echo "$ac_res" >&6; }
13117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13118 cat >>confdefs.h <<_ACEOF
13119 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13120 _ACEOF
13122 ac_header_dirent=$ac_hdr; break
13125 done
13126 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13127 if test $ac_header_dirent = dirent.h; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13129 $as_echo_n "checking for library containing opendir... " >&6; }
13130 if ${ac_cv_search_opendir+:} false; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133 ac_func_search_save_LIBS=$LIBS
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char opendir ();
13145 main ()
13147 return opendir ();
13149 return 0;
13151 _ACEOF
13152 for ac_lib in '' dir; do
13153 if test -z "$ac_lib"; then
13154 ac_res="none required"
13155 else
13156 ac_res=-l$ac_lib
13157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13159 if ac_fn_c_try_link "$LINENO"; then :
13160 ac_cv_search_opendir=$ac_res
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext
13164 if ${ac_cv_search_opendir+:} false; then :
13165 break
13167 done
13168 if ${ac_cv_search_opendir+:} false; then :
13170 else
13171 ac_cv_search_opendir=no
13173 rm conftest.$ac_ext
13174 LIBS=$ac_func_search_save_LIBS
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13177 $as_echo "$ac_cv_search_opendir" >&6; }
13178 ac_res=$ac_cv_search_opendir
13179 if test "$ac_res" != no; then :
13180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13186 $as_echo_n "checking for library containing opendir... " >&6; }
13187 if ${ac_cv_search_opendir+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 ac_func_search_save_LIBS=$LIBS
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13197 #ifdef __cplusplus
13198 extern "C"
13199 #endif
13200 char opendir ();
13202 main ()
13204 return opendir ();
13206 return 0;
13208 _ACEOF
13209 for ac_lib in '' x; do
13210 if test -z "$ac_lib"; then
13211 ac_res="none required"
13212 else
13213 ac_res=-l$ac_lib
13214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13216 if ac_fn_c_try_link "$LINENO"; then :
13217 ac_cv_search_opendir=$ac_res
13219 rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext
13221 if ${ac_cv_search_opendir+:} false; then :
13222 break
13224 done
13225 if ${ac_cv_search_opendir+:} false; then :
13227 else
13228 ac_cv_search_opendir=no
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13234 $as_echo "$ac_cv_search_opendir" >&6; }
13235 ac_res=$ac_cv_search_opendir
13236 if test "$ac_res" != no; then :
13237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13244 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13245 if ${ac_cv_header_time+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 #include <sys/types.h>
13251 #include <sys/time.h>
13252 #include <time.h>
13255 main ()
13257 if ((struct tm *) 0)
13258 return 0;
13260 return 0;
13262 _ACEOF
13263 if ac_fn_c_try_compile "$LINENO"; then :
13264 ac_cv_header_time=yes
13265 else
13266 ac_cv_header_time=no
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13271 $as_echo "$ac_cv_header_time" >&6; }
13272 if test $ac_cv_header_time = yes; then
13274 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13279 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13280 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <sys/types.h>
13287 main ()
13289 return makedev(0, 0);
13291 return 0;
13293 _ACEOF
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 ac_cv_header_sys_types_h_makedev=yes
13296 else
13297 ac_cv_header_sys_types_h_makedev=no
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13304 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13306 if test $ac_cv_header_sys_types_h_makedev = no; then
13307 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13308 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13310 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13316 if test $ac_cv_header_sys_mkdev_h = no; then
13317 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13318 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13320 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13330 for ac_header in inttypes.h
13331 do :
13332 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13333 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_INTTYPES_H 1
13336 _ACEOF
13340 done
13344 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
13345 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
13346 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
13347 regex.h syslog.h ulimit.h
13348 do :
13349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13352 cat >>confdefs.h <<_ACEOF
13353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13354 _ACEOF
13358 done
13360 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h sys/ioctl.h \
13361 sys/mman.h sys/param.h sys/random.h sys/socket.h sys/stat.h \
13362 sys/time.h sys/times.h sys/types.h sys/wait.h
13363 do :
13364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13367 cat >>confdefs.h <<_ACEOF
13368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13369 _ACEOF
13373 done
13375 for ac_header in netinet/in.h arpa/inet.h
13376 do :
13377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13378 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13380 cat >>confdefs.h <<_ACEOF
13381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13382 _ACEOF
13386 done
13389 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
13390 #if HAVE_SYS_STREAM_H
13391 # include <sys/stream.h>
13392 #endif
13395 if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
13401 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
13402 #if HAVE_SYS_TIME_H
13403 # include <sys/time.h>
13404 #endif
13407 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
13408 $as_echo "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
13414 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13415 # for constant arguments. Useless!
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13417 $as_echo_n "checking for working alloca.h... " >&6; }
13418 if ${ac_cv_working_alloca_h+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <alloca.h>
13425 main ()
13427 char *p = (char *) alloca (2 * sizeof (int));
13428 if (p) return 0;
13430 return 0;
13432 _ACEOF
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 ac_cv_working_alloca_h=yes
13435 else
13436 ac_cv_working_alloca_h=no
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13442 $as_echo "$ac_cv_working_alloca_h" >&6; }
13443 if test $ac_cv_working_alloca_h = yes; then
13445 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13450 $as_echo_n "checking for alloca... " >&6; }
13451 if ${ac_cv_func_alloca_works+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13456 #ifdef __GNUC__
13457 # define alloca __builtin_alloca
13458 #else
13459 # ifdef _MSC_VER
13460 # include <malloc.h>
13461 # define alloca _alloca
13462 # else
13463 # ifdef HAVE_ALLOCA_H
13464 # include <alloca.h>
13465 # else
13466 # ifdef _AIX
13467 #pragma alloca
13468 # else
13469 # ifndef alloca /* predefined by HP cc +Olibcalls */
13470 void *alloca (size_t);
13471 # endif
13472 # endif
13473 # endif
13474 # endif
13475 #endif
13478 main ()
13480 char *p = (char *) alloca (1);
13481 if (p) return 0;
13483 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 ac_cv_func_alloca_works=yes
13488 else
13489 ac_cv_func_alloca_works=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13495 $as_echo "$ac_cv_func_alloca_works" >&6; }
13497 if test $ac_cv_func_alloca_works = yes; then
13499 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13501 else
13502 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13503 # that cause trouble. Some versions do not even contain alloca or
13504 # contain a buggy version. If you still want to use their alloca,
13505 # use ar to extract alloca.o from them instead of compiling alloca.c.
13507 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13509 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13513 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13514 if ${ac_cv_os_cray+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519 #if defined CRAY && ! defined CRAY2
13520 webecray
13521 #else
13522 wenotbecray
13523 #endif
13525 _ACEOF
13526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 $EGREP "webecray" >/dev/null 2>&1; then :
13528 ac_cv_os_cray=yes
13529 else
13530 ac_cv_os_cray=no
13532 rm -f conftest*
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13536 $as_echo "$ac_cv_os_cray" >&6; }
13537 if test $ac_cv_os_cray = yes; then
13538 for ac_func in _getb67 GETB67 getb67; do
13539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544 #define CRAY_STACKSEG_END $ac_func
13545 _ACEOF
13547 break
13550 done
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13554 $as_echo_n "checking stack direction for C alloca... " >&6; }
13555 if ${ac_cv_c_stack_direction+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test "$cross_compiling" = yes; then :
13559 ac_cv_c_stack_direction=0
13560 else
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 $ac_includes_default
13565 find_stack_direction (int *addr, int depth)
13567 int dir, dummy = 0;
13568 if (! addr)
13569 addr = &dummy;
13570 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13571 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13572 return dir + dummy;
13576 main (int argc, char **argv)
13578 return find_stack_direction (0, argc + !argv + 20) < 0;
13580 _ACEOF
13581 if ac_fn_c_try_run "$LINENO"; then :
13582 ac_cv_c_stack_direction=1
13583 else
13584 ac_cv_c_stack_direction=-1
13586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13587 conftest.$ac_objext conftest.beam conftest.$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13592 $as_echo "$ac_cv_c_stack_direction" >&6; }
13593 cat >>confdefs.h <<_ACEOF
13594 #define STACK_DIRECTION $ac_cv_c_stack_direction
13595 _ACEOF
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13601 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13602 if ${ac_cv_type_uid_t+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #include <sys/types.h>
13609 _ACEOF
13610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611 $EGREP "uid_t" >/dev/null 2>&1; then :
13612 ac_cv_type_uid_t=yes
13613 else
13614 ac_cv_type_uid_t=no
13616 rm -f conftest*
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13620 $as_echo "$ac_cv_type_uid_t" >&6; }
13621 if test $ac_cv_type_uid_t = no; then
13623 $as_echo "#define uid_t int" >>confdefs.h
13626 $as_echo "#define gid_t int" >>confdefs.h
13630 for ac_header in unistd.h
13631 do :
13632 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13633 if test "x$ac_cv_header_unistd_h" = xyes; then :
13634 cat >>confdefs.h <<_ACEOF
13635 #define HAVE_UNISTD_H 1
13636 _ACEOF
13640 done
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13643 $as_echo_n "checking for working chown... " >&6; }
13644 if ${ac_cv_func_chown_works+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 if test "$cross_compiling" = yes; then :
13648 ac_cv_func_chown_works=no
13649 else
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 #include <fcntl.h>
13656 main ()
13658 char *f = "conftest.chown";
13659 struct stat before, after;
13661 if (creat (f, 0600) < 0)
13662 return 1;
13663 if (stat (f, &before) < 0)
13664 return 1;
13665 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13666 return 1;
13667 if (stat (f, &after) < 0)
13668 return 1;
13669 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_run "$LINENO"; then :
13676 ac_cv_func_chown_works=yes
13677 else
13678 ac_cv_func_chown_works=no
13680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13681 conftest.$ac_objext conftest.beam conftest.$ac_ext
13684 rm -f conftest.chown
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13688 $as_echo "$ac_cv_func_chown_works" >&6; }
13689 if test $ac_cv_func_chown_works = yes; then
13691 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13696 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13697 if ${ac_cv_func_getpgrp_void+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 # Use it with a single arg.
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 $ac_includes_default
13705 main ()
13707 getpgrp (0);
13709 return 0;
13711 _ACEOF
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 ac_cv_func_getpgrp_void=no
13714 else
13715 ac_cv_func_getpgrp_void=yes
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13721 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13722 if test $ac_cv_func_getpgrp_void = yes; then
13724 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13728 if ${ac_cv_func_setvbuf_reversed+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 ac_cv_func_setvbuf_reversed=no
13735 for ac_func in vprintf
13736 do :
13737 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13738 if test "x$ac_cv_func_vprintf" = xyes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 #define HAVE_VPRINTF 1
13741 _ACEOF
13743 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13744 if test "x$ac_cv_func__doprnt" = xyes; then :
13746 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13751 done
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
13755 $as_echo_n "checking for working strcoll... " >&6; }
13756 if ${ac_cv_func_strcoll_works+:} false; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test "$cross_compiling" = yes; then :
13760 ac_cv_func_strcoll_works=no
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 $ac_includes_default
13766 main ()
13768 return (strcoll ("abc", "def") >= 0 ||
13769 strcoll ("ABC", "DEF") >= 0 ||
13770 strcoll ("123", "456") >= 0)
13772 return 0;
13774 _ACEOF
13775 if ac_fn_c_try_run "$LINENO"; then :
13776 ac_cv_func_strcoll_works=yes
13777 else
13778 ac_cv_func_strcoll_works=no
13780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13781 conftest.$ac_objext conftest.beam conftest.$ac_ext
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
13786 $as_echo "$ac_cv_func_strcoll_works" >&6; }
13787 if test $ac_cv_func_strcoll_works = yes; then
13789 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
13795 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bush_malloc" = "no"; then
13796 MALLOC_TARGET=alloca
13797 MALLOC_SRC=alloca.c
13799 MALLOC_LIB='-lmalloc'
13800 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
13801 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
13802 MALLOC_DEP='$(MALLOC_LIBRARY)'
13805 if test "$ac_cv_func_vprintf" = no; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
13807 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 #include <stdio.h>
13812 _ACEOF
13813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13814 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then :
13815 ac_cv_func_vprintf=yes
13817 rm -f conftest*
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
13820 $as_echo "$ac_cv_func_vprintf" >&6; }
13821 if test $ac_cv_func_vprintf = yes; then
13822 $as_echo "#define HAVE_VPRINTF 1" >>confdefs.h
13827 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
13828 case " $LIBOBJS " in
13829 *" vprint.$ac_objext "* ) ;;
13830 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
13832 esac
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13837 $as_echo_n "checking return type of signal handlers... " >&6; }
13838 if ${ac_cv_type_signal+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #include <signal.h>
13847 main ()
13849 return *(signal (0, 0)) (0) == 1;
13851 return 0;
13853 _ACEOF
13854 if ac_fn_c_try_compile "$LINENO"; then :
13855 ac_cv_type_signal=int
13856 else
13857 ac_cv_type_signal=void
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13862 $as_echo "$ac_cv_type_signal" >&6; }
13864 cat >>confdefs.h <<_ACEOF
13865 #define RETSIGTYPE $ac_cv_type_signal
13866 _ACEOF
13870 ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
13871 if test "x$ac_cv_func___setostype" = xyes; then :
13872 $as_echo "#define HAVE_SETOSTYPE 1" >>confdefs.h
13876 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
13877 if test "x$ac_cv_func_wait3" = xyes; then :
13878 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
13883 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
13884 if test "x$ac_cv_func_mkfifo" = xyes; then :
13885 $as_echo "#define HAVE_MKFIFO 1" >>confdefs.h
13887 else
13888 $as_echo "#define MKFIFO_MISSING 1" >>confdefs.h
13893 for ac_func in dup2 eaccess fcntl getdtablesize getentropy getgroups \
13894 gethostname getpagesize getpeername getrandom getrlimit \
13895 getrusage gettimeofday kill killpg lstat pselect readlink \
13896 select setdtablesize setitimer tcgetpgrp uname ulimit waitpid
13897 do :
13898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13901 cat >>confdefs.h <<_ACEOF
13902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13903 _ACEOF
13906 done
13908 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
13909 if test "x$ac_cv_func_rename" = xyes; then :
13910 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13912 else
13913 case " $LIBOBJS " in
13914 *" rename.$ac_objext "* ) ;;
13915 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
13917 esac
13923 for ac_func in bcopy bzero confstr faccessat fnmatch \
13924 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13925 imaxdiv memmove pathconf putenv raise random regcomp regexec \
13926 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13927 sysconf syslog tcgetattr times ttyname tzset unsetenv
13928 do :
13929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13932 cat >>confdefs.h <<_ACEOF
13933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13934 _ACEOF
13937 done
13940 for ac_func in vasprintf asprintf
13941 do :
13942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13945 cat >>confdefs.h <<_ACEOF
13946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13947 _ACEOF
13950 done
13952 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13953 do :
13954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13957 cat >>confdefs.h <<_ACEOF
13958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13959 _ACEOF
13962 done
13964 for ac_func in getpwent getpwnam getpwuid
13965 do :
13966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13969 cat >>confdefs.h <<_ACEOF
13970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13971 _ACEOF
13974 done
13976 for ac_func in mkstemp mkdtemp
13977 do :
13978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13981 cat >>confdefs.h <<_ACEOF
13982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983 _ACEOF
13986 done
13988 for ac_func in arc4random
13989 do :
13990 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
13991 if test "x$ac_cv_func_arc4random" = xyes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_ARC4RANDOM 1
13994 _ACEOF
13997 done
14000 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
14001 if test "x$ac_cv_func_getcwd" = xyes; then :
14002 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
14004 else
14005 case " $LIBOBJS " in
14006 *" getcwd.$ac_objext "* ) ;;
14007 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
14009 esac
14013 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
14014 if test "x$ac_cv_func_memset" = xyes; then :
14015 $as_echo "#define HAVE_MEMSET 1" >>confdefs.h
14017 else
14018 case " $LIBOBJS " in
14019 *" memset.$ac_objext "* ) ;;
14020 *) LIBOBJS="$LIBOBJS memset.$ac_objext"
14022 esac
14027 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
14028 if test "x$ac_cv_func_strcasecmp" = xyes; then :
14029 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
14031 else
14032 case " $LIBOBJS " in
14033 *" strcasecmp.$ac_objext "* ) ;;
14034 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
14036 esac
14040 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14041 if test "x$ac_cv_func_strcasestr" = xyes; then :
14042 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14044 else
14045 case " $LIBOBJS " in
14046 *" strcasestr.$ac_objext "* ) ;;
14047 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14049 esac
14053 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14054 if test "x$ac_cv_func_strerror" = xyes; then :
14055 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
14057 else
14058 case " $LIBOBJS " in
14059 *" strerror.$ac_objext "* ) ;;
14060 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
14062 esac
14066 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14067 if test "x$ac_cv_func_strftime" = xyes; then :
14068 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14070 else
14071 case " $LIBOBJS " in
14072 *" strftime.$ac_objext "* ) ;;
14073 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
14075 esac
14079 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
14080 if test "x$ac_cv_func_strnlen" = xyes; then :
14081 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
14083 else
14084 case " $LIBOBJS " in
14085 *" strnlen.$ac_objext "* ) ;;
14086 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14088 esac
14092 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
14093 if test "x$ac_cv_func_strpbrk" = xyes; then :
14094 $as_echo "#define HAVE_STRPBRK 1" >>confdefs.h
14096 else
14097 case " $LIBOBJS " in
14098 *" strpbrk.$ac_objext "* ) ;;
14099 *) LIBOBJS="$LIBOBJS strpbrk.$ac_objext"
14101 esac
14105 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
14106 if test "x$ac_cv_func_strstr" = xyes; then :
14107 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
14109 else
14110 case " $LIBOBJS " in
14111 *" strstr.$ac_objext "* ) ;;
14112 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
14114 esac
14119 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
14120 if test "x$ac_cv_func_strtod" = xyes; then :
14121 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
14123 else
14124 case " $LIBOBJS " in
14125 *" strtod.$ac_objext "* ) ;;
14126 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14128 esac
14132 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14133 if test "x$ac_cv_func_strtol" = xyes; then :
14134 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
14136 else
14137 case " $LIBOBJS " in
14138 *" strtol.$ac_objext "* ) ;;
14139 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
14141 esac
14145 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
14146 if test "x$ac_cv_func_strtoul" = xyes; then :
14147 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
14149 else
14150 case " $LIBOBJS " in
14151 *" strtoul.$ac_objext "* ) ;;
14152 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
14154 esac
14158 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
14159 if test "x$ac_cv_func_strtoll" = xyes; then :
14160 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
14162 else
14163 case " $LIBOBJS " in
14164 *" strtoll.$ac_objext "* ) ;;
14165 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
14167 esac
14171 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
14172 if test "x$ac_cv_func_strtoull" = xyes; then :
14173 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
14175 else
14176 case " $LIBOBJS " in
14177 *" strtoull.$ac_objext "* ) ;;
14178 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
14180 esac
14184 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
14185 if test "x$ac_cv_func_strtoimax" = xyes; then :
14186 $as_echo "#define HAVE_STRTOIMAX 1" >>confdefs.h
14188 else
14189 case " $LIBOBJS " in
14190 *" strtoimax.$ac_objext "* ) ;;
14191 *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext"
14193 esac
14197 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
14198 if test "x$ac_cv_func_strtoumax" = xyes; then :
14199 $as_echo "#define HAVE_STRTOUMAX 1" >>confdefs.h
14201 else
14202 case " $LIBOBJS " in
14203 *" strtoumax.$ac_objext "* ) ;;
14204 *) LIBOBJS="$LIBOBJS strtoumax.$ac_objext"
14206 esac
14211 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14212 if test "x$ac_cv_func_dprintf" = xyes; then :
14213 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14215 else
14216 case " $LIBOBJS " in
14217 *" dprintf.$ac_objext "* ) ;;
14218 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14220 esac
14225 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
14226 if test "x$ac_cv_func_strchrnul" = xyes; then :
14227 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
14229 else
14230 case " $LIBOBJS " in
14231 *" strchrnul.$ac_objext "* ) ;;
14232 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
14234 esac
14239 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
14240 if test "x$ac_cv_func_strdup" = xyes; then :
14241 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
14243 else
14244 case " $LIBOBJS " in
14245 *" strdup.$ac_objext "* ) ;;
14246 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
14248 esac
14254 for ac_header in libaudit.h
14255 do :
14256 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
14257 if test "x$ac_cv_header_libaudit_h" = xyes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_LIBAUDIT_H 1
14260 _ACEOF
14264 done
14266 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
14268 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
14269 ac_have_decl=1
14270 else
14271 ac_have_decl=0
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
14276 _ACEOF
14279 ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default"
14280 if test "x$ac_cv_have_decl_confstr" = xyes; then :
14281 ac_have_decl=1
14282 else
14283 ac_have_decl=0
14286 cat >>confdefs.h <<_ACEOF
14287 #define HAVE_DECL_CONFSTR $ac_have_decl
14288 _ACEOF
14290 ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default"
14291 if test "x$ac_cv_have_decl_printf" = xyes; then :
14292 ac_have_decl=1
14293 else
14294 ac_have_decl=0
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_DECL_PRINTF $ac_have_decl
14299 _ACEOF
14301 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14302 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
14303 ac_have_decl=1
14304 else
14305 ac_have_decl=0
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE_DECL_SBRK $ac_have_decl
14310 _ACEOF
14312 ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default"
14313 if test "x$ac_cv_have_decl_setregid" = xyes; then :
14314 ac_have_decl=1
14315 else
14316 ac_have_decl=0
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_DECL_SETREGID $ac_have_decl
14321 _ACEOF
14323 ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default"
14324 if test "x$ac_cv_have_decl_strcpy" = xyes; then :
14325 ac_have_decl=1
14326 else
14327 ac_have_decl=0
14330 cat >>confdefs.h <<_ACEOF
14331 #define HAVE_DECL_STRCPY $ac_have_decl
14332 _ACEOF
14334 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
14335 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
14336 ac_have_decl=1
14337 else
14338 ac_have_decl=0
14341 cat >>confdefs.h <<_ACEOF
14342 #define HAVE_DECL_STRSIGNAL $ac_have_decl
14343 _ACEOF
14346 for ac_func in setresuid setresgid
14347 do :
14348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14351 cat >>confdefs.h <<_ACEOF
14352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14353 _ACEOF
14356 done
14359 ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default"
14360 if test "x$ac_cv_have_decl_strtold" = xyes; then :
14361 ac_have_decl=1
14362 else
14363 ac_have_decl=0
14366 cat >>confdefs.h <<_ACEOF
14367 #define HAVE_DECL_STRTOLD $ac_have_decl
14368 _ACEOF
14369 if test $ac_have_decl = 1; then :
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
14372 $as_echo_n "checking for broken strtold... " >&6; }
14373 if ${bush_cv_strtold_broken+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #include <stdlib.h>
14380 main ()
14382 long double r; char *foo, bar; r = strtold(foo, &bar);
14384 return 0;
14386 _ACEOF
14387 if ac_fn_c_try_compile "$LINENO"; then :
14388 bush_cv_strtold_broken=no
14389 else
14390 bush_cv_strtold_broken=yes
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_strtold_broken" >&5
14398 $as_echo "$bush_cv_strtold_broken" >&6; }
14399 if test "$bush_cv_strtold_broken" = "yes" ; then
14400 $as_echo "#define STRTOLD_BROKEN 1" >>confdefs.h
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5
14411 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14412 if ${bush_cv_decl_strtoimax+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14418 #if STDC_HEADERS
14419 # include <stdlib.h>
14420 #endif
14421 #if HAVE_INTTYPES_H
14422 # include <inttypes.h>
14423 #endif
14426 main ()
14428 return !strtoimax;
14430 return 0;
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 bush_cv_decl_strtoimax=yes
14435 else
14436 bush_cv_decl_strtoimax=no
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoimax" >&5
14442 $as_echo "$bush_cv_decl_strtoimax" >&6; }
14443 bush_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14444 if test $bush_cv_decl_strtoimax = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 #define $bush_tr_func 1
14447 _ACEOF
14449 else
14450 cat >>confdefs.h <<_ACEOF
14451 #define $bush_tr_func 0
14452 _ACEOF
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5
14460 $as_echo_n "checking for declaration of strtol... " >&6; }
14461 if ${bush_cv_decl_strtol+:} false; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14467 #if STDC_HEADERS
14468 # include <stdlib.h>
14469 #endif
14470 #if HAVE_INTTYPES_H
14471 # include <inttypes.h>
14472 #endif
14475 main ()
14477 return !strtol;
14479 return 0;
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 bush_cv_decl_strtol=yes
14484 else
14485 bush_cv_decl_strtol=no
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtol" >&5
14491 $as_echo "$bush_cv_decl_strtol" >&6; }
14492 bush_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14493 if test $bush_cv_decl_strtol = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define $bush_tr_func 1
14496 _ACEOF
14498 else
14499 cat >>confdefs.h <<_ACEOF
14500 #define $bush_tr_func 0
14501 _ACEOF
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5
14509 $as_echo_n "checking for declaration of strtoll... " >&6; }
14510 if ${bush_cv_decl_strtoll+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14516 #if STDC_HEADERS
14517 # include <stdlib.h>
14518 #endif
14519 #if HAVE_INTTYPES_H
14520 # include <inttypes.h>
14521 #endif
14524 main ()
14526 return !strtoll;
14528 return 0;
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 bush_cv_decl_strtoll=yes
14533 else
14534 bush_cv_decl_strtoll=no
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoll" >&5
14540 $as_echo "$bush_cv_decl_strtoll" >&6; }
14541 bush_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14542 if test $bush_cv_decl_strtoll = yes; then
14543 cat >>confdefs.h <<_ACEOF
14544 #define $bush_tr_func 1
14545 _ACEOF
14547 else
14548 cat >>confdefs.h <<_ACEOF
14549 #define $bush_tr_func 0
14550 _ACEOF
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5
14558 $as_echo_n "checking for declaration of strtoul... " >&6; }
14559 if ${bush_cv_decl_strtoul+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14565 #if STDC_HEADERS
14566 # include <stdlib.h>
14567 #endif
14568 #if HAVE_INTTYPES_H
14569 # include <inttypes.h>
14570 #endif
14573 main ()
14575 return !strtoul;
14577 return 0;
14579 _ACEOF
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 bush_cv_decl_strtoul=yes
14582 else
14583 bush_cv_decl_strtoul=no
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoul" >&5
14589 $as_echo "$bush_cv_decl_strtoul" >&6; }
14590 bush_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14591 if test $bush_cv_decl_strtoul = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define $bush_tr_func 1
14594 _ACEOF
14596 else
14597 cat >>confdefs.h <<_ACEOF
14598 #define $bush_tr_func 0
14599 _ACEOF
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5
14607 $as_echo_n "checking for declaration of strtoull... " >&6; }
14608 if ${bush_cv_decl_strtoull+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14614 #if STDC_HEADERS
14615 # include <stdlib.h>
14616 #endif
14617 #if HAVE_INTTYPES_H
14618 # include <inttypes.h>
14619 #endif
14622 main ()
14624 return !strtoull;
14626 return 0;
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 bush_cv_decl_strtoull=yes
14631 else
14632 bush_cv_decl_strtoull=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoull" >&5
14638 $as_echo "$bush_cv_decl_strtoull" >&6; }
14639 bush_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14640 if test $bush_cv_decl_strtoull = yes; then
14641 cat >>confdefs.h <<_ACEOF
14642 #define $bush_tr_func 1
14643 _ACEOF
14645 else
14646 cat >>confdefs.h <<_ACEOF
14647 #define $bush_tr_func 0
14648 _ACEOF
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5
14656 $as_echo_n "checking for declaration of strtoumax... " >&6; }
14657 if ${bush_cv_decl_strtoumax+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14663 #if STDC_HEADERS
14664 # include <stdlib.h>
14665 #endif
14666 #if HAVE_INTTYPES_H
14667 # include <inttypes.h>
14668 #endif
14671 main ()
14673 return !strtoumax;
14675 return 0;
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"; then :
14679 bush_cv_decl_strtoumax=yes
14680 else
14681 bush_cv_decl_strtoumax=no
14683 rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_strtoumax" >&5
14687 $as_echo "$bush_cv_decl_strtoumax" >&6; }
14688 bush_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14689 if test $bush_cv_decl_strtoumax = yes; then
14690 cat >>confdefs.h <<_ACEOF
14691 #define $bush_tr_func 1
14692 _ACEOF
14694 else
14695 cat >>confdefs.h <<_ACEOF
14696 #define $bush_tr_func 0
14697 _ACEOF
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14709 $as_echo_n "checking for working mktime... " >&6; }
14710 if ${ac_cv_func_working_mktime+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 if test "$cross_compiling" = yes; then :
14714 ac_cv_func_working_mktime=no
14715 else
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718 /* Test program from Paul Eggert and Tony Leneis. */
14719 #ifdef TIME_WITH_SYS_TIME
14720 # include <sys/time.h>
14721 # include <time.h>
14722 #else
14723 # ifdef HAVE_SYS_TIME_H
14724 # include <sys/time.h>
14725 # else
14726 # include <time.h>
14727 # endif
14728 #endif
14730 #include <limits.h>
14731 #include <stdlib.h>
14733 #ifdef HAVE_UNISTD_H
14734 # include <unistd.h>
14735 #endif
14737 #ifndef HAVE_ALARM
14738 # define alarm(X) /* empty */
14739 #endif
14741 /* Work around redefinition to rpl_putenv by other config tests. */
14742 #undef putenv
14744 static time_t time_t_max;
14745 static time_t time_t_min;
14747 /* Values we'll use to set the TZ environment variable. */
14748 static const char *tz_strings[] = {
14749 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
14750 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14752 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14754 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14755 Based on a problem report from Andreas Jaeger. */
14756 static int
14757 spring_forward_gap ()
14759 /* glibc (up to about 1998-10-07) failed this test. */
14760 struct tm tm;
14762 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14763 instead of "TZ=America/Vancouver" in order to detect the bug even
14764 on systems that don't support the Olson extension, or don't have the
14765 full zoneinfo tables installed. */
14766 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
14768 tm.tm_year = 98;
14769 tm.tm_mon = 3;
14770 tm.tm_mday = 5;
14771 tm.tm_hour = 2;
14772 tm.tm_min = 0;
14773 tm.tm_sec = 0;
14774 tm.tm_isdst = -1;
14775 return mktime (&tm) != (time_t) -1;
14778 static int
14779 mktime_test1 (time_t now)
14781 struct tm *lt;
14782 return ! (lt = localtime (&now)) || mktime (lt) == now;
14785 static int
14786 mktime_test (time_t now)
14788 return (mktime_test1 (now)
14789 && mktime_test1 ((time_t) (time_t_max - now))
14790 && mktime_test1 ((time_t) (time_t_min + now)));
14793 static int
14794 irix_6_4_bug ()
14796 /* Based on code from Ariel Faigon. */
14797 struct tm tm;
14798 tm.tm_year = 96;
14799 tm.tm_mon = 3;
14800 tm.tm_mday = 0;
14801 tm.tm_hour = 0;
14802 tm.tm_min = 0;
14803 tm.tm_sec = 0;
14804 tm.tm_isdst = -1;
14805 mktime (&tm);
14806 return tm.tm_mon == 2 && tm.tm_mday == 31;
14809 static int
14810 bigtime_test (int j)
14812 struct tm tm;
14813 time_t now;
14814 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14815 now = mktime (&tm);
14816 if (now != (time_t) -1)
14818 struct tm *lt = localtime (&now);
14819 if (! (lt
14820 && lt->tm_year == tm.tm_year
14821 && lt->tm_mon == tm.tm_mon
14822 && lt->tm_mday == tm.tm_mday
14823 && lt->tm_hour == tm.tm_hour
14824 && lt->tm_min == tm.tm_min
14825 && lt->tm_sec == tm.tm_sec
14826 && lt->tm_yday == tm.tm_yday
14827 && lt->tm_wday == tm.tm_wday
14828 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14829 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14830 return 0;
14832 return 1;
14835 static int
14836 year_2050_test ()
14838 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14839 ignoring leap seconds. */
14840 unsigned long int answer = 2527315200UL;
14842 struct tm tm;
14843 time_t t;
14844 tm.tm_year = 2050 - 1900;
14845 tm.tm_mon = 2 - 1;
14846 tm.tm_mday = 1;
14847 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14848 tm.tm_isdst = -1;
14850 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14851 instead of "TZ=America/Vancouver" in order to detect the bug even
14852 on systems that don't support the Olson extension, or don't have the
14853 full zoneinfo tables installed. */
14854 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
14856 t = mktime (&tm);
14858 /* Check that the result is either a failure, or close enough
14859 to the correct answer that we can assume the discrepancy is
14860 due to leap seconds. */
14861 return (t == (time_t) -1
14862 || (0 < t && answer - 120 <= t && t <= answer + 120));
14866 main ()
14868 time_t t, delta;
14869 int i, j;
14871 /* This test makes some buggy mktime implementations loop.
14872 Give up after 60 seconds; a mktime slower than that
14873 isn't worth using anyway. */
14874 alarm (60);
14876 for (;;)
14878 t = (time_t_max << 1) + 1;
14879 if (t <= time_t_max)
14880 break;
14881 time_t_max = t;
14883 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14885 delta = time_t_max / 997; /* a suitable prime number */
14886 for (i = 0; i < N_STRINGS; i++)
14888 if (tz_strings[i])
14889 putenv ((char*) tz_strings[i]);
14891 for (t = 0; t <= time_t_max - delta; t += delta)
14892 if (! mktime_test (t))
14893 return 1;
14894 if (! (mktime_test ((time_t) 1)
14895 && mktime_test ((time_t) (60 * 60))
14896 && mktime_test ((time_t) (60 * 60 * 24))))
14897 return 1;
14899 for (j = 1; ; j <<= 1)
14900 if (! bigtime_test (j))
14901 return 1;
14902 else if (INT_MAX / 2 < j)
14903 break;
14904 if (! bigtime_test (INT_MAX))
14905 return 1;
14907 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
14909 _ACEOF
14910 if ac_fn_c_try_run "$LINENO"; then :
14911 ac_cv_func_working_mktime=yes
14912 else
14913 ac_cv_func_working_mktime=no
14915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14916 conftest.$ac_objext conftest.beam conftest.$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14921 $as_echo "$ac_cv_func_working_mktime" >&6; }
14922 if test $ac_cv_func_working_mktime = no; then
14923 case " $LIBOBJS " in
14924 *" mktime.$ac_objext "* ) ;;
14925 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
14927 esac
14933 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14934 do :
14935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14938 cat >>confdefs.h <<_ACEOF
14939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14940 _ACEOF
14944 done
14948 for ac_func in getpagesize
14949 do :
14950 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14951 if test "x$ac_cv_func_getpagesize" = xyes; then :
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_GETPAGESIZE 1
14954 _ACEOF
14957 done
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14960 $as_echo_n "checking for working mmap... " >&6; }
14961 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 if test "$cross_compiling" = yes; then :
14965 ac_cv_func_mmap_fixed_mapped=no
14966 else
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 $ac_includes_default
14970 /* malloc might have been renamed as rpl_malloc. */
14971 #undef malloc
14973 /* Thanks to Mike Haertel and Jim Avera for this test.
14974 Here is a matrix of mmap possibilities:
14975 mmap private not fixed
14976 mmap private fixed at somewhere currently unmapped
14977 mmap private fixed at somewhere already mapped
14978 mmap shared not fixed
14979 mmap shared fixed at somewhere currently unmapped
14980 mmap shared fixed at somewhere already mapped
14981 For private mappings, we should verify that changes cannot be read()
14982 back from the file, nor mmap's back from the file at a different
14983 address. (There have been systems where private was not correctly
14984 implemented like the infamous i386 svr4.0, and systems where the
14985 VM page cache was not coherent with the file system buffer cache
14986 like early versions of FreeBSD and possibly contemporary NetBSD.)
14987 For shared mappings, we should conversely verify that changes get
14988 propagated back to all the places they're supposed to be.
14990 Grep wants private fixed already mapped.
14991 The main things grep needs to know about mmap are:
14992 * does it exist and is it safe to write into the mmap'd area
14993 * how to use it (BSD variants) */
14995 #include <fcntl.h>
14996 #include <sys/mman.h>
14998 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14999 char *malloc ();
15000 #endif
15002 /* This mess was copied from the GNU getpagesize.h. */
15003 #ifndef HAVE_GETPAGESIZE
15004 # ifdef _SC_PAGESIZE
15005 # define getpagesize() sysconf(_SC_PAGESIZE)
15006 # else /* no _SC_PAGESIZE */
15007 # ifdef HAVE_SYS_PARAM_H
15008 # include <sys/param.h>
15009 # ifdef EXEC_PAGESIZE
15010 # define getpagesize() EXEC_PAGESIZE
15011 # else /* no EXEC_PAGESIZE */
15012 # ifdef NBPG
15013 # define getpagesize() NBPG * CLSIZE
15014 # ifndef CLSIZE
15015 # define CLSIZE 1
15016 # endif /* no CLSIZE */
15017 # else /* no NBPG */
15018 # ifdef NBPC
15019 # define getpagesize() NBPC
15020 # else /* no NBPC */
15021 # ifdef PAGESIZE
15022 # define getpagesize() PAGESIZE
15023 # endif /* PAGESIZE */
15024 # endif /* no NBPC */
15025 # endif /* no NBPG */
15026 # endif /* no EXEC_PAGESIZE */
15027 # else /* no HAVE_SYS_PARAM_H */
15028 # define getpagesize() 8192 /* punt totally */
15029 # endif /* no HAVE_SYS_PARAM_H */
15030 # endif /* no _SC_PAGESIZE */
15032 #endif /* no HAVE_GETPAGESIZE */
15035 main ()
15037 char *data, *data2, *data3;
15038 const char *cdata2;
15039 int i, pagesize;
15040 int fd, fd2;
15042 pagesize = getpagesize ();
15044 /* First, make a file with some known garbage in it. */
15045 data = (char *) malloc (pagesize);
15046 if (!data)
15047 return 1;
15048 for (i = 0; i < pagesize; ++i)
15049 *(data + i) = rand ();
15050 umask (0);
15051 fd = creat ("conftest.mmap", 0600);
15052 if (fd < 0)
15053 return 2;
15054 if (write (fd, data, pagesize) != pagesize)
15055 return 3;
15056 close (fd);
15058 /* Next, check that the tail of a page is zero-filled. File must have
15059 non-zero length, otherwise we risk SIGBUS for entire page. */
15060 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15061 if (fd2 < 0)
15062 return 4;
15063 cdata2 = "";
15064 if (write (fd2, cdata2, 1) != 1)
15065 return 5;
15066 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15067 if (data2 == MAP_FAILED)
15068 return 6;
15069 for (i = 0; i < pagesize; ++i)
15070 if (*(data2 + i))
15071 return 7;
15072 close (fd2);
15073 if (munmap (data2, pagesize))
15074 return 8;
15076 /* Next, try to mmap the file at a fixed address which already has
15077 something else allocated at it. If we can, also make sure that
15078 we see the same garbage. */
15079 fd = open ("conftest.mmap", O_RDWR);
15080 if (fd < 0)
15081 return 9;
15082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15084 return 10;
15085 for (i = 0; i < pagesize; ++i)
15086 if (*(data + i) != *(data2 + i))
15087 return 11;
15089 /* Finally, make sure that changes to the mapped area do not
15090 percolate back to the file as seen by read(). (This is a bug on
15091 some variants of i386 svr4.0.) */
15092 for (i = 0; i < pagesize; ++i)
15093 *(data2 + i) = *(data2 + i) + 1;
15094 data3 = (char *) malloc (pagesize);
15095 if (!data3)
15096 return 12;
15097 if (read (fd, data3, pagesize) != pagesize)
15098 return 13;
15099 for (i = 0; i < pagesize; ++i)
15100 if (*(data + i) != *(data3 + i))
15101 return 14;
15102 close (fd);
15103 return 0;
15105 _ACEOF
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 ac_cv_func_mmap_fixed_mapped=yes
15108 else
15109 ac_cv_func_mmap_fixed_mapped=no
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15117 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15120 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15123 rm -f conftest.mmap conftest.txt
15125 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
15126 munmap mremap stpcpy strcspn
15127 do :
15128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15131 cat >>confdefs.h <<_ACEOF
15132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15133 _ACEOF
15136 done
15139 INTL_DEP= INTL_INC= LIBINTL_H=
15140 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15141 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15142 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15143 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15151 for ac_header in wctype.h
15152 do :
15153 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
15154 if test "x$ac_cv_header_wctype_h" = xyes; then :
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_WCTYPE_H 1
15157 _ACEOF
15161 done
15163 for ac_header in wchar.h
15164 do :
15165 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
15166 if test "x$ac_cv_header_wchar_h" = xyes; then :
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_WCHAR_H 1
15169 _ACEOF
15173 done
15175 for ac_header in langinfo.h
15176 do :
15177 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
15178 if test "x$ac_cv_header_langinfo_h" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_LANGINFO_H 1
15181 _ACEOF
15185 done
15188 for ac_header in mbstr.h
15189 do :
15190 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
15191 if test "x$ac_cv_header_mbstr_h" = xyes; then :
15192 cat >>confdefs.h <<_ACEOF
15193 #define HAVE_MBSTR_H 1
15194 _ACEOF
15198 done
15201 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
15202 if test "x$ac_cv_func_mbrlen" = xyes; then :
15203 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
15207 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
15208 if test "x$ac_cv_func_mbscasecmp" = xyes; then :
15209 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
15213 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
15214 if test "x$ac_cv_func_mbscmp" = xyes; then :
15215 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
15219 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
15220 if test "x$ac_cv_func_mbsnrtowcs" = xyes; then :
15221 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
15225 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
15226 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
15227 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
15232 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
15233 if test "x$ac_cv_func_mbschr" = xyes; then :
15234 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h
15236 else
15237 case " $LIBOBJS " in
15238 *" mbschr.$ac_objext "* ) ;;
15239 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
15241 esac
15247 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
15248 if test "x$ac_cv_func_wcrtomb" = xyes; then :
15249 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
15253 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
15254 if test "x$ac_cv_func_wcscoll" = xyes; then :
15255 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
15259 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
15260 if test "x$ac_cv_func_wcsdup" = xyes; then :
15261 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
15265 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15266 if test "x$ac_cv_func_wcwidth" = xyes; then :
15267 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
15271 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
15272 if test "x$ac_cv_func_wctype" = xyes; then :
15273 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
15278 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
15279 if test "x$ac_cv_func_wcswidth" = xyes; then :
15280 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h
15282 else
15283 case " $LIBOBJS " in
15284 *" wcswidth.$ac_objext "* ) ;;
15285 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
15287 esac
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
15295 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
15296 if ${ac_cv_func_mbrtowc+:} false; then :
15297 $as_echo_n "(cached) " >&6
15298 else
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301 #include <wchar.h>
15303 main ()
15305 wchar_t wc;
15306 char const s[] = "";
15307 size_t n = 1;
15308 mbstate_t state;
15309 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15311 return 0;
15313 _ACEOF
15314 if ac_fn_c_try_link "$LINENO"; then :
15315 ac_cv_func_mbrtowc=yes
15316 else
15317 ac_cv_func_mbrtowc=no
15319 rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15323 $as_echo "$ac_cv_func_mbrtowc" >&6; }
15324 if test $ac_cv_func_mbrtowc = yes; then
15326 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
15330 if test $ac_cv_func_mbrtowc = yes; then
15331 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15335 for ac_func in iswlower iswupper towlower towupper iswctype
15336 do :
15337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15340 cat >>confdefs.h <<_ACEOF
15341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15342 _ACEOF
15345 done
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15349 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15350 if ${bush_cv_langinfo_codeset+:} false; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 #include <langinfo.h>
15357 main ()
15359 char* cs = nl_langinfo(CODESET);
15361 return 0;
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15365 bush_cv_langinfo_codeset=yes
15366 else
15367 bush_cv_langinfo_codeset=no
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_langinfo_codeset" >&5
15373 $as_echo "$bush_cv_langinfo_codeset" >&6; }
15374 if test $bush_cv_langinfo_codeset = yes; then
15375 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
15380 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
15381 if ${bush_cv_type_wchar_t+:} false; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 #include <wchar.h>
15389 main ()
15392 wchar_t foo;
15393 foo = 0;
15396 return 0;
15398 _ACEOF
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 bush_cv_type_wchar_t=yes
15401 else
15402 bush_cv_type_wchar_t=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wchar_t" >&5
15407 $as_echo "$bush_cv_type_wchar_t" >&6; }
15408 if test $bush_cv_type_wchar_t = yes; then
15410 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
15415 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
15416 if ${bush_cv_type_wctype_t+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #include <wctype.h>
15423 main ()
15426 wctype_t foo;
15427 foo = 0;
15430 return 0;
15432 _ACEOF
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434 bush_cv_type_wctype_t=yes
15435 else
15436 bush_cv_type_wctype_t=no
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wctype_t" >&5
15441 $as_echo "$bush_cv_type_wctype_t" >&6; }
15442 if test $bush_cv_type_wctype_t = yes; then
15444 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
15449 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
15450 if ${bush_cv_type_wint_t+:} false; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <wctype.h>
15457 main ()
15460 wint_t foo;
15461 foo = 0;
15464 return 0;
15466 _ACEOF
15467 if ac_fn_c_try_compile "$LINENO"; then :
15468 bush_cv_type_wint_t=yes
15469 else
15470 bush_cv_type_wint_t=no
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_wint_t" >&5
15475 $as_echo "$bush_cv_type_wint_t" >&6; }
15476 if test $bush_cv_type_wint_t = yes; then
15478 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
15483 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
15484 if ${bush_cv_wcwidth_broken+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 if test "$cross_compiling" = yes; then :
15488 bush_cv_wcwidth_broken=no
15489 else
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15493 #include <unistd.h>
15494 #include <stdlib.h>
15495 #include <stdio.h>
15497 #include <locale.h>
15498 #include <wchar.h>
15501 main(c, v)
15502 int c;
15503 char **v;
15505 int w;
15507 setlocale(LC_ALL, "en_US.UTF-8");
15508 w = wcwidth (0x0301);
15509 exit (w == 0); /* exit 0 if wcwidth broken */
15512 _ACEOF
15513 if ac_fn_c_try_run "$LINENO"; then :
15514 bush_cv_wcwidth_broken=yes
15515 else
15516 bush_cv_wcwidth_broken=no
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wcwidth_broken" >&5
15524 $as_echo "$bush_cv_wcwidth_broken" >&6; }
15525 if test "$bush_cv_wcwidth_broken" = yes; then
15527 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
15531 if test "$am_cv_func_iconv" = yes; then
15532 OLDLIBS="$LIBS"
15533 LIBS="$LIBS $LIBINTL $LIBICONV"
15534 for ac_func in locale_charset
15535 do :
15536 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
15537 if test "x$ac_cv_func_locale_charset" = xyes; then :
15538 cat >>confdefs.h <<_ACEOF
15539 #define HAVE_LOCALE_CHARSET 1
15540 _ACEOF
15543 done
15545 LIBS="$OLDLIBS"
15548 # The cast to long int works around a bug in the HP C Compiler
15549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15551 # This bug is HP SR number 8606223364.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15553 $as_echo_n "checking size of wchar_t... " >&6; }
15554 if ${ac_cv_sizeof_wchar_t+:} false; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
15559 else
15560 if test "$ac_cv_type_wchar_t" = yes; then
15561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15563 as_fn_error 77 "cannot compute sizeof (wchar_t)
15564 See \`config.log' for more details" "$LINENO" 5; }
15565 else
15566 ac_cv_sizeof_wchar_t=0
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15572 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15576 cat >>confdefs.h <<_ACEOF
15577 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15578 _ACEOF
15584 if test "$opt_static_link" != yes; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15587 if ${ac_cv_lib_dl_dlopen+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 ac_check_lib_save_LIBS=$LIBS
15591 LIBS="-ldl $LIBS"
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 /* Override any GCC internal prototype to avoid an error.
15596 Use char because int might match the return type of a GCC
15597 builtin and then its argument prototype would still apply. */
15598 #ifdef __cplusplus
15599 extern "C"
15600 #endif
15601 char dlopen ();
15603 main ()
15605 return dlopen ();
15607 return 0;
15609 _ACEOF
15610 if ac_fn_c_try_link "$LINENO"; then :
15611 ac_cv_lib_dl_dlopen=yes
15612 else
15613 ac_cv_lib_dl_dlopen=no
15615 rm -f core conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15621 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBDL 1
15624 _ACEOF
15626 LIBS="-ldl $LIBS"
15630 for ac_func in dlopen dlclose dlsym
15631 do :
15632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15635 cat >>confdefs.h <<_ACEOF
15636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 _ACEOF
15640 done
15644 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15645 /* NetBSD declares sys_siglist in unistd.h. */
15646 #ifdef HAVE_UNISTD_H
15647 # include <unistd.h>
15648 #endif
15651 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15652 ac_have_decl=1
15653 else
15654 ac_have_decl=0
15657 cat >>confdefs.h <<_ACEOF
15658 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15659 _ACEOF
15663 if test "$ac_cv_func_inet_aton" != 'yes'; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
15666 $as_echo_n "checking for inet_aton... " >&6; }
15667 if ${bush_cv_func_inet_aton+:} false; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15673 #include <sys/types.h>
15674 #include <netinet/in.h>
15675 #include <arpa/inet.h>
15676 struct in_addr ap;
15678 main ()
15680 inet_aton("127.0.0.1", &ap);
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 bush_cv_func_inet_aton=yes
15687 else
15688 bush_cv_func_inet_aton=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_inet_aton" >&5
15694 $as_echo "$bush_cv_func_inet_aton" >&6; }
15695 if test $bush_cv_func_inet_aton = yes; then
15696 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15698 else
15699 case " $LIBOBJS " in
15700 *" inet_aton.$ac_objext "* ) ;;
15701 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
15703 esac
15709 case "$host_os" in
15710 irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
15711 $as_echo_n "checking for getpwent in -lsun... " >&6; }
15712 if ${ac_cv_lib_sun_getpwent+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lsun $LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char getpwent ();
15728 main ()
15730 return getpwent ();
15732 return 0;
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 ac_cv_lib_sun_getpwent=yes
15737 else
15738 ac_cv_lib_sun_getpwent=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
15745 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
15746 if test "x$ac_cv_lib_sun_getpwent" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_LIBSUN 1
15749 _ACEOF
15751 LIBS="-lsun $LIBS"
15755 esac
15757 if test "$ac_cv_func_getpeername" = no; then
15759 if test "X$bush_cv_have_socklib" = "X"; then
15760 _bush_needmsg=
15761 else
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
15763 $as_echo_n "checking for socket library... " >&6; }
15764 _bush_needmsg=yes
15766 if ${bush_cv_have_socklib+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
15770 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
15771 if ${ac_cv_lib_socket_getpeername+:} false; then :
15772 $as_echo_n "(cached) " >&6
15773 else
15774 ac_check_lib_save_LIBS=$LIBS
15775 LIBS="-lsocket -lnsl $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 char getpeername ();
15787 main ()
15789 return getpeername ();
15791 return 0;
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_socket_getpeername=yes
15796 else
15797 ac_cv_lib_socket_getpeername=no
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
15804 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
15805 if test "x$ac_cv_lib_socket_getpeername" = xyes; then :
15806 bush_cv_have_socklib=yes
15807 else
15808 bush_cv_have_socklib=no
15813 if test "X$_bush_needmsg" = Xyes; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_socklib" >&5
15815 $as_echo "$bush_cv_have_socklib" >&6; }
15816 _bush_needmsg=
15818 if test $bush_cv_have_socklib = yes; then
15819 # check for libnsl, add it to LIBS if present
15820 if test "X$bush_cv_have_libnsl" = "X"; then
15821 _bush_needmsg=
15822 else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
15824 $as_echo_n "checking for libnsl... " >&6; }
15825 _bush_needmsg=yes
15827 if ${bush_cv_have_libnsl+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
15831 $as_echo_n "checking for t_open in -lnsl... " >&6; }
15832 if ${ac_cv_lib_nsl_t_open+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 ac_check_lib_save_LIBS=$LIBS
15836 LIBS="-lnsl $LIBS"
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 /* Override any GCC internal prototype to avoid an error.
15841 Use char because int might match the return type of a GCC
15842 builtin and then its argument prototype would still apply. */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char t_open ();
15848 main ()
15850 return t_open ();
15852 return 0;
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 ac_cv_lib_nsl_t_open=yes
15857 else
15858 ac_cv_lib_nsl_t_open=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
15865 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
15866 if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
15867 bush_cv_have_libnsl=yes
15868 else
15869 bush_cv_have_libnsl=no
15874 if test "X$_bush_needmsg" = Xyes; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_libnsl" >&5
15876 $as_echo "$bush_cv_have_libnsl" >&6; }
15877 _bush_needmsg=
15879 if test $bush_cv_have_libnsl = yes; then
15880 LIBS="-lsocket -lnsl $LIBS"
15881 else
15882 LIBS="-lsocket $LIBS"
15884 $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
15886 $as_echo "#define HAVE_GETPEERNAME 1" >>confdefs.h
15891 if test "$ac_cv_func_gethostbyname" = no; then
15892 if test "X$bush_cv_have_gethostbyname" = "X"; then
15893 _bush_needmsg=yes
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
15896 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
15897 _bush_needmsg=
15899 if ${bush_cv_have_gethostbyname+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <netdb.h>
15906 main ()
15908 struct hostent *hp;
15909 hp = gethostbyname("localhost");
15912 return 0;
15914 _ACEOF
15915 if ac_fn_c_try_link "$LINENO"; then :
15916 bush_cv_have_gethostbyname=yes
15917 else
15918 bush_cv_have_gethostbyname=no
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15925 if test "X$_bush_needmsg" = Xyes; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
15927 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_gethostbyname" >&5
15930 $as_echo "$bush_cv_have_gethostbyname" >&6; }
15931 if test "$bush_cv_have_gethostbyname" = yes; then
15932 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
15939 $as_echo_n "checking type of array argument to getgroups... " >&6; }
15940 if ${ac_cv_type_getgroups+:} false; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943 if test "$cross_compiling" = yes; then :
15944 ac_cv_type_getgroups=cross
15945 else
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15948 /* Thanks to Mike Rendell for this test. */
15949 $ac_includes_default
15950 #define NGID 256
15951 #undef MAX
15952 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15955 main ()
15957 gid_t gidset[NGID];
15958 int i, n;
15959 union { gid_t gval; long int lval; } val;
15961 val.lval = -1;
15962 for (i = 0; i < NGID; i++)
15963 gidset[i] = val.gval;
15964 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15965 gidset);
15966 /* Exit non-zero if getgroups seems to require an array of ints. This
15967 happens when gid_t is short int but getgroups modifies an array
15968 of ints. */
15969 return n > 0 && gidset[n] != val.gval;
15971 _ACEOF
15972 if ac_fn_c_try_run "$LINENO"; then :
15973 ac_cv_type_getgroups=gid_t
15974 else
15975 ac_cv_type_getgroups=int
15977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978 conftest.$ac_objext conftest.beam conftest.$ac_ext
15981 if test $ac_cv_type_getgroups = cross; then
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 #include <unistd.h>
15986 _ACEOF
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
15989 ac_cv_type_getgroups=gid_t
15990 else
15991 ac_cv_type_getgroups=int
15993 rm -f conftest*
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
15998 $as_echo "$ac_cv_type_getgroups" >&6; }
16000 cat >>confdefs.h <<_ACEOF
16001 #define GETGROUPS_T $ac_cv_type_getgroups
16002 _ACEOF
16005 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16006 if test "x$ac_cv_type_off_t" = xyes; then :
16008 else
16010 cat >>confdefs.h <<_ACEOF
16011 #define off_t long int
16012 _ACEOF
16016 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16017 if test "x$ac_cv_type_mode_t" = xyes; then :
16019 else
16021 cat >>confdefs.h <<_ACEOF
16022 #define mode_t int
16023 _ACEOF
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16028 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16029 if ${ac_cv_type_uid_t+:} false; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 #include <sys/types.h>
16036 _ACEOF
16037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16038 $EGREP "uid_t" >/dev/null 2>&1; then :
16039 ac_cv_type_uid_t=yes
16040 else
16041 ac_cv_type_uid_t=no
16043 rm -f conftest*
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16047 $as_echo "$ac_cv_type_uid_t" >&6; }
16048 if test $ac_cv_type_uid_t = no; then
16050 $as_echo "#define uid_t int" >>confdefs.h
16053 $as_echo "#define gid_t int" >>confdefs.h
16057 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16058 if test "x$ac_cv_type_pid_t" = xyes; then :
16060 else
16062 cat >>confdefs.h <<_ACEOF
16063 #define pid_t int
16064 _ACEOF
16068 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16069 if test "x$ac_cv_type_size_t" = xyes; then :
16071 else
16073 cat >>confdefs.h <<_ACEOF
16074 #define size_t unsigned int
16075 _ACEOF
16080 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16081 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16083 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16085 else
16086 for ac_type in 'unsigned int' 'unsigned long int' \
16087 'unsigned long long int'; do
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16090 $ac_includes_default
16092 main ()
16094 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16095 test_array [0] = 0;
16096 return test_array [0];
16099 return 0;
16101 _ACEOF
16102 if ac_fn_c_try_compile "$LINENO"; then :
16104 cat >>confdefs.h <<_ACEOF
16105 #define uintptr_t $ac_type
16106 _ACEOF
16108 ac_type=
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 test -z "$ac_type" && break
16112 done
16117 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16118 if test "x$ac_cv_type_ssize_t" = xyes; then :
16120 else
16122 cat >>confdefs.h <<_ACEOF
16123 #define ssize_t int
16124 _ACEOF
16128 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
16129 if test "x$ac_cv_type_time_t" = xyes; then :
16131 else
16133 cat >>confdefs.h <<_ACEOF
16134 #define time_t long
16135 _ACEOF
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
16142 $as_echo_n "checking for long long... " >&6; }
16143 if ${bush_cv_type_long_long+:} false; then :
16144 $as_echo_n "(cached) " >&6
16145 else
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 long long ll = 1; int i = 63;
16151 main ()
16154 long long llm = (long long) -1;
16155 return ll << i | ll >> i | llm / ll | llm % ll;
16158 return 0;
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 bush_cv_type_long_long='long long'
16163 else
16164 bush_cv_type_long_long='long'
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_long_long" >&5
16170 $as_echo "$bush_cv_type_long_long" >&6; }
16171 if test "$bush_cv_type_long_long" = 'long long'; then
16172 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
16178 $as_echo_n "checking for unsigned long long... " >&6; }
16179 if ${bush_cv_type_unsigned_long_long+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 unsigned long long ull = 1; int i = 63;
16187 main ()
16190 unsigned long long ullmax = (unsigned long long) -1;
16191 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
16194 return 0;
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 bush_cv_type_unsigned_long_long='unsigned long long'
16199 else
16200 bush_cv_type_unsigned_long_long='unsigned long'
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_unsigned_long_long" >&5
16206 $as_echo "$bush_cv_type_unsigned_long_long" >&6; }
16207 if test "$bush_cv_type_unsigned_long_long" = 'unsigned long long'; then
16208 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16214 $as_echo_n "checking return type of signal handlers... " >&6; }
16215 if ${ac_cv_type_signal+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <sys/types.h>
16221 #include <signal.h>
16224 main ()
16226 return *(signal (0, 0)) (0) == 1;
16228 return 0;
16230 _ACEOF
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 ac_cv_type_signal=int
16233 else
16234 ac_cv_type_signal=void
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16239 $as_echo "$ac_cv_type_signal" >&6; }
16241 cat >>confdefs.h <<_ACEOF
16242 #define RETSIGTYPE $ac_cv_type_signal
16243 _ACEOF
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
16247 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
16248 if ${ac_cv_have_sig_atomic_t+:} false; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16254 #include <signal.h>
16257 main ()
16259 sig_atomic_t x;
16261 return 0;
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 ac_cv_have_sig_atomic_t=yes
16266 else
16267 ac_cv_have_sig_atomic_t=no
16269 rm -f core conftest.err conftest.$ac_objext \
16270 conftest$ac_exeext conftest.$ac_ext
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
16273 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
16274 if test "$ac_cv_have_sig_atomic_t" = "no"
16275 then
16276 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
16277 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16279 else
16281 cat >>confdefs.h <<_ACEOF
16282 #define sig_atomic_t int
16283 _ACEOF
16290 # The cast to long int works around a bug in the HP C Compiler
16291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16293 # This bug is HP SR number 8606223364.
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16295 $as_echo_n "checking size of char... " >&6; }
16296 if ${ac_cv_sizeof_char+:} false; then :
16297 $as_echo_n "(cached) " >&6
16298 else
16299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16301 else
16302 if test "$ac_cv_type_char" = yes; then
16303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16305 as_fn_error 77 "cannot compute sizeof (char)
16306 See \`config.log' for more details" "$LINENO" 5; }
16307 else
16308 ac_cv_sizeof_char=0
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16314 $as_echo "$ac_cv_sizeof_char" >&6; }
16318 cat >>confdefs.h <<_ACEOF
16319 #define SIZEOF_CHAR $ac_cv_sizeof_char
16320 _ACEOF
16323 # The cast to long int works around a bug in the HP C Compiler
16324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16326 # This bug is HP SR number 8606223364.
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16328 $as_echo_n "checking size of short... " >&6; }
16329 if ${ac_cv_sizeof_short+:} false; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16334 else
16335 if test "$ac_cv_type_short" = yes; then
16336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16338 as_fn_error 77 "cannot compute sizeof (short)
16339 See \`config.log' for more details" "$LINENO" 5; }
16340 else
16341 ac_cv_sizeof_short=0
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16347 $as_echo "$ac_cv_sizeof_short" >&6; }
16351 cat >>confdefs.h <<_ACEOF
16352 #define SIZEOF_SHORT $ac_cv_sizeof_short
16353 _ACEOF
16356 # The cast to long int works around a bug in the HP C Compiler
16357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16359 # This bug is HP SR number 8606223364.
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16361 $as_echo_n "checking size of int... " >&6; }
16362 if ${ac_cv_sizeof_int+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16367 else
16368 if test "$ac_cv_type_int" = yes; then
16369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16371 as_fn_error 77 "cannot compute sizeof (int)
16372 See \`config.log' for more details" "$LINENO" 5; }
16373 else
16374 ac_cv_sizeof_int=0
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16380 $as_echo "$ac_cv_sizeof_int" >&6; }
16384 cat >>confdefs.h <<_ACEOF
16385 #define SIZEOF_INT $ac_cv_sizeof_int
16386 _ACEOF
16389 # The cast to long int works around a bug in the HP C Compiler
16390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16392 # This bug is HP SR number 8606223364.
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16394 $as_echo_n "checking size of long... " >&6; }
16395 if ${ac_cv_sizeof_long+:} false; then :
16396 $as_echo_n "(cached) " >&6
16397 else
16398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16400 else
16401 if test "$ac_cv_type_long" = yes; then
16402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404 as_fn_error 77 "cannot compute sizeof (long)
16405 See \`config.log' for more details" "$LINENO" 5; }
16406 else
16407 ac_cv_sizeof_long=0
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16413 $as_echo "$ac_cv_sizeof_long" >&6; }
16417 cat >>confdefs.h <<_ACEOF
16418 #define SIZEOF_LONG $ac_cv_sizeof_long
16419 _ACEOF
16422 # The cast to long int works around a bug in the HP C Compiler
16423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16425 # This bug is HP SR number 8606223364.
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
16427 $as_echo_n "checking size of char *... " >&6; }
16428 if ${ac_cv_sizeof_char_p+:} false; then :
16429 $as_echo_n "(cached) " >&6
16430 else
16431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
16433 else
16434 if test "$ac_cv_type_char_p" = yes; then
16435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16437 as_fn_error 77 "cannot compute sizeof (char *)
16438 See \`config.log' for more details" "$LINENO" 5; }
16439 else
16440 ac_cv_sizeof_char_p=0
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
16446 $as_echo "$ac_cv_sizeof_char_p" >&6; }
16450 cat >>confdefs.h <<_ACEOF
16451 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
16452 _ACEOF
16455 # The cast to long int works around a bug in the HP C Compiler
16456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16458 # This bug is HP SR number 8606223364.
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16460 $as_echo_n "checking size of double... " >&6; }
16461 if ${ac_cv_sizeof_double+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16466 else
16467 if test "$ac_cv_type_double" = yes; then
16468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16470 as_fn_error 77 "cannot compute sizeof (double)
16471 See \`config.log' for more details" "$LINENO" 5; }
16472 else
16473 ac_cv_sizeof_double=0
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16479 $as_echo "$ac_cv_sizeof_double" >&6; }
16483 cat >>confdefs.h <<_ACEOF
16484 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
16485 _ACEOF
16488 # The cast to long int works around a bug in the HP C Compiler
16489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16491 # This bug is HP SR number 8606223364.
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16493 $as_echo_n "checking size of long long... " >&6; }
16494 if ${ac_cv_sizeof_long_long+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16499 else
16500 if test "$ac_cv_type_long_long" = yes; then
16501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16503 as_fn_error 77 "cannot compute sizeof (long long)
16504 See \`config.log' for more details" "$LINENO" 5; }
16505 else
16506 ac_cv_sizeof_long_long=0
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16512 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16516 cat >>confdefs.h <<_ACEOF
16517 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16518 _ACEOF
16522 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
16523 if test "x$ac_cv_type_u_int" = xyes; then :
16525 else
16527 cat >>confdefs.h <<_ACEOF
16528 #define u_int unsigned int
16529 _ACEOF
16533 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
16534 if test "x$ac_cv_type_u_long" = xyes; then :
16536 else
16538 cat >>confdefs.h <<_ACEOF
16539 #define u_long unsigned long
16540 _ACEOF
16546 if test "$ac_cv_sizeof_short" = 2; then
16547 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16548 if test "x$ac_cv_type_bits16_t" = xyes; then :
16550 else
16552 cat >>confdefs.h <<_ACEOF
16553 #define bits16_t short
16554 _ACEOF
16558 elif test "$ac_cv_sizeof_char" = 2; then
16559 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16560 if test "x$ac_cv_type_bits16_t" = xyes; then :
16562 else
16564 cat >>confdefs.h <<_ACEOF
16565 #define bits16_t char
16566 _ACEOF
16570 else
16571 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
16572 if test "x$ac_cv_type_bits16_t" = xyes; then :
16574 else
16576 cat >>confdefs.h <<_ACEOF
16577 #define bits16_t short
16578 _ACEOF
16585 if test "$ac_cv_sizeof_short" = 2; then
16586 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16587 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16589 else
16591 cat >>confdefs.h <<_ACEOF
16592 #define u_bits16_t unsigned short
16593 _ACEOF
16597 elif test "$ac_cv_sizeof_char" = 2; then
16598 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16599 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16601 else
16603 cat >>confdefs.h <<_ACEOF
16604 #define u_bits16_t unsigned char
16605 _ACEOF
16609 else
16610 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
16611 if test "x$ac_cv_type_u_bits16_t" = xyes; then :
16613 else
16615 cat >>confdefs.h <<_ACEOF
16616 #define u_bits16_t unsigned short
16617 _ACEOF
16624 if test "$ac_cv_sizeof_int" = 4; then
16625 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16626 if test "x$ac_cv_type_bits32_t" = xyes; then :
16628 else
16630 cat >>confdefs.h <<_ACEOF
16631 #define bits32_t int
16632 _ACEOF
16636 elif test "$ac_cv_sizeof_long" = 4; then
16637 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16638 if test "x$ac_cv_type_bits32_t" = xyes; then :
16640 else
16642 cat >>confdefs.h <<_ACEOF
16643 #define bits32_t long
16644 _ACEOF
16648 else
16649 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
16650 if test "x$ac_cv_type_bits32_t" = xyes; then :
16652 else
16654 cat >>confdefs.h <<_ACEOF
16655 #define bits32_t int
16656 _ACEOF
16663 if test "$ac_cv_sizeof_int" = 4; then
16664 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16665 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16667 else
16669 cat >>confdefs.h <<_ACEOF
16670 #define u_bits32_t unsigned int
16671 _ACEOF
16675 elif test "$ac_cv_sizeof_long" = 4; then
16676 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16677 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16679 else
16681 cat >>confdefs.h <<_ACEOF
16682 #define u_bits32_t unsigned long
16683 _ACEOF
16687 else
16688 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
16689 if test "x$ac_cv_type_u_bits32_t" = xyes; then :
16691 else
16693 cat >>confdefs.h <<_ACEOF
16694 #define u_bits32_t unsigned int
16695 _ACEOF
16702 if test "$ac_cv_sizeof_char_p" = 8; then
16703 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16704 if test "x$ac_cv_type_bits64_t" = xyes; then :
16706 else
16708 cat >>confdefs.h <<_ACEOF
16709 #define bits64_t char *
16710 _ACEOF
16714 elif test "$ac_cv_sizeof_double" = 8; then
16715 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16716 if test "x$ac_cv_type_bits64_t" = xyes; then :
16718 else
16720 cat >>confdefs.h <<_ACEOF
16721 #define bits64_t double
16722 _ACEOF
16726 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
16727 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16728 if test "x$ac_cv_type_bits64_t" = xyes; then :
16730 else
16732 cat >>confdefs.h <<_ACEOF
16733 #define bits64_t long long
16734 _ACEOF
16738 elif test "$ac_cv_sizeof_long" = 8; then
16739 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16740 if test "x$ac_cv_type_bits64_t" = xyes; then :
16742 else
16744 cat >>confdefs.h <<_ACEOF
16745 #define bits64_t long
16746 _ACEOF
16750 else
16751 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
16752 if test "x$ac_cv_type_bits64_t" = xyes; then :
16754 else
16756 cat >>confdefs.h <<_ACEOF
16757 #define bits64_t double
16758 _ACEOF
16766 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
16767 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16768 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16770 else
16772 cat >>confdefs.h <<_ACEOF
16773 #define ptrdiff_t int
16774 _ACEOF
16778 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
16779 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16780 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16782 else
16784 cat >>confdefs.h <<_ACEOF
16785 #define ptrdiff_t long
16786 _ACEOF
16790 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
16791 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16792 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16794 else
16796 cat >>confdefs.h <<_ACEOF
16797 #define ptrdiff_t long long
16798 _ACEOF
16802 else
16803 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16804 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16806 else
16808 cat >>confdefs.h <<_ACEOF
16809 #define ptrdiff_t int
16810 _ACEOF
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16818 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16819 if ${ac_cv_header_stat_broken+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 #include <sys/types.h>
16825 #include <sys/stat.h>
16827 #if defined S_ISBLK && defined S_IFDIR
16828 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16829 #endif
16831 #if defined S_ISBLK && defined S_IFCHR
16832 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16833 #endif
16835 #if defined S_ISLNK && defined S_IFREG
16836 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16837 #endif
16839 #if defined S_ISSOCK && defined S_IFREG
16840 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16841 #endif
16843 _ACEOF
16844 if ac_fn_c_try_compile "$LINENO"; then :
16845 ac_cv_header_stat_broken=no
16846 else
16847 ac_cv_header_stat_broken=yes
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16852 $as_echo "$ac_cv_header_stat_broken" >&6; }
16853 if test $ac_cv_header_stat_broken = yes; then
16855 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
16861 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
16862 if ${ac_cv_sys_interpreter+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865 echo '#! /bin/cat
16866 exit 69
16867 ' >conftest
16868 chmod u+x conftest
16869 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
16870 if test $? -ne 69; then
16871 ac_cv_sys_interpreter=yes
16872 else
16873 ac_cv_sys_interpreter=no
16875 rm -f conftest
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
16878 $as_echo "$ac_cv_sys_interpreter" >&6; }
16879 interpval=$ac_cv_sys_interpreter
16881 if test $ac_cv_sys_interpreter = yes; then
16882 $as_echo "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
16886 if test "$ac_cv_func_lstat" = "no"; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
16888 $as_echo_n "checking for lstat... " >&6; }
16889 if ${bush_cv_func_lstat+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16895 #include <sys/types.h>
16896 #include <sys/stat.h>
16899 main ()
16901 lstat(".",(struct stat *)0);
16903 return 0;
16905 _ACEOF
16906 if ac_fn_c_try_link "$LINENO"; then :
16907 bush_cv_func_lstat=yes
16908 else
16909 bush_cv_func_lstat=no
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_lstat" >&5
16915 $as_echo "$bush_cv_func_lstat" >&6; }
16916 if test $bush_cv_func_lstat = yes; then
16917 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
16925 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
16926 if ${bush_cv_func_ctype_nonascii+:} false; then :
16927 $as_echo_n "(cached) " >&6
16928 else
16929 if test "$cross_compiling" = yes; then :
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
16931 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
16932 bush_cv_func_ctype_nonascii=no
16934 else
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16938 #ifdef HAVE_LOCALE_H
16939 #include <locale.h>
16940 #endif
16941 #include <stdio.h>
16942 #include <ctype.h>
16943 #include <stdlib.h>
16946 main(c, v)
16947 int c;
16948 char *v[];
16950 char *deflocale;
16951 unsigned char x;
16952 int r1, r2;
16954 #ifdef HAVE_SETLOCALE
16955 /* We take a shot here. If that locale is not known, try the
16956 system default. We try this one because '\342' (226) is
16957 known to be a printable character in that locale. */
16958 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
16959 if (deflocale == 0)
16960 deflocale = setlocale(LC_ALL, "");
16961 #endif
16963 x = '\342';
16964 r1 = isprint(x);
16965 x -= 128;
16966 r2 = isprint(x);
16967 exit (r1 == 0 || r2 == 0);
16970 _ACEOF
16971 if ac_fn_c_try_run "$LINENO"; then :
16972 bush_cv_func_ctype_nonascii=yes
16973 else
16974 bush_cv_func_ctype_nonascii=no
16976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16977 conftest.$ac_objext conftest.beam conftest.$ac_ext
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_ctype_nonascii" >&5
16983 $as_echo "$bush_cv_func_ctype_nonascii" >&6; }
16984 if test $bush_cv_func_ctype_nonascii = yes; then
16985 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
16990 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
16991 if ${bush_cv_dup2_broken+:} false; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 if test "$cross_compiling" = yes; then :
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
16996 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
16997 bush_cv_dup2_broken=no
16998 else
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17002 #include <sys/types.h>
17003 #include <fcntl.h>
17004 #include <stdlib.h>
17006 main()
17008 int fd1, fd2, fl;
17009 fd1 = open("/dev/null", 2);
17010 if (fcntl(fd1, 2, 1) < 0)
17011 exit(1);
17012 fd2 = dup2(fd1, 1);
17013 if (fd2 < 0)
17014 exit(2);
17015 fl = fcntl(fd2, 1, 0);
17016 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
17017 exit(fl != 1);
17020 _ACEOF
17021 if ac_fn_c_try_run "$LINENO"; then :
17022 bush_cv_dup2_broken=yes
17023 else
17024 bush_cv_dup2_broken=no
17026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17027 conftest.$ac_objext conftest.beam conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dup2_broken" >&5
17034 $as_echo "$bush_cv_dup2_broken" >&6; }
17035 if test $bush_cv_dup2_broken = yes; then
17036 $as_echo "#define DUP2_BROKEN 1" >>confdefs.h
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
17042 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
17043 if ${bush_cv_pgrp_pipe+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 if test "$cross_compiling" = yes; then :
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
17048 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
17049 bush_cv_pgrp_pipe=no
17050 else
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17054 #ifdef HAVE_UNISTD_H
17055 # include <unistd.h>
17056 #endif
17057 #ifdef HAVE_SYS_WAIT_H
17058 # include <sys/wait.h>
17059 #endif
17060 #include <stdlib.h>
17062 main()
17064 # ifdef GETPGRP_VOID
17065 # define getpgID() getpgrp()
17066 # else
17067 # define getpgID() getpgrp(0)
17068 # define setpgid(x,y) setpgrp(x,y)
17069 # endif
17070 int pid1, pid2, fds[2];
17071 int status;
17072 char ok;
17074 switch (pid1 = fork()) {
17075 case -1:
17076 exit(1);
17077 case 0:
17078 setpgid(0, getpid());
17079 exit(0);
17081 setpgid(pid1, pid1);
17083 sleep(2); /* let first child die */
17085 if (pipe(fds) < 0)
17086 exit(2);
17088 switch (pid2 = fork()) {
17089 case -1:
17090 exit(3);
17091 case 0:
17092 setpgid(0, pid1);
17093 ok = getpgID() == pid1;
17094 write(fds[1], &ok, 1);
17095 exit(0);
17097 setpgid(pid2, pid1);
17099 close(fds[1]);
17100 if (read(fds[0], &ok, 1) != 1)
17101 exit(4);
17102 wait(&status);
17103 wait(&status);
17104 exit(ok ? 0 : 5);
17107 _ACEOF
17108 if ac_fn_c_try_run "$LINENO"; then :
17109 bush_cv_pgrp_pipe=no
17110 else
17111 bush_cv_pgrp_pipe=yes
17113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17114 conftest.$ac_objext conftest.beam conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_pgrp_pipe" >&5
17121 $as_echo "$bush_cv_pgrp_pipe" >&6; }
17122 if test $bush_cv_pgrp_pipe = yes; then
17123 $as_echo "#define PGRP_PIPE 1" >>confdefs.h
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
17129 $as_echo_n "checking for type of signal functions... " >&6; }
17130 if ${bush_cv_signal_vintage+:} false; then :
17131 $as_echo_n "(cached) " >&6
17132 else
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 #include <signal.h>
17138 main ()
17141 sigset_t ss;
17142 struct sigaction sa;
17143 sigemptyset(&ss); sigsuspend(&ss);
17144 sigaction(SIGINT, &sa, (struct sigaction *) 0);
17145 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
17148 return 0;
17150 _ACEOF
17151 if ac_fn_c_try_link "$LINENO"; then :
17152 bush_cv_signal_vintage=posix
17153 else
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 #include <signal.h>
17159 main ()
17162 int mask = sigmask(SIGINT);
17163 sigsetmask(mask); sigblock(mask); sigpause(mask);
17166 return 0;
17168 _ACEOF
17169 if ac_fn_c_try_link "$LINENO"; then :
17170 bush_cv_signal_vintage=4.2bsd
17171 else
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17176 #include <signal.h>
17177 RETSIGTYPE foo() { }
17179 main ()
17182 int mask = sigmask(SIGINT);
17183 sigset(SIGINT, foo); sigrelse(SIGINT);
17184 sighold(SIGINT); sigpause(SIGINT);
17187 return 0;
17189 _ACEOF
17190 if ac_fn_c_try_link "$LINENO"; then :
17191 bush_cv_signal_vintage=svr3
17192 else
17193 bush_cv_signal_vintage=v7
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_signal_vintage" >&5
17210 $as_echo "$bush_cv_signal_vintage" >&6; }
17211 if test "$bush_cv_signal_vintage" = posix; then
17212 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
17214 elif test "$bush_cv_signal_vintage" = "4.2bsd"; then
17215 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17217 elif test "$bush_cv_signal_vintage" = svr3; then
17218 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
17224 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
17225 if ${bush_cv_sys_errlist+:} false; then :
17226 $as_echo_n "(cached) " >&6
17227 else
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 #include <errno.h>
17232 main ()
17234 extern char *sys_errlist[];
17235 extern int sys_nerr;
17236 char *msg = sys_errlist[sys_nerr - 1];
17238 return 0;
17240 _ACEOF
17241 if ac_fn_c_try_link "$LINENO"; then :
17242 bush_cv_sys_errlist=yes
17243 else
17244 bush_cv_sys_errlist=no
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_errlist" >&5
17250 $as_echo "$bush_cv_sys_errlist" >&6; }
17251 if test $bush_cv_sys_errlist = yes; then
17252 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
17258 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
17259 if ${bush_cv_sys_siglist+:} false; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 if test "$cross_compiling" = yes; then :
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
17264 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
17265 bush_cv_sys_siglist=no
17266 else
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17270 #include <sys/types.h>
17271 #include <signal.h>
17272 #ifdef HAVE_UNISTD_H
17273 #include <unistd.h>
17274 #endif
17275 #include <stdlib.h>
17276 #if !HAVE_DECL_SYS_SIGLIST
17277 extern char *sys_siglist[];
17278 #endif
17280 main()
17282 char *msg = sys_siglist[2];
17283 exit(msg == 0);
17285 _ACEOF
17286 if ac_fn_c_try_run "$LINENO"; then :
17287 bush_cv_sys_siglist=yes
17288 else
17289 bush_cv_sys_siglist=no
17291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17292 conftest.$ac_objext conftest.beam conftest.$ac_ext
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_siglist" >&5
17298 $as_echo "$bush_cv_sys_siglist" >&6; }
17299 if test $bush_cv_sys_siglist = yes; then
17300 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
17305 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
17306 if ${bush_cv_decl_under_sys_siglist+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17312 #include <sys/types.h>
17313 #include <signal.h>
17314 #ifdef HAVE_UNISTD_H
17315 #include <unistd.h>
17316 #endif
17318 main ()
17320 char *msg = _sys_siglist[2];
17322 return 0;
17324 _ACEOF
17325 if ac_fn_c_try_compile "$LINENO"; then :
17326 bush_cv_decl_under_sys_siglist=yes
17327 else
17328 bush_cv_decl_under_sys_siglist=no
17330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_decl_under_sys_siglist" >&5
17333 $as_echo "$bush_cv_decl_under_sys_siglist" >&6; }
17334 if test $bush_cv_decl_under_sys_siglist = yes; then
17335 $as_echo "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
17341 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
17342 if ${bush_cv_under_sys_siglist+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 if test "$cross_compiling" = yes; then :
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
17347 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
17348 bush_cv_under_sys_siglist=no
17349 else
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17353 #include <sys/types.h>
17354 #include <signal.h>
17355 #ifdef HAVE_UNISTD_H
17356 #include <unistd.h>
17357 #endif
17358 #include <stdlib.h>
17359 #ifndef UNDER_SYS_SIGLIST_DECLARED
17360 extern char *_sys_siglist[];
17361 #endif
17363 main()
17365 char *msg = (char *)_sys_siglist[2];
17366 exit(msg == 0);
17368 _ACEOF
17369 if ac_fn_c_try_run "$LINENO"; then :
17370 bush_cv_under_sys_siglist=yes
17371 else
17372 bush_cv_under_sys_siglist=no
17374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17375 conftest.$ac_objext conftest.beam conftest.$ac_ext
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_under_sys_siglist" >&5
17381 $as_echo "$bush_cv_under_sys_siglist" >&6; }
17382 if test $bush_cv_under_sys_siglist = yes; then
17383 $as_echo "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
17389 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
17390 if ${bush_cv_void_sighandler+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395 #include <sys/types.h>
17396 #include <signal.h>
17397 #ifdef signal
17398 #undef signal
17399 #endif
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 void (*signal ()) ();
17405 main ()
17407 int i;
17409 return 0;
17411 _ACEOF
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413 bush_cv_void_sighandler=yes
17414 else
17415 bush_cv_void_sighandler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_void_sighandler" >&5
17420 $as_echo "$bush_cv_void_sighandler" >&6; }
17421 if test $bush_cv_void_sighandler = yes; then
17422 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
17429 $as_echo_n "checking for clock_t... " >&6; }
17430 if ${bush_cv_type_clock_t+:} false; then :
17431 $as_echo_n "(cached) " >&6
17432 else
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 #include <sys/types.h>
17436 #if STDC_HEADERS
17437 #include <stdlib.h>
17438 #include <stddef.h>
17439 #endif
17440 #if HAVE_INTTYPES_H
17441 #include <inttypes.h>
17442 #endif
17443 #if HAVE_STDINT_H
17444 #include <stdint.h>
17445 #endif
17446 #include <sys/times.h>
17448 _ACEOF
17449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17450 $EGREP "clock_t" >/dev/null 2>&1; then :
17451 bush_cv_type_clock_t=yes
17452 else
17453 bush_cv_type_clock_t=no
17455 rm -f conftest*
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_clock_t" >&5
17460 $as_echo "$bush_cv_type_clock_t" >&6; }
17462 if test $bush_cv_type_clock_t = no; then
17463 cat >>confdefs.h <<_ACEOF
17464 #define clock_t long
17465 _ACEOF
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
17472 $as_echo_n "checking for sigset_t... " >&6; }
17473 if ${bush_cv_type_sigset_t+:} false; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 #include <sys/types.h>
17479 #if STDC_HEADERS
17480 #include <stdlib.h>
17481 #include <stddef.h>
17482 #endif
17483 #if HAVE_INTTYPES_H
17484 #include <inttypes.h>
17485 #endif
17486 #if HAVE_STDINT_H
17487 #include <stdint.h>
17488 #endif
17489 #include <signal.h>
17491 _ACEOF
17492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17493 $EGREP "sigset_t" >/dev/null 2>&1; then :
17494 bush_cv_type_sigset_t=yes
17495 else
17496 bush_cv_type_sigset_t=no
17498 rm -f conftest*
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_sigset_t" >&5
17503 $as_echo "$bush_cv_type_sigset_t" >&6; }
17505 if test $bush_cv_type_sigset_t = no; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define sigset_t int
17508 _ACEOF
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
17515 $as_echo_n "checking for sig_atomic_t... " >&6; }
17516 if ${bush_cv_type_sig_atomic_t+:} false; then :
17517 $as_echo_n "(cached) " >&6
17518 else
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521 #include <sys/types.h>
17522 #if STDC_HEADERS
17523 #include <stdlib.h>
17524 #include <stddef.h>
17525 #endif
17526 #if HAVE_INTTYPES_H
17527 #include <inttypes.h>
17528 #endif
17529 #if HAVE_STDINT_H
17530 #include <stdint.h>
17531 #endif
17532 #include <signal.h>
17534 _ACEOF
17535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17536 $EGREP "sig_atomic_t" >/dev/null 2>&1; then :
17537 bush_cv_type_sig_atomic_t=yes
17538 else
17539 bush_cv_type_sig_atomic_t=no
17541 rm -f conftest*
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_sig_atomic_t" >&5
17546 $as_echo "$bush_cv_type_sig_atomic_t" >&6; }
17548 if test $bush_cv_type_sig_atomic_t = no; then
17549 cat >>confdefs.h <<_ACEOF
17550 #define sig_atomic_t int
17551 _ACEOF
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
17558 $as_echo_n "checking for quad_t... " >&6; }
17559 if ${bush_cv_type_quad_t+:} false; then :
17560 $as_echo_n "(cached) " >&6
17561 else
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 #include <sys/types.h>
17565 #if STDC_HEADERS
17566 #include <stdlib.h>
17567 #include <stddef.h>
17568 #endif
17569 #if HAVE_INTTYPES_H
17570 #include <inttypes.h>
17571 #endif
17572 #if HAVE_STDINT_H
17573 #include <stdint.h>
17574 #endif
17577 _ACEOF
17578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17579 $EGREP "quad_t" >/dev/null 2>&1; then :
17580 bush_cv_type_quad_t=yes
17581 else
17582 bush_cv_type_quad_t=no
17584 rm -f conftest*
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_quad_t" >&5
17589 $as_echo "$bush_cv_type_quad_t" >&6; }
17590 if test $bush_cv_type_quad_t = yes; then
17591 $as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
17594 if test $bush_cv_type_quad_t = no; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define quad_t long
17597 _ACEOF
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
17604 $as_echo_n "checking for intmax_t... " >&6; }
17605 if ${bush_cv_type_intmax_t+:} false; then :
17606 $as_echo_n "(cached) " >&6
17607 else
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <sys/types.h>
17611 #if STDC_HEADERS
17612 #include <stdlib.h>
17613 #include <stddef.h>
17614 #endif
17615 #if HAVE_INTTYPES_H
17616 #include <inttypes.h>
17617 #endif
17618 #if HAVE_STDINT_H
17619 #include <stdint.h>
17620 #endif
17623 _ACEOF
17624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17625 $EGREP "intmax_t" >/dev/null 2>&1; then :
17626 bush_cv_type_intmax_t=yes
17627 else
17628 bush_cv_type_intmax_t=no
17630 rm -f conftest*
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_intmax_t" >&5
17635 $as_echo "$bush_cv_type_intmax_t" >&6; }
17637 if test $bush_cv_type_intmax_t = no; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define intmax_t $bush_cv_type_long_long
17640 _ACEOF
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
17647 $as_echo_n "checking for uintmax_t... " >&6; }
17648 if ${bush_cv_type_uintmax_t+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 #include <sys/types.h>
17654 #if STDC_HEADERS
17655 #include <stdlib.h>
17656 #include <stddef.h>
17657 #endif
17658 #if HAVE_INTTYPES_H
17659 #include <inttypes.h>
17660 #endif
17661 #if HAVE_STDINT_H
17662 #include <stdint.h>
17663 #endif
17666 _ACEOF
17667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17668 $EGREP "uintmax_t" >/dev/null 2>&1; then :
17669 bush_cv_type_uintmax_t=yes
17670 else
17671 bush_cv_type_uintmax_t=no
17673 rm -f conftest*
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_uintmax_t" >&5
17678 $as_echo "$bush_cv_type_uintmax_t" >&6; }
17680 if test $bush_cv_type_uintmax_t = no; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define uintmax_t $bush_cv_type_unsigned_long_long
17683 _ACEOF
17687 if test "$ac_cv_header_sys_socket_h" = "yes"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17691 $as_echo_n "checking for socklen_t... " >&6; }
17692 if ${bush_cv_type_socklen_t+:} false; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17697 #include <sys/types.h>
17698 #if STDC_HEADERS
17699 #include <stdlib.h>
17700 #include <stddef.h>
17701 #endif
17702 #if HAVE_INTTYPES_H
17703 #include <inttypes.h>
17704 #endif
17705 #if HAVE_STDINT_H
17706 #include <stdint.h>
17707 #endif
17708 #include <sys/socket.h>
17710 _ACEOF
17711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17712 $EGREP "socklen_t" >/dev/null 2>&1; then :
17713 bush_cv_type_socklen_t=yes
17714 else
17715 bush_cv_type_socklen_t=no
17717 rm -f conftest*
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_socklen_t" >&5
17722 $as_echo "$bush_cv_type_socklen_t" >&6; }
17723 if test $bush_cv_type_socklen_t = yes; then
17724 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
17727 if test $bush_cv_type_socklen_t = no; then
17728 cat >>confdefs.h <<_ACEOF
17729 #define socklen_t unsigned int
17730 _ACEOF
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5
17736 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
17737 if ${bush_cv_type_rlimit+:} false; then :
17738 $as_echo_n "(cached) " >&6
17739 else
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17742 #include <sys/types.h>
17743 #include <sys/resource.h>
17745 main ()
17747 rlim_t xxx;
17749 return 0;
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753 bush_cv_type_rlimit=rlim_t
17754 else
17756 if test "$cross_compiling" = yes; then :
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
17758 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
17759 bush_cv_type_rlimit=long
17760 else
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 #include <sys/types.h>
17765 #include <sys/time.h>
17766 #include <sys/resource.h>
17767 #include <stdlib.h>
17769 main()
17771 #ifdef HAVE_QUAD_T
17772 struct rlimit rl;
17773 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
17774 exit(0);
17775 #endif
17776 exit(1);
17778 _ACEOF
17779 if ac_fn_c_try_run "$LINENO"; then :
17780 bush_cv_type_rlimit=quad_t
17781 else
17782 bush_cv_type_rlimit=long
17784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17785 conftest.$ac_objext conftest.beam conftest.$ac_ext
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_type_rlimit" >&5
17794 $as_echo "$bush_cv_type_rlimit" >&6; }
17795 if test $bush_cv_type_rlimit = quad_t; then
17796 $as_echo "#define RLIMTYPE quad_t" >>confdefs.h
17798 elif test $bush_cv_type_rlimit = rlim_t; then
17799 $as_echo "#define RLIMTYPE rlim_t" >>confdefs.h
17804 # The cast to long int works around a bug in the HP C Compiler
17805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17807 # This bug is HP SR number 8606223364.
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
17809 $as_echo_n "checking size of intmax_t... " >&6; }
17810 if ${ac_cv_sizeof_intmax_t+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
17815 else
17816 if test "$ac_cv_type_intmax_t" = yes; then
17817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17819 as_fn_error 77 "cannot compute sizeof (intmax_t)
17820 See \`config.log' for more details" "$LINENO" 5; }
17821 else
17822 ac_cv_sizeof_intmax_t=0
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
17828 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
17832 cat >>confdefs.h <<_ACEOF
17833 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
17834 _ACEOF
17839 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
17840 #include <sys/types.h>
17841 #include <termios.h>
17844 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
17845 $as_echo "#define TERMIOS_LDISC 1" >>confdefs.h
17851 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
17852 #include <sys/types.h>
17853 #include <termio.h>
17856 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
17857 $as_echo "#define TERMIO_LDISC 1" >>confdefs.h
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
17864 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
17865 if ${bush_cv_dirent_has_dino+:} false; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17871 #include <stdio.h>
17872 #include <sys/types.h>
17873 #ifdef HAVE_UNISTD_H
17874 # include <unistd.h>
17875 #endif /* HAVE_UNISTD_H */
17876 #if defined(HAVE_DIRENT_H)
17877 # include <dirent.h>
17878 #else
17879 # define dirent direct
17880 # ifdef HAVE_SYS_NDIR_H
17881 # include <sys/ndir.h>
17882 # endif /* SYSNDIR */
17883 # ifdef HAVE_SYS_DIR_H
17884 # include <sys/dir.h>
17885 # endif /* SYSDIR */
17886 # ifdef HAVE_NDIR_H
17887 # include <ndir.h>
17888 # endif
17889 #endif /* HAVE_DIRENT_H */
17892 main ()
17895 struct dirent d; int z; z = d.d_ino;
17898 return 0;
17900 _ACEOF
17901 if ac_fn_c_try_compile "$LINENO"; then :
17902 bush_cv_dirent_has_dino=yes
17903 else
17904 bush_cv_dirent_has_dino=no
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_dino" >&5
17910 $as_echo "$bush_cv_dirent_has_dino" >&6; }
17911 if test $bush_cv_dirent_has_dino = yes; then
17912 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
17918 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
17919 if ${bush_cv_dirent_has_d_fileno+:} false; then :
17920 $as_echo_n "(cached) " >&6
17921 else
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17925 #include <stdio.h>
17926 #include <sys/types.h>
17927 #ifdef HAVE_UNISTD_H
17928 # include <unistd.h>
17929 #endif /* HAVE_UNISTD_H */
17930 #if defined(HAVE_DIRENT_H)
17931 # include <dirent.h>
17932 #else
17933 # define dirent direct
17934 # ifdef HAVE_SYS_NDIR_H
17935 # include <sys/ndir.h>
17936 # endif /* SYSNDIR */
17937 # ifdef HAVE_SYS_DIR_H
17938 # include <sys/dir.h>
17939 # endif /* SYSDIR */
17940 # ifdef HAVE_NDIR_H
17941 # include <ndir.h>
17942 # endif
17943 #endif /* HAVE_DIRENT_H */
17946 main ()
17949 struct dirent d; int z; z = d.d_fileno;
17952 return 0;
17954 _ACEOF
17955 if ac_fn_c_try_compile "$LINENO"; then :
17956 bush_cv_dirent_has_d_fileno=yes
17957 else
17958 bush_cv_dirent_has_d_fileno=no
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_d_fileno" >&5
17964 $as_echo "$bush_cv_dirent_has_d_fileno" >&6; }
17965 if test $bush_cv_dirent_has_d_fileno = yes; then
17966 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
17972 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
17973 if ${bush_cv_dirent_has_d_namlen+:} false; then :
17974 $as_echo_n "(cached) " >&6
17975 else
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17979 #include <stdio.h>
17980 #include <sys/types.h>
17981 #ifdef HAVE_UNISTD_H
17982 # include <unistd.h>
17983 #endif /* HAVE_UNISTD_H */
17984 #if defined(HAVE_DIRENT_H)
17985 # include <dirent.h>
17986 #else
17987 # define dirent direct
17988 # ifdef HAVE_SYS_NDIR_H
17989 # include <sys/ndir.h>
17990 # endif /* SYSNDIR */
17991 # ifdef HAVE_SYS_DIR_H
17992 # include <sys/dir.h>
17993 # endif /* SYSDIR */
17994 # ifdef HAVE_NDIR_H
17995 # include <ndir.h>
17996 # endif
17997 #endif /* HAVE_DIRENT_H */
18000 main ()
18003 struct dirent d; int z; z = d.d_namlen;
18006 return 0;
18008 _ACEOF
18009 if ac_fn_c_try_compile "$LINENO"; then :
18010 bush_cv_dirent_has_d_namlen=yes
18011 else
18012 bush_cv_dirent_has_d_namlen=no
18014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dirent_has_d_namlen" >&5
18018 $as_echo "$bush_cv_dirent_has_d_namlen" >&6; }
18019 if test $bush_cv_dirent_has_d_namlen = yes; then
18020 $as_echo "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
18025 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
18026 if ${bush_cv_struct_winsize_header+:} false; then :
18027 $as_echo_n "(cached) " >&6
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <sys/types.h>
18032 #include <sys/ioctl.h>
18034 main ()
18036 struct winsize x;
18038 return 0;
18040 _ACEOF
18041 if ac_fn_c_try_compile "$LINENO"; then :
18042 bush_cv_struct_winsize_header=ioctl_h
18043 else
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 #include <sys/types.h>
18047 #include <termios.h>
18049 main ()
18051 struct winsize x;
18053 return 0;
18055 _ACEOF
18056 if ac_fn_c_try_compile "$LINENO"; then :
18057 bush_cv_struct_winsize_header=termios_h
18058 else
18059 bush_cv_struct_winsize_header=other
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 if test $bush_cv_struct_winsize_header = ioctl_h; then
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
18069 $as_echo "sys/ioctl.h" >&6; }
18070 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
18072 elif test $bush_cv_struct_winsize_header = termios_h; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
18074 $as_echo "termios.h" >&6; }
18075 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
18077 else
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18079 $as_echo "not found" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
18083 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
18084 if ${bush_cv_struct_timeval+:} false; then :
18085 $as_echo_n "(cached) " >&6
18086 else
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 #if HAVE_SYS_TIME_H
18090 #include <sys/time.h>
18091 #endif
18092 #include <time.h>
18095 main ()
18097 static struct timeval x; x.tv_sec = x.tv_usec;
18100 return 0;
18102 _ACEOF
18103 if ac_fn_c_try_compile "$LINENO"; then :
18104 bush_cv_struct_timeval=yes
18105 else
18106 bush_cv_struct_timeval=no
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_struct_timeval" >&5
18113 $as_echo "$bush_cv_struct_timeval" >&6; }
18114 if test $bush_cv_struct_timeval = yes; then
18115 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
18119 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
18120 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18124 _ACEOF
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18130 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18131 if ${ac_cv_struct_tm+:} false; then :
18132 $as_echo_n "(cached) " >&6
18133 else
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <sys/types.h>
18137 #include <time.h>
18140 main ()
18142 struct tm tm;
18143 int *p = &tm.tm_sec;
18144 return !p;
18146 return 0;
18148 _ACEOF
18149 if ac_fn_c_try_compile "$LINENO"; then :
18150 ac_cv_struct_tm=time.h
18151 else
18152 ac_cv_struct_tm=sys/time.h
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18157 $as_echo "$ac_cv_struct_tm" >&6; }
18158 if test $ac_cv_struct_tm = sys/time.h; then
18160 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18164 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18165 #include <$ac_cv_struct_tm>
18168 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
18170 cat >>confdefs.h <<_ACEOF
18171 #define HAVE_STRUCT_TM_TM_ZONE 1
18172 _ACEOF
18177 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18179 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18181 else
18182 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18184 if test "x$ac_cv_have_decl_tzname" = xyes; then :
18185 ac_have_decl=1
18186 else
18187 ac_have_decl=0
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_DECL_TZNAME $ac_have_decl
18192 _ACEOF
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18195 $as_echo_n "checking for tzname... " >&6; }
18196 if ${ac_cv_var_tzname+:} false; then :
18197 $as_echo_n "(cached) " >&6
18198 else
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18201 #include <time.h>
18202 #if !HAVE_DECL_TZNAME
18203 extern char *tzname[];
18204 #endif
18207 main ()
18209 return tzname[0][0];
18211 return 0;
18213 _ACEOF
18214 if ac_fn_c_try_link "$LINENO"; then :
18215 ac_cv_var_tzname=yes
18216 else
18217 ac_cv_var_tzname=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18223 $as_echo "$ac_cv_var_tzname" >&6; }
18224 if test $ac_cv_var_tzname = yes; then
18226 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
18232 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
18233 if ${bush_cv_struct_timezone+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 #include <sys/time.h>
18241 _ACEOF
18242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18243 $EGREP "struct timezone" >/dev/null 2>&1; then :
18244 bush_cv_struct_timezone=yes
18245 else
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #include <time.h>
18250 _ACEOF
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252 $EGREP "struct timezone" >/dev/null 2>&1; then :
18253 bush_cv_struct_timezone=yes
18254 else
18255 bush_cv_struct_timezone=no
18257 rm -f conftest*
18260 rm -f conftest*
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_struct_timezone" >&5
18266 $as_echo "$bush_cv_struct_timezone" >&6; }
18267 if test $bush_cv_struct_timezone = yes; then
18268 $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
18274 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
18275 if ${bush_cv_wexitstatus_offset+:} false; then :
18276 $as_echo_n "(cached) " >&6
18277 else
18278 if test "$cross_compiling" = yes; then :
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
18280 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
18281 bush_cv_wexitstatus_offset=0
18283 else
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18287 #include <stdlib.h>
18288 #include <unistd.h>
18290 #include <sys/wait.h>
18293 main(c, v)
18294 int c;
18295 char **v;
18297 pid_t pid, p;
18298 int s, i, n;
18300 s = 0;
18301 pid = fork();
18302 if (pid == 0)
18303 exit (42);
18305 /* wait for the process */
18306 p = wait(&s);
18307 if (p != pid)
18308 exit (255);
18310 /* crack s */
18311 for (i = 0; i < (sizeof(s) * 8); i++)
18313 n = (s >> i) & 0xff;
18314 if (n == 42)
18315 exit (i);
18318 exit (254);
18321 _ACEOF
18322 if ac_fn_c_try_run "$LINENO"; then :
18323 bush_cv_wexitstatus_offset=0
18324 else
18325 bush_cv_wexitstatus_offset=$?
18327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18328 conftest.$ac_objext conftest.beam conftest.$ac_ext
18333 if test "$bush_cv_wexitstatus_offset" -gt 32 ; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
18335 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
18336 bush_cv_wexitstatus_offset=0
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wexitstatus_offset" >&5
18339 $as_echo "$bush_cv_wexitstatus_offset" >&6; }
18341 cat >>confdefs.h <<_ACEOF
18342 #define WEXITSTATUS_OFFSET $bush_cv_wexitstatus_offset
18343 _ACEOF
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18350 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18351 if ${bush_cv_sys_struct_timespec_in_time_h+:} false; then :
18352 $as_echo_n "(cached) " >&6
18353 else
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18356 #include <time.h>
18359 main ()
18361 static struct timespec x; x.tv_sec = x.tv_nsec;
18363 return 0;
18365 _ACEOF
18366 if ac_fn_c_try_compile "$LINENO"; then :
18367 bush_cv_sys_struct_timespec_in_time_h=yes
18368 else
18369 bush_cv_sys_struct_timespec_in_time_h=no
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_time_h" >&5
18374 $as_echo "$bush_cv_sys_struct_timespec_in_time_h" >&6; }
18376 HAVE_STRUCT_TIMESPEC=0
18377 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18378 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18379 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18380 if test $bush_cv_sys_struct_timespec_in_time_h = yes; then
18381 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18383 $as_echo "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18385 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18386 else
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18388 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18389 if ${bush_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394 #include <sys/time.h>
18397 main ()
18399 static struct timespec x; x.tv_sec = x.tv_nsec;
18401 return 0;
18403 _ACEOF
18404 if ac_fn_c_try_compile "$LINENO"; then :
18405 bush_cv_sys_struct_timespec_in_sys_time_h=yes
18406 else
18407 bush_cv_sys_struct_timespec_in_sys_time_h=no
18409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_sys_time_h" >&5
18412 $as_echo "$bush_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18413 if test $bush_cv_sys_struct_timespec_in_sys_time_h = yes; then
18414 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18415 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18417 $as_echo "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18419 else
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18421 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18422 if ${bush_cv_sys_struct_timespec_in_pthread_h+:} false; then :
18423 $as_echo_n "(cached) " >&6
18424 else
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427 #include <pthread.h>
18430 main ()
18432 static struct timespec x; x.tv_sec = x.tv_nsec;
18434 return 0;
18436 _ACEOF
18437 if ac_fn_c_try_compile "$LINENO"; then :
18438 bush_cv_sys_struct_timespec_in_pthread_h=yes
18439 else
18440 bush_cv_sys_struct_timespec_in_pthread_h=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_struct_timespec_in_pthread_h" >&5
18445 $as_echo "$bush_cv_sys_struct_timespec_in_pthread_h" >&6; }
18446 if test $bush_cv_sys_struct_timespec_in_pthread_h = yes; then
18447 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18448 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
18450 $as_echo "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
18464 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
18465 #include <sys/stat.h>
18467 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
18471 _ACEOF
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
18474 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
18475 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18481 #include <sys/types.h>
18482 #include <sys/stat.h>
18483 #if HAVE_SYS_TIME_H
18484 # include <sys/time.h>
18485 #endif
18486 #include <time.h>
18487 struct timespec ts;
18488 struct stat st;
18491 main ()
18494 st.st_atim = ts;
18497 return 0;
18499 _ACEOF
18500 if ac_fn_c_try_compile "$LINENO"; then :
18501 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
18502 else
18503 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
18505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
18508 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
18509 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
18511 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
18514 else
18515 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
18516 #include <sys/stat.h>
18518 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
18520 cat >>confdefs.h <<_ACEOF
18521 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
18522 _ACEOF
18525 else
18526 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
18527 #include <sys/stat.h>
18529 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
18531 cat >>confdefs.h <<_ACEOF
18532 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
18533 _ACEOF
18536 else
18537 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
18538 #include <sys/stat.h>
18540 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
18542 cat >>confdefs.h <<_ACEOF
18543 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
18544 _ACEOF
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18559 $as_echo_n "checking for sbrk... " >&6; }
18560 if ${ac_cv_func_sbrk+:} false; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18565 #include <unistd.h>
18567 main ()
18569 void *x = sbrk (4096);
18571 return 0;
18573 _ACEOF
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_func_sbrk=yes
18576 else
18577 ac_cv_func_sbrk=no
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sbrk" >&5
18584 $as_echo "$ac_cv_func_sbrk" >&6; }
18585 if test X$ac_cv_func_sbrk = Xyes; then
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
18587 $as_echo_n "checking for working sbrk... " >&6; }
18588 if ${bush_cv_func_sbrk+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 if test "$cross_compiling" = yes; then :
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
18593 $as_echo "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
18594 bush_cv_func_sbrk=yes
18596 else
18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h. */
18600 #include <stdlib.h>
18601 #include <unistd.h>
18604 main(int c, char **v)
18606 void *x;
18608 x = sbrk (4096);
18609 exit ((x == (void *)-1) ? 1 : 0);
18612 _ACEOF
18613 if ac_fn_c_try_run "$LINENO"; then :
18614 bush_cv_func_sbrk=yes
18615 else
18616 bush_cv_func_snprintf=sbrk
18618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18619 conftest.$ac_objext conftest.beam conftest.$ac_ext
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_sbrk" >&5
18624 $as_echo "$bush_cv_func_sbrk" >&6; }
18625 if test $bush_cv_func_sbrk = no; then
18626 ac_cv_func_sbrk=no
18629 if test $ac_cv_func_sbrk = yes; then
18631 $as_echo "#define HAVE_SBRK 1" >>confdefs.h
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
18637 $as_echo_n "checking for the existence of strsignal... " >&6; }
18638 if ${bush_cv_have_strsignal+:} false; then :
18639 $as_echo_n "(cached) " >&6
18640 else
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 #include <sys/types.h>
18644 #include <signal.h>
18645 #include <string.h>
18647 main ()
18649 char *s = (char *)strsignal(2);
18651 return 0;
18653 _ACEOF
18654 if ac_fn_c_try_link "$LINENO"; then :
18655 bush_cv_have_strsignal=yes
18656 else
18657 bush_cv_have_strsignal=no
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_have_strsignal" >&5
18664 $as_echo "$bush_cv_have_strsignal" >&6; }
18665 if test $bush_cv_have_strsignal = yes; then
18666 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
18671 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
18672 if ${bush_cv_opendir_not_robust+:} false; then :
18673 $as_echo_n "(cached) " >&6
18674 else
18675 if test "$cross_compiling" = yes; then :
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
18677 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
18678 bush_cv_opendir_not_robust=no
18680 else
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18684 #include <stdio.h>
18685 #include <sys/types.h>
18686 #include <fcntl.h>
18687 #ifdef HAVE_UNISTD_H
18688 # include <unistd.h>
18689 #endif /* HAVE_UNISTD_H */
18690 #ifdef HAVE_SYS_STAT_H
18691 #include <sys/stat.h>
18692 #endif
18693 #if defined(HAVE_DIRENT_H)
18694 # include <dirent.h>
18695 #else
18696 # define dirent direct
18697 # ifdef HAVE_SYS_NDIR_H
18698 # include <sys/ndir.h>
18699 # endif /* SYSNDIR */
18700 # ifdef HAVE_SYS_DIR_H
18701 # include <sys/dir.h>
18702 # endif /* SYSDIR */
18703 # ifdef HAVE_NDIR_H
18704 # include <ndir.h>
18705 # endif
18706 #endif /* HAVE_DIRENT_H */
18707 #include <stdlib.h>
18709 main()
18711 DIR *dir;
18712 int fd, err;
18713 err = mkdir("bush-aclocal", 0700);
18714 if (err < 0) {
18715 perror("mkdir");
18716 exit(1);
18718 unlink("bush-aclocal/not_a_directory");
18719 fd = open("bush-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
18720 write(fd, "\n", 1);
18721 close(fd);
18722 dir = opendir("bush-aclocal/not_a_directory");
18723 unlink("bush-aclocal/not_a_directory");
18724 rmdir("bush-aclocal");
18725 exit (dir == 0);
18727 _ACEOF
18728 if ac_fn_c_try_run "$LINENO"; then :
18729 bush_cv_opendir_not_robust=yes
18730 else
18731 bush_cv_opendir_not_robust=no
18733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18734 conftest.$ac_objext conftest.beam conftest.$ac_ext
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_opendir_not_robust" >&5
18740 $as_echo "$bush_cv_opendir_not_robust" >&6; }
18741 if test $bush_cv_opendir_not_robust = yes; then
18742 $as_echo "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
18747 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
18748 if ${bush_cv_ulimit_maxfds+:} false; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18751 if test "$cross_compiling" = yes; then :
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
18753 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
18754 bush_cv_ulimit_maxfds=no
18756 else
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 #include <stdlib.h>
18761 #ifdef HAVE_ULIMIT_H
18762 #include <ulimit.h>
18763 #endif
18765 main()
18767 long maxfds = ulimit(4, 0L);
18768 exit (maxfds == -1L);
18771 _ACEOF
18772 if ac_fn_c_try_run "$LINENO"; then :
18773 bush_cv_ulimit_maxfds=yes
18774 else
18775 bush_cv_ulimit_maxfds=no
18777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18778 conftest.$ac_objext conftest.beam conftest.$ac_ext
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_ulimit_maxfds" >&5
18784 $as_echo "$bush_cv_ulimit_maxfds" >&6; }
18785 if test $bush_cv_ulimit_maxfds = yes; then
18786 $as_echo "#define ULIMIT_MAXFDS 1" >>confdefs.h
18797 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
18799 if test "x$ac_cv_have_decl_fpurge" = xyes; then :
18800 ac_have_decl=1
18801 else
18802 ac_have_decl=0
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_DECL_FPURGE $ac_have_decl
18807 _ACEOF
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
18811 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
18812 if ${bush_cv_getenv_redef+:} false; then :
18813 $as_echo_n "(cached) " >&6
18814 else
18815 if test "$cross_compiling" = yes; then :
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
18817 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
18818 bush_cv_getenv_redef=yes
18820 else
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 #ifdef HAVE_UNISTD_H
18825 # include <unistd.h>
18826 #endif
18827 #include <stdlib.h>
18828 #ifndef __STDC__
18829 # ifndef const
18830 # define const
18831 # endif
18832 #endif
18833 char *
18834 getenv (name)
18835 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
18836 const char *name;
18837 #else
18838 char const *name;
18839 #endif /* !__linux__ && !__bsdi__ && !convex */
18841 return "42";
18844 main()
18846 char *s;
18847 /* The next allows this program to run, but does not allow bush to link
18848 when it redefines getenv. I'm not really interested in figuring out
18849 why not. */
18850 #if defined (NeXT)
18851 exit(1);
18852 #endif
18853 s = getenv("ABCDE");
18854 exit(s == 0); /* force optimizer to leave getenv in */
18857 _ACEOF
18858 if ac_fn_c_try_run "$LINENO"; then :
18859 bush_cv_getenv_redef=yes
18860 else
18861 bush_cv_getenv_redef=no
18863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18864 conftest.$ac_objext conftest.beam conftest.$ac_ext
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getenv_redef" >&5
18870 $as_echo "$bush_cv_getenv_redef" >&6; }
18871 if test $bush_cv_getenv_redef = yes; then
18872 $as_echo "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
18876 if test "$ac_cv_func_getcwd" = "yes"; then
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
18878 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
18879 if ${bush_cv_getcwd_malloc+:} false; then :
18880 $as_echo_n "(cached) " >&6
18881 else
18882 if test "$cross_compiling" = yes; then :
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
18884 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
18885 bush_cv_getcwd_malloc=no
18887 else
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18891 #include <stdio.h>
18892 #ifdef HAVE_UNISTD_H
18893 #include <unistd.h>
18894 #endif
18895 #include <stdlib.h>
18898 main()
18900 char *xpwd;
18901 xpwd = getcwd(0, 0);
18902 exit (xpwd == 0);
18905 _ACEOF
18906 if ac_fn_c_try_run "$LINENO"; then :
18907 bush_cv_getcwd_malloc=yes
18908 else
18909 bush_cv_getcwd_malloc=no
18911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18912 conftest.$ac_objext conftest.beam conftest.$ac_ext
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getcwd_malloc" >&5
18918 $as_echo "$bush_cv_getcwd_malloc" >&6; }
18919 if test $bush_cv_getcwd_malloc = no; then
18920 $as_echo "#define GETCWD_BROKEN 1" >>confdefs.h
18922 case " $LIBOBJS " in
18923 *" getcwd.$ac_objext "* ) ;;
18924 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
18926 esac
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
18933 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
18934 if ${bush_cv_func_sigsetjmp+:} false; then :
18935 $as_echo_n "(cached) " >&6
18936 else
18937 if test "$cross_compiling" = yes; then :
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
18939 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
18940 bush_cv_func_sigsetjmp=missing
18942 else
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18946 #ifdef HAVE_UNISTD_H
18947 #include <unistd.h>
18948 #endif
18949 #include <sys/types.h>
18950 #include <signal.h>
18951 #include <setjmp.h>
18952 #include <stdlib.h>
18955 main()
18957 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
18958 exit (1);
18959 #else
18961 int code;
18962 sigset_t set, oset;
18963 sigjmp_buf xx;
18965 /* get the mask */
18966 sigemptyset(&set);
18967 sigemptyset(&oset);
18968 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
18969 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
18971 /* save it */
18972 code = sigsetjmp(xx, 1);
18973 if (code)
18974 exit(0); /* could get sigmask and compare to oset here. */
18976 /* change it */
18977 sigaddset(&set, SIGINT);
18978 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
18980 /* and siglongjmp */
18981 siglongjmp(xx, 10);
18982 exit(1);
18983 #endif
18985 _ACEOF
18986 if ac_fn_c_try_run "$LINENO"; then :
18987 bush_cv_func_sigsetjmp=present
18988 else
18989 bush_cv_func_sigsetjmp=missing
18991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18992 conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_sigsetjmp" >&5
18998 $as_echo "$bush_cv_func_sigsetjmp" >&6; }
18999 if test $bush_cv_func_sigsetjmp = present; then
19000 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
19006 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
19007 if ${bush_cv_func_strcoll_broken+:} false; then :
19008 $as_echo_n "(cached) " >&6
19009 else
19010 if test "$cross_compiling" = yes; then :
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
19012 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
19013 bush_cv_func_strcoll_broken=no
19015 else
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19019 #include <stdio.h>
19020 #if defined (HAVE_LOCALE_H)
19021 #include <locale.h>
19022 #endif
19023 #include <string.h>
19024 #include <stdlib.h>
19027 main(c, v)
19028 int c;
19029 char *v[];
19031 int r1, r2;
19032 char *deflocale, *defcoll;
19034 #ifdef HAVE_SETLOCALE
19035 deflocale = setlocale(LC_ALL, "");
19036 defcoll = setlocale(LC_COLLATE, "");
19037 #endif
19039 #ifdef HAVE_STRCOLL
19040 /* These two values are taken from tests/glob-test. */
19041 r1 = strcoll("abd", "aXd");
19042 #else
19043 r1 = 0;
19044 #endif
19045 r2 = strcmp("abd", "aXd");
19047 /* These two should both be greater than 0. It is permissible for
19048 a system to return different values, as long as the sign is the
19049 same. */
19051 /* Exit with 1 (failure) if these two values are both > 0, since
19052 this tests whether strcoll(3) is broken with respect to strcmp(3)
19053 in the default locale. */
19054 exit (r1 > 0 && r2 > 0);
19057 _ACEOF
19058 if ac_fn_c_try_run "$LINENO"; then :
19059 bush_cv_func_strcoll_broken=yes
19060 else
19061 bush_cv_func_strcoll_broken=no
19063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19064 conftest.$ac_objext conftest.beam conftest.$ac_ext
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_strcoll_broken" >&5
19070 $as_echo "$bush_cv_func_strcoll_broken" >&6; }
19071 if test $bush_cv_func_strcoll_broken = yes; then
19072 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
19080 if test X$ac_cv_func_snprintf = Xyes; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
19082 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
19083 if ${bush_cv_func_snprintf+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 if test "$cross_compiling" = yes; then :
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
19088 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
19089 bush_cv_func_snprintf=yes
19091 else
19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19095 #include <stdio.h>
19096 #include <stdlib.h>
19099 main()
19101 int n;
19102 n = snprintf (0, 0, "%s", "0123456");
19103 exit(n != 7);
19106 _ACEOF
19107 if ac_fn_c_try_run "$LINENO"; then :
19108 bush_cv_func_snprintf=yes
19109 else
19110 bush_cv_func_snprintf=no
19112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19113 conftest.$ac_objext conftest.beam conftest.$ac_ext
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_snprintf" >&5
19118 $as_echo "$bush_cv_func_snprintf" >&6; }
19119 if test $bush_cv_func_snprintf = no; then
19120 ac_cv_func_snprintf=no
19123 if test $ac_cv_func_snprintf = no; then
19125 $as_echo "#define HAVE_SNPRINTF 0" >>confdefs.h
19133 if test X$ac_cv_func_vsnprintf = Xyes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
19135 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
19136 if ${bush_cv_func_vsnprintf+:} false; then :
19137 $as_echo_n "(cached) " >&6
19138 else
19139 if test "$cross_compiling" = yes; then :
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
19141 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
19142 bush_cv_func_vsnprintf=yes
19144 else
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19148 #if HAVE_STDARG_H
19149 #include <stdarg.h>
19150 #else
19151 #include <varargs.h>
19152 #endif
19153 #include <stdio.h>
19154 #include <stdlib.h>
19156 static int
19157 #if HAVE_STDARG_H
19158 foo(const char *fmt, ...)
19159 #else
19160 foo(format, va_alist)
19161 const char *format;
19162 va_dcl
19163 #endif
19165 va_list args;
19166 int n;
19168 #if HAVE_STDARG_H
19169 va_start(args, fmt);
19170 #else
19171 va_start(args);
19172 #endif
19173 n = vsnprintf(0, 0, fmt, args);
19174 va_end (args);
19175 return n;
19179 main()
19181 int n;
19182 n = foo("%s", "0123456");
19183 exit(n != 7);
19186 _ACEOF
19187 if ac_fn_c_try_run "$LINENO"; then :
19188 bush_cv_func_vsnprintf=yes
19189 else
19190 bush_cv_func_vsnprintf=no
19192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19193 conftest.$ac_objext conftest.beam conftest.$ac_ext
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_func_vsnprintf" >&5
19198 $as_echo "$bush_cv_func_vsnprintf" >&6; }
19199 if test $bush_cv_func_vsnprintf = no; then
19200 ac_cv_func_vsnprintf=no
19203 if test $ac_cv_func_vsnprintf = no; then
19205 $as_echo "#define HAVE_VSNPRINTF 0" >>confdefs.h
19211 if test "$ac_cv_func_putenv" = "yes"; then
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
19216 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
19217 if ${bush_cv_std_putenv+:} false; then :
19218 $as_echo_n "(cached) " >&6
19219 else
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19223 #if STDC_HEADERS
19224 #include <stdlib.h>
19225 #include <stddef.h>
19226 #endif
19227 #ifndef __STDC__
19228 # ifndef const
19229 # define const
19230 # endif
19231 #endif
19232 #ifdef PROTOTYPES
19233 extern int putenv (char *);
19234 #else
19235 extern int putenv ();
19236 #endif
19239 main ()
19241 return (putenv == 0);
19243 return 0;
19245 _ACEOF
19246 if ac_fn_c_try_link "$LINENO"; then :
19247 bush_cv_std_putenv=yes
19248 else
19249 bush_cv_std_putenv=no
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_std_putenv" >&5
19256 $as_echo "$bush_cv_std_putenv" >&6; }
19257 if test $bush_cv_std_putenv = yes; then
19258 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
19262 else
19263 $as_echo "#define HAVE_STD_PUTENV 1" >>confdefs.h
19266 if test "$ac_cv_func_unsetenv" = "yes"; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
19271 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
19272 if ${bush_cv_std_unsetenv+:} false; then :
19273 $as_echo_n "(cached) " >&6
19274 else
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 #if STDC_HEADERS
19279 #include <stdlib.h>
19280 #include <stddef.h>
19281 #endif
19282 #ifndef __STDC__
19283 # ifndef const
19284 # define const
19285 # endif
19286 #endif
19287 #ifdef PROTOTYPES
19288 extern int unsetenv (const char *);
19289 #else
19290 extern int unsetenv ();
19291 #endif
19294 main ()
19296 return (unsetenv == 0);
19298 return 0;
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 bush_cv_std_unsetenv=yes
19303 else
19304 bush_cv_std_unsetenv=no
19307 rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_std_unsetenv" >&5
19311 $as_echo "$bush_cv_std_unsetenv" >&6; }
19312 if test $bush_cv_std_unsetenv = yes; then
19313 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
19317 else
19318 $as_echo "#define HAVE_STD_UNSETENV 1" >>confdefs.h
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
19323 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
19324 if ${bush_cv_printf_a_format+:} false; then :
19325 $as_echo_n "(cached) " >&6
19326 else
19327 if test "$cross_compiling" = yes; then :
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
19329 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
19330 bush_cv_printf_a_format=no
19332 else
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19336 #include <stdio.h>
19337 #include <string.h>
19338 #include <stdlib.h>
19341 main()
19343 double y = 0.0;
19344 char abuf[1024];
19346 sprintf(abuf, "%A", y);
19347 exit(strchr(abuf, 'P') == (char *)0);
19350 _ACEOF
19351 if ac_fn_c_try_run "$LINENO"; then :
19352 bush_cv_printf_a_format=yes
19353 else
19354 bush_cv_printf_a_format=no
19356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19357 conftest.$ac_objext conftest.beam conftest.$ac_ext
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_printf_a_format" >&5
19363 $as_echo "$bush_cv_printf_a_format" >&6; }
19364 if test $bush_cv_printf_a_format = yes; then
19365 $as_echo "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
19371 $as_echo_n "checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
19372 if ${bush_cv_fnmatch_equiv_fallback+:} false; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375 if test "$cross_compiling" = yes; then :
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
19377 $as_echo "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
19378 bush_cv_fnmatch_equiv_fallback=no
19380 else
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19384 #include <stdlib.h>
19385 #include <unistd.h>
19386 #include <stdio.h>
19387 #include <fnmatch.h>
19388 #include <locale.h>
19390 char *pattern = "[[=a=]]";
19392 /* char *string = "ä"; */
19393 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
19396 main (int c, char **v)
19398 setlocale (LC_ALL, "en_US.UTF-8");
19399 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
19400 exit (0);
19401 exit (1);
19405 _ACEOF
19406 if ac_fn_c_try_run "$LINENO"; then :
19407 bush_cv_fnmatch_equiv_fallback=yes
19408 else
19409 bush_cv_fnmatch_equiv_fallback=no
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412 conftest.$ac_objext conftest.beam conftest.$ac_ext
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_fnmatch_equiv_fallback" >&5
19418 $as_echo "$bush_cv_fnmatch_equiv_fallback" >&6; }
19419 if test "$bush_cv_fnmatch_equiv_fallback" = "yes" ; then
19420 bush_cv_fnmatch_equiv_value=1
19421 else
19422 bush_cv_fnmatch_equiv_value=0
19425 cat >>confdefs.h <<_ACEOF
19426 #define FNMATCH_EQUIV_FALLBACK $bush_cv_fnmatch_equiv_value
19427 _ACEOF
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
19434 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
19435 if ${bush_cv_must_reinstall_sighandlers+:} false; then :
19436 $as_echo_n "(cached) " >&6
19437 else
19438 if test "$cross_compiling" = yes; then :
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
19440 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
19441 bush_cv_must_reinstall_sighandlers=no
19443 else
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19447 #include <signal.h>
19448 #ifdef HAVE_UNISTD_H
19449 #include <unistd.h>
19450 #endif
19451 #include <stdlib.h>
19453 typedef RETSIGTYPE sigfunc();
19455 volatile int nsigint;
19457 #ifdef HAVE_POSIX_SIGNALS
19458 sigfunc *
19459 set_signal_handler(sig, handler)
19460 int sig;
19461 sigfunc *handler;
19463 struct sigaction act, oact;
19464 act.sa_handler = handler;
19465 act.sa_flags = 0;
19466 sigemptyset (&act.sa_mask);
19467 sigemptyset (&oact.sa_mask);
19468 sigaction (sig, &act, &oact);
19469 return (oact.sa_handler);
19471 #else
19472 #define set_signal_handler(s, h) signal(s, h)
19473 #endif
19475 RETSIGTYPE
19476 sigint(s)
19477 int s;
19479 nsigint++;
19483 main()
19485 nsigint = 0;
19486 set_signal_handler(SIGINT, sigint);
19487 kill((int)getpid(), SIGINT);
19488 kill((int)getpid(), SIGINT);
19489 exit(nsigint != 2);
19492 _ACEOF
19493 if ac_fn_c_try_run "$LINENO"; then :
19494 bush_cv_must_reinstall_sighandlers=no
19495 else
19496 bush_cv_must_reinstall_sighandlers=yes
19498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19499 conftest.$ac_objext conftest.beam conftest.$ac_ext
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_must_reinstall_sighandlers" >&5
19505 $as_echo "$bush_cv_must_reinstall_sighandlers" >&6; }
19506 if test $bush_cv_must_reinstall_sighandlers = yes; then
19507 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
19513 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
19514 if ${bush_cv_job_control_missing+:} false; then :
19515 $as_echo_n "(cached) " >&6
19516 else
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19520 #include <sys/types.h>
19521 #ifdef HAVE_SYS_WAIT_H
19522 #include <sys/wait.h>
19523 #endif
19524 #ifdef HAVE_UNISTD_H
19525 #include <unistd.h>
19526 #endif
19527 #include <signal.h>
19529 /* add more tests in here as appropriate */
19531 /* signal type */
19532 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
19533 #error
19534 #endif
19536 /* signals and tty control. */
19537 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
19538 #error
19539 #endif
19541 /* process control */
19542 #if !defined (WNOHANG) || !defined (WUNTRACED)
19543 #error
19544 #endif
19546 /* Posix systems have tcgetpgrp and waitpid. */
19547 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
19548 #error
19549 #endif
19551 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
19552 #error
19553 #endif
19555 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
19556 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
19557 #error
19558 #endif
19562 main ()
19566 return 0;
19568 _ACEOF
19569 if ac_fn_c_try_compile "$LINENO"; then :
19570 bush_cv_job_control_missing=present
19571 else
19572 bush_cv_job_control_missing=missing
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_job_control_missing" >&5
19579 $as_echo "$bush_cv_job_control_missing" >&6; }
19580 if test $bush_cv_job_control_missing = missing; then
19581 $as_echo "#define JOB_CONTROL_MISSING 1" >>confdefs.h
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
19586 $as_echo_n "checking for presence of named pipes... " >&6; }
19587 if ${bush_cv_sys_named_pipes+:} false; then :
19588 $as_echo_n "(cached) " >&6
19589 else
19590 if test "$cross_compiling" = yes; then :
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
19592 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
19593 bush_cv_sys_named_pipes=missing
19595 else
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19599 #include <sys/types.h>
19600 #include <sys/stat.h>
19601 #ifdef HAVE_UNISTD_H
19602 #include <unistd.h>
19603 #endif
19604 #include <stdio.h>
19605 #include <stdlib.h>
19607 /* Add more tests in here as appropriate. */
19609 main()
19611 int fd, err;
19613 #if defined (HAVE_MKFIFO)
19614 exit (0);
19615 #endif
19617 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
19618 exit (1);
19619 #endif
19621 #if defined (NeXT)
19622 exit (1);
19623 #endif
19624 err = mkdir("bush-aclocal", 0700);
19625 if (err < 0) {
19626 perror ("mkdir");
19627 exit(1);
19629 fd = mknod ("bush-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
19630 if (fd == -1) {
19631 rmdir ("bush-aclocal");
19632 exit (1);
19634 close(fd);
19635 unlink ("bush-aclocal/sh-np-autoconf");
19636 rmdir ("bush-aclocal");
19637 exit(0);
19639 _ACEOF
19640 if ac_fn_c_try_run "$LINENO"; then :
19641 bush_cv_sys_named_pipes=present
19642 else
19643 bush_cv_sys_named_pipes=missing
19645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19646 conftest.$ac_objext conftest.beam conftest.$ac_ext
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_sys_named_pipes" >&5
19652 $as_echo "$bush_cv_sys_named_pipes" >&6; }
19653 if test $bush_cv_sys_named_pipes = missing; then
19654 $as_echo "#define NAMED_PIPES_MISSING 1" >>confdefs.h
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
19660 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
19661 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <sys/types.h>
19667 #include <termios.h>
19668 #ifdef TIOCGWINSZ
19670 #endif
19672 _ACEOF
19673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19674 $EGREP "yes" >/dev/null 2>&1; then :
19675 ac_cv_sys_tiocgwinsz_in_termios_h=yes
19676 else
19677 ac_cv_sys_tiocgwinsz_in_termios_h=no
19679 rm -f conftest*
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
19683 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
19685 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
19687 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
19688 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
19689 $as_echo_n "(cached) " >&6
19690 else
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19693 #include <sys/types.h>
19694 #include <sys/ioctl.h>
19695 #ifdef TIOCGWINSZ
19697 #endif
19699 _ACEOF
19700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19701 $EGREP "yes" >/dev/null 2>&1; then :
19702 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
19703 else
19704 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
19706 rm -f conftest*
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
19710 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
19712 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
19714 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
19720 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
19721 if ${bush_cv_tiocstat_in_ioctl+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19725 /* end confdefs.h. */
19726 #include <sys/types.h>
19727 #include <sys/ioctl.h>
19729 main ()
19731 int x = TIOCSTAT;
19733 return 0;
19735 _ACEOF
19736 if ac_fn_c_try_compile "$LINENO"; then :
19737 bush_cv_tiocstat_in_ioctl=yes
19738 else
19739 bush_cv_tiocstat_in_ioctl=no
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_tiocstat_in_ioctl" >&5
19745 $as_echo "$bush_cv_tiocstat_in_ioctl" >&6; }
19746 if test $bush_cv_tiocstat_in_ioctl = yes; then
19747 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
19752 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
19753 if ${bush_cv_fionread_in_ioctl+:} false; then :
19754 $as_echo_n "(cached) " >&6
19755 else
19756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h. */
19758 #include <sys/types.h>
19759 #include <sys/ioctl.h>
19761 main ()
19763 int x = FIONREAD;
19765 return 0;
19767 _ACEOF
19768 if ac_fn_c_try_compile "$LINENO"; then :
19769 bush_cv_fionread_in_ioctl=yes
19770 else
19771 bush_cv_fionread_in_ioctl=no
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_fionread_in_ioctl" >&5
19777 $as_echo "$bush_cv_fionread_in_ioctl" >&6; }
19778 if test $bush_cv_fionread_in_ioctl = yes; then
19779 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
19786 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
19787 if ${bush_cv_wcontinued_broken+:} false; then :
19788 $as_echo_n "(cached) " >&6
19789 else
19790 if test "$cross_compiling" = yes; then :
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
19792 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
19793 bush_cv_wcontinued_broken=no
19795 else
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h. */
19799 #include <sys/types.h>
19800 #include <sys/wait.h>
19801 #include <unistd.h>
19802 #include <errno.h>
19803 #include <stdlib.h>
19805 #ifndef errno
19806 extern int errno;
19807 #endif
19809 main()
19811 int x;
19813 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
19814 if (x == -1 && errno == EINVAL)
19815 exit (1);
19816 else
19817 exit (0);
19820 _ACEOF
19821 if ac_fn_c_try_run "$LINENO"; then :
19822 bush_cv_wcontinued_broken=no
19823 else
19824 bush_cv_wcontinued_broken=yes
19826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19827 conftest.$ac_objext conftest.beam conftest.$ac_ext
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_wcontinued_broken" >&5
19833 $as_echo "$bush_cv_wcontinued_broken" >&6; }
19834 if test $bush_cv_wcontinued_broken = yes; then
19835 $as_echo "#define WCONTINUED_BROKEN 1" >>confdefs.h
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
19841 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
19842 if ${bush_cv_speed_t_in_sys_types+:} false; then :
19843 $as_echo_n "(cached) " >&6
19844 else
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19847 #include <sys/types.h>
19849 main ()
19851 speed_t x;
19853 return 0;
19855 _ACEOF
19856 if ac_fn_c_try_compile "$LINENO"; then :
19857 bush_cv_speed_t_in_sys_types=yes
19858 else
19859 bush_cv_speed_t_in_sys_types=no
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_speed_t_in_sys_types" >&5
19865 $as_echo "$bush_cv_speed_t_in_sys_types" >&6; }
19866 if test $bush_cv_speed_t_in_sys_types = yes; then
19867 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
19872 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
19873 if ${bush_cv_getpw_declared+:} false; then :
19874 $as_echo_n "(cached) " >&6
19875 else
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19879 #include <sys/types.h>
19880 #ifdef HAVE_UNISTD_H
19881 # include <unistd.h>
19882 #endif
19883 #include <pwd.h>
19885 _ACEOF
19886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19887 $EGREP "getpwuid" >/dev/null 2>&1; then :
19888 bush_cv_getpw_declared=yes
19889 else
19890 bush_cv_getpw_declared=no
19892 rm -f conftest*
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_getpw_declared" >&5
19897 $as_echo "$bush_cv_getpw_declared" >&6; }
19898 if test $bush_cv_getpw_declared = yes; then
19899 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
19904 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
19905 if ${bush_cv_unusable_rtsigs+:} false; then :
19906 $as_echo_n "(cached) " >&6
19907 else
19908 if test "$cross_compiling" = yes; then :
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
19910 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
19911 bush_cv_unusable_rtsigs=yes
19913 else
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19917 #include <sys/types.h>
19918 #include <signal.h>
19919 #include <stdlib.h>
19921 #ifndef NSIG
19922 # define NSIG 64
19923 #endif
19926 main ()
19928 int n_sigs = 2 * NSIG;
19929 #ifdef SIGRTMIN
19930 int rtmin = SIGRTMIN;
19931 #else
19932 int rtmin = 0;
19933 #endif
19935 exit(rtmin < n_sigs);
19937 _ACEOF
19938 if ac_fn_c_try_run "$LINENO"; then :
19939 bush_cv_unusable_rtsigs=yes
19940 else
19941 bush_cv_unusable_rtsigs=no
19943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19944 conftest.$ac_objext conftest.beam conftest.$ac_ext
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_unusable_rtsigs" >&5
19950 $as_echo "$bush_cv_unusable_rtsigs" >&6; }
19951 if test $bush_cv_unusable_rtsigs = yes; then
19952 $as_echo "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
19960 if test "$bush_cv_sys_siglist" = no && test "$bush_cv_under_sys_siglist" = no && test "$bush_cv_have_strsignal" = no; then
19961 SIGLIST_O=siglist.o
19962 else
19963 SIGLIST_O=
19968 case "$host_os" in
19969 hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
19970 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
19971 if ${bush_cv_kernel_rlimit+:} false; then :
19972 $as_echo_n "(cached) " >&6
19973 else
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19977 #include <sys/types.h>
19978 #include <sys/resource.h>
19981 main ()
19984 int f;
19985 f = RLIMIT_DATA;
19988 return 0;
19990 _ACEOF
19991 if ac_fn_c_try_compile "$LINENO"; then :
19992 bush_cv_kernel_rlimit=no
19993 else
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19997 #include <sys/types.h>
19998 #define _KERNEL
19999 #include <sys/resource.h>
20000 #undef _KERNEL
20003 main ()
20006 int f;
20007 f = RLIMIT_DATA;
20010 return 0;
20012 _ACEOF
20013 if ac_fn_c_try_compile "$LINENO"; then :
20014 bush_cv_kernel_rlimit=yes
20015 else
20016 bush_cv_kernel_rlimit=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_kernel_rlimit" >&5
20025 $as_echo "$bush_cv_kernel_rlimit" >&6; }
20026 if test $bush_cv_kernel_rlimit = yes; then
20027 $as_echo "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
20031 esac
20033 if test "$opt_readline" = yes; then
20034 case "$host_os" in
20035 aix*) prefer_curses=yes ;;
20036 esac
20038 if test "X$bush_cv_termcap_lib" = "X"; then
20039 _bush_needmsg=yes
20040 else
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
20042 $as_echo_n "checking which library has the termcap functions... " >&6; }
20043 _bush_needmsg=
20045 if ${bush_cv_termcap_lib+:} false; then :
20046 $as_echo_n "(cached) " >&6
20047 else
20048 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
20049 if test "x$ac_cv_func_tgetent" = xyes; then :
20050 bush_cv_termcap_lib=libc
20051 else
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20053 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20054 if ${ac_cv_lib_termcap_tgetent+:} false; then :
20055 $as_echo_n "(cached) " >&6
20056 else
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-ltermcap $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char tgetent ();
20070 main ()
20072 return tgetent ();
20074 return 0;
20076 _ACEOF
20077 if ac_fn_c_try_link "$LINENO"; then :
20078 ac_cv_lib_termcap_tgetent=yes
20079 else
20080 ac_cv_lib_termcap_tgetent=no
20082 rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
20087 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
20088 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
20089 bush_cv_termcap_lib=libtermcap
20090 else
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
20092 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
20093 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
20094 $as_echo_n "(cached) " >&6
20095 else
20096 ac_check_lib_save_LIBS=$LIBS
20097 LIBS="-ltinfo $LIBS"
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20101 /* Override any GCC internal prototype to avoid an error.
20102 Use char because int might match the return type of a GCC
20103 builtin and then its argument prototype would still apply. */
20104 #ifdef __cplusplus
20105 extern "C"
20106 #endif
20107 char tgetent ();
20109 main ()
20111 return tgetent ();
20113 return 0;
20115 _ACEOF
20116 if ac_fn_c_try_link "$LINENO"; then :
20117 ac_cv_lib_tinfo_tgetent=yes
20118 else
20119 ac_cv_lib_tinfo_tgetent=no
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LIBS=$ac_check_lib_save_LIBS
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
20126 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
20127 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
20128 bush_cv_termcap_lib=libtinfo
20129 else
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
20131 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
20132 if ${ac_cv_lib_curses_tgetent+:} false; then :
20133 $as_echo_n "(cached) " >&6
20134 else
20135 ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-lcurses $LIBS"
20137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20140 /* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20143 #ifdef __cplusplus
20144 extern "C"
20145 #endif
20146 char tgetent ();
20148 main ()
20150 return tgetent ();
20152 return 0;
20154 _ACEOF
20155 if ac_fn_c_try_link "$LINENO"; then :
20156 ac_cv_lib_curses_tgetent=yes
20157 else
20158 ac_cv_lib_curses_tgetent=no
20160 rm -f core conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
20165 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
20166 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
20167 bush_cv_termcap_lib=libcurses
20168 else
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20170 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20171 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
20172 $as_echo_n "(cached) " >&6
20173 else
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lncurses $LIBS"
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20179 /* Override any GCC internal prototype to avoid an error.
20180 Use char because int might match the return type of a GCC
20181 builtin and then its argument prototype would still apply. */
20182 #ifdef __cplusplus
20183 extern "C"
20184 #endif
20185 char tgetent ();
20187 main ()
20189 return tgetent ();
20191 return 0;
20193 _ACEOF
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 ac_cv_lib_ncurses_tgetent=yes
20196 else
20197 ac_cv_lib_ncurses_tgetent=no
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201 LIBS=$ac_check_lib_save_LIBS
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
20204 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
20205 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
20206 bush_cv_termcap_lib=libncurses
20207 else
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
20209 $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
20210 if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
20211 $as_echo_n "(cached) " >&6
20212 else
20213 ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lncursesw $LIBS"
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char tgetent ();
20226 main ()
20228 return tgetent ();
20230 return 0;
20232 _ACEOF
20233 if ac_fn_c_try_link "$LINENO"; then :
20234 ac_cv_lib_ncursesw_tgetent=yes
20235 else
20236 ac_cv_lib_ncursesw_tgetent=no
20238 rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
20243 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
20244 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
20245 bush_cv_termcap_lib=libncursesw
20246 else
20247 bush_cv_termcap_lib=gnutermcap
20262 if test "X$_bush_needmsg" = "Xyes"; then
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
20264 $as_echo_n "checking which library has the termcap functions... " >&6; }
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bush_cv_termcap_lib" >&5
20267 $as_echo "using $bush_cv_termcap_lib" >&6; }
20268 if test $bush_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
20269 LDFLAGS="$LDFLAGS -L./lib/termcap"
20270 TERMCAP_LIB="./lib/termcap/libtermcap.a"
20271 TERMCAP_DEP="./lib/termcap/libtermcap.a"
20272 elif test $bush_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
20273 TERMCAP_LIB=-ltermcap
20274 TERMCAP_DEP=
20275 elif test $bush_cv_termcap_lib = libtinfo; then
20276 TERMCAP_LIB=-ltinfo
20277 TERMCAP_DEP=
20278 elif test $bush_cv_termcap_lib = libncurses; then
20279 TERMCAP_LIB=-lncurses
20280 TERMCAP_DEP=
20281 elif test $bush_cv_termcap_lib = libc; then
20282 TERMCAP_LIB=
20283 TERMCAP_DEP=
20284 else
20285 TERMCAP_LIB=-lcurses
20286 TERMCAP_DEP=
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
20294 $as_echo_n "checking whether /dev/fd is available... " >&6; }
20295 if ${bush_cv_dev_fd+:} false; then :
20296 $as_echo_n "(cached) " >&6
20297 else
20298 bush_cv_dev_fd=""
20299 if test -d /dev/fd && (test -r /dev/fd/0 < /dev/null) ; then
20300 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
20301 if (test -r /dev/fd/3 3</dev/null) ; then
20302 bush_cv_dev_fd=standard
20303 else
20304 bush_cv_dev_fd=absent
20307 if test -z "$bush_cv_dev_fd" ; then
20308 if test -d /proc/self/fd && (test -r /proc/self/fd/0 < /dev/null) ; then
20309 bush_cv_dev_fd=whacky
20310 else
20311 bush_cv_dev_fd=absent
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dev_fd" >&5
20318 $as_echo "$bush_cv_dev_fd" >&6; }
20319 if test $bush_cv_dev_fd = "standard"; then
20320 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
20322 $as_echo "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
20324 elif test $bush_cv_dev_fd = "whacky"; then
20325 $as_echo "#define HAVE_DEV_FD 1" >>confdefs.h
20327 $as_echo "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
20332 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
20333 if ${bush_cv_dev_stdin+:} false; then :
20334 $as_echo_n "(cached) " >&6
20335 else
20336 if (test -r /dev/stdin < /dev/null) ; then
20337 bush_cv_dev_stdin=present
20338 else
20339 bush_cv_dev_stdin=absent
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_dev_stdin" >&5
20345 $as_echo "$bush_cv_dev_stdin" >&6; }
20346 if test $bush_cv_dev_stdin = "present"; then
20347 $as_echo "#define HAVE_DEV_STDIN 1" >>confdefs.h
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
20352 $as_echo_n "checking for default mail directory... " >&6; }
20353 if ${bush_cv_mail_dir+:} false; then :
20354 $as_echo_n "(cached) " >&6
20355 else
20356 if test -d /var/mail; then
20357 bush_cv_mail_dir=/var/mail
20358 elif test -d /var/spool/mail; then
20359 bush_cv_mail_dir=/var/spool/mail
20360 elif test -d /usr/mail; then
20361 bush_cv_mail_dir=/usr/mail
20362 elif test -d /usr/spool/mail; then
20363 bush_cv_mail_dir=/usr/spool/mail
20364 else
20365 bush_cv_mail_dir=unknown
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bush_cv_mail_dir" >&5
20371 $as_echo "$bush_cv_mail_dir" >&6; }
20372 cat >>confdefs.h <<_ACEOF
20373 #define DEFAULT_MAIL_DIRECTORY "$bush_cv_mail_dir"
20374 _ACEOF
20378 if test "$bush_cv_job_control_missing" = missing; then
20379 opt_job_control=no
20382 if test "$opt_job_control" = yes; then
20383 $as_echo "#define JOB_CONTROL 1" >>confdefs.h
20385 JOBS_O=jobs.o
20386 else
20387 JOBS_O=nojobs.o
20393 LOCAL_DEFS=-DSHELL
20396 case "${host_os}" in
20397 sysv4.2*) $as_echo "#define SVR4_2 1" >>confdefs.h
20399 $as_echo "#define SVR4 1" >>confdefs.h
20401 sysv4*) $as_echo "#define SVR4 1" >>confdefs.h
20403 sysv5*) $as_echo "#define SVR5 1" >>confdefs.h
20405 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
20406 hpux*) LOCAL_CFLAGS="-DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
20407 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
20408 isc*) LOCAL_CFLAGS=-Disc386 ;;
20409 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
20410 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
20411 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
20412 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
20413 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
20414 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
20415 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
20416 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
20417 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
20418 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
20419 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
20420 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
20421 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
20422 case "`uname -r`" in
20423 1.*|2.[0123]*) : ;;
20424 *) $as_echo "#define PGRP_PIPE 1" >>confdefs.h
20426 esac ;;
20427 netbsd*|openbsd*) LOCAL_CFLAGS="-DDEV_FD_STAT_BROKEN" ;;
20428 freebsd*) LOCAL_CFLAGS='-DHEREDOC_PIPESIZE=4096' ;;
20429 *qnx[67]*) LOCAL_LIBS="-lncurses" ;;
20430 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
20431 powerux*) LOCAL_LIBS="-lgen" ;;
20432 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
20433 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
20434 *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;;
20435 esac
20437 case "${host_os}-${CC}" in
20438 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
20439 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
20440 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
20441 bsdi5*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
20442 hpux11*-gcc*) LOCAL_LDFLAGS="-Wl,-E" ;; # allow dynamic loading
20443 esac
20445 case "${host_os}" in
20446 freebsd[3-9]*)
20447 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
20448 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
20449 fi ;;
20450 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
20451 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
20452 esac
20454 case "$host_cpu" in
20455 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
20456 esac
20458 case "$host_cpu-$host_os" in
20459 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
20460 esac
20462 case "$host_cpu-$host_vendor-$host_os" in
20463 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
20464 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
20465 esac
20467 # turn off paren warnings in gcc
20468 CFLAGS="$CFLAGS ${STYLE_CFLAGS}"
20471 # Shared object configuration section. These values are generated by
20472 # ${srcdir}/support/shobj-conf
20474 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
20475 then
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
20477 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
20478 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
20487 $as_echo "$SHOBJ_STATUS" >&6; }
20488 else
20489 SHOBJ_STATUS=unsupported
20493 # try to create a directory tree if the source is elsewhere
20494 # this should be packaged into a script accessible via ${srcdir}/support
20495 case "$srcdir" in
20496 .) ;;
20497 *) for d in doc tests support lib examples; do # dirs
20498 test -d $d || mkdir $d
20499 done
20500 for ld in readline glob tilde malloc sh termcap; do # libdirs
20501 test -d lib/$ld || mkdir lib/$ld
20502 done
20503 test -d examples/loadables || mkdir examples/loadables # loadable builtins
20504 test -d examples/loadables/perl || mkdir examples/loadables/perl
20506 esac
20508 BUILD_DIR=`pwd`
20509 case "$BUILD_DIR" in
20510 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
20511 *) ;;
20512 esac
20514 if test -z "$localedir"; then
20515 localedir='${datarootdir}/locale'
20517 if test -z "$datarootdir"; then
20518 datarootdir='${prefix}/share'
20526 # Some versions of autoconf don't substitute these automatically
20530 # directory where we install dynamically loadable builtins
20531 if test -z "$loadablesdir"; then
20532 loadablesdir='${libdir}/bush'
20535 if test -z "$headersdir"; then
20536 headersdir='$(includedir)/$(PACKAGE_NAME)'
20558 #AC_SUBST(ALLOCA_SOURCE)
20559 #AC_SUBST(ALLOCA_OBJECT)
20561 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/umdoc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/Makefile.inc examples/loadables/perl/Makefile support/bush.pc support/bushbug.sh"
20563 ac_config_commands="$ac_config_commands default"
20565 cat >confcache <<\_ACEOF
20566 # This file is a shell script that caches the results of configure
20567 # tests run on this system so they can be shared between configure
20568 # scripts and configure runs, see configure's option --config-cache.
20569 # It is not useful on other systems. If it contains results you don't
20570 # want to keep, you may remove or edit it.
20572 # config.status only pays attention to the cache file if you give it
20573 # the --recheck option to rerun configure.
20575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20577 # following values.
20579 _ACEOF
20581 # The following way of writing the cache mishandles newlines in values,
20582 # but we know of no workaround that is simple, portable, and efficient.
20583 # So, we kill variables containing newlines.
20584 # Ultrix sh set writes to stderr and can't be redirected directly,
20585 # and sets the high bit in the cache file unless we assign to the vars.
20587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20588 eval ac_val=\$$ac_var
20589 case $ac_val in #(
20590 *${as_nl}*)
20591 case $ac_var in #(
20592 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20593 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20594 esac
20595 case $ac_var in #(
20596 _ | IFS | as_nl) ;; #(
20597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20598 *) { eval $ac_var=; unset $ac_var;} ;;
20599 esac ;;
20600 esac
20601 done
20603 (set) 2>&1 |
20604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20605 *${as_nl}ac_space=\ *)
20606 # `set' does not quote correctly, so add quotes: double-quote
20607 # substitution turns \\\\ into \\, and sed turns \\ into \.
20608 sed -n \
20609 "s/'/'\\\\''/g;
20610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20611 ;; #(
20613 # `set' quotes correctly as required by POSIX, so do not add quotes.
20614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20616 esac |
20617 sort
20619 sed '
20620 /^ac_cv_env_/b end
20621 t clear
20622 :clear
20623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20624 t end
20625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20626 :end' >>confcache
20627 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20628 if test -w "$cache_file"; then
20629 if test "x$cache_file" != "x/dev/null"; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20631 $as_echo "$as_me: updating cache $cache_file" >&6;}
20632 if test ! -f "$cache_file" || test -h "$cache_file"; then
20633 cat confcache >"$cache_file"
20634 else
20635 case $cache_file in #(
20636 */* | ?:*)
20637 mv -f confcache "$cache_file"$$ &&
20638 mv -f "$cache_file"$$ "$cache_file" ;; #(
20640 mv -f confcache "$cache_file" ;;
20641 esac
20644 else
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20646 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20649 rm -f confcache
20651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20652 # Let make expand exec_prefix.
20653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20655 DEFS=-DHAVE_CONFIG_H
20657 ac_libobjs=
20658 ac_ltlibobjs=
20660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20661 # 1. Remove the extension, and $U if already installed.
20662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20665 # will be set to the directory where LIBOBJS objects are built.
20666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20668 done
20669 LIBOBJS=$ac_libobjs
20671 LTLIBOBJS=$ac_ltlibobjs
20676 : "${CONFIG_STATUS=./config.status}"
20677 ac_write_fail=0
20678 ac_clean_files_save=$ac_clean_files
20679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20682 as_write_fail=0
20683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20684 #! $SHELL
20685 # Generated by $as_me.
20686 # Run this file to recreate the current configuration.
20687 # Compiler output produced by configure, useful for debugging
20688 # configure, is in config.log if it exists.
20690 debug=false
20691 ac_cs_recheck=false
20692 ac_cs_silent=false
20694 SHELL=\${CONFIG_SHELL-$SHELL}
20695 export SHELL
20696 _ASEOF
20697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20698 ## -------------------- ##
20699 ## M4sh Initialization. ##
20700 ## -------------------- ##
20702 # Be more Bourne compatible
20703 DUALCASE=1; export DUALCASE # for MKS sh
20704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20705 emulate sh
20706 NULLCMD=:
20707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20708 # is contrary to our usage. Disable this feature.
20709 alias -g '${1+"$@"}'='"$@"'
20710 setopt NO_GLOB_SUBST
20711 else
20712 case `(set -o) 2>/dev/null` in #(
20713 *posix*) :
20714 set -o posix ;; #(
20715 *) :
20717 esac
20721 as_nl='
20723 export as_nl
20724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20728 # Prefer a ksh shell builtin over an external printf program on Solaris,
20729 # but without wasting forks for bash or zsh.
20730 if test -z "$BASH_VERSION$ZSH_VERSION" \
20731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20732 as_echo='print -r --'
20733 as_echo_n='print -rn --'
20734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20735 as_echo='printf %s\n'
20736 as_echo_n='printf %s'
20737 else
20738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20740 as_echo_n='/usr/ucb/echo -n'
20741 else
20742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20743 as_echo_n_body='eval
20744 arg=$1;
20745 case $arg in #(
20746 *"$as_nl"*)
20747 expr "X$arg" : "X\\(.*\\)$as_nl";
20748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20749 esac;
20750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20752 export as_echo_n_body
20753 as_echo_n='sh -c $as_echo_n_body as_echo'
20755 export as_echo_body
20756 as_echo='sh -c $as_echo_body as_echo'
20759 # The user is always right.
20760 if test "${PATH_SEPARATOR+set}" != set; then
20761 PATH_SEPARATOR=:
20762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20764 PATH_SEPARATOR=';'
20769 # IFS
20770 # We need space, tab and new line, in precisely that order. Quoting is
20771 # there to prevent editors from complaining about space-tab.
20772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20773 # splitting by setting IFS to empty value.)
20774 IFS=" "" $as_nl"
20776 # Find who we are. Look in the path if we contain no directory separator.
20777 as_myself=
20778 case $0 in #((
20779 *[\\/]* ) as_myself=$0 ;;
20780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20781 for as_dir in $PATH
20783 IFS=$as_save_IFS
20784 test -z "$as_dir" && as_dir=.
20785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20786 done
20787 IFS=$as_save_IFS
20790 esac
20791 # We did not find ourselves, most probably we were run as `sh COMMAND'
20792 # in which case we are not to be found in the path.
20793 if test "x$as_myself" = x; then
20794 as_myself=$0
20796 if test ! -f "$as_myself"; then
20797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20798 exit 1
20801 # Unset variables that we do not need and which cause bugs (e.g. in
20802 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20803 # suppresses any "Segmentation fault" message there. '((' could
20804 # trigger a bug in pdksh 5.2.14.
20805 for as_var in BASH_ENV ENV MAIL MAILPATH
20806 do eval test x\${$as_var+set} = xset \
20807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20808 done
20809 PS1='$ '
20810 PS2='> '
20811 PS4='+ '
20813 # NLS nuisances.
20814 LC_ALL=C
20815 export LC_ALL
20816 LANGUAGE=C
20817 export LANGUAGE
20819 # CDPATH.
20820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20823 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20824 # ----------------------------------------
20825 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20826 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20827 # script with STATUS, using 1 if that was 0.
20828 as_fn_error ()
20830 as_status=$1; test $as_status -eq 0 && as_status=1
20831 if test "$4"; then
20832 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20835 $as_echo "$as_me: error: $2" >&2
20836 as_fn_exit $as_status
20837 } # as_fn_error
20840 # as_fn_set_status STATUS
20841 # -----------------------
20842 # Set $? to STATUS, without forking.
20843 as_fn_set_status ()
20845 return $1
20846 } # as_fn_set_status
20848 # as_fn_exit STATUS
20849 # -----------------
20850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20851 as_fn_exit ()
20853 set +e
20854 as_fn_set_status $1
20855 exit $1
20856 } # as_fn_exit
20858 # as_fn_unset VAR
20859 # ---------------
20860 # Portably unset VAR.
20861 as_fn_unset ()
20863 { eval $1=; unset $1;}
20865 as_unset=as_fn_unset
20866 # as_fn_append VAR VALUE
20867 # ----------------------
20868 # Append the text in VALUE to the end of the definition contained in VAR. Take
20869 # advantage of any shell optimizations that allow amortized linear growth over
20870 # repeated appends, instead of the typical quadratic growth present in naive
20871 # implementations.
20872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20873 eval 'as_fn_append ()
20875 eval $1+=\$2
20877 else
20878 as_fn_append ()
20880 eval $1=\$$1\$2
20882 fi # as_fn_append
20884 # as_fn_arith ARG...
20885 # ------------------
20886 # Perform arithmetic evaluation on the ARGs, and store the result in the
20887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20888 # must be portable across $(()) and expr.
20889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20890 eval 'as_fn_arith ()
20892 as_val=$(( $* ))
20894 else
20895 as_fn_arith ()
20897 as_val=`expr "$@" || test $? -eq 1`
20899 fi # as_fn_arith
20902 if expr a : '\(a\)' >/dev/null 2>&1 &&
20903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20904 as_expr=expr
20905 else
20906 as_expr=false
20909 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20910 as_basename=basename
20911 else
20912 as_basename=false
20915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20916 as_dirname=dirname
20917 else
20918 as_dirname=false
20921 as_me=`$as_basename -- "$0" ||
20922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20923 X"$0" : 'X\(//\)$' \| \
20924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20925 $as_echo X/"$0" |
20926 sed '/^.*\/\([^/][^/]*\)\/*$/{
20927 s//\1/
20930 /^X\/\(\/\/\)$/{
20931 s//\1/
20934 /^X\/\(\/\).*/{
20935 s//\1/
20938 s/.*/./; q'`
20940 # Avoid depending upon Character Ranges.
20941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20944 as_cr_digits='0123456789'
20945 as_cr_alnum=$as_cr_Letters$as_cr_digits
20947 ECHO_C= ECHO_N= ECHO_T=
20948 case `echo -n x` in #(((((
20949 -n*)
20950 case `echo 'xy\c'` in
20951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20952 xy) ECHO_C='\c';;
20953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20954 ECHO_T=' ';;
20955 esac;;
20957 ECHO_N='-n';;
20958 esac
20960 rm -f conf$$ conf$$.exe conf$$.file
20961 if test -d conf$$.dir; then
20962 rm -f conf$$.dir/conf$$.file
20963 else
20964 rm -f conf$$.dir
20965 mkdir conf$$.dir 2>/dev/null
20967 if (echo >conf$$.file) 2>/dev/null; then
20968 if ln -s conf$$.file conf$$ 2>/dev/null; then
20969 as_ln_s='ln -s'
20970 # ... but there are two gotchas:
20971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20973 # In both cases, we have to default to `cp -pR'.
20974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20975 as_ln_s='cp -pR'
20976 elif ln conf$$.file conf$$ 2>/dev/null; then
20977 as_ln_s=ln
20978 else
20979 as_ln_s='cp -pR'
20981 else
20982 as_ln_s='cp -pR'
20984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20985 rmdir conf$$.dir 2>/dev/null
20988 # as_fn_mkdir_p
20989 # -------------
20990 # Create "$as_dir" as a directory, including parents if necessary.
20991 as_fn_mkdir_p ()
20994 case $as_dir in #(
20995 -*) as_dir=./$as_dir;;
20996 esac
20997 test -d "$as_dir" || eval $as_mkdir_p || {
20998 as_dirs=
20999 while :; do
21000 case $as_dir in #(
21001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21002 *) as_qdir=$as_dir;;
21003 esac
21004 as_dirs="'$as_qdir' $as_dirs"
21005 as_dir=`$as_dirname -- "$as_dir" ||
21006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007 X"$as_dir" : 'X\(//\)[^/]' \| \
21008 X"$as_dir" : 'X\(//\)$' \| \
21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21010 $as_echo X"$as_dir" |
21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21012 s//\1/
21015 /^X\(\/\/\)[^/].*/{
21016 s//\1/
21019 /^X\(\/\/\)$/{
21020 s//\1/
21023 /^X\(\/\).*/{
21024 s//\1/
21027 s/.*/./; q'`
21028 test -d "$as_dir" && break
21029 done
21030 test -z "$as_dirs" || eval "mkdir $as_dirs"
21031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21034 } # as_fn_mkdir_p
21035 if mkdir -p . 2>/dev/null; then
21036 as_mkdir_p='mkdir -p "$as_dir"'
21037 else
21038 test -d ./-p && rmdir ./-p
21039 as_mkdir_p=false
21043 # as_fn_executable_p FILE
21044 # -----------------------
21045 # Test if FILE is an executable regular file.
21046 as_fn_executable_p ()
21048 test -f "$1" && test -x "$1"
21049 } # as_fn_executable_p
21050 as_test_x='test -x'
21051 as_executable_p=as_fn_executable_p
21053 # Sed expression to map a string onto a valid CPP name.
21054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21056 # Sed expression to map a string onto a valid variable name.
21057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21060 exec 6>&1
21061 ## ----------------------------------- ##
21062 ## Main body of $CONFIG_STATUS script. ##
21063 ## ----------------------------------- ##
21064 _ASEOF
21065 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21068 # Save the log message, to keep $0 and so on meaningful, and to
21069 # report actual input values of CONFIG_FILES etc. instead of their
21070 # values after options handling.
21071 ac_log="
21072 This file was extended by bush $as_me 5.1-release, which was
21073 generated by GNU Autoconf 2.69. Invocation command line was
21075 CONFIG_FILES = $CONFIG_FILES
21076 CONFIG_HEADERS = $CONFIG_HEADERS
21077 CONFIG_LINKS = $CONFIG_LINKS
21078 CONFIG_COMMANDS = $CONFIG_COMMANDS
21079 $ $0 $@
21081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21084 _ACEOF
21086 case $ac_config_files in *"
21087 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21088 esac
21090 case $ac_config_headers in *"
21091 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21092 esac
21095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21096 # Files that config.status was made for.
21097 config_files="$ac_config_files"
21098 config_headers="$ac_config_headers"
21099 config_commands="$ac_config_commands"
21101 _ACEOF
21103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21104 ac_cs_usage="\
21105 \`$as_me' instantiates files and other configuration actions
21106 from templates according to the current configuration. Unless the files
21107 and actions are specified as TAGs, all are instantiated by default.
21109 Usage: $0 [OPTION]... [TAG]...
21111 -h, --help print this help, then exit
21112 -V, --version print version number and configuration settings, then exit
21113 --config print configuration, then exit
21114 -q, --quiet, --silent
21115 do not print progress messages
21116 -d, --debug don't remove temporary files
21117 --recheck update $as_me by reconfiguring in the same conditions
21118 --file=FILE[:TEMPLATE]
21119 instantiate the configuration file FILE
21120 --header=FILE[:TEMPLATE]
21121 instantiate the configuration header FILE
21123 Configuration files:
21124 $config_files
21126 Configuration headers:
21127 $config_headers
21129 Configuration commands:
21130 $config_commands
21132 Report bugs to <bug-bush@gnu.org>."
21134 _ACEOF
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21137 ac_cs_version="\\
21138 bush config.status 5.1-release
21139 configured by $0, generated by GNU Autoconf 2.69,
21140 with options \\"\$ac_cs_config\\"
21142 Copyright (C) 2012 Free Software Foundation, Inc.
21143 This config.status script is free software; the Free Software Foundation
21144 gives unlimited permission to copy, distribute and modify it."
21146 ac_pwd='$ac_pwd'
21147 srcdir='$srcdir'
21148 INSTALL='$INSTALL'
21149 MKDIR_P='$MKDIR_P'
21150 test -n "\$AWK" || AWK=awk
21151 _ACEOF
21153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21154 # The default lists apply if the user does not specify any file.
21155 ac_need_defaults=:
21156 while test $# != 0
21158 case $1 in
21159 --*=?*)
21160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21162 ac_shift=:
21164 --*=)
21165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21166 ac_optarg=
21167 ac_shift=:
21170 ac_option=$1
21171 ac_optarg=$2
21172 ac_shift=shift
21174 esac
21176 case $ac_option in
21177 # Handling of the options.
21178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21179 ac_cs_recheck=: ;;
21180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21181 $as_echo "$ac_cs_version"; exit ;;
21182 --config | --confi | --conf | --con | --co | --c )
21183 $as_echo "$ac_cs_config"; exit ;;
21184 --debug | --debu | --deb | --de | --d | -d )
21185 debug=: ;;
21186 --file | --fil | --fi | --f )
21187 $ac_shift
21188 case $ac_optarg in
21189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21190 '') as_fn_error $? "missing file argument" ;;
21191 esac
21192 as_fn_append CONFIG_FILES " '$ac_optarg'"
21193 ac_need_defaults=false;;
21194 --header | --heade | --head | --hea )
21195 $ac_shift
21196 case $ac_optarg in
21197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21198 esac
21199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21200 ac_need_defaults=false;;
21201 --he | --h)
21202 # Conflict between --help and --header
21203 as_fn_error $? "ambiguous option: \`$1'
21204 Try \`$0 --help' for more information.";;
21205 --help | --hel | -h )
21206 $as_echo "$ac_cs_usage"; exit ;;
21207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21209 ac_cs_silent=: ;;
21211 # This is an error.
21212 -*) as_fn_error $? "unrecognized option: \`$1'
21213 Try \`$0 --help' for more information." ;;
21215 *) as_fn_append ac_config_targets " $1"
21216 ac_need_defaults=false ;;
21218 esac
21219 shift
21220 done
21222 ac_configure_extra_args=
21224 if $ac_cs_silent; then
21225 exec 6>/dev/null
21226 ac_configure_extra_args="$ac_configure_extra_args --silent"
21229 _ACEOF
21230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21231 if \$ac_cs_recheck; then
21232 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21233 shift
21234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21235 CONFIG_SHELL='$SHELL'
21236 export CONFIG_SHELL
21237 exec "\$@"
21240 _ACEOF
21241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21242 exec 5>>config.log
21244 echo
21245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21246 ## Running $as_me. ##
21247 _ASBOX
21248 $as_echo "$ac_log"
21249 } >&5
21251 _ACEOF
21252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21254 # INIT-COMMANDS
21256 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21257 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
21258 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
21259 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21260 LINGUAS="${LINGUAS-%UNSET%}"
21263 _ACEOF
21265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21267 # Handling of arguments.
21268 for ac_config_target in $ac_config_targets
21270 case $ac_config_target in
21271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21272 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21274 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
21275 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
21276 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
21277 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
21278 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
21279 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
21280 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
21281 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
21282 "doc/umdoc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/umdoc/Makefile" ;;
21283 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
21284 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21285 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
21286 "examples/loadables/Makefile.inc") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
21287 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
21288 "support/bush.pc") CONFIG_FILES="$CONFIG_FILES support/bush.pc" ;;
21289 "support/bushbug.sh") CONFIG_FILES="$CONFIG_FILES support/bushbug.sh" ;;
21290 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21293 esac
21294 done
21297 # If the user did not use the arguments to specify the items to instantiate,
21298 # then the envvar interface is used. Set only those that are not.
21299 # We use the long form for the default assignment because of an extremely
21300 # bizarre bug on SunOS 4.1.3.
21301 if $ac_need_defaults; then
21302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21307 # Have a temporary directory for convenience. Make it in the build tree
21308 # simply because there is no reason against having it here, and in addition,
21309 # creating and moving files from /tmp can sometimes cause problems.
21310 # Hook for its removal unless debugging.
21311 # Note that there is a small window in which the directory will not be cleaned:
21312 # after its creation but before its name has been assigned to `$tmp'.
21313 $debug ||
21315 tmp= ac_tmp=
21316 trap 'exit_status=$?
21317 : "${ac_tmp:=$tmp}"
21318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21320 trap 'as_fn_exit 1' 1 2 13 15
21322 # Create a (secure) tmp directory for tmp files.
21325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21326 test -d "$tmp"
21327 } ||
21329 tmp=./conf$$-$RANDOM
21330 (umask 077 && mkdir "$tmp")
21331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21332 ac_tmp=$tmp
21334 # Set up the scripts for CONFIG_FILES section.
21335 # No need to generate them if there are no CONFIG_FILES.
21336 # This happens for instance with `./config.status config.h'.
21337 if test -n "$CONFIG_FILES"; then
21340 ac_cr=`echo X | tr X '\015'`
21341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21342 # But we know of no other shell where ac_cr would be empty at this
21343 # point, so we can use a bashism as a fallback.
21344 if test "x$ac_cr" = x; then
21345 eval ac_cr=\$\'\\r\'
21347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21349 ac_cs_awk_cr='\\r'
21350 else
21351 ac_cs_awk_cr=$ac_cr
21354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21355 _ACEOF
21359 echo "cat >conf$$subs.awk <<_ACEOF" &&
21360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21361 echo "_ACEOF"
21362 } >conf$$subs.sh ||
21363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21365 ac_delim='%!_!# '
21366 for ac_last_try in false false false false false :; do
21367 . ./conf$$subs.sh ||
21368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21371 if test $ac_delim_n = $ac_delim_num; then
21372 break
21373 elif $ac_last_try; then
21374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21375 else
21376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21378 done
21379 rm -f conf$$subs.sh
21381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21383 _ACEOF
21384 sed -n '
21386 s/^/S["/; s/!.*/"]=/
21389 s/^[^!]*!//
21390 :repl
21391 t repl
21392 s/'"$ac_delim"'$//
21393 t delim
21396 s/\(.\{148\}\)..*/\1/
21397 t more1
21398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21401 b repl
21402 :more1
21403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21406 s/.\{148\}//
21407 t nl
21408 :delim
21410 s/\(.\{148\}\)..*/\1/
21411 t more2
21412 s/["\\]/\\&/g; s/^/"/; s/$/"/
21415 :more2
21416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21419 s/.\{148\}//
21420 t delim
21421 ' <conf$$subs.awk | sed '
21422 /^[^""]/{
21424 s/\n//
21426 ' >>$CONFIG_STATUS || ac_write_fail=1
21427 rm -f conf$$subs.awk
21428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21429 _ACAWK
21430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21431 for (key in S) S_is_set[key] = 1
21432 FS = "\a"
21436 line = $ 0
21437 nfields = split(line, field, "@")
21438 substed = 0
21439 len = length(field[1])
21440 for (i = 2; i < nfields; i++) {
21441 key = field[i]
21442 keylen = length(key)
21443 if (S_is_set[key]) {
21444 value = S[key]
21445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21446 len += length(value) + length(field[++i])
21447 substed = 1
21448 } else
21449 len += 1 + keylen
21452 print line
21455 _ACAWK
21456 _ACEOF
21457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21460 else
21462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21464 _ACEOF
21466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21468 # trailing colons and then remove the whole line if VPATH becomes empty
21469 # (actually we leave an empty line to preserve line numbers).
21470 if test "x$srcdir" = x.; then
21471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21473 s///
21474 s/^/:/
21475 s/[ ]*$/:/
21476 s/:\$(srcdir):/:/g
21477 s/:\${srcdir}:/:/g
21478 s/:@srcdir@:/:/g
21479 s/^:*//
21480 s/:*$//
21482 s/\(=[ ]*\).*/\1/
21484 s/\n//
21485 s/^[^=]*=[ ]*$//
21489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21490 fi # test -n "$CONFIG_FILES"
21492 # Set up the scripts for CONFIG_HEADERS section.
21493 # No need to generate them if there are no CONFIG_HEADERS.
21494 # This happens for instance with `./config.status Makefile'.
21495 if test -n "$CONFIG_HEADERS"; then
21496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21497 BEGIN {
21498 _ACEOF
21500 # Transform confdefs.h into an awk script `defines.awk', embedded as
21501 # here-document in config.status, that substitutes the proper values into
21502 # config.h.in to produce config.h.
21504 # Create a delimiter string that does not exist in confdefs.h, to ease
21505 # handling of long lines.
21506 ac_delim='%!_!# '
21507 for ac_last_try in false false :; do
21508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21509 if test -z "$ac_tt"; then
21510 break
21511 elif $ac_last_try; then
21512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21513 else
21514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21516 done
21518 # For the awk script, D is an array of macro values keyed by name,
21519 # likewise P contains macro parameters if any. Preserve backslash
21520 # newline sequences.
21522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21523 sed -n '
21524 s/.\{148\}/&'"$ac_delim"'/g
21525 t rset
21526 :rset
21527 s/^[ ]*#[ ]*define[ ][ ]*/ /
21528 t def
21530 :def
21531 s/\\$//
21532 t bsnl
21533 s/["\\]/\\&/g
21534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21535 D["\1"]=" \3"/p
21536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21538 :bsnl
21539 s/["\\]/\\&/g
21540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21541 D["\1"]=" \3\\\\\\n"\\/p
21542 t cont
21543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21544 t cont
21546 :cont
21548 s/.\{148\}/&'"$ac_delim"'/g
21549 t clear
21550 :clear
21551 s/\\$//
21552 t bsnlc
21553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21555 :bsnlc
21556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21557 b cont
21558 ' <confdefs.h | sed '
21559 s/'"$ac_delim"'/"\\\
21560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21563 for (key in D) D_is_set[key] = 1
21564 FS = "\a"
21566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21567 line = \$ 0
21568 split(line, arg, " ")
21569 if (arg[1] == "#") {
21570 defundef = arg[2]
21571 mac1 = arg[3]
21572 } else {
21573 defundef = substr(arg[1], 2)
21574 mac1 = arg[2]
21576 split(mac1, mac2, "(") #)
21577 macro = mac2[1]
21578 prefix = substr(line, 1, index(line, defundef) - 1)
21579 if (D_is_set[macro]) {
21580 # Preserve the white space surrounding the "#".
21581 print prefix "define", macro P[macro] D[macro]
21582 next
21583 } else {
21584 # Replace #undef with comments. This is necessary, for example,
21585 # in the case of _POSIX_SOURCE, which is predefined and required
21586 # on some systems where configure will not decide to define it.
21587 if (defundef == "undef") {
21588 print "/*", prefix defundef, macro, "*/"
21589 next
21593 { print }
21594 _ACAWK
21595 _ACEOF
21596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21598 fi # test -n "$CONFIG_HEADERS"
21601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21602 shift
21603 for ac_tag
21605 case $ac_tag in
21606 :[FHLC]) ac_mode=$ac_tag; continue;;
21607 esac
21608 case $ac_mode$ac_tag in
21609 :[FHL]*:*);;
21610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21611 :[FH]-) ac_tag=-:-;;
21612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21613 esac
21614 ac_save_IFS=$IFS
21615 IFS=:
21616 set x $ac_tag
21617 IFS=$ac_save_IFS
21618 shift
21619 ac_file=$1
21620 shift
21622 case $ac_mode in
21623 :L) ac_source=$1;;
21624 :[FH])
21625 ac_file_inputs=
21626 for ac_f
21628 case $ac_f in
21629 -) ac_f="$ac_tmp/stdin";;
21630 *) # Look for the file first in the build tree, then in the source tree
21631 # (if the path is not absolute). The absolute path cannot be DOS-style,
21632 # because $ac_f cannot contain `:'.
21633 test -f "$ac_f" ||
21634 case $ac_f in
21635 [\\/$]*) false;;
21636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21637 esac ||
21638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21639 esac
21640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21641 as_fn_append ac_file_inputs " '$ac_f'"
21642 done
21644 # Let's still pretend it is `configure' which instantiates (i.e., don't
21645 # use $as_me), people would be surprised to read:
21646 # /* config.h. Generated by config.status. */
21647 configure_input='Generated from '`
21648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21649 `' by configure.'
21650 if test x"$ac_file" != x-; then
21651 configure_input="$ac_file. $configure_input"
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21653 $as_echo "$as_me: creating $ac_file" >&6;}
21655 # Neutralize special characters interpreted by sed in replacement strings.
21656 case $configure_input in #(
21657 *\&* | *\|* | *\\* )
21658 ac_sed_conf_input=`$as_echo "$configure_input" |
21659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21660 *) ac_sed_conf_input=$configure_input;;
21661 esac
21663 case $ac_tag in
21664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21666 esac
21668 esac
21670 ac_dir=`$as_dirname -- "$ac_file" ||
21671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672 X"$ac_file" : 'X\(//\)[^/]' \| \
21673 X"$ac_file" : 'X\(//\)$' \| \
21674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21675 $as_echo X"$ac_file" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677 s//\1/
21680 /^X\(\/\/\)[^/].*/{
21681 s//\1/
21684 /^X\(\/\/\)$/{
21685 s//\1/
21688 /^X\(\/\).*/{
21689 s//\1/
21692 s/.*/./; q'`
21693 as_dir="$ac_dir"; as_fn_mkdir_p
21694 ac_builddir=.
21696 case "$ac_dir" in
21697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21700 # A ".." for each directory in $ac_dir_suffix.
21701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21702 case $ac_top_builddir_sub in
21703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21705 esac ;;
21706 esac
21707 ac_abs_top_builddir=$ac_pwd
21708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21709 # for backward compatibility:
21710 ac_top_builddir=$ac_top_build_prefix
21712 case $srcdir in
21713 .) # We are building in place.
21714 ac_srcdir=.
21715 ac_top_srcdir=$ac_top_builddir_sub
21716 ac_abs_top_srcdir=$ac_pwd ;;
21717 [\\/]* | ?:[\\/]* ) # Absolute name.
21718 ac_srcdir=$srcdir$ac_dir_suffix;
21719 ac_top_srcdir=$srcdir
21720 ac_abs_top_srcdir=$srcdir ;;
21721 *) # Relative name.
21722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21723 ac_top_srcdir=$ac_top_build_prefix$srcdir
21724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21725 esac
21726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21729 case $ac_mode in
21732 # CONFIG_FILE
21735 case $INSTALL in
21736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21738 esac
21739 ac_MKDIR_P=$MKDIR_P
21740 case $MKDIR_P in
21741 [\\/$]* | ?:[\\/]* ) ;;
21742 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21743 esac
21744 _ACEOF
21746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21747 # If the template does not know about datarootdir, expand it.
21748 # FIXME: This hack should be removed a few years after 2.60.
21749 ac_datarootdir_hack=; ac_datarootdir_seen=
21750 ac_sed_dataroot='
21751 /datarootdir/ {
21755 /@datadir@/p
21756 /@docdir@/p
21757 /@infodir@/p
21758 /@localedir@/p
21759 /@mandir@/p'
21760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21761 *datarootdir*) ac_datarootdir_seen=yes;;
21762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21764 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21765 _ACEOF
21766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21767 ac_datarootdir_hack='
21768 s&@datadir@&$datadir&g
21769 s&@docdir@&$docdir&g
21770 s&@infodir@&$infodir&g
21771 s&@localedir@&$localedir&g
21772 s&@mandir@&$mandir&g
21773 s&\\\${datarootdir}&$datarootdir&g' ;;
21774 esac
21775 _ACEOF
21777 # Neutralize VPATH when `$srcdir' = `.'.
21778 # Shell code in configure.ac might set extrasub.
21779 # FIXME: do we really want to maintain this feature?
21780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21781 ac_sed_extra="$ac_vpsub
21782 $extrasub
21783 _ACEOF
21784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21787 s|@configure_input@|$ac_sed_conf_input|;t t
21788 s&@top_builddir@&$ac_top_builddir_sub&;t t
21789 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21790 s&@srcdir@&$ac_srcdir&;t t
21791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21792 s&@top_srcdir@&$ac_top_srcdir&;t t
21793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21794 s&@builddir@&$ac_builddir&;t t
21795 s&@abs_builddir@&$ac_abs_builddir&;t t
21796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21797 s&@INSTALL@&$ac_INSTALL&;t t
21798 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21799 $ac_datarootdir_hack
21801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21802 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21804 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21805 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21806 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21807 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21809 which seems to be undefined. Please make sure it is defined" >&5
21810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21811 which seems to be undefined. Please make sure it is defined" >&2;}
21813 rm -f "$ac_tmp/stdin"
21814 case $ac_file in
21815 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21816 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21817 esac \
21818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21822 # CONFIG_HEADER
21824 if test x"$ac_file" != x-; then
21826 $as_echo "/* $configure_input */" \
21827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21828 } >"$ac_tmp/config.h" \
21829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21830 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21832 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21833 else
21834 rm -f "$ac_file"
21835 mv "$ac_tmp/config.h" "$ac_file" \
21836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21838 else
21839 $as_echo "/* $configure_input */" \
21840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21841 || as_fn_error $? "could not create -" "$LINENO" 5
21845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21846 $as_echo "$as_me: executing $ac_file commands" >&6;}
21848 esac
21851 case $ac_file$ac_mode in
21852 "po-directories":C)
21853 for ac_file in $CONFIG_FILES; do
21854 # Support "outfile[:infile[:infile...]]"
21855 case "$ac_file" in
21856 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21857 esac
21858 # PO directories have a Makefile.in generated from Makefile.in.in.
21859 case "$ac_file" in */Makefile.in)
21860 # Adjust a relative srcdir.
21861 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21862 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21863 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21864 # In autoconf-2.13 it is called $ac_given_srcdir.
21865 # In autoconf-2.50 it is called $srcdir.
21866 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21867 case "$ac_given_srcdir" in
21868 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21869 /*) top_srcdir="$ac_given_srcdir" ;;
21870 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21871 esac
21872 # Treat a directory as a PO directory if and only if it has a
21873 # POTFILES.in file. This allows packages to have multiple PO
21874 # directories under different names or in different locations.
21875 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21876 rm -f "$ac_dir/POTFILES"
21877 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21878 gt_tab=`printf '\t'`
21879 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21880 POMAKEFILEDEPS="POTFILES.in"
21881 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21882 # on $ac_dir but don't depend on user-specified configuration
21883 # parameters.
21884 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21885 # The LINGUAS file contains the set of available languages.
21886 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21887 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21889 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21890 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21891 else
21892 # The set of available languages was given in configure.in.
21893 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
21895 # Compute POFILES
21896 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21897 # Compute UPDATEPOFILES
21898 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21899 # Compute DUMMYPOFILES
21900 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21901 # Compute GMOFILES
21902 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21903 case "$ac_given_srcdir" in
21904 .) srcdirpre= ;;
21905 *) srcdirpre='$(srcdir)/' ;;
21906 esac
21907 POFILES=
21908 UPDATEPOFILES=
21909 DUMMYPOFILES=
21910 GMOFILES=
21911 for lang in $ALL_LINGUAS; do
21912 POFILES="$POFILES $srcdirpre$lang.po"
21913 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21914 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21915 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21916 done
21917 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21918 # environment variable.
21919 INST_LINGUAS=
21920 if test -n "$ALL_LINGUAS"; then
21921 for presentlang in $ALL_LINGUAS; do
21922 useit=no
21923 if test "%UNSET%" != "$LINGUAS"; then
21924 desiredlanguages="$LINGUAS"
21925 else
21926 desiredlanguages="$ALL_LINGUAS"
21928 for desiredlang in $desiredlanguages; do
21929 # Use the presentlang catalog if desiredlang is
21930 # a. equal to presentlang, or
21931 # b. a variant of presentlang (because in this case,
21932 # presentlang can be used as a fallback for messages
21933 # which are not translated in the desiredlang catalog).
21934 case "$desiredlang" in
21935 "$presentlang"*) useit=yes;;
21936 esac
21937 done
21938 if test $useit = yes; then
21939 INST_LINGUAS="$INST_LINGUAS $presentlang"
21941 done
21943 CATALOGS=
21944 if test -n "$INST_LINGUAS"; then
21945 for lang in $INST_LINGUAS; do
21946 CATALOGS="$CATALOGS $lang.gmo"
21947 done
21949 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21950 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21951 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21952 if test -f "$f"; then
21953 case "$f" in
21954 *.orig | *.bak | *~) ;;
21955 *) cat "$f" >> "$ac_dir/Makefile" ;;
21956 esac
21958 done
21961 esac
21962 done ;;
21963 "default":C)
21964 # Makefile uses this timestamp file to record whether config.h is up to date.
21965 echo timestamp > stamp-h
21968 esac
21969 done # for ac_tag
21972 as_fn_exit 0
21973 _ACEOF
21974 ac_clean_files=$ac_clean_files_save
21976 test $ac_write_fail = 0 ||
21977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21980 # configure is writing to config.log, and then calls config.status.
21981 # config.status does its own redirection, appending to config.log.
21982 # Unfortunately, on DOS this fails, as config.log is still kept open
21983 # by configure, so config.status won't be able to write to it; its
21984 # output is simply discarded. So we exec the FD to /dev/null,
21985 # effectively closing config.log, so it can be properly (re)opened and
21986 # appended to by config.status. When coming back to configure, we
21987 # need to make the FD available again.
21988 if test "$no_create" != yes; then
21989 ac_cs_success=:
21990 ac_config_status_args=
21991 test "$silent" = yes &&
21992 ac_config_status_args="$ac_config_status_args --quiet"
21993 exec 5>/dev/null
21994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21995 exec 5>>config.log
21996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21997 # would make configure fail if this is the last instruction.
21998 $ac_cs_success || as_fn_exit 1
22000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}