2 # From configure.ac for Readline 7.0, version 2.80.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for readline 7.0.
6 # Report bugs to <bug-readline@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: bug-readline@gnu.org about your system, including any
234 $0: error possibly output before this message. Then install
235 $0: a modern shell, or manually run the script under such a
236 $0: shell if you do have one."
242 SHELL=${CONFIG_SHELL-/bin/sh}
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
253 # Portably unset VAR.
256 { eval $1=; unset $1;}
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 # Create "$as_dir" as a directory, including parents if necessary.
285 -*) as_dir=./$as_dir;;
287 test -d "$as_dir" || eval $as_mkdir_p || {
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 test -d "$as_dir" && break
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 as_val=`expr "$@" || test $? -eq 1`
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
368 as_status=$?; test $as_status -eq 0 && as_status=1
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
450 # Exit status is that of the last command.
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
472 mkdir conf$$.dir 2>/dev/null
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 elif ln conf$$.file conf$$ 2>/dev/null; then
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
497 test -d ./-p && rmdir ./-p
501 if test -x / >/dev/null 2>&1; then
504 if ls -dL / >/dev/null 2>&1; then
511 if test -d "$1"; then
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 exec 7<&0 </dev/null 6>&1
534 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
535 # so uname gets run too.
536 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 ac_default_prefix=/usr/local
543 ac_config_libobj_dir=.
550 # Identity of this package.
551 PACKAGE_NAME='readline'
552 PACKAGE_TARNAME='readline'
553 PACKAGE_VERSION='7.0'
554 PACKAGE_STRING='readline 7.0'
555 PACKAGE_BUGREPORT='bug-readline@gnu.org'
558 ac_unique_file="readline.h"
559 # Factoring default headers for most tests.
560 ac_includes_default="\
562 #ifdef HAVE_SYS_TYPES_H
563 # include <sys/types.h>
565 #ifdef HAVE_SYS_STAT_H
566 # include <sys/stat.h>
572 # ifdef HAVE_STDLIB_H
577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
582 #ifdef HAVE_STRINGS_H
583 # include <strings.h>
585 #ifdef HAVE_INTTYPES_H
586 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
604 SHARED_INSTALL_TARGET
605 STATIC_INSTALL_TARGET
679 program_transform_name
692 enable_option_checking
700 ac_precious_vars='build_alias
711 # Initialize some variables set by options.
713 ac_init_version=false
714 ac_unrecognized_opts=
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
725 program_transform_name=s,x,x,
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
750 infodir='${datarootdir}/info'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 # Accept the important Cygnus configure options, so we can diagnose typos.
777 case $ac_dashdash$ac_option in
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
799 cache_file=config.cache ;;
801 -datadir | --datadir | --datadi | --datad)
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
813 -disable-* | --disable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
827 eval enable_$ac_useropt=no ;;
829 -docdir | --docdir | --docdi | --doc | --do)
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 -enable-* | --enable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
853 eval enable_$ac_useropt=\$ac_optarg ;;
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
868 -help | --help | --hel | --he | -h)
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
884 htmldir=$ac_optarg ;;
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
898 -libdir | --libdir | --libdi | --libd)
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
910 -localedir | --localedir | --localedi | --localed | --locale)
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 # Obsolete; use --without-fp.
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 -psdir | --psdir | --psdi | --psd | --ps)
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
998 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1000 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1002 sbindir=$ac_optarg ;;
1004 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006 | --sharedst | --shareds | --shared | --share | --shar \
1008 ac_prev=sharedstatedir ;;
1009 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1013 sharedstatedir=$ac_optarg ;;
1015 -site | --site | --sit)
1017 -site=* | --site=* | --sit=*)
1020 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1022 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023 srcdir=$ac_optarg ;;
1025 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026 | --syscon | --sysco | --sysc | --sys | --sy)
1027 ac_prev=sysconfdir ;;
1028 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030 sysconfdir=$ac_optarg ;;
1032 -target | --target | --targe | --targ | --tar | --ta | --t)
1033 ac_prev=target_alias ;;
1034 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035 target_alias=$ac_optarg ;;
1037 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 -version | --version | --versio | --versi | --vers | -V)
1041 ac_init_version=: ;;
1044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid package name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1057 eval with_$ac_useropt=\$ac_optarg ;;
1059 -without-* | --without-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1073 eval with_$ac_useropt=no ;;
1076 # Obsolete; use --with-x.
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1093 -*) as_fn_error "unrecognized option: \`$ac_option'
1094 Try \`$0 --help' for more information."
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1102 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error "missing argument to $ac_option"
1123 if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1126 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1131 # Check all directory arguments for consistency.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val=\$$ac_var
1138 # Remove trailing slashes.
1141 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\$ac_val;;
1144 # Be sure to have absolute directory names.
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1149 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1157 target=$target_alias
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173 test "$silent" = yes && exec 6>/dev/null
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error "working directory cannot be determined"
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error "pwd does not report name of working directory"
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193 $as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures readline 7.0 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/readline]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of readline 7.0:";;
1320 --disable-option-checking ignore unrecognized --enable/--with options
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-multibyte enable multibyte characters if OS supports them
1324 --enable-shared build shared libraries [default=YES]
1325 --enable-static build static libraries [default=YES]
1326 --disable-largefile omit support for large files
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-curses use the curses library instead of the termcap
1333 --with-purify configure to postprocess with purify
1335 Some influential environment variables:
1336 CC C compiler command
1337 CFLAGS C compiler flags
1338 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1339 nonstandard directory <lib dir>
1340 LIBS libraries to pass to the linker, e.g. -l<library>
1341 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1342 you have headers in a nonstandard directory <include dir>
1345 Use these variables to override the choices made by `configure' or to help
1346 it to find libraries and programs with nonstandard names/locations.
1348 Report bugs to <bug-readline@gnu.org>.
1353 if test "$ac_init_help" = "recursive"; then
1354 # If there are subdirs, report their specific --help.
1355 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 test -d "$ac_dir" ||
1357 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1365 # A ".." for each directory in $ac_dir_suffix.
1366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367 case $ac_top_builddir_sub in
1368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 ac_abs_top_builddir=$ac_pwd
1373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374 # for backward compatibility:
1375 ac_top_builddir=$ac_top_build_prefix
1378 .) # We are building in place.
1380 ac_top_srcdir=$ac_top_builddir_sub
1381 ac_abs_top_srcdir=$ac_pwd ;;
1382 [\\/]* | ?:[\\/]* ) # Absolute name.
1383 ac_srcdir=$srcdir$ac_dir_suffix;
1384 ac_top_srcdir=$srcdir
1385 ac_abs_top_srcdir=$srcdir ;;
1387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388 ac_top_srcdir=$ac_top_build_prefix$srcdir
1389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393 cd "$ac_dir" || { ac_status=$?; continue; }
1394 # Check for guested configure.
1395 if test -f "$ac_srcdir/configure.gnu"; then
1397 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398 elif test -f "$ac_srcdir/configure"; then
1400 $SHELL "$ac_srcdir/configure" --help=recursive
1402 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1404 cd "$ac_pwd" || { ac_status=$?; break; }
1408 test -n "$ac_init_help" && exit $ac_status
1409 if $ac_init_version; then
1411 readline configure 7.0
1412 generated by GNU Autoconf 2.64
1414 Copyright (C) 2009 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1421 ## ------------------------ ##
1422 ## Autoconf initialization. ##
1423 ## ------------------------ ##
1425 # ac_fn_c_try_compile LINENO
1426 # --------------------------
1427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1428 ac_fn_c_try_compile ()
1430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431 rm -f conftest.$ac_objext
1432 if { { ac_try="$ac_compile"
1434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435 *) ac_try_echo=$ac_try;;
1437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438 $as_echo "$ac_try_echo"; } >&5
1439 (eval "$ac_compile") 2>conftest.err
1441 if test -s conftest.err; then
1442 grep -v '^ *+' conftest.err >conftest.er1
1443 cat conftest.er1 >&5
1444 mv -f conftest.er1 conftest.err
1446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447 test $ac_status = 0; } && {
1448 test -z "$ac_c_werror_flag" ||
1449 test ! -s conftest.err
1450 } && test -s conftest.$ac_objext; then :
1453 $as_echo "$as_me: failed program was:" >&5
1454 sed 's/^/| /' conftest.$ac_ext >&5
1458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1461 } # ac_fn_c_try_compile
1463 # ac_fn_c_try_cpp LINENO
1464 # ----------------------
1465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 if { { ac_try="$ac_cpp conftest.$ac_ext"
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 $as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } >/dev/null && {
1485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1490 $as_echo "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1500 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1501 # -------------------------------------------------------
1502 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1503 # the include files in INCLUDES and setting the cache variable VAR
1505 ac_fn_c_check_header_mongrel ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1510 $as_echo_n "checking for $2... " >&6; }
1511 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1512 $as_echo_n "(cached) " >&6
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1518 # Is the header compilable?
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1520 $as_echo_n "checking $2 usability... " >&6; }
1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522 /* end confdefs.h. */
1526 if ac_fn_c_try_compile "$LINENO"; then :
1527 ac_header_compiler=yes
1529 ac_header_compiler=no
1531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1533 $as_echo "$ac_header_compiler" >&6; }
1535 # Is the header present?
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1537 $as_echo_n "checking $2 presence... " >&6; }
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1542 if ac_fn_c_try_cpp "$LINENO"; then :
1543 ac_header_preproc=yes
1545 ac_header_preproc=no
1547 rm -f conftest.err conftest.$ac_ext
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1549 $as_echo "$ac_header_preproc" >&6; }
1551 # So? What about this header?
1552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1555 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1561 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1563 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1565 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1567 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1571 ## ----------------------------------- ##
1572 ## Report this to bug-readline@gnu.org ##
1573 ## ----------------------------------- ##
1575 ) | sed "s/^/$as_me: WARNING: /" >&2
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579 $as_echo_n "checking for $2... " >&6; }
1580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 $as_echo_n "(cached) " >&6
1583 eval "$3=\$ac_header_compiler"
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 } # ac_fn_c_check_header_mongrel
1593 # ac_fn_c_try_run LINENO
1594 # ----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1596 # that executables *can* be run.
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_link"
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>&5
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1611 { { case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_try") 2>&5
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; }; }; then :
1623 $as_echo "$as_me: program exited with status $ac_status" >&5
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=$ac_status
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1652 if ac_fn_c_try_compile "$LINENO"; then :
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 } # ac_fn_c_check_header_compile
1666 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1667 # -------------------------------------------
1668 # Tests whether TYPE exists after having included INCLUDES, setting cache
1669 # variable VAR accordingly.
1670 ac_fn_c_check_type ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 $as_echo_n "(cached) " >&6
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1704 if ac_fn_c_try_compile "$LINENO"; then :
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_check_type
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 $as_test_x conftest$ac_exeext
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 } # ac_fn_c_try_link
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1789 # include <limits.h>
1791 # include <assert.h>
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1818 if ac_fn_c_try_link "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 } # ac_fn_c_check_func
1833 # ac_fn_c_check_decl LINENO SYMBOL VAR
1834 # ------------------------------------
1835 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1836 ac_fn_c_check_decl ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1840 $as_echo_n "checking whether $2 is declared... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_check_decl
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1875 It was created by readline $as_me 7.0, which was
1876 generated by GNU Autoconf 2.64. Invocation command line was
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_must_keep_next=false
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 -* ) ac_must_keep_next=true ;;
1968 as_fn_append ac_configure_args " '$ac_arg'"
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1987 ## ---------------- ##
1988 ## Cache variables. ##
1989 ## ---------------- ##
1992 # The following way of writing the cache mishandles newlines in values,
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) { eval $ac_var=; unset $ac_var;} ;;
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##
2030 for ac_var in $ac_subst_vars
2032 eval ac_val=\$$ac_var
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 $as_echo "$ac_var='\''$ac_val'\''"
2040 if test -n "$ac_subst_files"; then
2042 ## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##
2047 for ac_var in $ac_subst_files
2049 eval ac_val=\$$ac_var
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 $as_echo "$ac_var='\''$ac_val'\''"
2058 if test -s confdefs.h; then
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2084 $as_echo "/* confdefs.h */" > confdefs.h
2086 # Predefined preprocessor variables.
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2117 if test -n "$CONFIG_SITE"; then
2118 ac_site_file1=$CONFIG_SITE
2119 elif test "x$prefix" != xNONE; then
2120 ac_site_file1=$prefix/share/config.site
2121 ac_site_file2=$prefix/etc/config.site
2123 ac_site_file1=$ac_default_prefix/share/config.site
2124 ac_site_file2=$ac_default_prefix/etc/config.site
2126 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128 test "x$ac_site_file" = xNONE && continue
2129 if test -r "$ac_site_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132 sed 's/^/| /' "$ac_site_file" >&5
2137 if test -r "$cache_file"; then
2138 # Some versions of bash will fail to source /dev/null (special
2139 # files actually), so we avoid doing that.
2140 if test -f "$cache_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145 *) . "./$cache_file";;
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 # Check that the precious variables saved in the cache have kept the same
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227 for ac_dir in ./support "$srcdir"/./support; do
2228 for ac_t in install-sh install.sh shtool; do
2229 if test -f "$ac_dir/$ac_t"; then
2231 ac_install_sh="$ac_aux_dir/$ac_t -c"
2236 if test -z "$ac_aux_dir"; then
2237 as_fn_error "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249 ac_config_headers="$ac_config_headers config.h"
2254 # Make sure we can run config.sub.
2255 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2256 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2259 $as_echo_n "checking build system type... " >&6; }
2260 if test "${ac_cv_build+set}" = set; then :
2261 $as_echo_n "(cached) " >&6
2263 ac_build_alias=$build_alias
2264 test "x$ac_build_alias" = x &&
2265 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2266 test "x$ac_build_alias" = x &&
2267 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2268 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2269 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2273 $as_echo "$ac_cv_build" >&6; }
2274 case $ac_cv_build in
2276 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2279 ac_save_IFS=$IFS; IFS='-'
2285 # Remember, the first character of IFS is used to create $*,
2286 # except with old shells:
2289 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2293 $as_echo_n "checking host system type... " >&6; }
2294 if test "${ac_cv_host+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
2297 if test "x$host_alias" = x; then
2298 ac_cv_host=$ac_cv_build
2300 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2306 $as_echo "$ac_cv_host" >&6; }
2309 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2312 ac_save_IFS=$IFS; IFS='-'
2318 # Remember, the first character of IFS is used to create $*,
2319 # except with old shells:
2322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 # Check whether --with-curses was given.
2332 if test "${with_curses+set}" = set; then :
2333 withval=$with_curses; opt_curses=$withval
2337 # Check whether --with-purify was given.
2338 if test "${with_purify+set}" = set; then :
2339 withval=$with_purify; opt_purify=$withval
2343 if test "$opt_curses" = "yes"; then
2347 if test "$opt_purify" = yes; then
2357 # Check whether --enable-multibyte was given.
2358 if test "${enable_multibyte+set}" = set; then :
2359 enableval=$enable_multibyte; opt_multibyte=$enableval
2362 # Check whether --enable-shared was given.
2363 if test "${enable_shared+set}" = set; then :
2364 enableval=$enable_shared; opt_shared_libs=$enableval
2367 # Check whether --enable-static was given.
2368 if test "${enable_static+set}" = set; then :
2369 enableval=$enable_static; opt_static_libs=$enableval
2373 if test $opt_multibyte = no; then
2374 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
2381 if test "x$cross_compiling" = "xyes"; then
2384 cross_cache=${srcdir}/cross-build/cygwin.cache
2387 cross_cache=${srcdir}/cross-build/mingw.cache
2390 cross_cache=${srcdir}/cross-build/x86-beos.cache
2392 *) echo "configure: cross-compiling for $host is not supported" >&2
2395 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2396 echo "loading cross-build cache file ${cross_cache}"
2400 CROSS_COMPILE='-DCROSS_COMPILING'
2405 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
2408 # We want these before the checks, so the checks can modify their values.
2409 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2412 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2414 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2415 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2416 $as_echo_n "(cached) " >&6
2418 cat >conftest.make <<\_ACEOF
2421 @echo '@@@%%%=$(MAKE)=@@@%%%'
2423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2426 eval ac_cv_prog_make_${ac_make}_set=yes;;
2428 eval ac_cv_prog_make_${ac_make}_set=no;;
2432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 SET_MAKE="MAKE=${MAKE-make}"
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if test "${ac_cv_prog_CC+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2486 if test -z "$ac_cv_prog_CC"; then
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489 set dummy gcc; ac_word=$2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_ac_ct_CC="gcc"
2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2516 if test -n "$ac_ct_CC"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2518 $as_echo "$ac_ct_CC" >&6; }
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2524 if test "x$ac_ct_CC" = x; then
2527 case $cross_compiling:$ac_tool_warned in
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2531 ac_tool_warned=yes ;;
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2542 set dummy ${ac_tool_prefix}cc; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="${ac_tool_prefix}cc"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2580 if test -z "$CC"; then
2581 # Extract the first word of "cc", so it can be a program name with args.
2582 set dummy cc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2600 ac_prog_rejected=yes
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test $ac_prog_rejected = yes; then
2612 # We found a bogon in the path, so make sure we never use it.
2613 set dummy $ac_cv_prog_CC
2615 if test $# != 0; then
2616 # We chose a different compiler from the bogus one.
2617 # However, it has the same basename, so the bogon will be chosen
2618 # first if we set CC to just the basename; use the full file name.
2620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2626 if test -n "$CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2628 $as_echo "$CC" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 for ac_prog in cl.exe
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then :
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2677 test -n "$CC" && break
2680 if test -z "$CC"; then
2682 for ac_prog in cl.exe
2684 # Extract the first word of "$ac_prog", so it can be a program name with args.
2685 set dummy $ac_prog; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="$ac_prog"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2721 test -n "$ac_ct_CC" && break
2724 if test "x$ac_ct_CC" = x; then
2727 case $cross_compiling:$ac_tool_warned in
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 as_fn_error "no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." "$LINENO" 5; }
2745 # Provide some information about the compiler.
2746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2749 for ac_option in --version -v -V -qversion; do
2750 { { ac_try="$ac_compiler $ac_option >&5"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2756 $as_echo "$ac_try_echo"; } >&5
2757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2759 if test -s conftest.err; then
2761 ... rest of stderr output deleted ...
2762 10q' conftest.err >conftest.er1
2763 cat conftest.er1 >&5
2764 rm -f conftest.er1 conftest.err
2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767 test $ac_status = 0; }
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2776 FILE *f = fopen ("conftest.out", "w");
2777 return ferror (f) || fclose (f) != 0;
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2789 $as_echo_n "checking for C compiler default output file name... " >&6; }
2790 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 # The possible output files:
2793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2796 for ac_file in $ac_files
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 if { { ac_try="$ac_link_default"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_link_default") 2>&5
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; then :
2816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2819 # so that the user can short-circuit this test for compilers unknown to
2821 for ac_file in $ac_files ''
2823 test -f "$ac_file" || continue
2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2828 # We found the default executable, but exeext='' is most
2832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 # We set ac_cv_exeext here because the later test for it is not
2837 # safe: cross compilers may not add the suffix if given an `-o'
2838 # argument, so we may need to know it at that point already.
2839 # Even if this section looks crufty: it has the advantage of
2846 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2852 $as_echo "$ac_file" >&6; }
2853 if test -z "$ac_file"; then :
2854 $as_echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 { as_fn_set_status 77
2860 as_fn_error "C compiler cannot create executables
2861 See \`config.log' for more details." "$LINENO" 5; }; }
2863 ac_exeext=$ac_cv_exeext
2865 # Check that the compiler produces executables we can run. If not, either
2866 # the compiler is broken, or we cross compile.
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2868 $as_echo_n "checking whether the C compiler works... " >&6; }
2869 # If not cross compiling, check that we can run a simple program.
2870 if test "$cross_compiling" != yes; then
2871 if { ac_try='./$ac_file'
2872 { { case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_try") 2>&5
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; }; then
2884 if test "$cross_compiling" = maybe; then
2887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error "cannot run C compiled programs.
2890 If you meant to cross compile, use \`--host'.
2891 See \`config.log' for more details." "$LINENO" 5; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2903 $as_echo_n "checking whether we are cross compiling... " >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2905 $as_echo "$cross_compiling" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2908 $as_echo_n "checking for suffix of executables... " >&6; }
2909 if { { ac_try="$ac_link"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link") 2>&5
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe'), while it won't with
2924 for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error "cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." "$LINENO" 5; }
2939 rm -f conftest$ac_cv_exeext
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2941 $as_echo "$ac_cv_exeext" >&6; }
2943 rm -f conftest.$ac_ext
2944 EXEEXT=$ac_cv_exeext
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2947 $as_echo_n "checking for suffix of object files... " >&6; }
2948 if test "${ac_cv_objext+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2962 rm -f conftest.o conftest.obj
2963 if { { ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_compile") 2>&5
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 for ac_file in conftest.o conftest.obj conftest.*; do
2975 test -f "$ac_file" || continue;
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error "cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." "$LINENO" 5; }
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2994 $as_echo "$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3016 if ac_fn_c_try_compile "$LINENO"; then :
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3027 if test $ac_compiler_gnu = yes; then
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3054 if ac_fn_c_try_compile "$LINENO"; then :
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3085 if ac_fn_c_try_compile "$LINENO"; then :
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3096 $as_echo "$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3106 if test "$GCC" = yes; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3117 ac_cv_prog_cc_c89=no
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3139 s = g (p, va_arg (v,int));
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3145 function prototypes and stuff, but not '\xHH' hex character constants.
3146 These don't provoke an error unfortunately, instead are silently treated
3147 as 'x'. The following induces an error, until -std is added to get
3148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3149 array size at least. It's necessary to write '\x00'==0 to get something
3150 that's true only with -std. */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154 inside strings and character constants. */
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 CC="$ac_save_CC $ac_arg"
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177 ac_cv_prog_cc_c89=$ac_arg
3179 rm -f core conftest.err conftest.$ac_objext
3180 test "x$ac_cv_prog_cc_c89" != "xno" && break
3182 rm -f conftest.$ac_ext
3187 case "x$ac_cv_prog_cc_c89" in
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3190 $as_echo "none needed" >&6; } ;;
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3193 $as_echo "unsupported" >&6; } ;;
3195 CC="$CC $ac_cv_prog_cc_c89"
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3199 if test "x$ac_cv_prog_cc_c89" != xno; then :
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if ac_fn_c_try_cpp "$LINENO"; then :
3249 # Broken: fails on valid input.
3252 rm -f conftest.err conftest.$ac_ext
3254 # OK, works on sane cases. Now check whether nonexistent headers
3255 # can be detected and how.
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <ac_nonexistent.h>
3260 if ac_fn_c_try_cpp "$LINENO"; then :
3261 # Broken: success on invalid input.
3264 # Passes both tests.
3268 rm -f conftest.err conftest.$ac_ext
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3286 $as_echo "$CPP" >&6; }
3288 for ac_c_preproc_warn_flag in '' yes
3290 # Use a header file that comes with gcc, so configuring glibc
3291 # with a fresh cross-compiler works.
3292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293 # <limits.h> exists even on freestanding compilers.
3294 # On the NeXT, cc -E runs the code through the compiler's parser,
3295 # not just through cpp. "Syntax error" is here to catch this case.
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if ac_fn_c_try_cpp "$LINENO"; then :
3308 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317 #include <ac_nonexistent.h>
3319 if ac_fn_c_try_cpp "$LINENO"; then :
3320 # Broken: success on invalid input.
3323 # Passes both tests.
3327 rm -f conftest.err conftest.$ac_ext
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then :
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3338 See \`config.log' for more details." "$LINENO" 5; }
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3350 if test "${ac_cv_path_GREP+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -z "$GREP"; then
3354 ac_path_GREP_found=false
3355 # Loop through the user's path and test for each of PROGNAME-LIST
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360 test -z "$as_dir" && as_dir=.
3361 for ac_prog in grep ggrep; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3365 # Check for GNU ac_path_GREP and select it if it is found.
3366 # Check for GNU $ac_path_GREP
3367 case `"$ac_path_GREP" --version 2>&1` in
3369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3372 $as_echo_n 0123456789 >"conftest.in"
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo 'GREP' >> "conftest.nl"
3379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381 as_fn_arith $ac_count + 1 && ac_count=$as_val
3382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_GREP="$ac_path_GREP"
3385 ac_path_GREP_max=$ac_count
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393 $ac_path_GREP_found && break 3
3398 if test -z "$ac_cv_path_GREP"; then
3399 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3402 ac_cv_path_GREP=$GREP
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3407 $as_echo "$ac_cv_path_GREP" >&6; }
3408 GREP="$ac_cv_path_GREP"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3412 $as_echo_n "checking for egrep... " >&6; }
3413 if test "${ac_cv_path_EGREP+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3417 then ac_cv_path_EGREP="$GREP -E"
3419 if test -z "$EGREP"; then
3420 ac_path_EGREP_found=false
3421 # Loop through the user's path and test for each of PROGNAME-LIST
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3426 test -z "$as_dir" && as_dir=.
3427 for ac_prog in egrep; do
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3431 # Check for GNU ac_path_EGREP and select it if it is found.
3432 # Check for GNU $ac_path_EGREP
3433 case `"$ac_path_EGREP" --version 2>&1` in
3435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3438 $as_echo_n 0123456789 >"conftest.in"
3441 cat "conftest.in" "conftest.in" >"conftest.tmp"
3442 mv "conftest.tmp" "conftest.in"
3443 cp "conftest.in" "conftest.nl"
3444 $as_echo 'EGREP' >> "conftest.nl"
3445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3447 as_fn_arith $ac_count + 1 && ac_count=$as_val
3448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3449 # Best one so far, save it but keep looking for a better one
3450 ac_cv_path_EGREP="$ac_path_EGREP"
3451 ac_path_EGREP_max=$ac_count
3453 # 10*(2^10) chars as input seems more than enough
3454 test $ac_count -gt 10 && break
3456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3459 $ac_path_EGREP_found && break 3
3464 if test -z "$ac_cv_path_EGREP"; then
3465 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3468 ac_cv_path_EGREP=$EGREP
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3474 $as_echo "$ac_cv_path_EGREP" >&6; }
3475 EGREP="$ac_cv_path_EGREP"
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3479 $as_echo_n "checking for ANSI C header files... " >&6; }
3480 if test "${ac_cv_header_stdc+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_header_stdc=yes
3501 ac_cv_header_stdc=no
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 if test $ac_cv_header_stdc = yes; then
3506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3513 $EGREP "memchr" >/dev/null 2>&1; then :
3516 ac_cv_header_stdc=no
3522 if test $ac_cv_header_stdc = yes; then
3523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3530 $EGREP "free" >/dev/null 2>&1; then :
3533 ac_cv_header_stdc=no
3539 if test $ac_cv_header_stdc = yes; then
3540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3541 if test "$cross_compiling" = yes; then :
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 #if ((' ' & 0x0FF) == 0x020)
3549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3552 # define ISLOWER(c) \
3553 (('a' <= (c) && (c) <= 'i') \
3554 || ('j' <= (c) && (c) <= 'r') \
3555 || ('s' <= (c) && (c) <= 'z'))
3556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3564 for (i = 0; i < 256; i++)
3565 if (XOR (islower (i), ISLOWER (i))
3566 || toupper (i) != TOUPPER (i))
3571 if ac_fn_c_try_run "$LINENO"; then :
3574 ac_cv_header_stdc=no
3576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3577 conftest.$ac_objext conftest.beam conftest.$ac_ext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3583 $as_echo "$ac_cv_header_stdc" >&6; }
3584 if test $ac_cv_header_stdc = yes; then
3586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3592 inttypes.h stdint.h unistd.h
3594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3597 eval as_val=\$$as_ac_Header
3598 if test "x$as_val" = x""yes; then :
3599 cat >>confdefs.h <<_ACEOF
3600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3609 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3610 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3617 if test "$MINIX" = yes; then
3619 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3622 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3625 $as_echo "#define _MINIX 1" >>confdefs.h
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3631 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3632 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3638 # define __EXTENSIONS__ 1
3639 $ac_includes_default
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_safe_to_define___extensions__=yes
3651 ac_cv_safe_to_define___extensions__=no
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3657 test $ac_cv_safe_to_define___extensions__ = yes &&
3658 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3660 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3662 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3664 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3666 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3671 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3672 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
3674 if test $ac_cv_c_compiler_gnu = yes; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3676 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3677 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3680 ac_pattern="Autoconf.*'x'"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3688 ac_cv_prog_gcc_traditional=yes
3690 ac_cv_prog_gcc_traditional=no
3695 if test $ac_cv_prog_gcc_traditional = no; then
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3703 ac_cv_prog_gcc_traditional=yes
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3711 if test $ac_cv_prog_gcc_traditional = yes; then
3712 CC="$CC -traditional"
3716 # Find a good install program. We prefer a C program (faster),
3717 # so one script is as good as another. But avoid the broken or
3718 # incompatible versions:
3719 # SysV /etc/install, /usr/sbin/install
3720 # SunOS /usr/etc/install
3721 # IRIX /sbin/install
3723 # AmigaOS /C/install, which installs bootblocks on floppy discs
3724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3727 # OS/2's system install, which has a completely different semantic
3728 # ./install, which can be erroneously created by make from ./install.sh.
3729 # Reject install programs that cannot install multiple files.
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3731 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3732 if test -z "$INSTALL"; then
3733 if test "${ac_cv_path_install+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir=.
3741 # Account for people who put trailing slashes in PATH elements.
3742 case $as_dir/ in #((
3743 ./ | .// | /[cC]/* | \
3744 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3745 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3748 # OSF1 and SCO ODT 3.0 have their own names for install.
3749 # Don't use installbsd from OSF since it installs stuff as root
3751 for ac_prog in ginstall scoinst install; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3754 if test $ac_prog = install &&
3755 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3756 # AIX install. It has an incompatible calling convention.
3758 elif test $ac_prog = install &&
3759 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # program-specific install script used by HP pwplus--don't use.
3763 rm -rf conftest.one conftest.two conftest.dir
3764 echo one > conftest.one
3765 echo two > conftest.two
3767 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3768 test -s conftest.one && test -s conftest.two &&
3769 test -s conftest.dir/conftest.one &&
3770 test -s conftest.dir/conftest.two
3772 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3785 rm -rf conftest.one conftest.two conftest.dir
3788 if test "${ac_cv_path_install+set}" = set; then
3789 INSTALL=$ac_cv_path_install
3791 # As a last resort, use the slow shell script. Don't cache a
3792 # value for INSTALL within a source directory, because that will
3793 # break other packages using the cache if that directory is
3794 # removed, or if the value is a relative name.
3795 INSTALL=$ac_install_sh
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3799 $as_echo "$INSTALL" >&6; }
3801 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3802 # It thinks the first close brace ends the variable substitution.
3803 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3805 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3807 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ar; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_AR+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$AR"; then
3818 ac_cv_prog_AR="$AR" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_AR="${ac_tool_prefix}ar"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$AR"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3840 $as_echo "$AR" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3848 if test -z "$ac_cv_prog_AR"; then
3850 # Extract the first word of "ar", so it can be a program name with args.
3851 set dummy ar; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$ac_ct_AR"; then
3858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 ac_cv_prog_ac_ct_AR="ar"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3878 if test -n "$ac_ct_AR"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3880 $as_echo "$ac_ct_AR" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3886 if test "x$ac_ct_AR" = x; then
3889 case $cross_compiling:$ac_tool_warned in
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3893 ac_tool_warned=yes ;;
3901 test -n "$ARFLAGS" || ARFLAGS="cr"
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 if test -n "$RANLIB"; then
3911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 RANLIB=$ac_cv_prog_RANLIB
3931 if test -n "$RANLIB"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3933 $as_echo "$RANLIB" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3941 if test -z "$ac_cv_prog_RANLIB"; then
3942 ac_ct_RANLIB=$RANLIB
3943 # Extract the first word of "ranlib", so it can be a program name with args.
3944 set dummy ranlib; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$ac_ct_RANLIB"; then
3951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_ac_ct_RANLIB="ranlib"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3971 if test -n "$ac_ct_RANLIB"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3973 $as_echo "$ac_ct_RANLIB" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3979 if test "x$ac_ct_RANLIB" = x; then
3982 case $cross_compiling:$ac_tool_warned in
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3988 RANLIB=$ac_ct_RANLIB
3991 RANLIB="$ac_cv_prog_RANLIB"
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3999 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4000 if test "${ac_cv_c_const+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4009 /* FIXME: Include the comments suggested by Paul. */
4011 /* Ultrix mips cc rejects this. */
4012 typedef int charset[2];
4014 /* SunOS 4.1.1 cc rejects this. */
4015 char const *const *pcpcc;
4017 /* NEC SVR4.0.2 mips cc rejects this. */
4018 struct point {int x, y;};
4019 static struct point const zero = {0,0};
4020 /* AIX XL C 1.02.0.0 rejects this.
4021 It does not let you subtract one const X* pointer from another in
4022 an arm of an if-expression whose if-part is not a constant
4024 const char *g = "string";
4025 pcpcc = &g + (g ? g-g : 0);
4026 /* HPUX 7.0 cc rejects these. */
4028 ppc = (char**) pcpcc;
4029 pcpcc = (char const *const *) ppc;
4030 { /* SCO 3.2v4 cc rejects this. */
4032 char const *s = 0 ? (char *) 0 : (char const *) 0;
4037 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4039 const int *foo = &x[0];
4042 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4043 typedef const int *iptr;
4047 { /* AIX XL C 1.02.0.0 rejects this saying
4048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4049 struct s { int j; const int *ap[3]; };
4050 struct s *b; b->j = 5;
4052 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4056 return !cs[0] && !zero.x;
4063 if ac_fn_c_try_compile "$LINENO"; then :
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4071 $as_echo "$ac_cv_c_const" >&6; }
4072 if test $ac_cv_c_const = no; then
4074 $as_echo "#define const /**/" >>confdefs.h
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4079 $as_echo_n "checking for function prototypes... " >&6; }
4080 if test "$ac_cv_prog_cc_c89" != no; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082 $as_echo "yes" >&6; }
4084 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4087 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
4095 $as_echo_n "checking whether char is unsigned... " >&6; }
4096 if test "${ac_cv_c_char_unsigned+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 $ac_includes_default
4105 static int test_array [1 - 2 * !(((char) -1) < 0)];
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_cv_c_char_unsigned=no
4115 ac_cv_c_char_unsigned=yes
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
4120 $as_echo "$ac_cv_c_char_unsigned" >&6; }
4121 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4122 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4127 $as_echo_n "checking for working volatile... " >&6; }
4128 if test "${ac_cv_c_volatile+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4139 int * volatile y = (int *) 0;
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_c_volatile=yes
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4153 $as_echo "$ac_cv_c_volatile" >&6; }
4154 if test $ac_cv_c_volatile = no; then
4156 $as_echo "#define volatile /**/" >>confdefs.h
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4162 $as_echo_n "checking return type of signal handlers... " >&6; }
4163 if test "${ac_cv_type_signal+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <sys/types.h>
4174 return *(signal (0, 0)) (0) == 1;
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_type_signal=int
4182 ac_cv_type_signal=void
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4187 $as_echo "$ac_cv_type_signal" >&6; }
4189 cat >>confdefs.h <<_ACEOF
4190 #define RETSIGTYPE $ac_cv_type_signal
4195 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4196 if test "x$ac_cv_type_size_t" = x""yes; then :
4200 cat >>confdefs.h <<_ACEOF
4201 #define size_t unsigned int
4206 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4207 if test "x$ac_cv_type_ssize_t" = x""yes; then :
4211 cat >>confdefs.h <<_ACEOF
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4219 $as_echo_n "checking for ANSI C header files... " >&6; }
4220 if test "${ac_cv_header_stdc+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_cv_header_stdc=yes
4241 ac_cv_header_stdc=no
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 if test $ac_cv_header_stdc = yes; then
4246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253 $EGREP "memchr" >/dev/null 2>&1; then :
4256 ac_cv_header_stdc=no
4262 if test $ac_cv_header_stdc = yes; then
4263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "free" >/dev/null 2>&1; then :
4273 ac_cv_header_stdc=no
4279 if test $ac_cv_header_stdc = yes; then
4280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281 if test "$cross_compiling" = yes; then :
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4288 #if ((' ' & 0x0FF) == 0x020)
4289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4292 # define ISLOWER(c) \
4293 (('a' <= (c) && (c) <= 'i') \
4294 || ('j' <= (c) && (c) <= 'r') \
4295 || ('s' <= (c) && (c) <= 'z'))
4296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304 for (i = 0; i < 256; i++)
4305 if (XOR (islower (i), ISLOWER (i))
4306 || toupper (i) != TOUPPER (i))
4311 if ac_fn_c_try_run "$LINENO"; then :
4314 ac_cv_header_stdc=no
4316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4317 conftest.$ac_objext conftest.beam conftest.$ac_ext
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4323 $as_echo "$ac_cv_header_stdc" >&6; }
4324 if test $ac_cv_header_stdc = yes; then
4326 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4332 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4333 if test "${ac_cv_header_stat_broken+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 #include <sys/stat.h>
4341 #if defined S_ISBLK && defined S_IFDIR
4342 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4345 #if defined S_ISBLK && defined S_IFCHR
4346 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4349 #if defined S_ISLNK && defined S_IFREG
4350 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4353 #if defined S_ISSOCK && defined S_IFREG
4354 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_header_stat_broken=no
4361 ac_cv_header_stat_broken=yes
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4366 $as_echo "$ac_cv_header_stat_broken" >&6; }
4367 if test $ac_cv_header_stat_broken = yes; then
4369 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4375 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4377 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4379 $as_echo_n "(cached) " >&6
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 eval "$as_ac_Header=yes"
4398 eval "$as_ac_Header=no"
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 eval ac_res=\$$as_ac_Header
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4404 $as_echo "$ac_res" >&6; }
4405 eval as_val=\$$as_ac_Header
4406 if test "x$as_val" = x""yes; then :
4407 cat >>confdefs.h <<_ACEOF
4408 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4411 ac_header_dirent=$ac_hdr; break
4415 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4416 if test $ac_header_dirent = dirent.h; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4418 $as_echo_n "checking for library containing opendir... " >&6; }
4419 if test "${ac_cv_search_opendir+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_func_search_save_LIBS=$LIBS
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4426 /* Override any GCC internal prototype to avoid an error.
4427 Use char because int might match the return type of a GCC
4428 builtin and then its argument prototype would still apply. */
4441 for ac_lib in '' dir; do
4442 if test -z "$ac_lib"; then
4443 ac_res="none required"
4446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4448 if ac_fn_c_try_link "$LINENO"; then :
4449 ac_cv_search_opendir=$ac_res
4451 rm -f core conftest.err conftest.$ac_objext \
4453 if test "${ac_cv_search_opendir+set}" = set; then :
4457 if test "${ac_cv_search_opendir+set}" = set; then :
4460 ac_cv_search_opendir=no
4463 LIBS=$ac_func_search_save_LIBS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4466 $as_echo "$ac_cv_search_opendir" >&6; }
4467 ac_res=$ac_cv_search_opendir
4468 if test "$ac_res" != no; then :
4469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4475 $as_echo_n "checking for library containing opendir... " >&6; }
4476 if test "${ac_cv_search_opendir+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4479 ac_func_search_save_LIBS=$LIBS
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4483 /* Override any GCC internal prototype to avoid an error.
4484 Use char because int might match the return type of a GCC
4485 builtin and then its argument prototype would still apply. */
4498 for ac_lib in '' x; do
4499 if test -z "$ac_lib"; then
4500 ac_res="none required"
4503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4505 if ac_fn_c_try_link "$LINENO"; then :
4506 ac_cv_search_opendir=$ac_res
4508 rm -f core conftest.err conftest.$ac_objext \
4510 if test "${ac_cv_search_opendir+set}" = set; then :
4514 if test "${ac_cv_search_opendir+set}" = set; then :
4517 ac_cv_search_opendir=no
4520 LIBS=$ac_func_search_save_LIBS
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4523 $as_echo "$ac_cv_search_opendir" >&6; }
4524 ac_res=$ac_cv_search_opendir
4525 if test "$ac_res" != no; then :
4526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4533 for ac_func in fcntl kill lstat readlink
4535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4537 eval as_val=\$$as_ac_var
4538 if test "x$as_val" = x""yes; then :
4539 cat >>confdefs.h <<_ACEOF
4540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4546 for ac_func in memmove pselect putenv select setenv setlocale \
4547 strcasecmp strpbrk tcgetattr vsnprintf
4549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4551 eval as_val=\$$as_ac_var
4552 if test "x$as_val" = x""yes; then :
4553 cat >>confdefs.h <<_ACEOF
4554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4560 for ac_func in isascii isxdigit
4562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4564 eval as_val=\$$as_ac_var
4565 if test "x$as_val" = x""yes; then :
4566 cat >>confdefs.h <<_ACEOF
4567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4573 for ac_func in getpwent getpwnam getpwuid
4575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4577 eval as_val=\$$as_ac_var
4578 if test "x$as_val" = x""yes; then :
4579 cat >>confdefs.h <<_ACEOF
4580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4588 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4589 if test "${ac_cv_type_uid_t+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <sys/types.h>
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "uid_t" >/dev/null 2>&1; then :
4599 ac_cv_type_uid_t=yes
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4607 $as_echo "$ac_cv_type_uid_t" >&6; }
4608 if test $ac_cv_type_uid_t = no; then
4610 $as_echo "#define uid_t int" >>confdefs.h
4613 $as_echo "#define gid_t int" >>confdefs.h
4617 for ac_header in unistd.h
4619 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4620 if test "x$ac_cv_header_unistd_h" = x""yes; then :
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_UNISTD_H 1
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4630 $as_echo_n "checking for working chown... " >&6; }
4631 if test "${ac_cv_func_chown_works+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if test "$cross_compiling" = yes; then :
4635 ac_cv_func_chown_works=no
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 $ac_includes_default
4645 char *f = "conftest.chown";
4646 struct stat before, after;
4648 if (creat (f, 0600) < 0)
4650 if (stat (f, &before) < 0)
4652 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4654 if (stat (f, &after) < 0)
4656 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4662 if ac_fn_c_try_run "$LINENO"; then :
4663 ac_cv_func_chown_works=yes
4665 ac_cv_func_chown_works=no
4667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4668 conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 rm -f conftest.chown
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4675 $as_echo "$ac_cv_func_chown_works" >&6; }
4676 if test $ac_cv_func_chown_works = yes; then
4678 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
4683 $as_echo_n "checking for working strcoll... " >&6; }
4684 if test "${ac_cv_func_strcoll_works+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 if test "$cross_compiling" = yes; then :
4688 ac_cv_func_strcoll_works=no
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 $ac_includes_default
4696 return (strcoll ("abc", "def") >= 0 ||
4697 strcoll ("ABC", "DEF") >= 0 ||
4698 strcoll ("123", "456") >= 0)
4703 if ac_fn_c_try_run "$LINENO"; then :
4704 ac_cv_func_strcoll_works=yes
4706 ac_cv_func_strcoll_works=no
4708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
4714 $as_echo "$ac_cv_func_strcoll_works" >&6; }
4715 if test $ac_cv_func_strcoll_works = yes; then
4717 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
4722 for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \
4723 string.h strings.h \
4724 limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4728 eval as_val=\$$as_ac_Header
4729 if test "x$as_val" = x""yes; then :
4730 cat >>confdefs.h <<_ACEOF
4731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 for ac_header in sys/ioctl.h sys/pte.h sys/stream.h sys/select.h sys/file.h
4740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4742 eval as_val=\$$as_ac_Header
4743 if test "x$as_val" = x""yes; then :
4744 cat >>confdefs.h <<_ACEOF
4745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 for ac_header in sys/ptem.h
4755 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "
4756 #if HAVE_SYS_STREAM_H
4757 # include <sys/stream.h>
4761 if test "x$ac_cv_header_sys_ptem_h" = x""yes; then :
4762 cat >>confdefs.h <<_ACEOF
4763 #define HAVE_SYS_PTEM_H 1
4771 # Check whether --enable-largefile was given.
4772 if test "${enable_largefile+set}" = set; then :
4773 enableval=$enable_largefile;
4776 if test "$enable_largefile" != no; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4779 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4780 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 ac_cv_sys_largefile_CC=no
4784 if test "$GCC" != yes; then
4787 # IRIX 6.2 and later do not support large files by default,
4788 # so use the C compiler's -n32 option if that helps.
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4808 if ac_fn_c_try_compile "$LINENO"; then :
4811 rm -f core conftest.err conftest.$ac_objext
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_cv_sys_largefile_CC=' -n32'; break
4816 rm -f core conftest.err conftest.$ac_objext
4820 rm -f conftest.$ac_ext
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4824 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4825 if test "$ac_cv_sys_largefile_CC" != no; then
4826 CC=$CC$ac_cv_sys_largefile_CC
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4830 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4831 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <sys/types.h>
4838 /* Check that off_t can represent 2**63 - 1 correctly.
4839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4840 since some C++ compilers masquerading as C compilers
4841 incorrectly reject 9223372036854775807. */
4842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4844 && LARGE_OFF_T % 2147483647 == 1)
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_cv_sys_file_offset_bits=no; break
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #define _FILE_OFFSET_BITS 64
4861 #include <sys/types.h>
4862 /* Check that off_t can represent 2**63 - 1 correctly.
4863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4864 since some C++ compilers masquerading as C compilers
4865 incorrectly reject 9223372036854775807. */
4866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4868 && LARGE_OFF_T % 2147483647 == 1)
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_sys_file_offset_bits=64; break
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_cv_sys_file_offset_bits=unknown
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4887 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4888 case $ac_cv_sys_file_offset_bits in #(
4891 cat >>confdefs.h <<_ACEOF
4892 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4897 if test $ac_cv_sys_file_offset_bits = unknown; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4899 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4900 if test "${ac_cv_sys_large_files+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #include <sys/types.h>
4907 /* Check that off_t can represent 2**63 - 1 correctly.
4908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4909 since some C++ compilers masquerading as C compilers
4910 incorrectly reject 9223372036854775807. */
4911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4913 && LARGE_OFF_T % 2147483647 == 1)
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_sys_large_files=no; break
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #define _LARGE_FILES 1
4930 #include <sys/types.h>
4931 /* Check that off_t can represent 2**63 - 1 correctly.
4932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4933 since some C++ compilers masquerading as C compilers
4934 incorrectly reject 9223372036854775807. */
4935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4937 && LARGE_OFF_T % 2147483647 == 1)
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 ac_cv_sys_large_files=1; break
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_sys_large_files=unknown
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4956 $as_echo "$ac_cv_sys_large_files" >&6; }
4957 case $ac_cv_sys_large_files in #(
4960 cat >>confdefs.h <<_ACEOF
4961 #define _LARGE_FILES $ac_cv_sys_large_files
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
4972 $as_echo_n "checking for type of signal functions... " >&6; }
4973 if test "${bash_cv_signal_vintage+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4985 struct sigaction sa;
4986 sigemptyset(&ss); sigsuspend(&ss);
4987 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4988 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4994 if ac_fn_c_try_link "$LINENO"; then :
4995 bash_cv_signal_vintage=posix
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5005 int mask = sigmask(SIGINT);
5006 sigsetmask(mask); sigblock(mask); sigpause(mask);
5012 if ac_fn_c_try_link "$LINENO"; then :
5013 bash_cv_signal_vintage=4.2bsd
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5020 RETSIGTYPE foo() { }
5025 int mask = sigmask(SIGINT);
5026 sigset(SIGINT, foo); sigrelse(SIGINT);
5027 sighold(SIGINT); sigpause(SIGINT);
5033 if ac_fn_c_try_link "$LINENO"; then :
5034 bash_cv_signal_vintage=svr3
5036 bash_cv_signal_vintage=v7
5039 rm -f core conftest.err conftest.$ac_objext \
5040 conftest$ac_exeext conftest.$ac_ext
5043 rm -f core conftest.err conftest.$ac_objext \
5044 conftest$ac_exeext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext \
5048 conftest$ac_exeext conftest.$ac_ext
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
5053 $as_echo "$bash_cv_signal_vintage" >&6; }
5054 if test "$bash_cv_signal_vintage" = posix; then
5055 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
5057 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5058 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
5060 elif test "$bash_cv_signal_vintage" = svr3; then
5061 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5
5068 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
5069 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5072 if test "$cross_compiling" = yes; then :
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5074 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5075 bash_cv_must_reinstall_sighandlers=no
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5082 #ifdef HAVE_UNISTD_H
5086 typedef RETSIGTYPE sigfunc();
5090 #ifdef HAVE_POSIX_SIGNALS
5092 set_signal_handler(sig, handler)
5096 struct sigaction act, oact;
5097 act.sa_handler = handler;
5099 sigemptyset (&act.sa_mask);
5100 sigemptyset (&oact.sa_mask);
5101 sigaction (sig, &act, &oact);
5102 return (oact.sa_handler);
5105 #define set_signal_handler(s, h) signal(s, h)
5118 set_signal_handler(SIGINT, sigint);
5119 kill((int)getpid(), SIGINT);
5120 kill((int)getpid(), SIGINT);
5125 if ac_fn_c_try_run "$LINENO"; then :
5126 bash_cv_must_reinstall_sighandlers=no
5128 bash_cv_must_reinstall_sighandlers=yes
5130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5131 conftest.$ac_objext conftest.beam conftest.$ac_ext
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5
5137 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
5138 if test $bash_cv_must_reinstall_sighandlers = yes; then
5139 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5146 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
5147 if test "${bash_cv_func_sigsetjmp+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5150 if test "$cross_compiling" = yes; then :
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5152 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5153 bash_cv_func_sigsetjmp=missing
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5159 #ifdef HAVE_UNISTD_H
5162 #include <sys/types.h>
5168 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5179 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5180 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5183 code = sigsetjmp(xx, 1);
5185 exit(0); /* could get sigmask and compare to oset here. */
5188 sigaddset(&set, SIGINT);
5189 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5191 /* and siglongjmp */
5197 if ac_fn_c_try_run "$LINENO"; then :
5198 bash_cv_func_sigsetjmp=present
5200 bash_cv_func_sigsetjmp=missing
5202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5203 conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5
5209 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
5210 if test $bash_cv_func_sigsetjmp = present; then
5211 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
5216 $as_echo_n "checking for lstat... " >&6; }
5217 if test "${bash_cv_func_lstat+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5223 #include <sys/types.h>
5224 #include <sys/stat.h>
5229 lstat(".",(struct stat *)0);
5234 if ac_fn_c_try_link "$LINENO"; then :
5235 bash_cv_func_lstat=yes
5237 bash_cv_func_lstat=no
5239 rm -f core conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5
5243 $as_echo "$bash_cv_func_lstat" >&6; }
5244 if test $bash_cv_func_lstat = yes; then
5245 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5
5251 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
5252 if test "${bash_cv_func_strcoll_broken+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 if test "$cross_compiling" = yes; then :
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5257 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5258 bash_cv_func_strcoll_broken=no
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5265 #if defined (HAVE_LOCALE_H)
5274 char *deflocale, *defcoll;
5276 #ifdef HAVE_SETLOCALE
5277 deflocale = setlocale(LC_ALL, "");
5278 defcoll = setlocale(LC_COLLATE, "");
5282 /* These two values are taken from tests/glob-test. */
5283 r1 = strcoll("abd", "aXd");
5287 r2 = strcmp("abd", "aXd");
5289 /* These two should both be greater than 0. It is permissible for
5290 a system to return different values, as long as the sign is the
5293 /* Exit with 1 (failure) if these two values are both > 0, since
5294 this tests whether strcoll(3) is broken with respect to strcmp(3)
5295 in the default locale. */
5296 exit (r1 > 0 && r2 > 0);
5300 if ac_fn_c_try_run "$LINENO"; then :
5301 bash_cv_func_strcoll_broken=yes
5303 bash_cv_func_strcoll_broken=no
5305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5306 conftest.$ac_objext conftest.beam conftest.$ac_ext
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5
5312 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
5313 if test $bash_cv_func_strcoll_broken = yes; then
5314 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5
5320 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
5321 if test "${bash_cv_func_ctype_nonascii+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5324 if test "$cross_compiling" = yes; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5326 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5327 bash_cv_func_ctype_nonascii=no
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5333 #ifdef HAVE_LOCALE_H
5347 #ifdef HAVE_SETLOCALE
5348 /* We take a shot here. If that locale is not known, try the
5349 system default. We try this one because '\342' (226) is
5350 known to be a printable character in that locale. */
5351 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5353 deflocale = setlocale(LC_ALL, "");
5360 exit (r1 == 0 || r2 == 0);
5364 if ac_fn_c_try_run "$LINENO"; then :
5365 bash_cv_func_ctype_nonascii=yes
5367 bash_cv_func_ctype_nonascii=no
5369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370 conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5
5376 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
5377 if test $bash_cv_func_ctype_nonascii = yes; then
5378 $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5
5384 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
5385 if test "${bash_cv_getpw_declared+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 #include <sys/types.h>
5392 #ifdef HAVE_UNISTD_H
5393 # include <unistd.h>
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "getpwuid" >/dev/null 2>&1; then :
5400 bash_cv_getpw_declared=yes
5402 bash_cv_getpw_declared=no
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5
5409 $as_echo "$bash_cv_getpw_declared" >&6; }
5410 if test $bash_cv_getpw_declared = yes; then
5411 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5417 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5418 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #include <sys/types.h>
5424 #include <termios.h>
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "yes" >/dev/null 2>&1; then :
5432 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5434 ac_cv_sys_tiocgwinsz_in_termios_h=no
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5440 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5442 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5444 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5445 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <sys/types.h>
5451 #include <sys/ioctl.h>
5457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5458 $EGREP "yes" >/dev/null 2>&1; then :
5459 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5461 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5467 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5469 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5471 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5
5478 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
5479 if test "${ac_cv_have_sig_atomic_t+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_have_sig_atomic_t=yes
5498 ac_cv_have_sig_atomic_t=no
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5
5504 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
5505 if test "$ac_cv_have_sig_atomic_t" = "no"
5507 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default"
5508 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
5512 cat >>confdefs.h <<_ACEOF
5513 #define sig_atomic_t int
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5
5521 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
5522 if test "${bash_cv_void_sighandler+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <sys/types.h>
5535 void (*signal ()) ();
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 bash_cv_void_sighandler=yes
5547 bash_cv_void_sighandler=no
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5
5552 $as_echo "$bash_cv_void_sighandler" >&6; }
5553 if test $bash_cv_void_sighandler = yes; then
5554 $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5
5560 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
5561 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <sys/types.h>
5567 #include <sys/ioctl.h>
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 bash_cv_tiocstat_in_ioctl=yes
5579 bash_cv_tiocstat_in_ioctl=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5
5585 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
5586 if test $bash_cv_tiocstat_in_ioctl = yes; then
5587 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5
5592 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
5593 if test "${bash_cv_fionread_in_ioctl+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #include <sys/types.h>
5599 #include <sys/ioctl.h>
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 bash_cv_fionread_in_ioctl=yes
5611 bash_cv_fionread_in_ioctl=no
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5
5617 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
5618 if test $bash_cv_fionread_in_ioctl = yes; then
5619 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5
5624 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
5625 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 bash_cv_speed_t_in_sys_types=yes
5642 bash_cv_speed_t_in_sys_types=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5
5648 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
5649 if test $bash_cv_speed_t_in_sys_types = yes; then
5650 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5655 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
5656 if test "${bash_cv_struct_winsize_header+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 #include <sys/ioctl.h>
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 bash_cv_struct_winsize_header=ioctl_h
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <sys/types.h>
5677 #include <termios.h>
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 bash_cv_struct_winsize_header=termios_h
5689 bash_cv_struct_winsize_header=other
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 if test $bash_cv_struct_winsize_header = ioctl_h; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5
5699 $as_echo "sys/ioctl.h" >&6; }
5700 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h
5702 elif test $bash_cv_struct_winsize_header = termios_h; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5
5704 $as_echo "termios.h" >&6; }
5705 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5709 $as_echo "not found" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5
5714 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
5715 if test "${bash_cv_dirent_has_dino+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5722 #include <sys/types.h>
5723 #ifdef HAVE_UNISTD_H
5724 # include <unistd.h>
5725 #endif /* HAVE_UNISTD_H */
5726 #if defined(HAVE_DIRENT_H)
5727 # include <dirent.h>
5729 # define dirent direct
5730 # ifdef HAVE_SYS_NDIR_H
5731 # include <sys/ndir.h>
5732 # endif /* SYSNDIR */
5733 # ifdef HAVE_SYS_DIR_H
5734 # include <sys/dir.h>
5735 # endif /* SYSDIR */
5739 #endif /* HAVE_DIRENT_H */
5745 struct dirent d; int z; z = d.d_ino;
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 bash_cv_dirent_has_dino=yes
5754 bash_cv_dirent_has_dino=no
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5
5760 $as_echo "$bash_cv_dirent_has_dino" >&6; }
5761 if test $bash_cv_dirent_has_dino = yes; then
5762 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5
5768 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
5769 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5776 #include <sys/types.h>
5777 #ifdef HAVE_UNISTD_H
5778 # include <unistd.h>
5779 #endif /* HAVE_UNISTD_H */
5780 #if defined(HAVE_DIRENT_H)
5781 # include <dirent.h>
5783 # define dirent direct
5784 # ifdef HAVE_SYS_NDIR_H
5785 # include <sys/ndir.h>
5786 # endif /* SYSNDIR */
5787 # ifdef HAVE_SYS_DIR_H
5788 # include <sys/dir.h>
5789 # endif /* SYSDIR */
5793 #endif /* HAVE_DIRENT_H */
5799 struct dirent d; int z; z = d.d_fileno;
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 bash_cv_dirent_has_d_fileno=yes
5808 bash_cv_dirent_has_d_fileno=no
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5
5814 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
5815 if test $bash_cv_dirent_has_d_fileno = yes; then
5816 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h
5821 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
5823 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = x""yes; then :
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl
5835 aix*) prefer_curses=yes ;;
5838 if test "X$bash_cv_termcap_lib" = "X"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
5842 $as_echo_n "checking which library has the termcap functions... " >&6; }
5845 if test "${bash_cv_termcap_lib+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
5849 if test "x$ac_cv_func_tgetent" = x""yes; then :
5850 bash_cv_termcap_lib=libc
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
5853 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5854 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5857 ac_check_lib_save_LIBS=$LIBS
5858 LIBS="-ltermcap $LIBS"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5862 /* Override any GCC internal prototype to avoid an error.
5863 Use char because int might match the return type of a GCC
5864 builtin and then its argument prototype would still apply. */
5877 if ac_fn_c_try_link "$LINENO"; then :
5878 ac_cv_lib_termcap_tgetent=yes
5880 ac_cv_lib_termcap_tgetent=no
5882 rm -f core conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5884 LIBS=$ac_check_lib_save_LIBS
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
5887 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5888 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
5889 bash_cv_termcap_lib=libtermcap
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
5892 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5893 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-ltinfo $LIBS"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 if ac_fn_c_try_link "$LINENO"; then :
5917 ac_cv_lib_tinfo_tgetent=yes
5919 ac_cv_lib_tinfo_tgetent=no
5921 rm -f core conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
5923 LIBS=$ac_check_lib_save_LIBS
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
5926 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5927 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
5928 bash_cv_termcap_lib=libtinfo
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
5931 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5932 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lcurses $LIBS"
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5940 /* Override any GCC internal prototype to avoid an error.
5941 Use char because int might match the return type of a GCC
5942 builtin and then its argument prototype would still apply. */
5955 if ac_fn_c_try_link "$LINENO"; then :
5956 ac_cv_lib_curses_tgetent=yes
5958 ac_cv_lib_curses_tgetent=no
5960 rm -f core conftest.err conftest.$ac_objext \
5961 conftest$ac_exeext conftest.$ac_ext
5962 LIBS=$ac_check_lib_save_LIBS
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
5965 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5966 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
5967 bash_cv_termcap_lib=libcurses
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
5970 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5971 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 ac_check_lib_save_LIBS=$LIBS
5975 LIBS="-lncurses $LIBS"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_lib_ncurses_tgetent=yes
5997 ac_cv_lib_ncurses_tgetent=no
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6004 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6005 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
6006 bash_cv_termcap_lib=libncurses
6008 bash_cv_termcap_lib=gnutermcap
6021 if test "X$_bash_needmsg" = "Xyes"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
6023 $as_echo_n "checking which library has the termcap functions... " >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5
6026 $as_echo "using $bash_cv_termcap_lib" >&6; }
6027 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
6028 LDFLAGS="$LDFLAGS -L./lib/termcap"
6029 TERMCAP_LIB="./lib/termcap/libtermcap.a"
6030 TERMCAP_DEP="./lib/termcap/libtermcap.a"
6031 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
6032 TERMCAP_LIB=-ltermcap
6034 elif test $bash_cv_termcap_lib = libtinfo; then
6037 elif test $bash_cv_termcap_lib = libncurses; then
6038 TERMCAP_LIB=-lncurses
6040 elif test $bash_cv_termcap_lib = libc; then
6044 TERMCAP_LIB=-lcurses
6048 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6049 if test "$prefer_curses" = yes; then
6050 TERMCAP_LIB=-lcurses
6052 TERMCAP_LIB=-ltermcap #default
6055 # Windows ncurses installation
6056 if test "$TERMCAP_LIB" = "-lncurses"; then
6057 for ac_header in ncurses/termcap.h
6059 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
6060 if test "x$ac_cv_header_ncurses_termcap_h" = x""yes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_NCURSES_TERMCAP_H 1
6072 for ac_header in wctype.h
6074 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6075 if test "x$ac_cv_header_wctype_h" = x""yes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_WCTYPE_H 1
6084 for ac_header in wchar.h
6086 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6087 if test "x$ac_cv_header_wchar_h" = x""yes; then :
6088 cat >>confdefs.h <<_ACEOF
6089 #define HAVE_WCHAR_H 1
6096 for ac_header in langinfo.h
6098 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6099 if test "x$ac_cv_header_langinfo_h" = x""yes; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define HAVE_LANGINFO_H 1
6109 for ac_header in mbstr.h
6111 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
6112 if test "x$ac_cv_header_mbstr_h" = x""yes; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_MBSTR_H 1
6122 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
6123 if test "x$ac_cv_func_mbrlen" = x""yes; then :
6124 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
6128 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp"
6129 if test "x$ac_cv_func_mbscasecmp" = x""yes; then :
6130 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6134 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp"
6135 if test "x$ac_cv_func_mbscmp" = x""yes; then :
6136 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h
6140 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs"
6141 if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then :
6142 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h
6146 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
6147 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then :
6148 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h
6153 for ac_func in mbschr
6155 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr"
6156 if test "x$ac_cv_func_mbschr" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_MBSCHR 1
6162 case " $LIBOBJS " in
6163 *" $ac_func.$ac_objext "* ) ;;
6164 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6173 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
6174 if test "x$ac_cv_func_wcrtomb" = x""yes; then :
6175 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h
6179 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
6180 if test "x$ac_cv_func_wcscoll" = x""yes; then :
6181 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h
6185 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
6186 if test "x$ac_cv_func_wcsdup" = x""yes; then :
6187 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h
6191 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
6192 if test "x$ac_cv_func_wcwidth" = x""yes; then :
6193 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h
6197 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6198 if test "x$ac_cv_func_wctype" = x""yes; then :
6199 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h
6204 for ac_func in wcswidth
6206 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
6207 if test "x$ac_cv_func_wcswidth" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_WCSWIDTH 1
6213 case " $LIBOBJS " in
6214 *" $ac_func.$ac_objext "* ) ;;
6215 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6226 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6227 if test "${ac_cv_func_mbrtowc+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6237 char const s[] = "";
6240 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6245 if ac_fn_c_try_link "$LINENO"; then :
6246 ac_cv_func_mbrtowc=yes
6248 ac_cv_func_mbrtowc=no
6250 rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6254 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6255 if test $ac_cv_func_mbrtowc = yes; then
6257 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6261 if test $ac_cv_func_mbrtowc = yes; then
6262 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6266 for ac_func in iswlower iswupper towlower towupper iswctype
6268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6270 eval as_val=\$$as_ac_var
6271 if test "x$as_val" = x""yes; then :
6272 cat >>confdefs.h <<_ACEOF
6273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6281 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6282 if test "${bash_cv_langinfo_codeset+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <langinfo.h>
6291 char* cs = nl_langinfo(CODESET);
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 bash_cv_langinfo_codeset=yes
6299 bash_cv_langinfo_codeset=no
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5
6305 $as_echo "$bash_cv_langinfo_codeset" >&6; }
6306 if test $bash_cv_langinfo_codeset = yes; then
6307 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5
6312 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
6313 if test "${bash_cv_type_wchar_t+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332 bash_cv_type_wchar_t=yes
6334 bash_cv_type_wchar_t=no
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5
6339 $as_echo "$bash_cv_type_wchar_t" >&6; }
6340 if test $bash_cv_type_wchar_t = yes; then
6342 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5
6347 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
6348 if test "${bash_cv_type_wctype_t+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 bash_cv_type_wctype_t=yes
6368 bash_cv_type_wctype_t=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5
6373 $as_echo "$bash_cv_type_wctype_t" >&6; }
6374 if test $bash_cv_type_wctype_t = yes; then
6376 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5
6381 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
6382 if test "${bash_cv_type_wint_t+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 bash_cv_type_wint_t=yes
6402 bash_cv_type_wint_t=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5
6407 $as_echo "$bash_cv_type_wint_t" >&6; }
6408 if test $bash_cv_type_wint_t = yes; then
6410 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5
6415 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
6416 if test "${bash_cv_wcwidth_broken+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6419 if test "$cross_compiling" = yes; then :
6420 bash_cv_wcwidth_broken=no
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6438 setlocale(LC_ALL, "en_US.UTF-8");
6439 w = wcwidth (0x0301);
6440 exit (w == 0); /* exit 0 if wcwidth broken */
6444 if ac_fn_c_try_run "$LINENO"; then :
6445 bash_cv_wcwidth_broken=yes
6447 bash_cv_wcwidth_broken=no
6449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6450 conftest.$ac_objext conftest.beam conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5
6455 $as_echo "$bash_cv_wcwidth_broken" >&6; }
6456 if test "$bash_cv_wcwidth_broken" = yes; then
6458 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h
6462 if test "$am_cv_func_iconv" = yes; then
6464 LIBS="$LIBS $LIBINTL $LIBICONV"
6465 for ac_func in locale_charset
6467 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
6468 if test "x$ac_cv_func_locale_charset" = x""yes; then :
6469 cat >>confdefs.h <<_ACEOF
6470 #define HAVE_LOCALE_CHARSET 1
6482 *cray*) LOCAL_CFLAGS=-DCRAY ;;
6483 *s390*) LOCAL_CFLAGS=-fsigned-char ;;
6487 isc*) LOCAL_CFLAGS=-Disc386 ;;
6490 # shared library configuration section
6492 # Shared object configuration section. These values are generated by
6493 # ${srcdir}/support/shobj-conf
6495 if test -f ${srcdir}/support/shobj-conf; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5
6497 $as_echo_n "checking configuration for building shared libraries... " >&6; }
6498 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6500 # case "$SHLIB_LIBS" in
6501 # *curses*|*termcap*|*termlib*) ;;
6502 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5
6521 $as_echo "$SHLIB_STATUS" >&6; }
6523 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6524 # `unsupported', turn off any default shared library building
6525 if test "$SHLIB_STATUS" = 'unsupported'; then
6529 # shared library versioning
6530 # quoted for m4 so I can use character classes
6531 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6532 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6537 if test "$opt_static_libs" = "yes"; then
6538 STATIC_TARGET=static
6539 STATIC_INSTALL_TARGET=install-static
6541 if test "$opt_shared_libs" = "yes"; then
6542 SHARED_TARGET=shared
6543 SHARED_INSTALL_TARGET=install-shared
6552 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
6553 *) BUILD_DIR=`pwd` ;;
6556 case "$BUILD_DIR" in
6557 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
6579 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
6581 ac_config_commands="$ac_config_commands default"
6583 cat >confcache <<\_ACEOF
6584 # This file is a shell script that caches the results of configure
6585 # tests run on this system so they can be shared between configure
6586 # scripts and configure runs, see configure's option --config-cache.
6587 # It is not useful on other systems. If it contains results you don't
6588 # want to keep, you may remove or edit it.
6590 # config.status only pays attention to the cache file if you give it
6591 # the --recheck option to rerun configure.
6593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6599 # The following way of writing the cache mishandles newlines in values,
6600 # but we know of no workaround that is simple, portable, and efficient.
6601 # So, we kill variables containing newlines.
6602 # Ultrix sh set writes to stderr and can't be redirected directly,
6603 # and sets the high bit in the cache file unless we assign to the vars.
6605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6606 eval ac_val=\$$ac_var
6610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6614 _ | IFS | as_nl) ;; #(
6615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6616 *) { eval $ac_var=; unset $ac_var;} ;;
6622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6623 *${as_nl}ac_space=\ *)
6624 # `set' does not quote correctly, so add quotes: double-quote
6625 # substitution turns \\\\ into \\, and sed turns \\ into \.
6628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6631 # `set' quotes correctly as required by POSIX, so do not add quotes.
6632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6646 if test -w "$cache_file"; then
6647 test "x$cache_file" != "x/dev/null" &&
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6649 $as_echo "$as_me: updating cache $cache_file" >&6;}
6650 cat confcache >$cache_file
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6659 # Let make expand exec_prefix.
6660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6662 DEFS=-DHAVE_CONFIG_H
6666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6667 # 1. Remove the extension, and $U if already installed.
6668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6671 # will be set to the directory where LIBOBJS objects are built.
6672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6677 LTLIBOBJS=$ac_ltlibobjs
6681 : ${CONFIG_STATUS=./config.status}
6683 ac_clean_files_save=$ac_clean_files
6684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6690 # Generated by $as_me.
6691 # Run this file to recreate the current configuration.
6692 # Compiler output produced by configure, useful for debugging
6693 # configure, is in config.log if it exists.
6699 SHELL=\${CONFIG_SHELL-$SHELL}
6702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6703 ## -------------------- ##
6704 ## M4sh Initialization. ##
6705 ## -------------------- ##
6707 # Be more Bourne compatible
6708 DUALCASE=1; export DUALCASE # for MKS sh
6709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6713 # is contrary to our usage. Disable this feature.
6714 alias -g '${1+"$@"}'='"$@"'
6715 setopt NO_GLOB_SUBST
6717 case `(set -o) 2>/dev/null` in #(
6729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6733 # Prefer a ksh shell builtin over an external printf program on Solaris,
6734 # but without wasting forks for bash or zsh.
6735 if test -z "$BASH_VERSION$ZSH_VERSION" \
6736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6737 as_echo='print -r --'
6738 as_echo_n='print -rn --'
6739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6740 as_echo='printf %s\n'
6741 as_echo_n='printf %s'
6743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6745 as_echo_n='/usr/ucb/echo -n'
6747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6748 as_echo_n_body='eval
6752 expr "X$arg" : "X\\(.*\\)$as_nl";
6753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6757 export as_echo_n_body
6758 as_echo_n='sh -c $as_echo_n_body as_echo'
6761 as_echo='sh -c $as_echo_body as_echo'
6764 # The user is always right.
6765 if test "${PATH_SEPARATOR+set}" != set; then
6767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6775 # We need space, tab and new line, in precisely that order. Quoting is
6776 # there to prevent editors from complaining about space-tab.
6777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6778 # splitting by setting IFS to empty value.)
6781 # Find who we are. Look in the path if we contain no directory separator.
6783 *[\\/]* ) as_myself=$0 ;;
6784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6795 # We did not find ourselves, most probably we were run as `sh COMMAND'
6796 # in which case we are not to be found in the path.
6797 if test "x$as_myself" = x; then
6800 if test ! -f "$as_myself"; then
6801 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6805 # Unset variables that we do not need and which cause bugs (e.g. in
6806 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6807 # suppresses any "Segmentation fault" message there. '((' could
6808 # trigger a bug in pdksh 5.2.14.
6809 for as_var in BASH_ENV ENV MAIL MAILPATH
6810 do eval test x\${$as_var+set} = xset \
6811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6827 # as_fn_error ERROR [LINENO LOG_FD]
6828 # ---------------------------------
6829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6831 # script with status $?, using 1 if that was 0.
6834 as_status=$?; test $as_status -eq 0 && as_status=1
6836 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6837 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6839 $as_echo "$as_me: error: $1" >&2
6840 as_fn_exit $as_status
6844 # as_fn_set_status STATUS
6845 # -----------------------
6846 # Set $? to STATUS, without forking.
6850 } # as_fn_set_status
6854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6864 # Portably unset VAR.
6867 { eval $1=; unset $1;}
6869 as_unset=as_fn_unset
6870 # as_fn_append VAR VALUE
6871 # ----------------------
6872 # Append the text in VALUE to the end of the definition contained in VAR. Take
6873 # advantage of any shell optimizations that allow amortized linear growth over
6874 # repeated appends, instead of the typical quadratic growth present in naive
6876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6877 eval 'as_fn_append ()
6888 # as_fn_arith ARG...
6889 # ------------------
6890 # Perform arithmetic evaluation on the ARGs, and store the result in the
6891 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6892 # must be portable across $(()) and expr.
6893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6894 eval 'as_fn_arith ()
6901 as_val=`expr "$@" || test $? -eq 1`
6906 if expr a : '\(a\)' >/dev/null 2>&1 &&
6907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6914 as_basename=basename
6919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6925 as_me=`$as_basename -- "$0" ||
6926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6927 X"$0" : 'X\(//\)$' \| \
6928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6930 sed '/^.*\/\([^/][^/]*\)\/*$/{
6944 # Avoid depending upon Character Ranges.
6945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6948 as_cr_digits='0123456789'
6949 as_cr_alnum=$as_cr_Letters$as_cr_digits
6951 ECHO_C= ECHO_N= ECHO_T=
6952 case `echo -n x` in #(((((
6954 case `echo 'xy\c'` in
6955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6964 rm -f conf$$ conf$$.exe conf$$.file
6965 if test -d conf$$.dir; then
6966 rm -f conf$$.dir/conf$$.file
6969 mkdir conf$$.dir 2>/dev/null
6971 if (echo >conf$$.file) 2>/dev/null; then
6972 if ln -s conf$$.file conf$$ 2>/dev/null; then
6974 # ... but there are two gotchas:
6975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6977 # In both cases, we have to default to `cp -p'.
6978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6980 elif ln conf$$.file conf$$ 2>/dev/null; then
6988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6989 rmdir conf$$.dir 2>/dev/null
6994 # Create "$as_dir" as a directory, including parents if necessary.
6999 -*) as_dir=./$as_dir;;
7001 test -d "$as_dir" || eval $as_mkdir_p || {
7005 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7006 *) as_qdir=$as_dir;;
7008 as_dirs="'$as_qdir' $as_dirs"
7009 as_dir=`$as_dirname -- "$as_dir" ||
7010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7011 X"$as_dir" : 'X\(//\)[^/]' \| \
7012 X"$as_dir" : 'X\(//\)$' \| \
7013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7014 $as_echo X"$as_dir" |
7015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7032 test -d "$as_dir" && break
7034 test -z "$as_dirs" || eval "mkdir $as_dirs"
7035 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7039 if mkdir -p . 2>/dev/null; then
7040 as_mkdir_p='mkdir -p "$as_dir"'
7042 test -d ./-p && rmdir ./-p
7046 if test -x / >/dev/null 2>&1; then
7049 if ls -dL / >/dev/null 2>&1; then
7056 if test -d "$1"; then
7062 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7063 ???[sx]*):;;*)false;;esac;fi
7067 as_executable_p=$as_test_x
7069 # Sed expression to map a string onto a valid CPP name.
7070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7072 # Sed expression to map a string onto a valid variable name.
7073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7077 ## ----------------------------------- ##
7078 ## Main body of $CONFIG_STATUS script. ##
7079 ## ----------------------------------- ##
7081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7084 # Save the log message, to keep $0 and so on meaningful, and to
7085 # report actual input values of CONFIG_FILES etc. instead of their
7086 # values after options handling.
7088 This file was extended by readline $as_me 7.0, which was
7089 generated by GNU Autoconf 2.64. Invocation command line was
7091 CONFIG_FILES = $CONFIG_FILES
7092 CONFIG_HEADERS = $CONFIG_HEADERS
7093 CONFIG_LINKS = $CONFIG_LINKS
7094 CONFIG_COMMANDS = $CONFIG_COMMANDS
7097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7102 case $ac_config_files in *"
7103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7106 case $ac_config_headers in *"
7107 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7112 # Files that config.status was made for.
7113 config_files="$ac_config_files"
7114 config_headers="$ac_config_headers"
7115 config_commands="$ac_config_commands"
7119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7121 \`$as_me' instantiates files and other configuration actions
7122 from templates according to the current configuration. Unless the files
7123 and actions are specified as TAGs, all are instantiated by default.
7125 Usage: $0 [OPTION]... [TAG]...
7127 -h, --help print this help, then exit
7128 -V, --version print version number and configuration settings, then exit
7129 -q, --quiet, --silent
7130 do not print progress messages
7131 -d, --debug don't remove temporary files
7132 --recheck update $as_me by reconfiguring in the same conditions
7133 --file=FILE[:TEMPLATE]
7134 instantiate the configuration file FILE
7135 --header=FILE[:TEMPLATE]
7136 instantiate the configuration header FILE
7138 Configuration files:
7141 Configuration headers:
7144 Configuration commands:
7147 Report bugs to <bug-readline@gnu.org>."
7150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7152 readline config.status 7.0
7153 configured by $0, generated by GNU Autoconf 2.64,
7154 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7156 Copyright (C) 2009 Free Software Foundation, Inc.
7157 This config.status script is free software; the Free Software Foundation
7158 gives unlimited permission to copy, distribute and modify it."
7163 test -n "\$AWK" || AWK=awk
7166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7167 # The default lists apply if the user does not specify any file.
7173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7185 # Handling of the options.
7186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7189 $as_echo "$ac_cs_version"; exit ;;
7190 --debug | --debu | --deb | --de | --d | -d )
7192 --file | --fil | --fi | --f )
7195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7197 as_fn_append CONFIG_FILES " '$ac_optarg'"
7198 ac_need_defaults=false;;
7199 --header | --heade | --head | --hea )
7202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7204 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7205 ac_need_defaults=false;;
7207 # Conflict between --help and --header
7208 as_fn_error "ambiguous option: \`$1'
7209 Try \`$0 --help' for more information.";;
7210 --help | --hel | -h )
7211 $as_echo "$ac_cs_usage"; exit ;;
7212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7217 -*) as_fn_error "unrecognized option: \`$1'
7218 Try \`$0 --help' for more information." ;;
7220 *) as_fn_append ac_config_targets " $1"
7221 ac_need_defaults=false ;;
7227 ac_configure_extra_args=
7229 if $ac_cs_silent; then
7231 ac_configure_extra_args="$ac_configure_extra_args --silent"
7235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7236 if \$ac_cs_recheck; then
7237 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7240 CONFIG_SHELL='$SHELL'
7246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7251 ## Running $as_me. ##
7257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7262 # Handling of arguments.
7263 for ac_config_target in $ac_config_targets
7265 case $ac_config_target in
7266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7268 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7269 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7270 "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
7271 "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;;
7272 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7274 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7279 # If the user did not use the arguments to specify the items to instantiate,
7280 # then the envvar interface is used. Set only those that are not.
7281 # We use the long form for the default assignment because of an extremely
7282 # bizarre bug on SunOS 4.1.3.
7283 if $ac_need_defaults; then
7284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7289 # Have a temporary directory for convenience. Make it in the build tree
7290 # simply because there is no reason against having it here, and in addition,
7291 # creating and moving files from /tmp can sometimes cause problems.
7292 # Hook for its removal unless debugging.
7293 # Note that there is a small window in which the directory will not be cleaned:
7294 # after its creation but before its name has been assigned to `$tmp'.
7298 trap 'exit_status=$?
7299 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7301 trap 'as_fn_exit 1' 1 2 13 15
7303 # Create a (secure) tmp directory for tmp files.
7306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7307 test -n "$tmp" && test -d "$tmp"
7310 tmp=./conf$$-$RANDOM
7311 (umask 077 && mkdir "$tmp")
7312 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7314 # Set up the scripts for CONFIG_FILES section.
7315 # No need to generate them if there are no CONFIG_FILES.
7316 # This happens for instance with `./config.status config.h'.
7317 if test -n "$CONFIG_FILES"; then
7320 ac_cr=`echo X | tr X '\015'`
7321 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7322 # But we know of no other shell where ac_cr would be empty at this
7323 # point, so we can use a bashism as a fallback.
7324 if test "x$ac_cr" = x; then
7325 eval ac_cr=\$\'\\r\'
7327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7334 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7339 echo "cat >conf$$subs.awk <<_ACEOF" &&
7340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7343 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7344 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7346 for ac_last_try in false false false false false :; do
7347 . ./conf$$subs.sh ||
7348 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7350 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7351 if test $ac_delim_n = $ac_delim_num; then
7353 elif $ac_last_try; then
7354 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7362 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7366 s/^/S["/; s/!.*/"]=/
7376 s/\(.\{148\}\).*/\1/
7378 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7383 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7390 s/\(.\{148\}\).*/\1/
7392 s/["\\]/\\&/g; s/^/"/; s/$/"/
7396 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7401 ' <conf$$subs.awk | sed '
7406 ' >>$CONFIG_STATUS || ac_write_fail=1
7407 rm -f conf$$subs.awk
7408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7410 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7411 for (key in S) S_is_set[key] = 1
7417 nfields = split(line, field, "@")
7419 len = length(field[1])
7420 for (i = 2; i < nfields; i++) {
7422 keylen = length(key)
7423 if (S_is_set[key]) {
7425 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7426 len += length(value) + length(field[++i])
7437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7438 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7439 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7442 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7443 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7446 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7447 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7448 # trailing colons and then remove the whole line if VPATH becomes empty
7449 # (actually we leave an empty line to preserve line numbers).
7450 if test "x$srcdir" = x.; then
7451 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7455 s/^\([^=]*=[ ]*\):*/\1/
7461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7462 fi # test -n "$CONFIG_FILES"
7464 # Set up the scripts for CONFIG_HEADERS section.
7465 # No need to generate them if there are no CONFIG_HEADERS.
7466 # This happens for instance with `./config.status Makefile'.
7467 if test -n "$CONFIG_HEADERS"; then
7468 cat >"$tmp/defines.awk" <<\_ACAWK ||
7472 # Transform confdefs.h into an awk script `defines.awk', embedded as
7473 # here-document in config.status, that substitutes the proper values into
7474 # config.h.in to produce config.h.
7476 # Create a delimiter string that does not exist in confdefs.h, to ease
7477 # handling of long lines.
7479 for ac_last_try in false false :; do
7480 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7481 if test -z "$ac_t"; then
7483 elif $ac_last_try; then
7484 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7490 # For the awk script, D is an array of macro values keyed by name,
7491 # likewise P contains macro parameters if any. Preserve backslash
7492 # newline sequences.
7494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7496 s/.\{148\}/&'"$ac_delim"'/g
7499 s/^[ ]*#[ ]*define[ ][ ]*/ /
7506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7513 D["\1"]=" \3\\\\\\n"\\/p
7515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7520 s/.\{148\}/&'"$ac_delim"'/g
7525 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7528 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7530 ' <confdefs.h | sed '
7531 s/'"$ac_delim"'/"\\\
7532 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7535 for (key in D) D_is_set[key] = 1
7538 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7540 split(line, arg, " ")
7541 if (arg[1] == "#") {
7545 defundef = substr(arg[1], 2)
7548 split(mac1, mac2, "(") #)
7550 prefix = substr(line, 1, index(line, defundef) - 1)
7551 if (D_is_set[macro]) {
7552 # Preserve the white space surrounding the "#".
7553 print prefix "define", macro P[macro] D[macro]
7556 # Replace #undef with comments. This is necessary, for example,
7557 # in the case of _POSIX_SOURCE, which is predefined and required
7558 # on some systems where configure will not decide to define it.
7559 if (defundef == "undef") {
7560 print "/*", prefix defundef, macro, "*/"
7568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7569 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7570 fi # test -n "$CONFIG_HEADERS"
7573 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7578 :[FHLC]) ac_mode=$ac_tag; continue;;
7580 case $ac_mode$ac_tag in
7582 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7583 :[FH]-) ac_tag=-:-;;
7584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7601 -) ac_f="$tmp/stdin";;
7602 *) # Look for the file first in the build tree, then in the source tree
7603 # (if the path is not absolute). The absolute path cannot be DOS-style,
7604 # because $ac_f cannot contain `:'.
7608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7610 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7612 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7613 as_fn_append ac_file_inputs " '$ac_f'"
7616 # Let's still pretend it is `configure' which instantiates (i.e., don't
7617 # use $as_me), people would be surprised to read:
7618 # /* config.h. Generated by config.status. */
7619 configure_input='Generated from '`
7620 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7622 if test x"$ac_file" != x-; then
7623 configure_input="$ac_file. $configure_input"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7625 $as_echo "$as_me: creating $ac_file" >&6;}
7627 # Neutralize special characters interpreted by sed in replacement strings.
7628 case $configure_input in #(
7629 *\&* | *\|* | *\\* )
7630 ac_sed_conf_input=`$as_echo "$configure_input" |
7631 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7632 *) ac_sed_conf_input=$configure_input;;
7636 *:-:* | *:-) cat >"$tmp/stdin" \
7637 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7642 ac_dir=`$as_dirname -- "$ac_file" ||
7643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7644 X"$ac_file" : 'X\(//\)[^/]' \| \
7645 X"$ac_file" : 'X\(//\)$' \| \
7646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7647 $as_echo X"$ac_file" |
7648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7665 as_dir="$ac_dir"; as_fn_mkdir_p
7669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7672 # A ".." for each directory in $ac_dir_suffix.
7673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7674 case $ac_top_builddir_sub in
7675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7679 ac_abs_top_builddir=$ac_pwd
7680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7681 # for backward compatibility:
7682 ac_top_builddir=$ac_top_build_prefix
7685 .) # We are building in place.
7687 ac_top_srcdir=$ac_top_builddir_sub
7688 ac_abs_top_srcdir=$ac_pwd ;;
7689 [\\/]* | ?:[\\/]* ) # Absolute name.
7690 ac_srcdir=$srcdir$ac_dir_suffix;
7691 ac_top_srcdir=$srcdir
7692 ac_abs_top_srcdir=$srcdir ;;
7694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7695 ac_top_srcdir=$ac_top_build_prefix$srcdir
7696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7709 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7714 # If the template does not know about datarootdir, expand it.
7715 # FIXME: This hack should be removed a few years after 2.60.
7716 ac_datarootdir_hack=; ac_datarootdir_seen=
7727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7728 *datarootdir*) ac_datarootdir_seen=yes;;
7729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7734 ac_datarootdir_hack='
7735 s&@datadir@&$datadir&g
7736 s&@docdir@&$docdir&g
7737 s&@infodir@&$infodir&g
7738 s&@localedir@&$localedir&g
7739 s&@mandir@&$mandir&g
7740 s&\\\${datarootdir}&$datarootdir&g' ;;
7744 # Neutralize VPATH when `$srcdir' = `.'.
7745 # Shell code in configure.ac might set extrasub.
7746 # FIXME: do we really want to maintain this feature?
7747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7748 ac_sed_extra="$ac_vpsub
7751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7754 s|@configure_input@|$ac_sed_conf_input|;t t
7755 s&@top_builddir@&$ac_top_builddir_sub&;t t
7756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7757 s&@srcdir@&$ac_srcdir&;t t
7758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7759 s&@top_srcdir@&$ac_top_srcdir&;t t
7760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7761 s&@builddir@&$ac_builddir&;t t
7762 s&@abs_builddir@&$ac_abs_builddir&;t t
7763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7764 s&@INSTALL@&$ac_INSTALL&;t t
7765 $ac_datarootdir_hack
7767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7768 || as_fn_error "could not create $ac_file" "$LINENO" 5
7770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7774 which seems to be undefined. Please make sure it is defined." >&5
7775 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7776 which seems to be undefined. Please make sure it is defined." >&2;}
7780 -) cat "$tmp/out" && rm -f "$tmp/out";;
7781 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7783 || as_fn_error "could not create $ac_file" "$LINENO" 5
7789 if test x"$ac_file" != x-; then
7791 $as_echo "/* $configure_input */" \
7792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7793 } >"$tmp/config.h" \
7794 || as_fn_error "could not create $ac_file" "$LINENO" 5
7795 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7797 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7800 mv "$tmp/config.h" "$ac_file" \
7801 || as_fn_error "could not create $ac_file" "$LINENO" 5
7804 $as_echo "/* $configure_input */" \
7805 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7806 || as_fn_error "could not create -" "$LINENO" 5
7810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7811 $as_echo "$as_me: executing $ac_file commands" >&6;}
7816 case $ac_file$ac_mode in
7818 # Makefile uses this timestamp file to record whether config.h is up to date.
7828 ac_clean_files=$ac_clean_files_save
7830 test $ac_write_fail = 0 ||
7831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7834 # configure is writing to config.log, and then calls config.status.
7835 # config.status does its own redirection, appending to config.log.
7836 # Unfortunately, on DOS this fails, as config.log is still kept open
7837 # by configure, so config.status won't be able to write to it; its
7838 # output is simply discarded. So we exec the FD to /dev/null,
7839 # effectively closing config.log, so it can be properly (re)opened and
7840 # appended to by config.status. When coming back to configure, we
7841 # need to make the FD available again.
7842 if test "$no_create" != yes; then
7844 ac_config_status_args=
7845 test "$silent" = yes &&
7846 ac_config_status_args="$ac_config_status_args --quiet"
7848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7851 # would make configure fail if this is the last instruction.
7852 $ac_cs_success || as_fn_exit $?
7854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}