2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="xmalloc.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
637 ac_libiberty_warn_cflags
668 CONFIGURE_SPHINX_BUILD
696 program_transform_name
707 ac_subst_files
='host_makefile_frag'
709 enable_option_checking
715 enable_maintainer_mode
717 enable_install_libiberty
721 ac_precious_vars
='build_alias
732 # Initialize some variables set by options.
734 ac_init_version
=false
735 ac_unrecognized_opts
=
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
746 program_transform_name
=s
,x
,x
,
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir
='${exec_prefix}/bin'
761 sbindir
='${exec_prefix}/sbin'
762 libexecdir
='${exec_prefix}/libexec'
763 datarootdir
='${prefix}/share'
764 datadir
='${datarootdir}'
765 sysconfdir
='${prefix}/etc'
766 sharedstatedir
='${prefix}/com'
767 localstatedir
='${prefix}/var'
768 includedir
='${prefix}/include'
769 oldincludedir
='/usr/include'
770 docdir
='${datarootdir}/doc/${PACKAGE}'
771 infodir
='${datarootdir}/info'
776 libdir
='${exec_prefix}/lib'
777 localedir
='${datarootdir}/locale'
778 mandir
='${datarootdir}/man'
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\
$ac_option
792 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 # Accept the important Cygnus configure options, so we can diagnose typos.
799 case $ac_dashdash$ac_option in
803 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
805 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
808 -build |
--build |
--buil |
--bui |
--bu)
809 ac_prev
=build_alias
;;
810 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
811 build_alias
=$ac_optarg ;;
813 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
814 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
815 ac_prev
=cache_file
;;
816 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
817 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
818 cache_file
=$ac_optarg ;;
821 cache_file
=config.cache
;;
823 -datadir |
--datadir |
--datadi |
--datad)
825 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
826 datadir
=$ac_optarg ;;
828 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
829 |
--dataroo |
--dataro |
--datar)
830 ac_prev
=datarootdir
;;
831 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
832 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
833 datarootdir
=$ac_optarg ;;
835 -disable-* |
--disable-*)
836 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
839 as_fn_error $?
"invalid feature name: $ac_useropt"
840 ac_useropt_orig
=$ac_useropt
841 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
846 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
847 ac_unrecognized_sep
=', ';;
849 eval enable_
$ac_useropt=no
;;
851 -docdir |
--docdir |
--docdi |
--doc |
--do)
853 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
856 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
858 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
861 -enable-* |
--enable-*)
862 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
865 as_fn_error $?
"invalid feature name: $ac_useropt"
866 ac_useropt_orig
=$ac_useropt
867 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
873 ac_unrecognized_sep
=', ';;
875 eval enable_
$ac_useropt=\
$ac_optarg ;;
877 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
878 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
879 |
--exec |
--exe |
--ex)
880 ac_prev
=exec_prefix
;;
881 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
882 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
883 |
--exec=* |
--exe=* |
--ex=*)
884 exec_prefix
=$ac_optarg ;;
886 -gas |
--gas |
--ga |
--g)
887 # Obsolete; use --with-gas.
890 -help |
--help |
--hel |
--he |
-h)
892 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
893 ac_init_help
=recursive
;;
894 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
895 ac_init_help
=short
;;
897 -host |
--host |
--hos |
--ho)
898 ac_prev
=host_alias
;;
899 -host=* |
--host=* |
--hos=* |
--ho=*)
900 host_alias
=$ac_optarg ;;
902 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
904 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
906 htmldir
=$ac_optarg ;;
908 -includedir |
--includedir |
--includedi |
--included |
--include \
909 |
--includ |
--inclu |
--incl |
--inc)
910 ac_prev
=includedir
;;
911 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
912 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
913 includedir
=$ac_optarg ;;
915 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
917 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
918 infodir
=$ac_optarg ;;
920 -libdir |
--libdir |
--libdi |
--libd)
922 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
925 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
926 |
--libexe |
--libex |
--libe)
927 ac_prev
=libexecdir
;;
928 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
929 |
--libexe=* |
--libex=* |
--libe=*)
930 libexecdir
=$ac_optarg ;;
932 -localedir |
--localedir |
--localedi |
--localed |
--locale)
934 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
935 localedir
=$ac_optarg ;;
937 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
938 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
939 ac_prev
=localstatedir
;;
940 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
941 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
942 localstatedir
=$ac_optarg ;;
944 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
946 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
950 # Obsolete; use --without-fp.
953 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
954 |
--no-cr |
--no-c |
-n)
957 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
958 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
961 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
962 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
963 |
--oldin |
--oldi |
--old |
--ol |
--o)
964 ac_prev
=oldincludedir
;;
965 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
966 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
967 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
968 oldincludedir
=$ac_optarg ;;
970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
975 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
976 |
--program-pre |
--program-pr |
--program-p)
977 ac_prev
=program_prefix
;;
978 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
979 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
980 program_prefix
=$ac_optarg ;;
982 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
983 |
--program-suf |
--program-su |
--program-s)
984 ac_prev
=program_suffix
;;
985 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
986 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
987 program_suffix
=$ac_optarg ;;
989 -program-transform-name |
--program-transform-name \
990 |
--program-transform-nam |
--program-transform-na \
991 |
--program-transform-n |
--program-transform- \
992 |
--program-transform |
--program-transfor \
993 |
--program-transfo |
--program-transf \
994 |
--program-trans |
--program-tran \
995 |
--progr-tra |
--program-tr |
--program-t)
996 ac_prev
=program_transform_name
;;
997 -program-transform-name=* |
--program-transform-name=* \
998 |
--program-transform-nam=* |
--program-transform-na=* \
999 |
--program-transform-n=* |
--program-transform-=* \
1000 |
--program-transform=* |
--program-transfor=* \
1001 |
--program-transfo=* |
--program-transf=* \
1002 |
--program-trans=* |
--program-tran=* \
1003 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1004 program_transform_name
=$ac_optarg ;;
1006 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1008 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1009 pdfdir
=$ac_optarg ;;
1011 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1013 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1017 |
-silent |
--silent |
--silen |
--sile |
--sil)
1020 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1022 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1024 sbindir
=$ac_optarg ;;
1026 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1027 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1028 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1030 ac_prev
=sharedstatedir
;;
1031 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1032 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1033 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1035 sharedstatedir
=$ac_optarg ;;
1037 -site |
--site |
--sit)
1039 -site=* |
--site=* |
--sit=*)
1042 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1044 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1045 srcdir
=$ac_optarg ;;
1047 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1048 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1049 ac_prev
=sysconfdir
;;
1050 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1051 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1052 sysconfdir
=$ac_optarg ;;
1054 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1055 ac_prev
=target_alias
;;
1056 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1057 target_alias
=$ac_optarg ;;
1059 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1062 -version |
--version |
--versio |
--versi |
--vers |
-V)
1063 ac_init_version
=: ;;
1066 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error $?
"invalid package name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval with_
$ac_useropt=\
$ac_optarg ;;
1081 -without-* |
--without-*)
1082 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1085 as_fn_error $?
"invalid package name: $ac_useropt"
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval with_
$ac_useropt=no
;;
1098 # Obsolete; use --with-x.
1101 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1102 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1103 ac_prev
=x_includes
;;
1104 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1105 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1106 x_includes
=$ac_optarg ;;
1108 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1109 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1110 ac_prev
=x_libraries
;;
1111 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1112 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1113 x_libraries
=$ac_optarg ;;
1115 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1116 Try \`$0 --help' for more information"
1120 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1121 # Reject names that are not valid shell variable names.
1122 case $ac_envvar in #(
1123 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1124 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1126 eval $ac_envvar=\
$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1133 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140 if test -n "$ac_prev"; then
1141 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1142 as_fn_error $?
"missing argument to $ac_option"
1145 if test -n "$ac_unrecognized_opts"; then
1146 case $enable_option_checking in
1148 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1149 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 # Check all directory arguments for consistency.
1154 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1159 eval ac_val
=\$
$ac_var
1160 # Remove trailing slashes.
1163 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1164 eval $ac_var=\
$ac_val;;
1166 # Be sure to have absolute directory names.
1168 [\\/$
]* | ?
:[\\/]* ) continue;;
1169 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1171 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1179 target
=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x
; then
1183 if test "x$build_alias" = x
; then
1184 cross_compiling
=maybe
1185 elif test "x$build_alias" != "x$host_alias"; then
1191 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1193 test "$silent" = yes && exec 6>/dev
/null
1196 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di
=`ls -di .` &&
1198 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1199 as_fn_error $?
"working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201 as_fn_error $?
"pwd does not report name of working directory"
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206 ac_srcdir_defaulted
=yes
1207 # Try the directory containing this script, then the parent directory.
1208 ac_confdir
=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210 X"$as_myself" : 'X\(//\)[^/]' \| \
1211 X"$as_myself" : 'X\(//\)$' \| \
1212 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 $as_echo X"$as_myself" |
1214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 if test ! -r "$srcdir/$ac_unique_file"; then
1236 ac_srcdir_defaulted
=no
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1240 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1242 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1244 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1254 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256 for ac_var
in $ac_precious_vars; do
1257 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1259 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1264 # Report the --help message.
1266 if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1270 \`configure' configures this package to adapt to many kinds of systems.
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE. See below for descriptions of some of the useful variables.
1277 Defaults for the options are specified in brackets.
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking ...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1290 Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1301 For better control, use the options below.
1303 Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1328 --build=BUILD configure
for building on BUILD
[guessed
]
1329 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1333 if test -n "$ac_init_help"; then
1338 --disable-option-checking ignore unrecognized
--enable/--with options
1339 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1340 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1341 --enable-maintainer-mode
1342 enable make rules and dependencies not useful
1343 (and sometimes confusing
) to the casual installer
1344 --enable-multilib build many library versions
(default
)
1345 --enable-install-libiberty Install headers and library
for end users
1346 --disable-largefile omit support
for large files
1347 --enable-cet enable Intel CET
in host libraries
[default
=auto
]
1350 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1351 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1352 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
1353 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
1354 --with-cross-host=HOST Configuring with a cross compiler
1355 --with-newlib Configuring with newlib
1356 --with-sphinx-build= Use sphinx-build from a given path
1358 Some influential environment variables
:
1359 CC C compiler
command
1360 CFLAGS C compiler flags
1361 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1362 nonstandard directory
<lib dir
>
1363 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1364 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1365 you have headers
in a nonstandard directory
<include dir
>
1368 Use these variables to override the choices made by
`configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1371 Report bugs to the package provider.
1376 if test "$ac_init_help" = "recursive"; then
1377 # If there are subdirs, report their specific --help.
1378 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379 test -d "$ac_dir" ||
1380 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1388 # A ".." for each directory in $ac_dir_suffix.
1389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1390 case $ac_top_builddir_sub in
1391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 ac_abs_top_builddir=$ac_pwd
1396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1397 # for backward compatibility:
1398 ac_top_builddir=$ac_top_build_prefix
1401 .) # We are building in place.
1403 ac_top_srcdir=$ac_top_builddir_sub
1404 ac_abs_top_srcdir=$ac_pwd ;;
1405 [\\/]* | ?:[\\/]* ) # Absolute name.
1406 ac_srcdir=$srcdir$ac_dir_suffix;
1407 ac_top_srcdir=$srcdir
1408 ac_abs_top_srcdir=$srcdir ;;
1410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1411 ac_top_srcdir=$ac_top_build_prefix$srcdir
1412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416 cd "$ac_dir" || { ac_status=$?; continue; }
1417 # Check for guested configure.
1418 if test -f "$ac_srcdir/configure.gnu"; then
1420 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1421 elif test -f "$ac_srcdir/configure"; then
1423 $SHELL "$ac_srcdir/configure" --help=recursive
1425 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 cd "$ac_pwd" || { ac_status=$?; break; }
1431 test -n "$ac_init_help" && exit $ac_status
1432 if $ac_init_version; then
1435 generated by GNU Autoconf 2.69
1437 Copyright (C) 2012 Free Software Foundation, Inc.
1438 This configure script is free software; the Free Software Foundation
1439 gives unlimited permission to copy, distribute and modify it.
1444 ## ------------------------ ##
1445 ## Autoconf initialization. ##
1446 ## ------------------------ ##
1448 # ac_fn_c_try_compile LINENO
1449 # --------------------------
1450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1451 ac_fn_c_try_compile ()
1453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454 rm -f conftest.$ac_objext
1455 if { { ac_try="$ac_compile"
1457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1458 *) ac_try_echo
=$ac_try;;
1460 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1464 if test -s conftest.err
; then
1465 grep -v '^ *+' conftest.err
>conftest.er1
1466 cat conftest.er1
>&5
1467 mv -f conftest.er1 conftest.err
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.
$ac_objext; then :
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.
$ac_ext >&5
1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status
$ac_retval
1484 } # ac_fn_c_try_compile
1486 # ac_fn_c_try_cpp LINENO
1487 # ----------------------
1488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1492 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } > conftest.i && {
1508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1523 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1524 # -------------------------------------------------------
1525 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1526 # the include files in INCLUDES and setting the cache variable VAR
1528 ac_fn_c_check_header_mongrel ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if eval \${$3+:} false; then :
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1533 $as_echo_n "checking for $2... " >&6; }
1534 if eval \${$3+:} false; then :
1535 $as_echo_n "(cached) " >&6
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1539 $as_echo "$ac_res" >&6; }
1541 # Is the header compilable?
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1543 $as_echo_n "checking $2 usability... " >&6; }
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1549 if ac_fn_c_try_compile "$LINENO"; then :
1550 ac_header_compiler=yes
1552 ac_header_compiler=no
1554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1556 $as_echo "$ac_header_compiler" >&6; }
1558 # Is the header present?
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1560 $as_echo_n "checking $2 presence... " >&6; }
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1565 if ac_fn_c_try_cpp "$LINENO"; then :
1566 ac_header_preproc=yes
1568 ac_header_preproc=no
1570 rm -f conftest.err conftest.i conftest.$ac_ext
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1572 $as_echo "$ac_header_preproc" >&6; }
1574 # So? What about this header?
1575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1578 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1584 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1586 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1588 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1590 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if eval \${$3+:} false; then :
1598 $as_echo_n "(cached) " >&6
1600 eval "$3=\$ac_header_compiler"
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 } # ac_fn_c_check_header_mongrel
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1620 *) ac_try_echo
=$ac_try;;
1622 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1693 *) ac_try_echo
=$ac_try;;
1695 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err
; then
1700 grep -v '^ *+' conftest.err
>conftest.er1
1701 cat conftest.er1
>&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest
$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 test -x conftest
$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status
$ac_retval
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1730 # ----------------------------------------------
1731 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_preproc
()
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \
${$3+:} false
; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1744 if ac_fn_c_try_cpp
"$LINENO"; then :
1749 rm -f conftest.err conftest.i conftest.
$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_preproc
1758 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1759 # --------------------------------------------
1760 # Tries to find the compile-time value of EXPR in a program that includes
1761 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1763 ac_fn_c_compute_int
()
1765 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1766 if test "$cross_compiling" = yes; then
1767 # Depending upon the size, compute the lo and hi bounds.
1768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1774 static int test_array [1 - 2 * !(($2) >= 0)];
1776 return test_array [0];
1782 if ac_fn_c_try_compile
"$LINENO"; then :
1785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1791 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1793 return test_array [0];
1799 if ac_fn_c_try_compile
"$LINENO"; then :
1800 ac_hi
=$ac_mid; break
1802 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1803 if test $ac_lo -le $ac_mid; then
1807 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1818 static int test_array [1 - 2 * !(($2) < 0)];
1820 return test_array [0];
1826 if ac_fn_c_try_compile
"$LINENO"; then :
1829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1835 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1837 return test_array [0];
1843 if ac_fn_c_try_compile
"$LINENO"; then :
1844 ac_lo
=$ac_mid; break
1846 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1847 if test $ac_mid -le $ac_hi; then
1851 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1861 # Binary search between lo and hi bounds.
1862 while test "x$ac_lo" != "x$ac_hi"; do
1863 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1870 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1872 return test_array [0];
1878 if ac_fn_c_try_compile
"$LINENO"; then :
1881 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1886 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1893 static long int longval () { return $2; }
1894 static unsigned long int ulongval () { return $2; }
1901 FILE *f = fopen ("conftest.val", "w");
1906 long int i = longval ();
1909 fprintf (f, "%ld", i);
1913 unsigned long int i = ulongval ();
1916 fprintf (f, "%lu", i);
1918 /* Do not output a trailing newline, as this causes \r\n confusion
1919 on some platforms. */
1920 return ferror (f) || fclose (f) != 0;
1926 if ac_fn_c_try_run
"$LINENO"; then :
1927 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status
$ac_retval
1939 } # ac_fn_c_compute_int
1941 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1942 # -------------------------------------------
1943 # Tests whether TYPE exists after having included INCLUDES, setting cache
1944 # variable VAR accordingly.
1945 ac_fn_c_check_type
()
1947 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \
${$3+:} false
; then :
1951 $as_echo_n "(cached) " >&6
1954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1966 if ac_fn_c_try_compile
"$LINENO"; then :
1967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1979 if ac_fn_c_try_compile
"$LINENO"; then :
1984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_type
1995 # ac_fn_c_check_func LINENO FUNC VAR
1996 # ----------------------------------
1997 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1998 ac_fn_c_check_func
()
2000 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \
${$3+:} false
; then :
2004 $as_echo_n "(cached) " >&6
2006 if test x
$gcc_no_link = xyes
; then
2007 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2013 #define $2 innocuous_$2
2015 /* System header to define __stub macros and hopefully few prototypes,
2016 which can conflict with char $2 (); below.
2017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2018 <limits.h> exists even on freestanding compilers. */
2021 # include <limits.h>
2023 # include <assert.h>
2028 /* Override any GCC internal prototype to avoid an error.
2029 Use char because int might match the return type of a GCC
2030 builtin and then its argument prototype would still apply. */
2035 /* The GNU C library defines this for functions which it implements
2036 to always fail with ENOSYS. Some functions are actually named
2037 something starting with __ and the normal name is an alias. */
2038 #if defined __stub_$2 || defined __stub___$2
2050 if ac_fn_c_try_link
"$LINENO"; then :
2055 rm -f core conftest.err conftest.
$ac_objext \
2056 conftest
$ac_exeext conftest.
$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_func
2065 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2066 # ---------------------------------------------
2067 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2069 ac_fn_c_check_decl
()
2071 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2072 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2073 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2075 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2076 if eval \
${$3+:} false
; then :
2077 $as_echo_n "(cached) " >&6
2079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 #ifndef $as_decl_name
2087 (void) $as_decl_use;
2089 (void) $as_decl_name;
2097 if ac_fn_c_try_compile
"$LINENO"; then :
2102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_decl
2110 cat >config.log
<<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2114 It was created by $as_me, which was
2115 generated by GNU Autoconf 2.69. Invocation command line was
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2136 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2137 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2140 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2141 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2142 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir
=.
2151 $as_echo "PATH: $as_dir"
2167 # Keep a trace of the command line.
2168 # Strip out --no-create and --no-recursion so they do not pile up.
2169 # Strip out --silent because we don't want to record it for future runs.
2170 # Also quote any args containing shell meta-characters.
2171 # Make two passes to allow for proper duplicate-argument suppression.
2175 ac_must_keep_next
=false
2181 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2182 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2183 |
-silent |
--silent |
--silen |
--sile |
--sil)
2186 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2191 as_fn_append ac_configure_args1
" '$ac_arg'"
2192 if test $ac_must_keep_next = true
; then
2193 ac_must_keep_next
=false
# Got value, back to normal.
2196 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2197 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2198 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2199 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2200 case "$ac_configure_args0 " in
2201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 -* ) ac_must_keep_next
=true
;;
2207 as_fn_append ac_configure_args
" '$ac_arg'"
2212 { ac_configure_args0
=; unset ac_configure_args0
;}
2213 { ac_configure_args1
=; unset ac_configure_args1
;}
2215 # When interrupted or exit'd, cleanup temporary files, and complete
2216 # config.log. We remove comments because anyway the quotes in there
2217 # would cause problems or look ugly.
2218 # WARNING: Use '\'' to represent an apostrophe within the trap.
2219 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2220 trap 'exit_status=$?
2221 # Save into config.log some information that might help in debugging.
2225 $as_echo "## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##"
2229 # The following way of writing the cache mishandles newlines in values,
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 $as_echo "## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##"
2265 for ac_var in $ac_subst_vars
2267 eval ac_val=\$$ac_var
2269 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 $as_echo "$ac_var='\''$ac_val'\''"
2275 if test -n "$ac_subst_files"; then
2276 $as_echo "## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##"
2280 for ac_var
in $ac_subst_files
2282 eval ac_val
=\$
$ac_var
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 $as_echo "$ac_var='\''$ac_val'\''"
2291 if test -s confdefs.h; then
2292 $as_echo "## ----------- ##
2299 test "$ac_signal" != 0 &&
2300 $as_echo "$as_me: caught signal $ac_signal"
2301 $as_echo "$as_me: exit $exit_status"
2303 rm -f core *.core core.conftest.* &&
2304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 for ac_signal
in 1 2 13 15; do
2308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2313 rm -f -r conftest
* confdefs.h
2315 $as_echo "/* confdefs.h */" > confdefs.h
2317 # Predefined preprocessor variables.
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 cat >>confdefs.h
<<_ACEOF
2328 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 cat >>confdefs.h
<<_ACEOF
2332 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 cat >>confdefs.h
<<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 cat >>confdefs.h
<<_ACEOF
2340 #define PACKAGE_URL "$PACKAGE_URL"
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer an explicitly selected file to automatically selected ones.
2348 if test -n "$CONFIG_SITE"; then
2349 # We do not want a PATH search for config.site.
2350 case $CONFIG_SITE in #((
2351 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2352 */*) ac_site_file1
=$CONFIG_SITE;;
2353 *) ac_site_file1
=.
/$CONFIG_SITE;;
2355 elif test "x$prefix" != xNONE
; then
2356 ac_site_file1
=$prefix/share
/config.site
2357 ac_site_file2
=$prefix/etc
/config.site
2359 ac_site_file1
=$ac_default_prefix/share
/config.site
2360 ac_site_file2
=$ac_default_prefix/etc
/config.site
2362 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE
&& continue
2365 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2370 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $?
"failed to load site script $ac_site_file
2373 See \`config.log' for more details" "$LINENO" 5; }
2377 if test -r "$cache_file"; then
2378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2385 *) .
"./$cache_file";;
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2394 as_fn_append ac_header_list
" stdlib.h"
2395 as_fn_append ac_header_list
" unistd.h"
2396 as_fn_append ac_header_list
" sys/param.h"
2397 # Check that the precious variables saved in the cache have kept the same
2399 ac_cache_corrupted
=false
2400 for ac_var
in $ac_precious_vars; do
2401 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2402 eval ac_new_set
=\
$ac_env_${ac_var}_set
2403 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2404 eval ac_new_val
=\
$ac_env_${ac_var}_value
2405 case $ac_old_set,$ac_new_set in
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2408 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2409 ac_cache_corrupted
=: ;;
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2413 ac_cache_corrupted
=: ;;
2416 if test "x$ac_old_val" != "x$ac_new_val"; then
2417 # differences in whitespace do not lead to failure.
2418 ac_old_val_w
=`echo x $ac_old_val`
2419 ac_new_val_w
=`echo x $ac_new_val`
2420 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2422 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2423 ac_cache_corrupted
=:
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2426 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2427 eval $ac_var=\
$ac_old_val
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2430 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2432 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2435 # Pass precious variables to config.status.
2436 if test "$ac_new_set" = set; then
2438 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2439 *) ac_arg
=$ac_var=$ac_new_val ;;
2441 case " $ac_configure_args " in
2442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2443 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2447 if $ac_cache_corrupted; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2451 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2452 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2454 ## -------------------- ##
2455 ## Main body of script. ##
2456 ## -------------------- ##
2459 ac_cpp
='$CPP $CPPFLAGS'
2460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2468 # This works around the fact that libtool configuration may change LD
2469 # for this particular configuration, but some shells, instead of
2470 # keeping the changes in LD private, export them just because LD is
2471 # exported. We don't use libtool yet, but some day we might, so...
2472 ORIGINAL_LD_FOR_MULTILIBS
=$LD
2475 # Check whether --with-target-subdir was given.
2476 if test "${with_target_subdir+set}" = set; then :
2477 withval
=$with_target_subdir;
2481 # Check whether --with-build-subdir was given.
2482 if test "${with_build_subdir+set}" = set; then :
2483 withval
=$with_build_subdir;
2487 # Check whether --with-cross-host was given.
2488 if test "${with_cross_host+set}" = set; then :
2489 withval
=$with_cross_host;
2493 # Check whether --with-newlib was given.
2494 if test "${with_newlib+set}" = set; then :
2495 withval
=$with_newlib;
2500 # Check whether --with-sphinx-build was given.
2501 if test "${with_sphinx_build+set}" = set; then :
2502 withval
=$with_sphinx_build; CONFIGURE_SPHINX_BUILD
=$withval
2504 CONFIGURE_SPHINX_BUILD
=
2510 # See if sphinx-build has been installed and is modern enough
2511 # that we can use it.
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sphinx-build" >&5
2513 $as_echo_n "checking for sphinx-build... " >&6; }
2515 if test x
${CONFIGURE_SPHINX_BUILD} != x
; then
2516 sphinx
=${CONFIGURE_SPHINX_BUILD}
2522 grep 'needs_sphinx =' ${srcdir}/..
/doc
/baseconf.py
> $source/conf.py
2523 touch $source/index.rst
2524 if ${sphinx} $source $tempdir >/dev
/null
2>&1; then
2525 SPHINX_BUILD
=${sphinx}
2526 HAS_SPHINX_BUILD
=has-sphinx-build
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528 $as_echo "yes" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2531 *** sphinx-build is missing or too old.
2532 *** Info and man pages documentation will not be built." >&5
2533 $as_echo "$as_me: WARNING:
2534 *** sphinx-build is missing or too old.
2535 *** Info and man pages documentation will not be built." >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2546 if test "${srcdir}" = "."; then
2547 if test -n "${with_build_subdir}"; then
2548 libiberty_topdir
="${srcdir}/../.."
2550 elif test -z "${with_target_subdir}"; then
2551 libiberty_topdir
="${srcdir}/.."
2553 if test "${with_target_subdir}" != "."; then
2554 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
2556 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
2560 libiberty_topdir
="${srcdir}/.."
2564 for ac_dir
in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
2565 if test -f "$ac_dir/install-sh"; then
2567 ac_install_sh
="$ac_aux_dir/install-sh -c"
2569 elif test -f "$ac_dir/install.sh"; then
2571 ac_install_sh
="$ac_aux_dir/install.sh -c"
2573 elif test -f "$ac_dir/shtool"; then
2575 ac_install_sh
="$ac_aux_dir/shtool install -c"
2579 if test -z "$ac_aux_dir"; then
2580 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2596 # Check whether --enable-maintainer-mode was given.
2597 if test "${enable_maintainer_mode+set}" = set; then :
2598 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2605 $as_echo "$maintainer_mode" >&6; }
2607 if test "$maintainer_mode" = "yes"; then
2615 if test -z "$ETAGS"; then
2620 # Do we have a single-tree copy of texinfo? Even if we do, we can't
2621 # rely on it - libiberty is built before texinfo.
2622 # Extract the first word of "makeinfo", so it can be a program name with args.
2623 set dummy makeinfo
; ac_word
=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_MAKEINFO+:} false
; then :
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$MAKEINFO"; then
2630 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir
=.
2637 for ac_exec_ext
in '' $ac_executable_extensions; do
2638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_MAKEINFO
="makeinfo"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 MAKEINFO
=$ac_cv_prog_MAKEINFO
2650 if test -n "$MAKEINFO"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2652 $as_echo "$MAKEINFO" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2659 if test "x$MAKEINFO" = "x"; then
2660 MAKEINFO
="@echo makeinfo missing; true"
2665 */missing\ makeinfo
*)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2668 *** Makeinfo is missing. Info documentation will not be built." >&5
2669 $as_echo "$as_me: WARNING:
2670 *** Makeinfo is missing. Info documentation will not be built." >&2;}
2673 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
2675 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2678 *** Makeinfo is too old. Info documentation will not be built." >&5
2679 $as_echo "$as_me: WARNING:
2680 *** Makeinfo is too old. Info documentation will not be built." >&2;}
2689 # Extract the first word of "perl", so it can be a program name with args.
2690 set dummy perl
; ac_word
=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_PERL+:} false
; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$PERL"; then
2697 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
2699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir
=.
2704 for ac_exec_ext
in '' $ac_executable_extensions; do
2705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_PERL
="perl"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 PERL
=$ac_cv_prog_PERL
2717 if test -n "$PERL"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2719 $as_echo "$PERL" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2726 if test x
"$PERL" = x
""; then
2733 # Make sure we can run config.sub.
2734 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2735 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2738 $as_echo_n "checking build system type... " >&6; }
2739 if ${ac_cv_build+:} false
; then :
2740 $as_echo_n "(cached) " >&6
2742 ac_build_alias
=$build_alias
2743 test "x$ac_build_alias" = x
&&
2744 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2745 test "x$ac_build_alias" = x
&&
2746 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2747 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2748 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2752 $as_echo "$ac_cv_build" >&6; }
2753 case $ac_cv_build in
2755 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2758 ac_save_IFS
=$IFS; IFS
='-'
2764 # Remember, the first character of IFS is used to create $*,
2765 # except with old shells:
2768 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2772 $as_echo_n "checking host system type... " >&6; }
2773 if ${ac_cv_host+:} false
; then :
2774 $as_echo_n "(cached) " >&6
2776 if test "x$host_alias" = x
; then
2777 ac_cv_host
=$ac_cv_build
2779 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2780 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2785 $as_echo "$ac_cv_host" >&6; }
2788 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2791 ac_save_IFS
=$IFS; IFS
='-'
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2801 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2808 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_AR+:} false
; then :
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$AR"; then
2815 ac_cv_prog_AR
="$AR" # Let the user override the test.
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir
=.
2822 for ac_exec_ext
in '' $ac_executable_extensions; do
2823 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$AR"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2837 $as_echo "$AR" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2845 if test -z "$ac_cv_prog_AR"; then
2847 # Extract the first word of "ar", so it can be a program name with args.
2848 set dummy
ar; ac_word
=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
2852 $as_echo_n "(cached) " >&6
2854 if test -n "$ac_ct_AR"; then
2855 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_AR
="ar"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
2875 if test -n "$ac_ct_AR"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2877 $as_echo "$ac_ct_AR" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2883 if test "x$ac_ct_AR" = x
; then
2886 case $cross_compiling:$ac_tool_warned in
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned
=yes ;;
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2900 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_RANLIB+:} false
; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$RANLIB"; then
2907 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir
=.
2914 for ac_exec_ext
in '' $ac_executable_extensions; do
2915 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 RANLIB
=$ac_cv_prog_RANLIB
2927 if test -n "$RANLIB"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2929 $as_echo "$RANLIB" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2937 if test -z "$ac_cv_prog_RANLIB"; then
2938 ac_ct_RANLIB
=$RANLIB
2939 # Extract the first word of "ranlib", so it can be a program name with args.
2940 set dummy ranlib
; ac_word
=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$ac_ct_RANLIB"; then
2947 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir
=.
2954 for ac_exec_ext
in '' $ac_executable_extensions; do
2955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2967 if test -n "$ac_ct_RANLIB"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2969 $as_echo "$ac_ct_RANLIB" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2975 if test "x$ac_ct_RANLIB" = x
; then
2978 case $cross_compiling:$ac_tool_warned in
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned
=yes ;;
2984 RANLIB
=$ac_ct_RANLIB
2987 RANLIB
="$ac_cv_prog_RANLIB"
2991 # Add --enable-multilib to configure.
2992 # Default to --enable-multilib
2993 # Check whether --enable-multilib was given.
2994 if test "${enable_multilib+set}" = set; then :
2995 enableval
=$enable_multilib; case "$enableval" in
2996 yes) multilib
=yes ;;
2998 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3005 # Even if the default multilib is not a cross compilation,
3006 # it may be that some of the other multilibs are.
3007 if test $cross_compiling = no
&& test $multilib = yes \
3008 && test "x${with_multisubdir}" != x
; then
3009 cross_compiling
=maybe
3012 # We may wish to install the target headers somewhere.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
3014 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
3016 # Check whether --enable-install-libiberty was given.
3017 if test "${enable_install_libiberty+set}" = set; then :
3018 enableval
=$enable_install_libiberty; enable_install_libiberty
=$enableval
3020 enable_install_libiberty
=no
3023 # Option parsed, now set things appropriately.
3024 case x
"$enable_install_libiberty" in
3026 target_header_dir
=libiberty
3032 # This could be sanity-checked in various ways...
3033 target_header_dir
="${enable_install_libiberty}"
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
3037 $as_echo "$enable_install_libiberty" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
3039 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
3043 ac_cpp
='$CPP $CPPFLAGS'
3044 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false
; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC
="$CC" # Let the user override the test.
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_CC"; then
3088 # Extract the first word of "gcc", so it can be a program name with args.
3089 set dummy gcc
; ac_word
=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir
=.
3103 for ac_exec_ext
in '' $ac_executable_extensions; do
3104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC
="gcc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_CC" = x
; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned
=yes ;;
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC
="$CC" # Let the user override the test.
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_exec_ext
in '' $ac_executable_extensions; do
3157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3180 if test -z "$CC"; then
3181 # Extract the first word of "cc", so it can be a program name with args.
3182 set dummy cc
; ac_word
=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false
; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC
="$CC" # Let the user override the test.
3192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir
=.
3197 for ac_exec_ext
in '' $ac_executable_extensions; do
3198 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200 ac_prog_rejected
=yes
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test $ac_prog_rejected = yes; then
3212 # We found a bogon in the path, so make sure we never use it.
3213 set dummy
$ac_cv_prog_CC
3215 if test $# != 0; then
3216 # We chose a different compiler from the bogus one.
3217 # However, it has the same basename, so the bogon will be chosen
3218 # first if we set CC to just the basename; use the full file name.
3220 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 for ac_prog
in cl.exe
3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false
; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC
="$CC" # Let the user override the test.
3250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir
=.
3255 for ac_exec_ext
in '' $ac_executable_extensions; do
3256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3277 test -n "$CC" && break
3280 if test -z "$CC"; then
3282 for ac_prog
in cl.exe
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy
$ac_prog; ac_word
=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3289 $as_echo_n "(cached) " >&6
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_CC
="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 $as_echo "$ac_ct_CC" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3321 test -n "$ac_ct_CC" && break
3324 if test "x$ac_ct_CC" = x
; then
3327 case $cross_compiling:$ac_tool_warned in
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned
=yes ;;
3340 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $?
"no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3349 for ac_option
in --version -v -V -qversion; do
3350 { { ac_try
="$ac_compiler $ac_option >&5"
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359 if test -s conftest.err; then
3361 ... rest of stderr output deleted ...
3362 10q' conftest.err >conftest.er1
3363 cat conftest.er1 >&5
3365 rm -f conftest.er1 conftest.err
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3376 printf ("hello world\n");
3382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3383 (eval $ac_link) 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3391 if test x$gcc_no_link = xyes; then
3392 # Setting cross_compile will disable run tests; it will
3393 # also disable AC_CHECK_FILE but that's generally
3394 # correct if we can't link.
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 ac_clean_files_save=$ac_clean_files
3410 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3411 # Try to create an executable without -o first, disregard a.out.
3412 # It will help us diagnose broken compilers, and finding out an intuition
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3415 $as_echo_n "checking whether the C compiler works... " >&6; }
3416 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3418 # The possible output files:
3419 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422 for ac_file in $ac_files
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431 if { { ac_try="$ac_link_default"
3433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3434 *) ac_try_echo
=$ac_try;;
3436 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_link_default") 2>&5
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3443 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3444 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3445 # so that the user can short-circuit this test for compilers unknown to
3447 for ac_file
in $ac_files ''
3449 test -f "$ac_file" ||
continue
3451 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3454 # We found the default executable, but exeext='' is most
3458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3460 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 # We set ac_cv_exeext here because the later test for it is not
3463 # safe: cross compilers may not add the suffix if given an `-o'
3464 # argument, so we may need to know it at that point already.
3465 # Even if this section looks crufty: it has the advantage of
3472 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3477 if test -z "$ac_file"; then :
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error
77 "C compiler cannot create executables
3486 See \`config.log' for more details" "$LINENO" 5; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3489 $as_echo "yes" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3492 $as_echo_n "checking for C compiler default output file name... " >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3494 $as_echo "$ac_file" >&6; }
3495 ac_exeext
=$ac_cv_exeext
3497 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3498 ac_clean_files
=$ac_clean_files_save
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3500 $as_echo_n "checking for suffix of executables... " >&6; }
3501 if { { ac_try
="$ac_link"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3513 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3514 # work properly (i.e., refer to `conftest.exe'), while it won't with
3516 for ac_file
in conftest.exe conftest conftest.
*; do
3517 test -f "$ac_file" ||
continue
3519 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3520 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 rm -f conftest conftest
$ac_cv_exeext
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3533 $as_echo "$ac_cv_exeext" >&6; }
3535 rm -f conftest.
$ac_ext
3536 EXEEXT
=$ac_cv_exeext
3538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3544 FILE *f = fopen ("conftest.out", "w");
3545 return ferror (f) || fclose (f) != 0;
3551 ac_clean_files
="$ac_clean_files conftest.out"
3552 # Check that the compiler produces executables we can run. If not, either
3553 # the compiler is broken, or we cross compile.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3555 $as_echo_n "checking whether we are cross compiling... " >&6; }
3556 if test "$cross_compiling" != yes; then
3557 { { ac_try
="$ac_link"
3559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_link") 2>&5
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }
3568 if { ac_try='./conftest$ac_cv_exeext'
3569 { { case "(($ac_try" in
3570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3571 *) ac_try_echo
=$ac_try;;
3573 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_try") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; }; then
3581 if test "$cross_compiling" = maybe
; then
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $?
"cannot run C compiled programs.
3587 If you meant to cross compile, use \`--host'.
3588 See \`config.log' for more details" "$LINENO" 5; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3593 $as_echo "$cross_compiling" >&6; }
3595 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3596 ac_clean_files
=$ac_clean_files_save
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3599 $as_echo_n "checking for suffix of object files... " >&6; }
3600 if ${ac_cv_objext+:} false
; then :
3601 $as_echo_n "(cached) " >&6
3603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3614 rm -f conftest.o conftest.obj
3615 if { { ac_try
="$ac_compile"
3617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_compile") 2>&5
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 for ac_file in conftest.o conftest.obj conftest.*; do
3627 test -f "$ac_file" || continue;
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3641 See \
`config.log' for more details" "$LINENO" 5; }
3643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3646 $as_echo "$ac_cv_objext" >&6; }
3647 OBJEXT=$ac_cv_objext
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3668 if ac_fn_c_try_compile "$LINENO"; then :
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679 if test $ac_compiler_gnu = yes; then
3684 ac_test_CFLAGS=${CFLAGS+set}
3685 ac_save_CFLAGS=$CFLAGS
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 if ${ac_cv_prog_cc_g+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 ac_save_c_werror_flag=$ac_c_werror_flag
3692 ac_c_werror_flag=yes
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile "$LINENO"; then :
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3721 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 if test "$ac_test_CFLAGS" = set; then
3750 CFLAGS=$ac_save_CFLAGS
3751 elif test $ac_cv_prog_cc_g = yes; then
3752 if test "$GCC" = yes; then
3758 if test "$GCC" = yes; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 if ${ac_cv_prog_cc_c89+:} false; then :
3767 $as_echo_n "(cached) " >&6
3769 ac_cv_prog_cc_c89=no
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777 struct buf { int x; };
3778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779 static char *e (p, i)
3785 static char *f (char * (*g) (char **, int), char **p, ...)
3790 s = g (p, va_arg (v,int));
3795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796 function prototypes and stuff, but not '\xHH' hex character constants.
3797 These don't provoke an error unfortunately, instead are silently treated
3798 as 'x'. The following induces an error, until -std is added to get
3799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800 array size at least. It's necessary to write '\x00'==0 to get something
3801 that's true only with -std. */
3802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805 inside strings and character constants. */
3807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809 int test (int i, double x);
3810 struct s1 {int (*f) (int a);};
3811 struct s2 {int (*f) (double a);};
3812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826 CC="$ac_save_CC $ac_arg"
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_c89=$ac_arg
3830 rm -f core conftest.err conftest.$ac_objext
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3833 rm -f conftest.$ac_ext
3838 case "x$ac_cv_prog_cc_c89" in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 $as_echo "none needed" >&6; } ;;
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 $as_echo "unsupported" >&6; } ;;
3846 CC="$CC $ac_cv_prog_cc_c89"
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3867 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3868 # On Suns, sometimes $CPP names a directory.
3869 if test -n "$CPP" && test -d "$CPP"; then
3872 if test -z "$CPP"; then
3873 if ${ac_cv_prog_CPP+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 # Double quotes because CPP needs to be expanded
3877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3880 for ac_c_preproc_warn_flag in '' yes
3882 # Use a header file that comes with gcc, so configuring glibc
3883 # with a fresh cross-compiler works.
3884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3885 # <limits.h> exists even on freestanding compilers.
3886 # On the NeXT, cc -E runs the code through the compiler's parser,
3887 # not just through cpp. "Syntax error" is here to catch this case.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3891 # include <limits.h>
3893 # include <assert.h>
3897 if ac_fn_c_try_cpp "$LINENO"; then :
3900 # Broken: fails on valid input.
3903 rm -f conftest.err conftest.i conftest.$ac_ext
3905 # OK, works on sane cases. Now check whether nonexistent headers
3906 # can be detected and how.
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3911 if ac_fn_c_try_cpp "$LINENO"; then :
3912 # Broken: success on invalid input.
3915 # Passes both tests.
3919 rm -f conftest.err conftest.i conftest.$ac_ext
3922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3923 rm -f conftest.i conftest.err conftest.
$ac_ext
3924 if $ac_preproc_ok; then :
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3937 $as_echo "$CPP" >&6; }
3939 for ac_c_preproc_warn_flag
in '' yes
3941 # Use a header file that comes with gcc, so configuring glibc
3942 # with a fresh cross-compiler works.
3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 # <limits.h> exists even on freestanding compilers.
3945 # On the NeXT, cc -E runs the code through the compiler's parser,
3946 # not just through cpp. "Syntax error" is here to catch this case.
3947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3950 # include <limits.h>
3952 # include <assert.h>
3956 if ac_fn_c_try_cpp
"$LINENO"; then :
3959 # Broken: fails on valid input.
3962 rm -f conftest.err conftest.i conftest.
$ac_ext
3964 # OK, works on sane cases. Now check whether nonexistent headers
3965 # can be detected and how.
3966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 #include <ac_nonexistent.h>
3970 if ac_fn_c_try_cpp
"$LINENO"; then :
3971 # Broken: success on invalid input.
3974 # Passes both tests.
3978 rm -f conftest.err conftest.i conftest.
$ac_ext
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -f conftest.i conftest.err conftest.
$ac_ext
3983 if $ac_preproc_ok; then :
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3989 See \`config.log' for more details" "$LINENO" 5; }
3993 ac_cpp
='$CPP $CPPFLAGS'
3994 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4001 if ${ac_cv_path_GREP+:} false
; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -z "$GREP"; then
4005 ac_path_GREP_found
=false
4006 # Loop through the user's path and test for each of PROGNAME-LIST
4007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4008 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4011 test -z "$as_dir" && as_dir
=.
4012 for ac_prog
in grep ggrep
; do
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4015 as_fn_executable_p
"$ac_path_GREP" ||
continue
4016 # Check for GNU ac_path_GREP and select it if it is found.
4017 # Check for GNU $ac_path_GREP
4018 case `"$ac_path_GREP" --version 2>&1` in
4020 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4023 $as_echo_n 0123456789 >"conftest.in"
4026 cat "conftest.in" "conftest.in" >"conftest.tmp"
4027 mv "conftest.tmp" "conftest.in"
4028 cp "conftest.in" "conftest.nl"
4029 $as_echo 'GREP' >> "conftest.nl"
4030 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4031 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4032 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4033 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4034 # Best one so far, save it but keep looking for a better one
4035 ac_cv_path_GREP
="$ac_path_GREP"
4036 ac_path_GREP_max
=$ac_count
4038 # 10*(2^10) chars as input seems more than enough
4039 test $ac_count -gt 10 && break
4041 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4044 $ac_path_GREP_found && break 3
4049 if test -z "$ac_cv_path_GREP"; then
4050 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4053 ac_cv_path_GREP
=$GREP
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4058 $as_echo "$ac_cv_path_GREP" >&6; }
4059 GREP
="$ac_cv_path_GREP"
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4063 $as_echo_n "checking for egrep... " >&6; }
4064 if ${ac_cv_path_EGREP+:} false
; then :
4065 $as_echo_n "(cached) " >&6
4067 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4068 then ac_cv_path_EGREP
="$GREP -E"
4070 if test -z "$EGREP"; then
4071 ac_path_EGREP_found
=false
4072 # Loop through the user's path and test for each of PROGNAME-LIST
4073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4074 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4077 test -z "$as_dir" && as_dir
=.
4078 for ac_prog
in egrep; do
4079 for ac_exec_ext
in '' $ac_executable_extensions; do
4080 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4081 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4082 # Check for GNU ac_path_EGREP and select it if it is found.
4083 # Check for GNU $ac_path_EGREP
4084 case `"$ac_path_EGREP" --version 2>&1` in
4086 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4089 $as_echo_n 0123456789 >"conftest.in"
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 $as_echo 'EGREP' >> "conftest.nl"
4096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4097 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4098 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_EGREP
="$ac_path_EGREP"
4102 ac_path_EGREP_max
=$ac_count
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4107 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4110 $ac_path_EGREP_found && break 3
4115 if test -z "$ac_cv_path_EGREP"; then
4116 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4119 ac_cv_path_EGREP
=$EGREP
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4125 $as_echo "$ac_cv_path_EGREP" >&6; }
4126 EGREP
="$ac_cv_path_EGREP"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4130 $as_echo_n "checking for ANSI C header files... " >&6; }
4131 if ${ac_cv_header_stdc+:} false
; then :
4132 $as_echo_n "(cached) " >&6
4134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4149 if ac_fn_c_try_compile
"$LINENO"; then :
4150 ac_cv_header_stdc
=yes
4152 ac_cv_header_stdc
=no
4154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4156 if test $ac_cv_header_stdc = yes; then
4157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 $EGREP "memchr" >/dev
/null
2>&1; then :
4167 ac_cv_header_stdc
=no
4173 if test $ac_cv_header_stdc = yes; then
4174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "free" >/dev
/null
2>&1; then :
4184 ac_cv_header_stdc
=no
4190 if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192 if test "$cross_compiling" = yes; then :
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4199 #if ((' ' & 0x0FF) == 0x020)
4200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 # define ISLOWER(c) \
4204 (('a' <= (c) && (c) <= 'i') \
4205 || ('j' <= (c) && (c) <= 'r') \
4206 || ('s' <= (c) && (c) <= 'z'))
4207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4215 for (i = 0; i < 256; i++)
4216 if (XOR (islower (i), ISLOWER (i))
4217 || toupper (i) != TOUPPER (i))
4222 if ac_fn_c_try_run
"$LINENO"; then :
4225 ac_cv_header_stdc
=no
4227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4234 $as_echo "$ac_cv_header_stdc" >&6; }
4235 if test $ac_cv_header_stdc = yes; then
4237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4242 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4243 inttypes.h stdint.h unistd.h
4245 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4248 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4249 cat >>confdefs.h
<<_ACEOF
4250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4259 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4260 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4267 if test "$MINIX" = yes; then
4269 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4272 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4275 $as_echo "#define _MINIX 1" >>confdefs.h
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4281 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4282 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4283 $as_echo_n "(cached) " >&6
4285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4288 # define __EXTENSIONS__ 1
4289 $ac_includes_default
4298 if ac_fn_c_try_compile
"$LINENO"; then :
4299 ac_cv_safe_to_define___extensions__
=yes
4301 ac_cv_safe_to_define___extensions__
=no
4303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4306 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4307 test $ac_cv_safe_to_define___extensions__ = yes &&
4308 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4310 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4312 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4314 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4316 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4320 # Check whether --enable-largefile was given.
4321 if test "${enable_largefile+set}" = set; then :
4322 enableval
=$enable_largefile;
4325 if test "$enable_largefile" != no
; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4328 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4329 if ${ac_cv_sys_largefile_CC+:} false
; then :
4330 $as_echo_n "(cached) " >&6
4332 ac_cv_sys_largefile_CC
=no
4333 if test "$GCC" != yes; then
4336 # IRIX 6.2 and later do not support large files by default,
4337 # so use the C compiler's -n32 option if that helps.
4338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 /* Check that off_t can represent 2**63 - 1 correctly.
4342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4343 since some C++ compilers masquerading as C compilers
4344 incorrectly reject 9223372036854775807. */
4345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4347 && LARGE_OFF_T % 2147483647 == 1)
4357 if ac_fn_c_try_compile
"$LINENO"; then :
4360 rm -f core conftest.err conftest.
$ac_objext
4362 if ac_fn_c_try_compile
"$LINENO"; then :
4363 ac_cv_sys_largefile_CC
=' -n32'; break
4365 rm -f core conftest.err conftest.
$ac_objext
4369 rm -f conftest.
$ac_ext
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4373 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4374 if test "$ac_cv_sys_largefile_CC" != no
; then
4375 CC
=$CC$ac_cv_sys_largefile_CC
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4379 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4380 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4381 $as_echo_n "(cached) " >&6
4384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 /* Check that off_t can represent 2**63 - 1 correctly.
4388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389 since some C++ compilers masquerading as C compilers
4390 incorrectly reject 9223372036854775807. */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393 && LARGE_OFF_T % 2147483647 == 1)
4403 if ac_fn_c_try_compile
"$LINENO"; then :
4404 ac_cv_sys_file_offset_bits
=no
; break
4406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 #define _FILE_OFFSET_BITS 64
4410 #include <sys/types.h>
4411 /* Check that off_t can represent 2**63 - 1 correctly.
4412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4413 since some C++ compilers masquerading as C compilers
4414 incorrectly reject 9223372036854775807. */
4415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4417 && LARGE_OFF_T % 2147483647 == 1)
4427 if ac_fn_c_try_compile
"$LINENO"; then :
4428 ac_cv_sys_file_offset_bits
=64; break
4430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4431 ac_cv_sys_file_offset_bits
=unknown
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4436 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4437 case $ac_cv_sys_file_offset_bits in #(
4440 cat >>confdefs.h
<<_ACEOF
4441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4446 if test $ac_cv_sys_file_offset_bits = unknown
; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4448 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4449 if ${ac_cv_sys_large_files+:} false
; then :
4450 $as_echo_n "(cached) " >&6
4453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <sys/types.h>
4456 /* Check that off_t can represent 2**63 - 1 correctly.
4457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4458 since some C++ compilers masquerading as C compilers
4459 incorrectly reject 9223372036854775807. */
4460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4462 && LARGE_OFF_T % 2147483647 == 1)
4472 if ac_fn_c_try_compile
"$LINENO"; then :
4473 ac_cv_sys_large_files
=no
; break
4475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #define _LARGE_FILES 1
4479 #include <sys/types.h>
4480 /* Check that off_t can represent 2**63 - 1 correctly.
4481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4482 since some C++ compilers masquerading as C compilers
4483 incorrectly reject 9223372036854775807. */
4484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4486 && LARGE_OFF_T % 2147483647 == 1)
4496 if ac_fn_c_try_compile
"$LINENO"; then :
4497 ac_cv_sys_large_files
=1; break
4499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4500 ac_cv_sys_large_files
=unknown
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4505 $as_echo "$ac_cv_sys_large_files" >&6; }
4506 case $ac_cv_sys_large_files in #(
4509 cat >>confdefs.h
<<_ACEOF
4510 #define _LARGE_FILES $ac_cv_sys_large_files
4521 ac_c_preproc_warn_flag
=yes
4524 ac_cpp
='$CPP $CPPFLAGS'
4525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4529 ac_libiberty_warn_cflags
=
4530 save_CFLAGS
="$CFLAGS"
4531 for real_option
in -W -Wall -Wwrite-strings -Wc++-compat \
4532 -Wstrict-prototypes \
4534 # Do the check with the no- prefix removed since gcc silently
4535 # accepts any -Wno-* option on purpose
4536 case $real_option in
4537 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4538 *) option
=$real_option ;;
4540 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4543 $as_echo_n "checking whether $CC supports $option... " >&6; }
4544 if eval \
${$as_acx_Woption+:} false
; then :
4545 $as_echo_n "(cached) " >&6
4548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4559 if ac_fn_c_try_compile
"$LINENO"; then :
4560 eval "$as_acx_Woption=yes"
4562 eval "$as_acx_Woption=no"
4564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4567 eval ac_res
=\$
$as_acx_Woption
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4569 $as_echo "$ac_res" >&6; }
4570 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4571 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
4574 CFLAGS
="$save_CFLAGS"
4576 ac_cpp
='$CPP $CPPFLAGS'
4577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4583 ac_cpp
='$CPP $CPPFLAGS'
4584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4588 # Do the check with the no- prefix removed from the warning options
4589 # since gcc silently accepts any -Wno-* option on purpose
4590 if test "$GCC" = yes; then :
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
4592 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
4593 if ${acx_cv_prog_cc_pedantic_+:} false
; then :
4594 $as_echo_n "(cached) " >&6
4596 save_CFLAGS
="$CFLAGS"
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_c_try_compile
"$LINENO"; then :
4610 acx_cv_prog_cc_pedantic_
=yes
4612 acx_cv_prog_cc_pedantic_
=no
4614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4615 CFLAGS
="$save_CFLAGS"
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
4618 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
4619 if test $acx_cv_prog_cc_pedantic_ = yes; then :
4620 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
4625 ac_cpp
='$CPP $CPPFLAGS'
4626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4632 if test "x$CC" != xcc
; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4634 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4637 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4639 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4640 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4641 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
4642 $as_echo_n "(cached) " >&6
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 # Make sure it works both with $CC and with simple cc.
4656 # We do the test twice because some compilers refuse to overwrite an
4657 # existing .o file with -o, though they will create one.
4658 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4660 if { { case "(($ac_try" in
4661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; } &&
4670 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4672 *) ac_try_echo
=$ac_try;;
4674 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 $as_echo "$ac_try_echo"; } >&5
4676 (eval "$ac_try") 2>&5
4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; };
4681 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4682 if test "x$CC" != xcc
; then
4683 # Test first that cc exists at all.
4684 if { ac_try
='cc -c conftest.$ac_ext >&5'
4685 { { case "(($ac_try" in
4686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_try") 2>&5
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; }; then
4695 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4697 if { { case "(($ac_try" in
4698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4699 *) ac_try_echo
=$ac_try;;
4701 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_try") 2>&5
4705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706 test $ac_status = 0; } &&
4707 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_try") 2>&5
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; };
4721 # cc exists but doesn't like -o.
4722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4729 rm -f core conftest*
4732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4739 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4743 # autoconf is lame and doesn't give us any substitution variable for this.
4744 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4745 NO_MINUS_C_MINUS_O=yes
4747 OUTPUT_OPTION='-o $@'
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4753 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4754 if ${ac_cv_c_const+:} false; then :
4755 $as_echo_n "(cached) " >&6
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4765 /* Ultrix mips cc rejects this sort of thing. */
4766 typedef int charset[2];
4767 const charset cs = { 0, 0 };
4768 /* SunOS 4.1.1 cc rejects this. */
4769 char const *const *pcpcc;
4771 /* NEC SVR4.0.2 mips cc rejects this. */
4772 struct point {int x, y;};
4773 static struct point const zero = {0,0};
4774 /* AIX XL C 1.02.0.0 rejects this.
4775 It does not let you subtract one const X* pointer from another in
4776 an arm of an if-expression whose if-part is not a constant
4778 const char *g = "string";
4779 pcpcc = &g + (g ? g-g : 0);
4780 /* HPUX 7.0 cc rejects these. */
4782 ppc = (char**) pcpcc;
4783 pcpcc = (char const *const *) ppc;
4784 { /* SCO 3.2v4 cc rejects this sort of thing. */
4787 char const *s = 0 ? (char *) 0 : (char const *) 0;
4792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4794 const int *foo = &x[0];
4797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4798 typedef const int *iptr;
4802 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4804 struct s { int j; const int *ap[3]; } bx;
4805 struct s *b = &bx; b->j = 5;
4807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4811 return !cs[0] && !zero.x;
4818 if ac_fn_c_try_compile "$LINENO"; then :
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4826 $as_echo "$ac_cv_c_const" >&6; }
4827 if test $ac_cv_c_const = no; then
4829 $as_echo "#define const /**/" >>confdefs.h
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4834 $as_echo_n "checking for inline... " >&6; }
4835 if ${ac_cv_c_inline+:} false; then :
4836 $as_echo_n "(cached) " >&6
4839 for ac_kw in inline __inline__ __inline; do
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 static $ac_kw foo_t static_foo () {return 0; }
4845 $ac_kw foo_t foo () {return 0; }
4849 if ac_fn_c_try_compile "$LINENO"; then :
4850 ac_cv_c_inline=$ac_kw
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 test "$ac_cv_c_inline" != no && break
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4858 $as_echo "$ac_cv_c_inline" >&6; }
4860 case $ac_cv_c_inline in
4863 case $ac_cv_c_inline in
4865 *) ac_val=$ac_cv_c_inline;;
4867 cat >>confdefs.h <<_ACEOF
4869 #define inline $ac_val
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4876 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4877 if ${ac_cv_c_bigendian+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 ac_cv_c_bigendian=unknown
4881 # See if we're dealing with a universal compiler.
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #ifndef __APPLE_CC__
4885 not a universal capable compiler
4890 if ac_fn_c_try_compile "$LINENO"; then :
4892 # Check for potential -arch flags. It is not universal unless
4893 # there are at least two -arch flags with different values.
4896 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4897 if test -n "$ac_prev"; then
4899 i?86 | x86_64 | ppc | ppc64)
4900 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4903 ac_cv_c_bigendian=universal
4909 elif test "x$ac_word" = "x-arch"; then
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 if test $ac_cv_c_bigendian = unknown; then
4916 # See if sys/param.h defines the BYTE_ORDER macro.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 #include <sys/param.h>
4925 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4926 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936 # It does; now see whether it defined to BIG_ENDIAN or not.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #include <sys/types.h>
4940 #include <sys/param.h>
4945 #if BYTE_ORDER != BIG_ENDIAN
4953 if ac_fn_c_try_compile "$LINENO"; then :
4954 ac_cv_c_bigendian=yes
4956 ac_cv_c_bigendian=no
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 if test $ac_cv_c_bigendian = unknown; then
4963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4971 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4979 if ac_fn_c_try_compile "$LINENO"; then :
4980 # It does; now see whether it defined to _BIG_ENDIAN or not.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 ac_cv_c_bigendian=yes
4999 ac_cv_c_bigendian=no
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 if test $ac_cv_c_bigendian = unknown; then
5006 # Compile a test program.
5007 if test "$cross_compiling" = yes; then :
5008 # Try to guess by grepping values from an object file.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 short int ascii_mm[] =
5012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5013 short int ascii_ii[] =
5014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5015 int use_ascii (int i) {
5016 return ascii_mm[i] + ascii_ii[i];
5018 short int ebcdic_ii[] =
5019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5020 short int ebcdic_mm[] =
5021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5022 int use_ebcdic (int i) {
5023 return ebcdic_mm[i] + ebcdic_ii[i];
5030 return use_ascii (foo) == use_ebcdic (foo);
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5037 ac_cv_c_bigendian=yes
5039 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5040 if test "$ac_cv_c_bigendian" = unknown; then
5041 ac_cv_c_bigendian=no
5043 # finding both strings is unlikely to happen, but who knows?
5044 ac_cv_c_bigendian=unknown
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 $ac_includes_default
5057 /* Are we little or big endian? From Harbison&Steele. */
5061 char c[sizeof (long int)];
5064 return u.c[sizeof (long int) - 1] == 1;
5070 if ac_fn_c_try_run "$LINENO"; then :
5071 ac_cv_c_bigendian=no
5073 ac_cv_c_bigendian=yes
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5076 conftest.$ac_objext conftest.beam conftest.$ac_ext
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5082 $as_echo "$ac_cv_c_bigendian" >&6; }
5083 case $ac_cv_c_bigendian in #(
5085 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5091 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5095 as_fn_error $? "unknown endianness
5096 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5102 ac_config_headers="$ac_config_headers config.h:config.in"
5106 # Find a good install program. We prefer a C program (faster),
5107 # so one script is as good as another. But avoid the broken or
5108 # incompatible versions:
5109 # SysV /etc/install, /usr/sbin/install
5110 # SunOS /usr/etc/install
5111 # IRIX /sbin/install
5113 # AmigaOS /C/install, which installs bootblocks on floppy discs
5114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5117 # OS/2's system install, which has a completely different semantic
5118 # ./install, which can be erroneously created by make from ./install.sh.
5119 # Reject install programs that cannot install multiple files.
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5121 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5122 if test -z "$INSTALL"; then
5123 if ${ac_cv_path_install+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir=.
5131 # Account for people who put trailing slashes in PATH elements.
5132 case $as_dir/ in #((
5133 ./ | .// | /[cC]/* | \
5134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5135 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5138 # OSF1 and SCO ODT 3.0 have their own names for install.
5139 # Don't use installbsd from OSF since it installs stuff as root
5141 for ac_prog in ginstall scoinst install; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5144 if test $ac_prog = install &&
5145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5146 # AIX install. It has an incompatible calling convention.
5148 elif test $ac_prog = install &&
5149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5150 # program-specific install script used by HP pwplus--don't use.
5153 rm -rf conftest.one conftest.two conftest.dir
5154 echo one > conftest.one
5155 echo two > conftest.two
5157 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5158 test -s conftest.one && test -s conftest.two &&
5159 test -s conftest.dir/conftest.one &&
5160 test -s conftest.dir/conftest.two
5162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5175 rm -rf conftest.one conftest.two conftest.dir
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL=$ac_cv_path_install
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL=$ac_install_sh
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5189 $as_echo "$INSTALL" >&6; }
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5200 # Don't build the shared library for build.
5201 if [ -n "${with_build_subdir}" ]; then
5207 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
5209 *-*-cxux7*) frag=mh-cxux7 ;;
5210 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
5211 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
5212 i370-*-opened*) frag=mh-openedition ;;
5213 i[34567]86-*-windows*) frag=mh-windows ;;
5216 if [ -n "${frag}" ]; then
5217 frag=${libiberty_topdir}/libiberty/config/$frag
5225 # PIC is the default on some targets or must not be used.
5227 # For darwin, common symbols are not allowed in MH_DYLIB files
5229 # If we are using a compiler supporting mdynamic-no-pic
5230 # and the option has been tested as safe to add, then cancel
5231 # it here, since the code generated is incompatible with shared
5233 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
5234 *) PICFLAG=-fno-common ;;
5238 # PIC is the default.
5241 # PIC is the default for 64-bit PA HP-UX.
5243 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5245 i[34567]86-*-mingw* | x86_64-*-mingw*)
5247 i[34567]86-*-interix[3-9]*)
5248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5249 # Instead, we relocate shared libraries at runtime.
5251 i[34567]86-*-nto-qnx*)
5252 # QNX uses GNU C++, but need to define -shared option too, otherwise
5254 PICFLAG='-fPIC -shared'
5256 i[34567]86-pc-msdosdjgpp*)
5257 # DJGPP does not support shared libraries at all.
5260 # On IA64 HP-UX, PIC is the default but the pic flag
5261 # sets the default TLS model and affects inlining.
5268 # PIC is the default.
5270 rs6000-ibm-aix* | powerpc-ibm-aix*)
5271 # All AIX code is PIC.
5274 # Some targets support both -fPIC and -fpic, but prefer the latter.
5276 i[34567]86-*-* | x86_64-*-*)
5279 # FIXME: Override -fPIC default in libgcc only?
5280 sh-*-linux* | sh[2346lbe]*-*-linux*)
5283 # FIXME: Simplify to sh*-*-netbsd*?
5284 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5285 sh64-*-netbsd* | sh64l*-*-netbsd*)
5288 # Default to -fPIC unless specified otherwise.
5294 # If the user explicitly uses -fpic/-fPIC, keep that.
5305 # If they didn't specify --enable-shared, don't generate shared libs.
5306 case "${enable_shared}" in
5313 # ...unless --enable-host-shared was passed from top-level config:
5314 if [ "${enable_host_shared}" = "yes" ]; then
5318 if [ "${shared}" != "yes" ]; then
5324 case " ${CFLAGS} " in
5325 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
5326 *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;;
5330 # Check whether --enable-cet was given.
5331 if test "${enable_cet+set}" = set; then :
5332 enableval=$enable_cet;
5333 case "$enableval" in
5335 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5344 $as_echo_n "checking for CET support... " >&6; }
5347 i[34567]86-*-linux* | x86_64-*-linux*)
5349 cet_save_CFLAGS="$CFLAGS"
5350 CFLAGS="$CFLAGS -fcf-protection"
5351 case "$enable_cet" in
5353 # Check if target supports multi-byte NOPs
5354 # and if compiler and assembler support CET.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5362 #if !defined(__SSE2__)
5363 #error target does not support multi-byte NOPs
5372 if ac_fn_c_try_compile "$LINENO"; then :
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 # Check if compiler and assembler support CET.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5392 if ac_fn_c_try_compile "$LINENO"; then :
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 if test $support_cet = "no"; then
5399 if test x$enable_bootstrap != xno \
5400 && test -z "${with_build_subdir}" \
5401 && (test ! -f ../stage_current \
5402 || test `cat ..
/stage_current
` != "stage1"); then
5403 # Require CET support only for the final GCC build.
5404 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5406 # Don't enable CET without CET support for non-bootstrap
5407 # build, in stage1 nor for build support.
5413 CFLAGS="$cet_save_CFLAGS"
5421 cet_save_CFLAGS="$CFLAGS"
5422 CFLAGS="$CFLAGS -fcf-protection=none"
5423 cet_save_LDFLAGS="$LDFLAGS"
5424 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5425 if test x$may_have_cet = xyes; then
5426 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5427 if test x$gcc_no_link = xyes; then
5428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5441 if ac_fn_c_try_link "$LINENO"; then :
5446 rm -f core conftest.err conftest.$ac_objext \
5447 conftest$ac_exeext conftest.$ac_ext
5450 if test x$may_have_cet = xyes; then
5451 if test x$cross_compiling = xno; then
5452 if test "$cross_compiling" = yes; then :
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error $? "cannot run
test program
while cross compiling
5456 See \
`config.log' for more details" "$LINENO" 5; }
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5469 if ac_fn_c_try_run "$LINENO"; then :
5470 have_multi_byte_nop=yes
5472 have_multi_byte_nop=no
5474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5475 conftest.$ac_objext conftest.beam conftest.$ac_ext
5479 if test x$have_multi_byte_nop = xyes; then
5480 if test "$cross_compiling" = yes; then :
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483 as_fn_error $? "cannot run
test program
while cross compiling
5484 See \
`config.log' for more details" "$LINENO" 5; }
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5495 __attribute__ ((noinline, noclone))
5496 xxx (void (*f) (void))
5502 __attribute__ ((noinline, noclone))
5516 if ac_fn_c_try_run "$LINENO"; then :
5521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5522 conftest.$ac_objext conftest.beam conftest.$ac_ext
5526 if test x$enable_cet = xno -a x$have_cet = xyes; then
5527 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5531 # Enable CET in cross compiler if possible so that it will run on both
5532 # CET and non-CET hosts.
5535 if test x$enable_cet = xyes; then
5536 CET_HOST_FLAGS="-fcf-protection"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5543 CFLAGS="$cet_save_CFLAGS"
5544 LDFLAGS="$cet_save_LDFLAGS"
5548 echo "# Warning: this fragment is automatically generated" > temp-frag
5550 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
5551 echo "Appending ${frag} to xhost-mkfrag"
5552 echo "# Following fragment copied from ${frag}" >> temp-frag
5553 cat ${frag} >> temp-frag
5556 # record if we want to build shared libs.
5557 if [ "${shared}" = "yes" ]; then
5558 echo enable_shared = yes >> temp-frag
5560 echo enable_shared = no >> temp-frag
5564 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
5566 host_makefile_frag=${frag}
5569 # It's OK to check for header files. Although the compiler may not be
5570 # able to link anything, it had better be able to at least compile
5572 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
5574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5575 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
5576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5577 cat >>confdefs.h <<_ACEOF
5578 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5585 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5586 if ${ac_cv_header_sys_wait_h+:} false; then :
5587 $as_echo_n "(cached) " >&6
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <sys/types.h>
5592 #include <sys/wait.h>
5594 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5597 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_header_sys_wait_h=yes
5613 ac_cv_header_sys_wait_h=no
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5618 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5619 if test $ac_cv_header_sys_wait_h = yes; then
5621 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5627 if ${ac_cv_header_time+:} false; then :
5628 $as_echo_n "(cached) " >&6
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 #include <sys/time.h>
5639 if ((struct tm *) 0)
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 ac_cv_header_time=yes
5648 ac_cv_header_time=no
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5653 $as_echo "$ac_cv_header_time" >&6; }
5654 if test $ac_cv_header_time = yes; then
5656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
5662 $as_echo_n "checking whether errno must be declared... " >&6; }
5663 if ${libiberty_cv_declare_errno+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 libiberty_cv_declare_errno=no
5680 libiberty_cv_declare_errno=yes
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
5685 $as_echo "$libiberty_cv_declare_errno" >&6; }
5686 if test $libiberty_cv_declare_errno = yes
5688 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
5693 # Determine sizes of some types.
5694 # The cast to long int works around a bug in the HP C Compiler
5695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5696 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
5697 # This bug is HP SR number 8606223364.
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5699 $as_echo_n "checking size of int... " >&6; }
5700 if ${ac_cv_sizeof_int+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5706 if test "$ac_cv_type_int" = yes; then
5707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5708 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5709 as_fn_error 77 "cannot compute sizeof (int)
5710 See \`config.log
' for more details" "$LINENO" 5; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5718 $as_echo "$ac_cv_sizeof_int" >&6; }
5722 cat >>confdefs.h <<_ACEOF
5723 #define SIZEOF_INT $ac_cv_sizeof_int
5727 # The cast to long int works around a bug in the HP C Compiler
5728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5730 # This bug is HP SR number 8606223364.
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5732 $as_echo_n "checking size of long... " >&6; }
5733 if ${ac_cv_sizeof_long+:} false
; then :
5734 $as_echo_n "(cached) " >&6
5736 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5739 if test "$ac_cv_type_long" = yes; then
5740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5742 as_fn_error
77 "cannot compute sizeof (long)
5743 See \`config.log' for more details" "$LINENO" 5; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5751 $as_echo "$ac_cv_sizeof_long" >&6; }
5755 cat >>confdefs.h
<<_ACEOF
5756 #define SIZEOF_LONG $ac_cv_sizeof_long
5760 # The cast to long int works around a bug in the HP C Compiler
5761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5763 # This bug is HP SR number 8606223364.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
5765 $as_echo_n "checking size of size_t... " >&6; }
5766 if ${ac_cv_sizeof_size_t+:} false
; then :
5767 $as_echo_n "(cached) " >&6
5769 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
5772 if test "$ac_cv_type_size_t" = yes; then
5773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775 as_fn_error
77 "cannot compute sizeof (size_t)
5776 See \`config.log' for more details" "$LINENO" 5; }
5778 ac_cv_sizeof_size_t
=0
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
5784 $as_echo "$ac_cv_sizeof_size_t" >&6; }
5788 cat >>confdefs.h
<<_ACEOF
5789 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5794 # Check for presense of long long
5795 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5796 if test "x$ac_cv_type_long_long" = xyes
; then :
5798 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5799 # The cast to long int works around a bug in the HP C Compiler
5800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5802 # This bug is HP SR number 8606223364.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5804 $as_echo_n "checking size of long long... " >&6; }
5805 if ${ac_cv_sizeof_long_long+:} false
; then :
5806 $as_echo_n "(cached) " >&6
5808 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5811 if test "$ac_cv_type_long_long" = yes; then
5812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5814 as_fn_error
77 "cannot compute sizeof (long long)
5815 See \`config.log' for more details" "$LINENO" 5; }
5817 ac_cv_sizeof_long_long
=0
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5823 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5827 cat >>confdefs.h
<<_ACEOF
5828 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5835 # Look for a 64-bit type.
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
5837 $as_echo_n "checking for a 64-bit type... " >&6; }
5838 if ${liberty_cv_uint64+:} false
; then :
5839 $as_echo_n "(cached) " >&6
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #ifdef HAVE_STDINT_H
5849 extern uint64_t foo;
5854 if ac_fn_c_try_compile
"$LINENO"; then :
5855 liberty_cv_uint64
=uint64_t
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #ifdef HAVE_LIMITS_H
5868 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5873 if ac_fn_c_try_compile
"$LINENO"; then :
5874 liberty_cv_uint64
="unsigned long"
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #ifdef HAVE_LIMITS_H
5887 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5892 if ac_fn_c_try_compile
"$LINENO"; then :
5893 liberty_cv_uint64
="unsigned long long"
5895 liberty_cv_uint64
=none
5897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
5905 $as_echo "$liberty_cv_uint64" >&6; }
5906 if test "$liberty_cv_uint64" != none
; then
5908 cat >>confdefs.h
<<_ACEOF
5909 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5915 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5916 if test "x$ac_cv_type_intptr_t" = xyes
; then :
5918 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5921 for ac_type
in 'int' 'long int' 'long long int'; do
5922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 $ac_includes_default
5928 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5930 return test_array [0];
5936 if ac_fn_c_try_compile
"$LINENO"; then :
5938 cat >>confdefs.h
<<_ACEOF
5939 #define intptr_t $ac_type
5944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5945 test -z "$ac_type" && break
5951 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5952 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5954 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5957 for ac_type
in 'unsigned int' 'unsigned long int' \
5958 'unsigned long long int'; do
5959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 $ac_includes_default
5965 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5967 return test_array [0];
5973 if ac_fn_c_try_compile
"$LINENO"; then :
5975 cat >>confdefs.h
<<_ACEOF
5976 #define uintptr_t $ac_type
5981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5982 test -z "$ac_type" && break
5987 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5988 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5992 cat >>confdefs.h
<<_ACEOF
5999 # Given the above check, we always have uintptr_t or a fallback
6000 # definition. So define HAVE_UINTPTR_T in case any imported code
6003 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6006 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6007 if test "x$ac_cv_type_pid_t" = xyes
; then :
6011 cat >>confdefs.h
<<_ACEOF
6018 # This is the list of functions which libiberty will provide if they
6019 # are not available on the host.
6022 funcs
="$funcs atexit"
6023 funcs
="$funcs basename"
6025 funcs
="$funcs bcopy"
6026 funcs
="$funcs bsearch"
6027 funcs
="$funcs bzero"
6028 funcs
="$funcs calloc"
6029 funcs
="$funcs clock"
6031 funcs
="$funcs getcwd"
6032 funcs
="$funcs getpagesize"
6033 funcs
="$funcs gettimeofday"
6034 funcs
="$funcs index"
6035 funcs
="$funcs insque"
6036 funcs
="$funcs memchr"
6037 funcs
="$funcs memcmp"
6038 funcs
="$funcs memcpy"
6039 funcs
="$funcs memmem"
6040 funcs
="$funcs memmove"
6041 funcs
="$funcs mempcpy"
6042 funcs
="$funcs memset"
6043 funcs
="$funcs mkstemps"
6044 funcs
="$funcs putenv"
6045 funcs
="$funcs random"
6046 funcs
="$funcs rename"
6047 funcs
="$funcs rindex"
6048 funcs
="$funcs setenv"
6049 funcs
="$funcs snprintf"
6050 funcs
="$funcs sigsetmask"
6051 funcs
="$funcs stpcpy"
6052 funcs
="$funcs stpncpy"
6053 funcs
="$funcs strcasecmp"
6054 funcs
="$funcs strchr"
6055 funcs
="$funcs strdup"
6056 funcs
="$funcs strncasecmp"
6057 funcs
="$funcs strndup"
6058 funcs
="$funcs strnlen"
6059 funcs
="$funcs strrchr"
6060 funcs
="$funcs strstr"
6061 funcs
="$funcs strtod"
6062 funcs
="$funcs strtol"
6063 funcs
="$funcs strtoul"
6064 funcs
="$funcs strtoll"
6065 funcs
="$funcs strtoull"
6066 funcs
="$funcs strverscmp"
6067 funcs
="$funcs tmpnam"
6068 funcs
="$funcs vasprintf"
6069 funcs
="$funcs vfprintf"
6070 funcs
="$funcs vprintf"
6071 funcs
="$funcs vsnprintf"
6072 funcs
="$funcs vsprintf"
6073 funcs
="$funcs waitpid"
6074 funcs
="$funcs setproctitle"
6076 # Also in the old function.def file: alloca, vfork, getopt.
6078 vars
="sys_errlist sys_nerr sys_siglist"
6080 checkfuncs
="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
6081 getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
6082 realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
6083 sysmp table times wait3 wait4"
6085 #Â Darwin has sbrk, but it is deprecated and that produces build-time warnings
6086 #Â so do not check for it.
6089 *) checkfuncs
="$checkfuncs sbrk"
6092 # These are neither executed nor required, but they help keep
6093 # autoheader happy without adding a bunch of text to acconfig.h.
6094 if test "x" = "y"; then
6095 for ac_func
in asprintf atexit \
6096 basename bcmp bcopy bsearch bzero \
6097 calloc canonicalize_file_name
clock \
6100 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
6102 memchr memcmp memcpy memmem memmove memset mkstemps \
6104 pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
6105 random realpath rename rindex \
6106 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
6107 stpcpy stpncpy strcasecmp strchr strdup \
6108 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
6109 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
6110 table
times tmpnam \
6111 vasprintf vfprintf vprintf vsprintf \
6114 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6115 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6116 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6117 cat >>confdefs.h
<<_ACEOF
6118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6124 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6125 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6126 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
6132 cat >>confdefs.h
<<_ACEOF
6133 #define HAVE_DECL_BASENAME $ac_have_decl
6135 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6136 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
6142 cat >>confdefs.h
<<_ACEOF
6143 #define HAVE_DECL_FFS $ac_have_decl
6145 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6146 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
6152 cat >>confdefs.h
<<_ACEOF
6153 #define HAVE_DECL_ASPRINTF $ac_have_decl
6155 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6156 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
6162 cat >>confdefs.h
<<_ACEOF
6163 #define HAVE_DECL_VASPRINTF $ac_have_decl
6165 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6166 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
6172 cat >>confdefs.h
<<_ACEOF
6173 #define HAVE_DECL_SNPRINTF $ac_have_decl
6175 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6176 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
6182 cat >>confdefs.h
<<_ACEOF
6183 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6185 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6186 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
6192 cat >>confdefs.h
<<_ACEOF
6193 #define HAVE_DECL_STRTOL $ac_have_decl
6195 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6196 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
6202 cat >>confdefs.h
<<_ACEOF
6203 #define HAVE_DECL_STRTOUL $ac_have_decl
6205 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6206 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
6212 cat >>confdefs.h
<<_ACEOF
6213 #define HAVE_DECL_STRTOLL $ac_have_decl
6215 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6216 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
6222 cat >>confdefs.h
<<_ACEOF
6223 #define HAVE_DECL_STRTOULL $ac_have_decl
6225 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
6226 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
6232 cat >>confdefs.h
<<_ACEOF
6233 #define HAVE_DECL_STRNLEN $ac_have_decl
6237 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
6240 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
6243 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
6247 # For each of these functions, if the host does not provide the
6248 # function we want to put FN.o in LIBOBJS, and if the host does
6249 # provide the function, we want to define HAVE_FN in config.h.
6253 if test -n "${with_target_subdir}"; then
6255 # We are being configured as a target library. AC_REPLACE_FUNCS
6256 # may not work correctly, because the compiler may not be able to
6257 # link executables. Note that we may still be being configured
6260 # If we are being configured for newlib, we know which functions
6261 # newlib provide and which ones we will be expected to provide.
6263 if test "x${with_newlib}" = "xyes"; then
6264 case " $LIBOBJS " in
6265 *" asprintf.$ac_objext "* ) ;;
6266 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6270 case " $LIBOBJS " in
6271 *" basename.$ac_objext "* ) ;;
6272 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6276 case " $LIBOBJS " in
6277 *" insque.$ac_objext "* ) ;;
6278 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6282 case " $LIBOBJS " in
6283 *" random.$ac_objext "* ) ;;
6284 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6288 case " $LIBOBJS " in
6289 *" strdup.$ac_objext "* ) ;;
6290 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
6294 case " $LIBOBJS " in
6295 *" vasprintf.$ac_objext "* ) ;;
6296 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6303 asprintf |
basename | insque | random | strdup | vasprintf
)
6306 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6307 cat >>confdefs.h
<<_ACEOF
6315 # newlib doesnt provide any of the variables in $vars, so we
6316 # dont have to check them here.
6318 # Of the functions in $checkfuncs, newlib only has strerror.
6319 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6326 # If we are being configured for Mingw, we know which functions
6327 # Mingw provides and which ones we will be expected to provide.
6331 case " $LIBOBJS " in
6332 *" asprintf.$ac_objext "* ) ;;
6333 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6337 case " $LIBOBJS " in
6338 *" basename.$ac_objext "* ) ;;
6339 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6343 case " $LIBOBJS " in
6344 *" bcmp.$ac_objext "* ) ;;
6345 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext"
6349 case " $LIBOBJS " in
6350 *" bcopy.$ac_objext "* ) ;;
6351 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext"
6355 case " $LIBOBJS " in
6356 *" bzero.$ac_objext "* ) ;;
6357 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext"
6361 case " $LIBOBJS " in
6362 *" clock.$ac_objext "* ) ;;
6363 *) LIBOBJS
="$LIBOBJS clock.$ac_objext"
6367 case " $LIBOBJS " in
6368 *" ffs.$ac_objext "* ) ;;
6369 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext"
6373 case " $LIBOBJS " in
6374 *" getpagesize.$ac_objext "* ) ;;
6375 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext"
6379 case " $LIBOBJS " in
6380 *" index.$ac_objext "* ) ;;
6381 *) LIBOBJS
="$LIBOBJS index.$ac_objext"
6385 case " $LIBOBJS " in
6386 *" insque.$ac_objext "* ) ;;
6387 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6391 case " $LIBOBJS " in
6392 *" mempcpy.$ac_objext "* ) ;;
6393 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext"
6397 case " $LIBOBJS " in
6398 *" mkstemps.$ac_objext "* ) ;;
6399 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext"
6403 case " $LIBOBJS " in
6404 *" random.$ac_objext "* ) ;;
6405 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6409 case " $LIBOBJS " in
6410 *" rindex.$ac_objext "* ) ;;
6411 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext"
6415 case " $LIBOBJS " in
6416 *" sigsetmask.$ac_objext "* ) ;;
6417 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext"
6421 case " $LIBOBJS " in
6422 *" stpcpy.$ac_objext "* ) ;;
6423 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext"
6427 case " $LIBOBJS " in
6428 *" stpncpy.$ac_objext "* ) ;;
6429 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext"
6433 case " $LIBOBJS " in
6434 *" strndup.$ac_objext "* ) ;;
6435 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext"
6439 case " $LIBOBJS " in
6440 *" strnlen.$ac_objext "* ) ;;
6441 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
6445 case " $LIBOBJS " in
6446 *" strverscmp.$ac_objext "* ) ;;
6447 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext"
6451 case " $LIBOBJS " in
6452 *" vasprintf.$ac_objext "* ) ;;
6453 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6457 case " $LIBOBJS " in
6458 *" waitpid.$ac_objext "* ) ;;
6459 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext"
6466 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid
)
6469 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6470 cat >>confdefs.h
<<_ACEOF
6478 # Mingw doesnt provide any of the variables in $vars, so we
6479 # dont have to check them here.
6481 # Of the functions in $checkfuncs, Mingw only has strerror.
6482 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6489 case " $LIBOBJS " in
6490 *" vasprintf.$ac_objext "* ) ;;
6491 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6495 case " $LIBOBJS " in
6496 *" vsnprintf.$ac_objext "* ) ;;
6497 *) LIBOBJS
="$LIBOBJS vsnprintf.$ac_objext"
6501 case " $LIBOBJS " in
6502 *" snprintf.$ac_objext "* ) ;;
6503 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6507 case " $LIBOBJS " in
6508 *" asprintf.$ac_objext "* ) ;;
6509 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6514 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6515 getcwd getpagesize getrusage gettimeofday \
6516 index insque memchr memcmp memcpy memmove memset psignal \
6517 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6518 strchr strdup strerror strncasecmp strrchr strstr strtod \
6519 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6522 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6523 cat >>confdefs.h
<<_ACEOF
6537 # Not a target library, so we set things up to run the test suite.
6546 *-*-cygwin* |
*-*-mingw*)
6547 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
6549 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
6554 if test -z "${setobjs}"; then
6558 # Handle VxWorks configuration specially, since on VxWorks the
6559 # libraries are actually on the target board, not in the file
6561 case " $LIBOBJS " in
6562 *" basename.$ac_objext "* ) ;;
6563 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6567 case " $LIBOBJS " in
6568 *" getpagesize.$ac_objext "* ) ;;
6569 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext"
6573 case " $LIBOBJS " in
6574 *" insque.$ac_objext "* ) ;;
6575 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6579 case " $LIBOBJS " in
6580 *" random.$ac_objext "* ) ;;
6581 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6585 case " $LIBOBJS " in
6586 *" strcasecmp.$ac_objext "* ) ;;
6587 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
6591 case " $LIBOBJS " in
6592 *" strncasecmp.$ac_objext "* ) ;;
6593 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext"
6597 case " $LIBOBJS " in
6598 *" strdup.$ac_objext "* ) ;;
6599 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
6603 case " $LIBOBJS " in
6604 *" vfork.$ac_objext "* ) ;;
6605 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext"
6609 case " $LIBOBJS " in
6610 *" waitpid.$ac_objext "* ) ;;
6611 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext"
6615 case " $LIBOBJS " in
6616 *" vasprintf.$ac_objext "* ) ;;
6617 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6623 basename | getpagesize | insque | random | strcasecmp
)
6625 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6628 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >>confdefs.h
<<_ACEOF
6637 # VxWorks doesn't provide any of the variables in $vars, so we
6638 # don't have to check them here.
6640 # Of the functions in $checkfuncs, VxWorks only has strerror.
6641 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6650 if test -z "${setobjs}"; then
6655 # On android, getpagesize is defined in unistd.h as a static inline
6656 # function, which AC_CHECK_FUNCS does not handle properly.
6657 ac_cv_func_getpagesize
=yes
6661 # Replace system snprintf and vsnprintf with libiberty implementations.
6662 case " $LIBOBJS " in
6663 *" snprintf.$ac_objext "* ) ;;
6664 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6668 case " $LIBOBJS " in
6669 *" vsnprintf.$ac_objext "* ) ;;
6670 *) LIBOBJS
="$LIBOBJS vsnprintf.$ac_objext"
6677 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6678 # macros, so the test below won't find them.
6679 libiberty_cv_var_sys_nerr
=yes
6680 libiberty_cv_var_sys_errlist
=yes
6684 # vfork and fork are stubs.
6685 ac_cv_func_vfork_works
=no
6689 # Under some versions of uwin, vfork is notoriously buggy and the test
6690 # can hang configure; on other versions, vfork exists just as a stub.
6691 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6692 ac_cv_func_vfork_works
=no
6693 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6694 # macros (actually, these are imported from a DLL, but the end effect
6695 # is the same), so the test below won't find them.
6696 libiberty_cv_var_sys_nerr
=yes
6697 libiberty_cv_var_sys_errlist
=yes
6701 # Under VMS, vfork works very different than on Unix. The standard test
6702 # won't work, and it isn't easily adaptable. It makes more sense to
6704 ac_cv_func_vfork_works
=yes
6709 # We haven't set the list of objects yet. Use the standard autoconf
6710 # tests. This will only work if the compiler works.
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6712 $as_echo_n "checking for library containing strerror... " >&6; }
6713 if ${ac_cv_search_strerror+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6716 ac_func_search_save_LIBS
=$LIBS
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6720 /* Override any GCC internal prototype to avoid an error.
6721 Use char because int might match the return type of a GCC
6722 builtin and then its argument prototype would still apply. */
6735 for ac_lib
in '' cposix
; do
6736 if test -z "$ac_lib"; then
6737 ac_res
="none required"
6740 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6742 if test x
$gcc_no_link = xyes
; then
6743 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6745 if ac_fn_c_try_link
"$LINENO"; then :
6746 ac_cv_search_strerror
=$ac_res
6748 rm -f core conftest.err conftest.
$ac_objext \
6750 if ${ac_cv_search_strerror+:} false
; then :
6754 if ${ac_cv_search_strerror+:} false
; then :
6757 ac_cv_search_strerror
=no
6760 LIBS
=$ac_func_search_save_LIBS
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6763 $as_echo "$ac_cv_search_strerror" >&6; }
6764 ac_res
=$ac_cv_search_strerror
6765 if test "$ac_res" != no
; then :
6766 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6770 for ac_func
in $funcs
6772 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6773 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6774 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6775 cat >>confdefs.h
<<_ACEOF
6776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6780 case " $LIBOBJS " in
6781 *" $ac_func.$ac_objext "* ) ;;
6782 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
6790 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
6791 if ${ac_cv_os_cray+:} false
; then :
6792 $as_echo_n "(cached) " >&6
6794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796 #if defined(CRAY) && ! defined(CRAY2)
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804 $EGREP "webecray" >/dev
/null
2>&1; then :
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6813 $as_echo "$ac_cv_os_cray" >&6; }
6814 if test $ac_cv_os_cray = yes; then
6815 for ac_func
in _getb67 GETB67 getb67
; do
6816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6820 cat >>confdefs.h
<<_ACEOF
6821 #define CRAY_STACKSEG_END $ac_func
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6830 $as_echo_n "checking stack direction for C alloca... " >&6; }
6831 if ${ac_cv_c_stack_direction+:} false
; then :
6832 $as_echo_n "(cached) " >&6
6834 if test "$cross_compiling" = yes; then :
6835 ac_cv_c_stack_direction
=0
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6842 find_stack_direction (void)
6844 static char *addr = 0;
6849 return find_stack_direction ();
6852 return (&dummy > addr) ? 1 : -1;
6858 exit (find_stack_direction() < 0);
6861 if ac_fn_c_try_run
"$LINENO"; then :
6862 ac_cv_c_stack_direction
=1
6864 ac_cv_c_stack_direction
=-1
6866 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6867 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6872 $as_echo "$ac_cv_c_stack_direction" >&6; }
6874 cat >>confdefs.h
<<_ACEOF
6875 #define STACK_DIRECTION $ac_cv_c_stack_direction
6879 for ac_header
in vfork.h
6881 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
6882 if test "x$ac_cv_header_vfork_h" = xyes
; then :
6883 cat >>confdefs.h
<<_ACEOF
6884 #define HAVE_VFORK_H 1
6890 for ac_func
in fork vfork
6892 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6893 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6894 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6895 cat >>confdefs.h
<<_ACEOF
6896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6902 if test "x$ac_cv_func_fork" = xyes
; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6904 $as_echo_n "checking for working fork... " >&6; }
6905 if ${ac_cv_func_fork_works+:} false
; then :
6906 $as_echo_n "(cached) " >&6
6908 if test "$cross_compiling" = yes; then :
6909 ac_cv_func_fork_works
=cross
6911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 $ac_includes_default
6918 /* By Ruediger Kuhlmann. */
6925 if ac_fn_c_try_run
"$LINENO"; then :
6926 ac_cv_func_fork_works
=yes
6928 ac_cv_func_fork_works
=no
6930 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6931 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6936 $as_echo "$ac_cv_func_fork_works" >&6; }
6939 ac_cv_func_fork_works
=$ac_cv_func_fork
6941 if test "x$ac_cv_func_fork_works" = xcross
; then
6943 *-*-amigaos* |
*-*-msdosdjgpp*)
6944 # Override, as these systems have only a dummy fork() stub
6945 ac_cv_func_fork_works
=no
6948 ac_cv_func_fork_works
=yes
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6952 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6954 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6955 if test "x$ac_cv_func_vfork" = xyes
; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6957 $as_echo_n "checking for working vfork... " >&6; }
6958 if ${ac_cv_func_vfork_works+:} false
; then :
6959 $as_echo_n "(cached) " >&6
6961 if test "$cross_compiling" = yes; then :
6962 ac_cv_func_vfork_works
=cross
6964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 /* Thanks to Paul Eggert for this test. */
6967 $ac_includes_default
6968 #include <sys/wait.h>
6972 /* On some sparc systems, changes by the child to local and incoming
6973 argument registers are propagated back to the parent. The compiler
6974 is told about this with #include <vfork.h>, but some compilers
6975 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6976 static variable whose address is put into a register that is
6977 clobbered by the vfork. */
6980 sparc_address_test (int arg)
6982 sparc_address_test (arg) int arg;
7003 pid_t parent = getpid ();
7006 sparc_address_test (0);
7011 /* Here is another test for sparc vfork register problems. This
7012 test uses lots of local variables, at least as many local
7013 variables as main has allocated so far including compiler
7014 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7015 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7016 reuse the register of parent for one of the local variables,
7017 since it will think that parent can't possibly be used any more
7018 in this routine. Assigning to the local variable will thus
7019 munge parent in the parent process. */
7021 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7022 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7023 /* Convince the compiler that p..p7 are live; otherwise, it might
7024 use the same hardware register for all 8 local variables. */
7025 if (p != p1 || p != p2 || p != p3 || p != p4
7026 || p != p5 || p != p6 || p != p7)
7029 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7030 from child file descriptors. If the child closes a descriptor
7031 before it execs or exits, this munges the parent's descriptor
7032 as well. Test for this by closing stdout in the child. */
7033 _exit(close(fileno(stdout)) != 0);
7038 while (wait(&status) != child)
7041 /* Was there some problem with vforking? */
7044 /* Did the child fail? (This shouldn't happen.) */
7047 /* Did the vfork/compiler bug occur? */
7048 || parent != getpid()
7050 /* Did the file descriptor bug occur? */
7051 || fstat(fileno(stdout), &st) != 0
7056 if ac_fn_c_try_run
"$LINENO"; then :
7057 ac_cv_func_vfork_works
=yes
7059 ac_cv_func_vfork_works
=no
7061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7067 $as_echo "$ac_cv_func_vfork_works" >&6; }
7070 if test "x$ac_cv_func_fork_works" = xcross
; then
7071 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7073 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7076 if test "x$ac_cv_func_vfork_works" = xyes
; then
7078 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7082 $as_echo "#define vfork fork" >>confdefs.h
7085 if test "x$ac_cv_func_fork_works" = xyes
; then
7087 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7091 if test $ac_cv_func_vfork_works = no
; then
7092 case " $LIBOBJS " in
7093 *" vfork.$ac_objext "* ) ;;
7094 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext"
7099 # We only need _doprnt if we might use it to implement v*printf.
7100 if test $ac_cv_func_vprintf != yes \
7101 ||
test $ac_cv_func_vfprintf != yes \
7102 ||
test $ac_cv_func_vsprintf != yes; then
7103 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7104 if test "x$ac_cv_func__doprnt" = xyes
; then :
7105 $as_echo "#define HAVE__DOPRNT 1" >>confdefs.h
7108 case " $LIBOBJS " in
7109 *" _doprnt.$ac_objext "* ) ;;
7110 *) LIBOBJS
="$LIBOBJS _doprnt.$ac_objext"
7118 for ac_func
in _doprnt
7120 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7121 if test "x$ac_cv_func__doprnt" = xyes
; then :
7122 cat >>confdefs.h
<<_ACEOF
7123 #define HAVE__DOPRNT 1
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
7133 $as_echo_n "checking for $v... " >&6; }
7134 if eval \
${libiberty_cv_var_$v+:} false
; then :
7135 $as_echo_n "(cached) " >&6
7137 if test x
$gcc_no_link = xyes
; then
7138 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7146 if ($v [0]) return 1;
7151 if ac_fn_c_try_link
"$LINENO"; then :
7152 eval "libiberty_cv_var_$v=yes"
7154 eval "libiberty_cv_var_$v=no"
7156 rm -f core conftest.err conftest.
$ac_objext \
7157 conftest
$ac_exeext conftest.
$ac_ext
7160 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7162 $as_echo "yes" >&6; }
7163 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7164 cat >>confdefs.h
<<_ACEOF
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7174 # special check for _system_configuration because AIX <4.3.2 do not
7175 # contain the `physmem' member.
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
7177 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
7178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 #include <sys/systemcfg.h>
7184 double x = _system_configuration.physmem;
7189 if ac_fn_c_try_compile
"$LINENO"; then :
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7193 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7201 for ac_func
in $checkfuncs
7203 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7204 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7205 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7206 cat >>confdefs.h
<<_ACEOF
7207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7213 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7214 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7215 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
7221 cat >>confdefs.h
<<_ACEOF
7222 #define HAVE_DECL_BASENAME $ac_have_decl
7224 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7225 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
7231 cat >>confdefs.h
<<_ACEOF
7232 #define HAVE_DECL_FFS $ac_have_decl
7234 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7235 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
7241 cat >>confdefs.h
<<_ACEOF
7242 #define HAVE_DECL_ASPRINTF $ac_have_decl
7244 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7245 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
7251 cat >>confdefs.h
<<_ACEOF
7252 #define HAVE_DECL_VASPRINTF $ac_have_decl
7254 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7255 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
7261 cat >>confdefs.h
<<_ACEOF
7262 #define HAVE_DECL_SNPRINTF $ac_have_decl
7264 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7265 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
7271 cat >>confdefs.h
<<_ACEOF
7272 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7275 ac_fn_c_check_decl
"$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
7276 if test "x$ac_cv_have_decl_calloc" = xyes
; then :
7282 cat >>confdefs.h
<<_ACEOF
7283 #define HAVE_DECL_CALLOC $ac_have_decl
7285 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
7286 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
7292 cat >>confdefs.h
<<_ACEOF
7293 #define HAVE_DECL_GETENV $ac_have_decl
7295 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
7296 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
7302 cat >>confdefs.h
<<_ACEOF
7303 #define HAVE_DECL_GETOPT $ac_have_decl
7305 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
7306 if test "x$ac_cv_have_decl_malloc" = xyes
; then :
7312 cat >>confdefs.h
<<_ACEOF
7313 #define HAVE_DECL_MALLOC $ac_have_decl
7315 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
7316 if test "x$ac_cv_have_decl_realloc" = xyes
; then :
7322 cat >>confdefs.h
<<_ACEOF
7323 #define HAVE_DECL_REALLOC $ac_have_decl
7327 *-*-darwin*) ;; # Darwin's sbrk implementation is deprecated.
7328 *) ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
7329 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
7335 cat >>confdefs.h
<<_ACEOF
7336 #define HAVE_DECL_SBRK $ac_have_decl
7340 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7341 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
7347 cat >>confdefs.h
<<_ACEOF
7348 #define HAVE_DECL_STRTOL $ac_have_decl
7350 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7351 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
7357 cat >>confdefs.h
<<_ACEOF
7358 #define HAVE_DECL_STRTOUL $ac_have_decl
7360 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7361 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
7367 cat >>confdefs.h
<<_ACEOF
7368 #define HAVE_DECL_STRTOLL $ac_have_decl
7370 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7371 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
7377 cat >>confdefs.h
<<_ACEOF
7378 #define HAVE_DECL_STRTOULL $ac_have_decl
7381 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7382 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
7388 cat >>confdefs.h
<<_ACEOF
7389 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7392 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
7393 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
7399 cat >>confdefs.h
<<_ACEOF
7400 #define HAVE_DECL_STRNLEN $ac_have_decl
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
7404 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
7405 if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false
; then :
7406 $as_echo_n "(cached) " >&6
7408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7411 #include "confdefs.h"
7413 #ifdef HAVE_STRING_H
7416 #ifdef HAVE_STRINGS_H
7417 #include <strings.h>
7420 #ifdef HAVE_STDLIB_H
7423 #ifdef HAVE_UNISTD_H
7429 char *(*pfn) = (char *(*)) canonicalize_file_name
7434 if ac_fn_c_try_compile
"$LINENO"; then :
7435 libiberty_cv_decl_needed_canonicalize_file_name
=no
7437 libiberty_cv_decl_needed_canonicalize_file_name
=yes
7439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7443 $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
7444 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7446 $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
7452 # Figure out which version of pexecute to use.
7454 *-*-mingw* |
*-*-winnt*) pexecute
=pex-win32
;;
7455 *-*-msdosdjgpp*) pexecute
=pex-djgpp
;;
7456 *-*-msdos*) pexecute
=pex-msdos
;;
7457 *) pexecute
=pex-unix
;;
7464 for ac_header
in $ac_header_list
7466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7467 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7468 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7469 cat >>confdefs.h
<<_ACEOF
7470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482 if test x
$gcc_no_link = xyes
; then
7483 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7484 ac_cv_func_mmap_fixed_mapped
=no
7487 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
7489 for ac_func
in getpagesize
7491 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7492 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7493 cat >>confdefs.h
<<_ACEOF
7494 #define HAVE_GETPAGESIZE 1
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7501 $as_echo_n "checking for working mmap... " >&6; }
7502 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7505 if test "$cross_compiling" = yes; then :
7506 ac_cv_func_mmap_fixed_mapped
=no
7508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 /* malloc might have been renamed as rpl_malloc. */
7514 /* Thanks to Mike Haertel and Jim Avera for this test.
7515 Here is a matrix of mmap possibilities:
7516 mmap private not fixed
7517 mmap private fixed at somewhere currently unmapped
7518 mmap private fixed at somewhere already mapped
7519 mmap shared not fixed
7520 mmap shared fixed at somewhere currently unmapped
7521 mmap shared fixed at somewhere already mapped
7522 For private mappings, we should verify that changes cannot be read()
7523 back from the file, nor mmap's back from the file at a different
7524 address. (There have been systems where private was not correctly
7525 implemented like the infamous i386 svr4.0, and systems where the
7526 VM page cache was not coherent with the file system buffer cache
7527 like early versions of FreeBSD and possibly contemporary NetBSD.)
7528 For shared mappings, we should conversely verify that changes get
7529 propagated back to all the places they're supposed to be.
7531 Grep wants private fixed already mapped.
7532 The main things grep needs to know about mmap are:
7533 * does it exist and is it safe to write into the mmap'd area
7534 * how to use it (BSD variants) */
7537 #include <sys/mman.h>
7539 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7543 /* This mess was copied from the GNU getpagesize.h. */
7544 #ifndef HAVE_GETPAGESIZE
7545 # ifdef _SC_PAGESIZE
7546 # define getpagesize() sysconf(_SC_PAGESIZE)
7547 # else /* no _SC_PAGESIZE */
7548 # ifdef HAVE_SYS_PARAM_H
7549 # include <sys/param.h>
7550 # ifdef EXEC_PAGESIZE
7551 # define getpagesize() EXEC_PAGESIZE
7552 # else /* no EXEC_PAGESIZE */
7554 # define getpagesize() NBPG * CLSIZE
7557 # endif /* no CLSIZE */
7558 # else /* no NBPG */
7560 # define getpagesize() NBPC
7561 # else /* no NBPC */
7563 # define getpagesize() PAGESIZE
7564 # endif /* PAGESIZE */
7565 # endif /* no NBPC */
7566 # endif /* no NBPG */
7567 # endif /* no EXEC_PAGESIZE */
7568 # else /* no HAVE_SYS_PARAM_H */
7569 # define getpagesize() 8192 /* punt totally */
7570 # endif /* no HAVE_SYS_PARAM_H */
7571 # endif /* no _SC_PAGESIZE */
7573 #endif /* no HAVE_GETPAGESIZE */
7578 char *data, *data2, *data3;
7583 pagesize = getpagesize ();
7585 /* First, make a file with some known garbage in it. */
7586 data = (char *) malloc (pagesize);
7589 for (i = 0; i < pagesize; ++i)
7590 *(data + i) = rand ();
7592 fd = creat ("conftest.mmap", 0600);
7595 if (write (fd, data, pagesize) != pagesize)
7599 /* Next, check that the tail of a page is zero-filled. File must have
7600 non-zero length, otherwise we risk SIGBUS for entire page. */
7601 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7605 if (write (fd2, cdata2, 1) != 1)
7607 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7608 if (data2 == MAP_FAILED)
7610 for (i = 0; i < pagesize; ++i)
7614 if (munmap (data2, pagesize))
7617 /* Next, try to mmap the file at a fixed address which already has
7618 something else allocated at it. If we can, also make sure that
7619 we see the same garbage. */
7620 fd = open ("conftest.mmap", O_RDWR);
7623 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7624 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7626 for (i = 0; i < pagesize; ++i)
7627 if (*(data + i) != *(data2 + i))
7630 /* Finally, make sure that changes to the mapped area do not
7631 percolate back to the file as seen by read(). (This is a bug on
7632 some variants of i386 svr4.0.) */
7633 for (i = 0; i < pagesize; ++i)
7634 *(data2 + i) = *(data2 + i) + 1;
7635 data3 = (char *) malloc (pagesize);
7638 if (read (fd, data3, pagesize) != pagesize)
7640 for (i = 0; i < pagesize; ++i)
7641 if (*(data + i) != *(data3 + i))
7647 if ac_fn_c_try_run
"$LINENO"; then :
7648 ac_cv_func_mmap_fixed_mapped
=yes
7650 ac_cv_func_mmap_fixed_mapped
=no
7652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7658 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7659 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7661 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7664 rm -f conftest.mmap conftest.txt
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
7669 $as_echo_n "checking for working strncmp... " >&6; }
7670 if ${ac_cv_func_strncmp_works+:} false
; then :
7671 $as_echo_n "(cached) " >&6
7673 if test "$cross_compiling" = yes; then :
7674 ac_cv_func_strncmp_works
=yes
7676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 /* Test by Jim Wilson and Kaveh Ghazi.
7680 Check whether strncmp reads past the end of its string parameters. */
7683 #include <sys/types.h>
7689 #ifdef HAVE_SYS_MMAN_H
7690 #include <sys/mman.h>
7694 #ifdef MAP_ANONYMOUS
7695 #define MAP_ANON MAP_ANONYMOUS
7697 #define MAP_ANON MAP_FILE
7708 #define MAP_LEN 0x10000
7713 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7717 dev_zero = open ("/dev/zero", O_RDONLY);
7721 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7722 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
7723 if (p == (char *)-1)
7724 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7725 MAP_ANON|MAP_PRIVATE, -1, 0);
7726 if (p == (char *)-1)
7730 char *string = "__si_type_info";
7731 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7732 char *r = (char *) p + 0xe;
7738 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7743 if ac_fn_c_try_run
"$LINENO"; then :
7744 ac_cv_func_strncmp_works
=yes
7746 ac_cv_func_strncmp_works
=no
7748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7752 rm -f core core.
* *.core
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
7755 $as_echo "$ac_cv_func_strncmp_works" >&6; }
7756 if test $ac_cv_func_strncmp_works = no
; then
7757 case " $LIBOBJS " in
7758 *" strncmp.$ac_objext "* ) ;;
7759 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext"
7766 # Install a library built with a cross compiler in $(tooldir) rather
7768 if test -z "${with_cross_host}"; then
7771 INSTALL_DEST
=tooldir
7777 for l
in x
$LIBOBJS; do
7789 # We need multilib support, but only if configuring for the target.
7790 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
7792 ac_config_commands
="$ac_config_commands default"
7794 cat >confcache
<<\_ACEOF
7795 # This file is a shell script that caches the results of configure
7796 # tests run on this system so they can be shared between configure
7797 # scripts and configure runs, see configure's option --config-cache.
7798 # It is not useful on other systems. If it contains results you don't
7799 # want to keep, you may remove or edit it.
7801 # config.status only pays attention to the cache file if you give it
7802 # the --recheck option to rerun configure.
7804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7810 # The following way of writing the cache mishandles newlines in values,
7811 # but we know of no workaround that is simple, portable, and efficient.
7812 # So, we kill variables containing newlines.
7813 # Ultrix sh set writes to stderr and can't be redirected directly,
7814 # and sets the high bit in the cache file unless we assign to the vars.
7816 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7817 eval ac_val
=\$
$ac_var
7821 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7825 _ | IFS | as_nl
) ;; #(
7826 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7827 *) { eval $ac_var=; unset $ac_var;} ;;
7833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7834 *${as_nl}ac_space
=\
*)
7835 # `set' does not quote correctly, so add quotes: double-quote
7836 # substitution turns \\\\ into \\, and sed turns \\ into \.
7839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7842 # `set' quotes correctly as required by POSIX, so do not add quotes.
7843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7856 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7857 if test -w "$cache_file"; then
7858 if test "x$cache_file" != "x/dev/null"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7860 $as_echo "$as_me: updating cache $cache_file" >&6;}
7861 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7862 cat confcache
>"$cache_file"
7864 case $cache_file in #(
7866 mv -f confcache
"$cache_file"$$
&&
7867 mv -f "$cache_file"$$
"$cache_file" ;; #(
7869 mv -f confcache
"$cache_file" ;;
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7880 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7881 # Let make expand exec_prefix.
7882 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7884 DEFS
=-DHAVE_CONFIG_H
7889 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7890 # 1. Remove the extension, and $U if already installed.
7891 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7892 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7894 # will be set to the directory where LIBOBJS objects are built.
7895 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7896 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7900 LTLIBOBJS
=$ac_ltlibobjs
7905 : "${CONFIG_STATUS=./config.status}"
7907 ac_clean_files_save
=$ac_clean_files
7908 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7910 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7912 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7914 # Generated by $as_me.
7915 # Run this file to recreate the current configuration.
7916 # Compiler output produced by configure, useful for debugging
7917 # configure, is in config.log if it exists.
7923 SHELL=\${CONFIG_SHELL-$SHELL}
7926 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7927 ## -------------------- ##
7928 ## M4sh Initialization. ##
7929 ## -------------------- ##
7931 # Be more Bourne compatible
7932 DUALCASE
=1; export DUALCASE
# for MKS sh
7933 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7937 # is contrary to our usage. Disable this feature.
7938 alias -g '${1+"$@"}'='"$@"'
7939 setopt NO_GLOB_SUBST
7941 case `(set -o) 2>/dev/null` in #(
7953 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7954 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7957 # Prefer a ksh shell builtin over an external printf program on Solaris,
7958 # but without wasting forks for bash or zsh.
7959 if test -z "$BASH_VERSION$ZSH_VERSION" \
7960 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7961 as_echo='print
-r --'
7962 as_echo_n='print
-rn --'
7963 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7964 as_echo='printf %s
\n'
7965 as_echo_n='printf %s
'
7967 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7968 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7969 as_echo_n='/usr
/ucb
/echo -n'
7971 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7972 as_echo_n_body='eval
7976 expr "X$arg" : "X\\(.*\\)$as_nl";
7977 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7979 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7981 export as_echo_n_body
7982 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7985 as_echo='sh
-c $as_echo_body as_echo
'
7988 # The user is always right.
7989 if test "${PATH_SEPARATOR+set}" != set; then
7991 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7992 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7999 # We need space, tab and new line, in precisely that order. Quoting is
8000 # there to prevent editors from complaining about space-tab.
8001 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8002 # splitting by setting IFS to empty value.)
8005 # Find who we are. Look in the path if we contain no directory separator.
8008 *[\\/]* ) as_myself=$0 ;;
8009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 test -z "$as_dir" && as_dir=.
8014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8020 # We did not find ourselves, most probably we were run as `sh COMMAND'
8021 # in which case we are not to be found in the path.
8022 if test "x$as_myself" = x
; then
8025 if test ! -f "$as_myself"; then
8026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8030 # Unset variables that we do not need and which cause bugs (e.g. in
8031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8032 # suppresses any "Segmentation fault" message there. '((' could
8033 # trigger a bug in pdksh 5.2.14.
8034 for as_var
in BASH_ENV ENV MAIL MAILPATH
8035 do eval test x\
${$as_var+set} = xset \
8036 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8049 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8052 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8053 # ----------------------------------------
8054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8056 # script with STATUS, using 1 if that was 0.
8059 as_status
=$1; test $as_status -eq 0 && as_status
=1
8061 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8064 $as_echo "$as_me: error: $2" >&2
8065 as_fn_exit
$as_status
8069 # as_fn_set_status STATUS
8070 # -----------------------
8071 # Set $? to STATUS, without forking.
8075 } # as_fn_set_status
8079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8089 # Portably unset VAR.
8092 { eval $1=; unset $1;}
8094 as_unset
=as_fn_unset
8095 # as_fn_append VAR VALUE
8096 # ----------------------
8097 # Append the text in VALUE to the end of the definition contained in VAR. Take
8098 # advantage of any shell optimizations that allow amortized linear growth over
8099 # repeated appends, instead of the typical quadratic growth present in naive
8101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8102 eval 'as_fn_append ()
8113 # as_fn_arith ARG...
8114 # ------------------
8115 # Perform arithmetic evaluation on the ARGs, and store the result in the
8116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8117 # must be portable across $(()) and expr.
8118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8119 eval 'as_fn_arith ()
8126 as_val
=`expr "$@" || test $? -eq 1`
8131 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8132 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8138 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8139 as_basename
=basename
8144 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8150 as_me
=`$as_basename -- "$0" ||
8151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8152 X"$0" : 'X\(//\)$' \| \
8153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8155 sed '/^.*\/\([^/][^/]*\)\/*$/{
8169 # Avoid depending upon Character Ranges.
8170 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8171 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8172 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8173 as_cr_digits
='0123456789'
8174 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8176 ECHO_C
= ECHO_N
= ECHO_T
=
8177 case `echo -n x` in #(((((
8179 case `echo 'xy\c'` in
8180 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8182 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8189 rm -f conf$$ conf$$.exe conf$$.
file
8190 if test -d conf$$.dir
; then
8191 rm -f conf$$.dir
/conf$$.
file
8194 mkdir conf$$.dir
2>/dev
/null
8196 if (echo >conf$$.
file) 2>/dev
/null
; then
8197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8199 # ... but there are two gotchas:
8200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8202 # In both cases, we have to default to `cp -pR'.
8203 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8205 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8213 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8214 rmdir conf$$.dir
2>/dev
/null
8219 # Create "$as_dir" as a directory, including parents if necessary.
8224 -*) as_dir
=.
/$as_dir;;
8226 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8230 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8231 *) as_qdir
=$as_dir;;
8233 as_dirs
="'$as_qdir' $as_dirs"
8234 as_dir
=`$as_dirname -- "$as_dir" ||
8235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8236 X"$as_dir" : 'X\(//\)[^/]' \| \
8237 X"$as_dir" : 'X\(//\)$' \| \
8238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8239 $as_echo X"$as_dir" |
8240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8257 test -d "$as_dir" && break
8259 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8260 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8264 if mkdir
-p .
2>/dev
/null
; then
8265 as_mkdir_p
='mkdir -p "$as_dir"'
8267 test -d .
/-p && rmdir .
/-p
8272 # as_fn_executable_p FILE
8273 # -----------------------
8274 # Test if FILE is an executable regular file.
8275 as_fn_executable_p
()
8277 test -f "$1" && test -x "$1"
8278 } # as_fn_executable_p
8280 as_executable_p
=as_fn_executable_p
8282 # Sed expression to map a string onto a valid CPP name.
8283 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8285 # Sed expression to map a string onto a valid variable name.
8286 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8290 ## ----------------------------------- ##
8291 ## Main body of $CONFIG_STATUS script. ##
8292 ## ----------------------------------- ##
8294 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8297 # Save the log message, to keep $0 and so on meaningful, and to
8298 # report actual input values of CONFIG_FILES etc. instead of their
8299 # values after options handling.
8301 This file was extended by $as_me, which was
8302 generated by GNU Autoconf 2.69. Invocation command line was
8304 CONFIG_FILES = $CONFIG_FILES
8305 CONFIG_HEADERS = $CONFIG_HEADERS
8306 CONFIG_LINKS = $CONFIG_LINKS
8307 CONFIG_COMMANDS = $CONFIG_COMMANDS
8310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8315 case $ac_config_files in *"
8316 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8319 case $ac_config_headers in *"
8320 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325 # Files that config.status was made for.
8326 config_files="$ac_config_files"
8327 config_headers="$ac_config_headers"
8328 config_commands="$ac_config_commands"
8332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8334 \`$as_me' instantiates files and other configuration actions
8335 from templates according to the current configuration. Unless the files
8336 and actions are specified as TAGs, all are instantiated by default.
8338 Usage: $0 [OPTION]... [TAG]...
8340 -h, --help print this help, then exit
8341 -V, --version print version number and configuration settings, then exit
8342 --config print configuration, then exit
8343 -q, --quiet, --silent
8344 do not print progress messages
8345 -d, --debug don't remove temporary files
8346 --recheck update $as_me by reconfiguring in the same conditions
8347 --file=FILE[:TEMPLATE]
8348 instantiate the configuration file FILE
8349 --header=FILE[:TEMPLATE]
8350 instantiate the configuration header FILE
8352 Configuration files:
8355 Configuration headers:
8358 Configuration commands:
8361 Report bugs to the package provider."
8364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8365 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8368 configured by $0, generated by GNU Autoconf 2.69,
8369 with options \\"\$ac_cs_config\\"
8371 Copyright (C) 2012 Free Software Foundation, Inc.
8372 This config.status script is free software; the Free Software Foundation
8373 gives unlimited permission to copy, distribute and modify it."
8378 test -n "\$AWK" || AWK=awk
8381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8382 # The default lists apply if the user does not specify any file.
8388 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8389 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8393 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8405 # Handling of the options.
8406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8408 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8409 $as_echo "$ac_cs_version"; exit ;;
8410 --config |
--confi |
--conf |
--con |
--co |
--c )
8411 $as_echo "$ac_cs_config"; exit ;;
8412 --debug |
--debu |
--deb |
--de |
--d |
-d )
8414 --file |
--fil |
--fi |
--f )
8417 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8418 '') as_fn_error $?
"missing file argument" ;;
8420 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8421 ac_need_defaults
=false
;;
8422 --header |
--heade |
--head |
--hea )
8425 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8427 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8428 ac_need_defaults
=false
;;
8430 # Conflict between --help and --header
8431 as_fn_error $?
"ambiguous option: \`$1'
8432 Try \`$0 --help' for more information.";;
8433 --help |
--hel |
-h )
8434 $as_echo "$ac_cs_usage"; exit ;;
8435 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8436 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8440 -*) as_fn_error $?
"unrecognized option: \`$1'
8441 Try \`$0 --help' for more information." ;;
8443 *) as_fn_append ac_config_targets
" $1"
8444 ac_need_defaults
=false
;;
8450 ac_configure_extra_args
=
8452 if $ac_cs_silent; then
8454 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8459 if \$ac_cs_recheck; then
8460 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8462 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8463 CONFIG_SHELL='$SHELL'
8469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8474 ## Running $as_me. ##
8480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8487 with_target_subdir=${with_target_subdir}
8488 with_multisubdir=${with_multisubdir}
8489 ac_configure_args="--enable-multilib ${ac_configure_args}"
8490 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8491 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8492 libiberty_topdir=${libiberty_topdir}
8497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8499 # Handling of arguments.
8500 for ac_config_target
in $ac_config_targets
8502 case $ac_config_target in
8503 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8504 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8505 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8506 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8508 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8513 # If the user did not use the arguments to specify the items to instantiate,
8514 # then the envvar interface is used. Set only those that are not.
8515 # We use the long form for the default assignment because of an extremely
8516 # bizarre bug on SunOS 4.1.3.
8517 if $ac_need_defaults; then
8518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8523 # Have a temporary directory for convenience. Make it in the build tree
8524 # simply because there is no reason against having it here, and in addition,
8525 # creating and moving files from /tmp can sometimes cause problems.
8526 # Hook for its removal unless debugging.
8527 # Note that there is a small window in which the directory will not be cleaned:
8528 # after its creation but before its name has been assigned to `$tmp'.
8532 trap 'exit_status=$?
8534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8536 trap 'as_fn_exit 1' 1 2 13 15
8538 # Create a (secure) tmp directory for tmp files.
8541 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8545 tmp
=.
/conf$$
-$RANDOM
8546 (umask 077 && mkdir
"$tmp")
8547 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8550 # Set up the scripts for CONFIG_FILES section.
8551 # No need to generate them if there are no CONFIG_FILES.
8552 # This happens for instance with `./config.status config.h'.
8553 if test -n "$CONFIG_FILES"; then
8555 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
8557 ac_cs_awk_pipe_init
=
8558 ac_cs_awk_read_file
='
8559 while ((getline aline < (F[key])) > 0)
8562 ac_cs_awk_pipe_fini
=
8564 ac_cs_awk_getline
=false
8565 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
8566 ac_cs_awk_read_file
='
8568 print "cat " F[key] " &&"
8569 '$ac_cs_awk_pipe_init
8570 # The final `:' finishes the AND list.
8571 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
8573 ac_cr
=`echo X | tr X '\015'`
8574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8575 # But we know of no other shell where ac_cr would be empty at this
8576 # point, so we can use a bashism as a fallback.
8577 if test "x$ac_cr" = x
; then
8578 eval ac_cr
=\$
\'\\r
\'
8580 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8587 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8590 # Create commands to substitute file output variables.
8592 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
8593 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
8594 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
8597 } >conf$
$files.sh
&&
8598 . .
/conf$
$files.sh ||
8599 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
8600 rm -f conf$
$files.sh
8603 echo "cat >conf$$subs.awk <<_ACEOF" &&
8604 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8607 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8608 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8610 for ac_last_try in false false false false false :; do
8611 . ./conf$$subs.sh ||
8612 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8614 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8615 if test $ac_delim_n = $ac_delim_num; then
8617 elif $ac_last_try; then
8618 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8620 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8626 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8630 s/^/S["/; s
/!.
*/"]=/
8640 s/\(.\{148\}\)..*/\1/
8642 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8647 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8654 s/\(.\{148\}\)..*/\1/
8656 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8660 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8665 ' <conf$$subs.awk | sed '
8670 ' >>$CONFIG_STATUS || ac_write_fail=1
8671 rm -f conf$$subs.awk
8672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8674 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8675 for (key in S) S_is_set[key] = 1
8677 \$ac_cs_awk_pipe_init
8681 nfields = split(line, field, "@
")
8683 len = length(field[1])
8684 for (i = 2; i < nfields; i++) {
8686 keylen = length(key)
8687 if (S_is_set[key]) {
8689 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8690 len += length(value) + length(field[++i])
8695 if (nfields == 3 && !substed) {
8697 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
8698 \$ac_cs_awk_read_file
8704 \$ac_cs_awk_pipe_fini
8707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8708 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8709 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8712 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8713 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8716 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8717 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8718 # trailing colons and then remove the whole line if VPATH becomes empty
8719 # (actually we leave an empty line to preserve line numbers).
8720 if test "x
$srcdir" = x.; then
8721 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8740 fi # test -n "$CONFIG_FILES"
8742 # Set up the scripts for CONFIG_HEADERS section.
8743 # No need to generate them if there are no CONFIG_HEADERS.
8744 # This happens for instance with `./config.status Makefile'.
8745 if test -n "$CONFIG_HEADERS"; then
8746 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8750 # Transform confdefs.h into an awk script `defines.awk', embedded as
8751 # here-document in config.status, that substitutes the proper values into
8752 # config.h.in to produce config.h.
8754 # Create a delimiter string that does not exist in confdefs.h, to ease
8755 # handling of long lines.
8757 for ac_last_try in false false :; do
8758 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8759 if test -z "$ac_tt"; then
8761 elif $ac_last_try; then
8762 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8764 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8768 # For the awk script, D is an array of macro values keyed by name,
8769 # likewise P contains macro parameters if any. Preserve backslash
8770 # newline sequences.
8772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8774 s/.\{148\}/&'"$ac_delim"'/g
8777 s/^[ ]*#[ ]*define[ ][ ]*/ /
8784 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8786 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8791 D["\
1"]=" \
3\\\\\\n
"\\/p
8793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8798 s/.\{148\}/&'"$ac_delim"'/g
8803 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8806 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8808 ' <confdefs.h | sed '
8809 s/'"$ac_delim"'/"\\\
8810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8813 for (key in D) D_is_set[key] = 1
8816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8818 split(line, arg, " ")
8819 if (arg[1] == "#") {
8823 defundef
= substr
(arg
[1], 2)
8826 split(mac1
, mac2
, "(") #)
8828 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8829 if (D_is_set
[macro
]) {
8830 # Preserve the white space surrounding the "#".
8831 print prefix
"define", macro P
[macro
] D
[macro
]
8834 # Replace #undef with comments. This is necessary, for example,
8835 # in the case of _POSIX_SOURCE, which is predefined and required
8836 # on some systems where configure will not decide to define it.
8837 if (defundef
== "undef") {
8838 print
"/*", prefix defundef
, macro
, "*/"
8846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8847 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8848 fi # test -n "$CONFIG_HEADERS"
8851 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8856 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8858 case $ac_mode$ac_tag in
8860 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8861 :[FH
]-) ac_tag
=-:-;;
8862 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8879 -) ac_f
="$ac_tmp/stdin";;
8880 *) # Look for the file first in the build tree, then in the source tree
8881 # (if the path is not absolute). The absolute path cannot be DOS-style,
8882 # because $ac_f cannot contain `:'.
8886 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8888 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8890 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8891 as_fn_append ac_file_inputs
" '$ac_f'"
8894 # Let's still pretend it is `configure' which instantiates (i.e., don't
8895 # use $as_me), people would be surprised to read:
8896 # /* config.h. Generated by config.status. */
8897 configure_input
='Generated from '`
8898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8900 if test x
"$ac_file" != x-
; then
8901 configure_input
="$ac_file. $configure_input"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8903 $as_echo "$as_me: creating $ac_file" >&6;}
8905 # Neutralize special characters interpreted by sed in replacement strings.
8906 case $configure_input in #(
8907 *\
&* |
*\|
* |
*\\* )
8908 ac_sed_conf_input
=`$as_echo "$configure_input" |
8909 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8910 *) ac_sed_conf_input
=$configure_input;;
8914 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8915 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8920 ac_dir
=`$as_dirname -- "$ac_file" ||
8921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8922 X"$ac_file" : 'X\(//\)[^/]' \| \
8923 X"$ac_file" : 'X\(//\)$' \| \
8924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8925 $as_echo X"$ac_file" |
8926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8943 as_dir
="$ac_dir"; as_fn_mkdir_p
8947 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8949 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8950 # A ".." for each directory in $ac_dir_suffix.
8951 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8952 case $ac_top_builddir_sub in
8953 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8954 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8957 ac_abs_top_builddir
=$ac_pwd
8958 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8959 # for backward compatibility:
8960 ac_top_builddir
=$ac_top_build_prefix
8963 .
) # We are building in place.
8965 ac_top_srcdir
=$ac_top_builddir_sub
8966 ac_abs_top_srcdir
=$ac_pwd ;;
8967 [\\/]* | ?
:[\\/]* ) # Absolute name.
8968 ac_srcdir
=$srcdir$ac_dir_suffix;
8969 ac_top_srcdir
=$srcdir
8970 ac_abs_top_srcdir
=$srcdir ;;
8972 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8973 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8974 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8976 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8986 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8987 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8992 # If the template does not know about datarootdir, expand it.
8993 # FIXME: This hack should be removed a few years after 2.60.
8994 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9006 *datarootdir
*) ac_datarootdir_seen
=yes;;
9007 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9012 ac_datarootdir_hack='
9013 s&@datadir@&$datadir&g
9014 s&@docdir@&$docdir&g
9015 s&@infodir@&$infodir&g
9016 s&@localedir@&$localedir&g
9017 s&@mandir@&$mandir&g
9018 s&\\\${datarootdir}&$datarootdir&g' ;;
9022 # Neutralize VPATH when `$srcdir' = `.'.
9023 # Shell code in configure.ac might set extrasub.
9024 # FIXME: do we really want to maintain this feature?
9025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9026 ac_sed_extra="$ac_vpsub
9029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9031 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9032 s|@configure_input@|
$ac_sed_conf_input|
;t t
9033 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9034 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9035 s
&@srcdir@
&$ac_srcdir&;t t
9036 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9037 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9038 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9039 s
&@builddir@
&$ac_builddir&;t t
9040 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9041 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9042 s
&@INSTALL@
&$ac_INSTALL&;t t
9043 $ac_datarootdir_hack
9045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
9046 if $ac_cs_awk_getline; then
9047 $AWK -f "$ac_tmp/subs.
awk"
9049 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
9051 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9056 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9058 which seems to be undefined. Please make sure it is defined" >&5
9059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9060 which seems to be undefined. Please make sure it is defined" >&2;}
9062 rm -f "$ac_tmp/stdin"
9064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9073 if test x"$ac_file" != x-; then
9075 $as_echo "/* $configure_input */" \
9076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9077 } >"$ac_tmp/config.h" \
9078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9079 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9084 mv "$ac_tmp/config.h" "$ac_file" \
9085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9088 $as_echo "/* $configure_input */" \
9089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9090 || as_fn_error $? "could not create -" "$LINENO" 5
9094 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9095 $as_echo "$as_me: executing $ac_file commands" >&6;}
9100 case $ac_file$ac_mode in
9101 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9102 if test -n "$CONFIG_FILES"; then
9103 if test -n "${with_target_subdir}"; then
9104 # FIXME: We shouldn't need to
set ac_file
9106 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9107 .
${libiberty_topdir}/config-ml.
in
9117 ac_clean_files
=$ac_clean_files_save
9119 test $ac_write_fail = 0 ||
9120 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
9123 # configure is writing to config.log, and then calls config.status.
9124 # config.status does its own redirection, appending to config.log.
9125 # Unfortunately, on DOS this fails, as config.log is still kept open
9126 # by configure, so config.status won't be able to write to it; its
9127 # output is simply discarded. So we exec the FD to /dev/null,
9128 # effectively closing config.log, so it can be properly (re)opened and
9129 # appended to by config.status. When coming back to configure, we
9130 # need to make the FD available again.
9131 if test "$no_create" != yes; then
9133 ac_config_status_args
=
9134 test "$silent" = yes &&
9135 ac_config_status_args
="$ac_config_status_args --quiet"
9137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9140 # would make configure fail if this is the last instruction.
9141 $ac_cs_success || as_fn_exit
1
9143 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9145 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}