2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 e
) case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 e) case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 e) exitcode=1; echo positional parameters were not saved. ;;
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
183 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev
/null
191 e
) as_have_required
=no
;;
194 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
198 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
200 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
206 *) as_dir
=$as_dir/ ;;
211 for as_base
in sh bash ksh sh5
; do
212 # Try only shells that exist, to save several forks.
213 as_shell
=$as_dir$as_base
214 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
215 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
217 CONFIG_SHELL
=$as_shell as_have_required
=yes
218 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
232 e
) if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
233 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
241 if test "x$CONFIG_SHELL" != x
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
252 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x
$as_have_required = xno
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://sourceware.org/bugzilla/ about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
283 SHELL
=${CONFIG_SHELL-/bin/sh}
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE
= GREP_OPTIONS
=
287 unset CLICOLOR_FORCE GREP_OPTIONS
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
294 # Portably unset VAR.
297 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
383 eval 'as_fn_append ()
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
409 as_val
=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status
=$1; test $as_status -eq 0 && as_status
=1
424 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit
$as_status
431 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
438 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
450 as_me
=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits
='0123456789'
474 as_cr_alnum
=$as_cr_Letters$as_cr_digits
477 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
478 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
499 chmod +x
"$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec
=no
; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
510 # Exit status is that of the last command.
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C
= ECHO_N
= ECHO_T
=
519 case `echo -n x` in #(((((
521 case `echo 'xy\c'` in
522 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo
='printf %s\n'
535 as_echo_n
='printf %s'
537 rm -f conf$$ conf$$.exe conf$$.
file
538 if test -d conf$$.dir
; then
539 rm -f conf$$.dir
/conf$$.
file
542 mkdir conf$$.dir
2>/dev
/null
544 if (echo >conf$$.
file) 2>/dev
/null
; then
545 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
553 elif ln conf$$.
file conf$$
2>/dev
/null
; then
561 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
562 rmdir conf$$.dir
2>/dev
/null
564 if mkdir
-p .
2>/dev
/null
; then
565 as_mkdir_p
='mkdir -p "$as_dir"'
567 test -d .
/-p && rmdir .
/-p
572 as_executable_p
=as_fn_executable_p
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp
="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp
="eval sed '$as_sed_cpp'" # deprecated
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh
="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh
="eval sed '$as_sed_sh'" # deprecated
583 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
594 ac_default_prefix
=/usr
/local
596 ac_config_libobj_dir
=.
603 # Identity of this package.
604 PACKAGE_NAME
='GNU C Library'
605 PACKAGE_TARNAME
='glibc'
606 PACKAGE_VERSION
='(see version.h)'
607 PACKAGE_STRING
='GNU C Library (see version.h)'
608 PACKAGE_BUGREPORT
='https://sourceware.org/bugzilla/'
609 PACKAGE_URL
='https://www.gnu.org/software/glibc/'
611 ac_unique_file
="include/features.h"
612 enable_option_checking
=no
613 ac_subst_vars
='LTLIBOBJS
623 libc_cv_test_x86_have_amx_tile
625 libc_cv_test_cc_mprefer_vector_width
631 libc_cv_localstatedir
633 libc_cv_complocaledir
637 libc_cv_gcc_unwind_find_fde
640 libc_cv_cxx_thread_local
642 no_file_offset_bits_source
645 libc_cv_fortify_source
646 enable_fortify_source
647 libc_cv_test_supported_fortify_source
652 libc_cv_test_cc_wmissing_parameter_name
653 libc_cv_test_cc_wfree_labels
654 libc_cv_test_cc_wimplicit_fallthrough
655 libc_cv_cc_loop_to_function
656 libc_cv_test_cc_signaling_nans
657 libc_cv_cc_submachine
659 libc_cv_test_wno_ignored_attributes
662 libc_cv_test_static_pie
664 libc_cv_no_error_execstack
666 libc_cv_cc_with_libunwind
668 libc_cv_protected_data
680 libc_cv_textrel_ifunc
712 hardcoded_path_in_tests
713 enable_timezone_tools
716 extra_nonshared_cflags
773 program_transform_name
786 enable_option_checking
789 enable_static_c___tests
790 enable_static_c___link_check
797 with_nonshared_cflags
798 with_rtld_early_cflags
805 enable_timezone_tools
806 enable_hardcoded_path_in_tests
809 enable_stack_protector
812 enable_maintainer_mode
816 enable_memory_tagging
824 enable_fortify_source
827 ac_precious_vars
='build_alias
843 # Initialize some variables set by options.
845 ac_init_version
=false
846 ac_unrecognized_opts
=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name
=s
,x
,x
,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir
='${exec_prefix}/bin'
872 sbindir
='${exec_prefix}/sbin'
873 libexecdir
='${exec_prefix}/libexec'
874 datarootdir
='${prefix}/share'
875 datadir
='${datarootdir}'
876 sysconfdir
='${prefix}/etc'
877 sharedstatedir
='${prefix}/com'
878 localstatedir
='${prefix}/var'
879 runstatedir
='${localstatedir}/run'
880 includedir
='${prefix}/include'
881 oldincludedir
='/usr/include'
882 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir
='${datarootdir}/info'
888 libdir
='${exec_prefix}/lib'
889 localedir
='${datarootdir}/locale'
890 mandir
='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\
$ac_option
904 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error $?
"invalid feature name: '$ac_useropt'"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error $?
"invalid feature name: '$ac_useropt'"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1131 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1132 |
--run |
--ru |
--r)
1133 ac_prev
=runstatedir
;;
1134 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1135 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1136 |
--run=* |
--ru=* |
--r=*)
1137 runstatedir
=$ac_optarg ;;
1139 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1141 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1143 sbindir
=$ac_optarg ;;
1145 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1146 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1147 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1149 ac_prev
=sharedstatedir
;;
1150 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1151 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1152 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1154 sharedstatedir
=$ac_optarg ;;
1156 -site |
--site |
--sit)
1158 -site=* |
--site=* |
--sit=*)
1161 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1163 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1164 srcdir
=$ac_optarg ;;
1166 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1167 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1168 ac_prev
=sysconfdir
;;
1169 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1170 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1171 sysconfdir
=$ac_optarg ;;
1173 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1174 ac_prev
=target_alias
;;
1175 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1176 target_alias
=$ac_optarg ;;
1178 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1181 -version |
--version |
--versio |
--versi |
--vers |
-V)
1182 ac_init_version
=: ;;
1185 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error $?
"invalid package name: '$ac_useropt'"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval with_
$ac_useropt=\
$ac_optarg ;;
1200 -without-* |
--without-*)
1201 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1204 as_fn_error $?
"invalid package name: '$ac_useropt'"
1205 ac_useropt_orig
=$ac_useropt
1206 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep
=', ';;
1214 eval with_
$ac_useropt=no
;;
1217 # Obsolete; use --with-x.
1220 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1221 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1222 ac_prev
=x_includes
;;
1223 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1224 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1225 x_includes
=$ac_optarg ;;
1227 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1228 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1229 ac_prev
=x_libraries
;;
1230 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1231 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1232 x_libraries
=$ac_optarg ;;
1234 -*) as_fn_error $?
"unrecognized option: '$ac_option'
1235 Try '$0 --help' for more information"
1239 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1243 as_fn_error $?
"invalid variable name: '$ac_envvar'" ;;
1245 eval $ac_envvar=\
$ac_optarg
1246 export $ac_envvar ;;
1249 # FIXME: should be removed in autoconf 3.0.
1250 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1252 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259 if test -n "$ac_prev"; then
1260 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $?
"missing argument to $ac_option"
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1267 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1268 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 # Check all directory arguments for consistency.
1273 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir runstatedir
1278 eval ac_val
=\$
$ac_var
1279 # Remove trailing slashes.
1282 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\
$ac_val;;
1285 # Be sure to have absolute directory names.
1287 [\\/$
]* | ?
:[\\/]* ) continue;;
1288 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1290 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1293 # There might be people who depend on the old broken behavior: '$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1298 target
=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x
; then
1302 if test "x$build_alias" = x
; then
1303 cross_compiling
=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1312 test "$silent" = yes && exec 6>/dev
/null
1315 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di
=`ls -di .` &&
1317 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $?
"working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $?
"pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted
=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir
=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 printf "%s\n" X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted
=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1359 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg
="sources are in $srcdir, but 'cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var
in $ac_precious_vars; do
1376 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1378 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print 'checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for '--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or '..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, 'make install' will install all the files in
1416 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than '$ac_default_prefix' using '--prefix',
1418 for instance '--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --build=BUILD configure
for building on BUILD
[guessed
]
1449 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive
) echo "Configuration of GNU C Library (see version.h):";;
1460 --disable-option-checking ignore unrecognized
--enable/--with options
1461 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1462 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1463 --disable-static-c++-tests
1464 disable static C
++ tests
[default
=no
]
1465 --disable-static-c++-link-check
1466 disable static C
++ link check
[default
=no
]
1467 --disable-sanity-checks really
do not use threads
(should not be used except
1468 in special situations
) [default
=yes]
1469 --enable-shared build shared library
[default
=yes if GNU ld
]
1470 --enable-profile build profiled library
[default
=no
]
1471 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1473 --disable-timezone-tools
1474 do not
install timezone tools
[default
=install]
1475 --enable-hardcoded-path-in-tests
1476 hardcode newly built glibc path
in tests
1478 --disable-hidden-plt do not hide internal
function calls to avoid PLT
1479 --enable-bind-now disable lazy relocations
in DSOs
1480 --enable-stack-protector=[yes|no|all|strong
]
1481 Use
-fstack-protector[-all|
-strong] to detect glibc
1483 --enable-static-nss build static NSS modules
[default
=no
]
1484 --disable-force-install don
't force installation of files from this package,
1485 even if they are older than the installed files
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-kernel=VERSION compile for compatibility with kernel not older than
1491 --disable-werror do not build with -Werror
1492 --enable-multi-arch enable single DSO with optimizations for multiple
1494 --enable-memory-tagging enable memory tagging if supported by the
1495 architecture [default=no]
1496 --enable-systemtap enable systemtap static probe points [default=no]
1497 --disable-build-nscd disable building and installing the nscd daemon
1498 --disable-nscd library functions will not contact the nscd daemon
1499 --enable-pt_chown Enable building and installing pt_chown
1500 --enable-mathvec Enable building and installing mathvec [default
1501 depends on architecture]
1502 --enable-cet enable Intel Control-flow Enforcement Technology
1504 --disable-scv syscalls will not use scv instruction, even if the
1505 kernel supports it, powerpc only
1506 --enable-fortify-source[=1|2|3]
1507 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1508 hardening, defaults to highest possible value
1509 supported by the build compiler.
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1515 --with-bugurl=URL Direct users to URL to report a bug
1516 --with-gd=DIR find libgd include dir and library with prefix DIR
1517 --with-gd-include=DIR find libgd include files in DIR
1518 --with-gd-lib=DIR find libgd library files in DIR
1519 --with-binutils=PATH specify location of binutils (as and ld)
1520 --with-selinux if building with SELinux support
1521 --with-headers=PATH location of system headers to use (for example
1522 /usr/src/linux/include) [default=compiler default]
1523 --with-nonshared-cflags=CFLAGS
1524 build nonshared libraries with additional CFLAGS
1525 --with-rtld-early-cflags=CFLAGS
1526 build early initialization with additional CFLAGS
1527 --with-timeoutfactor=NUM
1528 specify an integer to scale the timeout
1529 --with-man-pages=VERSION
1530 tie manual to a specific man-pages version
1531 --with-cpu=CPU select code for CPU variant
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 TEST_CC C compiler for testing
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 TEST_CXX C++ compiler for testing
1547 Use these variables to override the choices made by 'configure
' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <https://sourceware.org/bugzilla/>.
1551 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1552 General help using GNU software: <https://www.gnu.org/gethelp/>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.
[\\/]||
'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for configure.gnu first; this name is used for a wrapper for
1599 # Metaconfig's
"Configure" on case-insensitive
file systems.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 GNU C Library configure
(see version.h
)
1617 generated by GNU Autoconf
2.72
1619 Copyright
(C
) 2023 Free Software Foundation
, Inc.
1620 This configure
script is free software
; the Free Software Foundation
1621 gives unlimited permission to copy
, distribute and modify it.
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile
()
1635 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1636 rm -f conftest.
$ac_objext conftest.beam
1637 if { { ac_try
="$ac_compile"
1639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 printf "%s\n" "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext
1659 e) printf "%s\n" "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_cxx_try_compile LINENO
1671 # ----------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_cxx_try_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest.beam
1677 if { { ac_try="$ac_compile"
1679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1680 *) ac_try_echo
=$ac_try;;
1682 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 printf "%s\n" "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1686 if test -s conftest.err
; then
1687 grep -v '^ *+' conftest.err
>conftest.er1
1688 cat conftest.er1
>&5
1689 mv -f conftest.er1 conftest.err
1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_cxx_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.
$ac_objext
1699 e
) printf "%s\n" "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.
$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status
$ac_retval
1708 } # ac_fn_cxx_try_compile
1710 # ac_fn_cxx_try_link LINENO
1711 # -------------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_link
()
1715 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1716 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1717 if { { ac_try
="$ac_link"
1719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 printf "%s\n" "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1742 e) printf "%s\n" "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_cxx_try_link
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1767 *) ac_try_echo
=$ac_try;;
1769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err
; then
1774 grep -v '^ *+' conftest.err
>conftest.er1
1775 cat conftest.er1
>&5
1776 mv -f conftest.er1 conftest.err
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } > conftest.i
&& {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1786 e
) printf "%s\n" "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.
$ac_ext >&5
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status
$ac_retval
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1803 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1804 if { { ac_try
="$ac_link"
1806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 printf "%s\n" "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1829 e) printf "%s\n" "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1844 ac_configure_args_raw=
1849 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1851 as_fn_append ac_configure_args_raw " '$ac_arg'"
1854 case $ac_configure_args_raw in
1858 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1859 ac_unsafe_a="$ac_unsafe_z#~
"
1860 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1861 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1864 cat >config.log <<_ACEOF
1865 This file contains any messages produced by compilers while
1866 running configure, to aid debugging if configure makes a mistake.
1868 It was created by GNU C Library $as_me (see version.h), which was
1869 generated by GNU Autoconf 2.72. Invocation command line was
1871 $ $0$ac_configure_args_raw
1881 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1890 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1891 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1892 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1894 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1895 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1896 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 case $as_dir in #(((
1907 *) as_dir=$as_dir/ ;;
1909 printf "%s
\n" "PATH
: $as_dir"
1925 # Keep a trace of the command line.
1926 # Strip out --no-create and --no-recursion so they do not pile up.
1927 # Strip out --silent because we don't want to record it for future runs.
1928 # Also quote any args containing shell meta-characters.
1929 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_must_keep_next=false
1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941 | -silent | --silent | --silen | --sile | --sil)
1944 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 as_fn_append ac_configure_args1 " '$ac_arg'"
1950 if test $ac_must_keep_next = true; then
1951 ac_must_keep_next=false # Got value, back to normal.
1954 *=* | --config-cache | -C | -disable-* | --disable-* \
1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957 | -with-* | --with-* | -without-* | --without-* | --x)
1958 case "$ac_configure_args0 " in
1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 -* ) ac_must_keep_next=true ;;
1965 as_fn_append ac_configure_args " '$ac_arg'"
1970 { ac_configure_args0=; unset ac_configure_args0;}
1971 { ac_configure_args1=; unset ac_configure_args1;}
1973 # When interrupted or exit'd, cleanup temporary files, and complete
1974 # config.log. We remove comments because anyway the quotes in there
1975 # would cause problems or look ugly.
1976 # WARNING: Use '\'' to represent an apostrophe within the trap.
1977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1985 printf "%s
\n" "## ---------------- ##
1986 ## Cache variables. ##
1987 ## ---------------- ##"
1989 # The following way of writing the cache mishandles newlines in values,
1991 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992 eval ac_val
=\$
$ac_var
1996 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000 _ | IFS | as_nl
) ;; #(
2001 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2002 *) { eval $ac_var=; unset $ac_var;} ;;
2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space
=\
*)
2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 printf "%s\n" "## ----------------- ##
2022 ## Output variables. ##
2023 ## ----------------- ##"
2025 for ac_var
in $ac_subst_vars
2027 eval ac_val
=\$
$ac_var
2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2035 if test -n "$ac_subst_files"; then
2036 printf "%s\n" "## ------------------- ##
2037 ## File substitutions. ##
2038 ## ------------------- ##"
2040 for ac_var in $ac_subst_files
2042 eval ac_val=\$$ac_var
2044 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 printf "%s\n" "$ac_var='\''$ac_val'\''"
2051 if test -s confdefs.h
; then
2052 printf "%s\n" "## ----------- ##
2059 test "$ac_signal" != 0 &&
2060 printf "%s\n" "$as_me: caught signal $ac_signal"
2061 printf "%s\n" "$as_me: exit $exit_status"
2063 rm -f core
*.core core.conftest.
* &&
2064 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 printf "%s\n" "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2081 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2083 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2085 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2087 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2089 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2094 if test -n "$CONFIG_SITE"; then
2095 ac_site_files="$CONFIG_SITE"
2096 elif test "x$prefix" != xNONE; then
2097 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2099 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2102 for ac_site_file in $ac_site_files
2104 case $ac_site_file in #(
2108 ac_site_file=./$ac_site_file ;;
2110 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2113 sed 's
/^
/|
/' "$ac_site_file" >&5
2115 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2116 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2117 as_fn_error $? "failed to load site script $ac_site_file
2118 See 'config.log
' for more details" "$LINENO" 5; }
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special files
2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2139 # Test code for whether the C compiler supports C89 (global declarations)
2140 ac_c_conftest_c89_globals='
2141 /* Does the compiler advertise C89 conformance?
2142 Do not
test the value of __STDC__
, because some compilers
set it to
0
2143 while being otherwise adequately conformant.
*/
2144 #if !defined __STDC__
2145 # error "Compiler does not advertise C89 conformance"
2151 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2152 struct buf
{ int x
; };
2153 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2154 static char
*e
(char
**p
, int i
)
2158 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2163 s
= g
(p
, va_arg
(v
,int
));
2168 /* C89 style stringification.
*/
2169 #define noexpand_stringify(a) #a
2170 const char
*stringified
= noexpand_stringify
(arbitrary
+token
=sequence
);
2172 /* C89 style token pasting. Exercises some of the corner cases that
2173 e.g. old MSVC gets wrong
, but not very hard.
*/
2174 #define noexpand_concat(a,b) a##b
2175 #define expand_concat(a,b) noexpand_concat(a,b)
2180 int
*pvA
= &expand_concat
(v
,aye
);
2181 int
*pvbee
= &noexpand_concat
(v
,bee
);
2183 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2184 function prototypes and stuff
, but not \xHH hex character constants.
2185 These
do not provoke an error unfortunately
, instead are silently treated
2186 as an
"x". The following induces an error
, until -std is added to get
2187 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2188 array size
at least. It is necessary to
write \x00 == 0 to get something
2189 that is true only with
-std.
*/
2190 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2192 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2193 inside
strings and character constants.
*/
2194 #define FOO(x) '\''x'\''
2195 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2197 int
test (int i
, double x
);
2198 struct s1
{int
(*f
) (int a
);};
2199 struct s2
{int
(*f
) (double a
);};
2200 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2203 # Test code for whether the C compiler supports C89 (body of main).
2204 ac_c_conftest_c89_main='
2205 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2208 # Test code for whether the C compiler supports C99 (global declarations)
2209 ac_c_conftest_c99_globals='
2210 /* Does the compiler advertise C99 conformance?
*/
2211 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2212 # error "Compiler does not advertise C99 conformance"
2215 // See
if C
++-style comments work.
2217 #include <stdbool.h>
2218 extern int puts
(const char
*);
2219 extern int
printf (const char
*, ...
);
2220 extern int dprintf
(int
, const char
*, ...
);
2221 extern void
*malloc
(size_t
);
2222 extern void free
(void
*);
2224 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2225 // dprintf is used instead of fprintf to avoid needing to
declare
2227 #define debug(...) dprintf (2, __VA_ARGS__)
2228 #define showlist(...) puts (#__VA_ARGS__)
2229 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2231 test_varargs_macros
(void
)
2236 debug
("X = %d\n", x
);
2237 showlist
(The first
, second
, and third items.
);
2238 report
(x
>y
, "x is %d but y is %d", x
, y
);
2241 // Check long long types.
2242 #define BIG64 18446744073709551615ull
2243 #define BIG32 4294967295ul
2244 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2246 #error "your preprocessor is broken"
2250 #error "your preprocessor is broken"
2252 static long long int bignum
= -9223372036854775807LL;
2253 static unsigned long long int ubignum
= BIG64
;
2255 struct incomplete_array
2263 const wchar_t
*name
;
2267 typedef const char
*ccp
;
2270 test_restrict
(ccp restrict text
)
2272 // Iterate through items via the restricted pointer.
2273 // Also check
for declarations
in for loops.
2274 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2279 // Check varargs and va_copy.
2281 test_varargs
(const char
*format
, ...
)
2284 va_start
(args
, format
);
2286 va_copy
(args_copy
, args
);
2288 const char
*str
= "";
2296 case '\''s
'\'': // string
2297 str
= va_arg
(args_copy
, const char
*);
2299 case '\''d
'\'': // int
2300 number
= va_arg
(args_copy
, int
);
2302 case '\''f
'\'': // float
2303 fnumber
= va_arg
(args_copy
, double
);
2312 return *str
&& number
&& fnumber
;
2316 # Test code for whether the C compiler supports C99 (body of main).
2317 ac_c_conftest_c99_main='
2319 _Bool success
= false
;
2320 success |
= (argc
!= 0);
2323 if (test_restrict
("String literal") == 0)
2325 char
*restrict newvar
= "Another string";
2328 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2329 test_varargs_macros
();
2331 // Check flexible array members.
2332 struct incomplete_array
*ia
=
2333 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2335 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2336 ia-
>data
[i
] = i
* 1.234;
2337 // Work around memory leak warnings.
2340 // Check named initializers.
2341 struct named_init ni
= {
2343 .name
= L
"Test wide string",
2344 .average
= 543.34343,
2349 int dynamic_array
[ni.number
];
2350 dynamic_array
[0] = argv
[0][0];
2351 dynamic_array
[ni.number
- 1] = 543;
2353 // work around unused variable warnings
2354 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2355 || dynamic_array
[ni.number
- 1] != 543);
2358 # Test code for whether the C compiler supports C11 (global declarations)
2359 ac_c_conftest_c11_globals='
2360 /* Does the compiler advertise C11 conformance?
*/
2361 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2362 # error "Compiler does not advertise C11 conformance"
2366 char _Alignas
(double
) aligned_as_double
;
2367 char _Alignas
(0) no_special_alignment
;
2368 extern char aligned_as_int
;
2369 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2374 int_alignment
= _Alignof
(int
),
2375 int_array_alignment
= _Alignof
(int
[100]),
2376 char_alignment
= _Alignof
(char
)
2378 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2381 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2383 // Check _Static_assert.
2384 struct test_static_assert
2387 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2388 "_Static_assert does not work in struct");
2392 // Check UTF-8 literals.
2393 #define u8 syntax error!
2394 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2396 // Check duplicate typedefs.
2397 typedef long
*long_ptr
;
2398 typedef long int
*long_ptr
;
2399 typedef long_ptr long_ptr
;
2401 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2405 struct
{ int i
; int j
; };
2406 struct
{ int k
; long int l
; } w
;
2412 # Test code for whether the C compiler supports C11 (body of main).
2413 ac_c_conftest_c11_main='
2414 _Static_assert
((offsetof
(struct anonymous
, i
)
2415 == offsetof
(struct anonymous
, w.k
)),
2416 "Anonymous union alignment botch");
2422 # Test code for whether the C compiler supports C11 (complete).
2423 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2424 ${ac_c_conftest_c99_globals}
2425 ${ac_c_conftest_c11_globals}
2428 main (int argc, char **argv)
2431 ${ac_c_conftest_c89_main}
2432 ${ac_c_conftest_c99_main}
2433 ${ac_c_conftest_c11_main}
2438 # Test code for whether the C compiler supports C99 (complete).
2439 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2440 ${ac_c_conftest_c99_globals}
2443 main (int argc, char **argv)
2446 ${ac_c_conftest_c89_main}
2447 ${ac_c_conftest_c99_main}
2452 # Test code for whether the C compiler supports C89 (complete).
2453 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2456 main (int argc, char **argv)
2459 ${ac_c_conftest_c89_main}
2464 # Test code for whether the C++ compiler supports C++98 (global declarations)
2465 ac_cxx_conftest_cxx98_globals='
2466 // Does the compiler advertise C
++98 conformance?
2467 #if !defined __cplusplus || __cplusplus < 199711L
2468 # error "Compiler does not advertise C++98 conformance"
2471 // These inclusions are to reject old compilers that
2472 // lack the unsuffixed header files.
2474 #include <exception>
2476 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2477 extern void assert
(int
);
2479 extern int strcmp
(const char
*, const char
*);
2482 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2483 using std
::exception
;
2488 void test_exception_syntax
()
2492 } catch
(const char
*s
) {
2493 // Extra parentheses suppress a warning when building autoconf itself
,
2494 // due to lint rules shared with
more typical C programs.
2495 assert
(!(strcmp
) (s
, "test"));
2499 template
<typename T
> struct test_template
2502 explicit test_template
(T t
) : val
(t
) {}
2503 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2506 } // anonymous namespace
2509 # Test code for whether the C++ compiler supports C++98 (body of main)
2510 ac_cxx_conftest_cxx98_main='
2514 test_exception_syntax
();
2515 test_template
<double
> tt
(2.0);
2516 assert
(tt.add
(4) == 6.0);
2517 assert
(true
&& !false
);
2521 # Test code for whether the C++ compiler supports C++11 (global declarations)
2522 ac_cxx_conftest_cxx11_globals='
2523 // Does the compiler advertise C
++ 2011 conformance?
2524 #if !defined __cplusplus || __cplusplus < 201103L
2525 # error "Compiler does not advertise C++11 conformance"
2530 constexpr int get_val
() { return 20; }
2541 delegate
(int n
) : n
(n
) {}
2542 delegate
(): delegate
(2354) {}
2544 virtual int getval
() { return this-
>n
; };
2549 class overridden
: public delegate
2552 overridden
(int n
): delegate
(n
) {}
2553 virtual int getval
() override final
{ return this-
>n
* 2; }
2559 nocopy
(int i
): i
(i
) {}
2561 nocopy
(const nocopy
&) = delete
;
2562 nocopy
& operator
=(const nocopy
&) = delete
;
2567 // for testing lambda expressions
2568 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2573 // for testing variadic templates and trailing
return types
2574 template
<typename V
> auto
sum(V first
) -> V
2578 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2580 return first
+ sum(rest...
);
2585 # Test code for whether the C++ compiler supports C++11 (body of main)
2586 ac_cxx_conftest_cxx11_main='
2588 // Test auto and decltype
2590 auto a2
= 48573953.4;
2591 auto a3
= "String literal";
2594 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2596 decltype
(a2
) a4
= 34895.034;
2600 short sa
[cxx11test
::get_val
()] = { 0 };
2603 // Test initializer lists
2604 cxx11test
::testinit il
= { 4323, 435234.23544 };
2607 // Test range-based
for
2608 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2609 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2610 for (auto
&x
: array
) { x
+= 23; }
2613 // Test lambda expressions
2614 using cxx11test
::eval;
2615 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2617 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2619 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2623 // Test use of variadic templates
2624 using cxx11test
::sum;
2627 auto c
= sum(1.0, 2.0, 3.0);
2630 // Test constructor delegation
2631 cxx11test
::delegate d1
;
2632 cxx11test
::delegate d2
();
2633 cxx11test
::delegate d3
(45);
2636 // Test override and final
2637 cxx11test
::overridden o1
(55464);
2644 // Test template brackets
2645 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2649 char const
*utf8
= u8
"UTF-8 string \u2500";
2650 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2651 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2655 # Test code for whether the C compiler supports C++11 (complete).
2656 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2657 ${ac_cxx_conftest_cxx11_globals}
2660 main (int argc, char **argv)
2663 ${ac_cxx_conftest_cxx98_main}
2664 ${ac_cxx_conftest_cxx11_main}
2669 # Test code for whether the C compiler supports C++98 (complete).
2670 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2672 main (int argc, char **argv)
2675 ${ac_cxx_conftest_cxx98_main}
2681 # Auxiliary files required by this configure script.
2682 ac_aux_files="install-sh config.guess config.sub"
2684 # Locations in which to look for auxiliary files.
2685 ac_aux_dir_candidates="${srcdir}/scripts"
2687 # Search for a directory containing all of the required auxiliary files,
2688 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2689 # If we don't
find one directory that contains all the files we need
,
2690 # we report the set of missing files from the *first* directory in
2691 # $ac_aux_dir_candidates and give up.
2692 ac_missing_aux_files
=""
2693 ac_first_candidate
=:
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2697 for as_dir
in $ac_aux_dir_candidates
2700 case $as_dir in #(((
2703 *) as_dir
=$as_dir/ ;;
2707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2708 ac_aux_dir_found
=yes
2710 for ac_aux
in $ac_aux_files
2712 # As a special case, if "install-sh" is required, that requirement
2713 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2714 # and $ac_install_sh is set appropriately for whichever one is found.
2715 if test x
"$ac_aux" = x
"install-sh"
2717 if test -f "${as_dir}install-sh"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2719 ac_install_sh
="${as_dir}install-sh -c"
2720 elif test -f "${as_dir}install.sh"; then
2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2722 ac_install_sh
="${as_dir}install.sh -c"
2723 elif test -f "${as_dir}shtool"; then
2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2725 ac_install_sh
="${as_dir}shtool install -c"
2728 if $ac_first_candidate; then
2729 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2735 if test -f "${as_dir}${ac_aux}"; then
2736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2739 if $ac_first_candidate; then
2740 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2747 if test "$ac_aux_dir_found" = yes; then
2748 ac_aux_dir
="$as_dir"
2751 ac_first_candidate
=false
2760 e
) as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2765 # These three variables are undocumented and unsupported,
2766 # and are intended to be withdrawn in a future Autoconf release.
2767 # They can cause serious problems if a builder's source tree is in a directory
2768 # whose full name contains unusual characters.
2769 if test -f "${ac_aux_dir}config.guess"; then
2770 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2772 if test -f "${ac_aux_dir}config.sub"; then
2773 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2775 if test -f "$ac_aux_dir/configure"; then
2776 ac_configure
="$SHELL ${ac_aux_dir}configure"
2779 # Check that the precious variables saved in the cache have kept the same
2781 ac_cache_corrupted
=false
2782 for ac_var
in $ac_precious_vars; do
2783 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2784 eval ac_new_set
=\
$ac_env_${ac_var}_set
2785 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2786 eval ac_new_val
=\
$ac_env_${ac_var}_value
2787 case $ac_old_set,$ac_new_set in
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2790 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2791 ac_cache_corrupted
=: ;;
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2794 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2795 ac_cache_corrupted
=: ;;
2798 if test "x$ac_old_val" != "x$ac_new_val"; then
2799 # differences in whitespace do not lead to failure.
2800 ac_old_val_w
=`echo x $ac_old_val`
2801 ac_new_val_w
=`echo x $ac_new_val`
2802 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2804 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2805 ac_cache_corrupted
=:
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2808 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2809 eval $ac_var=\
$ac_old_val
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2812 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2814 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2817 # Pass precious variables to config.status.
2818 if test "$ac_new_set" = set; then
2820 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2821 *) ac_arg
=$ac_var=$ac_new_val ;;
2823 case " $ac_configure_args " in
2824 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2825 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2829 if $ac_cache_corrupted; then
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2831 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2833 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2834 as_fn_error $?
"run '${MAKE-make} distclean' and/or 'rm $cache_file'
2835 and start over" "$LINENO" 5
2837 ## -------------------- ##
2838 ## Main body of script. ##
2839 ## -------------------- ##
2842 ac_cpp
='$CPP $CPPFLAGS'
2843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2849 ac_config_headers
="$ac_config_headers config.h"
2855 # Check whether --with-pkgversion was given.
2856 if test ${with_pkgversion+y}
2858 withval
=$with_pkgversion; case "$withval" in
2859 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
2861 *) PKGVERSION
="($withval) " ;;
2864 e
) PKGVERSION
="(GNU libc) "
2869 PKGVERSION_TEXI
=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2875 # Check whether --with-bugurl was given.
2876 if test ${with_bugurl+y}
2878 withval
=$with_bugurl; case "$withval" in
2879 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
2882 *) BUGURL
="$withval"
2886 e
) BUGURL
="https://www.gnu.org/software/libc/bugs.html"
2897 REPORT_BUGS_TO
="<$BUGURL>"
2898 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
2905 printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2908 printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2911 # Glibc should not depend on any header files
2914 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2915 # here to work around the Autoconf issue discussed in
2916 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2919 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2920 # issue discussed in
2921 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2932 # Make sure we can run config.sub.
2933 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2934 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2937 printf %s
"checking build system type... " >&6; }
2938 if test ${ac_cv_build+y}
2940 printf %s
"(cached) " >&6
2942 e
) ac_build_alias
=$build_alias
2943 test "x$ac_build_alias" = x
&&
2944 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2945 test "x$ac_build_alias" = x
&&
2946 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2947 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2948 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2953 printf "%s\n" "$ac_cv_build" >&6; }
2954 case $ac_cv_build in
2956 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2959 ac_save_IFS
=$IFS; IFS
='-'
2965 # Remember, the first character of IFS is used to create $*,
2966 # except with old shells:
2969 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2973 printf %s
"checking host system type... " >&6; }
2974 if test ${ac_cv_host+y}
2976 printf %s
"(cached) " >&6
2978 e
) if test "x$host_alias" = x
; then
2979 ac_cv_host
=$ac_cv_build
2981 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2982 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2988 printf "%s\n" "$ac_cv_host" >&6; }
2991 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2994 ac_save_IFS
=$IFS; IFS
='-'
3000 # Remember, the first character of IFS is used to create $*,
3001 # except with old shells:
3004 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3018 ac_cpp
='$CPP $CPPFLAGS'
3019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s
"checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_CC+y}
3029 printf %s
"(cached) " >&6
3031 e
) if test -n "$CC"; then
3032 ac_cv_prog_CC
="$CC" # Let the user override the test.
3034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3038 case $as_dir in #(((
3041 *) as_dir
=$as_dir/ ;;
3043 for ac_exec_ext
in '' $ac_executable_extensions; do
3044 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3057 if test -n "$CC"; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 printf "%s\n" "$CC" >&6; }
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf "%s\n" "no" >&6; }
3067 if test -z "$ac_cv_prog_CC"; then
3069 # Extract the first word of "gcc", so it can be a program name with args.
3070 set dummy gcc
; ac_word
=$2
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 printf %s
"checking for $ac_word... " >&6; }
3073 if test ${ac_cv_prog_ac_ct_CC+y}
3075 printf %s
"(cached) " >&6
3077 e
) if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 case $as_dir in #(((
3087 *) as_dir
=$as_dir/ ;;
3089 for ac_exec_ext
in '' $ac_executable_extensions; do
3090 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC
="gcc"
3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 printf "%s\n" "$ac_ct_CC" >&6; }
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 printf "%s\n" "no" >&6; }
3111 if test "x$ac_ct_CC" = x
; then
3114 case $cross_compiling:$ac_tool_warned in
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned
=yes ;;
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3129 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 printf %s
"checking for $ac_word... " >&6; }
3132 if test ${ac_cv_prog_CC+y}
3134 printf %s
"(cached) " >&6
3136 e
) if test -n "$CC"; then
3137 ac_cv_prog_CC
="$CC" # Let the user override the test.
3139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3143 case $as_dir in #(((
3146 *) as_dir
=$as_dir/ ;;
3148 for ac_exec_ext
in '' $ac_executable_extensions; do
3149 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3162 if test -n "$CC"; then
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 printf "%s\n" "$CC" >&6; }
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 printf "%s\n" "no" >&6; }
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc
; ac_word
=$2
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 printf %s
"checking for $ac_word... " >&6; }
3178 if test ${ac_cv_prog_CC+y}
3180 printf %s
"(cached) " >&6
3182 e
) if test -n "$CC"; then
3183 ac_cv_prog_CC
="$CC" # Let the user override the test.
3186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3190 case $as_dir in #(((
3193 *) as_dir
=$as_dir/ ;;
3195 for ac_exec_ext
in '' $ac_executable_extensions; do
3196 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3197 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198 ac_prog_rejected
=yes
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3209 if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy
$ac_cv_prog_CC
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3218 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3225 if test -n "$CC"; then
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 printf "%s\n" "$CC" >&6; }
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 printf "%s\n" "no" >&6; }
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 for ac_prog
in cl.exe
3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3240 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 printf %s
"checking for $ac_word... " >&6; }
3243 if test ${ac_cv_prog_CC+y}
3245 printf %s
"(cached) " >&6
3247 e
) if test -n "$CC"; then
3248 ac_cv_prog_CC
="$CC" # Let the user override the test.
3250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3254 case $as_dir in #(((
3257 *) as_dir
=$as_dir/ ;;
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 printf "%s\n" "$CC" >&6; }
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 printf "%s\n" "no" >&6; }
3282 test -n "$CC" && break
3285 if test -z "$CC"; then
3287 for ac_prog
in cl.exe
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy
$ac_prog; ac_word
=$2
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 printf %s
"checking for $ac_word... " >&6; }
3293 if test ${ac_cv_prog_ac_ct_CC+y}
3295 printf %s
"(cached) " >&6
3297 e
) if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 case $as_dir in #(((
3307 *) as_dir
=$as_dir/ ;;
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC
="$ac_prog"
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3322 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325 printf "%s\n" "$ac_ct_CC" >&6; }
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 printf "%s\n" "no" >&6; }
3332 test -n "$ac_ct_CC" && break
3335 if test "x$ac_ct_CC" = x
; then
3338 case $cross_compiling:$ac_tool_warned in
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned
=yes ;;
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3352 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 printf %s
"checking for $ac_word... " >&6; }
3355 if test ${ac_cv_prog_CC+y}
3357 printf %s
"(cached) " >&6
3359 e
) if test -n "$CC"; then
3360 ac_cv_prog_CC
="$CC" # Let the user override the test.
3362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3366 case $as_dir in #(((
3369 *) as_dir
=$as_dir/ ;;
3371 for ac_exec_ext
in '' $ac_executable_extensions; do
3372 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 if test -n "$CC"; then
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 printf "%s\n" "$CC" >&6; }
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3395 if test -z "$ac_cv_prog_CC"; then
3397 # Extract the first word of "clang", so it can be a program name with args.
3398 set dummy clang
; ac_word
=$2
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 printf %s
"checking for $ac_word... " >&6; }
3401 if test ${ac_cv_prog_ac_ct_CC+y}
3403 printf %s
"(cached) " >&6
3405 e
) if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3412 case $as_dir in #(((
3415 *) as_dir
=$as_dir/ ;;
3417 for ac_exec_ext
in '' $ac_executable_extensions; do
3418 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC
="clang"
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 printf "%s\n" "$ac_ct_CC" >&6; }
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 printf "%s\n" "no" >&6; }
3439 if test "x$ac_ct_CC" = x
; then
3442 case $cross_compiling:$ac_tool_warned in
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned
=yes ;;
3457 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3458 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3459 as_fn_error $?
"no acceptable C compiler found in \$PATH
3460 See 'config.log' for more details" "$LINENO" 5; }
3462 # Provide some information about the compiler.
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3466 for ac_option
in --version -v -V -qversion -version; do
3467 { { ac_try
="$ac_compiler $ac_option >&5"
3469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 printf "%s\n" "$ac_try_echo"; } >&5
3474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3476 if test -s conftest.err; then
3478 ... rest of stderr output deleted ...
3479 10q' conftest.err >conftest.er1
3480 cat conftest.er1 >&5
3482 rm -f conftest.er1 conftest.err
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489 printf %s "checking for suffix of object files... " >&6; }
3490 if test ${ac_cv_objext+y}
3492 printf %s "(cached) " >&6
3494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 rm -f conftest.o conftest.obj
3506 if { { ac_try="$ac_compile"
3508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3509 *) ac_try_echo
=$ac_try;;
3511 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 printf "%s\n" "$ac_try_echo"; } >&5
3513 (eval "$ac_compile") 2>&5
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3518 for ac_file
in conftest.o conftest.obj conftest.
*; do
3519 test -f "$ac_file" ||
continue;
3521 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3522 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3527 e
) printf "%s\n" "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.
$ac_ext >&5
3530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3531 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3532 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3533 See 'config.log' for more details" "$LINENO" 5; } ;;
3536 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext ;;
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 printf "%s\n" "$ac_cv_objext" >&6; }
3541 OBJEXT
=$ac_cv_objext
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3544 printf %s
"checking whether the compiler supports GNU C... " >&6; }
3545 if test ${ac_cv_c_compiler_gnu+y}
3547 printf %s
"(cached) " >&6
3549 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3563 if ac_fn_c_try_compile
"$LINENO"
3567 e
) ac_compiler_gnu
=no
;;
3570 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3571 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3576 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3579 if test $ac_compiler_gnu = yes; then
3584 ac_test_CFLAGS
=${CFLAGS+y}
3585 ac_save_CFLAGS
=$CFLAGS
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587 printf %s
"checking whether $CC accepts -g... " >&6; }
3588 if test ${ac_cv_prog_cc_g+y}
3590 printf %s
"(cached) " >&6
3592 e
) ac_save_c_werror_flag
=$ac_c_werror_flag
3593 ac_c_werror_flag
=yes
3596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile
"$LINENO"
3612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile
"$LINENO"
3627 e
) ac_c_werror_flag
=$ac_save_c_werror_flag
3629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile
"$LINENO"
3644 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
3647 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
3650 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3651 ac_c_werror_flag
=$ac_save_c_werror_flag ;;
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3655 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3656 if test $ac_test_CFLAGS; then
3657 CFLAGS
=$ac_save_CFLAGS
3658 elif test $ac_cv_prog_cc_g = yes; then
3659 if test "$GCC" = yes; then
3665 if test "$GCC" = yes; then
3672 if test x
$ac_prog_cc_stdc = xno
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3675 printf %s
"checking for $CC option to enable C11 features... " >&6; }
3676 if test ${ac_cv_prog_cc_c11+y}
3678 printf %s
"(cached) " >&6
3680 e
) ac_cv_prog_cc_c11
=no
3682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 $ac_c_conftest_c11_program
3686 for ac_arg
in '' -std=gnu11
3688 CC
="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile
"$LINENO"
3691 ac_cv_prog_cc_c11
=$ac_arg
3693 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3694 test "x$ac_cv_prog_cc_c11" != "xno" && break
3696 rm -f conftest.
$ac_ext
3701 if test "x$ac_cv_prog_cc_c11" = xno
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 printf "%s\n" "unsupported" >&6; }
3706 e
) if test "x$ac_cv_prog_cc_c11" = x
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 printf "%s\n" "none needed" >&6; }
3711 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3712 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3713 CC
="$CC $ac_cv_prog_cc_c11" ;;
3716 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
3717 ac_prog_cc_stdc
=c11
;;
3721 if test x
$ac_prog_cc_stdc = xno
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3724 printf %s
"checking for $CC option to enable C99 features... " >&6; }
3725 if test ${ac_cv_prog_cc_c99+y}
3727 printf %s
"(cached) " >&6
3729 e
) ac_cv_prog_cc_c99
=no
3731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 $ac_c_conftest_c99_program
3735 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
3737 CC
="$ac_save_CC $ac_arg"
3738 if ac_fn_c_try_compile
"$LINENO"
3740 ac_cv_prog_cc_c99
=$ac_arg
3742 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3743 test "x$ac_cv_prog_cc_c99" != "xno" && break
3745 rm -f conftest.
$ac_ext
3750 if test "x$ac_cv_prog_cc_c99" = xno
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 printf "%s\n" "unsupported" >&6; }
3755 e
) if test "x$ac_cv_prog_cc_c99" = x
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758 printf "%s\n" "none needed" >&6; }
3760 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3761 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3762 CC
="$CC $ac_cv_prog_cc_c99" ;;
3765 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3766 ac_prog_cc_stdc
=c99
;;
3770 if test x
$ac_prog_cc_stdc = xno
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3773 printf %s
"checking for $CC option to enable C89 features... " >&6; }
3774 if test ${ac_cv_prog_cc_c89+y}
3776 printf %s
"(cached) " >&6
3778 e
) ac_cv_prog_cc_c89
=no
3780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 $ac_c_conftest_c89_program
3784 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC
="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile
"$LINENO"
3789 ac_cv_prog_cc_c89
=$ac_arg
3791 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.
$ac_ext
3799 if test "x$ac_cv_prog_cc_c89" = xno
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802 printf "%s\n" "unsupported" >&6; }
3804 e
) if test "x$ac_cv_prog_cc_c89" = x
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807 printf "%s\n" "none needed" >&6; }
3809 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3810 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3811 CC
="$CC $ac_cv_prog_cc_c89" ;;
3814 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3815 ac_prog_cc_stdc
=c89
;;
3821 ac_cpp
='$CPP $CPPFLAGS'
3822 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3827 if test -z "$TEST_CC"; then
3830 if test $host != $build; then
3831 for ac_prog
in gcc cc
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy
$ac_prog; ac_word
=$2
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 printf %s
"checking for $ac_word... " >&6; }
3837 if test ${ac_cv_prog_BUILD_CC+y}
3839 printf %s
"(cached) " >&6
3841 e
) if test -n "$BUILD_CC"; then
3842 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 case $as_dir in #(((
3851 *) as_dir
=$as_dir/ ;;
3853 for ac_exec_ext
in '' $ac_executable_extensions; do
3854 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_BUILD_CC
="$ac_prog"
3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866 BUILD_CC
=$ac_cv_prog_BUILD_CC
3867 if test -n "$BUILD_CC"; then
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3869 printf "%s\n" "$BUILD_CC" >&6; }
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 printf "%s\n" "no" >&6; }
3876 test -n "$BUILD_CC" && break
3881 # On Suns, sometimes $CPP names a directory.
3882 if test -n "$CPP" && test -d "$CPP"; then
3885 if test -z "$CPP"; then
3890 # This will get text that should go into config.make.
3893 # Check whether --enable-static-c++-tests was given.
3894 if test ${enable_static_c___tests+y}
3896 enableval
=$enable_static_c___tests; static_cxx_tests
=$enableval
3898 e
) static_cxx_tests
=yes ;;
3902 config_vars
="$config_vars
3903 static-cxx-tests = $static_cxx_tests"
3905 # Check whether --enable-static-c++-link-check was given.
3906 if test ${enable_static_c___link_check+y}
3908 enableval
=$enable_static_c___link_check; static_cxx_link_check
=$enableval
3910 e
) static_cxx_link_check
=yes ;;
3915 # We need the C++ compiler for testing and libsupport.
3923 ac_cpp
='$CXXCPP $CPPFLAGS'
3924 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3927 if test -z "$CXX"; then
3928 if test -n "$CCC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 printf %s
"checking for $ac_word... " >&6; }
3938 if test ${ac_cv_prog_CXX+y}
3940 printf %s
"(cached) " >&6
3942 e
) if test -n "$CXX"; then
3943 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 case $as_dir in #(((
3952 *) as_dir
=$as_dir/ ;;
3954 for ac_exec_ext
in '' $ac_executable_extensions; do
3955 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3968 if test -n "$CXX"; then
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3970 printf "%s\n" "$CXX" >&6; }
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 printf "%s\n" "no" >&6; }
3977 test -n "$CXX" && break
3980 if test -z "$CXX"; then
3982 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy
$ac_prog; ac_word
=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s
"checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_ac_ct_CXX+y}
3990 printf %s
"(cached) " >&6
3992 e
) if test -n "$ac_ct_CXX"; then
3993 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 case $as_dir in #(((
4002 *) as_dir
=$as_dir/ ;;
4004 for ac_exec_ext
in '' $ac_executable_extensions; do
4005 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4017 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4018 if test -n "$ac_ct_CXX"; then
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4020 printf "%s\n" "$ac_ct_CXX" >&6; }
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 printf "%s\n" "no" >&6; }
4027 test -n "$ac_ct_CXX" && break
4030 if test "x$ac_ct_CXX" = x
; then
4033 case $cross_compiling:$ac_tool_warned in
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned
=yes ;;
4045 # Provide some information about the compiler.
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4049 for ac_option
in --version -v -V -qversion; do
4050 { { ac_try
="$ac_compiler $ac_option >&5"
4052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4059 if test -s conftest.err; then
4061 ... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
4065 rm -f conftest.er1 conftest.err
4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4071 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4072 if test ${ac_cv_cxx_compiler_gnu+y}
4074 printf %s "(cached) " >&6
4076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4090 if ac_fn_cxx_try_compile "$LINENO"
4094 e) ac_compiler_gnu=no ;;
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4103 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4106 if test $ac_compiler_gnu = yes; then
4111 ac_test_CXXFLAGS=${CXXFLAGS+y}
4112 ac_save_CXXFLAGS=$CXXFLAGS
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4114 printf %s "checking whether $CXX accepts -g... " >&6; }
4115 if test ${ac_cv_prog_cxx_g+y}
4117 printf %s "(cached) " >&6
4119 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4120 ac_cxx_werror_flag=yes
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4134 if ac_fn_cxx_try_compile "$LINENO"
4136 ac_cv_prog_cxx_g=yes
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4150 if ac_fn_cxx_try_compile "$LINENO"
4154 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4167 if ac_fn_cxx_try_compile "$LINENO"
4169 ac_cv_prog_cxx_g=yes
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4182 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4183 if test $ac_test_CXXFLAGS; then
4184 CXXFLAGS=$ac_save_CXXFLAGS
4185 elif test $ac_cv_prog_cxx_g = yes; then
4186 if test "$GXX" = yes; then
4192 if test "$GXX" = yes; then
4198 ac_prog_cxx_stdcxx=no
4199 if test x$ac_prog_cxx_stdcxx = xno
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4202 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4203 if test ${ac_cv_prog_cxx_cxx11+y}
4205 printf %s "(cached) " >&6
4207 e) ac_cv_prog_cxx_cxx11=no
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 $ac_cxx_conftest_cxx11_program
4213 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4215 CXX="$ac_save_CXX $ac_arg"
4216 if ac_fn_cxx_try_compile "$LINENO"
4218 ac_cv_prog_cxx_cxx11=$ac_arg
4220 rm -f core conftest.err conftest.$ac_objext conftest.beam
4221 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4223 rm -f conftest.$ac_ext
4228 if test "x$ac_cv_prog_cxx_cxx11" = xno
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 printf "%s\n" "unsupported" >&6; }
4233 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 printf "%s\n" "none needed" >&6; }
4238 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4239 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4240 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4243 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4244 ac_prog_cxx_stdcxx=cxx11 ;;
4248 if test x$ac_prog_cxx_stdcxx = xno
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4251 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4252 if test ${ac_cv_prog_cxx_cxx98+y}
4254 printf %s "(cached) " >&6
4256 e) ac_cv_prog_cxx_cxx98=no
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 $ac_cxx_conftest_cxx98_program
4262 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4264 CXX="$ac_save_CXX $ac_arg"
4265 if ac_fn_cxx_try_compile "$LINENO"
4267 ac_cv_prog_cxx_cxx98=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext conftest.beam
4270 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4272 rm -f conftest.$ac_ext
4277 if test "x$ac_cv_prog_cxx_cxx98" = xno
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 printf "%s\n" "unsupported" >&6; }
4282 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4285 printf "%s\n" "none needed" >&6; }
4287 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4288 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4289 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4292 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4293 ac_prog_cxx_stdcxx=cxx98 ;;
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 if test -z "$TEST_CXX"; then
4311 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4314 printf %s "checking whether $CXX can link programs... " >&6; }
4315 if test ${libc_cv_cxx_link_ok+y}
4317 printf %s "(cached) " >&6
4320 ac_cpp='$CXXCPP $CPPFLAGS'
4321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325 # Default, dynamic case.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4337 if ac_fn_cxx_try_link "$LINENO"
4339 libc_cv_cxx_link_ok=yes
4341 e) libc_cv_cxx_link_ok=no ;;
4344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4345 conftest$ac_exeext conftest.$ac_ext
4346 if test $static_cxx_link_check$static_cxx_tests = yesyes; then
4348 old_LDFLAGS="$LDFLAGS"
4349 LDFLAGS="$LDFLAGS -static"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4358 std::cout << "Hello, world!";
4363 if ac_fn_cxx_try_link "$LINENO"
4367 e) libc_cv_cxx_link_ok=no ;;
4370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4371 conftest$ac_exeext conftest.$ac_ext
4372 LDFLAGS="$old_LDFLAGS"
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4383 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4385 if test $libc_cv_cxx_link_ok != yes
4390 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4391 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4394 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4396 # Check whether --with-gd was given.
4397 if test ${with_gd+y}
4399 withval=$with_gd; case "$with_gd" in
4401 *) libgd_include="-I$withval/include"
4402 libgd_ldflags="-L$withval/lib" ;;
4408 # Check whether --with-gd-include was given.
4409 if test ${with_gd_include+y}
4411 withval=$with_gd_include; case "$with_gd_include" in
4413 *) libgd_include="-I$withval" ;;
4419 # Check whether --with-gd-lib was given.
4420 if test ${with_gd_lib+y}
4422 withval=$with_gd_lib; case "$with_gd_lib" in
4424 *) libgd_ldflags="-L$withval" ;;
4430 if test -n "$libgd_include"; then
4431 config_vars="$config_vars
4432 CFLAGS-memusagestat.c = $libgd_include"
4434 if test -n "$libgd_ldflags"; then
4435 config_vars="$config_vars
4436 libgd-LDFLAGS = $libgd_ldflags"
4440 # Check whether --with-binutils was given.
4441 if test ${with_binutils+y}
4443 withval=$with_binutils; path_binutils=$withval
4445 e) path_binutils='' ;;
4450 # Check whether --with-selinux was given.
4451 if test ${with_selinux+y}
4453 withval=$with_selinux; with_selinux=$withval
4455 e) with_selinux=auto ;;
4461 # Check whether --with-headers was given.
4462 if test ${with_headers+y}
4464 withval=$with_headers; sysheaders=$withval
4473 # Check whether --with-nonshared-cflags was given.
4474 if test ${with_nonshared_cflags+y}
4476 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4478 e) extra_nonshared_cflags= ;;
4484 # Check whether --with-rtld-early-cflags was given.
4485 if test ${with_rtld_early_cflags+y}
4487 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4489 e) rtld_early_cflags= ;;
4496 # Check whether --with-timeoutfactor was given.
4497 if test ${with_timeoutfactor+y}
4499 withval=$with_timeoutfactor; timeoutfactor=$withval
4501 e) timeoutfactor=1 ;;
4505 printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4508 man_pages_version=6.9.1
4511 # Check whether --with-man-pages was given.
4512 if test ${with_man_pages+y}
4514 withval=$with_man_pages; man_pages_version=$withval
4519 # Check whether --enable-sanity-checks was given.
4520 if test ${enable_sanity_checks+y}
4522 enableval=$enable_sanity_checks; enable_sanity=$enableval
4524 e) enable_sanity=yes ;;
4529 # Check whether --enable-shared was given.
4530 if test ${enable_shared+y}
4532 enableval=$enable_shared; shared=$enableval
4538 # Check whether --enable-profile was given.
4539 if test ${enable_profile+y}
4541 enableval=$enable_profile; profile=$enableval
4547 # Check whether --enable-default-pie was given.
4548 if test ${enable_default_pie+y}
4550 enableval=$enable_default_pie; default_pie=$enableval
4552 e) default_pie=yes ;;
4556 # Check whether --enable-timezone-tools was given.
4557 if test ${enable_timezone_tools+y}
4559 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4561 e) enable_timezone_tools=yes ;;
4567 # Check whether --enable-hardcoded-path-in-tests was given.
4568 if test ${enable_hardcoded_path_in_tests+y}
4570 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4572 e) hardcoded_path_in_tests=no ;;
4578 # Check whether --enable-hidden-plt was given.
4579 if test ${enable_hidden_plt+y}
4581 enableval=$enable_hidden_plt; hidden=$enableval
4587 if test "x$hidden" = xno; then
4588 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4592 # Check whether --enable-bind-now was given.
4593 if test ${enable_bind_now+y}
4595 enableval=$enable_bind_now; bindnow=$enableval
4602 if test "x$bindnow" = xyes; then
4603 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4607 # Check whether --enable-stack-protector was given.
4608 if test ${enable_stack_protector+y}
4610 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4612 e) enable_stack_protector=no ;;
4616 case "$enable_stack_protector" in
4617 all|yes|no|strong) ;;
4618 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4621 # Check whether --enable-static-nss was given.
4622 if test ${enable_static_nss+y}
4624 enableval=$enable_static_nss; static_nss=$enableval
4630 if test x"$static_nss" = xyes || test x"$shared" = xno; then
4632 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4636 # Check whether --enable-force-install was given.
4637 if test ${enable_force_install+y}
4639 enableval=$enable_force_install; force_install=$enableval
4641 e) force_install=yes ;;
4647 # Check whether --enable-maintainer-mode was given.
4648 if test ${enable_maintainer_mode+y}
4650 enableval=$enable_maintainer_mode; maintainer=$enableval
4657 # Check whether --enable-kernel was given.
4658 if test ${enable_kernel+y}
4660 enableval=$enable_kernel; minimum_kernel=$enableval
4663 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4664 # Better nothing than this.
4667 if test "$minimum_kernel" = current; then
4668 minimum_kernel=`uname
-r 2>/dev
/null
` || minimum_kernel=
4672 # Check whether --enable-werror was given.
4673 if test ${enable_werror+y}
4675 enableval=$enable_werror; enable_werror=$enableval
4677 e) enable_werror=yes ;;
4683 # Check whether --enable-multi-arch was given.
4684 if test ${enable_multi_arch+y}
4686 enableval=$enable_multi_arch; multi_arch=$enableval
4688 e) multi_arch=default ;;
4693 # Check whether --enable-memory-tagging was given.
4694 if test ${enable_memory_tagging+y}
4696 enableval=$enable_memory_tagging; memory_tagging=$enableval
4698 e) memory_tagging=no ;;
4702 if test "$memory_tagging" = yes; then
4703 # Only enable this on architectures that support it.
4706 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4713 # Check whether --enable-systemtap was given.
4714 if test ${enable_systemtap+y}
4716 enableval=$enable_systemtap; systemtap=$enableval
4722 if test "x$systemtap" != xno; then
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4725 printf %s "checking for systemtap static probe support... " >&6; }
4726 if test ${libc_cv_sdt+y}
4728 printf %s "(cached) " >&6
4730 e) old_CFLAGS="$CFLAGS"
4731 CFLAGS="-std=gnu11 $CFLAGS"
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <sys/sdt.h>
4735 void foo (int i, void *p)
4737 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4738 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4741 if ac_fn_c_try_compile "$LINENO"
4745 e) libc_cv_sdt=no ;;
4748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4749 CFLAGS="$old_CFLAGS" ;;
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4753 printf "%s\n" "$libc_cv_sdt" >&6; }
4754 if test $libc_cv_sdt = yes; then
4755 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4757 elif test "x$systemtap" != xauto; then
4758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4759 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4760 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
4761 See 'config.log' for more details" "$LINENO" 5; }
4765 # Check whether --enable-build-nscd was given.
4766 if test ${enable_build_nscd+y}
4768 enableval=$enable_build_nscd; build_nscd=$enableval
4770 e) build_nscd=default ;;
4776 # Note the use of $use_nscd is near the bottom of the file.
4777 # Check whether --enable-nscd was given.
4778 if test ${enable_nscd+y}
4780 enableval=$enable_nscd; use_nscd=$enableval
4787 # Check whether --enable-pt_chown was given.
4788 if test ${enable_pt_chown+y}
4790 enableval=$enable_pt_chown; build_pt_chown=$enableval
4792 e) build_pt_chown=no ;;
4797 if test "$build_pt_chown" = yes; then
4798 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4802 # The abi-tags file uses a fairly simplistic model for name recognition that
4803 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4804 # $host_os of `gnu
*' here to be `gnu-gnu*' just so that it can tell.
4805 # This doesn't get used much beyond that, so it's fairly safe.
4810 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4814 # Check whether --enable-mathvec was given.
4815 if test ${enable_mathvec+y}
4817 enableval
=$enable_mathvec; build_mathvec
=$enableval
4819 e
) build_mathvec
=notset
;;
4825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4833 # error no CET compiler support
4839 if ac_fn_c_try_cpp
"$LINENO"
4841 libc_cv_compiler_default_cet
=yes
4843 e
) libc_cv_compiler_default_cet
=no
;;
4846 rm -f conftest.err conftest.i conftest.
$ac_ext
4848 # Check whether --enable-cet was given.
4849 if test ${enable_cet+y}
4851 enableval
=$enable_cet; enable_cet
=$enableval
4853 e
) enable_cet
=$libc_cv_compiler_default_cet ;;
4858 # Check whether --enable-scv was given.
4859 if test ${enable_scv+y}
4861 enableval
=$enable_scv; use_scv
=$enableval
4868 if test "$use_scv" != "no"
4870 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4874 # Check whether --enable-fortify-source was given.
4875 if test ${enable_fortify_source+y}
4877 enableval
=$enable_fortify_source; enable_fortify_source
=$enableval
4879 e
) enable_fortify_source
=no
;;
4883 case "$enable_fortify_source" in
4885 *) as_fn_error $?
"Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4888 # We keep the original values in `$config_*' and never modify them, so we
4889 # can write them unchanged into config.make. Everything else uses
4890 # $machine, $vendor, and $os, and changes them whenever convenient.
4891 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
4893 # Don't allow vendor == "unknown"
4894 test "$config_vendor" = unknown
&& config_vendor
=
4895 config_os
="`echo $config_os | sed 's/^unknown-//'`"
4897 # Some configurations imply other options.
4900 # The configure fragment of a port can modify these to supplement
4901 # or override the table in the case statement below. No fragment should
4902 # ever change the config_* variables, however.
4903 machine
=$config_machine
4904 vendor
=$config_vendor
4910 # Check whether --with-cpu was given.
4911 if test ${with_cpu+y}
4913 withval
=$with_cpu; case "$withval" in
4914 yes|
'') as_fn_error $?
"--with-cpu requires an argument" "$LINENO" 5 ;;
4916 *) submachine
="$withval" ;;
4922 # An preconfigure script can set this when it wants to disable the sanity
4926 # A preconfigure script for a system that may or may not use fpu
4927 # sysdeps directories sets this to a preprocessor conditional for
4928 # whether to use such directories.
4931 # A preconfigure script may define another name to TLS descriptor variant
4932 mtls_descriptor
=gnu2
4934 # A preconfigure script may define another name to traditional TLS variant
4935 mtls_traditional
=gnu
4937 if frags
=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4940 printf %s
"checking for sysdeps preconfigure fragments... " >&6; }
4941 for frag
in $frags; do
4942 name
=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4943 echo $ECHO_N "$name $ECHO_C" >&6
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4947 printf "%s\n" "" >&6; }
4952 ### By using the undocumented --enable-hacker-mode option for configure
4953 ### one can skip this test to make the configuration not fail for unsupported
4956 if test -z "$enable_hacker_mode" && test x
"$libc_config_ok" != xyes
; then
4957 case "$machine-$host_os" in
4962 *** The GNU C library is currently unavailable for this platform.
4963 *** If you are interested in seeing glibc on this platform visit
4964 *** the \"How to submit a new port\" in the wiki:
4965 *** https://sourceware.org/glibc/wiki/#Development
4966 *** and join the community!" "$LINENO" 5
4971 # Set base_machine if not set by a preconfigure fragment.
4972 test -n "$base_machine" || base_machine
=$machine
4978 # Find a good install program. We prefer a C program (faster),
4979 # so one script is as good as another. But avoid the broken or
4980 # incompatible versions:
4981 # SysV /etc/install, /usr/sbin/install
4982 # SunOS /usr/etc/install
4983 # IRIX /sbin/install
4985 # AmigaOS /C/install, which installs bootblocks on floppy discs
4986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4989 # OS/2's system install, which has a completely different semantic
4990 # ./install, which can be erroneously created by make from ./install.sh.
4991 # Reject install programs that cannot install multiple files.
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4993 printf %s
"checking for a BSD-compatible install... " >&6; }
4994 if test -z "$INSTALL"; then
4995 if test ${ac_cv_path_install+y}
4997 printf %s
"(cached) " >&6
4999 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 case $as_dir in #(((
5006 *) as_dir
=$as_dir/ ;;
5008 # Account for fact that we put trailing slashes in our PATH walk.
5011 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5012 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5015 # OSF1 and SCO ODT 3.0 have their own names for install.
5016 # Don't use installbsd from OSF since it installs stuff as root
5018 for ac_prog
in ginstall scoinst
install; do
5019 for ac_exec_ext
in '' $ac_executable_extensions; do
5020 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
5021 if test $ac_prog = install &&
5022 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5023 # AIX install. It has an incompatible calling convention.
5025 elif test $ac_prog = install &&
5026 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5027 # program-specific install script used by HP pwplus--don't use.
5030 rm -rf conftest.one conftest.two conftest.dir
5031 echo one
> conftest.one
5032 echo two
> conftest.two
5034 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
5035 test -s conftest.one
&& test -s conftest.two
&&
5036 test -s conftest.dir
/conftest.one
&&
5037 test -s conftest.dir
/conftest.two
5039 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
5052 rm -rf conftest.one conftest.two conftest.dir
5056 if test ${ac_cv_path_install+y}; then
5057 INSTALL
=$ac_cv_path_install
5059 # As a last resort, use the slow shell script. Don't cache a
5060 # value for INSTALL within a source directory, because that will
5061 # break other packages using the cache if that directory is
5062 # removed, or if the value is a relative name.
5063 INSTALL
=$ac_install_sh
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5067 printf "%s\n" "$INSTALL" >&6; }
5069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5070 # It thinks the first close brace ends the variable substitution.
5071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5075 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5077 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
5078 # The makefiles need to use a different form to find it in $srcdir.
5079 INSTALL
='\$(..)./scripts/install-sh -c'
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5082 printf %s
"checking whether ln -s works... " >&6; }
5084 if test "$LN_S" = "ln -s"; then
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086 printf "%s\n" "yes" >&6; }
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5089 printf "%s\n" "no, using $LN_S" >&6; }
5093 # Was a --with-binutils option given?
5094 if test -n "$path_binutils"; then
5095 # Make absolute; ensure a single trailing slash.
5096 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5097 CC
="$CC -B$path_binutils"
5100 *fuse-ld
=lld
*) LDNAME
=ld.lld
;;
5103 if test -z "$LD"; then
5104 LD
=`$CC -print-prog-name=$LDNAME`
5106 if test -z "$AR"; then
5107 AR
=`$CC -print-prog-name=ar`
5110 if test -z "$OBJCOPY"; then
5111 OBJCOPY
=`$CC -print-prog-name=objcopy`
5114 if test -z "$GPROF"; then
5115 GPROF
=`$CC -print-prog-name=gprof`
5118 if test -z "$READELF"; then
5119 READELF
=`$CC -print-prog-name=readelf`
5122 if test -z "$OBJDUMP"; then
5123 OBJDUMP
=`$CC -print-prog-name=objdump`
5126 if test -z "$NM"; then
5127 NM
=`$CC -print-prog-name=nm`
5132 # Accept binutils 2.39 or newer.
5134 case $
($LD --version) in
5136 # Accept gold 1.14 or higher
5139 # Extract the first word of "$ac_prog", so it can be a program name with args.
5140 set dummy
$ac_prog; ac_word
=$2
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 printf %s
"checking for $ac_word... " >&6; }
5143 if test ${ac_cv_prog_LD+y}
5145 printf %s
"(cached) " >&6
5147 e
) if test -n "$LD"; then
5148 ac_cv_prog_LD
="$LD" # Let the user override the test.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 case $as_dir in #(((
5157 *) as_dir
=$as_dir/ ;;
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_LD
="$ac_prog"
5162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5173 if test -n "$LD"; then
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5175 printf "%s\n" "$LD" >&6; }
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 printf "%s\n" "no" >&6; }
5182 test -n "$LD" && break
5185 if test -z "$LD"; then
5188 # Found it, now check the version.
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5190 printf %s
"checking version of $LD... " >&6; }
5191 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5192 case $ac_prog_version in
5193 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5194 1.1[4-9]*|
1.
[2-9][0-9]*|
1.1[0-9][0-9]*|
[2-9].
*|
[1-9][0-9]*)
5195 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5196 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5200 printf "%s\n" "$ac_prog_version" >&6; }
5202 if test $ac_verc_fail = yes; then
5203 LD
=: critic_missing
="$critic_missing GNU gold"
5208 # Accept LLD 13.0.0 or higher
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy
$ac_prog; ac_word
=$2
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 printf %s
"checking for $ac_word... " >&6; }
5215 if test ${ac_cv_prog_LD+y}
5217 printf %s
"(cached) " >&6
5219 e
) if test -n "$LD"; then
5220 ac_cv_prog_LD
="$LD" # Let the user override the test.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 case $as_dir in #(((
5229 *) as_dir
=$as_dir/ ;;
5231 for ac_exec_ext
in '' $ac_executable_extensions; do
5232 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_LD
="$ac_prog"
5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5245 if test -n "$LD"; then
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5247 printf "%s\n" "$LD" >&6; }
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 printf "%s\n" "no" >&6; }
5254 test -n "$LD" && break
5257 if test -z "$LD"; then
5260 # Found it, now check the version.
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5262 printf %s
"checking version of $LD... " >&6; }
5263 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5264 case $ac_prog_version in
5265 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5266 1[3-9].
*|
[2-9][0-9].
*)
5267 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5268 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5272 printf "%s\n" "$ac_prog_version" >&6; }
5274 if test $ac_verc_fail = yes; then
5275 LD
=: critic_missing
="$critic_missing LLD"
5278 libc_cv_with_lld
=yes
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284 set dummy
$ac_prog; ac_word
=$2
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 printf %s
"checking for $ac_word... " >&6; }
5287 if test ${ac_cv_prog_LD+y}
5289 printf %s
"(cached) " >&6
5291 e
) if test -n "$LD"; then
5292 ac_cv_prog_LD
="$LD" # Let the user override the test.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5298 case $as_dir in #(((
5301 *) as_dir
=$as_dir/ ;;
5303 for ac_exec_ext
in '' $ac_executable_extensions; do
5304 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_LD
="$ac_prog"
5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5317 if test -n "$LD"; then
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5319 printf "%s\n" "$LD" >&6; }
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 printf "%s\n" "no" >&6; }
5326 test -n "$LD" && break
5329 if test -z "$LD"; then
5332 # Found it, now check the version.
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5334 printf %s
"checking version of $LD... " >&6; }
5335 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5336 case $ac_prog_version in
5337 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5338 2.
[1-9][0-9][0-9]*|
2.39*|
2.
[4-9][0-9]*|
[3-9].
*|
[1-9][0-9]*)
5339 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5340 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5344 printf "%s\n" "$ac_prog_version" >&6; }
5346 if test $ac_verc_fail = yes; then
5347 LD
=: critic_missing
="$critic_missing GNU ld"
5352 config_vars
="$config_vars
5353 with-lld = $libc_cv_with_lld"
5355 # These programs are version sensitive.
5356 for ac_prog
in gnumake gmake
make
5358 # Extract the first word of "$ac_prog", so it can be a program name with args.
5359 set dummy
$ac_prog; ac_word
=$2
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 printf %s
"checking for $ac_word... " >&6; }
5362 if test ${ac_cv_prog_MAKE+y}
5364 printf %s
"(cached) " >&6
5366 e
) if test -n "$MAKE"; then
5367 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 case $as_dir in #(((
5376 *) as_dir
=$as_dir/ ;;
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_MAKE
="$ac_prog"
5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5391 MAKE
=$ac_cv_prog_MAKE
5392 if test -n "$MAKE"; then
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5394 printf "%s\n" "$MAKE" >&6; }
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 printf "%s\n" "no" >&6; }
5401 test -n "$MAKE" && break
5404 if test -z "$MAKE"; then
5407 # Found it, now check the version.
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5409 printf %s
"checking version of $MAKE... " >&6; }
5410 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5411 case $ac_prog_version in
5412 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5413 [4-9].
* |
[1-9][0-9]*)
5414 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5415 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5419 printf "%s\n" "$ac_prog_version" >&6; }
5421 if test $ac_verc_fail = yes; then
5422 critic_missing
="$critic_missing make"
5426 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy
$ac_prog; ac_word
=$2
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 printf %s
"checking for $ac_word... " >&6; }
5432 if test ${ac_cv_prog_MSGFMT+y}
5434 printf %s
"(cached) " >&6
5436 e
) if test -n "$MSGFMT"; then
5437 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
5439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5443 case $as_dir in #(((
5446 *) as_dir
=$as_dir/ ;;
5448 for ac_exec_ext
in '' $ac_executable_extensions; do
5449 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_MSGFMT
="$ac_prog"
5451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5461 MSGFMT
=$ac_cv_prog_MSGFMT
5462 if test -n "$MSGFMT"; then
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5464 printf "%s\n" "$MSGFMT" >&6; }
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 printf "%s\n" "no" >&6; }
5471 test -n "$MSGFMT" && break
5474 if test -z "$MSGFMT"; then
5477 # Found it, now check the version.
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5479 printf %s
"checking version of $MSGFMT... " >&6; }
5480 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5481 case $ac_prog_version in
5482 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5483 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
5484 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5485 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5489 printf "%s\n" "$ac_prog_version" >&6; }
5491 if test $ac_verc_fail = yes; then
5492 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
5495 for ac_prog
in makeinfo
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy
$ac_prog; ac_word
=$2
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 printf %s
"checking for $ac_word... " >&6; }
5501 if test ${ac_cv_prog_MAKEINFO+y}
5503 printf %s
"(cached) " >&6
5505 e
) if test -n "$MAKEINFO"; then
5506 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5512 case $as_dir in #(((
5515 *) as_dir
=$as_dir/ ;;
5517 for ac_exec_ext
in '' $ac_executable_extensions; do
5518 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_MAKEINFO
="$ac_prog"
5520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5530 MAKEINFO
=$ac_cv_prog_MAKEINFO
5531 if test -n "$MAKEINFO"; then
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5533 printf "%s\n" "$MAKEINFO" >&6; }
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 printf "%s\n" "no" >&6; }
5540 test -n "$MAKEINFO" && break
5543 if test -z "$MAKEINFO"; then
5546 # Found it, now check the version.
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5548 printf %s
"checking version of $MAKEINFO... " >&6; }
5549 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5550 case $ac_prog_version in
5551 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5552 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9].
*)
5553 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5554 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5558 printf "%s\n" "$ac_prog_version" >&6; }
5560 if test $ac_verc_fail = yes; then
5561 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy
$ac_prog; ac_word
=$2
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 printf %s
"checking for $ac_word... " >&6; }
5570 if test ${ac_cv_prog_SED+y}
5572 printf %s
"(cached) " >&6
5574 e
) if test -n "$SED"; then
5575 ac_cv_prog_SED
="$SED" # Let the user override the test.
5577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5581 case $as_dir in #(((
5584 *) as_dir
=$as_dir/ ;;
5586 for ac_exec_ext
in '' $ac_executable_extensions; do
5587 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_SED
="$ac_prog"
5589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5600 if test -n "$SED"; then
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5602 printf "%s\n" "$SED" >&6; }
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 printf "%s\n" "no" >&6; }
5609 test -n "$SED" && break
5612 if test -z "$SED"; then
5615 # Found it, now check the version.
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5617 printf %s
"checking version of $SED... " >&6; }
5618 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5619 case $ac_prog_version in
5620 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5621 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
5622 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5623 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5627 printf "%s\n" "$ac_prog_version" >&6; }
5629 if test $ac_verc_fail = yes; then
5630 SED
=: aux_missing
="$aux_missing sed"
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy
$ac_prog; ac_word
=$2
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 printf %s
"checking for $ac_word... " >&6; }
5639 if test ${ac_cv_prog_AWK+y}
5641 printf %s
"(cached) " >&6
5643 e
) if test -n "$AWK"; then
5644 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5650 case $as_dir in #(((
5653 *) as_dir
=$as_dir/ ;;
5655 for ac_exec_ext
in '' $ac_executable_extensions; do
5656 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_AWK
="$ac_prog"
5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5669 if test -n "$AWK"; then
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5671 printf "%s\n" "$AWK" >&6; }
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 printf "%s\n" "no" >&6; }
5678 test -n "$AWK" && break
5681 if test -z "$AWK"; then
5684 # Found it, now check the version.
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5686 printf %s
"checking version of $AWK... " >&6; }
5687 ac_prog_version
=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5688 case $ac_prog_version in
5689 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5690 3.1.
[2-9]*|
3.
[2-9]*|
[4-9]*)
5691 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5692 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5696 printf "%s\n" "$ac_prog_version" >&6; }
5698 if test $ac_verc_fail = yes; then
5699 critic_missing
="$critic_missing gawk"
5702 for ac_prog
in bison
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy
$ac_prog; ac_word
=$2
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 printf %s
"checking for $ac_word... " >&6; }
5708 if test ${ac_cv_prog_BISON+y}
5710 printf %s
"(cached) " >&6
5712 e
) if test -n "$BISON"; then
5713 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5719 case $as_dir in #(((
5722 *) as_dir
=$as_dir/ ;;
5724 for ac_exec_ext
in '' $ac_executable_extensions; do
5725 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_BISON
="$ac_prog"
5727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5737 BISON
=$ac_cv_prog_BISON
5738 if test -n "$BISON"; then
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5740 printf "%s\n" "$BISON" >&6; }
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 printf "%s\n" "no" >&6; }
5747 test -n "$BISON" && break
5750 if test -z "$BISON"; then
5753 # Found it, now check the version.
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5755 printf %s
"checking version of $BISON... " >&6; }
5756 ac_prog_version
=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5757 case $ac_prog_version in
5758 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5759 2.7*|
[3-9].
*|
[1-9][0-9]*)
5760 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5761 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5765 printf "%s\n" "$ac_prog_version" >&6; }
5767 if test $ac_verc_fail = yes; then
5768 critic_missing
="$critic_missing bison"
5772 # Require GCC 12.1 to build.
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5774 printf %s
"checking if $CC is sufficient to build libc... " >&6; }
5775 if test ${libc_cv_compiler_ok+y}
5777 printf %s
"(cached) " >&6
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5787 #if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)
5788 #error insufficient compiler
5794 if ac_fn_c_try_cpp
"$LINENO"
5796 libc_cv_compiler_ok
=yes
5798 e
) libc_cv_compiler_ok
=no
;;
5801 rm -f conftest.err conftest.i conftest.
$ac_ext ;;
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5805 printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5806 if test $libc_cv_compiler_ok != yes
5808 critic_missing
="$critic_missing compiler"
5811 if test "x$maintainer" = "xyes"; then
5812 for ac_prog
in autoconf
5814 # Extract the first word of "$ac_prog", so it can be a program name with args.
5815 set dummy
$ac_prog; ac_word
=$2
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 printf %s
"checking for $ac_word... " >&6; }
5818 if test ${ac_cv_prog_AUTOCONF+y}
5820 printf %s
"(cached) " >&6
5822 e
) if test -n "$AUTOCONF"; then
5823 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
5825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5829 case $as_dir in #(((
5832 *) as_dir
=$as_dir/ ;;
5834 for ac_exec_ext
in '' $ac_executable_extensions; do
5835 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_AUTOCONF
="$ac_prog"
5837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5847 AUTOCONF
=$ac_cv_prog_AUTOCONF
5848 if test -n "$AUTOCONF"; then
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5850 printf "%s\n" "$AUTOCONF" >&6; }
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 printf "%s\n" "no" >&6; }
5857 test -n "$AUTOCONF" && break
5859 test -n "$AUTOCONF" || AUTOCONF
="no"
5861 case "x$AUTOCONF" in
5862 xno|x|x
:) AUTOCONF
=no
;;
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5865 printf %s
"checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5866 if test ${libc_cv_autoconf_works+y}
5868 printf %s
"(cached) " >&6
5870 e
) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac
> /dev
/null
2>&1); then
5871 libc_cv_autoconf_works
=yes
5873 libc_cv_autoconf_works
=no
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5878 printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5879 test $libc_cv_autoconf_works = yes || AUTOCONF
=no
5882 if test "x$AUTOCONF" = xno
; then
5883 aux_missing
="$aux_missing autoconf"
5889 # Check for python3 if available, or else python.
5890 for ac_prog
in python3 python
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy
$ac_prog; ac_word
=$2
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 printf %s
"checking for $ac_word... " >&6; }
5896 if test ${ac_cv_prog_PYTHON_PROG+y}
5898 printf %s
"(cached) " >&6
5900 e
) if test -n "$PYTHON_PROG"; then
5901 ac_cv_prog_PYTHON_PROG
="$PYTHON_PROG" # Let the user override the test.
5903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5907 case $as_dir in #(((
5910 *) as_dir
=$as_dir/ ;;
5912 for ac_exec_ext
in '' $ac_executable_extensions; do
5913 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_PYTHON_PROG
="$ac_prog"
5915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925 PYTHON_PROG
=$ac_cv_prog_PYTHON_PROG
5926 if test -n "$PYTHON_PROG"; then
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5928 printf "%s\n" "$PYTHON_PROG" >&6; }
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 printf "%s\n" "no" >&6; }
5935 test -n "$PYTHON_PROG" && break
5938 if test -z "$PYTHON_PROG"; then
5941 # Found it, now check the version.
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5943 printf %s
"checking version of $PYTHON_PROG... " >&6; }
5944 ac_prog_version
=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5945 case $ac_prog_version in
5946 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5947 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*)
5948 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5949 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5953 printf "%s\n" "$ac_prog_version" >&6; }
5955 if test $ac_verc_fail = yes; then
5956 critic_missing
="$critic_missing python"
5959 PYTHON
="$PYTHON_PROG -B"
5962 test -n "$critic_missing" && as_fn_error $?
"
5963 *** These critical programs are missing or too old:$critic_missing
5964 *** Check the INSTALL file for required versions." "$LINENO" 5
5966 test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5967 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5968 *** some features or tests will be disabled.
5969 *** Check the INSTALL file for required versions." >&5
5970 printf "%s\n" "$as_me: WARNING:
5971 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5972 *** some features or tests will be disabled.
5973 *** Check the INSTALL file for required versions." >&2;}
5976 # Determine whether to use fpu or nofpu sysdeps directories.
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5978 printf %s
"checking for use of fpu sysdeps directories... " >&6; }
5979 if test ${libc_cv_with_fp+y}
5981 printf %s
"(cached) " >&6
5983 e
) cat > conftest.c
<<EOF
5987 # error "no hardware floating point"
5991 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c
-o conftest.s \
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5999 printf "%s\n" "$libc_cv_with_fp" >&6; }
6009 cat > conftest.c
<<EOF
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
6016 printf %s
"checking for clang in testing... " >&6; }
6017 if test ${libc_cv_test_clang+y}
6019 printf %s
"(cached) " >&6
6021 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
6022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; }
6028 libc_cv_test_clang
=yes
6030 libc_cv_test_clang
=no
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang" >&5
6035 printf "%s\n" "$libc_cv_test_clang" >&6; }
6040 config_vars
="$config_vars
6041 have-test-clang = $libc_cv_test_clang"
6044 cat > conftest.cc
<<EOF
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang++ in testing" >&5
6051 printf %s
"checking for clang++ in testing... " >&6; }
6052 if test ${libc_cv_test_clangxx+y}
6054 printf %s
"(cached) " >&6
6056 e
) if { ac_try
='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
6057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }; }
6063 libc_cv_test_clangxx
=yes
6065 libc_cv_test_clangxx
=no
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clangxx" >&5
6070 printf "%s\n" "$libc_cv_test_clangxx" >&6; }
6075 config_vars
="$config_vars
6076 have-test-clangxx = $libc_cv_test_clangxx"
6078 if test "$libc_cv_test_clang" = "yes"; then
6080 #if __clang_major__ > 19
6081 #error clang version > 19
6085 cat > conftest.c
<<EOF
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5
6092 printf %s
"checking for clang in testing... " >&6; }
6093 if test ${libc_cv_test_clang_19_or_less+y}
6095 printf %s
"(cached) " >&6
6097 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5'
6098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; }
6104 libc_cv_test_clang_19_or_less
=yes
6106 libc_cv_test_clang_19_or_less
=no
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang_19_or_less" >&5
6111 printf "%s\n" "$libc_cv_test_clang_19_or_less" >&6; }
6117 config_vars
="$config_vars
6118 have-test-clang-19-or-less = $libc_cv_test_clang_19_or_less"
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6122 printf %s
"checking for -fstack-protector... " >&6; }
6123 if test ${libc_cv_ssp+y}
6125 printf %s
"(cached) " >&6
6127 e
) if { ac_try
='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; }
6136 e
) libc_cv_ssp
=no
;;
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6142 printf "%s\n" "$libc_cv_ssp" >&6; }
6143 if test "$TEST_CC" = "$CC"; then
6144 libc_cv_test_ssp
=$libc_cv_ssp
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector in testing" >&5
6150 printf %s
"checking for -fstack-protector in testing... " >&6; }
6151 if test ${libc_cv_test_ssp+y}
6153 printf %s
"(cached) " >&6
6155 e
) if { ac_try
='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; }
6162 libc_cv_test_ssp
=yes
6164 e
) libc_cv_test_ssp
=no
;;
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_ssp" >&5
6170 printf "%s\n" "$libc_cv_test_ssp" >&6; }
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
6178 printf %s
"checking for -fstack-protector-strong... " >&6; }
6179 if test ${libc_cv_ssp_strong+y}
6181 printf %s
"(cached) " >&6
6183 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
6184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; }; }
6190 libc_cv_ssp_strong
=yes
6192 e
) libc_cv_ssp_strong
=no
;;
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6199 printf "%s\n" "$libc_cv_ssp_strong" >&6; }
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
6202 printf %s
"checking for -fstack-protector-all... " >&6; }
6203 if test ${libc_cv_ssp_all+y}
6205 printf %s
"(cached) " >&6
6207 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
6208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; }
6216 e
) libc_cv_ssp_all
=no
;;
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6223 printf "%s\n" "$libc_cv_ssp_all" >&6; }
6227 if test "$libc_cv_ssp" = yes; then
6228 no_stack_protector
="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
6229 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6232 if test "$libc_cv_test_ssp" = yes; then
6233 printf "%s\n" "#define HAVE_TEST_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6238 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6239 stack_protector
="-fstack-protector"
6240 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
6242 elif test "$enable_stack_protector" = all
&& test "$libc_cv_ssp_all" = yes; then
6243 stack_protector
="-fstack-protector-all"
6244 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
6246 elif test "$enable_stack_protector" = strong
&& test "$libc_cv_ssp_strong" = yes; then
6247 stack_protector
="-fstack-protector-strong"
6248 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
6251 stack_protector
="-fno-stack-protector"
6252 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
6259 if test -n "$stack_protector"; then
6260 no_ssp
=-fno-stack-protector
6264 if test "$enable_stack_protector" != no
; then
6265 as_fn_error $?
"--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
6269 # For the multi-arch option we need support in the assembler & linker.
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
6271 printf %s
"checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
6272 if test ${libc_cv_ld_gnu_indirect_function+y}
6274 printf %s
"(cached) " >&6
6276 e
) cat > conftest.S
<<EOF
6277 .type foo,%gnu_indirect_function
6290 libc_cv_ld_gnu_indirect_function
=no
6291 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6292 -nostartfiles -nostdlib $no_ssp \
6293 -o conftest conftest.S
1>&5 2>&5; then
6294 # Do a link to see if the backend supports IFUNC relocs.
6295 $READELF -r conftest
1>&5
6296 LC_ALL
=C
$READELF -Wr conftest |
grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
6297 libc_cv_ld_gnu_indirect_function
=yes
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
6304 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
6306 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
6308 printf %s
"checking for gcc attribute ifunc support... " >&6; }
6309 if test ${libc_cv_gcc_indirect_function+y}
6311 printf %s
"(cached) " >&6
6313 e
) cat > conftest.c
<<EOF
6314 extern int func (int);
6315 int used_func (int a)
6319 static void *resolver ()
6323 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
6325 libc_cv_gcc_indirect_function
=no
6326 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 \
6328 if $READELF -s conftest.o |
grep IFUNC
>/dev
/null
2>&5; then
6329 libc_cv_gcc_indirect_function
=yes
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
6336 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
6338 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
6339 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
6341 printf %s
"checking whether the linker supports textrels along with ifunc... " >&6; }
6342 if test ${libc_cv_textrel_ifunc+y}
6344 printf %s
"(cached) " >&6
6346 e
) cat > conftest.S
<<EOF
6347 .type foo,%gnu_indirect_function
6368 libc_cv_textrel_ifunc
=no
6369 if test $libc_cv_ld_gnu_indirect_function = yes; then
6370 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; }; then
6376 libc_cv_textrel_ifunc
=yes
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6383 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6386 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6388 printf %s
"checking for GNU attribute retain support... " >&6; }
6389 if test ${libc_cv_gnu_retain+y}
6391 printf %s
"(cached) " >&6
6393 e
) cat > conftest.c
<<EOF
6394 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6396 libc_cv_gnu_retain
=no
6397 if ${CC-cc} -Werror -c conftest.c
-o /dev
/null
1>&5 \
6399 libc_cv_gnu_retain
=yes
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6405 printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6406 if test $libc_cv_gnu_retain = yes; then
6407 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6410 config_vars
="$config_vars
6411 have-gnu-retain = $libc_cv_gnu_retain"
6413 # Check if gcc warns about alias for function with incompatible types.
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6415 printf %s
"checking if compiler warns about alias for function with incompatible types... " >&6; }
6416 if test ${libc_cv_gcc_incompatible_alias+y}
6418 printf %s
"(cached) " >&6
6420 e
) cat > conftest.c
<<EOF
6421 int __redirect_foo (const void *s, int c);
6423 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6424 __typeof (__redirect_foo) *foo_impl (void)
6429 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6431 libc_cv_gcc_incompatible_alias
=yes
6432 if ${CC-cc} -Werror -c conftest.c
-o conftest.o
1>&5 2>&5 ; then
6433 libc_cv_gcc_incompatible_alias
=no
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6439 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6441 if test x
"$libc_cv_ld_gnu_indirect_function" != xyes
; then
6442 if test x
"$multi_arch" = xyes
; then
6443 as_fn_error $?
"--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6448 if test x
"$libc_cv_gcc_indirect_function" != xyes
; then
6449 # GCC 8+ emits a warning for alias with incompatible types and it might
6450 # fail to build ifunc resolvers aliases to either weak or internal
6451 # symbols. Disables multiarch build in this case.
6452 if test x
"$libc_cv_gcc_incompatible_alias" = xyes
; then
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6454 printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6455 if test x
"$multi_arch" = xyes
; then
6456 as_fn_error $?
"--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6459 printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6461 elif test x
"$multi_arch" = xyes
; then
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6463 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6464 printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6465 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6469 if test x
"$multi_arch" != xno
; then
6470 multi_arch_d
=/multiarch
6473 # Compute the list of sysdep directories for this configuration.
6474 # This can take a while to compute.
6475 sysdep_dir
=$srcdir/sysdeps
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6477 printf %s
"checking sysdep dirs... " >&6; }
6478 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6479 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6481 test "x$base_os" != x ||
case "$os" in
6483 base_os
=mach
/hurd
;;
6485 base_os
=unix
/sysv
;;
6488 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6491 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6495 o
=`echo $tail | sed 's/[0-9]*$//'`
6496 if test $o != $tail; then
6499 # For linux-gnu, try linux-gnu, then linux.
6500 o
=`echo $tail | sed 's/-.*$//'`
6501 if test $o != $tail; then
6505 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6508 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6514 # For sparc/sparc32, try sparc/sparc32 and then sparc.
6516 tail=$machine${submachine:+/$submachine}
6517 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6519 # Prepend the machine's FPU directory unless the architecture specific
6520 # preconfigure disables it.
6521 if test "$libc_cv_with_fp" = yes; then
6526 # For each machine term, try it with and then without /multiarch.
6527 for try_fpu
in $maybe_fpu ''; do
6528 for try_multi
in $multi_arch_d ''; do
6529 mach
="$mach /$1$try_fpu$try_multi"
6536 # Find what sysdep directories exist.
6538 for b
in $base ''; do
6539 for m0
in $mach ''; do
6540 for v
in /$vendor ''; do
6541 test "$v" = / && continue
6542 for o
in /$ostry ''; do
6543 test "$o" = / && continue
6544 for m
in $mach ''; do
6545 try_suffix
="$m0$b$v$o$m"
6546 if test -n "$try_suffix"; then
6547 try_srcdir
="${srcdir}/"
6548 try
="sysdeps$try_suffix"
6549 test -n "$enable_debug_configure" &&
6550 echo "$0 DEBUG: try $try" >&2
6551 if test -d "$try_srcdir$try"; then
6552 sysnames
="$sysnames $try"
6553 { test -n "$o" ||
test -n "$b"; } && os_used
=t
6554 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
6556 x
*/$submachine) submachine_used
=t
;;
6566 # If the assembler supports gnu_indirect_function symbol type and the
6567 # architecture supports multi-arch, we enable multi-arch by default.
6572 test x
"$multi_arch" = xdefault
&& multi_arch
=no
6575 if test x
"$multi_arch" != xno
; then
6576 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6581 if test -z "$os_used" && test "$os" != none
; then
6582 as_fn_error $?
"Operating system $os is not supported." "$LINENO" 5
6584 if test -z "$machine_used" && test "$machine" != none
; then
6585 as_fn_error $?
"The $machine is not supported." "$LINENO" 5
6587 if test -z "$submachine_used" && test -n "$submachine"; then
6588 as_fn_error $?
"The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6592 # We have now validated the configuration.
6594 # Expand the list of system names into a full list of directories
6595 # from each element's parent name and Implies file (if present).
6598 while test $# -gt 0; do
6602 case " $names " in *" $name "*)
6603 # Already in the list.
6607 # Report each name as we discover it, so there is no long pause in output.
6608 echo $ECHO_N "$name $ECHO_C" >&6
6610 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6614 *) xsrcdir
=$srcdir/ ;;
6616 test -n "$enable_debug_configure" &&
6617 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6619 for implies_file
in Implies Implies-before Implies-after
; do
6620 implies_type
=`echo $implies_file | sed s/-/_/`
6621 eval ${implies_type}=
6622 if test -f $xsrcdir$name/$implies_file; then
6623 # Collect more names from the `Implies' file (removing comments).
6624 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6625 for x
in $implied_candidate; do
6627 if test -d $xsrcdir$name_base/$x; then
6628 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6633 test -n "$enable_debug_configure" &&
6634 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6635 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6637 eval "${implies_type}=\"\$${implies_type} \$try\""
6640 if test $found = no
; then
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6642 printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6648 # Add NAME to the list of names.
6649 names
="$names $name"
6651 # Find the parent of NAME, using the empty string if it has none.
6652 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6654 test -n "$enable_debug_configure" &&
6655 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6656 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6658 # Add the names implied by NAME, and NAME's parent (if it has one), to
6659 # the list of names to be processed (the argument list). We prepend the
6660 # implied names to the list and append the parent. We want implied
6661 # directories to come before further directories inferred from the
6662 # configuration components; this ensures that for sysv4, unix/common
6663 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6665 sysnames
="`echo $Implies $* $Implies_before $parent $Implies_after`"
6666 test -n "$sysnames" && set $sysnames
6669 # Add the default directories.
6670 default_sysnames
="sysdeps/generic"
6671 sysnames
="$names $default_sysnames"
6673 # The other names were emitted during the scan.
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6675 printf "%s\n" "$default_sysnames" >&6; }
6677 # if using special system headers, find out the compiler's sekrit
6678 # header directory and add that to the list. NOTE: Only does the right
6679 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6680 if test -n "$sysheaders"; then
6681 SYSINCLUDES
=-nostdinc
6682 for d
in include include-fixed
; do
6683 i
=`$CC -print-file-name="$d"` && test "x$i" != x
&& test "x$i" != "x$d" &&
6684 SYSINCLUDES
="$SYSINCLUDES -isystem $i"
6686 SYSINCLUDES
="$SYSINCLUDES \
6687 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6688 if test -n "$CXX"; then
6690 for cxxheaders
in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6691 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6692 test "x$cxxheaders" != x
&&
6693 CXX_SYSINCLUDES
="$CXX_SYSINCLUDES -isystem $cxxheaders"
6700 # Obtain some C++ header file paths. This is used to make a local
6701 # copy of those headers in Makerules.
6702 if test -n "$TEST_CXX"; then
6705 find_cxx_header
() {
6706 echo "#include <$1>" |
$CXX -H -fsyntax-only -x c
++ - 2>&1 \
6707 |
$AWK '$1 == "."{print $2}'
6709 CXX_CSTDLIB_HEADER
="$(find_cxx_header cstdlib)"
6710 CXX_CMATH_HEADER
="$(find_cxx_header cmath)"
6711 CXX_BITS_STD_ABS_H
="$(find_cxx_header bits/std_abs.h)"
6718 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6719 # since this would lead to problems installing/building glibc.
6720 # LD_LIBRARY_PATH contains the current directory if one of the following
6722 # - one of the terminals (":" and ";") is the first or last sign
6723 # - two terminals occur directly after each other
6724 # - the path contains an element with a dot in it
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6726 printf %s
"checking LD_LIBRARY_PATH variable... " >&6; }
6727 case ${LD_LIBRARY_PATH} in
6728 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
6729 ld_library_path_setting
="contains current directory"
6732 ld_library_path_setting
="ok"
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6736 printf "%s\n" "$ld_library_path_setting" >&6; }
6737 if test "$ld_library_path_setting" != "ok"; then
6739 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6740 *** building glibc. Please change the environment variable
6741 *** and run configure again." "$LINENO" 5
6744 # Extract the first word of "bash", so it can be a program name with args.
6745 set dummy bash
; ac_word
=$2
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 printf %s
"checking for $ac_word... " >&6; }
6748 if test ${ac_cv_path_BASH_SHELL+y}
6750 printf %s
"(cached) " >&6
6752 e
) case $BASH_SHELL in
6754 ac_cv_path_BASH_SHELL
="$BASH_SHELL" # Let the user override the test with a path.
6757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6761 case $as_dir in #(((
6764 *) as_dir
=$as_dir/ ;;
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6768 ac_cv_path_BASH_SHELL
="$as_dir$ac_word$ac_exec_ext"
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL
="no"
6781 BASH_SHELL
=$ac_cv_path_BASH_SHELL
6782 if test -n "$BASH_SHELL"; then
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6784 printf "%s\n" "$BASH_SHELL" >&6; }
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 printf "%s\n" "no" >&6; }
6792 # Extract the first word of "perl", so it can be a program name with args.
6793 set dummy perl
; ac_word
=$2
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 printf %s
"checking for $ac_word... " >&6; }
6796 if test ${ac_cv_path_PERL+y}
6798 printf %s
"(cached) " >&6
6802 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6809 case $as_dir in #(((
6812 *) as_dir
=$as_dir/ ;;
6814 for ac_exec_ext
in '' $ac_executable_extensions; do
6815 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6816 ac_cv_path_PERL
="$as_dir$ac_word$ac_exec_ext"
6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
6829 PERL
=$ac_cv_path_PERL
6830 if test -n "$PERL"; then
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6832 printf "%s\n" "$PERL" >&6; }
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 printf "%s\n" "no" >&6; }
6839 if test "$PERL" != no
&&
6840 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6843 # Extract the first word of "install-info", so it can be a program name with args.
6844 set dummy install-info
; ac_word
=$2
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 printf %s
"checking for $ac_word... " >&6; }
6847 if test ${ac_cv_path_INSTALL_INFO+y}
6849 printf %s
"(cached) " >&6
6851 e
) case $INSTALL_INFO in
6853 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6857 as_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6858 for as_dir
in $as_dummy
6861 case $as_dir in #(((
6864 *) as_dir
=$as_dir/ ;;
6866 for ac_exec_ext
in '' $ac_executable_extensions; do
6867 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6868 ac_cv_path_INSTALL_INFO
="$as_dir$ac_word$ac_exec_ext"
6869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6876 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
6881 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6882 if test -n "$INSTALL_INFO"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6884 printf "%s\n" "$INSTALL_INFO" >&6; }
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6893 printf %s
"checking for .set assembler directive... " >&6; }
6894 if test ${libc_cv_asm_set_directive+y}
6896 printf %s
"(cached) " >&6
6898 e
) cat > conftest.s
<<EOF
6901 .set glibc_conftest_frobozz,foo
6902 .globl glibc_conftest_frobozz
6904 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6905 # (but it doesn't work), so we must do a linking check to be sure.
6906 cat > conftest1.c
<<\EOF
6907 extern int glibc_conftest_frobozz
;
6908 void _start
() { glibc_conftest_frobozz
= 1; }
6910 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6911 -nostartfiles -nostdlib $no_ssp \
6912 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
6913 libc_cv_asm_set_directive
=yes
6915 libc_cv_asm_set_directive
=no
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6921 printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6922 if test $libc_cv_asm_set_directive = yes; then
6923 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6928 printf %s
"checking linker support for protected data symbol... " >&6; }
6929 if test ${libc_cv_protected_data+y}
6931 printf %s
"(cached) " >&6
6933 e
) cat > conftest.c
<<EOF
6934 int bar __attribute__ ((visibility ("protected"))) = 1;
6936 libc_cv_protected_data
=no
6937 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; }; then
6943 cat > conftest.c
<<EOF
6945 int main (void) { return bar; }
6947 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; }; then
6953 libc_cv_protected_data
=yes
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6961 printf "%s\n" "$libc_cv_protected_data" >&6; }
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6965 printf %s
"checking linker support for INSERT in linker script... " >&6; }
6966 if test ${libc_cv_insert+y}
6968 printf %s
"(cached) " >&6
6970 e
) cat > conftest.c
<<EOF
6971 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6972 int test (void) { return bar; }
6974 cat > conftest.t
<<EOF
6979 INSERT AFTER .rela.dyn;
6982 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; }; }; then
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6995 printf "%s\n" "$libc_cv_insert" >&6; }
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6999 printf %s
"checking for broken __attribute__((alias()))... " >&6; }
7000 if test ${libc_cv_broken_alias_attribute+y}
7002 printf %s
"(cached) " >&6
7004 e
) cat > conftest.c
<<EOF
7005 extern int foo (int x) __asm ("xyzzy");
7006 int bar (int x) { return x; }
7007 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
7009 extern __typeof (dfoo) dfoo __asm ("abccb");
7012 libc_cv_broken_alias_attribute
=yes
7013 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; }; then
7019 if grep 'xyzzy' conftest.s
>/dev
/null
&&
7020 grep 'abccb' conftest.s
>/dev
/null
; then
7021 libc_cv_broken_alias_attribute
=no
7024 rm -f conftest.c conftest.s
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
7029 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
7030 if test $libc_cv_broken_alias_attribute = yes; then
7031 as_fn_error $?
"working alias attribute support required" "$LINENO" 5
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
7035 printf %s
"checking whether to put _rtld_local into .sdata section... " >&6; }
7036 if test ${libc_cv_have_sdata_section+y}
7038 printf %s
"(cached) " >&6
7040 e
) echo "int i;" > conftest.c
7041 libc_cv_have_sdata_section
=no
7042 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
7043 |
grep '\.sdata' >/dev
/null
; then
7044 libc_cv_have_sdata_section
=yes
7046 rm -f conftest.c conftest.so
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
7051 printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
7052 if test $libc_cv_have_sdata_section = yes; then
7053 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
7058 printf %s
"checking for libunwind-support in compiler... " >&6; }
7059 if test ${libc_cv_cc_with_libunwind+y}
7061 printf %s
"(cached) " >&6
7064 cat > conftest.c
<<EOF
7065 int main (void) { return 0; }
7067 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
7068 conftest.c
-v 2>&1 >/dev
/null |
grep ' -lunwind ' >/dev
/null
; then
7069 libc_cv_cc_with_libunwind
=yes
7071 libc_cv_cc_with_libunwind
=no
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
7077 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
7079 if test $libc_cv_cc_with_libunwind = yes; then
7080 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
7086 printf %s
"checking whether --noexecstack is desirable for .S files... " >&6; }
7087 if test ${libc_cv_as_noexecstack+y}
7089 printf %s
"(cached) " >&6
7091 e
) cat > conftest.c
<<EOF
7094 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
7095 -S -o conftest.s conftest.c 1>&5'
7096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; } \
7101 && grep .note.GNU-stack conftest.s
>/dev
/null \
7102 && { ac_try
='${CC-cc} $ASFLAGS -Wa,--noexecstack
7103 -c -o conftest.o conftest.s 1>&5'
7104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7108 test $ac_status = 0; }; }
7110 libc_cv_as_noexecstack
=yes
7112 libc_cv_as_noexecstack
=no
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
7118 printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
7119 if test $libc_cv_as_noexecstack = yes; then
7120 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-error-execstack" >&5
7125 printf %s
"checking for linker that supports --no-error-execstack... " >&6; }
7126 libc_linker_feature
=no
7127 cat > conftest.c
<<EOF
7128 int _start (void) { return 42; }
7130 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7131 -Wl,--no-error-execstack -nostdlib -nostartfiles
7132 -fPIC -shared -o conftest.so conftest.c
7134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; }
7140 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \
7141 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7142 |
grep "warning: --no-error-execstack ignored" > /dev
/null
2>&1; then
7145 libc_linker_feature
=yes
7149 if test $libc_linker_feature = yes; then
7150 libc_cv_no_error_execstack
=yes
7152 libc_cv_no_error_execstack
=no
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7155 printf "%s\n" "$libc_linker_feature" >&6; }
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
7159 printf %s
"checking for linker that supports -z execstack... " >&6; }
7160 libc_linker_feature
=no
7161 cat > conftest.c
<<EOF
7162 int _start (void) { return 42; }
7164 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7165 -Wl,-z,execstack -nostdlib -nostartfiles
7166 -fPIC -shared -o conftest.so conftest.c
7168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; }; }
7174 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack
-nostdlib \
7175 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7176 |
grep "warning: -z execstack ignored" > /dev
/null
2>&1; then
7179 libc_linker_feature
=yes
7183 if test $libc_linker_feature = yes; then
7184 libc_cv_z_execstack
=yes
7186 libc_cv_z_execstack
=no
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7189 printf "%s\n" "$libc_linker_feature" >&6; }
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
7193 printf %s
"checking for linker that supports -z start-stop-gc... " >&6; }
7194 libc_linker_feature
=no
7195 cat > conftest.c
<<EOF
7196 int _start (void) { return 42; }
7198 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7199 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
7200 -fPIC -shared -o conftest.so conftest.c
7202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206 test $ac_status = 0; }; }
7208 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc
-nostdlib \
7209 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7210 |
grep "warning: -z start-stop-gc ignored" > /dev
/null
2>&1; then
7213 libc_linker_feature
=yes
7217 if test $libc_linker_feature = yes; then
7218 libc_cv_z_start_stop_gc
=yes
7220 libc_cv_z_start_stop_gc
=no
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7223 printf "%s\n" "$libc_linker_feature" >&6; }
7224 config_vars
="$config_vars
7225 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
7228 printf %s
"checking for linker that supports --depaudit... " >&6; }
7229 libc_linker_feature
=no
7230 cat > conftest.c
<<EOF
7231 int _start (void) { return 42; }
7233 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7234 -Wl,--depaudit,x -nostdlib -nostartfiles
7235 -fPIC -shared -o conftest.so conftest.c
7237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; }
7243 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x
-nostdlib \
7244 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7245 |
grep "warning: --depaudit ignored" > /dev
/null
2>&1; then
7248 libc_linker_feature
=yes
7252 if test $libc_linker_feature = yes; then
7253 libc_cv_depaudit
=yes
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7258 printf "%s\n" "$libc_linker_feature" >&6; }
7259 config_vars
="$config_vars
7260 have-depaudit = $libc_cv_depaudit"
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
7263 printf %s
"checking for linker that supports -z pack-relative-relocs... " >&6; }
7264 libc_linker_feature
=no
7265 cat > conftest.c
<<EOF
7266 int _start (void) { return 42; }
7268 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7269 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
7270 -fPIC -shared -o conftest.so conftest.c
7272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; }
7278 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs
-nostdlib \
7279 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7280 |
grep "warning: -z pack-relative-relocs ignored" > /dev
/null
2>&1; then
7283 libc_linker_feature
=yes
7287 if test $libc_linker_feature = yes; then
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7293 printf "%s\n" "$libc_linker_feature" >&6; }
7294 config_vars
="$config_vars
7295 have-dt-relr = $libc_cv_dt_relr"
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
7298 printf %s
"checking for linker that supports --no-dynamic-linker... " >&6; }
7299 libc_linker_feature
=no
7300 cat > conftest.c
<<EOF
7301 int _start (void) { return 42; }
7303 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7304 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
7305 -fPIC -shared -o conftest.so conftest.c
7307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; }; }
7313 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
7314 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7315 |
grep "warning: --no-dynamic-linker ignored" > /dev
/null
2>&1; then
7318 libc_linker_feature
=yes
7322 if test $libc_linker_feature = yes; then
7323 libc_cv_no_dynamic_linker
=yes
7325 libc_cv_no_dynamic_linker
=no
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7328 printf "%s\n" "$libc_linker_feature" >&6; }
7329 config_vars
="$config_vars
7330 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
7334 printf %s
"checking for -static-pie... " >&6; }
7335 if test ${libc_cv_static_pie+y}
7337 printf %s
"(cached) " >&6
7339 e
) if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; }; }
7346 libc_cv_static_pie
=yes
7348 e
) libc_cv_static_pie
=no
;;
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7354 printf "%s\n" "$libc_cv_static_pie" >&6; }
7355 if test "$TEST_CC" = "$CC"; then
7356 libc_cv_test_static_pie
=$libc_cv_static_pie
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie in testing" >&5
7362 printf %s
"checking for -static-pie in testing... " >&6; }
7363 if test ${libc_cv_test_static_pie+y}
7365 printf %s
"(cached) " >&6
7367 e
) if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; }
7374 libc_cv_test_static_pie
=yes
7376 e
) libc_cv_test_static_pie
=no
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_static_pie" >&5
7383 printf "%s\n" "$libc_cv_test_static_pie" >&6; }
7389 config_vars
="$config_vars
7390 have-static-pie = $libc_cv_static_pie"
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
7394 printf %s
"checking for -fpie... " >&6; }
7395 if test ${libc_cv_fpie+y}
7397 printf %s
"(cached) " >&6
7399 e
) if { ac_try
='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
7400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; }
7408 e
) libc_cv_fpie
=no
;;
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7415 printf "%s\n" "$libc_cv_fpie" >&6; }
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
7420 printf %s
"checking for GLOB_DAT reloc... " >&6; }
7421 if test ${libc_cv_has_glob_dat+y}
7423 printf %s
"(cached) " >&6
7425 e
) cat > conftest.c
<<EOF
7427 int foo (void) { return mumble; }
7429 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7430 -fPIC -shared -o conftest.so conftest.c
7431 -nostdlib -nostartfiles $no_ssp
7433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; }
7439 if $READELF -rW conftest.so |
grep '_GLOB_DAT' > /dev
/null
; then
7440 libc_cv_has_glob_dat
=yes
7442 libc_cv_has_glob_dat
=no
7445 libc_cv_has_glob_dat
=no
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7451 printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7462 cat > conftest.c
<<EOF
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support in testing" >&5
7469 printf %s
"checking for tls descriptor support in testing... " >&6; }
7470 if test ${libc_cv_test_mtls_descriptor+y}
7472 printf %s
"(cached) " >&6
7474 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
7475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; }
7481 libc_cv_test_mtls_descriptor
=$mtls_descriptor
7483 libc_cv_test_mtls_descriptor
=no
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_descriptor" >&5
7488 printf "%s\n" "$libc_cv_test_mtls_descriptor" >&6; }
7493 config_vars
="$config_vars
7494 have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor"
7497 cat > conftest.c
<<EOF
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for traditional tls support in testing" >&5
7504 printf %s
"checking for traditional tls support in testing... " >&6; }
7505 if test ${libc_cv_test_mtls_traditional+y}
7507 printf %s
"(cached) " >&6
7509 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_traditional -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5'
7510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; }
7516 libc_cv_test_mtls_traditional
=$mtls_traditional
7518 libc_cv_test_mtls_traditional
=no
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_traditional" >&5
7523 printf "%s\n" "$libc_cv_test_mtls_traditional" >&6; }
7528 config_vars
="$config_vars
7529 have-test-mtls-traditional = $libc_cv_test_mtls_traditional"
7535 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo
")));
7536 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo
")));
7539 cat > conftest.c
<<EOF
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7543 printf %s
"checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7544 if test ${libc_cv_wno_ignored_attributes+y}
7546 printf %s
"(cached) " >&6
7548 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5'
7549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; }
7555 libc_cv_wno_ignored_attributes
="-Wno-ignored-attributes"
7557 libc_cv_wno_ignored_attributes
=
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7563 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7564 if test "$TEST_CC" = "$CC"; then
7565 libc_cv_test_wno_ignored_attributes
=$libc_cv_wno_ignored_attributes
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases in testing" >&5
7571 printf %s
"checking if -Wno-ignored-attributes is required for aliases in testing... " >&6; }
7572 if test ${libc_cv_test_wno_ignored_attributes+y}
7574 printf %s
"(cached) " >&6
7576 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5'
7577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; }
7583 libc_cv_test_wno_ignored_attributes
="-Wno-ignored-attributes"
7585 libc_cv_test_wno_ignored_attributes
=
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_wno_ignored_attributes" >&5
7590 printf "%s\n" "$libc_cv_test_wno_ignored_attributes" >&6; }
7596 config_vars
="$config_vars
7597 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7601 printf %s
"checking whether cc puts quotes around section names... " >&6; }
7602 if test ${libc_cv_have_section_quotes+y}
7604 printf %s
"(cached) " >&6
7606 e
) cat > conftest.c
<<EOF
7607 static const int foo
7608 __attribute__ ((section ("bar"))) = 1;
7610 if ${CC-cc} -S conftest.c
-o conftest.s
; then
7611 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
7612 libc_cv_have_section_quotes
=yes
7614 libc_cv_have_section_quotes
=no
7617 libc_cv_have_section_quotes
=unknown
7619 rm -f conftest.
{c
,s
}
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7624 printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7625 if test $libc_cv_have_section_quotes = yes; then
7626 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7631 printf %s
"checking for __builtin_memset... " >&6; }
7632 if test ${libc_cv_gcc_builtin_memset+y}
7634 printf %s
"(cached) " >&6
7636 e
) cat > conftest.c
<<\EOF
7639 __builtin_memset
(x
, 0, 1000);
7642 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }; };
7649 libc_cv_gcc_builtin_memset
=no
7651 libc_cv_gcc_builtin_memset
=yes
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7657 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7658 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7659 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7664 printf %s
"checking for redirection of built-in functions... " >&6; }
7665 if test ${libc_cv_gcc_builtin_redirection+y}
7667 printf %s
"(cached) " >&6
7669 e
) cat > conftest.c
<<\EOF
7670 extern char
*strstr
(const char
*, const char
*) __asm
("my_strstr");
7671 char
*foo
(const char
*a
, const char
*b
)
7673 return __builtin_strstr
(a
, b
);
7676 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }; };
7683 libc_cv_gcc_builtin_redirection
=yes
7685 libc_cv_gcc_builtin_redirection
=no
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7691 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7692 if test "$libc_cv_gcc_builtin_redirection" = no
; then
7693 as_fn_error $?
"support for the symbol redirection needed" "$LINENO" 5
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7697 printf %s
"checking for compiler option to disable generation of FMA instructions... " >&6; }
7698 if test ${libc_cv_cc_nofma+y}
7700 printf %s
"(cached) " >&6
7702 e
) libc_cv_cc_nofma
=
7703 for opt
in -ffp-contract=off
-mno-fused-madd; do
7704 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; }
7711 libc_cv_cc_nofma
=$opt; break
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7717 printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7720 if test -n "$submachine"; then
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7722 printf %s
"checking for compiler option for CPU variant... " >&6; }
7723 if test ${libc_cv_cc_submachine+y}
7725 printf %s
"(cached) " >&6
7727 e
) libc_cv_cc_submachine
=no
7728 for opt
in "-march=$submachine" "-mcpu=$submachine"; do
7729 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; }
7737 libc_cv_cc_submachine
="$opt"
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7744 printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7745 if test "x$libc_cv_cc_submachine" = xno
; then
7746 as_fn_error $?
"${CC-cc} does not support $submachine" "$LINENO" 5
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7753 printf %s
"checking for compiler option that -fsignaling-nans... " >&6; }
7754 if test ${libc_cv_cc_signaling_nans+y}
7756 printf %s
"(cached) " >&6
7758 e
) if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; }; }
7765 libc_cv_cc_signaling_nans
=-fsignaling-nans
7767 e
) libc_cv_cc_signaling_nans
= ;;
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7773 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7774 if test "$TEST_CC" = "$CC"; then
7775 libc_cv_test_cc_signaling_nans
=$libc_cv_cc_signaling_nans
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans in testing" >&5
7781 printf %s
"checking for compiler option that -fsignaling-nans in testing... " >&6; }
7782 if test ${libc_cv_test_cc_signaling_nans+y}
7784 printf %s
"(cached) " >&6
7786 e
) if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7791 test $ac_status = 0; }; }
7793 libc_cv_test_cc_signaling_nans
=-fsignaling-nans
7795 e
) libc_cv_test_cc_signaling_nans
= ;;
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_signaling_nans" >&5
7801 printf "%s\n" "$libc_cv_test_cc_signaling_nans" >&6; }
7807 config_vars
="$config_vars
7808 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fsemantic-interposition in testing" >&5
7816 printf %s
"checking -fsemantic-interposition in testing... " >&6; }
7817 if test ${libc_cv_test_cc_cflags_fsemantic_interposition+y}
7819 printf %s
"(cached) " >&6
7821 e
) if { ac_try
='${CC-cc} -c -Werror -fsemantic-interposition -xc /dev/null -S -o /dev/null'
7822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; }
7828 libc_cv_test_cc_cflags_fsemantic_interposition
=yes
7830 e
) libc_cv_test_cc_cflags_fsemantic_interposition
=no
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_cflags_fsemantic_interposition" >&5
7837 printf "%s\n" "$libc_cv_test_cc_cflags_fsemantic_interposition" >&6; }
7842 config_vars
="$config_vars
7843 have-test-cc-cflags-fsemantic-interposition = $libc_cv_test_cc_cflags_fsemantic_interposition"
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -ffloat-store in testing" >&5
7850 printf %s
"checking for -ffloat-store in testing... " >&6; }
7851 if test ${libc_cv_test_cc_float_store+y}
7853 printf %s
"(cached) " >&6
7855 e
) if { ac_try
='${CC-cc} -Werror -ffloat-store -xc /dev/null -S -o /dev/null'
7856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; }
7862 libc_cv_test_cc_float_store
="-ffloat-store"
7864 e
) libc_cv_test_cc_float_store
= ;;
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_float_store" >&5
7870 printf "%s\n" "$libc_cv_test_cc_float_store" >&6; }
7875 config_vars
="$config_vars
7876 test-config-cflags-float-store = $libc_cv_test_cc_float_store"
7880 __attribute__ ((__optimize__ (\"-fno-tree-loop-distribute-patterns\")))
7884 cat > conftest.c
<<EOF
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works" >&5
7888 printf %s
"checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works... " >&6; }
7889 if test ${libc_cv_cc_loop_to_function+y}
7891 printf %s
"(cached) " >&6
7893 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
7894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898 test $ac_status = 0; }; }
7900 libc_cv_cc_loop_to_function
=yes
7902 libc_cv_cc_loop_to_function
=no
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7908 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7909 if test "$TEST_CC" = "$CC"; then
7910 libc_cv_test_cc_loop_to_function
=$libc_cv_cc_loop_to_function
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing" >&5
7916 printf %s
"checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing... " >&6; }
7917 if test ${libc_cv_test_cc_loop_to_function+y}
7919 printf %s
"(cached) " >&6
7921 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
7922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; }
7928 libc_cv_test_cc_loop_to_function
=yes
7930 libc_cv_test_cc_loop_to_function
=no
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_loop_to_function" >&5
7935 printf "%s\n" "$libc_cv_test_cc_loop_to_function" >&6; }
7941 if test $libc_cv_cc_loop_to_function = yes; then
7942 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7945 if test $libc_cv_test_cc_loop_to_function = yes; then
7946 printf "%s\n" "#define HAVE_TEST_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5
7953 printf %s
"checking for -Wimplicit-fallthrough... " >&6; }
7954 if test ${libc_cv_cc_wimplicit_fallthrough+y}
7956 printf %s
"(cached) " >&6
7958 e
) if { ac_try
='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
7959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; }
7965 libc_cv_cc_wimplicit_fallthrough
=-Wimplicit-fallthrough
7967 e
) libc_cv_cc_wimplicit_fallthrough
= ;;
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5
7973 printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; }
7974 if test "$TEST_CC" = "$CC"; then
7975 libc_cv_test_cc_wimplicit_fallthrough
=$libc_cv_cc_wimplicit_fallthrough
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough in testing" >&5
7981 printf %s
"checking for -Wimplicit-fallthrough in testing... " >&6; }
7982 if test ${libc_cv_test_cc_wimplicit_fallthrough+y}
7984 printf %s
"(cached) " >&6
7986 e
) if { ac_try
='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
7987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }; }
7993 libc_cv_test_cc_wimplicit_fallthrough
=-Wimplicit-fallthrough
7995 e
) libc_cv_test_cc_wimplicit_fallthrough
= ;;
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wimplicit_fallthrough" >&5
8001 printf "%s\n" "$libc_cv_test_cc_wimplicit_fallthrough" >&6; }
8007 config_vars
="$config_vars
8008 cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels" >&5
8013 printf %s
"checking for -Wfree-labels... " >&6; }
8014 if test ${libc_cv_cc_wfree_labels+y}
8016 printf %s
"(cached) " >&6
8018 e
) if { ac_try
='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
8019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8023 test $ac_status = 0; }; }
8025 libc_cv_cc_wfree_labels
=-Wfree-labels
8027 e
) libc_cv_cc_wfree_labels
= ;;
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wfree_labels" >&5
8033 printf "%s\n" "$libc_cv_cc_wfree_labels" >&6; }
8034 if test "$TEST_CC" = "$CC"; then
8035 libc_cv_test_cc_wfree_labels
=$libc_cv_cc_wfree_labels
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels in testing" >&5
8041 printf %s
"checking for -Wfree-labels in testing... " >&6; }
8042 if test ${libc_cv_test_cc_wfree_labels+y}
8044 printf %s
"(cached) " >&6
8046 e
) if { ac_try
='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null'
8047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; }
8053 libc_cv_test_cc_wfree_labels
=-Wfree-labels
8055 e
) libc_cv_test_cc_wfree_labels
= ;;
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wfree_labels" >&5
8061 printf "%s\n" "$libc_cv_test_cc_wfree_labels" >&6; }
8067 config_vars
="$config_vars
8068 cc-option-wfree-labels = $libc_cv_cc_wfree_labels"
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name" >&5
8073 printf %s
"checking for -Wmissing-parameter-name... " >&6; }
8074 if test ${libc_cv_cc_wmissing_parameter_name+y}
8076 printf %s
"(cached) " >&6
8078 e
) if { ac_try
='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
8079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; }
8085 libc_cv_cc_wmissing_parameter_name
=-Wmissing-parameter-name
8087 e
) libc_cv_cc_wmissing_parameter_name
= ;;
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wmissing_parameter_name" >&5
8093 printf "%s\n" "$libc_cv_cc_wmissing_parameter_name" >&6; }
8094 if test "$TEST_CC" = "$CC"; then
8095 libc_cv_test_cc_wmissing_parameter_name
=$libc_cv_cc_wmissing_parameter_name
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name in testing" >&5
8101 printf %s
"checking for -Wmissing-parameter-name in testing... " >&6; }
8102 if test ${libc_cv_test_cc_wmissing_parameter_name+y}
8104 printf %s
"(cached) " >&6
8106 e
) if { ac_try
='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null'
8107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }; }
8113 libc_cv_test_cc_wmissing_parameter_name
=-Wmissing-parameter-name
8115 e
) libc_cv_test_cc_wmissing_parameter_name
= ;;
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wmissing_parameter_name" >&5
8121 printf "%s\n" "$libc_cv_test_cc_wmissing_parameter_name" >&6; }
8127 config_vars
="$config_vars
8128 cc-option-wmissing-parameter-name = $libc_cv_cc_wmissing_parameter_name"
8132 void bar (void (*callback) (void));
8136 void callback (void) { var = 1; }
8143 cat > conftest.c
<<EOF
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for trampolines in testing" >&5
8150 printf %s
"checking support for trampolines in testing... " >&6; }
8151 if test ${libc_cv_test_cc_trampolines+y}
8153 printf %s
"(cached) " >&6
8155 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5'
8156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; }
8162 libc_cv_test_cc_trampolines
=yes
8164 libc_cv_test_cc_trampolines
=no
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_trampolines" >&5
8170 printf "%s\n" "$libc_cv_test_cc_trampolines" >&6; }
8175 config_vars
="$config_vars
8176 have-test-cc-trampoline = $libc_cv_test_cc_trampolines"
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-restrict in testing" >&5
8183 printf %s
"checking -Wno-restrict in testing... " >&6; }
8184 if test ${libc_cv_test_cflags_wno_restrict+y}
8186 printf %s
"(cached) " >&6
8188 e
) if { ac_try
='${CC-cc} -c -Werror -Wno-restrict -xc /dev/null -S -o /dev/null'
8189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193 test $ac_status = 0; }; }
8195 libc_cv_test_cflags_wno_restrict
=-Wno-restrict
8197 e
) libc_cv_test_cflags_wno_restrict
=
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_restrict" >&5
8204 printf "%s\n" "$libc_cv_test_cflags_wno_restrict" >&6; }
8209 config_vars
="$config_vars
8210 test-config-cflags-wno-restrict = $libc_cv_test_cflags_wno_restrict"
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-fortify-source in testing" >&5
8217 printf %s
"checking -Wno-fortify-source in testing... " >&6; }
8218 if test ${libc_cv_test_cflags_wno_fortify_source+y}
8220 printf %s
"(cached) " >&6
8222 e
) if { ac_try
='${CC-cc} -c -Werror -Wno-fortify-source -xc /dev/null -S -o /dev/null'
8223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8227 test $ac_status = 0; }; }
8229 libc_cv_test_cflags_wno_fortify_source
=-Wno-fortify-source
8231 e
) libc_cv_test_cflags_wno_fortify_source
=
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_fortify_source" >&5
8238 printf "%s\n" "$libc_cv_test_cflags_wno_fortify_source" >&6; }
8243 config_vars
="$config_vars
8244 test-config-cflags-wno-fortify-source = $libc_cv_test_cflags_wno_fortify_source"
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -finput-charset=ascii in testing" >&5
8251 printf %s
"checking -finput-charset=ascii in testing... " >&6; }
8252 if test ${libc_cv_test_cflags_finput_charset_ascii+y}
8254 printf %s
"(cached) " >&6
8256 e
) if { ac_try
='${CC-cc} -c -Werror -finput-charset=ascii -xc /dev/null -S -o /dev/null'
8257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261 test $ac_status = 0; }; }
8263 libc_cv_test_cflags_finput_charset_ascii
="-finput-charset=ascii"
8265 e
) libc_cv_test_cflags_finput_charset_ascii
=
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_finput_charset_ascii" >&5
8272 printf "%s\n" "$libc_cv_test_cflags_finput_charset_ascii" >&6; }
8277 config_vars
="$config_vars
8278 test-config-cflags-finput-charset-ascii = $libc_cv_test_cflags_finput_charset_ascii"
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CXX -finput-charset=ascii in testing" >&5
8285 printf %s
"checking $CXX -finput-charset=ascii in testing... " >&6; }
8286 if test ${libc_cv_test_cxxflags_finput_charset_ascii+y}
8288 printf %s
"(cached) " >&6
8290 e
) if { ac_try
='${CXX-c++} -c -Werror -finput-charset=ascii -xc++ /dev/null -S -o /dev/null'
8291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295 test $ac_status = 0; }; }
8297 libc_cv_test_cxxflags_finput_charset_ascii
="-finput-charset=ascii"
8299 e
) libc_cv_test_cxxflags_finput_charset_ascii
=
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cxxflags_finput_charset_ascii" >&5
8306 printf "%s\n" "$libc_cv_test_cxxflags_finput_charset_ascii" >&6; }
8311 config_vars
="$config_vars
8312 test-config-cxxflags-finput-charset-ascii = $libc_cv_test_cxxflags_finput_charset_ascii"
8315 extern int not_exist (void);
8317 inline int make_unique (void)
8319 /* Static variables in inline functions and classes
8320 generate STB_GNU_UNIQUE symbols. */
8327 return make_unique () + not_exist ();
8332 cat > conftest.cc
<<EOF
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for STB_GNU_UNIQUE in testing" >&5
8339 printf %s
"checking for STB_GNU_UNIQUE in testing... " >&6; }
8340 if test ${libc_cv_test_stb_gnu_unique+y}
8342 printf %s
"(cached) " >&6
8344 e
) if { ac_try
='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5'
8345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8349 test $ac_status = 0; }; }
8352 if LC_ALL
=C
$READELF -sW conftest \
8353 |
grep -q "UNIQUE.* _ZZ11make_uniquevE6unique"; then
8354 libc_cv_test_stb_gnu_unique
=yes
8356 libc_cv_test_stb_gnu_unique
=no
8360 libc_cv_test_stb_gnu_unique
=no
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_stb_gnu_unique" >&5
8365 printf "%s\n" "$libc_cv_test_stb_gnu_unique" >&6; }
8370 config_vars
="$config_vars
8371 have-test-stb-gnu-unique = $libc_cv_test_stb_gnu_unique"
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
8374 printf %s
"checking for libgd... " >&6; }
8375 if test "$with_gd" != "no"; then
8376 old_CFLAGS
="$CFLAGS"
8377 CFLAGS
="$CFLAGS $libgd_include"
8378 old_LDFLAGS
="$LDFLAGS"
8379 LDFLAGS
="$LDFLAGS $libgd_ldflags"
8381 LIBS
="$LIBS -lgd -lpng -lz -lm"
8382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8393 if ac_fn_c_try_link
"$LINENO"
8400 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8401 conftest
$ac_exeext conftest.
$ac_ext
8402 CFLAGS
="$old_CFLAGS"
8403 LDFLAGS
="$old_LDFLAGS"
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
8409 printf "%s\n" "$LIBGD" >&6; }
8413 if test x
$with_selinux = xno
; then
8416 # See if we have the SELinux library
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
8418 printf %s
"checking for is_selinux_enabled in -lselinux... " >&6; }
8419 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
8421 printf %s
"(cached) " >&6
8423 e
) ac_check_lib_save_LIBS
=$LIBS
8424 LIBS
="-lselinux $LIBS"
8425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8428 /* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
8430 builtin and then its argument prototype would still apply.
8431 The 'extern "C"' is for builds by C++ compilers;
8432 although this is not generally supported in C code supporting it here
8433 has little cost and some practical benefit (sr 110532). */
8437 char is_selinux_enabled (void);
8441 return is_selinux_enabled ();
8446 if ac_fn_c_try_link
"$LINENO"
8448 ac_cv_lib_selinux_is_selinux_enabled
=yes
8450 e
) ac_cv_lib_selinux_is_selinux_enabled
=no
;;
8453 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8454 conftest
$ac_exeext conftest.
$ac_ext
8455 LIBS
=$ac_check_lib_save_LIBS ;;
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8459 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
8460 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
8464 e
) have_selinux
=no
;;
8468 if test x
$with_selinux = xyes
; then
8469 if test x
$have_selinux = xno
; then
8470 as_fn_error $?
"SELinux explicitly required, but SELinux library not found" "$LINENO" 5
8474 # Check if we're building with SELinux support.
8475 if test "x$have_selinux" = xyes
; then
8477 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
8480 # See if we have the libaudit library
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
8482 printf %s
"checking for audit_log_user_avc_message in -laudit... " >&6; }
8483 if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
8485 printf %s
"(cached) " >&6
8487 e
) ac_check_lib_save_LIBS
=$LIBS
8488 LIBS
="-laudit $LIBS"
8489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8492 /* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply.
8495 The 'extern "C"' is for builds by C++ compilers;
8496 although this is not generally supported in C code supporting it here
8497 has little cost and some practical benefit (sr 110532). */
8501 char audit_log_user_avc_message (void);
8505 return audit_log_user_avc_message ();
8510 if ac_fn_c_try_link
"$LINENO"
8512 ac_cv_lib_audit_audit_log_user_avc_message
=yes
8514 e
) ac_cv_lib_audit_audit_log_user_avc_message
=no
;;
8517 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8518 conftest
$ac_exeext conftest.
$ac_ext
8519 LIBS
=$ac_check_lib_save_LIBS ;;
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
8523 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
8524 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
8528 e
) have_libaudit
=no
;;
8532 if test "x$have_libaudit" = xyes
; then
8534 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
8539 # See if we have the libcap library
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
8541 printf %s
"checking for cap_init in -lcap... " >&6; }
8542 if test ${ac_cv_lib_cap_cap_init+y}
8544 printf %s
"(cached) " >&6
8546 e
) ac_check_lib_save_LIBS
=$LIBS
8548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8551 /* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply.
8554 The 'extern "C"' is for builds by C++ compilers;
8555 although this is not generally supported in C code supporting it here
8556 has little cost and some practical benefit (sr 110532). */
8560 char cap_init (void);
8569 if ac_fn_c_try_link
"$LINENO"
8571 ac_cv_lib_cap_cap_init
=yes
8573 e
) ac_cv_lib_cap_cap_init
=no
;;
8576 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8577 conftest
$ac_exeext conftest.
$ac_ext
8578 LIBS
=$ac_check_lib_save_LIBS ;;
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
8582 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
8583 if test "x$ac_cv_lib_cap_cap_init" = xyes
8587 e
) have_libcap
=no
;;
8591 if test "x$have_libcap" = xyes
; then
8593 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
8600 no_fortify_source
="-U_FORTIFY_SOURCE"
8601 fortify_source
="${no_fortify_source}"
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
8605 printf %s
"checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
8606 if test ${libc_cv_supported_fortify_source+y}
8608 printf %s
"(cached) " >&6
8611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8617 __builtin_dynamic_object_size("", 0)
8622 if ac_fn_c_try_link
"$LINENO"
8624 libc_cv_supported_fortify_source
=3
8626 e
) libc_cv_supported_fortify_source
=2 ;;
8629 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8630 conftest
$ac_exeext conftest.
$ac_ext
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
8635 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
8636 if test "$TEST_CC" = "$CC"; then
8637 libc_cv_test_supported_fortify_source
=$libc_cv_supported_fortify_source
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level in testing" >&5
8643 printf %s
"checking for maximum supported _FORTIFY_SOURCE level in testing... " >&6; }
8644 if test ${libc_cv_test_supported_fortify_source+y}
8646 printf %s
"(cached) " >&6
8649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8655 __builtin_dynamic_object_size("", 0)
8660 if ac_fn_c_try_link
"$LINENO"
8662 libc_cv_test_supported_fortify_source
=3
8664 e
) libc_cv_test_supported_fortify_source
=2 ;;
8667 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8668 conftest
$ac_exeext conftest.
$ac_ext
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_supported_fortify_source" >&5
8673 printf "%s\n" "$libc_cv_test_supported_fortify_source" >&6; }
8681 case $enable_fortify_source in #(
8683 libc_cv_fortify_source
=yes enable_fortify_source
=$libc_cv_supported_fortify_source ;; #(
8685 libc_cv_fortify_source
=yes ;; #(
8687 if test $libc_cv_supported_fortify_source = 3
8689 libc_cv_fortify_source
=yes
8691 e
) as_fn_error $?
"Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
8695 libc_cv_fortify_source
=no
;;
8698 if test "$libc_cv_fortify_source" = yes
8700 fortify_source
="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}"
8708 config_vars
="$config_vars
8709 supported-fortify = $libc_cv_supported_fortify_source"
8711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8718 #ifndef _FILE_OFFSET_BITS
8719 # error _FILE_OFFSET_BITS not defined
8725 if ac_fn_c_try_cpp
"$LINENO"
8727 libc_cv_compiler_default_file_offset_bits
=yes
8729 e
) libc_cv_compiler_default_file_offset_bits
=no
;;
8732 rm -f conftest.err conftest.i conftest.
$ac_ext
8733 if test "$libc_cv_compiler_default_file_offset_bits" = yes
8735 no_file_offset_bits_source
="-U_FILE_OFFSET_BITS"
8738 config_vars
="$config_vars
8739 no-file-offset-bits-source = $no_file_offset_bits_source"
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8749 # error _TIME_BITS not defined
8755 if ac_fn_c_try_cpp
"$LINENO"
8757 libc_cv_compiler_default_time_bits
=yes
8759 e
) libc_cv_compiler_default_time_bits
=no
;;
8762 rm -f conftest.err conftest.i conftest.
$ac_ext
8763 if test "$libc_cv_compiler_default_time_bits" = yes
8765 no_time_bits_source
="-U_TIME_BITS"
8768 config_vars
="$config_vars
8769 no-time-bits-source = $no_time_bits_source"
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
8772 printf %s
"checking whether the assembler requires one version per symbol... " >&6; }
8773 if test ${libc_cv_symver_needs_alias+y}
8775 printf %s
"(cached) " >&6
8777 e
) cat > conftest.s
<<EOF
8781 .symver testfunc, testfunc1@VERSION1
8782 .symver testfunc, testfunc1@VERSION2
8784 libc_cv_symver_needs_alias
=no
8785 if ${CC-cc} $ASFLAGS -c conftest.s
2>&5; then
8786 libc_cv_symver_needs_alias
=no
8788 libc_cv_symver_needs_alias
=yes
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
8795 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
8796 if test "$libc_cv_symver_needs_alias" = yes; then
8797 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
8802 printf %s
"checking for __builtin_trap with no external dependencies... " >&6; }
8803 if test ${libc_cv_builtin_trap+y}
8805 printf %s
"(cached) " >&6
8807 e
) libc_cv_builtin_trap
=no
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8819 if ac_fn_c_try_compile
"$LINENO"
8822 libc_undefs
=`$NM -u conftest.o |
8823 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
8825 as_fn_error $?
"confusing output from $NM -u" "$LINENO" 5
8827 echo >&5 "libc_undefs='$libc_undefs'"
8828 if test -z "$libc_undefs"; then
8829 libc_cv_builtin_trap
=yes
8832 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
8836 printf "%s\n" "$libc_cv_builtin_trap" >&6; }
8837 if test $libc_cv_builtin_trap = yes; then
8838 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __attribute__ ((aligned (65536)))" >&5
8843 printf %s
"checking whether the compiler supports __attribute__ ((aligned (65536)))... " >&6; }
8844 if test ${libc_cv_aligned_65536+y}
8846 printf %s
"(cached) " >&6
8849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8852 char bss0xb5dce8 __attribute__ ((aligned (65536)));
8855 if ac_fn_c_try_compile
"$LINENO"
8857 libc_cv_aligned_65536
=yes
8859 e
) libc_cv_aligned_65536
=no
;;
8862 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aligned_65536" >&5
8867 printf "%s\n" "$libc_cv_aligned_65536" >&6; }
8868 config_vars
="$config_vars
8869 aligned-65536 = $libc_cv_aligned_65536"
8872 ac_cpp
='$CXXCPP $CPPFLAGS'
8873 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
8879 printf %s
"checking whether the C++ compiler supports thread_local... " >&6; }
8880 if test ${libc_cv_cxx_thread_local+y}
8882 printf %s
"(cached) " >&6
8885 old_CXXFLAGS
="$CXXFLAGS"
8886 CXXFLAGS
="$CXXFLAGS -std=gnu++11"
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8892 // Compiler support.
8899 S * get () { return &s; }
8901 // libstdc++ support.
8902 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
8903 #error __cxa_thread_atexit_impl not supported
8907 if ac_fn_cxx_try_compile
"$LINENO"
8909 libc_cv_cxx_thread_local
=yes
8911 e
) libc_cv_cxx_thread_local
=no
;;
8914 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8915 CXXFLAGS
="$old_CXXFLAGS"
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
8920 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
8924 ac_cpp
='$CPP $CPPFLAGS'
8925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8930 ### End of automated tests.
8931 ### Now run sysdeps configure fragments.
8933 # They also can set these variables.
8935 ldd_rewrite_script
=no
8936 libc_cv_sysconfdir
=$sysconfdir
8937 libc_cv_localstatedir
=$localstatedir
8938 libc_cv_gcc_unwind_find_fde
=no
8942 # Iterate over all the sysdep directories we will use, running their
8943 # configure fragments.
8944 for dir
in $sysnames; do
8947 *) dest
=$srcdir/$dir ;;
8949 if test -r $dest/configure
; then
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
8951 printf "%s\n" "running configure fragment for $dir" >&6; }
8956 if test x
"$build_mathvec" = xnotset
; then
8959 config_vars
="$config_vars
8960 build-mathvec = $build_mathvec"
8965 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
8966 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
8971 # A sysdeps configure fragment can reset this if IFUNC is not actually
8972 # usable even though the assembler knows how to generate the symbol type.
8973 if test x
"$libc_cv_ld_gnu_indirect_function" = xyes
; then
8974 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
8977 config_vars
="$config_vars
8978 have-ifunc = $libc_cv_ld_gnu_indirect_function"
8980 if test x
"$libc_cv_gcc_indirect_function" = xyes
; then
8981 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
8984 config_vars
="$config_vars
8985 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
8987 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
8988 # configure fragment can override the value to prevent this AC_DEFINE.
8990 if test "x$use_nscd" != xno
; then
8991 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
8994 if test "x$build_nscd" = xdefault
; then
8995 build_nscd
=$use_nscd
9005 if test x
$use_ldconfig = xyes
; then
9006 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
9016 printf %s
"checking whether -fPIC is default... " >&6; }
9017 if test ${libc_cv_pic_default+y}
9019 printf %s
"(cached) " >&6
9021 e
) libc_cv_pic_default
=yes
9022 cat > conftest.c
<<EOF
9023 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
9024 # error PIC is default.
9027 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
9028 libc_cv_pic_default
=no
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
9034 printf "%s\n" "$libc_cv_pic_default" >&6; }
9035 config_vars
="$config_vars
9036 build-pic-default = $libc_cv_pic_default"
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
9039 printf %s
"checking whether -fPIE is default... " >&6; }
9040 if test ${libc_cv_cc_pie_default+y}
9042 printf %s
"(cached) " >&6
9044 e
) libc_cv_cc_pie_default
=yes
9045 cat > conftest.c
<<EOF
9046 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
9047 # error PIE is default.
9050 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
9051 libc_cv_cc_pie_default
=no
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
9057 printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
9058 config_vars
="$config_vars
9059 cc-pie-default = $libc_cv_cc_pie_default"
9061 # Get Position Dependent Executable (PDE) load address to be used to
9062 # load static Position Independent Executable (PIE) at a known working
9063 # non-zero load address. This is only used by glibc tests to verify
9064 # that PIE and static PIE with non-zero load address work correctly.
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PDE load address" >&5
9066 printf %s
"checking PDE load address... " >&6; }
9067 if test ${libc_cv_pde_load_address+y}
9069 printf %s
"(cached) " >&6
9071 e
) cat > conftest.S
<<EOF
9078 if test $libc_cv_cc_pie_default = yes; then
9079 pde_ld_flags
="-no-pie"
9081 if ${CC-cc} $pde_ld_flags $CFLAGS $CPPFLAGS $LDFLAGS \
9082 -nostartfiles -nostdlib $no_ssp \
9083 -o conftest conftest.S
1>&5 2>&5; then
9084 # Get the load address of the first PT_LOAD segment.
9085 libc_cv_pde_load_address
=$
(LC_ALL
=C
$READELF -Wl conftest \
9086 |
$AWK '/LOAD/ { print $3; exit 0; }')
9088 as_fn_error $?
"${CC-cc} can not create PDE" "$LINENO" 5
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pde_load_address" >&5
9094 printf "%s\n" "$libc_cv_pde_load_address" >&6; }
9095 config_vars
="$config_vars
9096 pde-load-address = $libc_cv_pde_load_address"
9098 # Get the linker command-line option to load executable at a non-zero
9099 # load address. This is only used by glibc tests to verify that PIE and
9100 # static PIE with non-zero load address work correctly.
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address" >&5
9102 printf %s
"checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address... " >&6; }
9103 libc_linker_feature
=no
9104 cat > conftest.c
<<EOF
9105 int _start (void) { return 42; }
9107 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
9108 -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib -nostartfiles
9109 -fPIC -shared -o conftest.so conftest.c
9111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9115 test $ac_status = 0; }; }
9117 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib \
9118 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
9119 |
grep "warning: -Ttext-segment=$libc_cv_pde_load_address ignored" > /dev
/null
2>&1; then
9122 libc_linker_feature
=yes
9126 if test $libc_linker_feature = yes; then
9127 libc_cv_load_address_ldflag
=-Wl,-Ttext-segment
9129 libc_cv_load_address_ldflag
=
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
9132 printf "%s\n" "$libc_linker_feature" >&6; }
9133 config_vars
="$config_vars
9134 load-address-ldflag = $libc_cv_load_address_ldflag"
9136 # Check if compilers support GCS in branch protection:
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs" >&5
9139 printf %s
"checking if compiler supports -mbranch-protection=gcs... " >&6; }
9140 if test ${libc_cv_cc_gcs+y}
9142 printf %s
"(cached) " >&6
9144 e
) if { ac_try
='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null'
9145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149 test $ac_status = 0; }; }
9153 e
) libc_cv_cc_gcs
=no
;;
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_gcs" >&5
9159 printf "%s\n" "$libc_cv_cc_gcs" >&6; }
9160 if test "$TEST_CC" = "$CC"; then
9161 libc_cv_test_cc_gcs
=$libc_cv_cc_gcs
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs in testing" >&5
9167 printf %s
"checking if compiler supports -mbranch-protection=gcs in testing... " >&6; }
9168 if test ${libc_cv_test_cc_gcs+y}
9170 printf %s
"(cached) " >&6
9172 e
) if { ac_try
='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null'
9173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9177 test $ac_status = 0; }; }
9179 libc_cv_test_cc_gcs
=yes
9181 e
) libc_cv_test_cc_gcs
=no
;;
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_gcs" >&5
9187 printf "%s\n" "$libc_cv_test_cc_gcs" >&6; }
9193 config_vars
="$config_vars
9194 have-cc-gcs = $libc_cv_cc_gcs"
9195 config_vars
="$config_vars
9196 have-test-cc-gcs = $libc_cv_test_cc_gcs"
9198 # Check if linker supports GCS marking
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z gcs=always" >&5
9200 printf %s
"checking for linker that supports -z gcs=always... " >&6; }
9201 libc_linker_feature
=no
9202 cat > conftest.c
<<EOF
9203 int _start (void) { return 42; }
9205 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
9206 -Wl,-z,gcs=always -nostdlib -nostartfiles
9207 -fPIC -shared -o conftest.so conftest.c
9209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; }; }
9215 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,gcs
=always
-nostdlib \
9216 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
9217 |
grep "warning: -z gcs=always ignored" > /dev
/null
2>&1; then
9220 libc_linker_feature
=yes
9224 if test $libc_linker_feature = yes; then
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
9230 printf "%s\n" "$libc_linker_feature" >&6; }
9231 config_vars
="$config_vars
9232 have-ld-gcs = $libc_cv_ld_gcs"
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
9235 printf %s
"checking if we can build programs as PIE... " >&6; }
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #ifdef PIE_UNSUPPORTED
9239 # error PIE is not supported
9242 if ac_fn_c_try_compile
"$LINENO"
9244 libc_cv_pie_supported
=yes
9246 e
) libc_cv_pie_supported
=no
;;
9249 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
9251 printf "%s\n" "$libc_cv_pie_supported" >&6; }
9252 # Disable build-pie-default if target does not support it or glibc is
9253 # configured with --disable-default-pie.
9254 if test "x$default_pie" = xno
; then
9255 build_pie_default
=no
9257 build_pie_default
=$libc_cv_pie_supported
9259 config_vars
="$config_vars
9260 build-pie-default = $build_pie_default"
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
9263 printf %s
"checking if we can build static PIE programs... " >&6; }
9264 libc_cv_static_pie_supported
=$libc_cv_pie_supported
9265 if test "x$libc_cv_pie_supported" != xno \
9266 -a "$libc_cv_no_dynamic_linker" = yes; then
9267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #ifndef SUPPORT_STATIC_PIE
9270 # error static PIE is not supported
9273 if ac_fn_c_try_compile
"$LINENO"
9275 libc_cv_static_pie_supported
=yes
9277 e
) libc_cv_static_pie_supported
=no
;;
9280 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
9283 printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
9285 # Enable static-pie only if it is available and glibc isn't configured
9286 # with --disable-default-pie.
9287 if test "x$default_pie" = xno
; then
9288 libc_cv_static_pie
=no
9290 libc_cv_static_pie
=$libc_cv_static_pie_supported
9292 if test "$libc_cv_static_pie" = "yes"; then
9293 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
9296 config_vars
="$config_vars
9297 enable-static-pie = $libc_cv_static_pie"
9299 # Check if we can link support functionality against libgcc_s.
9300 # Must not be used for linking installed binaries, to produce the
9301 # same binaries for bootstrapped and bootstrapping builds (the latter
9302 # with a GCC that does not build libgcc_s).
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can link against -lgcc_s" >&5
9304 printf %s
"checking whether $CC can link against -lgcc_s... " >&6; }
9305 if test ${libc_cv_have_libgcc_s+y}
9307 printf %s
"(cached) " >&6
9310 LIBS
="$LIBS -lgcc_s"
9311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9322 if ac_fn_c_try_link
"$LINENO"
9324 libc_cv_have_libgcc_s
=yes
9326 e
) libc_cv_have_libgcc_s
=no
;;
9329 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9330 conftest
$ac_exeext conftest.
$ac_ext
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_libgcc_s" >&5
9335 printf "%s\n" "$libc_cv_have_libgcc_s" >&6; }
9336 config_vars
="$config_vars
9337 have-libgcc_s = $libc_cv_have_libgcc_s"
9339 # Support configure.ac under sysdeps.
9344 # Set the `multidir' variable by grabbing the variable from the compiler.
9345 # We do it once and save the result in a generated makefile.
9346 libc_cv_multidir
=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
9356 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
9357 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
9361 if test "$pthread_in_libc" = yes; then
9362 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
9367 ac_config_files
="$ac_config_files config.make Makefile"
9369 ac_config_commands
="$ac_config_commands default"
9371 cat >confcache
<<\_ACEOF
9372 # This file is a shell script that caches the results of configure
9373 # tests run on this system so they can be shared between configure
9374 # scripts and configure runs, see configure's option --config-cache.
9375 # It is not useful on other systems. If it contains results you don't
9376 # want to keep, you may remove or edit it.
9378 # config.status only pays attention to the cache file if you give it
9379 # the --recheck option to rerun configure.
9381 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
9382 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
9387 # The following way of writing the cache mishandles newlines in values,
9388 # but we know of no workaround that is simple, portable, and efficient.
9389 # So, we kill variables containing newlines.
9390 # Ultrix sh set writes to stderr and can't be redirected directly,
9391 # and sets the high bit in the cache file unless we assign to the vars.
9393 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9394 eval ac_val
=\$
$ac_var
9398 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9399 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9402 _ | IFS | as_nl
) ;; #(
9403 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9404 *) { eval $ac_var=; unset $ac_var;} ;;
9410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9411 *${as_nl}ac_space
=\
*)
9412 # 'set' does not quote correctly, so add quotes: double-quote
9413 # substitution turns \\\\ into \\, and sed turns \\ into \.
9416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9419 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9429 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9433 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9434 if test -w "$cache_file"; then
9435 if test "x$cache_file" != "x/dev/null"; then
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9437 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9438 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9439 cat confcache
>"$cache_file"
9441 case $cache_file in #(
9443 mv -f confcache
"$cache_file"$$
&&
9444 mv -f "$cache_file"$$
"$cache_file" ;; #(
9446 mv -f confcache
"$cache_file" ;;
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9452 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9457 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9458 # Let make expand exec_prefix.
9459 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9461 DEFS
=-DHAVE_CONFIG_H
9466 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9467 # 1. Remove the extension, and $U if already installed.
9468 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9469 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9471 # will be set to the directory where LIBOBJS objects are built.
9472 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9473 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9477 LTLIBOBJS
=$ac_ltlibobjs
9481 : "${CONFIG_STATUS=./config.status}"
9483 ac_clean_files_save
=$ac_clean_files
9484 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9486 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9490 # Generated by $as_me.
9491 # Run this file to recreate the current configuration.
9492 # Compiler output produced by configure, useful for debugging
9493 # configure, is in config.log if it exists.
9499 SHELL=\${CONFIG_SHELL-$SHELL}
9502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9503 ## -------------------- ##
9504 ## M4sh Initialization. ##
9505 ## -------------------- ##
9507 # Be more Bourne compatible
9508 DUALCASE
=1; export DUALCASE
# for MKS sh
9509 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
9513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9514 # is contrary to our usage. Disable this feature.
9515 alias -g '${1+"$@"}'='"$@"'
9516 setopt NO_GLOB_SUBST
9518 e
) case `(set -o) 2>/dev/null` in #(
9529 # Reset variables that may have inherited troublesome values from
9532 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9533 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9534 # side effect of setting IFS to empty, thus disabling word splitting.)
9535 # Quoting is to prevent editors from complaining about space-tab.
9545 # Ensure predictable behavior from utilities with locale-dependent output.
9551 # We cannot yet rely on "unset" to work, but we need these variables
9552 # to be unset--not just set to an empty or harmless value--now, to
9553 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9554 # also avoids known problems related to "unset" and subshell syntax
9555 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9556 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
9557 do eval test \
${$as_var+y} \
9558 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9561 # Ensure that fds 0, 1, and 2 are open.
9562 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
9563 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
9564 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
9566 # The user is always right.
9567 if ${PATH_SEPARATOR+false} :; then
9569 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
9570 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
9576 # Find who we are. Look in the path if we contain no directory separator.
9579 *[\\/]* ) as_myself
=$0 ;;
9580 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9584 case $as_dir in #(((
9587 *) as_dir
=$as_dir/ ;;
9589 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
9595 # We did not find ourselves, most probably we were run as 'sh COMMAND'
9596 # in which case we are not to be found in the path.
9597 if test "x$as_myself" = x
; then
9600 if test ! -f "$as_myself"; then
9601 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9607 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9608 # ----------------------------------------
9609 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9610 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9611 # script with STATUS, using 1 if that was 0.
9614 as_status
=$1; test $as_status -eq 0 && as_status
=1
9616 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9619 printf "%s\n" "$as_me: error: $2" >&2
9620 as_fn_exit
$as_status
9624 # as_fn_set_status STATUS
9625 # -----------------------
9626 # Set $? to STATUS, without forking.
9630 } # as_fn_set_status
9634 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9644 # Portably unset VAR.
9647 { eval $1=; unset $1;}
9649 as_unset
=as_fn_unset
9651 # as_fn_append VAR VALUE
9652 # ----------------------
9653 # Append the text in VALUE to the end of the definition contained in VAR. Take
9654 # advantage of any shell optimizations that allow amortized linear growth over
9655 # repeated appends, instead of the typical quadratic growth present in naive
9657 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
9659 eval 'as_fn_append ()
9671 # as_fn_arith ARG...
9672 # ------------------
9673 # Perform arithmetic evaluation on the ARGs, and store the result in the
9674 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9675 # must be portable across $(()) and expr.
9676 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
9678 eval 'as_fn_arith ()
9685 as_val
=`expr "$@" || test $? -eq 1`
9691 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9692 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9698 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9699 as_basename
=basename
9704 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9710 as_me
=`$as_basename -- "$0" ||
9711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9712 X"$0" : 'X\(//\)$' \| \
9713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9714 printf "%s\n" X/"$0" |
9715 sed '/^.*\/\([^/][^/]*\)\/*$/{
9729 # Avoid depending upon Character Ranges.
9730 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9731 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9732 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9733 as_cr_digits
='0123456789'
9734 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9737 # Determine whether it's possible to make 'echo' print without a newline.
9738 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9739 # for compatibility with existing Makefiles.
9740 ECHO_C
= ECHO_N
= ECHO_T
=
9741 case `echo -n x` in #(((((
9743 case `echo 'xy\c'` in
9744 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9746 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9753 # For backward compatibility with old third-party macros, we provide
9754 # the shell variables $as_echo and $as_echo_n. New code should use
9755 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9756 as_echo
='printf %s\n'
9757 as_echo_n
='printf %s'
9759 rm -f conf$$ conf$$.exe conf$$.
file
9760 if test -d conf$$.dir
; then
9761 rm -f conf$$.dir
/conf$$.
file
9764 mkdir conf$$.dir
2>/dev
/null
9766 if (echo >conf$$.
file) 2>/dev
/null
; then
9767 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9769 # ... but there are two gotchas:
9770 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
9771 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
9772 # In both cases, we have to default to 'cp -pR'.
9773 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9775 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9783 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9784 rmdir conf$$.dir
2>/dev
/null
9789 # Create "$as_dir" as a directory, including parents if necessary.
9794 -*) as_dir
=.
/$as_dir;;
9796 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9800 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9801 *) as_qdir
=$as_dir;;
9803 as_dirs
="'$as_qdir' $as_dirs"
9804 as_dir
=`$as_dirname -- "$as_dir" ||
9805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9806 X"$as_dir" : 'X\(//\)[^/]' \| \
9807 X"$as_dir" : 'X\(//\)$' \| \
9808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9809 printf "%s\n" X"$as_dir" |
9810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9827 test -d "$as_dir" && break
9829 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9830 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9834 if mkdir
-p .
2>/dev
/null
; then
9835 as_mkdir_p
='mkdir -p "$as_dir"'
9837 test -d .
/-p && rmdir .
/-p
9842 # as_fn_executable_p FILE
9843 # -----------------------
9844 # Test if FILE is an executable regular file.
9845 as_fn_executable_p
()
9847 test -f "$1" && test -x "$1"
9848 } # as_fn_executable_p
9850 as_executable_p
=as_fn_executable_p
9852 # Sed expression to map a string onto a valid CPP name.
9853 as_sed_cpp
="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9854 as_tr_cpp
="eval sed '$as_sed_cpp'" # deprecated
9856 # Sed expression to map a string onto a valid variable name.
9857 as_sed_sh
="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9858 as_tr_sh
="eval sed '$as_sed_sh'" # deprecated
9862 ## ----------------------------------- ##
9863 ## Main body of $CONFIG_STATUS script. ##
9864 ## ----------------------------------- ##
9866 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9869 # Save the log message, to keep $0 and so on meaningful, and to
9870 # report actual input values of CONFIG_FILES etc. instead of their
9871 # values after options handling.
9873 This file was extended by GNU C Library $as_me (see version.h), which was
9874 generated by GNU Autoconf 2.72. Invocation command line was
9876 CONFIG_FILES = $CONFIG_FILES
9877 CONFIG_HEADERS = $CONFIG_HEADERS
9878 CONFIG_LINKS = $CONFIG_LINKS
9879 CONFIG_COMMANDS = $CONFIG_COMMANDS
9882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9887 case $ac_config_files in *"
9888 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9891 case $ac_config_headers in *"
9892 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9897 # Files that config.status was made for.
9898 config_files="$ac_config_files"
9899 config_headers="$ac_config_headers"
9900 config_commands="$ac_config_commands"
9904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9906 '$as_me' instantiates files and other configuration actions
9907 from templates according to the current configuration. Unless the files
9908 and actions are specified as TAGs, all are instantiated by default.
9910 Usage: $0 [OPTION]... [TAG]...
9912 -h, --help print this help, then exit
9913 -V, --version print version number and configuration settings, then exit
9914 --config print configuration, then exit
9915 -q, --quiet, --silent
9916 do not print progress messages
9917 -d, --debug don't remove temporary files
9918 --recheck update $as_me by reconfiguring in the same conditions
9919 --file=FILE[:TEMPLATE]
9920 instantiate the configuration file FILE
9921 --header=FILE[:TEMPLATE]
9922 instantiate the configuration header FILE
9924 Configuration files:
9927 Configuration headers:
9930 Configuration commands:
9933 Report bugs to <https://sourceware.org/bugzilla/>.
9934 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
9935 General help using GNU software: <https://www.gnu.org/gethelp/>."
9938 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9939 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9941 ac_cs_config='$ac_cs_config_escaped'
9943 GNU C Library config.status (see version.h)
9944 configured by $0, generated by GNU Autoconf 2.72,
9945 with options \\"\$ac_cs_config\\"
9947 Copyright (C) 2023 Free Software Foundation, Inc.
9948 This config.status script is free software; the Free Software Foundation
9949 gives unlimited permission to copy, distribute and modify it."
9954 test -n "\$AWK" || AWK=awk
9957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9958 # The default lists apply if the user does not specify any file.
9964 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9965 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9969 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9981 # Handling of the options.
9982 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9984 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9985 printf "%s\n" "$ac_cs_version"; exit ;;
9986 --config |
--confi |
--conf |
--con |
--co |
--c )
9987 printf "%s\n" "$ac_cs_config"; exit ;;
9988 --debug |
--debu |
--deb |
--de |
--d |
-d )
9990 --file |
--fil |
--fi |
--f )
9993 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9994 '') as_fn_error $?
"missing file argument" ;;
9996 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9997 ac_need_defaults
=false
;;
9998 --header |
--heade |
--head |
--hea )
10001 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10003 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10004 ac_need_defaults
=false
;;
10006 # Conflict between --help and --header
10007 as_fn_error $?
"ambiguous option: '$1'
10008 Try '$0 --help' for more information.";;
10009 --help |
--hel |
-h )
10010 printf "%s\n" "$ac_cs_usage"; exit ;;
10011 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10012 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10015 # This is an error.
10016 -*) as_fn_error $?
"unrecognized option: '$1'
10017 Try '$0 --help' for more information." ;;
10019 *) as_fn_append ac_config_targets
" $1"
10020 ac_need_defaults
=false
;;
10026 ac_configure_extra_args
=
10028 if $ac_cs_silent; then
10030 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10035 if \$ac_cs_recheck; then
10036 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10038 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10039 CONFIG_SHELL='$SHELL'
10040 export CONFIG_SHELL
10045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10049 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10050 ## Running $as_me. ##
10052 printf "%s\n" "$ac_log"
10056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10060 config_vars='$config_vars'
10064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10066 # Handling of arguments.
10067 for ac_config_target
in $ac_config_targets
10069 case $ac_config_target in
10070 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10071 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
10072 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10073 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
10075 *) as_fn_error $?
"invalid argument: '$ac_config_target'" "$LINENO" 5;;
10080 # If the user did not use the arguments to specify the items to instantiate,
10081 # then the envvar interface is used. Set only those that are not.
10082 # We use the long form for the default assignment because of an extremely
10083 # bizarre bug on SunOS 4.1.3.
10084 if $ac_need_defaults; then
10085 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
10086 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
10087 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
10090 # Have a temporary directory for convenience. Make it in the build tree
10091 # simply because there is no reason against having it here, and in addition,
10092 # creating and moving files from /tmp can sometimes cause problems.
10093 # Hook for its removal unless debugging.
10094 # Note that there is a small window in which the directory will not be cleaned:
10095 # after its creation but before its name has been assigned to '$tmp'.
10099 trap 'exit_status=$?
10100 : "${ac_tmp:=$tmp}"
10101 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10103 trap 'as_fn_exit 1' 1 2 13 15
10105 # Create a (secure) tmp directory for tmp files.
10108 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10112 tmp
=.
/conf$$
-$RANDOM
10113 (umask 077 && mkdir
"$tmp")
10114 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10117 # Set up the scripts for CONFIG_FILES section.
10118 # No need to generate them if there are no CONFIG_FILES.
10119 # This happens for instance with './config.status config.h'.
10120 if test -n "$CONFIG_FILES"; then
10123 ac_cr
=`echo X | tr X '\015'`
10124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10125 # But we know of no other shell where ac_cr would be empty at this
10126 # point, so we can use a bashism as a fallback.
10127 if test "x$ac_cr" = x
; then
10128 eval ac_cr
=\$
\'\\r
\'
10130 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10134 ac_cs_awk_cr
=$ac_cr
10137 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10142 echo "cat >conf$$subs.awk <<_ACEOF" &&
10143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10145 } >conf$$subs.sh ||
10146 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10149 for ac_last_try in false false false false false :; do
10150 . ./conf$$subs.sh ||
10151 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10153 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10154 if test $ac_delim_n = $ac_delim_num; then
10156 elif $ac_last_try; then
10157 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10159 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10162 rm -f conf$$subs.sh
10164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10165 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10169 s/^/S["/; s
/!.
*/"]=/
10179 s/\(.\{148\}\)..*/\1/
10181 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10186 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10193 s/\(.\{148\}\)..*/\1/
10195 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10199 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10204 ' <conf$$subs.awk | sed '
10209 ' >>$CONFIG_STATUS || ac_write_fail=1
10210 rm -f conf$$subs.awk
10211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10213 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10214 for (key in S) S_is_set[key] = 1
10220 nfields = split(line, field, "@
")
10222 len = length(field[1])
10223 for (i = 2; i < nfields; i++) {
10225 keylen = length(key)
10226 if (S_is_set[key]) {
10228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10229 len += length(value) + length(field[++i])
10240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10241 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10242 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10245 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10246 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10249 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10250 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10251 # trailing colons and then remove the whole line if VPATH becomes empty
10252 # (actually we leave an empty line to preserve line numbers).
10253 if test "x
$srcdir" = x.; then
10254 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10273 fi # test -n "$CONFIG_FILES"
10275 # Set up the scripts for CONFIG_HEADERS section.
10276 # No need to generate them if there are no CONFIG_HEADERS.
10277 # This happens for instance with './config.status Makefile'.
10278 if test -n "$CONFIG_HEADERS"; then
10279 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10283 # Transform confdefs.h into an awk script 'defines.awk', embedded as
10284 # here-document in config.status, that substitutes the proper values into
10285 # config.h.in to produce config.h.
10287 # Create a delimiter string that does not exist in confdefs.h, to ease
10288 # handling of long lines.
10290 for ac_last_try in false false :; do
10291 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10292 if test -z "$ac_tt"; then
10294 elif $ac_last_try; then
10295 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10297 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10301 # For the awk script, D is an array of macro values keyed by name,
10302 # likewise P contains macro parameters if any. Preserve backslash
10303 # newline sequences.
10305 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10307 s/.\{148\}/&'"$ac_delim"'/g
10310 s/^[ ]*#[ ]*define[ ][ ]*/ /
10317 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10319 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10323 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10324 D["\
1"]=" \
3\\\\\\n
"\\/p
10326 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10331 s/.\{148\}/&'"$ac_delim"'/g
10336 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10339 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10341 ' <confdefs.h | sed '
10342 s/'"$ac_delim"'/"\\\
10343 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10346 for (key in D) D_is_set[key] = 1
10349 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10351 split(line, arg, " ")
10352 if (arg[1] == "#") {
10356 defundef
= substr
(arg
[1], 2)
10359 split(mac1
, mac2
, "(") #)
10361 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10362 if (D_is_set
[macro
]) {
10363 # Preserve the white space surrounding the "#".
10364 print prefix
"define", macro P
[macro
] D
[macro
]
10367 # Replace #undef with comments. This is necessary, for example,
10368 # in the case of _POSIX_SOURCE, which is predefined and required
10369 # on some systems where configure will not decide to define it.
10370 if (defundef
== "undef") {
10371 print
"/*", prefix defundef
, macro
, "*/"
10379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10380 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10381 fi # test -n "$CONFIG_HEADERS"
10384 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10389 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10391 case $ac_mode$ac_tag in
10393 :L
* |
:C
*:*) as_fn_error $?
"invalid tag '$ac_tag'" "$LINENO" 5;;
10394 :[FH
]-) ac_tag
=-:-;;
10395 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10412 -) ac_f
="$ac_tmp/stdin";;
10413 *) # Look for the file first in the build tree, then in the source tree
10414 # (if the path is not absolute). The absolute path cannot be DOS-style,
10415 # because $ac_f cannot contain ':'.
10419 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10421 as_fn_error
1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10423 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10424 as_fn_append ac_file_inputs
" '$ac_f'"
10427 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10428 # use $as_me), people would be surprised to read:
10429 # /* config.h. Generated by config.status. */
10430 configure_input
='Generated from '`
10431 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10433 if test x
"$ac_file" != x-
; then
10434 configure_input
="$ac_file. $configure_input"
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10436 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10438 # Neutralize special characters interpreted by sed in replacement strings.
10439 case $configure_input in #(
10440 *\
&* |
*\|
* |
*\\* )
10441 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
10442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10443 *) ac_sed_conf_input
=$configure_input;;
10447 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10448 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10453 ac_dir
=`$as_dirname -- "$ac_file" ||
10454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10455 X"$ac_file" : 'X\(//\)[^/]' \| \
10456 X"$ac_file" : 'X\(//\)$' \| \
10457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10458 printf "%s\n" X"$ac_file" |
10459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10463 /^X\(\/\/\)[^/].*/{
10476 as_dir
="$ac_dir"; as_fn_mkdir_p
10480 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10482 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10483 # A ".." for each directory in $ac_dir_suffix.
10484 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10485 case $ac_top_builddir_sub in
10486 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10487 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10490 ac_abs_top_builddir
=$ac_pwd
10491 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10492 # for backward compatibility:
10493 ac_top_builddir
=$ac_top_build_prefix
10496 .
) # We are building in place.
10498 ac_top_srcdir
=$ac_top_builddir_sub
10499 ac_abs_top_srcdir
=$ac_pwd ;;
10500 [\\/]* | ?
:[\\/]* ) # Absolute name.
10501 ac_srcdir
=$srcdir$ac_dir_suffix;
10502 ac_top_srcdir
=$srcdir
10503 ac_abs_top_srcdir
=$srcdir ;;
10504 *) # Relative name.
10505 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10506 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10507 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10509 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10519 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10520 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10525 # If the template does not know about datarootdir, expand it.
10526 # FIXME: This hack should be removed a few years after 2.60.
10527 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10539 *datarootdir
*) ac_datarootdir_seen
=yes;;
10540 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10542 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10545 ac_datarootdir_hack='
10546 s&@datadir@&$datadir&g
10547 s&@docdir@&$docdir&g
10548 s&@infodir@&$infodir&g
10549 s&@localedir@&$localedir&g
10550 s&@mandir@&$mandir&g
10551 s&\\\${datarootdir}&$datarootdir&g' ;;
10555 # Neutralize VPATH when '$srcdir' = '.'.
10556 # Shell code in configure.ac might set extrasub.
10557 # FIXME: do we really want to maintain this feature?
10558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559 ac_sed_extra="$ac_vpsub
10562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10564 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10565 s|@configure_input@|
$ac_sed_conf_input|
;t t
10566 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10567 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10568 s
&@srcdir@
&$ac_srcdir&;t t
10569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10572 s
&@builddir@
&$ac_builddir&;t t
10573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10575 s
&@INSTALL@
&$ac_INSTALL&;t t
10576 $ac_datarootdir_hack
10578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10579 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10584 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10585 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable
'datarootdir'
10586 which seems to be undefined. Please
make sure it is defined
" >&5
10587 printf "%s
\n" "$as_me: WARNING
: $ac_file contains a reference to the variable
'datarootdir'
10588 which seems to be undefined. Please
make sure it is defined
" >&2;}
10590 rm -f "$ac_tmp/stdin
"
10592 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
10593 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
10595 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10601 if test x"$ac_file" != x-; then
10603 printf "%s
\n" "/* $configure_input */" >&1 \
10604 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
10605 } >"$ac_tmp/config.h
" \
10606 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10607 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
10608 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
10609 printf "%s
\n" "$as_me: $ac_file is unchanged
" >&6;}
10612 mv "$ac_tmp/config.h
" "$ac_file" \
10613 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10616 printf "%s
\n" "/* $configure_input */" >&1 \
10617 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
10618 || as_fn_error $? "could not create
-" "$LINENO" 5
10622 :C) { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
10623 printf "%s
\n" "$as_me: executing
$ac_file commands
" >&6;}
10628 case $ac_file$ac_mode in
10630 case $CONFIG_FILES in *config.make*)
10631 echo "$config_vars" >> config.make;;
10633 test -d bits || mkdir bits ;;
10641 ac_clean_files=$ac_clean_files_save
10643 test $ac_write_fail = 0 ||
10644 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
10647 # configure is writing to config.log, and then calls config.status.
10648 # config.status does its own redirection, appending to config.log.
10649 # Unfortunately, on DOS this fails, as config.log is still kept open
10650 # by configure, so config.status won't be able to write to it; its
10651 # output is simply discarded. So we exec the FD to /dev/null,
10652 # effectively closing config.log, so it can be properly (re)opened and
10653 # appended to by config.status. When coming back to configure, we
10654 # need to make the FD available again.
10655 if test "$no_create" != yes; then
10657 ac_config_status_args=
10658 test "$silent" = yes &&
10659 ac_config_status_args="$ac_config_status_args --quiet"
10661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10664 # would make configure fail if this is the last instruction.
10665 $ac_cs_success || as_fn_exit 1
10669 # CONFIG_SUBDIRS section.
10671 if test "$no_recursion" != yes; then
10673 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10674 # so they do not pile up.
10675 ac_sub_configure_args=
10677 eval "set x
$ac_configure_args"
10681 if test -n "$ac_prev"; then
10686 -cache-file | --cache-file | --cache-fil | --cache-fi \
10687 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10688 ac_prev=cache_file ;;
10689 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10690 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10693 --config-cache | -C)
10695 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10697 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10699 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10701 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10703 --disable-option-checking)
10707 *\'*) ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
10709 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10713 # Always prepend --prefix to ensure using the same prefix
10714 # in subdir configurations.
10715 ac_arg="--prefix=$prefix"
10717 *\'*) ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
10719 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10722 if test "$silent" = yes; then
10723 ac_sub_configure_args="--silent $ac_sub_configure_args"
10726 # Always prepend --disable-option-checking to silence warnings, since
10727 # different subdirs can have different --enable and --with options.
10728 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10731 for ac_dir in : $subdirs; do test "x
$ac_dir" = x: && continue
10733 # Do not complain, so a configure script can configure whichever
10734 # parts of a large source tree are present.
10735 test -d "$srcdir/$ac_dir" || continue
10737 ac_msg="=== configuring
in $ac_dir (`pwd`/$ac_dir)"
10738 printf "%s
\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10739 printf "%s
\n" "$ac_msg" >&6
10740 as_dir="$ac_dir"; as_fn_mkdir_p
10744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10746 ac_dir_suffix=/`printf "%s
\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10747 # A "..
" for each directory in $ac_dir_suffix.
10748 ac_top_builddir_sub=`printf "%s
\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10749 case $ac_top_builddir_sub in
10750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10754 ac_abs_top_builddir=$ac_pwd
10755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10756 # for backward compatibility:
10757 ac_top_builddir=$ac_top_build_prefix
10760 .) # We are building in place.
10762 ac_top_srcdir=$ac_top_builddir_sub
10763 ac_abs_top_srcdir=$ac_pwd ;;
10764 [\\/]* | ?:[\\/]* ) # Absolute name.
10765 ac_srcdir=$srcdir$ac_dir_suffix;
10766 ac_top_srcdir=$srcdir
10767 ac_abs_top_srcdir=$srcdir ;;
10768 *) # Relative name.
10769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10770 ac_top_srcdir=$ac_top_build_prefix$srcdir
10771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10778 # Check for configure.gnu first; this name is used for a wrapper for
10779 # Metaconfig's "Configure
" on case-insensitive file systems.
10780 if test -f "$ac_srcdir/configure.gnu
"; then
10781 ac_sub_configure=$ac_srcdir/configure.gnu
10782 elif test -f "$ac_srcdir/configure
"; then
10783 ac_sub_configure=$ac_srcdir/configure
10785 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: no configuration information is
in $ac_dir" >&5
10786 printf "%s
\n" "$as_me: WARNING
: no configuration information is
in $ac_dir" >&2;}
10790 # The recursion is here.
10791 if test -n "$ac_sub_configure"; then
10792 # Make the cache file name correct relative to the subdirectory.
10793 case $cache_file in
10794 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10795 *) # Relative name.
10796 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10799 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: running
$SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10800 printf "%s
\n" "$as_me: running
$SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10801 # The eval makes quoting arguments work.
10802 eval "\
$SHELL \"\
$ac_sub_configure\" $ac_sub_configure_args \
10803 --cache-file=\"\
$ac_sub_cache_file\" --srcdir=\"\
$ac_srcdir\"" ||
10804 as_fn_error $? "$ac_sub_configure failed
for $ac_dir" "$LINENO" 5
10810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10811 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
10812 printf "%s
\n" "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}