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
642 ac_libiberty_warn_cflags
700 program_transform_name
711 ac_subst_files
='host_makefile_frag'
713 enable_option_checking
718 enable_maintainer_mode
720 enable_install_libiberty
724 ac_precious_vars
='build_alias
735 # Initialize some variables set by options.
737 ac_init_version
=false
738 ac_unrecognized_opts
=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name
=s
,x
,x
,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir
='${exec_prefix}/bin'
764 sbindir
='${exec_prefix}/sbin'
765 libexecdir
='${exec_prefix}/libexec'
766 datarootdir
='${prefix}/share'
767 datadir
='${datarootdir}'
768 sysconfdir
='${prefix}/etc'
769 sharedstatedir
='${prefix}/com'
770 localstatedir
='${prefix}/var'
771 includedir
='${prefix}/include'
772 oldincludedir
='/usr/include'
773 docdir
='${datarootdir}/doc/${PACKAGE}'
774 infodir
='${datarootdir}/info'
779 libdir
='${exec_prefix}/lib'
780 localedir
='${datarootdir}/locale'
781 mandir
='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\
$ac_option
795 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
842 as_fn_error $?
"invalid feature name: $ac_useropt"
843 ac_useropt_orig
=$ac_useropt
844 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
849 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep
=', ';;
852 eval enable_
$ac_useropt=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
868 as_fn_error $?
"invalid feature name: $ac_useropt"
869 ac_useropt_orig
=$ac_useropt
870 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep
=', ';;
878 eval enable_
$ac_useropt=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid package name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval with_
$ac_useropt=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error $?
"invalid package name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval with_
$ac_useropt=no
;;
1101 # Obsolete; use --with-x.
1104 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1105 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1106 ac_prev
=x_includes
;;
1107 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1108 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1109 x_includes
=$ac_optarg ;;
1111 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1112 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1113 ac_prev
=x_libraries
;;
1114 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1115 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1116 x_libraries
=$ac_optarg ;;
1118 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information"
1123 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1127 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1129 eval $ac_envvar=\
$ac_optarg
1130 export $ac_envvar ;;
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1143 if test -n "$ac_prev"; then
1144 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error $?
"missing argument to $ac_option"
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1151 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 # Check all directory arguments for consistency.
1157 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1162 eval ac_val
=\$
$ac_var
1163 # Remove trailing slashes.
1166 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\
$ac_val;;
1169 # Be sure to have absolute directory names.
1171 [\\/$
]* | ?
:[\\/]* ) continue;;
1172 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1174 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1182 target
=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x
; then
1186 if test "x$build_alias" = x
; then
1187 cross_compiling
=maybe
1188 elif test "x$build_alias" != "x$host_alias"; then
1194 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1196 test "$silent" = yes && exec 6>/dev
/null
1199 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di
=`ls -di .` &&
1201 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $?
"working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $?
"pwd does not report name of working directory"
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted
=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir
=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1239 ac_srcdir_defaulted
=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1243 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1245 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1257 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259 for ac_var
in $ac_precious_vars; do
1260 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1262 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1267 # Report the --help message.
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1273 \`configure' configures this package to adapt to many kinds of systems.
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1280 Defaults for the options are specified in brackets.
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1304 For better control, use the options below.
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1331 --build=BUILD configure
for building on BUILD
[guessed
]
1332 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1333 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1337 if test -n "$ac_init_help"; then
1342 --disable-option-checking ignore unrecognized
--enable/--with options
1343 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1344 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful
1347 (and sometimes confusing
) to the casual installer
1348 --enable-multilib build many library versions
(default
)
1349 --enable-install-libiberty Install headers and library
for end users
1350 --disable-largefile omit support
for large files
1351 --enable-cet enable Intel CET
in host libraries
[default
=auto
]
1354 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1355 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1356 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
1357 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
1358 --with-cross-host=HOST Configuring with a cross compiler
1359 --with-newlib Configuring with newlib
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to the package provider.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" ||
1383 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1438 generated by GNU Autoconf 2.69
1440 Copyright (C) 2012 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1447 ## ------------------------ ##
1448 ## Autoconf initialization. ##
1449 ## ------------------------ ##
1451 # ac_fn_c_try_compile LINENO
1452 # --------------------------
1453 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1454 ac_fn_c_try_compile ()
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1461 *) ac_try_echo
=$ac_try;;
1463 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1467 if test -s conftest.err
; then
1468 grep -v '^ *+' conftest.err
>conftest.er1
1469 cat conftest.er1
>&5
1470 mv -f conftest.er1 conftest.err
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.
$ac_objext; then :
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.
$ac_ext >&5
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485 as_fn_set_status
$ac_retval
1487 } # ac_fn_c_try_compile
1489 # ac_fn_c_try_cpp LINENO
1490 # ----------------------
1491 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1495 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } > conftest.i && {
1511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1526 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1527 # -------------------------------------------------------
1528 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1529 # the include files in INCLUDES and setting the cache variable VAR
1531 ac_fn_c_check_header_mongrel ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if eval \${$3+:} false; then :
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 $as_echo_n "checking for $2... " >&6; }
1537 if eval \${$3+:} false; then :
1538 $as_echo_n "(cached) " >&6
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542 $as_echo "$ac_res" >&6; }
1544 # Is the header compilable?
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1546 $as_echo_n "checking $2 usability... " >&6; }
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1552 if ac_fn_c_try_compile "$LINENO"; then :
1553 ac_header_compiler=yes
1555 ac_header_compiler=no
1557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1559 $as_echo "$ac_header_compiler" >&6; }
1561 # Is the header present?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1563 $as_echo_n "checking $2 presence... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1568 if ac_fn_c_try_cpp "$LINENO"; then :
1569 ac_header_preproc=yes
1571 ac_header_preproc=no
1573 rm -f conftest.err conftest.i conftest.$ac_ext
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1575 $as_echo "$ac_header_preproc" >&6; }
1577 # So? What about this header?
1578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1581 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1587 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1589 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1591 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1593 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1603 eval "$3=\$ac_header_compiler"
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 $as_echo "$ac_res" >&6; }
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 } # ac_fn_c_check_header_mongrel
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1623 *) ac_try_echo
=$ac_try;;
1625 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=$ac_status
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1696 *) ac_try_echo
=$ac_try;;
1698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1702 if test -s conftest.err
; then
1703 grep -v '^ *+' conftest.err
>conftest.er1
1704 cat conftest.er1
>&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest
$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 test -x conftest
$ac_exeext
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.
$ac_ext >&5
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status
$ac_retval
1730 } # ac_fn_c_try_link
1732 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1733 # ----------------------------------------------
1734 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_preproc
()
1737 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \
${$3+:} false
; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1747 if ac_fn_c_try_cpp
"$LINENO"; then :
1752 rm -f conftest.err conftest.i conftest.
$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 } # ac_fn_c_check_header_preproc
1761 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1762 # --------------------------------------------
1763 # Tries to find the compile-time value of EXPR in a program that includes
1764 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1766 ac_fn_c_compute_int
()
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 if test "$cross_compiling" = yes; then
1770 # Depending upon the size, compute the lo and hi bounds.
1771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1777 static int test_array [1 - 2 * !(($2) >= 0)];
1779 return test_array [0];
1785 if ac_fn_c_try_compile
"$LINENO"; then :
1788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1794 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1796 return test_array [0];
1802 if ac_fn_c_try_compile
"$LINENO"; then :
1803 ac_hi
=$ac_mid; break
1805 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1806 if test $ac_lo -le $ac_mid; then
1810 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1821 static int test_array [1 - 2 * !(($2) < 0)];
1823 return test_array [0];
1829 if ac_fn_c_try_compile
"$LINENO"; then :
1832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1840 return test_array [0];
1846 if ac_fn_c_try_compile
"$LINENO"; then :
1847 ac_lo
=$ac_mid; break
1849 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1850 if test $ac_mid -le $ac_hi; then
1854 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1864 # Binary search between lo and hi bounds.
1865 while test "x$ac_lo" != "x$ac_hi"; do
1866 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1873 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1875 return test_array [0];
1881 if ac_fn_c_try_compile
"$LINENO"; then :
1884 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1889 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 static long int longval () { return $2; }
1897 static unsigned long int ulongval () { return $2; }
1904 FILE *f = fopen ("conftest.val", "w");
1909 long int i = longval ();
1912 fprintf (f, "%ld", i);
1916 unsigned long int i = ulongval ();
1919 fprintf (f, "%lu", i);
1921 /* Do not output a trailing newline, as this causes \r\n confusion
1922 on some platforms. */
1923 return ferror (f) || fclose (f) != 0;
1929 if ac_fn_c_try_run
"$LINENO"; then :
1930 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
1934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
1935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status
$ac_retval
1942 } # ac_fn_c_compute_int
1944 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 # -------------------------------------------
1946 # Tests whether TYPE exists after having included INCLUDES, setting cache
1947 # variable VAR accordingly.
1948 ac_fn_c_check_type
()
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \
${$3+:} false
; then :
1954 $as_echo_n "(cached) " >&6
1957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile
"$LINENO"; then :
1970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1982 if ac_fn_c_try_compile
"$LINENO"; then :
1987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_type
1998 # ac_fn_c_check_func LINENO FUNC VAR
1999 # ----------------------------------
2000 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2001 ac_fn_c_check_func
()
2003 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \
${$3+:} false
; then :
2007 $as_echo_n "(cached) " >&6
2009 if test x
$gcc_no_link = xyes
; then
2010 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016 #define $2 innocuous_$2
2018 /* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $2 (); below.
2020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021 <limits.h> exists even on freestanding compilers. */
2024 # include <limits.h>
2026 # include <assert.h>
2031 /* Override any GCC internal prototype to avoid an error.
2032 Use char because int might match the return type of a GCC
2033 builtin and then its argument prototype would still apply. */
2038 /* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041 #if defined __stub_$2 || defined __stub___$2
2053 if ac_fn_c_try_link
"$LINENO"; then :
2058 rm -f core conftest.err conftest.
$ac_objext \
2059 conftest
$ac_exeext conftest.
$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_func
2068 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069 # ---------------------------------------------
2070 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072 ac_fn_c_check_decl
()
2074 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2075 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if eval \
${$3+:} false
; then :
2080 $as_echo_n "(cached) " >&6
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 #ifndef $as_decl_name
2090 (void) $as_decl_use;
2092 (void) $as_decl_name;
2100 if ac_fn_c_try_compile
"$LINENO"; then :
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 } # ac_fn_c_check_decl
2113 cat >config.log
<<_ACEOF
2114 This file contains any messages produced by compilers while
2115 running configure, to aid debugging if configure makes a mistake.
2117 It was created by $as_me, which was
2118 generated by GNU Autoconf 2.69. Invocation command line was
2130 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2131 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2132 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2133 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2134 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2137 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2139 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2140 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2141 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2142 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2143 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2144 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2145 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir
=.
2154 $as_echo "PATH: $as_dir"
2170 # Keep a trace of the command line.
2171 # Strip out --no-create and --no-recursion so they do not pile up.
2172 # Strip out --silent because we don't want to record it for future runs.
2173 # Also quote any args containing shell meta-characters.
2174 # Make two passes to allow for proper duplicate-argument suppression.
2178 ac_must_keep_next
=false
2184 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2185 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2186 |
-silent |
--silent |
--silen |
--sile |
--sil)
2189 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2194 as_fn_append ac_configure_args1
" '$ac_arg'"
2195 if test $ac_must_keep_next = true
; then
2196 ac_must_keep_next
=false
# Got value, back to normal.
2199 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2200 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2201 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2202 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2203 case "$ac_configure_args0 " in
2204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 -* ) ac_must_keep_next
=true
;;
2210 as_fn_append ac_configure_args
" '$ac_arg'"
2215 { ac_configure_args0
=; unset ac_configure_args0
;}
2216 { ac_configure_args1
=; unset ac_configure_args1
;}
2218 # When interrupted or exit'd, cleanup temporary files, and complete
2219 # config.log. We remove comments because anyway the quotes in there
2220 # would cause problems or look ugly.
2221 # WARNING: Use '\'' to represent an apostrophe within the trap.
2222 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2223 trap 'exit_status=$?
2224 # Save into config.log some information that might help in debugging.
2228 $as_echo "## ---------------- ##
2229 ## Cache variables. ##
2230 ## ---------------- ##"
2232 # The following way of writing the cache mishandles newlines in values,
2234 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2235 eval ac_val=\$$ac_var
2239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 _ | IFS | as_nl) ;; #(
2244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2245 *) { eval $ac_var=; unset $ac_var;} ;;
2250 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2251 *${as_nl}ac_space=\ *)
2253 "s/'\''/'\''\\\\'\'''\''/g;
2254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264 $as_echo "## ----------------- ##
2265 ## Output variables. ##
2266 ## ----------------- ##"
2268 for ac_var in $ac_subst_vars
2270 eval ac_val=\$$ac_var
2272 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 $as_echo "$ac_var='\''$ac_val'\''"
2278 if test -n "$ac_subst_files"; then
2279 $as_echo "## ------------------- ##
2280 ## File substitutions. ##
2281 ## ------------------- ##"
2283 for ac_var
in $ac_subst_files
2285 eval ac_val
=\$
$ac_var
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 $as_echo "$ac_var='\''$ac_val'\''"
2294 if test -s confdefs.h; then
2295 $as_echo "## ----------- ##
2302 test "$ac_signal" != 0 &&
2303 $as_echo "$as_me: caught signal $ac_signal"
2304 $as_echo "$as_me: exit $exit_status"
2306 rm -f core *.core core.conftest.* &&
2307 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 for ac_signal
in 1 2 13 15; do
2311 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2316 rm -f -r conftest
* confdefs.h
2318 $as_echo "/* confdefs.h */" > confdefs.h
2320 # Predefined preprocessor variables.
2322 cat >>confdefs.h
<<_ACEOF
2323 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 cat >>confdefs.h
<<_ACEOF
2327 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 cat >>confdefs.h
<<_ACEOF
2331 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 cat >>confdefs.h
<<_ACEOF
2335 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 cat >>confdefs.h
<<_ACEOF
2339 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 cat >>confdefs.h
<<_ACEOF
2343 #define PACKAGE_URL "$PACKAGE_URL"
2347 # Let the site file select an alternate cache file if it wants to.
2348 # Prefer an explicitly selected file to automatically selected ones.
2351 if test -n "$CONFIG_SITE"; then
2352 # We do not want a PATH search for config.site.
2353 case $CONFIG_SITE in #((
2354 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2355 */*) ac_site_file1
=$CONFIG_SITE;;
2356 *) ac_site_file1
=.
/$CONFIG_SITE;;
2358 elif test "x$prefix" != xNONE
; then
2359 ac_site_file1
=$prefix/share
/config.site
2360 ac_site_file2
=$prefix/etc
/config.site
2362 ac_site_file1
=$ac_default_prefix/share
/config.site
2363 ac_site_file2
=$ac_default_prefix/etc
/config.site
2365 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2367 test "x$ac_site_file" = xNONE
&& continue
2368 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2370 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2371 sed 's/^/| /' "$ac_site_file" >&5
2373 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2375 as_fn_error $?
"failed to load site script $ac_site_file
2376 See \`config.log' for more details" "$LINENO" 5; }
2380 if test -r "$cache_file"; then
2381 # Some versions of bash will fail to source /dev/null (special files
2382 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2383 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2385 $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2388 *) .
"./$cache_file";;
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2393 $as_echo "$as_me: creating cache $cache_file" >&6;}
2397 as_fn_append ac_header_list
" stdlib.h"
2398 as_fn_append ac_header_list
" unistd.h"
2399 as_fn_append ac_header_list
" sys/param.h"
2400 # Check that the precious variables saved in the cache have kept the same
2402 ac_cache_corrupted
=false
2403 for ac_var
in $ac_precious_vars; do
2404 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2405 eval ac_new_set
=\
$ac_env_${ac_var}_set
2406 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2407 eval ac_new_val
=\
$ac_env_${ac_var}_value
2408 case $ac_old_set,$ac_new_set in
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412 ac_cache_corrupted
=: ;;
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416 ac_cache_corrupted
=: ;;
2419 if test "x$ac_old_val" != "x$ac_new_val"; then
2420 # differences in whitespace do not lead to failure.
2421 ac_old_val_w
=`echo x $ac_old_val`
2422 ac_new_val_w
=`echo x $ac_new_val`
2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426 ac_cache_corrupted
=:
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430 eval $ac_var=\
$ac_old_val
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2433 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2435 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2438 # Pass precious variables to config.status.
2439 if test "$ac_new_set" = set; then
2441 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 *) ac_arg
=$ac_var=$ac_new_val ;;
2444 case " $ac_configure_args " in
2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2446 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2450 if $ac_cache_corrupted; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 ## -------------------- ##
2458 ## Main body of script. ##
2459 ## -------------------- ##
2462 ac_cpp
='$CPP $CPPFLAGS'
2463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2474 # This works around the fact that libtool configuration may change LD
2475 # for this particular configuration, but some shells, instead of
2476 # keeping the changes in LD private, export them just because LD is
2477 # exported. We don't use libtool yet, but some day we might, so...
2478 ORIGINAL_LD_FOR_MULTILIBS
=$LD
2481 # Check whether --with-target-subdir was given.
2482 if test "${with_target_subdir+set}" = set; then :
2483 withval
=$with_target_subdir;
2487 # Check whether --with-build-subdir was given.
2488 if test "${with_build_subdir+set}" = set; then :
2489 withval
=$with_build_subdir;
2493 # Check whether --with-cross-host was given.
2494 if test "${with_cross_host+set}" = set; then :
2495 withval
=$with_cross_host;
2499 # Check whether --with-newlib was given.
2500 if test "${with_newlib+set}" = set; then :
2501 withval
=$with_newlib;
2505 if test "${srcdir}" = "."; then
2506 if test -n "${with_build_subdir}"; then
2507 libiberty_topdir
="${srcdir}/../.."
2509 elif test -z "${with_target_subdir}"; then
2510 libiberty_topdir
="${srcdir}/.."
2512 if test "${with_target_subdir}" != "."; then
2513 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
2515 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
2519 libiberty_topdir
="${srcdir}/.."
2523 for ac_dir
in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
2524 if test -f "$ac_dir/install-sh"; then
2526 ac_install_sh
="$ac_aux_dir/install-sh -c"
2528 elif test -f "$ac_dir/install.sh"; then
2530 ac_install_sh
="$ac_aux_dir/install.sh -c"
2532 elif test -f "$ac_dir/shtool"; then
2534 ac_install_sh
="$ac_aux_dir/shtool install -c"
2538 if test -z "$ac_aux_dir"; then
2539 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2554 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2555 # Check whether --enable-maintainer-mode was given.
2556 if test "${enable_maintainer_mode+set}" = set; then :
2557 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2564 $as_echo "$maintainer_mode" >&6; }
2566 if test "$maintainer_mode" = "yes"; then
2574 if test -z "$ETAGS"; then
2579 # Do we have a single-tree copy of texinfo? Even if we do, we can't
2580 # rely on it - libiberty is built before texinfo.
2581 # Extract the first word of "makeinfo", so it can be a program name with args.
2582 set dummy makeinfo
; ac_word
=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if ${ac_cv_prog_MAKEINFO+:} false
; then :
2586 $as_echo_n "(cached) " >&6
2588 if test -n "$MAKEINFO"; then
2589 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir
=.
2596 for ac_exec_ext
in '' $ac_executable_extensions; do
2597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_MAKEINFO
="makeinfo"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 MAKEINFO
=$ac_cv_prog_MAKEINFO
2609 if test -n "$MAKEINFO"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2611 $as_echo "$MAKEINFO" >&6; }
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2618 if test "x$MAKEINFO" = "x"; then
2619 MAKEINFO
="@echo makeinfo missing; true"
2624 */missing\ makeinfo
*)
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2627 *** Makeinfo is missing. Info documentation will not be built." >&5
2628 $as_echo "$as_me: WARNING:
2629 *** Makeinfo is missing. Info documentation will not be built." >&2;}
2632 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
2634 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2637 *** Makeinfo is too old. Info documentation will not be built." >&5
2638 $as_echo "$as_me: WARNING:
2639 *** Makeinfo is too old. Info documentation will not be built." >&2;}
2648 # Extract the first word of "perl", so it can be a program name with args.
2649 set dummy perl
; ac_word
=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_PERL+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$PERL"; then
2656 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
2658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir
=.
2663 for ac_exec_ext
in '' $ac_executable_extensions; do
2664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_PERL
="perl"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 PERL
=$ac_cv_prog_PERL
2676 if test -n "$PERL"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2678 $as_echo "$PERL" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2685 if test x
"$PERL" = x
""; then
2692 # Make sure we can run config.sub.
2693 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2694 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2697 $as_echo_n "checking build system type... " >&6; }
2698 if ${ac_cv_build+:} false
; then :
2699 $as_echo_n "(cached) " >&6
2701 ac_build_alias
=$build_alias
2702 test "x$ac_build_alias" = x
&&
2703 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2704 test "x$ac_build_alias" = x
&&
2705 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2706 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2707 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2711 $as_echo "$ac_cv_build" >&6; }
2712 case $ac_cv_build in
2714 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2717 ac_save_IFS
=$IFS; IFS
='-'
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2727 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2731 $as_echo_n "checking host system type... " >&6; }
2732 if ${ac_cv_host+:} false
; then :
2733 $as_echo_n "(cached) " >&6
2735 if test "x$host_alias" = x
; then
2736 ac_cv_host
=$ac_cv_build
2738 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2739 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2744 $as_echo "$ac_cv_host" >&6; }
2747 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2750 ac_save_IFS
=$IFS; IFS
='-'
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2760 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2767 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_AR+:} false
; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$AR"; then
2774 ac_cv_prog_AR
="$AR" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$AR"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2796 $as_echo "$AR" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_AR"; then
2806 # Extract the first word of "ar", so it can be a program name with args.
2807 set dummy
ar; ac_word
=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$ac_ct_AR"; then
2814 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_AR
="ar"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
2834 if test -n "$ac_ct_AR"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2836 $as_echo "$ac_ct_AR" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_AR" = x
; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned
=yes ;;
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2859 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_RANLIB+:} false
; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$RANLIB"; then
2866 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 RANLIB
=$ac_cv_prog_RANLIB
2886 if test -n "$RANLIB"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2888 $as_echo "$RANLIB" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$ac_cv_prog_RANLIB"; then
2897 ac_ct_RANLIB
=$RANLIB
2898 # Extract the first word of "ranlib", so it can be a program name with args.
2899 set dummy ranlib
; ac_word
=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$ac_ct_RANLIB"; then
2906 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir
=.
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2926 if test -n "$ac_ct_RANLIB"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2928 $as_echo "$ac_ct_RANLIB" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2934 if test "x$ac_ct_RANLIB" = x
; then
2937 case $cross_compiling:$ac_tool_warned in
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned
=yes ;;
2943 RANLIB
=$ac_ct_RANLIB
2946 RANLIB
="$ac_cv_prog_RANLIB"
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
2951 $as_echo_n "checking for -plugin option... " >&6; }
2953 plugin_names
="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
2955 for plugin
in $plugin_names; do
2956 plugin_so
=`${CC} ${CFLAGS} --print-prog-name $plugin`
2957 if test x
$plugin_so = x
$plugin; then
2958 plugin_so
=`${CC} ${CFLAGS} --print-file-name $plugin`
2960 if test x
$plugin_so != x
$plugin; then
2961 plugin_option
="--plugin $plugin_so"
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2967 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_AR+:} false
; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$AR"; then
2974 ac_cv_prog_AR
="$AR" # Let the user override the test.
2976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir
=.
2981 for ac_exec_ext
in '' $ac_executable_extensions; do
2982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$AR"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2996 $as_echo "$AR" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_AR"; then
3006 # Extract the first word of "ar", so it can be a program name with args.
3007 set dummy
ar; ac_word
=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$ac_ct_AR"; then
3014 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_AR
="ar"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3034 if test -n "$ac_ct_AR"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3036 $as_echo "$ac_ct_AR" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_AR" = x
; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned
=yes ;;
3057 if test "${AR}" = "" ; then
3058 as_fn_error $?
"Required archive tool 'ar' not found on PATH." "$LINENO" 5
3061 ${AR} $plugin_option rc conftest.a conftest.c
3062 if test "$?" != 0; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
3064 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
3068 if test -n "$plugin_option"; then
3069 PLUGIN_OPTION
="$plugin_option"
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
3071 $as_echo "$plugin_option" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3077 if test -n "$PLUGIN_OPTION"; then
3078 if $AR --help 2>&1 |
grep -q "\--plugin"; then
3079 AR_PLUGIN_OPTION
="$PLUGIN_OPTION"
3082 if $RANLIB --help 2>&1 |
grep -q "\--plugin"; then
3083 RANLIB_PLUGIN_OPTION
="$PLUGIN_OPTION"
3088 # Add --enable-multilib to configure.
3089 # Default to --enable-multilib
3090 # Check whether --enable-multilib was given.
3091 if test "${enable_multilib+set}" = set; then :
3092 enableval
=$enable_multilib; case "$enableval" in
3093 yes) multilib
=yes ;;
3095 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3102 # Even if the default multilib is not a cross compilation,
3103 # it may be that some of the other multilibs are.
3104 if test $cross_compiling = no
&& test $multilib = yes \
3105 && test "x${with_multisubdir}" != x
; then
3106 cross_compiling
=maybe
3109 # We may wish to install the target headers somewhere.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
3111 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
3113 # Check whether --enable-install-libiberty was given.
3114 if test "${enable_install_libiberty+set}" = set; then :
3115 enableval
=$enable_install_libiberty; enable_install_libiberty
=$enableval
3117 enable_install_libiberty
=no
3120 # Option parsed, now set things appropriately.
3121 case x
"$enable_install_libiberty" in
3123 target_header_dir
=libiberty
3129 # This could be sanity-checked in various ways...
3130 target_header_dir
="${enable_install_libiberty}"
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
3134 $as_echo "$enable_install_libiberty" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
3136 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
3140 ac_cpp
='$CPP $CPPFLAGS'
3141 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3146 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_CC+:} false
; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$ac_cv_prog_CC"; then
3185 # Extract the first word of "gcc", so it can be a program name with args.
3186 set dummy gcc
; ac_word
=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir
=.
3200 for ac_exec_ext
in '' $ac_executable_extensions; do
3201 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_ac_ct_CC
="gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3221 if test "x$ac_ct_CC" = x
; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned
=yes ;;
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3239 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC
="$CC" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3277 if test -z "$CC"; then
3278 # Extract the first word of "cc", so it can be a program name with args.
3279 set dummy cc
; ac_word
=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false
; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC
="$CC" # Let the user override the test.
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_exec_ext
in '' $ac_executable_extensions; do
3295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3297 ac_prog_rejected
=yes
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test $ac_prog_rejected = yes; then
3309 # We found a bogon in the path, so make sure we never use it.
3310 set dummy
$ac_cv_prog_CC
3312 if test $# != 0; then
3313 # We chose a different compiler from the bogus one.
3314 # However, it has the same basename, so the bogon will be chosen
3315 # first if we set CC to just the basename; use the full file name.
3317 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 for ac_prog
in cl.exe
3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_CC+:} false
; then :
3342 $as_echo_n "(cached) " >&6
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC
="$CC" # Let the user override the test.
3347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir
=.
3352 for ac_exec_ext
in '' $ac_executable_extensions; do
3353 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$CC" && break
3377 if test -z "$CC"; then
3379 for ac_prog
in cl.exe
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy
$ac_prog; ac_word
=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3386 $as_echo_n "(cached) " >&6
3388 if test -n "$ac_ct_CC"; then
3389 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir
=.
3396 for ac_exec_ext
in '' $ac_executable_extensions; do
3397 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_ac_ct_CC
="$ac_prog"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3409 if test -n "$ac_ct_CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3411 $as_echo "$ac_ct_CC" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3418 test -n "$ac_ct_CC" && break
3421 if test "x$ac_ct_CC" = x
; then
3424 case $cross_compiling:$ac_tool_warned in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned
=yes ;;
3437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $?
"no acceptable C compiler found in \$PATH
3440 See \`config.log' for more details" "$LINENO" 5; }
3442 # Provide some information about the compiler.
3443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 for ac_option
in --version -v -V -qversion; do
3447 { { ac_try
="$ac_compiler $ac_option >&5"
3449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456 if test -s conftest.err; then
3458 ... rest of stderr output deleted ...
3459 10q' conftest.err >conftest.er1
3460 cat conftest.er1 >&5
3462 rm -f conftest.er1 conftest.err
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3473 printf ("hello world\n");
3479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3480 (eval $ac_link) 2>&5
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3488 if test x$gcc_no_link = xyes; then
3489 # Setting cross_compile will disable run tests; it will
3490 # also disable AC_CHECK_FILE but that's generally
3491 # correct if we can't link.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3506 ac_clean_files_save=$ac_clean_files
3507 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3508 # Try to create an executable without -o first, disregard a.out.
3509 # It will help us diagnose broken compilers, and finding out an intuition
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3512 $as_echo_n "checking whether the C compiler works... " >&6; }
3513 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3515 # The possible output files:
3516 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519 for ac_file in $ac_files
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3528 if { { ac_try="$ac_link_default"
3530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3531 *) ac_try_echo
=$ac_try;;
3533 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link_default") 2>&5
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3540 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3541 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3542 # so that the user can short-circuit this test for compilers unknown to
3544 for ac_file
in $ac_files ''
3546 test -f "$ac_file" ||
continue
3548 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3551 # We found the default executable, but exeext='' is most
3555 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3557 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 # We set ac_cv_exeext here because the later test for it is not
3560 # safe: cross compilers may not add the suffix if given an `-o'
3561 # argument, so we may need to know it at that point already.
3562 # Even if this section looks crufty: it has the advantage of
3569 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3574 if test -z "$ac_file"; then :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.
$ac_ext >&5
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error
77 "C compiler cannot create executables
3583 See \`config.log' for more details" "$LINENO" 5; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3589 $as_echo_n "checking for C compiler default output file name... " >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3591 $as_echo "$ac_file" >&6; }
3592 ac_exeext
=$ac_cv_exeext
3594 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3595 ac_clean_files
=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3597 $as_echo_n "checking for suffix of executables... " >&6; }
3598 if { { ac_try
="$ac_link"
3600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link") 2>&5
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3610 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3611 # work properly (i.e., refer to `conftest.exe'), while it won't with
3613 for ac_file
in conftest.exe conftest conftest.
*; do
3614 test -f "$ac_file" ||
continue
3616 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3617 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3626 See \`config.log' for more details" "$LINENO" 5; }
3628 rm -f conftest conftest
$ac_cv_exeext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3630 $as_echo "$ac_cv_exeext" >&6; }
3632 rm -f conftest.
$ac_ext
3633 EXEEXT
=$ac_cv_exeext
3635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3641 FILE *f = fopen ("conftest.out", "w");
3642 return ferror (f) || fclose (f) != 0;
3648 ac_clean_files
="$ac_clean_files conftest.out"
3649 # Check that the compiler produces executables we can run. If not, either
3650 # the compiler is broken, or we cross compile.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3652 $as_echo_n "checking whether we are cross compiling... " >&6; }
3653 if test "$cross_compiling" != yes; then
3654 { { ac_try
="$ac_link"
3656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3665 if { ac_try='./conftest$ac_cv_exeext'
3666 { { case "(($ac_try" in
3667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3668 *) ac_try_echo
=$ac_try;;
3670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_try") 2>&5
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; }; then
3678 if test "$cross_compiling" = maybe
; then
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $?
"cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details" "$LINENO" 5; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3690 $as_echo "$cross_compiling" >&6; }
3692 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3693 ac_clean_files
=$ac_clean_files_save
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3696 $as_echo_n "checking for suffix of object files... " >&6; }
3697 if ${ac_cv_objext+:} false
; then :
3698 $as_echo_n "(cached) " >&6
3700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 rm -f conftest.o conftest.obj
3712 if { { ac_try
="$ac_compile"
3714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_compile") 2>&5
3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }; then :
3723 for ac_file in conftest.o conftest.obj conftest.*; do
3724 test -f "$ac_file" || continue;
3726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3727 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732 $as_echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3738 See \
`config.log' for more details" "$LINENO" 5; }
3740 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3743 $as_echo "$ac_cv_objext" >&6; }
3744 OBJEXT=$ac_cv_objext
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3747 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3748 if ${ac_cv_c_compiler_gnu+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3765 if ac_fn_c_try_compile "$LINENO"; then :
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3776 if test $ac_compiler_gnu = yes; then
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3785 if ${ac_cv_prog_cc_g+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 ac_save_c_werror_flag=$ac_c_werror_flag
3789 ac_c_werror_flag=yes
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3803 if ac_fn_c_try_compile "$LINENO"; then :
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3818 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3834 if ac_fn_c_try_compile "$LINENO"; then :
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_c_werror_flag=$ac_save_c_werror_flag
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3845 $as_echo "$ac_cv_prog_cc_g" >&6; }
3846 if test "$ac_test_CFLAGS" = set; then
3847 CFLAGS=$ac_save_CFLAGS
3848 elif test $ac_cv_prog_cc_g = yes; then
3849 if test "$GCC" = yes; then
3855 if test "$GCC" = yes; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3863 if ${ac_cv_prog_cc_c89+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 ac_cv_prog_cc_c89=no
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3887 s = g (p, va_arg (v,int));
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC="$ac_save_CC $ac_arg"
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_prog_cc_c89=$ac_arg
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930 rm -f conftest.$ac_ext
3935 case "x$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3947 if test "x$ac_cv_prog_cc_c89" != xno; then :
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3969 if test -z "$CPP"; then
3970 if ${ac_cv_prog_CPP+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 # Double quotes because CPP needs to be expanded
3974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3977 for ac_c_preproc_warn_flag in '' yes
3979 # Use a header file that comes with gcc, so configuring glibc
3980 # with a fresh cross-compiler works.
3981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982 # <limits.h> exists even on freestanding compilers.
3983 # On the NeXT, cc -E runs the code through the compiler's parser,
3984 # not just through cpp. "Syntax error" is here to catch this case.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3988 # include <limits.h>
3990 # include <assert.h>
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3997 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.i conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4009 # Broken: success on invalid input.
4012 # Passes both tests.
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.i conftest.err conftest.
$ac_ext
4021 if $ac_preproc_ok; then :
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034 $as_echo "$CPP" >&6; }
4036 for ac_c_preproc_warn_flag
in '' yes
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4047 # include <limits.h>
4049 # include <assert.h>
4053 if ac_fn_c_try_cpp
"$LINENO"; then :
4056 # Broken: fails on valid input.
4059 rm -f conftest.err conftest.i conftest.
$ac_ext
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4067 if ac_fn_c_try_cpp
"$LINENO"; then :
4068 # Broken: success on invalid input.
4071 # Passes both tests.
4075 rm -f conftest.err conftest.i conftest.
$ac_ext
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.
$ac_ext
4080 if $ac_preproc_ok; then :
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 ac_cpp
='$CPP $CPPFLAGS'
4091 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098 if ${ac_cv_path_GREP+:} false
; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -z "$GREP"; then
4102 ac_path_GREP_found
=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4105 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4108 test -z "$as_dir" && as_dir
=.
4109 for ac_prog
in grep ggrep
; do
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p
"$ac_path_GREP" ||
continue
4113 # Check for GNU ac_path_GREP and select it if it is found.
4114 # Check for GNU $ac_path_GREP
4115 case `"$ac_path_GREP" --version 2>&1` in
4117 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4120 $as_echo_n 0123456789 >"conftest.in"
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'GREP' >> "conftest.nl"
4127 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4128 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4129 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4130 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_GREP
="$ac_path_GREP"
4133 ac_path_GREP_max
=$ac_count
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4138 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4141 $ac_path_GREP_found && break 3
4146 if test -z "$ac_cv_path_GREP"; then
4147 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150 ac_cv_path_GREP
=$GREP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155 $as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP
="$ac_cv_path_GREP"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160 $as_echo_n "checking for egrep... " >&6; }
4161 if ${ac_cv_path_EGREP+:} false
; then :
4162 $as_echo_n "(cached) " >&6
4164 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4165 then ac_cv_path_EGREP
="$GREP -E"
4167 if test -z "$EGREP"; then
4168 ac_path_EGREP_found
=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4171 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4174 test -z "$as_dir" && as_dir
=.
4175 for ac_prog
in egrep; do
4176 for ac_exec_ext
in '' $ac_executable_extensions; do
4177 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
4180 # Check for GNU $ac_path_EGREP
4181 case `"$ac_path_EGREP" --version 2>&1` in
4183 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4186 $as_echo_n 0123456789 >"conftest.in"
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo 'EGREP' >> "conftest.nl"
4193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4194 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4195 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP
="$ac_path_EGREP"
4199 ac_path_EGREP_max
=$ac_count
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4204 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4207 $ac_path_EGREP_found && break 3
4212 if test -z "$ac_cv_path_EGREP"; then
4213 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216 ac_cv_path_EGREP
=$EGREP
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222 $as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP
="$ac_cv_path_EGREP"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227 $as_echo_n "checking for ANSI C header files... " >&6; }
4228 if ${ac_cv_header_stdc+:} false
; then :
4229 $as_echo_n "(cached) " >&6
4231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4246 if ac_fn_c_try_compile
"$LINENO"; then :
4247 ac_cv_header_stdc
=yes
4249 ac_cv_header_stdc
=no
4251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "memchr" >/dev
/null
2>&1; then :
4264 ac_cv_header_stdc
=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "free" >/dev
/null
2>&1; then :
4281 ac_cv_header_stdc
=no
4287 if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then :
4292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4300 # define ISLOWER(c) \
4301 (('a' <= (c) && (c) <= 'i') \
4302 || ('j' <= (c) && (c) <= 'r') \
4303 || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312 for (i = 0; i < 256; i++)
4313 if (XOR (islower (i), ISLOWER (i))
4314 || toupper (i) != TOUPPER (i))
4319 if ac_fn_c_try_run
"$LINENO"; then :
4322 ac_cv_header_stdc
=no
4324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331 $as_echo "$ac_cv_header_stdc" >&6; }
4332 if test $ac_cv_header_stdc = yes; then
4334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4340 inttypes.h stdint.h unistd.h
4342 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4345 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4346 cat >>confdefs.h
<<_ACEOF
4347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4357 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4364 if test "$MINIX" = yes; then
4366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4372 $as_echo "#define _MINIX 1" >>confdefs.h
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4378 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4379 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4385 # define __EXTENSIONS__ 1
4386 $ac_includes_default
4395 if ac_fn_c_try_compile
"$LINENO"; then :
4396 ac_cv_safe_to_define___extensions__
=yes
4398 ac_cv_safe_to_define___extensions__
=no
4400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4403 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4404 test $ac_cv_safe_to_define___extensions__ = yes &&
4405 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4407 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4409 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4411 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4413 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4416 # Check whether --enable-largefile was given.
4417 if test "${enable_largefile+set}" = set; then :
4418 enableval
=$enable_largefile;
4421 if test "$enable_largefile" != no
; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4424 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4425 if ${ac_cv_sys_largefile_CC+:} false
; then :
4426 $as_echo_n "(cached) " >&6
4428 ac_cv_sys_largefile_CC
=no
4429 if test "$GCC" != yes; then
4432 # IRIX 6.2 and later do not support large files by default,
4433 # so use the C compiler's -n32 option if that helps.
4434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436 #include <sys/types.h>
4437 /* Check that off_t can represent 2**63 - 1 correctly.
4438 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4439 since some C++ compilers masquerading as C compilers
4440 incorrectly reject 9223372036854775807. */
4441 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4442 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4443 && LARGE_OFF_T % 2147483647 == 1)
4453 if ac_fn_c_try_compile
"$LINENO"; then :
4456 rm -f core conftest.err conftest.
$ac_objext
4458 if ac_fn_c_try_compile
"$LINENO"; then :
4459 ac_cv_sys_largefile_CC
=' -n32'; break
4461 rm -f core conftest.err conftest.
$ac_objext
4465 rm -f conftest.
$ac_ext
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4469 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4470 if test "$ac_cv_sys_largefile_CC" != no
; then
4471 CC
=$CC$ac_cv_sys_largefile_CC
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4475 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4476 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4477 $as_echo_n "(cached) " >&6
4480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <sys/types.h>
4483 /* Check that off_t can represent 2**63 - 1 correctly.
4484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4485 since some C++ compilers masquerading as C compilers
4486 incorrectly reject 9223372036854775807. */
4487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4489 && LARGE_OFF_T % 2147483647 == 1)
4499 if ac_fn_c_try_compile
"$LINENO"; then :
4500 ac_cv_sys_file_offset_bits
=no
; break
4502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #define _FILE_OFFSET_BITS 64
4506 #include <sys/types.h>
4507 /* Check that off_t can represent 2**63 - 1 correctly.
4508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4509 since some C++ compilers masquerading as C compilers
4510 incorrectly reject 9223372036854775807. */
4511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4513 && LARGE_OFF_T % 2147483647 == 1)
4523 if ac_fn_c_try_compile
"$LINENO"; then :
4524 ac_cv_sys_file_offset_bits
=64; break
4526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4527 ac_cv_sys_file_offset_bits
=unknown
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4532 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4533 case $ac_cv_sys_file_offset_bits in #(
4536 cat >>confdefs.h
<<_ACEOF
4537 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4542 if test $ac_cv_sys_file_offset_bits = unknown
; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4544 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4545 if ${ac_cv_sys_large_files+:} false
; then :
4546 $as_echo_n "(cached) " >&6
4549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4568 if ac_fn_c_try_compile
"$LINENO"; then :
4569 ac_cv_sys_large_files
=no
; break
4571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #define _LARGE_FILES 1
4575 #include <sys/types.h>
4576 /* Check that off_t can represent 2**63 - 1 correctly.
4577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4578 since some C++ compilers masquerading as C compilers
4579 incorrectly reject 9223372036854775807. */
4580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4582 && LARGE_OFF_T % 2147483647 == 1)
4592 if ac_fn_c_try_compile
"$LINENO"; then :
4593 ac_cv_sys_large_files
=1; break
4595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4596 ac_cv_sys_large_files
=unknown
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4601 $as_echo "$ac_cv_sys_large_files" >&6; }
4602 case $ac_cv_sys_large_files in #(
4605 cat >>confdefs.h
<<_ACEOF
4606 #define _LARGE_FILES $ac_cv_sys_large_files
4617 ac_c_preproc_warn_flag
=yes
4620 ac_cpp
='$CPP $CPPFLAGS'
4621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4625 ac_libiberty_warn_cflags
=
4626 save_CFLAGS
="$CFLAGS"
4627 for real_option
in -W -Wall -Wwrite-strings -Wc++-compat \
4628 -Wstrict-prototypes \
4630 # Do the check with the no- prefix removed since gcc silently
4631 # accepts any -Wno-* option on purpose
4632 case $real_option in
4633 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4634 *) option
=$real_option ;;
4636 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4639 $as_echo_n "checking whether $CC supports $option... " >&6; }
4640 if eval \
${$as_acx_Woption+:} false
; then :
4641 $as_echo_n "(cached) " >&6
4644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 if ac_fn_c_try_compile
"$LINENO"; then :
4656 eval "$as_acx_Woption=yes"
4658 eval "$as_acx_Woption=no"
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 eval ac_res
=\$
$as_acx_Woption
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4667 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
4670 CFLAGS
="$save_CFLAGS"
4672 ac_cpp
='$CPP $CPPFLAGS'
4673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4679 ac_cpp
='$CPP $CPPFLAGS'
4680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4684 # Do the check with the no- prefix removed from the warning options
4685 # since gcc silently accepts any -Wno-* option on purpose
4686 if test "$GCC" = yes; then :
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
4688 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
4689 if ${acx_cv_prog_cc_pedantic_+:} false
; then :
4690 $as_echo_n "(cached) " >&6
4692 save_CFLAGS
="$CFLAGS"
4694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4705 if ac_fn_c_try_compile
"$LINENO"; then :
4706 acx_cv_prog_cc_pedantic_
=yes
4708 acx_cv_prog_cc_pedantic_
=no
4710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4711 CFLAGS
="$save_CFLAGS"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
4714 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
4715 if test $acx_cv_prog_cc_pedantic_ = yes; then :
4716 ac_libiberty_warn_cflags
="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
4721 ac_cpp
='$CPP $CPPFLAGS'
4722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4728 if test "x$CC" != xcc
; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4730 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4733 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4735 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4736 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4737 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
4738 $as_echo_n "(cached) " >&6
4740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4751 # Make sure it works both with $CC and with simple cc.
4752 # We do the test twice because some compilers refuse to overwrite an
4753 # existing .o file with -o, though they will create one.
4754 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4756 if { { case "(($ac_try" in
4757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4761 $as_echo "$ac_try_echo"; } >&5
4762 (eval "$ac_try") 2>&5
4764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; } &&
4766 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4768 *) ac_try_echo
=$ac_try;;
4770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 $as_echo "$ac_try_echo"; } >&5
4772 (eval "$ac_try") 2>&5
4774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; };
4777 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4778 if test "x$CC" != xcc
; then
4779 # Test first that cc exists at all.
4780 if { ac_try
='cc -c conftest.$ac_ext >&5'
4781 { { case "(($ac_try" in
4782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4786 $as_echo "$ac_try_echo"; } >&5
4787 (eval "$ac_try") 2>&5
4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }; }; then
4791 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4793 if { { case "(($ac_try" in
4794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4795 *) ac_try_echo
=$ac_try;;
4797 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798 $as_echo "$ac_try_echo"; } >&5
4799 (eval "$ac_try") 2>&5
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; } &&
4803 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_try") 2>&5
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; };
4817 # cc exists but doesn't like -o.
4818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4825 rm -f core conftest*
4828 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4830 $as_echo "yes" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4835 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4839 # autoconf is lame and doesn't give us any substitution variable for this.
4840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4841 NO_MINUS_C_MINUS_O=yes
4843 OUTPUT_OPTION='-o $@'
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4849 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4850 if ${ac_cv_c_const+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4861 /* Ultrix mips cc rejects this sort of thing. */
4862 typedef int charset[2];
4863 const charset cs = { 0, 0 };
4864 /* SunOS 4.1.1 cc rejects this. */
4865 char const *const *pcpcc;
4867 /* NEC SVR4.0.2 mips cc rejects this. */
4868 struct point {int x, y;};
4869 static struct point const zero = {0,0};
4870 /* AIX XL C 1.02.0.0 rejects this.
4871 It does not let you subtract one const X* pointer from another in
4872 an arm of an if-expression whose if-part is not a constant
4874 const char *g = "string";
4875 pcpcc = &g + (g ? g-g : 0);
4876 /* HPUX 7.0 cc rejects these. */
4878 ppc = (char**) pcpcc;
4879 pcpcc = (char const *const *) ppc;
4880 { /* SCO 3.2v4 cc rejects this sort of thing. */
4883 char const *s = 0 ? (char *) 0 : (char const *) 0;
4888 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4890 const int *foo = &x[0];
4893 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4894 typedef const int *iptr;
4898 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4899 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4900 struct s { int j; const int *ap[3]; } bx;
4901 struct s *b = &bx; b->j = 5;
4903 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4907 return !cs[0] && !zero.x;
4914 if ac_fn_c_try_compile "$LINENO"; then :
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4922 $as_echo "$ac_cv_c_const" >&6; }
4923 if test $ac_cv_c_const = no; then
4925 $as_echo "#define const /**/" >>confdefs.h
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4930 $as_echo_n "checking for inline... " >&6; }
4931 if ${ac_cv_c_inline+:} false; then :
4932 $as_echo_n "(cached) " >&6
4935 for ac_kw in inline __inline__ __inline; do
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4940 static $ac_kw foo_t static_foo () {return 0; }
4941 $ac_kw foo_t foo () {return 0; }
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_c_inline=$ac_kw
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 test "$ac_cv_c_inline" != no && break
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4954 $as_echo "$ac_cv_c_inline" >&6; }
4956 case $ac_cv_c_inline in
4959 case $ac_cv_c_inline in
4961 *) ac_val=$ac_cv_c_inline;;
4963 cat >>confdefs.h <<_ACEOF
4965 #define inline $ac_val
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4972 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4973 if ${ac_cv_c_bigendian+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_cv_c_bigendian=unknown
4977 # See if we're dealing with a universal compiler.
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #ifndef __APPLE_CC__
4981 not a universal capable compiler
4986 if ac_fn_c_try_compile "$LINENO"; then :
4988 # Check for potential -arch flags. It is not universal unless
4989 # there are at least two -arch flags with different values.
4992 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4993 if test -n "$ac_prev"; then
4995 i?86 | x86_64 | ppc | ppc64)
4996 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4999 ac_cv_c_bigendian=universal
5005 elif test "x$ac_word" = "x-arch"; then
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 if test $ac_cv_c_bigendian = unknown; then
5012 # See if sys/param.h defines the BYTE_ORDER macro.
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #include <sys/types.h>
5016 #include <sys/param.h>
5021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032 # It does; now see whether it defined to BIG_ENDIAN or not.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <sys/types.h>
5036 #include <sys/param.h>
5041 #if BYTE_ORDER != BIG_ENDIAN
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_c_bigendian=yes
5052 ac_cv_c_bigendian=no
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 if test $ac_cv_c_bigendian = unknown; then
5059 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5075 if ac_fn_c_try_compile "$LINENO"; then :
5076 # It does; now see whether it defined to _BIG_ENDIAN or not.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093 ac_cv_c_bigendian=yes
5095 ac_cv_c_bigendian=no
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 if test $ac_cv_c_bigendian = unknown; then
5102 # Compile a test program.
5103 if test "$cross_compiling" = yes; then :
5104 # Try to guess by grepping values from an object file.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 short int ascii_mm[] =
5108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5109 short int ascii_ii[] =
5110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5111 int use_ascii (int i) {
5112 return ascii_mm[i] + ascii_ii[i];
5114 short int ebcdic_ii[] =
5115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5116 short int ebcdic_mm[] =
5117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5118 int use_ebcdic (int i) {
5119 return ebcdic_mm[i] + ebcdic_ii[i];
5126 return use_ascii (foo) == use_ebcdic (foo);
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5133 ac_cv_c_bigendian=yes
5135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5136 if test "$ac_cv_c_bigendian" = unknown; then
5137 ac_cv_c_bigendian=no
5139 # finding both strings is unlikely to happen, but who knows?
5140 ac_cv_c_bigendian=unknown
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 $ac_includes_default
5153 /* Are we little or big endian? From Harbison&Steele. */
5157 char c[sizeof (long int)];
5160 return u.c[sizeof (long int) - 1] == 1;
5166 if ac_fn_c_try_run "$LINENO"; then :
5167 ac_cv_c_bigendian=no
5169 ac_cv_c_bigendian=yes
5171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5172 conftest.$ac_objext conftest.beam conftest.$ac_ext
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5178 $as_echo "$ac_cv_c_bigendian" >&6; }
5179 case $ac_cv_c_bigendian in #(
5181 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5187 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5191 as_fn_error $? "unknown endianness
5192 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5198 ac_config_headers="$ac_config_headers config.h:config.in"
5202 # Find a good install program. We prefer a C program (faster),
5203 # so one script is as good as another. But avoid the broken or
5204 # incompatible versions:
5205 # SysV /etc/install, /usr/sbin/install
5206 # SunOS /usr/etc/install
5207 # IRIX /sbin/install
5209 # AmigaOS /C/install, which installs bootblocks on floppy discs
5210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5213 # OS/2's system install, which has a completely different semantic
5214 # ./install, which can be erroneously created by make from ./install.sh.
5215 # Reject install programs that cannot install multiple files.
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5218 if test -z "$INSTALL"; then
5219 if ${ac_cv_path_install+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 # Account for people who put trailing slashes in PATH elements.
5228 case $as_dir/ in #((
5229 ./ | .// | /[cC]/* | \
5230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5234 # OSF1 and SCO ODT 3.0 have their own names for install.
5235 # Don't use installbsd from OSF since it installs stuff as root
5237 for ac_prog in ginstall scoinst install; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5240 if test $ac_prog = install &&
5241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5242 # AIX install. It has an incompatible calling convention.
5244 elif test $ac_prog = install &&
5245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5246 # program-specific install script used by HP pwplus--don't use.
5249 rm -rf conftest.one conftest.two conftest.dir
5250 echo one > conftest.one
5251 echo two > conftest.two
5253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5254 test -s conftest.one && test -s conftest.two &&
5255 test -s conftest.dir/conftest.one &&
5256 test -s conftest.dir/conftest.two
5258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5271 rm -rf conftest.one conftest.two conftest.dir
5274 if test "${ac_cv_path_install+set}" = set; then
5275 INSTALL=$ac_cv_path_install
5277 # As a last resort, use the slow shell script. Don't cache a
5278 # value for INSTALL within a source directory, because that will
5279 # break other packages using the cache if that directory is
5280 # removed, or if the value is a relative name.
5281 INSTALL=$ac_install_sh
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5285 $as_echo "$INSTALL" >&6; }
5287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5288 # It thinks the first close brace ends the variable substitution.
5289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5296 # Don't build the shared library for build.
5297 if [ -n "${with_build_subdir}" ]; then
5303 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
5305 *-*-cxux7*) frag=mh-cxux7 ;;
5306 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
5307 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
5308 i370-*-opened*) frag=mh-openedition ;;
5309 i[34567]86-*-windows*) frag=mh-windows ;;
5312 if [ -n "${frag}" ]; then
5313 frag=${libiberty_topdir}/libiberty/config/$frag
5321 # PIC is the default on some targets or must not be used.
5323 # For darwin, common symbols are not allowed in MH_DYLIB files
5325 # If we are using a compiler supporting mdynamic-no-pic
5326 # and the option has been tested as safe to add, then cancel
5327 # it here, since the code generated is incompatible with shared
5329 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
5330 *) PICFLAG=-fno-common ;;
5334 # PIC is the default.
5337 # PIC is the default for 64-bit PA HP-UX.
5339 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5341 i[34567]86-*-mingw* | x86_64-*-mingw*)
5343 i[34567]86-*-interix[3-9]*)
5344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5345 # Instead, we relocate shared libraries at runtime.
5347 i[34567]86-*-nto-qnx*)
5348 # QNX uses GNU C++, but need to define -shared option too, otherwise
5350 PICFLAG='-fPIC -shared'
5352 i[34567]86-pc-msdosdjgpp*)
5353 # DJGPP does not support shared libraries at all.
5356 # On IA64 HP-UX, PIC is the default but the pic flag
5357 # sets the default TLS model and affects inlining.
5364 # PIC is the default.
5366 rs6000-ibm-aix* | powerpc-ibm-aix*)
5367 # All AIX code is PIC.
5370 # Some targets support both -fPIC and -fpic, but prefer the latter.
5372 i[34567]86-*-* | x86_64-*-*)
5375 # FIXME: Override -fPIC default in libgcc only?
5376 sh-*-linux* | sh[2346lbe]*-*-linux*)
5382 # Default to -fPIC unless specified otherwise.
5388 # If the user explicitly uses -fpic/-fPIC, keep that.
5399 # If they didn't specify --enable-shared, don't generate shared libs.
5400 case "${enable_shared}" in
5407 # ...unless --enable-host-{shared,pie} was passed from top-level config:
5408 if [ "${enable_host_shared}" = "yes" ] || [ "${enable_host_pie}" = "yes" ]; then
5412 if [ "${shared}" != "yes" ]; then
5418 case " ${CFLAGS} " in
5419 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
5420 *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;;
5424 # Check whether --enable-cet was given.
5425 if test "${enable_cet+set}" = set; then :
5426 enableval=$enable_cet;
5427 case "$enableval" in
5429 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5438 $as_echo_n "checking for CET support... " >&6; }
5441 i[34567]86-*-linux* | x86_64-*-linux*)
5443 cet_save_CFLAGS="$CFLAGS"
5444 CFLAGS="$CFLAGS -fcf-protection"
5445 case "$enable_cet" in
5447 # Check if target supports multi-byte NOPs
5448 # and if compiler and assembler support CET.
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5456 #if !defined(__SSE2__)
5457 #error target does not support multi-byte NOPs
5466 if ac_fn_c_try_compile "$LINENO"; then :
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 # Check if compiler and assembler support CET.
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5486 if ac_fn_c_try_compile "$LINENO"; then :
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 if test $support_cet = "no"; then
5493 if test x$enable_bootstrap != xno \
5494 && test -z "${with_build_subdir}" \
5495 && (test ! -f ../stage_current \
5496 || test `cat ..
/stage_current
` != "stage1"); then
5497 # Require CET support only for the final GCC build.
5498 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5500 # Don't enable CET without CET support for non-bootstrap
5501 # build, in stage1 nor for build support.
5507 CFLAGS="$cet_save_CFLAGS"
5515 cet_save_CFLAGS="$CFLAGS"
5516 CFLAGS="$CFLAGS -fcf-protection=none"
5517 cet_save_LDFLAGS="$LDFLAGS"
5518 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5519 if test x$may_have_cet = xyes; then
5520 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5521 if test x$gcc_no_link = xyes; then
5522 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5535 if ac_fn_c_try_link "$LINENO"; then :
5540 rm -f core conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5544 if test x$may_have_cet = xyes; then
5545 if test x$cross_compiling = xno; then
5546 if test "$cross_compiling" = yes; then :
5547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error $? "cannot run
test program
while cross compiling
5550 See \
`config.log' for more details" "$LINENO" 5; }
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5563 if ac_fn_c_try_run "$LINENO"; then :
5564 have_multi_byte_nop=yes
5566 have_multi_byte_nop=no
5568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5569 conftest.$ac_objext conftest.beam conftest.$ac_ext
5573 if test x$have_multi_byte_nop = xyes; then
5574 if test "$cross_compiling" = yes; then :
5575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5577 as_fn_error $? "cannot run
test program
while cross compiling
5578 See \
`config.log' for more details" "$LINENO" 5; }
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5589 __attribute__ ((noinline, noclone))
5590 xxx (void (*f) (void))
5596 __attribute__ ((noinline, noclone))
5610 if ac_fn_c_try_run "$LINENO"; then :
5615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5616 conftest.$ac_objext conftest.beam conftest.$ac_ext
5620 if test x$enable_cet = xno -a x$have_cet = xyes; then
5621 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5625 # Enable CET in cross compiler if possible so that it will run on both
5626 # CET and non-CET hosts.
5629 if test x$enable_cet = xyes; then
5630 CET_HOST_FLAGS="-fcf-protection"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 CFLAGS="$cet_save_CFLAGS"
5638 LDFLAGS="$cet_save_LDFLAGS"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5643 $as_echo_n "checking target system type... " >&6; }
5644 if ${ac_cv_target+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test "x$target_alias" = x; then
5648 ac_cv_target=$ac_cv_host
5650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5656 $as_echo "$ac_cv_target" >&6; }
5657 case $ac_cv_target in
5659 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5661 target=$ac_cv_target
5662 ac_save_IFS=$IFS; IFS='-'
5668 # Remember, the first character of IFS is used to create $*,
5669 # except with old shells:
5672 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5675 # The aliases save the names the user supplied, while $host etc.
5676 # will get canonicalized.
5677 test -n "$target_alias" &&
5678 test "$program_prefix$program_suffix$program_transform_name" = \
5680 program_prefix=${target_alias}-
5682 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
5685 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
5686 # with a different meaning.
5687 case ${target_os} in
5689 ac_save_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -Wa,-nH"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
5693 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5705 if ac_fn_c_try_compile "$LINENO"; then :
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 if test "$ac_hwcap_flags" = "yes"; then
5712 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
5715 $as_echo "$ac_hwcap_flags" >&6; }
5717 CFLAGS="$ac_save_CFLAGS"
5724 echo "# Warning: this fragment is automatically generated" > temp-frag
5726 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
5727 echo "Appending ${frag} to xhost-mkfrag"
5728 echo "# Following fragment copied from ${frag}" >> temp-frag
5729 cat ${frag} >> temp-frag
5732 # record if we want to build shared libs.
5733 if [ "${shared}" = "yes" ]; then
5734 echo enable_shared = yes >> temp-frag
5736 echo enable_shared = no >> temp-frag
5740 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
5742 host_makefile_frag=${frag}
5745 # It's OK to check for header files. Although the compiler may not be
5746 # able to link anything, it had better be able to at least compile
5748 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 spawn.h
5750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5751 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
5752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5761 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5762 if ${ac_cv_header_sys_wait_h+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #include <sys/types.h>
5768 #include <sys/wait.h>
5770 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5773 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5781 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_header_sys_wait_h=yes
5789 ac_cv_header_sys_wait_h=no
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5794 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5795 if test $ac_cv_header_sys_wait_h = yes; then
5797 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5802 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5803 if ${ac_cv_header_time+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #include <sys/types.h>
5809 #include <sys/time.h>
5815 if ((struct tm *) 0)
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_header_time=yes
5824 ac_cv_header_time=no
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5829 $as_echo "$ac_cv_header_time" >&6; }
5830 if test $ac_cv_header_time = yes; then
5832 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
5838 $as_echo_n "checking whether errno must be declared... " >&6; }
5839 if ${libiberty_cv_declare_errno+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 libiberty_cv_declare_errno=no
5856 libiberty_cv_declare_errno=yes
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
5861 $as_echo "$libiberty_cv_declare_errno" >&6; }
5862 if test $libiberty_cv_declare_errno = yes
5864 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
5869 # Determine sizes of some types.
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if ${ac_cv_sizeof_int+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 if test "$ac_cv_type_int" = yes; then
5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5885 as_fn_error 77 "cannot compute sizeof (int)
5886 See \`config.log
' for more details" "$LINENO" 5; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if ${ac_cv_sizeof_long+:} false
; then :
5910 $as_echo_n "(cached) " >&6
5912 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 as_fn_error
77 "cannot compute sizeof (long)
5919 See \`config.log' for more details" "$LINENO" 5; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5927 $as_echo "$ac_cv_sizeof_long" >&6; }
5931 cat >>confdefs.h
<<_ACEOF
5932 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 # The cast to long int works around a bug in the HP C Compiler
5937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5939 # This bug is HP SR number 8606223364.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
5941 $as_echo_n "checking size of size_t... " >&6; }
5942 if ${ac_cv_sizeof_size_t+:} false
; then :
5943 $as_echo_n "(cached) " >&6
5945 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
5948 if test "$ac_cv_type_size_t" = yes; then
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 as_fn_error
77 "cannot compute sizeof (size_t)
5952 See \`config.log' for more details" "$LINENO" 5; }
5954 ac_cv_sizeof_size_t
=0
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
5960 $as_echo "$ac_cv_sizeof_size_t" >&6; }
5964 cat >>confdefs.h
<<_ACEOF
5965 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5970 # Check for presense of long long
5971 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5972 if test "x$ac_cv_type_long_long" = xyes
; then :
5974 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5975 # The cast to long int works around a bug in the HP C Compiler
5976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5978 # This bug is HP SR number 8606223364.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5980 $as_echo_n "checking size of long long... " >&6; }
5981 if ${ac_cv_sizeof_long_long+:} false
; then :
5982 $as_echo_n "(cached) " >&6
5984 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5987 if test "$ac_cv_type_long_long" = yes; then
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5990 as_fn_error
77 "cannot compute sizeof (long long)
5991 See \`config.log' for more details" "$LINENO" 5; }
5993 ac_cv_sizeof_long_long
=0
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5999 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6003 cat >>confdefs.h
<<_ACEOF
6004 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6011 # Look for a 64-bit type.
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
6013 $as_echo_n "checking for a 64-bit type... " >&6; }
6014 if ${liberty_cv_uint64+:} false
; then :
6015 $as_echo_n "(cached) " >&6
6017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #ifdef HAVE_STDINT_H
6025 extern uint64_t foo;
6030 if ac_fn_c_try_compile
"$LINENO"; then :
6031 liberty_cv_uint64
=uint64_t
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #ifdef HAVE_LIMITS_H
6044 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
6049 if ac_fn_c_try_compile
"$LINENO"; then :
6050 liberty_cv_uint64
="unsigned long"
6052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #ifdef HAVE_LIMITS_H
6063 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
6068 if ac_fn_c_try_compile
"$LINENO"; then :
6069 liberty_cv_uint64
="unsigned long long"
6071 liberty_cv_uint64
=none
6073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
6081 $as_echo "$liberty_cv_uint64" >&6; }
6082 if test "$liberty_cv_uint64" != none
; then
6084 cat >>confdefs.h
<<_ACEOF
6085 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
6091 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6092 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6094 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6097 for ac_type
in 'int' 'long int' 'long long int'; do
6098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 $ac_includes_default
6104 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6106 return test_array [0];
6112 if ac_fn_c_try_compile
"$LINENO"; then :
6114 cat >>confdefs.h
<<_ACEOF
6115 #define intptr_t $ac_type
6120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 test -z "$ac_type" && break
6127 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6128 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6130 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6133 for ac_type
in 'unsigned int' 'unsigned long int' \
6134 'unsigned long long int'; do
6135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 $ac_includes_default
6141 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6143 return test_array [0];
6149 if ac_fn_c_try_compile
"$LINENO"; then :
6151 cat >>confdefs.h
<<_ACEOF
6152 #define uintptr_t $ac_type
6157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 test -z "$ac_type" && break
6163 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6164 if test "x$ac_cv_type_ssize_t" = xyes
; then :
6168 cat >>confdefs.h
<<_ACEOF
6175 # Given the above check, we always have uintptr_t or a fallback
6176 # definition. So define HAVE_UINTPTR_T in case any imported code
6179 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6182 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_pid_t" = xyes
; then :
6187 cat >>confdefs.h
<<_ACEOF
6194 # This is the list of functions which libiberty will provide if they
6195 # are not available on the host.
6198 funcs
="$funcs atexit"
6199 funcs
="$funcs basename"
6201 funcs
="$funcs bcopy"
6202 funcs
="$funcs bsearch"
6203 funcs
="$funcs bzero"
6204 funcs
="$funcs calloc"
6205 funcs
="$funcs clock"
6207 funcs
="$funcs getcwd"
6208 funcs
="$funcs getpagesize"
6209 funcs
="$funcs gettimeofday"
6210 funcs
="$funcs index"
6211 funcs
="$funcs insque"
6212 funcs
="$funcs memchr"
6213 funcs
="$funcs memcmp"
6214 funcs
="$funcs memcpy"
6215 funcs
="$funcs memmem"
6216 funcs
="$funcs memmove"
6217 funcs
="$funcs mempcpy"
6218 funcs
="$funcs memset"
6219 funcs
="$funcs mkstemps"
6220 funcs
="$funcs putenv"
6221 funcs
="$funcs random"
6222 funcs
="$funcs rename"
6223 funcs
="$funcs rindex"
6224 funcs
="$funcs setenv"
6225 funcs
="$funcs snprintf"
6226 funcs
="$funcs sigsetmask"
6227 funcs
="$funcs stpcpy"
6228 funcs
="$funcs stpncpy"
6229 funcs
="$funcs strcasecmp"
6230 funcs
="$funcs strchr"
6231 funcs
="$funcs strdup"
6232 funcs
="$funcs strncasecmp"
6233 funcs
="$funcs strndup"
6234 funcs
="$funcs strnlen"
6235 funcs
="$funcs strrchr"
6236 funcs
="$funcs strstr"
6237 funcs
="$funcs strtod"
6238 funcs
="$funcs strtol"
6239 funcs
="$funcs strtoul"
6240 funcs
="$funcs strtoll"
6241 funcs
="$funcs strtoull"
6242 funcs
="$funcs strverscmp"
6243 funcs
="$funcs tmpnam"
6244 funcs
="$funcs vasprintf"
6245 funcs
="$funcs vfprintf"
6246 funcs
="$funcs vprintf"
6247 funcs
="$funcs vsnprintf"
6248 funcs
="$funcs vsprintf"
6249 funcs
="$funcs waitpid"
6250 funcs
="$funcs setproctitle"
6252 # Also in the old function.def file: alloca, vfork, getopt.
6254 vars
="sys_errlist sys_nerr sys_siglist"
6256 checkfuncs
="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
6257 getsysinfo gettimeofday on_exit pipe2 posix_spawn posix_spawnp psignal \
6258 pstat_getdynamic pstat_getstatic \
6259 realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
6260 sysmp table times wait3 wait4"
6262 #Â Darwin has sbrk, but it is deprecated and that produces build-time warnings
6263 #Â so do not check for it.
6266 *) checkfuncs
="$checkfuncs sbrk"
6269 # These are neither executed nor required, but they help keep
6270 # autoheader happy without adding a bunch of text to acconfig.h.
6271 if test "x" = "y"; then
6272 for ac_func
in asprintf atexit \
6273 basename bcmp bcopy bsearch bzero \
6274 calloc canonicalize_file_name
clock \
6277 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
6279 memchr memcmp memcpy memmem memmove memset mkstemps \
6281 pipe2 posix_spawn posix_spawnp psignal \
6282 pstat_getdynamic pstat_getstatic putenv \
6283 random realpath rename rindex \
6284 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
6285 stpcpy stpncpy strcasecmp strchr strdup \
6286 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
6287 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
6288 table
times tmpnam \
6289 vasprintf vfprintf vprintf vsprintf \
6292 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6293 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6294 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6295 cat >>confdefs.h
<<_ACEOF
6296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6302 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6303 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6304 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
6310 cat >>confdefs.h
<<_ACEOF
6311 #define HAVE_DECL_BASENAME $ac_have_decl
6313 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6314 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
6320 cat >>confdefs.h
<<_ACEOF
6321 #define HAVE_DECL_FFS $ac_have_decl
6323 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6324 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DECL_ASPRINTF $ac_have_decl
6333 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6334 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
6340 cat >>confdefs.h
<<_ACEOF
6341 #define HAVE_DECL_VASPRINTF $ac_have_decl
6343 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6344 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
6350 cat >>confdefs.h
<<_ACEOF
6351 #define HAVE_DECL_SNPRINTF $ac_have_decl
6353 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6354 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
6360 cat >>confdefs.h
<<_ACEOF
6361 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6363 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6364 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
6370 cat >>confdefs.h
<<_ACEOF
6371 #define HAVE_DECL_STRTOL $ac_have_decl
6373 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6374 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
6380 cat >>confdefs.h
<<_ACEOF
6381 #define HAVE_DECL_STRTOUL $ac_have_decl
6383 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6384 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
6390 cat >>confdefs.h
<<_ACEOF
6391 #define HAVE_DECL_STRTOLL $ac_have_decl
6393 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6394 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
6400 cat >>confdefs.h
<<_ACEOF
6401 #define HAVE_DECL_STRTOULL $ac_have_decl
6403 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
6404 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
6410 cat >>confdefs.h
<<_ACEOF
6411 #define HAVE_DECL_STRNLEN $ac_have_decl
6415 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
6418 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
6421 $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
6425 # For each of these functions, if the host does not provide the
6426 # function we want to put FN.o in LIBOBJS, and if the host does
6427 # provide the function, we want to define HAVE_FN in config.h.
6431 if test -n "${with_target_subdir}"; then
6433 # We are being configured as a target library. AC_REPLACE_FUNCS
6434 # may not work correctly, because the compiler may not be able to
6435 # link executables. Note that we may still be being configured
6438 # If we are being configured for newlib, we know which functions
6439 # newlib provide and which ones we will be expected to provide.
6441 if test "x${with_newlib}" = "xyes"; then
6442 case " $LIBOBJS " in
6443 *" asprintf.$ac_objext "* ) ;;
6444 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6448 case " $LIBOBJS " in
6449 *" basename.$ac_objext "* ) ;;
6450 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6454 case " $LIBOBJS " in
6455 *" insque.$ac_objext "* ) ;;
6456 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6460 case " $LIBOBJS " in
6461 *" random.$ac_objext "* ) ;;
6462 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6466 case " $LIBOBJS " in
6467 *" strdup.$ac_objext "* ) ;;
6468 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
6472 case " $LIBOBJS " in
6473 *" vasprintf.$ac_objext "* ) ;;
6474 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6481 asprintf |
basename | insque | random | strdup | vasprintf
)
6484 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6485 cat >>confdefs.h
<<_ACEOF
6493 # newlib doesnt provide any of the variables in $vars, so we
6494 # dont have to check them here.
6496 # Of the functions in $checkfuncs, newlib only has strerror.
6497 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6504 # If we are being configured for Mingw, we know which functions
6505 # Mingw provides and which ones we will be expected to provide.
6509 case " $LIBOBJS " in
6510 *" asprintf.$ac_objext "* ) ;;
6511 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6515 case " $LIBOBJS " in
6516 *" basename.$ac_objext "* ) ;;
6517 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6521 case " $LIBOBJS " in
6522 *" bcmp.$ac_objext "* ) ;;
6523 *) LIBOBJS
="$LIBOBJS bcmp.$ac_objext"
6527 case " $LIBOBJS " in
6528 *" bcopy.$ac_objext "* ) ;;
6529 *) LIBOBJS
="$LIBOBJS bcopy.$ac_objext"
6533 case " $LIBOBJS " in
6534 *" bzero.$ac_objext "* ) ;;
6535 *) LIBOBJS
="$LIBOBJS bzero.$ac_objext"
6539 case " $LIBOBJS " in
6540 *" clock.$ac_objext "* ) ;;
6541 *) LIBOBJS
="$LIBOBJS clock.$ac_objext"
6545 case " $LIBOBJS " in
6546 *" ffs.$ac_objext "* ) ;;
6547 *) LIBOBJS
="$LIBOBJS ffs.$ac_objext"
6551 case " $LIBOBJS " in
6552 *" getpagesize.$ac_objext "* ) ;;
6553 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext"
6557 case " $LIBOBJS " in
6558 *" index.$ac_objext "* ) ;;
6559 *) LIBOBJS
="$LIBOBJS index.$ac_objext"
6563 case " $LIBOBJS " in
6564 *" insque.$ac_objext "* ) ;;
6565 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6569 case " $LIBOBJS " in
6570 *" mempcpy.$ac_objext "* ) ;;
6571 *) LIBOBJS
="$LIBOBJS mempcpy.$ac_objext"
6575 case " $LIBOBJS " in
6576 *" mkstemps.$ac_objext "* ) ;;
6577 *) LIBOBJS
="$LIBOBJS mkstemps.$ac_objext"
6581 case " $LIBOBJS " in
6582 *" random.$ac_objext "* ) ;;
6583 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6587 case " $LIBOBJS " in
6588 *" rindex.$ac_objext "* ) ;;
6589 *) LIBOBJS
="$LIBOBJS rindex.$ac_objext"
6593 case " $LIBOBJS " in
6594 *" sigsetmask.$ac_objext "* ) ;;
6595 *) LIBOBJS
="$LIBOBJS sigsetmask.$ac_objext"
6599 case " $LIBOBJS " in
6600 *" stpcpy.$ac_objext "* ) ;;
6601 *) LIBOBJS
="$LIBOBJS stpcpy.$ac_objext"
6605 case " $LIBOBJS " in
6606 *" stpncpy.$ac_objext "* ) ;;
6607 *) LIBOBJS
="$LIBOBJS stpncpy.$ac_objext"
6611 case " $LIBOBJS " in
6612 *" strndup.$ac_objext "* ) ;;
6613 *) LIBOBJS
="$LIBOBJS strndup.$ac_objext"
6617 case " $LIBOBJS " in
6618 *" strnlen.$ac_objext "* ) ;;
6619 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
6623 case " $LIBOBJS " in
6624 *" strverscmp.$ac_objext "* ) ;;
6625 *) LIBOBJS
="$LIBOBJS strverscmp.$ac_objext"
6629 case " $LIBOBJS " in
6630 *" vasprintf.$ac_objext "* ) ;;
6631 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6635 case " $LIBOBJS " in
6636 *" waitpid.$ac_objext "* ) ;;
6637 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext"
6644 asprintf |
basename | bcmp | bcopy | bzero |
clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid
)
6647 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >>confdefs.h
<<_ACEOF
6656 # Mingw doesnt provide any of the variables in $vars, so we
6657 # dont have to check them here.
6659 # Of the functions in $checkfuncs, Mingw only has strerror.
6660 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6667 case " $LIBOBJS " in
6668 *" vasprintf.$ac_objext "* ) ;;
6669 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6673 case " $LIBOBJS " in
6674 *" vsnprintf.$ac_objext "* ) ;;
6675 *) LIBOBJS
="$LIBOBJS vsnprintf.$ac_objext"
6679 case " $LIBOBJS " in
6680 *" snprintf.$ac_objext "* ) ;;
6681 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6685 case " $LIBOBJS " in
6686 *" asprintf.$ac_objext "* ) ;;
6687 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext"
6692 for f
in atexit
basename bcmp bcopy bsearch bzero calloc
clock ffs \
6693 getcwd getpagesize getrusage gettimeofday \
6694 index insque memchr memcmp memcpy memmove memset psignal \
6695 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6696 strchr strdup strerror strncasecmp strrchr strstr strtod \
6697 strtol strtoul sysconf
times tmpnam vfprintf vprintf \
6700 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6701 cat >>confdefs.h
<<_ACEOF
6715 # Not a target library, so we set things up to run the test suite.
6724 *-*-cygwin* |
*-*-mingw*)
6725 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
6727 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
6732 if test -z "${setobjs}"; then
6736 # Handle VxWorks configuration specially, since on VxWorks the
6737 # libraries are actually on the target board, not in the file
6739 case " $LIBOBJS " in
6740 *" basename.$ac_objext "* ) ;;
6741 *) LIBOBJS
="$LIBOBJS basename.$ac_objext"
6745 case " $LIBOBJS " in
6746 *" getpagesize.$ac_objext "* ) ;;
6747 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext"
6751 case " $LIBOBJS " in
6752 *" insque.$ac_objext "* ) ;;
6753 *) LIBOBJS
="$LIBOBJS insque.$ac_objext"
6757 case " $LIBOBJS " in
6758 *" random.$ac_objext "* ) ;;
6759 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
6763 case " $LIBOBJS " in
6764 *" strcasecmp.$ac_objext "* ) ;;
6765 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext"
6769 case " $LIBOBJS " in
6770 *" strncasecmp.$ac_objext "* ) ;;
6771 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext"
6775 case " $LIBOBJS " in
6776 *" strdup.$ac_objext "* ) ;;
6777 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext"
6781 case " $LIBOBJS " in
6782 *" vfork.$ac_objext "* ) ;;
6783 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext"
6787 case " $LIBOBJS " in
6788 *" waitpid.$ac_objext "* ) ;;
6789 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext"
6793 case " $LIBOBJS " in
6794 *" vasprintf.$ac_objext "* ) ;;
6795 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext"
6801 basename | getpagesize | insque | random | strcasecmp
)
6803 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6806 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6807 cat >>confdefs.h
<<_ACEOF
6815 # VxWorks doesn't provide any of the variables in $vars, so we
6816 # don't have to check them here.
6818 # Of the functions in $checkfuncs, VxWorks only has strerror.
6819 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
6828 if test -z "${setobjs}"; then
6833 # On android, getpagesize is defined in unistd.h as a static inline
6834 # function, which AC_CHECK_FUNCS does not handle properly.
6835 ac_cv_func_getpagesize
=yes
6839 # Replace system snprintf and vsnprintf with libiberty implementations.
6840 case " $LIBOBJS " in
6841 *" snprintf.$ac_objext "* ) ;;
6842 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
6846 case " $LIBOBJS " in
6847 *" vsnprintf.$ac_objext "* ) ;;
6848 *) LIBOBJS
="$LIBOBJS vsnprintf.$ac_objext"
6855 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6856 # macros, so the test below won't find them.
6857 libiberty_cv_var_sys_nerr
=yes
6858 libiberty_cv_var_sys_errlist
=yes
6862 # vfork and fork are stubs.
6863 ac_cv_func_vfork_works
=no
6867 # Under some versions of uwin, vfork is notoriously buggy and the test
6868 # can hang configure; on other versions, vfork exists just as a stub.
6869 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6870 ac_cv_func_vfork_works
=no
6871 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6872 # macros (actually, these are imported from a DLL, but the end effect
6873 # is the same), so the test below won't find them.
6874 libiberty_cv_var_sys_nerr
=yes
6875 libiberty_cv_var_sys_errlist
=yes
6879 # Under VMS, vfork works very different than on Unix. The standard test
6880 # won't work, and it isn't easily adaptable. It makes more sense to
6882 ac_cv_func_vfork_works
=yes
6887 # We haven't set the list of objects yet. Use the standard autoconf
6888 # tests. This will only work if the compiler works.
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6890 $as_echo_n "checking for library containing strerror... " >&6; }
6891 if ${ac_cv_search_strerror+:} false
; then :
6892 $as_echo_n "(cached) " >&6
6894 ac_func_search_save_LIBS
=$LIBS
6895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6898 /* Override any GCC internal prototype to avoid an error.
6899 Use char because int might match the return type of a GCC
6900 builtin and then its argument prototype would still apply. */
6913 for ac_lib
in '' cposix
; do
6914 if test -z "$ac_lib"; then
6915 ac_res
="none required"
6918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6920 if test x
$gcc_no_link = xyes
; then
6921 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6923 if ac_fn_c_try_link
"$LINENO"; then :
6924 ac_cv_search_strerror
=$ac_res
6926 rm -f core conftest.err conftest.
$ac_objext \
6928 if ${ac_cv_search_strerror+:} false
; then :
6932 if ${ac_cv_search_strerror+:} false
; then :
6935 ac_cv_search_strerror
=no
6938 LIBS
=$ac_func_search_save_LIBS
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6941 $as_echo "$ac_cv_search_strerror" >&6; }
6942 ac_res
=$ac_cv_search_strerror
6943 if test "$ac_res" != no
; then :
6944 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6948 for ac_func
in $funcs
6950 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6952 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6953 cat >>confdefs.h
<<_ACEOF
6954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6958 case " $LIBOBJS " in
6959 *" $ac_func.$ac_objext "* ) ;;
6960 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
6968 $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
6969 if ${ac_cv_os_cray+:} false
; then :
6970 $as_echo_n "(cached) " >&6
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #if defined(CRAY) && ! defined(CRAY2)
6981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6982 $EGREP "webecray" >/dev
/null
2>&1; then :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6991 $as_echo "$ac_cv_os_cray" >&6; }
6992 if test $ac_cv_os_cray = yes; then
6993 for ac_func
in _getb67 GETB67 getb67
; do
6994 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6995 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6996 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6998 cat >>confdefs.h
<<_ACEOF
6999 #define CRAY_STACKSEG_END $ac_func
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7008 $as_echo_n "checking stack direction for C alloca... " >&6; }
7009 if ${ac_cv_c_stack_direction+:} false
; then :
7010 $as_echo_n "(cached) " >&6
7012 if test "$cross_compiling" = yes; then :
7013 ac_cv_c_stack_direction
=0
7015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7020 find_stack_direction (void)
7022 static char *addr = 0;
7027 return find_stack_direction ();
7030 return (&dummy > addr) ? 1 : -1;
7036 exit (find_stack_direction() < 0);
7039 if ac_fn_c_try_run
"$LINENO"; then :
7040 ac_cv_c_stack_direction
=1
7042 ac_cv_c_stack_direction
=-1
7044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7050 $as_echo "$ac_cv_c_stack_direction" >&6; }
7052 cat >>confdefs.h
<<_ACEOF
7053 #define STACK_DIRECTION $ac_cv_c_stack_direction
7057 for ac_header
in vfork.h
7059 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
7060 if test "x$ac_cv_header_vfork_h" = xyes
; then :
7061 cat >>confdefs.h
<<_ACEOF
7062 #define HAVE_VFORK_H 1
7068 for ac_func
in fork vfork
7070 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7072 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7073 cat >>confdefs.h
<<_ACEOF
7074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7080 if test "x$ac_cv_func_fork" = xyes
; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7082 $as_echo_n "checking for working fork... " >&6; }
7083 if ${ac_cv_func_fork_works+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 if test "$cross_compiling" = yes; then :
7087 ac_cv_func_fork_works
=cross
7089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 $ac_includes_default
7096 /* By Ruediger Kuhlmann. */
7103 if ac_fn_c_try_run
"$LINENO"; then :
7104 ac_cv_func_fork_works
=yes
7106 ac_cv_func_fork_works
=no
7108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7114 $as_echo "$ac_cv_func_fork_works" >&6; }
7117 ac_cv_func_fork_works
=$ac_cv_func_fork
7119 if test "x$ac_cv_func_fork_works" = xcross
; then
7121 *-*-amigaos* |
*-*-msdosdjgpp*)
7122 # Override, as these systems have only a dummy fork() stub
7123 ac_cv_func_fork_works
=no
7126 ac_cv_func_fork_works
=yes
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7130 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7132 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7133 if test "x$ac_cv_func_vfork" = xyes
; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7135 $as_echo_n "checking for working vfork... " >&6; }
7136 if ${ac_cv_func_vfork_works+:} false
; then :
7137 $as_echo_n "(cached) " >&6
7139 if test "$cross_compiling" = yes; then :
7140 ac_cv_func_vfork_works
=cross
7142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 /* Thanks to Paul Eggert for this test. */
7145 $ac_includes_default
7146 #include <sys/wait.h>
7150 /* On some sparc systems, changes by the child to local and incoming
7151 argument registers are propagated back to the parent. The compiler
7152 is told about this with #include <vfork.h>, but some compilers
7153 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7154 static variable whose address is put into a register that is
7155 clobbered by the vfork. */
7158 sparc_address_test (int arg)
7160 sparc_address_test (arg) int arg;
7181 pid_t parent = getpid ();
7184 sparc_address_test (0);
7189 /* Here is another test for sparc vfork register problems. This
7190 test uses lots of local variables, at least as many local
7191 variables as main has allocated so far including compiler
7192 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7193 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7194 reuse the register of parent for one of the local variables,
7195 since it will think that parent can't possibly be used any more
7196 in this routine. Assigning to the local variable will thus
7197 munge parent in the parent process. */
7199 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7200 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7201 /* Convince the compiler that p..p7 are live; otherwise, it might
7202 use the same hardware register for all 8 local variables. */
7203 if (p != p1 || p != p2 || p != p3 || p != p4
7204 || p != p5 || p != p6 || p != p7)
7207 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7208 from child file descriptors. If the child closes a descriptor
7209 before it execs or exits, this munges the parent's descriptor
7210 as well. Test for this by closing stdout in the child. */
7211 _exit(close(fileno(stdout)) != 0);
7216 while (wait(&status) != child)
7219 /* Was there some problem with vforking? */
7222 /* Did the child fail? (This shouldn't happen.) */
7225 /* Did the vfork/compiler bug occur? */
7226 || parent != getpid()
7228 /* Did the file descriptor bug occur? */
7229 || fstat(fileno(stdout), &st) != 0
7234 if ac_fn_c_try_run
"$LINENO"; then :
7235 ac_cv_func_vfork_works
=yes
7237 ac_cv_func_vfork_works
=no
7239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7245 $as_echo "$ac_cv_func_vfork_works" >&6; }
7248 if test "x$ac_cv_func_fork_works" = xcross
; then
7249 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7251 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7254 if test "x$ac_cv_func_vfork_works" = xyes
; then
7256 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7260 $as_echo "#define vfork fork" >>confdefs.h
7263 if test "x$ac_cv_func_fork_works" = xyes
; then
7265 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7269 if test $ac_cv_func_vfork_works = no
; then
7270 case " $LIBOBJS " in
7271 *" vfork.$ac_objext "* ) ;;
7272 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext"
7277 # We only need _doprnt if we might use it to implement v*printf.
7278 if test $ac_cv_func_vprintf != yes \
7279 ||
test $ac_cv_func_vfprintf != yes \
7280 ||
test $ac_cv_func_vsprintf != yes; then
7281 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7282 if test "x$ac_cv_func__doprnt" = xyes
; then :
7283 $as_echo "#define HAVE__DOPRNT 1" >>confdefs.h
7286 case " $LIBOBJS " in
7287 *" _doprnt.$ac_objext "* ) ;;
7288 *) LIBOBJS
="$LIBOBJS _doprnt.$ac_objext"
7296 for ac_func
in _doprnt
7298 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7299 if test "x$ac_cv_func__doprnt" = xyes
; then :
7300 cat >>confdefs.h
<<_ACEOF
7301 #define HAVE__DOPRNT 1
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
7311 $as_echo_n "checking for $v... " >&6; }
7312 if eval \
${libiberty_cv_var_$v+:} false
; then :
7313 $as_echo_n "(cached) " >&6
7315 if test x
$gcc_no_link = xyes
; then
7316 as_fn_error $?
"Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7324 if ($v [0]) return 1;
7329 if ac_fn_c_try_link
"$LINENO"; then :
7330 eval "libiberty_cv_var_$v=yes"
7332 eval "libiberty_cv_var_$v=no"
7334 rm -f core conftest.err conftest.
$ac_objext \
7335 conftest
$ac_exeext conftest.
$ac_ext
7338 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7341 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7342 cat >>confdefs.h
<<_ACEOF
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7352 # special check for _system_configuration because AIX <4.3.2 do not
7353 # contain the `physmem' member.
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
7355 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
7356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 #include <sys/systemcfg.h>
7362 double x = _system_configuration.physmem;
7367 if ac_fn_c_try_compile
"$LINENO"; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7369 $as_echo "yes" >&6; }
7371 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7379 for ac_func
in $checkfuncs
7381 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7383 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7384 cat >>confdefs.h
<<_ACEOF
7385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7391 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7392 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7393 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
7399 cat >>confdefs.h
<<_ACEOF
7400 #define HAVE_DECL_BASENAME $ac_have_decl
7402 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7403 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
7409 cat >>confdefs.h
<<_ACEOF
7410 #define HAVE_DECL_FFS $ac_have_decl
7412 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7413 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
7419 cat >>confdefs.h
<<_ACEOF
7420 #define HAVE_DECL_ASPRINTF $ac_have_decl
7422 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7423 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
7429 cat >>confdefs.h
<<_ACEOF
7430 #define HAVE_DECL_VASPRINTF $ac_have_decl
7432 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7433 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
7439 cat >>confdefs.h
<<_ACEOF
7440 #define HAVE_DECL_SNPRINTF $ac_have_decl
7442 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7443 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
7449 cat >>confdefs.h
<<_ACEOF
7450 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7453 ac_fn_c_check_decl
"$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
7454 if test "x$ac_cv_have_decl_calloc" = xyes
; then :
7460 cat >>confdefs.h
<<_ACEOF
7461 #define HAVE_DECL_CALLOC $ac_have_decl
7463 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
7464 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
7470 cat >>confdefs.h
<<_ACEOF
7471 #define HAVE_DECL_GETENV $ac_have_decl
7473 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
7474 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
7480 cat >>confdefs.h
<<_ACEOF
7481 #define HAVE_DECL_GETOPT $ac_have_decl
7483 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
7484 if test "x$ac_cv_have_decl_malloc" = xyes
; then :
7490 cat >>confdefs.h
<<_ACEOF
7491 #define HAVE_DECL_MALLOC $ac_have_decl
7493 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
7494 if test "x$ac_cv_have_decl_realloc" = xyes
; then :
7500 cat >>confdefs.h
<<_ACEOF
7501 #define HAVE_DECL_REALLOC $ac_have_decl
7505 *-*-darwin*) ;; # Darwin's sbrk implementation is deprecated.
7506 *) ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
7507 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
7513 cat >>confdefs.h
<<_ACEOF
7514 #define HAVE_DECL_SBRK $ac_have_decl
7518 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7519 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
7525 cat >>confdefs.h
<<_ACEOF
7526 #define HAVE_DECL_STRTOL $ac_have_decl
7528 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7529 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
7535 cat >>confdefs.h
<<_ACEOF
7536 #define HAVE_DECL_STRTOUL $ac_have_decl
7538 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7539 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
7545 cat >>confdefs.h
<<_ACEOF
7546 #define HAVE_DECL_STRTOLL $ac_have_decl
7548 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7549 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
7555 cat >>confdefs.h
<<_ACEOF
7556 #define HAVE_DECL_STRTOULL $ac_have_decl
7559 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7560 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
7566 cat >>confdefs.h
<<_ACEOF
7567 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7570 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
7571 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
7577 cat >>confdefs.h
<<_ACEOF
7578 #define HAVE_DECL_STRNLEN $ac_have_decl
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
7582 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
7583 if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false
; then :
7584 $as_echo_n "(cached) " >&6
7586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7589 #include "confdefs.h"
7591 #ifdef HAVE_STRING_H
7594 #ifdef HAVE_STRINGS_H
7595 #include <strings.h>
7598 #ifdef HAVE_STDLIB_H
7601 #ifdef HAVE_UNISTD_H
7607 char *(*pfn) = (char *(*)) canonicalize_file_name
7612 if ac_fn_c_try_compile
"$LINENO"; then :
7613 libiberty_cv_decl_needed_canonicalize_file_name
=no
7615 libiberty_cv_decl_needed_canonicalize_file_name
=yes
7617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7621 $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
7622 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7624 $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
7630 # Figure out which version of pexecute to use.
7632 *-*-mingw* |
*-*-winnt*) pexecute
=pex-win32
;;
7633 *-*-msdosdjgpp*) pexecute
=pex-djgpp
;;
7634 *-*-msdos*) pexecute
=pex-msdos
;;
7635 *) pexecute
=pex-unix
;;
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 HW acceleration support" >&5
7640 $as_echo_n "checking for SHA1 HW acceleration support... " >&6; }
7641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 #include <x86intrin.h>
7647 __attribute__((__target__ ("sse4.1,sha")))
7648 void foo (__m128i *buf, unsigned int e, __m128i msg0, __m128i msg1)
7650 __m128i abcd = _mm_loadu_si128 ((const __m128i *) buf);
7651 __m128i e0 = _mm_set_epi32 (e, 0, 0, 0);
7652 abcd = _mm_shuffle_epi32 (abcd, 0x1b);
7653 const __m128i shuf_mask = _mm_set_epi64x (0x0001020304050607ULL, 0x08090a0b0c0d0e0fULL);
7654 abcd = _mm_shuffle_epi8 (abcd, shuf_mask);
7655 e0 = _mm_sha1nexte_epu32 (e0, msg1);
7656 abcd = _mm_sha1rnds4_epu32 (abcd, e0, 0);
7657 msg0 = _mm_sha1msg1_epu32 (msg0, msg1);
7658 msg0 = _mm_sha1msg2_epu32 (msg0, msg1);
7659 msg0 = _mm_xor_si128 (msg0, msg1);
7660 e0 = _mm_add_epi32 (e0, msg0);
7662 _mm_storeu_si128 (buf, abcd);
7663 e = _mm_extract_epi32 (e0, 3);
7668 unsigned int eax, ebx, ecx, edx;
7670 (void) __get_cpuid_count;
7671 if (__get_cpuid_count (7, 0, &eax, &ebx, &ecx, &edx)
7672 && (ebx & bit_SHA) != 0
7673 && __get_cpuid (1, &eax, &ebx, &ecx, &edx)
7674 && (ecx & bit_SSE4_1) != 0)
7687 if ac_fn_c_try_compile
"$LINENO"; then :
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86 SHA1" >&5
7689 $as_echo "x86 SHA1" >&6; }
7691 $as_echo "#define HAVE_X86_SHA1_HW_SUPPORT 1" >>confdefs.h
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7702 for ac_header
in $ac_header_list
7704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7706 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7707 cat >>confdefs.h
<<_ACEOF
7708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7720 if test x
$gcc_no_link = xyes
; then
7721 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7722 ac_cv_func_mmap_fixed_mapped
=no
7725 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno
; then
7726 save_ASAN_OPTIONS
="$ASAN_OPTIONS"
7727 ASAN_OPTIONS
=detect_leaks
=0
7730 for ac_func
in getpagesize
7732 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7733 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7734 cat >>confdefs.h
<<_ACEOF
7735 #define HAVE_GETPAGESIZE 1
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7742 $as_echo_n "checking for working mmap... " >&6; }
7743 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7744 $as_echo_n "(cached) " >&6
7746 if test "$cross_compiling" = yes; then :
7747 ac_cv_func_mmap_fixed_mapped
=no
7749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 /* malloc might have been renamed as rpl_malloc. */
7755 /* Thanks to Mike Haertel and Jim Avera for this test.
7756 Here is a matrix of mmap possibilities:
7757 mmap private not fixed
7758 mmap private fixed at somewhere currently unmapped
7759 mmap private fixed at somewhere already mapped
7760 mmap shared not fixed
7761 mmap shared fixed at somewhere currently unmapped
7762 mmap shared fixed at somewhere already mapped
7763 For private mappings, we should verify that changes cannot be read()
7764 back from the file, nor mmap's back from the file at a different
7765 address. (There have been systems where private was not correctly
7766 implemented like the infamous i386 svr4.0, and systems where the
7767 VM page cache was not coherent with the file system buffer cache
7768 like early versions of FreeBSD and possibly contemporary NetBSD.)
7769 For shared mappings, we should conversely verify that changes get
7770 propagated back to all the places they're supposed to be.
7772 Grep wants private fixed already mapped.
7773 The main things grep needs to know about mmap are:
7774 * does it exist and is it safe to write into the mmap'd area
7775 * how to use it (BSD variants) */
7778 #include <sys/mman.h>
7780 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7784 /* This mess was copied from the GNU getpagesize.h. */
7785 #ifndef HAVE_GETPAGESIZE
7786 # ifdef _SC_PAGESIZE
7787 # define getpagesize() sysconf(_SC_PAGESIZE)
7788 # else /* no _SC_PAGESIZE */
7789 # ifdef HAVE_SYS_PARAM_H
7790 # include <sys/param.h>
7791 # ifdef EXEC_PAGESIZE
7792 # define getpagesize() EXEC_PAGESIZE
7793 # else /* no EXEC_PAGESIZE */
7795 # define getpagesize() NBPG * CLSIZE
7798 # endif /* no CLSIZE */
7799 # else /* no NBPG */
7801 # define getpagesize() NBPC
7802 # else /* no NBPC */
7804 # define getpagesize() PAGESIZE
7805 # endif /* PAGESIZE */
7806 # endif /* no NBPC */
7807 # endif /* no NBPG */
7808 # endif /* no EXEC_PAGESIZE */
7809 # else /* no HAVE_SYS_PARAM_H */
7810 # define getpagesize() 8192 /* punt totally */
7811 # endif /* no HAVE_SYS_PARAM_H */
7812 # endif /* no _SC_PAGESIZE */
7814 #endif /* no HAVE_GETPAGESIZE */
7819 char *data, *data2, *data3;
7824 pagesize = getpagesize ();
7826 /* First, make a file with some known garbage in it. */
7827 data = (char *) malloc (pagesize);
7830 for (i = 0; i < pagesize; ++i)
7831 *(data + i) = rand ();
7833 fd = creat ("conftest.mmap", 0600);
7836 if (write (fd, data, pagesize) != pagesize)
7840 /* Next, check that the tail of a page is zero-filled. File must have
7841 non-zero length, otherwise we risk SIGBUS for entire page. */
7842 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7846 if (write (fd2, cdata2, 1) != 1)
7848 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7849 if (data2 == MAP_FAILED)
7851 for (i = 0; i < pagesize; ++i)
7855 if (munmap (data2, pagesize))
7858 /* Next, try to mmap the file at a fixed address which already has
7859 something else allocated at it. If we can, also make sure that
7860 we see the same garbage. */
7861 fd = open ("conftest.mmap", O_RDWR);
7864 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7865 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7867 for (i = 0; i < pagesize; ++i)
7868 if (*(data + i) != *(data2 + i))
7871 /* Finally, make sure that changes to the mapped area do not
7872 percolate back to the file as seen by read(). (This is a bug on
7873 some variants of i386 svr4.0.) */
7874 for (i = 0; i < pagesize; ++i)
7875 *(data2 + i) = *(data2 + i) + 1;
7876 data3 = (char *) malloc (pagesize);
7879 if (read (fd, data3, pagesize) != pagesize)
7881 for (i = 0; i < pagesize; ++i)
7882 if (*(data + i) != *(data3 + i))
7888 if ac_fn_c_try_run
"$LINENO"; then :
7889 ac_cv_func_mmap_fixed_mapped
=yes
7891 ac_cv_func_mmap_fixed_mapped
=no
7893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7899 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7900 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7902 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7905 rm -f conftest.mmap conftest.txt
7907 ASAN_OPTIONS
="$save_ASAN_OPTIONS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
7912 $as_echo_n "checking for working strncmp... " >&6; }
7913 if ${ac_cv_func_strncmp_works+:} false
; then :
7914 $as_echo_n "(cached) " >&6
7916 if test "$cross_compiling" = yes; then :
7917 ac_cv_func_strncmp_works
=yes
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7922 /* Test by Jim Wilson and Kaveh Ghazi.
7923 Check whether strncmp reads past the end of its string parameters. */
7926 #include <sys/types.h>
7932 #ifdef HAVE_SYS_MMAN_H
7933 #include <sys/mman.h>
7937 #ifdef MAP_ANONYMOUS
7938 #define MAP_ANON MAP_ANONYMOUS
7940 #define MAP_ANON MAP_FILE
7951 #define MAP_LEN 0x10000
7956 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7960 dev_zero = open ("/dev/zero", O_RDONLY);
7964 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7965 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
7966 if (p == (char *)-1)
7967 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7968 MAP_ANON|MAP_PRIVATE, -1, 0);
7969 if (p == (char *)-1)
7973 char *string = "__si_type_info";
7974 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7975 char *r = (char *) p + 0xe;
7981 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7986 if ac_fn_c_try_run
"$LINENO"; then :
7987 ac_cv_func_strncmp_works
=yes
7989 ac_cv_func_strncmp_works
=no
7991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7995 rm -f core core.
* *.core
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
7998 $as_echo "$ac_cv_func_strncmp_works" >&6; }
7999 if test $ac_cv_func_strncmp_works = no
; then
8000 case " $LIBOBJS " in
8001 *" strncmp.$ac_objext "* ) ;;
8002 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext"
8009 # Install a library built with a cross compiler in $(tooldir) rather
8011 if test -z "${with_cross_host}"; then
8014 INSTALL_DEST
=tooldir
8020 for l
in x
$LIBOBJS; do
8032 # We need multilib support, but only if configuring for the target.
8033 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8035 ac_config_commands
="$ac_config_commands default"
8037 cat >confcache
<<\_ACEOF
8038 # This file is a shell script that caches the results of configure
8039 # tests run on this system so they can be shared between configure
8040 # scripts and configure runs, see configure's option --config-cache.
8041 # It is not useful on other systems. If it contains results you don't
8042 # want to keep, you may remove or edit it.
8044 # config.status only pays attention to the cache file if you give it
8045 # the --recheck option to rerun configure.
8047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8053 # The following way of writing the cache mishandles newlines in values,
8054 # but we know of no workaround that is simple, portable, and efficient.
8055 # So, we kill variables containing newlines.
8056 # Ultrix sh set writes to stderr and can't be redirected directly,
8057 # and sets the high bit in the cache file unless we assign to the vars.
8059 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8060 eval ac_val
=\$
$ac_var
8064 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8068 _ | IFS | as_nl
) ;; #(
8069 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8070 *) { eval $ac_var=; unset $ac_var;} ;;
8076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8077 *${as_nl}ac_space
=\
*)
8078 # `set' does not quote correctly, so add quotes: double-quote
8079 # substitution turns \\\\ into \\, and sed turns \\ into \.
8082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8085 # `set' quotes correctly as required by POSIX, so do not add quotes.
8086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8099 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8100 if test -w "$cache_file"; then
8101 if test "x$cache_file" != "x/dev/null"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8103 $as_echo "$as_me: updating cache $cache_file" >&6;}
8104 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8105 cat confcache
>"$cache_file"
8107 case $cache_file in #(
8109 mv -f confcache
"$cache_file"$$
&&
8110 mv -f "$cache_file"$$
"$cache_file" ;; #(
8112 mv -f confcache
"$cache_file" ;;
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8118 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8123 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8124 # Let make expand exec_prefix.
8125 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8127 DEFS
=-DHAVE_CONFIG_H
8132 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8133 # 1. Remove the extension, and $U if already installed.
8134 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8135 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8137 # will be set to the directory where LIBOBJS objects are built.
8138 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8139 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8143 LTLIBOBJS
=$ac_ltlibobjs
8148 : "${CONFIG_STATUS=./config.status}"
8150 ac_clean_files_save
=$ac_clean_files
8151 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8153 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8155 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8157 # Generated by $as_me.
8158 # Run this file to recreate the current configuration.
8159 # Compiler output produced by configure, useful for debugging
8160 # configure, is in config.log if it exists.
8166 SHELL=\${CONFIG_SHELL-$SHELL}
8169 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8170 ## -------------------- ##
8171 ## M4sh Initialization. ##
8172 ## -------------------- ##
8174 # Be more Bourne compatible
8175 DUALCASE
=1; export DUALCASE
# for MKS sh
8176 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8179 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8180 # is contrary to our usage. Disable this feature.
8181 alias -g '${1+"$@"}'='"$@"'
8182 setopt NO_GLOB_SUBST
8184 case `(set -o) 2>/dev/null` in #(
8196 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8197 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8200 # Prefer a ksh shell builtin over an external printf program on Solaris,
8201 # but without wasting forks for bash or zsh.
8202 if test -z "$BASH_VERSION$ZSH_VERSION" \
8203 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8204 as_echo='print
-r --'
8205 as_echo_n='print
-rn --'
8206 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8207 as_echo='printf %s
\n'
8208 as_echo_n='printf %s
'
8210 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8211 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8212 as_echo_n='/usr
/ucb
/echo -n'
8214 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8215 as_echo_n_body='eval
8219 expr "X$arg" : "X\\(.*\\)$as_nl";
8220 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8222 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8224 export as_echo_n_body
8225 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8228 as_echo='sh
-c $as_echo_body as_echo
'
8231 # The user is always right.
8232 if test "${PATH_SEPARATOR+set}" != set; then
8234 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8235 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8242 # We need space, tab and new line, in precisely that order. Quoting is
8243 # there to prevent editors from complaining about space-tab.
8244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8245 # splitting by setting IFS to empty value.)
8248 # Find who we are. Look in the path if we contain no directory separator.
8251 *[\\/]* ) as_myself=$0 ;;
8252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir=.
8257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8263 # We did not find ourselves, most probably we were run as `sh COMMAND'
8264 # in which case we are not to be found in the path.
8265 if test "x$as_myself" = x
; then
8268 if test ! -f "$as_myself"; then
8269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8273 # Unset variables that we do not need and which cause bugs (e.g. in
8274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8275 # suppresses any "Segmentation fault" message there. '((' could
8276 # trigger a bug in pdksh 5.2.14.
8277 for as_var
in BASH_ENV ENV MAIL MAILPATH
8278 do eval test x\
${$as_var+set} = xset \
8279 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8292 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8296 # ----------------------------------------
8297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8299 # script with STATUS, using 1 if that was 0.
8302 as_status
=$1; test $as_status -eq 0 && as_status
=1
8304 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8307 $as_echo "$as_me: error: $2" >&2
8308 as_fn_exit
$as_status
8312 # as_fn_set_status STATUS
8313 # -----------------------
8314 # Set $? to STATUS, without forking.
8318 } # as_fn_set_status
8322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8332 # Portably unset VAR.
8335 { eval $1=; unset $1;}
8337 as_unset
=as_fn_unset
8338 # as_fn_append VAR VALUE
8339 # ----------------------
8340 # Append the text in VALUE to the end of the definition contained in VAR. Take
8341 # advantage of any shell optimizations that allow amortized linear growth over
8342 # repeated appends, instead of the typical quadratic growth present in naive
8344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8345 eval 'as_fn_append ()
8356 # as_fn_arith ARG...
8357 # ------------------
8358 # Perform arithmetic evaluation on the ARGs, and store the result in the
8359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8360 # must be portable across $(()) and expr.
8361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8362 eval 'as_fn_arith ()
8369 as_val
=`expr "$@" || test $? -eq 1`
8374 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8375 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8381 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8382 as_basename
=basename
8387 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8393 as_me
=`$as_basename -- "$0" ||
8394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8395 X"$0" : 'X\(//\)$' \| \
8396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8398 sed '/^.*\/\([^/][^/]*\)\/*$/{
8412 # Avoid depending upon Character Ranges.
8413 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8414 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8415 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8416 as_cr_digits
='0123456789'
8417 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8419 ECHO_C
= ECHO_N
= ECHO_T
=
8420 case `echo -n x` in #(((((
8422 case `echo 'xy\c'` in
8423 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8425 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8432 rm -f conf$$ conf$$.exe conf$$.
file
8433 if test -d conf$$.dir
; then
8434 rm -f conf$$.dir
/conf$$.
file
8437 mkdir conf$$.dir
2>/dev
/null
8439 if (echo >conf$$.
file) 2>/dev
/null
; then
8440 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8442 # ... but there are two gotchas:
8443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8445 # In both cases, we have to default to `cp -pR'.
8446 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8448 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8456 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8457 rmdir conf$$.dir
2>/dev
/null
8462 # Create "$as_dir" as a directory, including parents if necessary.
8467 -*) as_dir
=.
/$as_dir;;
8469 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8473 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8474 *) as_qdir
=$as_dir;;
8476 as_dirs
="'$as_qdir' $as_dirs"
8477 as_dir
=`$as_dirname -- "$as_dir" ||
8478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8479 X"$as_dir" : 'X\(//\)[^/]' \| \
8480 X"$as_dir" : 'X\(//\)$' \| \
8481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8482 $as_echo X"$as_dir" |
8483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8500 test -d "$as_dir" && break
8502 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8503 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8507 if mkdir
-p .
2>/dev
/null
; then
8508 as_mkdir_p
='mkdir -p "$as_dir"'
8510 test -d .
/-p && rmdir .
/-p
8515 # as_fn_executable_p FILE
8516 # -----------------------
8517 # Test if FILE is an executable regular file.
8518 as_fn_executable_p
()
8520 test -f "$1" && test -x "$1"
8521 } # as_fn_executable_p
8523 as_executable_p
=as_fn_executable_p
8525 # Sed expression to map a string onto a valid CPP name.
8526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8528 # Sed expression to map a string onto a valid variable name.
8529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8533 ## ----------------------------------- ##
8534 ## Main body of $CONFIG_STATUS script. ##
8535 ## ----------------------------------- ##
8537 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8540 # Save the log message, to keep $0 and so on meaningful, and to
8541 # report actual input values of CONFIG_FILES etc. instead of their
8542 # values after options handling.
8544 This file was extended by $as_me, which was
8545 generated by GNU Autoconf 2.69. Invocation command line was
8547 CONFIG_FILES = $CONFIG_FILES
8548 CONFIG_HEADERS = $CONFIG_HEADERS
8549 CONFIG_LINKS = $CONFIG_LINKS
8550 CONFIG_COMMANDS = $CONFIG_COMMANDS
8553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8558 case $ac_config_files in *"
8559 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8562 case $ac_config_headers in *"
8563 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8568 # Files that config.status was made for.
8569 config_files="$ac_config_files"
8570 config_headers="$ac_config_headers"
8571 config_commands="$ac_config_commands"
8575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8577 \`$as_me' instantiates files and other configuration actions
8578 from templates according to the current configuration. Unless the files
8579 and actions are specified as TAGs, all are instantiated by default.
8581 Usage: $0 [OPTION]... [TAG]...
8583 -h, --help print this help, then exit
8584 -V, --version print version number and configuration settings, then exit
8585 --config print configuration, then exit
8586 -q, --quiet, --silent
8587 do not print progress messages
8588 -d, --debug don't remove temporary files
8589 --recheck update $as_me by reconfiguring in the same conditions
8590 --file=FILE[:TEMPLATE]
8591 instantiate the configuration file FILE
8592 --header=FILE[:TEMPLATE]
8593 instantiate the configuration header FILE
8595 Configuration files:
8598 Configuration headers:
8601 Configuration commands:
8604 Report bugs to the package provider."
8607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8611 configured by $0, generated by GNU Autoconf 2.69,
8612 with options \\"\$ac_cs_config\\"
8614 Copyright (C) 2012 Free Software Foundation, Inc.
8615 This config.status script is free software; the Free Software Foundation
8616 gives unlimited permission to copy, distribute and modify it."
8621 test -n "\$AWK" || AWK=awk
8624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8625 # The default lists apply if the user does not specify any file.
8631 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8632 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8636 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8648 # Handling of the options.
8649 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8651 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8652 $as_echo "$ac_cs_version"; exit ;;
8653 --config |
--confi |
--conf |
--con |
--co |
--c )
8654 $as_echo "$ac_cs_config"; exit ;;
8655 --debug |
--debu |
--deb |
--de |
--d |
-d )
8657 --file |
--fil |
--fi |
--f )
8660 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8661 '') as_fn_error $?
"missing file argument" ;;
8663 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8664 ac_need_defaults
=false
;;
8665 --header |
--heade |
--head |
--hea )
8668 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8670 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8671 ac_need_defaults
=false
;;
8673 # Conflict between --help and --header
8674 as_fn_error $?
"ambiguous option: \`$1'
8675 Try \`$0 --help' for more information.";;
8676 --help |
--hel |
-h )
8677 $as_echo "$ac_cs_usage"; exit ;;
8678 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8679 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8683 -*) as_fn_error $?
"unrecognized option: \`$1'
8684 Try \`$0 --help' for more information." ;;
8686 *) as_fn_append ac_config_targets
" $1"
8687 ac_need_defaults
=false
;;
8693 ac_configure_extra_args
=
8695 if $ac_cs_silent; then
8697 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8702 if \$ac_cs_recheck; then
8703 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8706 CONFIG_SHELL='$SHELL'
8712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8717 ## Running $as_me. ##
8723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8730 with_target_subdir=${with_target_subdir}
8731 with_multisubdir=${with_multisubdir}
8732 ac_configure_args="--enable-multilib ${ac_configure_args}"
8733 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8734 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8735 libiberty_topdir=${libiberty_topdir}
8740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8742 # Handling of arguments.
8743 for ac_config_target
in $ac_config_targets
8745 case $ac_config_target in
8746 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8747 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8748 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8749 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8751 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8756 # If the user did not use the arguments to specify the items to instantiate,
8757 # then the envvar interface is used. Set only those that are not.
8758 # We use the long form for the default assignment because of an extremely
8759 # bizarre bug on SunOS 4.1.3.
8760 if $ac_need_defaults; then
8761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8766 # Have a temporary directory for convenience. Make it in the build tree
8767 # simply because there is no reason against having it here, and in addition,
8768 # creating and moving files from /tmp can sometimes cause problems.
8769 # Hook for its removal unless debugging.
8770 # Note that there is a small window in which the directory will not be cleaned:
8771 # after its creation but before its name has been assigned to `$tmp'.
8775 trap 'exit_status=$?
8777 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8779 trap 'as_fn_exit 1' 1 2 13 15
8781 # Create a (secure) tmp directory for tmp files.
8784 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8788 tmp
=.
/conf$$
-$RANDOM
8789 (umask 077 && mkdir
"$tmp")
8790 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8793 # Set up the scripts for CONFIG_FILES section.
8794 # No need to generate them if there are no CONFIG_FILES.
8795 # This happens for instance with `./config.status config.h'.
8796 if test -n "$CONFIG_FILES"; then
8798 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
8800 ac_cs_awk_pipe_init
=
8801 ac_cs_awk_read_file
='
8802 while ((getline aline < (F[key])) > 0)
8805 ac_cs_awk_pipe_fini
=
8807 ac_cs_awk_getline
=false
8808 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
8809 ac_cs_awk_read_file
='
8811 print "cat " F[key] " &&"
8812 '$ac_cs_awk_pipe_init
8813 # The final `:' finishes the AND list.
8814 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
8816 ac_cr
=`echo X | tr X '\015'`
8817 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8818 # But we know of no other shell where ac_cr would be empty at this
8819 # point, so we can use a bashism as a fallback.
8820 if test "x$ac_cr" = x
; then
8821 eval ac_cr
=\$
\'\\r
\'
8823 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8830 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8833 # Create commands to substitute file output variables.
8835 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
8836 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
8837 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
8840 } >conf$
$files.sh
&&
8841 . .
/conf$
$files.sh ||
8842 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
8843 rm -f conf$
$files.sh
8846 echo "cat >conf$$subs.awk <<_ACEOF" &&
8847 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8850 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8851 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8853 for ac_last_try in false false false false false :; do
8854 . ./conf$$subs.sh ||
8855 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8857 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8858 if test $ac_delim_n = $ac_delim_num; then
8860 elif $ac_last_try; then
8861 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8863 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8869 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8873 s/^/S["/; s
/!.
*/"]=/
8883 s/\(.\{148\}\)..*/\1/
8885 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8890 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8897 s/\(.\{148\}\)..*/\1/
8899 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8903 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8908 ' <conf$$subs.awk | sed '
8913 ' >>$CONFIG_STATUS || ac_write_fail=1
8914 rm -f conf$$subs.awk
8915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8917 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8918 for (key in S) S_is_set[key] = 1
8920 \$ac_cs_awk_pipe_init
8924 nfields = split(line, field, "@
")
8926 len = length(field[1])
8927 for (i = 2; i < nfields; i++) {
8929 keylen = length(key)
8930 if (S_is_set[key]) {
8932 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8933 len += length(value) + length(field[++i])
8938 if (nfields == 3 && !substed) {
8940 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
8941 \$ac_cs_awk_read_file
8947 \$ac_cs_awk_pipe_fini
8950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8951 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8952 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8955 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8956 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8961 # trailing colons and then remove the whole line if VPATH becomes empty
8962 # (actually we leave an empty line to preserve line numbers).
8963 if test "x
$srcdir" = x.; then
8964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8983 fi # test -n "$CONFIG_FILES"
8985 # Set up the scripts for CONFIG_HEADERS section.
8986 # No need to generate them if there are no CONFIG_HEADERS.
8987 # This happens for instance with `./config.status Makefile'.
8988 if test -n "$CONFIG_HEADERS"; then
8989 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8993 # Transform confdefs.h into an awk script `defines.awk', embedded as
8994 # here-document in config.status, that substitutes the proper values into
8995 # config.h.in to produce config.h.
8997 # Create a delimiter string that does not exist in confdefs.h, to ease
8998 # handling of long lines.
9000 for ac_last_try in false false :; do
9001 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9002 if test -z "$ac_tt"; then
9004 elif $ac_last_try; then
9005 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9007 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9011 # For the awk script, D is an array of macro values keyed by name,
9012 # likewise P contains macro parameters if any. Preserve backslash
9013 # newline sequences.
9015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9017 s/.\{148\}/&'"$ac_delim"'/g
9020 s/^[ ]*#[ ]*define[ ][ ]*/ /
9027 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9029 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9034 D["\
1"]=" \
3\\\\\\n
"\\/p
9036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9041 s/.\{148\}/&'"$ac_delim"'/g
9046 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9049 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9051 ' <confdefs.h | sed '
9052 s/'"$ac_delim"'/"\\\
9053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9056 for (key in D) D_is_set[key] = 1
9059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9061 split(line, arg, " ")
9062 if (arg[1] == "#") {
9066 defundef
= substr
(arg
[1], 2)
9069 split(mac1
, mac2
, "(") #)
9071 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9072 if (D_is_set
[macro
]) {
9073 # Preserve the white space surrounding the "#".
9074 print prefix
"define", macro P
[macro
] D
[macro
]
9077 # Replace #undef with comments. This is necessary, for example,
9078 # in the case of _POSIX_SOURCE, which is predefined and required
9079 # on some systems where configure will not decide to define it.
9080 if (defundef
== "undef") {
9081 print
"/*", prefix defundef
, macro
, "*/"
9089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9090 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9091 fi # test -n "$CONFIG_HEADERS"
9094 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9099 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9101 case $ac_mode$ac_tag in
9103 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9104 :[FH
]-) ac_tag
=-:-;;
9105 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9122 -) ac_f
="$ac_tmp/stdin";;
9123 *) # Look for the file first in the build tree, then in the source tree
9124 # (if the path is not absolute). The absolute path cannot be DOS-style,
9125 # because $ac_f cannot contain `:'.
9129 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9131 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9133 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9134 as_fn_append ac_file_inputs
" '$ac_f'"
9137 # Let's still pretend it is `configure' which instantiates (i.e., don't
9138 # use $as_me), people would be surprised to read:
9139 # /* config.h. Generated by config.status. */
9140 configure_input
='Generated from '`
9141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9143 if test x
"$ac_file" != x-
; then
9144 configure_input
="$ac_file. $configure_input"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9146 $as_echo "$as_me: creating $ac_file" >&6;}
9148 # Neutralize special characters interpreted by sed in replacement strings.
9149 case $configure_input in #(
9150 *\
&* |
*\|
* |
*\\* )
9151 ac_sed_conf_input
=`$as_echo "$configure_input" |
9152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9153 *) ac_sed_conf_input
=$configure_input;;
9157 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9158 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9163 ac_dir
=`$as_dirname -- "$ac_file" ||
9164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9165 X"$ac_file" : 'X\(//\)[^/]' \| \
9166 X"$ac_file" : 'X\(//\)$' \| \
9167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9168 $as_echo X"$ac_file" |
9169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9186 as_dir
="$ac_dir"; as_fn_mkdir_p
9190 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9192 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9193 # A ".." for each directory in $ac_dir_suffix.
9194 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9195 case $ac_top_builddir_sub in
9196 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9197 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9200 ac_abs_top_builddir
=$ac_pwd
9201 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9202 # for backward compatibility:
9203 ac_top_builddir
=$ac_top_build_prefix
9206 .
) # We are building in place.
9208 ac_top_srcdir
=$ac_top_builddir_sub
9209 ac_abs_top_srcdir
=$ac_pwd ;;
9210 [\\/]* | ?
:[\\/]* ) # Absolute name.
9211 ac_srcdir
=$srcdir$ac_dir_suffix;
9212 ac_top_srcdir
=$srcdir
9213 ac_abs_top_srcdir
=$srcdir ;;
9215 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9216 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9217 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9219 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9229 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9230 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9235 # If the template does not know about datarootdir, expand it.
9236 # FIXME: This hack should be removed a few years after 2.60.
9237 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9249 *datarootdir
*) ac_datarootdir_seen
=yes;;
9250 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9255 ac_datarootdir_hack='
9256 s&@datadir@&$datadir&g
9257 s&@docdir@&$docdir&g
9258 s&@infodir@&$infodir&g
9259 s&@localedir@&$localedir&g
9260 s&@mandir@&$mandir&g
9261 s&\\\${datarootdir}&$datarootdir&g' ;;
9265 # Neutralize VPATH when `$srcdir' = `.'.
9266 # Shell code in configure.ac might set extrasub.
9267 # FIXME: do we really want to maintain this feature?
9268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9269 ac_sed_extra="$ac_vpsub
9272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9274 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9275 s|@configure_input@|
$ac_sed_conf_input|
;t t
9276 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9277 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9278 s
&@srcdir@
&$ac_srcdir&;t t
9279 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9280 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9281 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9282 s
&@builddir@
&$ac_builddir&;t t
9283 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9284 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9285 s
&@INSTALL@
&$ac_INSTALL&;t t
9286 $ac_datarootdir_hack
9288 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
9289 if $ac_cs_awk_getline; then
9290 $AWK -f "$ac_tmp/subs.
awk"
9292 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
9294 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9296 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9297 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9298 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9299 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9301 which seems to be undefined. Please make sure it is defined" >&5
9302 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9303 which seems to be undefined. Please make sure it is defined" >&2;}
9305 rm -f "$ac_tmp/stdin"
9307 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9308 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9316 if test x"$ac_file" != x-; then
9318 $as_echo "/* $configure_input */" \
9319 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9320 } >"$ac_tmp/config.h" \
9321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9322 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9324 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9327 mv "$ac_tmp/config.h" "$ac_file" \
9328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9331 $as_echo "/* $configure_input */" \
9332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9333 || as_fn_error $? "could not create -" "$LINENO" 5
9337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9338 $as_echo "$as_me: executing $ac_file commands" >&6;}
9343 case $ac_file$ac_mode in
9344 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9345 if test -n "$CONFIG_FILES"; then
9346 if test -n "${with_target_subdir}"; then
9347 # FIXME: We shouldn't need to
set ac_file
9349 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9350 .
${libiberty_topdir}/config-ml.
in
9360 ac_clean_files
=$ac_clean_files_save
9362 test $ac_write_fail = 0 ||
9363 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
9366 # configure is writing to config.log, and then calls config.status.
9367 # config.status does its own redirection, appending to config.log.
9368 # Unfortunately, on DOS this fails, as config.log is still kept open
9369 # by configure, so config.status won't be able to write to it; its
9370 # output is simply discarded. So we exec the FD to /dev/null,
9371 # effectively closing config.log, so it can be properly (re)opened and
9372 # appended to by config.status. When coming back to configure, we
9373 # need to make the FD available again.
9374 if test "$no_create" != yes; then
9376 ac_config_status_args
=
9377 test "$silent" = yes &&
9378 ac_config_status_args
="$ac_config_status_args --quiet"
9380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9383 # would make configure fail if this is the last instruction.
9384 $ac_cs_success || as_fn_exit
1
9386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}