]> git.ipfire.org Git - thirdparty/bash.git/blob - configure
Bash-5.2 patch 26: fix typo when specifying readline's custom color prefix
[thirdparty/bash.git] / configure
1 #! /bin/sh
2 # From configure.ac for Bash 5.2, version 5.046.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for bash 5.2-release.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 as_nop=:
22 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else $as_nop
31 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36 esac
37 fi
38
39
40
41 # Reset variables that may have inherited troublesome values from
42 # the environment.
43
44 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46 # side effect of setting IFS to empty, thus disabling word splitting.)
47 # Quoting is to prevent editors from complaining about space-tab.
48 as_nl='
49 '
50 export as_nl
51 IFS=" "" $as_nl"
52
53 PS1='$ '
54 PS2='> '
55 PS4='+ '
56
57 # Ensure predictable behavior from utilities with locale-dependent output.
58 LC_ALL=C
59 export LC_ALL
60 LANGUAGE=C
61 export LANGUAGE
62
63 # We cannot yet rely on "unset" to work, but we need these variables
64 # to be unset--not just set to an empty or harmless value--now, to
65 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
66 # also avoids known problems related to "unset" and subshell syntax
67 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
68 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
69 do eval test \${$as_var+y} \
70 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
71 done
72
73 # Ensure that fds 0, 1, and 2 are open.
74 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
75 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
76 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77
78 # The user is always right.
79 if ${PATH_SEPARATOR+false} :; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
84 }
85 fi
86
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 case $as_dir in #(((
97 '') as_dir=./ ;;
98 */) ;;
99 *) as_dir=$as_dir/ ;;
100 esac
101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
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
111 fi
112 if test ! -f "$as_myself"; then
113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117
118 # Use a proper internal environment variable to ensure we don't fall
119 # into an infinite loop, continuously re-executing ourselves.
120 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
121 _as_can_reexec=no; export _as_can_reexec;
122 # We cannot yet assume a decent shell, so we have to provide a
123 # neutralization value for shells without unset; and this also
124 # works around shells that cannot unset nonexistent variables.
125 # Preserve -v and -x to the replacement shell.
126 BASH_ENV=/dev/null
127 ENV=/dev/null
128 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 case $- in # ((((
130 *v*x* | *x*v* ) as_opts=-vx ;;
131 *v* ) as_opts=-v ;;
132 *x* ) as_opts=-x ;;
133 * ) as_opts= ;;
134 esac
135 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed `exec'.
138 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="as_nop=:
145 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 then :
147 emulate sh
148 NULLCMD=:
149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 # is contrary to our usage. Disable this feature.
151 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 setopt NO_GLOB_SUBST
153 else \$as_nop
154 case \`(set -o) 2>/dev/null\` in #(
155 *posix*) :
156 set -o posix ;; #(
157 *) :
158 ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else \$as_nop
177 exitcode=1; echo positional parameters were not saved.
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else $as_nop
192 as_have_required=no
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else $as_nop
198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else $as_nop
232 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='bash'
614 PACKAGE_TARNAME='bash'
615 PACKAGE_VERSION='5.2-release'
616 PACKAGE_STRING='bash 5.2-release'
617 PACKAGE_BUGREPORT='bug-bash@gnu.org'
618 PACKAGE_URL=''
619
620 ac_unique_file="shell.h"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 gt_needs=
654 ac_func_c_list=
655 gl_use_threads_default=
656 ac_subst_vars='LTLIBOBJS
657 LOCAL_DEFS
658 LOCAL_LDFLAGS
659 LOCAL_CFLAGS
660 LOCAL_LIBS
661 MALLOC_DEBUG
662 DEBUG
663 RELSTATUS
664 BASHVERS
665 headersdir
666 loadablesdir
667 BUILD_DIR
668 incdir
669 PROFILE_FLAGS
670 SHOBJ_STATUS
671 SHOBJ_LIBS
672 SHOBJ_XLDFLAGS
673 SHOBJ_LDFLAGS
674 SHOBJ_LD
675 SHOBJ_CFLAGS
676 SHOBJ_CC
677 JOBS_O
678 TERMCAP_DEP
679 TERMCAP_LIB
680 SIGLIST_O
681 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
682 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
683 TIME_H_DEFINES_STRUCT_TIMESPEC
684 LIBINTL_H
685 INTL_INC
686 INTL_DEP
687 LIBOBJS
688 POSUB
689 LTLIBINTL
690 LIBINTL
691 INTLLIBS
692 INTL_LIBTOOL_SUFFIX_PREFIX
693 INTLOBJS
694 GENCAT
695 INSTOBJEXT
696 DATADIRNAME
697 CATOBJEXT
698 USE_INCLUDED_LIBINTL
699 BUILD_INCLUDED_LIBINTL
700 WINDRES
701 WOE32
702 WOE32DLL
703 HAVE_NAMELESS_LOCALES
704 HAVE_WPRINTF
705 HAVE_NEWLOCALE
706 HAVE_SNPRINTF
707 HAVE_ASPRINTF
708 HAVE_POSIX_PRINTF
709 INTL_DEFAULT_VERBOSITY
710 ARFLAGS
711 INTL_MACOSX_LIBS
712 GLIBC21
713 GNULIB_OVERRIDES_WINT_T
714 INTLBISON
715 LTLIBICONV
716 LIBICONV
717 LTLIBMULTITHREAD
718 LIBMULTITHREAD
719 LTLIBTHREAD
720 LIBTHREAD
721 LIBPTH_PREFIX
722 LTLIBPTH
723 LIBPTH
724 PRI_MACROS_BROKEN
725 ALLOCA
726 HAVE_VISIBILITY
727 CFLAG_VISIBILITY
728 GLIBC2
729 XGETTEXT_EXTRA_OPTIONS
730 MSGMERGE
731 XGETTEXT_015
732 XGETTEXT
733 GMSGFMT_015
734 MSGFMT_015
735 GMSGFMT
736 MSGFMT
737 GETTEXT_MACRO_VERSION
738 USE_NLS
739 SED
740 MKDIR_P
741 SIZE
742 MAKE_SHELL
743 SET_MAKE
744 YFLAGS
745 YACC
746 RANLIB
747 AR
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 TILDE_LIB
752 HIST_LIBDIR
753 HISTORY_DEP
754 HISTORY_LIB
755 RL_INCLUDE
756 RL_INCLUDEDIR
757 RL_LIBDIR
758 READLINE_DEP
759 READLINE_LIB
760 RL_MINOR
761 RL_MAJOR
762 RL_VERSION
763 EGREP
764 GREP
765 CPP
766 LIBS_FOR_BUILD
767 STYLE_CFLAGS
768 BASE_CFLAGS_FOR_BUILD
769 STATIC_LD
770 SIGNAMES_O
771 SIGNAMES_H
772 CROSS_COMPILE
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
779 CC
780 HELPSTRINGS
781 HELPFILES_TARGET
782 HELPINSTALL
783 HELPDIRDEFINE
784 HELPDIR
785 ARRAY_O
786 MALLOC_DEP
787 MALLOC_LDFLAGS
788 MALLOC_LIBRARY
789 MALLOC_LIB
790 MALLOC_SRC
791 MALLOC_TARGET
792 TESTSCRIPT
793 CPPFLAGS_FOR_BUILD
794 LDFLAGS_FOR_BUILD
795 CFLAGS_FOR_BUILD
796 CC_FOR_BUILD
797 DEBUGGER_START_FILE
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 runstatedir
826 localstatedir
827 sharedstatedir
828 sysconfdir
829 datadir
830 datarootdir
831 libexecdir
832 sbindir
833 bindir
834 program_transform_name
835 prefix
836 exec_prefix
837 PACKAGE_URL
838 PACKAGE_BUGREPORT
839 PACKAGE_STRING
840 PACKAGE_VERSION
841 PACKAGE_TARNAME
842 PACKAGE_NAME
843 PATH_SEPARATOR
844 SHELL'
845 ac_subst_files=''
846 ac_user_opts='
847 enable_option_checking
848 with_afs
849 with_bash_malloc
850 with_curses
851 with_gnu_malloc
852 with_installed_readline
853 enable_minimal_config
854 enable_alias
855 enable_alt_array_implementation
856 enable_arith_for_command
857 enable_array_variables
858 enable_bang_history
859 enable_brace_expansion
860 enable_casemod_attributes
861 enable_casemod_expansions
862 enable_command_timing
863 enable_cond_command
864 enable_cond_regexp
865 enable_coprocesses
866 enable_debugger
867 enable_dev_fd_stat_broken
868 enable_direxpand_default
869 enable_directory_stack
870 enable_disabled_builtins
871 enable_dparen_arithmetic
872 enable_extended_glob
873 enable_extended_glob_default
874 enable_function_import
875 enable_glob_asciiranges_default
876 enable_help_builtin
877 enable_history
878 enable_job_control
879 enable_multibyte
880 enable_net_redirections
881 enable_process_substitution
882 enable_progcomp
883 enable_prompt_string_decoding
884 enable_readline
885 enable_restricted
886 enable_select
887 enable_separate_helpfiles
888 enable_single_help_strings
889 enable_strict_posix_default
890 enable_translatable_strings
891 enable_usg_echo_default
892 enable_xpg_echo_default
893 enable_mem_scramble
894 enable_profiling
895 enable_static_link
896 enable_largefile
897 enable_nls
898 enable_threads
899 with_gnu_ld
900 enable_rpath
901 with_libpth_prefix
902 with_libiconv_prefix
903 with_included_gettext
904 with_libintl_prefix
905 '
906 ac_precious_vars='build_alias
907 host_alias
908 target_alias
909 DEBUGGER_START_FILE
910 CC_FOR_BUILD
911 CFLAGS_FOR_BUILD
912 LDFLAGS_FOR_BUILD
913 CPPFLAGS_FOR_BUILD
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 YACC
921 YFLAGS'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
982 fi
983
984 case $ac_option in
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
988 esac
989
990 case $ac_dashdash$ac_option in
991 --)
992 ac_dashdash=yes ;;
993
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
998
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1003
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1010
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1013
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1018
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1025
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
1075 exec_prefix=$ac_optarg ;;
1076
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1080
1081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
1087
1088 -host | --host | --hos | --ho)
1089 ac_prev=host_alias ;;
1090 -host=* | --host=* | --hos=* | --ho=*)
1091 host_alias=$ac_optarg ;;
1092
1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1098
1099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
1104 includedir=$ac_optarg ;;
1105
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109 infodir=$ac_optarg ;;
1110
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114 libdir=$ac_optarg ;;
1115
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
1121 libexecdir=$ac_optarg ;;
1122
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133 localstatedir=$ac_optarg ;;
1134
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138 mandir=$ac_optarg ;;
1139
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1143
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145 | --no-cr | --no-c | -n)
1146 no_create=yes ;;
1147
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1151
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159 oldincludedir=$ac_optarg ;;
1160
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164 prefix=$ac_optarg ;;
1165
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171 program_prefix=$ac_optarg ;;
1172
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178 program_suffix=$ac_optarg ;;
1179
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
1195 program_transform_name=$ac_optarg ;;
1196
1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1201
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1206
1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1210
1211 -runstatedir | --runstatedir | --runstatedi | --runstated \
1212 | --runstate | --runstat | --runsta | --runst | --runs \
1213 | --run | --ru | --r)
1214 ac_prev=runstatedir ;;
1215 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1216 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1217 | --run=* | --ru=* | --r=*)
1218 runstatedir=$ac_optarg ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1264
1265 -with-* | --with-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: \`$ac_useropt'"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=\$ac_optarg ;;
1280
1281 -without-* | --without-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: \`$ac_useropt'"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1335 ;;
1336
1337 esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $? "missing argument to $ac_option"
1343 fi
1344
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1351 fi
1352
1353 # Check all directory arguments for consistency.
1354 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir runstatedir
1358 do
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 printf "%s\n" X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures bash 5.2-release to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1524 _ACEOF
1525
1526 cat <<\_ACEOF
1527
1528 System types:
1529 --build=BUILD configure for building on BUILD [guessed]
1530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 _ACEOF
1532 fi
1533
1534 if test -n "$ac_init_help"; then
1535 case $ac_init_help in
1536 short | recursive ) echo "Configuration of bash 5.2-release:";;
1537 esac
1538 cat <<\_ACEOF
1539
1540 Optional Features:
1541 --disable-option-checking ignore unrecognized --enable/--with options
1542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1544 --enable-minimal-config a minimal sh-like configuration
1545 --enable-alias enable shell aliases
1546 --enable-alt-array-implementation
1547 enable an alternate array implementation that
1548 optimizes speed at the cost of space
1549 --enable-arith-for-command
1550 enable arithmetic for command
1551 --enable-array-variables
1552 include shell array variables
1553 --enable-bang-history turn on csh-style history substitution
1554 --enable-brace-expansion
1555 include brace expansion
1556 --enable-casemod-attributes
1557 include case-modifying variable attributes
1558 --enable-casemod-expansions
1559 include case-modifying word expansions
1560 --enable-command-timing enable the time reserved word and command timing
1561 --enable-cond-command enable the conditional command
1562 --enable-cond-regexp enable extended regular expression matching in
1563 conditional commands
1564 --enable-coprocesses enable coprocess support and the coproc reserved
1565 word
1566 --enable-debugger enable support for bash debugger
1567 --enable-dev-fd-stat-broken
1568 enable this option if stat on /dev/fd/N and fstat on
1569 file descriptor N don't return the same results
1570 --enable-direxpand-default
1571 enable the direxpand shell option by default
1572 --enable-directory-stack
1573 enable builtins pushd/popd/dirs
1574 --enable-disabled-builtins
1575 allow disabled builtins to still be invoked
1576 --enable-dparen-arithmetic
1577 include ((...)) command
1578 --enable-extended-glob include ksh-style extended pattern matching
1579 --enable-extended-glob-default
1580 force extended pattern matching to be enabled by
1581 default
1582 --enable-function-import
1583 allow bash to import exported function definitions
1584 by default
1585 --enable-glob-asciiranges-default
1586 force bracket range expressions in pattern matching
1587 to use the C locale by default
1588 --enable-help-builtin include the help builtin
1589 --enable-history turn on command history
1590 --enable-job-control enable job control features
1591 --enable-multibyte enable multibyte characters if OS supports them
1592 --enable-net-redirections
1593 enable /dev/tcp/host/port redirection
1594 --enable-process-substitution
1595 enable process substitution
1596 --enable-progcomp enable programmable completion and the complete
1597 builtin
1598 --enable-prompt-string-decoding
1599 turn on escape character decoding in prompts
1600 --enable-readline turn on command line editing
1601 --enable-restricted enable a restricted shell
1602 --enable-select include select command
1603 --enable-separate-helpfiles
1604 use external files for help builtin documentation
1605 --enable-single-help-strings
1606 store help documentation as a single string to ease
1607 translation
1608 --enable-strict-posix-default
1609 configure bash to be posix-conformant by default
1610 --enable-translatable-strings
1611 include support for $"..." translatable strings
1612 --enable-usg-echo-default
1613 a synonym for --enable-xpg-echo-default
1614 --enable-xpg-echo-default
1615 make the echo builtin expand escape sequences by
1616 default
1617 --enable-mem-scramble scramble memory on calls to malloc and free
1618 --enable-profiling allow profiling with gprof
1619 --enable-static-link link bash statically, for use as a root shell
1620 --disable-largefile omit support for large files
1621 --disable-nls do not use Native Language Support
1622 --enable-threads={posix|solaris|pth|windows}
1623 specify multithreading API
1624 --disable-threads build without multithread safety
1625 --disable-rpath do not hardcode runtime library paths
1626
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-afs if you are running AFS
1631 --with-bash-malloc use the Bash version of malloc
1632 --with-curses use the curses library instead of the termcap
1633 library
1634 --with-gnu-malloc synonym for --with-bash-malloc
1635 --with-installed-readline
1636 use a version of the readline library that is
1637 already installed
1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1639 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1640 --without-libpth-prefix don't search for libpth in includedir and libdir
1641 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1642 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1643 --with-included-gettext use the GNU gettext library included here
1644 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1645 --without-libintl-prefix don't search for libintl in includedir and libdir
1646
1647 Some influential environment variables:
1648 DEBUGGER_START_FILE
1649 location of bash debugger initialization file
1650 CC_FOR_BUILD
1651 C compiler used when compiling binaries used only at build time
1652 CFLAGS_FOR_BUILD
1653 Compilation options (CFLAGS) used when compiling binaries used
1654 only at build time
1655 LDFLAGS_FOR_BUILD
1656 Linker options (LDFLAGS) used when compiling binaries used only
1657 at build time
1658 CPPFLAGS_FOR_BUILD
1659 C preprocessor options (CPPFLAGS) used when compiling binaries
1660 used only at build time
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1664 nonstandard directory <lib dir>
1665 LIBS libraries to pass to the linker, e.g. -l<library>
1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667 you have headers in a nonstandard directory <include dir>
1668 CPP C preprocessor
1669 YACC The `Yet Another Compiler Compiler' implementation to use.
1670 Defaults to the first program found out of: `bison -y', `byacc',
1671 `yacc'.
1672 YFLAGS The list of arguments that will be passed by default to $YACC.
1673 This script will default YFLAGS to the empty string to avoid a
1674 default value of `-d' given by some make applications.
1675
1676 Use these variables to override the choices made by `configure' or to help
1677 it to find libraries and programs with nonstandard names/locations.
1678
1679 Report bugs to <bug-bash@gnu.org>.
1680 _ACEOF
1681 ac_status=$?
1682 fi
1683
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 continue
1690 ac_builddir=.
1691
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 *)
1695 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1707
1708 case $srcdir in
1709 .) # We are building in place.
1710 ac_srcdir=.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1717 *) # Relative name.
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for configure.gnu first; this name is used for a wrapper for
1726 # Metaconfig's "Configure" on case-insensitive file systems.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1738 fi
1739
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1742 cat <<\_ACEOF
1743 bash configure 5.2-release
1744 generated by GNU Autoconf 2.71
1745
1746 Copyright (C) 2021 Free Software Foundation, Inc.
1747 This configure script is free software; the Free Software Foundation
1748 gives unlimited permission to copy, distribute and modify it.
1749 _ACEOF
1750 exit
1751 fi
1752
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1756
1757 # ac_fn_c_try_compile LINENO
1758 # --------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest.beam
1764 if { { ac_try="$ac_compile"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext
1783 then :
1784 ac_retval=0
1785 else $as_nop
1786 printf "%s\n" "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790 fi
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_compile
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1806 then :
1807 printf %s "(cached) " >&6
1808 else $as_nop
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"
1815 then :
1816 eval "$3=yes"
1817 else $as_nop
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 printf "%s\n" "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_header_compile
1828
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_cpp ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 printf "%s\n" "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1848 fi
1849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 }
1854 then :
1855 ac_retval=0
1856 else $as_nop
1857 printf "%s\n" "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861 fi
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1864
1865 } # ac_fn_c_try_cpp
1866
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_link ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 printf "%s\n" "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }
1896 then :
1897 ac_retval=0
1898 else $as_nop
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903 fi
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_link
1913
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 printf %s "checking for $2... " >&6; }
1922 if eval test \${$3+y}
1923 then :
1924 printf %s "(cached) " >&6
1925 else $as_nop
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1930 #define $2 innocuous_$2
1931
1932 /* System header to define __stub macros and hopefully few prototypes,
1933 which can conflict with char $2 (); below. */
1934
1935 #include <limits.h>
1936 #undef $2
1937
1938 /* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1941 #ifdef __cplusplus
1942 extern "C"
1943 #endif
1944 char $2 ();
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined __stub_$2 || defined __stub___$2
1949 choke me
1950 #endif
1951
1952 int
1953 main (void)
1954 {
1955 return $2 ();
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_link "$LINENO"
1961 then :
1962 eval "$3=yes"
1963 else $as_nop
1964 eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1967 conftest$ac_exeext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 printf "%s\n" "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_func
1975
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1979 # executables *can* be run.
1980 ac_fn_c_try_run ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 printf "%s\n" "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1991 ac_status=$?
1992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 printf "%s\n" "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2001 ac_status=$?
2002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }
2004 then :
2005 ac_retval=0
2006 else $as_nop
2007 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2008 printf "%s\n" "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_retval=$ac_status
2012 fi
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2016
2017 } # ac_fn_c_try_run
2018
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 printf %s "checking for $2... " >&6; }
2028 if eval test \${$3+y}
2029 then :
2030 printf %s "(cached) " >&6
2031 else $as_nop
2032 eval "$3=no"
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main (void)
2038 {
2039 if (sizeof ($2))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"
2046 then :
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 int
2051 main (void)
2052 {
2053 if (sizeof (($2)))
2054 return 0;
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"
2060 then :
2061
2062 else $as_nop
2063 eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 printf "%s\n" "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_type
2075
2076 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2077 # ------------------------------------------------------------------
2078 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2080 ac_fn_check_decl ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 as_decl_name=`echo $2|sed 's/ *(.*//'`
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 printf %s "checking whether $as_decl_name is declared... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088 printf %s "(cached) " >&6
2089 else $as_nop
2090 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091 eval ac_save_FLAGS=\$$6
2092 as_fn_append $6 " $5"
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 int
2097 main (void)
2098 {
2099 #ifndef $as_decl_name
2100 #ifdef __cplusplus
2101 (void) $as_decl_use;
2102 #else
2103 (void) $as_decl_name;
2104 #endif
2105 #endif
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"
2112 then :
2113 eval "$3=yes"
2114 else $as_nop
2115 eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2118 eval $6=\$ac_save_FLAGS
2119
2120 fi
2121 eval ac_res=\$$3
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 printf "%s\n" "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_check_decl
2127
2128 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129 # --------------------------------------------
2130 # Tries to find the compile-time value of EXPR in a program that includes
2131 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2132 # computed
2133 ac_fn_c_compute_int ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if test "$cross_compiling" = yes; then
2137 # Depending upon the size, compute the lo and hi bounds.
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 int
2142 main (void)
2143 {
2144 static int test_array [1 - 2 * !(($2) >= 0)];
2145 test_array [0] = 0;
2146 return test_array [0];
2147
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"
2153 then :
2154 ac_lo=0 ac_mid=0
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main (void)
2161 {
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0;
2164 return test_array [0];
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"
2171 then :
2172 ac_hi=$ac_mid; break
2173 else $as_nop
2174 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2175 if test $ac_lo -le $ac_mid; then
2176 ac_lo= ac_hi=
2177 break
2178 fi
2179 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2182 done
2183 else $as_nop
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $4
2187 int
2188 main (void)
2189 {
2190 static int test_array [1 - 2 * !(($2) < 0)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"
2199 then :
2200 ac_hi=-1 ac_mid=-1
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main (void)
2207 {
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209 test_array [0] = 0;
2210 return test_array [0];
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"
2217 then :
2218 ac_lo=$ac_mid; break
2219 else $as_nop
2220 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2221 if test $ac_mid -le $ac_hi; then
2222 ac_lo= ac_hi=
2223 break
2224 fi
2225 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2226 fi
2227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 done
2229 else $as_nop
2230 ac_lo= ac_hi=
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2235 # Binary search between lo and hi bounds.
2236 while test "x$ac_lo" != "x$ac_hi"; do
2237 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 int
2242 main (void)
2243 {
2244 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2245 test_array [0] = 0;
2246 return test_array [0];
2247
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"
2253 then :
2254 ac_hi=$ac_mid
2255 else $as_nop
2256 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 done
2260 case $ac_lo in #((
2261 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262 '') ac_retval=1 ;;
2263 esac
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 $4
2268 static long int longval (void) { return $2; }
2269 static unsigned long int ulongval (void) { return $2; }
2270 #include <stdio.h>
2271 #include <stdlib.h>
2272 int
2273 main (void)
2274 {
2275
2276 FILE *f = fopen ("conftest.val", "w");
2277 if (! f)
2278 return 1;
2279 if (($2) < 0)
2280 {
2281 long int i = longval ();
2282 if (i != ($2))
2283 return 1;
2284 fprintf (f, "%ld", i);
2285 }
2286 else
2287 {
2288 unsigned long int i = ulongval ();
2289 if (i != ($2))
2290 return 1;
2291 fprintf (f, "%lu", i);
2292 }
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_run "$LINENO"
2302 then :
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2304 else $as_nop
2305 ac_retval=1
2306 fi
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 rm -f conftest.val
2310
2311 fi
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 as_fn_set_status $ac_retval
2314
2315 } # ac_fn_c_compute_int
2316
2317 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2318 # ----------------------------------------------------
2319 # Tries to find if the field MEMBER exists in type AGGR, after including
2320 # INCLUDES, setting cache variable VAR accordingly.
2321 ac_fn_c_check_member ()
2322 {
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2325 printf %s "checking for $2.$3... " >&6; }
2326 if eval test \${$4+y}
2327 then :
2328 printf %s "(cached) " >&6
2329 else $as_nop
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 $5
2333 int
2334 main (void)
2335 {
2336 static $2 ac_aggr;
2337 if (ac_aggr.$3)
2338 return 0;
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"
2344 then :
2345 eval "$4=yes"
2346 else $as_nop
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 $5
2350 int
2351 main (void)
2352 {
2353 static $2 ac_aggr;
2354 if (sizeof ac_aggr.$3)
2355 return 0;
2356 ;
2357 return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"
2361 then :
2362 eval "$4=yes"
2363 else $as_nop
2364 eval "$4=no"
2365 fi
2366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 fi
2370 eval ac_res=\$$4
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 printf "%s\n" "$ac_res" >&6; }
2373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374
2375 } # ac_fn_c_check_member
2376 ac_configure_args_raw=
2377 for ac_arg
2378 do
2379 case $ac_arg in
2380 *\'*)
2381 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 esac
2383 as_fn_append ac_configure_args_raw " '$ac_arg'"
2384 done
2385
2386 case $ac_configure_args_raw in
2387 *$as_nl*)
2388 ac_safe_unquote= ;;
2389 *)
2390 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2391 ac_unsafe_a="$ac_unsafe_z#~"
2392 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2393 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2394 esac
2395
2396 cat >config.log <<_ACEOF
2397 This file contains any messages produced by compilers while
2398 running configure, to aid debugging if configure makes a mistake.
2399
2400 It was created by bash $as_me 5.2-release, which was
2401 generated by GNU Autoconf 2.71. Invocation command line was
2402
2403 $ $0$ac_configure_args_raw
2404
2405 _ACEOF
2406 exec 5>>config.log
2407 {
2408 cat <<_ASUNAME
2409 ## --------- ##
2410 ## Platform. ##
2411 ## --------- ##
2412
2413 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2418
2419 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2421
2422 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2423 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2424 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2426 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2427 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2428 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2429
2430 _ASUNAME
2431
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 case $as_dir in #(((
2437 '') as_dir=./ ;;
2438 */) ;;
2439 *) as_dir=$as_dir/ ;;
2440 esac
2441 printf "%s\n" "PATH: $as_dir"
2442 done
2443 IFS=$as_save_IFS
2444
2445 } >&5
2446
2447 cat >&5 <<_ACEOF
2448
2449
2450 ## ----------- ##
2451 ## Core tests. ##
2452 ## ----------- ##
2453
2454 _ACEOF
2455
2456
2457 # Keep a trace of the command line.
2458 # Strip out --no-create and --no-recursion so they do not pile up.
2459 # Strip out --silent because we don't want to record it for future runs.
2460 # Also quote any args containing shell meta-characters.
2461 # Make two passes to allow for proper duplicate-argument suppression.
2462 ac_configure_args=
2463 ac_configure_args0=
2464 ac_configure_args1=
2465 ac_must_keep_next=false
2466 for ac_pass in 1 2
2467 do
2468 for ac_arg
2469 do
2470 case $ac_arg in
2471 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2473 | -silent | --silent | --silen | --sile | --sil)
2474 continue ;;
2475 *\'*)
2476 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 esac
2478 case $ac_pass in
2479 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2480 2)
2481 as_fn_append ac_configure_args1 " '$ac_arg'"
2482 if test $ac_must_keep_next = true; then
2483 ac_must_keep_next=false # Got value, back to normal.
2484 else
2485 case $ac_arg in
2486 *=* | --config-cache | -C | -disable-* | --disable-* \
2487 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2488 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2489 | -with-* | --with-* | -without-* | --without-* | --x)
2490 case "$ac_configure_args0 " in
2491 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2492 esac
2493 ;;
2494 -* ) ac_must_keep_next=true ;;
2495 esac
2496 fi
2497 as_fn_append ac_configure_args " '$ac_arg'"
2498 ;;
2499 esac
2500 done
2501 done
2502 { ac_configure_args0=; unset ac_configure_args0;}
2503 { ac_configure_args1=; unset ac_configure_args1;}
2504
2505 # When interrupted or exit'd, cleanup temporary files, and complete
2506 # config.log. We remove comments because anyway the quotes in there
2507 # would cause problems or look ugly.
2508 # WARNING: Use '\'' to represent an apostrophe within the trap.
2509 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2510 trap 'exit_status=$?
2511 # Sanitize IFS.
2512 IFS=" "" $as_nl"
2513 # Save into config.log some information that might help in debugging.
2514 {
2515 echo
2516
2517 printf "%s\n" "## ---------------- ##
2518 ## Cache variables. ##
2519 ## ---------------- ##"
2520 echo
2521 # The following way of writing the cache mishandles newlines in values,
2522 (
2523 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2524 eval ac_val=\$$ac_var
2525 case $ac_val in #(
2526 *${as_nl}*)
2527 case $ac_var in #(
2528 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2529 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2530 esac
2531 case $ac_var in #(
2532 _ | IFS | as_nl) ;; #(
2533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2534 *) { eval $ac_var=; unset $ac_var;} ;;
2535 esac ;;
2536 esac
2537 done
2538 (set) 2>&1 |
2539 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2540 *${as_nl}ac_space=\ *)
2541 sed -n \
2542 "s/'\''/'\''\\\\'\'''\''/g;
2543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2544 ;; #(
2545 *)
2546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2547 ;;
2548 esac |
2549 sort
2550 )
2551 echo
2552
2553 printf "%s\n" "## ----------------- ##
2554 ## Output variables. ##
2555 ## ----------------- ##"
2556 echo
2557 for ac_var in $ac_subst_vars
2558 do
2559 eval ac_val=\$$ac_var
2560 case $ac_val in
2561 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562 esac
2563 printf "%s\n" "$ac_var='\''$ac_val'\''"
2564 done | sort
2565 echo
2566
2567 if test -n "$ac_subst_files"; then
2568 printf "%s\n" "## ------------------- ##
2569 ## File substitutions. ##
2570 ## ------------------- ##"
2571 echo
2572 for ac_var in $ac_subst_files
2573 do
2574 eval ac_val=\$$ac_var
2575 case $ac_val in
2576 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2577 esac
2578 printf "%s\n" "$ac_var='\''$ac_val'\''"
2579 done | sort
2580 echo
2581 fi
2582
2583 if test -s confdefs.h; then
2584 printf "%s\n" "## ----------- ##
2585 ## confdefs.h. ##
2586 ## ----------- ##"
2587 echo
2588 cat confdefs.h
2589 echo
2590 fi
2591 test "$ac_signal" != 0 &&
2592 printf "%s\n" "$as_me: caught signal $ac_signal"
2593 printf "%s\n" "$as_me: exit $exit_status"
2594 } >&5
2595 rm -f core *.core core.conftest.* &&
2596 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2597 exit $exit_status
2598 ' 0
2599 for ac_signal in 1 2 13 15; do
2600 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2601 done
2602 ac_signal=0
2603
2604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2605 rm -f -r conftest* confdefs.h
2606
2607 printf "%s\n" "/* confdefs.h */" > confdefs.h
2608
2609 # Predefined preprocessor variables.
2610
2611 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2612
2613 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2614
2615 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2616
2617 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2618
2619 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2620
2621 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2622
2623
2624 # Let the site file select an alternate cache file if it wants to.
2625 # Prefer an explicitly selected file to automatically selected ones.
2626 if test -n "$CONFIG_SITE"; then
2627 ac_site_files="$CONFIG_SITE"
2628 elif test "x$prefix" != xNONE; then
2629 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2630 else
2631 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2632 fi
2633
2634 for ac_site_file in $ac_site_files
2635 do
2636 case $ac_site_file in #(
2637 */*) :
2638 ;; #(
2639 *) :
2640 ac_site_file=./$ac_site_file ;;
2641 esac
2642 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2644 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2645 sed 's/^/| /' "$ac_site_file" >&5
2646 . "$ac_site_file" \
2647 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2649 as_fn_error $? "failed to load site script $ac_site_file
2650 See \`config.log' for more details" "$LINENO" 5; }
2651 fi
2652 done
2653
2654 if test -r "$cache_file"; then
2655 # Some versions of bash will fail to source /dev/null (special files
2656 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2657 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2659 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2660 case $cache_file in
2661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2662 *) . "./$cache_file";;
2663 esac
2664 fi
2665 else
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2667 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2668 >$cache_file
2669 fi
2670
2671 # Test code for whether the C compiler supports C89 (global declarations)
2672 ac_c_conftest_c89_globals='
2673 /* Does the compiler advertise C89 conformance?
2674 Do not test the value of __STDC__, because some compilers set it to 0
2675 while being otherwise adequately conformant. */
2676 #if !defined __STDC__
2677 # error "Compiler does not advertise C89 conformance"
2678 #endif
2679
2680 #include <stddef.h>
2681 #include <stdarg.h>
2682 struct stat;
2683 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2684 struct buf { int x; };
2685 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2687 char **p;
2688 int i;
2689 {
2690 return p[i];
2691 }
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2693 {
2694 char *s;
2695 va_list v;
2696 va_start (v,p);
2697 s = g (p, va_arg (v,int));
2698 va_end (v);
2699 return s;
2700 }
2701
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not \xHH hex character constants.
2704 These do not provoke an error unfortunately, instead are silently treated
2705 as an "x". The following induces an error, until -std is added to get
2706 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2707 array size at least. It is necessary to write \x00 == 0 to get something
2708 that is true only with -std. */
2709 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2710
2711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2712 inside strings and character constants. */
2713 #define FOO(x) '\''x'\''
2714 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2715
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2720 int, int);'
2721
2722 # Test code for whether the C compiler supports C89 (body of main).
2723 ac_c_conftest_c89_main='
2724 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2725 '
2726
2727 # Test code for whether the C compiler supports C99 (global declarations)
2728 ac_c_conftest_c99_globals='
2729 // Does the compiler advertise C99 conformance?
2730 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2731 # error "Compiler does not advertise C99 conformance"
2732 #endif
2733
2734 #include <stdbool.h>
2735 extern int puts (const char *);
2736 extern int printf (const char *, ...);
2737 extern int dprintf (int, const char *, ...);
2738 extern void *malloc (size_t);
2739
2740 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2741 // dprintf is used instead of fprintf to avoid needing to declare
2742 // FILE and stderr.
2743 #define debug(...) dprintf (2, __VA_ARGS__)
2744 #define showlist(...) puts (#__VA_ARGS__)
2745 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2746 static void
2747 test_varargs_macros (void)
2748 {
2749 int x = 1234;
2750 int y = 5678;
2751 debug ("Flag");
2752 debug ("X = %d\n", x);
2753 showlist (The first, second, and third items.);
2754 report (x>y, "x is %d but y is %d", x, y);
2755 }
2756
2757 // Check long long types.
2758 #define BIG64 18446744073709551615ull
2759 #define BIG32 4294967295ul
2760 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2761 #if !BIG_OK
2762 #error "your preprocessor is broken"
2763 #endif
2764 #if BIG_OK
2765 #else
2766 #error "your preprocessor is broken"
2767 #endif
2768 static long long int bignum = -9223372036854775807LL;
2769 static unsigned long long int ubignum = BIG64;
2770
2771 struct incomplete_array
2772 {
2773 int datasize;
2774 double data[];
2775 };
2776
2777 struct named_init {
2778 int number;
2779 const wchar_t *name;
2780 double average;
2781 };
2782
2783 typedef const char *ccp;
2784
2785 static inline int
2786 test_restrict (ccp restrict text)
2787 {
2788 // See if C++-style comments work.
2789 // Iterate through items via the restricted pointer.
2790 // Also check for declarations in for loops.
2791 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2792 continue;
2793 return 0;
2794 }
2795
2796 // Check varargs and va_copy.
2797 static bool
2798 test_varargs (const char *format, ...)
2799 {
2800 va_list args;
2801 va_start (args, format);
2802 va_list args_copy;
2803 va_copy (args_copy, args);
2804
2805 const char *str = "";
2806 int number = 0;
2807 float fnumber = 0;
2808
2809 while (*format)
2810 {
2811 switch (*format++)
2812 {
2813 case '\''s'\'': // string
2814 str = va_arg (args_copy, const char *);
2815 break;
2816 case '\''d'\'': // int
2817 number = va_arg (args_copy, int);
2818 break;
2819 case '\''f'\'': // float
2820 fnumber = va_arg (args_copy, double);
2821 break;
2822 default:
2823 break;
2824 }
2825 }
2826 va_end (args_copy);
2827 va_end (args);
2828
2829 return *str && number && fnumber;
2830 }
2831 '
2832
2833 # Test code for whether the C compiler supports C99 (body of main).
2834 ac_c_conftest_c99_main='
2835 // Check bool.
2836 _Bool success = false;
2837 success |= (argc != 0);
2838
2839 // Check restrict.
2840 if (test_restrict ("String literal") == 0)
2841 success = true;
2842 char *restrict newvar = "Another string";
2843
2844 // Check varargs.
2845 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2846 test_varargs_macros ();
2847
2848 // Check flexible array members.
2849 struct incomplete_array *ia =
2850 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2851 ia->datasize = 10;
2852 for (int i = 0; i < ia->datasize; ++i)
2853 ia->data[i] = i * 1.234;
2854
2855 // Check named initializers.
2856 struct named_init ni = {
2857 .number = 34,
2858 .name = L"Test wide string",
2859 .average = 543.34343,
2860 };
2861
2862 ni.number = 58;
2863
2864 int dynamic_array[ni.number];
2865 dynamic_array[0] = argv[0][0];
2866 dynamic_array[ni.number - 1] = 543;
2867
2868 // work around unused variable warnings
2869 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2870 || dynamic_array[ni.number - 1] != 543);
2871 '
2872
2873 # Test code for whether the C compiler supports C11 (global declarations)
2874 ac_c_conftest_c11_globals='
2875 // Does the compiler advertise C11 conformance?
2876 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2877 # error "Compiler does not advertise C11 conformance"
2878 #endif
2879
2880 // Check _Alignas.
2881 char _Alignas (double) aligned_as_double;
2882 char _Alignas (0) no_special_alignment;
2883 extern char aligned_as_int;
2884 char _Alignas (0) _Alignas (int) aligned_as_int;
2885
2886 // Check _Alignof.
2887 enum
2888 {
2889 int_alignment = _Alignof (int),
2890 int_array_alignment = _Alignof (int[100]),
2891 char_alignment = _Alignof (char)
2892 };
2893 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2894
2895 // Check _Noreturn.
2896 int _Noreturn does_not_return (void) { for (;;) continue; }
2897
2898 // Check _Static_assert.
2899 struct test_static_assert
2900 {
2901 int x;
2902 _Static_assert (sizeof (int) <= sizeof (long int),
2903 "_Static_assert does not work in struct");
2904 long int y;
2905 };
2906
2907 // Check UTF-8 literals.
2908 #define u8 syntax error!
2909 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2910
2911 // Check duplicate typedefs.
2912 typedef long *long_ptr;
2913 typedef long int *long_ptr;
2914 typedef long_ptr long_ptr;
2915
2916 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2917 struct anonymous
2918 {
2919 union {
2920 struct { int i; int j; };
2921 struct { int k; long int l; } w;
2922 };
2923 int m;
2924 } v1;
2925 '
2926
2927 # Test code for whether the C compiler supports C11 (body of main).
2928 ac_c_conftest_c11_main='
2929 _Static_assert ((offsetof (struct anonymous, i)
2930 == offsetof (struct anonymous, w.k)),
2931 "Anonymous union alignment botch");
2932 v1.i = 2;
2933 v1.w.k = 5;
2934 ok |= v1.i != 5;
2935 '
2936
2937 # Test code for whether the C compiler supports C11 (complete).
2938 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2939 ${ac_c_conftest_c99_globals}
2940 ${ac_c_conftest_c11_globals}
2941
2942 int
2943 main (int argc, char **argv)
2944 {
2945 int ok = 0;
2946 ${ac_c_conftest_c89_main}
2947 ${ac_c_conftest_c99_main}
2948 ${ac_c_conftest_c11_main}
2949 return ok;
2950 }
2951 "
2952
2953 # Test code for whether the C compiler supports C99 (complete).
2954 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2955 ${ac_c_conftest_c99_globals}
2956
2957 int
2958 main (int argc, char **argv)
2959 {
2960 int ok = 0;
2961 ${ac_c_conftest_c89_main}
2962 ${ac_c_conftest_c99_main}
2963 return ok;
2964 }
2965 "
2966
2967 # Test code for whether the C compiler supports C89 (complete).
2968 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2969
2970 int
2971 main (int argc, char **argv)
2972 {
2973 int ok = 0;
2974 ${ac_c_conftest_c89_main}
2975 return ok;
2976 }
2977 "
2978
2979 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2980 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2981 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2982 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2983 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2984 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2985 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2986 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2987 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2988 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2989 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2990 gt_needs="$gt_needs need-ngettext"
2991 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2992 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2993 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
2994 as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE"
2995 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
2996 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2997 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2998 as_fn_append ac_func_c_list " alarm HAVE_ALARM"
2999 as_fn_append ac_func_c_list " fpurge HAVE_FPURGE"
3000 as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE"
3001 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3002 as_fn_append ac_func_c_list " vsnprintf HAVE_VSNPRINTF"
3003
3004 # Auxiliary files required by this configure script.
3005 ac_aux_files="config.rpath install-sh config.guess config.sub"
3006
3007 # Locations in which to look for auxiliary files.
3008 ac_aux_dir_candidates="${srcdir}/./support"
3009
3010 # Search for a directory containing all of the required auxiliary files,
3011 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3012 # If we don't find one directory that contains all the files we need,
3013 # we report the set of missing files from the *first* directory in
3014 # $ac_aux_dir_candidates and give up.
3015 ac_missing_aux_files=""
3016 ac_first_candidate=:
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 as_found=false
3020 for as_dir in $ac_aux_dir_candidates
3021 do
3022 IFS=$as_save_IFS
3023 case $as_dir in #(((
3024 '') as_dir=./ ;;
3025 */) ;;
3026 *) as_dir=$as_dir/ ;;
3027 esac
3028 as_found=:
3029
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3031 ac_aux_dir_found=yes
3032 ac_install_sh=
3033 for ac_aux in $ac_aux_files
3034 do
3035 # As a special case, if "install-sh" is required, that requirement
3036 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3037 # and $ac_install_sh is set appropriately for whichever one is found.
3038 if test x"$ac_aux" = x"install-sh"
3039 then
3040 if test -f "${as_dir}install-sh"; then
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3042 ac_install_sh="${as_dir}install-sh -c"
3043 elif test -f "${as_dir}install.sh"; then
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3045 ac_install_sh="${as_dir}install.sh -c"
3046 elif test -f "${as_dir}shtool"; then
3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3048 ac_install_sh="${as_dir}shtool install -c"
3049 else
3050 ac_aux_dir_found=no
3051 if $ac_first_candidate; then
3052 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3053 else
3054 break
3055 fi
3056 fi
3057 else
3058 if test -f "${as_dir}${ac_aux}"; then
3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3060 else
3061 ac_aux_dir_found=no
3062 if $ac_first_candidate; then
3063 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3064 else
3065 break
3066 fi
3067 fi
3068 fi
3069 done
3070 if test "$ac_aux_dir_found" = yes; then
3071 ac_aux_dir="$as_dir"
3072 break
3073 fi
3074 ac_first_candidate=false
3075
3076 as_found=false
3077 done
3078 IFS=$as_save_IFS
3079 if $as_found
3080 then :
3081
3082 else $as_nop
3083 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3084 fi
3085
3086
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 if test -f "${ac_aux_dir}config.guess"; then
3092 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3093 fi
3094 if test -f "${ac_aux_dir}config.sub"; then
3095 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3096 fi
3097 if test -f "$ac_aux_dir/configure"; then
3098 ac_configure="$SHELL ${ac_aux_dir}configure"
3099 fi
3100
3101 # Check that the precious variables saved in the cache have kept the same
3102 # value.
3103 ac_cache_corrupted=false
3104 for ac_var in $ac_precious_vars; do
3105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3106 eval ac_new_set=\$ac_env_${ac_var}_set
3107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3108 eval ac_new_val=\$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3110 set,)
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,set)
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,);;
3119 *)
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w=`echo x $ac_old_val`
3123 ac_new_val_w=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted=:
3128 else
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\$ac_old_val
3132 fi
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3137 fi;;
3138 esac
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3141 case $ac_new_val in
3142 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg=$ac_var=$ac_new_val ;;
3144 esac
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3148 esac
3149 fi
3150 done
3151 if $ac_cache_corrupted; then
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3157 and start over" "$LINENO" 5
3158 fi
3159 ## -------------------- ##
3160 ## Main body of script. ##
3161 ## -------------------- ##
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168
3169
3170
3171
3172
3173
3174
3175 ac_config_headers="$ac_config_headers config.h"
3176
3177
3178 BASHVERS=5.2
3179 RELSTATUS=release
3180
3181 case "$RELSTATUS" in
3182 alp*|bet*|dev*|rc*|releng*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
3183 *) DEBUG= MALLOC_DEBUG= ;;
3184 esac
3185
3186
3187
3188
3189 # Make sure we can run config.sub.
3190 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3191 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3192
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3194 printf %s "checking build system type... " >&6; }
3195 if test ${ac_cv_build+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else $as_nop
3199 ac_build_alias=$build_alias
3200 test "x$ac_build_alias" = x &&
3201 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3202 test "x$ac_build_alias" = x &&
3203 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3204 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3205 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3206
3207 fi
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3209 printf "%s\n" "$ac_cv_build" >&6; }
3210 case $ac_cv_build in
3211 *-*-*) ;;
3212 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3213 esac
3214 build=$ac_cv_build
3215 ac_save_IFS=$IFS; IFS='-'
3216 set x $ac_cv_build
3217 shift
3218 build_cpu=$1
3219 build_vendor=$2
3220 shift; shift
3221 # Remember, the first character of IFS is used to create $*,
3222 # except with old shells:
3223 build_os=$*
3224 IFS=$ac_save_IFS
3225 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3226
3227
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3229 printf %s "checking host system type... " >&6; }
3230 if test ${ac_cv_host+y}
3231 then :
3232 printf %s "(cached) " >&6
3233 else $as_nop
3234 if test "x$host_alias" = x; then
3235 ac_cv_host=$ac_cv_build
3236 else
3237 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3238 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3239 fi
3240
3241 fi
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3243 printf "%s\n" "$ac_cv_host" >&6; }
3244 case $ac_cv_host in
3245 *-*-*) ;;
3246 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3247 esac
3248 host=$ac_cv_host
3249 ac_save_IFS=$IFS; IFS='-'
3250 set x $ac_cv_host
3251 shift
3252 host_cpu=$1
3253 host_vendor=$2
3254 shift; shift
3255 # Remember, the first character of IFS is used to create $*,
3256 # except with old shells:
3257 host_os=$*
3258 IFS=$ac_save_IFS
3259 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3260
3261
3262
3263
3264 opt_bash_malloc=yes
3265 opt_afs=no
3266 opt_curses=no
3267 opt_with_installed_readline=no
3268
3269 #htmldir=
3270
3271 case "${host_cpu}-${host_os}" in
3272 # mostly obsolete platforms
3273 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
3274 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
3275 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
3276 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
3277 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
3278 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
3279 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
3280 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
3281 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
3282 # These need additional investigation
3283 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
3284 *-aix*) opt_bash_malloc=no ;; # AIX machines
3285 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
3286 # These lack a working sbrk(2)
3287 aarch64-freebsd*) opt_bash_malloc=no ;;
3288 riscv*-freebsd*) opt_bash_malloc=no ;;
3289 # Mach-derived systems have a ton of extra malloc functions and lack sbrk(2)
3290 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
3291 *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep
3292 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
3293 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
3294 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
3295 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
3296 # Niche or non-mainstream-shell-user systems
3297 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX [67].x
3298 *-nsk*) opt_bash_malloc=no ;; # HP NonStop
3299 *-haiku*) opt_bash_malloc=no ;; # Haiku OS
3300 *-genode*) opt_bash_malloc=no ;; # Genode has no sbrk
3301 esac
3302
3303 # memory scrambling on free()
3304 case "${host_os}" in
3305 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
3306 *) opt_memscramble=yes ;;
3307 esac
3308
3309
3310
3311
3312 # Check whether --with-afs was given.
3313 if test ${with_afs+y}
3314 then :
3315 withval=$with_afs; opt_afs=$withval
3316 fi
3317
3318
3319 # Check whether --with-bash-malloc was given.
3320 if test ${with_bash_malloc+y}
3321 then :
3322 withval=$with_bash_malloc; opt_bash_malloc=$withval
3323 fi
3324
3325
3326 # Check whether --with-curses was given.
3327 if test ${with_curses+y}
3328 then :
3329 withval=$with_curses; opt_curses=$withval
3330 fi
3331
3332
3333 # Check whether --with-gnu-malloc was given.
3334 if test ${with_gnu_malloc+y}
3335 then :
3336 withval=$with_gnu_malloc; opt_bash_malloc=$withval
3337 fi
3338
3339
3340 # Check whether --with-installed-readline was given.
3341 if test ${with_installed_readline+y}
3342 then :
3343 withval=$with_installed_readline; opt_with_installed_readline=$withval
3344 fi
3345
3346
3347 if test "$opt_bash_malloc" = yes; then
3348 MALLOC_TARGET=malloc
3349 MALLOC_SRC=malloc.c
3350
3351 MALLOC_LIB='-lmalloc'
3352 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
3353 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
3354 MALLOC_DEP='$(MALLOC_LIBRARY)'
3355
3356 printf "%s\n" "#define USING_BASH_MALLOC 1" >>confdefs.h
3357
3358 else
3359 MALLOC_LIB=
3360 MALLOC_LIBRARY=
3361 MALLOC_LDFLAGS=
3362 MALLOC_DEP=
3363 fi
3364
3365 if test "$opt_afs" = yes; then
3366 printf "%s\n" "#define AFS 1" >>confdefs.h
3367
3368 fi
3369
3370 if test "$opt_curses" = yes; then
3371 prefer_curses=yes
3372 fi
3373
3374 if test -z "${DEBUGGER_START_FILE}"; then
3375 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
3376 fi
3377
3378 opt_minimal_config=no
3379
3380 opt_job_control=yes
3381 opt_alias=yes
3382 opt_readline=yes
3383 opt_history=yes
3384 opt_bang_history=yes
3385 opt_dirstack=yes
3386 opt_restricted=yes
3387 opt_process_subst=yes
3388 opt_prompt_decoding=yes
3389 opt_select=yes
3390 opt_help=yes
3391 opt_array_variables=yes
3392 opt_dparen_arith=yes
3393 opt_extended_glob=yes
3394 opt_brace_expansion=yes
3395 opt_disabled_builtins=no
3396 opt_command_timing=yes
3397 opt_xpg_echo=no
3398 opt_strict_posix=no
3399 opt_cond_command=yes
3400 opt_cond_regexp=yes
3401 opt_coproc=yes
3402 opt_arith_for_command=yes
3403 opt_net_redirs=yes
3404 opt_progcomp=yes
3405 opt_separate_help=no
3406 opt_multibyte=yes
3407 opt_debugger=yes
3408 opt_single_longdoc_strings=yes
3409 opt_casemod_attrs=yes
3410 opt_casemod_expansions=yes
3411 opt_extglob_default=no
3412 opt_dircomplete_expand_default=no
3413 opt_globascii_default=yes
3414 opt_function_import=yes
3415 opt_dev_fd_stat_broken=no
3416 opt_alt_array_impl=no
3417 opt_translatable_strings=yes
3418
3419 ARRAY_O=array.o
3420
3421 opt_static_link=no
3422 opt_profiling=no
3423
3424 # Check whether --enable-minimal-config was given.
3425 if test ${enable_minimal_config+y}
3426 then :
3427 enableval=$enable_minimal_config; opt_minimal_config=$enableval
3428 fi
3429
3430
3431 if test $opt_minimal_config = yes; then
3432 opt_job_control=no opt_alias=no opt_readline=no
3433 opt_history=no opt_bang_history=no opt_dirstack=no
3434 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
3435 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
3436 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
3437 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
3438 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3439 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
3440 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
3441 opt_translatable_strings=no
3442 opt_globascii_default=yes
3443 fi
3444
3445 # Check whether --enable-alias was given.
3446 if test ${enable_alias+y}
3447 then :
3448 enableval=$enable_alias; opt_alias=$enableval
3449 fi
3450
3451 # Check whether --enable-alt-array-implementation was given.
3452 if test ${enable_alt_array_implementation+y}
3453 then :
3454 enableval=$enable_alt_array_implementation; opt_alt_array_impl=$enableval
3455 fi
3456
3457 # Check whether --enable-arith-for-command was given.
3458 if test ${enable_arith_for_command+y}
3459 then :
3460 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
3461 fi
3462
3463 # Check whether --enable-array-variables was given.
3464 if test ${enable_array_variables+y}
3465 then :
3466 enableval=$enable_array_variables; opt_array_variables=$enableval
3467 fi
3468
3469 # Check whether --enable-bang-history was given.
3470 if test ${enable_bang_history+y}
3471 then :
3472 enableval=$enable_bang_history; opt_bang_history=$enableval
3473 fi
3474
3475 # Check whether --enable-brace-expansion was given.
3476 if test ${enable_brace_expansion+y}
3477 then :
3478 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
3479 fi
3480
3481 # Check whether --enable-casemod-attributes was given.
3482 if test ${enable_casemod_attributes+y}
3483 then :
3484 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
3485 fi
3486
3487 # Check whether --enable-casemod-expansions was given.
3488 if test ${enable_casemod_expansions+y}
3489 then :
3490 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
3491 fi
3492
3493 # Check whether --enable-command-timing was given.
3494 if test ${enable_command_timing+y}
3495 then :
3496 enableval=$enable_command_timing; opt_command_timing=$enableval
3497 fi
3498
3499 # Check whether --enable-cond-command was given.
3500 if test ${enable_cond_command+y}
3501 then :
3502 enableval=$enable_cond_command; opt_cond_command=$enableval
3503 fi
3504
3505 # Check whether --enable-cond-regexp was given.
3506 if test ${enable_cond_regexp+y}
3507 then :
3508 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
3509 fi
3510
3511 # Check whether --enable-coprocesses was given.
3512 if test ${enable_coprocesses+y}
3513 then :
3514 enableval=$enable_coprocesses; opt_coproc=$enableval
3515 fi
3516
3517 # Check whether --enable-debugger was given.
3518 if test ${enable_debugger+y}
3519 then :
3520 enableval=$enable_debugger; opt_debugger=$enableval
3521 fi
3522
3523 # Check whether --enable-dev-fd-stat-broken was given.
3524 if test ${enable_dev_fd_stat_broken+y}
3525 then :
3526 enableval=$enable_dev_fd_stat_broken; opt_dev_fd_stat_broken=$enableval
3527 fi
3528
3529 # Check whether --enable-direxpand-default was given.
3530 if test ${enable_direxpand_default+y}
3531 then :
3532 enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval
3533 fi
3534
3535 # Check whether --enable-directory-stack was given.
3536 if test ${enable_directory_stack+y}
3537 then :
3538 enableval=$enable_directory_stack; opt_dirstack=$enableval
3539 fi
3540
3541 # Check whether --enable-disabled-builtins was given.
3542 if test ${enable_disabled_builtins+y}
3543 then :
3544 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
3545 fi
3546
3547 # Check whether --enable-dparen-arithmetic was given.
3548 if test ${enable_dparen_arithmetic+y}
3549 then :
3550 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
3551 fi
3552
3553 # Check whether --enable-extended-glob was given.
3554 if test ${enable_extended_glob+y}
3555 then :
3556 enableval=$enable_extended_glob; opt_extended_glob=$enableval
3557 fi
3558
3559 # Check whether --enable-extended-glob-default was given.
3560 if test ${enable_extended_glob_default+y}
3561 then :
3562 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
3563 fi
3564
3565 # Check whether --enable-function-import was given.
3566 if test ${enable_function_import+y}
3567 then :
3568 enableval=$enable_function_import; opt_function_import=$enableval
3569 fi
3570
3571 # Check whether --enable-glob-asciiranges-default was given.
3572 if test ${enable_glob_asciiranges_default+y}
3573 then :
3574 enableval=$enable_glob_asciiranges_default; opt_globascii_default=$enableval
3575 fi
3576
3577 # Check whether --enable-help-builtin was given.
3578 if test ${enable_help_builtin+y}
3579 then :
3580 enableval=$enable_help_builtin; opt_help=$enableval
3581 fi
3582
3583 # Check whether --enable-history was given.
3584 if test ${enable_history+y}
3585 then :
3586 enableval=$enable_history; opt_history=$enableval
3587 fi
3588
3589 # Check whether --enable-job-control was given.
3590 if test ${enable_job_control+y}
3591 then :
3592 enableval=$enable_job_control; opt_job_control=$enableval
3593 fi
3594
3595 # Check whether --enable-multibyte was given.
3596 if test ${enable_multibyte+y}
3597 then :
3598 enableval=$enable_multibyte; opt_multibyte=$enableval
3599 fi
3600
3601 # Check whether --enable-net-redirections was given.
3602 if test ${enable_net_redirections+y}
3603 then :
3604 enableval=$enable_net_redirections; opt_net_redirs=$enableval
3605 fi
3606
3607 # Check whether --enable-process-substitution was given.
3608 if test ${enable_process_substitution+y}
3609 then :
3610 enableval=$enable_process_substitution; opt_process_subst=$enableval
3611 fi
3612
3613 # Check whether --enable-progcomp was given.
3614 if test ${enable_progcomp+y}
3615 then :
3616 enableval=$enable_progcomp; opt_progcomp=$enableval
3617 fi
3618
3619 # Check whether --enable-prompt-string-decoding was given.
3620 if test ${enable_prompt_string_decoding+y}
3621 then :
3622 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
3623 fi
3624
3625 # Check whether --enable-readline was given.
3626 if test ${enable_readline+y}
3627 then :
3628 enableval=$enable_readline; opt_readline=$enableval
3629 fi
3630
3631 # Check whether --enable-restricted was given.
3632 if test ${enable_restricted+y}
3633 then :
3634 enableval=$enable_restricted; opt_restricted=$enableval
3635 fi
3636
3637 # Check whether --enable-select was given.
3638 if test ${enable_select+y}
3639 then :
3640 enableval=$enable_select; opt_select=$enableval
3641 fi
3642
3643 # Check whether --enable-separate-helpfiles was given.
3644 if test ${enable_separate_helpfiles+y}
3645 then :
3646 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
3647 fi
3648
3649 # Check whether --enable-single-help-strings was given.
3650 if test ${enable_single_help_strings+y}
3651 then :
3652 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
3653 fi
3654
3655 # Check whether --enable-strict-posix-default was given.
3656 if test ${enable_strict_posix_default+y}
3657 then :
3658 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
3659 fi
3660
3661 # Check whether --enable-translatable-strings was given.
3662 if test ${enable_translatable_strings+y}
3663 then :
3664 enableval=$enable_translatable_strings; opt_translatable_strings=$enableval
3665 fi
3666
3667 # Check whether --enable-usg-echo-default was given.
3668 if test ${enable_usg_echo_default+y}
3669 then :
3670 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
3671 fi
3672
3673 # Check whether --enable-xpg-echo-default was given.
3674 if test ${enable_xpg_echo_default+y}
3675 then :
3676 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
3677 fi
3678
3679
3680 # Check whether --enable-mem-scramble was given.
3681 if test ${enable_mem_scramble+y}
3682 then :
3683 enableval=$enable_mem_scramble; opt_memscramble=$enableval
3684 fi
3685
3686 # Check whether --enable-profiling was given.
3687 if test ${enable_profiling+y}
3688 then :
3689 enableval=$enable_profiling; opt_profiling=$enableval
3690 fi
3691
3692 # Check whether --enable-static-link was given.
3693 if test ${enable_static_link+y}
3694 then :
3695 enableval=$enable_static_link; opt_static_link=$enableval
3696 fi
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706 if test $opt_alias = yes; then
3707 printf "%s\n" "#define ALIAS 1" >>confdefs.h
3708
3709 fi
3710 if test $opt_dirstack = yes; then
3711 printf "%s\n" "#define PUSHD_AND_POPD 1" >>confdefs.h
3712
3713 fi
3714 if test $opt_restricted = yes; then
3715 printf "%s\n" "#define RESTRICTED_SHELL 1" >>confdefs.h
3716
3717 fi
3718 if test $opt_process_subst = yes; then
3719 printf "%s\n" "#define PROCESS_SUBSTITUTION 1" >>confdefs.h
3720
3721 fi
3722 if test $opt_prompt_decoding = yes; then
3723 printf "%s\n" "#define PROMPT_STRING_DECODE 1" >>confdefs.h
3724
3725 fi
3726 if test $opt_select = yes; then
3727 printf "%s\n" "#define SELECT_COMMAND 1" >>confdefs.h
3728
3729 fi
3730 if test $opt_help = yes; then
3731 printf "%s\n" "#define HELP_BUILTIN 1" >>confdefs.h
3732
3733 fi
3734 if test $opt_array_variables = yes; then
3735 printf "%s\n" "#define ARRAY_VARS 1" >>confdefs.h
3736
3737 fi
3738 if test $opt_dparen_arith = yes; then
3739 printf "%s\n" "#define DPAREN_ARITHMETIC 1" >>confdefs.h
3740
3741 fi
3742 if test $opt_brace_expansion = yes; then
3743 printf "%s\n" "#define BRACE_EXPANSION 1" >>confdefs.h
3744
3745 fi
3746 if test $opt_disabled_builtins = yes; then
3747 printf "%s\n" "#define DISABLED_BUILTINS 1" >>confdefs.h
3748
3749 fi
3750 if test $opt_command_timing = yes; then
3751 printf "%s\n" "#define COMMAND_TIMING 1" >>confdefs.h
3752
3753 fi
3754 if test $opt_xpg_echo = yes ; then
3755 printf "%s\n" "#define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h
3756
3757 fi
3758 if test $opt_strict_posix = yes; then
3759 printf "%s\n" "#define STRICT_POSIX 1" >>confdefs.h
3760
3761 fi
3762 if test $opt_extended_glob = yes ; then
3763 printf "%s\n" "#define EXTENDED_GLOB 1" >>confdefs.h
3764
3765 fi
3766 if test $opt_extglob_default = yes; then
3767 printf "%s\n" "#define EXTGLOB_DEFAULT 1" >>confdefs.h
3768
3769 else
3770 printf "%s\n" "#define EXTGLOB_DEFAULT 0" >>confdefs.h
3771
3772 fi
3773 if test $opt_cond_command = yes ; then
3774 printf "%s\n" "#define COND_COMMAND 1" >>confdefs.h
3775
3776 fi
3777 if test $opt_cond_regexp = yes ; then
3778 printf "%s\n" "#define COND_REGEXP 1" >>confdefs.h
3779
3780 fi
3781 if test $opt_coproc = yes; then
3782 printf "%s\n" "#define COPROCESS_SUPPORT 1" >>confdefs.h
3783
3784 fi
3785 if test $opt_arith_for_command = yes; then
3786 printf "%s\n" "#define ARITH_FOR_COMMAND 1" >>confdefs.h
3787
3788 fi
3789 if test $opt_net_redirs = yes; then
3790 printf "%s\n" "#define NETWORK_REDIRECTIONS 1" >>confdefs.h
3791
3792 fi
3793 if test $opt_progcomp = yes; then
3794 printf "%s\n" "#define PROGRAMMABLE_COMPLETION 1" >>confdefs.h
3795
3796 fi
3797 if test $opt_multibyte = no; then
3798 printf "%s\n" "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
3799
3800 fi
3801 if test $opt_debugger = yes; then
3802 printf "%s\n" "#define DEBUGGER 1" >>confdefs.h
3803
3804 fi
3805 if test $opt_casemod_attrs = yes; then
3806 printf "%s\n" "#define CASEMOD_ATTRS 1" >>confdefs.h
3807
3808 fi
3809 if test $opt_casemod_expansions = yes; then
3810 printf "%s\n" "#define CASEMOD_EXPANSIONS 1" >>confdefs.h
3811
3812 fi
3813 if test $opt_dircomplete_expand_default = yes; then
3814 printf "%s\n" "#define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h
3815
3816 fi
3817 if test $opt_globascii_default = yes; then
3818 printf "%s\n" "#define GLOBASCII_DEFAULT 1" >>confdefs.h
3819
3820 else
3821 printf "%s\n" "#define GLOBASCII_DEFAULT 0" >>confdefs.h
3822
3823 fi
3824 if test $opt_function_import = yes; then
3825 printf "%s\n" "#define FUNCTION_IMPORT 1" >>confdefs.h
3826
3827 fi
3828 if test $opt_dev_fd_stat_broken = yes; then
3829 printf "%s\n" "#define DEV_FD_STAT_BROKEN 1" >>confdefs.h
3830
3831 fi
3832 if test $opt_alt_array_impl = yes; then
3833 printf "%s\n" "#define ALT_ARRAY_IMPLEMENTATION 1" >>confdefs.h
3834
3835 ARRAY_O=array2.o
3836 fi
3837 if test $opt_translatable_strings = yes; then
3838 printf "%s\n" "#define TRANSLATABLE_STRINGS 1" >>confdefs.h
3839
3840 fi
3841
3842 if test $opt_memscramble = yes; then
3843 printf "%s\n" "#define MEMSCRAMBLE 1" >>confdefs.h
3844
3845 fi
3846
3847 if test "$opt_minimal_config" = yes; then
3848 TESTSCRIPT=run-minimal
3849 else
3850 TESTSCRIPT=run-all
3851 fi
3852
3853 HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
3854 if test "$opt_separate_help" != no; then
3855 if test "$opt_separate_help" = "yes" ; then
3856 HELPDIR='${datadir}/bash/helpfiles'
3857 else
3858 HELPDIR=$opt_separate_help
3859 fi
3860 HELPDIRDEFINE='-H ${HELPDIR}'
3861 HELPINSTALL='install-help'
3862 HELPFILES_TARGET='helpdoc'
3863 fi
3864 HELPSTRINGS=
3865 if test "$opt_single_longdoc_strings" != "yes"; then
3866 HELPSTRINGS='-S'
3867 fi
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888 if test -z "$CFLAGS"; then
3889 want_auto_cflags=1
3890 fi
3891
3892 echo ""
3893 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
3894 echo ""
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 printf %s "checking for $ac_word... " >&6; }
3915 if test ${ac_cv_prog_CC+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else $as_nop
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 case $as_dir in #(((
3927 '') as_dir=./ ;;
3928 */) ;;
3929 *) as_dir=$as_dir/ ;;
3930 esac
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 CC=$ac_cv_prog_CC
3944 if test -n "$CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 printf "%s\n" "$CC" >&6; }
3947 else
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 printf "%s\n" "no" >&6; }
3950 fi
3951
3952
3953 fi
3954 if test -z "$ac_cv_prog_CC"; then
3955 ac_ct_CC=$CC
3956 # Extract the first word of "gcc", so it can be a program name with args.
3957 set dummy gcc; ac_word=$2
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 printf %s "checking for $ac_word... " >&6; }
3960 if test ${ac_cv_prog_ac_ct_CC+y}
3961 then :
3962 printf %s "(cached) " >&6
3963 else $as_nop
3964 if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 case $as_dir in #(((
3972 '') as_dir=./ ;;
3973 */) ;;
3974 *) as_dir=$as_dir/ ;;
3975 esac
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_CC="gcc"
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984 IFS=$as_save_IFS
3985
3986 fi
3987 fi
3988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3989 if test -n "$ac_ct_CC"; then
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3991 printf "%s\n" "$ac_ct_CC" >&6; }
3992 else
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 printf "%s\n" "no" >&6; }
3995 fi
3996
3997 if test "x$ac_ct_CC" = x; then
3998 CC=""
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CC=$ac_ct_CC
4007 fi
4008 else
4009 CC="$ac_cv_prog_CC"
4010 fi
4011
4012 if test -z "$CC"; then
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}cc; ac_word=$2
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 printf %s "checking for $ac_word... " >&6; }
4018 if test ${ac_cv_prog_CC+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else $as_nop
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_CC="${ac_tool_prefix}cc"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 CC=$ac_cv_prog_CC
4047 if test -n "$CC"; then
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 printf "%s\n" "$CC" >&6; }
4050 else
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 printf "%s\n" "no" >&6; }
4053 fi
4054
4055
4056 fi
4057 fi
4058 if test -z "$CC"; then
4059 # Extract the first word of "cc", so it can be a program name with args.
4060 set dummy cc; ac_word=$2
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 printf %s "checking for $ac_word... " >&6; }
4063 if test ${ac_cv_prog_CC+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else $as_nop
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 ac_prog_rejected=no
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 case $as_dir in #(((
4076 '') as_dir=./ ;;
4077 */) ;;
4078 *) as_dir=$as_dir/ ;;
4079 esac
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4082 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4083 ac_prog_rejected=yes
4084 continue
4085 fi
4086 ac_cv_prog_CC="cc"
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 if test $ac_prog_rejected = yes; then
4095 # We found a bogon in the path, so make sure we never use it.
4096 set dummy $ac_cv_prog_CC
4097 shift
4098 if test $# != 0; then
4099 # We chose a different compiler from the bogus one.
4100 # However, it has the same basename, so the bogon will be chosen
4101 # first if we set CC to just the basename; use the full file name.
4102 shift
4103 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4104 fi
4105 fi
4106 fi
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 printf "%s\n" "$CC" >&6; }
4112 else
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 for ac_prog in cl.exe
4122 do
4123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 printf %s "checking for $ac_word... " >&6; }
4127 if test ${ac_cv_prog_CC+y}
4128 then :
4129 printf %s "(cached) " >&6
4130 else $as_nop
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137 IFS=$as_save_IFS
4138 case $as_dir in #(((
4139 '') as_dir=./ ;;
4140 */) ;;
4141 *) as_dir=$as_dir/ ;;
4142 esac
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149 done
4150 done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 printf "%s\n" "$CC" >&6; }
4159 else
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 printf "%s\n" "no" >&6; }
4162 fi
4163
4164
4165 test -n "$CC" && break
4166 done
4167 fi
4168 if test -z "$CC"; then
4169 ac_ct_CC=$CC
4170 for ac_prog in cl.exe
4171 do
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 printf %s "checking for $ac_word... " >&6; }
4176 if test ${ac_cv_prog_ac_ct_CC+y}
4177 then :
4178 printf %s "(cached) " >&6
4179 else $as_nop
4180 if test -n "$ac_ct_CC"; then
4181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 case $as_dir in #(((
4188 '') as_dir=./ ;;
4189 */) ;;
4190 *) as_dir=$as_dir/ ;;
4191 esac
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_ac_ct_CC="$ac_prog"
4195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4205 if test -n "$ac_ct_CC"; then
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4207 printf "%s\n" "$ac_ct_CC" >&6; }
4208 else
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 printf "%s\n" "no" >&6; }
4211 fi
4212
4213
4214 test -n "$ac_ct_CC" && break
4215 done
4216
4217 if test "x$ac_ct_CC" = x; then
4218 CC=""
4219 else
4220 case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4227 fi
4228 fi
4229
4230 fi
4231 if test -z "$CC"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}clang; ac_word=$2
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 printf %s "checking for $ac_word... " >&6; }
4237 if test ${ac_cv_prog_CC+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 case $as_dir in #(((
4249 '') as_dir=./ ;;
4250 */) ;;
4251 *) as_dir=$as_dir/ ;;
4252 esac
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC="${ac_tool_prefix}clang"
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 CC=$ac_cv_prog_CC
4266 if test -n "$CC"; then
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 printf "%s\n" "$CC" >&6; }
4269 else
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 printf "%s\n" "no" >&6; }
4272 fi
4273
4274
4275 fi
4276 if test -z "$ac_cv_prog_CC"; then
4277 ac_ct_CC=$CC
4278 # Extract the first word of "clang", so it can be a program name with args.
4279 set dummy clang; ac_word=$2
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 printf %s "checking for $ac_word... " >&6; }
4282 if test ${ac_cv_prog_ac_ct_CC+y}
4283 then :
4284 printf %s "(cached) " >&6
4285 else $as_nop
4286 if test -n "$ac_ct_CC"; then
4287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292 IFS=$as_save_IFS
4293 case $as_dir in #(((
4294 '') as_dir=./ ;;
4295 */) ;;
4296 *) as_dir=$as_dir/ ;;
4297 esac
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_CC="clang"
4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4313 printf "%s\n" "$ac_ct_CC" >&6; }
4314 else
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 printf "%s\n" "no" >&6; }
4317 fi
4318
4319 if test "x$ac_ct_CC" = x; then
4320 CC=""
4321 else
4322 case $cross_compiling:$ac_tool_warned in
4323 yes:)
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned=yes ;;
4327 esac
4328 CC=$ac_ct_CC
4329 fi
4330 else
4331 CC="$ac_cv_prog_CC"
4332 fi
4333
4334 fi
4335
4336
4337 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error $? "no acceptable C compiler found in \$PATH
4340 See \`config.log' for more details" "$LINENO" 5; }
4341
4342 # Provide some information about the compiler.
4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4344 set X $ac_compile
4345 ac_compiler=$2
4346 for ac_option in --version -v -V -qversion -version; do
4347 { { ac_try="$ac_compiler $ac_option >&5"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4355 ac_status=$?
4356 if test -s conftest.err; then
4357 sed '10a\
4358 ... rest of stderr output deleted ...
4359 10q' conftest.err >conftest.er1
4360 cat conftest.er1 >&5
4361 fi
4362 rm -f conftest.er1 conftest.err
4363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }
4365 done
4366
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main (void)
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 ac_clean_files_save=$ac_clean_files
4379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4380 # Try to create an executable without -o first, disregard a.out.
4381 # It will help us diagnose broken compilers, and finding out an intuition
4382 # of exeext.
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4384 printf %s "checking whether the C compiler works... " >&6; }
4385 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4386
4387 # The possible output files:
4388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4389
4390 ac_rmfiles=
4391 for ac_file in $ac_files
4392 do
4393 case $ac_file in
4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4396 esac
4397 done
4398 rm -f $ac_rmfiles
4399
4400 if { { ac_try="$ac_link_default"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 printf "%s\n" "$ac_try_echo"; } >&5
4407 (eval "$ac_link_default") 2>&5
4408 ac_status=$?
4409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 then :
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4416 # Autoconf.
4417 for ac_file in $ac_files ''
4418 do
4419 test -f "$ac_file" || continue
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4422 ;;
4423 [ab].out )
4424 # We found the default executable, but exeext='' is most
4425 # certainly right.
4426 break;;
4427 *.* )
4428 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4429 then :; else
4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431 fi
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4436 # actually working.
4437 break;;
4438 * )
4439 break;;
4440 esac
4441 done
4442 test "$ac_cv_exeext" = no && ac_cv_exeext=
4443
4444 else $as_nop
4445 ac_file=''
4446 fi
4447 if test -z "$ac_file"
4448 then :
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 printf "%s\n" "no" >&6; }
4451 printf "%s\n" "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error 77 "C compiler cannot create executables
4457 See \`config.log' for more details" "$LINENO" 5; }
4458 else $as_nop
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 printf "%s\n" "yes" >&6; }
4461 fi
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4463 printf %s "checking for C compiler default output file name... " >&6; }
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4465 printf "%s\n" "$ac_file" >&6; }
4466 ac_exeext=$ac_cv_exeext
4467
4468 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4469 ac_clean_files=$ac_clean_files_save
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4471 printf %s "checking for suffix of executables... " >&6; }
4472 if { { ac_try="$ac_link"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 printf "%s\n" "$ac_try_echo"; } >&5
4479 (eval "$ac_link") 2>&5
4480 ac_status=$?
4481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4483 then :
4484 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4485 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4486 # work properly (i.e., refer to `conftest.exe'), while it won't with
4487 # `rm'.
4488 for ac_file in conftest.exe conftest conftest.*; do
4489 test -f "$ac_file" || continue
4490 case $ac_file in
4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4493 break;;
4494 * ) break;;
4495 esac
4496 done
4497 else $as_nop
4498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4500 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4501 See \`config.log' for more details" "$LINENO" 5; }
4502 fi
4503 rm -f conftest conftest$ac_cv_exeext
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4505 printf "%s\n" "$ac_cv_exeext" >&6; }
4506
4507 rm -f conftest.$ac_ext
4508 EXEEXT=$ac_cv_exeext
4509 ac_exeext=$EXEEXT
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <stdio.h>
4513 int
4514 main (void)
4515 {
4516 FILE *f = fopen ("conftest.out", "w");
4517 return ferror (f) || fclose (f) != 0;
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 ac_clean_files="$ac_clean_files conftest.out"
4524 # Check that the compiler produces executables we can run. If not, either
4525 # the compiler is broken, or we cross compile.
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4527 printf %s "checking whether we are cross compiling... " >&6; }
4528 if test "$cross_compiling" != yes; then
4529 { { ac_try="$ac_link"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 printf "%s\n" "$ac_try_echo"; } >&5
4536 (eval "$ac_link") 2>&5
4537 ac_status=$?
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 if { ac_try='./conftest$ac_cv_exeext'
4541 { { case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 printf "%s\n" "$ac_try_echo"; } >&5
4547 (eval "$ac_try") 2>&5
4548 ac_status=$?
4549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; }; then
4551 cross_compiling=no
4552 else
4553 if test "$cross_compiling" = maybe; then
4554 cross_compiling=yes
4555 else
4556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4558 as_fn_error 77 "cannot run C compiled programs.
4559 If you meant to cross compile, use \`--host'.
4560 See \`config.log' for more details" "$LINENO" 5; }
4561 fi
4562 fi
4563 fi
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4565 printf "%s\n" "$cross_compiling" >&6; }
4566
4567 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4568 ac_clean_files=$ac_clean_files_save
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4570 printf %s "checking for suffix of object files... " >&6; }
4571 if test ${ac_cv_objext+y}
4572 then :
4573 printf %s "(cached) " >&6
4574 else $as_nop
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 int
4579 main (void)
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.o conftest.obj
4587 if { { ac_try="$ac_compile"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 printf "%s\n" "$ac_try_echo"; } >&5
4594 (eval "$ac_compile") 2>&5
4595 ac_status=$?
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 then :
4599 for ac_file in conftest.o conftest.obj conftest.*; do
4600 test -f "$ac_file" || continue;
4601 case $ac_file in
4602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4604 break;;
4605 esac
4606 done
4607 else $as_nop
4608 printf "%s\n" "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot compute suffix of object files: cannot compile
4614 See \`config.log' for more details" "$LINENO" 5; }
4615 fi
4616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4617 fi
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4619 printf "%s\n" "$ac_cv_objext" >&6; }
4620 OBJEXT=$ac_cv_objext
4621 ac_objext=$OBJEXT
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4623 printf %s "checking whether the compiler supports GNU C... " >&6; }
4624 if test ${ac_cv_c_compiler_gnu+y}
4625 then :
4626 printf %s "(cached) " >&6
4627 else $as_nop
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 int
4632 main (void)
4633 {
4634 #ifndef __GNUC__
4635 choke me
4636 #endif
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"
4643 then :
4644 ac_compiler_gnu=yes
4645 else $as_nop
4646 ac_compiler_gnu=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4650
4651 fi
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4653 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656 if test $ac_compiler_gnu = yes; then
4657 GCC=yes
4658 else
4659 GCC=
4660 fi
4661 ac_test_CFLAGS=${CFLAGS+y}
4662 ac_save_CFLAGS=$CFLAGS
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4664 printf %s "checking whether $CC accepts -g... " >&6; }
4665 if test ${ac_cv_prog_cc_g+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else $as_nop
4669 ac_save_c_werror_flag=$ac_c_werror_flag
4670 ac_c_werror_flag=yes
4671 ac_cv_prog_cc_g=no
4672 CFLAGS="-g"
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main (void)
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"
4685 then :
4686 ac_cv_prog_cc_g=yes
4687 else $as_nop
4688 CFLAGS=""
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691
4692 int
4693 main (void)
4694 {
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"
4701 then :
4702
4703 else $as_nop
4704 ac_c_werror_flag=$ac_save_c_werror_flag
4705 CFLAGS="-g"
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708
4709 int
4710 main (void)
4711 {
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_c_try_compile "$LINENO"
4718 then :
4719 ac_cv_prog_cc_g=yes
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727 fi
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4730 if test $ac_test_CFLAGS; then
4731 CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4734 CFLAGS="-g -O2"
4735 else
4736 CFLAGS="-g"
4737 fi
4738 else
4739 if test "$GCC" = yes; then
4740 CFLAGS="-O2"
4741 else
4742 CFLAGS=
4743 fi
4744 fi
4745 ac_prog_cc_stdc=no
4746 if test x$ac_prog_cc_stdc = xno
4747 then :
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4749 printf %s "checking for $CC option to enable C11 features... " >&6; }
4750 if test ${ac_cv_prog_cc_c11+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 ac_cv_prog_cc_c11=no
4755 ac_save_CC=$CC
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 $ac_c_conftest_c11_program
4759 _ACEOF
4760 for ac_arg in '' -std=gnu11
4761 do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"
4764 then :
4765 ac_cv_prog_cc_c11=$ac_arg
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.beam
4768 test "x$ac_cv_prog_cc_c11" != "xno" && break
4769 done
4770 rm -f conftest.$ac_ext
4771 CC=$ac_save_CC
4772 fi
4773
4774 if test "x$ac_cv_prog_cc_c11" = xno
4775 then :
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 printf "%s\n" "unsupported" >&6; }
4778 else $as_nop
4779 if test "x$ac_cv_prog_cc_c11" = x
4780 then :
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4782 printf "%s\n" "none needed" >&6; }
4783 else $as_nop
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4785 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4786 CC="$CC $ac_cv_prog_cc_c11"
4787 fi
4788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4789 ac_prog_cc_stdc=c11
4790 fi
4791 fi
4792 if test x$ac_prog_cc_stdc = xno
4793 then :
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4795 printf %s "checking for $CC option to enable C99 features... " >&6; }
4796 if test ${ac_cv_prog_cc_c99+y}
4797 then :
4798 printf %s "(cached) " >&6
4799 else $as_nop
4800 ac_cv_prog_cc_c99=no
4801 ac_save_CC=$CC
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 $ac_c_conftest_c99_program
4805 _ACEOF
4806 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4807 do
4808 CC="$ac_save_CC $ac_arg"
4809 if ac_fn_c_try_compile "$LINENO"
4810 then :
4811 ac_cv_prog_cc_c99=$ac_arg
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.beam
4814 test "x$ac_cv_prog_cc_c99" != "xno" && break
4815 done
4816 rm -f conftest.$ac_ext
4817 CC=$ac_save_CC
4818 fi
4819
4820 if test "x$ac_cv_prog_cc_c99" = xno
4821 then :
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4823 printf "%s\n" "unsupported" >&6; }
4824 else $as_nop
4825 if test "x$ac_cv_prog_cc_c99" = x
4826 then :
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 printf "%s\n" "none needed" >&6; }
4829 else $as_nop
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4831 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4832 CC="$CC $ac_cv_prog_cc_c99"
4833 fi
4834 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4835 ac_prog_cc_stdc=c99
4836 fi
4837 fi
4838 if test x$ac_prog_cc_stdc = xno
4839 then :
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4841 printf %s "checking for $CC option to enable C89 features... " >&6; }
4842 if test ${ac_cv_prog_cc_c89+y}
4843 then :
4844 printf %s "(cached) " >&6
4845 else $as_nop
4846 ac_cv_prog_cc_c89=no
4847 ac_save_CC=$CC
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 $ac_c_conftest_c89_program
4851 _ACEOF
4852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4853 do
4854 CC="$ac_save_CC $ac_arg"
4855 if ac_fn_c_try_compile "$LINENO"
4856 then :
4857 ac_cv_prog_cc_c89=$ac_arg
4858 fi
4859 rm -f core conftest.err conftest.$ac_objext conftest.beam
4860 test "x$ac_cv_prog_cc_c89" != "xno" && break
4861 done
4862 rm -f conftest.$ac_ext
4863 CC=$ac_save_CC
4864 fi
4865
4866 if test "x$ac_cv_prog_cc_c89" = xno
4867 then :
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4869 printf "%s\n" "unsupported" >&6; }
4870 else $as_nop
4871 if test "x$ac_cv_prog_cc_c89" = x
4872 then :
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4874 printf "%s\n" "none needed" >&6; }
4875 else $as_nop
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4877 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4878 CC="$CC $ac_cv_prog_cc_c89"
4879 fi
4880 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4881 ac_prog_cc_stdc=c89
4882 fi
4883 fi
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892 if test -n "$want_auto_cflags"; then
4893 AUTO_CFLAGS="-g ${GCC:+-O2}"
4894 AUTO_LDFLAGS="-g ${GCC:+-O2}"
4895 # STYLE_CFLAGS="${GCC:+-Wno-parentheses} ${GCC:+-Wno-format-security} ${GCC:+-Wno-tautological-constant-out-of-range-compare}"
4896 STYLE_CFLAGS="${GCC:+-Wno-parentheses} ${GCC:+-Wno-format-security}"
4897 else
4898 AUTO_CFLAGS= AUTO_LDFLAGS= STYLE_CFLAGS=
4899 fi
4900
4901
4902 ac_header= ac_cache=
4903 for ac_item in $ac_header_c_list
4904 do
4905 if test $ac_cache; then
4906 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4907 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4908 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4909 fi
4910 ac_header= ac_cache=
4911 elif test $ac_header; then
4912 ac_cache=$ac_item
4913 else
4914 ac_header=$ac_item
4915 fi
4916 done
4917
4918
4919
4920
4921
4922
4923
4924
4925 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4926 then :
4927
4928 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4929
4930 fi
4931
4932
4933
4934
4935
4936
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4938 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4939 if test ${ac_cv_safe_to_define___extensions__+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else $as_nop
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 # define __EXTENSIONS__ 1
4947 $ac_includes_default
4948 int
4949 main (void)
4950 {
4951
4952 ;
4953 return 0;
4954 }
4955 _ACEOF
4956 if ac_fn_c_try_compile "$LINENO"
4957 then :
4958 ac_cv_safe_to_define___extensions__=yes
4959 else $as_nop
4960 ac_cv_safe_to_define___extensions__=no
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4963 fi
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4966
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4968 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4969 if test ${ac_cv_should_define__xopen_source+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else $as_nop
4973 ac_cv_should_define__xopen_source=no
4974 if test $ac_cv_header_wchar_h = yes
4975 then :
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978
4979 #include <wchar.h>
4980 mbstate_t x;
4981 int
4982 main (void)
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"
4990 then :
4991
4992 else $as_nop
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 #define _XOPEN_SOURCE 500
4997 #include <wchar.h>
4998 mbstate_t x;
4999 int
5000 main (void)
5001 {
5002
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"
5008 then :
5009 ac_cv_should_define__xopen_source=yes
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5014 fi
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5017 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5018
5019 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5020
5021 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5022
5023 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5024
5025 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5026
5027 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5028
5029 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5030
5031 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5032
5033 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5034
5035 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5036
5037 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5038
5039 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5040
5041 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5042
5043 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5044
5045 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5046
5047 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5048
5049 if test $ac_cv_header_minix_config_h = yes
5050 then :
5051 MINIX=yes
5052 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5053
5054 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5055
5056 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5057
5058 else $as_nop
5059 MINIX=
5060 fi
5061 if test $ac_cv_safe_to_define___extensions__ = yes
5062 then :
5063 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5064
5065 fi
5066 if test $ac_cv_should_define__xopen_source = yes
5067 then :
5068 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5069
5070 fi
5071
5072 # Check whether --enable-largefile was given.
5073 if test ${enable_largefile+y}
5074 then :
5075 enableval=$enable_largefile;
5076 fi
5077
5078 if test "$enable_largefile" != no; then
5079
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5081 printf %s "checking for special C compiler options needed for large files... " >&6; }
5082 if test ${ac_cv_sys_largefile_CC+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else $as_nop
5086 ac_cv_sys_largefile_CC=no
5087 if test "$GCC" != yes; then
5088 ac_save_CC=$CC
5089 while :; do
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5102 ? 1 : -1];
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"
5112 then :
5113 break
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.beam
5116 CC="$CC -n32"
5117 if ac_fn_c_try_compile "$LINENO"
5118 then :
5119 ac_cv_sys_largefile_CC=' -n32'; break
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.beam
5122 break
5123 done
5124 CC=$ac_save_CC
5125 rm -f conftest.$ac_ext
5126 fi
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5129 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5130 if test "$ac_cv_sys_largefile_CC" != no; then
5131 CC=$CC$ac_cv_sys_largefile_CC
5132 fi
5133
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5135 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5136 if test ${ac_cv_sys_file_offset_bits+y}
5137 then :
5138 printf %s "(cached) " >&6
5139 else $as_nop
5140 while :; do
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <sys/types.h>
5144 /* Check that off_t can represent 2**63 - 1 correctly.
5145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5146 since some C++ compilers masquerading as C compilers
5147 incorrectly reject 9223372036854775807. */
5148 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5150 && LARGE_OFF_T % 2147483647 == 1)
5151 ? 1 : -1];
5152 int
5153 main (void)
5154 {
5155
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 if ac_fn_c_try_compile "$LINENO"
5161 then :
5162 ac_cv_sys_file_offset_bits=no; break
5163 fi
5164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #define _FILE_OFFSET_BITS 64
5168 #include <sys/types.h>
5169 /* Check that off_t can represent 2**63 - 1 correctly.
5170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5171 since some C++ compilers masquerading as C compilers
5172 incorrectly reject 9223372036854775807. */
5173 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5175 && LARGE_OFF_T % 2147483647 == 1)
5176 ? 1 : -1];
5177 int
5178 main (void)
5179 {
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"
5186 then :
5187 ac_cv_sys_file_offset_bits=64; break
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5190 ac_cv_sys_file_offset_bits=unknown
5191 break
5192 done
5193 fi
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5195 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5196 case $ac_cv_sys_file_offset_bits in #(
5197 no | unknown) ;;
5198 *)
5199 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5200 ;;
5201 esac
5202 rm -rf conftest*
5203 if test $ac_cv_sys_file_offset_bits = unknown; then
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5205 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5206 if test ${ac_cv_sys_large_files+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else $as_nop
5210 while :; do
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <sys/types.h>
5214 /* Check that off_t can represent 2**63 - 1 correctly.
5215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5216 since some C++ compilers masquerading as C compilers
5217 incorrectly reject 9223372036854775807. */
5218 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5220 && LARGE_OFF_T % 2147483647 == 1)
5221 ? 1 : -1];
5222 int
5223 main (void)
5224 {
5225
5226 ;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"
5231 then :
5232 ac_cv_sys_large_files=no; break
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 #define _LARGE_FILES 1
5238 #include <sys/types.h>
5239 /* Check that off_t can represent 2**63 - 1 correctly.
5240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5241 since some C++ compilers masquerading as C compilers
5242 incorrectly reject 9223372036854775807. */
5243 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5245 && LARGE_OFF_T % 2147483647 == 1)
5246 ? 1 : -1];
5247 int
5248 main (void)
5249 {
5250
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"
5256 then :
5257 ac_cv_sys_large_files=1; break
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5260 ac_cv_sys_large_files=unknown
5261 break
5262 done
5263 fi
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5265 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5266 case $ac_cv_sys_large_files in #(
5267 no | unknown) ;;
5268 *)
5269 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5270 ;;
5271 esac
5272 rm -rf conftest*
5273 fi
5274 fi
5275
5276
5277
5278 SIGNAMES_O=
5279 SIGNAMES_H=lsignames.h
5280
5281
5282
5283 CROSS_COMPILE=
5284 if test "x$cross_compiling" = "xyes"; then
5285 case "${host}" in
5286 *-cygwin*)
5287 cross_cache=${srcdir}/cross-build/cygwin32.cache
5288 ;;
5289 *-mingw*)
5290 cross_cache=${srcdir}/cross-build/cygwin32.cache
5291 ;;
5292 i[3456]86-*-beos*)
5293 cross_cache=${srcdir}/cross-build/x86-beos.cache
5294 ;;
5295 *-qnx*)
5296 cross_cache=${srcdir}/cross-build/qnx.cache
5297 ;;
5298 *) echo "configure: cross-compiling for $host is not supported" >&2
5299 ;;
5300 esac
5301 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5302 echo "loading cross-build cache file ${cross_cache}"
5303 . ${cross_cache}
5304 fi
5305 unset cross_cache
5306 SIGNAMES_O='signames.o'
5307 CROSS_COMPILE='-DCROSS_COMPILING'
5308
5309 fi
5310
5311
5312
5313
5314 CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
5315 # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
5316
5317 if test "$opt_profiling" = "yes"; then
5318 PROFILE_FLAGS=-pg
5319 case "$host_os" in
5320 solaris2*|linux*|darwin*) ;;
5321 *) opt_static_link=yes ;;
5322 esac
5323 DEBUG= MALLOC_DEBUG=
5324 fi
5325
5326 prefer_shared=yes
5327 prefer_static=no
5328
5329 if test "$opt_static_link" = yes; then
5330 prefer_static=yes
5331 prefer_shared=no
5332 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5333 if test "$GCC" = "yes"; then
5334 STATIC_LD="-static"
5335 case "$host_os" in
5336 solaris2*|linux*) ;;
5337 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5338 esac
5339 fi
5340 fi
5341
5342 # set the appropriate make variables for building the "build tools"
5343 # modify defaults based on whether or not we are cross compiling, since the
5344 # options for the target host may not be appropriate for the build host
5345 if test "X$cross_compiling" = "Xno"; then
5346 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
5347 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
5348 if test X"$opt_profiling" = Xyes; then
5349 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(BASE_LDFLAGS)'}
5350 else
5351 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5352 fi
5353 # CFLAGS set above to default value if not passed in environment
5354 if test -n "$want_auto_cflags" ; then
5355 CFLAGS_FOR_BUILD="${CFLAGS}"
5356 BASE_CFLAGS_FOR_BUILD="${CFLAGS}"
5357 else
5358 # passed in environment
5359 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5360 BASE_CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5361 fi
5362 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
5363 else
5364 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
5365 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5366 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5367 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
5368 BASE_CFLAGS_FOR_BUILD=${BASE_CFLAGS_FOR_BUILD="-g"}
5369 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ac_ext=c
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5391 printf %s "checking how to run the C preprocessor... " >&6; }
5392 # On Suns, sometimes $CPP names a directory.
5393 if test -n "$CPP" && test -d "$CPP"; then
5394 CPP=
5395 fi
5396 if test -z "$CPP"; then
5397 if test ${ac_cv_prog_CPP+y}
5398 then :
5399 printf %s "(cached) " >&6
5400 else $as_nop
5401 # Double quotes because $CC needs to be expanded
5402 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5403 do
5404 ac_preproc_ok=false
5405 for ac_c_preproc_warn_flag in '' yes
5406 do
5407 # Use a header file that comes with gcc, so configuring glibc
5408 # with a fresh cross-compiler works.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <limits.h>
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"
5417 then :
5418
5419 else $as_nop
5420 # Broken: fails on valid input.
5421 continue
5422 fi
5423 rm -f conftest.err conftest.i conftest.$ac_ext
5424
5425 # OK, works on sane cases. Now check whether nonexistent headers
5426 # can be detected and how.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ac_nonexistent.h>
5430 _ACEOF
5431 if ac_fn_c_try_cpp "$LINENO"
5432 then :
5433 # Broken: success on invalid input.
5434 continue
5435 else $as_nop
5436 # Passes both tests.
5437 ac_preproc_ok=:
5438 break
5439 fi
5440 rm -f conftest.err conftest.i conftest.$ac_ext
5441
5442 done
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.i conftest.err conftest.$ac_ext
5445 if $ac_preproc_ok
5446 then :
5447 break
5448 fi
5449
5450 done
5451 ac_cv_prog_CPP=$CPP
5452
5453 fi
5454 CPP=$ac_cv_prog_CPP
5455 else
5456 ac_cv_prog_CPP=$CPP
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5459 printf "%s\n" "$CPP" >&6; }
5460 ac_preproc_ok=false
5461 for ac_c_preproc_warn_flag in '' yes
5462 do
5463 # Use a header file that comes with gcc, so configuring glibc
5464 # with a fresh cross-compiler works.
5465 # On the NeXT, cc -E runs the code through the compiler's parser,
5466 # not just through cpp. "Syntax error" is here to catch this case.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <limits.h>
5470 Syntax error
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"
5473 then :
5474
5475 else $as_nop
5476 # Broken: fails on valid input.
5477 continue
5478 fi
5479 rm -f conftest.err conftest.i conftest.$ac_ext
5480
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <ac_nonexistent.h>
5486 _ACEOF
5487 if ac_fn_c_try_cpp "$LINENO"
5488 then :
5489 # Broken: success on invalid input.
5490 continue
5491 else $as_nop
5492 # Passes both tests.
5493 ac_preproc_ok=:
5494 break
5495 fi
5496 rm -f conftest.err conftest.i conftest.$ac_ext
5497
5498 done
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.i conftest.err conftest.$ac_ext
5501 if $ac_preproc_ok
5502 then :
5503
5504 else $as_nop
5505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5506 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5507 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5508 See \`config.log' for more details" "$LINENO" 5; }
5509 fi
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5519 printf %s "checking for grep that handles long lines and -e... " >&6; }
5520 if test ${ac_cv_path_GREP+y}
5521 then :
5522 printf %s "(cached) " >&6
5523 else $as_nop
5524 if test -z "$GREP"; then
5525 ac_path_GREP_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529 do
5530 IFS=$as_save_IFS
5531 case $as_dir in #(((
5532 '') as_dir=./ ;;
5533 */) ;;
5534 *) as_dir=$as_dir/ ;;
5535 esac
5536 for ac_prog in grep ggrep
5537 do
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5540 as_fn_executable_p "$ac_path_GREP" || continue
5541 # Check for GNU ac_path_GREP and select it if it is found.
5542 # Check for GNU $ac_path_GREP
5543 case `"$ac_path_GREP" --version 2>&1` in
5544 *GNU*)
5545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5546 *)
5547 ac_count=0
5548 printf %s 0123456789 >"conftest.in"
5549 while :
5550 do
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 printf "%s\n" 'GREP' >> "conftest.nl"
5555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5557 as_fn_arith $ac_count + 1 && ac_count=$as_val
5558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_GREP="$ac_path_GREP"
5561 ac_path_GREP_max=$ac_count
5562 fi
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5565 done
5566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567 esac
5568
5569 $ac_path_GREP_found && break 3
5570 done
5571 done
5572 done
5573 IFS=$as_save_IFS
5574 if test -z "$ac_cv_path_GREP"; then
5575 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5576 fi
5577 else
5578 ac_cv_path_GREP=$GREP
5579 fi
5580
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5583 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5584 GREP="$ac_cv_path_GREP"
5585
5586
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5588 printf %s "checking for egrep... " >&6; }
5589 if test ${ac_cv_path_EGREP+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else $as_nop
5593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5594 then ac_cv_path_EGREP="$GREP -E"
5595 else
5596 if test -z "$EGREP"; then
5597 ac_path_EGREP_found=false
5598 # Loop through the user's path and test for each of PROGNAME-LIST
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5601 do
5602 IFS=$as_save_IFS
5603 case $as_dir in #(((
5604 '') as_dir=./ ;;
5605 */) ;;
5606 *) as_dir=$as_dir/ ;;
5607 esac
5608 for ac_prog in egrep
5609 do
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5612 as_fn_executable_p "$ac_path_EGREP" || continue
5613 # Check for GNU ac_path_EGREP and select it if it is found.
5614 # Check for GNU $ac_path_EGREP
5615 case `"$ac_path_EGREP" --version 2>&1` in
5616 *GNU*)
5617 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5618 *)
5619 ac_count=0
5620 printf %s 0123456789 >"conftest.in"
5621 while :
5622 do
5623 cat "conftest.in" "conftest.in" >"conftest.tmp"
5624 mv "conftest.tmp" "conftest.in"
5625 cp "conftest.in" "conftest.nl"
5626 printf "%s\n" 'EGREP' >> "conftest.nl"
5627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5629 as_fn_arith $ac_count + 1 && ac_count=$as_val
5630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5631 # Best one so far, save it but keep looking for a better one
5632 ac_cv_path_EGREP="$ac_path_EGREP"
5633 ac_path_EGREP_max=$ac_count
5634 fi
5635 # 10*(2^10) chars as input seems more than enough
5636 test $ac_count -gt 10 && break
5637 done
5638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5639 esac
5640
5641 $ac_path_EGREP_found && break 3
5642 done
5643 done
5644 done
5645 IFS=$as_save_IFS
5646 if test -z "$ac_cv_path_EGREP"; then
5647 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5648 fi
5649 else
5650 ac_cv_path_EGREP=$EGREP
5651 fi
5652
5653 fi
5654 fi
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5656 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5657 EGREP="$ac_cv_path_EGREP"
5658
5659
5660 if test $ac_cv_c_compiler_gnu = yes; then
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5662 printf %s "checking whether $CC needs -traditional... " >&6; }
5663 if test ${ac_cv_prog_gcc_traditional+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else $as_nop
5667 ac_pattern="Autoconf.*'x'"
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <sgtty.h>
5671 Autoconf TIOCGETP
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "$ac_pattern" >/dev/null 2>&1
5675 then :
5676 ac_cv_prog_gcc_traditional=yes
5677 else $as_nop
5678 ac_cv_prog_gcc_traditional=no
5679 fi
5680 rm -rf conftest*
5681
5682
5683 if test $ac_cv_prog_gcc_traditional = no; then
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <termio.h>
5687 Autoconf TCGETA
5688 _ACEOF
5689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5690 $EGREP "$ac_pattern" >/dev/null 2>&1
5691 then :
5692 ac_cv_prog_gcc_traditional=yes
5693 fi
5694 rm -rf conftest*
5695
5696 fi
5697 fi
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5699 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
5700 if test $ac_cv_prog_gcc_traditional = yes; then
5701 CC="$CC -traditional"
5702 fi
5703 fi
5704
5705
5706
5707 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5708 then
5709 # If the user specified --with-installed-readline=PREFIX and PREFIX
5710 # is not `yes', set ac_cv_rl_prefix to PREFIX
5711 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5712
5713
5714 if test "X$bash_cv_termcap_lib" = "X"; then
5715 _bash_needmsg=yes
5716 else
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5718 printf %s "checking which library has the termcap functions... " >&6; }
5719 _bash_needmsg=
5720 fi
5721 if test ${bash_cv_termcap_lib+y}
5722 then :
5723 printf %s "(cached) " >&6
5724 else $as_nop
5725 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5726 if test "x$ac_cv_func_tgetent" = xyes
5727 then :
5728 bash_cv_termcap_lib=libc
5729 else $as_nop
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5731 printf %s "checking for tgetent in -ltermcap... " >&6; }
5732 if test ${ac_cv_lib_termcap_tgetent+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else $as_nop
5736 ac_check_lib_save_LIBS=$LIBS
5737 LIBS="-ltermcap $LIBS"
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740
5741 /* Override any GCC internal prototype to avoid an error.
5742 Use char because int might match the return type of a GCC
5743 builtin and then its argument prototype would still apply. */
5744 char tgetent ();
5745 int
5746 main (void)
5747 {
5748 return tgetent ();
5749 ;
5750 return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_link "$LINENO"
5754 then :
5755 ac_cv_lib_termcap_tgetent=yes
5756 else $as_nop
5757 ac_cv_lib_termcap_tgetent=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5760 conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5762 fi
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5764 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
5765 if test "x$ac_cv_lib_termcap_tgetent" = xyes
5766 then :
5767 bash_cv_termcap_lib=libtermcap
5768 else $as_nop
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5770 printf %s "checking for tgetent in -ltinfo... " >&6; }
5771 if test ${ac_cv_lib_tinfo_tgetent+y}
5772 then :
5773 printf %s "(cached) " >&6
5774 else $as_nop
5775 ac_check_lib_save_LIBS=$LIBS
5776 LIBS="-ltinfo $LIBS"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779
5780 /* Override any GCC internal prototype to avoid an error.
5781 Use char because int might match the return type of a GCC
5782 builtin and then its argument prototype would still apply. */
5783 char tgetent ();
5784 int
5785 main (void)
5786 {
5787 return tgetent ();
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_link "$LINENO"
5793 then :
5794 ac_cv_lib_tinfo_tgetent=yes
5795 else $as_nop
5796 ac_cv_lib_tinfo_tgetent=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5803 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
5804 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
5805 then :
5806 bash_cv_termcap_lib=libtinfo
5807 else $as_nop
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5809 printf %s "checking for tgetent in -lcurses... " >&6; }
5810 if test ${ac_cv_lib_curses_tgetent+y}
5811 then :
5812 printf %s "(cached) " >&6
5813 else $as_nop
5814 ac_check_lib_save_LIBS=$LIBS
5815 LIBS="-lcurses $LIBS"
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5822 char tgetent ();
5823 int
5824 main (void)
5825 {
5826 return tgetent ();
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"
5832 then :
5833 ac_cv_lib_curses_tgetent=yes
5834 else $as_nop
5835 ac_cv_lib_curses_tgetent=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5838 conftest$ac_exeext conftest.$ac_ext
5839 LIBS=$ac_check_lib_save_LIBS
5840 fi
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5842 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
5843 if test "x$ac_cv_lib_curses_tgetent" = xyes
5844 then :
5845 bash_cv_termcap_lib=libcurses
5846 else $as_nop
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5848 printf %s "checking for tgetent in -lncurses... " >&6; }
5849 if test ${ac_cv_lib_ncurses_tgetent+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 ac_check_lib_save_LIBS=$LIBS
5854 LIBS="-lncurses $LIBS"
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5861 char tgetent ();
5862 int
5863 main (void)
5864 {
5865 return tgetent ();
5866 ;
5867 return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"
5871 then :
5872 ac_cv_lib_ncurses_tgetent=yes
5873 else $as_nop
5874 ac_cv_lib_ncurses_tgetent=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5877 conftest$ac_exeext conftest.$ac_ext
5878 LIBS=$ac_check_lib_save_LIBS
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5881 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
5882 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
5883 then :
5884 bash_cv_termcap_lib=libncurses
5885 else $as_nop
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
5887 printf %s "checking for tgetent in -lncursesw... " >&6; }
5888 if test ${ac_cv_lib_ncursesw_tgetent+y}
5889 then :
5890 printf %s "(cached) " >&6
5891 else $as_nop
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lncursesw $LIBS"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 char tgetent ();
5901 int
5902 main (void)
5903 {
5904 return tgetent ();
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 if ac_fn_c_try_link "$LINENO"
5910 then :
5911 ac_cv_lib_ncursesw_tgetent=yes
5912 else $as_nop
5913 ac_cv_lib_ncursesw_tgetent=no
5914 fi
5915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5916 conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5918 fi
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
5920 printf "%s\n" "$ac_cv_lib_ncursesw_tgetent" >&6; }
5921 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
5922 then :
5923 bash_cv_termcap_lib=libncursesw
5924 else $as_nop
5925 bash_cv_termcap_lib=gnutermcap
5926 fi
5927
5928 fi
5929
5930 fi
5931
5932 fi
5933
5934 fi
5935
5936 fi
5937
5938 fi
5939
5940 if test "X$_bash_needmsg" = "Xyes"; then
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5942 printf %s "checking which library has the termcap functions... " >&6; }
5943 fi
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
5945 printf "%s\n" "using $bash_cv_termcap_lib" >&6; }
5946 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5947 LDFLAGS="$LDFLAGS -L./lib/termcap"
5948 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5949 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5950 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5951 TERMCAP_LIB=-ltermcap
5952 TERMCAP_DEP=
5953 elif test $bash_cv_termcap_lib = libtinfo; then
5954 TERMCAP_LIB=-ltinfo
5955 TERMCAP_DEP=
5956 elif test $bash_cv_termcap_lib = libncurses; then
5957 TERMCAP_LIB=-lncurses
5958 TERMCAP_DEP=
5959 elif test $bash_cv_termcap_lib = libc; then
5960 TERMCAP_LIB=
5961 TERMCAP_DEP=
5962 else
5963 # we assume ncurses is installed somewhere the linker can find it
5964 TERMCAP_LIB=-lncurses
5965 TERMCAP_DEP=
5966 fi
5967
5968
5969
5970
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5
5972 printf %s "checking version of installed readline library... " >&6; }
5973
5974 # What a pain in the ass this is.
5975
5976 # save cpp and ld options
5977 _save_CFLAGS="$CFLAGS"
5978 _save_LDFLAGS="$LDFLAGS"
5979 _save_LIBS="$LIBS"
5980
5981 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5982 # allows the caller to do something like $_rl_prefix=$withval if the user
5983 # specifies --with-installed-readline=PREFIX as an argument to configure
5984
5985 if test -z "$ac_cv_rl_prefix"; then
5986 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5987 fi
5988
5989 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5990 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5991
5992 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5993 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5994 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5995
5996 if test ${ac_cv_rl_version+y}
5997 then :
5998 printf %s "(cached) " >&6
5999 else $as_nop
6000 if test "$cross_compiling" = yes
6001 then :
6002 ac_cv_rl_version='8.0'
6003
6004 else $as_nop
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007
6008 #include <stdio.h>
6009 #include <readline/readline.h>
6010 #include <stdlib.h>
6011
6012 extern int rl_gnu_readline_p;
6013
6014 int
6015 main()
6016 {
6017 FILE *fp;
6018 fp = fopen("conftest.rlv", "w");
6019 if (fp == 0)
6020 exit(1);
6021 if (rl_gnu_readline_p != 1)
6022 fprintf(fp, "0.0\n");
6023 else
6024 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
6025 fclose(fp);
6026 exit(0);
6027 }
6028
6029 _ACEOF
6030 if ac_fn_c_try_run "$LINENO"
6031 then :
6032 ac_cv_rl_version=`cat conftest.rlv`
6033 else $as_nop
6034 ac_cv_rl_version='0.0'
6035 fi
6036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6037 conftest.$ac_objext conftest.beam conftest.$ac_ext
6038 fi
6039
6040 fi
6041
6042
6043 CFLAGS="$_save_CFLAGS"
6044 LDFLAGS="$_save_LDFLAGS"
6045 LIBS="$_save_LIBS"
6046
6047 RL_MAJOR=0
6048 RL_MINOR=0
6049
6050 # (
6051 case "$ac_cv_rl_version" in
6052 2*|3*|4*|5*|6*|7*|8*|9*)
6053 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
6054 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
6055 ;;
6056 esac
6057
6058 # (((
6059 case $RL_MAJOR in
6060 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
6061 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
6062 *) _RL_MAJOR=00 ;;
6063 esac
6064
6065 # (((
6066 case $RL_MINOR in
6067 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
6068 [0-9]) _RL_MINOR=0$RL_MINOR ;;
6069 *) _RL_MINOR=00 ;;
6070 esac
6071
6072 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
6073
6074 # Readline versions greater than 4.2 have these defines in readline.h
6075
6076 if test $ac_cv_rl_version = '0.0' ; then
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5
6078 printf "%s\n" "$as_me: WARNING: Could not test version of installed readline library." >&2;}
6079 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
6080 # set these for use by the caller
6081 RL_PREFIX=$ac_cv_rl_prefix
6082 RL_LIBDIR=$ac_cv_rl_libdir
6083 RL_INCLUDEDIR=$ac_cv_rl_includedir
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
6085 printf "%s\n" "$ac_cv_rl_version" >&6; }
6086 else
6087
6088
6089 printf "%s\n" "#define RL_READLINE_VERSION $RL_VERSION" >>confdefs.h
6090
6091
6092 printf "%s\n" "#define RL_VERSION_MAJOR $RL_MAJOR" >>confdefs.h
6093
6094
6095 printf "%s\n" "#define RL_VERSION_MINOR $RL_MINOR" >>confdefs.h
6096
6097
6098
6099
6100
6101
6102 # set these for use by the caller
6103 RL_PREFIX=$ac_cv_rl_prefix
6104 RL_LIBDIR=$ac_cv_rl_libdir
6105 RL_INCLUDEDIR=$ac_cv_rl_includedir
6106
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5
6108 printf "%s\n" "$ac_cv_rl_version" >&6; }
6109
6110 fi
6111
6112
6113 case "$ac_cv_rl_version" in
6114 8*|9*) ;;
6115 *) opt_with_installed_readline=no
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5
6117 printf "%s\n" "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5
6119 printf "%s\n" "$as_me: WARNING: using private bash version" >&2;}
6120 ;;
6121 esac
6122 fi
6123
6124 TILDE_LIB=-ltilde
6125 if test $opt_readline = yes; then
6126 printf "%s\n" "#define READLINE 1" >>confdefs.h
6127
6128 if test "$opt_with_installed_readline" != "no" ; then
6129 case "$opt_with_installed_readline" in
6130 yes) RL_INCLUDE= ;;
6131 *) case "$RL_INCLUDEDIR" in
6132 /usr/include) ;;
6133 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
6134 esac
6135 ;;
6136 esac
6137 READLINE_DEP=
6138 READLINE_LIB=-lreadline
6139 # section for OS versions that don't allow unresolved symbols
6140 # to be compiled into dynamic libraries.
6141 case "$host_os" in
6142 cygwin*) TILDE_LIB= ;;
6143 esac
6144 else
6145 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
6146 READLINE_DEP='$(READLINE_LIBRARY)'
6147 # section for OS versions that ship an older/broken version of
6148 # readline as a standard dynamic library and don't allow a
6149 # static version specified as -llibname to override the
6150 # dynamic version
6151 case "${host_os}" in
6152 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
6153 *) READLINE_LIB=-lreadline ;;
6154 esac
6155 fi
6156 else
6157 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
6158 READLINE_LIB= READLINE_DEP=
6159 fi
6160 if test $opt_history = yes || test $opt_bang_history = yes; then
6161 if test $opt_history = yes; then
6162 printf "%s\n" "#define HISTORY 1" >>confdefs.h
6163
6164 fi
6165 if test $opt_bang_history = yes; then
6166 printf "%s\n" "#define BANG_HISTORY 1" >>confdefs.h
6167
6168 fi
6169 if test "$opt_with_installed_readline" != "no"; then
6170 HIST_LIBDIR=$RL_LIBDIR
6171 HISTORY_DEP=
6172 HISTORY_LIB=-lhistory
6173 case "$opt_with_installed_readline" in
6174 yes) RL_INCLUDE= ;;
6175 *) case "$RL_INCLUDEDIR" in
6176 /usr/include) ;;
6177 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
6178 esac
6179 ;;
6180 esac
6181 else
6182 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
6183 HISTORY_DEP='$(HISTORY_LIBRARY)'
6184 # section for OS versions that ship an older version of
6185 # readline as a standard dynamic library and don't allow a
6186 # static version specified as -llibname to override the
6187 # dynamic version
6188 case "${host_os}" in
6189 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
6190 *) HISTORY_LIB=-lhistory ;;
6191 esac
6192 fi
6193 else
6194 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
6195 HISTORY_LIB= HISTORY_DEP=
6196 fi
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209 # Find a good install program. We prefer a C program (faster),
6210 # so one script is as good as another. But avoid the broken or
6211 # incompatible versions:
6212 # SysV /etc/install, /usr/sbin/install
6213 # SunOS /usr/etc/install
6214 # IRIX /sbin/install
6215 # AIX /bin/install
6216 # AmigaOS /C/install, which installs bootblocks on floppy discs
6217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6220 # OS/2's system install, which has a completely different semantic
6221 # ./install, which can be erroneously created by make from ./install.sh.
6222 # Reject install programs that cannot install multiple files.
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6224 printf %s "checking for a BSD-compatible install... " >&6; }
6225 if test -z "$INSTALL"; then
6226 if test ${ac_cv_path_install+y}
6227 then :
6228 printf %s "(cached) " >&6
6229 else $as_nop
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 case $as_dir in #(((
6235 '') as_dir=./ ;;
6236 */) ;;
6237 *) as_dir=$as_dir/ ;;
6238 esac
6239 # Account for fact that we put trailing slashes in our PATH walk.
6240 case $as_dir in #((
6241 ./ | /[cC]/* | \
6242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6243 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6244 /usr/ucb/* ) ;;
6245 *)
6246 # OSF1 and SCO ODT 3.0 have their own names for install.
6247 # Don't use installbsd from OSF since it installs stuff as root
6248 # by default.
6249 for ac_prog in ginstall scoinst install; do
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
6252 if test $ac_prog = install &&
6253 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6254 # AIX install. It has an incompatible calling convention.
6255 :
6256 elif test $ac_prog = install &&
6257 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6258 # program-specific install script used by HP pwplus--don't use.
6259 :
6260 else
6261 rm -rf conftest.one conftest.two conftest.dir
6262 echo one > conftest.one
6263 echo two > conftest.two
6264 mkdir conftest.dir
6265 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
6266 test -s conftest.one && test -s conftest.two &&
6267 test -s conftest.dir/conftest.one &&
6268 test -s conftest.dir/conftest.two
6269 then
6270 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
6271 break 3
6272 fi
6273 fi
6274 fi
6275 done
6276 done
6277 ;;
6278 esac
6279
6280 done
6281 IFS=$as_save_IFS
6282
6283 rm -rf conftest.one conftest.two conftest.dir
6284
6285 fi
6286 if test ${ac_cv_path_install+y}; then
6287 INSTALL=$ac_cv_path_install
6288 else
6289 # As a last resort, use the slow shell script. Don't cache a
6290 # value for INSTALL within a source directory, because that will
6291 # break other packages using the cache if that directory is
6292 # removed, or if the value is a relative name.
6293 INSTALL=$ac_install_sh
6294 fi
6295 fi
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6297 printf "%s\n" "$INSTALL" >&6; }
6298
6299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6300 # It thinks the first close brace ends the variable substitution.
6301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6302
6303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6304
6305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6306
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ar; ac_word=$2
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 printf %s "checking for $ac_word... " >&6; }
6312 if test ${ac_cv_prog_AR+y}
6313 then :
6314 printf %s "(cached) " >&6
6315 else $as_nop
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 case $as_dir in #(((
6324 '') as_dir=./ ;;
6325 */) ;;
6326 *) as_dir=$as_dir/ ;;
6327 esac
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_AR="${ac_tool_prefix}ar"
6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 AR=$ac_cv_prog_AR
6341 if test -n "$AR"; then
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6343 printf "%s\n" "$AR" >&6; }
6344 else
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_AR"; then
6352 ac_ct_AR=$AR
6353 # Extract the first word of "ar", so it can be a program name with args.
6354 set dummy ar; ac_word=$2
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 printf %s "checking for $ac_word... " >&6; }
6357 if test ${ac_cv_prog_ac_ct_AR+y}
6358 then :
6359 printf %s "(cached) " >&6
6360 else $as_nop
6361 if test -n "$ac_ct_AR"; then
6362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 case $as_dir in #(((
6369 '') as_dir=./ ;;
6370 */) ;;
6371 *) as_dir=$as_dir/ ;;
6372 esac
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_AR="ar"
6376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6386 if test -n "$ac_ct_AR"; then
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6388 printf "%s\n" "$ac_ct_AR" >&6; }
6389 else
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 printf "%s\n" "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_AR" = x; then
6395 AR=""
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 AR=$ac_ct_AR
6404 fi
6405 else
6406 AR="$ac_cv_prog_AR"
6407 fi
6408
6409 test -n "$ARFLAGS" || ARFLAGS="cr"
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 printf %s "checking for $ac_word... " >&6; }
6415 if test ${ac_cv_prog_RANLIB+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
6419 if test -n "$RANLIB"; then
6420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 case $as_dir in #(((
6427 '') as_dir=./ ;;
6428 */) ;;
6429 *) as_dir=$as_dir/ ;;
6430 esac
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 RANLIB=$ac_cv_prog_RANLIB
6444 if test -n "$RANLIB"; then
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6446 printf "%s\n" "$RANLIB" >&6; }
6447 else
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 printf "%s\n" "no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_RANLIB"; then
6455 ac_ct_RANLIB=$RANLIB
6456 # Extract the first word of "ranlib", so it can be a program name with args.
6457 set dummy ranlib; ac_word=$2
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 printf %s "checking for $ac_word... " >&6; }
6460 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6461 then :
6462 printf %s "(cached) " >&6
6463 else $as_nop
6464 if test -n "$ac_ct_RANLIB"; then
6465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 case $as_dir in #(((
6472 '') as_dir=./ ;;
6473 */) ;;
6474 *) as_dir=$as_dir/ ;;
6475 esac
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_RANLIB="ranlib"
6479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6489 if test -n "$ac_ct_RANLIB"; then
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6491 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6492 else
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 printf "%s\n" "no" >&6; }
6495 fi
6496
6497 if test "x$ac_ct_RANLIB" = x; then
6498 RANLIB=":"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 RANLIB=$ac_ct_RANLIB
6507 fi
6508 else
6509 RANLIB="$ac_cv_prog_RANLIB"
6510 fi
6511
6512 for ac_prog in 'bison -y' byacc
6513 do
6514 # Extract the first word of "$ac_prog", so it can be a program name with args.
6515 set dummy $ac_prog; ac_word=$2
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 printf %s "checking for $ac_word... " >&6; }
6518 if test ${ac_cv_prog_YACC+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else $as_nop
6522 if test -n "$YACC"; then
6523 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 case $as_dir in #(((
6530 '') as_dir=./ ;;
6531 */) ;;
6532 *) as_dir=$as_dir/ ;;
6533 esac
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_YACC="$ac_prog"
6537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 YACC=$ac_cv_prog_YACC
6547 if test -n "$YACC"; then
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6549 printf "%s\n" "$YACC" >&6; }
6550 else
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 printf "%s\n" "no" >&6; }
6553 fi
6554
6555
6556 test -n "$YACC" && break
6557 done
6558 test -n "$YACC" || YACC="yacc"
6559
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6561 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6562 set x ${MAKE-make}
6563 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6564 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6565 then :
6566 printf %s "(cached) " >&6
6567 else $as_nop
6568 cat >conftest.make <<\_ACEOF
6569 SHELL = /bin/sh
6570 all:
6571 @echo '@@@%%%=$(MAKE)=@@@%%%'
6572 _ACEOF
6573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6575 *@@@%%%=?*=@@@%%%*)
6576 eval ac_cv_prog_make_${ac_make}_set=yes;;
6577 *)
6578 eval ac_cv_prog_make_${ac_make}_set=no;;
6579 esac
6580 rm -f conftest.make
6581 fi
6582 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 printf "%s\n" "yes" >&6; }
6585 SET_MAKE=
6586 else
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 SET_MAKE="MAKE=${MAKE-make}"
6590 fi
6591
6592
6593 case "$ac_cv_prog_YACC" in
6594 *bison*) ;;
6595 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bison not available; needed to process parse.y" >&5
6596 printf "%s\n" "$as_me: WARNING: bison not available; needed to process parse.y" >&2;} ;;
6597 esac
6598
6599 case "$host_os" in
6600 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6601 *) MAKE_SHELL=/bin/sh ;;
6602 esac
6603
6604
6605 if test x$SIZE = x; then
6606 if test x$ac_tool_prefix = x; then
6607 SIZE=size
6608 else
6609 SIZE=${ac_tool_prefix}size
6610 save_IFS=$IFS ; IFS=:
6611 size_found=0
6612 for dir in $PATH; do
6613 if test -x $dir/$SIZE ; then
6614 size_found=1
6615 break
6616 fi
6617 done
6618 if test $size_found -eq 0; then
6619 SIZE=:
6620 fi
6621 IFS=$save_IFS
6622 fi
6623 fi
6624
6625
6626 # Checks for stat-related time functions.
6627
6628 # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software
6629 # Foundation, Inc.
6630
6631 # This file is free software; the Free Software Foundation
6632 # gives unlimited permission to copy and/or distribute it,
6633 # with or without modifications, as long as this notice is preserved.
6634
6635
6636 # st_atim.tv_nsec - Linux, Solaris, Cygwin
6637 # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE
6638 # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE
6639 # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1)
6640
6641 # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway)
6642 # st_birthtim - Cygwin 1.7.0+
6643
6644
6645
6646 # Configure checks for struct timespec
6647
6648 # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc.
6649
6650 # This file is free software; the Free Software Foundation
6651 # gives unlimited permission to copy and/or distribute it,
6652 # with or without modifications, as long as this notice is preserved.
6653
6654 # Original written by Paul Eggert and Jim Meyering.
6655 # Modified by Chet Ramey for bash
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 # codeset.m4 serial 5 (gettext-0.18.2)
6668
6669
6670
6671
6672
6673
6674
6675
6676 # fcntl-o.m4 serial 6
6677
6678
6679
6680
6681 # Test whether the flags O_NOATIME and O_NOFOLLOW actually work.
6682 # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise.
6683 # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise.
6684
6685
6686 # gettext.m4 serial 69 (gettext-0.19.9)
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 # glibc2.m4 serial 3
6705
6706 # Test for the GNU C Library, version 2.0 or newer.
6707 # From Bruno Haible.
6708
6709
6710
6711 # glibc21.m4 serial 5
6712
6713 # Test for the GNU C Library, version 2.1 or newer, or uClibc.
6714 # From Bruno Haible.
6715
6716
6717
6718 # host-cpu-c-abi.m4 serial 11
6719
6720
6721
6722
6723
6724
6725
6726 # iconv.m4 serial 21
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 # intdiv0.m4 serial 6 (gettext-0.18.2)
6737
6738
6739
6740
6741 # intl.m4 serial 34 (gettext-0.19.9)
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 # intlmacosx.m4 serial 6 (gettext-0.19.9)
6754
6755
6756
6757 # intl-thread-locale.m4 serial 4
6758
6759
6760
6761
6762
6763 # intmax.m4 serial 6 (gettext-0.18.2)
6764
6765
6766
6767
6768 # inttypes-pri.m4 serial 7 (gettext-0.18.2)
6769
6770
6771
6772
6773 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
6774 # macros to non-string values. This is the case on AIX 4.3.3.
6775
6776
6777
6778 # inttypes.m4 serial 27
6779
6780
6781
6782
6783
6784
6785 # Ensure that the PRI* and SCN* macros are defined appropriately.
6786
6787
6788 # Define the symbol $1 to be 1 if the condition is true, 0 otherwise.
6789 # If $2 is true, the condition is $3; otherwise if long long int is supported
6790 # approximate the condition with $4; otherwise, assume the condition is false.
6791 # The condition should work on all C99 platforms; the approximations should be
6792 # good enough to work on all practical pre-C99 platforms.
6793 # $2 is evaluated by the C preprocessor, $3 and $4 as compile-time constants.
6794
6795
6796
6797
6798
6799
6800 # inttypes_h.m4 serial 10
6801
6802
6803 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
6804 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6805
6806
6807
6808 # lcmessage.m4 serial 7 (gettext-0.18.2)
6809
6810
6811 # Check whether LC_MESSAGES is available in <locale.h>.
6812
6813
6814
6815 # lib-ld.m4 serial 9
6816
6817
6818
6819
6820
6821
6822 # lib-link.m4 serial 28
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841 # lib-prefix.m4 serial 14
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 # lock.m4 serial 14
6853
6854
6855
6856
6857 # Prerequisites of lib/glthread/lock.c.
6858
6859
6860 # nls.m4 serial 5 (gettext-0.18)
6861
6862
6863
6864
6865
6866
6867 # po.m4 serial 24a
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 # printf-posix.m4 serial 6 (gettext-0.18.2)
6881
6882
6883
6884
6885 # progtest.m4 serial 7 (gettext-0.18.2)
6886
6887
6888
6889
6890 # Search path for a program which passes the given test.
6891
6892
6893
6894 # pthread_rwlock_rdlock.m4 serial 2
6895
6896
6897
6898
6899 # size_max.m4 serial 11
6900
6901
6902
6903
6904
6905
6906 # stdint_h.m4 serial 9
6907
6908
6909 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
6910 # doesn't clash with <sys/types.h>, and declares uintmax_t.
6911
6912
6913
6914 # threadlib.m4 serial 16
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 # uintmax_t.m4 serial 12
6937
6938
6939
6940
6941 # Define uintmax_t to 'unsigned long' or 'unsigned long long'
6942 # if it is not already defined in <stdint.h> or <inttypes.h>.
6943
6944
6945
6946 # ulonglong.m4 serial 10
6947
6948 # visibility.m4 serial 6
6949
6950
6951
6952
6953
6954 # wchar_t.m4 serial 4 (gettext-0.18.2)
6955
6956
6957
6958
6959 # wint_t.m4 serial 7
6960
6961
6962
6963
6964
6965
6966 # xsize.m4 serial 5
6967
6968
6969
6970
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6972 printf %s "checking for an ANSI C-conforming const... " >&6; }
6973 if test ${ac_cv_c_const+y}
6974 then :
6975 printf %s "(cached) " >&6
6976 else $as_nop
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979
6980 int
6981 main (void)
6982 {
6983
6984 #ifndef __cplusplus
6985 /* Ultrix mips cc rejects this sort of thing. */
6986 typedef int charset[2];
6987 const charset cs = { 0, 0 };
6988 /* SunOS 4.1.1 cc rejects this. */
6989 char const *const *pcpcc;
6990 char **ppc;
6991 /* NEC SVR4.0.2 mips cc rejects this. */
6992 struct point {int x, y;};
6993 static struct point const zero = {0,0};
6994 /* IBM XL C 1.02.0.0 rejects this.
6995 It does not let you subtract one const X* pointer from another in
6996 an arm of an if-expression whose if-part is not a constant
6997 expression */
6998 const char *g = "string";
6999 pcpcc = &g + (g ? g-g : 0);
7000 /* HPUX 7.0 cc rejects these. */
7001 ++pcpcc;
7002 ppc = (char**) pcpcc;
7003 pcpcc = (char const *const *) ppc;
7004 { /* SCO 3.2v4 cc rejects this sort of thing. */
7005 char tx;
7006 char *t = &tx;
7007 char const *s = 0 ? (char *) 0 : (char const *) 0;
7008
7009 *t++ = 0;
7010 if (s) return 0;
7011 }
7012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7013 int x[] = {25, 17};
7014 const int *foo = &x[0];
7015 ++foo;
7016 }
7017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7018 typedef const int *iptr;
7019 iptr p = 0;
7020 ++p;
7021 }
7022 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7024 struct s { int j; const int *ap[3]; } bx;
7025 struct s *b = &bx; b->j = 5;
7026 }
7027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7028 const int foo = 10;
7029 if (!foo) return 0;
7030 }
7031 return !cs[0] && !zero.x;
7032 #endif
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"
7039 then :
7040 ac_cv_c_const=yes
7041 else $as_nop
7042 ac_cv_c_const=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7045 fi
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7047 printf "%s\n" "$ac_cv_c_const" >&6; }
7048 if test $ac_cv_c_const = no; then
7049
7050 printf "%s\n" "#define const /**/" >>confdefs.h
7051
7052 fi
7053
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7055 printf %s "checking for inline... " >&6; }
7056 if test ${ac_cv_c_inline+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else $as_nop
7060 ac_cv_c_inline=no
7061 for ac_kw in inline __inline__ __inline; do
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifndef __cplusplus
7065 typedef int foo_t;
7066 static $ac_kw foo_t static_foo (void) {return 0; }
7067 $ac_kw foo_t foo (void) {return 0; }
7068 #endif
7069
7070 _ACEOF
7071 if ac_fn_c_try_compile "$LINENO"
7072 then :
7073 ac_cv_c_inline=$ac_kw
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7076 test "$ac_cv_c_inline" != no && break
7077 done
7078
7079 fi
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7081 printf "%s\n" "$ac_cv_c_inline" >&6; }
7082
7083 case $ac_cv_c_inline in
7084 inline | yes) ;;
7085 *)
7086 case $ac_cv_c_inline in
7087 no) ac_val=;;
7088 *) ac_val=$ac_cv_c_inline;;
7089 esac
7090 cat >>confdefs.h <<_ACEOF
7091 #ifndef __cplusplus
7092 #define inline $ac_val
7093 #endif
7094 _ACEOF
7095 ;;
7096 esac
7097
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7099 printf %s "checking whether byte ordering is bigendian... " >&6; }
7100 if test ${ac_cv_c_bigendian+y}
7101 then :
7102 printf %s "(cached) " >&6
7103 else $as_nop
7104 ac_cv_c_bigendian=unknown
7105 # See if we're dealing with a universal compiler.
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 #ifndef __APPLE_CC__
7109 not a universal capable compiler
7110 #endif
7111 typedef int dummy;
7112
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"
7115 then :
7116
7117 # Check for potential -arch flags. It is not universal unless
7118 # there are at least two -arch flags with different values.
7119 ac_arch=
7120 ac_prev=
7121 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7122 if test -n "$ac_prev"; then
7123 case $ac_word in
7124 i?86 | x86_64 | ppc | ppc64)
7125 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7126 ac_arch=$ac_word
7127 else
7128 ac_cv_c_bigendian=universal
7129 break
7130 fi
7131 ;;
7132 esac
7133 ac_prev=
7134 elif test "x$ac_word" = "x-arch"; then
7135 ac_prev=arch
7136 fi
7137 done
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7140 if test $ac_cv_c_bigendian = unknown; then
7141 # See if sys/param.h defines the BYTE_ORDER macro.
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #include <sys/types.h>
7145 #include <sys/param.h>
7146
7147 int
7148 main (void)
7149 {
7150 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7151 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7152 && LITTLE_ENDIAN)
7153 bogus endian macros
7154 #endif
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"
7161 then :
7162 # It does; now see whether it defined to BIG_ENDIAN or not.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <sys/types.h>
7166 #include <sys/param.h>
7167
7168 int
7169 main (void)
7170 {
7171 #if BYTE_ORDER != BIG_ENDIAN
7172 not big endian
7173 #endif
7174
7175 ;
7176 return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"
7180 then :
7181 ac_cv_c_bigendian=yes
7182 else $as_nop
7183 ac_cv_c_bigendian=no
7184 fi
7185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189 if test $ac_cv_c_bigendian = unknown; then
7190 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 #include <limits.h>
7194
7195 int
7196 main (void)
7197 {
7198 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7199 bogus endian macros
7200 #endif
7201
7202 ;
7203 return 0;
7204 }
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"
7207 then :
7208 # It does; now see whether it defined to _BIG_ENDIAN or not.
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <limits.h>
7212
7213 int
7214 main (void)
7215 {
7216 #ifndef _BIG_ENDIAN
7217 not big endian
7218 #endif
7219
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 if ac_fn_c_try_compile "$LINENO"
7225 then :
7226 ac_cv_c_bigendian=yes
7227 else $as_nop
7228 ac_cv_c_bigendian=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7233 fi
7234 if test $ac_cv_c_bigendian = unknown; then
7235 # Compile a test program.
7236 if test "$cross_compiling" = yes
7237 then :
7238 # Try to guess by grepping values from an object file.
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 unsigned short int ascii_mm[] =
7242 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7243 unsigned short int ascii_ii[] =
7244 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7245 int use_ascii (int i) {
7246 return ascii_mm[i] + ascii_ii[i];
7247 }
7248 unsigned short int ebcdic_ii[] =
7249 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7250 unsigned short int ebcdic_mm[] =
7251 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7252 int use_ebcdic (int i) {
7253 return ebcdic_mm[i] + ebcdic_ii[i];
7254 }
7255 extern int foo;
7256
7257 int
7258 main (void)
7259 {
7260 return use_ascii (foo) == use_ebcdic (foo);
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_compile "$LINENO"
7266 then :
7267 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7268 ac_cv_c_bigendian=yes
7269 fi
7270 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7271 if test "$ac_cv_c_bigendian" = unknown; then
7272 ac_cv_c_bigendian=no
7273 else
7274 # finding both strings is unlikely to happen, but who knows?
7275 ac_cv_c_bigendian=unknown
7276 fi
7277 fi
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7280 else $as_nop
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 $ac_includes_default
7284 int
7285 main (void)
7286 {
7287
7288 /* Are we little or big endian? From Harbison&Steele. */
7289 union
7290 {
7291 long int l;
7292 char c[sizeof (long int)];
7293 } u;
7294 u.l = 1;
7295 return u.c[sizeof (long int) - 1] == 1;
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_run "$LINENO"
7302 then :
7303 ac_cv_c_bigendian=no
7304 else $as_nop
7305 ac_cv_c_bigendian=yes
7306 fi
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7308 conftest.$ac_objext conftest.beam conftest.$ac_ext
7309 fi
7310
7311 fi
7312 fi
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7314 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7315 case $ac_cv_c_bigendian in #(
7316 yes)
7317 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7318 ;; #(
7319 no)
7320 ;; #(
7321 universal)
7322
7323 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7324
7325 ;; #(
7326 *)
7327 as_fn_error $? "unknown endianness
7328 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7329 esac
7330
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
7332 printf %s "checking for preprocessor stringizing operator... " >&6; }
7333 if test ${ac_cv_c_stringize+y}
7334 then :
7335 printf %s "(cached) " >&6
7336 else $as_nop
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #define x(y) #y
7340
7341 char *s = x(teststring);
7342 _ACEOF
7343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344 $EGREP "#teststring" >/dev/null 2>&1
7345 then :
7346 ac_cv_c_stringize=no
7347 else $as_nop
7348 ac_cv_c_stringize=yes
7349 fi
7350 rm -rf conftest*
7351
7352 fi
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
7354 printf "%s\n" "$ac_cv_c_stringize" >&6; }
7355 if test $ac_cv_c_stringize = yes; then
7356
7357 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
7358
7359 fi
7360
7361
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7363 printf %s "checking for long double... " >&6; }
7364 if test ${ac_cv_type_long_double+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else $as_nop
7368 if test "$GCC" = yes; then
7369 ac_cv_type_long_double=yes
7370 else
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 /* The Stardent Vistra knows sizeof (long double), but does
7374 not support it. */
7375 long double foo = 0.0L;
7376 int
7377 main (void)
7378 {
7379 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7380 sizeof (double) <= sizeof (long double))];
7381 test_array [0] = 0;
7382 return test_array [0];
7383
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_compile "$LINENO"
7389 then :
7390 ac_cv_type_long_double=yes
7391 else $as_nop
7392 ac_cv_type_long_double=no
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7395 fi
7396 fi
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
7398 printf "%s\n" "$ac_cv_type_long_double" >&6; }
7399 if test $ac_cv_type_long_double = yes; then
7400
7401 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7402
7403 fi
7404
7405 if test "$ac_prog_cc_stdc" != no; then
7406
7407 printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
7408
7409
7410 printf "%s\n" "#define __PROTOTYPES 1" >>confdefs.h
7411
7412 fi
7413
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7415 printf %s "checking whether char is unsigned... " >&6; }
7416 if test ${ac_cv_c_char_unsigned+y}
7417 then :
7418 printf %s "(cached) " >&6
7419 else $as_nop
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 $ac_includes_default
7423 int
7424 main (void)
7425 {
7426 static int test_array [1 - 2 * !(((char) -1) < 0)];
7427 test_array [0] = 0;
7428 return test_array [0];
7429
7430 ;
7431 return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"
7435 then :
7436 ac_cv_c_char_unsigned=no
7437 else $as_nop
7438 ac_cv_c_char_unsigned=yes
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7441 fi
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7443 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
7444 if test $ac_cv_c_char_unsigned = yes; then
7445 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7446
7447 fi
7448
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7450 printf %s "checking for working volatile... " >&6; }
7451 if test ${ac_cv_c_volatile+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else $as_nop
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457
7458 int
7459 main (void)
7460 {
7461
7462 volatile int x;
7463 int * volatile y = (int *) 0;
7464 return !x && !y;
7465 ;
7466 return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"
7470 then :
7471 ac_cv_c_volatile=yes
7472 else $as_nop
7473 ac_cv_c_volatile=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7476 fi
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7478 printf "%s\n" "$ac_cv_c_volatile" >&6; }
7479 if test $ac_cv_c_volatile = no; then
7480
7481 printf "%s\n" "#define volatile /**/" >>confdefs.h
7482
7483 fi
7484
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7486 printf %s "checking for C/C++ restrict keyword... " >&6; }
7487 if test ${ac_cv_c_restrict+y}
7488 then :
7489 printf %s "(cached) " >&6
7490 else $as_nop
7491 ac_cv_c_restrict=no
7492 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7493 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7494 # Put 'restrict' last, because C++ lacks it.
7495 for ac_kw in __restrict__ __restrict _Restrict restrict; do
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 typedef int *int_ptr;
7499 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7500 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7501 int bar (int ip[$ac_kw]) { return ip[0]; }
7502
7503 int
7504 main (void)
7505 {
7506 int s[1];
7507 int *$ac_kw t = s;
7508 t[0] = 0;
7509 return foo (t) + bar (t);
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"
7516 then :
7517 ac_cv_c_restrict=$ac_kw
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7520 test "$ac_cv_c_restrict" != no && break
7521 done
7522
7523 fi
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7525 printf "%s\n" "$ac_cv_c_restrict" >&6; }
7526
7527 case $ac_cv_c_restrict in
7528 restrict) ;;
7529 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
7530 ;;
7531 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
7532 ;;
7533 esac
7534
7535
7536
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
7538 printf %s "checking for a race-free mkdir -p... " >&6; }
7539 if test -z "$MKDIR_P"; then
7540 if test ${ac_cv_path_mkdir+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else $as_nop
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7546 do
7547 IFS=$as_save_IFS
7548 case $as_dir in #(((
7549 '') as_dir=./ ;;
7550 */) ;;
7551 *) as_dir=$as_dir/ ;;
7552 esac
7553 for ac_prog in mkdir gmkdir; do
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
7556 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
7557 'mkdir ('*'coreutils) '* | \
7558 'BusyBox '* | \
7559 'mkdir (fileutils) '4.1*)
7560 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
7561 break 3;;
7562 esac
7563 done
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568 fi
7569
7570 test -d ./--version && rmdir ./--version
7571 if test ${ac_cv_path_mkdir+y}; then
7572 MKDIR_P="$ac_cv_path_mkdir -p"
7573 else
7574 # As a last resort, use the slow shell script. Don't cache a
7575 # value for MKDIR_P within a source directory, because that will
7576 # break other packages using the cache if that directory is
7577 # removed, or if the value is a relative name.
7578 MKDIR_P="$ac_install_sh -d"
7579 fi
7580 fi
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7582 printf "%s\n" "$MKDIR_P" >&6; }
7583
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7585 printf %s "checking for a sed that does not truncate output... " >&6; }
7586 if test ${ac_cv_path_SED+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7591 for ac_i in 1 2 3 4 5 6 7; do
7592 ac_script="$ac_script$as_nl$ac_script"
7593 done
7594 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7595 { ac_script=; unset ac_script;}
7596 if test -z "$SED"; then
7597 ac_path_SED_found=false
7598 # Loop through the user's path and test for each of PROGNAME-LIST
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 case $as_dir in #(((
7604 '') as_dir=./ ;;
7605 */) ;;
7606 *) as_dir=$as_dir/ ;;
7607 esac
7608 for ac_prog in sed gsed
7609 do
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7612 as_fn_executable_p "$ac_path_SED" || continue
7613 # Check for GNU ac_path_SED and select it if it is found.
7614 # Check for GNU $ac_path_SED
7615 case `"$ac_path_SED" --version 2>&1` in
7616 *GNU*)
7617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7618 *)
7619 ac_count=0
7620 printf %s 0123456789 >"conftest.in"
7621 while :
7622 do
7623 cat "conftest.in" "conftest.in" >"conftest.tmp"
7624 mv "conftest.tmp" "conftest.in"
7625 cp "conftest.in" "conftest.nl"
7626 printf "%s\n" '' >> "conftest.nl"
7627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7629 as_fn_arith $ac_count + 1 && ac_count=$as_val
7630 if test $ac_count -gt ${ac_path_SED_max-0}; then
7631 # Best one so far, save it but keep looking for a better one
7632 ac_cv_path_SED="$ac_path_SED"
7633 ac_path_SED_max=$ac_count
7634 fi
7635 # 10*(2^10) chars as input seems more than enough
7636 test $ac_count -gt 10 && break
7637 done
7638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7639 esac
7640
7641 $ac_path_SED_found && break 3
7642 done
7643 done
7644 done
7645 IFS=$as_save_IFS
7646 if test -z "$ac_cv_path_SED"; then
7647 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7648 fi
7649 else
7650 ac_cv_path_SED=$SED
7651 fi
7652
7653 fi
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7655 printf "%s\n" "$ac_cv_path_SED" >&6; }
7656 SED="$ac_cv_path_SED"
7657 rm -f conftest.sed
7658
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7661 printf %s "checking whether NLS is requested... " >&6; }
7662 # Check whether --enable-nls was given.
7663 if test ${enable_nls+y}
7664 then :
7665 enableval=$enable_nls; USE_NLS=$enableval
7666 else $as_nop
7667 USE_NLS=yes
7668 fi
7669
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7671 printf "%s\n" "$USE_NLS" >&6; }
7672
7673
7674
7675
7676 GETTEXT_MACRO_VERSION=0.19
7677
7678
7679
7680
7681 # Prepare PATH_SEPARATOR.
7682 # The user is always right.
7683 if test "${PATH_SEPARATOR+set}" != set; then
7684 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7685 # contains only /bin. Note that ksh looks also at the FPATH variable,
7686 # so we have to set that as well for the test.
7687 PATH_SEPARATOR=:
7688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7689 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7690 || PATH_SEPARATOR=';'
7691 }
7692 fi
7693
7694 # Find out how to test for executable files. Don't use a zero-byte file,
7695 # as systems may use methods other than mode bits to determine executability.
7696 cat >conf$$.file <<_ASEOF
7697 #! /bin/sh
7698 exit 0
7699 _ASEOF
7700 chmod +x conf$$.file
7701 if test -x conf$$.file >/dev/null 2>&1; then
7702 ac_executable_p="test -x"
7703 else
7704 ac_executable_p="test -f"
7705 fi
7706 rm -f conf$$.file
7707
7708 # Extract the first word of "msgfmt", so it can be a program name with args.
7709 set dummy msgfmt; ac_word=$2
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s "checking for $ac_word... " >&6; }
7712 if test ${ac_cv_path_MSGFMT+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else $as_nop
7716 case "$MSGFMT" in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7722 for ac_dir in $PATH; do
7723 IFS="$ac_save_IFS"
7724 test -z "$ac_dir" && ac_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7727 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7728 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7731 break 2
7732 fi
7733 fi
7734 done
7735 done
7736 IFS="$ac_save_IFS"
7737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7738 ;;
7739 esac
7740 fi
7741 MSGFMT="$ac_cv_path_MSGFMT"
7742 if test "$MSGFMT" != ":"; then
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7744 printf "%s\n" "$MSGFMT" >&6; }
7745 else
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 printf "%s\n" "no" >&6; }
7748 fi
7749
7750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7751 set dummy gmsgfmt; ac_word=$2
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 printf %s "checking for $ac_word... " >&6; }
7754 if test ${ac_cv_path_GMSGFMT+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else $as_nop
7758 case $GMSGFMT in
7759 [\\/]* | ?:[\\/]*)
7760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7761 ;;
7762 *)
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766 IFS=$as_save_IFS
7767 case $as_dir in #(((
7768 '') as_dir=./ ;;
7769 */) ;;
7770 *) as_dir=$as_dir/ ;;
7771 esac
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7774 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
7775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7783 ;;
7784 esac
7785 fi
7786 GMSGFMT=$ac_cv_path_GMSGFMT
7787 if test -n "$GMSGFMT"; then
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7789 printf "%s\n" "$GMSGFMT" >&6; }
7790 else
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7793 fi
7794
7795
7796
7797 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7798 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7799 *) MSGFMT_015=$MSGFMT ;;
7800 esac
7801
7802 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7803 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7804 *) GMSGFMT_015=$GMSGFMT ;;
7805 esac
7806
7807
7808
7809 # Prepare PATH_SEPARATOR.
7810 # The user is always right.
7811 if test "${PATH_SEPARATOR+set}" != set; then
7812 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7813 # contains only /bin. Note that ksh looks also at the FPATH variable,
7814 # so we have to set that as well for the test.
7815 PATH_SEPARATOR=:
7816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7817 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7818 || PATH_SEPARATOR=';'
7819 }
7820 fi
7821
7822 # Find out how to test for executable files. Don't use a zero-byte file,
7823 # as systems may use methods other than mode bits to determine executability.
7824 cat >conf$$.file <<_ASEOF
7825 #! /bin/sh
7826 exit 0
7827 _ASEOF
7828 chmod +x conf$$.file
7829 if test -x conf$$.file >/dev/null 2>&1; then
7830 ac_executable_p="test -x"
7831 else
7832 ac_executable_p="test -f"
7833 fi
7834 rm -f conf$$.file
7835
7836 # Extract the first word of "xgettext", so it can be a program name with args.
7837 set dummy xgettext; ac_word=$2
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 printf %s "checking for $ac_word... " >&6; }
7840 if test ${ac_cv_path_XGETTEXT+y}
7841 then :
7842 printf %s "(cached) " >&6
7843 else $as_nop
7844 case "$XGETTEXT" in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7850 for ac_dir in $PATH; do
7851 IFS="$ac_save_IFS"
7852 test -z "$ac_dir" && ac_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7855 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7856 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7857 (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
7858 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7859 break 2
7860 fi
7861 fi
7862 done
7863 done
7864 IFS="$ac_save_IFS"
7865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7866 ;;
7867 esac
7868 fi
7869 XGETTEXT="$ac_cv_path_XGETTEXT"
7870 if test "$XGETTEXT" != ":"; then
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7872 printf "%s\n" "$XGETTEXT" >&6; }
7873 else
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 printf "%s\n" "no" >&6; }
7876 fi
7877
7878 rm -f messages.po
7879
7880 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7881 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7882 *) XGETTEXT_015=$XGETTEXT ;;
7883 esac
7884
7885
7886
7887 # Prepare PATH_SEPARATOR.
7888 # The user is always right.
7889 if test "${PATH_SEPARATOR+set}" != set; then
7890 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7891 # contains only /bin. Note that ksh looks also at the FPATH variable,
7892 # so we have to set that as well for the test.
7893 PATH_SEPARATOR=:
7894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7895 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7896 || PATH_SEPARATOR=';'
7897 }
7898 fi
7899
7900 # Find out how to test for executable files. Don't use a zero-byte file,
7901 # as systems may use methods other than mode bits to determine executability.
7902 cat >conf$$.file <<_ASEOF
7903 #! /bin/sh
7904 exit 0
7905 _ASEOF
7906 chmod +x conf$$.file
7907 if test -x conf$$.file >/dev/null 2>&1; then
7908 ac_executable_p="test -x"
7909 else
7910 ac_executable_p="test -f"
7911 fi
7912 rm -f conf$$.file
7913
7914 # Extract the first word of "msgmerge", so it can be a program name with args.
7915 set dummy msgmerge; ac_word=$2
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 printf %s "checking for $ac_word... " >&6; }
7918 if test ${ac_cv_path_MSGMERGE+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else $as_nop
7922 case "$MSGMERGE" in
7923 [\\/]* | ?:[\\/]*)
7924 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7925 ;;
7926 *)
7927 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7928 for ac_dir in $PATH; do
7929 IFS="$ac_save_IFS"
7930 test -z "$ac_dir" && ac_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7933 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7934 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7935 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7936 break 2
7937 fi
7938 fi
7939 done
7940 done
7941 IFS="$ac_save_IFS"
7942 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7943 ;;
7944 esac
7945 fi
7946 MSGMERGE="$ac_cv_path_MSGMERGE"
7947 if test "$MSGMERGE" != ":"; then
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7949 printf "%s\n" "$MSGMERGE" >&6; }
7950 else
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 printf "%s\n" "no" >&6; }
7953 fi
7954
7955
7956 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7957
7958
7959 ac_config_commands="$ac_config_commands po-directories"
7960
7961
7962
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
7964 printf %s "checking whether we are using the GNU C Library 2 or newer... " >&6; }
7965 if test ${ac_cv_gnu_library_2+y}
7966 then :
7967 printf %s "(cached) " >&6
7968 else $as_nop
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971
7972 #include <features.h>
7973 #ifdef __GNU_LIBRARY__
7974 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
7975 Lucky GNU user
7976 #endif
7977 #endif
7978
7979 _ACEOF
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "Lucky GNU user" >/dev/null 2>&1
7982 then :
7983 ac_cv_gnu_library_2=yes
7984 else $as_nop
7985 ac_cv_gnu_library_2=no
7986 fi
7987 rm -rf conftest*
7988
7989
7990
7991 fi
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
7993 printf "%s\n" "$ac_cv_gnu_library_2" >&6; }
7994
7995 GLIBC2="$ac_cv_gnu_library_2"
7996
7997
7998
7999
8000 CFLAG_VISIBILITY=
8001 HAVE_VISIBILITY=0
8002 if test -n "$GCC"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
8004 printf %s "checking whether the -Werror option is usable... " >&6; }
8005 if test ${gl_cv_cc_vis_werror+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else $as_nop
8009 gl_save_CFLAGS="$CFLAGS"
8010 CFLAGS="$CFLAGS -Werror"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013
8014 int
8015 main (void)
8016 {
8017
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"
8023 then :
8024 gl_cv_cc_vis_werror=yes
8025 else $as_nop
8026 gl_cv_cc_vis_werror=no
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8029 CFLAGS="$gl_save_CFLAGS"
8030
8031 fi
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
8033 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8035 printf %s "checking for simple visibility declarations... " >&6; }
8036 if test ${gl_cv_cc_visibility+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
8040 gl_save_CFLAGS="$CFLAGS"
8041 CFLAGS="$CFLAGS -fvisibility=hidden"
8042 if test $gl_cv_cc_vis_werror = yes; then
8043 CFLAGS="$CFLAGS -Werror"
8044 fi
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8048 extern __attribute__((__visibility__("default"))) int exportedvar;
8049 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8050 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8051 void dummyfunc (void) {}
8052
8053 int
8054 main (void)
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_compile "$LINENO"
8062 then :
8063 gl_cv_cc_visibility=yes
8064 else $as_nop
8065 gl_cv_cc_visibility=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8068 CFLAGS="$gl_save_CFLAGS"
8069
8070 fi
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8072 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
8073 if test $gl_cv_cc_visibility = yes; then
8074 CFLAG_VISIBILITY="-fvisibility=hidden"
8075 HAVE_VISIBILITY=1
8076 fi
8077 fi
8078
8079
8080
8081 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
8082
8083
8084 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8085 if test "x$ac_cv_type_size_t" = xyes
8086 then :
8087
8088 else $as_nop
8089
8090 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8091
8092 fi
8093
8094
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8096 printf %s "checking for stdint.h... " >&6; }
8097 if test ${gl_cv_header_stdint_h+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else $as_nop
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <stdint.h>
8105 int
8106 main (void)
8107 {
8108 uintmax_t i = (uintmax_t) -1; return !i;
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_compile "$LINENO"
8114 then :
8115 gl_cv_header_stdint_h=yes
8116 else $as_nop
8117 gl_cv_header_stdint_h=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8120 fi
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8122 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
8123 if test $gl_cv_header_stdint_h = yes; then
8124
8125 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
8126
8127 fi
8128
8129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8130 # for constant arguments. Useless!
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8132 printf %s "checking for working alloca.h... " >&6; }
8133 if test ${ac_cv_working_alloca_h+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else $as_nop
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 #include <alloca.h>
8140 int
8141 main (void)
8142 {
8143 char *p = (char *) alloca (2 * sizeof (int));
8144 if (p) return 0;
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"
8150 then :
8151 ac_cv_working_alloca_h=yes
8152 else $as_nop
8153 ac_cv_working_alloca_h=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8156 conftest$ac_exeext conftest.$ac_ext
8157 fi
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8159 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
8160 if test $ac_cv_working_alloca_h = yes; then
8161
8162 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
8163
8164 fi
8165
8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8167 printf %s "checking for alloca... " >&6; }
8168 if test ${ac_cv_func_alloca_works+y}
8169 then :
8170 printf %s "(cached) " >&6
8171 else $as_nop
8172 if test $ac_cv_working_alloca_h = yes; then
8173 ac_cv_func_alloca_works=yes
8174 else
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <stdlib.h>
8178 #include <stddef.h>
8179 #ifndef alloca
8180 # ifdef __GNUC__
8181 # define alloca __builtin_alloca
8182 # elif defined _MSC_VER
8183 # include <malloc.h>
8184 # define alloca _alloca
8185 # else
8186 # ifdef __cplusplus
8187 extern "C"
8188 # endif
8189 void *alloca (size_t);
8190 # endif
8191 #endif
8192
8193 int
8194 main (void)
8195 {
8196 char *p = (char *) alloca (1);
8197 if (p) return 0;
8198 ;
8199 return 0;
8200 }
8201 _ACEOF
8202 if ac_fn_c_try_link "$LINENO"
8203 then :
8204 ac_cv_func_alloca_works=yes
8205 else $as_nop
8206 ac_cv_func_alloca_works=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8209 conftest$ac_exeext conftest.$ac_ext
8210 fi
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8212 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8213 fi
8214
8215 if test $ac_cv_func_alloca_works = yes; then
8216
8217 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8218
8219 else
8220 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8221 # that cause trouble. Some versions do not even contain alloca or
8222 # contain a buggy version. If you still want to use their alloca,
8223 # use ar to extract alloca.o from them instead of compiling alloca.c.
8224
8225 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8226
8227 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8228
8229
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8231 printf %s "checking stack direction for C alloca... " >&6; }
8232 if test ${ac_cv_c_stack_direction+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else $as_nop
8236 if test "$cross_compiling" = yes
8237 then :
8238 ac_cv_c_stack_direction=0
8239 else $as_nop
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 int
8244 find_stack_direction (int *addr, int depth)
8245 {
8246 int dir, dummy = 0;
8247 if (! addr)
8248 addr = &dummy;
8249 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8250 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8251 return dir + dummy;
8252 }
8253
8254 int
8255 main (int argc, char **argv)
8256 {
8257 return find_stack_direction (0, argc + !argv + 20) < 0;
8258 }
8259 _ACEOF
8260 if ac_fn_c_try_run "$LINENO"
8261 then :
8262 ac_cv_c_stack_direction=1
8263 else $as_nop
8264 ac_cv_c_stack_direction=-1
8265 fi
8266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8267 conftest.$ac_objext conftest.beam conftest.$ac_ext
8268 fi
8269
8270 fi
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8272 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8273 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8274
8275
8276 fi
8277
8278
8279 ac_func=
8280 for ac_item in $ac_func_c_list
8281 do
8282 if test $ac_func; then
8283 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
8284 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
8285 echo "#define $ac_item 1" >> confdefs.h
8286 fi
8287 ac_func=
8288 else
8289 ac_func=$ac_item
8290 fi
8291 done
8292
8293
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8295 printf %s "checking for working mmap... " >&6; }
8296 if test ${ac_cv_func_mmap_fixed_mapped+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 if test "$cross_compiling" = yes
8301 then :
8302 case "$host_os" in # ((
8303 # Guess yes on platforms where we know the result.
8304 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
8305 # If we don't know, assume the worst.
8306 *) ac_cv_func_mmap_fixed_mapped=no ;;
8307 esac
8308 else $as_nop
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 /* malloc might have been renamed as rpl_malloc. */
8313 #undef malloc
8314
8315 /* Thanks to Mike Haertel and Jim Avera for this test.
8316 Here is a matrix of mmap possibilities:
8317 mmap private not fixed
8318 mmap private fixed at somewhere currently unmapped
8319 mmap private fixed at somewhere already mapped
8320 mmap shared not fixed
8321 mmap shared fixed at somewhere currently unmapped
8322 mmap shared fixed at somewhere already mapped
8323 For private mappings, we should verify that changes cannot be read()
8324 back from the file, nor mmap's back from the file at a different
8325 address. (There have been systems where private was not correctly
8326 implemented like the infamous i386 svr4.0, and systems where the
8327 VM page cache was not coherent with the file system buffer cache
8328 like early versions of FreeBSD and possibly contemporary NetBSD.)
8329 For shared mappings, we should conversely verify that changes get
8330 propagated back to all the places they're supposed to be.
8331
8332 Grep wants private fixed already mapped.
8333 The main things grep needs to know about mmap are:
8334 * does it exist and is it safe to write into the mmap'd area
8335 * how to use it (BSD variants) */
8336
8337 #include <fcntl.h>
8338 #include <sys/mman.h>
8339
8340 /* This mess was copied from the GNU getpagesize.h. */
8341 #ifndef HAVE_GETPAGESIZE
8342 # ifdef _SC_PAGESIZE
8343 # define getpagesize() sysconf(_SC_PAGESIZE)
8344 # else /* no _SC_PAGESIZE */
8345 # ifdef HAVE_SYS_PARAM_H
8346 # include <sys/param.h>
8347 # ifdef EXEC_PAGESIZE
8348 # define getpagesize() EXEC_PAGESIZE
8349 # else /* no EXEC_PAGESIZE */
8350 # ifdef NBPG
8351 # define getpagesize() NBPG * CLSIZE
8352 # ifndef CLSIZE
8353 # define CLSIZE 1
8354 # endif /* no CLSIZE */
8355 # else /* no NBPG */
8356 # ifdef NBPC
8357 # define getpagesize() NBPC
8358 # else /* no NBPC */
8359 # ifdef PAGESIZE
8360 # define getpagesize() PAGESIZE
8361 # endif /* PAGESIZE */
8362 # endif /* no NBPC */
8363 # endif /* no NBPG */
8364 # endif /* no EXEC_PAGESIZE */
8365 # else /* no HAVE_SYS_PARAM_H */
8366 # define getpagesize() 8192 /* punt totally */
8367 # endif /* no HAVE_SYS_PARAM_H */
8368 # endif /* no _SC_PAGESIZE */
8369
8370 #endif /* no HAVE_GETPAGESIZE */
8371
8372 int
8373 main (void)
8374 {
8375 char *data, *data2, *data3;
8376 const char *cdata2;
8377 int i, pagesize;
8378 int fd, fd2;
8379
8380 pagesize = getpagesize ();
8381
8382 /* First, make a file with some known garbage in it. */
8383 data = (char *) malloc (pagesize);
8384 if (!data)
8385 return 1;
8386 for (i = 0; i < pagesize; ++i)
8387 *(data + i) = rand ();
8388 umask (0);
8389 fd = creat ("conftest.mmap", 0600);
8390 if (fd < 0)
8391 return 2;
8392 if (write (fd, data, pagesize) != pagesize)
8393 return 3;
8394 close (fd);
8395
8396 /* Next, check that the tail of a page is zero-filled. File must have
8397 non-zero length, otherwise we risk SIGBUS for entire page. */
8398 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8399 if (fd2 < 0)
8400 return 4;
8401 cdata2 = "";
8402 if (write (fd2, cdata2, 1) != 1)
8403 return 5;
8404 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8405 if (data2 == MAP_FAILED)
8406 return 6;
8407 for (i = 0; i < pagesize; ++i)
8408 if (*(data2 + i))
8409 return 7;
8410 close (fd2);
8411 if (munmap (data2, pagesize))
8412 return 8;
8413
8414 /* Next, try to mmap the file at a fixed address which already has
8415 something else allocated at it. If we can, also make sure that
8416 we see the same garbage. */
8417 fd = open ("conftest.mmap", O_RDWR);
8418 if (fd < 0)
8419 return 9;
8420 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8421 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8422 return 10;
8423 for (i = 0; i < pagesize; ++i)
8424 if (*(data + i) != *(data2 + i))
8425 return 11;
8426
8427 /* Finally, make sure that changes to the mapped area do not
8428 percolate back to the file as seen by read(). (This is a bug on
8429 some variants of i386 svr4.0.) */
8430 for (i = 0; i < pagesize; ++i)
8431 *(data2 + i) = *(data2 + i) + 1;
8432 data3 = (char *) malloc (pagesize);
8433 if (!data3)
8434 return 12;
8435 if (read (fd, data3, pagesize) != pagesize)
8436 return 13;
8437 for (i = 0; i < pagesize; ++i)
8438 if (*(data + i) != *(data3 + i))
8439 return 14;
8440 close (fd);
8441 free (data);
8442 free (data3);
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_run "$LINENO"
8447 then :
8448 ac_cv_func_mmap_fixed_mapped=yes
8449 else $as_nop
8450 ac_cv_func_mmap_fixed_mapped=no
8451 fi
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8454 fi
8455
8456 fi
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8458 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
8459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8460
8461 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8462
8463 fi
8464 rm -f conftest.mmap conftest.txt
8465
8466
8467
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8469 printf %s "checking whether integer division by zero raises SIGFPE... " >&6; }
8470 if test ${gt_cv_int_divbyzero_sigfpe+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else $as_nop
8474
8475 gt_cv_int_divbyzero_sigfpe=
8476 case "$host_os" in
8477 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
8478 # On Mac OS X 10.2 or newer, just assume the same as when cross-
8479 # compiling. If we were to perform the real test, 1 Crash Report
8480 # dialog window would pop up.
8481 case "$host_cpu" in
8482 i[34567]86 | x86_64)
8483 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
8484 esac
8485 ;;
8486 esac
8487 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
8488 if test "$cross_compiling" = yes
8489 then :
8490
8491 # Guess based on the CPU.
8492 case "$host_cpu" in
8493 alpha* | i[34567]86 | x86_64 | m68k | s390*)
8494 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8495 *)
8496 gt_cv_int_divbyzero_sigfpe="guessing no";;
8497 esac
8498
8499 else $as_nop
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502
8503 #include <stdlib.h>
8504 #include <signal.h>
8505
8506 static void
8507 sigfpe_handler (int sig)
8508 {
8509 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8510 exit (sig != SIGFPE);
8511 }
8512
8513 int x = 1;
8514 int y = 0;
8515 int z;
8516 int xnan;
8517
8518 int main ()
8519 {
8520 signal (SIGFPE, sigfpe_handler);
8521 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8522 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8523 signal (SIGTRAP, sigfpe_handler);
8524 #endif
8525 /* Linux/SPARC yields signal SIGILL. */
8526 #if defined (__sparc__) && defined (__linux__)
8527 signal (SIGILL, sigfpe_handler);
8528 #endif
8529
8530 z = x / y;
8531 xnan = y / y;
8532 exit (2);
8533 }
8534
8535 _ACEOF
8536 if ac_fn_c_try_run "$LINENO"
8537 then :
8538 gt_cv_int_divbyzero_sigfpe=yes
8539 else $as_nop
8540 gt_cv_int_divbyzero_sigfpe=no
8541 fi
8542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8543 conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 fi
8545
8546 fi
8547
8548 fi
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8550 printf "%s\n" "$gt_cv_int_divbyzero_sigfpe" >&6; }
8551 case "$gt_cv_int_divbyzero_sigfpe" in
8552 *yes) value=1;;
8553 *) value=0;;
8554 esac
8555
8556 printf "%s\n" "#define INTDIV0_RAISES_SIGFPE $value" >>confdefs.h
8557
8558
8559
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8561 printf %s "checking for inttypes.h... " >&6; }
8562 if test ${gl_cv_header_inttypes_h+y}
8563 then :
8564 printf %s "(cached) " >&6
8565 else $as_nop
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568
8569 #include <sys/types.h>
8570 #include <inttypes.h>
8571
8572 int
8573 main (void)
8574 {
8575 uintmax_t i = (uintmax_t) -1; return !i;
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"
8581 then :
8582 gl_cv_header_inttypes_h=yes
8583 else $as_nop
8584 gl_cv_header_inttypes_h=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 fi
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8589 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
8590 if test $gl_cv_header_inttypes_h = yes; then
8591
8592 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
8593
8594 fi
8595
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8598 printf %s "checking for unsigned long long int... " >&6; }
8599 if test ${ac_cv_type_unsigned_long_long_int+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else $as_nop
8603 ac_cv_type_unsigned_long_long_int=yes
8604 case $ac_prog_cc_stdc in
8605 no | c89) ;;
8606 *)
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609
8610 /* For now, do not test the preprocessor; as of 2007 there are too many
8611 implementations with broken preprocessors. Perhaps this can
8612 be revisited in 2012. In the meantime, code should not expect
8613 #if to work with literals wider than 32 bits. */
8614 /* Test literals. */
8615 long long int ll = 9223372036854775807ll;
8616 long long int nll = -9223372036854775807LL;
8617 unsigned long long int ull = 18446744073709551615ULL;
8618 /* Test constant expressions. */
8619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8620 ? 1 : -1)];
8621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8622 ? 1 : -1)];
8623 int i = 63;
8624 int
8625 main (void)
8626 {
8627 /* Test availability of runtime routines for shift and division. */
8628 long long int llmax = 9223372036854775807ll;
8629 unsigned long long int ullmax = 18446744073709551615ull;
8630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8631 | (llmax / ll) | (llmax % ll)
8632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8633 | (ullmax / ull) | (ullmax % ull));
8634 ;
8635 return 0;
8636 }
8637
8638 _ACEOF
8639 if ac_fn_c_try_link "$LINENO"
8640 then :
8641
8642 else $as_nop
8643 ac_cv_type_unsigned_long_long_int=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8646 conftest$ac_exeext conftest.$ac_ext;;
8647 esac
8648 fi
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8650 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
8651 if test $ac_cv_type_unsigned_long_long_int = yes; then
8652
8653 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8654
8655 fi
8656
8657
8658
8659
8660 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8661
8662 test $ac_cv_type_unsigned_long_long_int = yes \
8663 && ac_type='unsigned long long' \
8664 || ac_type='unsigned long'
8665
8666 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
8667
8668 else
8669
8670 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
8671
8672 fi
8673
8674
8675 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8676 if test "x$ac_cv_header_inttypes_h" = xyes
8677 then :
8678 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
8679
8680 fi
8681
8682 if test $ac_cv_header_inttypes_h = yes; then
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8684 printf %s "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8685 if test ${gt_cv_inttypes_pri_broken+y}
8686 then :
8687 printf %s "(cached) " >&6
8688 else $as_nop
8689
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692
8693 #include <inttypes.h>
8694 #ifdef PRId32
8695 char *p = PRId32;
8696 #endif
8697
8698 int
8699 main (void)
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"
8707 then :
8708 gt_cv_inttypes_pri_broken=no
8709 else $as_nop
8710 gt_cv_inttypes_pri_broken=yes
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8713
8714 fi
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8716 printf "%s\n" "$gt_cv_inttypes_pri_broken" >&6; }
8717 fi
8718 if test "$gt_cv_inttypes_pri_broken" = yes; then
8719
8720 printf "%s\n" "#define PRI_MACROS_BROKEN 1" >>confdefs.h
8721
8722 PRI_MACROS_BROKEN=1
8723 else
8724 PRI_MACROS_BROKEN=0
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733 # Check whether --enable-threads was given.
8734 if test ${enable_threads+y}
8735 then :
8736 enableval=$enable_threads; gl_use_threads=$enableval
8737 else $as_nop
8738 if test -n "$gl_use_threads_default"; then
8739 gl_use_threads="$gl_use_threads_default"
8740 else
8741 case "$host_os" in
8742 osf*) gl_use_threads=no ;;
8743 cygwin*)
8744 case `uname -r` in
8745 1.[0-5].*) gl_use_threads=no ;;
8746 *) gl_use_threads=yes ;;
8747 esac
8748 ;;
8749 *) gl_use_threads=yes ;;
8750 esac
8751 fi
8752
8753 fi
8754
8755 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8756 # For using <pthread.h>:
8757 case "$host_os" in
8758 osf*)
8759 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8760 # groks <pthread.h>. cc also understands the flag -pthread, but
8761 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8762 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8763 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8764 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8765 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8766 ;;
8767 esac
8768 # Some systems optimize for single-threaded programs by default, and
8769 # need special flags to disable these optimizations. For example, the
8770 # definition of 'errno' in <errno.h>.
8771 case "$host_os" in
8772 aix* | freebsd* | midnightbsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8773 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8774 esac
8775 fi
8776
8777
8778
8779
8780
8781 if test "X$prefix" = "XNONE"; then
8782 acl_final_prefix="$ac_default_prefix"
8783 else
8784 acl_final_prefix="$prefix"
8785 fi
8786 if test "X$exec_prefix" = "XNONE"; then
8787 acl_final_exec_prefix='${prefix}'
8788 else
8789 acl_final_exec_prefix="$exec_prefix"
8790 fi
8791 acl_save_prefix="$prefix"
8792 prefix="$acl_final_prefix"
8793 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8794 prefix="$acl_save_prefix"
8795
8796
8797
8798 # Check whether --with-gnu-ld was given.
8799 if test ${with_gnu_ld+y}
8800 then :
8801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8802 else $as_nop
8803 with_gnu_ld=no
8804 fi
8805
8806 # Prepare PATH_SEPARATOR.
8807 # The user is always right.
8808 if test "${PATH_SEPARATOR+set}" != set; then
8809 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8810 # contains only /bin. Note that ksh looks also at the FPATH variable,
8811 # so we have to set that as well for the test.
8812 PATH_SEPARATOR=:
8813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8814 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8815 || PATH_SEPARATOR=';'
8816 }
8817 fi
8818
8819 if test -n "$LD"; then
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8821 printf %s "checking for ld... " >&6; }
8822 elif test "$GCC" = yes; then
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8824 printf %s "checking for ld used by $CC... " >&6; }
8825 elif test "$with_gnu_ld" = yes; then
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8827 printf %s "checking for GNU ld... " >&6; }
8828 else
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8830 printf %s "checking for non-GNU ld... " >&6; }
8831 fi
8832 if test -n "$LD"; then
8833 # Let the user override the test with a path.
8834 :
8835 else
8836 if test ${acl_cv_path_LD+y}
8837 then :
8838 printf %s "(cached) " >&6
8839 else $as_nop
8840
8841 acl_cv_path_LD= # Final result of this test
8842 ac_prog=ld # Program to search in $PATH
8843 if test "$GCC" = yes; then
8844 # Check if gcc -print-prog-name=ld gives a path.
8845 case $host in
8846 *-*-mingw*)
8847 # gcc leaves a trailing carriage return which upsets mingw
8848 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8849 *)
8850 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8851 esac
8852 case $acl_output in
8853 # Accept absolute paths.
8854 [\\/]* | ?:[\\/]*)
8855 re_direlt='/[^/][^/]*/\.\./'
8856 # Canonicalize the pathname of ld
8857 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8858 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8859 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8860 done
8861 # Got the pathname. No search in PATH is needed.
8862 acl_cv_path_LD="$acl_output"
8863 ac_prog=
8864 ;;
8865 "")
8866 # If it fails, then pretend we aren't using GCC.
8867 ;;
8868 *)
8869 # If it is relative, then search for the first ld in PATH.
8870 with_gnu_ld=unknown
8871 ;;
8872 esac
8873 fi
8874 if test -n "$ac_prog"; then
8875 # Search for $ac_prog in $PATH.
8876 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877 for ac_dir in $PATH; do
8878 IFS="$acl_save_ifs"
8879 test -z "$ac_dir" && ac_dir=.
8880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8881 acl_cv_path_LD="$ac_dir/$ac_prog"
8882 # Check to see if the program is GNU ld. I'd rather use --version,
8883 # but apparently some variants of GNU ld only accept -v.
8884 # Break only if it was the GNU/non-GNU ld that we prefer.
8885 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8886 *GNU* | *'with BFD'*)
8887 test "$with_gnu_ld" != no && break
8888 ;;
8889 *)
8890 test "$with_gnu_ld" != yes && break
8891 ;;
8892 esac
8893 fi
8894 done
8895 IFS="$acl_save_ifs"
8896 fi
8897 case $host in
8898 *-*-aix*)
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #if defined __powerpc64__ || defined _ARCH_PPC64
8902 int ok;
8903 #else
8904 error fail
8905 #endif
8906
8907 _ACEOF
8908 if ac_fn_c_try_compile "$LINENO"
8909 then :
8910 # The compiler produces 64-bit code. Add option '-b64' so that the
8911 # linker groks 64-bit object files.
8912 case "$acl_cv_path_LD " in
8913 *" -b64 "*) ;;
8914 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8915 esac
8916
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8919 ;;
8920 sparc64-*-netbsd*)
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 #if defined __sparcv9 || defined __arch64__
8924 int ok;
8925 #else
8926 error fail
8927 #endif
8928
8929 _ACEOF
8930 if ac_fn_c_try_compile "$LINENO"
8931 then :
8932
8933 else $as_nop
8934 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8935 # so that the linker groks 32-bit object files.
8936 case "$acl_cv_path_LD " in
8937 *" -m elf32_sparc "*) ;;
8938 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8939 esac
8940
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8943 ;;
8944 esac
8945
8946 fi
8947
8948 LD="$acl_cv_path_LD"
8949 fi
8950 if test -n "$LD"; then
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8952 printf "%s\n" "$LD" >&6; }
8953 else
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 printf "%s\n" "no" >&6; }
8956 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8957 fi
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8959 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8960 if test ${acl_cv_prog_gnu_ld+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else $as_nop
8964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8965 case `$LD -v 2>&1 </dev/null` in
8966 *GNU* | *'with BFD'*)
8967 acl_cv_prog_gnu_ld=yes
8968 ;;
8969 *)
8970 acl_cv_prog_gnu_ld=no
8971 ;;
8972 esac
8973 fi
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8975 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8976 with_gnu_ld=$acl_cv_prog_gnu_ld
8977
8978
8979
8980
8981
8982
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8984 printf %s "checking for shared library run path origin... " >&6; }
8985 if test ${acl_cv_rpath+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else $as_nop
8989
8990 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8991 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8992 . ./conftest.sh
8993 rm -f ./conftest.sh
8994 acl_cv_rpath=done
8995
8996 fi
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8998 printf "%s\n" "$acl_cv_rpath" >&6; }
8999 wl="$acl_cv_wl"
9000 acl_libext="$acl_cv_libext"
9001 acl_shlibext="$acl_cv_shlibext"
9002 acl_libname_spec="$acl_cv_libname_spec"
9003 acl_library_names_spec="$acl_cv_library_names_spec"
9004 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9005 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9006 acl_hardcode_direct="$acl_cv_hardcode_direct"
9007 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9008 # Check whether --enable-rpath was given.
9009 if test ${enable_rpath+y}
9010 then :
9011 enableval=$enable_rpath; :
9012 else $as_nop
9013 enable_rpath=yes
9014 fi
9015
9016
9017
9018
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
9020 printf %s "checking 32-bit host C ABI... " >&6; }
9021 if test ${gl_cv_host_cpu_c_abi_32bit+y}
9022 then :
9023 printf %s "(cached) " >&6
9024 else $as_nop
9025 if test -n "$gl_cv_host_cpu_c_abi"; then
9026 case "$gl_cv_host_cpu_c_abi" in
9027 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
9028 gl_cv_host_cpu_c_abi_32bit=yes ;;
9029 *)
9030 gl_cv_host_cpu_c_abi_32bit=no ;;
9031 esac
9032 else
9033 case "$host_cpu" in
9034
9035 i[4567]86 )
9036 gl_cv_host_cpu_c_abi_32bit=yes
9037 ;;
9038
9039 x86_64 )
9040 # On x86_64 systems, the C compiler may be generating code in one of
9041 # these ABIs:
9042 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
9043 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
9044 # with native Windows (mingw, MSVC).
9045 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
9046 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 #if (defined __x86_64__ || defined __amd64__ \
9050 || defined _M_X64 || defined _M_AMD64) \
9051 && !(defined __ILP32__ || defined _ILP32)
9052 int ok;
9053 #else
9054 error fail
9055 #endif
9056
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"
9059 then :
9060 gl_cv_host_cpu_c_abi_32bit=no
9061 else $as_nop
9062 gl_cv_host_cpu_c_abi_32bit=yes
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 ;;
9066
9067 arm* | aarch64 )
9068 # Assume arm with EABI.
9069 # On arm64 systems, the C compiler may be generating code in one of
9070 # these ABIs:
9071 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
9072 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
9073 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
9077 int ok;
9078 #else
9079 error fail
9080 #endif
9081
9082 _ACEOF
9083 if ac_fn_c_try_compile "$LINENO"
9084 then :
9085 gl_cv_host_cpu_c_abi_32bit=no
9086 else $as_nop
9087 gl_cv_host_cpu_c_abi_32bit=yes
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9090 ;;
9091
9092 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
9093 # On hppa, the C compiler may be generating 32-bit code or 64-bit
9094 # code. In the latter case, it defines _LP64 and __LP64__.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #ifdef __LP64__
9098 int ok;
9099 #else
9100 error fail
9101 #endif
9102
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"
9105 then :
9106 gl_cv_host_cpu_c_abi_32bit=no
9107 else $as_nop
9108 gl_cv_host_cpu_c_abi_32bit=yes
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9111 ;;
9112
9113 ia64* )
9114 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
9115 # 32-bit code. In the latter case, it defines _ILP32.
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #ifdef _ILP32
9119 int ok;
9120 #else
9121 error fail
9122 #endif
9123
9124 _ACEOF
9125 if ac_fn_c_try_compile "$LINENO"
9126 then :
9127 gl_cv_host_cpu_c_abi_32bit=yes
9128 else $as_nop
9129 gl_cv_host_cpu_c_abi_32bit=no
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 ;;
9133
9134 mips* )
9135 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
9136 # at 32.
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
9140 int ok;
9141 #else
9142 error fail
9143 #endif
9144
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"
9147 then :
9148 gl_cv_host_cpu_c_abi_32bit=no
9149 else $as_nop
9150 gl_cv_host_cpu_c_abi_32bit=yes
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 ;;
9154
9155 powerpc* )
9156 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
9157 # No need to distinguish them here; the caller may distinguish
9158 # them based on the OS.
9159 # On powerpc64 systems, the C compiler may still be generating
9160 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
9161 # be generating 64-bit code.
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #if defined __powerpc64__ || defined _ARCH_PPC64
9165 int ok;
9166 #else
9167 error fail
9168 #endif
9169
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"
9172 then :
9173 gl_cv_host_cpu_c_abi_32bit=no
9174 else $as_nop
9175 gl_cv_host_cpu_c_abi_32bit=yes
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9178 ;;
9179
9180 rs6000 )
9181 gl_cv_host_cpu_c_abi_32bit=yes
9182 ;;
9183
9184 riscv32 | riscv64 )
9185 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9186 # Size of 'long' and 'void *':
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #if defined __LP64__
9190 int ok;
9191 #else
9192 error fail
9193 #endif
9194
9195 _ACEOF
9196 if ac_fn_c_try_compile "$LINENO"
9197 then :
9198 gl_cv_host_cpu_c_abi_32bit=no
9199 else $as_nop
9200 gl_cv_host_cpu_c_abi_32bit=yes
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9203 ;;
9204
9205 s390* )
9206 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9207 # or 31-bit (= s390) code.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 #if defined __LP64__ || defined __s390x__
9211 int ok;
9212 #else
9213 error fail
9214 #endif
9215
9216 _ACEOF
9217 if ac_fn_c_try_compile "$LINENO"
9218 then :
9219 gl_cv_host_cpu_c_abi_32bit=no
9220 else $as_nop
9221 gl_cv_host_cpu_c_abi_32bit=yes
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9224 ;;
9225
9226 sparc | sparc64 )
9227 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9228 # C compiler still generates 32-bit code.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #if defined __sparcv9 || defined __arch64__
9232 int ok;
9233 #else
9234 error fail
9235 #endif
9236
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"
9239 then :
9240 gl_cv_host_cpu_c_abi_32bit=no
9241 else $as_nop
9242 gl_cv_host_cpu_c_abi_32bit=yes
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245 ;;
9246
9247 *)
9248 gl_cv_host_cpu_c_abi_32bit=no
9249 ;;
9250 esac
9251 fi
9252
9253 fi
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9255 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9256
9257 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9258
9259
9260
9261
9262
9263 case "$host_os" in
9264 solaris*)
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
9266 printf %s "checking for 64-bit host... " >&6; }
9267 if test ${gl_cv_solaris_64bit+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else $as_nop
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #ifdef _LP64
9274 int ok;
9275 #else
9276 error fail
9277 #endif
9278
9279 _ACEOF
9280 if ac_fn_c_try_compile "$LINENO"
9281 then :
9282 gl_cv_solaris_64bit=yes
9283 else $as_nop
9284 gl_cv_solaris_64bit=no
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9287
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
9290 printf "%s\n" "$gl_cv_solaris_64bit" >&6; };;
9291 esac
9292
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9294 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9295 if test ${acl_cv_libdirstems+y}
9296 then :
9297 printf %s "(cached) " >&6
9298 else $as_nop
9299 acl_libdirstem=lib
9300 acl_libdirstem2=
9301 case "$host_os" in
9302 solaris*)
9303 if test $gl_cv_solaris_64bit = yes; then
9304 acl_libdirstem=lib/64
9305 case "$host_cpu" in
9306 sparc*) acl_libdirstem2=lib/sparcv9 ;;
9307 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9308 esac
9309 fi
9310 ;;
9311 *)
9312 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
9313 searchpath=`(if test -f /usr/bin/gcc \
9314 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
9315 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
9316 else \
9317 LC_ALL=C $CC -print-search-dirs; \
9318 fi) 2>/dev/null \
9319 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9320 if test -n "$searchpath"; then
9321 acl_save_IFS="${IFS= }"; IFS=":"
9322 for searchdir in $searchpath; do
9323 if test -d "$searchdir"; then
9324 case "$searchdir" in
9325 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9326 */../ | */.. )
9327 # Better ignore directories of this form. They are misleading.
9328 ;;
9329 *) searchdir=`cd "$searchdir" && pwd`
9330 case "$searchdir" in
9331 */lib64 ) acl_libdirstem=lib64 ;;
9332 esac ;;
9333 esac
9334 fi
9335 done
9336 IFS="$acl_save_IFS"
9337 fi
9338 fi
9339 ;;
9340 esac
9341 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9342 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
9343
9344 fi
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9346 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9347 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
9348 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9349 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
9350
9351
9352
9353 gl_threads_api=none
9354 LIBTHREAD=
9355 LTLIBTHREAD=
9356 LIBMULTITHREAD=
9357 LTLIBMULTITHREAD=
9358 if test "$gl_use_threads" != no; then
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9360 printf %s "checking whether imported symbols can be declared weak... " >&6; }
9361 if test ${gl_cv_have_weak+y}
9362 then :
9363 printf %s "(cached) " >&6
9364 else $as_nop
9365 gl_cv_have_weak=no
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 extern void xyzzy ();
9369 #pragma weak xyzzy
9370 int
9371 main (void)
9372 {
9373 xyzzy();
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"
9379 then :
9380 gl_cv_have_weak=maybe
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9383 conftest$ac_exeext conftest.$ac_ext
9384 if test $gl_cv_have_weak = maybe; then
9385 if test "$cross_compiling" = yes
9386 then :
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #ifdef __ELF__
9390 Extensible Linking Format
9391 #endif
9392
9393 _ACEOF
9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9396 then :
9397 gl_cv_have_weak="guessing yes"
9398 else $as_nop
9399 gl_cv_have_weak="guessing no"
9400 fi
9401 rm -rf conftest*
9402
9403
9404 else $as_nop
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407
9408 #include <stdio.h>
9409 #pragma weak fputs
9410 int main ()
9411 {
9412 return (fputs == NULL);
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_run "$LINENO"
9416 then :
9417 gl_cv_have_weak=yes
9418 else $as_nop
9419 gl_cv_have_weak=no
9420 fi
9421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422 conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 fi
9424
9425 fi
9426 case " $LDFLAGS " in
9427 *" -static "*) gl_cv_have_weak=no ;;
9428 esac
9429
9430 fi
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9432 printf "%s\n" "$gl_cv_have_weak" >&6; }
9433 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9434 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9435 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9436 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9437 if test "x$ac_cv_header_pthread_h" = xyes
9438 then :
9439 gl_have_pthread_h=yes
9440 else $as_nop
9441 gl_have_pthread_h=no
9442 fi
9443
9444 if test "$gl_have_pthread_h" = yes; then
9445 # Other possible tests:
9446 # -lpthreads (FSU threads, PCthreads)
9447 # -lgthreads
9448 gl_have_pthread=
9449 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9450 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9451 # the second one only in libpthread, and lock.c needs it.
9452 #
9453 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
9454 # needs -pthread for some reason. See:
9455 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
9456 save_LIBS=$LIBS
9457 for gl_pthread in '' '-pthread'; do
9458 LIBS="$LIBS $gl_pthread"
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <pthread.h>
9462 pthread_mutex_t m;
9463 pthread_mutexattr_t ma;
9464
9465 int
9466 main (void)
9467 {
9468 pthread_mutex_lock (&m);
9469 pthread_mutexattr_init (&ma);
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"
9475 then :
9476 gl_have_pthread=yes
9477 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
9478 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
9479 fi
9480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9481 conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$save_LIBS
9483 test -n "$gl_have_pthread" && break
9484 done
9485
9486 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9487 # since it is defined as a macro on OSF/1.)
9488 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
9489 # The program links fine without libpthread. But it may actually
9490 # need to link with libpthread in order to create multiple threads.
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9492 printf %s "checking for pthread_kill in -lpthread... " >&6; }
9493 if test ${ac_cv_lib_pthread_pthread_kill+y}
9494 then :
9495 printf %s "(cached) " >&6
9496 else $as_nop
9497 ac_check_lib_save_LIBS=$LIBS
9498 LIBS="-lpthread $LIBS"
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501
9502 /* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505 char pthread_kill ();
9506 int
9507 main (void)
9508 {
9509 return pthread_kill ();
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"
9515 then :
9516 ac_cv_lib_pthread_pthread_kill=yes
9517 else $as_nop
9518 ac_cv_lib_pthread_pthread_kill=no
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9525 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
9526 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
9527 then :
9528 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9529 # On Solaris and HP-UX, most pthread functions exist also in libc.
9530 # Therefore pthread_in_use() needs to actually try to create a
9531 # thread: pthread_create from libc will fail, whereas
9532 # pthread_create will actually create a thread.
9533 # On Solaris 10 or newer, this test is no longer needed, because
9534 # libc contains the fully functional pthread functions.
9535 case "$host_os" in
9536 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
9537
9538 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9539
9540 esac
9541
9542 fi
9543
9544 elif test -z "$gl_have_pthread"; then
9545 # Some library is needed. Try libpthread and libc_r.
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9547 printf %s "checking for pthread_kill in -lpthread... " >&6; }
9548 if test ${ac_cv_lib_pthread_pthread_kill+y}
9549 then :
9550 printf %s "(cached) " >&6
9551 else $as_nop
9552 ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-lpthread $LIBS"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 char pthread_kill ();
9561 int
9562 main (void)
9563 {
9564 return pthread_kill ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"
9570 then :
9571 ac_cv_lib_pthread_pthread_kill=yes
9572 else $as_nop
9573 ac_cv_lib_pthread_pthread_kill=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9576 conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9578 fi
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9580 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
9581 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
9582 then :
9583 gl_have_pthread=yes
9584 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9585 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9586 fi
9587
9588 if test -z "$gl_have_pthread"; then
9589 # For FreeBSD 4.
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9591 printf %s "checking for pthread_kill in -lc_r... " >&6; }
9592 if test ${ac_cv_lib_c_r_pthread_kill+y}
9593 then :
9594 printf %s "(cached) " >&6
9595 else $as_nop
9596 ac_check_lib_save_LIBS=$LIBS
9597 LIBS="-lc_r $LIBS"
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 char pthread_kill ();
9605 int
9606 main (void)
9607 {
9608 return pthread_kill ();
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"
9614 then :
9615 ac_cv_lib_c_r_pthread_kill=yes
9616 else $as_nop
9617 ac_cv_lib_c_r_pthread_kill=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9622 fi
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9624 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
9625 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
9626 then :
9627 gl_have_pthread=yes
9628 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9629 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9630 fi
9631
9632 fi
9633 fi
9634 if test -n "$gl_have_pthread"; then
9635 gl_threads_api=posix
9636
9637 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
9638
9639 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9640 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9641
9642 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9643
9644 LIBTHREAD=
9645 LTLIBTHREAD=
9646 fi
9647 fi
9648 fi
9649 fi
9650 fi
9651 if test -z "$gl_have_pthread"; then
9652 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9653 gl_have_solaristhread=
9654 gl_save_LIBS="$LIBS"
9655 LIBS="$LIBS -lthread"
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658
9659 #include <thread.h>
9660 #include <synch.h>
9661
9662 int
9663 main (void)
9664 {
9665 thr_self();
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"
9671 then :
9672 gl_have_solaristhread=yes
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS="$gl_save_LIBS"
9677 if test -n "$gl_have_solaristhread"; then
9678 gl_threads_api=solaris
9679 LIBTHREAD=-lthread
9680 LTLIBTHREAD=-lthread
9681 LIBMULTITHREAD="$LIBTHREAD"
9682 LTLIBMULTITHREAD="$LTLIBTHREAD"
9683
9684 printf "%s\n" "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9685
9686 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9687
9688 printf "%s\n" "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9689
9690 LIBTHREAD=
9691 LTLIBTHREAD=
9692 fi
9693 fi
9694 fi
9695 fi
9696 if test "$gl_use_threads" = pth; then
9697 gl_save_CPPFLAGS="$CPPFLAGS"
9698
9699
9700
9701
9702
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9704 printf %s "checking how to link with libpth... " >&6; }
9705 if test ${ac_cv_libpth_libs+y}
9706 then :
9707 printf %s "(cached) " >&6
9708 else $as_nop
9709
9710
9711
9712
9713
9714
9715
9716 use_additional=yes
9717
9718 acl_save_prefix="$prefix"
9719 prefix="$acl_final_prefix"
9720 acl_save_exec_prefix="$exec_prefix"
9721 exec_prefix="$acl_final_exec_prefix"
9722
9723 eval additional_includedir=\"$includedir\"
9724 eval additional_libdir=\"$libdir\"
9725
9726 exec_prefix="$acl_save_exec_prefix"
9727 prefix="$acl_save_prefix"
9728
9729
9730 # Check whether --with-libpth-prefix was given.
9731 if test ${with_libpth_prefix+y}
9732 then :
9733 withval=$with_libpth_prefix;
9734 if test "X$withval" = "Xno"; then
9735 use_additional=no
9736 else
9737 if test "X$withval" = "X"; then
9738
9739 acl_save_prefix="$prefix"
9740 prefix="$acl_final_prefix"
9741 acl_save_exec_prefix="$exec_prefix"
9742 exec_prefix="$acl_final_exec_prefix"
9743
9744 eval additional_includedir=\"$includedir\"
9745 eval additional_libdir=\"$libdir\"
9746
9747 exec_prefix="$acl_save_exec_prefix"
9748 prefix="$acl_save_prefix"
9749
9750 else
9751 additional_includedir="$withval/include"
9752 additional_libdir="$withval/$acl_libdirstem"
9753 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9754 && test ! -d "$withval/$acl_libdirstem"; then
9755 additional_libdir="$withval/$acl_libdirstem2"
9756 fi
9757 fi
9758 fi
9759
9760 fi
9761
9762 LIBPTH=
9763 LTLIBPTH=
9764 INCPTH=
9765 LIBPTH_PREFIX=
9766 HAVE_LIBPTH=
9767 rpathdirs=
9768 ltrpathdirs=
9769 names_already_handled=
9770 names_next_round='pth '
9771 while test -n "$names_next_round"; do
9772 names_this_round="$names_next_round"
9773 names_next_round=
9774 for name in $names_this_round; do
9775 already_handled=
9776 for n in $names_already_handled; do
9777 if test "$n" = "$name"; then
9778 already_handled=yes
9779 break
9780 fi
9781 done
9782 if test -z "$already_handled"; then
9783 names_already_handled="$names_already_handled $name"
9784 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9785 eval value=\"\$HAVE_LIB$uppername\"
9786 if test -n "$value"; then
9787 if test "$value" = yes; then
9788 eval value=\"\$LIB$uppername\"
9789 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9790 eval value=\"\$LTLIB$uppername\"
9791 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9792 else
9793 :
9794 fi
9795 else
9796 found_dir=
9797 found_la=
9798 found_so=
9799 found_a=
9800 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9801 if test -n "$acl_shlibext"; then
9802 shrext=".$acl_shlibext" # typically: shrext=.so
9803 else
9804 shrext=
9805 fi
9806 if test $use_additional = yes; then
9807 dir="$additional_libdir"
9808 if test -n "$acl_shlibext"; then
9809 if test -f "$dir/$libname$shrext"; then
9810 found_dir="$dir"
9811 found_so="$dir/$libname$shrext"
9812 else
9813 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9814 ver=`(cd "$dir" && \
9815 for f in "$libname$shrext".*; do echo "$f"; done \
9816 | sed -e "s,^$libname$shrext\\\\.,," \
9817 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9818 | sed 1q ) 2>/dev/null`
9819 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9820 found_dir="$dir"
9821 found_so="$dir/$libname$shrext.$ver"
9822 fi
9823 else
9824 eval library_names=\"$acl_library_names_spec\"
9825 for f in $library_names; do
9826 if test -f "$dir/$f"; then
9827 found_dir="$dir"
9828 found_so="$dir/$f"
9829 break
9830 fi
9831 done
9832 fi
9833 fi
9834 fi
9835 if test "X$found_dir" = "X"; then
9836 if test -f "$dir/$libname.$acl_libext"; then
9837 found_dir="$dir"
9838 found_a="$dir/$libname.$acl_libext"
9839 fi
9840 fi
9841 if test "X$found_dir" != "X"; then
9842 if test -f "$dir/$libname.la"; then
9843 found_la="$dir/$libname.la"
9844 fi
9845 fi
9846 fi
9847 if test "X$found_dir" = "X"; then
9848 for x in $LDFLAGS $LTLIBPTH; do
9849
9850 acl_save_prefix="$prefix"
9851 prefix="$acl_final_prefix"
9852 acl_save_exec_prefix="$exec_prefix"
9853 exec_prefix="$acl_final_exec_prefix"
9854 eval x=\"$x\"
9855 exec_prefix="$acl_save_exec_prefix"
9856 prefix="$acl_save_prefix"
9857
9858 case "$x" in
9859 -L*)
9860 dir=`echo "X$x" | sed -e 's/^X-L//'`
9861 if test -n "$acl_shlibext"; then
9862 if test -f "$dir/$libname$shrext"; then
9863 found_dir="$dir"
9864 found_so="$dir/$libname$shrext"
9865 else
9866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9867 ver=`(cd "$dir" && \
9868 for f in "$libname$shrext".*; do echo "$f"; done \
9869 | sed -e "s,^$libname$shrext\\\\.,," \
9870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9871 | sed 1q ) 2>/dev/null`
9872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9873 found_dir="$dir"
9874 found_so="$dir/$libname$shrext.$ver"
9875 fi
9876 else
9877 eval library_names=\"$acl_library_names_spec\"
9878 for f in $library_names; do
9879 if test -f "$dir/$f"; then
9880 found_dir="$dir"
9881 found_so="$dir/$f"
9882 break
9883 fi
9884 done
9885 fi
9886 fi
9887 fi
9888 if test "X$found_dir" = "X"; then
9889 if test -f "$dir/$libname.$acl_libext"; then
9890 found_dir="$dir"
9891 found_a="$dir/$libname.$acl_libext"
9892 fi
9893 fi
9894 if test "X$found_dir" != "X"; then
9895 if test -f "$dir/$libname.la"; then
9896 found_la="$dir/$libname.la"
9897 fi
9898 fi
9899 ;;
9900 esac
9901 if test "X$found_dir" != "X"; then
9902 break
9903 fi
9904 done
9905 fi
9906 if test "X$found_dir" != "X"; then
9907 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
9908 if test "X$found_so" != "X"; then
9909 if test "$enable_rpath" = no \
9910 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9911 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9912 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9913 else
9914 haveit=
9915 for x in $ltrpathdirs; do
9916 if test "X$x" = "X$found_dir"; then
9917 haveit=yes
9918 break
9919 fi
9920 done
9921 if test -z "$haveit"; then
9922 ltrpathdirs="$ltrpathdirs $found_dir"
9923 fi
9924 if test "$acl_hardcode_direct" = yes; then
9925 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9926 else
9927 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9928 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9929 haveit=
9930 for x in $rpathdirs; do
9931 if test "X$x" = "X$found_dir"; then
9932 haveit=yes
9933 break
9934 fi
9935 done
9936 if test -z "$haveit"; then
9937 rpathdirs="$rpathdirs $found_dir"
9938 fi
9939 else
9940 haveit=
9941 for x in $LDFLAGS $LIBPTH; do
9942
9943 acl_save_prefix="$prefix"
9944 prefix="$acl_final_prefix"
9945 acl_save_exec_prefix="$exec_prefix"
9946 exec_prefix="$acl_final_exec_prefix"
9947 eval x=\"$x\"
9948 exec_prefix="$acl_save_exec_prefix"
9949 prefix="$acl_save_prefix"
9950
9951 if test "X$x" = "X-L$found_dir"; then
9952 haveit=yes
9953 break
9954 fi
9955 done
9956 if test -z "$haveit"; then
9957 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
9958 fi
9959 if test "$acl_hardcode_minus_L" != no; then
9960 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
9961 else
9962 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
9963 fi
9964 fi
9965 fi
9966 fi
9967 else
9968 if test "X$found_a" != "X"; then
9969 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
9970 else
9971 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
9972 fi
9973 fi
9974 additional_includedir=
9975 case "$found_dir" in
9976 */$acl_libdirstem | */$acl_libdirstem/)
9977 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9978 if test "$name" = 'pth'; then
9979 LIBPTH_PREFIX="$basedir"
9980 fi
9981 additional_includedir="$basedir/include"
9982 ;;
9983 */$acl_libdirstem2 | */$acl_libdirstem2/)
9984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9985 if test "$name" = 'pth'; then
9986 LIBPTH_PREFIX="$basedir"
9987 fi
9988 additional_includedir="$basedir/include"
9989 ;;
9990 esac
9991 if test "X$additional_includedir" != "X"; then
9992 if test "X$additional_includedir" != "X/usr/include"; then
9993 haveit=
9994 if test "X$additional_includedir" = "X/usr/local/include"; then
9995 if test -n "$GCC"; then
9996 case $host_os in
9997 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9998 esac
9999 fi
10000 fi
10001 if test -z "$haveit"; then
10002 for x in $CPPFLAGS $INCPTH; do
10003
10004 acl_save_prefix="$prefix"
10005 prefix="$acl_final_prefix"
10006 acl_save_exec_prefix="$exec_prefix"
10007 exec_prefix="$acl_final_exec_prefix"
10008 eval x=\"$x\"
10009 exec_prefix="$acl_save_exec_prefix"
10010 prefix="$acl_save_prefix"
10011
10012 if test "X$x" = "X-I$additional_includedir"; then
10013 haveit=yes
10014 break
10015 fi
10016 done
10017 if test -z "$haveit"; then
10018 if test -d "$additional_includedir"; then
10019 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10020 fi
10021 fi
10022 fi
10023 fi
10024 fi
10025 if test -n "$found_la"; then
10026 save_libdir="$libdir"
10027 case "$found_la" in
10028 */* | *\\*) . "$found_la" ;;
10029 *) . "./$found_la" ;;
10030 esac
10031 libdir="$save_libdir"
10032 for dep in $dependency_libs; do
10033 case "$dep" in
10034 -L*)
10035 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10036 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10037 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10038 haveit=
10039 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10040 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10041 if test -n "$GCC"; then
10042 case $host_os in
10043 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10044 esac
10045 fi
10046 fi
10047 if test -z "$haveit"; then
10048 haveit=
10049 for x in $LDFLAGS $LIBPTH; do
10050
10051 acl_save_prefix="$prefix"
10052 prefix="$acl_final_prefix"
10053 acl_save_exec_prefix="$exec_prefix"
10054 exec_prefix="$acl_final_exec_prefix"
10055 eval x=\"$x\"
10056 exec_prefix="$acl_save_exec_prefix"
10057 prefix="$acl_save_prefix"
10058
10059 if test "X$x" = "X-L$additional_libdir"; then
10060 haveit=yes
10061 break
10062 fi
10063 done
10064 if test -z "$haveit"; then
10065 if test -d "$additional_libdir"; then
10066 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10067 fi
10068 fi
10069 haveit=
10070 for x in $LDFLAGS $LTLIBPTH; do
10071
10072 acl_save_prefix="$prefix"
10073 prefix="$acl_final_prefix"
10074 acl_save_exec_prefix="$exec_prefix"
10075 exec_prefix="$acl_final_exec_prefix"
10076 eval x=\"$x\"
10077 exec_prefix="$acl_save_exec_prefix"
10078 prefix="$acl_save_prefix"
10079
10080 if test "X$x" = "X-L$additional_libdir"; then
10081 haveit=yes
10082 break
10083 fi
10084 done
10085 if test -z "$haveit"; then
10086 if test -d "$additional_libdir"; then
10087 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10088 fi
10089 fi
10090 fi
10091 fi
10092 ;;
10093 -R*)
10094 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10095 if test "$enable_rpath" != no; then
10096 haveit=
10097 for x in $rpathdirs; do
10098 if test "X$x" = "X$dir"; then
10099 haveit=yes
10100 break
10101 fi
10102 done
10103 if test -z "$haveit"; then
10104 rpathdirs="$rpathdirs $dir"
10105 fi
10106 haveit=
10107 for x in $ltrpathdirs; do
10108 if test "X$x" = "X$dir"; then
10109 haveit=yes
10110 break
10111 fi
10112 done
10113 if test -z "$haveit"; then
10114 ltrpathdirs="$ltrpathdirs $dir"
10115 fi
10116 fi
10117 ;;
10118 -l*)
10119 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10120 ;;
10121 *.la)
10122 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10123 ;;
10124 *)
10125 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10126 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10127 ;;
10128 esac
10129 done
10130 fi
10131 else
10132 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10133 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10134 fi
10135 fi
10136 fi
10137 done
10138 done
10139 if test "X$rpathdirs" != "X"; then
10140 if test -n "$acl_hardcode_libdir_separator"; then
10141 alldirs=
10142 for found_dir in $rpathdirs; do
10143 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10144 done
10145 acl_save_libdir="$libdir"
10146 libdir="$alldirs"
10147 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10148 libdir="$acl_save_libdir"
10149 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10150 else
10151 for found_dir in $rpathdirs; do
10152 acl_save_libdir="$libdir"
10153 libdir="$found_dir"
10154 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10155 libdir="$acl_save_libdir"
10156 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10157 done
10158 fi
10159 fi
10160 if test "X$ltrpathdirs" != "X"; then
10161 for found_dir in $ltrpathdirs; do
10162 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10163 done
10164 fi
10165
10166
10167
10168
10169
10170 ac_cv_libpth_libs="$LIBPTH"
10171 ac_cv_libpth_ltlibs="$LTLIBPTH"
10172 ac_cv_libpth_cppflags="$INCPTH"
10173 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
10174
10175 fi
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10177 printf "%s\n" "$ac_cv_libpth_libs" >&6; }
10178 LIBPTH="$ac_cv_libpth_libs"
10179 LTLIBPTH="$ac_cv_libpth_ltlibs"
10180 INCPTH="$ac_cv_libpth_cppflags"
10181 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
10182
10183 for element in $INCPTH; do
10184 haveit=
10185 for x in $CPPFLAGS; do
10186
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10191 eval x=\"$x\"
10192 exec_prefix="$acl_save_exec_prefix"
10193 prefix="$acl_save_prefix"
10194
10195 if test "X$x" = "X$element"; then
10196 haveit=yes
10197 break
10198 fi
10199 done
10200 if test -z "$haveit"; then
10201 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10202 fi
10203 done
10204
10205
10206
10207
10208 HAVE_LIBPTH=yes
10209
10210
10211
10212 gl_have_pth=
10213 gl_save_LIBS="$LIBS"
10214 LIBS="$LIBS $LIBPTH"
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 #include <pth.h>
10218 int
10219 main (void)
10220 {
10221 pth_self();
10222 ;
10223 return 0;
10224 }
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"
10227 then :
10228 gl_have_pth=yes
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS="$gl_save_LIBS"
10233 if test -n "$gl_have_pth"; then
10234 gl_threads_api=pth
10235 LIBTHREAD="$LIBPTH"
10236 LTLIBTHREAD="$LTLIBPTH"
10237 LIBMULTITHREAD="$LIBTHREAD"
10238 LTLIBMULTITHREAD="$LTLIBTHREAD"
10239
10240 printf "%s\n" "#define USE_PTH_THREADS 1" >>confdefs.h
10241
10242 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10243 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10244
10245 printf "%s\n" "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10246
10247 LIBTHREAD=
10248 LTLIBTHREAD=
10249 fi
10250 fi
10251 else
10252 CPPFLAGS="$gl_save_CPPFLAGS"
10253 fi
10254 fi
10255 if test -z "$gl_have_pthread"; then
10256 case "$gl_use_threads" in
10257 yes | windows | win32) # The 'win32' is for backward compatibility.
10258 if { case "$host_os" in
10259 mingw*) true;;
10260 *) false;;
10261 esac
10262 }; then
10263 gl_threads_api=windows
10264
10265 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
10266
10267 fi
10268 ;;
10269 esac
10270 fi
10271 fi
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10273 printf %s "checking for multithread API to use... " >&6; }
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10275 printf "%s\n" "$gl_threads_api" >&6; }
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287 if test "$gl_threads_api" = posix; then
10288 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
10289 # pthread_rwlock_* functions.
10290 has_rwlock=false
10291 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
10292 "
10293 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
10294 then :
10295 has_rwlock=true
10296
10297 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
10298
10299 fi
10300
10301 if $has_rwlock; then
10302
10303
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
10305 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
10306 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
10307 then :
10308 printf %s "(cached) " >&6
10309 else $as_nop
10310 save_LIBS="$LIBS"
10311 LIBS="$LIBS $LIBMULTITHREAD"
10312 if test "$cross_compiling" = yes
10313 then :
10314 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
10315 else $as_nop
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318
10319 #include <errno.h>
10320 #include <pthread.h>
10321 #include <stdlib.h>
10322 #include <unistd.h>
10323
10324 #define SUCCEED() exit (0)
10325 #define FAILURE() exit (1)
10326 #define UNEXPECTED(n) (exit (10 + (n)))
10327
10328 /* The main thread creates the waiting writer and the requesting reader threads
10329 in the default way; this guarantees that they have the same priority.
10330 We can reuse the main thread as first reader thread. */
10331
10332 static pthread_rwlock_t lock;
10333 static pthread_t reader1;
10334 static pthread_t writer;
10335 static pthread_t reader2;
10336 static pthread_t timer;
10337 /* Used to pass control from writer to reader2 and from reader2 to timer,
10338 as in a relay race.
10339 Passing control from one running thread to another running thread
10340 is most likely faster than to create the second thread. */
10341 static pthread_mutex_t baton;
10342
10343 static void *
10344 timer_func (void *ignored)
10345 {
10346 /* Step 13 (can be before or after step 12):
10347 The timer thread takes the baton, then waits a moment to make sure
10348 it can tell whether the second reader thread is blocked at step 12. */
10349 if (pthread_mutex_lock (&baton))
10350 UNEXPECTED (13);
10351 usleep (100000);
10352 /* By the time we get here, it's clear that the second reader thread is
10353 blocked at step 12. This is the desired behaviour. */
10354 SUCCEED ();
10355 }
10356
10357 static void *
10358 reader2_func (void *ignored)
10359 {
10360 int err;
10361
10362 /* Step 8 (can be before or after step 7):
10363 The second reader thread takes the baton, then waits a moment to make sure
10364 the writer thread has reached step 7. */
10365 if (pthread_mutex_lock (&baton))
10366 UNEXPECTED (8);
10367 usleep (100000);
10368 /* Step 9: The second reader thread requests the lock. */
10369 err = pthread_rwlock_tryrdlock (&lock);
10370 if (err == 0)
10371 FAILURE ();
10372 else if (err != EBUSY)
10373 UNEXPECTED (9);
10374 /* Step 10: Launch a timer, to test whether the next call blocks. */
10375 if (pthread_create (&timer, NULL, timer_func, NULL))
10376 UNEXPECTED (10);
10377 /* Step 11: Release the baton. */
10378 if (pthread_mutex_unlock (&baton))
10379 UNEXPECTED (11);
10380 /* Step 12: The second reader thread requests the lock. */
10381 err = pthread_rwlock_rdlock (&lock);
10382 if (err == 0)
10383 FAILURE ();
10384 else
10385 UNEXPECTED (12);
10386 }
10387
10388 static void *
10389 writer_func (void *ignored)
10390 {
10391 /* Step 4: Take the baton, so that the second reader thread does not go ahead
10392 too early. */
10393 if (pthread_mutex_lock (&baton))
10394 UNEXPECTED (4);
10395 /* Step 5: Create the second reader thread. */
10396 if (pthread_create (&reader2, NULL, reader2_func, NULL))
10397 UNEXPECTED (5);
10398 /* Step 6: Release the baton. */
10399 if (pthread_mutex_unlock (&baton))
10400 UNEXPECTED (6);
10401 /* Step 7: The writer thread requests the lock. */
10402 if (pthread_rwlock_wrlock (&lock))
10403 UNEXPECTED (7);
10404 return NULL;
10405 }
10406
10407 int
10408 main ()
10409 {
10410 reader1 = pthread_self ();
10411
10412 /* Step 1: The main thread initializes the lock and the baton. */
10413 if (pthread_rwlock_init (&lock, NULL))
10414 UNEXPECTED (1);
10415 if (pthread_mutex_init (&baton, NULL))
10416 UNEXPECTED (1);
10417 /* Step 2: The main thread acquires the lock as a reader. */
10418 if (pthread_rwlock_rdlock (&lock))
10419 UNEXPECTED (2);
10420 /* Step 3: Create the writer thread. */
10421 if (pthread_create (&writer, NULL, writer_func, NULL))
10422 UNEXPECTED (3);
10423 /* Job done. Go to sleep. */
10424 for (;;)
10425 {
10426 sleep (1);
10427 }
10428 }
10429
10430 _ACEOF
10431 if ac_fn_c_try_run "$LINENO"
10432 then :
10433 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
10434 else $as_nop
10435 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
10436 fi
10437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10438 conftest.$ac_objext conftest.beam conftest.$ac_ext
10439 fi
10440
10441 LIBS="$save_LIBS"
10442
10443 fi
10444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
10445 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
10446 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
10447 *yes)
10448
10449 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
10450
10451 ;;
10452 esac
10453
10454 fi
10455 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458
10459 #include <pthread.h>
10460 int
10461 main (void)
10462 {
10463
10464 #if __FreeBSD__ == 4
10465 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10466 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
10467 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
10468 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
10469 #else
10470 int x = (int)PTHREAD_MUTEX_RECURSIVE;
10471 return !x;
10472 #endif
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_compile "$LINENO"
10479 then :
10480
10481 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
10482
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10485 fi
10486 :
10487
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
10489 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
10490 if test ${ac_cv_c_undeclared_builtin_options+y}
10491 then :
10492 printf %s "(cached) " >&6
10493 else $as_nop
10494 ac_save_CFLAGS=$CFLAGS
10495 ac_cv_c_undeclared_builtin_options='cannot detect'
10496 for ac_arg in '' -fno-builtin; do
10497 CFLAGS="$ac_save_CFLAGS $ac_arg"
10498 # This test program should *not* compile successfully.
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501
10502 int
10503 main (void)
10504 {
10505 (void) strchr;
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_compile "$LINENO"
10511 then :
10512
10513 else $as_nop
10514 # This test program should compile successfully.
10515 # No library function is consistently available on
10516 # freestanding implementations, so test against a dummy
10517 # declaration. Include always-available headers on the
10518 # off chance that they somehow elicit warnings.
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <float.h>
10522 #include <limits.h>
10523 #include <stdarg.h>
10524 #include <stddef.h>
10525 extern void ac_decl (int, char *);
10526
10527 int
10528 main (void)
10529 {
10530 (void) ac_decl (0, (char *) 0);
10531 (void) ac_decl;
10532
10533 ;
10534 return 0;
10535 }
10536 _ACEOF
10537 if ac_fn_c_try_compile "$LINENO"
10538 then :
10539 if test x"$ac_arg" = x
10540 then :
10541 ac_cv_c_undeclared_builtin_options='none needed'
10542 else $as_nop
10543 ac_cv_c_undeclared_builtin_options=$ac_arg
10544 fi
10545 break
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10550 done
10551 CFLAGS=$ac_save_CFLAGS
10552
10553 fi
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10555 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
10556 case $ac_cv_c_undeclared_builtin_options in #(
10557 'cannot detect') :
10558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10560 as_fn_error $? "cannot make $CC report undeclared builtins
10561 See \`config.log' for more details" "$LINENO" 5; } ;; #(
10562 'none needed') :
10563 ac_c_undeclared_builtin_options='' ;; #(
10564 *) :
10565 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
10566 esac
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578 use_additional=yes
10579
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 acl_save_exec_prefix="$exec_prefix"
10583 exec_prefix="$acl_final_exec_prefix"
10584
10585 eval additional_includedir=\"$includedir\"
10586 eval additional_libdir=\"$libdir\"
10587
10588 exec_prefix="$acl_save_exec_prefix"
10589 prefix="$acl_save_prefix"
10590
10591
10592 # Check whether --with-libiconv-prefix was given.
10593 if test ${with_libiconv_prefix+y}
10594 then :
10595 withval=$with_libiconv_prefix;
10596 if test "X$withval" = "Xno"; then
10597 use_additional=no
10598 else
10599 if test "X$withval" = "X"; then
10600
10601 acl_save_prefix="$prefix"
10602 prefix="$acl_final_prefix"
10603 acl_save_exec_prefix="$exec_prefix"
10604 exec_prefix="$acl_final_exec_prefix"
10605
10606 eval additional_includedir=\"$includedir\"
10607 eval additional_libdir=\"$libdir\"
10608
10609 exec_prefix="$acl_save_exec_prefix"
10610 prefix="$acl_save_prefix"
10611
10612 else
10613 additional_includedir="$withval/include"
10614 additional_libdir="$withval/$acl_libdirstem"
10615 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10616 && test ! -d "$withval/$acl_libdirstem"; then
10617 additional_libdir="$withval/$acl_libdirstem2"
10618 fi
10619 fi
10620 fi
10621
10622 fi
10623
10624 LIBICONV=
10625 LTLIBICONV=
10626 INCICONV=
10627 LIBICONV_PREFIX=
10628 HAVE_LIBICONV=
10629 rpathdirs=
10630 ltrpathdirs=
10631 names_already_handled=
10632 names_next_round='iconv '
10633 while test -n "$names_next_round"; do
10634 names_this_round="$names_next_round"
10635 names_next_round=
10636 for name in $names_this_round; do
10637 already_handled=
10638 for n in $names_already_handled; do
10639 if test "$n" = "$name"; then
10640 already_handled=yes
10641 break
10642 fi
10643 done
10644 if test -z "$already_handled"; then
10645 names_already_handled="$names_already_handled $name"
10646 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10647 eval value=\"\$HAVE_LIB$uppername\"
10648 if test -n "$value"; then
10649 if test "$value" = yes; then
10650 eval value=\"\$LIB$uppername\"
10651 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10652 eval value=\"\$LTLIB$uppername\"
10653 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10654 else
10655 :
10656 fi
10657 else
10658 found_dir=
10659 found_la=
10660 found_so=
10661 found_a=
10662 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10663 if test -n "$acl_shlibext"; then
10664 shrext=".$acl_shlibext" # typically: shrext=.so
10665 else
10666 shrext=
10667 fi
10668 if test $use_additional = yes; then
10669 dir="$additional_libdir"
10670 if test -n "$acl_shlibext"; then
10671 if test -f "$dir/$libname$shrext"; then
10672 found_dir="$dir"
10673 found_so="$dir/$libname$shrext"
10674 else
10675 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10676 ver=`(cd "$dir" && \
10677 for f in "$libname$shrext".*; do echo "$f"; done \
10678 | sed -e "s,^$libname$shrext\\\\.,," \
10679 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10680 | sed 1q ) 2>/dev/null`
10681 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10682 found_dir="$dir"
10683 found_so="$dir/$libname$shrext.$ver"
10684 fi
10685 else
10686 eval library_names=\"$acl_library_names_spec\"
10687 for f in $library_names; do
10688 if test -f "$dir/$f"; then
10689 found_dir="$dir"
10690 found_so="$dir/$f"
10691 break
10692 fi
10693 done
10694 fi
10695 fi
10696 fi
10697 if test "X$found_dir" = "X"; then
10698 if test -f "$dir/$libname.$acl_libext"; then
10699 found_dir="$dir"
10700 found_a="$dir/$libname.$acl_libext"
10701 fi
10702 fi
10703 if test "X$found_dir" != "X"; then
10704 if test -f "$dir/$libname.la"; then
10705 found_la="$dir/$libname.la"
10706 fi
10707 fi
10708 fi
10709 if test "X$found_dir" = "X"; then
10710 for x in $LDFLAGS $LTLIBICONV; do
10711
10712 acl_save_prefix="$prefix"
10713 prefix="$acl_final_prefix"
10714 acl_save_exec_prefix="$exec_prefix"
10715 exec_prefix="$acl_final_exec_prefix"
10716 eval x=\"$x\"
10717 exec_prefix="$acl_save_exec_prefix"
10718 prefix="$acl_save_prefix"
10719
10720 case "$x" in
10721 -L*)
10722 dir=`echo "X$x" | sed -e 's/^X-L//'`
10723 if test -n "$acl_shlibext"; then
10724 if test -f "$dir/$libname$shrext"; then
10725 found_dir="$dir"
10726 found_so="$dir/$libname$shrext"
10727 else
10728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10729 ver=`(cd "$dir" && \
10730 for f in "$libname$shrext".*; do echo "$f"; done \
10731 | sed -e "s,^$libname$shrext\\\\.,," \
10732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10733 | sed 1q ) 2>/dev/null`
10734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10735 found_dir="$dir"
10736 found_so="$dir/$libname$shrext.$ver"
10737 fi
10738 else
10739 eval library_names=\"$acl_library_names_spec\"
10740 for f in $library_names; do
10741 if test -f "$dir/$f"; then
10742 found_dir="$dir"
10743 found_so="$dir/$f"
10744 break
10745 fi
10746 done
10747 fi
10748 fi
10749 fi
10750 if test "X$found_dir" = "X"; then
10751 if test -f "$dir/$libname.$acl_libext"; then
10752 found_dir="$dir"
10753 found_a="$dir/$libname.$acl_libext"
10754 fi
10755 fi
10756 if test "X$found_dir" != "X"; then
10757 if test -f "$dir/$libname.la"; then
10758 found_la="$dir/$libname.la"
10759 fi
10760 fi
10761 ;;
10762 esac
10763 if test "X$found_dir" != "X"; then
10764 break
10765 fi
10766 done
10767 fi
10768 if test "X$found_dir" != "X"; then
10769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10770 if test "X$found_so" != "X"; then
10771 if test "$enable_rpath" = no \
10772 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10773 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10775 else
10776 haveit=
10777 for x in $ltrpathdirs; do
10778 if test "X$x" = "X$found_dir"; then
10779 haveit=yes
10780 break
10781 fi
10782 done
10783 if test -z "$haveit"; then
10784 ltrpathdirs="$ltrpathdirs $found_dir"
10785 fi
10786 if test "$acl_hardcode_direct" = yes; then
10787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10788 else
10789 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10791 haveit=
10792 for x in $rpathdirs; do
10793 if test "X$x" = "X$found_dir"; then
10794 haveit=yes
10795 break
10796 fi
10797 done
10798 if test -z "$haveit"; then
10799 rpathdirs="$rpathdirs $found_dir"
10800 fi
10801 else
10802 haveit=
10803 for x in $LDFLAGS $LIBICONV; do
10804
10805 acl_save_prefix="$prefix"
10806 prefix="$acl_final_prefix"
10807 acl_save_exec_prefix="$exec_prefix"
10808 exec_prefix="$acl_final_exec_prefix"
10809 eval x=\"$x\"
10810 exec_prefix="$acl_save_exec_prefix"
10811 prefix="$acl_save_prefix"
10812
10813 if test "X$x" = "X-L$found_dir"; then
10814 haveit=yes
10815 break
10816 fi
10817 done
10818 if test -z "$haveit"; then
10819 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10820 fi
10821 if test "$acl_hardcode_minus_L" != no; then
10822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10823 else
10824 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10825 fi
10826 fi
10827 fi
10828 fi
10829 else
10830 if test "X$found_a" != "X"; then
10831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10832 else
10833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10834 fi
10835 fi
10836 additional_includedir=
10837 case "$found_dir" in
10838 */$acl_libdirstem | */$acl_libdirstem/)
10839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10840 if test "$name" = 'iconv'; then
10841 LIBICONV_PREFIX="$basedir"
10842 fi
10843 additional_includedir="$basedir/include"
10844 ;;
10845 */$acl_libdirstem2 | */$acl_libdirstem2/)
10846 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10847 if test "$name" = 'iconv'; then
10848 LIBICONV_PREFIX="$basedir"
10849 fi
10850 additional_includedir="$basedir/include"
10851 ;;
10852 esac
10853 if test "X$additional_includedir" != "X"; then
10854 if test "X$additional_includedir" != "X/usr/include"; then
10855 haveit=
10856 if test "X$additional_includedir" = "X/usr/local/include"; then
10857 if test -n "$GCC"; then
10858 case $host_os in
10859 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10860 esac
10861 fi
10862 fi
10863 if test -z "$haveit"; then
10864 for x in $CPPFLAGS $INCICONV; do
10865
10866 acl_save_prefix="$prefix"
10867 prefix="$acl_final_prefix"
10868 acl_save_exec_prefix="$exec_prefix"
10869 exec_prefix="$acl_final_exec_prefix"
10870 eval x=\"$x\"
10871 exec_prefix="$acl_save_exec_prefix"
10872 prefix="$acl_save_prefix"
10873
10874 if test "X$x" = "X-I$additional_includedir"; then
10875 haveit=yes
10876 break
10877 fi
10878 done
10879 if test -z "$haveit"; then
10880 if test -d "$additional_includedir"; then
10881 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10882 fi
10883 fi
10884 fi
10885 fi
10886 fi
10887 if test -n "$found_la"; then
10888 save_libdir="$libdir"
10889 case "$found_la" in
10890 */* | *\\*) . "$found_la" ;;
10891 *) . "./$found_la" ;;
10892 esac
10893 libdir="$save_libdir"
10894 for dep in $dependency_libs; do
10895 case "$dep" in
10896 -L*)
10897 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10898 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10899 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10900 haveit=
10901 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10902 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10903 if test -n "$GCC"; then
10904 case $host_os in
10905 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10906 esac
10907 fi
10908 fi
10909 if test -z "$haveit"; then
10910 haveit=
10911 for x in $LDFLAGS $LIBICONV; do
10912
10913 acl_save_prefix="$prefix"
10914 prefix="$acl_final_prefix"
10915 acl_save_exec_prefix="$exec_prefix"
10916 exec_prefix="$acl_final_exec_prefix"
10917 eval x=\"$x\"
10918 exec_prefix="$acl_save_exec_prefix"
10919 prefix="$acl_save_prefix"
10920
10921 if test "X$x" = "X-L$additional_libdir"; then
10922 haveit=yes
10923 break
10924 fi
10925 done
10926 if test -z "$haveit"; then
10927 if test -d "$additional_libdir"; then
10928 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10929 fi
10930 fi
10931 haveit=
10932 for x in $LDFLAGS $LTLIBICONV; do
10933
10934 acl_save_prefix="$prefix"
10935 prefix="$acl_final_prefix"
10936 acl_save_exec_prefix="$exec_prefix"
10937 exec_prefix="$acl_final_exec_prefix"
10938 eval x=\"$x\"
10939 exec_prefix="$acl_save_exec_prefix"
10940 prefix="$acl_save_prefix"
10941
10942 if test "X$x" = "X-L$additional_libdir"; then
10943 haveit=yes
10944 break
10945 fi
10946 done
10947 if test -z "$haveit"; then
10948 if test -d "$additional_libdir"; then
10949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10950 fi
10951 fi
10952 fi
10953 fi
10954 ;;
10955 -R*)
10956 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10957 if test "$enable_rpath" != no; then
10958 haveit=
10959 for x in $rpathdirs; do
10960 if test "X$x" = "X$dir"; then
10961 haveit=yes
10962 break
10963 fi
10964 done
10965 if test -z "$haveit"; then
10966 rpathdirs="$rpathdirs $dir"
10967 fi
10968 haveit=
10969 for x in $ltrpathdirs; do
10970 if test "X$x" = "X$dir"; then
10971 haveit=yes
10972 break
10973 fi
10974 done
10975 if test -z "$haveit"; then
10976 ltrpathdirs="$ltrpathdirs $dir"
10977 fi
10978 fi
10979 ;;
10980 -l*)
10981 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10982 ;;
10983 *.la)
10984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10985 ;;
10986 *)
10987 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10988 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10989 ;;
10990 esac
10991 done
10992 fi
10993 else
10994 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10996 fi
10997 fi
10998 fi
10999 done
11000 done
11001 if test "X$rpathdirs" != "X"; then
11002 if test -n "$acl_hardcode_libdir_separator"; then
11003 alldirs=
11004 for found_dir in $rpathdirs; do
11005 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11006 done
11007 acl_save_libdir="$libdir"
11008 libdir="$alldirs"
11009 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11010 libdir="$acl_save_libdir"
11011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11012 else
11013 for found_dir in $rpathdirs; do
11014 acl_save_libdir="$libdir"
11015 libdir="$found_dir"
11016 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11017 libdir="$acl_save_libdir"
11018 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11019 done
11020 fi
11021 fi
11022 if test "X$ltrpathdirs" != "X"; then
11023 for found_dir in $ltrpathdirs; do
11024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11025 done
11026 fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 am_save_CPPFLAGS="$CPPFLAGS"
11039
11040 for element in $INCICONV; do
11041 haveit=
11042 for x in $CPPFLAGS; do
11043
11044 acl_save_prefix="$prefix"
11045 prefix="$acl_final_prefix"
11046 acl_save_exec_prefix="$exec_prefix"
11047 exec_prefix="$acl_final_exec_prefix"
11048 eval x=\"$x\"
11049 exec_prefix="$acl_save_exec_prefix"
11050 prefix="$acl_save_prefix"
11051
11052 if test "X$x" = "X$element"; then
11053 haveit=yes
11054 break
11055 fi
11056 done
11057 if test -z "$haveit"; then
11058 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11059 fi
11060 done
11061
11062
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11064 printf %s "checking for iconv... " >&6; }
11065 if test ${am_cv_func_iconv+y}
11066 then :
11067 printf %s "(cached) " >&6
11068 else $as_nop
11069
11070 am_cv_func_iconv="no, consider installing GNU libiconv"
11071 am_cv_lib_iconv=no
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 #include <stdlib.h>
11076 #include <iconv.h>
11077
11078 int
11079 main (void)
11080 {
11081 iconv_t cd = iconv_open("","");
11082 iconv(cd,NULL,NULL,NULL,NULL);
11083 iconv_close(cd);
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"
11089 then :
11090 am_cv_func_iconv=yes
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11093 conftest$ac_exeext conftest.$ac_ext
11094 if test "$am_cv_func_iconv" != yes; then
11095 am_save_LIBS="$LIBS"
11096 LIBS="$LIBS $LIBICONV"
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099
11100 #include <stdlib.h>
11101 #include <iconv.h>
11102
11103 int
11104 main (void)
11105 {
11106 iconv_t cd = iconv_open("","");
11107 iconv(cd,NULL,NULL,NULL,NULL);
11108 iconv_close(cd);
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"
11114 then :
11115 am_cv_lib_iconv=yes
11116 am_cv_func_iconv=yes
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11119 conftest$ac_exeext conftest.$ac_ext
11120 LIBS="$am_save_LIBS"
11121 fi
11122
11123 fi
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11125 printf "%s\n" "$am_cv_func_iconv" >&6; }
11126 if test "$am_cv_func_iconv" = yes; then
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11128 printf %s "checking for working iconv... " >&6; }
11129 if test ${am_cv_func_iconv_works+y}
11130 then :
11131 printf %s "(cached) " >&6
11132 else $as_nop
11133
11134 am_save_LIBS="$LIBS"
11135 if test $am_cv_lib_iconv = yes; then
11136 LIBS="$LIBS $LIBICONV"
11137 fi
11138 am_cv_func_iconv_works=no
11139 for ac_iconv_const in '' 'const'; do
11140 if test "$cross_compiling" = yes
11141 then :
11142 case "$host_os" in
11143 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11144 *) am_cv_func_iconv_works="guessing yes" ;;
11145 esac
11146 else $as_nop
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149
11150 #include <iconv.h>
11151 #include <string.h>
11152
11153 #ifndef ICONV_CONST
11154 # define ICONV_CONST $ac_iconv_const
11155 #endif
11156
11157 int
11158 main (void)
11159 {
11160 int result = 0;
11161 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11162 returns. */
11163 {
11164 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11165 if (cd_utf8_to_88591 != (iconv_t)(-1))
11166 {
11167 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11168 char buf[10];
11169 ICONV_CONST char *inptr = input;
11170 size_t inbytesleft = strlen (input);
11171 char *outptr = buf;
11172 size_t outbytesleft = sizeof (buf);
11173 size_t res = iconv (cd_utf8_to_88591,
11174 &inptr, &inbytesleft,
11175 &outptr, &outbytesleft);
11176 if (res == 0)
11177 result |= 1;
11178 iconv_close (cd_utf8_to_88591);
11179 }
11180 }
11181 /* Test against Solaris 10 bug: Failures are not distinguishable from
11182 successful returns. */
11183 {
11184 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11185 if (cd_ascii_to_88591 != (iconv_t)(-1))
11186 {
11187 static ICONV_CONST char input[] = "\263";
11188 char buf[10];
11189 ICONV_CONST char *inptr = input;
11190 size_t inbytesleft = strlen (input);
11191 char *outptr = buf;
11192 size_t outbytesleft = sizeof (buf);
11193 size_t res = iconv (cd_ascii_to_88591,
11194 &inptr, &inbytesleft,
11195 &outptr, &outbytesleft);
11196 if (res == 0)
11197 result |= 2;
11198 iconv_close (cd_ascii_to_88591);
11199 }
11200 }
11201 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11202 {
11203 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11204 if (cd_88591_to_utf8 != (iconv_t)(-1))
11205 {
11206 static ICONV_CONST char input[] = "\304";
11207 static char buf[2] = { (char)0xDE, (char)0xAD };
11208 ICONV_CONST char *inptr = input;
11209 size_t inbytesleft = 1;
11210 char *outptr = buf;
11211 size_t outbytesleft = 1;
11212 size_t res = iconv (cd_88591_to_utf8,
11213 &inptr, &inbytesleft,
11214 &outptr, &outbytesleft);
11215 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11216 result |= 4;
11217 iconv_close (cd_88591_to_utf8);
11218 }
11219 }
11220 #if 0 /* This bug could be worked around by the caller. */
11221 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11222 {
11223 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11224 if (cd_88591_to_utf8 != (iconv_t)(-1))
11225 {
11226 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11227 char buf[50];
11228 ICONV_CONST char *inptr = input;
11229 size_t inbytesleft = strlen (input);
11230 char *outptr = buf;
11231 size_t outbytesleft = sizeof (buf);
11232 size_t res = iconv (cd_88591_to_utf8,
11233 &inptr, &inbytesleft,
11234 &outptr, &outbytesleft);
11235 if ((int)res > 0)
11236 result |= 8;
11237 iconv_close (cd_88591_to_utf8);
11238 }
11239 }
11240 #endif
11241 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11242 provided. */
11243 {
11244 /* Try standardized names. */
11245 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11246 /* Try IRIX, OSF/1 names. */
11247 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11248 /* Try AIX names. */
11249 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11250 /* Try HP-UX names. */
11251 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11252 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11253 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11254 result |= 16;
11255 if (cd1 != (iconv_t)(-1))
11256 iconv_close (cd1);
11257 if (cd2 != (iconv_t)(-1))
11258 iconv_close (cd2);
11259 if (cd3 != (iconv_t)(-1))
11260 iconv_close (cd3);
11261 if (cd4 != (iconv_t)(-1))
11262 iconv_close (cd4);
11263 }
11264 return result;
11265
11266 ;
11267 return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_c_try_run "$LINENO"
11271 then :
11272 am_cv_func_iconv_works=yes
11273 fi
11274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11275 conftest.$ac_objext conftest.beam conftest.$ac_ext
11276 fi
11277
11278 test "$am_cv_func_iconv_works" = no || break
11279 done
11280 LIBS="$am_save_LIBS"
11281
11282 fi
11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11284 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
11285 case "$am_cv_func_iconv_works" in
11286 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11287 *) am_func_iconv=yes ;;
11288 esac
11289 else
11290 am_func_iconv=no am_cv_lib_iconv=no
11291 fi
11292 if test "$am_func_iconv" = yes; then
11293
11294 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
11295
11296 fi
11297 if test "$am_cv_lib_iconv" = yes; then
11298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11299 printf %s "checking how to link with libiconv... " >&6; }
11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11301 printf "%s\n" "$LIBICONV" >&6; }
11302 else
11303 CPPFLAGS="$am_save_CPPFLAGS"
11304 LIBICONV=
11305 LTLIBICONV=
11306 fi
11307
11308
11309
11310 if test "$am_cv_func_iconv" = yes; then
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11312 printf %s "checking for iconv declaration... " >&6; }
11313 if test ${am_cv_proto_iconv+y}
11314 then :
11315 printf %s "(cached) " >&6
11316 else $as_nop
11317
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320
11321 #include <stdlib.h>
11322 #include <iconv.h>
11323 extern
11324 #ifdef __cplusplus
11325 "C"
11326 #endif
11327 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11328 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11329 #else
11330 size_t iconv();
11331 #endif
11332
11333 int
11334 main (void)
11335 {
11336
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_compile "$LINENO"
11342 then :
11343 am_cv_proto_iconv_arg1=""
11344 else $as_nop
11345 am_cv_proto_iconv_arg1="const"
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11348 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);"
11349 fi
11350
11351 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
11353 $am_cv_proto_iconv" >&5
11354 printf "%s\n" "
11355 $am_cv_proto_iconv" >&6; }
11356 else
11357 am_cv_proto_iconv_arg1=""
11358 fi
11359
11360 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
11361
11362
11363
11364
11365
11366
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
11370 int
11371 main (void)
11372 {
11373
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"
11379 then :
11380
11381 printf "%s\n" "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
11382
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11385 conftest$ac_exeext conftest.$ac_ext
11386
11387 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
11388 if test "x$ac_cv_header_argz_h" = xyes
11389 then :
11390 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
11391
11392 fi
11393 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11394 if test "x$ac_cv_header_inttypes_h" = xyes
11395 then :
11396 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
11397
11398 fi
11399 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11400 if test "x$ac_cv_header_limits_h" = xyes
11401 then :
11402 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11403
11404 fi
11405 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11406 if test "x$ac_cv_header_unistd_h" = xyes
11407 then :
11408 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11409
11410 fi
11411 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11412 if test "x$ac_cv_header_sys_param_h" = xyes
11413 then :
11414 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11415
11416 fi
11417
11418 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
11419 if test "x$ac_cv_func_getcwd" = xyes
11420 then :
11421 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
11422
11423 fi
11424 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
11425 if test "x$ac_cv_func_getegid" = xyes
11426 then :
11427 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
11428
11429 fi
11430 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
11431 if test "x$ac_cv_func_geteuid" = xyes
11432 then :
11433 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
11434
11435 fi
11436 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
11437 if test "x$ac_cv_func_getgid" = xyes
11438 then :
11439 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
11440
11441 fi
11442 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
11443 if test "x$ac_cv_func_getuid" = xyes
11444 then :
11445 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
11446
11447 fi
11448 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
11449 if test "x$ac_cv_func_mempcpy" = xyes
11450 then :
11451 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
11452
11453 fi
11454 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
11455 if test "x$ac_cv_func_munmap" = xyes
11456 then :
11457 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
11458
11459 fi
11460 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
11461 if test "x$ac_cv_func_stpcpy" = xyes
11462 then :
11463 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
11464
11465 fi
11466 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11467 if test "x$ac_cv_func_strcasecmp" = xyes
11468 then :
11469 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11470
11471 fi
11472 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
11473 if test "x$ac_cv_func_strdup" = xyes
11474 then :
11475 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
11476
11477 fi
11478 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
11479 if test "x$ac_cv_func_strtoul" = xyes
11480 then :
11481 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
11482
11483 fi
11484 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
11485 if test "x$ac_cv_func_tsearch" = xyes
11486 then :
11487 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
11488
11489 fi
11490 ac_fn_c_check_func "$LINENO" "argz_count" "ac_cv_func_argz_count"
11491 if test "x$ac_cv_func_argz_count" = xyes
11492 then :
11493 printf "%s\n" "#define HAVE_ARGZ_COUNT 1" >>confdefs.h
11494
11495 fi
11496 ac_fn_c_check_func "$LINENO" "argz_stringify" "ac_cv_func_argz_stringify"
11497 if test "x$ac_cv_func_argz_stringify" = xyes
11498 then :
11499 printf "%s\n" "#define HAVE_ARGZ_STRINGIFY 1" >>confdefs.h
11500
11501 fi
11502 ac_fn_c_check_func "$LINENO" "argz_next" "ac_cv_func_argz_next"
11503 if test "x$ac_cv_func_argz_next" = xyes
11504 then :
11505 printf "%s\n" "#define HAVE_ARGZ_NEXT 1" >>confdefs.h
11506
11507 fi
11508 ac_fn_c_check_func "$LINENO" "__fsetlocking" "ac_cv_func___fsetlocking"
11509 if test "x$ac_cv_func___fsetlocking" = xyes
11510 then :
11511 printf "%s\n" "#define HAVE___FSETLOCKING 1" >>confdefs.h
11512
11513 fi
11514
11515
11516 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
11517 if test "x$ac_cv_func_localeconv" = xyes
11518 then :
11519 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
11520
11521 fi
11522
11523
11524 ac_fn_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
11525 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11526 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
11527 then :
11528 ac_have_decl=1
11529 else $as_nop
11530 ac_have_decl=0
11531 fi
11532 printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h
11533 ac_fn_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
11534 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11535 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
11536 then :
11537 ac_have_decl=1
11538 else $as_nop
11539 ac_have_decl=0
11540 fi
11541 printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h
11542
11543
11544
11545
11546 for ac_prog in bison
11547 do
11548 # Extract the first word of "$ac_prog", so it can be a program name with args.
11549 set dummy $ac_prog; ac_word=$2
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 printf %s "checking for $ac_word... " >&6; }
11552 if test ${ac_cv_prog_INTLBISON+y}
11553 then :
11554 printf %s "(cached) " >&6
11555 else $as_nop
11556 if test -n "$INTLBISON"; then
11557 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11558 else
11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11561 do
11562 IFS=$as_save_IFS
11563 case $as_dir in #(((
11564 '') as_dir=./ ;;
11565 */) ;;
11566 *) as_dir=$as_dir/ ;;
11567 esac
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_INTLBISON="$ac_prog"
11571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574 done
11575 done
11576 IFS=$as_save_IFS
11577
11578 fi
11579 fi
11580 INTLBISON=$ac_cv_prog_INTLBISON
11581 if test -n "$INTLBISON"; then
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
11583 printf "%s\n" "$INTLBISON" >&6; }
11584 else
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 printf "%s\n" "no" >&6; }
11587 fi
11588
11589
11590 test -n "$INTLBISON" && break
11591 done
11592
11593 if test -z "$INTLBISON"; then
11594 ac_verc_fail=yes
11595 else
11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
11597 printf %s "checking version of bison... " >&6; }
11598 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11599 case $ac_prog_version in
11600 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11601 2.[7-9]* | [3-9].*)
11602 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11603 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11604 esac
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
11606 printf "%s\n" "$ac_prog_version" >&6; }
11607 fi
11608 if test $ac_verc_fail = yes; then
11609 INTLBISON=:
11610 fi
11611
11612
11613
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11615 printf %s "checking for long long int... " >&6; }
11616 if test ${ac_cv_type_long_long_int+y}
11617 then :
11618 printf %s "(cached) " >&6
11619 else $as_nop
11620 ac_cv_type_long_long_int=yes
11621 case $ac_prog_cc_stdc in
11622 no | c89) ;;
11623 *)
11624 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
11625 if test $ac_cv_type_long_long_int = yes; then
11626 if test "$cross_compiling" = yes
11627 then :
11628 :
11629 else $as_nop
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #include <limits.h>
11633 #ifndef LLONG_MAX
11634 # define HALF \
11635 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11636 # define LLONG_MAX (HALF - 1 + HALF)
11637 #endif
11638 int
11639 main (void)
11640 {
11641 long long int n = 1;
11642 int i;
11643 for (i = 0; ; i++)
11644 {
11645 long long int m = n << i;
11646 if (m >> i != n)
11647 return 1;
11648 if (LLONG_MAX / 2 < m)
11649 break;
11650 }
11651 return 0;
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_run "$LINENO"
11657 then :
11658
11659 else $as_nop
11660 ac_cv_type_long_long_int=no
11661 fi
11662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11663 conftest.$ac_objext conftest.beam conftest.$ac_ext
11664 fi
11665
11666 fi;;
11667 esac
11668 fi
11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11670 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
11671 if test $ac_cv_type_long_long_int = yes; then
11672
11673 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11674
11675 fi
11676
11677
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11679 printf %s "checking for wchar_t... " >&6; }
11680 if test ${gt_cv_c_wchar_t+y}
11681 then :
11682 printf %s "(cached) " >&6
11683 else $as_nop
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686 #include <stddef.h>
11687 wchar_t foo = (wchar_t)'\0';
11688 int
11689 main (void)
11690 {
11691
11692 ;
11693 return 0;
11694 }
11695 _ACEOF
11696 if ac_fn_c_try_compile "$LINENO"
11697 then :
11698 gt_cv_c_wchar_t=yes
11699 else $as_nop
11700 gt_cv_c_wchar_t=no
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11703 fi
11704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11705 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
11706 if test $gt_cv_c_wchar_t = yes; then
11707
11708 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
11709
11710 fi
11711
11712
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11714 printf %s "checking for wint_t... " >&6; }
11715 if test ${gt_cv_c_wint_t+y}
11716 then :
11717 printf %s "(cached) " >&6
11718 else $as_nop
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11723 <wchar.h>.
11724 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11725 before <wchar.h>. */
11726 #include <stddef.h>
11727 #include <stdio.h>
11728 #include <time.h>
11729 #include <wchar.h>
11730 wint_t foo = (wchar_t)'\0';
11731 int
11732 main (void)
11733 {
11734
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_compile "$LINENO"
11740 then :
11741 gt_cv_c_wint_t=yes
11742 else $as_nop
11743 gt_cv_c_wint_t=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11746 fi
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11748 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
11749 if test $gt_cv_c_wint_t = yes; then
11750
11751 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
11752
11753
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11755 printf %s "checking whether wint_t is too small... " >&6; }
11756 if test ${gl_cv_type_wint_t_too_small+y}
11757 then :
11758 printf %s "(cached) " >&6
11759 else $as_nop
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11764 <wchar.h>.
11765 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11766 included before <wchar.h>. */
11767 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11768 # include <stddef.h>
11769 # include <stdio.h>
11770 # include <time.h>
11771 #endif
11772 #include <wchar.h>
11773 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11774
11775 int
11776 main (void)
11777 {
11778
11779 ;
11780 return 0;
11781 }
11782 _ACEOF
11783 if ac_fn_c_try_compile "$LINENO"
11784 then :
11785 gl_cv_type_wint_t_too_small=no
11786 else $as_nop
11787 gl_cv_type_wint_t_too_small=yes
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11790 fi
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11792 printf "%s\n" "$gl_cv_type_wint_t_too_small" >&6; }
11793 if test $gl_cv_type_wint_t_too_small = yes; then
11794 GNULIB_OVERRIDES_WINT_T=1
11795 else
11796 GNULIB_OVERRIDES_WINT_T=0
11797 fi
11798 else
11799 GNULIB_OVERRIDES_WINT_T=0
11800 fi
11801
11802
11803
11804
11805
11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
11807 printf %s "checking for intmax_t... " >&6; }
11808 if test ${gt_cv_c_intmax_t+y}
11809 then :
11810 printf %s "(cached) " >&6
11811 else $as_nop
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 #include <stddef.h>
11816 #include <stdlib.h>
11817 #if HAVE_STDINT_H_WITH_UINTMAX
11818 #include <stdint.h>
11819 #endif
11820 #if HAVE_INTTYPES_H_WITH_UINTMAX
11821 #include <inttypes.h>
11822 #endif
11823
11824 int
11825 main (void)
11826 {
11827 intmax_t x = -1;
11828 return !x;
11829 ;
11830 return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"
11834 then :
11835 gt_cv_c_intmax_t=yes
11836 else $as_nop
11837 gt_cv_c_intmax_t=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11840 fi
11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11842 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
11843 if test $gt_cv_c_intmax_t = yes; then
11844
11845 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
11846
11847 fi
11848
11849
11850
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
11852 printf %s "checking whether printf() supports POSIX/XSI format strings... " >&6; }
11853 if test ${gt_cv_func_printf_posix+y}
11854 then :
11855 printf %s "(cached) " >&6
11856 else $as_nop
11857
11858 if test "$cross_compiling" = yes
11859 then :
11860
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863
11864 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
11865 notposix
11866 #endif
11867
11868 _ACEOF
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870 $EGREP "notposix" >/dev/null 2>&1
11871 then :
11872 gt_cv_func_printf_posix="guessing no"
11873 else $as_nop
11874 gt_cv_func_printf_posix="guessing yes"
11875 fi
11876 rm -rf conftest*
11877
11878
11879 else $as_nop
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882
11883 #include <stdio.h>
11884 #include <string.h>
11885 /* The string "%2$d %1$d", with dollar characters protected from the shell's
11886 dollar expansion (possibly an autoconf bug). */
11887 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
11888 static char buf[100];
11889 int main ()
11890 {
11891 sprintf (buf, format, 33, 55);
11892 return (strcmp (buf, "55 33") != 0);
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_run "$LINENO"
11896 then :
11897 gt_cv_func_printf_posix=yes
11898 else $as_nop
11899 gt_cv_func_printf_posix=no
11900 fi
11901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11902 conftest.$ac_objext conftest.beam conftest.$ac_ext
11903 fi
11904
11905
11906 fi
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
11908 printf "%s\n" "$gt_cv_func_printf_posix" >&6; }
11909 case $gt_cv_func_printf_posix in
11910 *yes)
11911
11912 printf "%s\n" "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
11913
11914 ;;
11915 esac
11916
11917
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11919 printf %s "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11920 if test ${ac_cv_gnu_library_2_1+y}
11921 then :
11922 printf %s "(cached) " >&6
11923 else $as_nop
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926
11927 #include <features.h>
11928 #ifdef __GNU_LIBRARY__
11929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11930 Lucky GNU user
11931 #endif
11932 #endif
11933 #ifdef __UCLIBC__
11934 Lucky user
11935 #endif
11936
11937 _ACEOF
11938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11939 $EGREP "Lucky" >/dev/null 2>&1
11940 then :
11941 ac_cv_gnu_library_2_1=yes
11942 else $as_nop
11943 ac_cv_gnu_library_2_1=no
11944 fi
11945 rm -rf conftest*
11946
11947
11948
11949 fi
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11951 printf "%s\n" "$ac_cv_gnu_library_2_1" >&6; }
11952
11953 GLIBC21="$ac_cv_gnu_library_2_1"
11954
11955
11956
11957 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11958 if test "x$ac_cv_header_stdint_h" = xyes
11959 then :
11960 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11961
11962 fi
11963
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
11965 printf %s "checking for SIZE_MAX... " >&6; }
11966 if test ${gl_cv_size_max+y}
11967 then :
11968 printf %s "(cached) " >&6
11969 else $as_nop
11970
11971 gl_cv_size_max=
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974
11975 #include <limits.h>
11976 #if HAVE_STDINT_H
11977 #include <stdint.h>
11978 #endif
11979 #ifdef SIZE_MAX
11980 Found it
11981 #endif
11982
11983 _ACEOF
11984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11985 $EGREP "Found it" >/dev/null 2>&1
11986 then :
11987 gl_cv_size_max=yes
11988 fi
11989 rm -rf conftest*
11990
11991 if test -z "$gl_cv_size_max"; then
11992 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
11993 #include <limits.h>"
11994 then :
11995
11996 else $as_nop
11997 size_t_bits_minus_1=
11998 fi
11999
12000 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
12001 then :
12002
12003 else $as_nop
12004 fits_in_uint=
12005 fi
12006
12007 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12008 if test $fits_in_uint = 1; then
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <stddef.h>
12012 extern size_t foo;
12013 extern unsigned long foo;
12014
12015 int
12016 main (void)
12017 {
12018
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_compile "$LINENO"
12024 then :
12025 fits_in_uint=0
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12028 fi
12029 if test $fits_in_uint = 1; then
12030 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12031 else
12032 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12033 fi
12034 else
12035 gl_cv_size_max='((size_t)~(size_t)0)'
12036 fi
12037 fi
12038
12039 fi
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
12041 printf "%s\n" "$gl_cv_size_max" >&6; }
12042 if test "$gl_cv_size_max" != yes; then
12043
12044 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
12045
12046 fi
12047
12048
12049
12050
12051 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_stdint_h" = xyes
12053 then :
12054 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12055
12056 fi
12057
12058
12059
12060
12061
12062
12063
12064
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
12066 printf %s "checking for working fcntl.h... " >&6; }
12067 if test ${gl_cv_header_working_fcntl_h+y}
12068 then :
12069 printf %s "(cached) " >&6
12070 else $as_nop
12071 if test "$cross_compiling" = yes
12072 then :
12073 case "$host_os" in
12074 # Guess 'no' on native Windows.
12075 mingw*) gl_cv_header_working_fcntl_h='no' ;;
12076 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
12077 esac
12078
12079 else $as_nop
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <sys/types.h>
12083 #include <sys/stat.h>
12084 #if HAVE_UNISTD_H
12085 # include <unistd.h>
12086 #else /* on Windows with MSVC */
12087 # include <io.h>
12088 # include <stdlib.h>
12089 # defined sleep(n) _sleep ((n) * 1000)
12090 #endif
12091 #include <fcntl.h>
12092 #ifndef O_NOATIME
12093 #define O_NOATIME 0
12094 #endif
12095 #ifndef O_NOFOLLOW
12096 #define O_NOFOLLOW 0
12097 #endif
12098 static int const constants[] =
12099 {
12100 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12101 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12102 };
12103
12104 int
12105 main (void)
12106 {
12107
12108 int result = !constants;
12109 #if HAVE_SYMLINK
12110 {
12111 static char const sym[] = "conftest.sym";
12112 if (symlink ("/dev/null", sym) != 0)
12113 result |= 2;
12114 else
12115 {
12116 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
12117 if (fd >= 0)
12118 {
12119 close (fd);
12120 result |= 4;
12121 }
12122 }
12123 if (unlink (sym) != 0 || symlink (".", sym) != 0)
12124 result |= 2;
12125 else
12126 {
12127 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
12128 if (fd >= 0)
12129 {
12130 close (fd);
12131 result |= 4;
12132 }
12133 }
12134 unlink (sym);
12135 }
12136 #endif
12137 {
12138 static char const file[] = "confdefs.h";
12139 int fd = open (file, O_RDONLY | O_NOATIME);
12140 if (fd < 0)
12141 result |= 8;
12142 else
12143 {
12144 struct stat st0;
12145 if (fstat (fd, &st0) != 0)
12146 result |= 16;
12147 else
12148 {
12149 char c;
12150 sleep (1);
12151 if (read (fd, &c, 1) != 1)
12152 result |= 24;
12153 else
12154 {
12155 if (close (fd) != 0)
12156 result |= 32;
12157 else
12158 {
12159 struct stat st1;
12160 if (stat (file, &st1) != 0)
12161 result |= 40;
12162 else
12163 if (st0.st_atime != st1.st_atime)
12164 result |= 64;
12165 }
12166 }
12167 }
12168 }
12169 }
12170 return result;
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_run "$LINENO"
12176 then :
12177 gl_cv_header_working_fcntl_h=yes
12178 else $as_nop
12179 case $? in #(
12180 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
12181 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
12182 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12183 *) gl_cv_header_working_fcntl_h='no';;
12184 esac
12185 fi
12186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12187 conftest.$ac_objext conftest.beam conftest.$ac_ext
12188 fi
12189
12190
12191 fi
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
12193 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
12194
12195 case $gl_cv_header_working_fcntl_h in #(
12196 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12197 *) ac_val=1;;
12198 esac
12199
12200 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
12201
12202
12203 case $gl_cv_header_working_fcntl_h in #(
12204 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12205 *) ac_val=1;;
12206 esac
12207
12208 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223 if test $ac_cv_func_uselocale = yes; then
12224
12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
12226 printf %s "checking whether uselocale works... " >&6; }
12227 if test ${gt_cv_func_uselocale_works+y}
12228 then :
12229 printf %s "(cached) " >&6
12230 else $as_nop
12231 if test "$cross_compiling" = yes
12232 then :
12233 # Guess no on AIX, yes otherwise.
12234 case "$host_os" in
12235 aix*) gt_cv_func_uselocale_works="guessing no" ;;
12236 *) gt_cv_func_uselocale_works="guessing yes" ;;
12237 esac
12238
12239 else $as_nop
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242
12243 #include <locale.h>
12244 #if HAVE_XLOCALE_H
12245 # include <xlocale.h>
12246 #endif
12247 int main ()
12248 {
12249 uselocale (NULL);
12250 setlocale (LC_ALL, "en_US.UTF-8");
12251 return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_run "$LINENO"
12255 then :
12256 gt_cv_func_uselocale_works=yes
12257 else $as_nop
12258 gt_cv_func_uselocale_works=no
12259 fi
12260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12261 conftest.$ac_objext conftest.beam conftest.$ac_ext
12262 fi
12263
12264
12265 fi
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
12267 printf "%s\n" "$gt_cv_func_uselocale_works" >&6; }
12268 else
12269 gt_cv_func_uselocale_works=no
12270 fi
12271 case "$gt_cv_func_uselocale_works" in
12272 *yes)
12273
12274 printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
12275
12276 ;;
12277 esac
12278
12279
12280 case "$gt_cv_func_uselocale_works" in
12281 *yes)
12282
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
12284 printf %s "checking for fake locale system (OpenBSD)... " >&6; }
12285 if test ${gt_cv_locale_fake+y}
12286 then :
12287 printf %s "(cached) " >&6
12288 else $as_nop
12289 if test "$cross_compiling" = yes
12290 then :
12291 case "$host_os" in
12292 openbsd*) gt_cv_locale_fake="guessing yes" ;;
12293 *) gt_cv_locale_fake="guessing no" ;;
12294 esac
12295
12296 else $as_nop
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 #include <locale.h>
12301 #if HAVE_XLOCALE_H
12302 # include <xlocale.h>
12303 #endif
12304 int main ()
12305 {
12306 locale_t loc1, loc2;
12307 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
12308 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
12309 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
12310 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
12311 return !(loc1 == loc2);
12312 }
12313 _ACEOF
12314 if ac_fn_c_try_run "$LINENO"
12315 then :
12316 gt_cv_locale_fake=yes
12317 else $as_nop
12318 gt_cv_locale_fake=no
12319 fi
12320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12321 conftest.$ac_objext conftest.beam conftest.$ac_ext
12322 fi
12323
12324
12325 fi
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
12327 printf "%s\n" "$gt_cv_locale_fake" >&6; }
12328 ;;
12329 *) gt_cv_locale_fake=no ;;
12330 esac
12331 case "$gt_cv_locale_fake" in
12332 *yes)
12333
12334 printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
12335
12336 ;;
12337 esac
12338
12339 case "$gt_cv_func_uselocale_works" in
12340 *yes)
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
12342 printf %s "checking for Solaris 11.4 locale system... " >&6; }
12343 if test ${gt_cv_locale_solaris114+y}
12344 then :
12345 printf %s "(cached) " >&6
12346 else $as_nop
12347 case "$host_os" in
12348 solaris*)
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351
12352 #include <locale.h>
12353 struct _LC_locale_t *x;
12354 locale_t y;
12355
12356 int
12357 main (void)
12358 {
12359 *y = x;
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_compile "$LINENO"
12365 then :
12366 gt_cv_locale_solaris114=yes
12367 else $as_nop
12368 gt_cv_locale_solaris114=no
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12371 ;;
12372 *) gt_cv_locale_solaris114=no ;;
12373 esac
12374
12375 fi
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
12377 printf "%s\n" "$gt_cv_locale_solaris114" >&6; }
12378 ;;
12379 *) gt_cv_locale_solaris114=no ;;
12380 esac
12381 if test $gt_cv_locale_solaris114 = yes; then
12382
12383 printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
12384
12385 fi
12386
12387 case "$gt_cv_func_uselocale_works" in
12388 *yes)
12389 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
12390 if test "x$ac_cv_func_getlocalename_l" = xyes
12391 then :
12392 printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h
12393
12394 fi
12395
12396 ;;
12397 esac
12398
12399 gt_nameless_locales=no
12400 if false; then
12401 gt_nameless_locales=yes
12402
12403 printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
12404
12405 fi
12406
12407
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12409 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
12410 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
12411 then :
12412 printf %s "(cached) " >&6
12413 else $as_nop
12414 gt_save_LIBS="$LIBS"
12415 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418 #include <CoreFoundation/CFPreferences.h>
12419 int
12420 main (void)
12421 {
12422 CFPreferencesCopyAppValue(NULL, NULL)
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"
12428 then :
12429 gt_cv_func_CFPreferencesCopyAppValue=yes
12430 else $as_nop
12431 gt_cv_func_CFPreferencesCopyAppValue=no
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12434 conftest$ac_exeext conftest.$ac_ext
12435 LIBS="$gt_save_LIBS"
12436 fi
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12438 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12439 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12440
12441 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12442
12443 fi
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12445 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
12446 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
12447 then :
12448 printf %s "(cached) " >&6
12449 else $as_nop
12450 gt_save_LIBS="$LIBS"
12451 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #include <CoreFoundation/CFLocale.h>
12455 int
12456 main (void)
12457 {
12458 CFLocaleCopyCurrent();
12459 ;
12460 return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"
12464 then :
12465 gt_cv_func_CFLocaleCopyCurrent=yes
12466 else $as_nop
12467 gt_cv_func_CFLocaleCopyCurrent=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS="$gt_save_LIBS"
12472 fi
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12474 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12475 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12476
12477 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12478
12479 fi
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12481 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12482 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
12483 then :
12484 printf %s "(cached) " >&6
12485 else $as_nop
12486 gt_save_LIBS="$LIBS"
12487 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <CoreFoundation/CFLocale.h>
12491 int
12492 main (void)
12493 {
12494 CFLocaleCopyPreferredLanguages();
12495 ;
12496 return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"
12500 then :
12501 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12502 else $as_nop
12503 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12506 conftest$ac_exeext conftest.$ac_ext
12507 LIBS="$gt_save_LIBS"
12508 fi
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12510 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12511 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12512
12513 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12514
12515 fi
12516 INTL_MACOSX_LIBS=
12517 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12518 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
12519 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12520 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12521 fi
12522
12523
12524
12525
12526
12527
12528
12529
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
12531 printf %s "checking for flexible array members... " >&6; }
12532 if test ${ac_cv_c_flexmember+y}
12533 then :
12534 printf %s "(cached) " >&6
12535 else $as_nop
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 #include <stdlib.h>
12539 #include <stdio.h>
12540 #include <stddef.h>
12541 struct s { int n; double d[]; };
12542 int
12543 main (void)
12544 {
12545 int m = getchar ();
12546 struct s *p = (struct s *) malloc (offsetof (struct s, d)
12547 + m * sizeof (double));
12548 p->d[0] = 0.0;
12549 return p->d != (double *) NULL;
12550 ;
12551 return 0;
12552 }
12553 _ACEOF
12554 if ac_fn_c_try_compile "$LINENO"
12555 then :
12556 ac_cv_c_flexmember=yes
12557 else $as_nop
12558 ac_cv_c_flexmember=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12561 fi
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12563 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
12564 if test $ac_cv_c_flexmember = yes; then
12565
12566 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12567
12568 else
12569 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12570
12571 fi
12572
12573
12574
12575
12576
12577
12578
12579
12580 if test -n "$ac_tool_prefix"; then
12581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12582 set dummy ${ac_tool_prefix}ar; ac_word=$2
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 printf %s "checking for $ac_word... " >&6; }
12585 if test ${ac_cv_prog_AR+y}
12586 then :
12587 printf %s "(cached) " >&6
12588 else $as_nop
12589 if test -n "$AR"; then
12590 ac_cv_prog_AR="$AR" # Let the user override the test.
12591 else
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH
12594 do
12595 IFS=$as_save_IFS
12596 case $as_dir in #(((
12597 '') as_dir=./ ;;
12598 */) ;;
12599 *) as_dir=$as_dir/ ;;
12600 esac
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_AR="${ac_tool_prefix}ar"
12604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 AR=$ac_cv_prog_AR
12614 if test -n "$AR"; then
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12616 printf "%s\n" "$AR" >&6; }
12617 else
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 printf "%s\n" "no" >&6; }
12620 fi
12621
12622
12623 fi
12624 if test -z "$ac_cv_prog_AR"; then
12625 ac_ct_AR=$AR
12626 # Extract the first word of "ar", so it can be a program name with args.
12627 set dummy ar; ac_word=$2
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 printf %s "checking for $ac_word... " >&6; }
12630 if test ${ac_cv_prog_ac_ct_AR+y}
12631 then :
12632 printf %s "(cached) " >&6
12633 else $as_nop
12634 if test -n "$ac_ct_AR"; then
12635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12636 else
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12639 do
12640 IFS=$as_save_IFS
12641 case $as_dir in #(((
12642 '') as_dir=./ ;;
12643 */) ;;
12644 *) as_dir=$as_dir/ ;;
12645 esac
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12648 ac_cv_prog_ac_ct_AR="ar"
12649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12650 break 2
12651 fi
12652 done
12653 done
12654 IFS=$as_save_IFS
12655
12656 fi
12657 fi
12658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12659 if test -n "$ac_ct_AR"; then
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12661 printf "%s\n" "$ac_ct_AR" >&6; }
12662 else
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 printf "%s\n" "no" >&6; }
12665 fi
12666
12667 if test "x$ac_ct_AR" = x; then
12668 AR="ar"
12669 else
12670 case $cross_compiling:$ac_tool_warned in
12671 yes:)
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674 ac_tool_warned=yes ;;
12675 esac
12676 AR=$ac_ct_AR
12677 fi
12678 else
12679 AR="$ac_cv_prog_AR"
12680 fi
12681
12682 if test -z "$ARFLAGS"; then
12683 ARFLAGS='cr'
12684 fi
12685
12686
12687
12688
12689 case "$enable_silent_rules" in
12690 yes) INTL_DEFAULT_VERBOSITY=0;;
12691 no) INTL_DEFAULT_VERBOSITY=1;;
12692 *) INTL_DEFAULT_VERBOSITY=1;;
12693 esac
12694
12695
12696 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12697 if test "x$ac_cv_type_ptrdiff_t" = xyes
12698 then :
12699
12700 else $as_nop
12701
12702 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
12703
12704
12705 fi
12706
12707 ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
12708 if test "x$ac_cv_header_features_h" = xyes
12709 then :
12710 printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
12711
12712 fi
12713 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
12714 if test "x$ac_cv_header_stddef_h" = xyes
12715 then :
12716 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
12717
12718 fi
12719 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12720 if test "x$ac_cv_header_stdlib_h" = xyes
12721 then :
12722 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12723
12724 fi
12725 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12726 if test "x$ac_cv_header_string_h" = xyes
12727 then :
12728 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
12729
12730 fi
12731
12732 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
12733 if test "x$ac_cv_func_asprintf" = xyes
12734 then :
12735 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
12736
12737 fi
12738 ac_fn_c_check_func "$LINENO" "fwprintf" "ac_cv_func_fwprintf"
12739 if test "x$ac_cv_func_fwprintf" = xyes
12740 then :
12741 printf "%s\n" "#define HAVE_FWPRINTF 1" >>confdefs.h
12742
12743 fi
12744 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
12745 if test "x$ac_cv_func_newlocale" = xyes
12746 then :
12747 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
12748
12749 fi
12750 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
12751 if test "x$ac_cv_func_putenv" = xyes
12752 then :
12753 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
12754
12755 fi
12756 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
12757 if test "x$ac_cv_func_setenv" = xyes
12758 then :
12759 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
12760
12761 fi
12762 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12763 if test "x$ac_cv_func_setlocale" = xyes
12764 then :
12765 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
12766
12767 fi
12768 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12769 if test "x$ac_cv_func_snprintf" = xyes
12770 then :
12771 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
12772
12773 fi
12774 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
12775 if test "x$ac_cv_func_strnlen" = xyes
12776 then :
12777 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
12778
12779 fi
12780 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
12781 if test "x$ac_cv_func_uselocale" = xyes
12782 then :
12783 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
12784
12785 fi
12786 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
12787 if test "x$ac_cv_func_wcslen" = xyes
12788 then :
12789 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
12790
12791 fi
12792 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
12793 if test "x$ac_cv_func_wcsnlen" = xyes
12794 then :
12795 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
12796
12797 fi
12798 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
12799 if test "x$ac_cv_func_mbrtowc" = xyes
12800 then :
12801 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
12802
12803 fi
12804 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
12805 if test "x$ac_cv_func_wcrtomb" = xyes
12806 then :
12807 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
12808
12809 fi
12810
12811
12812 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12813 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12814 if test "x$ac_cv_have_decl__snprintf" = xyes
12815 then :
12816 ac_have_decl=1
12817 else $as_nop
12818 ac_have_decl=0
12819 fi
12820 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
12821 ac_fn_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
12822 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12823 if test "x$ac_cv_have_decl__snwprintf" = xyes
12824 then :
12825 ac_have_decl=1
12826 else $as_nop
12827 ac_have_decl=0
12828 fi
12829 printf "%s\n" "#define HAVE_DECL__SNWPRINTF $ac_have_decl" >>confdefs.h
12830
12831
12832 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
12833 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12834 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
12835 then :
12836 ac_have_decl=1
12837 else $as_nop
12838 ac_have_decl=0
12839 fi
12840 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
12841
12842
12843 case $gt_cv_func_printf_posix in
12844 *yes) HAVE_POSIX_PRINTF=1 ;;
12845 *) HAVE_POSIX_PRINTF=0 ;;
12846 esac
12847
12848 if test "$ac_cv_func_asprintf" = yes; then
12849 HAVE_ASPRINTF=1
12850 else
12851 HAVE_ASPRINTF=0
12852 fi
12853
12854 if test "$ac_cv_func_snprintf" = yes; then
12855 HAVE_SNPRINTF=1
12856 else
12857 HAVE_SNPRINTF=0
12858 fi
12859
12860 if test "$ac_cv_func_newlocale" = yes; then
12861 HAVE_NEWLOCALE=1
12862 else
12863 HAVE_NEWLOCALE=0
12864 fi
12865
12866 if test "$ac_cv_func_wprintf" = yes; then
12867 HAVE_WPRINTF=1
12868 else
12869 HAVE_WPRINTF=0
12870 fi
12871
12872
12873
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12875 printf %s "checking for nl_langinfo and CODESET... " >&6; }
12876 if test ${am_cv_langinfo_codeset+y}
12877 then :
12878 printf %s "(cached) " >&6
12879 else $as_nop
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #include <langinfo.h>
12883 int
12884 main (void)
12885 {
12886 char* cs = nl_langinfo(CODESET); return !cs;
12887 ;
12888 return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"
12892 then :
12893 am_cv_langinfo_codeset=yes
12894 else $as_nop
12895 am_cv_langinfo_codeset=no
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12898 conftest$ac_exeext conftest.$ac_ext
12899
12900 fi
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12902 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
12903 if test $am_cv_langinfo_codeset = yes; then
12904
12905 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12906
12907 fi
12908
12909
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12911 printf %s "checking for LC_MESSAGES... " >&6; }
12912 if test ${gt_cv_val_LC_MESSAGES+y}
12913 then :
12914 printf %s "(cached) " >&6
12915 else $as_nop
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <locale.h>
12919 int
12920 main (void)
12921 {
12922 return LC_MESSAGES
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"
12928 then :
12929 gt_cv_val_LC_MESSAGES=yes
12930 else $as_nop
12931 gt_cv_val_LC_MESSAGES=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12934 conftest$ac_exeext conftest.$ac_ext
12935 fi
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12937 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
12938 if test $gt_cv_val_LC_MESSAGES = yes; then
12939
12940 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12941
12942 fi
12943
12944
12945 if test $gt_nameless_locales = yes; then
12946 HAVE_NAMELESS_LOCALES=1
12947 else
12948 HAVE_NAMELESS_LOCALES=0
12949 fi
12950
12951
12952 if test "$enable_shared" = yes; then
12953 case "$host_os" in
12954 mingw* | cygwin*) is_woe32dll=yes ;;
12955 *) is_woe32dll=no ;;
12956 esac
12957 else
12958 is_woe32dll=no
12959 fi
12960 WOE32DLL=$is_woe32dll
12961
12962
12963 case "$host_os" in
12964 mingw* | cygwin*) is_woe32=yes ;;
12965 *) is_woe32=no ;;
12966 esac
12967 WOE32=$is_woe32
12968
12969 if test $WOE32 = yes; then
12970 if test -n "$ac_tool_prefix"; then
12971 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12972 set dummy ${ac_tool_prefix}windres; ac_word=$2
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 printf %s "checking for $ac_word... " >&6; }
12975 if test ${ac_cv_prog_WINDRES+y}
12976 then :
12977 printf %s "(cached) " >&6
12978 else $as_nop
12979 if test -n "$WINDRES"; then
12980 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12981 else
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12984 do
12985 IFS=$as_save_IFS
12986 case $as_dir in #(((
12987 '') as_dir=./ ;;
12988 */) ;;
12989 *) as_dir=$as_dir/ ;;
12990 esac
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12993 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
12994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 fi
13002 fi
13003 WINDRES=$ac_cv_prog_WINDRES
13004 if test -n "$WINDRES"; then
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13006 printf "%s\n" "$WINDRES" >&6; }
13007 else
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 printf "%s\n" "no" >&6; }
13010 fi
13011
13012
13013 fi
13014 if test -z "$ac_cv_prog_WINDRES"; then
13015 ac_ct_WINDRES=$WINDRES
13016 # Extract the first word of "windres", so it can be a program name with args.
13017 set dummy windres; ac_word=$2
13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 printf %s "checking for $ac_word... " >&6; }
13020 if test ${ac_cv_prog_ac_ct_WINDRES+y}
13021 then :
13022 printf %s "(cached) " >&6
13023 else $as_nop
13024 if test -n "$ac_ct_WINDRES"; then
13025 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
13026 else
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030 IFS=$as_save_IFS
13031 case $as_dir in #(((
13032 '') as_dir=./ ;;
13033 */) ;;
13034 *) as_dir=$as_dir/ ;;
13035 esac
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13038 ac_cv_prog_ac_ct_WINDRES="windres"
13039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042 done
13043 done
13044 IFS=$as_save_IFS
13045
13046 fi
13047 fi
13048 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
13049 if test -n "$ac_ct_WINDRES"; then
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
13051 printf "%s\n" "$ac_ct_WINDRES" >&6; }
13052 else
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 printf "%s\n" "no" >&6; }
13055 fi
13056
13057 if test "x$ac_ct_WINDRES" = x; then
13058 WINDRES=""
13059 else
13060 case $cross_compiling:$ac_tool_warned in
13061 yes:)
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13064 ac_tool_warned=yes ;;
13065 esac
13066 WINDRES=$ac_ct_WINDRES
13067 fi
13068 else
13069 WINDRES="$ac_cv_prog_WINDRES"
13070 fi
13071
13072 fi
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13099 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
13100 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
13101 then :
13102 printf %s "(cached) " >&6
13103 else $as_nop
13104 gt_save_LIBS="$LIBS"
13105 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <CoreFoundation/CFPreferences.h>
13109 int
13110 main (void)
13111 {
13112 CFPreferencesCopyAppValue(NULL, NULL)
13113 ;
13114 return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_link "$LINENO"
13118 then :
13119 gt_cv_func_CFPreferencesCopyAppValue=yes
13120 else $as_nop
13121 gt_cv_func_CFPreferencesCopyAppValue=no
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS="$gt_save_LIBS"
13126 fi
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13128 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13129 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13130
13131 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13132
13133 fi
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13135 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
13136 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
13137 then :
13138 printf %s "(cached) " >&6
13139 else $as_nop
13140 gt_save_LIBS="$LIBS"
13141 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 #include <CoreFoundation/CFLocale.h>
13145 int
13146 main (void)
13147 {
13148 CFLocaleCopyCurrent();
13149 ;
13150 return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"
13154 then :
13155 gt_cv_func_CFLocaleCopyCurrent=yes
13156 else $as_nop
13157 gt_cv_func_CFLocaleCopyCurrent=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LIBS="$gt_save_LIBS"
13162 fi
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13164 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13165 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13166
13167 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13168
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13171 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13172 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
13173 then :
13174 printf %s "(cached) " >&6
13175 else $as_nop
13176 gt_save_LIBS="$LIBS"
13177 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <CoreFoundation/CFLocale.h>
13181 int
13182 main (void)
13183 {
13184 CFLocaleCopyPreferredLanguages();
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"
13190 then :
13191 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13192 else $as_nop
13193 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS="$gt_save_LIBS"
13198 fi
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13200 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13201 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13202
13203 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13204
13205 fi
13206 INTL_MACOSX_LIBS=
13207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13208 || test $gt_cv_func_CFLocaleCopyCurrent = yes \
13209 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13210 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13211 fi
13212
13213
13214
13215
13216
13217
13218 BUILD_INCLUDED_LIBINTL=no
13219 USE_INCLUDED_LIBINTL=no
13220
13221 LIBINTL=
13222 LTLIBINTL=
13223 POSUB=
13224
13225 case " $gt_needs " in
13226 *" need-formatstring-macros "*) gt_api_version=3 ;;
13227 *" need-ngettext "*) gt_api_version=2 ;;
13228 *) gt_api_version=1 ;;
13229 esac
13230 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13231 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13232
13233 if test "$USE_NLS" = "yes"; then
13234 gt_use_preinstalled_gnugettext=no
13235
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13237 printf %s "checking whether included gettext is requested... " >&6; }
13238
13239 # Check whether --with-included-gettext was given.
13240 if test ${with_included_gettext+y}
13241 then :
13242 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13243 else $as_nop
13244 nls_cv_force_use_gnu_gettext=no
13245 fi
13246
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13248 printf "%s\n" "$nls_cv_force_use_gnu_gettext" >&6; }
13249
13250 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13251 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13252
13253
13254 if test $gt_api_version -ge 3; then
13255 gt_revision_test_code='
13256 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13257 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13258 #endif
13259 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13260 '
13261 else
13262 gt_revision_test_code=
13263 fi
13264 if test $gt_api_version -ge 2; then
13265 gt_expression_test_code=' + * ngettext ("", "", 0)'
13266 else
13267 gt_expression_test_code=
13268 fi
13269
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13271 printf %s "checking for GNU gettext in libc... " >&6; }
13272 if eval test \${$gt_func_gnugettext_libc+y}
13273 then :
13274 printf %s "(cached) " >&6
13275 else $as_nop
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 #include <libintl.h>
13280 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13281 extern int _nl_msg_cat_cntr;
13282 extern int *_nl_domain_bindings;
13283 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13284 #else
13285 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13286 #endif
13287 $gt_revision_test_code
13288
13289 int
13290 main (void)
13291 {
13292
13293 bindtextdomain ("", "");
13294 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13295
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_link "$LINENO"
13301 then :
13302 eval "$gt_func_gnugettext_libc=yes"
13303 else $as_nop
13304 eval "$gt_func_gnugettext_libc=no"
13305 fi
13306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13307 conftest$ac_exeext conftest.$ac_ext
13308 fi
13309 eval ac_res=\$$gt_func_gnugettext_libc
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13311 printf "%s\n" "$ac_res" >&6; }
13312
13313 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13314
13315
13316
13317
13318
13319
13320
13321 use_additional=yes
13322
13323 acl_save_prefix="$prefix"
13324 prefix="$acl_final_prefix"
13325 acl_save_exec_prefix="$exec_prefix"
13326 exec_prefix="$acl_final_exec_prefix"
13327
13328 eval additional_includedir=\"$includedir\"
13329 eval additional_libdir=\"$libdir\"
13330
13331 exec_prefix="$acl_save_exec_prefix"
13332 prefix="$acl_save_prefix"
13333
13334
13335 # Check whether --with-libintl-prefix was given.
13336 if test ${with_libintl_prefix+y}
13337 then :
13338 withval=$with_libintl_prefix;
13339 if test "X$withval" = "Xno"; then
13340 use_additional=no
13341 else
13342 if test "X$withval" = "X"; then
13343
13344 acl_save_prefix="$prefix"
13345 prefix="$acl_final_prefix"
13346 acl_save_exec_prefix="$exec_prefix"
13347 exec_prefix="$acl_final_exec_prefix"
13348
13349 eval additional_includedir=\"$includedir\"
13350 eval additional_libdir=\"$libdir\"
13351
13352 exec_prefix="$acl_save_exec_prefix"
13353 prefix="$acl_save_prefix"
13354
13355 else
13356 additional_includedir="$withval/include"
13357 additional_libdir="$withval/$acl_libdirstem"
13358 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13359 && test ! -d "$withval/$acl_libdirstem"; then
13360 additional_libdir="$withval/$acl_libdirstem2"
13361 fi
13362 fi
13363 fi
13364
13365 fi
13366
13367 LIBINTL=
13368 LTLIBINTL=
13369 INCINTL=
13370 LIBINTL_PREFIX=
13371 HAVE_LIBINTL=
13372 rpathdirs=
13373 ltrpathdirs=
13374 names_already_handled=
13375 names_next_round='intl '
13376 while test -n "$names_next_round"; do
13377 names_this_round="$names_next_round"
13378 names_next_round=
13379 for name in $names_this_round; do
13380 already_handled=
13381 for n in $names_already_handled; do
13382 if test "$n" = "$name"; then
13383 already_handled=yes
13384 break
13385 fi
13386 done
13387 if test -z "$already_handled"; then
13388 names_already_handled="$names_already_handled $name"
13389 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13390 eval value=\"\$HAVE_LIB$uppername\"
13391 if test -n "$value"; then
13392 if test "$value" = yes; then
13393 eval value=\"\$LIB$uppername\"
13394 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13395 eval value=\"\$LTLIB$uppername\"
13396 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13397 else
13398 :
13399 fi
13400 else
13401 found_dir=
13402 found_la=
13403 found_so=
13404 found_a=
13405 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13406 if test -n "$acl_shlibext"; then
13407 shrext=".$acl_shlibext" # typically: shrext=.so
13408 else
13409 shrext=
13410 fi
13411 if test $use_additional = yes; then
13412 dir="$additional_libdir"
13413 if test -n "$acl_shlibext"; then
13414 if test -f "$dir/$libname$shrext"; then
13415 found_dir="$dir"
13416 found_so="$dir/$libname$shrext"
13417 else
13418 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13419 ver=`(cd "$dir" && \
13420 for f in "$libname$shrext".*; do echo "$f"; done \
13421 | sed -e "s,^$libname$shrext\\\\.,," \
13422 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13423 | sed 1q ) 2>/dev/null`
13424 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13425 found_dir="$dir"
13426 found_so="$dir/$libname$shrext.$ver"
13427 fi
13428 else
13429 eval library_names=\"$acl_library_names_spec\"
13430 for f in $library_names; do
13431 if test -f "$dir/$f"; then
13432 found_dir="$dir"
13433 found_so="$dir/$f"
13434 break
13435 fi
13436 done
13437 fi
13438 fi
13439 fi
13440 if test "X$found_dir" = "X"; then
13441 if test -f "$dir/$libname.$acl_libext"; then
13442 found_dir="$dir"
13443 found_a="$dir/$libname.$acl_libext"
13444 fi
13445 fi
13446 if test "X$found_dir" != "X"; then
13447 if test -f "$dir/$libname.la"; then
13448 found_la="$dir/$libname.la"
13449 fi
13450 fi
13451 fi
13452 if test "X$found_dir" = "X"; then
13453 for x in $LDFLAGS $LTLIBINTL; do
13454
13455 acl_save_prefix="$prefix"
13456 prefix="$acl_final_prefix"
13457 acl_save_exec_prefix="$exec_prefix"
13458 exec_prefix="$acl_final_exec_prefix"
13459 eval x=\"$x\"
13460 exec_prefix="$acl_save_exec_prefix"
13461 prefix="$acl_save_prefix"
13462
13463 case "$x" in
13464 -L*)
13465 dir=`echo "X$x" | sed -e 's/^X-L//'`
13466 if test -n "$acl_shlibext"; then
13467 if test -f "$dir/$libname$shrext"; then
13468 found_dir="$dir"
13469 found_so="$dir/$libname$shrext"
13470 else
13471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13472 ver=`(cd "$dir" && \
13473 for f in "$libname$shrext".*; do echo "$f"; done \
13474 | sed -e "s,^$libname$shrext\\\\.,," \
13475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13476 | sed 1q ) 2>/dev/null`
13477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13478 found_dir="$dir"
13479 found_so="$dir/$libname$shrext.$ver"
13480 fi
13481 else
13482 eval library_names=\"$acl_library_names_spec\"
13483 for f in $library_names; do
13484 if test -f "$dir/$f"; then
13485 found_dir="$dir"
13486 found_so="$dir/$f"
13487 break
13488 fi
13489 done
13490 fi
13491 fi
13492 fi
13493 if test "X$found_dir" = "X"; then
13494 if test -f "$dir/$libname.$acl_libext"; then
13495 found_dir="$dir"
13496 found_a="$dir/$libname.$acl_libext"
13497 fi
13498 fi
13499 if test "X$found_dir" != "X"; then
13500 if test -f "$dir/$libname.la"; then
13501 found_la="$dir/$libname.la"
13502 fi
13503 fi
13504 ;;
13505 esac
13506 if test "X$found_dir" != "X"; then
13507 break
13508 fi
13509 done
13510 fi
13511 if test "X$found_dir" != "X"; then
13512 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13513 if test "X$found_so" != "X"; then
13514 if test "$enable_rpath" = no \
13515 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13516 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13517 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13518 else
13519 haveit=
13520 for x in $ltrpathdirs; do
13521 if test "X$x" = "X$found_dir"; then
13522 haveit=yes
13523 break
13524 fi
13525 done
13526 if test -z "$haveit"; then
13527 ltrpathdirs="$ltrpathdirs $found_dir"
13528 fi
13529 if test "$acl_hardcode_direct" = yes; then
13530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13531 else
13532 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13533 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13534 haveit=
13535 for x in $rpathdirs; do
13536 if test "X$x" = "X$found_dir"; then
13537 haveit=yes
13538 break
13539 fi
13540 done
13541 if test -z "$haveit"; then
13542 rpathdirs="$rpathdirs $found_dir"
13543 fi
13544 else
13545 haveit=
13546 for x in $LDFLAGS $LIBINTL; do
13547
13548 acl_save_prefix="$prefix"
13549 prefix="$acl_final_prefix"
13550 acl_save_exec_prefix="$exec_prefix"
13551 exec_prefix="$acl_final_exec_prefix"
13552 eval x=\"$x\"
13553 exec_prefix="$acl_save_exec_prefix"
13554 prefix="$acl_save_prefix"
13555
13556 if test "X$x" = "X-L$found_dir"; then
13557 haveit=yes
13558 break
13559 fi
13560 done
13561 if test -z "$haveit"; then
13562 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13563 fi
13564 if test "$acl_hardcode_minus_L" != no; then
13565 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13566 else
13567 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13568 fi
13569 fi
13570 fi
13571 fi
13572 else
13573 if test "X$found_a" != "X"; then
13574 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13575 else
13576 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13577 fi
13578 fi
13579 additional_includedir=
13580 case "$found_dir" in
13581 */$acl_libdirstem | */$acl_libdirstem/)
13582 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13583 if test "$name" = 'intl'; then
13584 LIBINTL_PREFIX="$basedir"
13585 fi
13586 additional_includedir="$basedir/include"
13587 ;;
13588 */$acl_libdirstem2 | */$acl_libdirstem2/)
13589 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13590 if test "$name" = 'intl'; then
13591 LIBINTL_PREFIX="$basedir"
13592 fi
13593 additional_includedir="$basedir/include"
13594 ;;
13595 esac
13596 if test "X$additional_includedir" != "X"; then
13597 if test "X$additional_includedir" != "X/usr/include"; then
13598 haveit=
13599 if test "X$additional_includedir" = "X/usr/local/include"; then
13600 if test -n "$GCC"; then
13601 case $host_os in
13602 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13603 esac
13604 fi
13605 fi
13606 if test -z "$haveit"; then
13607 for x in $CPPFLAGS $INCINTL; do
13608
13609 acl_save_prefix="$prefix"
13610 prefix="$acl_final_prefix"
13611 acl_save_exec_prefix="$exec_prefix"
13612 exec_prefix="$acl_final_exec_prefix"
13613 eval x=\"$x\"
13614 exec_prefix="$acl_save_exec_prefix"
13615 prefix="$acl_save_prefix"
13616
13617 if test "X$x" = "X-I$additional_includedir"; then
13618 haveit=yes
13619 break
13620 fi
13621 done
13622 if test -z "$haveit"; then
13623 if test -d "$additional_includedir"; then
13624 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13625 fi
13626 fi
13627 fi
13628 fi
13629 fi
13630 if test -n "$found_la"; then
13631 save_libdir="$libdir"
13632 case "$found_la" in
13633 */* | *\\*) . "$found_la" ;;
13634 *) . "./$found_la" ;;
13635 esac
13636 libdir="$save_libdir"
13637 for dep in $dependency_libs; do
13638 case "$dep" in
13639 -L*)
13640 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13641 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13642 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13643 haveit=
13644 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13645 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13646 if test -n "$GCC"; then
13647 case $host_os in
13648 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13649 esac
13650 fi
13651 fi
13652 if test -z "$haveit"; then
13653 haveit=
13654 for x in $LDFLAGS $LIBINTL; do
13655
13656 acl_save_prefix="$prefix"
13657 prefix="$acl_final_prefix"
13658 acl_save_exec_prefix="$exec_prefix"
13659 exec_prefix="$acl_final_exec_prefix"
13660 eval x=\"$x\"
13661 exec_prefix="$acl_save_exec_prefix"
13662 prefix="$acl_save_prefix"
13663
13664 if test "X$x" = "X-L$additional_libdir"; then
13665 haveit=yes
13666 break
13667 fi
13668 done
13669 if test -z "$haveit"; then
13670 if test -d "$additional_libdir"; then
13671 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13672 fi
13673 fi
13674 haveit=
13675 for x in $LDFLAGS $LTLIBINTL; do
13676
13677 acl_save_prefix="$prefix"
13678 prefix="$acl_final_prefix"
13679 acl_save_exec_prefix="$exec_prefix"
13680 exec_prefix="$acl_final_exec_prefix"
13681 eval x=\"$x\"
13682 exec_prefix="$acl_save_exec_prefix"
13683 prefix="$acl_save_prefix"
13684
13685 if test "X$x" = "X-L$additional_libdir"; then
13686 haveit=yes
13687 break
13688 fi
13689 done
13690 if test -z "$haveit"; then
13691 if test -d "$additional_libdir"; then
13692 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13693 fi
13694 fi
13695 fi
13696 fi
13697 ;;
13698 -R*)
13699 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13700 if test "$enable_rpath" != no; then
13701 haveit=
13702 for x in $rpathdirs; do
13703 if test "X$x" = "X$dir"; then
13704 haveit=yes
13705 break
13706 fi
13707 done
13708 if test -z "$haveit"; then
13709 rpathdirs="$rpathdirs $dir"
13710 fi
13711 haveit=
13712 for x in $ltrpathdirs; do
13713 if test "X$x" = "X$dir"; then
13714 haveit=yes
13715 break
13716 fi
13717 done
13718 if test -z "$haveit"; then
13719 ltrpathdirs="$ltrpathdirs $dir"
13720 fi
13721 fi
13722 ;;
13723 -l*)
13724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13725 ;;
13726 *.la)
13727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13728 ;;
13729 *)
13730 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13732 ;;
13733 esac
13734 done
13735 fi
13736 else
13737 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13739 fi
13740 fi
13741 fi
13742 done
13743 done
13744 if test "X$rpathdirs" != "X"; then
13745 if test -n "$acl_hardcode_libdir_separator"; then
13746 alldirs=
13747 for found_dir in $rpathdirs; do
13748 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13749 done
13750 acl_save_libdir="$libdir"
13751 libdir="$alldirs"
13752 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13753 libdir="$acl_save_libdir"
13754 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13755 else
13756 for found_dir in $rpathdirs; do
13757 acl_save_libdir="$libdir"
13758 libdir="$found_dir"
13759 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13760 libdir="$acl_save_libdir"
13761 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13762 done
13763 fi
13764 fi
13765 if test "X$ltrpathdirs" != "X"; then
13766 for found_dir in $ltrpathdirs; do
13767 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13768 done
13769 fi
13770
13771
13772
13773
13774
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13776 printf %s "checking for GNU gettext in libintl... " >&6; }
13777 if eval test \${$gt_func_gnugettext_libintl+y}
13778 then :
13779 printf %s "(cached) " >&6
13780 else $as_nop
13781 gt_save_CPPFLAGS="$CPPFLAGS"
13782 CPPFLAGS="$CPPFLAGS $INCINTL"
13783 gt_save_LIBS="$LIBS"
13784 LIBS="$LIBS $LIBINTL"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787
13788 #include <libintl.h>
13789 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13790 extern int _nl_msg_cat_cntr;
13791 extern
13792 #ifdef __cplusplus
13793 "C"
13794 #endif
13795 const char *_nl_expand_alias (const char *);
13796 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13797 #else
13798 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13799 #endif
13800 $gt_revision_test_code
13801
13802 int
13803 main (void)
13804 {
13805
13806 bindtextdomain ("", "");
13807 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13808
13809 ;
13810 return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"
13814 then :
13815 eval "$gt_func_gnugettext_libintl=yes"
13816 else $as_nop
13817 eval "$gt_func_gnugettext_libintl=no"
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13820 conftest$ac_exeext conftest.$ac_ext
13821 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13822 LIBS="$LIBS $LIBICONV"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825
13826 #include <libintl.h>
13827 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13828 extern int _nl_msg_cat_cntr;
13829 extern
13830 #ifdef __cplusplus
13831 "C"
13832 #endif
13833 const char *_nl_expand_alias (const char *);
13834 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13835 #else
13836 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13837 #endif
13838 $gt_revision_test_code
13839
13840 int
13841 main (void)
13842 {
13843
13844 bindtextdomain ("", "");
13845 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13846
13847 ;
13848 return 0;
13849 }
13850 _ACEOF
13851 if ac_fn_c_try_link "$LINENO"
13852 then :
13853 LIBINTL="$LIBINTL $LIBICONV"
13854 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13855 eval "$gt_func_gnugettext_libintl=yes"
13856
13857 fi
13858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13859 conftest$ac_exeext conftest.$ac_ext
13860 fi
13861 CPPFLAGS="$gt_save_CPPFLAGS"
13862 LIBS="$gt_save_LIBS"
13863 fi
13864 eval ac_res=\$$gt_func_gnugettext_libintl
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13866 printf "%s\n" "$ac_res" >&6; }
13867 fi
13868
13869 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13870 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13871 && test "$PACKAGE" != gettext-runtime \
13872 && test "$PACKAGE" != gettext-tools; }; then
13873 gt_use_preinstalled_gnugettext=yes
13874 else
13875 LIBINTL=
13876 LTLIBINTL=
13877 INCINTL=
13878 fi
13879
13880
13881 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13882 nls_cv_use_gnu_gettext=yes
13883 fi
13884 fi
13885
13886 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13887 BUILD_INCLUDED_LIBINTL=yes
13888 USE_INCLUDED_LIBINTL=yes
13889 LIBINTL="lib/intl/libintl.a $LIBICONV $LIBTHREAD"
13890 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
13891 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13892 fi
13893
13894 CATOBJEXT=
13895 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13896 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13897 CATOBJEXT=.gmo
13898 fi
13899
13900
13901 if test -n "$INTL_MACOSX_LIBS"; then
13902 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13903 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13904 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13905 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13906 fi
13907 fi
13908
13909 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13910 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13911
13912 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
13913
13914 else
13915 USE_NLS=no
13916 fi
13917 fi
13918
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13920 printf %s "checking whether to use NLS... " >&6; }
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13922 printf "%s\n" "$USE_NLS" >&6; }
13923 if test "$USE_NLS" = "yes"; then
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13925 printf %s "checking where the gettext function comes from... " >&6; }
13926 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13927 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13928 gt_source="external libintl"
13929 else
13930 gt_source="libc"
13931 fi
13932 else
13933 gt_source="included intl directory"
13934 fi
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13936 printf "%s\n" "$gt_source" >&6; }
13937 fi
13938
13939 if test "$USE_NLS" = "yes"; then
13940
13941 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13942 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13944 printf %s "checking how to link with libintl... " >&6; }
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13946 printf "%s\n" "$LIBINTL" >&6; }
13947
13948 for element in $INCINTL; do
13949 haveit=
13950 for x in $CPPFLAGS; do
13951
13952 acl_save_prefix="$prefix"
13953 prefix="$acl_final_prefix"
13954 acl_save_exec_prefix="$exec_prefix"
13955 exec_prefix="$acl_final_exec_prefix"
13956 eval x=\"$x\"
13957 exec_prefix="$acl_save_exec_prefix"
13958 prefix="$acl_save_prefix"
13959
13960 if test "X$x" = "X$element"; then
13961 haveit=yes
13962 break
13963 fi
13964 done
13965 if test -z "$haveit"; then
13966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13967 fi
13968 done
13969
13970 fi
13971
13972
13973 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
13974
13975
13976 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
13977
13978 fi
13979
13980 POSUB=po
13981 fi
13982
13983
13984 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13985 BUILD_INCLUDED_LIBINTL=yes
13986 fi
13987
13988
13989
13990
13991
13992 nls_cv_header_intl=
13993 nls_cv_header_libgt=
13994
13995 DATADIRNAME=share
13996
13997
13998 INSTOBJEXT=.mo
13999
14000
14001 GENCAT=gencat
14002
14003
14004 INTLOBJS=
14005 if test "$USE_INCLUDED_LIBINTL" = yes; then
14006 INTLOBJS="\$(GETTOBJS)"
14007 fi
14008
14009
14010 INTL_LIBTOOL_SUFFIX_PREFIX=
14011
14012
14013
14014 INTLLIBS="$LIBINTL"
14015
14016
14017
14018
14019
14020
14021
14022 ac_header_dirent=no
14023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14024 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14026 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
14027 if eval test \${$as_ac_Header+y}
14028 then :
14029 printf %s "(cached) " >&6
14030 else $as_nop
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 #include <sys/types.h>
14034 #include <$ac_hdr>
14035
14036 int
14037 main (void)
14038 {
14039 if ((DIR *) 0)
14040 return 0;
14041 ;
14042 return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"
14046 then :
14047 eval "$as_ac_Header=yes"
14048 else $as_nop
14049 eval "$as_ac_Header=no"
14050 fi
14051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14052 fi
14053 eval ac_res=\$$as_ac_Header
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14055 printf "%s\n" "$ac_res" >&6; }
14056 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14057 then :
14058 cat >>confdefs.h <<_ACEOF
14059 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
14060 _ACEOF
14061
14062 ac_header_dirent=$ac_hdr; break
14063 fi
14064
14065 done
14066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14067 if test $ac_header_dirent = dirent.h; then
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14069 printf %s "checking for library containing opendir... " >&6; }
14070 if test ${ac_cv_search_opendir+y}
14071 then :
14072 printf %s "(cached) " >&6
14073 else $as_nop
14074 ac_func_search_save_LIBS=$LIBS
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081 char opendir ();
14082 int
14083 main (void)
14084 {
14085 return opendir ();
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 for ac_lib in '' dir
14091 do
14092 if test -z "$ac_lib"; then
14093 ac_res="none required"
14094 else
14095 ac_res=-l$ac_lib
14096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14097 fi
14098 if ac_fn_c_try_link "$LINENO"
14099 then :
14100 ac_cv_search_opendir=$ac_res
14101 fi
14102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14103 conftest$ac_exeext
14104 if test ${ac_cv_search_opendir+y}
14105 then :
14106 break
14107 fi
14108 done
14109 if test ${ac_cv_search_opendir+y}
14110 then :
14111
14112 else $as_nop
14113 ac_cv_search_opendir=no
14114 fi
14115 rm conftest.$ac_ext
14116 LIBS=$ac_func_search_save_LIBS
14117 fi
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14119 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14120 ac_res=$ac_cv_search_opendir
14121 if test "$ac_res" != no
14122 then :
14123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14124
14125 fi
14126
14127 else
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14129 printf %s "checking for library containing opendir... " >&6; }
14130 if test ${ac_cv_search_opendir+y}
14131 then :
14132 printf %s "(cached) " >&6
14133 else $as_nop
14134 ac_func_search_save_LIBS=$LIBS
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14141 char opendir ();
14142 int
14143 main (void)
14144 {
14145 return opendir ();
14146 ;
14147 return 0;
14148 }
14149 _ACEOF
14150 for ac_lib in '' x
14151 do
14152 if test -z "$ac_lib"; then
14153 ac_res="none required"
14154 else
14155 ac_res=-l$ac_lib
14156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14157 fi
14158 if ac_fn_c_try_link "$LINENO"
14159 then :
14160 ac_cv_search_opendir=$ac_res
14161 fi
14162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14163 conftest$ac_exeext
14164 if test ${ac_cv_search_opendir+y}
14165 then :
14166 break
14167 fi
14168 done
14169 if test ${ac_cv_search_opendir+y}
14170 then :
14171
14172 else $as_nop
14173 ac_cv_search_opendir=no
14174 fi
14175 rm conftest.$ac_ext
14176 LIBS=$ac_func_search_save_LIBS
14177 fi
14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14179 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14180 ac_res=$ac_cv_search_opendir
14181 if test "$ac_res" != no
14182 then :
14183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14184
14185 fi
14186
14187 fi
14188
14189
14190 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14191 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14192 then :
14193
14194 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
14195
14196 fi
14197
14198 if test $ac_cv_header_sys_mkdev_h = no; then
14199 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14200 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14201 then :
14202
14203 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
14204
14205 fi
14206
14207 fi
14208
14209
14210
14211 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_inttypes_h" = xyes
14213 then :
14214 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14215
14216 fi
14217
14218
14219
14220 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14221 if test "x$ac_cv_header_unistd_h" = xyes
14222 then :
14223 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14224
14225 fi
14226 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14227 if test "x$ac_cv_header_stdlib_h" = xyes
14228 then :
14229 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14230
14231 fi
14232 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14233 if test "x$ac_cv_header_stdarg_h" = xyes
14234 then :
14235 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14236
14237 fi
14238 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
14239 if test "x$ac_cv_header_varargs_h" = xyes
14240 then :
14241 printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h
14242
14243 fi
14244 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14245 if test "x$ac_cv_header_limits_h" = xyes
14246 then :
14247 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14248
14249 fi
14250 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_string_h" = xyes
14252 then :
14253 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14254
14255 fi
14256 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
14257 if test "x$ac_cv_header_memory_h" = xyes
14258 then :
14259 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
14260
14261 fi
14262 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14263 if test "x$ac_cv_header_locale_h" = xyes
14264 then :
14265 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14266
14267 fi
14268 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_termcap_h" = xyes
14270 then :
14271 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
14272
14273 fi
14274 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14275 if test "x$ac_cv_header_termio_h" = xyes
14276 then :
14277 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
14278
14279 fi
14280 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_termios_h" = xyes
14282 then :
14283 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
14284
14285 fi
14286 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_dlfcn_h" = xyes
14288 then :
14289 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14290
14291 fi
14292 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
14293 if test "x$ac_cv_header_stdbool_h" = xyes
14294 then :
14295 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
14296
14297 fi
14298 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
14299 if test "x$ac_cv_header_stddef_h" = xyes
14300 then :
14301 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
14302
14303 fi
14304 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14305 if test "x$ac_cv_header_stdint_h" = xyes
14306 then :
14307 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14308
14309 fi
14310 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
14311 if test "x$ac_cv_header_netdb_h" = xyes
14312 then :
14313 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
14314
14315 fi
14316 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14317 if test "x$ac_cv_header_pwd_h" = xyes
14318 then :
14319 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
14320
14321 fi
14322 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
14323 if test "x$ac_cv_header_grp_h" = xyes
14324 then :
14325 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
14326
14327 fi
14328 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
14329 if test "x$ac_cv_header_strings_h" = xyes
14330 then :
14331 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
14332
14333 fi
14334 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
14335 if test "x$ac_cv_header_regex_h" = xyes
14336 then :
14337 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
14338
14339 fi
14340 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14341 if test "x$ac_cv_header_syslog_h" = xyes
14342 then :
14343 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
14344
14345 fi
14346 ac_fn_c_check_header_compile "$LINENO" "ulimit.h" "ac_cv_header_ulimit_h" "$ac_includes_default"
14347 if test "x$ac_cv_header_ulimit_h" = xyes
14348 then :
14349 printf "%s\n" "#define HAVE_ULIMIT_H 1" >>confdefs.h
14350
14351 fi
14352
14353 ac_fn_c_check_header_compile "$LINENO" "sys/pte.h" "ac_cv_header_sys_pte_h" "$ac_includes_default"
14354 if test "x$ac_cv_header_sys_pte_h" = xyes
14355 then :
14356 printf "%s\n" "#define HAVE_SYS_PTE_H 1" >>confdefs.h
14357
14358 fi
14359 ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
14360 if test "x$ac_cv_header_sys_stream_h" = xyes
14361 then :
14362 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
14363
14364 fi
14365 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14366 if test "x$ac_cv_header_sys_select_h" = xyes
14367 then :
14368 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14369
14370 fi
14371 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
14372 if test "x$ac_cv_header_sys_file_h" = xyes
14373 then :
14374 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
14375
14376 fi
14377 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14378 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14379 then :
14380 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14381
14382 fi
14383 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14384 if test "x$ac_cv_header_sys_mman_h" = xyes
14385 then :
14386 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14387
14388 fi
14389 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
14390 if test "x$ac_cv_header_sys_param_h" = xyes
14391 then :
14392 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
14393
14394 fi
14395 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
14396 if test "x$ac_cv_header_sys_random_h" = xyes
14397 then :
14398 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
14399
14400 fi
14401 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14402 if test "x$ac_cv_header_sys_socket_h" = xyes
14403 then :
14404 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14405
14406 fi
14407 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14408 if test "x$ac_cv_header_sys_stat_h" = xyes
14409 then :
14410 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14411
14412 fi
14413 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14414 if test "x$ac_cv_header_sys_time_h" = xyes
14415 then :
14416 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14417
14418 fi
14419 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_sys_times_h" = xyes
14421 then :
14422 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
14423
14424 fi
14425 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14426 if test "x$ac_cv_header_sys_types_h" = xyes
14427 then :
14428 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14429
14430 fi
14431 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14432 if test "x$ac_cv_header_sys_wait_h" = xyes
14433 then :
14434 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14435
14436 fi
14437
14438 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14439 if test "x$ac_cv_header_netinet_in_h" = xyes
14440 then :
14441 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
14442
14443 fi
14444 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14445 if test "x$ac_cv_header_arpa_inet_h" = xyes
14446 then :
14447 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
14448
14449 fi
14450
14451
14452 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
14453 #if HAVE_SYS_STREAM_H
14454 # include <sys/stream.h>
14455 #endif
14456
14457 "
14458 if test "x$ac_cv_header_sys_ptem_h" = xyes
14459 then :
14460
14461 fi
14462
14463
14464 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
14465 #if HAVE_SYS_TIME_H
14466 # include <sys/time.h>
14467 #endif
14468
14469 "
14470 if test "x$ac_cv_header_sys_resource_h" = xyes
14471 then :
14472 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
14473
14474 fi
14475
14476
14477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14478 # for constant arguments. Useless!
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14480 printf %s "checking for working alloca.h... " >&6; }
14481 if test ${ac_cv_working_alloca_h+y}
14482 then :
14483 printf %s "(cached) " >&6
14484 else $as_nop
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <alloca.h>
14488 int
14489 main (void)
14490 {
14491 char *p = (char *) alloca (2 * sizeof (int));
14492 if (p) return 0;
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"
14498 then :
14499 ac_cv_working_alloca_h=yes
14500 else $as_nop
14501 ac_cv_working_alloca_h=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14504 conftest$ac_exeext conftest.$ac_ext
14505 fi
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14507 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
14508 if test $ac_cv_working_alloca_h = yes; then
14509
14510 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
14511
14512 fi
14513
14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14515 printf %s "checking for alloca... " >&6; }
14516 if test ${ac_cv_func_alloca_works+y}
14517 then :
14518 printf %s "(cached) " >&6
14519 else $as_nop
14520 if test $ac_cv_working_alloca_h = yes; then
14521 ac_cv_func_alloca_works=yes
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 #include <stdlib.h>
14526 #include <stddef.h>
14527 #ifndef alloca
14528 # ifdef __GNUC__
14529 # define alloca __builtin_alloca
14530 # elif defined _MSC_VER
14531 # include <malloc.h>
14532 # define alloca _alloca
14533 # else
14534 # ifdef __cplusplus
14535 extern "C"
14536 # endif
14537 void *alloca (size_t);
14538 # endif
14539 #endif
14540
14541 int
14542 main (void)
14543 {
14544 char *p = (char *) alloca (1);
14545 if (p) return 0;
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 if ac_fn_c_try_link "$LINENO"
14551 then :
14552 ac_cv_func_alloca_works=yes
14553 else $as_nop
14554 ac_cv_func_alloca_works=no
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14557 conftest$ac_exeext conftest.$ac_ext
14558 fi
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14560 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
14561 fi
14562
14563 if test $ac_cv_func_alloca_works = yes; then
14564
14565 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
14566
14567 else
14568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14569 # that cause trouble. Some versions do not even contain alloca or
14570 # contain a buggy version. If you still want to use their alloca,
14571 # use ar to extract alloca.o from them instead of compiling alloca.c.
14572
14573 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14574
14575 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
14576
14577
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14579 printf %s "checking stack direction for C alloca... " >&6; }
14580 if test ${ac_cv_c_stack_direction+y}
14581 then :
14582 printf %s "(cached) " >&6
14583 else $as_nop
14584 if test "$cross_compiling" = yes
14585 then :
14586 ac_cv_c_stack_direction=0
14587 else $as_nop
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 $ac_includes_default
14591 int
14592 find_stack_direction (int *addr, int depth)
14593 {
14594 int dir, dummy = 0;
14595 if (! addr)
14596 addr = &dummy;
14597 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14598 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14599 return dir + dummy;
14600 }
14601
14602 int
14603 main (int argc, char **argv)
14604 {
14605 return find_stack_direction (0, argc + !argv + 20) < 0;
14606 }
14607 _ACEOF
14608 if ac_fn_c_try_run "$LINENO"
14609 then :
14610 ac_cv_c_stack_direction=1
14611 else $as_nop
14612 ac_cv_c_stack_direction=-1
14613 fi
14614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14615 conftest.$ac_objext conftest.beam conftest.$ac_ext
14616 fi
14617
14618 fi
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14620 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
14621 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
14622
14623
14624 fi
14625
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14627 printf %s "checking for uid_t in sys/types.h... " >&6; }
14628 if test ${ac_cv_type_uid_t+y}
14629 then :
14630 printf %s "(cached) " >&6
14631 else $as_nop
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 #include <sys/types.h>
14635
14636 _ACEOF
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638 $EGREP "uid_t" >/dev/null 2>&1
14639 then :
14640 ac_cv_type_uid_t=yes
14641 else $as_nop
14642 ac_cv_type_uid_t=no
14643 fi
14644 rm -rf conftest*
14645
14646 fi
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14648 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
14649 if test $ac_cv_type_uid_t = no; then
14650
14651 printf "%s\n" "#define uid_t int" >>confdefs.h
14652
14653
14654 printf "%s\n" "#define gid_t int" >>confdefs.h
14655
14656 fi
14657
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14659 printf %s "checking for working chown... " >&6; }
14660 if test ${ac_cv_func_chown_works+y}
14661 then :
14662 printf %s "(cached) " >&6
14663 else $as_nop
14664 if test "$cross_compiling" = yes
14665 then :
14666 case "$host_os" in # ((
14667 # Guess yes on glibc systems.
14668 *-gnu*) ac_cv_func_chown_works=yes ;;
14669 # If we don't know, assume the worst.
14670 *) ac_cv_func_chown_works=no ;;
14671 esac
14672 else $as_nop
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 #include <fcntl.h>
14677
14678 int
14679 main (void)
14680 {
14681 char *f = "conftest.chown";
14682 struct stat before, after;
14683
14684 if (creat (f, 0600) < 0)
14685 return 1;
14686 if (stat (f, &before) < 0)
14687 return 1;
14688 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14689 return 1;
14690 if (stat (f, &after) < 0)
14691 return 1;
14692 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14693
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_run "$LINENO"
14699 then :
14700 ac_cv_func_chown_works=yes
14701 else $as_nop
14702 ac_cv_func_chown_works=no
14703 fi
14704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14705 conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 fi
14707
14708 rm -f conftest.chown
14709
14710 fi
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14712 printf "%s\n" "$ac_cv_func_chown_works" >&6; }
14713 if test $ac_cv_func_chown_works = yes; then
14714
14715 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
14716
14717 fi
14718
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14720 printf %s "checking whether getpgrp requires zero arguments... " >&6; }
14721 if test ${ac_cv_func_getpgrp_void+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else $as_nop
14725 # Use it with a single arg.
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 $ac_includes_default
14729 int
14730 main (void)
14731 {
14732 getpgrp (0);
14733 ;
14734 return 0;
14735 }
14736 _ACEOF
14737 if ac_fn_c_try_compile "$LINENO"
14738 then :
14739 ac_cv_func_getpgrp_void=no
14740 else $as_nop
14741 ac_cv_func_getpgrp_void=yes
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14744
14745 fi
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14747 printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
14748 if test $ac_cv_func_getpgrp_void = yes; then
14749
14750 printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
14751
14752 fi
14753
14754
14755
14756 if test "x$ac_cv_func_vprintf" = xno
14757 then :
14758 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14759 if test "x$ac_cv_func__doprnt" = xyes
14760 then :
14761
14762 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
14763
14764 fi
14765
14766 fi
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
14768 printf %s "checking for working strcoll... " >&6; }
14769 if test ${ac_cv_func_strcoll_works+y}
14770 then :
14771 printf %s "(cached) " >&6
14772 else $as_nop
14773 if test "$cross_compiling" = yes
14774 then :
14775 case "$host_os" in # ((
14776 # Guess yes on glibc systems.
14777 *-gnu*) ac_cv_func_strcoll_works=yes ;;
14778 # If we don't know, assume the worst.
14779 *) ac_cv_func_strcoll_works=no ;;
14780 esac
14781 else $as_nop
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 int
14786 main (void)
14787 {
14788 return (strcoll ("abc", "def") >= 0 ||
14789 strcoll ("ABC", "DEF") >= 0 ||
14790 strcoll ("123", "456") >= 0)
14791 ;
14792 return 0;
14793 }
14794 _ACEOF
14795 if ac_fn_c_try_run "$LINENO"
14796 then :
14797 ac_cv_func_strcoll_works=yes
14798 else $as_nop
14799 ac_cv_func_strcoll_works=no
14800 fi
14801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14802 conftest.$ac_objext conftest.beam conftest.$ac_ext
14803 fi
14804
14805 fi
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
14807 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
14808 if test $ac_cv_func_strcoll_works = yes; then
14809
14810 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
14811
14812 fi
14813
14814
14815
14816 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
14817 MALLOC_TARGET=alloca
14818 MALLOC_SRC=alloca.c
14819
14820 MALLOC_LIB='-lmalloc'
14821 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
14822 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
14823 MALLOC_DEP='$(MALLOC_LIBRARY)'
14824 fi
14825
14826 if test "$ac_cv_func_vprintf" = no; then
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5
14828 printf %s "checking for declaration of vprintf in stdio.h... " >&6; }
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 #include <stdio.h>
14832
14833 _ACEOF
14834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14835 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1
14836 then :
14837 ac_cv_func_vprintf=yes
14838 fi
14839 rm -rf conftest*
14840
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5
14842 printf "%s\n" "$ac_cv_func_vprintf" >&6; }
14843 if test $ac_cv_func_vprintf = yes; then
14844 printf "%s\n" "#define HAVE_VPRINTF 1" >>confdefs.h
14845
14846 fi
14847 fi
14848
14849 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
14850 case " $LIBOBJS " in
14851 *" vprint.$ac_objext "* ) ;;
14852 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
14853 ;;
14854 esac
14855
14856 fi
14857
14858 ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype"
14859 if test "x$ac_cv_func___setostype" = xyes
14860 then :
14861 printf "%s\n" "#define HAVE_SETOSTYPE 1" >>confdefs.h
14862
14863 fi
14864
14865 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
14866 if test "x$ac_cv_func_wait3" = xyes
14867 then :
14868 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
14869
14870 fi
14871
14872
14873 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
14874 if test "x$ac_cv_func_mkfifo" = xyes
14875 then :
14876 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
14877
14878 else $as_nop
14879 printf "%s\n" "#define MKFIFO_MISSING 1" >>confdefs.h
14880
14881 fi
14882
14883
14884 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
14885 if test "x$ac_cv_func_dup2" = xyes
14886 then :
14887 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
14888
14889 fi
14890 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
14891 if test "x$ac_cv_func_eaccess" = xyes
14892 then :
14893 printf "%s\n" "#define HAVE_EACCESS 1" >>confdefs.h
14894
14895 fi
14896 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
14897 if test "x$ac_cv_func_fcntl" = xyes
14898 then :
14899 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
14900
14901 fi
14902 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
14903 if test "x$ac_cv_func_getdtablesize" = xyes
14904 then :
14905 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
14906
14907 fi
14908 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
14909 if test "x$ac_cv_func_getentropy" = xyes
14910 then :
14911 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
14912
14913 fi
14914 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14915 if test "x$ac_cv_func_getgroups" = xyes
14916 then :
14917 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
14918
14919 fi
14920 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
14921 if test "x$ac_cv_func_gethostname" = xyes
14922 then :
14923 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
14924
14925 fi
14926 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14927 if test "x$ac_cv_func_getpagesize" = xyes
14928 then :
14929 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
14930
14931 fi
14932 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
14933 if test "x$ac_cv_func_getpeername" = xyes
14934 then :
14935 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
14936
14937 fi
14938 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
14939 if test "x$ac_cv_func_getrandom" = xyes
14940 then :
14941 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
14942
14943 fi
14944 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
14945 if test "x$ac_cv_func_getrlimit" = xyes
14946 then :
14947 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
14948
14949 fi
14950 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
14951 if test "x$ac_cv_func_getrusage" = xyes
14952 then :
14953 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
14954
14955 fi
14956 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14957 if test "x$ac_cv_func_gettimeofday" = xyes
14958 then :
14959 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
14960
14961 fi
14962 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
14963 if test "x$ac_cv_func_kill" = xyes
14964 then :
14965 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
14966
14967 fi
14968 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
14969 if test "x$ac_cv_func_killpg" = xyes
14970 then :
14971 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
14972
14973 fi
14974 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
14975 if test "x$ac_cv_func_lstat" = xyes
14976 then :
14977 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
14978
14979 fi
14980 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
14981 if test "x$ac_cv_func_pselect" = xyes
14982 then :
14983 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
14984
14985 fi
14986 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
14987 if test "x$ac_cv_func_readlink" = xyes
14988 then :
14989 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
14990
14991 fi
14992 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14993 if test "x$ac_cv_func_select" = xyes
14994 then :
14995 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
14996
14997 fi
14998 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
14999 if test "x$ac_cv_func_setdtablesize" = xyes
15000 then :
15001 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
15002
15003 fi
15004 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
15005 if test "x$ac_cv_func_setitimer" = xyes
15006 then :
15007 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
15008
15009 fi
15010 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
15011 if test "x$ac_cv_func_tcgetpgrp" = xyes
15012 then :
15013 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
15014
15015 fi
15016 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
15017 if test "x$ac_cv_func_uname" = xyes
15018 then :
15019 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
15020
15021 fi
15022 ac_fn_c_check_func "$LINENO" "ulimit" "ac_cv_func_ulimit"
15023 if test "x$ac_cv_func_ulimit" = xyes
15024 then :
15025 printf "%s\n" "#define HAVE_ULIMIT 1" >>confdefs.h
15026
15027 fi
15028 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
15029 if test "x$ac_cv_func_waitpid" = xyes
15030 then :
15031 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
15032
15033 fi
15034
15035 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
15036 if test "x$ac_cv_func_rename" = xyes
15037 then :
15038 printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h
15039
15040 else $as_nop
15041 case " $LIBOBJS " in
15042 *" rename.$ac_objext "* ) ;;
15043 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
15044 ;;
15045 esac
15046
15047 fi
15048
15049
15050 ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
15051 if test "x$ac_cv_func_bcopy" = xyes
15052 then :
15053 printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
15054
15055 fi
15056 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
15057 if test "x$ac_cv_func_bzero" = xyes
15058 then :
15059 printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h
15060
15061 fi
15062 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
15063 if test "x$ac_cv_func_confstr" = xyes
15064 then :
15065 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
15066
15067 fi
15068 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
15069 if test "x$ac_cv_func_faccessat" = xyes
15070 then :
15071 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
15072
15073 fi
15074 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
15075 if test "x$ac_cv_func_fnmatch" = xyes
15076 then :
15077 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
15078
15079 fi
15080 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15081 if test "x$ac_cv_func_getaddrinfo" = xyes
15082 then :
15083 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15084
15085 fi
15086 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15087 if test "x$ac_cv_func_gethostbyname" = xyes
15088 then :
15089 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15090
15091 fi
15092 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
15093 if test "x$ac_cv_func_getservbyname" = xyes
15094 then :
15095 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
15096
15097 fi
15098 ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent"
15099 if test "x$ac_cv_func_getservent" = xyes
15100 then :
15101 printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h
15102
15103 fi
15104 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15105 if test "x$ac_cv_func_inet_aton" = xyes
15106 then :
15107 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
15108
15109 fi
15110 ac_fn_c_check_func "$LINENO" "imaxdiv" "ac_cv_func_imaxdiv"
15111 if test "x$ac_cv_func_imaxdiv" = xyes
15112 then :
15113 printf "%s\n" "#define HAVE_IMAXDIV 1" >>confdefs.h
15114
15115 fi
15116 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
15117 if test "x$ac_cv_func_memmove" = xyes
15118 then :
15119 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
15120
15121 fi
15122 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
15123 if test "x$ac_cv_func_pathconf" = xyes
15124 then :
15125 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
15126
15127 fi
15128 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15129 if test "x$ac_cv_func_putenv" = xyes
15130 then :
15131 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15132
15133 fi
15134 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
15135 if test "x$ac_cv_func_raise" = xyes
15136 then :
15137 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
15138
15139 fi
15140 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
15141 if test "x$ac_cv_func_random" = xyes
15142 then :
15143 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
15144
15145 fi
15146 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
15147 if test "x$ac_cv_func_regcomp" = xyes
15148 then :
15149 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
15150
15151 fi
15152 ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec"
15153 if test "x$ac_cv_func_regexec" = xyes
15154 then :
15155 printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h
15156
15157 fi
15158 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15159 if test "x$ac_cv_func_setenv" = xyes
15160 then :
15161 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15162
15163 fi
15164 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
15165 if test "x$ac_cv_func_setlinebuf" = xyes
15166 then :
15167 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
15168
15169 fi
15170 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
15171 if test "x$ac_cv_func_setlocale" = xyes
15172 then :
15173 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
15174
15175 fi
15176 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
15177 if test "x$ac_cv_func_setvbuf" = xyes
15178 then :
15179 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
15180
15181 fi
15182 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
15183 if test "x$ac_cv_func_siginterrupt" = xyes
15184 then :
15185 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
15186
15187 fi
15188 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15189 if test "x$ac_cv_func_strchr" = xyes
15190 then :
15191 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15192
15193 fi
15194 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
15195 if test "x$ac_cv_func_sysconf" = xyes
15196 then :
15197 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
15198
15199 fi
15200 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15201 if test "x$ac_cv_func_syslog" = xyes
15202 then :
15203 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
15204
15205 fi
15206 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
15207 if test "x$ac_cv_func_tcgetattr" = xyes
15208 then :
15209 printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h
15210
15211 fi
15212 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
15213 if test "x$ac_cv_func_times" = xyes
15214 then :
15215 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
15216
15217 fi
15218 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
15219 if test "x$ac_cv_func_ttyname" = xyes
15220 then :
15221 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
15222
15223 fi
15224 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
15225 if test "x$ac_cv_func_tzset" = xyes
15226 then :
15227 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
15228
15229 fi
15230 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15231 if test "x$ac_cv_func_unsetenv" = xyes
15232 then :
15233 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
15234
15235 fi
15236
15237
15238 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15239 if test "x$ac_cv_func_vasprintf" = xyes
15240 then :
15241 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15242
15243 fi
15244 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15245 if test "x$ac_cv_func_asprintf" = xyes
15246 then :
15247 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15248
15249 fi
15250
15251 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
15252 if test "x$ac_cv_func_isascii" = xyes
15253 then :
15254 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
15255
15256 fi
15257 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
15258 if test "x$ac_cv_func_isblank" = xyes
15259 then :
15260 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
15261
15262 fi
15263 ac_fn_c_check_func "$LINENO" "isgraph" "ac_cv_func_isgraph"
15264 if test "x$ac_cv_func_isgraph" = xyes
15265 then :
15266 printf "%s\n" "#define HAVE_ISGRAPH 1" >>confdefs.h
15267
15268 fi
15269 ac_fn_c_check_func "$LINENO" "isprint" "ac_cv_func_isprint"
15270 if test "x$ac_cv_func_isprint" = xyes
15271 then :
15272 printf "%s\n" "#define HAVE_ISPRINT 1" >>confdefs.h
15273
15274 fi
15275 ac_fn_c_check_func "$LINENO" "isspace" "ac_cv_func_isspace"
15276 if test "x$ac_cv_func_isspace" = xyes
15277 then :
15278 printf "%s\n" "#define HAVE_ISSPACE 1" >>confdefs.h
15279
15280 fi
15281 ac_fn_c_check_func "$LINENO" "isxdigit" "ac_cv_func_isxdigit"
15282 if test "x$ac_cv_func_isxdigit" = xyes
15283 then :
15284 printf "%s\n" "#define HAVE_ISXDIGIT 1" >>confdefs.h
15285
15286 fi
15287
15288 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
15289 if test "x$ac_cv_func_getpwent" = xyes
15290 then :
15291 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
15292
15293 fi
15294 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
15295 if test "x$ac_cv_func_getpwnam" = xyes
15296 then :
15297 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
15298
15299 fi
15300 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
15301 if test "x$ac_cv_func_getpwuid" = xyes
15302 then :
15303 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
15304
15305 fi
15306
15307 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15308 if test "x$ac_cv_func_mkstemp" = xyes
15309 then :
15310 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15311
15312 fi
15313 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15314 if test "x$ac_cv_func_mkdtemp" = xyes
15315 then :
15316 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
15317
15318 fi
15319
15320 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
15321 if test "x$ac_cv_func_arc4random" = xyes
15322 then :
15323 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
15324
15325 fi
15326
15327
15328 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15329 if test "x$ac_cv_func_getcwd" = xyes
15330 then :
15331 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15332
15333 else $as_nop
15334 case " $LIBOBJS " in
15335 *" getcwd.$ac_objext "* ) ;;
15336 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
15337 ;;
15338 esac
15339
15340 fi
15341 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
15342 if test "x$ac_cv_func_memset" = xyes
15343 then :
15344 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
15345
15346 else $as_nop
15347 case " $LIBOBJS " in
15348 *" memset.$ac_objext "* ) ;;
15349 *) LIBOBJS="$LIBOBJS memset.$ac_objext"
15350 ;;
15351 esac
15352
15353 fi
15354
15355 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
15356 if test "x$ac_cv_func_strcasecmp" = xyes
15357 then :
15358 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
15359
15360 else $as_nop
15361 case " $LIBOBJS " in
15362 *" strcasecmp.$ac_objext "* ) ;;
15363 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
15364 ;;
15365 esac
15366
15367 fi
15368 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15369 if test "x$ac_cv_func_strcasestr" = xyes
15370 then :
15371 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15372
15373 else $as_nop
15374 case " $LIBOBJS " in
15375 *" strcasestr.$ac_objext "* ) ;;
15376 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
15377 ;;
15378 esac
15379
15380 fi
15381 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
15382 if test "x$ac_cv_func_strerror" = xyes
15383 then :
15384 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
15385
15386 else $as_nop
15387 case " $LIBOBJS " in
15388 *" strerror.$ac_objext "* ) ;;
15389 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
15390 ;;
15391 esac
15392
15393 fi
15394 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15395 if test "x$ac_cv_func_strftime" = xyes
15396 then :
15397 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
15398
15399 else $as_nop
15400 case " $LIBOBJS " in
15401 *" strftime.$ac_objext "* ) ;;
15402 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
15403 ;;
15404 esac
15405
15406 fi
15407 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
15408 if test "x$ac_cv_func_strnlen" = xyes
15409 then :
15410 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
15411
15412 else $as_nop
15413 case " $LIBOBJS " in
15414 *" strnlen.$ac_objext "* ) ;;
15415 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
15416 ;;
15417 esac
15418
15419 fi
15420 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15421 if test "x$ac_cv_func_strpbrk" = xyes
15422 then :
15423 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15424
15425 else $as_nop
15426 case " $LIBOBJS " in
15427 *" strpbrk.$ac_objext "* ) ;;
15428 *) LIBOBJS="$LIBOBJS strpbrk.$ac_objext"
15429 ;;
15430 esac
15431
15432 fi
15433 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
15434 if test "x$ac_cv_func_strstr" = xyes
15435 then :
15436 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
15437
15438 else $as_nop
15439 case " $LIBOBJS " in
15440 *" strstr.$ac_objext "* ) ;;
15441 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
15442 ;;
15443 esac
15444
15445 fi
15446
15447 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
15448 if test "x$ac_cv_func_strtod" = xyes
15449 then :
15450 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
15451
15452 else $as_nop
15453 case " $LIBOBJS " in
15454 *" strtod.$ac_objext "* ) ;;
15455 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15456 ;;
15457 esac
15458
15459 fi
15460 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
15461 if test "x$ac_cv_func_strtol" = xyes
15462 then :
15463 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
15464
15465 else $as_nop
15466 case " $LIBOBJS " in
15467 *" strtol.$ac_objext "* ) ;;
15468 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
15469 ;;
15470 esac
15471
15472 fi
15473 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
15474 if test "x$ac_cv_func_strtoul" = xyes
15475 then :
15476 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
15477
15478 else $as_nop
15479 case " $LIBOBJS " in
15480 *" strtoul.$ac_objext "* ) ;;
15481 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
15482 ;;
15483 esac
15484
15485 fi
15486 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
15487 if test "x$ac_cv_func_strtoll" = xyes
15488 then :
15489 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
15490
15491 else $as_nop
15492 case " $LIBOBJS " in
15493 *" strtoll.$ac_objext "* ) ;;
15494 *) LIBOBJS="$LIBOBJS strtoll.$ac_objext"
15495 ;;
15496 esac
15497
15498 fi
15499 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
15500 if test "x$ac_cv_func_strtoull" = xyes
15501 then :
15502 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
15503
15504 else $as_nop
15505 case " $LIBOBJS " in
15506 *" strtoull.$ac_objext "* ) ;;
15507 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
15508 ;;
15509 esac
15510
15511 fi
15512 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
15513 if test "x$ac_cv_func_strtoumax" = xyes
15514 then :
15515 printf "%s\n" "#define HAVE_STRTOUMAX 1" >>confdefs.h
15516
15517 else $as_nop
15518 case " $LIBOBJS " in
15519 *" strtoumax.$ac_objext "* ) ;;
15520 *) LIBOBJS="$LIBOBJS strtoumax.$ac_objext"
15521 ;;
15522 esac
15523
15524 fi
15525
15526 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
15527 if test "x$ac_cv_func_dprintf" = xyes
15528 then :
15529 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15530
15531 else $as_nop
15532 case " $LIBOBJS " in
15533 *" dprintf.$ac_objext "* ) ;;
15534 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
15535 ;;
15536 esac
15537
15538 fi
15539
15540 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
15541 if test "x$ac_cv_func_strchrnul" = xyes
15542 then :
15543 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
15544
15545 else $as_nop
15546 case " $LIBOBJS " in
15547 *" strchrnul.$ac_objext "* ) ;;
15548 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
15549 ;;
15550 esac
15551
15552 fi
15553
15554 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
15555 if test "x$ac_cv_func_strdup" = xyes
15556 then :
15557 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
15558
15559 else $as_nop
15560 case " $LIBOBJS " in
15561 *" strdup.$ac_objext "* ) ;;
15562 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
15563 ;;
15564 esac
15565
15566 fi
15567
15568
15569 ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
15570 if test "x$ac_cv_header_libaudit_h" = xyes
15571 then :
15572 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h
15573
15574 fi
15575
15576 ac_fn_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
15577 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15578 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes
15579 then :
15580 ac_have_decl=1
15581 else $as_nop
15582 ac_have_decl=0
15583 fi
15584 printf "%s\n" "#define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl" >>confdefs.h
15585
15586
15587 ac_fn_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15588 if test "x$ac_cv_have_decl_confstr" = xyes
15589 then :
15590 ac_have_decl=1
15591 else $as_nop
15592 ac_have_decl=0
15593 fi
15594 printf "%s\n" "#define HAVE_DECL_CONFSTR $ac_have_decl" >>confdefs.h
15595
15596 ac_fn_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15597 if test "x$ac_cv_have_decl_printf" = xyes
15598 then :
15599 ac_have_decl=1
15600 else $as_nop
15601 ac_have_decl=0
15602 fi
15603 printf "%s\n" "#define HAVE_DECL_PRINTF $ac_have_decl" >>confdefs.h
15604
15605 ac_fn_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15606 if test "x$ac_cv_have_decl_sbrk" = xyes
15607 then :
15608 ac_have_decl=1
15609 else $as_nop
15610 ac_have_decl=0
15611 fi
15612 printf "%s\n" "#define HAVE_DECL_SBRK $ac_have_decl" >>confdefs.h
15613
15614 ac_fn_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15615 if test "x$ac_cv_have_decl_setregid" = xyes
15616 then :
15617 ac_have_decl=1
15618 else $as_nop
15619 ac_have_decl=0
15620 fi
15621 printf "%s\n" "#define HAVE_DECL_SETREGID $ac_have_decl" >>confdefs.h
15622
15623 ac_fn_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15624 if test "x$ac_cv_have_decl_strcpy" = xyes
15625 then :
15626 ac_have_decl=1
15627 else $as_nop
15628 ac_have_decl=0
15629 fi
15630 printf "%s\n" "#define HAVE_DECL_STRCPY $ac_have_decl" >>confdefs.h
15631
15632 ac_fn_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15633 if test "x$ac_cv_have_decl_strsignal" = xyes
15634 then :
15635 ac_have_decl=1
15636 else $as_nop
15637 ac_have_decl=0
15638 fi
15639 printf "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h
15640
15641
15642 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
15643 if test "x$ac_cv_func_setresuid" = xyes
15644 then :
15645 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
15646
15647 fi
15648 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
15649 if test "x$ac_cv_func_setresgid" = xyes
15650 then :
15651 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
15652
15653 fi
15654
15655
15656 ac_fn_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15657 if test "x$ac_cv_have_decl_strtold" = xyes
15658 then :
15659 ac_have_decl=1
15660 else $as_nop
15661 ac_have_decl=0
15662 fi
15663 printf "%s\n" "#define HAVE_DECL_STRTOLD $ac_have_decl" >>confdefs.h
15664 if test $ac_have_decl = 1
15665 then :
15666
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5
15668 printf %s "checking for broken strtold... " >&6; }
15669 if test ${bash_cv_strtold_broken+y}
15670 then :
15671 printf %s "(cached) " >&6
15672 else $as_nop
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <stdlib.h>
15676 int
15677 main (void)
15678 {
15679 long double r; char *foo, bar; r = strtold(foo, &bar);
15680
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 if ac_fn_c_try_compile "$LINENO"
15686 then :
15687 bash_cv_strtold_broken=no
15688 else $as_nop
15689 bash_cv_strtold_broken=yes
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15692
15693
15694 fi
15695
15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5
15697 printf "%s\n" "$bash_cv_strtold_broken" >&6; }
15698 if test "$bash_cv_strtold_broken" = "yes" ; then
15699 printf "%s\n" "#define STRTOLD_BROKEN 1" >>confdefs.h
15700
15701 fi
15702
15703 fi
15704
15705
15706 ac_fn_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15707 if test "x$ac_cv_have_decl_strtol" = xyes
15708 then :
15709 ac_have_decl=1
15710 else $as_nop
15711 ac_have_decl=0
15712 fi
15713 printf "%s\n" "#define HAVE_DECL_STRTOL $ac_have_decl" >>confdefs.h
15714
15715 ac_fn_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15716 if test "x$ac_cv_have_decl_strtoll" = xyes
15717 then :
15718 ac_have_decl=1
15719 else $as_nop
15720 ac_have_decl=0
15721 fi
15722 printf "%s\n" "#define HAVE_DECL_STRTOLL $ac_have_decl" >>confdefs.h
15723
15724 ac_fn_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15725 if test "x$ac_cv_have_decl_strtoul" = xyes
15726 then :
15727 ac_have_decl=1
15728 else $as_nop
15729 ac_have_decl=0
15730 fi
15731 printf "%s\n" "#define HAVE_DECL_STRTOUL $ac_have_decl" >>confdefs.h
15732
15733 ac_fn_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15734 if test "x$ac_cv_have_decl_strtoull" = xyes
15735 then :
15736 ac_have_decl=1
15737 else $as_nop
15738 ac_have_decl=0
15739 fi
15740 printf "%s\n" "#define HAVE_DECL_STRTOULL $ac_have_decl" >>confdefs.h
15741
15742 ac_fn_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15743 if test "x$ac_cv_have_decl_strtoumax" = xyes
15744 then :
15745 ac_have_decl=1
15746 else $as_nop
15747 ac_have_decl=0
15748 fi
15749 printf "%s\n" "#define HAVE_DECL_STRTOUMAX $ac_have_decl" >>confdefs.h
15750
15751
15752
15753
15754
15755
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15757 printf %s "checking for working mktime... " >&6; }
15758 if test ${ac_cv_func_working_mktime+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else $as_nop
15762 if test "$cross_compiling" = yes
15763 then :
15764 ac_cv_func_working_mktime=no
15765 else $as_nop
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 /* Test program from Paul Eggert and Tony Leneis. */
15769 #include <time.h>
15770 #ifdef HAVE_SYS_TIME_H
15771 # include <sys/time.h>
15772 #endif
15773
15774 #include <limits.h>
15775 #include <stdlib.h>
15776
15777 #ifdef HAVE_UNISTD_H
15778 # include <unistd.h>
15779 #endif
15780
15781 #ifndef HAVE_ALARM
15782 # define alarm(X) /* empty */
15783 #endif
15784
15785 /* Work around redefinition to rpl_putenv by other config tests. */
15786 #undef putenv
15787
15788 static time_t time_t_max;
15789 static time_t time_t_min;
15790
15791 /* Values we'll use to set the TZ environment variable. */
15792 static const char *tz_strings[] = {
15793 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15794 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15795 };
15796 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15797
15798 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15799 Based on a problem report from Andreas Jaeger. */
15800 static int
15801 spring_forward_gap ()
15802 {
15803 /* glibc (up to about 1998-10-07) failed this test. */
15804 struct tm tm;
15805
15806 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15807 instead of "TZ=America/Vancouver" in order to detect the bug even
15808 on systems that don't support the Olson extension, or don't have the
15809 full zoneinfo tables installed. */
15810 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15811
15812 tm.tm_year = 98;
15813 tm.tm_mon = 3;
15814 tm.tm_mday = 5;
15815 tm.tm_hour = 2;
15816 tm.tm_min = 0;
15817 tm.tm_sec = 0;
15818 tm.tm_isdst = -1;
15819 return mktime (&tm) != (time_t) -1;
15820 }
15821
15822 static int
15823 mktime_test1 (time_t now)
15824 {
15825 struct tm *lt;
15826 return ! (lt = localtime (&now)) || mktime (lt) == now;
15827 }
15828
15829 static int
15830 mktime_test (time_t now)
15831 {
15832 return (mktime_test1 (now)
15833 && mktime_test1 ((time_t) (time_t_max - now))
15834 && mktime_test1 ((time_t) (time_t_min + now)));
15835 }
15836
15837 static int
15838 irix_6_4_bug ()
15839 {
15840 /* Based on code from Ariel Faigon. */
15841 struct tm tm;
15842 tm.tm_year = 96;
15843 tm.tm_mon = 3;
15844 tm.tm_mday = 0;
15845 tm.tm_hour = 0;
15846 tm.tm_min = 0;
15847 tm.tm_sec = 0;
15848 tm.tm_isdst = -1;
15849 mktime (&tm);
15850 return tm.tm_mon == 2 && tm.tm_mday == 31;
15851 }
15852
15853 static int
15854 bigtime_test (int j)
15855 {
15856 struct tm tm;
15857 time_t now;
15858 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15859 now = mktime (&tm);
15860 if (now != (time_t) -1)
15861 {
15862 struct tm *lt = localtime (&now);
15863 if (! (lt
15864 && lt->tm_year == tm.tm_year
15865 && lt->tm_mon == tm.tm_mon
15866 && lt->tm_mday == tm.tm_mday
15867 && lt->tm_hour == tm.tm_hour
15868 && lt->tm_min == tm.tm_min
15869 && lt->tm_sec == tm.tm_sec
15870 && lt->tm_yday == tm.tm_yday
15871 && lt->tm_wday == tm.tm_wday
15872 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15873 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15874 return 0;
15875 }
15876 return 1;
15877 }
15878
15879 static int
15880 year_2050_test ()
15881 {
15882 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15883 ignoring leap seconds. */
15884 unsigned long int answer = 2527315200UL;
15885
15886 struct tm tm;
15887 time_t t;
15888 tm.tm_year = 2050 - 1900;
15889 tm.tm_mon = 2 - 1;
15890 tm.tm_mday = 1;
15891 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15892 tm.tm_isdst = -1;
15893
15894 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15895 instead of "TZ=America/Vancouver" in order to detect the bug even
15896 on systems that don't support the Olson extension, or don't have the
15897 full zoneinfo tables installed. */
15898 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
15899
15900 t = mktime (&tm);
15901
15902 /* Check that the result is either a failure, or close enough
15903 to the correct answer that we can assume the discrepancy is
15904 due to leap seconds. */
15905 return (t == (time_t) -1
15906 || (0 < t && answer - 120 <= t && t <= answer + 120));
15907 }
15908
15909 int
15910 main (void)
15911 {
15912 time_t t, delta;
15913 int i, j;
15914
15915 /* This test makes some buggy mktime implementations loop.
15916 Give up after 60 seconds; a mktime slower than that
15917 isn't worth using anyway. */
15918 alarm (60);
15919
15920 for (;;)
15921 {
15922 t = (time_t_max << 1) + 1;
15923 if (t <= time_t_max)
15924 break;
15925 time_t_max = t;
15926 }
15927 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15928
15929 delta = time_t_max / 997; /* a suitable prime number */
15930 for (i = 0; i < N_STRINGS; i++)
15931 {
15932 if (tz_strings[i])
15933 putenv ((char*) tz_strings[i]);
15934
15935 for (t = 0; t <= time_t_max - delta; t += delta)
15936 if (! mktime_test (t))
15937 return 1;
15938 if (! (mktime_test ((time_t) 1)
15939 && mktime_test ((time_t) (60 * 60))
15940 && mktime_test ((time_t) (60 * 60 * 24))))
15941 return 1;
15942
15943 for (j = 1; ; j <<= 1)
15944 if (! bigtime_test (j))
15945 return 1;
15946 else if (INT_MAX / 2 < j)
15947 break;
15948 if (! bigtime_test (INT_MAX))
15949 return 1;
15950 }
15951 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_run "$LINENO"
15955 then :
15956 ac_cv_func_working_mktime=yes
15957 else $as_nop
15958 ac_cv_func_working_mktime=no
15959 fi
15960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15961 conftest.$ac_objext conftest.beam conftest.$ac_ext
15962 fi
15963
15964 fi
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15966 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
15967 if test $ac_cv_func_working_mktime = no; then
15968 case " $LIBOBJS " in
15969 *" mktime.$ac_objext "* ) ;;
15970 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15971 ;;
15972 esac
15973
15974 fi
15975
15976
15977
15978 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_argz_h" = xyes
15980 then :
15981 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
15982
15983 fi
15984 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15985 if test "x$ac_cv_header_errno_h" = xyes
15986 then :
15987 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15988
15989 fi
15990 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15991 if test "x$ac_cv_header_fcntl_h" = xyes
15992 then :
15993 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15994
15995 fi
15996 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15997 if test "x$ac_cv_header_malloc_h" = xyes
15998 then :
15999 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
16000
16001 fi
16002 ac_fn_c_check_header_compile "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
16003 if test "x$ac_cv_header_stdio_ext_h" = xyes
16004 then :
16005 printf "%s\n" "#define HAVE_STDIO_EXT_H 1" >>confdefs.h
16006
16007 fi
16008
16009
16010
16011
16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16013 printf %s "checking for working mmap... " >&6; }
16014 if test ${ac_cv_func_mmap_fixed_mapped+y}
16015 then :
16016 printf %s "(cached) " >&6
16017 else $as_nop
16018 if test "$cross_compiling" = yes
16019 then :
16020 case "$host_os" in # ((
16021 # Guess yes on platforms where we know the result.
16022 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
16023 # If we don't know, assume the worst.
16024 *) ac_cv_func_mmap_fixed_mapped=no ;;
16025 esac
16026 else $as_nop
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 /* malloc might have been renamed as rpl_malloc. */
16031 #undef malloc
16032
16033 /* Thanks to Mike Haertel and Jim Avera for this test.
16034 Here is a matrix of mmap possibilities:
16035 mmap private not fixed
16036 mmap private fixed at somewhere currently unmapped
16037 mmap private fixed at somewhere already mapped
16038 mmap shared not fixed
16039 mmap shared fixed at somewhere currently unmapped
16040 mmap shared fixed at somewhere already mapped
16041 For private mappings, we should verify that changes cannot be read()
16042 back from the file, nor mmap's back from the file at a different
16043 address. (There have been systems where private was not correctly
16044 implemented like the infamous i386 svr4.0, and systems where the
16045 VM page cache was not coherent with the file system buffer cache
16046 like early versions of FreeBSD and possibly contemporary NetBSD.)
16047 For shared mappings, we should conversely verify that changes get
16048 propagated back to all the places they're supposed to be.
16049
16050 Grep wants private fixed already mapped.
16051 The main things grep needs to know about mmap are:
16052 * does it exist and is it safe to write into the mmap'd area
16053 * how to use it (BSD variants) */
16054
16055 #include <fcntl.h>
16056 #include <sys/mman.h>
16057
16058 /* This mess was copied from the GNU getpagesize.h. */
16059 #ifndef HAVE_GETPAGESIZE
16060 # ifdef _SC_PAGESIZE
16061 # define getpagesize() sysconf(_SC_PAGESIZE)
16062 # else /* no _SC_PAGESIZE */
16063 # ifdef HAVE_SYS_PARAM_H
16064 # include <sys/param.h>
16065 # ifdef EXEC_PAGESIZE
16066 # define getpagesize() EXEC_PAGESIZE
16067 # else /* no EXEC_PAGESIZE */
16068 # ifdef NBPG
16069 # define getpagesize() NBPG * CLSIZE
16070 # ifndef CLSIZE
16071 # define CLSIZE 1
16072 # endif /* no CLSIZE */
16073 # else /* no NBPG */
16074 # ifdef NBPC
16075 # define getpagesize() NBPC
16076 # else /* no NBPC */
16077 # ifdef PAGESIZE
16078 # define getpagesize() PAGESIZE
16079 # endif /* PAGESIZE */
16080 # endif /* no NBPC */
16081 # endif /* no NBPG */
16082 # endif /* no EXEC_PAGESIZE */
16083 # else /* no HAVE_SYS_PARAM_H */
16084 # define getpagesize() 8192 /* punt totally */
16085 # endif /* no HAVE_SYS_PARAM_H */
16086 # endif /* no _SC_PAGESIZE */
16087
16088 #endif /* no HAVE_GETPAGESIZE */
16089
16090 int
16091 main (void)
16092 {
16093 char *data, *data2, *data3;
16094 const char *cdata2;
16095 int i, pagesize;
16096 int fd, fd2;
16097
16098 pagesize = getpagesize ();
16099
16100 /* First, make a file with some known garbage in it. */
16101 data = (char *) malloc (pagesize);
16102 if (!data)
16103 return 1;
16104 for (i = 0; i < pagesize; ++i)
16105 *(data + i) = rand ();
16106 umask (0);
16107 fd = creat ("conftest.mmap", 0600);
16108 if (fd < 0)
16109 return 2;
16110 if (write (fd, data, pagesize) != pagesize)
16111 return 3;
16112 close (fd);
16113
16114 /* Next, check that the tail of a page is zero-filled. File must have
16115 non-zero length, otherwise we risk SIGBUS for entire page. */
16116 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16117 if (fd2 < 0)
16118 return 4;
16119 cdata2 = "";
16120 if (write (fd2, cdata2, 1) != 1)
16121 return 5;
16122 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16123 if (data2 == MAP_FAILED)
16124 return 6;
16125 for (i = 0; i < pagesize; ++i)
16126 if (*(data2 + i))
16127 return 7;
16128 close (fd2);
16129 if (munmap (data2, pagesize))
16130 return 8;
16131
16132 /* Next, try to mmap the file at a fixed address which already has
16133 something else allocated at it. If we can, also make sure that
16134 we see the same garbage. */
16135 fd = open ("conftest.mmap", O_RDWR);
16136 if (fd < 0)
16137 return 9;
16138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16139 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16140 return 10;
16141 for (i = 0; i < pagesize; ++i)
16142 if (*(data + i) != *(data2 + i))
16143 return 11;
16144
16145 /* Finally, make sure that changes to the mapped area do not
16146 percolate back to the file as seen by read(). (This is a bug on
16147 some variants of i386 svr4.0.) */
16148 for (i = 0; i < pagesize; ++i)
16149 *(data2 + i) = *(data2 + i) + 1;
16150 data3 = (char *) malloc (pagesize);
16151 if (!data3)
16152 return 12;
16153 if (read (fd, data3, pagesize) != pagesize)
16154 return 13;
16155 for (i = 0; i < pagesize; ++i)
16156 if (*(data + i) != *(data3 + i))
16157 return 14;
16158 close (fd);
16159 free (data);
16160 free (data3);
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_run "$LINENO"
16165 then :
16166 ac_cv_func_mmap_fixed_mapped=yes
16167 else $as_nop
16168 ac_cv_func_mmap_fixed_mapped=no
16169 fi
16170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16171 conftest.$ac_objext conftest.beam conftest.$ac_ext
16172 fi
16173
16174 fi
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16176 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
16177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16178
16179 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16180
16181 fi
16182 rm -f conftest.mmap conftest.txt
16183
16184 ac_fn_c_check_func "$LINENO" "__argz_count" "ac_cv_func___argz_count"
16185 if test "x$ac_cv_func___argz_count" = xyes
16186 then :
16187 printf "%s\n" "#define HAVE___ARGZ_COUNT 1" >>confdefs.h
16188
16189 fi
16190 ac_fn_c_check_func "$LINENO" "__argz_next" "ac_cv_func___argz_next"
16191 if test "x$ac_cv_func___argz_next" = xyes
16192 then :
16193 printf "%s\n" "#define HAVE___ARGZ_NEXT 1" >>confdefs.h
16194
16195 fi
16196 ac_fn_c_check_func "$LINENO" "__argz_stringify" "ac_cv_func___argz_stringify"
16197 if test "x$ac_cv_func___argz_stringify" = xyes
16198 then :
16199 printf "%s\n" "#define HAVE___ARGZ_STRINGIFY 1" >>confdefs.h
16200
16201 fi
16202 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16203 if test "x$ac_cv_func_dcgettext" = xyes
16204 then :
16205 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16206
16207 fi
16208 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16209 if test "x$ac_cv_func_mempcpy" = xyes
16210 then :
16211 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
16212
16213 fi
16214 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
16215 if test "x$ac_cv_func_munmap" = xyes
16216 then :
16217 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
16218
16219 fi
16220 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
16221 if test "x$ac_cv_func_mremap" = xyes
16222 then :
16223 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
16224
16225 fi
16226 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
16227 if test "x$ac_cv_func_stpcpy" = xyes
16228 then :
16229 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
16230
16231 fi
16232 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
16233 if test "x$ac_cv_func_strcspn" = xyes
16234 then :
16235 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
16236
16237 fi
16238
16239
16240 INTL_DEP= INTL_INC= LIBINTL_H=
16241 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16242 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16243 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16244 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16245 fi
16246
16247
16248
16249
16250
16251
16252 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
16253 if test "x$ac_cv_header_wctype_h" = xyes
16254 then :
16255 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
16256
16257 fi
16258
16259 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16260 if test "x$ac_cv_header_wchar_h" = xyes
16261 then :
16262 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
16263
16264 fi
16265
16266 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
16267 if test "x$ac_cv_header_langinfo_h" = xyes
16268 then :
16269 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
16270
16271 fi
16272
16273
16274 ac_fn_c_check_header_compile "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
16275 if test "x$ac_cv_header_mbstr_h" = xyes
16276 then :
16277 printf "%s\n" "#define HAVE_MBSTR_H 1" >>confdefs.h
16278
16279 fi
16280
16281
16282 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
16283 if test "x$ac_cv_func_mbrlen" = xyes
16284 then :
16285 printf "%s\n" "#define HAVE_MBRLEN 1" >>confdefs.h
16286
16287 fi
16288
16289 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
16290 if test "x$ac_cv_func_mbscasecmp" = xyes
16291 then :
16292 printf "%s\n" "#define HAVE_MBSCMP 1" >>confdefs.h
16293
16294 fi
16295
16296 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
16297 if test "x$ac_cv_func_mbscmp" = xyes
16298 then :
16299 printf "%s\n" "#define HAVE_MBSCMP 1" >>confdefs.h
16300
16301 fi
16302
16303 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
16304 if test "x$ac_cv_func_mbsnrtowcs" = xyes
16305 then :
16306 printf "%s\n" "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
16307
16308 fi
16309
16310 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
16311 if test "x$ac_cv_func_mbsrtowcs" = xyes
16312 then :
16313 printf "%s\n" "#define HAVE_MBSRTOWCS 1" >>confdefs.h
16314
16315 fi
16316
16317
16318 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
16319 if test "x$ac_cv_func_mbschr" = xyes
16320 then :
16321 printf "%s\n" "#define HAVE_MBSCHR 1" >>confdefs.h
16322
16323 else $as_nop
16324 case " $LIBOBJS " in
16325 *" mbschr.$ac_objext "* ) ;;
16326 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext"
16327 ;;
16328 esac
16329
16330 fi
16331
16332
16333 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
16334 if test "x$ac_cv_func_wcrtomb" = xyes
16335 then :
16336 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
16337
16338 fi
16339
16340 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
16341 if test "x$ac_cv_func_wcscoll" = xyes
16342 then :
16343 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
16344
16345 fi
16346
16347 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
16348 if test "x$ac_cv_func_wcsdup" = xyes
16349 then :
16350 printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
16351
16352 fi
16353
16354 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
16355 if test "x$ac_cv_func_wcwidth" = xyes
16356 then :
16357 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
16358
16359 fi
16360
16361 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
16362 if test "x$ac_cv_func_wctype" = xyes
16363 then :
16364 printf "%s\n" "#define HAVE_WCTYPE 1" >>confdefs.h
16365
16366 fi
16367
16368
16369 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
16370 if test "x$ac_cv_func_wcswidth" = xyes
16371 then :
16372 printf "%s\n" "#define HAVE_WCSWIDTH 1" >>confdefs.h
16373
16374 else $as_nop
16375 case " $LIBOBJS " in
16376 *" wcswidth.$ac_objext "* ) ;;
16377 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext"
16378 ;;
16379 esac
16380
16381 fi
16382
16383
16384
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
16386 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
16387 if test ${ac_cv_func_mbrtowc+y}
16388 then :
16389 printf %s "(cached) " >&6
16390 else $as_nop
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #include <wchar.h>
16394 int
16395 main (void)
16396 {
16397 wchar_t wc;
16398 char const s[] = "";
16399 size_t n = 1;
16400 mbstate_t state;
16401 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
16402 ;
16403 return 0;
16404 }
16405 _ACEOF
16406 if ac_fn_c_try_link "$LINENO"
16407 then :
16408 ac_cv_func_mbrtowc=yes
16409 else $as_nop
16410 ac_cv_func_mbrtowc=no
16411 fi
16412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16413 conftest$ac_exeext conftest.$ac_ext
16414 fi
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
16416 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
16417 if test $ac_cv_func_mbrtowc = yes; then
16418
16419 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
16420
16421 fi
16422
16423 if test $ac_cv_func_mbrtowc = yes; then
16424 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
16425
16426 fi
16427
16428 ac_fn_c_check_func "$LINENO" "iswlower" "ac_cv_func_iswlower"
16429 if test "x$ac_cv_func_iswlower" = xyes
16430 then :
16431 printf "%s\n" "#define HAVE_ISWLOWER 1" >>confdefs.h
16432
16433 fi
16434 ac_fn_c_check_func "$LINENO" "iswupper" "ac_cv_func_iswupper"
16435 if test "x$ac_cv_func_iswupper" = xyes
16436 then :
16437 printf "%s\n" "#define HAVE_ISWUPPER 1" >>confdefs.h
16438
16439 fi
16440 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
16441 if test "x$ac_cv_func_towlower" = xyes
16442 then :
16443 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
16444
16445 fi
16446 ac_fn_c_check_func "$LINENO" "towupper" "ac_cv_func_towupper"
16447 if test "x$ac_cv_func_towupper" = xyes
16448 then :
16449 printf "%s\n" "#define HAVE_TOWUPPER 1" >>confdefs.h
16450
16451 fi
16452 ac_fn_c_check_func "$LINENO" "iswctype" "ac_cv_func_iswctype"
16453 if test "x$ac_cv_func_iswctype" = xyes
16454 then :
16455 printf "%s\n" "#define HAVE_ISWCTYPE 1" >>confdefs.h
16456
16457 fi
16458
16459
16460
16461
16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
16463 printf %s "checking for wchar_t in wchar.h... " >&6; }
16464 if test ${bash_cv_type_wchar_t+y}
16465 then :
16466 printf %s "(cached) " >&6
16467 else $as_nop
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470
16471 #include <wchar.h>
16472 int
16473 main (void)
16474 {
16475
16476 wchar_t foo;
16477 foo = 0;
16478
16479 ;
16480 return 0;
16481 }
16482 _ACEOF
16483 if ac_fn_c_try_compile "$LINENO"
16484 then :
16485 bash_cv_type_wchar_t=yes
16486 else $as_nop
16487 bash_cv_type_wchar_t=no
16488
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16491 fi
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
16493 printf "%s\n" "$bash_cv_type_wchar_t" >&6; }
16494 if test $bash_cv_type_wchar_t = yes; then
16495
16496 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
16497
16498 fi
16499
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
16501 printf %s "checking for wctype_t in wctype.h... " >&6; }
16502 if test ${bash_cv_type_wctype_t+y}
16503 then :
16504 printf %s "(cached) " >&6
16505 else $as_nop
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508
16509 #include <wctype.h>
16510 int
16511 main (void)
16512 {
16513
16514 wctype_t foo;
16515 foo = 0;
16516
16517 ;
16518 return 0;
16519 }
16520 _ACEOF
16521 if ac_fn_c_try_compile "$LINENO"
16522 then :
16523 bash_cv_type_wctype_t=yes
16524 else $as_nop
16525 bash_cv_type_wctype_t=no
16526
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16529 fi
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
16531 printf "%s\n" "$bash_cv_type_wctype_t" >&6; }
16532 if test $bash_cv_type_wctype_t = yes; then
16533
16534 printf "%s\n" "#define HAVE_WCTYPE_T 1" >>confdefs.h
16535
16536 fi
16537
16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
16539 printf %s "checking for wint_t in wctype.h... " >&6; }
16540 if test ${bash_cv_type_wint_t+y}
16541 then :
16542 printf %s "(cached) " >&6
16543 else $as_nop
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546
16547 #include <wctype.h>
16548 int
16549 main (void)
16550 {
16551
16552 wint_t foo;
16553 foo = 0;
16554
16555 ;
16556 return 0;
16557 }
16558 _ACEOF
16559 if ac_fn_c_try_compile "$LINENO"
16560 then :
16561 bash_cv_type_wint_t=yes
16562 else $as_nop
16563 bash_cv_type_wint_t=no
16564
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16567 fi
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
16569 printf "%s\n" "$bash_cv_type_wint_t" >&6; }
16570 if test $bash_cv_type_wint_t = yes; then
16571
16572 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
16573
16574 fi
16575
16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
16577 printf %s "checking for wcwidth broken with unicode combining characters... " >&6; }
16578 if test ${bash_cv_wcwidth_broken+y}
16579 then :
16580 printf %s "(cached) " >&6
16581 else $as_nop
16582 if test "$cross_compiling" = yes
16583 then :
16584 bash_cv_wcwidth_broken=no
16585
16586 else $as_nop
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589
16590 #include <unistd.h>
16591 #include <stdlib.h>
16592 #include <stdio.h>
16593
16594 #include <locale.h>
16595 #include <wchar.h>
16596
16597 int
16598 main(c, v)
16599 int c;
16600 char **v;
16601 {
16602 int w;
16603
16604 setlocale(LC_ALL, "en_US.UTF-8");
16605 w = wcwidth (0x0301);
16606 exit (w == 0); /* exit 0 if wcwidth broken */
16607 }
16608
16609 _ACEOF
16610 if ac_fn_c_try_run "$LINENO"
16611 then :
16612 bash_cv_wcwidth_broken=yes
16613 else $as_nop
16614 bash_cv_wcwidth_broken=no
16615 fi
16616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16617 conftest.$ac_objext conftest.beam conftest.$ac_ext
16618 fi
16619
16620 fi
16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
16622 printf "%s\n" "$bash_cv_wcwidth_broken" >&6; }
16623 if test "$bash_cv_wcwidth_broken" = yes; then
16624
16625 printf "%s\n" "#define WCWIDTH_BROKEN 1" >>confdefs.h
16626
16627 fi
16628
16629 if test "$am_cv_func_iconv" = yes; then
16630 OLDLIBS="$LIBS"
16631 LIBS="$LIBS $LIBINTL $LIBICONV"
16632 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
16633 if test "x$ac_cv_func_locale_charset" = xyes
16634 then :
16635 printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
16636
16637 fi
16638
16639 LIBS="$OLDLIBS"
16640 fi
16641
16642 # The cast to long int works around a bug in the HP C Compiler
16643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16645 # This bug is HP SR number 8606223364.
16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
16647 printf %s "checking size of wchar_t... " >&6; }
16648 if test ${ac_cv_sizeof_wchar_t+y}
16649 then :
16650 printf %s "(cached) " >&6
16651 else $as_nop
16652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
16653 then :
16654
16655 else $as_nop
16656 if test "$ac_cv_type_wchar_t" = yes; then
16657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16658 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16659 as_fn_error 77 "cannot compute sizeof (wchar_t)
16660 See \`config.log' for more details" "$LINENO" 5; }
16661 else
16662 ac_cv_sizeof_wchar_t=0
16663 fi
16664 fi
16665
16666 fi
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
16668 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
16669
16670
16671
16672 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
16673
16674
16675
16676
16677
16678 if test "$opt_static_link" != yes; then
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16680 printf %s "checking for dlopen in -ldl... " >&6; }
16681 if test ${ac_cv_lib_dl_dlopen+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else $as_nop
16685 ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-ldl $LIBS"
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16693 char dlopen ();
16694 int
16695 main (void)
16696 {
16697 return dlopen ();
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 if ac_fn_c_try_link "$LINENO"
16703 then :
16704 ac_cv_lib_dl_dlopen=yes
16705 else $as_nop
16706 ac_cv_lib_dl_dlopen=no
16707 fi
16708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16709 conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16711 fi
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16713 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16714 if test "x$ac_cv_lib_dl_dlopen" = xyes
16715 then :
16716 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
16717
16718 LIBS="-ldl $LIBS"
16719
16720 fi
16721
16722 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16723 if test "x$ac_cv_func_dlopen" = xyes
16724 then :
16725 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
16726
16727 fi
16728 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
16729 if test "x$ac_cv_func_dlclose" = xyes
16730 then :
16731 printf "%s\n" "#define HAVE_DLCLOSE 1" >>confdefs.h
16732
16733 fi
16734 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
16735 if test "x$ac_cv_func_dlsym" = xyes
16736 then :
16737 printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h
16738
16739 fi
16740
16741 fi
16742
16743 if test "$ac_cv_func_inet_aton" != 'yes'; then
16744
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
16746 printf %s "checking for inet_aton... " >&6; }
16747 if test ${bash_cv_func_inet_aton+y}
16748 then :
16749 printf %s "(cached) " >&6
16750 else $as_nop
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753
16754 #include <sys/types.h>
16755 #include <netinet/in.h>
16756 #include <arpa/inet.h>
16757 struct in_addr ap;
16758 int
16759 main (void)
16760 {
16761 inet_aton("127.0.0.1", &ap);
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"
16767 then :
16768 bash_cv_func_inet_aton=yes
16769 else $as_nop
16770 bash_cv_func_inet_aton=no
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16773 conftest$ac_exeext conftest.$ac_ext
16774 fi
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5
16776 printf "%s\n" "$bash_cv_func_inet_aton" >&6; }
16777 if test $bash_cv_func_inet_aton = yes; then
16778 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
16779
16780 else
16781 case " $LIBOBJS " in
16782 *" inet_aton.$ac_objext "* ) ;;
16783 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
16784 ;;
16785 esac
16786
16787 fi
16788
16789 fi
16790
16791 case "$host_os" in
16792 irix4*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5
16793 printf %s "checking for getpwent in -lsun... " >&6; }
16794 if test ${ac_cv_lib_sun_getpwent+y}
16795 then :
16796 printf %s "(cached) " >&6
16797 else $as_nop
16798 ac_check_lib_save_LIBS=$LIBS
16799 LIBS="-lsun $LIBS"
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16806 char getpwent ();
16807 int
16808 main (void)
16809 {
16810 return getpwent ();
16811 ;
16812 return 0;
16813 }
16814 _ACEOF
16815 if ac_fn_c_try_link "$LINENO"
16816 then :
16817 ac_cv_lib_sun_getpwent=yes
16818 else $as_nop
16819 ac_cv_lib_sun_getpwent=no
16820 fi
16821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16822 conftest$ac_exeext conftest.$ac_ext
16823 LIBS=$ac_check_lib_save_LIBS
16824 fi
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5
16826 printf "%s\n" "$ac_cv_lib_sun_getpwent" >&6; }
16827 if test "x$ac_cv_lib_sun_getpwent" = xyes
16828 then :
16829 printf "%s\n" "#define HAVE_LIBSUN 1" >>confdefs.h
16830
16831 LIBS="-lsun $LIBS"
16832
16833 fi
16834 ;;
16835 esac
16836
16837 if test "$ac_cv_func_getpeername" = no; then
16838
16839 if test "X$bash_cv_have_socklib" = "X"; then
16840 _bash_needmsg=
16841 else
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5
16843 printf %s "checking for socket library... " >&6; }
16844 _bash_needmsg=yes
16845 fi
16846 if test ${bash_cv_have_socklib+y}
16847 then :
16848 printf %s "(cached) " >&6
16849 else $as_nop
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5
16851 printf %s "checking for getpeername in -lsocket... " >&6; }
16852 if test ${ac_cv_lib_socket_getpeername+y}
16853 then :
16854 printf %s "(cached) " >&6
16855 else $as_nop
16856 ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lsocket -lnsl $LIBS"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16864 char getpeername ();
16865 int
16866 main (void)
16867 {
16868 return getpeername ();
16869 ;
16870 return 0;
16871 }
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"
16874 then :
16875 ac_cv_lib_socket_getpeername=yes
16876 else $as_nop
16877 ac_cv_lib_socket_getpeername=no
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16880 conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16882 fi
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5
16884 printf "%s\n" "$ac_cv_lib_socket_getpeername" >&6; }
16885 if test "x$ac_cv_lib_socket_getpeername" = xyes
16886 then :
16887 bash_cv_have_socklib=yes
16888 else $as_nop
16889 bash_cv_have_socklib=no
16890 fi
16891
16892 fi
16893
16894 if test "X$_bash_needmsg" = Xyes; then
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5
16896 printf "%s\n" "$bash_cv_have_socklib" >&6; }
16897 _bash_needmsg=
16898 fi
16899 if test $bash_cv_have_socklib = yes; then
16900 # check for libnsl, add it to LIBS if present
16901 if test "X$bash_cv_have_libnsl" = "X"; then
16902 _bash_needmsg=
16903 else
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
16905 printf %s "checking for libnsl... " >&6; }
16906 _bash_needmsg=yes
16907 fi
16908 if test ${bash_cv_have_libnsl+y}
16909 then :
16910 printf %s "(cached) " >&6
16911 else $as_nop
16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
16913 printf %s "checking for t_open in -lnsl... " >&6; }
16914 if test ${ac_cv_lib_nsl_t_open+y}
16915 then :
16916 printf %s "(cached) " >&6
16917 else $as_nop
16918 ac_check_lib_save_LIBS=$LIBS
16919 LIBS="-lnsl $LIBS"
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16922
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16926 char t_open ();
16927 int
16928 main (void)
16929 {
16930 return t_open ();
16931 ;
16932 return 0;
16933 }
16934 _ACEOF
16935 if ac_fn_c_try_link "$LINENO"
16936 then :
16937 ac_cv_lib_nsl_t_open=yes
16938 else $as_nop
16939 ac_cv_lib_nsl_t_open=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16942 conftest$ac_exeext conftest.$ac_ext
16943 LIBS=$ac_check_lib_save_LIBS
16944 fi
16945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
16946 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
16947 if test "x$ac_cv_lib_nsl_t_open" = xyes
16948 then :
16949 bash_cv_have_libnsl=yes
16950 else $as_nop
16951 bash_cv_have_libnsl=no
16952 fi
16953
16954 fi
16955
16956 if test "X$_bash_needmsg" = Xyes; then
16957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5
16958 printf "%s\n" "$bash_cv_have_libnsl" >&6; }
16959 _bash_needmsg=
16960 fi
16961 if test $bash_cv_have_libnsl = yes; then
16962 LIBS="-lsocket -lnsl $LIBS"
16963 else
16964 LIBS="-lsocket $LIBS"
16965 fi
16966 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
16967
16968 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
16969
16970 fi
16971
16972 fi
16973 if test "$ac_cv_func_gethostbyname" = no; then
16974 if test "X$bash_cv_have_gethostbyname" = "X"; then
16975 _bash_needmsg=yes
16976 else
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
16978 printf %s "checking for gethostbyname in socket library... " >&6; }
16979 _bash_needmsg=
16980 fi
16981 if test ${bash_cv_have_gethostbyname+y}
16982 then :
16983 printf %s "(cached) " >&6
16984 else $as_nop
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987
16988 #include <netdb.h>
16989
16990 int
16991 main (void)
16992 {
16993
16994 struct hostent *hp;
16995 hp = gethostbyname("localhost");
16996
16997 ;
16998 return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"
17002 then :
17003 bash_cv_have_gethostbyname=yes
17004 else $as_nop
17005 bash_cv_have_gethostbyname=no
17006
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17009 conftest$ac_exeext conftest.$ac_ext
17010 fi
17011
17012 if test "X$_bash_needmsg" = Xyes; then
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5
17014 printf %s "checking for gethostbyname in socket library... " >&6; }
17015 fi
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5
17017 printf "%s\n" "$bash_cv_have_gethostbyname" >&6; }
17018 if test "$bash_cv_have_gethostbyname" = yes; then
17019 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
17020
17021 fi
17022
17023 fi
17024
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
17026 printf %s "checking type of array argument to getgroups... " >&6; }
17027 if test ${ac_cv_type_getgroups+y}
17028 then :
17029 printf %s "(cached) " >&6
17030 else $as_nop
17031 if test "$cross_compiling" = yes
17032 then :
17033 ac_cv_type_getgroups=cross
17034 else $as_nop
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 /* Thanks to Mike Rendell for this test. */
17038 $ac_includes_default
17039 #define NGID 256
17040 #undef MAX
17041 #define MAX(x, y) ((x) > (y) ? (x) : (y))
17042
17043 int
17044 main (void)
17045 {
17046 gid_t gidset[NGID];
17047 int i, n;
17048 union { gid_t gval; long int lval; } val;
17049
17050 val.lval = -1;
17051 for (i = 0; i < NGID; i++)
17052 gidset[i] = val.gval;
17053 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
17054 gidset);
17055 /* Exit non-zero if getgroups seems to require an array of ints. This
17056 happens when gid_t is short int but getgroups modifies an array
17057 of ints. */
17058 return n > 0 && gidset[n] != val.gval;
17059 }
17060 _ACEOF
17061 if ac_fn_c_try_run "$LINENO"
17062 then :
17063 ac_cv_type_getgroups=gid_t
17064 else $as_nop
17065 ac_cv_type_getgroups=int
17066 fi
17067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17068 conftest.$ac_objext conftest.beam conftest.$ac_ext
17069 fi
17070
17071 if test $ac_cv_type_getgroups = cross; then
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 #include <unistd.h>
17075
17076 _ACEOF
17077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17078 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1
17079 then :
17080 ac_cv_type_getgroups=gid_t
17081 else $as_nop
17082 ac_cv_type_getgroups=int
17083 fi
17084 rm -rf conftest*
17085
17086 fi
17087 fi
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
17089 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
17090
17091 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
17092
17093
17094 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17095 if test "x$ac_cv_type_off_t" = xyes
17096 then :
17097
17098 else $as_nop
17099
17100 printf "%s\n" "#define off_t long int" >>confdefs.h
17101
17102 fi
17103
17104 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17105 if test "x$ac_cv_type_mode_t" = xyes
17106 then :
17107
17108 else $as_nop
17109
17110 printf "%s\n" "#define mode_t int" >>confdefs.h
17111
17112 fi
17113
17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17115 printf %s "checking for uid_t in sys/types.h... " >&6; }
17116 if test ${ac_cv_type_uid_t+y}
17117 then :
17118 printf %s "(cached) " >&6
17119 else $as_nop
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17122 #include <sys/types.h>
17123
17124 _ACEOF
17125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17126 $EGREP "uid_t" >/dev/null 2>&1
17127 then :
17128 ac_cv_type_uid_t=yes
17129 else $as_nop
17130 ac_cv_type_uid_t=no
17131 fi
17132 rm -rf conftest*
17133
17134 fi
17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17136 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
17137 if test $ac_cv_type_uid_t = no; then
17138
17139 printf "%s\n" "#define uid_t int" >>confdefs.h
17140
17141
17142 printf "%s\n" "#define gid_t int" >>confdefs.h
17143
17144 fi
17145
17146
17147 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17148 "
17149 if test "x$ac_cv_type_pid_t" = xyes
17150 then :
17151
17152 else $as_nop
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17155
17156 #if defined _WIN64 && !defined __CYGWIN__
17157 LLP64
17158 #endif
17159
17160 int
17161 main (void)
17162 {
17163
17164 ;
17165 return 0;
17166 }
17167
17168 _ACEOF
17169 if ac_fn_c_try_compile "$LINENO"
17170 then :
17171 ac_pid_type='int'
17172 else $as_nop
17173 ac_pid_type='__int64'
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17176
17177 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17178
17179
17180 fi
17181
17182
17183 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17184 if test "x$ac_cv_type_size_t" = xyes
17185 then :
17186
17187 else $as_nop
17188
17189 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17190
17191 fi
17192
17193
17194 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17195 if test "x$ac_cv_type_uintptr_t" = xyes
17196 then :
17197
17198 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
17199
17200 else $as_nop
17201 for ac_type in 'unsigned int' 'unsigned long int' \
17202 'unsigned long long int'; do
17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 int
17207 main (void)
17208 {
17209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17210 test_array [0] = 0;
17211 return test_array [0];
17212
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"
17218 then :
17219
17220 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
17221
17222 ac_type=
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17225 test -z "$ac_type" && break
17226 done
17227 fi
17228
17229
17230
17231 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17232 if test "x$ac_cv_type_ssize_t" = xyes
17233 then :
17234
17235 else $as_nop
17236
17237 printf "%s\n" "#define ssize_t int" >>confdefs.h
17238
17239 fi
17240
17241 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
17242 if test "x$ac_cv_type_time_t" = xyes
17243 then :
17244
17245 else $as_nop
17246
17247 printf "%s\n" "#define time_t long" >>confdefs.h
17248
17249 fi
17250
17251
17252
17253
17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17255 printf %s "checking for long long int... " >&6; }
17256 if test ${ac_cv_type_long_long_int+y}
17257 then :
17258 printf %s "(cached) " >&6
17259 else $as_nop
17260 ac_cv_type_long_long_int=yes
17261 case $ac_prog_cc_stdc in
17262 no | c89) ;;
17263 *)
17264 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17265 if test $ac_cv_type_long_long_int = yes; then
17266 if test "$cross_compiling" = yes
17267 then :
17268 :
17269 else $as_nop
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 #include <limits.h>
17273 #ifndef LLONG_MAX
17274 # define HALF \
17275 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17276 # define LLONG_MAX (HALF - 1 + HALF)
17277 #endif
17278 int
17279 main (void)
17280 {
17281 long long int n = 1;
17282 int i;
17283 for (i = 0; ; i++)
17284 {
17285 long long int m = n << i;
17286 if (m >> i != n)
17287 return 1;
17288 if (LLONG_MAX / 2 < m)
17289 break;
17290 }
17291 return 0;
17292 ;
17293 return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_run "$LINENO"
17297 then :
17298
17299 else $as_nop
17300 ac_cv_type_long_long_int=no
17301 fi
17302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17303 conftest.$ac_objext conftest.beam conftest.$ac_ext
17304 fi
17305
17306 fi;;
17307 esac
17308 fi
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17310 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
17311 if test $ac_cv_type_long_long_int = yes; then
17312
17313 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17314
17315 fi
17316
17317
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17319 printf %s "checking for unsigned long long int... " >&6; }
17320 if test ${ac_cv_type_unsigned_long_long_int+y}
17321 then :
17322 printf %s "(cached) " >&6
17323 else $as_nop
17324 ac_cv_type_unsigned_long_long_int=yes
17325 case $ac_prog_cc_stdc in
17326 no | c89) ;;
17327 *)
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17330
17331 /* For now, do not test the preprocessor; as of 2007 there are too many
17332 implementations with broken preprocessors. Perhaps this can
17333 be revisited in 2012. In the meantime, code should not expect
17334 #if to work with literals wider than 32 bits. */
17335 /* Test literals. */
17336 long long int ll = 9223372036854775807ll;
17337 long long int nll = -9223372036854775807LL;
17338 unsigned long long int ull = 18446744073709551615ULL;
17339 /* Test constant expressions. */
17340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17341 ? 1 : -1)];
17342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17343 ? 1 : -1)];
17344 int i = 63;
17345 int
17346 main (void)
17347 {
17348 /* Test availability of runtime routines for shift and division. */
17349 long long int llmax = 9223372036854775807ll;
17350 unsigned long long int ullmax = 18446744073709551615ull;
17351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17352 | (llmax / ll) | (llmax % ll)
17353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17354 | (ullmax / ull) | (ullmax % ull));
17355 ;
17356 return 0;
17357 }
17358
17359 _ACEOF
17360 if ac_fn_c_try_link "$LINENO"
17361 then :
17362
17363 else $as_nop
17364 ac_cv_type_unsigned_long_long_int=no
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17367 conftest$ac_exeext conftest.$ac_ext;;
17368 esac
17369 fi
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17371 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
17372 if test $ac_cv_type_unsigned_long_long_int = yes; then
17373
17374 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17375
17376 fi
17377
17378
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
17380 printf %s "checking for sig_atomic_t in signal.h... " >&6; }
17381 if test ${ac_cv_have_sig_atomic_t+y}
17382 then :
17383 printf %s "(cached) " >&6
17384 else $as_nop
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <signal.h>
17388 int
17389 main (void)
17390 {
17391 sig_atomic_t x;
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"
17397 then :
17398 ac_cv_have_sig_atomic_t=yes
17399 else $as_nop
17400 ac_cv_have_sig_atomic_t=no
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17403 conftest$ac_exeext conftest.$ac_ext
17404 fi
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
17406 printf "%s\n" "$ac_cv_have_sig_atomic_t" >&6; }
17407 if test "$ac_cv_have_sig_atomic_t" = "no"
17408 then
17409
17410
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
17412 printf %s "checking for sig_atomic_t... " >&6; }
17413 if test ${bash_cv_type_sig_atomic_t+y}
17414 then :
17415 printf %s "(cached) " >&6
17416 else $as_nop
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <sys/types.h>
17420 #if HAVE_STDLIB_H
17421 #include <stdlib.h>
17422 #endif
17423 #if HAVE_STDDEF_H
17424 #include <stddef.h>
17425 #endif
17426 #if HAVE_INTTYPES_H
17427 #include <inttypes.h>
17428 #endif
17429 #if HAVE_STDINT_H
17430 #include <stdint.h>
17431 #endif
17432 #include <signal.h>
17433
17434 _ACEOF
17435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17436 $EGREP "sig_atomic_t" >/dev/null 2>&1
17437 then :
17438 bash_cv_type_sig_atomic_t=yes
17439 else $as_nop
17440 bash_cv_type_sig_atomic_t=no
17441 fi
17442 rm -rf conftest*
17443
17444 fi
17445
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5
17447 printf "%s\n" "$bash_cv_type_sig_atomic_t" >&6; }
17448
17449 if test $bash_cv_type_sig_atomic_t = no; then
17450 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
17451
17452 fi
17453
17454 fi
17455
17456
17457 # The cast to long int works around a bug in the HP C Compiler
17458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17460 # This bug is HP SR number 8606223364.
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17462 printf %s "checking size of char... " >&6; }
17463 if test ${ac_cv_sizeof_char+y}
17464 then :
17465 printf %s "(cached) " >&6
17466 else $as_nop
17467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
17468 then :
17469
17470 else $as_nop
17471 if test "$ac_cv_type_char" = yes; then
17472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17474 as_fn_error 77 "cannot compute sizeof (char)
17475 See \`config.log' for more details" "$LINENO" 5; }
17476 else
17477 ac_cv_sizeof_char=0
17478 fi
17479 fi
17480
17481 fi
17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17483 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17484
17485
17486
17487 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17488
17489
17490 # The cast to long int works around a bug in the HP C Compiler
17491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17493 # This bug is HP SR number 8606223364.
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17495 printf %s "checking size of short... " >&6; }
17496 if test ${ac_cv_sizeof_short+y}
17497 then :
17498 printf %s "(cached) " >&6
17499 else $as_nop
17500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
17501 then :
17502
17503 else $as_nop
17504 if test "$ac_cv_type_short" = yes; then
17505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17506 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17507 as_fn_error 77 "cannot compute sizeof (short)
17508 See \`config.log' for more details" "$LINENO" 5; }
17509 else
17510 ac_cv_sizeof_short=0
17511 fi
17512 fi
17513
17514 fi
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17516 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17517
17518
17519
17520 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17521
17522
17523 # The cast to long int works around a bug in the HP C Compiler
17524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17526 # This bug is HP SR number 8606223364.
17527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17528 printf %s "checking size of int... " >&6; }
17529 if test ${ac_cv_sizeof_int+y}
17530 then :
17531 printf %s "(cached) " >&6
17532 else $as_nop
17533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17534 then :
17535
17536 else $as_nop
17537 if test "$ac_cv_type_int" = yes; then
17538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17540 as_fn_error 77 "cannot compute sizeof (int)
17541 See \`config.log' for more details" "$LINENO" 5; }
17542 else
17543 ac_cv_sizeof_int=0
17544 fi
17545 fi
17546
17547 fi
17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17549 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17550
17551
17552
17553 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17554
17555
17556 # The cast to long int works around a bug in the HP C Compiler
17557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17559 # This bug is HP SR number 8606223364.
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17561 printf %s "checking size of long... " >&6; }
17562 if test ${ac_cv_sizeof_long+y}
17563 then :
17564 printf %s "(cached) " >&6
17565 else $as_nop
17566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
17567 then :
17568
17569 else $as_nop
17570 if test "$ac_cv_type_long" = yes; then
17571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17572 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17573 as_fn_error 77 "cannot compute sizeof (long)
17574 See \`config.log' for more details" "$LINENO" 5; }
17575 else
17576 ac_cv_sizeof_long=0
17577 fi
17578 fi
17579
17580 fi
17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17582 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17583
17584
17585
17586 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17587
17588
17589 # The cast to long int works around a bug in the HP C Compiler
17590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17592 # This bug is HP SR number 8606223364.
17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
17594 printf %s "checking size of char *... " >&6; }
17595 if test ${ac_cv_sizeof_char_p+y}
17596 then :
17597 printf %s "(cached) " >&6
17598 else $as_nop
17599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
17600 then :
17601
17602 else $as_nop
17603 if test "$ac_cv_type_char_p" = yes; then
17604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17606 as_fn_error 77 "cannot compute sizeof (char *)
17607 See \`config.log' for more details" "$LINENO" 5; }
17608 else
17609 ac_cv_sizeof_char_p=0
17610 fi
17611 fi
17612
17613 fi
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
17615 printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
17616
17617
17618
17619 printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
17620
17621
17622 # The cast to long int works around a bug in the HP C Compiler
17623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17625 # This bug is HP SR number 8606223364.
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17627 printf %s "checking size of size_t... " >&6; }
17628 if test ${ac_cv_sizeof_size_t+y}
17629 then :
17630 printf %s "(cached) " >&6
17631 else $as_nop
17632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
17633 then :
17634
17635 else $as_nop
17636 if test "$ac_cv_type_size_t" = yes; then
17637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17638 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17639 as_fn_error 77 "cannot compute sizeof (size_t)
17640 See \`config.log' for more details" "$LINENO" 5; }
17641 else
17642 ac_cv_sizeof_size_t=0
17643 fi
17644 fi
17645
17646 fi
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17648 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
17649
17650
17651
17652 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
17653
17654
17655 # The cast to long int works around a bug in the HP C Compiler
17656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17658 # This bug is HP SR number 8606223364.
17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17660 printf %s "checking size of double... " >&6; }
17661 if test ${ac_cv_sizeof_double+y}
17662 then :
17663 printf %s "(cached) " >&6
17664 else $as_nop
17665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
17666 then :
17667
17668 else $as_nop
17669 if test "$ac_cv_type_double" = yes; then
17670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17672 as_fn_error 77 "cannot compute sizeof (double)
17673 See \`config.log' for more details" "$LINENO" 5; }
17674 else
17675 ac_cv_sizeof_double=0
17676 fi
17677 fi
17678
17679 fi
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17681 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
17682
17683
17684
17685 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
17686
17687
17688 # The cast to long int works around a bug in the HP C Compiler
17689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17691 # This bug is HP SR number 8606223364.
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17693 printf %s "checking size of long long... " >&6; }
17694 if test ${ac_cv_sizeof_long_long+y}
17695 then :
17696 printf %s "(cached) " >&6
17697 else $as_nop
17698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
17699 then :
17700
17701 else $as_nop
17702 if test "$ac_cv_type_long_long" = yes; then
17703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17705 as_fn_error 77 "cannot compute sizeof (long long)
17706 See \`config.log' for more details" "$LINENO" 5; }
17707 else
17708 ac_cv_sizeof_long_long=0
17709 fi
17710 fi
17711
17712 fi
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17714 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
17715
17716
17717
17718 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
17719
17720
17721
17722 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
17723 if test "x$ac_cv_type_u_int" = xyes
17724 then :
17725
17726 else $as_nop
17727
17728 printf "%s\n" "#define u_int unsigned int" >>confdefs.h
17729
17730 fi
17731
17732 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
17733 if test "x$ac_cv_type_u_long" = xyes
17734 then :
17735
17736 else $as_nop
17737
17738 printf "%s\n" "#define u_long unsigned long" >>confdefs.h
17739
17740 fi
17741
17742
17743
17744 if test "$ac_cv_sizeof_short" = 2; then
17745 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17746 if test "x$ac_cv_type_bits16_t" = xyes
17747 then :
17748
17749 else $as_nop
17750
17751 printf "%s\n" "#define bits16_t short" >>confdefs.h
17752
17753 fi
17754
17755 elif test "$ac_cv_sizeof_char" = 2; then
17756 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17757 if test "x$ac_cv_type_bits16_t" = xyes
17758 then :
17759
17760 else $as_nop
17761
17762 printf "%s\n" "#define bits16_t char" >>confdefs.h
17763
17764 fi
17765
17766 else
17767 ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default"
17768 if test "x$ac_cv_type_bits16_t" = xyes
17769 then :
17770
17771 else $as_nop
17772
17773 printf "%s\n" "#define bits16_t short" >>confdefs.h
17774
17775 fi
17776
17777 fi
17778
17779
17780 if test "$ac_cv_sizeof_short" = 2; then
17781 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17782 if test "x$ac_cv_type_u_bits16_t" = xyes
17783 then :
17784
17785 else $as_nop
17786
17787 printf "%s\n" "#define u_bits16_t unsigned short" >>confdefs.h
17788
17789 fi
17790
17791 elif test "$ac_cv_sizeof_char" = 2; then
17792 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17793 if test "x$ac_cv_type_u_bits16_t" = xyes
17794 then :
17795
17796 else $as_nop
17797
17798 printf "%s\n" "#define u_bits16_t unsigned char" >>confdefs.h
17799
17800 fi
17801
17802 else
17803 ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default"
17804 if test "x$ac_cv_type_u_bits16_t" = xyes
17805 then :
17806
17807 else $as_nop
17808
17809 printf "%s\n" "#define u_bits16_t unsigned short" >>confdefs.h
17810
17811 fi
17812
17813 fi
17814
17815
17816 if test "$ac_cv_sizeof_int" = 4; then
17817 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17818 if test "x$ac_cv_type_bits32_t" = xyes
17819 then :
17820
17821 else $as_nop
17822
17823 printf "%s\n" "#define bits32_t int" >>confdefs.h
17824
17825 fi
17826
17827 elif test "$ac_cv_sizeof_long" = 4; then
17828 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17829 if test "x$ac_cv_type_bits32_t" = xyes
17830 then :
17831
17832 else $as_nop
17833
17834 printf "%s\n" "#define bits32_t long" >>confdefs.h
17835
17836 fi
17837
17838 else
17839 ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default"
17840 if test "x$ac_cv_type_bits32_t" = xyes
17841 then :
17842
17843 else $as_nop
17844
17845 printf "%s\n" "#define bits32_t int" >>confdefs.h
17846
17847 fi
17848
17849 fi
17850
17851
17852 if test "$ac_cv_sizeof_int" = 4; then
17853 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17854 if test "x$ac_cv_type_u_bits32_t" = xyes
17855 then :
17856
17857 else $as_nop
17858
17859 printf "%s\n" "#define u_bits32_t unsigned int" >>confdefs.h
17860
17861 fi
17862
17863 elif test "$ac_cv_sizeof_long" = 4; then
17864 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17865 if test "x$ac_cv_type_u_bits32_t" = xyes
17866 then :
17867
17868 else $as_nop
17869
17870 printf "%s\n" "#define u_bits32_t unsigned long" >>confdefs.h
17871
17872 fi
17873
17874 else
17875 ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default"
17876 if test "x$ac_cv_type_u_bits32_t" = xyes
17877 then :
17878
17879 else $as_nop
17880
17881 printf "%s\n" "#define u_bits32_t unsigned int" >>confdefs.h
17882
17883 fi
17884
17885 fi
17886
17887
17888 if test "$ac_cv_sizeof_char_p" = 8; then
17889 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17890 if test "x$ac_cv_type_bits64_t" = xyes
17891 then :
17892
17893 else $as_nop
17894
17895 printf "%s\n" "#define bits64_t char *" >>confdefs.h
17896
17897 fi
17898
17899 elif test "$ac_cv_sizeof_double" = 8; then
17900 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17901 if test "x$ac_cv_type_bits64_t" = xyes
17902 then :
17903
17904 else $as_nop
17905
17906 printf "%s\n" "#define bits64_t double" >>confdefs.h
17907
17908 fi
17909
17910 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
17911 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17912 if test "x$ac_cv_type_bits64_t" = xyes
17913 then :
17914
17915 else $as_nop
17916
17917 printf "%s\n" "#define bits64_t long long" >>confdefs.h
17918
17919 fi
17920
17921 elif test "$ac_cv_sizeof_long" = 8; then
17922 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17923 if test "x$ac_cv_type_bits64_t" = xyes
17924 then :
17925
17926 else $as_nop
17927
17928 printf "%s\n" "#define bits64_t long" >>confdefs.h
17929
17930 fi
17931
17932 else
17933 ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default"
17934 if test "x$ac_cv_type_bits64_t" = xyes
17935 then :
17936
17937 else $as_nop
17938
17939 printf "%s\n" "#define bits64_t double" >>confdefs.h
17940
17941 fi
17942
17943 fi
17944
17945
17946
17947 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
17948 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17949 if test "x$ac_cv_type_ptrdiff_t" = xyes
17950 then :
17951
17952 else $as_nop
17953
17954 printf "%s\n" "#define ptrdiff_t int" >>confdefs.h
17955
17956 fi
17957
17958 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
17959 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17960 if test "x$ac_cv_type_ptrdiff_t" = xyes
17961 then :
17962
17963 else $as_nop
17964
17965 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
17966
17967 fi
17968
17969 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
17970 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17971 if test "x$ac_cv_type_ptrdiff_t" = xyes
17972 then :
17973
17974 else $as_nop
17975
17976 printf "%s\n" "#define ptrdiff_t long long" >>confdefs.h
17977
17978 fi
17979
17980 else
17981 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17982 if test "x$ac_cv_type_ptrdiff_t" = xyes
17983 then :
17984
17985 else $as_nop
17986
17987 printf "%s\n" "#define ptrdiff_t int" >>confdefs.h
17988
17989 fi
17990
17991 fi
17992
17993
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17995 printf %s "checking whether stat file-mode macros are broken... " >&6; }
17996 if test ${ac_cv_header_stat_broken+y}
17997 then :
17998 printf %s "(cached) " >&6
17999 else $as_nop
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 #include <sys/types.h>
18003 #include <sys/stat.h>
18004
18005 #if defined S_ISBLK && defined S_IFDIR
18006 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18007 #endif
18008
18009 #if defined S_ISBLK && defined S_IFCHR
18010 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18011 #endif
18012
18013 #if defined S_ISLNK && defined S_IFREG
18014 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18015 #endif
18016
18017 #if defined S_ISSOCK && defined S_IFREG
18018 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18019 #endif
18020
18021 _ACEOF
18022 if ac_fn_c_try_compile "$LINENO"
18023 then :
18024 ac_cv_header_stat_broken=no
18025 else $as_nop
18026 ac_cv_header_stat_broken=yes
18027 fi
18028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18029 fi
18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18031 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
18032 if test $ac_cv_header_stat_broken = yes; then
18033
18034 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18035
18036 fi
18037
18038
18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
18040 printf %s "checking whether #! works in shell scripts... " >&6; }
18041 if test ${ac_cv_sys_interpreter+y}
18042 then :
18043 printf %s "(cached) " >&6
18044 else $as_nop
18045 echo '#! /bin/cat
18046 exit 69
18047 ' >conftest
18048 chmod u+x conftest
18049 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
18050 if test $? -ne 69; then
18051 ac_cv_sys_interpreter=yes
18052 else
18053 ac_cv_sys_interpreter=no
18054 fi
18055 rm -f conftest
18056 fi
18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
18058 printf "%s\n" "$ac_cv_sys_interpreter" >&6; }
18059 interpval=$ac_cv_sys_interpreter
18060
18061 if test $ac_cv_sys_interpreter = yes; then
18062 printf "%s\n" "#define HAVE_HASH_BANG_EXEC 1" >>confdefs.h
18063
18064 fi
18065
18066 if test "$ac_cv_func_lstat" = "no"; then
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
18068 printf %s "checking for lstat... " >&6; }
18069 if test ${bash_cv_func_lstat+y}
18070 then :
18071 printf %s "(cached) " >&6
18072 else $as_nop
18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18075
18076 #include <sys/types.h>
18077 #include <sys/stat.h>
18078
18079 int
18080 main (void)
18081 {
18082 lstat(".",(struct stat *)0);
18083 ;
18084 return 0;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_link "$LINENO"
18088 then :
18089 bash_cv_func_lstat=yes
18090 else $as_nop
18091 bash_cv_func_lstat=no
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18094 conftest$ac_exeext conftest.$ac_ext
18095 fi
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
18097 printf "%s\n" "$bash_cv_func_lstat" >&6; }
18098 if test $bash_cv_func_lstat = yes; then
18099 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18100
18101 fi
18102
18103 fi
18104
18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5
18106 printf %s "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
18107 if test ${bash_cv_dup2_broken+y}
18108 then :
18109 printf %s "(cached) " >&6
18110 else $as_nop
18111 if test "$cross_compiling" = yes
18112 then :
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
18114 printf "%s\n" "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
18115 bash_cv_dup2_broken=no
18116
18117 else $as_nop
18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18120
18121 #include <sys/types.h>
18122 #include <fcntl.h>
18123 #include <stdlib.h>
18124 int
18125 main()
18126 {
18127 int fd1, fd2, fl;
18128 fd1 = open("/dev/null", 2);
18129 if (fcntl(fd1, 2, 1) < 0)
18130 exit(1);
18131 fd2 = dup2(fd1, 1);
18132 if (fd2 < 0)
18133 exit(2);
18134 fl = fcntl(fd2, 1, 0);
18135 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
18136 exit(fl != 1);
18137 }
18138
18139 _ACEOF
18140 if ac_fn_c_try_run "$LINENO"
18141 then :
18142 bash_cv_dup2_broken=yes
18143 else $as_nop
18144 bash_cv_dup2_broken=no
18145 fi
18146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18147 conftest.$ac_objext conftest.beam conftest.$ac_ext
18148 fi
18149
18150 fi
18151
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5
18153 printf "%s\n" "$bash_cv_dup2_broken" >&6; }
18154 if test $bash_cv_dup2_broken = yes; then
18155 printf "%s\n" "#define DUP2_BROKEN 1" >>confdefs.h
18156
18157 fi
18158
18159
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5
18161 printf %s "checking whether pgrps need synchronization... " >&6; }
18162 if test ${bash_cv_pgrp_pipe+y}
18163 then :
18164 printf %s "(cached) " >&6
18165 else $as_nop
18166 if test "$cross_compiling" = yes
18167 then :
18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
18169 printf "%s\n" "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
18170 bash_cv_pgrp_pipe=no
18171
18172 else $as_nop
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18175
18176 #ifdef HAVE_UNISTD_H
18177 # include <unistd.h>
18178 #endif
18179 #ifdef HAVE_SYS_WAIT_H
18180 # include <sys/wait.h>
18181 #endif
18182 #include <stdlib.h>
18183 int
18184 main()
18185 {
18186 # ifdef GETPGRP_VOID
18187 # define getpgID() getpgrp()
18188 # else
18189 # define getpgID() getpgrp(0)
18190 # define setpgid(x,y) setpgrp(x,y)
18191 # endif
18192 int pid1, pid2, fds[2];
18193 int status;
18194 char ok;
18195
18196 switch (pid1 = fork()) {
18197 case -1:
18198 exit(1);
18199 case 0:
18200 setpgid(0, getpid());
18201 exit(0);
18202 }
18203 setpgid(pid1, pid1);
18204
18205 sleep(2); /* let first child die */
18206
18207 if (pipe(fds) < 0)
18208 exit(2);
18209
18210 switch (pid2 = fork()) {
18211 case -1:
18212 exit(3);
18213 case 0:
18214 setpgid(0, pid1);
18215 ok = getpgID() == pid1;
18216 write(fds[1], &ok, 1);
18217 exit(0);
18218 }
18219 setpgid(pid2, pid1);
18220
18221 close(fds[1]);
18222 if (read(fds[0], &ok, 1) != 1)
18223 exit(4);
18224 wait(&status);
18225 wait(&status);
18226 exit(ok ? 0 : 5);
18227 }
18228
18229 _ACEOF
18230 if ac_fn_c_try_run "$LINENO"
18231 then :
18232 bash_cv_pgrp_pipe=no
18233 else $as_nop
18234 bash_cv_pgrp_pipe=yes
18235 fi
18236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18237 conftest.$ac_objext conftest.beam conftest.$ac_ext
18238 fi
18239
18240 fi
18241
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5
18243 printf "%s\n" "$bash_cv_pgrp_pipe" >&6; }
18244 if test $bash_cv_pgrp_pipe = yes; then
18245 printf "%s\n" "#define PGRP_PIPE 1" >>confdefs.h
18246
18247 fi
18248
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
18250 printf %s "checking for type of signal functions... " >&6; }
18251 if test ${bash_cv_signal_vintage+y}
18252 then :
18253 printf %s "(cached) " >&6
18254 else $as_nop
18255
18256 if test ${bash_cv_posix_signals+y}
18257 then :
18258 printf %s "(cached) " >&6
18259 else $as_nop
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262
18263 #include <signal.h>
18264
18265 int
18266 main (void)
18267 {
18268
18269 sigset_t ss;
18270 struct sigaction sa;
18271 sigemptyset(&ss); sigsuspend(&ss);
18272 sigaction(SIGINT, &sa, (struct sigaction *) 0);
18273 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
18274
18275 ;
18276 return 0;
18277 }
18278 _ACEOF
18279 if ac_fn_c_try_link "$LINENO"
18280 then :
18281 bash_cv_posix_signals=yes
18282 else $as_nop
18283 bash_cv_posix_signals=no
18284
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18287 conftest$ac_exeext conftest.$ac_ext
18288 fi
18289
18290
18291 if test $bash_cv_posix_signals = yes; then
18292 bash_cv_signal_vintage=posix
18293 else
18294 if test ${bash_cv_bsd_signals+y}
18295 then :
18296 printf %s "(cached) " >&6
18297 else $as_nop
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300
18301 #include <signal.h>
18302
18303 int
18304 main (void)
18305 {
18306
18307 int mask = sigmask(SIGINT);
18308 sigsetmask(mask); sigblock(mask); sigpause(mask);
18309
18310 ;
18311 return 0;
18312 }
18313 _ACEOF
18314 if ac_fn_c_try_link "$LINENO"
18315 then :
18316 bash_cv_bsd_signals=yes
18317 else $as_nop
18318 bash_cv_bsd_signals=no
18319
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18322 conftest$ac_exeext conftest.$ac_ext
18323 fi
18324
18325
18326 if test $bash_cv_bsd_signals = yes; then
18327 bash_cv_signal_vintage=4.2bsd
18328 else
18329 if test ${bash_cv_sysv_signals+y}
18330 then :
18331 printf %s "(cached) " >&6
18332 else $as_nop
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335
18336 #include <signal.h>
18337 void foo() { }
18338
18339 int
18340 main (void)
18341 {
18342
18343 int mask = sigmask(SIGINT);
18344 sigset(SIGINT, foo); sigrelse(SIGINT);
18345 sighold(SIGINT); sigpause(SIGINT);
18346
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"
18352 then :
18353 bash_cv_sysv_signals=yes
18354 else $as_nop
18355 bash_cv_sysv_signals=no
18356
18357 fi
18358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18359 conftest$ac_exeext conftest.$ac_ext
18360 fi
18361
18362
18363 if test $bash_cv_sysv_signals = yes; then
18364 bash_cv_signal_vintage=svr3
18365 else
18366 bash_cv_signal_vintage=v7
18367 fi
18368 fi
18369 fi
18370
18371 fi
18372
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
18374 printf "%s\n" "$bash_cv_signal_vintage" >&6; }
18375 if test "$bash_cv_signal_vintage" = posix; then
18376 printf "%s\n" "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
18377
18378 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
18379 printf "%s\n" "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
18380
18381 elif test "$bash_cv_signal_vintage" = svr3; then
18382 printf "%s\n" "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
18383
18384 fi
18385
18386
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5
18388 printf %s "checking for sys_errlist and sys_nerr... " >&6; }
18389 if test ${bash_cv_sys_errlist+y}
18390 then :
18391 printf %s "(cached) " >&6
18392 else $as_nop
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395
18396 #include <errno.h>
18397
18398 int
18399 main (void)
18400 {
18401
18402 extern char *sys_errlist[];
18403 extern int sys_nerr;
18404 char *msg = sys_errlist[sys_nerr - 1];
18405
18406 ;
18407 return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"
18411 then :
18412 bash_cv_sys_errlist=yes
18413 else $as_nop
18414 bash_cv_sys_errlist=no
18415
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18418 conftest$ac_exeext conftest.$ac_ext
18419 fi
18420
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5
18422 printf "%s\n" "$bash_cv_sys_errlist" >&6; }
18423 if test $bash_cv_sys_errlist = yes; then
18424 printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
18425
18426 fi
18427
18428 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
18429 /* NetBSD declares sys_siglist in unistd.h. */
18430 #ifdef HAVE_UNISTD_H
18431 # include <unistd.h>
18432 #endif
18433
18434 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18435 if test "x$ac_cv_have_decl_sys_siglist" = xyes
18436 then :
18437 ac_have_decl=1
18438 else $as_nop
18439 ac_have_decl=0
18440 fi
18441 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
18442
18443
18444
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5
18446 printf %s "checking for sys_siglist in system C library... " >&6; }
18447 if test ${bash_cv_sys_siglist+y}
18448 then :
18449 printf %s "(cached) " >&6
18450 else $as_nop
18451 if test "$cross_compiling" = yes
18452 then :
18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
18454 printf "%s\n" "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
18455 bash_cv_sys_siglist=no
18456
18457 else $as_nop
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460
18461 #include <sys/types.h>
18462 #include <signal.h>
18463 #ifdef HAVE_UNISTD_H
18464 #include <unistd.h>
18465 #endif
18466 #include <stdlib.h>
18467 #if !HAVE_DECL_SYS_SIGLIST
18468 extern char *sys_siglist[];
18469 #endif
18470 int
18471 main()
18472 {
18473 char *msg = sys_siglist[2];
18474 exit(msg == 0);
18475 }
18476
18477 _ACEOF
18478 if ac_fn_c_try_run "$LINENO"
18479 then :
18480 bash_cv_sys_siglist=yes
18481 else $as_nop
18482 bash_cv_sys_siglist=no
18483 fi
18484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18485 conftest.$ac_objext conftest.beam conftest.$ac_ext
18486 fi
18487
18488 fi
18489
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5
18491 printf "%s\n" "$bash_cv_sys_siglist" >&6; }
18492 if test $bash_cv_sys_siglist = yes; then
18493 printf "%s\n" "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
18494
18495 fi
18496
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5
18498 printf %s "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
18499 if test ${bash_cv_decl_under_sys_siglist+y}
18500 then :
18501 printf %s "(cached) " >&6
18502 else $as_nop
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18505
18506 #include <sys/types.h>
18507 #include <signal.h>
18508 #ifdef HAVE_UNISTD_H
18509 #include <unistd.h>
18510 #endif
18511 int
18512 main (void)
18513 {
18514 char *msg = _sys_siglist[2];
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_compile "$LINENO"
18520 then :
18521 bash_cv_decl_under_sys_siglist=yes
18522 else $as_nop
18523 bash_cv_decl_under_sys_siglist=no
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18526 fi
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5
18528 printf "%s\n" "$bash_cv_decl_under_sys_siglist" >&6; }
18529 if test $bash_cv_decl_under_sys_siglist = yes; then
18530 printf "%s\n" "#define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h
18531
18532 fi
18533
18534
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5
18536 printf %s "checking for _sys_siglist in system C library... " >&6; }
18537 if test ${bash_cv_under_sys_siglist+y}
18538 then :
18539 printf %s "(cached) " >&6
18540 else $as_nop
18541 if test "$cross_compiling" = yes
18542 then :
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
18544 printf "%s\n" "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
18545 bash_cv_under_sys_siglist=no
18546
18547 else $as_nop
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18550
18551 #include <sys/types.h>
18552 #include <signal.h>
18553 #ifdef HAVE_UNISTD_H
18554 #include <unistd.h>
18555 #endif
18556 #include <stdlib.h>
18557 #ifndef UNDER_SYS_SIGLIST_DECLARED
18558 extern char *_sys_siglist[];
18559 #endif
18560 int
18561 main()
18562 {
18563 char *msg = (char *)_sys_siglist[2];
18564 exit(msg == 0);
18565 }
18566
18567 _ACEOF
18568 if ac_fn_c_try_run "$LINENO"
18569 then :
18570 bash_cv_under_sys_siglist=yes
18571 else $as_nop
18572 bash_cv_under_sys_siglist=no
18573 fi
18574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18575 conftest.$ac_objext conftest.beam conftest.$ac_ext
18576 fi
18577
18578 fi
18579
18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5
18581 printf "%s\n" "$bash_cv_under_sys_siglist" >&6; }
18582 if test $bash_cv_under_sys_siglist = yes; then
18583 printf "%s\n" "#define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h
18584
18585 fi
18586
18587
18588
18589
18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
18591 printf %s "checking for clock_t... " >&6; }
18592 if test ${bash_cv_type_clock_t+y}
18593 then :
18594 printf %s "(cached) " >&6
18595 else $as_nop
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 #include <sys/types.h>
18599 #if HAVE_STDLIB_H
18600 #include <stdlib.h>
18601 #endif
18602 #if HAVE_STDDEF_H
18603 #include <stddef.h>
18604 #endif
18605 #if HAVE_INTTYPES_H
18606 #include <inttypes.h>
18607 #endif
18608 #if HAVE_STDINT_H
18609 #include <stdint.h>
18610 #endif
18611 #include <sys/times.h>
18612
18613 _ACEOF
18614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18615 $EGREP "clock_t" >/dev/null 2>&1
18616 then :
18617 bash_cv_type_clock_t=yes
18618 else $as_nop
18619 bash_cv_type_clock_t=no
18620 fi
18621 rm -rf conftest*
18622
18623 fi
18624
18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5
18626 printf "%s\n" "$bash_cv_type_clock_t" >&6; }
18627
18628 if test $bash_cv_type_clock_t = no; then
18629 printf "%s\n" "#define clock_t long" >>confdefs.h
18630
18631 fi
18632
18633
18634
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
18636 printf %s "checking for sigset_t... " >&6; }
18637 if test ${bash_cv_type_sigset_t+y}
18638 then :
18639 printf %s "(cached) " >&6
18640 else $as_nop
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 #include <sys/types.h>
18644 #if HAVE_STDLIB_H
18645 #include <stdlib.h>
18646 #endif
18647 #if HAVE_STDDEF_H
18648 #include <stddef.h>
18649 #endif
18650 #if HAVE_INTTYPES_H
18651 #include <inttypes.h>
18652 #endif
18653 #if HAVE_STDINT_H
18654 #include <stdint.h>
18655 #endif
18656 #include <signal.h>
18657
18658 _ACEOF
18659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18660 $EGREP "sigset_t" >/dev/null 2>&1
18661 then :
18662 bash_cv_type_sigset_t=yes
18663 else $as_nop
18664 bash_cv_type_sigset_t=no
18665 fi
18666 rm -rf conftest*
18667
18668 fi
18669
18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5
18671 printf "%s\n" "$bash_cv_type_sigset_t" >&6; }
18672
18673 if test $bash_cv_type_sigset_t = no; then
18674 printf "%s\n" "#define sigset_t int" >>confdefs.h
18675
18676 fi
18677
18678 if test "$ac_cv_header_sys_socket_h" = "yes"; then
18679
18680
18681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
18682 printf %s "checking for socklen_t... " >&6; }
18683 if test ${bash_cv_type_socklen_t+y}
18684 then :
18685 printf %s "(cached) " >&6
18686 else $as_nop
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689 #include <sys/types.h>
18690 #if HAVE_STDLIB_H
18691 #include <stdlib.h>
18692 #endif
18693 #if HAVE_STDDEF_H
18694 #include <stddef.h>
18695 #endif
18696 #if HAVE_INTTYPES_H
18697 #include <inttypes.h>
18698 #endif
18699 #if HAVE_STDINT_H
18700 #include <stdint.h>
18701 #endif
18702 #include <sys/socket.h>
18703
18704 _ACEOF
18705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18706 $EGREP "socklen_t" >/dev/null 2>&1
18707 then :
18708 bash_cv_type_socklen_t=yes
18709 else $as_nop
18710 bash_cv_type_socklen_t=no
18711 fi
18712 rm -rf conftest*
18713
18714 fi
18715
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5
18717 printf "%s\n" "$bash_cv_type_socklen_t" >&6; }
18718 if test $bash_cv_type_socklen_t = yes; then
18719 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
18720
18721 fi
18722 if test $bash_cv_type_socklen_t = no; then
18723 printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h
18724
18725 fi
18726
18727 fi
18728
18729 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
18730 if test "x$ac_cv_type_quad_t" = xyes
18731 then :
18732 printf "%s\n" "#define HAVE_QUAD_T 1" >>confdefs.h
18733
18734 fi
18735
18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of struct rlimit fields" >&5
18737 printf %s "checking for type of struct rlimit fields... " >&6; }
18738 if test ${bash_cv_type_rlimit+y}
18739 then :
18740 printf %s "(cached) " >&6
18741 else $as_nop
18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18744
18745 #include <sys/types.h>
18746 #include <sys/resource.h>
18747 int
18748 main (void)
18749 {
18750 rlim_t xxx;
18751
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 if ac_fn_c_try_compile "$LINENO"
18757 then :
18758 bash_cv_type_rlimit=rlim_t
18759 else $as_nop
18760
18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of struct rlimit fields" >&5
18762 printf %s "checking for size of struct rlimit fields... " >&6; }
18763 if test ${bash_cv_sizeof_rlim_cur+y}
18764 then :
18765 printf %s "(cached) " >&6
18766 else $as_nop
18767 if test "$cross_compiling" = yes
18768 then :
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check size of rlimit fields if cross compiling -- defaulting to long" >&5
18770 printf "%s\n" "$as_me: WARNING: cannot check size of rlimit fields if cross compiling -- defaulting to long" >&2;}
18771 bash_cv_sizeof_rlim_cur=$ac_cv_sizeof_long
18772
18773 else $as_nop
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776
18777 #ifdef HAVE_SYS_TIME_H
18778 #include <sys/time.h>
18779 #endif
18780 #include <stdlib.h>
18781 #include <sys/resource.h>
18782 main()
18783 {
18784 struct rlimit r;
18785 exit(sizeof (r.rlim_cur));
18786 }
18787
18788 _ACEOF
18789 if ac_fn_c_try_run "$LINENO"
18790 then :
18791 bash_cv_sizeof_rlim_cur=$?
18792 else $as_nop
18793 bash_cv_sizeof_rlim_cur=$?
18794 fi
18795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18796 conftest.$ac_objext conftest.beam conftest.$ac_ext
18797 fi
18798
18799 fi
18800
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sizeof_rlim_cur" >&5
18802 printf "%s\n" "$bash_cv_sizeof_rlim_cur" >&6; }
18803
18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of quad_t" >&5
18805 printf %s "checking for size of quad_t... " >&6; }
18806 if test ${bash_cv_sizeof_quad_t+y}
18807 then :
18808 printf %s "(cached) " >&6
18809 else $as_nop
18810 if test "$cross_compiling" = yes
18811 then :
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check size of quad_t if cross compiling -- defaulting to 0" >&5
18813 printf "%s\n" "$as_me: WARNING: cannot check size of quad_t if cross compiling -- defaulting to 0" >&2;}
18814 bash_cv_sizeof_quad_t=0
18815
18816 else $as_nop
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18819
18820 #include <sys/types.h>
18821 #include <stdlib.h>
18822 #if HAVE_INTTYPES_H
18823 #include <inttypes.h>
18824 #endif
18825 #if HAVE_STDINT_H
18826 #include <stdint.h>
18827 #endif
18828
18829 main()
18830 {
18831 #if HAVE_QUAD_T
18832 quad_t x;
18833 exit(sizeof (x));
18834 #else
18835 exit (0);
18836 #endif
18837 }
18838
18839 _ACEOF
18840 if ac_fn_c_try_run "$LINENO"
18841 then :
18842 bash_cv_sizeof_quad_t=$?
18843 else $as_nop
18844 bash_cv_sizeof_quad_t=$?
18845 fi
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18847 conftest.$ac_objext conftest.beam conftest.$ac_ext
18848 fi
18849
18850 fi
18851
18852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sizeof_quad_t" >&5
18853 printf "%s\n" "$bash_cv_sizeof_quad_t" >&6; }
18854
18855 if test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_long; then
18856 bash_cv_type_rlimit='unsigned long'
18857 elif test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_long_long; then
18858 bash_cv_type_rlimit='unsigned long long'
18859 elif test $bash_cv_sizeof_rlim_cur = $ac_cv_sizeof_int; then
18860 bash_cv_type_rlimit='unsigned int'
18861 elif test $bash_cv_sizeof_rlim_cur = $bash_cv_sizeof_quad_t; then
18862 bash_cv_type_rlimit='quad_t'
18863 else
18864 bash_cv_type_rlimit='unsigned long'
18865 fi
18866
18867
18868 fi
18869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18870 fi
18871
18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5
18873 printf "%s\n" "$bash_cv_type_rlimit" >&6; }
18874 printf "%s\n" "#define RLIMTYPE $bash_cv_type_rlimit" >>confdefs.h
18875
18876
18877
18878
18879
18880 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
18881 if test "x$ac_cv_type_intmax_t" = xyes
18882 then :
18883
18884 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
18885
18886 else $as_nop
18887 test $ac_cv_type_long_long_int = yes \
18888 && ac_type='long long int' \
18889 || ac_type='long int'
18890
18891 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
18892
18893 fi
18894
18895
18896
18897
18898 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
18899 if test "x$ac_cv_type_uintmax_t" = xyes
18900 then :
18901
18902 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
18903
18904 else $as_nop
18905 test $ac_cv_type_unsigned_long_long_int = yes \
18906 && ac_type='unsigned long long int' \
18907 || ac_type='unsigned long int'
18908
18909 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
18910
18911 fi
18912
18913
18914
18915 # The cast to long int works around a bug in the HP C Compiler
18916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18918 # This bug is HP SR number 8606223364.
18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
18920 printf %s "checking size of intmax_t... " >&6; }
18921 if test ${ac_cv_sizeof_intmax_t+y}
18922 then :
18923 printf %s "(cached) " >&6
18924 else $as_nop
18925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"
18926 then :
18927
18928 else $as_nop
18929 if test "$ac_cv_type_intmax_t" = yes; then
18930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18932 as_fn_error 77 "cannot compute sizeof (intmax_t)
18933 See \`config.log' for more details" "$LINENO" 5; }
18934 else
18935 ac_cv_sizeof_intmax_t=0
18936 fi
18937 fi
18938
18939 fi
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
18941 printf "%s\n" "$ac_cv_sizeof_intmax_t" >&6; }
18942
18943
18944
18945 printf "%s\n" "#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t" >>confdefs.h
18946
18947
18948
18949
18950 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
18951 #include <sys/types.h>
18952 #include <termios.h>
18953
18954 "
18955 if test "x$ac_cv_member_struct_termios_c_line" = xyes
18956 then :
18957 printf "%s\n" "#define TERMIOS_LDISC 1" >>confdefs.h
18958
18959 fi
18960
18961
18962
18963 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
18964 #include <sys/types.h>
18965 #include <termio.h>
18966
18967 "
18968 if test "x$ac_cv_member_struct_termio_c_line" = xyes
18969 then :
18970 printf "%s\n" "#define TERMIO_LDISC 1" >>confdefs.h
18971
18972 fi
18973
18974
18975
18976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
18977 printf %s "checking for struct dirent.d_ino... " >&6; }
18978 if test ${bash_cv_dirent_has_d_ino+y}
18979 then :
18980 printf %s "(cached) " >&6
18981 else $as_nop
18982
18983
18984 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "
18985 #include <stdio.h>
18986 #include <sys/types.h>
18987 #ifdef HAVE_UNISTD_H
18988 # include <unistd.h>
18989 #endif /* HAVE_UNISTD_H */
18990 #if defined(HAVE_DIRENT_H)
18991 # include <dirent.h>
18992 #else
18993 # define dirent direct
18994 # ifdef HAVE_SYS_NDIR_H
18995 # include <sys/ndir.h>
18996 # endif /* SYSNDIR */
18997 # ifdef HAVE_SYS_DIR_H
18998 # include <sys/dir.h>
18999 # endif /* SYSDIR */
19000 # ifdef HAVE_NDIR_H
19001 # include <ndir.h>
19002 # endif
19003 #endif /* HAVE_DIRENT_H */
19004
19005 "
19006 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes
19007 then :
19008
19009 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
19010
19011 bash_cv_dirent_has_d_ino=yes
19012 else $as_nop
19013 bash_cv_dirent_has_d_ino=no
19014 fi
19015
19016
19017 fi
19018
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_ino" >&5
19020 printf "%s\n" "$bash_cv_dirent_has_d_ino" >&6; }
19021 if test $bash_cv_dirent_has_d_ino = yes; then
19022 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
19023
19024 fi
19025
19026
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
19028 printf %s "checking for struct dirent.d_fileno... " >&6; }
19029 if test ${bash_cv_dirent_has_d_fileno+y}
19030 then :
19031 printf %s "(cached) " >&6
19032 else $as_nop
19033
19034
19035 ac_fn_c_check_member "$LINENO" "struct dirent" "d_fileno" "ac_cv_member_struct_dirent_d_fileno" "
19036 #include <stdio.h>
19037 #include <sys/types.h>
19038 #ifdef HAVE_UNISTD_H
19039 # include <unistd.h>
19040 #endif /* HAVE_UNISTD_H */
19041 #if defined(HAVE_DIRENT_H)
19042 # include <dirent.h>
19043 #else
19044 # define dirent direct
19045 # ifdef HAVE_SYS_NDIR_H
19046 # include <sys/ndir.h>
19047 # endif /* SYSNDIR */
19048 # ifdef HAVE_SYS_DIR_H
19049 # include <sys/dir.h>
19050 # endif /* SYSDIR */
19051 # ifdef HAVE_NDIR_H
19052 # include <ndir.h>
19053 # endif
19054 #endif /* HAVE_DIRENT_H */
19055
19056 "
19057 if test "x$ac_cv_member_struct_dirent_d_fileno" = xyes
19058 then :
19059
19060 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
19061
19062 bash_cv_dirent_has_d_fileno=yes
19063 else $as_nop
19064 bash_cv_dirent_has_d_fileno=no
19065 fi
19066
19067
19068 fi
19069
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
19071 printf "%s\n" "$bash_cv_dirent_has_d_fileno" >&6; }
19072 if test $bash_cv_dirent_has_d_fileno = yes; then
19073 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
19074
19075 fi
19076
19077
19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5
19079 printf %s "checking for struct dirent.d_namlen... " >&6; }
19080 if test ${bash_cv_dirent_has_d_namlen+y}
19081 then :
19082 printf %s "(cached) " >&6
19083 else $as_nop
19084
19085
19086 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "
19087 #include <stdio.h>
19088 #include <sys/types.h>
19089 #ifdef HAVE_UNISTD_H
19090 # include <unistd.h>
19091 #endif /* HAVE_UNISTD_H */
19092 #if defined(HAVE_DIRENT_H)
19093 # include <dirent.h>
19094 #else
19095 # define dirent direct
19096 # ifdef HAVE_SYS_NDIR_H
19097 # include <sys/ndir.h>
19098 # endif /* SYSNDIR */
19099 # ifdef HAVE_SYS_DIR_H
19100 # include <sys/dir.h>
19101 # endif /* SYSDIR */
19102 # ifdef HAVE_NDIR_H
19103 # include <ndir.h>
19104 # endif
19105 #endif /* HAVE_DIRENT_H */
19106
19107 "
19108 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
19109 then :
19110
19111 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
19112
19113 bash_cv_dirent_has_d_namlen=yes
19114 else $as_nop
19115 bash_cv_dirent_has_d_namlen=no
19116 fi
19117
19118
19119 fi
19120
19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5
19122 printf "%s\n" "$bash_cv_dirent_has_d_namlen" >&6; }
19123 if test $bash_cv_dirent_has_d_namlen = yes; then
19124 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h
19125
19126 fi
19127
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
19129 printf %s "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
19130 if test ${bash_cv_struct_winsize_header+y}
19131 then :
19132 printf %s "(cached) " >&6
19133 else $as_nop
19134
19135 if test ${bash_cv_struct_winsize_ioctl+y}
19136 then :
19137 printf %s "(cached) " >&6
19138 else $as_nop
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19141
19142 #include <sys/types.h>
19143 #include <sys/ioctl.h>
19144
19145 int
19146 main (void)
19147 {
19148
19149 struct winsize x;
19150 if (sizeof (x) > 0) return (0);
19151
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 if ac_fn_c_try_compile "$LINENO"
19157 then :
19158 bash_cv_struct_winsize_ioctl=yes
19159 else $as_nop
19160 bash_cv_struct_winsize_ioctl=no
19161 fi
19162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19163
19164 fi
19165
19166
19167 if test ${bash_cv_struct_winsize_termios+y}
19168 then :
19169 printf %s "(cached) " >&6
19170 else $as_nop
19171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19173
19174 #include <sys/types.h>
19175 #include <sys/termios.h>
19176
19177 int
19178 main (void)
19179 {
19180
19181 struct winsize x;
19182 if (sizeof (x) > 0) return (0);
19183
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 if ac_fn_c_try_compile "$LINENO"
19189 then :
19190 bash_cv_struct_winsize_termios=yes
19191 else $as_nop
19192 bash_cv_struct_winsize_termios=no
19193 fi
19194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19195
19196 fi
19197
19198
19199
19200 if test $bash_cv_struct_winsize_ioctl = yes; then
19201 bash_cv_struct_winsize_header=ioctl_h
19202 elif test $bash_cv_struct_winsize_termios = yes; then
19203 bash_cv_struct_winsize_header=termios_h
19204 else
19205 bash_cv_struct_winsize_header=other
19206 fi
19207
19208 fi
19209
19210 if test $bash_cv_struct_winsize_header = ioctl_h; then
19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
19212 printf "%s\n" "sys/ioctl.h" >&6; }
19213 printf "%s\n" "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
19214
19215 elif test $bash_cv_struct_winsize_header = termios_h; then
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
19217 printf "%s\n" "termios.h" >&6; }
19218 printf "%s\n" "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
19219
19220 else
19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19222 printf "%s\n" "not found" >&6; }
19223 fi
19224
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5
19226 printf %s "checking for struct timeval in sys/time.h and time.h... " >&6; }
19227 if test ${bash_cv_struct_timeval+y}
19228 then :
19229 printf %s "(cached) " >&6
19230 else $as_nop
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 #if HAVE_SYS_TIME_H
19234 #include <sys/time.h>
19235 #endif
19236 #include <time.h>
19237
19238 int
19239 main (void)
19240 {
19241 static struct timeval x; x.tv_sec = x.tv_usec;
19242
19243 ;
19244 return 0;
19245 }
19246 _ACEOF
19247 if ac_fn_c_try_compile "$LINENO"
19248 then :
19249 bash_cv_struct_timeval=yes
19250 else $as_nop
19251 bash_cv_struct_timeval=no
19252 fi
19253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19254
19255 fi
19256
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5
19258 printf "%s\n" "$bash_cv_struct_timeval" >&6; }
19259 if test $bash_cv_struct_timeval = yes; then
19260 printf "%s\n" "#define HAVE_TIMEVAL 1" >>confdefs.h
19261
19262 fi
19263
19264 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
19265 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
19266 then :
19267
19268 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
19269
19270
19271 fi
19272
19273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19274 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19275 if test ${ac_cv_struct_tm+y}
19276 then :
19277 printf %s "(cached) " >&6
19278 else $as_nop
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #include <sys/types.h>
19282 #include <time.h>
19283
19284 int
19285 main (void)
19286 {
19287 struct tm tm;
19288 int *p = &tm.tm_sec;
19289 return !p;
19290 ;
19291 return 0;
19292 }
19293 _ACEOF
19294 if ac_fn_c_try_compile "$LINENO"
19295 then :
19296 ac_cv_struct_tm=time.h
19297 else $as_nop
19298 ac_cv_struct_tm=sys/time.h
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19301 fi
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19303 printf "%s\n" "$ac_cv_struct_tm" >&6; }
19304 if test $ac_cv_struct_tm = sys/time.h; then
19305
19306 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
19307
19308 fi
19309
19310 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19311 #include <$ac_cv_struct_tm>
19312
19313 "
19314 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
19315 then :
19316
19317 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
19318
19319
19320 fi
19321
19322 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19323
19324 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
19325
19326 else
19327 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19328 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19329 if test "x$ac_cv_have_decl_tzname" = xyes
19330 then :
19331 ac_have_decl=1
19332 else $as_nop
19333 ac_have_decl=0
19334 fi
19335 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
19336
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19338 printf %s "checking for tzname... " >&6; }
19339 if test ${ac_cv_var_tzname+y}
19340 then :
19341 printf %s "(cached) " >&6
19342 else $as_nop
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19345 #include <time.h>
19346 #if !HAVE_DECL_TZNAME
19347 extern char *tzname[];
19348 #endif
19349
19350 int
19351 main (void)
19352 {
19353 return tzname[0][0];
19354 ;
19355 return 0;
19356 }
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"
19359 then :
19360 ac_cv_var_tzname=yes
19361 else $as_nop
19362 ac_cv_var_tzname=no
19363 fi
19364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19365 conftest$ac_exeext conftest.$ac_ext
19366 fi
19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19368 printf "%s\n" "$ac_cv_var_tzname" >&6; }
19369 if test $ac_cv_var_tzname = yes; then
19370
19371 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
19372
19373 fi
19374 fi
19375
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5
19377 printf %s "checking for struct timezone in sys/time.h and time.h... " >&6; }
19378 if test ${bash_cv_struct_timezone+y}
19379 then :
19380 printf %s "(cached) " >&6
19381 else $as_nop
19382
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385 #include <sys/time.h>
19386
19387 _ACEOF
19388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19389 $EGREP "struct timezone" >/dev/null 2>&1
19390 then :
19391 bash_cv_struct_timezone=yes
19392 else $as_nop
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395 #include <time.h>
19396
19397 _ACEOF
19398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19399 $EGREP "struct timezone" >/dev/null 2>&1
19400 then :
19401 bash_cv_struct_timezone=yes
19402 else $as_nop
19403 bash_cv_struct_timezone=no
19404 fi
19405 rm -rf conftest*
19406
19407 fi
19408 rm -rf conftest*
19409
19410
19411 fi
19412
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5
19414 printf "%s\n" "$bash_cv_struct_timezone" >&6; }
19415 if test $bash_cv_struct_timezone = yes; then
19416 printf "%s\n" "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
19417
19418 fi
19419
19420
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5
19422 printf %s "checking for offset of exit status in return status from wait... " >&6; }
19423 if test ${bash_cv_wexitstatus_offset+y}
19424 then :
19425 printf %s "(cached) " >&6
19426 else $as_nop
19427 if test "$cross_compiling" = yes
19428 then :
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
19430 printf "%s\n" "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
19431 bash_cv_wexitstatus_offset=0
19432
19433 else $as_nop
19434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19436
19437 #include <stdlib.h>
19438 #include <unistd.h>
19439
19440 #include <sys/wait.h>
19441
19442 int
19443 main(c, v)
19444 int c;
19445 char **v;
19446 {
19447 pid_t pid, p;
19448 int s, i, n;
19449
19450 s = 0;
19451 pid = fork();
19452 if (pid == 0)
19453 exit (42);
19454
19455 /* wait for the process */
19456 p = wait(&s);
19457 if (p != pid)
19458 exit (255);
19459
19460 /* crack s */
19461 for (i = 0; i < (sizeof(s) * 8); i++)
19462 {
19463 n = (s >> i) & 0xff;
19464 if (n == 42)
19465 exit (i);
19466 }
19467
19468 exit (254);
19469 }
19470
19471 _ACEOF
19472 if ac_fn_c_try_run "$LINENO"
19473 then :
19474 bash_cv_wexitstatus_offset=0
19475 else $as_nop
19476 bash_cv_wexitstatus_offset=$?
19477 fi
19478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19479 conftest.$ac_objext conftest.beam conftest.$ac_ext
19480 fi
19481
19482 fi
19483
19484 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5
19486 printf "%s\n" "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
19487 bash_cv_wexitstatus_offset=0
19488 fi
19489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5
19490 printf "%s\n" "$bash_cv_wexitstatus_offset" >&6; }
19491
19492 printf "%s\n" "#define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset" >>confdefs.h
19493
19494
19495
19496
19497
19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19499 printf %s "checking for struct timespec in <time.h>... " >&6; }
19500 if test ${bash_cv_sys_struct_timespec_in_time_h+y}
19501 then :
19502 printf %s "(cached) " >&6
19503 else $as_nop
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <time.h>
19507
19508 int
19509 main (void)
19510 {
19511 static struct timespec x; x.tv_sec = x.tv_nsec;
19512 ;
19513 return 0;
19514 }
19515 _ACEOF
19516 if ac_fn_c_try_compile "$LINENO"
19517 then :
19518 bash_cv_sys_struct_timespec_in_time_h=yes
19519 else $as_nop
19520 bash_cv_sys_struct_timespec_in_time_h=no
19521 fi
19522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19523 fi
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5
19525 printf "%s\n" "$bash_cv_sys_struct_timespec_in_time_h" >&6; }
19526
19527 HAVE_STRUCT_TIMESPEC=0
19528 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19529 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19530 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19531 if test $bash_cv_sys_struct_timespec_in_time_h = yes; then
19532 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19533
19534 printf "%s\n" "#define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19535
19536 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19537 else
19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19539 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
19540 if test ${bash_cv_sys_struct_timespec_in_sys_time_h+y}
19541 then :
19542 printf %s "(cached) " >&6
19543 else $as_nop
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 #include <sys/time.h>
19547
19548 int
19549 main (void)
19550 {
19551 static struct timespec x; x.tv_sec = x.tv_nsec;
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 if ac_fn_c_try_compile "$LINENO"
19557 then :
19558 bash_cv_sys_struct_timespec_in_sys_time_h=yes
19559 else $as_nop
19560 bash_cv_sys_struct_timespec_in_sys_time_h=no
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19563 fi
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5
19565 printf "%s\n" "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19566 if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then
19567 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19568 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19569
19570 printf "%s\n" "#define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19571
19572 else
19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19574 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
19575 if test ${bash_cv_sys_struct_timespec_in_pthread_h+y}
19576 then :
19577 printf %s "(cached) " >&6
19578 else $as_nop
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19581 #include <pthread.h>
19582
19583 int
19584 main (void)
19585 {
19586 static struct timespec x; x.tv_sec = x.tv_nsec;
19587 ;
19588 return 0;
19589 }
19590 _ACEOF
19591 if ac_fn_c_try_compile "$LINENO"
19592 then :
19593 bash_cv_sys_struct_timespec_in_pthread_h=yes
19594 else $as_nop
19595 bash_cv_sys_struct_timespec_in_pthread_h=no
19596 fi
19597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19598 fi
19599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5
19600 printf "%s\n" "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; }
19601 if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then
19602 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19603 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19604
19605 printf "%s\n" "#define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h
19606
19607 fi
19608 fi
19609 fi
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619 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>
19620 #include <sys/stat.h>
19621 "
19622 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
19623 then :
19624
19625 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
19626
19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
19628 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
19629 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
19630 then :
19631 printf %s "(cached) " >&6
19632 else $as_nop
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19635
19636 #include <sys/types.h>
19637 #include <sys/stat.h>
19638 #if HAVE_SYS_TIME_H
19639 # include <sys/time.h>
19640 #endif
19641 #include <time.h>
19642 struct timespec ts;
19643 struct stat st;
19644
19645 int
19646 main (void)
19647 {
19648
19649 st.st_atim = ts;
19650
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_compile "$LINENO"
19656 then :
19657 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
19658 else $as_nop
19659 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
19660 fi
19661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19662 fi
19663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
19664 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
19665 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
19666
19667 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
19668
19669 fi
19670 else $as_nop
19671 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>
19672 #include <sys/stat.h>
19673 "
19674 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
19675 then :
19676
19677 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
19678
19679
19680 else $as_nop
19681 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
19682 #include <sys/stat.h>
19683 "
19684 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
19685 then :
19686
19687 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
19688
19689
19690 else $as_nop
19691 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>
19692 #include <sys/stat.h>
19693 "
19694 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
19695 then :
19696
19697 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
19698
19699
19700 fi
19701
19702 fi
19703
19704 fi
19705
19706 fi
19707
19708
19709
19710
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
19712 printf %s "checking for sbrk... " >&6; }
19713 if test ${ac_cv_func_sbrk+y}
19714 then :
19715 printf %s "(cached) " >&6
19716 else $as_nop
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19719 #include <unistd.h>
19720 int
19721 main (void)
19722 {
19723 void *x = sbrk (4096);
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 if ac_fn_c_try_link "$LINENO"
19729 then :
19730 ac_cv_func_sbrk=yes
19731 else $as_nop
19732 ac_cv_func_sbrk=no
19733 fi
19734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19735 conftest$ac_exeext conftest.$ac_ext
19736 fi
19737
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sbrk" >&5
19739 printf "%s\n" "$ac_cv_func_sbrk" >&6; }
19740 if test X$ac_cv_func_sbrk = Xyes; then
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sbrk" >&5
19742 printf %s "checking for working sbrk... " >&6; }
19743 if test ${bash_cv_func_sbrk+y}
19744 then :
19745 printf %s "(cached) " >&6
19746 else $as_nop
19747 if test "$cross_compiling" = yes
19748 then :
19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working sbrk if cross-compiling" >&5
19750 printf "%s\n" "$as_me: WARNING: cannot check working sbrk if cross-compiling" >&2;}
19751 bash_cv_func_sbrk=yes
19752
19753 else $as_nop
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19756
19757 #include <stdlib.h>
19758 #include <unistd.h>
19759
19760 int
19761 main(int c, char **v)
19762 {
19763 void *x;
19764
19765 x = sbrk (4096);
19766 exit ((x == (void *)-1) ? 1 : 0);
19767 }
19768
19769 _ACEOF
19770 if ac_fn_c_try_run "$LINENO"
19771 then :
19772 bash_cv_func_sbrk=yes
19773 else $as_nop
19774 bash_cv_func_sbrk=no
19775 fi
19776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19777 conftest.$ac_objext conftest.beam conftest.$ac_ext
19778 fi
19779
19780 fi
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sbrk" >&5
19782 printf "%s\n" "$bash_cv_func_sbrk" >&6; }
19783 if test $bash_cv_func_sbrk = no; then
19784 ac_cv_func_sbrk=no
19785 fi
19786 fi
19787 if test $ac_cv_func_sbrk = yes; then
19788
19789 printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h
19790
19791 fi
19792
19793
19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5
19795 printf %s "checking for the existence of strsignal... " >&6; }
19796 if test ${bash_cv_have_strsignal+y}
19797 then :
19798 printf %s "(cached) " >&6
19799 else $as_nop
19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19802 #include <sys/types.h>
19803 #include <signal.h>
19804 #include <string.h>
19805 int
19806 main (void)
19807 {
19808 char *s = (char *)strsignal(2);
19809 ;
19810 return 0;
19811 }
19812 _ACEOF
19813 if ac_fn_c_try_link "$LINENO"
19814 then :
19815 bash_cv_have_strsignal=yes
19816 else $as_nop
19817 bash_cv_have_strsignal=no
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19820 conftest$ac_exeext conftest.$ac_ext
19821 fi
19822
19823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5
19824 printf "%s\n" "$bash_cv_have_strsignal" >&6; }
19825 if test $bash_cv_have_strsignal = yes; then
19826 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
19827
19828 fi
19829
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5
19831 printf %s "checking if opendir() opens non-directories... " >&6; }
19832 if test ${bash_cv_opendir_not_robust+y}
19833 then :
19834 printf %s "(cached) " >&6
19835 else $as_nop
19836 if test "$cross_compiling" = yes
19837 then :
19838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
19839 printf "%s\n" "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
19840 bash_cv_opendir_not_robust=no
19841
19842 else $as_nop
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845
19846 #include <stdio.h>
19847 #include <sys/types.h>
19848 #include <fcntl.h>
19849 #ifdef HAVE_UNISTD_H
19850 # include <unistd.h>
19851 #endif /* HAVE_UNISTD_H */
19852 #ifdef HAVE_SYS_STAT_H
19853 #include <sys/stat.h>
19854 #endif
19855 #if defined(HAVE_DIRENT_H)
19856 # include <dirent.h>
19857 #else
19858 # define dirent direct
19859 # ifdef HAVE_SYS_NDIR_H
19860 # include <sys/ndir.h>
19861 # endif /* SYSNDIR */
19862 # ifdef HAVE_SYS_DIR_H
19863 # include <sys/dir.h>
19864 # endif /* SYSDIR */
19865 # ifdef HAVE_NDIR_H
19866 # include <ndir.h>
19867 # endif
19868 #endif /* HAVE_DIRENT_H */
19869 #include <stdlib.h>
19870 int
19871 main()
19872 {
19873 DIR *dir;
19874 int fd, err;
19875 err = mkdir("bash-aclocal", 0700);
19876 if (err < 0) {
19877 perror("mkdir");
19878 exit(1);
19879 }
19880 unlink("bash-aclocal/not_a_directory");
19881 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
19882 write(fd, "\n", 1);
19883 close(fd);
19884 dir = opendir("bash-aclocal/not_a_directory");
19885 unlink("bash-aclocal/not_a_directory");
19886 rmdir("bash-aclocal");
19887 exit (dir == 0);
19888 }
19889
19890 _ACEOF
19891 if ac_fn_c_try_run "$LINENO"
19892 then :
19893 bash_cv_opendir_not_robust=yes
19894 else $as_nop
19895 bash_cv_opendir_not_robust=no
19896 fi
19897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19898 conftest.$ac_objext conftest.beam conftest.$ac_ext
19899 fi
19900
19901 fi
19902
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5
19904 printf "%s\n" "$bash_cv_opendir_not_robust" >&6; }
19905 if test $bash_cv_opendir_not_robust = yes; then
19906 printf "%s\n" "#define OPENDIR_NOT_ROBUST 1" >>confdefs.h
19907
19908 fi
19909
19910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5
19911 printf %s "checking whether ulimit can substitute for getdtablesize... " >&6; }
19912 if test ${bash_cv_ulimit_maxfds+y}
19913 then :
19914 printf %s "(cached) " >&6
19915 else $as_nop
19916 if test "$cross_compiling" = yes
19917 then :
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
19919 printf "%s\n" "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
19920 bash_cv_ulimit_maxfds=no
19921
19922 else $as_nop
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925
19926 #include <stdlib.h>
19927 #ifdef HAVE_ULIMIT_H
19928 #include <ulimit.h>
19929 #endif
19930 int
19931 main()
19932 {
19933 long maxfds = ulimit(4, 0L);
19934 exit (maxfds == -1L);
19935 }
19936
19937 _ACEOF
19938 if ac_fn_c_try_run "$LINENO"
19939 then :
19940 bash_cv_ulimit_maxfds=yes
19941 else $as_nop
19942 bash_cv_ulimit_maxfds=no
19943 fi
19944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19945 conftest.$ac_objext conftest.beam conftest.$ac_ext
19946 fi
19947
19948 fi
19949
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5
19951 printf "%s\n" "$bash_cv_ulimit_maxfds" >&6; }
19952 if test $bash_cv_ulimit_maxfds = yes; then
19953 printf "%s\n" "#define ULIMIT_MAXFDS 1" >>confdefs.h
19954
19955 fi
19956
19957
19958
19959
19960
19961
19962 ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
19963 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19964 if test "x$ac_cv_have_decl_fpurge" = xyes
19965 then :
19966 ac_have_decl=1
19967 else $as_nop
19968 ac_have_decl=0
19969 fi
19970 printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
19971
19972
19973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5
19974 printf %s "checking to see if getenv can be redefined... " >&6; }
19975 if test ${bash_cv_getenv_redef+y}
19976 then :
19977 printf %s "(cached) " >&6
19978 else $as_nop
19979 if test "$cross_compiling" = yes
19980 then :
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
19982 printf "%s\n" "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
19983 bash_cv_getenv_redef=yes
19984
19985 else $as_nop
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988
19989 #ifdef HAVE_UNISTD_H
19990 # include <unistd.h>
19991 #endif
19992 #include <stdlib.h>
19993 #ifndef __STDC__
19994 # ifndef const
19995 # define const
19996 # endif
19997 #endif
19998 char *
19999 getenv (name)
20000 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
20001 const char *name;
20002 #else
20003 char const *name;
20004 #endif /* !__linux__ && !__bsdi__ && !convex */
20005 {
20006 return "42";
20007 }
20008 int
20009 main()
20010 {
20011 char *s;
20012 /* The next allows this program to run, but does not allow bash to link
20013 when it redefines getenv. I'm not really interested in figuring out
20014 why not. */
20015 #if defined (NeXT)
20016 exit(1);
20017 #endif
20018 s = getenv("ABCDE");
20019 exit(s == 0); /* force optimizer to leave getenv in */
20020 }
20021
20022 _ACEOF
20023 if ac_fn_c_try_run "$LINENO"
20024 then :
20025 bash_cv_getenv_redef=yes
20026 else $as_nop
20027 bash_cv_getenv_redef=no
20028 fi
20029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20030 conftest.$ac_objext conftest.beam conftest.$ac_ext
20031 fi
20032
20033 fi
20034
20035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5
20036 printf "%s\n" "$bash_cv_getenv_redef" >&6; }
20037 if test $bash_cv_getenv_redef = yes; then
20038 printf "%s\n" "#define CAN_REDEFINE_GETENV 1" >>confdefs.h
20039
20040 fi
20041
20042 if test "$ac_cv_func_getcwd" = "yes"; then
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5
20044 printf %s "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
20045 if test ${bash_cv_getcwd_malloc+y}
20046 then :
20047 printf %s "(cached) " >&6
20048 else $as_nop
20049 if test "$cross_compiling" = yes
20050 then :
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
20052 printf "%s\n" "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
20053 bash_cv_getcwd_malloc=no
20054
20055 else $as_nop
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20058
20059 #include <stdio.h>
20060 #ifdef HAVE_UNISTD_H
20061 #include <unistd.h>
20062 #endif
20063 #include <stdlib.h>
20064
20065 int
20066 main()
20067 {
20068 char *xpwd;
20069 xpwd = getcwd(0, 0);
20070 exit (xpwd == 0);
20071 }
20072
20073 _ACEOF
20074 if ac_fn_c_try_run "$LINENO"
20075 then :
20076 bash_cv_getcwd_malloc=yes
20077 else $as_nop
20078 bash_cv_getcwd_malloc=no
20079 fi
20080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20081 conftest.$ac_objext conftest.beam conftest.$ac_ext
20082 fi
20083
20084 fi
20085
20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5
20087 printf "%s\n" "$bash_cv_getcwd_malloc" >&6; }
20088 if test $bash_cv_getcwd_malloc = no; then
20089 printf "%s\n" "#define GETCWD_BROKEN 1" >>confdefs.h
20090
20091 case " $LIBOBJS " in
20092 *" getcwd.$ac_objext "* ) ;;
20093 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
20094 ;;
20095 esac
20096
20097 fi
20098
20099 fi
20100
20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
20102 printf %s "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
20103 if test ${bash_cv_func_sigsetjmp+y}
20104 then :
20105 printf %s "(cached) " >&6
20106 else $as_nop
20107 if test "$cross_compiling" = yes
20108 then :
20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&5
20110 printf "%s\n" "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&2;}
20111 if test "$bash_cv_posix_signals" = "yes" ; then
20112 bash_cv_func_sigsetjmp=present
20113 else
20114 bash_cv_func_sigsetjmp=missing
20115 fi
20116
20117 else $as_nop
20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120
20121 #ifdef HAVE_UNISTD_H
20122 #include <unistd.h>
20123 #endif
20124 #include <sys/types.h>
20125 #include <signal.h>
20126 #include <setjmp.h>
20127 #include <stdlib.h>
20128
20129 int
20130 main()
20131 {
20132 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
20133 exit (1);
20134 #else
20135
20136 int code;
20137 sigset_t set, oset, nset;
20138 sigjmp_buf xx;
20139
20140 /* get the mask */
20141 sigemptyset(&set);
20142 sigemptyset(&oset);
20143
20144 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
20145 /* paranoia -- make sure SIGINT is not blocked */
20146 sigdelset (&oset, SIGINT);
20147 sigprocmask (SIG_SETMASK, &oset, (sigset_t *)NULL);
20148
20149 /* save it */
20150 code = sigsetjmp(xx, 1);
20151 if (code)
20152 {
20153 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &nset);
20154 /* could compare nset to oset here, but we just look for SIGINT */
20155 if (sigismember (&nset, SIGINT))
20156 exit(1);
20157 exit(0);
20158 }
20159
20160 /* change it so that SIGINT is blocked */
20161 sigaddset(&set, SIGINT);
20162 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
20163
20164 /* and siglongjmp */
20165 siglongjmp(xx, 10);
20166 exit(1);
20167 #endif
20168 }
20169
20170 _ACEOF
20171 if ac_fn_c_try_run "$LINENO"
20172 then :
20173 bash_cv_func_sigsetjmp=present
20174 else $as_nop
20175 bash_cv_func_sigsetjmp=missing
20176 fi
20177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20178 conftest.$ac_objext conftest.beam conftest.$ac_ext
20179 fi
20180
20181 fi
20182
20183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
20184 printf "%s\n" "$bash_cv_func_sigsetjmp" >&6; }
20185 if test $bash_cv_func_sigsetjmp = present; then
20186 printf "%s\n" "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
20187
20188 fi
20189
20190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
20191 printf %s "checking whether or not strcoll and strcmp differ... " >&6; }
20192 if test ${bash_cv_func_strcoll_broken+y}
20193 then :
20194 printf %s "(cached) " >&6
20195 else $as_nop
20196 if test "$cross_compiling" = yes
20197 then :
20198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
20199 printf "%s\n" "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
20200 bash_cv_func_strcoll_broken=no
20201
20202 else $as_nop
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20205
20206 #include <stdio.h>
20207 #if defined (HAVE_LOCALE_H)
20208 #include <locale.h>
20209 #endif
20210 #include <string.h>
20211 #include <stdlib.h>
20212
20213 int
20214 main(c, v)
20215 int c;
20216 char *v[];
20217 {
20218 int r1, r2;
20219 char *deflocale, *defcoll;
20220
20221 #ifdef HAVE_SETLOCALE
20222 deflocale = setlocale(LC_ALL, "");
20223 defcoll = setlocale(LC_COLLATE, "");
20224 #endif
20225
20226 #ifdef HAVE_STRCOLL
20227 /* These two values are taken from tests/glob-test. */
20228 r1 = strcoll("abd", "aXd");
20229 #else
20230 r1 = 0;
20231 #endif
20232 r2 = strcmp("abd", "aXd");
20233
20234 /* These two should both be greater than 0. It is permissible for
20235 a system to return different values, as long as the sign is the
20236 same. */
20237
20238 /* Exit with 1 (failure) if these two values are both > 0, since
20239 this tests whether strcoll(3) is broken with respect to strcmp(3)
20240 in the default locale. */
20241 exit (r1 > 0 && r2 > 0);
20242 }
20243
20244 _ACEOF
20245 if ac_fn_c_try_run "$LINENO"
20246 then :
20247 bash_cv_func_strcoll_broken=yes
20248 else $as_nop
20249 bash_cv_func_strcoll_broken=no
20250 fi
20251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20252 conftest.$ac_objext conftest.beam conftest.$ac_ext
20253 fi
20254
20255 fi
20256
20257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
20258 printf "%s\n" "$bash_cv_func_strcoll_broken" >&6; }
20259 if test $bash_cv_func_strcoll_broken = yes; then
20260 printf "%s\n" "#define STRCOLL_BROKEN 1" >>confdefs.h
20261
20262 fi
20263
20264
20265
20266
20267 if test X$ac_cv_func_snprintf = Xyes; then
20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5
20269 printf %s "checking for standard-conformant snprintf... " >&6; }
20270 if test ${bash_cv_func_snprintf+y}
20271 then :
20272 printf %s "(cached) " >&6
20273 else $as_nop
20274 if test "$cross_compiling" = yes
20275 then :
20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5
20277 printf "%s\n" "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
20278 bash_cv_func_snprintf=yes
20279
20280 else $as_nop
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20283
20284 #include <stdio.h>
20285 #include <stdlib.h>
20286
20287 int
20288 main()
20289 {
20290 int n;
20291 n = snprintf (0, 0, "%s", "0123456");
20292 exit(n != 7);
20293 }
20294
20295 _ACEOF
20296 if ac_fn_c_try_run "$LINENO"
20297 then :
20298 bash_cv_func_snprintf=yes
20299 else $as_nop
20300 bash_cv_func_snprintf=no
20301 fi
20302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20303 conftest.$ac_objext conftest.beam conftest.$ac_ext
20304 fi
20305
20306 fi
20307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5
20308 printf "%s\n" "$bash_cv_func_snprintf" >&6; }
20309 if test $bash_cv_func_snprintf = no; then
20310 ac_cv_func_snprintf=no
20311 fi
20312 fi
20313 if test $ac_cv_func_snprintf = no; then
20314
20315 printf "%s\n" "#define HAVE_SNPRINTF 0" >>confdefs.h
20316
20317 fi
20318
20319
20320
20321
20322 if test X$ac_cv_func_vsnprintf = Xyes; then
20323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5
20324 printf %s "checking for standard-conformant vsnprintf... " >&6; }
20325 if test ${bash_cv_func_vsnprintf+y}
20326 then :
20327 printf %s "(cached) " >&6
20328 else $as_nop
20329 if test "$cross_compiling" = yes
20330 then :
20331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
20332 printf "%s\n" "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
20333 bash_cv_func_vsnprintf=yes
20334
20335 else $as_nop
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20338
20339 #if HAVE_STDARG_H
20340 #include <stdarg.h>
20341 #else
20342 #include <varargs.h>
20343 #endif
20344 #include <stdio.h>
20345 #include <stdlib.h>
20346
20347 static int
20348 #if HAVE_STDARG_H
20349 foo(const char *fmt, ...)
20350 #else
20351 foo(format, va_alist)
20352 const char *format;
20353 va_dcl
20354 #endif
20355 {
20356 va_list args;
20357 int n;
20358
20359 #if HAVE_STDARG_H
20360 va_start(args, fmt);
20361 #else
20362 va_start(args);
20363 #endif
20364 n = vsnprintf(0, 0, fmt, args);
20365 va_end (args);
20366 return n;
20367 }
20368
20369 int
20370 main()
20371 {
20372 int n;
20373 n = foo("%s", "0123456");
20374 exit(n != 7);
20375 }
20376
20377 _ACEOF
20378 if ac_fn_c_try_run "$LINENO"
20379 then :
20380 bash_cv_func_vsnprintf=yes
20381 else $as_nop
20382 bash_cv_func_vsnprintf=no
20383 fi
20384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20385 conftest.$ac_objext conftest.beam conftest.$ac_ext
20386 fi
20387
20388 fi
20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5
20390 printf "%s\n" "$bash_cv_func_vsnprintf" >&6; }
20391 if test $bash_cv_func_vsnprintf = no; then
20392 ac_cv_func_vsnprintf=no
20393 fi
20394 fi
20395 if test $ac_cv_func_vsnprintf = no; then
20396
20397 printf "%s\n" "#define HAVE_VSNPRINTF 0" >>confdefs.h
20398
20399 fi
20400
20401
20402
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable strtoimax" >&5
20404 printf %s "checking for usable strtoimax... " >&6; }
20405 if test ${bash_cv_func_strtoimax+y}
20406 then :
20407 printf %s "(cached) " >&6
20408 else $as_nop
20409
20410 HAVE_STRTOIMAX=0 HAVE_DECL_STRTOIMAX=0
20411
20412 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20413 if test "x$ac_cv_func_strtoimax" = xyes
20414 then :
20415 printf "%s\n" "#define HAVE_STRTOIMAX 1" >>confdefs.h
20416
20417 fi
20418
20419 ac_fn_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20420 if test "x$ac_cv_have_decl_strtoimax" = xyes
20421 then :
20422 ac_have_decl=1
20423 else $as_nop
20424 ac_have_decl=0
20425 fi
20426 printf "%s\n" "#define HAVE_DECL_STRTOIMAX $ac_have_decl" >>confdefs.h
20427
20428
20429 if test "$ac_cv_func_strtoimax" = "yes" ; then
20430 HAVE_STRTOIMAX=1
20431 fi
20432 if test "$ac_cv_have_decl_strtoimax" = "yes" ; then
20433 HAVE_DECL_STRTOIMAX=1
20434 fi
20435
20436 if test "$HAVE_STRTOIMAX" = 0 || test "$HAVE_DECL_STRTOIMAX" = 0 ; then
20437 bash_cv_func_strtoimax=no REPLACE_STRTOIMAX=1
20438 else
20439 bash_cv_func_strtoimax=yes
20440 fi
20441
20442 fi
20443
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strtoimax" >&5
20445 printf "%s\n" "$bash_cv_func_strtoimax" >&6; }
20446 if test $bash_cv_func_strtoimax = yes; then
20447 case " $LIBOBJS " in
20448 *" strtoimax.$ac_objext "* ) ;;
20449 *) LIBOBJS="$LIBOBJS strtoimax.$ac_objext"
20450 ;;
20451 esac
20452
20453 fi
20454
20455
20456
20457 if test "$ac_cv_func_putenv" = "yes"; then
20458
20459
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5
20461 printf %s "checking for standard-conformant putenv declaration... " >&6; }
20462 if test ${bash_cv_std_putenv+y}
20463 then :
20464 printf %s "(cached) " >&6
20465 else $as_nop
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20468
20469 #if HAVE_STDLIB_H
20470 #include <stdlib.h>
20471 #endif
20472 #if HAVE_STDDEF_H
20473 #include <stddef.h>
20474 #endif
20475 #ifndef __STDC__
20476 # ifndef const
20477 # define const
20478 # endif
20479 #endif
20480 #ifdef PROTOTYPES
20481 extern int putenv (char *);
20482 #else
20483 extern int putenv ();
20484 #endif
20485
20486 int
20487 main (void)
20488 {
20489 return (putenv == 0);
20490 ;
20491 return 0;
20492 }
20493 _ACEOF
20494 if ac_fn_c_try_link "$LINENO"
20495 then :
20496 bash_cv_std_putenv=yes
20497 else $as_nop
20498 bash_cv_std_putenv=no
20499
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20502 conftest$ac_exeext conftest.$ac_ext
20503 fi
20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5
20505 printf "%s\n" "$bash_cv_std_putenv" >&6; }
20506 if test $bash_cv_std_putenv = yes; then
20507 printf "%s\n" "#define HAVE_STD_PUTENV 1" >>confdefs.h
20508
20509 fi
20510
20511 else
20512 printf "%s\n" "#define HAVE_STD_PUTENV 1" >>confdefs.h
20513
20514 fi
20515 if test "$ac_cv_func_unsetenv" = "yes"; then
20516
20517
20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5
20519 printf %s "checking for standard-conformant unsetenv declaration... " >&6; }
20520 if test ${bash_cv_std_unsetenv+y}
20521 then :
20522 printf %s "(cached) " >&6
20523 else $as_nop
20524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525 /* end confdefs.h. */
20526
20527 #if HAVE_STDLIB_H
20528 #include <stdlib.h>
20529 #endif
20530 #if HAVE_STDDEF_H
20531 #include <stddef.h>
20532 #endif
20533 #ifndef __STDC__
20534 # ifndef const
20535 # define const
20536 # endif
20537 #endif
20538 #ifdef PROTOTYPES
20539 extern int unsetenv (const char *);
20540 #else
20541 extern int unsetenv ();
20542 #endif
20543
20544 int
20545 main (void)
20546 {
20547 return (unsetenv == 0);
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_c_try_link "$LINENO"
20553 then :
20554 bash_cv_std_unsetenv=yes
20555 else $as_nop
20556 bash_cv_std_unsetenv=no
20557
20558 fi
20559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20560 conftest$ac_exeext conftest.$ac_ext
20561 fi
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5
20563 printf "%s\n" "$bash_cv_std_unsetenv" >&6; }
20564 if test $bash_cv_std_unsetenv = yes; then
20565 printf "%s\n" "#define HAVE_STD_UNSETENV 1" >>confdefs.h
20566
20567 fi
20568
20569 else
20570 printf "%s\n" "#define HAVE_STD_UNSETENV 1" >>confdefs.h
20571
20572 fi
20573
20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5
20575 printf %s "checking for printf floating point output in hex notation... " >&6; }
20576 if test ${bash_cv_printf_a_format+y}
20577 then :
20578 printf %s "(cached) " >&6
20579 else $as_nop
20580 if test "$cross_compiling" = yes
20581 then :
20582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
20583 printf "%s\n" "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
20584 bash_cv_printf_a_format=no
20585
20586 else $as_nop
20587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h. */
20589
20590 #include <stdio.h>
20591 #include <string.h>
20592 #include <stdlib.h>
20593
20594 int
20595 main()
20596 {
20597 double y = 0.0;
20598 char abuf[1024];
20599
20600 sprintf(abuf, "%A", y);
20601 exit(strchr(abuf, 'P') == (char *)0);
20602 }
20603
20604 _ACEOF
20605 if ac_fn_c_try_run "$LINENO"
20606 then :
20607 bash_cv_printf_a_format=yes
20608 else $as_nop
20609 bash_cv_printf_a_format=no
20610 fi
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20612 conftest.$ac_objext conftest.beam conftest.$ac_ext
20613 fi
20614
20615 fi
20616
20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5
20618 printf "%s\n" "$bash_cv_printf_a_format" >&6; }
20619 if test $bash_cv_printf_a_format = yes; then
20620 printf "%s\n" "#define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h
20621
20622 fi
20623
20624
20625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fnmatch can be used to check bracket equivalence classes" >&5
20626 printf %s "checking whether fnmatch can be used to check bracket equivalence classes... " >&6; }
20627 if test ${bash_cv_fnmatch_equiv_fallback+y}
20628 then :
20629 printf %s "(cached) " >&6
20630 else $as_nop
20631 if test "$cross_compiling" = yes
20632 then :
20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&5
20634 printf "%s\n" "$as_me: WARNING: cannot check fnmatch if cross compiling -- defaulting to no" >&2;}
20635 bash_cv_fnmatch_equiv_fallback=no
20636
20637 else $as_nop
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640
20641 #include <stdlib.h>
20642 #include <unistd.h>
20643 #include <stdio.h>
20644 #include <fnmatch.h>
20645 #include <locale.h>
20646
20647 char *pattern = "[[=a=]]";
20648
20649 /* char *string = "ä"; */
20650 unsigned char string[4] = { '\xc3', '\xa4', '\0' };
20651
20652 int
20653 main (int c, char **v)
20654 {
20655 setlocale (LC_ALL, "en_US.UTF-8");
20656 if (fnmatch (pattern, (const char *)string, 0) != FNM_NOMATCH)
20657 exit (0);
20658 exit (1);
20659 }
20660
20661 _ACEOF
20662 if ac_fn_c_try_run "$LINENO"
20663 then :
20664 bash_cv_fnmatch_equiv_fallback=yes
20665 else $as_nop
20666 bash_cv_fnmatch_equiv_fallback=no
20667 fi
20668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20669 conftest.$ac_objext conftest.beam conftest.$ac_ext
20670 fi
20671
20672 fi
20673
20674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fnmatch_equiv_fallback" >&5
20675 printf "%s\n" "$bash_cv_fnmatch_equiv_fallback" >&6; }
20676 if test "$bash_cv_fnmatch_equiv_fallback" = "yes" ; then
20677 bash_cv_fnmatch_equiv_value=1
20678 else
20679 bash_cv_fnmatch_equiv_value=0
20680 fi
20681
20682 printf "%s\n" "#define FNMATCH_EQUIV_FALLBACK $bash_cv_fnmatch_equiv_value" >>confdefs.h
20683
20684
20685
20686
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
20688 printf %s "checking if signal handlers must be reinstalled when invoked... " >&6; }
20689 if test ${bash_cv_must_reinstall_sighandlers+y}
20690 then :
20691 printf %s "(cached) " >&6
20692 else $as_nop
20693 if test "$cross_compiling" = yes
20694 then :
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
20696 printf "%s\n" "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
20697 bash_cv_must_reinstall_sighandlers=no
20698
20699 else $as_nop
20700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701 /* end confdefs.h. */
20702
20703 #include <signal.h>
20704 #ifdef HAVE_UNISTD_H
20705 #include <unistd.h>
20706 #endif
20707 #include <stdlib.h>
20708
20709 typedef void sigfunc();
20710
20711 volatile int nsigint;
20712
20713 #ifdef HAVE_POSIX_SIGNALS
20714 sigfunc *
20715 set_signal_handler(sig, handler)
20716 int sig;
20717 sigfunc *handler;
20718 {
20719 struct sigaction act, oact;
20720 act.sa_handler = handler;
20721 act.sa_flags = 0;
20722 sigemptyset (&act.sa_mask);
20723 sigemptyset (&oact.sa_mask);
20724 sigaction (sig, &act, &oact);
20725 return (oact.sa_handler);
20726 }
20727 #else
20728 #define set_signal_handler(s, h) signal(s, h)
20729 #endif
20730
20731 void
20732 sigint(s)
20733 int s;
20734 {
20735 nsigint++;
20736 }
20737
20738 int
20739 main()
20740 {
20741 nsigint = 0;
20742 set_signal_handler(SIGINT, sigint);
20743 kill((int)getpid(), SIGINT);
20744 kill((int)getpid(), SIGINT);
20745 exit(nsigint != 2);
20746 }
20747
20748 _ACEOF
20749 if ac_fn_c_try_run "$LINENO"
20750 then :
20751 bash_cv_must_reinstall_sighandlers=no
20752 else $as_nop
20753 bash_cv_must_reinstall_sighandlers=yes
20754 fi
20755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20756 conftest.$ac_objext conftest.beam conftest.$ac_ext
20757 fi
20758
20759 fi
20760
20761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
20762 printf "%s\n" "$bash_cv_must_reinstall_sighandlers" >&6; }
20763 if test $bash_cv_must_reinstall_sighandlers = yes; then
20764 printf "%s\n" "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
20765
20766 fi
20767
20768
20769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5
20770 printf %s "checking for presence of necessary job control definitions... " >&6; }
20771 if test ${bash_cv_job_control_missing+y}
20772 then :
20773 printf %s "(cached) " >&6
20774 else $as_nop
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20777
20778 #include <sys/types.h>
20779 #ifdef HAVE_SYS_WAIT_H
20780 #include <sys/wait.h>
20781 #endif
20782 #ifdef HAVE_UNISTD_H
20783 #include <unistd.h>
20784 #endif
20785 #include <signal.h>
20786
20787 /* add more tests in here as appropriate */
20788
20789 /* signal type */
20790 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
20791 #error
20792 #endif
20793
20794 /* signals and tty control. */
20795 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
20796 #error
20797 #endif
20798
20799 /* process control */
20800 #if !defined (WNOHANG) || !defined (WUNTRACED)
20801 #error
20802 #endif
20803
20804 /* Posix systems have tcgetpgrp and waitpid. */
20805 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
20806 #error
20807 #endif
20808
20809 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
20810 #error
20811 #endif
20812
20813 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
20814 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
20815 #error
20816 #endif
20817
20818
20819 int
20820 main (void)
20821 {
20822 int x;
20823 ;
20824 return 0;
20825 }
20826 _ACEOF
20827 if ac_fn_c_try_compile "$LINENO"
20828 then :
20829 bash_cv_job_control_missing=present
20830 else $as_nop
20831 bash_cv_job_control_missing=missing
20832
20833 fi
20834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20835 fi
20836
20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5
20838 printf "%s\n" "$bash_cv_job_control_missing" >&6; }
20839 if test $bash_cv_job_control_missing = missing; then
20840 printf "%s\n" "#define JOB_CONTROL_MISSING 1" >>confdefs.h
20841
20842 fi
20843
20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5
20845 printf %s "checking for presence of named pipes... " >&6; }
20846 if test ${bash_cv_sys_named_pipes+y}
20847 then :
20848 printf %s "(cached) " >&6
20849 else $as_nop
20850 if test "$cross_compiling" = yes
20851 then :
20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
20853 printf "%s\n" "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
20854 bash_cv_sys_named_pipes=missing
20855
20856 else $as_nop
20857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20858 /* end confdefs.h. */
20859
20860 #include <sys/types.h>
20861 #include <sys/stat.h>
20862 #ifdef HAVE_UNISTD_H
20863 #include <unistd.h>
20864 #endif
20865 #include <stdio.h>
20866 #include <stdlib.h>
20867
20868 /* Add more tests in here as appropriate. */
20869 int
20870 main()
20871 {
20872 int fd, err;
20873
20874 #if defined (HAVE_MKFIFO)
20875 exit (0);
20876 #endif
20877
20878 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
20879 exit (1);
20880 #endif
20881
20882 #if defined (NeXT)
20883 exit (1);
20884 #endif
20885 err = mkdir("bash-aclocal", 0700);
20886 if (err < 0) {
20887 perror ("mkdir");
20888 exit(1);
20889 }
20890 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
20891 if (fd == -1) {
20892 rmdir ("bash-aclocal");
20893 exit (1);
20894 }
20895 close(fd);
20896 unlink ("bash-aclocal/sh-np-autoconf");
20897 rmdir ("bash-aclocal");
20898 exit(0);
20899 }
20900
20901 _ACEOF
20902 if ac_fn_c_try_run "$LINENO"
20903 then :
20904 bash_cv_sys_named_pipes=present
20905 else $as_nop
20906 bash_cv_sys_named_pipes=missing
20907 fi
20908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20909 conftest.$ac_objext conftest.beam conftest.$ac_ext
20910 fi
20911
20912 fi
20913
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5
20915 printf "%s\n" "$bash_cv_sys_named_pipes" >&6; }
20916 if test $bash_cv_sys_named_pipes = missing; then
20917 printf "%s\n" "#define NAMED_PIPES_MISSING 1" >>confdefs.h
20918
20919 fi
20920
20921
20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
20923 printf %s "checking whether termios.h defines TIOCGWINSZ... " >&6; }
20924 if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y}
20925 then :
20926 printf %s "(cached) " >&6
20927 else $as_nop
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20929 /* end confdefs.h. */
20930 #include <sys/types.h>
20931 #include <termios.h>
20932 #ifdef TIOCGWINSZ
20933 yes
20934 #endif
20935
20936 _ACEOF
20937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20938 $EGREP "yes" >/dev/null 2>&1
20939 then :
20940 ac_cv_sys_tiocgwinsz_in_termios_h=yes
20941 else $as_nop
20942 ac_cv_sys_tiocgwinsz_in_termios_h=no
20943 fi
20944 rm -rf conftest*
20945
20946 fi
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
20948 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
20949
20950 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
20951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
20952 printf %s "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
20953 if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y}
20954 then :
20955 printf %s "(cached) " >&6
20956 else $as_nop
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20959 #include <sys/types.h>
20960 #include <sys/ioctl.h>
20961 #ifdef TIOCGWINSZ
20962 yes
20963 #endif
20964
20965 _ACEOF
20966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20967 $EGREP "yes" >/dev/null 2>&1
20968 then :
20969 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
20970 else $as_nop
20971 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
20972 fi
20973 rm -rf conftest*
20974
20975 fi
20976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
20977 printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
20978
20979 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
20980
20981 printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
20982
20983 fi
20984 fi
20985
20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
20987 printf %s "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
20988 if test ${bash_cv_tiocstat_in_ioctl+y}
20989 then :
20990 printf %s "(cached) " >&6
20991 else $as_nop
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20994
20995 #include <sys/types.h>
20996 #include <sys/ioctl.h>
20997 int
20998 main (void)
20999 {
21000 int x = TIOCSTAT;
21001 ;
21002 return 0;
21003 }
21004 _ACEOF
21005 if ac_fn_c_try_compile "$LINENO"
21006 then :
21007 bash_cv_tiocstat_in_ioctl=yes
21008 else $as_nop
21009 bash_cv_tiocstat_in_ioctl=no
21010
21011 fi
21012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21013 fi
21014
21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
21016 printf "%s\n" "$bash_cv_tiocstat_in_ioctl" >&6; }
21017 if test $bash_cv_tiocstat_in_ioctl = yes; then
21018 printf "%s\n" "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
21019
21020 fi
21021
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
21023 printf %s "checking for FIONREAD in sys/ioctl.h... " >&6; }
21024 if test ${bash_cv_fionread_in_ioctl+y}
21025 then :
21026 printf %s "(cached) " >&6
21027 else $as_nop
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030
21031 #include <sys/types.h>
21032 #include <sys/ioctl.h>
21033 int
21034 main (void)
21035 {
21036 int x = FIONREAD;
21037 ;
21038 return 0;
21039 }
21040 _ACEOF
21041 if ac_fn_c_try_compile "$LINENO"
21042 then :
21043 bash_cv_fionread_in_ioctl=yes
21044 else $as_nop
21045 bash_cv_fionread_in_ioctl=no
21046
21047 fi
21048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21049 fi
21050
21051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
21052 printf "%s\n" "$bash_cv_fionread_in_ioctl" >&6; }
21053 if test $bash_cv_fionread_in_ioctl = yes; then
21054 printf "%s\n" "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
21055
21056 fi
21057
21058
21059
21060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
21061 printf %s "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
21062 if test ${bash_cv_wcontinued_broken+y}
21063 then :
21064 printf %s "(cached) " >&6
21065 else $as_nop
21066 if test "$cross_compiling" = yes
21067 then :
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
21069 printf "%s\n" "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
21070 bash_cv_wcontinued_broken=no
21071
21072 else $as_nop
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21075
21076 #include <sys/types.h>
21077 #include <sys/wait.h>
21078 #include <unistd.h>
21079 #include <errno.h>
21080 #include <stdlib.h>
21081
21082 #ifndef errno
21083 extern int errno;
21084 #endif
21085 int
21086 main()
21087 {
21088 int x;
21089
21090 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
21091 if (x == -1 && errno == EINVAL)
21092 exit (1);
21093 else
21094 exit (0);
21095 }
21096
21097 _ACEOF
21098 if ac_fn_c_try_run "$LINENO"
21099 then :
21100 bash_cv_wcontinued_broken=no
21101 else $as_nop
21102 bash_cv_wcontinued_broken=yes
21103 fi
21104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21105 conftest.$ac_objext conftest.beam conftest.$ac_ext
21106 fi
21107
21108 fi
21109
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5
21111 printf "%s\n" "$bash_cv_wcontinued_broken" >&6; }
21112 if test $bash_cv_wcontinued_broken = yes; then
21113 printf "%s\n" "#define WCONTINUED_BROKEN 1" >>confdefs.h
21114
21115 fi
21116
21117
21118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
21119 printf %s "checking for speed_t in sys/types.h... " >&6; }
21120 if test ${bash_cv_speed_t_in_sys_types+y}
21121 then :
21122 printf %s "(cached) " >&6
21123 else $as_nop
21124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21126 #include <sys/types.h>
21127 int
21128 main (void)
21129 {
21130 speed_t x;
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 if ac_fn_c_try_compile "$LINENO"
21136 then :
21137 bash_cv_speed_t_in_sys_types=yes
21138 else $as_nop
21139 bash_cv_speed_t_in_sys_types=no
21140 fi
21141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21142 fi
21143
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
21145 printf "%s\n" "$bash_cv_speed_t_in_sys_types" >&6; }
21146 if test $bash_cv_speed_t_in_sys_types = yes; then
21147 printf "%s\n" "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
21148
21149 fi
21150
21151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
21152 printf %s "checking whether getpw functions are declared in pwd.h... " >&6; }
21153 if test ${bash_cv_getpw_declared+y}
21154 then :
21155 printf %s "(cached) " >&6
21156 else $as_nop
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21159
21160 #include <sys/types.h>
21161 #ifdef HAVE_UNISTD_H
21162 # include <unistd.h>
21163 #endif
21164 #include <pwd.h>
21165
21166 _ACEOF
21167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21168 $EGREP "getpwuid" >/dev/null 2>&1
21169 then :
21170 bash_cv_getpw_declared=yes
21171 else $as_nop
21172 bash_cv_getpw_declared=no
21173 fi
21174 rm -rf conftest*
21175
21176 fi
21177
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
21179 printf "%s\n" "$bash_cv_getpw_declared" >&6; }
21180 if test $bash_cv_getpw_declared = yes; then
21181 printf "%s\n" "#define HAVE_GETPW_DECLS 1" >>confdefs.h
21182
21183 fi
21184
21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5
21186 printf %s "checking for unusable real-time signals due to large values... " >&6; }
21187 if test ${bash_cv_unusable_rtsigs+y}
21188 then :
21189 printf %s "(cached) " >&6
21190 else $as_nop
21191 if test "$cross_compiling" = yes
21192 then :
21193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
21194 printf "%s\n" "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
21195 bash_cv_unusable_rtsigs=yes
21196
21197 else $as_nop
21198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21199 /* end confdefs.h. */
21200
21201 #include <sys/types.h>
21202 #include <signal.h>
21203 #include <stdlib.h>
21204
21205 #ifndef NSIG
21206 # define NSIG 64
21207 #endif
21208
21209 int
21210 main ()
21211 {
21212 int n_sigs = 2 * NSIG;
21213 #ifdef SIGRTMIN
21214 int rtmin = SIGRTMIN;
21215 #else
21216 int rtmin = 0;
21217 #endif
21218
21219 exit(rtmin < n_sigs);
21220 }
21221
21222 _ACEOF
21223 if ac_fn_c_try_run "$LINENO"
21224 then :
21225 bash_cv_unusable_rtsigs=yes
21226 else $as_nop
21227 bash_cv_unusable_rtsigs=no
21228 fi
21229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21230 conftest.$ac_objext conftest.beam conftest.$ac_ext
21231 fi
21232
21233 fi
21234
21235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5
21236 printf "%s\n" "$bash_cv_unusable_rtsigs" >&6; }
21237 if test $bash_cv_unusable_rtsigs = yes; then
21238 printf "%s\n" "#define UNUSABLE_RT_SIGNALS 1" >>confdefs.h
21239
21240 fi
21241
21242
21243
21244
21245
21246 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
21247 SIGLIST_O=siglist.o
21248 else
21249 SIGLIST_O=
21250 fi
21251
21252
21253
21254 case "$host_os" in
21255 hpux*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
21256 printf %s "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
21257 if test ${bash_cv_kernel_rlimit+y}
21258 then :
21259 printf %s "(cached) " >&6
21260 else $as_nop
21261 if test ${bash_cv_rlimit+y}
21262 then :
21263 printf %s "(cached) " >&6
21264 else $as_nop
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267
21268 #include <sys/types.h>
21269 #include <sys/resource.h>
21270
21271 int
21272 main (void)
21273 {
21274
21275 int f;
21276 f = RLIMIT_DATA;
21277
21278 ;
21279 return 0;
21280 }
21281 _ACEOF
21282 if ac_fn_c_try_compile "$LINENO"
21283 then :
21284 bash_cv_rlimit=yes
21285 else $as_nop
21286 bash_cv_rlimit=no
21287
21288 fi
21289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21290 fi
21291
21292
21293 if test $bash_cv_rlimit = no; then
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21296
21297 #include <sys/types.h>
21298 #define _KERNEL
21299 #include <sys/resource.h>
21300 #undef _KERNEL
21301
21302 int
21303 main (void)
21304 {
21305
21306 int f;
21307 f = RLIMIT_DATA;
21308
21309 ;
21310 return 0;
21311 }
21312 _ACEOF
21313 if ac_fn_c_try_compile "$LINENO"
21314 then :
21315 bash_cv_kernel_rlimit=yes
21316 else $as_nop
21317 bash_cv_kernel_rlimit=no
21318 fi
21319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21320 fi
21321
21322 fi
21323
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
21325 printf "%s\n" "$bash_cv_kernel_rlimit" >&6; }
21326 if test $bash_cv_kernel_rlimit = yes; then
21327 printf "%s\n" "#define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h
21328
21329 fi
21330 ;;
21331 esac
21332
21333 if test "$opt_readline" = yes; then
21334 case "$host_os" in
21335 aix*) prefer_curses=yes ;;
21336 esac
21337
21338 if test "X$bash_cv_termcap_lib" = "X"; then
21339 _bash_needmsg=yes
21340 else
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
21342 printf %s "checking which library has the termcap functions... " >&6; }
21343 _bash_needmsg=
21344 fi
21345 if test ${bash_cv_termcap_lib+y}
21346 then :
21347 printf %s "(cached) " >&6
21348 else $as_nop
21349 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
21350 if test "x$ac_cv_func_tgetent" = xyes
21351 then :
21352 bash_cv_termcap_lib=libc
21353 else $as_nop
21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21355 printf %s "checking for tgetent in -ltermcap... " >&6; }
21356 if test ${ac_cv_lib_termcap_tgetent+y}
21357 then :
21358 printf %s "(cached) " >&6
21359 else $as_nop
21360 ac_check_lib_save_LIBS=$LIBS
21361 LIBS="-ltermcap $LIBS"
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21364
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21368 char tgetent ();
21369 int
21370 main (void)
21371 {
21372 return tgetent ();
21373 ;
21374 return 0;
21375 }
21376 _ACEOF
21377 if ac_fn_c_try_link "$LINENO"
21378 then :
21379 ac_cv_lib_termcap_tgetent=yes
21380 else $as_nop
21381 ac_cv_lib_termcap_tgetent=no
21382 fi
21383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21384 conftest$ac_exeext conftest.$ac_ext
21385 LIBS=$ac_check_lib_save_LIBS
21386 fi
21387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21388 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
21389 if test "x$ac_cv_lib_termcap_tgetent" = xyes
21390 then :
21391 bash_cv_termcap_lib=libtermcap
21392 else $as_nop
21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21394 printf %s "checking for tgetent in -ltinfo... " >&6; }
21395 if test ${ac_cv_lib_tinfo_tgetent+y}
21396 then :
21397 printf %s "(cached) " >&6
21398 else $as_nop
21399 ac_check_lib_save_LIBS=$LIBS
21400 LIBS="-ltinfo $LIBS"
21401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h. */
21403
21404 /* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21407 char tgetent ();
21408 int
21409 main (void)
21410 {
21411 return tgetent ();
21412 ;
21413 return 0;
21414 }
21415 _ACEOF
21416 if ac_fn_c_try_link "$LINENO"
21417 then :
21418 ac_cv_lib_tinfo_tgetent=yes
21419 else $as_nop
21420 ac_cv_lib_tinfo_tgetent=no
21421 fi
21422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21423 conftest$ac_exeext conftest.$ac_ext
21424 LIBS=$ac_check_lib_save_LIBS
21425 fi
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21427 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
21428 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
21429 then :
21430 bash_cv_termcap_lib=libtinfo
21431 else $as_nop
21432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21433 printf %s "checking for tgetent in -lcurses... " >&6; }
21434 if test ${ac_cv_lib_curses_tgetent+y}
21435 then :
21436 printf %s "(cached) " >&6
21437 else $as_nop
21438 ac_check_lib_save_LIBS=$LIBS
21439 LIBS="-lcurses $LIBS"
21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21442
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446 char tgetent ();
21447 int
21448 main (void)
21449 {
21450 return tgetent ();
21451 ;
21452 return 0;
21453 }
21454 _ACEOF
21455 if ac_fn_c_try_link "$LINENO"
21456 then :
21457 ac_cv_lib_curses_tgetent=yes
21458 else $as_nop
21459 ac_cv_lib_curses_tgetent=no
21460 fi
21461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21462 conftest$ac_exeext conftest.$ac_ext
21463 LIBS=$ac_check_lib_save_LIBS
21464 fi
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21466 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
21467 if test "x$ac_cv_lib_curses_tgetent" = xyes
21468 then :
21469 bash_cv_termcap_lib=libcurses
21470 else $as_nop
21471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21472 printf %s "checking for tgetent in -lncurses... " >&6; }
21473 if test ${ac_cv_lib_ncurses_tgetent+y}
21474 then :
21475 printf %s "(cached) " >&6
21476 else $as_nop
21477 ac_check_lib_save_LIBS=$LIBS
21478 LIBS="-lncurses $LIBS"
21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21481
21482 /* Override any GCC internal prototype to avoid an error.
21483 Use char because int might match the return type of a GCC
21484 builtin and then its argument prototype would still apply. */
21485 char tgetent ();
21486 int
21487 main (void)
21488 {
21489 return tgetent ();
21490 ;
21491 return 0;
21492 }
21493 _ACEOF
21494 if ac_fn_c_try_link "$LINENO"
21495 then :
21496 ac_cv_lib_ncurses_tgetent=yes
21497 else $as_nop
21498 ac_cv_lib_ncurses_tgetent=no
21499 fi
21500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21501 conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21503 fi
21504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21505 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
21506 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
21507 then :
21508 bash_cv_termcap_lib=libncurses
21509 else $as_nop
21510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
21511 printf %s "checking for tgetent in -lncursesw... " >&6; }
21512 if test ${ac_cv_lib_ncursesw_tgetent+y}
21513 then :
21514 printf %s "(cached) " >&6
21515 else $as_nop
21516 ac_check_lib_save_LIBS=$LIBS
21517 LIBS="-lncursesw $LIBS"
21518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21520
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21524 char tgetent ();
21525 int
21526 main (void)
21527 {
21528 return tgetent ();
21529 ;
21530 return 0;
21531 }
21532 _ACEOF
21533 if ac_fn_c_try_link "$LINENO"
21534 then :
21535 ac_cv_lib_ncursesw_tgetent=yes
21536 else $as_nop
21537 ac_cv_lib_ncursesw_tgetent=no
21538 fi
21539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21540 conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21542 fi
21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
21544 printf "%s\n" "$ac_cv_lib_ncursesw_tgetent" >&6; }
21545 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes
21546 then :
21547 bash_cv_termcap_lib=libncursesw
21548 else $as_nop
21549 bash_cv_termcap_lib=gnutermcap
21550 fi
21551
21552 fi
21553
21554 fi
21555
21556 fi
21557
21558 fi
21559
21560 fi
21561
21562 fi
21563
21564 if test "X$_bash_needmsg" = "Xyes"; then
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
21566 printf %s "checking which library has the termcap functions... " >&6; }
21567 fi
21568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
21569 printf "%s\n" "using $bash_cv_termcap_lib" >&6; }
21570 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
21571 LDFLAGS="$LDFLAGS -L./lib/termcap"
21572 TERMCAP_LIB="./lib/termcap/libtermcap.a"
21573 TERMCAP_DEP="./lib/termcap/libtermcap.a"
21574 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
21575 TERMCAP_LIB=-ltermcap
21576 TERMCAP_DEP=
21577 elif test $bash_cv_termcap_lib = libtinfo; then
21578 TERMCAP_LIB=-ltinfo
21579 TERMCAP_DEP=
21580 elif test $bash_cv_termcap_lib = libncurses; then
21581 TERMCAP_LIB=-lncurses
21582 TERMCAP_DEP=
21583 elif test $bash_cv_termcap_lib = libc; then
21584 TERMCAP_LIB=
21585 TERMCAP_DEP=
21586 else
21587 # we assume ncurses is installed somewhere the linker can find it
21588 TERMCAP_LIB=-lncurses
21589 TERMCAP_DEP=
21590 fi
21591
21592 fi
21593
21594
21595
21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5
21597 printf %s "checking whether /dev/fd is available... " >&6; }
21598 if test ${bash_cv_dev_fd+y}
21599 then :
21600 printf %s "(cached) " >&6
21601 else $as_nop
21602 bash_cv_dev_fd=""
21603 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
21604 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
21605 if (exec test -r /dev/fd/3 3</dev/null) ; then
21606 bash_cv_dev_fd=standard
21607 else
21608 bash_cv_dev_fd=absent
21609 fi
21610 fi
21611 if test -z "$bash_cv_dev_fd" ; then
21612 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
21613 bash_cv_dev_fd=whacky
21614 else
21615 bash_cv_dev_fd=absent
21616 fi
21617 fi
21618
21619 fi
21620
21621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5
21622 printf "%s\n" "$bash_cv_dev_fd" >&6; }
21623 if test $bash_cv_dev_fd = "standard"; then
21624 printf "%s\n" "#define HAVE_DEV_FD 1" >>confdefs.h
21625
21626 printf "%s\n" "#define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h
21627
21628 elif test $bash_cv_dev_fd = "whacky"; then
21629 printf "%s\n" "#define HAVE_DEV_FD 1" >>confdefs.h
21630
21631 printf "%s\n" "#define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h
21632
21633 fi
21634
21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5
21636 printf %s "checking whether /dev/stdin stdout stderr are available... " >&6; }
21637 if test ${bash_cv_dev_stdin+y}
21638 then :
21639 printf %s "(cached) " >&6
21640 else $as_nop
21641 if (exec test -r /dev/stdin < /dev/null) ; then
21642 bash_cv_dev_stdin=present
21643 else
21644 bash_cv_dev_stdin=absent
21645 fi
21646
21647 fi
21648
21649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5
21650 printf "%s\n" "$bash_cv_dev_stdin" >&6; }
21651 if test $bash_cv_dev_stdin = "present"; then
21652 printf "%s\n" "#define HAVE_DEV_STDIN 1" >>confdefs.h
21653
21654 fi
21655
21656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5
21657 printf %s "checking for default mail directory... " >&6; }
21658 if test ${bash_cv_mail_dir+y}
21659 then :
21660 printf %s "(cached) " >&6
21661 else $as_nop
21662 if test -d /var/mail; then
21663 bash_cv_mail_dir=/var/mail
21664 elif test -d /var/spool/mail; then
21665 bash_cv_mail_dir=/var/spool/mail
21666 elif test -d /usr/mail; then
21667 bash_cv_mail_dir=/usr/mail
21668 elif test -d /usr/spool/mail; then
21669 bash_cv_mail_dir=/usr/spool/mail
21670 else
21671 bash_cv_mail_dir=unknown
21672 fi
21673
21674 fi
21675
21676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5
21677 printf "%s\n" "$bash_cv_mail_dir" >&6; }
21678 printf "%s\n" "#define DEFAULT_MAIL_DIRECTORY \"$bash_cv_mail_dir\"" >>confdefs.h
21679
21680
21681
21682 if test "$bash_cv_job_control_missing" = missing; then
21683 opt_job_control=no
21684 fi
21685
21686 if test "$opt_job_control" = yes; then
21687 printf "%s\n" "#define JOB_CONTROL 1" >>confdefs.h
21688
21689 JOBS_O=jobs.o
21690 else
21691 JOBS_O=nojobs.o
21692 fi
21693
21694
21695
21696
21697 LOCAL_DEFS=-DSHELL
21698
21699
21700 case "${host_os}" in
21701 sysv4.2*) printf "%s\n" "#define SVR4_2 1" >>confdefs.h
21702
21703 printf "%s\n" "#define SVR4 1" >>confdefs.h
21704 ;;
21705 sysv4*) printf "%s\n" "#define SVR4 1" >>confdefs.h
21706 ;;
21707 sysv5*) printf "%s\n" "#define SVR5 1" >>confdefs.h
21708 ;;
21709 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
21710 hpux*) LOCAL_CFLAGS="-DHPUX -DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
21711 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
21712 isc*) LOCAL_CFLAGS=-Disc386 ;;
21713 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
21714 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
21715 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
21716 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
21717 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
21718 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
21719 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
21720 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
21721 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
21722 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
21723 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
21724 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
21725 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
21726 case "`uname -r`" in
21727 1.*|2.[0123]*) : ;;
21728 *) printf "%s\n" "#define PGRP_PIPE 1" >>confdefs.h
21729 ;;
21730 esac ;;
21731 netbsd*|openbsd*) LOCAL_CFLAGS="-DDEV_FD_STAT_BROKEN" ;;
21732 freebsd*|midnightbsd*) LOCAL_CFLAGS='-DHEREDOC_PIPESIZE=4096' ;;
21733 *qnx[67]*) LOCAL_LIBS="-lncurses" ;;
21734 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
21735 powerux*) LOCAL_LIBS="-lgen" ;;
21736 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
21737 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;;
21738 *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;;
21739 esac
21740
21741 case "${host_os}-${CC}" in
21742 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
21743 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
21744 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
21745 bsdi5*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
21746 hpux11*-gcc*) LOCAL_LDFLAGS="-Wl,-E" ;; # allow dynamic loading
21747 esac
21748
21749 case "${host_os}" in
21750 freebsd[3-9]*)
21751 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
21752 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
21753 fi ;;
21754 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
21755 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
21756 midnightbsd*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
21757 esac
21758
21759 case "$host_cpu" in
21760 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
21761 esac
21762
21763 case "$host_cpu-$host_os" in
21764 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
21765 esac
21766
21767 case "$host_cpu-$host_vendor-$host_os" in
21768 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
21769 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
21770 esac
21771
21772 # turn off paren warnings in gcc
21773 #CFLAGS="$CFLAGS ${STYLE_CFLAGS}"
21774
21775 #
21776 # Shared object configuration section. These values are generated by
21777 # ${srcdir}/support/shobj-conf
21778 #
21779 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
21780 then
21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
21782 printf %s "checking shared object configuration for loadable builtins... " >&6; }
21783 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
21784
21785
21786
21787
21788
21789
21790
21791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
21792 printf "%s\n" "$SHOBJ_STATUS" >&6; }
21793 else
21794 SHOBJ_STATUS=unsupported
21795
21796 fi
21797
21798 # try to create a directory tree if the source is elsewhere
21799 # this should be packaged into a script accessible via ${srcdir}/support
21800 case "$srcdir" in
21801 .) ;;
21802 *) for d in doc tests support lib examples; do # dirs
21803 test -d $d || mkdir $d
21804 done
21805 for ld in readline glob tilde malloc sh termcap; do # libdirs
21806 test -d lib/$ld || mkdir lib/$ld
21807 done
21808 test -d examples/loadables || mkdir examples/loadables # loadable builtins
21809 test -d examples/loadables/perl || mkdir examples/loadables/perl
21810 ;;
21811 esac
21812
21813 BUILD_DIR=`pwd`
21814 case "$BUILD_DIR" in
21815 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
21816 *) ;;
21817 esac
21818
21819 if test -z "$localedir"; then
21820 localedir='${datarootdir}/locale'
21821 fi
21822 if test -z "$datarootdir"; then
21823 datarootdir='${prefix}/share'
21824 fi
21825
21826
21827
21828
21829
21830
21831 # Some versions of autoconf don't substitute these automatically
21832
21833
21834
21835 # directory where we install dynamically loadable builtins
21836 if test -z "$loadablesdir"; then
21837 loadablesdir='${libdir}/bash'
21838 fi
21839
21840 if test -z "$headersdir"; then
21841 headersdir='$(includedir)/$(PACKAGE_NAME)'
21842 fi
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863 #AC_SUBST(ALLOCA_SOURCE)
21864 #AC_SUBST(ALLOCA_OBJECT)
21865
21866 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/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/Makefile.inc examples/loadables/Makefile.sample examples/loadables/perl/Makefile support/bash.pc support/bashbug.sh"
21867
21868
21869 ac_config_commands="$ac_config_commands stamp-h"
21870
21871
21872 cat >confcache <<\_ACEOF
21873 # This file is a shell script that caches the results of configure
21874 # tests run on this system so they can be shared between configure
21875 # scripts and configure runs, see configure's option --config-cache.
21876 # It is not useful on other systems. If it contains results you don't
21877 # want to keep, you may remove or edit it.
21878 #
21879 # config.status only pays attention to the cache file if you give it
21880 # the --recheck option to rerun configure.
21881 #
21882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21884 # following values.
21885
21886 _ACEOF
21887
21888 # The following way of writing the cache mishandles newlines in values,
21889 # but we know of no workaround that is simple, portable, and efficient.
21890 # So, we kill variables containing newlines.
21891 # Ultrix sh set writes to stderr and can't be redirected directly,
21892 # and sets the high bit in the cache file unless we assign to the vars.
21893 (
21894 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21895 eval ac_val=\$$ac_var
21896 case $ac_val in #(
21897 *${as_nl}*)
21898 case $ac_var in #(
21899 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21900 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21901 esac
21902 case $ac_var in #(
21903 _ | IFS | as_nl) ;; #(
21904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21905 *) { eval $ac_var=; unset $ac_var;} ;;
21906 esac ;;
21907 esac
21908 done
21909
21910 (set) 2>&1 |
21911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21912 *${as_nl}ac_space=\ *)
21913 # `set' does not quote correctly, so add quotes: double-quote
21914 # substitution turns \\\\ into \\, and sed turns \\ into \.
21915 sed -n \
21916 "s/'/'\\\\''/g;
21917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21918 ;; #(
21919 *)
21920 # `set' quotes correctly as required by POSIX, so do not add quotes.
21921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21922 ;;
21923 esac |
21924 sort
21925 ) |
21926 sed '
21927 /^ac_cv_env_/b end
21928 t clear
21929 :clear
21930 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21931 t end
21932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21933 :end' >>confcache
21934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21935 if test -w "$cache_file"; then
21936 if test "x$cache_file" != "x/dev/null"; then
21937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21938 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21939 if test ! -f "$cache_file" || test -h "$cache_file"; then
21940 cat confcache >"$cache_file"
21941 else
21942 case $cache_file in #(
21943 */* | ?:*)
21944 mv -f confcache "$cache_file"$$ &&
21945 mv -f "$cache_file"$$ "$cache_file" ;; #(
21946 *)
21947 mv -f confcache "$cache_file" ;;
21948 esac
21949 fi
21950 fi
21951 else
21952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21953 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21954 fi
21955 fi
21956 rm -f confcache
21957
21958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21959 # Let make expand exec_prefix.
21960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21961
21962 DEFS=-DHAVE_CONFIG_H
21963
21964 ac_libobjs=
21965 ac_ltlibobjs=
21966 U=
21967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21968 # 1. Remove the extension, and $U if already installed.
21969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21970 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21972 # will be set to the directory where LIBOBJS objects are built.
21973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21975 done
21976 LIBOBJS=$ac_libobjs
21977
21978 LTLIBOBJS=$ac_ltlibobjs
21979
21980
21981
21982
21983 : "${CONFIG_STATUS=./config.status}"
21984 ac_write_fail=0
21985 ac_clean_files_save=$ac_clean_files
21986 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21988 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21989 as_write_fail=0
21990 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21991 #! $SHELL
21992 # Generated by $as_me.
21993 # Run this file to recreate the current configuration.
21994 # Compiler output produced by configure, useful for debugging
21995 # configure, is in config.log if it exists.
21996
21997 debug=false
21998 ac_cs_recheck=false
21999 ac_cs_silent=false
22000
22001 SHELL=\${CONFIG_SHELL-$SHELL}
22002 export SHELL
22003 _ASEOF
22004 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22005 ## -------------------- ##
22006 ## M4sh Initialization. ##
22007 ## -------------------- ##
22008
22009 # Be more Bourne compatible
22010 DUALCASE=1; export DUALCASE # for MKS sh
22011 as_nop=:
22012 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22013 then :
22014 emulate sh
22015 NULLCMD=:
22016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22017 # is contrary to our usage. Disable this feature.
22018 alias -g '${1+"$@"}'='"$@"'
22019 setopt NO_GLOB_SUBST
22020 else $as_nop
22021 case `(set -o) 2>/dev/null` in #(
22022 *posix*) :
22023 set -o posix ;; #(
22024 *) :
22025 ;;
22026 esac
22027 fi
22028
22029
22030
22031 # Reset variables that may have inherited troublesome values from
22032 # the environment.
22033
22034 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22035 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22036 # side effect of setting IFS to empty, thus disabling word splitting.)
22037 # Quoting is to prevent editors from complaining about space-tab.
22038 as_nl='
22039 '
22040 export as_nl
22041 IFS=" "" $as_nl"
22042
22043 PS1='$ '
22044 PS2='> '
22045 PS4='+ '
22046
22047 # Ensure predictable behavior from utilities with locale-dependent output.
22048 LC_ALL=C
22049 export LC_ALL
22050 LANGUAGE=C
22051 export LANGUAGE
22052
22053 # We cannot yet rely on "unset" to work, but we need these variables
22054 # to be unset--not just set to an empty or harmless value--now, to
22055 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22056 # also avoids known problems related to "unset" and subshell syntax
22057 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22058 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22059 do eval test \${$as_var+y} \
22060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22061 done
22062
22063 # Ensure that fds 0, 1, and 2 are open.
22064 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22065 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22066 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22067
22068 # The user is always right.
22069 if ${PATH_SEPARATOR+false} :; then
22070 PATH_SEPARATOR=:
22071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22072 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22073 PATH_SEPARATOR=';'
22074 }
22075 fi
22076
22077
22078 # Find who we are. Look in the path if we contain no directory separator.
22079 as_myself=
22080 case $0 in #((
22081 *[\\/]* ) as_myself=$0 ;;
22082 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22083 for as_dir in $PATH
22084 do
22085 IFS=$as_save_IFS
22086 case $as_dir in #(((
22087 '') as_dir=./ ;;
22088 */) ;;
22089 *) as_dir=$as_dir/ ;;
22090 esac
22091 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22092 done
22093 IFS=$as_save_IFS
22094
22095 ;;
22096 esac
22097 # We did not find ourselves, most probably we were run as `sh COMMAND'
22098 # in which case we are not to be found in the path.
22099 if test "x$as_myself" = x; then
22100 as_myself=$0
22101 fi
22102 if test ! -f "$as_myself"; then
22103 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22104 exit 1
22105 fi
22106
22107
22108
22109 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22110 # ----------------------------------------
22111 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22112 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22113 # script with STATUS, using 1 if that was 0.
22114 as_fn_error ()
22115 {
22116 as_status=$1; test $as_status -eq 0 && as_status=1
22117 if test "$4"; then
22118 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22120 fi
22121 printf "%s\n" "$as_me: error: $2" >&2
22122 as_fn_exit $as_status
22123 } # as_fn_error
22124
22125
22126
22127 # as_fn_set_status STATUS
22128 # -----------------------
22129 # Set $? to STATUS, without forking.
22130 as_fn_set_status ()
22131 {
22132 return $1
22133 } # as_fn_set_status
22134
22135 # as_fn_exit STATUS
22136 # -----------------
22137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22138 as_fn_exit ()
22139 {
22140 set +e
22141 as_fn_set_status $1
22142 exit $1
22143 } # as_fn_exit
22144
22145 # as_fn_unset VAR
22146 # ---------------
22147 # Portably unset VAR.
22148 as_fn_unset ()
22149 {
22150 { eval $1=; unset $1;}
22151 }
22152 as_unset=as_fn_unset
22153
22154 # as_fn_append VAR VALUE
22155 # ----------------------
22156 # Append the text in VALUE to the end of the definition contained in VAR. Take
22157 # advantage of any shell optimizations that allow amortized linear growth over
22158 # repeated appends, instead of the typical quadratic growth present in naive
22159 # implementations.
22160 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22161 then :
22162 eval 'as_fn_append ()
22163 {
22164 eval $1+=\$2
22165 }'
22166 else $as_nop
22167 as_fn_append ()
22168 {
22169 eval $1=\$$1\$2
22170 }
22171 fi # as_fn_append
22172
22173 # as_fn_arith ARG...
22174 # ------------------
22175 # Perform arithmetic evaluation on the ARGs, and store the result in the
22176 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22177 # must be portable across $(()) and expr.
22178 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22179 then :
22180 eval 'as_fn_arith ()
22181 {
22182 as_val=$(( $* ))
22183 }'
22184 else $as_nop
22185 as_fn_arith ()
22186 {
22187 as_val=`expr "$@" || test $? -eq 1`
22188 }
22189 fi # as_fn_arith
22190
22191
22192 if expr a : '\(a\)' >/dev/null 2>&1 &&
22193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22194 as_expr=expr
22195 else
22196 as_expr=false
22197 fi
22198
22199 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22200 as_basename=basename
22201 else
22202 as_basename=false
22203 fi
22204
22205 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22206 as_dirname=dirname
22207 else
22208 as_dirname=false
22209 fi
22210
22211 as_me=`$as_basename -- "$0" ||
22212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22213 X"$0" : 'X\(//\)$' \| \
22214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22215 printf "%s\n" X/"$0" |
22216 sed '/^.*\/\([^/][^/]*\)\/*$/{
22217 s//\1/
22218 q
22219 }
22220 /^X\/\(\/\/\)$/{
22221 s//\1/
22222 q
22223 }
22224 /^X\/\(\/\).*/{
22225 s//\1/
22226 q
22227 }
22228 s/.*/./; q'`
22229
22230 # Avoid depending upon Character Ranges.
22231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22234 as_cr_digits='0123456789'
22235 as_cr_alnum=$as_cr_Letters$as_cr_digits
22236
22237
22238 # Determine whether it's possible to make 'echo' print without a newline.
22239 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22240 # for compatibility with existing Makefiles.
22241 ECHO_C= ECHO_N= ECHO_T=
22242 case `echo -n x` in #(((((
22243 -n*)
22244 case `echo 'xy\c'` in
22245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22246 xy) ECHO_C='\c';;
22247 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22248 ECHO_T=' ';;
22249 esac;;
22250 *)
22251 ECHO_N='-n';;
22252 esac
22253
22254 # For backward compatibility with old third-party macros, we provide
22255 # the shell variables $as_echo and $as_echo_n. New code should use
22256 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22257 as_echo='printf %s\n'
22258 as_echo_n='printf %s'
22259
22260 rm -f conf$$ conf$$.exe conf$$.file
22261 if test -d conf$$.dir; then
22262 rm -f conf$$.dir/conf$$.file
22263 else
22264 rm -f conf$$.dir
22265 mkdir conf$$.dir 2>/dev/null
22266 fi
22267 if (echo >conf$$.file) 2>/dev/null; then
22268 if ln -s conf$$.file conf$$ 2>/dev/null; then
22269 as_ln_s='ln -s'
22270 # ... but there are two gotchas:
22271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22273 # In both cases, we have to default to `cp -pR'.
22274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22275 as_ln_s='cp -pR'
22276 elif ln conf$$.file conf$$ 2>/dev/null; then
22277 as_ln_s=ln
22278 else
22279 as_ln_s='cp -pR'
22280 fi
22281 else
22282 as_ln_s='cp -pR'
22283 fi
22284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22285 rmdir conf$$.dir 2>/dev/null
22286
22287
22288 # as_fn_mkdir_p
22289 # -------------
22290 # Create "$as_dir" as a directory, including parents if necessary.
22291 as_fn_mkdir_p ()
22292 {
22293
22294 case $as_dir in #(
22295 -*) as_dir=./$as_dir;;
22296 esac
22297 test -d "$as_dir" || eval $as_mkdir_p || {
22298 as_dirs=
22299 while :; do
22300 case $as_dir in #(
22301 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22302 *) as_qdir=$as_dir;;
22303 esac
22304 as_dirs="'$as_qdir' $as_dirs"
22305 as_dir=`$as_dirname -- "$as_dir" ||
22306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22307 X"$as_dir" : 'X\(//\)[^/]' \| \
22308 X"$as_dir" : 'X\(//\)$' \| \
22309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22310 printf "%s\n" X"$as_dir" |
22311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22312 s//\1/
22313 q
22314 }
22315 /^X\(\/\/\)[^/].*/{
22316 s//\1/
22317 q
22318 }
22319 /^X\(\/\/\)$/{
22320 s//\1/
22321 q
22322 }
22323 /^X\(\/\).*/{
22324 s//\1/
22325 q
22326 }
22327 s/.*/./; q'`
22328 test -d "$as_dir" && break
22329 done
22330 test -z "$as_dirs" || eval "mkdir $as_dirs"
22331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22332
22333
22334 } # as_fn_mkdir_p
22335 if mkdir -p . 2>/dev/null; then
22336 as_mkdir_p='mkdir -p "$as_dir"'
22337 else
22338 test -d ./-p && rmdir ./-p
22339 as_mkdir_p=false
22340 fi
22341
22342
22343 # as_fn_executable_p FILE
22344 # -----------------------
22345 # Test if FILE is an executable regular file.
22346 as_fn_executable_p ()
22347 {
22348 test -f "$1" && test -x "$1"
22349 } # as_fn_executable_p
22350 as_test_x='test -x'
22351 as_executable_p=as_fn_executable_p
22352
22353 # Sed expression to map a string onto a valid CPP name.
22354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22355
22356 # Sed expression to map a string onto a valid variable name.
22357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22358
22359
22360 exec 6>&1
22361 ## ----------------------------------- ##
22362 ## Main body of $CONFIG_STATUS script. ##
22363 ## ----------------------------------- ##
22364 _ASEOF
22365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22366
22367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22368 # Save the log message, to keep $0 and so on meaningful, and to
22369 # report actual input values of CONFIG_FILES etc. instead of their
22370 # values after options handling.
22371 ac_log="
22372 This file was extended by bash $as_me 5.2-release, which was
22373 generated by GNU Autoconf 2.71. Invocation command line was
22374
22375 CONFIG_FILES = $CONFIG_FILES
22376 CONFIG_HEADERS = $CONFIG_HEADERS
22377 CONFIG_LINKS = $CONFIG_LINKS
22378 CONFIG_COMMANDS = $CONFIG_COMMANDS
22379 $ $0 $@
22380
22381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22382 "
22383
22384 _ACEOF
22385
22386 case $ac_config_files in *"
22387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22388 esac
22389
22390 case $ac_config_headers in *"
22391 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22392 esac
22393
22394
22395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22396 # Files that config.status was made for.
22397 config_files="$ac_config_files"
22398 config_headers="$ac_config_headers"
22399 config_commands="$ac_config_commands"
22400
22401 _ACEOF
22402
22403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22404 ac_cs_usage="\
22405 \`$as_me' instantiates files and other configuration actions
22406 from templates according to the current configuration. Unless the files
22407 and actions are specified as TAGs, all are instantiated by default.
22408
22409 Usage: $0 [OPTION]... [TAG]...
22410
22411 -h, --help print this help, then exit
22412 -V, --version print version number and configuration settings, then exit
22413 --config print configuration, then exit
22414 -q, --quiet, --silent
22415 do not print progress messages
22416 -d, --debug don't remove temporary files
22417 --recheck update $as_me by reconfiguring in the same conditions
22418 --file=FILE[:TEMPLATE]
22419 instantiate the configuration file FILE
22420 --header=FILE[:TEMPLATE]
22421 instantiate the configuration header FILE
22422
22423 Configuration files:
22424 $config_files
22425
22426 Configuration headers:
22427 $config_headers
22428
22429 Configuration commands:
22430 $config_commands
22431
22432 Report bugs to <bug-bash@gnu.org>."
22433
22434 _ACEOF
22435 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22436 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22438 ac_cs_config='$ac_cs_config_escaped'
22439 ac_cs_version="\\
22440 bash config.status 5.2-release
22441 configured by $0, generated by GNU Autoconf 2.71,
22442 with options \\"\$ac_cs_config\\"
22443
22444 Copyright (C) 2021 Free Software Foundation, Inc.
22445 This config.status script is free software; the Free Software Foundation
22446 gives unlimited permission to copy, distribute and modify it."
22447
22448 ac_pwd='$ac_pwd'
22449 srcdir='$srcdir'
22450 INSTALL='$INSTALL'
22451 MKDIR_P='$MKDIR_P'
22452 test -n "\$AWK" || AWK=awk
22453 _ACEOF
22454
22455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22456 # The default lists apply if the user does not specify any file.
22457 ac_need_defaults=:
22458 while test $# != 0
22459 do
22460 case $1 in
22461 --*=?*)
22462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22463 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22464 ac_shift=:
22465 ;;
22466 --*=)
22467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22468 ac_optarg=
22469 ac_shift=:
22470 ;;
22471 *)
22472 ac_option=$1
22473 ac_optarg=$2
22474 ac_shift=shift
22475 ;;
22476 esac
22477
22478 case $ac_option in
22479 # Handling of the options.
22480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22481 ac_cs_recheck=: ;;
22482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22483 printf "%s\n" "$ac_cs_version"; exit ;;
22484 --config | --confi | --conf | --con | --co | --c )
22485 printf "%s\n" "$ac_cs_config"; exit ;;
22486 --debug | --debu | --deb | --de | --d | -d )
22487 debug=: ;;
22488 --file | --fil | --fi | --f )
22489 $ac_shift
22490 case $ac_optarg in
22491 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22492 '') as_fn_error $? "missing file argument" ;;
22493 esac
22494 as_fn_append CONFIG_FILES " '$ac_optarg'"
22495 ac_need_defaults=false;;
22496 --header | --heade | --head | --hea )
22497 $ac_shift
22498 case $ac_optarg in
22499 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22500 esac
22501 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22502 ac_need_defaults=false;;
22503 --he | --h)
22504 # Conflict between --help and --header
22505 as_fn_error $? "ambiguous option: \`$1'
22506 Try \`$0 --help' for more information.";;
22507 --help | --hel | -h )
22508 printf "%s\n" "$ac_cs_usage"; exit ;;
22509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22511 ac_cs_silent=: ;;
22512
22513 # This is an error.
22514 -*) as_fn_error $? "unrecognized option: \`$1'
22515 Try \`$0 --help' for more information." ;;
22516
22517 *) as_fn_append ac_config_targets " $1"
22518 ac_need_defaults=false ;;
22519
22520 esac
22521 shift
22522 done
22523
22524 ac_configure_extra_args=
22525
22526 if $ac_cs_silent; then
22527 exec 6>/dev/null
22528 ac_configure_extra_args="$ac_configure_extra_args --silent"
22529 fi
22530
22531 _ACEOF
22532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22533 if \$ac_cs_recheck; then
22534 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22535 shift
22536 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22537 CONFIG_SHELL='$SHELL'
22538 export CONFIG_SHELL
22539 exec "\$@"
22540 fi
22541
22542 _ACEOF
22543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22544 exec 5>>config.log
22545 {
22546 echo
22547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22548 ## Running $as_me. ##
22549 _ASBOX
22550 printf "%s\n" "$ac_log"
22551 } >&5
22552
22553 _ACEOF
22554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22555 #
22556 # INIT-COMMANDS
22557 #
22558 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22559 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
22560 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
22561 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22562 LINGUAS="${LINGUAS-%UNSET%}"
22563
22564
22565 _ACEOF
22566
22567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22568
22569 # Handling of arguments.
22570 for ac_config_target in $ac_config_targets
22571 do
22572 case $ac_config_target in
22573 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22574 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22576 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
22577 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
22578 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
22579 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
22580 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
22581 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
22582 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
22583 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
22584 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22585 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22586 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22587 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
22588 "examples/loadables/Makefile.inc") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile.inc" ;;
22589 "examples/loadables/Makefile.sample") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile.sample" ;;
22590 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
22591 "support/bash.pc") CONFIG_FILES="$CONFIG_FILES support/bash.pc" ;;
22592 "support/bashbug.sh") CONFIG_FILES="$CONFIG_FILES support/bashbug.sh" ;;
22593 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
22594
22595 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22596 esac
22597 done
22598
22599
22600 # If the user did not use the arguments to specify the items to instantiate,
22601 # then the envvar interface is used. Set only those that are not.
22602 # We use the long form for the default assignment because of an extremely
22603 # bizarre bug on SunOS 4.1.3.
22604 if $ac_need_defaults; then
22605 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22606 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22607 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22608 fi
22609
22610 # Have a temporary directory for convenience. Make it in the build tree
22611 # simply because there is no reason against having it here, and in addition,
22612 # creating and moving files from /tmp can sometimes cause problems.
22613 # Hook for its removal unless debugging.
22614 # Note that there is a small window in which the directory will not be cleaned:
22615 # after its creation but before its name has been assigned to `$tmp'.
22616 $debug ||
22617 {
22618 tmp= ac_tmp=
22619 trap 'exit_status=$?
22620 : "${ac_tmp:=$tmp}"
22621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22622 ' 0
22623 trap 'as_fn_exit 1' 1 2 13 15
22624 }
22625 # Create a (secure) tmp directory for tmp files.
22626
22627 {
22628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22629 test -d "$tmp"
22630 } ||
22631 {
22632 tmp=./conf$$-$RANDOM
22633 (umask 077 && mkdir "$tmp")
22634 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22635 ac_tmp=$tmp
22636
22637 # Set up the scripts for CONFIG_FILES section.
22638 # No need to generate them if there are no CONFIG_FILES.
22639 # This happens for instance with `./config.status config.h'.
22640 if test -n "$CONFIG_FILES"; then
22641
22642
22643 ac_cr=`echo X | tr X '\015'`
22644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22645 # But we know of no other shell where ac_cr would be empty at this
22646 # point, so we can use a bashism as a fallback.
22647 if test "x$ac_cr" = x; then
22648 eval ac_cr=\$\'\\r\'
22649 fi
22650 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22652 ac_cs_awk_cr='\\r'
22653 else
22654 ac_cs_awk_cr=$ac_cr
22655 fi
22656
22657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22658 _ACEOF
22659
22660
22661 {
22662 echo "cat >conf$$subs.awk <<_ACEOF" &&
22663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22664 echo "_ACEOF"
22665 } >conf$$subs.sh ||
22666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22668 ac_delim='%!_!# '
22669 for ac_last_try in false false false false false :; do
22670 . ./conf$$subs.sh ||
22671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22672
22673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22674 if test $ac_delim_n = $ac_delim_num; then
22675 break
22676 elif $ac_last_try; then
22677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22678 else
22679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22680 fi
22681 done
22682 rm -f conf$$subs.sh
22683
22684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22685 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22686 _ACEOF
22687 sed -n '
22688 h
22689 s/^/S["/; s/!.*/"]=/
22690 p
22691 g
22692 s/^[^!]*!//
22693 :repl
22694 t repl
22695 s/'"$ac_delim"'$//
22696 t delim
22697 :nl
22698 h
22699 s/\(.\{148\}\)..*/\1/
22700 t more1
22701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22702 p
22703 n
22704 b repl
22705 :more1
22706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22707 p
22708 g
22709 s/.\{148\}//
22710 t nl
22711 :delim
22712 h
22713 s/\(.\{148\}\)..*/\1/
22714 t more2
22715 s/["\\]/\\&/g; s/^/"/; s/$/"/
22716 p
22717 b
22718 :more2
22719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22720 p
22721 g
22722 s/.\{148\}//
22723 t delim
22724 ' <conf$$subs.awk | sed '
22725 /^[^""]/{
22726 N
22727 s/\n//
22728 }
22729 ' >>$CONFIG_STATUS || ac_write_fail=1
22730 rm -f conf$$subs.awk
22731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22732 _ACAWK
22733 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22734 for (key in S) S_is_set[key] = 1
22735 FS = "\a"
22736
22737 }
22738 {
22739 line = $ 0
22740 nfields = split(line, field, "@")
22741 substed = 0
22742 len = length(field[1])
22743 for (i = 2; i < nfields; i++) {
22744 key = field[i]
22745 keylen = length(key)
22746 if (S_is_set[key]) {
22747 value = S[key]
22748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22749 len += length(value) + length(field[++i])
22750 substed = 1
22751 } else
22752 len += 1 + keylen
22753 }
22754
22755 print line
22756 }
22757
22758 _ACAWK
22759 _ACEOF
22760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22761 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22762 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22763 else
22764 cat
22765 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22766 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22767 _ACEOF
22768
22769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22771 # trailing colons and then remove the whole line if VPATH becomes empty
22772 # (actually we leave an empty line to preserve line numbers).
22773 if test "x$srcdir" = x.; then
22774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22775 h
22776 s///
22777 s/^/:/
22778 s/[ ]*$/:/
22779 s/:\$(srcdir):/:/g
22780 s/:\${srcdir}:/:/g
22781 s/:@srcdir@:/:/g
22782 s/^:*//
22783 s/:*$//
22784 x
22785 s/\(=[ ]*\).*/\1/
22786 G
22787 s/\n//
22788 s/^[^=]*=[ ]*$//
22789 }'
22790 fi
22791
22792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22793 fi # test -n "$CONFIG_FILES"
22794
22795 # Set up the scripts for CONFIG_HEADERS section.
22796 # No need to generate them if there are no CONFIG_HEADERS.
22797 # This happens for instance with `./config.status Makefile'.
22798 if test -n "$CONFIG_HEADERS"; then
22799 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22800 BEGIN {
22801 _ACEOF
22802
22803 # Transform confdefs.h into an awk script `defines.awk', embedded as
22804 # here-document in config.status, that substitutes the proper values into
22805 # config.h.in to produce config.h.
22806
22807 # Create a delimiter string that does not exist in confdefs.h, to ease
22808 # handling of long lines.
22809 ac_delim='%!_!# '
22810 for ac_last_try in false false :; do
22811 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22812 if test -z "$ac_tt"; then
22813 break
22814 elif $ac_last_try; then
22815 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22816 else
22817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22818 fi
22819 done
22820
22821 # For the awk script, D is an array of macro values keyed by name,
22822 # likewise P contains macro parameters if any. Preserve backslash
22823 # newline sequences.
22824
22825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22826 sed -n '
22827 s/.\{148\}/&'"$ac_delim"'/g
22828 t rset
22829 :rset
22830 s/^[ ]*#[ ]*define[ ][ ]*/ /
22831 t def
22832 d
22833 :def
22834 s/\\$//
22835 t bsnl
22836 s/["\\]/\\&/g
22837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22838 D["\1"]=" \3"/p
22839 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22840 d
22841 :bsnl
22842 s/["\\]/\\&/g
22843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22844 D["\1"]=" \3\\\\\\n"\\/p
22845 t cont
22846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22847 t cont
22848 d
22849 :cont
22850 n
22851 s/.\{148\}/&'"$ac_delim"'/g
22852 t clear
22853 :clear
22854 s/\\$//
22855 t bsnlc
22856 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22857 d
22858 :bsnlc
22859 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22860 b cont
22861 ' <confdefs.h | sed '
22862 s/'"$ac_delim"'/"\\\
22863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22864
22865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866 for (key in D) D_is_set[key] = 1
22867 FS = "\a"
22868 }
22869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22870 line = \$ 0
22871 split(line, arg, " ")
22872 if (arg[1] == "#") {
22873 defundef = arg[2]
22874 mac1 = arg[3]
22875 } else {
22876 defundef = substr(arg[1], 2)
22877 mac1 = arg[2]
22878 }
22879 split(mac1, mac2, "(") #)
22880 macro = mac2[1]
22881 prefix = substr(line, 1, index(line, defundef) - 1)
22882 if (D_is_set[macro]) {
22883 # Preserve the white space surrounding the "#".
22884 print prefix "define", macro P[macro] D[macro]
22885 next
22886 } else {
22887 # Replace #undef with comments. This is necessary, for example,
22888 # in the case of _POSIX_SOURCE, which is predefined and required
22889 # on some systems where configure will not decide to define it.
22890 if (defundef == "undef") {
22891 print "/*", prefix defundef, macro, "*/"
22892 next
22893 }
22894 }
22895 }
22896 { print }
22897 _ACAWK
22898 _ACEOF
22899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22900 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22901 fi # test -n "$CONFIG_HEADERS"
22902
22903
22904 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22905 shift
22906 for ac_tag
22907 do
22908 case $ac_tag in
22909 :[FHLC]) ac_mode=$ac_tag; continue;;
22910 esac
22911 case $ac_mode$ac_tag in
22912 :[FHL]*:*);;
22913 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22914 :[FH]-) ac_tag=-:-;;
22915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22916 esac
22917 ac_save_IFS=$IFS
22918 IFS=:
22919 set x $ac_tag
22920 IFS=$ac_save_IFS
22921 shift
22922 ac_file=$1
22923 shift
22924
22925 case $ac_mode in
22926 :L) ac_source=$1;;
22927 :[FH])
22928 ac_file_inputs=
22929 for ac_f
22930 do
22931 case $ac_f in
22932 -) ac_f="$ac_tmp/stdin";;
22933 *) # Look for the file first in the build tree, then in the source tree
22934 # (if the path is not absolute). The absolute path cannot be DOS-style,
22935 # because $ac_f cannot contain `:'.
22936 test -f "$ac_f" ||
22937 case $ac_f in
22938 [\\/$]*) false;;
22939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22940 esac ||
22941 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22942 esac
22943 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22944 as_fn_append ac_file_inputs " '$ac_f'"
22945 done
22946
22947 # Let's still pretend it is `configure' which instantiates (i.e., don't
22948 # use $as_me), people would be surprised to read:
22949 # /* config.h. Generated by config.status. */
22950 configure_input='Generated from '`
22951 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22952 `' by configure.'
22953 if test x"$ac_file" != x-; then
22954 configure_input="$ac_file. $configure_input"
22955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22956 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22957 fi
22958 # Neutralize special characters interpreted by sed in replacement strings.
22959 case $configure_input in #(
22960 *\&* | *\|* | *\\* )
22961 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22962 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22963 *) ac_sed_conf_input=$configure_input;;
22964 esac
22965
22966 case $ac_tag in
22967 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22969 esac
22970 ;;
22971 esac
22972
22973 ac_dir=`$as_dirname -- "$ac_file" ||
22974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22975 X"$ac_file" : 'X\(//\)[^/]' \| \
22976 X"$ac_file" : 'X\(//\)$' \| \
22977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22978 printf "%s\n" X"$ac_file" |
22979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22980 s//\1/
22981 q
22982 }
22983 /^X\(\/\/\)[^/].*/{
22984 s//\1/
22985 q
22986 }
22987 /^X\(\/\/\)$/{
22988 s//\1/
22989 q
22990 }
22991 /^X\(\/\).*/{
22992 s//\1/
22993 q
22994 }
22995 s/.*/./; q'`
22996 as_dir="$ac_dir"; as_fn_mkdir_p
22997 ac_builddir=.
22998
22999 case "$ac_dir" in
23000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23001 *)
23002 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23003 # A ".." for each directory in $ac_dir_suffix.
23004 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23005 case $ac_top_builddir_sub in
23006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23008 esac ;;
23009 esac
23010 ac_abs_top_builddir=$ac_pwd
23011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23012 # for backward compatibility:
23013 ac_top_builddir=$ac_top_build_prefix
23014
23015 case $srcdir in
23016 .) # We are building in place.
23017 ac_srcdir=.
23018 ac_top_srcdir=$ac_top_builddir_sub
23019 ac_abs_top_srcdir=$ac_pwd ;;
23020 [\\/]* | ?:[\\/]* ) # Absolute name.
23021 ac_srcdir=$srcdir$ac_dir_suffix;
23022 ac_top_srcdir=$srcdir
23023 ac_abs_top_srcdir=$srcdir ;;
23024 *) # Relative name.
23025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23026 ac_top_srcdir=$ac_top_build_prefix$srcdir
23027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23028 esac
23029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23030
23031
23032 case $ac_mode in
23033 :F)
23034 #
23035 # CONFIG_FILE
23036 #
23037
23038 case $INSTALL in
23039 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23040 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23041 esac
23042 ac_MKDIR_P=$MKDIR_P
23043 case $MKDIR_P in
23044 [\\/$]* | ?:[\\/]* ) ;;
23045 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23046 esac
23047 _ACEOF
23048
23049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23050 # If the template does not know about datarootdir, expand it.
23051 # FIXME: This hack should be removed a few years after 2.60.
23052 ac_datarootdir_hack=; ac_datarootdir_seen=
23053 ac_sed_dataroot='
23054 /datarootdir/ {
23055 p
23056 q
23057 }
23058 /@datadir@/p
23059 /@docdir@/p
23060 /@infodir@/p
23061 /@localedir@/p
23062 /@mandir@/p'
23063 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23064 *datarootdir*) ac_datarootdir_seen=yes;;
23065 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23067 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23068 _ACEOF
23069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23070 ac_datarootdir_hack='
23071 s&@datadir@&$datadir&g
23072 s&@docdir@&$docdir&g
23073 s&@infodir@&$infodir&g
23074 s&@localedir@&$localedir&g
23075 s&@mandir@&$mandir&g
23076 s&\\\${datarootdir}&$datarootdir&g' ;;
23077 esac
23078 _ACEOF
23079
23080 # Neutralize VPATH when `$srcdir' = `.'.
23081 # Shell code in configure.ac might set extrasub.
23082 # FIXME: do we really want to maintain this feature?
23083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084 ac_sed_extra="$ac_vpsub
23085 $extrasub
23086 _ACEOF
23087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23088 :t
23089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23090 s|@configure_input@|$ac_sed_conf_input|;t t
23091 s&@top_builddir@&$ac_top_builddir_sub&;t t
23092 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23093 s&@srcdir@&$ac_srcdir&;t t
23094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23095 s&@top_srcdir@&$ac_top_srcdir&;t t
23096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23097 s&@builddir@&$ac_builddir&;t t
23098 s&@abs_builddir@&$ac_abs_builddir&;t t
23099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23100 s&@INSTALL@&$ac_INSTALL&;t t
23101 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23102 $ac_datarootdir_hack
23103 "
23104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23106
23107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23112 which seems to be undefined. Please make sure it is defined" >&5
23113 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23114 which seems to be undefined. Please make sure it is defined" >&2;}
23115
23116 rm -f "$ac_tmp/stdin"
23117 case $ac_file in
23118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23120 esac \
23121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23122 ;;
23123 :H)
23124 #
23125 # CONFIG_HEADER
23126 #
23127 if test x"$ac_file" != x-; then
23128 {
23129 printf "%s\n" "/* $configure_input */" >&1 \
23130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23131 } >"$ac_tmp/config.h" \
23132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23135 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23136 else
23137 rm -f "$ac_file"
23138 mv "$ac_tmp/config.h" "$ac_file" \
23139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23140 fi
23141 else
23142 printf "%s\n" "/* $configure_input */" >&1 \
23143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23144 || as_fn_error $? "could not create -" "$LINENO" 5
23145 fi
23146 ;;
23147
23148 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23149 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23150 ;;
23151 esac
23152
23153
23154 case $ac_file$ac_mode in
23155 "po-directories":C)
23156 for ac_file in $CONFIG_FILES; do
23157 # Support "outfile[:infile[:infile...]]"
23158 case "$ac_file" in
23159 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23160 esac
23161 # PO directories have a Makefile.in generated from Makefile.in.in.
23162 case "$ac_file" in */Makefile.in)
23163 # Adjust a relative srcdir.
23164 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23165 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23166 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23167 # In autoconf-2.13 it is called $ac_given_srcdir.
23168 # In autoconf-2.50 it is called $srcdir.
23169 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23170 case "$ac_given_srcdir" in
23171 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23172 /*) top_srcdir="$ac_given_srcdir" ;;
23173 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23174 esac
23175 # Treat a directory as a PO directory if and only if it has a
23176 # POTFILES.in file. This allows packages to have multiple PO
23177 # directories under different names or in different locations.
23178 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23179 rm -f "$ac_dir/POTFILES"
23180 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23181 gt_tab=`printf '\t'`
23182 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"
23183 POMAKEFILEDEPS="POTFILES.in"
23184 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23185 # on $ac_dir but don't depend on user-specified configuration
23186 # parameters.
23187 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23188 # The LINGUAS file contains the set of available languages.
23189 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23190 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23191 fi
23192 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23193 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23194 else
23195 # The set of available languages was given in configure.in.
23196 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
23197 fi
23198 # Compute POFILES
23199 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23200 # Compute UPDATEPOFILES
23201 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23202 # Compute DUMMYPOFILES
23203 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23204 # Compute GMOFILES
23205 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23206 case "$ac_given_srcdir" in
23207 .) srcdirpre= ;;
23208 *) srcdirpre='$(srcdir)/' ;;
23209 esac
23210 POFILES=
23211 UPDATEPOFILES=
23212 DUMMYPOFILES=
23213 GMOFILES=
23214 for lang in $ALL_LINGUAS; do
23215 POFILES="$POFILES $srcdirpre$lang.po"
23216 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23217 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23218 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23219 done
23220 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23221 # environment variable.
23222 INST_LINGUAS=
23223 if test -n "$ALL_LINGUAS"; then
23224 for presentlang in $ALL_LINGUAS; do
23225 useit=no
23226 if test "%UNSET%" != "$LINGUAS"; then
23227 desiredlanguages="$LINGUAS"
23228 else
23229 desiredlanguages="$ALL_LINGUAS"
23230 fi
23231 for desiredlang in $desiredlanguages; do
23232 # Use the presentlang catalog if desiredlang is
23233 # a. equal to presentlang, or
23234 # b. a variant of presentlang (because in this case,
23235 # presentlang can be used as a fallback for messages
23236 # which are not translated in the desiredlang catalog).
23237 case "$desiredlang" in
23238 "$presentlang"*) useit=yes;;
23239 esac
23240 done
23241 if test $useit = yes; then
23242 INST_LINGUAS="$INST_LINGUAS $presentlang"
23243 fi
23244 done
23245 fi
23246 CATALOGS=
23247 if test -n "$INST_LINGUAS"; then
23248 for lang in $INST_LINGUAS; do
23249 CATALOGS="$CATALOGS $lang.gmo"
23250 done
23251 fi
23252 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23253 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"
23254 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23255 if test -f "$f"; then
23256 case "$f" in
23257 *.orig | *.bak | *~) ;;
23258 *) cat "$f" >> "$ac_dir/Makefile" ;;
23259 esac
23260 fi
23261 done
23262 fi
23263 ;;
23264 esac
23265 done ;;
23266 "stamp-h":C) echo timestamp > stamp-h ;;
23267
23268 esac
23269 done # for ac_tag
23270
23271
23272 as_fn_exit 0
23273 _ACEOF
23274 ac_clean_files=$ac_clean_files_save
23275
23276 test $ac_write_fail = 0 ||
23277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23278
23279
23280 # configure is writing to config.log, and then calls config.status.
23281 # config.status does its own redirection, appending to config.log.
23282 # Unfortunately, on DOS this fails, as config.log is still kept open
23283 # by configure, so config.status won't be able to write to it; its
23284 # output is simply discarded. So we exec the FD to /dev/null,
23285 # effectively closing config.log, so it can be properly (re)opened and
23286 # appended to by config.status. When coming back to configure, we
23287 # need to make the FD available again.
23288 if test "$no_create" != yes; then
23289 ac_cs_success=:
23290 ac_config_status_args=
23291 test "$silent" = yes &&
23292 ac_config_status_args="$ac_config_status_args --quiet"
23293 exec 5>/dev/null
23294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23295 exec 5>>config.log
23296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23297 # would make configure fail if this is the last instruction.
23298 $ac_cs_success || as_fn_exit 1
23299 fi
23300 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23302 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23303 fi
23304
23305