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
628 libc_cv_localstatedir
630 libc_cv_complocaledir
634 libc_cv_gcc_unwind_find_fde
637 libc_cv_cxx_thread_local
640 libc_cv_fortify_source
641 enable_fortify_source
646 libc_cv_cc_loop_to_function
647 libc_cv_cc_submachine
649 libc_cv_mtls_descriptor
654 libc_cv_cc_with_libunwind
656 libc_cv_protected_data
668 libc_cv_textrel_ifunc
700 hardcoded_path_in_tests
701 enable_timezone_tools
704 extra_nonshared_cflags
759 program_transform_name
772 enable_option_checking
775 enable_static_c___tests
776 enable_static_c___link_check
783 with_nonshared_cflags
784 with_rtld_early_cflags
791 enable_timezone_tools
792 enable_hardcoded_path_in_tests
795 enable_stack_protector
798 enable_maintainer_mode
802 enable_memory_tagging
810 enable_fortify_source
813 ac_precious_vars
='build_alias
827 # Initialize some variables set by options.
829 ac_init_version
=false
830 ac_unrecognized_opts
=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name
=s
,x
,x
,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir
='${exec_prefix}/bin'
856 sbindir
='${exec_prefix}/sbin'
857 libexecdir
='${exec_prefix}/libexec'
858 datarootdir
='${prefix}/share'
859 datadir
='${datarootdir}'
860 sysconfdir
='${prefix}/etc'
861 sharedstatedir
='${prefix}/com'
862 localstatedir
='${prefix}/var'
863 runstatedir
='${localstatedir}/run'
864 includedir
='${prefix}/include'
865 oldincludedir
='/usr/include'
866 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir
='${datarootdir}/info'
872 libdir
='${exec_prefix}/lib'
873 localedir
='${datarootdir}/locale'
874 mandir
='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\
$ac_option
888 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 case $ac_dashdash$ac_option in
897 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
899 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
902 -build |
--build |
--buil |
--bui |
--bu)
903 ac_prev
=build_alias
;;
904 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
905 build_alias
=$ac_optarg ;;
907 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
908 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
909 ac_prev
=cache_file
;;
910 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
911 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
912 cache_file
=$ac_optarg ;;
915 cache_file
=config.cache
;;
917 -datadir |
--datadir |
--datadi |
--datad)
919 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
920 datadir
=$ac_optarg ;;
922 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
923 |
--dataroo |
--dataro |
--datar)
924 ac_prev
=datarootdir
;;
925 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
926 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
927 datarootdir
=$ac_optarg ;;
929 -disable-* |
--disable-*)
930 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
933 as_fn_error $?
"invalid feature name: '$ac_useropt'"
934 ac_useropt_orig
=$ac_useropt
935 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep
=', ';;
943 eval enable_
$ac_useropt=no
;;
945 -docdir |
--docdir |
--docdi |
--doc |
--do)
947 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
950 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
952 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
955 -enable-* |
--enable-*)
956 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
959 as_fn_error $?
"invalid feature name: '$ac_useropt'"
960 ac_useropt_orig
=$ac_useropt
961 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep
=', ';;
969 eval enable_
$ac_useropt=\
$ac_optarg ;;
971 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
972 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
973 |
--exec |
--exe |
--ex)
974 ac_prev
=exec_prefix
;;
975 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
976 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
977 |
--exec=* |
--exe=* |
--ex=*)
978 exec_prefix
=$ac_optarg ;;
980 -gas |
--gas |
--ga |
--g)
981 # Obsolete; use --with-gas.
984 -help |
--help |
--hel |
--he |
-h)
986 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
987 ac_init_help
=recursive
;;
988 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
989 ac_init_help
=short
;;
991 -host |
--host |
--hos |
--ho)
992 ac_prev
=host_alias
;;
993 -host=* |
--host=* |
--hos=* |
--ho=*)
994 host_alias
=$ac_optarg ;;
996 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
998 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1000 htmldir
=$ac_optarg ;;
1002 -includedir |
--includedir |
--includedi |
--included |
--include \
1003 |
--includ |
--inclu |
--incl |
--inc)
1004 ac_prev
=includedir
;;
1005 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1006 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1007 includedir
=$ac_optarg ;;
1009 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1011 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1012 infodir
=$ac_optarg ;;
1014 -libdir |
--libdir |
--libdi |
--libd)
1016 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1017 libdir
=$ac_optarg ;;
1019 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1020 |
--libexe |
--libex |
--libe)
1021 ac_prev
=libexecdir
;;
1022 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1023 |
--libexe=* |
--libex=* |
--libe=*)
1024 libexecdir
=$ac_optarg ;;
1026 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1027 ac_prev
=localedir
;;
1028 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1029 localedir
=$ac_optarg ;;
1031 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1032 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1033 ac_prev
=localstatedir
;;
1034 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1035 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1036 localstatedir
=$ac_optarg ;;
1038 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1040 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1041 mandir
=$ac_optarg ;;
1043 -nfp |
--nfp |
--nf)
1044 # Obsolete; use --without-fp.
1047 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1048 |
--no-cr |
--no-c |
-n)
1051 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1052 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1055 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1056 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1057 |
--oldin |
--oldi |
--old |
--ol |
--o)
1058 ac_prev
=oldincludedir
;;
1059 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1060 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1061 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1062 oldincludedir
=$ac_optarg ;;
1064 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1066 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1067 prefix
=$ac_optarg ;;
1069 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1070 |
--program-pre |
--program-pr |
--program-p)
1071 ac_prev
=program_prefix
;;
1072 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1073 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1074 program_prefix
=$ac_optarg ;;
1076 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1077 |
--program-suf |
--program-su |
--program-s)
1078 ac_prev
=program_suffix
;;
1079 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1080 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1081 program_suffix
=$ac_optarg ;;
1083 -program-transform-name |
--program-transform-name \
1084 |
--program-transform-nam |
--program-transform-na \
1085 |
--program-transform-n |
--program-transform- \
1086 |
--program-transform |
--program-transfor \
1087 |
--program-transfo |
--program-transf \
1088 |
--program-trans |
--program-tran \
1089 |
--progr-tra |
--program-tr |
--program-t)
1090 ac_prev
=program_transform_name
;;
1091 -program-transform-name=* |
--program-transform-name=* \
1092 |
--program-transform-nam=* |
--program-transform-na=* \
1093 |
--program-transform-n=* |
--program-transform-=* \
1094 |
--program-transform=* |
--program-transfor=* \
1095 |
--program-transfo=* |
--program-transf=* \
1096 |
--program-trans=* |
--program-tran=* \
1097 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1098 program_transform_name
=$ac_optarg ;;
1100 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1102 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1103 pdfdir
=$ac_optarg ;;
1105 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1107 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1110 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1111 |
-silent |
--silent |
--silen |
--sile |
--sil)
1114 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1115 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1116 |
--run |
--ru |
--r)
1117 ac_prev
=runstatedir
;;
1118 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1119 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1120 |
--run=* |
--ru=* |
--r=*)
1121 runstatedir
=$ac_optarg ;;
1123 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1125 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1127 sbindir
=$ac_optarg ;;
1129 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1130 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1131 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1133 ac_prev
=sharedstatedir
;;
1134 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1135 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1136 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1138 sharedstatedir
=$ac_optarg ;;
1140 -site |
--site |
--sit)
1142 -site=* |
--site=* |
--sit=*)
1145 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1147 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1148 srcdir
=$ac_optarg ;;
1150 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1151 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1152 ac_prev
=sysconfdir
;;
1153 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1154 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1155 sysconfdir
=$ac_optarg ;;
1157 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1158 ac_prev
=target_alias
;;
1159 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1160 target_alias
=$ac_optarg ;;
1162 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1165 -version |
--version |
--versio |
--versi |
--vers |
-V)
1166 ac_init_version
=: ;;
1169 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1172 as_fn_error $?
"invalid package name: '$ac_useropt'"
1173 ac_useropt_orig
=$ac_useropt
1174 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep
=', ';;
1182 eval with_
$ac_useropt=\
$ac_optarg ;;
1184 -without-* |
--without-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval with_
$ac_useropt=no
;;
1201 # Obsolete; use --with-x.
1204 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1205 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1206 ac_prev
=x_includes
;;
1207 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1208 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1209 x_includes
=$ac_optarg ;;
1211 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1212 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1213 ac_prev
=x_libraries
;;
1214 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1215 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1216 x_libraries
=$ac_optarg ;;
1218 -*) as_fn_error $?
"unrecognized option: '$ac_option'
1219 Try '$0 --help' for more information"
1223 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1227 as_fn_error $?
"invalid variable name: '$ac_envvar'" ;;
1229 eval $ac_envvar=\
$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1236 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 if test -n "$ac_prev"; then
1244 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $?
"missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1252 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 # Check all directory arguments for consistency.
1257 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir runstatedir
1262 eval ac_val
=\$
$ac_var
1263 # Remove trailing slashes.
1266 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\
$ac_val;;
1269 # Be sure to have absolute directory names.
1271 [\\/$
]* | ?
:[\\/]* ) continue;;
1272 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1274 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1277 # There might be people who depend on the old broken behavior: '$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target
=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x
; then
1286 if test "x$build_alias" = x
; then
1287 cross_compiling
=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1294 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1296 test "$silent" = yes && exec 6>/dev
/null
1299 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di
=`ls -di .` &&
1301 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $?
"working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $?
"pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted
=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir
=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 printf "%s\n" X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted
=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1343 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg
="sources are in $srcdir, but 'cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1357 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 for ac_var
in $ac_precious_vars; do
1360 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1362 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print 'checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for '--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or '..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, 'make install' will install all the files in
1400 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than '$ac_default_prefix' using '--prefix',
1402 for instance '--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --build=BUILD configure
for building on BUILD
[guessed
]
1433 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive
) echo "Configuration of GNU C Library (see version.h):";;
1444 --disable-option-checking ignore unrecognized
--enable/--with options
1445 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1446 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1447 --disable-static-c++-tests
1448 disable static C
++ tests
[default
=no
]
1449 --disable-static-c++-link-check
1450 disable static C
++ link check
[default
=no
]
1451 --disable-sanity-checks really
do not use threads
(should not be used except
1452 in special situations
) [default
=yes]
1453 --enable-shared build shared library
[default
=yes if GNU ld
]
1454 --enable-profile build profiled library
[default
=no
]
1455 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1457 --disable-timezone-tools
1458 do not
install timezone tools
[default
=install]
1459 --enable-hardcoded-path-in-tests
1460 hardcode newly built glibc path
in tests
1462 --disable-hidden-plt do not hide internal
function calls to avoid PLT
1463 --enable-bind-now disable lazy relocations
in DSOs
1464 --enable-stack-protector=[yes|no|all|strong
]
1465 Use
-fstack-protector[-all|
-strong] to detect glibc
1467 --enable-static-nss build static NSS modules
[default
=no
]
1468 --disable-force-install don
't force installation of files from this package,
1469 even if they are older than the installed files
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-kernel=VERSION compile for compatibility with kernel not older than
1475 --disable-werror do not build with -Werror
1476 --enable-multi-arch enable single DSO with optimizations for multiple
1478 --enable-memory-tagging enable memory tagging if supported by the
1479 architecture [default=no]
1480 --enable-systemtap enable systemtap static probe points [default=no]
1481 --disable-build-nscd disable building and installing the nscd daemon
1482 --disable-nscd library functions will not contact the nscd daemon
1483 --enable-pt_chown Enable building and installing pt_chown
1484 --enable-mathvec Enable building and installing mathvec [default
1485 depends on architecture]
1486 --enable-cet enable Intel Control-flow Enforcement Technology
1488 --disable-scv syscalls will not use scv instruction, even if the
1489 kernel supports it, powerpc only
1490 --enable-fortify-source[=1|2|3]
1491 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1492 hardening, defaults to highest possible value
1493 supported by the build compiler.
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1499 --with-bugurl=URL Direct users to URL to report a bug
1500 --with-gd=DIR find libgd include dir and library with prefix DIR
1501 --with-gd-include=DIR find libgd include files in DIR
1502 --with-gd-lib=DIR find libgd library files in DIR
1503 --with-binutils=PATH specify location of binutils (as and ld)
1504 --with-selinux if building with SELinux support
1505 --with-headers=PATH location of system headers to use (for example
1506 /usr/src/linux/include) [default=compiler default]
1507 --with-nonshared-cflags=CFLAGS
1508 build nonshared libraries with additional CFLAGS
1509 --with-rtld-early-cflags=CFLAGS
1510 build early initialization with additional CFLAGS
1511 --with-timeoutfactor=NUM
1512 specify an integer to scale the timeout
1513 --with-man-pages=VERSION
1514 tie manual to a specific man-pages version
1515 --with-cpu=CPU select code for CPU variant
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1529 Use these variables to override the choices made by 'configure
' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <https://sourceware.org/bugzilla/>.
1533 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1534 General help using GNU software: <https://www.gnu.org/gethelp/>.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.
[\\/]||
'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1564 .) # We are building in place.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for configure.gnu first; this name is used for a wrapper for
1581 # Metaconfig's
"Configure" on case-insensitive
file systems.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1598 GNU C Library configure
(see version.h
)
1599 generated by GNU Autoconf
2.72
1601 Copyright
(C
) 2023 Free Software Foundation
, Inc.
1602 This configure
script is free software
; the Free Software Foundation
1603 gives unlimited permission to copy
, distribute and modify it.
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile
()
1617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1618 rm -f conftest.
$ac_objext conftest.beam
1619 if { { ac_try
="$ac_compile"
1621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 printf "%s\n" "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext
1641 e) printf "%s\n" "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_cxx_try_compile LINENO
1653 # ----------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_cxx_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam
1659 if { { ac_try="$ac_compile"
1661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1662 *) ac_try_echo
=$ac_try;;
1664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err
; then
1669 grep -v '^ *+' conftest.err
>conftest.er1
1670 cat conftest.er1
>&5
1671 mv -f conftest.er1 conftest.err
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_cxx_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.
$ac_objext
1681 e
) printf "%s\n" "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.
$ac_ext >&5
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status
$ac_retval
1690 } # ac_fn_cxx_try_compile
1692 # ac_fn_cxx_try_link LINENO
1693 # -------------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_cxx_try_link
()
1697 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1698 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1699 if { { ac_try
="$ac_link"
1701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_cxx_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest$ac_exeext
1724 e) printf "%s\n" "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_cxx_try_link
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1749 *) ac_try_echo
=$ac_try;;
1751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 if test -s conftest.err
; then
1756 grep -v '^ *+' conftest.err
>conftest.er1
1757 cat conftest.er1
>&5
1758 mv -f conftest.er1 conftest.err
1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i
&& {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1768 e
) printf "%s\n" "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.
$ac_ext >&5
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status
$ac_retval
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1785 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1786 if { { ac_try
="$ac_link"
1788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1811 e) printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1826 ac_configure_args_raw=
1831 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1833 as_fn_append ac_configure_args_raw " '$ac_arg'"
1836 case $ac_configure_args_raw in
1840 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1841 ac_unsafe_a="$ac_unsafe_z#~
"
1842 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1843 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by GNU C Library $as_me (see version.h), which was
1851 generated by GNU Autoconf 2.72. Invocation command line was
1853 $ $0$ac_configure_args_raw
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 case $as_dir in #(((
1889 *) as_dir=$as_dir/ ;;
1891 printf "%s
\n" "PATH
: $as_dir"
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_must_keep_next=false
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1926 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 -* ) ac_must_keep_next=true ;;
1947 as_fn_append ac_configure_args " '$ac_arg'"
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1963 # Save into config.log some information that might help in debugging.
1967 printf "%s
\n" "## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##"
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val
=\$
$ac_var
1978 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1982 _ | IFS | as_nl
) ;; #(
1983 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space
=\
*)
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 printf "%s\n" "## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##"
2007 for ac_var
in $ac_subst_vars
2009 eval ac_val
=\$
$ac_var
2011 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 printf "%s\n" "$ac_var='\''$ac_val'\''"
2017 if test -n "$ac_subst_files"; then
2018 printf "%s\n" "## ------------------- ##
2019 ## File substitutions. ##
2020 ## ------------------- ##"
2022 for ac_var in $ac_subst_files
2024 eval ac_val=\$$ac_var
2026 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 printf "%s\n" "$ac_var='\''$ac_val'\''"
2033 if test -s confdefs.h
; then
2034 printf "%s\n" "## ----------- ##
2041 test "$ac_signal" != 0 &&
2042 printf "%s\n" "$as_me: caught signal $ac_signal"
2043 printf "%s\n" "$as_me: exit $exit_status"
2045 rm -f core
*.core core.conftest.
* &&
2046 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2049 for ac_signal in 1 2 13 15; do
2050 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2055 rm -f -r conftest* confdefs.h
2057 printf "%s\n" "/* confdefs.h */" > confdefs.h
2059 # Predefined preprocessor variables.
2061 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2063 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2065 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2067 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2069 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2071 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 ac_site_files="$CONFIG_SITE"
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2081 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2084 for ac_site_file in $ac_site_files
2086 case $ac_site_file in #(
2090 ac_site_file=./$ac_site_file ;;
2092 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's
/^
/|
/' "$ac_site_file" >&5
2097 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See 'config.log
' for more details" "$LINENO" 5; }
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2121 # Test code for whether the C compiler supports C89 (global declarations)
2122 ac_c_conftest_c89_globals='
2123 /* Does the compiler advertise C89 conformance?
2124 Do not
test the value of __STDC__
, because some compilers
set it to
0
2125 while being otherwise adequately conformant.
*/
2126 #if !defined __STDC__
2127 # error "Compiler does not advertise C89 conformance"
2133 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2134 struct buf
{ int x
; };
2135 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2136 static char
*e
(char
**p
, int i
)
2140 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2145 s
= g
(p
, va_arg
(v
,int
));
2150 /* C89 style stringification.
*/
2151 #define noexpand_stringify(a) #a
2152 const char
*stringified
= noexpand_stringify
(arbitrary
+token
=sequence
);
2154 /* C89 style token pasting. Exercises some of the corner cases that
2155 e.g. old MSVC gets wrong
, but not very hard.
*/
2156 #define noexpand_concat(a,b) a##b
2157 #define expand_concat(a,b) noexpand_concat(a,b)
2162 int
*pvA
= &expand_concat
(v
,aye
);
2163 int
*pvbee
= &noexpand_concat
(v
,bee
);
2165 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2166 function prototypes and stuff
, but not \xHH hex character constants.
2167 These
do not provoke an error unfortunately
, instead are silently treated
2168 as an
"x". The following induces an error
, until -std is added to get
2169 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2170 array size
at least. It is necessary to
write \x00 == 0 to get something
2171 that is true only with
-std.
*/
2172 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2174 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2175 inside
strings and character constants.
*/
2176 #define FOO(x) '\''x'\''
2177 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2179 int
test (int i
, double x
);
2180 struct s1
{int
(*f
) (int a
);};
2181 struct s2
{int
(*f
) (double a
);};
2182 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2185 # Test code for whether the C compiler supports C89 (body of main).
2186 ac_c_conftest_c89_main='
2187 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2190 # Test code for whether the C compiler supports C99 (global declarations)
2191 ac_c_conftest_c99_globals='
2192 /* Does the compiler advertise C99 conformance?
*/
2193 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2194 # error "Compiler does not advertise C99 conformance"
2197 // See
if C
++-style comments work.
2199 #include <stdbool.h>
2200 extern int puts
(const char
*);
2201 extern int
printf (const char
*, ...
);
2202 extern int dprintf
(int
, const char
*, ...
);
2203 extern void
*malloc
(size_t
);
2204 extern void free
(void
*);
2206 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2207 // dprintf is used instead of fprintf to avoid needing to
declare
2209 #define debug(...) dprintf (2, __VA_ARGS__)
2210 #define showlist(...) puts (#__VA_ARGS__)
2211 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2213 test_varargs_macros
(void
)
2218 debug
("X = %d\n", x
);
2219 showlist
(The first
, second
, and third items.
);
2220 report
(x
>y
, "x is %d but y is %d", x
, y
);
2223 // Check long long types.
2224 #define BIG64 18446744073709551615ull
2225 #define BIG32 4294967295ul
2226 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2228 #error "your preprocessor is broken"
2232 #error "your preprocessor is broken"
2234 static long long int bignum
= -9223372036854775807LL;
2235 static unsigned long long int ubignum
= BIG64
;
2237 struct incomplete_array
2245 const wchar_t
*name
;
2249 typedef const char
*ccp
;
2252 test_restrict
(ccp restrict text
)
2254 // Iterate through items via the restricted pointer.
2255 // Also check
for declarations
in for loops.
2256 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2261 // Check varargs and va_copy.
2263 test_varargs
(const char
*format
, ...
)
2266 va_start
(args
, format
);
2268 va_copy
(args_copy
, args
);
2270 const char
*str
= "";
2278 case '\''s
'\'': // string
2279 str
= va_arg
(args_copy
, const char
*);
2281 case '\''d
'\'': // int
2282 number
= va_arg
(args_copy
, int
);
2284 case '\''f
'\'': // float
2285 fnumber
= va_arg
(args_copy
, double
);
2294 return *str
&& number
&& fnumber
;
2298 # Test code for whether the C compiler supports C99 (body of main).
2299 ac_c_conftest_c99_main='
2301 _Bool success
= false
;
2302 success |
= (argc
!= 0);
2305 if (test_restrict
("String literal") == 0)
2307 char
*restrict newvar
= "Another string";
2310 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2311 test_varargs_macros
();
2313 // Check flexible array members.
2314 struct incomplete_array
*ia
=
2315 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2317 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2318 ia-
>data
[i
] = i
* 1.234;
2319 // Work around memory leak warnings.
2322 // Check named initializers.
2323 struct named_init ni
= {
2325 .name
= L
"Test wide string",
2326 .average
= 543.34343,
2331 int dynamic_array
[ni.number
];
2332 dynamic_array
[0] = argv
[0][0];
2333 dynamic_array
[ni.number
- 1] = 543;
2335 // work around unused variable warnings
2336 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2337 || dynamic_array
[ni.number
- 1] != 543);
2340 # Test code for whether the C compiler supports C11 (global declarations)
2341 ac_c_conftest_c11_globals='
2342 /* Does the compiler advertise C11 conformance?
*/
2343 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2344 # error "Compiler does not advertise C11 conformance"
2348 char _Alignas
(double
) aligned_as_double
;
2349 char _Alignas
(0) no_special_alignment
;
2350 extern char aligned_as_int
;
2351 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2356 int_alignment
= _Alignof
(int
),
2357 int_array_alignment
= _Alignof
(int
[100]),
2358 char_alignment
= _Alignof
(char
)
2360 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2363 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2365 // Check _Static_assert.
2366 struct test_static_assert
2369 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2370 "_Static_assert does not work in struct");
2374 // Check UTF-8 literals.
2375 #define u8 syntax error!
2376 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2378 // Check duplicate typedefs.
2379 typedef long
*long_ptr
;
2380 typedef long int
*long_ptr
;
2381 typedef long_ptr long_ptr
;
2383 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2387 struct
{ int i
; int j
; };
2388 struct
{ int k
; long int l
; } w
;
2394 # Test code for whether the C compiler supports C11 (body of main).
2395 ac_c_conftest_c11_main='
2396 _Static_assert
((offsetof
(struct anonymous
, i
)
2397 == offsetof
(struct anonymous
, w.k
)),
2398 "Anonymous union alignment botch");
2404 # Test code for whether the C compiler supports C11 (complete).
2405 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2406 ${ac_c_conftest_c99_globals}
2407 ${ac_c_conftest_c11_globals}
2410 main (int argc, char **argv)
2413 ${ac_c_conftest_c89_main}
2414 ${ac_c_conftest_c99_main}
2415 ${ac_c_conftest_c11_main}
2420 # Test code for whether the C compiler supports C99 (complete).
2421 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2422 ${ac_c_conftest_c99_globals}
2425 main (int argc, char **argv)
2428 ${ac_c_conftest_c89_main}
2429 ${ac_c_conftest_c99_main}
2434 # Test code for whether the C compiler supports C89 (complete).
2435 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2438 main (int argc, char **argv)
2441 ${ac_c_conftest_c89_main}
2446 # Test code for whether the C++ compiler supports C++98 (global declarations)
2447 ac_cxx_conftest_cxx98_globals='
2448 // Does the compiler advertise C
++98 conformance?
2449 #if !defined __cplusplus || __cplusplus < 199711L
2450 # error "Compiler does not advertise C++98 conformance"
2453 // These inclusions are to reject old compilers that
2454 // lack the unsuffixed header files.
2456 #include <exception>
2458 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2459 extern void assert
(int
);
2461 extern int strcmp
(const char
*, const char
*);
2464 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2465 using std
::exception
;
2470 void test_exception_syntax
()
2474 } catch
(const char
*s
) {
2475 // Extra parentheses suppress a warning when building autoconf itself
,
2476 // due to lint rules shared with
more typical C programs.
2477 assert
(!(strcmp
) (s
, "test"));
2481 template
<typename T
> struct test_template
2484 explicit test_template
(T t
) : val
(t
) {}
2485 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2488 } // anonymous namespace
2491 # Test code for whether the C++ compiler supports C++98 (body of main)
2492 ac_cxx_conftest_cxx98_main='
2496 test_exception_syntax
();
2497 test_template
<double
> tt
(2.0);
2498 assert
(tt.add
(4) == 6.0);
2499 assert
(true
&& !false
);
2503 # Test code for whether the C++ compiler supports C++11 (global declarations)
2504 ac_cxx_conftest_cxx11_globals='
2505 // Does the compiler advertise C
++ 2011 conformance?
2506 #if !defined __cplusplus || __cplusplus < 201103L
2507 # error "Compiler does not advertise C++11 conformance"
2512 constexpr int get_val
() { return 20; }
2523 delegate
(int n
) : n
(n
) {}
2524 delegate
(): delegate
(2354) {}
2526 virtual int getval
() { return this-
>n
; };
2531 class overridden
: public delegate
2534 overridden
(int n
): delegate
(n
) {}
2535 virtual int getval
() override final
{ return this-
>n
* 2; }
2541 nocopy
(int i
): i
(i
) {}
2543 nocopy
(const nocopy
&) = delete
;
2544 nocopy
& operator
=(const nocopy
&) = delete
;
2549 // for testing lambda expressions
2550 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2555 // for testing variadic templates and trailing
return types
2556 template
<typename V
> auto
sum(V first
) -> V
2560 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2562 return first
+ sum(rest...
);
2567 # Test code for whether the C++ compiler supports C++11 (body of main)
2568 ac_cxx_conftest_cxx11_main='
2570 // Test auto and decltype
2572 auto a2
= 48573953.4;
2573 auto a3
= "String literal";
2576 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2578 decltype
(a2
) a4
= 34895.034;
2582 short sa
[cxx11test
::get_val
()] = { 0 };
2585 // Test initializer lists
2586 cxx11test
::testinit il
= { 4323, 435234.23544 };
2589 // Test range-based
for
2590 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2591 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2592 for (auto
&x
: array
) { x
+= 23; }
2595 // Test lambda expressions
2596 using cxx11test
::eval;
2597 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2599 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2601 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2605 // Test use of variadic templates
2606 using cxx11test
::sum;
2609 auto c
= sum(1.0, 2.0, 3.0);
2612 // Test constructor delegation
2613 cxx11test
::delegate d1
;
2614 cxx11test
::delegate d2
();
2615 cxx11test
::delegate d3
(45);
2618 // Test override and final
2619 cxx11test
::overridden o1
(55464);
2626 // Test template brackets
2627 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2631 char const
*utf8
= u8
"UTF-8 string \u2500";
2632 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2633 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2637 # Test code for whether the C compiler supports C++11 (complete).
2638 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2639 ${ac_cxx_conftest_cxx11_globals}
2642 main (int argc, char **argv)
2645 ${ac_cxx_conftest_cxx98_main}
2646 ${ac_cxx_conftest_cxx11_main}
2651 # Test code for whether the C compiler supports C++98 (complete).
2652 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2654 main (int argc, char **argv)
2657 ${ac_cxx_conftest_cxx98_main}
2663 # Auxiliary files required by this configure script.
2664 ac_aux_files="install-sh config.guess config.sub"
2666 # Locations in which to look for auxiliary files.
2667 ac_aux_dir_candidates="${srcdir}/scripts"
2669 # Search for a directory containing all of the required auxiliary files,
2670 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2671 # If we don't
find one directory that contains all the files we need
,
2672 # we report the set of missing files from the *first* directory in
2673 # $ac_aux_dir_candidates and give up.
2674 ac_missing_aux_files
=""
2675 ac_first_candidate
=:
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2679 for as_dir
in $ac_aux_dir_candidates
2682 case $as_dir in #(((
2685 *) as_dir
=$as_dir/ ;;
2689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2690 ac_aux_dir_found
=yes
2692 for ac_aux
in $ac_aux_files
2694 # As a special case, if "install-sh" is required, that requirement
2695 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2696 # and $ac_install_sh is set appropriately for whichever one is found.
2697 if test x
"$ac_aux" = x
"install-sh"
2699 if test -f "${as_dir}install-sh"; then
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2701 ac_install_sh
="${as_dir}install-sh -c"
2702 elif test -f "${as_dir}install.sh"; then
2703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2704 ac_install_sh
="${as_dir}install.sh -c"
2705 elif test -f "${as_dir}shtool"; then
2706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2707 ac_install_sh
="${as_dir}shtool install -c"
2710 if $ac_first_candidate; then
2711 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2717 if test -f "${as_dir}${ac_aux}"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2721 if $ac_first_candidate; then
2722 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2729 if test "$ac_aux_dir_found" = yes; then
2730 ac_aux_dir
="$as_dir"
2733 ac_first_candidate
=false
2742 e
) as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 if test -f "${ac_aux_dir}config.guess"; then
2752 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2754 if test -f "${ac_aux_dir}config.sub"; then
2755 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2757 if test -f "$ac_aux_dir/configure"; then
2758 ac_configure
="$SHELL ${ac_aux_dir}configure"
2761 # Check that the precious variables saved in the cache have kept the same
2763 ac_cache_corrupted
=false
2764 for ac_var
in $ac_precious_vars; do
2765 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2766 eval ac_new_set
=\
$ac_env_${ac_var}_set
2767 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2768 eval ac_new_val
=\
$ac_env_${ac_var}_value
2769 case $ac_old_set,$ac_new_set in
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2772 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2773 ac_cache_corrupted
=: ;;
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2776 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2777 ac_cache_corrupted
=: ;;
2780 if test "x$ac_old_val" != "x$ac_new_val"; then
2781 # differences in whitespace do not lead to failure.
2782 ac_old_val_w
=`echo x $ac_old_val`
2783 ac_new_val_w
=`echo x $ac_new_val`
2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2786 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2787 ac_cache_corrupted
=:
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2790 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2791 eval $ac_var=\
$ac_old_val
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2794 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2796 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2799 # Pass precious variables to config.status.
2800 if test "$ac_new_set" = set; then
2802 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803 *) ac_arg
=$ac_var=$ac_new_val ;;
2805 case " $ac_configure_args " in
2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2807 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2811 if $ac_cache_corrupted; then
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2813 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2816 as_fn_error $?
"run '${MAKE-make} distclean' and/or 'rm $cache_file'
2817 and start over" "$LINENO" 5
2819 ## -------------------- ##
2820 ## Main body of script. ##
2821 ## -------------------- ##
2824 ac_cpp
='$CPP $CPPFLAGS'
2825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2831 ac_config_headers
="$ac_config_headers config.h"
2837 # Check whether --with-pkgversion was given.
2838 if test ${with_pkgversion+y}
2840 withval
=$with_pkgversion; case "$withval" in
2841 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
2843 *) PKGVERSION
="($withval) " ;;
2846 e
) PKGVERSION
="(GNU libc) "
2851 PKGVERSION_TEXI
=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2857 # Check whether --with-bugurl was given.
2858 if test ${with_bugurl+y}
2860 withval
=$with_bugurl; case "$withval" in
2861 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
2864 *) BUGURL
="$withval"
2868 e
) BUGURL
="https://www.gnu.org/software/libc/bugs.html"
2879 REPORT_BUGS_TO
="<$BUGURL>"
2880 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
2887 printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2890 printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2893 # Glibc should not depend on any header files
2896 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2897 # here to work around the Autoconf issue discussed in
2898 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2901 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2902 # issue discussed in
2903 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2914 # Make sure we can run config.sub.
2915 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2916 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2919 printf %s
"checking build system type... " >&6; }
2920 if test ${ac_cv_build+y}
2922 printf %s
"(cached) " >&6
2924 e
) ac_build_alias
=$build_alias
2925 test "x$ac_build_alias" = x
&&
2926 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2927 test "x$ac_build_alias" = x
&&
2928 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2929 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2930 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2935 printf "%s\n" "$ac_cv_build" >&6; }
2936 case $ac_cv_build in
2938 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2941 ac_save_IFS
=$IFS; IFS
='-'
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2951 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2955 printf %s
"checking host system type... " >&6; }
2956 if test ${ac_cv_host+y}
2958 printf %s
"(cached) " >&6
2960 e
) if test "x$host_alias" = x
; then
2961 ac_cv_host
=$ac_cv_build
2963 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2964 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2970 printf "%s\n" "$ac_cv_host" >&6; }
2973 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2976 ac_save_IFS
=$IFS; IFS
='-'
2982 # Remember, the first character of IFS is used to create $*,
2983 # except with old shells:
2986 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3000 ac_cpp
='$CPP $CPPFLAGS'
3001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 printf %s
"checking for $ac_word... " >&6; }
3009 if test ${ac_cv_prog_CC+y}
3011 printf %s
"(cached) " >&6
3013 e
) if test -n "$CC"; then
3014 ac_cv_prog_CC
="$CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 case $as_dir in #(((
3023 *) as_dir
=$as_dir/ ;;
3025 for ac_exec_ext
in '' $ac_executable_extensions; do
3026 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3039 if test -n "$CC"; then
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 printf "%s\n" "$CC" >&6; }
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 printf "%s\n" "no" >&6; }
3049 if test -z "$ac_cv_prog_CC"; then
3051 # Extract the first word of "gcc", so it can be a program name with args.
3052 set dummy gcc
; ac_word
=$2
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 printf %s
"checking for $ac_word... " >&6; }
3055 if test ${ac_cv_prog_ac_ct_CC+y}
3057 printf %s
"(cached) " >&6
3059 e
) if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 case $as_dir in #(((
3069 *) as_dir
=$as_dir/ ;;
3071 for ac_exec_ext
in '' $ac_executable_extensions; do
3072 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_ac_ct_CC
="gcc"
3074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3084 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 printf "%s\n" "$ac_ct_CC" >&6; }
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 printf "%s\n" "no" >&6; }
3093 if test "x$ac_ct_CC" = x
; then
3096 case $cross_compiling:$ac_tool_warned in
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned
=yes ;;
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 printf %s
"checking for $ac_word... " >&6; }
3114 if test ${ac_cv_prog_CC+y}
3116 printf %s
"(cached) " >&6
3118 e
) if test -n "$CC"; then
3119 ac_cv_prog_CC
="$CC" # Let the user override the test.
3121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3125 case $as_dir in #(((
3128 *) as_dir
=$as_dir/ ;;
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3144 if test -n "$CC"; then
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 printf "%s\n" "$CC" >&6; }
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 printf "%s\n" "no" >&6; }
3155 if test -z "$CC"; then
3156 # Extract the first word of "cc", so it can be a program name with args.
3157 set dummy cc
; ac_word
=$2
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 printf %s
"checking for $ac_word... " >&6; }
3160 if test ${ac_cv_prog_CC+y}
3162 printf %s
"(cached) " >&6
3164 e
) if test -n "$CC"; then
3165 ac_cv_prog_CC
="$CC" # Let the user override the test.
3168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3172 case $as_dir in #(((
3175 *) as_dir
=$as_dir/ ;;
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3179 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected
=yes
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy
$ac_cv_prog_CC
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3200 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3207 if test -n "$CC"; then
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 printf "%s\n" "$CC" >&6; }
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 printf "%s\n" "no" >&6; }
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog
in cl.exe
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s
"checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_CC+y}
3227 printf %s
"(cached) " >&6
3229 e
) if test -n "$CC"; then
3230 ac_cv_prog_CC
="$CC" # Let the user override the test.
3232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3236 case $as_dir in #(((
3239 *) as_dir
=$as_dir/ ;;
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3255 if test -n "$CC"; then
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 printf "%s\n" "$CC" >&6; }
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printf "%s\n" "no" >&6; }
3264 test -n "$CC" && break
3267 if test -z "$CC"; then
3269 for ac_prog
in cl.exe
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy
$ac_prog; ac_word
=$2
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 printf %s
"checking for $ac_word... " >&6; }
3275 if test ${ac_cv_prog_ac_ct_CC+y}
3277 printf %s
"(cached) " >&6
3279 e
) if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3286 case $as_dir in #(((
3289 *) as_dir
=$as_dir/ ;;
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC
="$ac_prog"
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3304 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 printf "%s\n" "$ac_ct_CC" >&6; }
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 printf "%s\n" "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3317 if test "x$ac_ct_CC" = x
; then
3320 case $cross_compiling:$ac_tool_warned in
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned
=yes ;;
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3334 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 printf %s
"checking for $ac_word... " >&6; }
3337 if test ${ac_cv_prog_CC+y}
3339 printf %s
"(cached) " >&6
3341 e
) if test -n "$CC"; then
3342 ac_cv_prog_CC
="$CC" # Let the user override the test.
3344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 case $as_dir in #(((
3351 *) as_dir
=$as_dir/ ;;
3353 for ac_exec_ext
in '' $ac_executable_extensions; do
3354 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3367 if test -n "$CC"; then
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 printf "%s\n" "$CC" >&6; }
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 printf "%s\n" "no" >&6; }
3377 if test -z "$ac_cv_prog_CC"; then
3379 # Extract the first word of "clang", so it can be a program name with args.
3380 set dummy clang
; ac_word
=$2
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 printf %s
"checking for $ac_word... " >&6; }
3383 if test ${ac_cv_prog_ac_ct_CC+y}
3385 printf %s
"(cached) " >&6
3387 e
) if test -n "$ac_ct_CC"; then
3388 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3394 case $as_dir in #(((
3397 *) as_dir
=$as_dir/ ;;
3399 for ac_exec_ext
in '' $ac_executable_extensions; do
3400 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC
="clang"
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 printf "%s\n" "$ac_ct_CC" >&6; }
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3421 if test "x$ac_ct_CC" = x
; then
3424 case $cross_compiling:$ac_tool_warned in
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned
=yes ;;
3439 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3440 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3441 as_fn_error $?
"no acceptable C compiler found in \$PATH
3442 See 'config.log' for more details" "$LINENO" 5; }
3444 # Provide some information about the compiler.
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 for ac_option
in --version -v -V -qversion -version; do
3449 { { ac_try
="$ac_compiler $ac_option >&5"
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 printf "%s\n" "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458 if test -s conftest.err; then
3460 ... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471 printf %s "checking for suffix of object files... " >&6; }
3472 if test ${ac_cv_objext+y}
3474 printf %s "(cached) " >&6
3476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3487 rm -f conftest.o conftest.obj
3488 if { { ac_try="$ac_compile"
3490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3491 *) ac_try_echo
=$ac_try;;
3493 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 printf "%s\n" "$ac_try_echo"; } >&5
3495 (eval "$ac_compile") 2>&5
3497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3500 for ac_file
in conftest.o conftest.obj conftest.
*; do
3501 test -f "$ac_file" ||
continue;
3503 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3504 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3509 e
) printf "%s\n" "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.
$ac_ext >&5
3512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3514 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3515 See 'config.log' for more details" "$LINENO" 5; } ;;
3518 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext ;;
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522 printf "%s\n" "$ac_cv_objext" >&6; }
3523 OBJEXT
=$ac_cv_objext
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3526 printf %s
"checking whether the compiler supports GNU C... " >&6; }
3527 if test ${ac_cv_c_compiler_gnu+y}
3529 printf %s
"(cached) " >&6
3531 e
) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3545 if ac_fn_c_try_compile
"$LINENO"
3549 e
) ac_compiler_gnu
=no
;;
3552 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3553 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3558 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3561 if test $ac_compiler_gnu = yes; then
3566 ac_test_CFLAGS
=${CFLAGS+y}
3567 ac_save_CFLAGS
=$CFLAGS
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 printf %s
"checking whether $CC accepts -g... " >&6; }
3570 if test ${ac_cv_prog_cc_g+y}
3572 printf %s
"(cached) " >&6
3574 e
) ac_save_c_werror_flag
=$ac_c_werror_flag
3575 ac_c_werror_flag
=yes
3578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3589 if ac_fn_c_try_compile
"$LINENO"
3594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3605 if ac_fn_c_try_compile
"$LINENO"
3609 e
) ac_c_werror_flag
=$ac_save_c_werror_flag
3611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3622 if ac_fn_c_try_compile
"$LINENO"
3626 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
3629 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
3632 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3633 ac_c_werror_flag
=$ac_save_c_werror_flag ;;
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3638 if test $ac_test_CFLAGS; then
3639 CFLAGS
=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3647 if test "$GCC" = yes; then
3654 if test x
$ac_prog_cc_stdc = xno
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3657 printf %s
"checking for $CC option to enable C11 features... " >&6; }
3658 if test ${ac_cv_prog_cc_c11+y}
3660 printf %s
"(cached) " >&6
3662 e
) ac_cv_prog_cc_c11
=no
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 $ac_c_conftest_c11_program
3668 for ac_arg
in '' -std=gnu11
3670 CC
="$ac_save_CC $ac_arg"
3671 if ac_fn_c_try_compile
"$LINENO"
3673 ac_cv_prog_cc_c11
=$ac_arg
3675 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3676 test "x$ac_cv_prog_cc_c11" != "xno" && break
3678 rm -f conftest.
$ac_ext
3683 if test "x$ac_cv_prog_cc_c11" = xno
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf "%s\n" "unsupported" >&6; }
3688 e
) if test "x$ac_cv_prog_cc_c11" = x
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf "%s\n" "none needed" >&6; }
3693 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3694 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3695 CC
="$CC $ac_cv_prog_cc_c11" ;;
3698 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
3699 ac_prog_cc_stdc
=c11
;;
3703 if test x
$ac_prog_cc_stdc = xno
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3706 printf %s
"checking for $CC option to enable C99 features... " >&6; }
3707 if test ${ac_cv_prog_cc_c99+y}
3709 printf %s
"(cached) " >&6
3711 e
) ac_cv_prog_cc_c99
=no
3713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 $ac_c_conftest_c99_program
3717 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
3719 CC
="$ac_save_CC $ac_arg"
3720 if ac_fn_c_try_compile
"$LINENO"
3722 ac_cv_prog_cc_c99
=$ac_arg
3724 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3725 test "x$ac_cv_prog_cc_c99" != "xno" && break
3727 rm -f conftest.
$ac_ext
3732 if test "x$ac_cv_prog_cc_c99" = xno
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 printf "%s\n" "unsupported" >&6; }
3737 e
) if test "x$ac_cv_prog_cc_c99" = x
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3740 printf "%s\n" "none needed" >&6; }
3742 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3743 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3744 CC
="$CC $ac_cv_prog_cc_c99" ;;
3747 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3748 ac_prog_cc_stdc
=c99
;;
3752 if test x
$ac_prog_cc_stdc = xno
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3755 printf %s
"checking for $CC option to enable C89 features... " >&6; }
3756 if test ${ac_cv_prog_cc_c89+y}
3758 printf %s
"(cached) " >&6
3760 e
) ac_cv_prog_cc_c89
=no
3762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 $ac_c_conftest_c89_program
3766 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768 CC
="$ac_save_CC $ac_arg"
3769 if ac_fn_c_try_compile
"$LINENO"
3771 ac_cv_prog_cc_c89
=$ac_arg
3773 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3774 test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 rm -f conftest.
$ac_ext
3781 if test "x$ac_cv_prog_cc_c89" = xno
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 printf "%s\n" "unsupported" >&6; }
3786 e
) if test "x$ac_cv_prog_cc_c89" = x
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 printf "%s\n" "none needed" >&6; }
3791 e
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3793 CC
="$CC $ac_cv_prog_cc_c89" ;;
3796 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3797 ac_prog_cc_stdc
=c89
;;
3803 ac_cpp
='$CPP $CPPFLAGS'
3804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3808 if test $host != $build; then
3809 for ac_prog
in gcc cc
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy
$ac_prog; ac_word
=$2
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 printf %s
"checking for $ac_word... " >&6; }
3815 if test ${ac_cv_prog_BUILD_CC+y}
3817 printf %s
"(cached) " >&6
3819 e
) if test -n "$BUILD_CC"; then
3820 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
3822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3826 case $as_dir in #(((
3829 *) as_dir
=$as_dir/ ;;
3831 for ac_exec_ext
in '' $ac_executable_extensions; do
3832 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_BUILD_CC
="$ac_prog"
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3844 BUILD_CC
=$ac_cv_prog_BUILD_CC
3845 if test -n "$BUILD_CC"; then
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3847 printf "%s\n" "$BUILD_CC" >&6; }
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3854 test -n "$BUILD_CC" && break
3859 # On Suns, sometimes $CPP names a directory.
3860 if test -n "$CPP" && test -d "$CPP"; then
3863 if test -z "$CPP"; then
3868 # This will get text that should go into config.make.
3871 # Check whether --enable-static-c++-tests was given.
3872 if test ${enable_static_c___tests+y}
3874 enableval
=$enable_static_c___tests; static_cxx_tests
=$enableval
3876 e
) static_cxx_tests
=yes ;;
3880 config_vars
="$config_vars
3881 static-cxx-tests = $static_cxx_tests"
3883 # Check whether --enable-static-c++-link-check was given.
3884 if test ${enable_static_c___link_check+y}
3886 enableval
=$enable_static_c___link_check; static_cxx_link_check
=$enableval
3888 e
) static_cxx_link_check
=yes ;;
3893 # We need the C++ compiler only for testing.
3901 ac_cpp
='$CXXCPP $CPPFLAGS'
3902 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3905 if test -z "$CXX"; then
3906 if test -n "$CCC"; then
3909 if test -n "$ac_tool_prefix"; then
3910 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s
"checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_CXX+y}
3918 printf %s
"(cached) " >&6
3920 e
) if test -n "$CXX"; then
3921 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3927 case $as_dir in #(((
3930 *) as_dir
=$as_dir/ ;;
3932 for ac_exec_ext
in '' $ac_executable_extensions; do
3933 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3946 if test -n "$CXX"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3948 printf "%s\n" "$CXX" >&6; }
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3955 test -n "$CXX" && break
3958 if test -z "$CXX"; then
3960 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963 set dummy
$ac_prog; ac_word
=$2
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 printf %s
"checking for $ac_word... " >&6; }
3966 if test ${ac_cv_prog_ac_ct_CXX+y}
3968 printf %s
"(cached) " >&6
3970 e
) if test -n "$ac_ct_CXX"; then
3971 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 case $as_dir in #(((
3980 *) as_dir
=$as_dir/ ;;
3982 for ac_exec_ext
in '' $ac_executable_extensions; do
3983 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3995 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3996 if test -n "$ac_ct_CXX"; then
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3998 printf "%s\n" "$ac_ct_CXX" >&6; }
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 printf "%s\n" "no" >&6; }
4005 test -n "$ac_ct_CXX" && break
4008 if test "x$ac_ct_CXX" = x
; then
4011 case $cross_compiling:$ac_tool_warned in
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015 ac_tool_warned
=yes ;;
4023 # Provide some information about the compiler.
4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4027 for ac_option
in --version -v -V -qversion; do
4028 { { ac_try
="$ac_compiler $ac_option >&5"
4030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 printf "%s\n" "$ac_try_echo"; } >&5
4035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4037 if test -s conftest.err; then
4039 ... rest of stderr output deleted ...
4040 10q' conftest.err >conftest.er1
4041 cat conftest.er1 >&5
4043 rm -f conftest.er1 conftest.err
4044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4049 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4050 if test ${ac_cv_cxx_compiler_gnu+y}
4052 printf %s "(cached) " >&6
4054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4068 if ac_fn_cxx_try_compile "$LINENO"
4072 e) ac_compiler_gnu=no ;;
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4081 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4084 if test $ac_compiler_gnu = yes; then
4089 ac_test_CXXFLAGS=${CXXFLAGS+y}
4090 ac_save_CXXFLAGS=$CXXFLAGS
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4092 printf %s "checking whether $CXX accepts -g... " >&6; }
4093 if test ${ac_cv_prog_cxx_g+y}
4095 printf %s "(cached) " >&6
4097 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4098 ac_cxx_werror_flag=yes
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_cxx_try_compile "$LINENO"
4114 ac_cv_prog_cxx_g=yes
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_cxx_try_compile "$LINENO"
4132 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_cxx_try_compile "$LINENO"
4147 ac_cv_prog_cxx_g=yes
4149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4160 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4161 if test $ac_test_CXXFLAGS; then
4162 CXXFLAGS=$ac_save_CXXFLAGS
4163 elif test $ac_cv_prog_cxx_g = yes; then
4164 if test "$GXX" = yes; then
4170 if test "$GXX" = yes; then
4176 ac_prog_cxx_stdcxx=no
4177 if test x$ac_prog_cxx_stdcxx = xno
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4180 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4181 if test ${ac_cv_prog_cxx_cxx11+y}
4183 printf %s "(cached) " >&6
4185 e) ac_cv_prog_cxx_cxx11=no
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 $ac_cxx_conftest_cxx11_program
4191 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4193 CXX="$ac_save_CXX $ac_arg"
4194 if ac_fn_cxx_try_compile "$LINENO"
4196 ac_cv_prog_cxx_cxx11=$ac_arg
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam
4199 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4201 rm -f conftest.$ac_ext
4206 if test "x$ac_cv_prog_cxx_cxx11" = xno
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 printf "%s\n" "unsupported" >&6; }
4211 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 printf "%s\n" "none needed" >&6; }
4216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4217 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4218 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4221 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4222 ac_prog_cxx_stdcxx=cxx11 ;;
4226 if test x$ac_prog_cxx_stdcxx = xno
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4229 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4230 if test ${ac_cv_prog_cxx_cxx98+y}
4232 printf %s "(cached) " >&6
4234 e) ac_cv_prog_cxx_cxx98=no
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_cxx_conftest_cxx98_program
4240 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4242 CXX="$ac_save_CXX $ac_arg"
4243 if ac_fn_cxx_try_compile "$LINENO"
4245 ac_cv_prog_cxx_cxx98=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam
4248 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4250 rm -f conftest.$ac_ext
4255 if test "x$ac_cv_prog_cxx_cxx98" = xno
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 printf "%s\n" "unsupported" >&6; }
4260 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 printf "%s\n" "none needed" >&6; }
4265 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4266 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4267 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4270 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4271 ac_prog_cxx_stdcxx=cxx98 ;;
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4285 printf %s "checking whether $CXX can link programs... " >&6; }
4286 if test ${libc_cv_cxx_link_ok+y}
4288 printf %s "(cached) " >&6
4291 ac_cpp='$CXXCPP $CPPFLAGS'
4292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4296 # Default, dynamic case.
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4308 if ac_fn_cxx_try_link "$LINENO"
4310 libc_cv_cxx_link_ok=yes
4312 e) libc_cv_cxx_link_ok=no ;;
4315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4316 conftest$ac_exeext conftest.$ac_ext
4317 if test $static_cxx_link_check$static_cxx_tests = yesyes; then
4319 old_LDFLAGS="$LDFLAGS"
4320 LDFLAGS="$LDFLAGS -static"
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4329 std::cout << "Hello, world!";
4334 if ac_fn_cxx_try_link "$LINENO"
4338 e) libc_cv_cxx_link_ok=no ;;
4341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4342 conftest$ac_exeext conftest.$ac_ext
4343 LDFLAGS="$old_LDFLAGS"
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4354 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4355 if test $libc_cv_cxx_link_ok != yes
4360 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4361 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4364 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4366 # Check whether --with-gd was given.
4367 if test ${with_gd+y}
4369 withval=$with_gd; case "$with_gd" in
4371 *) libgd_include="-I$withval/include"
4372 libgd_ldflags="-L$withval/lib" ;;
4378 # Check whether --with-gd-include was given.
4379 if test ${with_gd_include+y}
4381 withval=$with_gd_include; case "$with_gd_include" in
4383 *) libgd_include="-I$withval" ;;
4389 # Check whether --with-gd-lib was given.
4390 if test ${with_gd_lib+y}
4392 withval=$with_gd_lib; case "$with_gd_lib" in
4394 *) libgd_ldflags="-L$withval" ;;
4400 if test -n "$libgd_include"; then
4401 config_vars="$config_vars
4402 CFLAGS-memusagestat.c = $libgd_include"
4404 if test -n "$libgd_ldflags"; then
4405 config_vars="$config_vars
4406 libgd-LDFLAGS = $libgd_ldflags"
4410 # Check whether --with-binutils was given.
4411 if test ${with_binutils+y}
4413 withval=$with_binutils; path_binutils=$withval
4415 e) path_binutils='' ;;
4420 # Check whether --with-selinux was given.
4421 if test ${with_selinux+y}
4423 withval=$with_selinux; with_selinux=$withval
4425 e) with_selinux=auto ;;
4431 # Check whether --with-headers was given.
4432 if test ${with_headers+y}
4434 withval=$with_headers; sysheaders=$withval
4443 # Check whether --with-nonshared-cflags was given.
4444 if test ${with_nonshared_cflags+y}
4446 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4448 e) extra_nonshared_cflags= ;;
4454 # Check whether --with-rtld-early-cflags was given.
4455 if test ${with_rtld_early_cflags+y}
4457 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4459 e) rtld_early_cflags= ;;
4466 # Check whether --with-timeoutfactor was given.
4467 if test ${with_timeoutfactor+y}
4469 withval=$with_timeoutfactor; timeoutfactor=$withval
4471 e) timeoutfactor=1 ;;
4475 printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4478 man_pages_version=6.9.1
4481 # Check whether --with-man-pages was given.
4482 if test ${with_man_pages+y}
4484 withval=$with_man_pages; man_pages_version=$withval
4489 # Check whether --enable-sanity-checks was given.
4490 if test ${enable_sanity_checks+y}
4492 enableval=$enable_sanity_checks; enable_sanity=$enableval
4494 e) enable_sanity=yes ;;
4499 # Check whether --enable-shared was given.
4500 if test ${enable_shared+y}
4502 enableval=$enable_shared; shared=$enableval
4508 # Check whether --enable-profile was given.
4509 if test ${enable_profile+y}
4511 enableval=$enable_profile; profile=$enableval
4517 # Check whether --enable-default-pie was given.
4518 if test ${enable_default_pie+y}
4520 enableval=$enable_default_pie; default_pie=$enableval
4522 e) default_pie=yes ;;
4526 # Check whether --enable-timezone-tools was given.
4527 if test ${enable_timezone_tools+y}
4529 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4531 e) enable_timezone_tools=yes ;;
4537 # Check whether --enable-hardcoded-path-in-tests was given.
4538 if test ${enable_hardcoded_path_in_tests+y}
4540 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4542 e) hardcoded_path_in_tests=no ;;
4548 # Check whether --enable-hidden-plt was given.
4549 if test ${enable_hidden_plt+y}
4551 enableval=$enable_hidden_plt; hidden=$enableval
4557 if test "x$hidden" = xno; then
4558 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4562 # Check whether --enable-bind-now was given.
4563 if test ${enable_bind_now+y}
4565 enableval=$enable_bind_now; bindnow=$enableval
4572 if test "x$bindnow" = xyes; then
4573 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4577 # Check whether --enable-stack-protector was given.
4578 if test ${enable_stack_protector+y}
4580 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4582 e) enable_stack_protector=no ;;
4586 case "$enable_stack_protector" in
4587 all|yes|no|strong) ;;
4588 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4591 # Check whether --enable-static-nss was given.
4592 if test ${enable_static_nss+y}
4594 enableval=$enable_static_nss; static_nss=$enableval
4600 if test x"$static_nss" = xyes || test x"$shared" = xno; then
4602 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4606 # Check whether --enable-force-install was given.
4607 if test ${enable_force_install+y}
4609 enableval=$enable_force_install; force_install=$enableval
4611 e) force_install=yes ;;
4617 # Check whether --enable-maintainer-mode was given.
4618 if test ${enable_maintainer_mode+y}
4620 enableval=$enable_maintainer_mode; maintainer=$enableval
4627 # Check whether --enable-kernel was given.
4628 if test ${enable_kernel+y}
4630 enableval=$enable_kernel; minimum_kernel=$enableval
4633 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4634 # Better nothing than this.
4637 if test "$minimum_kernel" = current; then
4638 minimum_kernel=`uname
-r 2>/dev
/null
` || minimum_kernel=
4642 # Check whether --enable-werror was given.
4643 if test ${enable_werror+y}
4645 enableval=$enable_werror; enable_werror=$enableval
4647 e) enable_werror=yes ;;
4653 # Check whether --enable-multi-arch was given.
4654 if test ${enable_multi_arch+y}
4656 enableval=$enable_multi_arch; multi_arch=$enableval
4658 e) multi_arch=default ;;
4663 # Check whether --enable-memory-tagging was given.
4664 if test ${enable_memory_tagging+y}
4666 enableval=$enable_memory_tagging; memory_tagging=$enableval
4668 e) memory_tagging=no ;;
4672 if test "$memory_tagging" = yes; then
4673 # Only enable this on architectures that support it.
4676 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4683 # Check whether --enable-systemtap was given.
4684 if test ${enable_systemtap+y}
4686 enableval=$enable_systemtap; systemtap=$enableval
4692 if test "x$systemtap" != xno; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4695 printf %s "checking for systemtap static probe support... " >&6; }
4696 if test ${libc_cv_sdt+y}
4698 printf %s "(cached) " >&6
4700 e) old_CFLAGS="$CFLAGS"
4701 CFLAGS="-std=gnu11 $CFLAGS"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <sys/sdt.h>
4705 void foo (int i, void *p)
4707 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4708 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4711 if ac_fn_c_try_compile "$LINENO"
4715 e) libc_cv_sdt=no ;;
4718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 CFLAGS="$old_CFLAGS" ;;
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4723 printf "%s\n" "$libc_cv_sdt" >&6; }
4724 if test $libc_cv_sdt = yes; then
4725 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4727 elif test "x$systemtap" != xauto; then
4728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4729 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4730 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
4731 See 'config.log' for more details" "$LINENO" 5; }
4735 # Check whether --enable-build-nscd was given.
4736 if test ${enable_build_nscd+y}
4738 enableval=$enable_build_nscd; build_nscd=$enableval
4740 e) build_nscd=default ;;
4746 # Note the use of $use_nscd is near the bottom of the file.
4747 # Check whether --enable-nscd was given.
4748 if test ${enable_nscd+y}
4750 enableval=$enable_nscd; use_nscd=$enableval
4757 # Check whether --enable-pt_chown was given.
4758 if test ${enable_pt_chown+y}
4760 enableval=$enable_pt_chown; build_pt_chown=$enableval
4762 e) build_pt_chown=no ;;
4767 if test "$build_pt_chown" = yes; then
4768 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4772 # The abi-tags file uses a fairly simplistic model for name recognition that
4773 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4774 # $host_os of `gnu
*' here to be `gnu-gnu*' just so that it can tell.
4775 # This doesn't get used much beyond that, so it's fairly safe.
4780 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4784 # Check whether --enable-mathvec was given.
4785 if test ${enable_mathvec+y}
4787 enableval
=$enable_mathvec; build_mathvec
=$enableval
4789 e
) build_mathvec
=notset
;;
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4803 # error no CET compiler support
4809 if ac_fn_c_try_cpp
"$LINENO"
4811 libc_cv_compiler_default_cet
=yes
4813 e
) libc_cv_compiler_default_cet
=no
;;
4816 rm -f conftest.err conftest.i conftest.
$ac_ext
4818 # Check whether --enable-cet was given.
4819 if test ${enable_cet+y}
4821 enableval
=$enable_cet; enable_cet
=$enableval
4823 e
) enable_cet
=$libc_cv_compiler_default_cet ;;
4828 # Check whether --enable-scv was given.
4829 if test ${enable_scv+y}
4831 enableval
=$enable_scv; use_scv
=$enableval
4838 if test "$use_scv" != "no"
4840 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4844 # Check whether --enable-fortify-source was given.
4845 if test ${enable_fortify_source+y}
4847 enableval
=$enable_fortify_source; enable_fortify_source
=$enableval
4849 e
) enable_fortify_source
=no
;;
4853 case "$enable_fortify_source" in
4855 *) as_fn_error $?
"Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4858 # We keep the original values in `$config_*' and never modify them, so we
4859 # can write them unchanged into config.make. Everything else uses
4860 # $machine, $vendor, and $os, and changes them whenever convenient.
4861 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
4863 # Don't allow vendor == "unknown"
4864 test "$config_vendor" = unknown
&& config_vendor
=
4865 config_os
="`echo $config_os | sed 's/^unknown-//'`"
4867 # Some configurations imply other options.
4870 # The configure fragment of a port can modify these to supplement
4871 # or override the table in the case statement below. No fragment should
4872 # ever change the config_* variables, however.
4873 machine
=$config_machine
4874 vendor
=$config_vendor
4880 # Check whether --with-cpu was given.
4881 if test ${with_cpu+y}
4883 withval
=$with_cpu; case "$withval" in
4884 yes|
'') as_fn_error $?
"--with-cpu requires an argument" "$LINENO" 5 ;;
4886 *) submachine
="$withval" ;;
4892 # An preconfigure script can set this when it wants to disable the sanity
4896 # A preconfigure script for a system that may or may not use fpu
4897 # sysdeps directories sets this to a preprocessor conditional for
4898 # whether to use such directories.
4901 # A preconfigure script may define another name to TLS descriptor variant
4902 mtls_descriptor
=gnu2
4904 if frags
=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4907 printf %s
"checking for sysdeps preconfigure fragments... " >&6; }
4908 for frag
in $frags; do
4909 name
=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4910 echo $ECHO_N "$name $ECHO_C" >&6
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4914 printf "%s\n" "" >&6; }
4919 ### By using the undocumented --enable-hacker-mode option for configure
4920 ### one can skip this test to make the configuration not fail for unsupported
4923 if test -z "$enable_hacker_mode" && test x
"$libc_config_ok" != xyes
; then
4924 case "$machine-$host_os" in
4929 *** The GNU C library is currently unavailable for this platform.
4930 *** If you are interested in seeing glibc on this platform visit
4931 *** the \"How to submit a new port\" in the wiki:
4932 *** https://sourceware.org/glibc/wiki/#Development
4933 *** and join the community!" "$LINENO" 5
4938 # Set base_machine if not set by a preconfigure fragment.
4939 test -n "$base_machine" || base_machine
=$machine
4945 # Find a good install program. We prefer a C program (faster),
4946 # so one script is as good as another. But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 # Reject install programs that cannot install multiple files.
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4960 printf %s
"checking for a BSD-compatible install... " >&6; }
4961 if test -z "$INSTALL"; then
4962 if test ${ac_cv_path_install+y}
4964 printf %s
"(cached) " >&6
4966 e
) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 case $as_dir in #(((
4973 *) as_dir
=$as_dir/ ;;
4975 # Account for fact that we put trailing slashes in our PATH walk.
4978 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4979 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4982 # OSF1 and SCO ODT 3.0 have their own names for install.
4983 # Don't use installbsd from OSF since it installs stuff as root
4985 for ac_prog
in ginstall scoinst
install; do
4986 for ac_exec_ext
in '' $ac_executable_extensions; do
4987 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4988 if test $ac_prog = install &&
4989 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4990 # AIX install. It has an incompatible calling convention.
4992 elif test $ac_prog = install &&
4993 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4994 # program-specific install script used by HP pwplus--don't use.
4997 rm -rf conftest.one conftest.two conftest.dir
4998 echo one
> conftest.one
4999 echo two
> conftest.two
5001 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
5002 test -s conftest.one
&& test -s conftest.two
&&
5003 test -s conftest.dir
/conftest.one
&&
5004 test -s conftest.dir
/conftest.two
5006 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
5019 rm -rf conftest.one conftest.two conftest.dir
5023 if test ${ac_cv_path_install+y}; then
5024 INSTALL
=$ac_cv_path_install
5026 # As a last resort, use the slow shell script. Don't cache a
5027 # value for INSTALL within a source directory, because that will
5028 # break other packages using the cache if that directory is
5029 # removed, or if the value is a relative name.
5030 INSTALL
=$ac_install_sh
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5034 printf "%s\n" "$INSTALL" >&6; }
5036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5037 # It thinks the first close brace ends the variable substitution.
5038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5042 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5044 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
5045 # The makefiles need to use a different form to find it in $srcdir.
5046 INSTALL
='\$(..)./scripts/install-sh -c'
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049 printf %s
"checking whether ln -s works... " >&6; }
5051 if test "$LN_S" = "ln -s"; then
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 printf "%s\n" "yes" >&6; }
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056 printf "%s\n" "no, using $LN_S" >&6; }
5060 # Was a --with-binutils option given?
5061 if test -n "$path_binutils"; then
5062 # Make absolute; ensure a single trailing slash.
5063 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5064 CC
="$CC -B$path_binutils"
5067 *fuse-ld
=lld
*) LDNAME
=ld.lld
;;
5070 if test -z "$LD"; then
5071 LD
=`$CC -print-prog-name=$LDNAME`
5073 if test -z "$AR"; then
5074 AR
=`$CC -print-prog-name=ar`
5077 if test -z "$OBJCOPY"; then
5078 OBJCOPY
=`$CC -print-prog-name=objcopy`
5081 if test -z "$GPROF"; then
5082 GPROF
=`$CC -print-prog-name=gprof`
5085 if test -z "$READELF"; then
5086 READELF
=`$CC -print-prog-name=readelf`
5089 if test -z "$OBJDUMP"; then
5090 OBJDUMP
=`$CC -print-prog-name=objdump`
5093 if test -z "$NM"; then
5094 NM
=`$CC -print-prog-name=nm`
5099 # Accept binutils 2.25 or newer.
5101 case $
($LD --version) in
5103 # Accept gold 1.14 or higher
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy
$ac_prog; ac_word
=$2
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 printf %s
"checking for $ac_word... " >&6; }
5110 if test ${ac_cv_prog_LD+y}
5112 printf %s
"(cached) " >&6
5114 e
) if test -n "$LD"; then
5115 ac_cv_prog_LD
="$LD" # Let the user override the test.
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 case $as_dir in #(((
5124 *) as_dir
=$as_dir/ ;;
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_LD
="$ac_prog"
5129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5140 if test -n "$LD"; then
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5142 printf "%s\n" "$LD" >&6; }
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 printf "%s\n" "no" >&6; }
5149 test -n "$LD" && break
5152 if test -z "$LD"; then
5155 # Found it, now check the version.
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5157 printf %s
"checking version of $LD... " >&6; }
5158 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5159 case $ac_prog_version in
5160 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5161 1.1[4-9]*|
1.
[2-9][0-9]*|
1.1[0-9][0-9]*|
[2-9].
*|
[1-9][0-9]*)
5162 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5163 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5167 printf "%s\n" "$ac_prog_version" >&6; }
5169 if test $ac_verc_fail = yes; then
5170 LD
=: critic_missing
="$critic_missing GNU gold"
5175 # Accept LLD 13.0.0 or higher
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy
$ac_prog; ac_word
=$2
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 printf %s
"checking for $ac_word... " >&6; }
5182 if test ${ac_cv_prog_LD+y}
5184 printf %s
"(cached) " >&6
5186 e
) if test -n "$LD"; then
5187 ac_cv_prog_LD
="$LD" # Let the user override the test.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 case $as_dir in #(((
5196 *) as_dir
=$as_dir/ ;;
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_LD
="$ac_prog"
5201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5212 if test -n "$LD"; then
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5214 printf "%s\n" "$LD" >&6; }
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 printf "%s\n" "no" >&6; }
5221 test -n "$LD" && break
5224 if test -z "$LD"; then
5227 # Found it, now check the version.
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5229 printf %s
"checking version of $LD... " >&6; }
5230 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5231 case $ac_prog_version in
5232 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5233 1[3-9].
*|
[2-9][0-9].
*)
5234 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5235 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5239 printf "%s\n" "$ac_prog_version" >&6; }
5241 if test $ac_verc_fail = yes; then
5242 LD
=: critic_missing
="$critic_missing LLD"
5245 libc_cv_with_lld
=yes
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy
$ac_prog; ac_word
=$2
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 printf %s
"checking for $ac_word... " >&6; }
5254 if test ${ac_cv_prog_LD+y}
5256 printf %s
"(cached) " >&6
5258 e
) if test -n "$LD"; then
5259 ac_cv_prog_LD
="$LD" # Let the user override the test.
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5265 case $as_dir in #(((
5268 *) as_dir
=$as_dir/ ;;
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_LD
="$ac_prog"
5273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5284 if test -n "$LD"; then
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5286 printf "%s\n" "$LD" >&6; }
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 printf "%s\n" "no" >&6; }
5293 test -n "$LD" && break
5296 if test -z "$LD"; then
5299 # Found it, now check the version.
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5301 printf %s
"checking version of $LD... " >&6; }
5302 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5303 case $ac_prog_version in
5304 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5305 2.1[0-9][0-9]*|
2.2[5-9]*|
2.
[3-9][0-9]*|
[3-9].
*|
[1-9][0-9]*)
5306 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5307 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5311 printf "%s\n" "$ac_prog_version" >&6; }
5313 if test $ac_verc_fail = yes; then
5314 LD
=: critic_missing
="$critic_missing GNU ld"
5319 config_vars
="$config_vars
5320 with-lld = $libc_cv_with_lld"
5322 # These programs are version sensitive.
5323 for ac_prog
in gnumake gmake
make
5325 # Extract the first word of "$ac_prog", so it can be a program name with args.
5326 set dummy
$ac_prog; ac_word
=$2
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 printf %s
"checking for $ac_word... " >&6; }
5329 if test ${ac_cv_prog_MAKE+y}
5331 printf %s
"(cached) " >&6
5333 e
) if test -n "$MAKE"; then
5334 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5340 case $as_dir in #(((
5343 *) as_dir
=$as_dir/ ;;
5345 for ac_exec_ext
in '' $ac_executable_extensions; do
5346 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_MAKE
="$ac_prog"
5348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5358 MAKE
=$ac_cv_prog_MAKE
5359 if test -n "$MAKE"; then
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5361 printf "%s\n" "$MAKE" >&6; }
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 printf "%s\n" "no" >&6; }
5368 test -n "$MAKE" && break
5371 if test -z "$MAKE"; then
5374 # Found it, now check the version.
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5376 printf %s
"checking version of $MAKE... " >&6; }
5377 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5378 case $ac_prog_version in
5379 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5380 [4-9].
* |
[1-9][0-9]*)
5381 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5382 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5386 printf "%s\n" "$ac_prog_version" >&6; }
5388 if test $ac_verc_fail = yes; then
5389 critic_missing
="$critic_missing make"
5393 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396 set dummy
$ac_prog; ac_word
=$2
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 printf %s
"checking for $ac_word... " >&6; }
5399 if test ${ac_cv_prog_MSGFMT+y}
5401 printf %s
"(cached) " >&6
5403 e
) if test -n "$MSGFMT"; then
5404 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
5406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5410 case $as_dir in #(((
5413 *) as_dir
=$as_dir/ ;;
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_MSGFMT
="$ac_prog"
5418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5428 MSGFMT
=$ac_cv_prog_MSGFMT
5429 if test -n "$MSGFMT"; then
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5431 printf "%s\n" "$MSGFMT" >&6; }
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 printf "%s\n" "no" >&6; }
5438 test -n "$MSGFMT" && break
5441 if test -z "$MSGFMT"; then
5444 # Found it, now check the version.
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5446 printf %s
"checking version of $MSGFMT... " >&6; }
5447 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5448 case $ac_prog_version in
5449 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5450 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
5451 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5452 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5456 printf "%s\n" "$ac_prog_version" >&6; }
5458 if test $ac_verc_fail = yes; then
5459 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
5462 for ac_prog
in makeinfo
5464 # Extract the first word of "$ac_prog", so it can be a program name with args.
5465 set dummy
$ac_prog; ac_word
=$2
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 printf %s
"checking for $ac_word... " >&6; }
5468 if test ${ac_cv_prog_MAKEINFO+y}
5470 printf %s
"(cached) " >&6
5472 e
) if test -n "$MAKEINFO"; then
5473 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5479 case $as_dir in #(((
5482 *) as_dir
=$as_dir/ ;;
5484 for ac_exec_ext
in '' $ac_executable_extensions; do
5485 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_MAKEINFO
="$ac_prog"
5487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5497 MAKEINFO
=$ac_cv_prog_MAKEINFO
5498 if test -n "$MAKEINFO"; then
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5500 printf "%s\n" "$MAKEINFO" >&6; }
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 printf "%s\n" "no" >&6; }
5507 test -n "$MAKEINFO" && break
5510 if test -z "$MAKEINFO"; then
5513 # Found it, now check the version.
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5515 printf %s
"checking version of $MAKEINFO... " >&6; }
5516 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5517 case $ac_prog_version in
5518 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5519 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9].
*)
5520 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5521 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5525 printf "%s\n" "$ac_prog_version" >&6; }
5527 if test $ac_verc_fail = yes; then
5528 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy
$ac_prog; ac_word
=$2
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 printf %s
"checking for $ac_word... " >&6; }
5537 if test ${ac_cv_prog_SED+y}
5539 printf %s
"(cached) " >&6
5541 e
) if test -n "$SED"; then
5542 ac_cv_prog_SED
="$SED" # Let the user override the test.
5544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5548 case $as_dir in #(((
5551 *) as_dir
=$as_dir/ ;;
5553 for ac_exec_ext
in '' $ac_executable_extensions; do
5554 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_SED
="$ac_prog"
5556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5567 if test -n "$SED"; then
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5569 printf "%s\n" "$SED" >&6; }
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 printf "%s\n" "no" >&6; }
5576 test -n "$SED" && break
5579 if test -z "$SED"; then
5582 # Found it, now check the version.
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5584 printf %s
"checking version of $SED... " >&6; }
5585 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5586 case $ac_prog_version in
5587 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5588 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
5589 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5590 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5594 printf "%s\n" "$ac_prog_version" >&6; }
5596 if test $ac_verc_fail = yes; then
5597 SED
=: aux_missing
="$aux_missing sed"
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy
$ac_prog; ac_word
=$2
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 printf %s
"checking for $ac_word... " >&6; }
5606 if test ${ac_cv_prog_AWK+y}
5608 printf %s
"(cached) " >&6
5610 e
) if test -n "$AWK"; then
5611 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5617 case $as_dir in #(((
5620 *) as_dir
=$as_dir/ ;;
5622 for ac_exec_ext
in '' $ac_executable_extensions; do
5623 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_AWK
="$ac_prog"
5625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5636 if test -n "$AWK"; then
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5638 printf "%s\n" "$AWK" >&6; }
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 printf "%s\n" "no" >&6; }
5645 test -n "$AWK" && break
5648 if test -z "$AWK"; then
5651 # Found it, now check the version.
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5653 printf %s
"checking version of $AWK... " >&6; }
5654 ac_prog_version
=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5655 case $ac_prog_version in
5656 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5657 3.1.
[2-9]*|
3.
[2-9]*|
[4-9]*)
5658 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5659 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5663 printf "%s\n" "$ac_prog_version" >&6; }
5665 if test $ac_verc_fail = yes; then
5666 critic_missing
="$critic_missing gawk"
5669 for ac_prog
in bison
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy
$ac_prog; ac_word
=$2
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 printf %s
"checking for $ac_word... " >&6; }
5675 if test ${ac_cv_prog_BISON+y}
5677 printf %s
"(cached) " >&6
5679 e
) if test -n "$BISON"; then
5680 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5686 case $as_dir in #(((
5689 *) as_dir
=$as_dir/ ;;
5691 for ac_exec_ext
in '' $ac_executable_extensions; do
5692 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_BISON
="$ac_prog"
5694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5704 BISON
=$ac_cv_prog_BISON
5705 if test -n "$BISON"; then
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5707 printf "%s\n" "$BISON" >&6; }
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 printf "%s\n" "no" >&6; }
5714 test -n "$BISON" && break
5717 if test -z "$BISON"; then
5720 # Found it, now check the version.
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5722 printf %s
"checking version of $BISON... " >&6; }
5723 ac_prog_version
=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5724 case $ac_prog_version in
5725 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5726 2.7*|
[3-9].
*|
[1-9][0-9]*)
5727 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5728 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5732 printf "%s\n" "$ac_prog_version" >&6; }
5734 if test $ac_verc_fail = yes; then
5735 critic_missing
="$critic_missing bison"
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5740 printf %s
"checking if $CC is sufficient to build libc... " >&6; }
5741 if test ${libc_cv_compiler_ok+y}
5743 printf %s
"(cached) " >&6
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5753 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
5754 #error insufficient compiler
5760 if ac_fn_c_try_cpp
"$LINENO"
5762 libc_cv_compiler_ok
=yes
5764 e
) libc_cv_compiler_ok
=no
;;
5767 rm -f conftest.err conftest.i conftest.
$ac_ext ;;
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5771 printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5772 if test $libc_cv_compiler_ok != yes
5774 critic_missing
="$critic_missing compiler"
5777 if test "x$maintainer" = "xyes"; then
5778 for ac_prog
in autoconf
5780 # Extract the first word of "$ac_prog", so it can be a program name with args.
5781 set dummy
$ac_prog; ac_word
=$2
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 printf %s
"checking for $ac_word... " >&6; }
5784 if test ${ac_cv_prog_AUTOCONF+y}
5786 printf %s
"(cached) " >&6
5788 e
) if test -n "$AUTOCONF"; then
5789 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
5791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5795 case $as_dir in #(((
5798 *) as_dir
=$as_dir/ ;;
5800 for ac_exec_ext
in '' $ac_executable_extensions; do
5801 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_AUTOCONF
="$ac_prog"
5803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5813 AUTOCONF
=$ac_cv_prog_AUTOCONF
5814 if test -n "$AUTOCONF"; then
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5816 printf "%s\n" "$AUTOCONF" >&6; }
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 printf "%s\n" "no" >&6; }
5823 test -n "$AUTOCONF" && break
5825 test -n "$AUTOCONF" || AUTOCONF
="no"
5827 case "x$AUTOCONF" in
5828 xno|x|x
:) AUTOCONF
=no
;;
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5831 printf %s
"checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5832 if test ${libc_cv_autoconf_works+y}
5834 printf %s
"(cached) " >&6
5836 e
) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac
> /dev
/null
2>&1); then
5837 libc_cv_autoconf_works
=yes
5839 libc_cv_autoconf_works
=no
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5844 printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5845 test $libc_cv_autoconf_works = yes || AUTOCONF
=no
5848 if test "x$AUTOCONF" = xno
; then
5849 aux_missing
="$aux_missing autoconf"
5855 # Check for python3 if available, or else python.
5856 for ac_prog
in python3 python
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy
$ac_prog; ac_word
=$2
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 printf %s
"checking for $ac_word... " >&6; }
5862 if test ${ac_cv_prog_PYTHON_PROG+y}
5864 printf %s
"(cached) " >&6
5866 e
) if test -n "$PYTHON_PROG"; then
5867 ac_cv_prog_PYTHON_PROG
="$PYTHON_PROG" # Let the user override the test.
5869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5873 case $as_dir in #(((
5876 *) as_dir
=$as_dir/ ;;
5878 for ac_exec_ext
in '' $ac_executable_extensions; do
5879 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_PYTHON_PROG
="$ac_prog"
5881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5891 PYTHON_PROG
=$ac_cv_prog_PYTHON_PROG
5892 if test -n "$PYTHON_PROG"; then
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5894 printf "%s\n" "$PYTHON_PROG" >&6; }
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 printf "%s\n" "no" >&6; }
5901 test -n "$PYTHON_PROG" && break
5904 if test -z "$PYTHON_PROG"; then
5907 # Found it, now check the version.
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5909 printf %s
"checking version of $PYTHON_PROG... " >&6; }
5910 ac_prog_version
=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5911 case $ac_prog_version in
5912 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5913 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*)
5914 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5915 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5919 printf "%s\n" "$ac_prog_version" >&6; }
5921 if test $ac_verc_fail = yes; then
5922 critic_missing
="$critic_missing python"
5925 PYTHON
="$PYTHON_PROG -B"
5928 test -n "$critic_missing" && as_fn_error $?
"
5929 *** These critical programs are missing or too old:$critic_missing
5930 *** Check the INSTALL file for required versions." "$LINENO" 5
5932 test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5933 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5934 *** some features or tests will be disabled.
5935 *** Check the INSTALL file for required versions." >&5
5936 printf "%s\n" "$as_me: WARNING:
5937 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5938 *** some features or tests will be disabled.
5939 *** Check the INSTALL file for required versions." >&2;}
5942 # Determine whether to use fpu or nofpu sysdeps directories.
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5944 printf %s
"checking for use of fpu sysdeps directories... " >&6; }
5945 if test ${libc_cv_with_fp+y}
5947 printf %s
"(cached) " >&6
5949 e
) cat > conftest.c
<<EOF
5953 # error "no hardware floating point"
5957 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c
-o conftest.s \
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5965 printf "%s\n" "$libc_cv_with_fp" >&6; }
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
5969 printf %s
"checking for -fstack-protector... " >&6; }
5970 if test ${libc_cv_ssp+y}
5972 printf %s
"(cached) " >&6
5974 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
5975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }; }
5983 e
) libc_cv_ssp
=no
;;
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
5990 printf "%s\n" "$libc_cv_ssp" >&6; }
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5993 printf %s
"checking for -fstack-protector-strong... " >&6; }
5994 if test ${libc_cv_ssp_strong+y}
5996 printf %s
"(cached) " >&6
5998 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
5999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; }
6005 libc_cv_ssp_strong
=yes
6007 e
) libc_cv_ssp_strong
=no
;;
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6014 printf "%s\n" "$libc_cv_ssp_strong" >&6; }
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
6017 printf %s
"checking for -fstack-protector-all... " >&6; }
6018 if test ${libc_cv_ssp_all+y}
6020 printf %s
"(cached) " >&6
6022 e
) if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
6023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; }
6031 e
) libc_cv_ssp_all
=no
;;
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6038 printf "%s\n" "$libc_cv_ssp_all" >&6; }
6042 if test "$libc_cv_ssp" = yes; then
6043 no_stack_protector
="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
6044 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6048 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6049 stack_protector
="-fstack-protector"
6050 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
6052 elif test "$enable_stack_protector" = all
&& test "$libc_cv_ssp_all" = yes; then
6053 stack_protector
="-fstack-protector-all"
6054 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
6056 elif test "$enable_stack_protector" = strong
&& test "$libc_cv_ssp_strong" = yes; then
6057 stack_protector
="-fstack-protector-strong"
6058 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
6061 stack_protector
="-fno-stack-protector"
6062 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
6069 if test -n "$stack_protector"; then
6070 no_ssp
=-fno-stack-protector
6074 if test "$enable_stack_protector" != no
; then
6075 as_fn_error $?
"--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
6079 # For the multi-arch option we need support in the assembler & linker.
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
6081 printf %s
"checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
6082 if test ${libc_cv_ld_gnu_indirect_function+y}
6084 printf %s
"(cached) " >&6
6086 e
) cat > conftest.S
<<EOF
6087 .type foo,%gnu_indirect_function
6100 libc_cv_ld_gnu_indirect_function
=no
6101 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6102 -nostartfiles -nostdlib $no_ssp \
6103 -o conftest conftest.S
1>&5 2>&5; then
6104 # Do a link to see if the backend supports IFUNC relocs.
6105 $READELF -r conftest
1>&5
6106 LC_ALL
=C
$READELF -Wr conftest |
grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
6107 libc_cv_ld_gnu_indirect_function
=yes
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
6114 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
6116 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
6118 printf %s
"checking for gcc attribute ifunc support... " >&6; }
6119 if test ${libc_cv_gcc_indirect_function+y}
6121 printf %s
"(cached) " >&6
6123 e
) cat > conftest.c
<<EOF
6124 extern int func (int);
6125 int used_func (int a)
6129 static void *resolver ()
6133 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
6135 libc_cv_gcc_indirect_function
=no
6136 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 \
6138 if $READELF -s conftest.o |
grep IFUNC
>/dev
/null
2>&5; then
6139 libc_cv_gcc_indirect_function
=yes
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
6146 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
6148 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
6149 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
6151 printf %s
"checking whether the linker supports textrels along with ifunc... " >&6; }
6152 if test ${libc_cv_textrel_ifunc+y}
6154 printf %s
"(cached) " >&6
6156 e
) cat > conftest.S
<<EOF
6157 .type foo,%gnu_indirect_function
6178 libc_cv_textrel_ifunc
=no
6179 if test $libc_cv_ld_gnu_indirect_function = yes; then
6180 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }; }; then
6186 libc_cv_textrel_ifunc
=yes
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6193 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6196 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6198 printf %s
"checking for GNU attribute retain support... " >&6; }
6199 if test ${libc_cv_gnu_retain+y}
6201 printf %s
"(cached) " >&6
6203 e
) cat > conftest.c
<<EOF
6204 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6206 libc_cv_gnu_retain
=no
6207 if ${CC-cc} -Werror -c conftest.c
-o /dev
/null
1>&5 \
6209 libc_cv_gnu_retain
=yes
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6215 printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6216 if test $libc_cv_gnu_retain = yes; then
6217 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6220 config_vars
="$config_vars
6221 have-gnu-retain = $libc_cv_gnu_retain"
6223 # Check if gcc warns about alias for function with incompatible types.
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6225 printf %s
"checking if compiler warns about alias for function with incompatible types... " >&6; }
6226 if test ${libc_cv_gcc_incompatible_alias+y}
6228 printf %s
"(cached) " >&6
6230 e
) cat > conftest.c
<<EOF
6231 int __redirect_foo (const void *s, int c);
6233 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6234 __typeof (__redirect_foo) *foo_impl (void)
6239 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6241 libc_cv_gcc_incompatible_alias
=yes
6242 if ${CC-cc} -Werror -c conftest.c
-o conftest.o
1>&5 2>&5 ; then
6243 libc_cv_gcc_incompatible_alias
=no
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6249 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6251 if test x
"$libc_cv_ld_gnu_indirect_function" != xyes
; then
6252 if test x
"$multi_arch" = xyes
; then
6253 as_fn_error $?
"--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6258 if test x
"$libc_cv_gcc_indirect_function" != xyes
; then
6259 # GCC 8+ emits a warning for alias with incompatible types and it might
6260 # fail to build ifunc resolvers aliases to either weak or internal
6261 # symbols. Disables multiarch build in this case.
6262 if test x
"$libc_cv_gcc_incompatible_alias" = xyes
; then
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6264 printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6265 if test x
"$multi_arch" = xyes
; then
6266 as_fn_error $?
"--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6269 printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6271 elif test x
"$multi_arch" = xyes
; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6273 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6274 printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6275 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6279 if test x
"$multi_arch" != xno
; then
6280 multi_arch_d
=/multiarch
6283 # Compute the list of sysdep directories for this configuration.
6284 # This can take a while to compute.
6285 sysdep_dir
=$srcdir/sysdeps
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6287 printf %s
"checking sysdep dirs... " >&6; }
6288 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6289 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6291 test "x$base_os" != x ||
case "$os" in
6293 base_os
=mach
/hurd
;;
6295 base_os
=unix
/sysv
;;
6298 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6301 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6305 o
=`echo $tail | sed 's/[0-9]*$//'`
6306 if test $o != $tail; then
6309 # For linux-gnu, try linux-gnu, then linux.
6310 o
=`echo $tail | sed 's/-.*$//'`
6311 if test $o != $tail; then
6315 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6318 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6324 # For sparc/sparc32, try sparc/sparc32 and then sparc.
6326 tail=$machine${submachine:+/$submachine}
6327 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6329 # Prepend the machine's FPU directory unless the architecture specific
6330 # preconfigure disables it.
6331 if test "$libc_cv_with_fp" = yes; then
6336 # For each machine term, try it with and then without /multiarch.
6337 for try_fpu
in $maybe_fpu ''; do
6338 for try_multi
in $multi_arch_d ''; do
6339 mach
="$mach /$1$try_fpu$try_multi"
6346 # Find what sysdep directories exist.
6348 for b
in $base ''; do
6349 for m0
in $mach ''; do
6350 for v
in /$vendor ''; do
6351 test "$v" = / && continue
6352 for o
in /$ostry ''; do
6353 test "$o" = / && continue
6354 for m
in $mach ''; do
6355 try_suffix
="$m0$b$v$o$m"
6356 if test -n "$try_suffix"; then
6357 try_srcdir
="${srcdir}/"
6358 try
="sysdeps$try_suffix"
6359 test -n "$enable_debug_configure" &&
6360 echo "$0 DEBUG: try $try" >&2
6361 if test -d "$try_srcdir$try"; then
6362 sysnames
="$sysnames $try"
6363 { test -n "$o" ||
test -n "$b"; } && os_used
=t
6364 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
6366 x
*/$submachine) submachine_used
=t
;;
6376 # If the assembler supports gnu_indirect_function symbol type and the
6377 # architecture supports multi-arch, we enable multi-arch by default.
6382 test x
"$multi_arch" = xdefault
&& multi_arch
=no
6385 if test x
"$multi_arch" != xno
; then
6386 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6391 if test -z "$os_used" && test "$os" != none
; then
6392 as_fn_error $?
"Operating system $os is not supported." "$LINENO" 5
6394 if test -z "$machine_used" && test "$machine" != none
; then
6395 as_fn_error $?
"The $machine is not supported." "$LINENO" 5
6397 if test -z "$submachine_used" && test -n "$submachine"; then
6398 as_fn_error $?
"The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6402 # We have now validated the configuration.
6404 # Expand the list of system names into a full list of directories
6405 # from each element's parent name and Implies file (if present).
6408 while test $# -gt 0; do
6412 case " $names " in *" $name "*)
6413 # Already in the list.
6417 # Report each name as we discover it, so there is no long pause in output.
6418 echo $ECHO_N "$name $ECHO_C" >&6
6420 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6424 *) xsrcdir
=$srcdir/ ;;
6426 test -n "$enable_debug_configure" &&
6427 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6429 for implies_file
in Implies Implies-before Implies-after
; do
6430 implies_type
=`echo $implies_file | sed s/-/_/`
6431 eval ${implies_type}=
6432 if test -f $xsrcdir$name/$implies_file; then
6433 # Collect more names from the `Implies' file (removing comments).
6434 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6435 for x
in $implied_candidate; do
6437 if test -d $xsrcdir$name_base/$x; then
6438 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6443 test -n "$enable_debug_configure" &&
6444 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6445 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6447 eval "${implies_type}=\"\$${implies_type} \$try\""
6450 if test $found = no
; then
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6452 printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6458 # Add NAME to the list of names.
6459 names
="$names $name"
6461 # Find the parent of NAME, using the empty string if it has none.
6462 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6464 test -n "$enable_debug_configure" &&
6465 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6466 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6468 # Add the names implied by NAME, and NAME's parent (if it has one), to
6469 # the list of names to be processed (the argument list). We prepend the
6470 # implied names to the list and append the parent. We want implied
6471 # directories to come before further directories inferred from the
6472 # configuration components; this ensures that for sysv4, unix/common
6473 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6475 sysnames
="`echo $Implies $* $Implies_before $parent $Implies_after`"
6476 test -n "$sysnames" && set $sysnames
6479 # Add the default directories.
6480 default_sysnames
="sysdeps/generic"
6481 sysnames
="$names $default_sysnames"
6483 # The other names were emitted during the scan.
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6485 printf "%s\n" "$default_sysnames" >&6; }
6487 # if using special system headers, find out the compiler's sekrit
6488 # header directory and add that to the list. NOTE: Only does the right
6489 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6490 if test -n "$sysheaders"; then
6491 SYSINCLUDES
=-nostdinc
6492 for d
in include include-fixed
; do
6493 i
=`$CC -print-file-name="$d"` && test "x$i" != x
&& test "x$i" != "x$d" &&
6494 SYSINCLUDES
="$SYSINCLUDES -isystem $i"
6496 SYSINCLUDES
="$SYSINCLUDES \
6497 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6498 if test -n "$CXX"; then
6500 for cxxheaders
in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6501 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6502 test "x$cxxheaders" != x
&&
6503 CXX_SYSINCLUDES
="$CXX_SYSINCLUDES -isystem $cxxheaders"
6510 # Obtain some C++ header file paths. This is used to make a local
6511 # copy of those headers in Makerules.
6512 if test -n "$CXX"; then
6513 find_cxx_header
() {
6514 echo "#include <$1>" |
$CXX -H -fsyntax-only -x c
++ - 2>&1 \
6515 |
$AWK '$1 == "."{print $2}'
6517 CXX_CSTDLIB_HEADER
="$(find_cxx_header cstdlib)"
6518 CXX_CMATH_HEADER
="$(find_cxx_header cmath)"
6519 CXX_BITS_STD_ABS_H
="$(find_cxx_header bits/std_abs.h)"
6525 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6526 # since this would lead to problems installing/building glibc.
6527 # LD_LIBRARY_PATH contains the current directory if one of the following
6529 # - one of the terminals (":" and ";") is the first or last sign
6530 # - two terminals occur directly after each other
6531 # - the path contains an element with a dot in it
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6533 printf %s
"checking LD_LIBRARY_PATH variable... " >&6; }
6534 case ${LD_LIBRARY_PATH} in
6535 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
6536 ld_library_path_setting
="contains current directory"
6539 ld_library_path_setting
="ok"
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6543 printf "%s\n" "$ld_library_path_setting" >&6; }
6544 if test "$ld_library_path_setting" != "ok"; then
6546 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6547 *** building glibc. Please change the environment variable
6548 *** and run configure again." "$LINENO" 5
6551 # Extract the first word of "bash", so it can be a program name with args.
6552 set dummy bash
; ac_word
=$2
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 printf %s
"checking for $ac_word... " >&6; }
6555 if test ${ac_cv_path_BASH_SHELL+y}
6557 printf %s
"(cached) " >&6
6559 e
) case $BASH_SHELL in
6561 ac_cv_path_BASH_SHELL
="$BASH_SHELL" # Let the user override the test with a path.
6564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6568 case $as_dir in #(((
6571 *) as_dir
=$as_dir/ ;;
6573 for ac_exec_ext
in '' $ac_executable_extensions; do
6574 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6575 ac_cv_path_BASH_SHELL
="$as_dir$ac_word$ac_exec_ext"
6576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6583 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL
="no"
6588 BASH_SHELL
=$ac_cv_path_BASH_SHELL
6589 if test -n "$BASH_SHELL"; then
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6591 printf "%s\n" "$BASH_SHELL" >&6; }
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 printf "%s\n" "no" >&6; }
6599 # Extract the first word of "perl", so it can be a program name with args.
6600 set dummy perl
; ac_word
=$2
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 printf %s
"checking for $ac_word... " >&6; }
6603 if test ${ac_cv_path_PERL+y}
6605 printf %s
"(cached) " >&6
6609 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6616 case $as_dir in #(((
6619 *) as_dir
=$as_dir/ ;;
6621 for ac_exec_ext
in '' $ac_executable_extensions; do
6622 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6623 ac_cv_path_PERL
="$as_dir$ac_word$ac_exec_ext"
6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
6636 PERL
=$ac_cv_path_PERL
6637 if test -n "$PERL"; then
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6639 printf "%s\n" "$PERL" >&6; }
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 printf "%s\n" "no" >&6; }
6646 if test "$PERL" != no
&&
6647 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6650 # Extract the first word of "install-info", so it can be a program name with args.
6651 set dummy install-info
; ac_word
=$2
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 printf %s
"checking for $ac_word... " >&6; }
6654 if test ${ac_cv_path_INSTALL_INFO+y}
6656 printf %s
"(cached) " >&6
6658 e
) case $INSTALL_INFO in
6660 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6664 as_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6665 for as_dir
in $as_dummy
6668 case $as_dir in #(((
6671 *) as_dir
=$as_dir/ ;;
6673 for ac_exec_ext
in '' $ac_executable_extensions; do
6674 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6675 ac_cv_path_INSTALL_INFO
="$as_dir$ac_word$ac_exec_ext"
6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6683 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
6688 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6689 if test -n "$INSTALL_INFO"; then
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6691 printf "%s\n" "$INSTALL_INFO" >&6; }
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 printf "%s\n" "no" >&6; }
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6700 printf %s
"checking for .set assembler directive... " >&6; }
6701 if test ${libc_cv_asm_set_directive+y}
6703 printf %s
"(cached) " >&6
6705 e
) cat > conftest.s
<<EOF
6708 .set glibc_conftest_frobozz,foo
6709 .globl glibc_conftest_frobozz
6711 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6712 # (but it doesn't work), so we must do a linking check to be sure.
6713 cat > conftest1.c
<<\EOF
6714 extern int glibc_conftest_frobozz
;
6715 void _start
() { glibc_conftest_frobozz
= 1; }
6717 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6718 -nostartfiles -nostdlib $no_ssp \
6719 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
6720 libc_cv_asm_set_directive
=yes
6722 libc_cv_asm_set_directive
=no
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6728 printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6729 if test $libc_cv_asm_set_directive = yes; then
6730 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6735 printf %s
"checking linker support for protected data symbol... " >&6; }
6736 if test ${libc_cv_protected_data+y}
6738 printf %s
"(cached) " >&6
6740 e
) cat > conftest.c
<<EOF
6741 int bar __attribute__ ((visibility ("protected"))) = 1;
6743 libc_cv_protected_data
=no
6744 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }; }; then
6750 cat > conftest.c
<<EOF
6752 int main (void) { return bar; }
6754 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; }; }; then
6760 libc_cv_protected_data
=yes
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6768 printf "%s\n" "$libc_cv_protected_data" >&6; }
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6772 printf %s
"checking linker support for INSERT in linker script... " >&6; }
6773 if test ${libc_cv_insert+y}
6775 printf %s
"(cached) " >&6
6777 e
) cat > conftest.c
<<EOF
6778 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6779 int test (void) { return bar; }
6781 cat > conftest.t
<<EOF
6786 INSERT AFTER .rela.dyn;
6789 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; }; then
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6802 printf "%s\n" "$libc_cv_insert" >&6; }
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6806 printf %s
"checking for broken __attribute__((alias()))... " >&6; }
6807 if test ${libc_cv_broken_alias_attribute+y}
6809 printf %s
"(cached) " >&6
6811 e
) cat > conftest.c
<<EOF
6812 extern int foo (int x) __asm ("xyzzy");
6813 int bar (int x) { return x; }
6814 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6816 extern __typeof (dfoo) dfoo __asm ("abccb");
6819 libc_cv_broken_alias_attribute
=yes
6820 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; }; then
6826 if grep 'xyzzy' conftest.s
>/dev
/null
&&
6827 grep 'abccb' conftest.s
>/dev
/null
; then
6828 libc_cv_broken_alias_attribute
=no
6831 rm -f conftest.c conftest.s
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6836 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
6837 if test $libc_cv_broken_alias_attribute = yes; then
6838 as_fn_error $?
"working alias attribute support required" "$LINENO" 5
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6842 printf %s
"checking whether to put _rtld_local into .sdata section... " >&6; }
6843 if test ${libc_cv_have_sdata_section+y}
6845 printf %s
"(cached) " >&6
6847 e
) echo "int i;" > conftest.c
6848 libc_cv_have_sdata_section
=no
6849 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
6850 |
grep '\.sdata' >/dev
/null
; then
6851 libc_cv_have_sdata_section
=yes
6853 rm -f conftest.c conftest.so
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6858 printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
6859 if test $libc_cv_have_sdata_section = yes; then
6860 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6865 printf %s
"checking for libunwind-support in compiler... " >&6; }
6866 if test ${libc_cv_cc_with_libunwind+y}
6868 printf %s
"(cached) " >&6
6871 cat > conftest.c
<<EOF
6872 int main (void) { return 0; }
6874 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6875 conftest.c
-v 2>&1 >/dev
/null |
grep ' -lunwind ' >/dev
/null
; then
6876 libc_cv_cc_with_libunwind
=yes
6878 libc_cv_cc_with_libunwind
=no
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6884 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
6886 if test $libc_cv_cc_with_libunwind = yes; then
6887 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6893 printf %s
"checking whether --noexecstack is desirable for .S files... " >&6; }
6894 if test ${libc_cv_as_noexecstack+y}
6896 printf %s
"(cached) " >&6
6898 e
) cat > conftest.c
<<EOF
6901 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
6902 -S -o conftest.s conftest.c 1>&5'
6903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }; } \
6908 && grep .note.GNU-stack conftest.s
>/dev
/null \
6909 && { ac_try
='${CC-cc} $ASFLAGS -Wa,--noexecstack
6910 -c -o conftest.o conftest.s 1>&5'
6911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; }
6917 libc_cv_as_noexecstack
=yes
6919 libc_cv_as_noexecstack
=no
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6925 printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
6926 if test $libc_cv_as_noexecstack = yes; then
6927 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6932 printf %s
"checking for linker that supports -z execstack... " >&6; }
6933 libc_linker_feature
=no
6934 cat > conftest.c
<<EOF
6935 int _start (void) { return 42; }
6937 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6938 -Wl,-z,execstack -nostdlib -nostartfiles
6939 -fPIC -shared -o conftest.so conftest.c
6941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; }
6947 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack
-nostdlib \
6948 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6949 |
grep "warning: -z execstack ignored" > /dev
/null
2>&1; then
6952 libc_linker_feature
=yes
6956 if test $libc_linker_feature = yes; then
6957 libc_cv_z_execstack
=yes
6959 libc_cv_z_execstack
=no
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6962 printf "%s\n" "$libc_linker_feature" >&6; }
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
6966 printf %s
"checking for linker that supports -z start-stop-gc... " >&6; }
6967 libc_linker_feature
=no
6968 cat > conftest.c
<<EOF
6969 int _start (void) { return 42; }
6971 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6972 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
6973 -fPIC -shared -o conftest.so conftest.c
6975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }; }
6981 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc
-nostdlib \
6982 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6983 |
grep "warning: -z start-stop-gc ignored" > /dev
/null
2>&1; then
6986 libc_linker_feature
=yes
6990 if test $libc_linker_feature = yes; then
6991 libc_cv_z_start_stop_gc
=yes
6993 libc_cv_z_start_stop_gc
=no
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6996 printf "%s\n" "$libc_linker_feature" >&6; }
6997 config_vars
="$config_vars
6998 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
7001 printf %s
"checking for linker that supports --depaudit... " >&6; }
7002 libc_linker_feature
=no
7003 cat > conftest.c
<<EOF
7004 int _start (void) { return 42; }
7006 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7007 -Wl,--depaudit,x -nostdlib -nostartfiles
7008 -fPIC -shared -o conftest.so conftest.c
7010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; }; }
7016 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x
-nostdlib \
7017 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7018 |
grep "warning: --depaudit ignored" > /dev
/null
2>&1; then
7021 libc_linker_feature
=yes
7025 if test $libc_linker_feature = yes; then
7026 libc_cv_depaudit
=yes
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7031 printf "%s\n" "$libc_linker_feature" >&6; }
7032 config_vars
="$config_vars
7033 have-depaudit = $libc_cv_depaudit"
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
7036 printf %s
"checking for linker that supports -z pack-relative-relocs... " >&6; }
7037 libc_linker_feature
=no
7038 cat > conftest.c
<<EOF
7039 int _start (void) { return 42; }
7041 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7042 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
7043 -fPIC -shared -o conftest.so conftest.c
7045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; }
7051 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs
-nostdlib \
7052 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7053 |
grep "warning: -z pack-relative-relocs ignored" > /dev
/null
2>&1; then
7056 libc_linker_feature
=yes
7060 if test $libc_linker_feature = yes; then
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7066 printf "%s\n" "$libc_linker_feature" >&6; }
7067 config_vars
="$config_vars
7068 have-dt-relr = $libc_cv_dt_relr"
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
7071 printf %s
"checking for linker that supports --no-dynamic-linker... " >&6; }
7072 libc_linker_feature
=no
7073 cat > conftest.c
<<EOF
7074 int _start (void) { return 42; }
7076 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7077 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
7078 -fPIC -shared -o conftest.so conftest.c
7080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; }
7086 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
7087 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7088 |
grep "warning: --no-dynamic-linker ignored" > /dev
/null
2>&1; then
7091 libc_linker_feature
=yes
7095 if test $libc_linker_feature = yes; then
7096 libc_cv_no_dynamic_linker
=yes
7098 libc_cv_no_dynamic_linker
=no
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7101 printf "%s\n" "$libc_linker_feature" >&6; }
7102 config_vars
="$config_vars
7103 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
7106 printf %s
"checking for -static-pie... " >&6; }
7107 if test ${libc_cv_static_pie+y}
7109 printf %s
"(cached) " >&6
7111 e
) if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116 test $ac_status = 0; }; }
7118 libc_cv_static_pie
=yes
7120 e
) libc_cv_static_pie
=no
;;
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7127 printf "%s\n" "$libc_cv_static_pie" >&6; }
7128 config_vars
="$config_vars
7129 have-static-pie = $libc_cv_static_pie"
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
7132 printf %s
"checking for -fpie... " >&6; }
7133 if test ${libc_cv_fpie+y}
7135 printf %s
"(cached) " >&6
7137 e
) if { ac_try
='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
7138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7142 test $ac_status = 0; }; }
7146 e
) libc_cv_fpie
=no
;;
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7153 printf "%s\n" "$libc_cv_fpie" >&6; }
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
7158 printf %s
"checking for GLOB_DAT reloc... " >&6; }
7159 if test ${libc_cv_has_glob_dat+y}
7161 printf %s
"(cached) " >&6
7163 e
) cat > conftest.c
<<EOF
7165 int foo (void) { return mumble; }
7167 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7168 -fPIC -shared -o conftest.so conftest.c
7169 -nostdlib -nostartfiles $no_ssp
7171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175 test $ac_status = 0; }; }
7177 if $READELF -rW conftest.so |
grep '_GLOB_DAT' > /dev
/null
; then
7178 libc_cv_has_glob_dat
=yes
7180 libc_cv_has_glob_dat
=no
7183 libc_cv_has_glob_dat
=no
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7189 printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support" >&5
7193 printf %s
"checking for tls descriptor support... " >&6; }
7194 if test ${libc_cv_mtls_descriptor+y}
7196 printf %s
"(cached) " >&6
7198 e
) cat > conftest.c
<<EOF
7205 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles
7206 -shared conftest.c -o conftest 1>&5'
7207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; }; }
7213 libc_cv_mtls_descriptor
=$mtls_descriptor
7215 libc_cv_mtls_descriptor
=no
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_descriptor" >&5
7221 printf "%s\n" "$libc_cv_mtls_descriptor" >&6; }
7223 config_vars
="$config_vars
7224 have-mtls-descriptor = $libc_cv_mtls_descriptor"
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7227 printf %s
"checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7228 if test ${libc_cv_wno_ignored_attributes+y}
7230 printf %s
"(cached) " >&6
7232 e
) cat > conftest.c
<<EOF
7236 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7237 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
7239 libc_cv_wno_ignored_attributes
=""
7240 if ! { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
7241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; }; }
7247 libc_cv_wno_ignored_attributes
="-Wno-ignored-attributes"
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7253 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7254 config_vars
="$config_vars
7255 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7258 printf %s
"checking whether cc puts quotes around section names... " >&6; }
7259 if test ${libc_cv_have_section_quotes+y}
7261 printf %s
"(cached) " >&6
7263 e
) cat > conftest.c
<<EOF
7264 static const int foo
7265 __attribute__ ((section ("bar"))) = 1;
7267 if ${CC-cc} -S conftest.c
-o conftest.s
; then
7268 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
7269 libc_cv_have_section_quotes
=yes
7271 libc_cv_have_section_quotes
=no
7274 libc_cv_have_section_quotes
=unknown
7276 rm -f conftest.
{c
,s
}
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7281 printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7282 if test $libc_cv_have_section_quotes = yes; then
7283 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7288 printf %s
"checking for __builtin_memset... " >&6; }
7289 if test ${libc_cv_gcc_builtin_memset+y}
7291 printf %s
"(cached) " >&6
7293 e
) cat > conftest.c
<<\EOF
7296 __builtin_memset
(x
, 0, 1000);
7299 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; };
7306 libc_cv_gcc_builtin_memset
=no
7308 libc_cv_gcc_builtin_memset
=yes
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7314 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7315 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7316 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7321 printf %s
"checking for redirection of built-in functions... " >&6; }
7322 if test ${libc_cv_gcc_builtin_redirection+y}
7324 printf %s
"(cached) " >&6
7326 e
) cat > conftest.c
<<\EOF
7327 extern char
*strstr
(const char
*, const char
*) __asm
("my_strstr");
7328 char
*foo
(const char
*a
, const char
*b
)
7330 return __builtin_strstr
(a
, b
);
7333 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; };
7340 libc_cv_gcc_builtin_redirection
=yes
7342 libc_cv_gcc_builtin_redirection
=no
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7348 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7349 if test "$libc_cv_gcc_builtin_redirection" = no
; then
7350 as_fn_error $?
"support for the symbol redirection needed" "$LINENO" 5
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7354 printf %s
"checking for compiler option to disable generation of FMA instructions... " >&6; }
7355 if test ${libc_cv_cc_nofma+y}
7357 printf %s
"(cached) " >&6
7359 e
) libc_cv_cc_nofma
=
7360 for opt
in -ffp-contract=off
-mno-fused-madd; do
7361 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366 test $ac_status = 0; }; }
7368 libc_cv_cc_nofma
=$opt; break
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7374 printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7377 if test -n "$submachine"; then
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7379 printf %s
"checking for compiler option for CPU variant... " >&6; }
7380 if test ${libc_cv_cc_submachine+y}
7382 printf %s
"(cached) " >&6
7384 e
) libc_cv_cc_submachine
=no
7385 for opt
in "-march=$submachine" "-mcpu=$submachine"; do
7386 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; }
7394 libc_cv_cc_submachine
="$opt"
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7401 printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7402 if test "x$libc_cv_cc_submachine" = xno
; then
7403 as_fn_error $?
"${CC-cc} does not support $submachine" "$LINENO" 5
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7409 printf %s
"checking for compiler option that -fsignaling-nans... " >&6; }
7410 if test ${libc_cv_cc_signaling_nans+y}
7412 printf %s
"(cached) " >&6
7414 e
) if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; }
7421 libc_cv_cc_signaling_nans
=-fsignaling-nans
7423 e
) libc_cv_cc_signaling_nans
= ;;
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7430 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7431 config_vars
="$config_vars
7432 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7435 __attribute__ ((__optimize__))" >&5
7436 printf %s
"checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7437 __attribute__ ((__optimize__))... " >&6; }
7438 if test ${libc_cv_cc_loop_to_function+y}
7440 printf %s
"(cached) " >&6
7442 e
) cat > conftest.c
<<EOF
7444 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
7447 libc_cv_cc_loop_to_function
=no
7448 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; }
7455 libc_cv_cc_loop_to_function
=yes
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7461 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7462 if test $libc_cv_cc_loop_to_function = yes; then
7463 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5
7469 printf %s
"checking for -Wimplicit-fallthrough... " >&6; }
7470 if test ${libc_cv_cc_wimplicit_fallthrough+y}
7472 printf %s
"(cached) " >&6
7474 e
) if { ac_try
='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null'
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_cc_wimplicit_fallthrough
=-Wimplicit-fallthrough
7483 e
) libc_cv_cc_wimplicit_fallthrough
= ;;
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5
7490 printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; }
7491 config_vars
="$config_vars
7492 cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough"
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7495 printf %s
"checking for libgd... " >&6; }
7496 if test "$with_gd" != "no"; then
7497 old_CFLAGS
="$CFLAGS"
7498 CFLAGS
="$CFLAGS $libgd_include"
7499 old_LDFLAGS
="$LDFLAGS"
7500 LDFLAGS
="$LDFLAGS $libgd_ldflags"
7502 LIBS
="$LIBS -lgd -lpng -lz -lm"
7503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7514 if ac_fn_c_try_link
"$LINENO"
7521 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7522 conftest
$ac_exeext conftest.
$ac_ext
7523 CFLAGS
="$old_CFLAGS"
7524 LDFLAGS
="$old_LDFLAGS"
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7530 printf "%s\n" "$LIBGD" >&6; }
7534 if test x
$with_selinux = xno
; then
7537 # See if we have the SELinux library
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7539 printf %s
"checking for is_selinux_enabled in -lselinux... " >&6; }
7540 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
7542 printf %s
"(cached) " >&6
7544 e
) ac_check_lib_save_LIBS
=$LIBS
7545 LIBS
="-lselinux $LIBS"
7546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply.
7552 The 'extern "C"' is for builds by C++ compilers;
7553 although this is not generally supported in C code supporting it here
7554 has little cost and some practical benefit (sr 110532). */
7558 char is_selinux_enabled (void);
7562 return is_selinux_enabled ();
7567 if ac_fn_c_try_link
"$LINENO"
7569 ac_cv_lib_selinux_is_selinux_enabled
=yes
7571 e
) ac_cv_lib_selinux_is_selinux_enabled
=no
;;
7574 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7575 conftest
$ac_exeext conftest.
$ac_ext
7576 LIBS
=$ac_check_lib_save_LIBS ;;
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7580 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7581 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
7585 e
) have_selinux
=no
;;
7589 if test x
$with_selinux = xyes
; then
7590 if test x
$have_selinux = xno
; then
7591 as_fn_error $?
"SELinux explicitly required, but SELinux library not found" "$LINENO" 5
7595 # Check if we're building with SELinux support.
7596 if test "x$have_selinux" = xyes
; then
7598 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
7601 # See if we have the libaudit library
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7603 printf %s
"checking for audit_log_user_avc_message in -laudit... " >&6; }
7604 if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
7606 printf %s
"(cached) " >&6
7608 e
) ac_check_lib_save_LIBS
=$LIBS
7609 LIBS
="-laudit $LIBS"
7610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply.
7616 The 'extern "C"' is for builds by C++ compilers;
7617 although this is not generally supported in C code supporting it here
7618 has little cost and some practical benefit (sr 110532). */
7622 char audit_log_user_avc_message (void);
7626 return audit_log_user_avc_message ();
7631 if ac_fn_c_try_link
"$LINENO"
7633 ac_cv_lib_audit_audit_log_user_avc_message
=yes
7635 e
) ac_cv_lib_audit_audit_log_user_avc_message
=no
;;
7638 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7639 conftest
$ac_exeext conftest.
$ac_ext
7640 LIBS
=$ac_check_lib_save_LIBS ;;
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7644 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7645 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
7649 e
) have_libaudit
=no
;;
7653 if test "x$have_libaudit" = xyes
; then
7655 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
7660 # See if we have the libcap library
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7662 printf %s
"checking for cap_init in -lcap... " >&6; }
7663 if test ${ac_cv_lib_cap_cap_init+y}
7665 printf %s
"(cached) " >&6
7667 e
) ac_check_lib_save_LIBS
=$LIBS
7669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7672 /* Override any GCC internal prototype to avoid an error.
7673 Use char because int might match the return type of a GCC
7674 builtin and then its argument prototype would still apply.
7675 The 'extern "C"' is for builds by C++ compilers;
7676 although this is not generally supported in C code supporting it here
7677 has little cost and some practical benefit (sr 110532). */
7681 char cap_init (void);
7690 if ac_fn_c_try_link
"$LINENO"
7692 ac_cv_lib_cap_cap_init
=yes
7694 e
) ac_cv_lib_cap_cap_init
=no
;;
7697 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7698 conftest
$ac_exeext conftest.
$ac_ext
7699 LIBS
=$ac_check_lib_save_LIBS ;;
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7703 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
7704 if test "x$ac_cv_lib_cap_cap_init" = xyes
7708 e
) have_libcap
=no
;;
7712 if test "x$have_libcap" = xyes
; then
7714 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
7721 no_fortify_source
="-Wp,-U_FORTIFY_SOURCE"
7722 fortify_source
="${no_fortify_source}"
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
7725 printf %s
"checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
7726 if test ${libc_cv_supported_fortify_source+y}
7728 printf %s
"(cached) " >&6
7731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7737 __builtin_dynamic_object_size("", 0)
7742 if ac_fn_c_try_link
"$LINENO"
7744 libc_cv_supported_fortify_source
=3
7746 e
) libc_cv_supported_fortify_source
=2 ;;
7749 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7750 conftest
$ac_exeext conftest.
$ac_ext
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
7755 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
7757 case $enable_fortify_source in #(
7759 libc_cv_fortify_source
=yes enable_fortify_source
=$libc_cv_supported_fortify_source ;; #(
7761 libc_cv_fortify_source
=yes ;; #(
7763 if test $libc_cv_supported_fortify_source = 3
7765 libc_cv_fortify_source
=yes
7767 e
) as_fn_error $?
"Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;;
7771 libc_cv_fortify_source
=no
;;
7774 if test "$libc_cv_fortify_source" = yes
7776 fortify_source
="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
7784 config_vars
="$config_vars
7785 supported-fortify = $libc_cv_supported_fortify_source"
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
7788 printf %s
"checking whether the assembler requires one version per symbol... " >&6; }
7789 if test ${libc_cv_symver_needs_alias+y}
7791 printf %s
"(cached) " >&6
7793 e
) cat > conftest.s
<<EOF
7797 .symver testfunc, testfunc1@VERSION1
7798 .symver testfunc, testfunc1@VERSION2
7800 libc_cv_symver_needs_alias
=no
7801 if ${CC-cc} $ASFLAGS -c conftest.s
2>&5; then
7802 libc_cv_symver_needs_alias
=no
7804 libc_cv_symver_needs_alias
=yes
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
7811 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
7812 if test "$libc_cv_symver_needs_alias" = yes; then
7813 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7818 printf %s
"checking for __builtin_trap with no external dependencies... " >&6; }
7819 if test ${libc_cv_builtin_trap+y}
7821 printf %s
"(cached) " >&6
7823 e
) libc_cv_builtin_trap
=no
7824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7835 if ac_fn_c_try_compile
"$LINENO"
7838 libc_undefs
=`$NM -u conftest.o |
7839 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7841 as_fn_error $?
"confusing output from $NM -u" "$LINENO" 5
7843 echo >&5 "libc_undefs='$libc_undefs'"
7844 if test -z "$libc_undefs"; then
7845 libc_cv_builtin_trap
=yes
7848 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;;
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7852 printf "%s\n" "$libc_cv_builtin_trap" >&6; }
7853 if test $libc_cv_builtin_trap = yes; then
7854 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7859 ac_cpp
='$CXXCPP $CPPFLAGS'
7860 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7866 printf %s
"checking whether the C++ compiler supports thread_local... " >&6; }
7867 if test ${libc_cv_cxx_thread_local+y}
7869 printf %s
"(cached) " >&6
7872 old_CXXFLAGS
="$CXXFLAGS"
7873 CXXFLAGS
="$CXXFLAGS -std=gnu++11"
7874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7879 // Compiler support.
7886 S * get () { return &s; }
7888 // libstdc++ support.
7889 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7890 #error __cxa_thread_atexit_impl not supported
7894 if ac_fn_cxx_try_compile
"$LINENO"
7896 libc_cv_cxx_thread_local
=yes
7898 e
) libc_cv_cxx_thread_local
=no
;;
7901 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7902 CXXFLAGS
="$old_CXXFLAGS"
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7907 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
7911 ac_cpp
='$CPP $CPPFLAGS'
7912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7917 ### End of automated tests.
7918 ### Now run sysdeps configure fragments.
7920 # They also can set these variables.
7922 ldd_rewrite_script
=no
7923 libc_cv_sysconfdir
=$sysconfdir
7924 libc_cv_localstatedir
=$localstatedir
7925 libc_cv_gcc_unwind_find_fde
=no
7929 # Iterate over all the sysdep directories we will use, running their
7930 # configure fragments.
7931 for dir
in $sysnames; do
7934 *) dest
=$srcdir/$dir ;;
7936 if test -r $dest/configure
; then
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7938 printf "%s\n" "running configure fragment for $dir" >&6; }
7943 if test x
"$build_mathvec" = xnotset
; then
7946 config_vars
="$config_vars
7947 build-mathvec = $build_mathvec"
7952 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
7953 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7958 # A sysdeps configure fragment can reset this if IFUNC is not actually
7959 # usable even though the assembler knows how to generate the symbol type.
7960 if test x
"$libc_cv_ld_gnu_indirect_function" = xyes
; then
7961 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
7964 config_vars
="$config_vars
7965 have-ifunc = $libc_cv_ld_gnu_indirect_function"
7967 if test x
"$libc_cv_gcc_indirect_function" = xyes
; then
7968 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
7971 config_vars
="$config_vars
7972 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
7974 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7975 # configure fragment can override the value to prevent this AC_DEFINE.
7977 if test "x$use_nscd" != xno
; then
7978 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
7981 if test "x$build_nscd" = xdefault
; then
7982 build_nscd
=$use_nscd
7992 if test x
$use_ldconfig = xyes
; then
7993 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
8003 printf %s
"checking whether -fPIC is default... " >&6; }
8004 if test ${libc_cv_pic_default+y}
8006 printf %s
"(cached) " >&6
8008 e
) libc_cv_pic_default
=yes
8009 cat > conftest.c
<<EOF
8010 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8011 # error PIC is default.
8014 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8015 libc_cv_pic_default
=no
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
8021 printf "%s\n" "$libc_cv_pic_default" >&6; }
8022 config_vars
="$config_vars
8023 build-pic-default = $libc_cv_pic_default"
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
8026 printf %s
"checking whether -fPIE is default... " >&6; }
8027 if test ${libc_cv_cc_pie_default+y}
8029 printf %s
"(cached) " >&6
8031 e
) libc_cv_cc_pie_default
=yes
8032 cat > conftest.c
<<EOF
8033 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
8034 # error PIE is default.
8037 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8038 libc_cv_cc_pie_default
=no
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
8044 printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
8045 config_vars
="$config_vars
8046 cc-pie-default = $libc_cv_cc_pie_default"
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
8049 printf %s
"checking if we can build programs as PIE... " >&6; }
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #ifdef PIE_UNSUPPORTED
8053 # error PIE is not supported
8056 if ac_fn_c_try_compile
"$LINENO"
8058 libc_cv_pie_supported
=yes
8060 e
) libc_cv_pie_supported
=no
;;
8063 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
8065 printf "%s\n" "$libc_cv_pie_supported" >&6; }
8066 # Disable build-pie-default if target does not support it or glibc is
8067 # configured with --disable-default-pie.
8068 if test "x$default_pie" = xno
; then
8069 build_pie_default
=no
8071 build_pie_default
=$libc_cv_pie_supported
8073 config_vars
="$config_vars
8074 build-pie-default = $build_pie_default"
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
8077 printf %s
"checking if we can build static PIE programs... " >&6; }
8078 libc_cv_static_pie_supported
=$libc_cv_pie_supported
8079 if test "x$libc_cv_pie_supported" != xno \
8080 -a "$libc_cv_no_dynamic_linker" = yes; then
8081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #ifndef SUPPORT_STATIC_PIE
8084 # error static PIE is not supported
8087 if ac_fn_c_try_compile
"$LINENO"
8089 libc_cv_static_pie_supported
=yes
8091 e
) libc_cv_static_pie_supported
=no
;;
8094 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
8097 printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
8099 # Enable static-pie only if it is available and glibc isn't configured
8100 # with --disable-default-pie.
8101 if test "x$default_pie" = xno
; then
8102 libc_cv_static_pie
=no
8104 libc_cv_static_pie
=$libc_cv_static_pie_supported
8106 if test "$libc_cv_static_pie" = "yes"; then
8107 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
8110 config_vars
="$config_vars
8111 enable-static-pie = $libc_cv_static_pie"
8113 # Set the `multidir' variable by grabbing the variable from the compiler.
8114 # We do it once and save the result in a generated makefile.
8115 libc_cv_multidir
=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
8125 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8126 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8130 if test "$pthread_in_libc" = yes; then
8131 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
8136 ac_config_files
="$ac_config_files config.make Makefile"
8138 ac_config_commands
="$ac_config_commands default"
8140 cat >confcache
<<\_ACEOF
8141 # This file is a shell script that caches the results of configure
8142 # tests run on this system so they can be shared between configure
8143 # scripts and configure runs, see configure's option --config-cache.
8144 # It is not useful on other systems. If it contains results you don't
8145 # want to keep, you may remove or edit it.
8147 # config.status only pays attention to the cache file if you give it
8148 # the --recheck option to rerun configure.
8150 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
8151 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
8156 # The following way of writing the cache mishandles newlines in values,
8157 # but we know of no workaround that is simple, portable, and efficient.
8158 # So, we kill variables containing newlines.
8159 # Ultrix sh set writes to stderr and can't be redirected directly,
8160 # and sets the high bit in the cache file unless we assign to the vars.
8162 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8163 eval ac_val
=\$
$ac_var
8167 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8168 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8171 _ | IFS | as_nl
) ;; #(
8172 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8173 *) { eval $ac_var=; unset $ac_var;} ;;
8179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8180 *${as_nl}ac_space
=\
*)
8181 # 'set' does not quote correctly, so add quotes: double-quote
8182 # substitution turns \\\\ into \\, and sed turns \\ into \.
8185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8188 # 'set' quotes correctly as required by POSIX, so do not add quotes.
8189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8198 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8202 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8203 if test -w "$cache_file"; then
8204 if test "x$cache_file" != "x/dev/null"; then
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8206 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8207 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8208 cat confcache
>"$cache_file"
8210 case $cache_file in #(
8212 mv -f confcache
"$cache_file"$$
&&
8213 mv -f "$cache_file"$$
"$cache_file" ;; #(
8215 mv -f confcache
"$cache_file" ;;
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8221 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8226 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8227 # Let make expand exec_prefix.
8228 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8230 DEFS
=-DHAVE_CONFIG_H
8235 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8236 # 1. Remove the extension, and $U if already installed.
8237 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8238 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8240 # will be set to the directory where LIBOBJS objects are built.
8241 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8242 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8246 LTLIBOBJS
=$ac_ltlibobjs
8250 : "${CONFIG_STATUS=./config.status}"
8252 ac_clean_files_save
=$ac_clean_files
8253 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8255 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8257 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8259 # Generated by $as_me.
8260 # Run this file to recreate the current configuration.
8261 # Compiler output produced by configure, useful for debugging
8262 # configure, is in config.log if it exists.
8268 SHELL=\${CONFIG_SHELL-$SHELL}
8271 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8272 ## -------------------- ##
8273 ## M4sh Initialization. ##
8274 ## -------------------- ##
8276 # Be more Bourne compatible
8277 DUALCASE
=1; export DUALCASE
# for MKS sh
8278 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
8282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8283 # is contrary to our usage. Disable this feature.
8284 alias -g '${1+"$@"}'='"$@"'
8285 setopt NO_GLOB_SUBST
8287 e
) case `(set -o) 2>/dev/null` in #(
8298 # Reset variables that may have inherited troublesome values from
8301 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8302 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8303 # side effect of setting IFS to empty, thus disabling word splitting.)
8304 # Quoting is to prevent editors from complaining about space-tab.
8314 # Ensure predictable behavior from utilities with locale-dependent output.
8320 # We cannot yet rely on "unset" to work, but we need these variables
8321 # to be unset--not just set to an empty or harmless value--now, to
8322 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8323 # also avoids known problems related to "unset" and subshell syntax
8324 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8325 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
8326 do eval test \
${$as_var+y} \
8327 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8330 # Ensure that fds 0, 1, and 2 are open.
8331 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
8332 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
8333 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
8335 # The user is always right.
8336 if ${PATH_SEPARATOR+false} :; then
8338 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
8339 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
8345 # Find who we are. Look in the path if we contain no directory separator.
8348 *[\\/]* ) as_myself
=$0 ;;
8349 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8353 case $as_dir in #(((
8356 *) as_dir
=$as_dir/ ;;
8358 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
8364 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8365 # in which case we are not to be found in the path.
8366 if test "x$as_myself" = x
; then
8369 if test ! -f "$as_myself"; then
8370 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8377 # ----------------------------------------
8378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8380 # script with STATUS, using 1 if that was 0.
8383 as_status
=$1; test $as_status -eq 0 && as_status
=1
8385 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8388 printf "%s\n" "$as_me: error: $2" >&2
8389 as_fn_exit
$as_status
8393 # as_fn_set_status STATUS
8394 # -----------------------
8395 # Set $? to STATUS, without forking.
8399 } # as_fn_set_status
8403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8413 # Portably unset VAR.
8416 { eval $1=; unset $1;}
8418 as_unset
=as_fn_unset
8420 # as_fn_append VAR VALUE
8421 # ----------------------
8422 # Append the text in VALUE to the end of the definition contained in VAR. Take
8423 # advantage of any shell optimizations that allow amortized linear growth over
8424 # repeated appends, instead of the typical quadratic growth present in naive
8426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
8428 eval 'as_fn_append ()
8440 # as_fn_arith ARG...
8441 # ------------------
8442 # Perform arithmetic evaluation on the ARGs, and store the result in the
8443 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8444 # must be portable across $(()) and expr.
8445 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
8447 eval 'as_fn_arith ()
8454 as_val
=`expr "$@" || test $? -eq 1`
8460 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8461 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8467 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8468 as_basename
=basename
8473 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8479 as_me
=`$as_basename -- "$0" ||
8480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8481 X"$0" : 'X\(//\)$' \| \
8482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8483 printf "%s\n" X/"$0" |
8484 sed '/^.*\/\([^/][^/]*\)\/*$/{
8498 # Avoid depending upon Character Ranges.
8499 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8500 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8501 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8502 as_cr_digits
='0123456789'
8503 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8506 # Determine whether it's possible to make 'echo' print without a newline.
8507 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8508 # for compatibility with existing Makefiles.
8509 ECHO_C
= ECHO_N
= ECHO_T
=
8510 case `echo -n x` in #(((((
8512 case `echo 'xy\c'` in
8513 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8515 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8522 # For backward compatibility with old third-party macros, we provide
8523 # the shell variables $as_echo and $as_echo_n. New code should use
8524 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8525 as_echo
='printf %s\n'
8526 as_echo_n
='printf %s'
8528 rm -f conf$$ conf$$.exe conf$$.
file
8529 if test -d conf$$.dir
; then
8530 rm -f conf$$.dir
/conf$$.
file
8533 mkdir conf$$.dir
2>/dev
/null
8535 if (echo >conf$$.
file) 2>/dev
/null
; then
8536 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8538 # ... but there are two gotchas:
8539 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8540 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8541 # In both cases, we have to default to 'cp -pR'.
8542 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8544 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8552 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8553 rmdir conf$$.dir
2>/dev
/null
8558 # Create "$as_dir" as a directory, including parents if necessary.
8563 -*) as_dir
=.
/$as_dir;;
8565 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8569 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8570 *) as_qdir
=$as_dir;;
8572 as_dirs
="'$as_qdir' $as_dirs"
8573 as_dir
=`$as_dirname -- "$as_dir" ||
8574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8575 X"$as_dir" : 'X\(//\)[^/]' \| \
8576 X"$as_dir" : 'X\(//\)$' \| \
8577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8578 printf "%s\n" X"$as_dir" |
8579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8596 test -d "$as_dir" && break
8598 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8599 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8603 if mkdir
-p .
2>/dev
/null
; then
8604 as_mkdir_p
='mkdir -p "$as_dir"'
8606 test -d .
/-p && rmdir .
/-p
8611 # as_fn_executable_p FILE
8612 # -----------------------
8613 # Test if FILE is an executable regular file.
8614 as_fn_executable_p
()
8616 test -f "$1" && test -x "$1"
8617 } # as_fn_executable_p
8619 as_executable_p
=as_fn_executable_p
8621 # Sed expression to map a string onto a valid CPP name.
8622 as_sed_cpp
="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8623 as_tr_cpp
="eval sed '$as_sed_cpp'" # deprecated
8625 # Sed expression to map a string onto a valid variable name.
8626 as_sed_sh
="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8627 as_tr_sh
="eval sed '$as_sed_sh'" # deprecated
8631 ## ----------------------------------- ##
8632 ## Main body of $CONFIG_STATUS script. ##
8633 ## ----------------------------------- ##
8635 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8638 # Save the log message, to keep $0 and so on meaningful, and to
8639 # report actual input values of CONFIG_FILES etc. instead of their
8640 # values after options handling.
8642 This file was extended by GNU C Library $as_me (see version.h), which was
8643 generated by GNU Autoconf 2.72. Invocation command line was
8645 CONFIG_FILES = $CONFIG_FILES
8646 CONFIG_HEADERS = $CONFIG_HEADERS
8647 CONFIG_LINKS = $CONFIG_LINKS
8648 CONFIG_COMMANDS = $CONFIG_COMMANDS
8651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8656 case $ac_config_files in *"
8657 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8660 case $ac_config_headers in *"
8661 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8666 # Files that config.status was made for.
8667 config_files="$ac_config_files"
8668 config_headers="$ac_config_headers"
8669 config_commands="$ac_config_commands"
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8675 '$as_me' instantiates files and other configuration actions
8676 from templates according to the current configuration. Unless the files
8677 and actions are specified as TAGs, all are instantiated by default.
8679 Usage: $0 [OPTION]... [TAG]...
8681 -h, --help print this help, then exit
8682 -V, --version print version number and configuration settings, then exit
8683 --config print configuration, then exit
8684 -q, --quiet, --silent
8685 do not print progress messages
8686 -d, --debug don't remove temporary files
8687 --recheck update $as_me by reconfiguring in the same conditions
8688 --file=FILE[:TEMPLATE]
8689 instantiate the configuration file FILE
8690 --header=FILE[:TEMPLATE]
8691 instantiate the configuration header FILE
8693 Configuration files:
8696 Configuration headers:
8699 Configuration commands:
8702 Report bugs to <https://sourceware.org/bugzilla/>.
8703 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
8704 General help using GNU software: <https://www.gnu.org/gethelp/>."
8707 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8708 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8710 ac_cs_config='$ac_cs_config_escaped'
8712 GNU C Library config.status (see version.h)
8713 configured by $0, generated by GNU Autoconf 2.72,
8714 with options \\"\$ac_cs_config\\"
8716 Copyright (C) 2023 Free Software Foundation, Inc.
8717 This config.status script is free software; the Free Software Foundation
8718 gives unlimited permission to copy, distribute and modify it."
8723 test -n "\$AWK" || AWK=awk
8726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8727 # The default lists apply if the user does not specify any file.
8733 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8734 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8738 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8750 # Handling of the options.
8751 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8753 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8754 printf "%s\n" "$ac_cs_version"; exit ;;
8755 --config |
--confi |
--conf |
--con |
--co |
--c )
8756 printf "%s\n" "$ac_cs_config"; exit ;;
8757 --debug |
--debu |
--deb |
--de |
--d |
-d )
8759 --file |
--fil |
--fi |
--f )
8762 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8763 '') as_fn_error $?
"missing file argument" ;;
8765 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8766 ac_need_defaults
=false
;;
8767 --header |
--heade |
--head |
--hea )
8770 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8772 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8773 ac_need_defaults
=false
;;
8775 # Conflict between --help and --header
8776 as_fn_error $?
"ambiguous option: '$1'
8777 Try '$0 --help' for more information.";;
8778 --help |
--hel |
-h )
8779 printf "%s\n" "$ac_cs_usage"; exit ;;
8780 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8781 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8785 -*) as_fn_error $?
"unrecognized option: '$1'
8786 Try '$0 --help' for more information." ;;
8788 *) as_fn_append ac_config_targets
" $1"
8789 ac_need_defaults
=false
;;
8795 ac_configure_extra_args
=
8797 if $ac_cs_silent; then
8799 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8804 if \$ac_cs_recheck; then
8805 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8807 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8808 CONFIG_SHELL='$SHELL'
8814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8819 ## Running $as_me. ##
8821 printf "%s\n" "$ac_log"
8825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8829 config_vars='$config_vars'
8833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8835 # Handling of arguments.
8836 for ac_config_target
in $ac_config_targets
8838 case $ac_config_target in
8839 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8840 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
8841 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8842 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8844 *) as_fn_error $?
"invalid argument: '$ac_config_target'" "$LINENO" 5;;
8849 # If the user did not use the arguments to specify the items to instantiate,
8850 # then the envvar interface is used. Set only those that are not.
8851 # We use the long form for the default assignment because of an extremely
8852 # bizarre bug on SunOS 4.1.3.
8853 if $ac_need_defaults; then
8854 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
8855 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
8856 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
8859 # Have a temporary directory for convenience. Make it in the build tree
8860 # simply because there is no reason against having it here, and in addition,
8861 # creating and moving files from /tmp can sometimes cause problems.
8862 # Hook for its removal unless debugging.
8863 # Note that there is a small window in which the directory will not be cleaned:
8864 # after its creation but before its name has been assigned to '$tmp'.
8868 trap 'exit_status=$?
8870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8872 trap 'as_fn_exit 1' 1 2 13 15
8874 # Create a (secure) tmp directory for tmp files.
8877 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8881 tmp
=.
/conf$$
-$RANDOM
8882 (umask 077 && mkdir
"$tmp")
8883 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8886 # Set up the scripts for CONFIG_FILES section.
8887 # No need to generate them if there are no CONFIG_FILES.
8888 # This happens for instance with './config.status config.h'.
8889 if test -n "$CONFIG_FILES"; then
8892 ac_cr
=`echo X | tr X '\015'`
8893 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8894 # But we know of no other shell where ac_cr would be empty at this
8895 # point, so we can use a bashism as a fallback.
8896 if test "x$ac_cr" = x
; then
8897 eval ac_cr
=\$
\'\\r
\'
8899 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8900 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8906 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8911 echo "cat >conf$$subs.awk <<_ACEOF" &&
8912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8915 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8916 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8918 for ac_last_try in false false false false false :; do
8919 . ./conf$$subs.sh ||
8920 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8922 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8923 if test $ac_delim_n = $ac_delim_num; then
8925 elif $ac_last_try; then
8926 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8928 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8934 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8938 s/^/S["/; s
/!.
*/"]=/
8948 s/\(.\{148\}\)..*/\1/
8950 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8955 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8962 s/\(.\{148\}\)..*/\1/
8964 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8968 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8973 ' <conf$$subs.awk | sed '
8978 ' >>$CONFIG_STATUS || ac_write_fail=1
8979 rm -f conf$$subs.awk
8980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8982 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8983 for (key in S) S_is_set[key] = 1
8989 nfields = split(line, field, "@
")
8991 len = length(field[1])
8992 for (i = 2; i < nfields; i++) {
8994 keylen = length(key)
8995 if (S_is_set[key]) {
8997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8998 len += length(value) + length(field[++i])
9009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9010 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9011 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9014 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9015 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9020 # trailing colons and then remove the whole line if VPATH becomes empty
9021 # (actually we leave an empty line to preserve line numbers).
9022 if test "x
$srcdir" = x.; then
9023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9042 fi # test -n "$CONFIG_FILES"
9044 # Set up the scripts for CONFIG_HEADERS section.
9045 # No need to generate them if there are no CONFIG_HEADERS.
9046 # This happens for instance with './config.status Makefile'.
9047 if test -n "$CONFIG_HEADERS"; then
9048 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9052 # Transform confdefs.h into an awk script 'defines.awk', embedded as
9053 # here-document in config.status, that substitutes the proper values into
9054 # config.h.in to produce config.h.
9056 # Create a delimiter string that does not exist in confdefs.h, to ease
9057 # handling of long lines.
9059 for ac_last_try in false false :; do
9060 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9061 if test -z "$ac_tt"; then
9063 elif $ac_last_try; then
9064 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9066 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9070 # For the awk script, D is an array of macro values keyed by name,
9071 # likewise P contains macro parameters if any. Preserve backslash
9072 # newline sequences.
9074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9076 s/.\{148\}/&'"$ac_delim"'/g
9079 s/^[ ]*#[ ]*define[ ][ ]*/ /
9086 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9088 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9093 D["\
1"]=" \
3\\\\\\n
"\\/p
9095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9100 s/.\{148\}/&'"$ac_delim"'/g
9105 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9108 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9110 ' <confdefs.h | sed '
9111 s/'"$ac_delim"'/"\\\
9112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9115 for (key in D) D_is_set[key] = 1
9118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9120 split(line, arg, " ")
9121 if (arg[1] == "#") {
9125 defundef
= substr
(arg
[1], 2)
9128 split(mac1
, mac2
, "(") #)
9130 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9131 if (D_is_set
[macro
]) {
9132 # Preserve the white space surrounding the "#".
9133 print prefix
"define", macro P
[macro
] D
[macro
]
9136 # Replace #undef with comments. This is necessary, for example,
9137 # in the case of _POSIX_SOURCE, which is predefined and required
9138 # on some systems where configure will not decide to define it.
9139 if (defundef
== "undef") {
9140 print
"/*", prefix defundef
, macro
, "*/"
9148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9149 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9150 fi # test -n "$CONFIG_HEADERS"
9153 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9158 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9160 case $ac_mode$ac_tag in
9162 :L
* |
:C
*:*) as_fn_error $?
"invalid tag '$ac_tag'" "$LINENO" 5;;
9163 :[FH
]-) ac_tag
=-:-;;
9164 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9181 -) ac_f
="$ac_tmp/stdin";;
9182 *) # Look for the file first in the build tree, then in the source tree
9183 # (if the path is not absolute). The absolute path cannot be DOS-style,
9184 # because $ac_f cannot contain ':'.
9188 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9190 as_fn_error
1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
9192 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9193 as_fn_append ac_file_inputs
" '$ac_f'"
9196 # Let's still pretend it is 'configure' which instantiates (i.e., don't
9197 # use $as_me), people would be surprised to read:
9198 # /* config.h. Generated by config.status. */
9199 configure_input
='Generated from '`
9200 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9202 if test x
"$ac_file" != x-
; then
9203 configure_input
="$ac_file. $configure_input"
9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9205 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9207 # Neutralize special characters interpreted by sed in replacement strings.
9208 case $configure_input in #(
9209 *\
&* |
*\|
* |
*\\* )
9210 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
9211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9212 *) ac_sed_conf_input
=$configure_input;;
9216 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9217 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9222 ac_dir
=`$as_dirname -- "$ac_file" ||
9223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9224 X"$ac_file" : 'X\(//\)[^/]' \| \
9225 X"$ac_file" : 'X\(//\)$' \| \
9226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9227 printf "%s\n" X"$ac_file" |
9228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9245 as_dir
="$ac_dir"; as_fn_mkdir_p
9249 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9251 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9252 # A ".." for each directory in $ac_dir_suffix.
9253 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9254 case $ac_top_builddir_sub in
9255 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9256 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9259 ac_abs_top_builddir
=$ac_pwd
9260 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9261 # for backward compatibility:
9262 ac_top_builddir
=$ac_top_build_prefix
9265 .
) # We are building in place.
9267 ac_top_srcdir
=$ac_top_builddir_sub
9268 ac_abs_top_srcdir
=$ac_pwd ;;
9269 [\\/]* | ?
:[\\/]* ) # Absolute name.
9270 ac_srcdir
=$srcdir$ac_dir_suffix;
9271 ac_top_srcdir
=$srcdir
9272 ac_abs_top_srcdir
=$srcdir ;;
9274 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9275 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9276 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9278 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9288 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9289 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9294 # If the template does not know about datarootdir, expand it.
9295 # FIXME: This hack should be removed a few years after 2.60.
9296 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9307 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9308 *datarootdir
*) ac_datarootdir_seen
=yes;;
9309 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9311 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9314 ac_datarootdir_hack='
9315 s&@datadir@&$datadir&g
9316 s&@docdir@&$docdir&g
9317 s&@infodir@&$infodir&g
9318 s&@localedir@&$localedir&g
9319 s&@mandir@&$mandir&g
9320 s&\\\${datarootdir}&$datarootdir&g' ;;
9324 # Neutralize VPATH when '$srcdir' = '.'.
9325 # Shell code in configure.ac might set extrasub.
9326 # FIXME: do we really want to maintain this feature?
9327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9328 ac_sed_extra="$ac_vpsub
9331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9333 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9334 s|@configure_input@|
$ac_sed_conf_input|
;t t
9335 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9336 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9337 s
&@srcdir@
&$ac_srcdir&;t t
9338 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9339 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9340 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9341 s
&@builddir@
&$ac_builddir&;t t
9342 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9343 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9344 s
&@INSTALL@
&$ac_INSTALL&;t t
9345 $ac_datarootdir_hack
9347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9348 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9350 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9353 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9354 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable
'datarootdir'
9355 which seems to be undefined. Please
make sure it is defined
" >&5
9356 printf "%s
\n" "$as_me: WARNING
: $ac_file contains a reference to the variable
'datarootdir'
9357 which seems to be undefined. Please
make sure it is defined
" >&2;}
9359 rm -f "$ac_tmp/stdin
"
9361 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
9362 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
9364 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9370 if test x"$ac_file" != x-; then
9372 printf "%s
\n" "/* $configure_input */" >&1 \
9373 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
9374 } >"$ac_tmp/config.h
" \
9375 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9376 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
9377 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
9378 printf "%s
\n" "$as_me: $ac_file is unchanged
" >&6;}
9381 mv "$ac_tmp/config.h
" "$ac_file" \
9382 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9385 printf "%s
\n" "/* $configure_input */" >&1 \
9386 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
9387 || as_fn_error $? "could not create
-" "$LINENO" 5
9391 :C) { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
9392 printf "%s
\n" "$as_me: executing
$ac_file commands
" >&6;}
9397 case $ac_file$ac_mode in
9399 case $CONFIG_FILES in *config.make*)
9400 echo "$config_vars" >> config.make;;
9402 test -d bits || mkdir bits ;;
9410 ac_clean_files=$ac_clean_files_save
9412 test $ac_write_fail = 0 ||
9413 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
9416 # configure is writing to config.log, and then calls config.status.
9417 # config.status does its own redirection, appending to config.log.
9418 # Unfortunately, on DOS this fails, as config.log is still kept open
9419 # by configure, so config.status won't be able to write to it; its
9420 # output is simply discarded. So we exec the FD to /dev/null,
9421 # effectively closing config.log, so it can be properly (re)opened and
9422 # appended to by config.status. When coming back to configure, we
9423 # need to make the FD available again.
9424 if test "$no_create" != yes; then
9426 ac_config_status_args=
9427 test "$silent" = yes &&
9428 ac_config_status_args="$ac_config_status_args --quiet"
9430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9433 # would make configure fail if this is the last instruction.
9434 $ac_cs_success || as_fn_exit 1
9438 # CONFIG_SUBDIRS section.
9440 if test "$no_recursion" != yes; then
9442 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9443 # so they do not pile up.
9444 ac_sub_configure_args=
9446 eval "set x
$ac_configure_args"
9450 if test -n "$ac_prev"; then
9455 -cache-file | --cache-file | --cache-fil | --cache-fi \
9456 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9457 ac_prev=cache_file ;;
9458 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9459 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9462 --config-cache | -C)
9464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9472 --disable-option-checking)
9476 *\'*) ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
9478 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9482 # Always prepend --prefix to ensure using the same prefix
9483 # in subdir configurations.
9484 ac_arg="--prefix=$prefix"
9486 *\'*) ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
9488 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9491 if test "$silent" = yes; then
9492 ac_sub_configure_args="--silent $ac_sub_configure_args"
9495 # Always prepend --disable-option-checking to silence warnings, since
9496 # different subdirs can have different --enable and --with options.
9497 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9500 for ac_dir in : $subdirs; do test "x
$ac_dir" = x: && continue
9502 # Do not complain, so a configure script can configure whichever
9503 # parts of a large source tree are present.
9504 test -d "$srcdir/$ac_dir" || continue
9506 ac_msg="=== configuring
in $ac_dir (`pwd`/$ac_dir)"
9507 printf "%s
\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9508 printf "%s
\n" "$ac_msg" >&6
9509 as_dir="$ac_dir"; as_fn_mkdir_p
9513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9515 ac_dir_suffix=/`printf "%s
\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9516 # A "..
" for each directory in $ac_dir_suffix.
9517 ac_top_builddir_sub=`printf "%s
\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9518 case $ac_top_builddir_sub in
9519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9523 ac_abs_top_builddir=$ac_pwd
9524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9525 # for backward compatibility:
9526 ac_top_builddir=$ac_top_build_prefix
9529 .) # We are building in place.
9531 ac_top_srcdir=$ac_top_builddir_sub
9532 ac_abs_top_srcdir=$ac_pwd ;;
9533 [\\/]* | ?:[\\/]* ) # Absolute name.
9534 ac_srcdir=$srcdir$ac_dir_suffix;
9535 ac_top_srcdir=$srcdir
9536 ac_abs_top_srcdir=$srcdir ;;
9538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9539 ac_top_srcdir=$ac_top_build_prefix$srcdir
9540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9547 # Check for configure.gnu first; this name is used for a wrapper for
9548 # Metaconfig's "Configure
" on case-insensitive file systems.
9549 if test -f "$ac_srcdir/configure.gnu
"; then
9550 ac_sub_configure=$ac_srcdir/configure.gnu
9551 elif test -f "$ac_srcdir/configure
"; then
9552 ac_sub_configure=$ac_srcdir/configure
9554 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: no configuration information is
in $ac_dir" >&5
9555 printf "%s
\n" "$as_me: WARNING
: no configuration information is
in $ac_dir" >&2;}
9559 # The recursion is here.
9560 if test -n "$ac_sub_configure"; then
9561 # Make the cache file name correct relative to the subdirectory.
9563 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9565 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9568 { 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
9569 printf "%s
\n" "$as_me: running
$SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9570 # The eval makes quoting arguments work.
9571 eval "\
$SHELL \"\
$ac_sub_configure\" $ac_sub_configure_args \
9572 --cache-file=\"\
$ac_sub_cache_file\" --srcdir=\"\
$ac_srcdir\"" ||
9573 as_fn_error $? "$ac_sub_configure failed
for $ac_dir" "$LINENO" 5
9579 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9580 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
9581 printf "%s
\n" "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}