LoongArch: ldconfig: Add comments for using EF_LARCH_OBJABI_V1
[glibc.git] / configure
blobc5a831e3cd6f45a9277c306c568c26b1e758b081
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
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
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://sourceware.org/bugzilla/ about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
274 exit 1
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
292 { eval $1=; unset $1;}
294 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
345 /^X\(\/\/\)$/{
346 s//\1/
349 /^X\(\/\).*/{
350 s//\1/
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 } # as_fn_mkdir_p
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
378 eval $1+=\$2
380 else
381 as_fn_append ()
383 eval $1=\$$1\$2
385 fi # as_fn_append
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
395 as_val=$(( $* ))
397 else
398 as_fn_arith ()
400 as_val=`expr "$@" || test $? -eq 1`
402 fi # as_fn_arith
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
449 /^X\/\(\/\/\)$/{
450 s//\1/
453 /^X\/\(\/\).*/{
454 s//\1/
457 s/.*/./; q'`
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
480 :lineno
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
512 ECHO_N='-n';;
513 esac
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
536 else
537 as_ln_s='cp -pR'
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 # Initializations.
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
579 # Identity of this package.
580 PACKAGE_NAME='GNU C Library'
581 PACKAGE_TARNAME='glibc'
582 PACKAGE_VERSION='(see version.h)'
583 PACKAGE_STRING='GNU C Library (see version.h)'
584 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
585 PACKAGE_URL='https://www.gnu.org/software/glibc/'
587 ac_unique_file="include/features.h"
588 enable_option_checking=no
589 ac_subst_vars='LTLIBOBJS
590 LIBOBJS
591 pthread_in_libc
592 RELEASE
593 VERSION
594 mach_interface_list
595 DEFINES
596 static_nss
597 profile
598 libc_cv_multidir
599 shared
600 static
601 ldd_rewrite_script
602 use_ldconfig
603 libc_cv_rootsbindir
604 libc_cv_localstatedir
605 libc_cv_sysconfdir
606 libc_cv_complocaledir
607 libc_cv_rtlddir
608 libc_cv_slibdir
609 use_nscd
610 libc_cv_gcc_unwind_find_fde
611 libc_extra_cppflags
612 libc_extra_cflags
613 libc_cv_cxx_thread_local
614 CPPUNDEFS
615 have_selinux
616 have_libcap
617 have_libaudit
618 LIBGD
619 libc_cv_cc_loop_to_function
620 libc_cv_cc_submachine
621 libc_cv_cc_nofma
622 libc_cv_mtls_dialect_gnu2
623 libc_cv_has_glob_dat
624 libc_cv_fpie
625 libc_cv_z_execstack
626 ASFLAGS_config
627 libc_cv_cc_with_libunwind
628 libc_cv_insert
629 libc_cv_protected_data
630 INSTALL_INFO
631 PERL
632 BASH_SHELL
633 CXX_BITS_STD_ABS_H
634 CXX_CMATH_HEADER
635 CXX_CSTDLIB_HEADER
636 CXX_SYSINCLUDES
637 SYSINCLUDES
638 sysnames
639 submachine
640 multi_arch
641 libc_cv_textrel_ifunc
642 no_stack_protector
643 stack_protector
644 libc_cv_ssp
645 libc_cv_with_fp
646 PYTHON
647 PYTHON_PROG
648 AUTOCONF
649 BISON
652 MAKEINFO
653 MSGFMT
654 MAKE
657 OBJDUMP
658 READELF
659 GPROF
660 OBJCOPY
662 LN_S
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 base_machine
667 have_tunables
668 build_pt_chown
669 build_nscd
670 libc_cv_static_nss_crypt
671 libc_cv_nss_crypt
672 build_crypt
673 memory_tagging
674 experimental_malloc
675 enable_werror
676 all_warnings
677 force_install
678 bindnow
679 hardcoded_path_in_tests
680 enable_timezone_tools
681 rtld_early_cflags
682 extra_nonshared_cflags
683 sysheaders
684 ac_ct_CXX
685 CXXFLAGS
688 cross_compiling
689 BUILD_CC
690 OBJEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 subdirs
705 REPORT_BUGS_TEXI
706 REPORT_BUGS_TO
707 PKGVERSION_TEXI
708 PKGVERSION
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 with_pkgversion
751 with_bugurl
752 with_gd
753 with_gd_include
754 with_gd_lib
755 with_binutils
756 with_selinux
757 with_headers
758 with_nonshared_cflags
759 with_rtld_early_cflags
760 with_timeoutfactor
761 enable_sanity_checks
762 enable_shared
763 enable_profile
764 enable_default_pie
765 enable_timezone_tools
766 enable_hardcoded_path_in_tests
767 enable_hidden_plt
768 enable_bind_now
769 enable_stack_protector
770 enable_static_nss
771 enable_force_install
772 enable_maintainer_mode
773 enable_kernel
774 enable_all_warnings
775 enable_werror
776 enable_multi_arch
777 enable_experimental_malloc
778 enable_memory_tagging
779 enable_crypt
780 enable_nss_crypt
781 enable_systemtap
782 enable_build_nscd
783 enable_nscd
784 enable_pt_chown
785 enable_tunables
786 enable_mathvec
787 enable_cet
788 enable_scv
789 with_cpu
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
801 CXXFLAGS
802 CCC'
803 ac_subdirs_all=''
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
853 ac_prev=
854 ac_dashdash=
855 for ac_option
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
874 ac_dashdash=yes ;;
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
893 --config-cache | -C)
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 esac
1211 done
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1295 /^X\(\/\/\)$/{
1296 s//\1/
1299 /^X\(\/\).*/{
1300 s//\1/
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1308 else
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1398 cat <<\_ACEOF
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1409 esac
1410 cat <<\_ACEOF
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --disable-sanity-checks really do not use threads (should not be used except
1417 in special situations) [default=yes]
1418 --enable-shared build shared library [default=yes if GNU ld]
1419 --enable-profile build profiled library [default=no]
1420 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1421 [default=no]
1422 --disable-timezone-tools
1423 do not install timezone tools [default=install]
1424 --enable-hardcoded-path-in-tests
1425 hardcode newly built glibc path in tests
1426 [default=no]
1427 --disable-hidden-plt do not hide internal function calls to avoid PLT
1428 --enable-bind-now disable lazy relocations in DSOs
1429 --enable-stack-protector=[yes|no|all|strong]
1430 Use -fstack-protector[-all|-strong] to detect glibc
1431 buffer overflows
1432 --enable-static-nss build static NSS modules [default=no]
1433 --disable-force-install don't force installation of files from this package,
1434 even if they are older than the installed files
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful (and
1437 sometimes confusing) to the casual installer
1438 --enable-kernel=VERSION compile for compatibility with kernel not older than
1439 VERSION
1440 --enable-all-warnings enable all useful warnings gcc can issue
1441 --disable-werror do not build with -Werror
1442 --enable-multi-arch enable single DSO with optimizations for multiple
1443 architectures
1444 --disable-experimental-malloc
1445 disable experimental malloc features
1446 --enable-memory-tagging enable memory tagging if supported by the
1447 architecture [default=no]
1448 --disable-crypt do not build nor install the passphrase hashing
1449 library, libcrypt
1450 --enable-nss-crypt enable libcrypt to use nss
1451 --enable-systemtap enable systemtap static probe points [default=no]
1452 --disable-build-nscd disable building and installing the nscd daemon
1453 --disable-nscd library functions will not contact the nscd daemon
1454 --enable-pt_chown Enable building and installing pt_chown
1455 --enable-tunables Enable tunables support. Known values are 'yes',
1456 'no' and 'valstring'
1457 --enable-mathvec Enable building and installing mathvec [default
1458 depends on architecture]
1459 --enable-cet enable Intel Control-flow Enforcement Technology
1460 (CET), x86 only
1461 --disable-scv syscalls will not use scv instruction, even if the
1462 kernel supports it, powerpc only
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1468 --with-bugurl=URL Direct users to URL to report a bug
1469 --with-gd=DIR find libgd include dir and library with prefix DIR
1470 --with-gd-include=DIR find libgd include files in DIR
1471 --with-gd-lib=DIR find libgd library files in DIR
1472 --with-binutils=PATH specify location of binutils (as and ld)
1473 --with-selinux if building with SELinux support
1474 --with-headers=PATH location of system headers to use (for example
1475 /usr/src/linux/include) [default=compiler default]
1476 --with-nonshared-cflags=CFLAGS
1477 build nonshared libraries with additional CFLAGS
1478 --with-rtld-early-cflags=CFLAGS
1479 build early initialization with additional CFLAGS
1480 --with-timeoutfactor=NUM
1481 specify an integer to scale the timeout
1482 --with-cpu=CPU select code for CPU variant
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CPP C preprocessor
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <https://sourceware.org/bugzilla/>.
1500 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1501 General help using GNU software: <http://www.gnu.org/gethelp/>.
1502 _ACEOF
1503 ac_status=$?
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 GNU C Library configure (see version.h)
1565 generated by GNU Autoconf 2.69
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_cxx_try_compile LINENO
1617 # ----------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_cxx_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_cxx_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_cxx_try_compile
1654 # ac_fn_cxx_try_link LINENO
1655 # -------------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_cxx_try_link ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_cxx_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=1
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_cxx_try_link
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_link ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest$ac_exeext
1707 if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest$ac_exeext && {
1726 test "$cross_compiling" = yes ||
1727 test -x conftest$ac_exeext
1728 }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=1
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_link
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_cpp ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_cpp
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1786 It was created by GNU C Library $as_me (see version.h), which was
1787 generated by GNU Autoconf 2.69. Invocation command line was
1789 $ $0 $@
1791 _ACEOF
1792 exec 5>>config.log
1794 cat <<_ASUNAME
1795 ## --------- ##
1796 ## Platform. ##
1797 ## --------- ##
1799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1808 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1809 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1812 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1813 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1814 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1816 _ASUNAME
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 $as_echo "PATH: $as_dir"
1824 done
1825 IFS=$as_save_IFS
1827 } >&5
1829 cat >&5 <<_ACEOF
1832 ## ----------- ##
1833 ## Core tests. ##
1834 ## ----------- ##
1836 _ACEOF
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1844 ac_configure_args=
1845 ac_configure_args0=
1846 ac_configure_args1=
1847 ac_must_keep_next=false
1848 for ac_pass in 1 2
1850 for ac_arg
1852 case $ac_arg in
1853 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855 | -silent | --silent | --silen | --sile | --sil)
1856 continue ;;
1857 *\'*)
1858 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 esac
1860 case $ac_pass in
1861 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1863 as_fn_append ac_configure_args1 " '$ac_arg'"
1864 if test $ac_must_keep_next = true; then
1865 ac_must_keep_next=false # Got value, back to normal.
1866 else
1867 case $ac_arg in
1868 *=* | --config-cache | -C | -disable-* | --disable-* \
1869 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871 | -with-* | --with-* | -without-* | --without-* | --x)
1872 case "$ac_configure_args0 " in
1873 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874 esac
1876 -* ) ac_must_keep_next=true ;;
1877 esac
1879 as_fn_append ac_configure_args " '$ac_arg'"
1881 esac
1882 done
1883 done
1884 { ac_configure_args0=; unset ac_configure_args0;}
1885 { ac_configure_args1=; unset ac_configure_args1;}
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log. We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893 # Save into config.log some information that might help in debugging.
1895 echo
1897 $as_echo "## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##"
1900 echo
1901 # The following way of writing the cache mishandles newlines in values,
1903 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1904 eval ac_val=\$$ac_var
1905 case $ac_val in #(
1906 *${as_nl}*)
1907 case $ac_var in #(
1908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1910 esac
1911 case $ac_var in #(
1912 _ | IFS | as_nl) ;; #(
1913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1914 *) { eval $ac_var=; unset $ac_var;} ;;
1915 esac ;;
1916 esac
1917 done
1918 (set) 2>&1 |
1919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1920 *${as_nl}ac_space=\ *)
1921 sed -n \
1922 "s/'\''/'\''\\\\'\'''\''/g;
1923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1924 ;; #(
1926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1928 esac |
1929 sort
1931 echo
1933 $as_echo "## ----------------- ##
1934 ## Output variables. ##
1935 ## ----------------- ##"
1936 echo
1937 for ac_var in $ac_subst_vars
1939 eval ac_val=\$$ac_var
1940 case $ac_val in
1941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1942 esac
1943 $as_echo "$ac_var='\''$ac_val'\''"
1944 done | sort
1945 echo
1947 if test -n "$ac_subst_files"; then
1948 $as_echo "## ------------------- ##
1949 ## File substitutions. ##
1950 ## ------------------- ##"
1951 echo
1952 for ac_var in $ac_subst_files
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
1959 done | sort
1960 echo
1963 if test -s confdefs.h; then
1964 $as_echo "## ----------- ##
1965 ## confdefs.h. ##
1966 ## ----------- ##"
1967 echo
1968 cat confdefs.h
1969 echo
1971 test "$ac_signal" != 0 &&
1972 $as_echo "$as_me: caught signal $ac_signal"
1973 $as_echo "$as_me: exit $exit_status"
1974 } >&5
1975 rm -f core *.core core.conftest.* &&
1976 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977 exit $exit_status
1979 for ac_signal in 1 2 13 15; do
1980 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1981 done
1982 ac_signal=0
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1987 $as_echo "/* confdefs.h */" > confdefs.h
1989 # Predefined preprocessor variables.
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 _ACEOF
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997 _ACEOF
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 _ACEOF
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 _ACEOF
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 _ACEOF
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_URL "$PACKAGE_URL"
2013 _ACEOF
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2018 ac_site_file1=NONE
2019 ac_site_file2=NONE
2020 if test -n "$CONFIG_SITE"; then
2021 # We do not want a PATH search for config.site.
2022 case $CONFIG_SITE in #((
2023 -*) ac_site_file1=./$CONFIG_SITE;;
2024 */*) ac_site_file1=$CONFIG_SITE;;
2025 *) ac_site_file1=./$CONFIG_SITE;;
2026 esac
2027 elif test "x$prefix" != xNONE; then
2028 ac_site_file1=$prefix/share/config.site
2029 ac_site_file2=$prefix/etc/config.site
2030 else
2031 ac_site_file1=$ac_default_prefix/share/config.site
2032 ac_site_file2=$ac_default_prefix/etc/config.site
2034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2036 test "x$ac_site_file" = xNONE && continue
2037 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2040 sed 's/^/| /' "$ac_site_file" >&5
2041 . "$ac_site_file" \
2042 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044 as_fn_error $? "failed to load site script $ac_site_file
2045 See \`config.log' for more details" "$LINENO" 5; }
2047 done
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special files
2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054 $as_echo "$as_me: loading cache $cache_file" >&6;}
2055 case $cache_file in
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2058 esac
2060 else
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062 $as_echo "$as_me: creating cache $cache_file" >&6;}
2063 >$cache_file
2066 # Check that the precious variables saved in the cache have kept the same
2067 # value.
2068 ac_cache_corrupted=false
2069 for ac_var in $ac_precious_vars; do
2070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2071 eval ac_new_set=\$ac_env_${ac_var}_set
2072 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2073 eval ac_new_val=\$ac_env_${ac_var}_value
2074 case $ac_old_set,$ac_new_set in
2075 set,)
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2077 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2079 ,set)
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2081 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2083 ,);;
2085 if test "x$ac_old_val" != "x$ac_new_val"; then
2086 # differences in whitespace do not lead to failure.
2087 ac_old_val_w=`echo x $ac_old_val`
2088 ac_new_val_w=`echo x $ac_new_val`
2089 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2091 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092 ac_cache_corrupted=:
2093 else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2095 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2096 eval $ac_var=\$ac_old_val
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2099 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2101 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2102 fi;;
2103 esac
2104 # Pass precious variables to config.status.
2105 if test "$ac_new_set" = set; then
2106 case $ac_new_val in
2107 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 *) ac_arg=$ac_var=$ac_new_val ;;
2109 esac
2110 case " $ac_configure_args " in
2111 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2112 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2113 esac
2115 done
2116 if $ac_cache_corrupted; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2120 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2121 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2123 ## -------------------- ##
2124 ## Main body of script. ##
2125 ## -------------------- ##
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135 ac_config_headers="$ac_config_headers config.h"
2137 ac_aux_dir=
2138 for ac_dir in scripts "$srcdir"/scripts; do
2139 if test -f "$ac_dir/install-sh"; then
2140 ac_aux_dir=$ac_dir
2141 ac_install_sh="$ac_aux_dir/install-sh -c"
2142 break
2143 elif test -f "$ac_dir/install.sh"; then
2144 ac_aux_dir=$ac_dir
2145 ac_install_sh="$ac_aux_dir/install.sh -c"
2146 break
2147 elif test -f "$ac_dir/shtool"; then
2148 ac_aux_dir=$ac_dir
2149 ac_install_sh="$ac_aux_dir/shtool install -c"
2150 break
2152 done
2153 if test -z "$ac_aux_dir"; then
2154 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2157 # These three variables are undocumented and unsupported,
2158 # and are intended to be withdrawn in a future Autoconf release.
2159 # They can cause serious problems if a builder's source tree is in a directory
2160 # whose full name contains unusual characters.
2161 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2169 # Check whether --with-pkgversion was given.
2170 if test "${with_pkgversion+set}" = set; then :
2171 withval=$with_pkgversion; case "$withval" in
2172 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2173 no) PKGVERSION= ;;
2174 *) PKGVERSION="($withval) " ;;
2175 esac
2176 else
2177 PKGVERSION="(GNU libc) "
2181 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2187 # Check whether --with-bugurl was given.
2188 if test "${with_bugurl+set}" = set; then :
2189 withval=$with_bugurl; case "$withval" in
2190 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2191 no) BUGURL=
2193 *) BUGURL="$withval"
2195 esac
2196 else
2197 BUGURL="https://www.gnu.org/software/libc/bugs.html"
2201 case ${BUGURL} in
2203 REPORT_BUGS_TO=
2204 REPORT_BUGS_TEXI=
2207 REPORT_BUGS_TO="<$BUGURL>"
2208 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2210 esac;
2215 cat >>confdefs.h <<_ACEOF
2216 #define PKGVERSION "$PKGVERSION"
2217 _ACEOF
2220 cat >>confdefs.h <<_ACEOF
2221 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2222 _ACEOF
2225 # Glibc should not depend on any header files
2228 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2229 # here to work around the Autoconf issue discussed in
2230 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2231 # AC_PROG_CPP
2233 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2234 # issue discussed in
2235 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2240 subdirs="$subdirs "
2243 # Make sure we can run config.sub.
2244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2245 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2248 $as_echo_n "checking build system type... " >&6; }
2249 if ${ac_cv_build+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2257 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2258 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2262 $as_echo "$ac_cv_build" >&6; }
2263 case $ac_cv_build in
2264 *-*-*) ;;
2265 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2266 esac
2267 build=$ac_cv_build
2268 ac_save_IFS=$IFS; IFS='-'
2269 set x $ac_cv_build
2270 shift
2271 build_cpu=$1
2272 build_vendor=$2
2273 shift; shift
2274 # Remember, the first character of IFS is used to create $*,
2275 # except with old shells:
2276 build_os=$*
2277 IFS=$ac_save_IFS
2278 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2282 $as_echo_n "checking host system type... " >&6; }
2283 if ${ac_cv_host+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test "x$host_alias" = x; then
2287 ac_cv_host=$ac_cv_build
2288 else
2289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2290 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2295 $as_echo "$ac_cv_host" >&6; }
2296 case $ac_cv_host in
2297 *-*-*) ;;
2298 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2299 esac
2300 host=$ac_cv_host
2301 ac_save_IFS=$IFS; IFS='-'
2302 set x $ac_cv_host
2303 shift
2304 host_cpu=$1
2305 host_vendor=$2
2306 shift; shift
2307 # Remember, the first character of IFS is used to create $*,
2308 # except with old shells:
2309 host_os=$*
2310 IFS=$ac_save_IFS
2311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2315 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2324 $as_echo_n "checking for $ac_word... " >&6; }
2325 if ${ac_cv_prog_CC+:} false; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2344 IFS=$as_save_IFS
2348 CC=$ac_cv_prog_CC
2349 if test -n "$CC"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2351 $as_echo "$CC" >&6; }
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2354 $as_echo "no" >&6; }
2359 if test -z "$ac_cv_prog_CC"; then
2360 ac_ct_CC=$CC
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362 set dummy gcc; ac_word=$2
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2382 done
2383 done
2384 IFS=$as_save_IFS
2388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389 if test -n "$ac_ct_CC"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2391 $as_echo "$ac_ct_CC" >&6; }
2392 else
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394 $as_echo "no" >&6; }
2397 if test "x$ac_ct_CC" = x; then
2398 CC=""
2399 else
2400 case $cross_compiling:$ac_tool_warned in
2401 yes:)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 CC=$ac_ct_CC
2408 else
2409 CC="$ac_cv_prog_CC"
2412 if test -z "$CC"; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}cc; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_CC+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="${ac_tool_prefix}cc"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2435 done
2436 done
2437 IFS=$as_save_IFS
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2444 $as_echo "$CC" >&6; }
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_CC+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 ac_prog_rejected=no
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473 ac_prog_rejected=yes
2474 continue
2476 ac_cv_prog_CC="cc"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2484 if test $ac_prog_rejected = yes; then
2485 # We found a bogon in the path, so make sure we never use it.
2486 set dummy $ac_cv_prog_CC
2487 shift
2488 if test $# != 0; then
2489 # We chose a different compiler from the bogus one.
2490 # However, it has the same basename, so the bogon will be chosen
2491 # first if we set CC to just the basename; use the full file name.
2492 shift
2493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in cl.exe
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_CC+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2534 done
2535 done
2536 IFS=$as_save_IFS
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2550 test -n "$CC" && break
2551 done
2553 if test -z "$CC"; then
2554 ac_ct_CC=$CC
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_CC="$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2587 $as_echo "$ac_ct_CC" >&6; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2594 test -n "$ac_ct_CC" && break
2595 done
2597 if test "x$ac_ct_CC" = x; then
2598 CC=""
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606 CC=$ac_ct_CC
2613 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "no acceptable C compiler found in \$PATH
2616 See \`config.log' for more details" "$LINENO" 5; }
2618 # Provide some information about the compiler.
2619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2620 set X $ac_compile
2621 ac_compiler=$2
2622 for ac_option in --version -v -V -qversion; do
2623 { { ac_try="$ac_compiler $ac_option >&5"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2631 ac_status=$?
2632 if test -s conftest.err; then
2633 sed '10a\
2634 ... rest of stderr output deleted ...
2635 10q' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2638 rm -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; }
2641 done
2643 EXEEXT=
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2645 $as_echo_n "checking for suffix of object files... " >&6; }
2646 if ${ac_cv_objext+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2653 main ()
2657 return 0;
2659 _ACEOF
2660 rm -f conftest.o conftest.obj
2661 if { { ac_try="$ac_compile"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_compile") 2>&5
2669 ac_status=$?
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; }; then :
2672 for ac_file in conftest.o conftest.obj conftest.*; do
2673 test -f "$ac_file" || continue;
2674 case $ac_file in
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2677 break;;
2678 esac
2679 done
2680 else
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details" "$LINENO" 5; }
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2692 $as_echo "$ac_cv_objext" >&6; }
2693 OBJEXT=$ac_cv_objext
2694 ac_objext=$OBJEXT
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2697 if ${ac_cv_c_compiler_gnu+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2704 main ()
2706 #ifndef __GNUC__
2707 choke me
2708 #endif
2711 return 0;
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_compiler_gnu=yes
2716 else
2717 ac_compiler_gnu=no
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2726 GCC=yes
2727 else
2728 GCC=
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2734 if ${ac_cv_prog_cc_g+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 ac_save_c_werror_flag=$ac_c_werror_flag
2738 ac_c_werror_flag=yes
2739 ac_cv_prog_cc_g=no
2740 CFLAGS="-g"
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2745 main ()
2749 return 0;
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_cv_prog_cc_g=yes
2754 else
2755 CFLAGS=""
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2760 main ()
2764 return 0;
2766 _ACEOF
2767 if ac_fn_c_try_compile "$LINENO"; then :
2769 else
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2771 CFLAGS="-g"
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 if ac_fn_c_try_compile "$LINENO"; then :
2784 ac_cv_prog_cc_g=yes
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2794 $as_echo "$ac_cv_prog_cc_g" >&6; }
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test $host != $build; then
2818 for ac_prog in gcc cc
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_BUILD_CC+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$BUILD_CC"; then
2828 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_BUILD_CC="$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2847 BUILD_CC=$ac_cv_prog_BUILD_CC
2848 if test -n "$BUILD_CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2850 $as_echo "$BUILD_CC" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2857 test -n "$BUILD_CC" && break
2858 done
2862 # On Suns, sometimes $CPP names a directory.
2863 if test -n "$CPP" && test -d "$CPP"; then
2864 CPP=
2866 if test -z "$CPP"; then
2867 CPP="$CC -E"
2871 # We need the C++ compiler only for testing.
2872 ac_ext=cpp
2873 ac_cpp='$CXXCPP $CPPFLAGS'
2874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2877 if test -z "$CXX"; then
2878 if test -n "$CCC"; then
2879 CXX=$CCC
2880 else
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CXX+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CXX"; then
2892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 CXX=$ac_cv_prog_CXX
2912 if test -n "$CXX"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2914 $as_echo "$CXX" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$CXX" && break
2922 done
2924 if test -z "$CXX"; then
2925 ac_ct_CXX=$CXX
2926 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_CXX"; then
2936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_CXX="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2956 if test -n "$ac_ct_CXX"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2958 $as_echo "$ac_ct_CXX" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$ac_ct_CXX" && break
2966 done
2968 if test "x$ac_ct_CXX" = x; then
2969 CXX="g++"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CXX=$ac_ct_CXX
2983 # Provide some information about the compiler.
2984 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2985 set X $ac_compile
2986 ac_compiler=$2
2987 for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2996 ac_status=$?
2997 if test -s conftest.err; then
2998 sed '10a\
2999 ... rest of stderr output deleted ...
3000 10q' conftest.err >conftest.er1
3001 cat conftest.er1 >&5
3003 rm -f conftest.er1 conftest.err
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006 done
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3009 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3010 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3017 main ()
3019 #ifndef __GNUC__
3020 choke me
3021 #endif
3024 return 0;
3026 _ACEOF
3027 if ac_fn_cxx_try_compile "$LINENO"; then :
3028 ac_compiler_gnu=yes
3029 else
3030 ac_compiler_gnu=no
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3037 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3038 if test $ac_compiler_gnu = yes; then
3039 GXX=yes
3040 else
3041 GXX=
3043 ac_test_CXXFLAGS=${CXXFLAGS+set}
3044 ac_save_CXXFLAGS=$CXXFLAGS
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3046 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3047 if ${ac_cv_prog_cxx_g+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3051 ac_cxx_werror_flag=yes
3052 ac_cv_prog_cxx_g=no
3053 CXXFLAGS="-g"
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 if ac_fn_cxx_try_compile "$LINENO"; then :
3066 ac_cv_prog_cxx_g=yes
3067 else
3068 CXXFLAGS=""
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3073 main ()
3077 return 0;
3079 _ACEOF
3080 if ac_fn_cxx_try_compile "$LINENO"; then :
3082 else
3083 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3084 CXXFLAGS="-g"
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3089 main ()
3093 return 0;
3095 _ACEOF
3096 if ac_fn_cxx_try_compile "$LINENO"; then :
3097 ac_cv_prog_cxx_g=yes
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3107 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3108 if test "$ac_test_CXXFLAGS" = set; then
3109 CXXFLAGS=$ac_save_CXXFLAGS
3110 elif test $ac_cv_prog_cxx_g = yes; then
3111 if test "$GXX" = yes; then
3112 CXXFLAGS="-g -O2"
3113 else
3114 CXXFLAGS="-g"
3116 else
3117 if test "$GXX" = yes; then
3118 CXXFLAGS="-O2"
3119 else
3120 CXXFLAGS=
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3132 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3133 if ${libc_cv_cxx_link_ok+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 ac_ext=cpp
3137 ac_cpp='$CXXCPP $CPPFLAGS'
3138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3142 # Default, dynamic case.
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3147 main ()
3151 return 0;
3153 _ACEOF
3154 if ac_fn_cxx_try_link "$LINENO"; then :
3155 libc_cv_cxx_link_ok=yes
3156 else
3157 libc_cv_cxx_link_ok=no
3159 rm -f core conftest.err conftest.$ac_objext \
3160 conftest$ac_exeext conftest.$ac_ext
3161 # Static case.
3162 old_LDFLAGS="$LDFLAGS"
3163 LDFLAGS="$LDFLAGS -static"
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3167 #include <iostream>
3170 main()
3172 std::cout << "Hello, world!";
3173 return 0;
3176 _ACEOF
3177 if ac_fn_cxx_try_link "$LINENO"; then :
3179 else
3180 libc_cv_cxx_link_ok=no
3182 rm -f core conftest.err conftest.$ac_objext \
3183 conftest$ac_exeext conftest.$ac_ext
3184 LDFLAGS="$old_LDFLAGS"
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3193 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3194 if test $libc_cv_cxx_link_ok != yes; then :
3195 CXX=
3198 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3199 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3202 # This will get text that should go into config.make.
3203 config_vars=
3205 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3207 # Check whether --with-gd was given.
3208 if test "${with_gd+set}" = set; then :
3209 withval=$with_gd; case "$with_gd" in
3210 yes|''|no) ;;
3211 *) libgd_include="-I$withval/include"
3212 libgd_ldflags="-L$withval/lib" ;;
3213 esac
3218 # Check whether --with-gd-include was given.
3219 if test "${with_gd_include+set}" = set; then :
3220 withval=$with_gd_include; case "$with_gd_include" in
3221 ''|no) ;;
3222 *) libgd_include="-I$withval" ;;
3223 esac
3228 # Check whether --with-gd-lib was given.
3229 if test "${with_gd_lib+set}" = set; then :
3230 withval=$with_gd_lib; case "$with_gd_lib" in
3231 ''|no) ;;
3232 *) libgd_ldflags="-L$withval" ;;
3233 esac
3238 if test -n "$libgd_include"; then
3239 config_vars="$config_vars
3240 CFLAGS-memusagestat.c = $libgd_include"
3242 if test -n "$libgd_ldflags"; then
3243 config_vars="$config_vars
3244 libgd-LDFLAGS = $libgd_ldflags"
3248 # Check whether --with-binutils was given.
3249 if test "${with_binutils+set}" = set; then :
3250 withval=$with_binutils; path_binutils=$withval
3251 else
3252 path_binutils=''
3256 # Check whether --with-selinux was given.
3257 if test "${with_selinux+set}" = set; then :
3258 withval=$with_selinux; with_selinux=$withval
3259 else
3260 with_selinux=auto
3265 # Check whether --with-headers was given.
3266 if test "${with_headers+set}" = set; then :
3267 withval=$with_headers; sysheaders=$withval
3268 else
3269 sysheaders=''
3275 # Check whether --with-nonshared-cflags was given.
3276 if test "${with_nonshared_cflags+set}" = set; then :
3277 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
3278 else
3279 extra_nonshared_cflags=
3284 # Check whether --with-rtld-early-cflags was given.
3285 if test "${with_rtld_early_cflags+set}" = set; then :
3286 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
3287 else
3288 rtld_early_cflags=
3294 # Check whether --with-timeoutfactor was given.
3295 if test "${with_timeoutfactor+set}" = set; then :
3296 withval=$with_timeoutfactor; timeoutfactor=$withval
3297 else
3298 timeoutfactor=1
3301 cat >>confdefs.h <<_ACEOF
3302 #define TIMEOUTFACTOR $timeoutfactor
3303 _ACEOF
3306 # Check whether --enable-sanity-checks was given.
3307 if test "${enable_sanity_checks+set}" = set; then :
3308 enableval=$enable_sanity_checks; enable_sanity=$enableval
3309 else
3310 enable_sanity=yes
3314 # Check whether --enable-shared was given.
3315 if test "${enable_shared+set}" = set; then :
3316 enableval=$enable_shared; shared=$enableval
3317 else
3318 shared=yes
3321 # Check whether --enable-profile was given.
3322 if test "${enable_profile+set}" = set; then :
3323 enableval=$enable_profile; profile=$enableval
3324 else
3325 profile=no
3328 # Check whether --enable-default-pie was given.
3329 if test "${enable_default_pie+set}" = set; then :
3330 enableval=$enable_default_pie; default_pie=$enableval
3331 else
3332 default_pie=yes
3335 # Check whether --enable-timezone-tools was given.
3336 if test "${enable_timezone_tools+set}" = set; then :
3337 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3338 else
3339 enable_timezone_tools=yes
3344 # Check whether --enable-hardcoded-path-in-tests was given.
3345 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3346 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3347 else
3348 hardcoded_path_in_tests=no
3353 # Check whether --enable-hidden-plt was given.
3354 if test "${enable_hidden_plt+set}" = set; then :
3355 enableval=$enable_hidden_plt; hidden=$enableval
3356 else
3357 hidden=yes
3360 if test "x$hidden" = xno; then
3361 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3365 # Check whether --enable-bind-now was given.
3366 if test "${enable_bind_now+set}" = set; then :
3367 enableval=$enable_bind_now; bindnow=$enableval
3368 else
3369 bindnow=no
3373 if test "x$bindnow" = xyes; then
3374 $as_echo "#define BIND_NOW 1" >>confdefs.h
3378 # Check whether --enable-stack-protector was given.
3379 if test "${enable_stack_protector+set}" = set; then :
3380 enableval=$enable_stack_protector; enable_stack_protector=$enableval
3381 else
3382 enable_stack_protector=no
3385 case "$enable_stack_protector" in
3386 all|yes|no|strong) ;;
3387 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
3388 esac
3390 # Check whether --enable-static-nss was given.
3391 if test "${enable_static_nss+set}" = set; then :
3392 enableval=$enable_static_nss; static_nss=$enableval
3393 else
3394 static_nss=no
3397 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3398 static_nss=yes
3399 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3403 # Check whether --enable-force-install was given.
3404 if test "${enable_force_install+set}" = set; then :
3405 enableval=$enable_force_install; force_install=$enableval
3406 else
3407 force_install=yes
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval=$enable_maintainer_mode; maintainer=$enableval
3415 else
3416 maintainer=no
3420 # Check whether --enable-kernel was given.
3421 if test "${enable_kernel+set}" = set; then :
3422 enableval=$enable_kernel; minimum_kernel=$enableval
3425 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3426 # Better nothing than this.
3427 minimum_kernel=""
3428 else
3429 if test "$minimum_kernel" = current; then
3430 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3434 # Check whether --enable-all-warnings was given.
3435 if test "${enable_all_warnings+set}" = set; then :
3436 enableval=$enable_all_warnings; all_warnings=$enableval
3441 # Check whether --enable-werror was given.
3442 if test "${enable_werror+set}" = set; then :
3443 enableval=$enable_werror; enable_werror=$enableval
3444 else
3445 enable_werror=yes
3450 # Check whether --enable-multi-arch was given.
3451 if test "${enable_multi_arch+set}" = set; then :
3452 enableval=$enable_multi_arch; multi_arch=$enableval
3453 else
3454 multi_arch=default
3458 # Check whether --enable-experimental-malloc was given.
3459 if test "${enable_experimental_malloc+set}" = set; then :
3460 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3461 else
3462 experimental_malloc=yes
3467 # Check whether --enable-memory-tagging was given.
3468 if test "${enable_memory_tagging+set}" = set; then :
3469 enableval=$enable_memory_tagging; memory_tagging=$enableval
3470 else
3471 memory_tagging=no
3474 if test "$memory_tagging" = yes; then
3475 # Only enable this on architectures that support it.
3476 case $host_cpu in
3477 aarch64)
3478 $as_echo "#define USE_MTAG 1" >>confdefs.h
3481 esac
3485 # Check whether --enable-crypt was given.
3486 if test "${enable_crypt+set}" = set; then :
3487 enableval=$enable_crypt; build_crypt=$enableval
3488 else
3489 build_crypt=yes
3494 # Check whether --enable-nss-crypt was given.
3495 if test "${enable_nss_crypt+set}" = set; then :
3496 enableval=$enable_nss_crypt; nss_crypt=$enableval
3497 else
3498 nss_crypt=no
3501 if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
3503 $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
3504 nss_crypt=no
3506 if test x$nss_crypt = xyes; then
3507 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3508 if test $? -ne 0; then
3509 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3511 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
3512 if test $? -ne 0; then
3513 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
3515 old_CFLAGS="$CFLAGS"
3516 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 typedef int PRBool;
3521 #include <hasht.h>
3522 #include <nsslowhash.h>
3523 void f (void) { NSSLOW_Init (); }
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 libc_cv_nss_crypt=yes
3534 else
3535 as_fn_error $? "
3536 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 old_LIBS="$LIBS"
3540 old_LDFLAGS="$LDFLAGS"
3541 LIBS="$LIBS -lfreebl3"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 typedef int PRBool;
3545 #include <hasht.h>
3546 #include <nsslowhash.h>
3548 main ()
3550 NSSLOW_Init();
3552 return 0;
3554 _ACEOF
3555 if ac_fn_c_try_link "$LINENO"; then :
3556 libc_cv_nss_crypt=yes
3557 else
3558 as_fn_error $? "
3559 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3561 rm -f core conftest.err conftest.$ac_objext \
3562 conftest$ac_exeext conftest.$ac_ext
3563 # Check to see if there is a static NSS cryptographic library.
3564 # If there isn't then we can't link anything with libcrypt.a,
3565 # and that might mean disabling some static tests.
3566 LDFLAGS="$LDFLAGS -static"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 typedef int PRBool;
3570 #include <hasht.h>
3571 #include <nsslowhash.h>
3573 main ()
3575 NSSLOW_Init();
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_link "$LINENO"; then :
3581 libc_cv_static_nss_crypt=yes
3582 else
3583 libc_cv_static_nss_crypt=no
3585 rm -f core conftest.err conftest.$ac_objext \
3586 conftest$ac_exeext conftest.$ac_ext
3587 LDFLAGS="$old_LDFLAGS"
3588 CFLAGS="$old_CFLAGS"
3589 LIBS="$old_LIBS"
3590 else
3591 libc_cv_nss_crypt=no
3592 libc_cv_static_nss_crypt=no
3598 # Check whether --enable-systemtap was given.
3599 if test "${enable_systemtap+set}" = set; then :
3600 enableval=$enable_systemtap; systemtap=$enableval
3601 else
3602 systemtap=no
3605 if test "x$systemtap" != xno; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3607 $as_echo_n "checking for systemtap static probe support... " >&6; }
3608 if ${libc_cv_sdt+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 old_CFLAGS="$CFLAGS"
3612 CFLAGS="-std=gnu11 $CFLAGS"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <sys/sdt.h>
3616 void foo (int i, void *p)
3618 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3619 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 libc_cv_sdt=yes
3624 else
3625 libc_cv_sdt=no
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 CFLAGS="$old_CFLAGS"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3631 $as_echo "$libc_cv_sdt" >&6; }
3632 if test $libc_cv_sdt = yes; then
3633 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3635 elif test "x$systemtap" != xauto; then
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3639 See \`config.log' for more details" "$LINENO" 5; }
3643 # Check whether --enable-build-nscd was given.
3644 if test "${enable_build_nscd+set}" = set; then :
3645 enableval=$enable_build_nscd; build_nscd=$enableval
3646 else
3647 build_nscd=default
3652 # Note the use of $use_nscd is near the bottom of the file.
3653 # Check whether --enable-nscd was given.
3654 if test "${enable_nscd+set}" = set; then :
3655 enableval=$enable_nscd; use_nscd=$enableval
3656 else
3657 use_nscd=yes
3661 # Check whether --enable-pt_chown was given.
3662 if test "${enable_pt_chown+set}" = set; then :
3663 enableval=$enable_pt_chown; build_pt_chown=$enableval
3664 else
3665 build_pt_chown=no
3669 if test "$build_pt_chown" = yes; then
3670 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3674 # Check whether --enable-tunables was given.
3675 if test "${enable_tunables+set}" = set; then :
3676 enableval=$enable_tunables; have_tunables=$enableval
3677 else
3678 have_tunables=yes
3682 if test "$have_tunables" = yes; then
3683 $as_echo "#define HAVE_TUNABLES 1" >>confdefs.h
3687 # The abi-tags file uses a fairly simplistic model for name recognition that
3688 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3689 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3690 # This doesn't get used much beyond that, so it's fairly safe.
3691 case "$host_os" in
3692 linux*)
3694 gnu*)
3695 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3697 esac
3699 # Check whether --enable-mathvec was given.
3700 if test "${enable_mathvec+set}" = set; then :
3701 enableval=$enable_mathvec; build_mathvec=$enableval
3702 else
3703 build_mathvec=notset
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3712 main ()
3715 #ifndef __CET__
3716 # error no CET compiler support
3717 #endif
3719 return 0;
3721 _ACEOF
3722 if ac_fn_c_try_cpp "$LINENO"; then :
3723 libc_cv_compiler_default_cet=yes
3724 else
3725 libc_cv_compiler_default_cet=no
3727 rm -f conftest.err conftest.i conftest.$ac_ext
3729 # Check whether --enable-cet was given.
3730 if test "${enable_cet+set}" = set; then :
3731 enableval=$enable_cet; enable_cet=$enableval
3732 else
3733 enable_cet=$libc_cv_compiler_default_cet
3737 # Check whether --enable-scv was given.
3738 if test "${enable_scv+set}" = set; then :
3739 enableval=$enable_scv; use_scv=$enableval
3740 else
3741 use_scv=yes
3745 if test "$use_scv" != "no"; then :
3746 $as_echo "#define USE_PPC_SCV 1" >>confdefs.h
3750 # We keep the original values in `$config_*' and never modify them, so we
3751 # can write them unchanged into config.make. Everything else uses
3752 # $machine, $vendor, and $os, and changes them whenever convenient.
3753 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3755 # Don't allow vendor == "unknown"
3756 test "$config_vendor" = unknown && config_vendor=
3757 config_os="`echo $config_os | sed 's/^unknown-//'`"
3759 # Some configurations imply other options.
3760 elf=yes
3762 # The configure fragment of a port can modify these to supplement
3763 # or override the table in the case statement below. No fragment should
3764 # ever change the config_* variables, however.
3765 machine=$config_machine
3766 vendor=$config_vendor
3767 os=$config_os
3768 base_os=''
3770 submachine=
3772 # Check whether --with-cpu was given.
3773 if test "${with_cpu+set}" = set; then :
3774 withval=$with_cpu; case "$withval" in
3775 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3776 no) ;;
3777 *) submachine="$withval" ;;
3778 esac
3783 # An preconfigure script can set this when it wants to disable the sanity
3784 # check below.
3785 libc_config_ok=no
3787 # A preconfigure script for a system that may or may not use fpu
3788 # sysdeps directories sets this to a preprocessor conditional for
3789 # whether to use such directories.
3790 with_fp_cond=1
3792 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3793 then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3795 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3796 for frag in $frags; do
3797 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3798 echo $ECHO_N "$name $ECHO_C" >&6
3799 . "$frag"
3800 done
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3802 $as_echo "" >&6; }
3807 ### By using the undocumented --enable-hacker-mode option for configure
3808 ### one can skip this test to make the configuration not fail for unsupported
3809 ### platforms.
3811 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3812 case "$machine-$host_os" in
3813 *-linux* | *-gnu*)
3816 as_fn_error $? "
3817 *** The GNU C library is currently unavailable for this platform.
3818 *** If you are interested in seeing glibc on this platform visit
3819 *** the \"How to submit a new port\" in the wiki:
3820 *** https://sourceware.org/glibc/wiki/#Development
3821 *** and join the community!" "$LINENO" 5
3823 esac
3826 # Set base_machine if not set by a preconfigure fragment.
3827 test -n "$base_machine" || base_machine=$machine
3830 ### Locate tools.
3832 # Find a good install program. We prefer a C program (faster),
3833 # so one script is as good as another. But avoid the broken or
3834 # incompatible versions:
3835 # SysV /etc/install, /usr/sbin/install
3836 # SunOS /usr/etc/install
3837 # IRIX /sbin/install
3838 # AIX /bin/install
3839 # AmigaOS /C/install, which installs bootblocks on floppy discs
3840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3843 # OS/2's system install, which has a completely different semantic
3844 # ./install, which can be erroneously created by make from ./install.sh.
3845 # Reject install programs that cannot install multiple files.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3848 if test -z "$INSTALL"; then
3849 if ${ac_cv_path_install+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 # Account for people who put trailing slashes in PATH elements.
3858 case $as_dir/ in #((
3859 ./ | .// | /[cC]/* | \
3860 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3861 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3862 /usr/ucb/* ) ;;
3864 # OSF1 and SCO ODT 3.0 have their own names for install.
3865 # Don't use installbsd from OSF since it installs stuff as root
3866 # by default.
3867 for ac_prog in ginstall scoinst install; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3870 if test $ac_prog = install &&
3871 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3872 # AIX install. It has an incompatible calling convention.
3874 elif test $ac_prog = install &&
3875 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3876 # program-specific install script used by HP pwplus--don't use.
3878 else
3879 rm -rf conftest.one conftest.two conftest.dir
3880 echo one > conftest.one
3881 echo two > conftest.two
3882 mkdir conftest.dir
3883 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3884 test -s conftest.one && test -s conftest.two &&
3885 test -s conftest.dir/conftest.one &&
3886 test -s conftest.dir/conftest.two
3887 then
3888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3889 break 3
3893 done
3894 done
3896 esac
3898 done
3899 IFS=$as_save_IFS
3901 rm -rf conftest.one conftest.two conftest.dir
3904 if test "${ac_cv_path_install+set}" = set; then
3905 INSTALL=$ac_cv_path_install
3906 else
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for INSTALL within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 INSTALL=$ac_install_sh
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3915 $as_echo "$INSTALL" >&6; }
3917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3918 # It thinks the first close brace ends the variable substitution.
3919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3925 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3926 # The makefiles need to use a different form to find it in $srcdir.
3927 INSTALL='\$(..)./scripts/install-sh -c'
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3930 $as_echo_n "checking whether ln -s works... " >&6; }
3931 LN_S=$as_ln_s
3932 if test "$LN_S" = "ln -s"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3937 $as_echo "no, using $LN_S" >&6; }
3941 # Was a --with-binutils option given?
3942 if test -n "$path_binutils"; then
3943 # Make absolute; ensure a single trailing slash.
3944 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3945 CC="$CC -B$path_binutils"
3947 case "$CC" in
3948 *fuse-ld=lld*) LDNAME=ld.lld;;
3949 *) LDNAME=ld;;
3950 esac
3951 if test -z "$LD"; then
3952 LD=`$CC -print-prog-name=$LDNAME`
3954 if test -z "$AR"; then
3955 AR=`$CC -print-prog-name=ar`
3958 if test -z "$OBJCOPY"; then
3959 OBJCOPY=`$CC -print-prog-name=objcopy`
3962 if test -z "$GPROF"; then
3963 GPROF=`$CC -print-prog-name=gprof`
3966 if test -z "$READELF"; then
3967 READELF=`$CC -print-prog-name=readelf`
3970 if test -z "$OBJDUMP"; then
3971 OBJDUMP=`$CC -print-prog-name=objdump`
3974 if test -z "$NM"; then
3975 NM=`$CC -print-prog-name=nm`
3980 # Accept binutils 2.25 or newer.
3981 libc_cv_with_lld=no
3982 case $($LD --version) in
3983 "GNU gold"*)
3984 # Accept gold 1.14 or higher
3985 for ac_prog in $LD
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988 set dummy $ac_prog; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_LD+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$LD"; then
3995 ac_cv_prog_LD="$LD" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_LD="$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4010 IFS=$as_save_IFS
4014 LD=$ac_cv_prog_LD
4015 if test -n "$LD"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4017 $as_echo "$LD" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4024 test -n "$LD" && break
4025 done
4027 if test -z "$LD"; then
4028 ac_verc_fail=yes
4029 else
4030 # Found it, now check the version.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4032 $as_echo_n "checking version of $LD... " >&6; }
4033 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4034 case $ac_prog_version in
4035 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4036 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
4037 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4038 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4040 esac
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4042 $as_echo "$ac_prog_version" >&6; }
4044 if test $ac_verc_fail = yes; then
4045 LD=: critic_missing="$critic_missing GNU gold"
4049 "LLD"*)
4050 # Accept LLD 13.0.0 or higher
4051 for ac_prog in $LD
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_LD+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$LD"; then
4061 ac_cv_prog_LD="$LD" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_LD="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4080 LD=$ac_cv_prog_LD
4081 if test -n "$LD"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4083 $as_echo "$LD" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$LD" && break
4091 done
4093 if test -z "$LD"; then
4094 ac_verc_fail=yes
4095 else
4096 # Found it, now check the version.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4098 $as_echo_n "checking version of $LD... " >&6; }
4099 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4100 case $ac_prog_version in
4101 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4102 1[3-9].*|[2-9][0-9].*)
4103 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4104 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4106 esac
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4108 $as_echo "$ac_prog_version" >&6; }
4110 if test $ac_verc_fail = yes; then
4111 LD=: critic_missing="$critic_missing LLD"
4114 libc_cv_with_lld=yes
4117 for ac_prog in $LD
4119 # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy $ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_LD+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$LD"; then
4127 ac_cv_prog_LD="$LD" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_LD="$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4142 IFS=$as_save_IFS
4146 LD=$ac_cv_prog_LD
4147 if test -n "$LD"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4149 $as_echo "$LD" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4156 test -n "$LD" && break
4157 done
4159 if test -z "$LD"; then
4160 ac_verc_fail=yes
4161 else
4162 # Found it, now check the version.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4164 $as_echo_n "checking version of $LD... " >&6; }
4165 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4166 case $ac_prog_version in
4167 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4168 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4169 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4170 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4172 esac
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4174 $as_echo "$ac_prog_version" >&6; }
4176 if test $ac_verc_fail = yes; then
4177 LD=: critic_missing="$critic_missing GNU ld"
4181 esac
4182 config_vars="$config_vars
4183 with-lld = $libc_cv_with_lld"
4185 # These programs are version sensitive.
4186 for ac_prog in gnumake gmake make
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_MAKE+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$MAKE"; then
4196 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_MAKE="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 MAKE=$ac_cv_prog_MAKE
4216 if test -n "$MAKE"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4218 $as_echo "$MAKE" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$MAKE" && break
4226 done
4228 if test -z "$MAKE"; then
4229 ac_verc_fail=yes
4230 else
4231 # Found it, now check the version.
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4233 $as_echo_n "checking version of $MAKE... " >&6; }
4234 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4235 case $ac_prog_version in
4236 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4237 [4-9].* | [1-9][0-9]*)
4238 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4239 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4241 esac
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4243 $as_echo "$ac_prog_version" >&6; }
4245 if test $ac_verc_fail = yes; then
4246 critic_missing="$critic_missing make"
4250 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_MSGFMT+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$MSGFMT"; then
4260 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_MSGFMT="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4275 IFS=$as_save_IFS
4279 MSGFMT=$ac_cv_prog_MSGFMT
4280 if test -n "$MSGFMT"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4282 $as_echo "$MSGFMT" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4289 test -n "$MSGFMT" && break
4290 done
4292 if test -z "$MSGFMT"; then
4293 ac_verc_fail=yes
4294 else
4295 # Found it, now check the version.
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4297 $as_echo_n "checking version of $MSGFMT... " >&6; }
4298 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4299 case $ac_prog_version in
4300 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4301 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4302 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4303 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4305 esac
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4307 $as_echo "$ac_prog_version" >&6; }
4309 if test $ac_verc_fail = yes; then
4310 MSGFMT=: aux_missing="$aux_missing msgfmt"
4313 for ac_prog in makeinfo
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_MAKEINFO+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$MAKEINFO"; then
4323 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_MAKEINFO="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 MAKEINFO=$ac_cv_prog_MAKEINFO
4343 if test -n "$MAKEINFO"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4345 $as_echo "$MAKEINFO" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4352 test -n "$MAKEINFO" && break
4353 done
4355 if test -z "$MAKEINFO"; then
4356 ac_verc_fail=yes
4357 else
4358 # Found it, now check the version.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4360 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4361 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4362 case $ac_prog_version in
4363 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4364 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4365 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4366 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4368 esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4370 $as_echo "$ac_prog_version" >&6; }
4372 if test $ac_verc_fail = yes; then
4373 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4376 for ac_prog in sed
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_SED+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -n "$SED"; then
4386 ac_cv_prog_SED="$SED" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_SED="$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4401 IFS=$as_save_IFS
4405 SED=$ac_cv_prog_SED
4406 if test -n "$SED"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4408 $as_echo "$SED" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4415 test -n "$SED" && break
4416 done
4418 if test -z "$SED"; then
4419 ac_verc_fail=yes
4420 else
4421 # Found it, now check the version.
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4423 $as_echo_n "checking version of $SED... " >&6; }
4424 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4425 case $ac_prog_version in
4426 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4427 3.0[2-9]*|3.[1-9]*|[4-9]*)
4428 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4429 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4431 esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4433 $as_echo "$ac_prog_version" >&6; }
4435 if test $ac_verc_fail = yes; then
4436 SED=: aux_missing="$aux_missing sed"
4439 for ac_prog in gawk
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_AWK+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$AWK"; then
4449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_AWK="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 AWK=$ac_cv_prog_AWK
4469 if test -n "$AWK"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4471 $as_echo "$AWK" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 test -n "$AWK" && break
4479 done
4481 if test -z "$AWK"; then
4482 ac_verc_fail=yes
4483 else
4484 # Found it, now check the version.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4486 $as_echo_n "checking version of $AWK... " >&6; }
4487 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4488 case $ac_prog_version in
4489 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4490 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4491 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4492 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4494 esac
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4496 $as_echo "$ac_prog_version" >&6; }
4498 if test $ac_verc_fail = yes; then
4499 critic_missing="$critic_missing gawk"
4502 for ac_prog in bison
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_BISON+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$BISON"; then
4512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_BISON="$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 BISON=$ac_cv_prog_BISON
4532 if test -n "$BISON"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4534 $as_echo "$BISON" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4541 test -n "$BISON" && break
4542 done
4544 if test -z "$BISON"; then
4545 ac_verc_fail=yes
4546 else
4547 # Found it, now check the version.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
4549 $as_echo_n "checking version of $BISON... " >&6; }
4550 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
4551 case $ac_prog_version in
4552 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4553 2.7*|[3-9].*|[1-9][0-9]*)
4554 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4555 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4557 esac
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4559 $as_echo "$ac_prog_version" >&6; }
4561 if test $ac_verc_fail = yes; then
4562 critic_missing="$critic_missing bison"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4567 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4568 if ${libc_cv_compiler_ok+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4576 main ()
4579 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
4580 #error insufficient compiler
4581 #endif
4583 return 0;
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587 libc_cv_compiler_ok=yes
4588 else
4589 libc_cv_compiler_ok=no
4591 rm -f conftest.err conftest.i conftest.$ac_ext
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4594 $as_echo "$libc_cv_compiler_ok" >&6; }
4595 if test $libc_cv_compiler_ok != yes; then :
4596 critic_missing="$critic_missing compiler"
4599 if test "x$maintainer" = "xyes"; then
4600 for ac_prog in autoconf
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_AUTOCONF+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$AUTOCONF"; then
4610 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_AUTOCONF="$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 AUTOCONF=$ac_cv_prog_AUTOCONF
4630 if test -n "$AUTOCONF"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4632 $as_echo "$AUTOCONF" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 test -n "$AUTOCONF" && break
4640 done
4641 test -n "$AUTOCONF" || AUTOCONF="no"
4643 case "x$AUTOCONF" in
4644 xno|x|x:) AUTOCONF=no ;;
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4647 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4648 if ${libc_cv_autoconf_works+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
4652 libc_cv_autoconf_works=yes
4653 else
4654 libc_cv_autoconf_works=no
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
4658 $as_echo "$libc_cv_autoconf_works" >&6; }
4659 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4661 esac
4662 if test "x$AUTOCONF" = xno; then
4663 aux_missing="$aux_missing autoconf"
4665 else
4666 AUTOCONF=no
4669 # Check for python3 if available, or else python.
4670 for ac_prog in python3 python
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$PYTHON_PROG"; then
4680 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_PYTHON_PROG="$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
4700 if test -n "$PYTHON_PROG"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
4702 $as_echo "$PYTHON_PROG" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$PYTHON_PROG" && break
4710 done
4712 if test -z "$PYTHON_PROG"; then
4713 ac_verc_fail=yes
4714 else
4715 # Found it, now check the version.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
4717 $as_echo_n "checking version of $PYTHON_PROG... " >&6; }
4718 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4719 case $ac_prog_version in
4720 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4721 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
4722 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4723 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4725 esac
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4727 $as_echo "$ac_prog_version" >&6; }
4729 if test $ac_verc_fail = yes; then
4730 critic_missing="$critic_missing python"
4733 PYTHON="$PYTHON_PROG -B"
4736 test -n "$critic_missing" && as_fn_error $? "
4737 *** These critical programs are missing or too old:$critic_missing
4738 *** Check the INSTALL file for required versions." "$LINENO" 5
4740 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4741 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4742 *** some features or tests will be disabled.
4743 *** Check the INSTALL file for required versions." >&5
4744 $as_echo "$as_me: WARNING:
4745 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4746 *** some features or tests will be disabled.
4747 *** Check the INSTALL file for required versions." >&2;}
4750 # Determine whether to use fpu or nofpu sysdeps directories.
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
4752 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
4753 if ${libc_cv_with_fp+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat > conftest.c <<EOF
4757 #if $with_fp_cond
4758 int dummy;
4759 #else
4760 # error "no hardware floating point"
4761 #endif
4763 libc_cv_with_fp=no
4764 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
4765 1>&5 2>&5 ; then
4766 libc_cv_with_fp=yes
4768 rm -f conftest*
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
4771 $as_echo "$libc_cv_with_fp" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
4775 $as_echo_n "checking for -fstack-protector... " >&6; }
4776 if ${libc_cv_ssp+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
4780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }; }; then :
4785 libc_cv_ssp=yes
4786 else
4787 libc_cv_ssp=no
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
4792 $as_echo "$libc_cv_ssp" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
4795 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
4796 if ${libc_cv_ssp_strong+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
4800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }; }; then :
4805 libc_cv_ssp_strong=yes
4806 else
4807 libc_cv_ssp_strong=no
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
4812 $as_echo "$libc_cv_ssp_strong" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
4815 $as_echo_n "checking for -fstack-protector-all... " >&6; }
4816 if ${libc_cv_ssp_all+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
4820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824 test $ac_status = 0; }; }; then :
4825 libc_cv_ssp_all=yes
4826 else
4827 libc_cv_ssp_all=no
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
4832 $as_echo "$libc_cv_ssp_all" >&6; }
4834 stack_protector=
4835 no_stack_protector=
4836 if test "$libc_cv_ssp" = yes; then
4837 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
4838 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
4842 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
4843 stack_protector="-fstack-protector"
4844 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
4846 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
4847 stack_protector="-fstack-protector-all"
4848 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
4850 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
4851 stack_protector="-fstack-protector-strong"
4852 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
4854 else
4855 stack_protector="-fno-stack-protector"
4856 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
4863 if test -n "$stack_protector"; then
4864 no_ssp=-fno-stack-protector
4865 else
4866 no_ssp=
4868 if test "$enable_stack_protector" != no; then
4869 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
4873 # For the multi-arch option we need support in the assembler & linker.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4875 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4876 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat > conftest.S <<EOF
4880 .type foo,%gnu_indirect_function
4881 foo:
4882 .globl _start
4883 _start:
4884 .globl __start
4885 __start:
4886 .data
4887 #ifdef _LP64
4888 .quad foo
4889 #else
4890 .long foo
4891 #endif
4893 libc_cv_ld_gnu_indirect_function=no
4894 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4895 -nostartfiles -nostdlib $no_ssp \
4896 -o conftest conftest.S 1>&5 2>&5; then
4897 # Do a link to see if the backend supports IFUNC relocs.
4898 $READELF -r conftest 1>&5
4899 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
4900 libc_cv_ld_gnu_indirect_function=yes
4903 rm -f conftest*
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4906 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4908 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
4910 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
4911 if ${libc_cv_gcc_indirect_function+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat > conftest.c <<EOF
4915 extern int func (int);
4916 int used_func (int a)
4918 return a;
4920 static void *resolver ()
4922 return &used_func;
4924 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
4926 libc_cv_gcc_indirect_function=no
4927 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
4928 2>&5 ; then
4929 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
4930 libc_cv_gcc_indirect_function=yes
4933 rm -f conftest*
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4936 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4938 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
4939 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
4941 $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; }
4942 if ${libc_cv_textrel_ifunc+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 cat > conftest.S <<EOF
4946 .type foo,%gnu_indirect_function
4947 foo:
4948 .globl _start
4949 _start:
4950 .globl __start
4951 __start:
4952 .data
4953 #ifdef _LP64
4954 .quad foo
4955 #else
4956 .long foo
4957 #endif
4958 .text
4959 .globl address
4960 address:
4961 #ifdef _LP64
4962 .quad address
4963 #else
4964 .long address
4965 #endif
4967 libc_cv_textrel_ifunc=no
4968 if test $libc_cv_ld_gnu_indirect_function = yes; then
4969 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
4970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974 test $ac_status = 0; }; }; then
4975 libc_cv_textrel_ifunc=yes
4978 rm -f conftest*
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
4981 $as_echo "$libc_cv_textrel_ifunc" >&6; }
4984 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
4986 $as_echo_n "checking for GNU attribute retain support... " >&6; }
4987 if ${libc_cv_gnu_retain+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat > conftest.c <<EOF
4991 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
4993 libc_cv_gnu_retain=no
4994 if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
4995 2>&5 ; then
4996 libc_cv_gnu_retain=yes
4998 rm -f conftest*
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
5001 $as_echo "$libc_cv_gnu_retain" >&6; }
5002 if test $libc_cv_gnu_retain = yes; then
5003 $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h
5006 config_vars="$config_vars
5007 have-gnu-retain = $libc_cv_gnu_retain"
5009 # Check if gcc warns about alias for function with incompatible types.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
5011 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
5012 if ${libc_cv_gcc_incompatible_alias+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat > conftest.c <<EOF
5016 int __redirect_foo (const void *s, int c);
5018 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
5019 __typeof (__redirect_foo) *foo_impl (void)
5021 return 0;
5024 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
5026 libc_cv_gcc_incompatible_alias=yes
5027 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
5028 libc_cv_gcc_incompatible_alias=no
5030 rm -f conftest*
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
5033 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
5035 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
5036 if test x"$multi_arch" = xyes; then
5037 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
5038 else
5039 multi_arch=no
5042 if test x"$libc_cv_gcc_indirect_function" != xyes; then
5043 # GCC 8+ emits a warning for alias with incompatible types and it might
5044 # fail to build ifunc resolvers aliases to either weak or internal
5045 # symbols. Disables multiarch build in this case.
5046 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
5048 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
5049 if test x"$multi_arch" = xyes; then
5050 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
5053 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
5054 multi_arch=no
5055 elif test x"$multi_arch" = xyes; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5057 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
5058 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5059 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
5062 multi_arch_d=
5063 if test x"$multi_arch" != xno; then
5064 multi_arch_d=/multiarch
5067 # Compute the list of sysdep directories for this configuration.
5068 # This can take a while to compute.
5069 sysdep_dir=$srcdir/sysdeps
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
5071 $as_echo_n "checking sysdep dirs... " >&6; }
5072 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
5073 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
5075 test "x$base_os" != x || case "$os" in
5076 gnu*)
5077 base_os=mach/hurd ;;
5078 linux*)
5079 base_os=unix/sysv ;;
5080 esac
5082 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
5083 tail=$os
5084 ostry=$os
5085 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
5086 ostry="$ostry /$o"
5087 tail=$o
5088 done
5089 o=`echo $tail | sed 's/[0-9]*$//'`
5090 if test $o != $tail; then
5091 ostry="$ostry /$o"
5093 # For linux-gnu, try linux-gnu, then linux.
5094 o=`echo $tail | sed 's/-.*$//'`
5095 if test $o != $tail; then
5096 ostry="$ostry /$o"
5099 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
5100 base=
5101 tail=$base_os
5102 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
5103 set $b
5104 base="$base /$1"
5105 tail="$2"
5106 done
5108 # For sparc/sparc32, try sparc/sparc32 and then sparc.
5109 mach=
5110 tail=$machine${submachine:+/$submachine}
5111 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
5112 set $m
5113 # Prepend the machine's FPU directory unless the architecture specific
5114 # preconfigure disables it.
5115 if test "$libc_cv_with_fp" = yes; then
5116 maybe_fpu=/fpu
5117 else
5118 maybe_fpu=/nofpu
5120 # For each machine term, try it with and then without /multiarch.
5121 for try_fpu in $maybe_fpu ''; do
5122 for try_multi in $multi_arch_d ''; do
5123 mach="$mach /$1$try_fpu$try_multi"
5124 done
5125 done
5126 tail="$2"
5127 done
5130 # Find what sysdep directories exist.
5131 sysnames=
5132 for b in $base ''; do
5133 for m0 in $mach ''; do
5134 for v in /$vendor ''; do
5135 test "$v" = / && continue
5136 for o in /$ostry ''; do
5137 test "$o" = / && continue
5138 for m in $mach ''; do
5139 try_suffix="$m0$b$v$o$m"
5140 if test -n "$try_suffix"; then
5141 try_srcdir="${srcdir}/"
5142 try="sysdeps$try_suffix"
5143 test -n "$enable_debug_configure" &&
5144 echo "$0 DEBUG: try $try" >&2
5145 if test -d "$try_srcdir$try"; then
5146 sysnames="$sysnames $try"
5147 { test -n "$o" || test -n "$b"; } && os_used=t
5148 { test -n "$m" || test -n "$m0"; } && machine_used=t
5149 case x${m0:-$m} in
5150 x*/$submachine) submachine_used=t ;;
5151 esac
5154 done
5155 done
5156 done
5157 done
5158 done
5160 # If the assembler supports gnu_indirect_function symbol type and the
5161 # architecture supports multi-arch, we enable multi-arch by default.
5162 case $sysnames in
5163 *"$multi_arch_d"*)
5166 test x"$multi_arch" = xdefault && multi_arch=no
5168 esac
5169 if test x"$multi_arch" != xno; then
5170 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
5175 if test -z "$os_used" && test "$os" != none; then
5176 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
5178 if test -z "$machine_used" && test "$machine" != none; then
5179 as_fn_error $? "The $machine is not supported." "$LINENO" 5
5181 if test -z "$submachine_used" && test -n "$submachine"; then
5182 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
5186 # We have now validated the configuration.
5188 # Expand the list of system names into a full list of directories
5189 # from each element's parent name and Implies file (if present).
5190 set $sysnames
5191 names=
5192 while test $# -gt 0; do
5193 name=$1
5194 shift
5196 case " $names " in *" $name "*)
5197 # Already in the list.
5198 continue
5199 esac
5201 # Report each name as we discover it, so there is no long pause in output.
5202 echo $ECHO_N "$name $ECHO_C" >&6
5204 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
5206 case $name in
5207 /*) xsrcdir= ;;
5208 *) xsrcdir=$srcdir/ ;;
5209 esac
5210 test -n "$enable_debug_configure" &&
5211 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
5213 for implies_file in Implies Implies-before Implies-after; do
5214 implies_type=`echo $implies_file | sed s/-/_/`
5215 eval ${implies_type}=
5216 if test -f $xsrcdir$name/$implies_file; then
5217 # Collect more names from the `Implies' file (removing comments).
5218 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
5219 for x in $implied_candidate; do
5220 found=no
5221 if test -d $xsrcdir$name_base/$x; then
5222 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
5223 found=yes
5225 try="sysdeps/$x"
5226 try_srcdir=$srcdir/
5227 test -n "$enable_debug_configure" &&
5228 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
5229 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
5230 then
5231 eval "${implies_type}=\"\$${implies_type} \$try\""
5232 found=yes
5234 if test $found = no; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
5236 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
5238 done
5240 done
5242 # Add NAME to the list of names.
5243 names="$names $name"
5245 # Find the parent of NAME, using the empty string if it has none.
5246 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
5248 test -n "$enable_debug_configure" &&
5249 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
5250 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
5252 # Add the names implied by NAME, and NAME's parent (if it has one), to
5253 # the list of names to be processed (the argument list). We prepend the
5254 # implied names to the list and append the parent. We want implied
5255 # directories to come before further directories inferred from the
5256 # configuration components; this ensures that for sysv4, unix/common
5257 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
5258 # after sysv4).
5259 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
5260 test -n "$sysnames" && set $sysnames
5261 done
5263 # Add the default directories.
5264 default_sysnames="sysdeps/generic"
5265 sysnames="$names $default_sysnames"
5267 # The other names were emitted during the scan.
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
5269 $as_echo "$default_sysnames" >&6; }
5271 # if using special system headers, find out the compiler's sekrit
5272 # header directory and add that to the list. NOTE: Only does the right
5273 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5274 if test -n "$sysheaders"; then
5275 SYSINCLUDES=-nostdinc
5276 for d in include include-fixed; do
5277 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5278 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5279 done
5280 SYSINCLUDES="$SYSINCLUDES \
5281 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5282 if test -n "$CXX"; then
5283 CXX_SYSINCLUDES=
5284 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5285 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5286 test "x$cxxheaders" != x &&
5287 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5288 done
5294 # Obtain some C++ header file paths. This is used to make a local
5295 # copy of those headers in Makerules.
5296 if test -n "$CXX"; then
5297 find_cxx_header () {
5298 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
5299 | $AWK '$1 == "."{print $2}'
5301 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5302 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5303 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
5309 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5310 # since this would lead to problems installing/building glibc.
5311 # LD_LIBRARY_PATH contains the current directory if one of the following
5312 # is true:
5313 # - one of the terminals (":" and ";") is the first or last sign
5314 # - two terminals occur directly after each other
5315 # - the path contains an element with a dot in it
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5317 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5318 case ${LD_LIBRARY_PATH} in
5319 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5320 ld_library_path_setting="contains current directory"
5323 ld_library_path_setting="ok"
5325 esac
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5327 $as_echo "$ld_library_path_setting" >&6; }
5328 if test "$ld_library_path_setting" != "ok"; then
5329 as_fn_error $? "
5330 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5331 *** building glibc. Please change the environment variable
5332 *** and run configure again." "$LINENO" 5
5335 # Extract the first word of "bash", so it can be a program name with args.
5336 set dummy bash; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_BASH_SHELL+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 case $BASH_SHELL in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5362 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5364 esac
5366 BASH_SHELL=$ac_cv_path_BASH_SHELL
5367 if test -n "$BASH_SHELL"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5369 $as_echo "$BASH_SHELL" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5377 # Extract the first word of "perl", so it can be a program name with args.
5378 set dummy perl; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_PERL+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 case $PERL in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5404 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5406 esac
5408 PERL=$ac_cv_path_PERL
5409 if test -n "$PERL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5411 $as_echo "$PERL" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5418 if test "$PERL" != no &&
5419 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5420 PERL=no
5422 # Extract the first word of "install-info", so it can be a program name with args.
5423 set dummy install-info; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $INSTALL_INFO in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5436 for as_dir in $as_dummy
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5450 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5452 esac
5454 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5455 if test -n "$INSTALL_INFO"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5457 $as_echo "$INSTALL_INFO" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5466 $as_echo_n "checking for .set assembler directive... " >&6; }
5467 if ${libc_cv_asm_set_directive+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat > conftest.s <<EOF
5471 .text
5472 foo:
5473 .set glibc_conftest_frobozz,foo
5474 .globl glibc_conftest_frobozz
5476 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5477 # (but it doesn't work), so we must do a linking check to be sure.
5478 cat > conftest1.c <<\EOF
5479 extern int glibc_conftest_frobozz;
5480 void _start() { glibc_conftest_frobozz = 1; }
5482 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5483 -nostartfiles -nostdlib $no_ssp \
5484 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5485 libc_cv_asm_set_directive=yes
5486 else
5487 libc_cv_asm_set_directive=no
5489 rm -f conftest*
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5492 $as_echo "$libc_cv_asm_set_directive" >&6; }
5493 if test $libc_cv_asm_set_directive = yes; then
5494 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5499 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5500 if ${libc_cv_protected_data+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 cat > conftest.c <<EOF
5504 int bar __attribute__ ((visibility ("protected"))) = 1;
5506 libc_cv_protected_data=no
5507 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }; }; then
5513 cat > conftest.c <<EOF
5514 extern int bar;
5515 int main (void) { return bar; }
5517 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
5518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5522 test $ac_status = 0; }; }; then
5523 libc_cv_protected_data=yes
5526 rm -f conftest.*
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5530 $as_echo "$libc_cv_protected_data" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5534 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5535 if ${libc_cv_insert+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 cat > conftest.c <<EOF
5539 int __attribute__ ((section(".bar"))) bar = 0x12345678;
5540 int test (void) { return bar; }
5542 cat > conftest.t <<EOF
5543 SECTIONS
5545 .bar : { *(.bar) }
5547 INSERT AFTER .rela.dyn;
5549 libc_cv_insert=no
5550 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555 test $ac_status = 0; }; }; then
5556 libc_cv_insert=yes
5558 rm -f conftest.*
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5562 $as_echo "$libc_cv_insert" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5566 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5567 if ${libc_cv_broken_alias_attribute+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat > conftest.c <<EOF
5571 extern int foo (int x) __asm ("xyzzy");
5572 int bar (int x) { return x; }
5573 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5574 extern int dfoo;
5575 extern __typeof (dfoo) dfoo __asm ("abccb");
5576 int dfoo = 1;
5578 libc_cv_broken_alias_attribute=yes
5579 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5584 test $ac_status = 0; }; }; then
5585 if grep 'xyzzy' conftest.s >/dev/null &&
5586 grep 'abccb' conftest.s >/dev/null; then
5587 libc_cv_broken_alias_attribute=no
5590 rm -f conftest.c conftest.s
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5594 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5595 if test $libc_cv_broken_alias_attribute = yes; then
5596 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5600 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5601 if ${libc_cv_have_sdata_section+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 echo "int i;" > conftest.c
5605 libc_cv_have_sdata_section=no
5606 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5607 | grep '\.sdata' >/dev/null; then
5608 libc_cv_have_sdata_section=yes
5610 rm -f conftest.c conftest.so
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5614 $as_echo "$libc_cv_have_sdata_section" >&6; }
5615 if test $libc_cv_have_sdata_section = yes; then
5616 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5621 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5622 if ${libc_cv_cc_with_libunwind+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5626 cat > conftest.c <<EOF
5627 int main (void) { return 0; }
5629 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5630 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5631 libc_cv_cc_with_libunwind=yes
5632 else
5633 libc_cv_cc_with_libunwind=no
5635 rm -f conftest*
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5638 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5640 if test $libc_cv_cc_with_libunwind = yes; then
5641 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5645 ASFLAGS_config=
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5647 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5648 if ${libc_cv_as_noexecstack+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat > conftest.c <<EOF
5652 void foo (void) { }
5654 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5655 -S -o conftest.s conftest.c 1>&5'
5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; } \
5661 && grep .note.GNU-stack conftest.s >/dev/null \
5662 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5663 -c -o conftest.o conftest.s 1>&5'
5664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; }; }
5669 then
5670 libc_cv_as_noexecstack=yes
5671 else
5672 libc_cv_as_noexecstack=no
5674 rm -f conftest*
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5677 $as_echo "$libc_cv_as_noexecstack" >&6; }
5678 if test $libc_cv_as_noexecstack = yes; then
5679 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5684 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5685 libc_linker_feature=no
5686 cat > conftest.c <<EOF
5687 int _start (void) { return 42; }
5689 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5690 -Wl,-z,execstack -nostdlib -nostartfiles
5691 -fPIC -shared -o conftest.so conftest.c
5692 1>&5'
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }; }
5698 then
5699 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
5700 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5701 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
5702 true
5703 else
5704 libc_linker_feature=yes
5707 rm -f conftest*
5708 if test $libc_linker_feature = yes; then
5709 libc_cv_z_execstack=yes
5710 else
5711 libc_cv_z_execstack=no
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5714 $as_echo "$libc_linker_feature" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
5718 $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
5719 libc_linker_feature=no
5720 cat > conftest.c <<EOF
5721 int _start (void) { return 42; }
5723 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5724 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
5725 -fPIC -shared -o conftest.so conftest.c
5726 1>&5'
5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }; }
5732 then
5733 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
5734 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5735 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
5736 true
5737 else
5738 libc_linker_feature=yes
5741 rm -f conftest*
5742 if test $libc_linker_feature = yes; then
5743 libc_cv_z_start_stop_gc=yes
5744 else
5745 libc_cv_z_start_stop_gc=no
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5748 $as_echo "$libc_linker_feature" >&6; }
5749 config_vars="$config_vars
5750 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
5753 $as_echo_n "checking for linker that supports --depaudit... " >&6; }
5754 libc_linker_feature=no
5755 cat > conftest.c <<EOF
5756 int _start (void) { return 42; }
5758 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5759 -Wl,--depaudit,x -nostdlib -nostartfiles
5760 -fPIC -shared -o conftest.so conftest.c
5761 1>&5'
5762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; }
5767 then
5768 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
5769 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5770 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
5771 true
5772 else
5773 libc_linker_feature=yes
5776 rm -f conftest*
5777 if test $libc_linker_feature = yes; then
5778 libc_cv_depaudit=yes
5779 else
5780 libc_cv_depaudit=no
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5783 $as_echo "$libc_linker_feature" >&6; }
5784 config_vars="$config_vars
5785 have-depaudit = $libc_cv_depaudit"
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
5788 $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; }
5789 libc_linker_feature=no
5790 cat > conftest.c <<EOF
5791 int _start (void) { return 42; }
5793 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5794 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
5795 -fPIC -shared -o conftest.so conftest.c
5796 1>&5'
5797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; }; }
5802 then
5803 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
5804 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5805 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
5806 true
5807 else
5808 libc_linker_feature=yes
5811 rm -f conftest*
5812 if test $libc_linker_feature = yes; then
5813 libc_cv_dt_relr=yes
5814 else
5815 libc_cv_dt_relr=no
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5818 $as_echo "$libc_linker_feature" >&6; }
5819 config_vars="$config_vars
5820 have-dt-relr = $libc_cv_dt_relr"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5823 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5824 libc_linker_feature=no
5825 cat > conftest.c <<EOF
5826 int _start (void) { return 42; }
5828 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5829 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5830 -fPIC -shared -o conftest.so conftest.c
5831 1>&5'
5832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; }; }
5837 then
5838 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
5839 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5840 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
5841 true
5842 else
5843 libc_linker_feature=yes
5846 rm -f conftest*
5847 if test $libc_linker_feature = yes; then
5848 libc_cv_no_dynamic_linker=yes
5849 else
5850 libc_cv_no_dynamic_linker=no
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5853 $as_echo "$libc_linker_feature" >&6; }
5854 config_vars="$config_vars
5855 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5858 $as_echo_n "checking for -static-pie... " >&6; }
5859 if ${libc_cv_static_pie+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; }; then :
5868 libc_cv_static_pie=yes
5869 else
5870 libc_cv_static_pie=no
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5875 $as_echo "$libc_cv_static_pie" >&6; }
5876 config_vars="$config_vars
5877 have-static-pie = $libc_cv_static_pie"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5880 $as_echo_n "checking for -fpie... " >&6; }
5881 if ${libc_cv_fpie+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; }; then :
5890 libc_cv_fpie=yes
5891 else
5892 libc_cv_fpie=no
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5897 $as_echo "$libc_cv_fpie" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5902 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5903 if ${libc_cv_has_glob_dat+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 cat > conftest.c <<EOF
5907 extern int mumble;
5908 int foo (void) { return mumble; }
5910 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5911 -fPIC -shared -o conftest.so conftest.c
5912 -nostdlib -nostartfiles $no_ssp
5913 1>&5'
5914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }; }
5919 then
5920 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
5921 libc_cv_has_glob_dat=yes
5922 else
5923 libc_cv_has_glob_dat=no
5925 else
5926 libc_cv_has_glob_dat=no
5928 rm -f conftest*
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5931 $as_echo "$libc_cv_has_glob_dat" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5935 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5936 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat > conftest.c <<EOF
5940 __thread int i;
5941 void foo (void)
5943 i = 10;
5946 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
5947 conftest.c -o conftest 1>&5'
5948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }; }
5953 then
5954 libc_cv_mtls_dialect_gnu2=yes
5955 else
5956 libc_cv_mtls_dialect_gnu2=no
5958 rm -f conftest*
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5961 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5963 config_vars="$config_vars
5964 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
5967 $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
5968 if ${libc_cv_wno_ignored_attributes+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat > conftest.c <<EOF
5972 void __foo (void)
5975 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
5976 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
5978 libc_cv_wno_ignored_attributes=""
5979 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }; }
5985 then
5986 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
5988 rm -f conftest*
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
5991 $as_echo "$libc_cv_wno_ignored_attributes" >&6; }
5992 config_vars="$config_vars
5993 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5996 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
5997 if ${libc_cv_have_section_quotes+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat > conftest.c <<EOF
6001 static const int foo
6002 __attribute__ ((section ("bar"))) = 1;
6004 if ${CC-cc} -S conftest.c -o conftest.s; then
6005 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6006 libc_cv_have_section_quotes=yes
6007 else
6008 libc_cv_have_section_quotes=no
6010 else
6011 libc_cv_have_section_quotes=unknown
6013 rm -f conftest.{c,s}
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6017 $as_echo "$libc_cv_have_section_quotes" >&6; }
6018 if test $libc_cv_have_section_quotes = yes; then
6019 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6024 $as_echo_n "checking for __builtin_memset... " >&6; }
6025 if ${libc_cv_gcc_builtin_memset+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat > conftest.c <<\EOF
6029 void zero (void *x)
6031 __builtin_memset (x, 0, 1000);
6034 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; };
6040 then
6041 libc_cv_gcc_builtin_memset=no
6042 else
6043 libc_cv_gcc_builtin_memset=yes
6045 rm -f conftest*
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6048 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6049 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6050 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6055 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6056 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat > conftest.c <<\EOF
6060 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6061 char *foo (const char *a, const char *b)
6063 return __builtin_strstr (a, b);
6066 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }; };
6072 then
6073 libc_cv_gcc_builtin_redirection=yes
6074 else
6075 libc_cv_gcc_builtin_redirection=no
6077 rm -f conftest*
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6080 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6081 if test "$libc_cv_gcc_builtin_redirection" = no; then
6082 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6086 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6087 if ${libc_cv_cc_nofma+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 libc_cv_cc_nofma=
6091 for opt in -ffp-contract=off -mno-fused-madd; do
6092 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; }; then :
6098 libc_cv_cc_nofma=$opt; break
6100 done
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6103 $as_echo "$libc_cv_cc_nofma" >&6; }
6106 if test -n "$submachine"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6108 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6109 if ${libc_cv_cc_submachine+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 libc_cv_cc_submachine=no
6113 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6114 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }; }; then :
6121 libc_cv_cc_submachine="$opt"
6122 break
6124 done
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6127 $as_echo "$libc_cv_cc_submachine" >&6; }
6128 if test "x$libc_cv_cc_submachine" = xno; then
6129 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
6135 $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; }
6136 if ${libc_cv_cc_signaling_nans+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; }; then :
6145 libc_cv_cc_signaling_nans=-fsignaling-nans
6146 else
6147 libc_cv_cc_signaling_nans=
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
6152 $as_echo "$libc_cv_cc_signaling_nans" >&6; }
6153 config_vars="$config_vars
6154 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6157 __attribute__ ((__optimize__))" >&5
6158 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6159 __attribute__ ((__optimize__))... " >&6; }
6160 if ${libc_cv_cc_loop_to_function+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat > conftest.c <<EOF
6164 void
6165 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6166 foo (void) {}
6168 libc_cv_cc_loop_to_function=no
6169 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; }
6175 then
6176 libc_cv_cc_loop_to_function=yes
6178 rm -f conftest*
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6181 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6182 if test $libc_cv_cc_loop_to_function = yes; then
6183 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6189 $as_echo_n "checking for libgd... " >&6; }
6190 if test "$with_gd" != "no"; then
6191 old_CFLAGS="$CFLAGS"
6192 CFLAGS="$CFLAGS $libgd_include"
6193 old_LDFLAGS="$LDFLAGS"
6194 LDFLAGS="$LDFLAGS $libgd_ldflags"
6195 old_LIBS="$LIBS"
6196 LIBS="$LIBS -lgd -lpng -lz -lm"
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <gd.h>
6201 main ()
6203 gdImagePng (0, 0)
6205 return 0;
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 LIBGD=yes
6210 else
6211 LIBGD=no
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 CFLAGS="$old_CFLAGS"
6216 LDFLAGS="$old_LDFLAGS"
6217 LIBS="$old_LIBS"
6218 else
6219 LIBGD=no
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6222 $as_echo "$LIBGD" >&6; }
6225 # SELinux detection
6226 if test x$with_selinux = xno ; then
6227 have_selinux=no;
6228 else
6229 # See if we have the SELinux library
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6231 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6232 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 ac_check_lib_save_LIBS=$LIBS
6236 LIBS="-lselinux $LIBS"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6243 #ifdef __cplusplus
6244 extern "C"
6245 #endif
6246 char is_selinux_enabled ();
6248 main ()
6250 return is_selinux_enabled ();
6252 return 0;
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 ac_cv_lib_selinux_is_selinux_enabled=yes
6257 else
6258 ac_cv_lib_selinux_is_selinux_enabled=no
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 LIBS=$ac_check_lib_save_LIBS
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6265 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6266 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6267 have_selinux=yes
6268 else
6269 have_selinux=no
6272 if test x$with_selinux = xyes ; then
6273 if test x$have_selinux = xno ; then
6274 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6278 # Check if we're building with SELinux support.
6279 if test "x$have_selinux" = xyes; then
6281 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6284 # See if we have the libaudit library
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6286 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6287 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-laudit $LIBS"
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* Override any GCC internal prototype to avoid an error.
6296 Use char because int might match the return type of a GCC
6297 builtin and then its argument prototype would still apply. */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 char audit_log_user_avc_message ();
6303 main ()
6305 return audit_log_user_avc_message ();
6307 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_cv_lib_audit_audit_log_user_avc_message=yes
6312 else
6313 ac_cv_lib_audit_audit_log_user_avc_message=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_check_lib_save_LIBS
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6320 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6321 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6322 have_libaudit=yes
6323 else
6324 have_libaudit=no
6327 if test "x$have_libaudit" = xyes; then
6329 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6334 # See if we have the libcap library
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6336 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6337 if ${ac_cv_lib_cap_cap_init+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-lcap $LIBS"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6345 /* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 char cap_init ();
6353 main ()
6355 return cap_init ();
6357 return 0;
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 ac_cv_lib_cap_cap_init=yes
6362 else
6363 ac_cv_lib_cap_cap_init=no
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6370 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6371 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6372 have_libcap=yes
6373 else
6374 have_libcap=no
6377 if test "x$have_libcap" = xyes; then
6379 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6386 CPPUNDEFS=
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6388 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6389 if ${libc_cv_predef_fortify_source+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6396 main ()
6399 #ifdef _FORTIFY_SOURCE
6400 # error bogon
6401 #endif
6403 return 0;
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 libc_cv_predef_fortify_source=no
6408 else
6409 libc_cv_predef_fortify_source=yes
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6414 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6415 if test $libc_cv_predef_fortify_source = yes; then
6416 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
6421 $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; }
6422 if ${libc_cv_symver_needs_alias+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 cat > conftest.s <<EOF
6426 .text
6427 testfunc:
6428 .globl testfunc
6429 .symver testfunc, testfunc1@VERSION1
6430 .symver testfunc, testfunc1@VERSION2
6432 libc_cv_symver_needs_alias=no
6433 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
6434 libc_cv_symver_needs_alias=no
6435 else
6436 libc_cv_symver_needs_alias=yes
6438 rm conftest.*
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
6442 $as_echo "$libc_cv_symver_needs_alias" >&6; }
6443 if test "$libc_cv_symver_needs_alias" = yes; then
6444 $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6449 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6450 if ${libc_cv_builtin_trap+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 libc_cv_builtin_trap=no
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6458 main ()
6460 __builtin_trap ()
6462 return 0;
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6467 libc_undefs=`$NM -u conftest.o |
6468 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6469 2>&5` || {
6470 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6472 echo >&5 "libc_undefs='$libc_undefs'"
6473 if test -z "$libc_undefs"; then
6474 libc_cv_builtin_trap=yes
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6480 $as_echo "$libc_cv_builtin_trap" >&6; }
6481 if test $libc_cv_builtin_trap = yes; then
6482 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6486 ac_ext=cpp
6487 ac_cpp='$CXXCPP $CPPFLAGS'
6488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6494 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6495 if ${libc_cv_cxx_thread_local+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6499 old_CXXFLAGS="$CXXFLAGS"
6500 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 #include <thread>
6506 // Compiler support.
6507 struct S
6509 S ();
6510 ~S ();
6512 thread_local S s;
6513 S * get () { return &s; }
6515 // libstdc++ support.
6516 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6517 #error __cxa_thread_atexit_impl not supported
6518 #endif
6520 _ACEOF
6521 if ac_fn_cxx_try_compile "$LINENO"; then :
6522 libc_cv_cxx_thread_local=yes
6523 else
6524 libc_cv_cxx_thread_local=no
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 CXXFLAGS="$old_CXXFLAGS"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6531 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6534 ac_ext=c
6535 ac_cpp='$CPP $CPPFLAGS'
6536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541 ### End of automated tests.
6542 ### Now run sysdeps configure fragments.
6544 # They also can set these variables.
6545 use_ldconfig=no
6546 ldd_rewrite_script=no
6547 libc_cv_sysconfdir=$sysconfdir
6548 libc_cv_localstatedir=$localstatedir
6549 libc_cv_gcc_unwind_find_fde=no
6550 libc_cv_idn=no
6551 pthread_in_libc=yes
6553 # Iterate over all the sysdep directories we will use, running their
6554 # configure fragments.
6555 for dir in $sysnames; do
6556 case $dir in
6557 /*) dest=$dir ;;
6558 *) dest=$srcdir/$dir ;;
6559 esac
6560 if test -r $dest/configure; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6562 $as_echo "running configure fragment for $dir" >&6; }
6563 . $dest/configure
6565 done
6567 if test x"$build_mathvec" = xnotset; then
6568 build_mathvec=no
6570 config_vars="$config_vars
6571 build-mathvec = $build_mathvec"
6576 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6577 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6582 # A sysdeps configure fragment can reset this if IFUNC is not actually
6583 # usable even though the assembler knows how to generate the symbol type.
6584 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6585 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6588 config_vars="$config_vars
6589 have-ifunc = $libc_cv_ld_gnu_indirect_function"
6591 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6592 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6595 config_vars="$config_vars
6596 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
6598 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6599 # configure fragment can override the value to prevent this AC_DEFINE.
6601 if test "x$use_nscd" != xno; then
6602 $as_echo "#define USE_NSCD 1" >>confdefs.h
6605 if test "x$build_nscd" = xdefault; then
6606 build_nscd=$use_nscd
6616 if test x$use_ldconfig = xyes; then
6617 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6627 $as_echo_n "checking whether -fPIC is default... " >&6; }
6628 if ${libc_cv_pic_default+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 libc_cv_pic_default=yes
6632 cat > conftest.c <<EOF
6633 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6634 # error PIC is default.
6635 #endif
6637 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6638 libc_cv_pic_default=no
6640 rm -f conftest.*
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6643 $as_echo "$libc_cv_pic_default" >&6; }
6644 config_vars="$config_vars
6645 build-pic-default = $libc_cv_pic_default"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6648 $as_echo_n "checking whether -fPIE is default... " >&6; }
6649 if ${libc_cv_cc_pie_default+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 libc_cv_cc_pie_default=yes
6653 cat > conftest.c <<EOF
6654 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6655 # error PIE is default.
6656 #endif
6658 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6659 libc_cv_cc_pie_default=no
6661 rm -f conftest.*
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
6664 $as_echo "$libc_cv_cc_pie_default" >&6; }
6665 config_vars="$config_vars
6666 cc-pie-default = $libc_cv_cc_pie_default"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
6669 $as_echo_n "checking if we can build programs as PIE... " >&6; }
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #ifdef PIE_UNSUPPORTED
6673 # error PIE is not supported
6674 #endif
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 libc_cv_pie_supported=yes
6678 else
6679 libc_cv_pie_supported=no
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
6683 $as_echo "$libc_cv_pie_supported" >&6; }
6684 # Disable build-pie-default if target does not support it or glibc is
6685 # configured with --disable-default-pie.
6686 if test "x$default_pie" = xno; then
6687 build_pie_default=no
6688 else
6689 build_pie_default=$libc_cv_pie_supported
6691 config_vars="$config_vars
6692 build-pie-default = $build_pie_default"
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
6695 $as_echo_n "checking if we can build static PIE programs... " >&6; }
6696 libc_cv_static_pie_supported=$libc_cv_pie_supported
6697 if test "x$libc_cv_pie_supported" != xno \
6698 -a "$libc_cv_no_dynamic_linker" = yes; then
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #ifndef SUPPORT_STATIC_PIE
6702 # error static PIE is not supported
6703 #endif
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 libc_cv_static_pie_supported=yes
6707 else
6708 libc_cv_static_pie_supported=no
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
6713 $as_echo "$libc_cv_static_pie_supported" >&6; }
6715 # Enable static-pie only if it is available and glibc isn't configured
6716 # with --disable-default-pie.
6717 if test "x$default_pie" = xno; then
6718 libc_cv_static_pie=no
6719 else
6720 libc_cv_static_pie=$libc_cv_static_pie_supported
6722 if test "$libc_cv_static_pie" = "yes"; then
6723 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6726 config_vars="$config_vars
6727 enable-static-pie = $libc_cv_static_pie"
6729 # Set the `multidir' variable by grabbing the variable from the compiler.
6730 # We do it once and save the result in a generated makefile.
6731 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6741 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6742 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6746 if test "$pthread_in_libc" = yes; then
6747 $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h
6752 ac_config_files="$ac_config_files config.make Makefile"
6754 ac_config_commands="$ac_config_commands default"
6756 cat >confcache <<\_ACEOF
6757 # This file is a shell script that caches the results of configure
6758 # tests run on this system so they can be shared between configure
6759 # scripts and configure runs, see configure's option --config-cache.
6760 # It is not useful on other systems. If it contains results you don't
6761 # want to keep, you may remove or edit it.
6763 # config.status only pays attention to the cache file if you give it
6764 # the --recheck option to rerun configure.
6766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6768 # following values.
6770 _ACEOF
6772 # The following way of writing the cache mishandles newlines in values,
6773 # but we know of no workaround that is simple, portable, and efficient.
6774 # So, we kill variables containing newlines.
6775 # Ultrix sh set writes to stderr and can't be redirected directly,
6776 # and sets the high bit in the cache file unless we assign to the vars.
6778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6779 eval ac_val=\$$ac_var
6780 case $ac_val in #(
6781 *${as_nl}*)
6782 case $ac_var in #(
6783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6785 esac
6786 case $ac_var in #(
6787 _ | IFS | as_nl) ;; #(
6788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6789 *) { eval $ac_var=; unset $ac_var;} ;;
6790 esac ;;
6791 esac
6792 done
6794 (set) 2>&1 |
6795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6796 *${as_nl}ac_space=\ *)
6797 # `set' does not quote correctly, so add quotes: double-quote
6798 # substitution turns \\\\ into \\, and sed turns \\ into \.
6799 sed -n \
6800 "s/'/'\\\\''/g;
6801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6802 ;; #(
6804 # `set' quotes correctly as required by POSIX, so do not add quotes.
6805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6807 esac |
6808 sort
6810 sed '
6811 /^ac_cv_env_/b end
6812 t clear
6813 :clear
6814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6815 t end
6816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6817 :end' >>confcache
6818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6819 if test -w "$cache_file"; then
6820 if test "x$cache_file" != "x/dev/null"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6822 $as_echo "$as_me: updating cache $cache_file" >&6;}
6823 if test ! -f "$cache_file" || test -h "$cache_file"; then
6824 cat confcache >"$cache_file"
6825 else
6826 case $cache_file in #(
6827 */* | ?:*)
6828 mv -f confcache "$cache_file"$$ &&
6829 mv -f "$cache_file"$$ "$cache_file" ;; #(
6831 mv -f confcache "$cache_file" ;;
6832 esac
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6837 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6840 rm -f confcache
6842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6843 # Let make expand exec_prefix.
6844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6846 DEFS=-DHAVE_CONFIG_H
6848 ac_libobjs=
6849 ac_ltlibobjs=
6851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6852 # 1. Remove the extension, and $U if already installed.
6853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6856 # will be set to the directory where LIBOBJS objects are built.
6857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6859 done
6860 LIBOBJS=$ac_libobjs
6862 LTLIBOBJS=$ac_ltlibobjs
6866 : "${CONFIG_STATUS=./config.status}"
6867 ac_write_fail=0
6868 ac_clean_files_save=$ac_clean_files
6869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6872 as_write_fail=0
6873 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6874 #! $SHELL
6875 # Generated by $as_me.
6876 # Run this file to recreate the current configuration.
6877 # Compiler output produced by configure, useful for debugging
6878 # configure, is in config.log if it exists.
6880 debug=false
6881 ac_cs_recheck=false
6882 ac_cs_silent=false
6884 SHELL=\${CONFIG_SHELL-$SHELL}
6885 export SHELL
6886 _ASEOF
6887 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6888 ## -------------------- ##
6889 ## M4sh Initialization. ##
6890 ## -------------------- ##
6892 # Be more Bourne compatible
6893 DUALCASE=1; export DUALCASE # for MKS sh
6894 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6895 emulate sh
6896 NULLCMD=:
6897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6898 # is contrary to our usage. Disable this feature.
6899 alias -g '${1+"$@"}'='"$@"'
6900 setopt NO_GLOB_SUBST
6901 else
6902 case `(set -o) 2>/dev/null` in #(
6903 *posix*) :
6904 set -o posix ;; #(
6905 *) :
6907 esac
6911 as_nl='
6913 export as_nl
6914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6915 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6918 # Prefer a ksh shell builtin over an external printf program on Solaris,
6919 # but without wasting forks for bash or zsh.
6920 if test -z "$BASH_VERSION$ZSH_VERSION" \
6921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6922 as_echo='print -r --'
6923 as_echo_n='print -rn --'
6924 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6925 as_echo='printf %s\n'
6926 as_echo_n='printf %s'
6927 else
6928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6930 as_echo_n='/usr/ucb/echo -n'
6931 else
6932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6933 as_echo_n_body='eval
6934 arg=$1;
6935 case $arg in #(
6936 *"$as_nl"*)
6937 expr "X$arg" : "X\\(.*\\)$as_nl";
6938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6939 esac;
6940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6942 export as_echo_n_body
6943 as_echo_n='sh -c $as_echo_n_body as_echo'
6945 export as_echo_body
6946 as_echo='sh -c $as_echo_body as_echo'
6949 # The user is always right.
6950 if test "${PATH_SEPARATOR+set}" != set; then
6951 PATH_SEPARATOR=:
6952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6954 PATH_SEPARATOR=';'
6959 # IFS
6960 # We need space, tab and new line, in precisely that order. Quoting is
6961 # there to prevent editors from complaining about space-tab.
6962 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6963 # splitting by setting IFS to empty value.)
6964 IFS=" "" $as_nl"
6966 # Find who we are. Look in the path if we contain no directory separator.
6967 as_myself=
6968 case $0 in #((
6969 *[\\/]* ) as_myself=$0 ;;
6970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6976 done
6977 IFS=$as_save_IFS
6980 esac
6981 # We did not find ourselves, most probably we were run as `sh COMMAND'
6982 # in which case we are not to be found in the path.
6983 if test "x$as_myself" = x; then
6984 as_myself=$0
6986 if test ! -f "$as_myself"; then
6987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6988 exit 1
6991 # Unset variables that we do not need and which cause bugs (e.g. in
6992 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6993 # suppresses any "Segmentation fault" message there. '((' could
6994 # trigger a bug in pdksh 5.2.14.
6995 for as_var in BASH_ENV ENV MAIL MAILPATH
6996 do eval test x\${$as_var+set} = xset \
6997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6998 done
6999 PS1='$ '
7000 PS2='> '
7001 PS4='+ '
7003 # NLS nuisances.
7004 LC_ALL=C
7005 export LC_ALL
7006 LANGUAGE=C
7007 export LANGUAGE
7009 # CDPATH.
7010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7013 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7014 # ----------------------------------------
7015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7017 # script with STATUS, using 1 if that was 0.
7018 as_fn_error ()
7020 as_status=$1; test $as_status -eq 0 && as_status=1
7021 if test "$4"; then
7022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7025 $as_echo "$as_me: error: $2" >&2
7026 as_fn_exit $as_status
7027 } # as_fn_error
7030 # as_fn_set_status STATUS
7031 # -----------------------
7032 # Set $? to STATUS, without forking.
7033 as_fn_set_status ()
7035 return $1
7036 } # as_fn_set_status
7038 # as_fn_exit STATUS
7039 # -----------------
7040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7041 as_fn_exit ()
7043 set +e
7044 as_fn_set_status $1
7045 exit $1
7046 } # as_fn_exit
7048 # as_fn_unset VAR
7049 # ---------------
7050 # Portably unset VAR.
7051 as_fn_unset ()
7053 { eval $1=; unset $1;}
7055 as_unset=as_fn_unset
7056 # as_fn_append VAR VALUE
7057 # ----------------------
7058 # Append the text in VALUE to the end of the definition contained in VAR. Take
7059 # advantage of any shell optimizations that allow amortized linear growth over
7060 # repeated appends, instead of the typical quadratic growth present in naive
7061 # implementations.
7062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7063 eval 'as_fn_append ()
7065 eval $1+=\$2
7067 else
7068 as_fn_append ()
7070 eval $1=\$$1\$2
7072 fi # as_fn_append
7074 # as_fn_arith ARG...
7075 # ------------------
7076 # Perform arithmetic evaluation on the ARGs, and store the result in the
7077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7078 # must be portable across $(()) and expr.
7079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7080 eval 'as_fn_arith ()
7082 as_val=$(( $* ))
7084 else
7085 as_fn_arith ()
7087 as_val=`expr "$@" || test $? -eq 1`
7089 fi # as_fn_arith
7092 if expr a : '\(a\)' >/dev/null 2>&1 &&
7093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7094 as_expr=expr
7095 else
7096 as_expr=false
7099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7100 as_basename=basename
7101 else
7102 as_basename=false
7105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7106 as_dirname=dirname
7107 else
7108 as_dirname=false
7111 as_me=`$as_basename -- "$0" ||
7112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7113 X"$0" : 'X\(//\)$' \| \
7114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7115 $as_echo X/"$0" |
7116 sed '/^.*\/\([^/][^/]*\)\/*$/{
7117 s//\1/
7120 /^X\/\(\/\/\)$/{
7121 s//\1/
7124 /^X\/\(\/\).*/{
7125 s//\1/
7128 s/.*/./; q'`
7130 # Avoid depending upon Character Ranges.
7131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7134 as_cr_digits='0123456789'
7135 as_cr_alnum=$as_cr_Letters$as_cr_digits
7137 ECHO_C= ECHO_N= ECHO_T=
7138 case `echo -n x` in #(((((
7139 -n*)
7140 case `echo 'xy\c'` in
7141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7142 xy) ECHO_C='\c';;
7143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7144 ECHO_T=' ';;
7145 esac;;
7147 ECHO_N='-n';;
7148 esac
7150 rm -f conf$$ conf$$.exe conf$$.file
7151 if test -d conf$$.dir; then
7152 rm -f conf$$.dir/conf$$.file
7153 else
7154 rm -f conf$$.dir
7155 mkdir conf$$.dir 2>/dev/null
7157 if (echo >conf$$.file) 2>/dev/null; then
7158 if ln -s conf$$.file conf$$ 2>/dev/null; then
7159 as_ln_s='ln -s'
7160 # ... but there are two gotchas:
7161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7163 # In both cases, we have to default to `cp -pR'.
7164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7165 as_ln_s='cp -pR'
7166 elif ln conf$$.file conf$$ 2>/dev/null; then
7167 as_ln_s=ln
7168 else
7169 as_ln_s='cp -pR'
7171 else
7172 as_ln_s='cp -pR'
7174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7175 rmdir conf$$.dir 2>/dev/null
7178 # as_fn_mkdir_p
7179 # -------------
7180 # Create "$as_dir" as a directory, including parents if necessary.
7181 as_fn_mkdir_p ()
7184 case $as_dir in #(
7185 -*) as_dir=./$as_dir;;
7186 esac
7187 test -d "$as_dir" || eval $as_mkdir_p || {
7188 as_dirs=
7189 while :; do
7190 case $as_dir in #(
7191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7192 *) as_qdir=$as_dir;;
7193 esac
7194 as_dirs="'$as_qdir' $as_dirs"
7195 as_dir=`$as_dirname -- "$as_dir" ||
7196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7197 X"$as_dir" : 'X\(//\)[^/]' \| \
7198 X"$as_dir" : 'X\(//\)$' \| \
7199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7200 $as_echo X"$as_dir" |
7201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7202 s//\1/
7205 /^X\(\/\/\)[^/].*/{
7206 s//\1/
7209 /^X\(\/\/\)$/{
7210 s//\1/
7213 /^X\(\/\).*/{
7214 s//\1/
7217 s/.*/./; q'`
7218 test -d "$as_dir" && break
7219 done
7220 test -z "$as_dirs" || eval "mkdir $as_dirs"
7221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7224 } # as_fn_mkdir_p
7225 if mkdir -p . 2>/dev/null; then
7226 as_mkdir_p='mkdir -p "$as_dir"'
7227 else
7228 test -d ./-p && rmdir ./-p
7229 as_mkdir_p=false
7233 # as_fn_executable_p FILE
7234 # -----------------------
7235 # Test if FILE is an executable regular file.
7236 as_fn_executable_p ()
7238 test -f "$1" && test -x "$1"
7239 } # as_fn_executable_p
7240 as_test_x='test -x'
7241 as_executable_p=as_fn_executable_p
7243 # Sed expression to map a string onto a valid CPP name.
7244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7246 # Sed expression to map a string onto a valid variable name.
7247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7250 exec 6>&1
7251 ## ----------------------------------- ##
7252 ## Main body of $CONFIG_STATUS script. ##
7253 ## ----------------------------------- ##
7254 _ASEOF
7255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7258 # Save the log message, to keep $0 and so on meaningful, and to
7259 # report actual input values of CONFIG_FILES etc. instead of their
7260 # values after options handling.
7261 ac_log="
7262 This file was extended by GNU C Library $as_me (see version.h), which was
7263 generated by GNU Autoconf 2.69. Invocation command line was
7265 CONFIG_FILES = $CONFIG_FILES
7266 CONFIG_HEADERS = $CONFIG_HEADERS
7267 CONFIG_LINKS = $CONFIG_LINKS
7268 CONFIG_COMMANDS = $CONFIG_COMMANDS
7269 $ $0 $@
7271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7274 _ACEOF
7276 case $ac_config_files in *"
7277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7278 esac
7280 case $ac_config_headers in *"
7281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7282 esac
7285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7286 # Files that config.status was made for.
7287 config_files="$ac_config_files"
7288 config_headers="$ac_config_headers"
7289 config_commands="$ac_config_commands"
7291 _ACEOF
7293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7294 ac_cs_usage="\
7295 \`$as_me' instantiates files and other configuration actions
7296 from templates according to the current configuration. Unless the files
7297 and actions are specified as TAGs, all are instantiated by default.
7299 Usage: $0 [OPTION]... [TAG]...
7301 -h, --help print this help, then exit
7302 -V, --version print version number and configuration settings, then exit
7303 --config print configuration, then exit
7304 -q, --quiet, --silent
7305 do not print progress messages
7306 -d, --debug don't remove temporary files
7307 --recheck update $as_me by reconfiguring in the same conditions
7308 --file=FILE[:TEMPLATE]
7309 instantiate the configuration file FILE
7310 --header=FILE[:TEMPLATE]
7311 instantiate the configuration header FILE
7313 Configuration files:
7314 $config_files
7316 Configuration headers:
7317 $config_headers
7319 Configuration commands:
7320 $config_commands
7322 Report bugs to <https://sourceware.org/bugzilla/>.
7323 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
7324 General help using GNU software: <http://www.gnu.org/gethelp/>."
7326 _ACEOF
7327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7328 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7329 ac_cs_version="\\
7330 GNU C Library config.status (see version.h)
7331 configured by $0, generated by GNU Autoconf 2.69,
7332 with options \\"\$ac_cs_config\\"
7334 Copyright (C) 2012 Free Software Foundation, Inc.
7335 This config.status script is free software; the Free Software Foundation
7336 gives unlimited permission to copy, distribute and modify it."
7338 ac_pwd='$ac_pwd'
7339 srcdir='$srcdir'
7340 INSTALL='$INSTALL'
7341 test -n "\$AWK" || AWK=awk
7342 _ACEOF
7344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7345 # The default lists apply if the user does not specify any file.
7346 ac_need_defaults=:
7347 while test $# != 0
7349 case $1 in
7350 --*=?*)
7351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7353 ac_shift=:
7355 --*=)
7356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7357 ac_optarg=
7358 ac_shift=:
7361 ac_option=$1
7362 ac_optarg=$2
7363 ac_shift=shift
7365 esac
7367 case $ac_option in
7368 # Handling of the options.
7369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7370 ac_cs_recheck=: ;;
7371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7372 $as_echo "$ac_cs_version"; exit ;;
7373 --config | --confi | --conf | --con | --co | --c )
7374 $as_echo "$ac_cs_config"; exit ;;
7375 --debug | --debu | --deb | --de | --d | -d )
7376 debug=: ;;
7377 --file | --fil | --fi | --f )
7378 $ac_shift
7379 case $ac_optarg in
7380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7381 '') as_fn_error $? "missing file argument" ;;
7382 esac
7383 as_fn_append CONFIG_FILES " '$ac_optarg'"
7384 ac_need_defaults=false;;
7385 --header | --heade | --head | --hea )
7386 $ac_shift
7387 case $ac_optarg in
7388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7389 esac
7390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7391 ac_need_defaults=false;;
7392 --he | --h)
7393 # Conflict between --help and --header
7394 as_fn_error $? "ambiguous option: \`$1'
7395 Try \`$0 --help' for more information.";;
7396 --help | --hel | -h )
7397 $as_echo "$ac_cs_usage"; exit ;;
7398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7400 ac_cs_silent=: ;;
7402 # This is an error.
7403 -*) as_fn_error $? "unrecognized option: \`$1'
7404 Try \`$0 --help' for more information." ;;
7406 *) as_fn_append ac_config_targets " $1"
7407 ac_need_defaults=false ;;
7409 esac
7410 shift
7411 done
7413 ac_configure_extra_args=
7415 if $ac_cs_silent; then
7416 exec 6>/dev/null
7417 ac_configure_extra_args="$ac_configure_extra_args --silent"
7420 _ACEOF
7421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7422 if \$ac_cs_recheck; then
7423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7424 shift
7425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7426 CONFIG_SHELL='$SHELL'
7427 export CONFIG_SHELL
7428 exec "\$@"
7431 _ACEOF
7432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7433 exec 5>>config.log
7435 echo
7436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7437 ## Running $as_me. ##
7438 _ASBOX
7439 $as_echo "$ac_log"
7440 } >&5
7442 _ACEOF
7443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7445 # INIT-COMMANDS
7447 config_vars='$config_vars'
7449 _ACEOF
7451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7453 # Handling of arguments.
7454 for ac_config_target in $ac_config_targets
7456 case $ac_config_target in
7457 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7458 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7460 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7462 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7463 esac
7464 done
7467 # If the user did not use the arguments to specify the items to instantiate,
7468 # then the envvar interface is used. Set only those that are not.
7469 # We use the long form for the default assignment because of an extremely
7470 # bizarre bug on SunOS 4.1.3.
7471 if $ac_need_defaults; then
7472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7477 # Have a temporary directory for convenience. Make it in the build tree
7478 # simply because there is no reason against having it here, and in addition,
7479 # creating and moving files from /tmp can sometimes cause problems.
7480 # Hook for its removal unless debugging.
7481 # Note that there is a small window in which the directory will not be cleaned:
7482 # after its creation but before its name has been assigned to `$tmp'.
7483 $debug ||
7485 tmp= ac_tmp=
7486 trap 'exit_status=$?
7487 : "${ac_tmp:=$tmp}"
7488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7490 trap 'as_fn_exit 1' 1 2 13 15
7492 # Create a (secure) tmp directory for tmp files.
7495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7496 test -d "$tmp"
7497 } ||
7499 tmp=./conf$$-$RANDOM
7500 (umask 077 && mkdir "$tmp")
7501 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7502 ac_tmp=$tmp
7504 # Set up the scripts for CONFIG_FILES section.
7505 # No need to generate them if there are no CONFIG_FILES.
7506 # This happens for instance with `./config.status config.h'.
7507 if test -n "$CONFIG_FILES"; then
7510 ac_cr=`echo X | tr X '\015'`
7511 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7512 # But we know of no other shell where ac_cr would be empty at this
7513 # point, so we can use a bashism as a fallback.
7514 if test "x$ac_cr" = x; then
7515 eval ac_cr=\$\'\\r\'
7517 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7518 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7519 ac_cs_awk_cr='\\r'
7520 else
7521 ac_cs_awk_cr=$ac_cr
7524 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7525 _ACEOF
7529 echo "cat >conf$$subs.awk <<_ACEOF" &&
7530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7531 echo "_ACEOF"
7532 } >conf$$subs.sh ||
7533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7534 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7535 ac_delim='%!_!# '
7536 for ac_last_try in false false false false false :; do
7537 . ./conf$$subs.sh ||
7538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7541 if test $ac_delim_n = $ac_delim_num; then
7542 break
7543 elif $ac_last_try; then
7544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7545 else
7546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7548 done
7549 rm -f conf$$subs.sh
7551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7552 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7553 _ACEOF
7554 sed -n '
7556 s/^/S["/; s/!.*/"]=/
7559 s/^[^!]*!//
7560 :repl
7561 t repl
7562 s/'"$ac_delim"'$//
7563 t delim
7566 s/\(.\{148\}\)..*/\1/
7567 t more1
7568 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7571 b repl
7572 :more1
7573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7576 s/.\{148\}//
7577 t nl
7578 :delim
7580 s/\(.\{148\}\)..*/\1/
7581 t more2
7582 s/["\\]/\\&/g; s/^/"/; s/$/"/
7585 :more2
7586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7589 s/.\{148\}//
7590 t delim
7591 ' <conf$$subs.awk | sed '
7592 /^[^""]/{
7594 s/\n//
7596 ' >>$CONFIG_STATUS || ac_write_fail=1
7597 rm -f conf$$subs.awk
7598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7599 _ACAWK
7600 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7601 for (key in S) S_is_set[key] = 1
7602 FS = "\a"
7606 line = $ 0
7607 nfields = split(line, field, "@")
7608 substed = 0
7609 len = length(field[1])
7610 for (i = 2; i < nfields; i++) {
7611 key = field[i]
7612 keylen = length(key)
7613 if (S_is_set[key]) {
7614 value = S[key]
7615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7616 len += length(value) + length(field[++i])
7617 substed = 1
7618 } else
7619 len += 1 + keylen
7622 print line
7625 _ACAWK
7626 _ACEOF
7627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7628 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7630 else
7632 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7633 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7634 _ACEOF
7636 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7637 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7638 # trailing colons and then remove the whole line if VPATH becomes empty
7639 # (actually we leave an empty line to preserve line numbers).
7640 if test "x$srcdir" = x.; then
7641 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7643 s///
7644 s/^/:/
7645 s/[ ]*$/:/
7646 s/:\$(srcdir):/:/g
7647 s/:\${srcdir}:/:/g
7648 s/:@srcdir@:/:/g
7649 s/^:*//
7650 s/:*$//
7652 s/\(=[ ]*\).*/\1/
7654 s/\n//
7655 s/^[^=]*=[ ]*$//
7659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7660 fi # test -n "$CONFIG_FILES"
7662 # Set up the scripts for CONFIG_HEADERS section.
7663 # No need to generate them if there are no CONFIG_HEADERS.
7664 # This happens for instance with `./config.status Makefile'.
7665 if test -n "$CONFIG_HEADERS"; then
7666 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7667 BEGIN {
7668 _ACEOF
7670 # Transform confdefs.h into an awk script `defines.awk', embedded as
7671 # here-document in config.status, that substitutes the proper values into
7672 # config.h.in to produce config.h.
7674 # Create a delimiter string that does not exist in confdefs.h, to ease
7675 # handling of long lines.
7676 ac_delim='%!_!# '
7677 for ac_last_try in false false :; do
7678 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7679 if test -z "$ac_tt"; then
7680 break
7681 elif $ac_last_try; then
7682 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7683 else
7684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7686 done
7688 # For the awk script, D is an array of macro values keyed by name,
7689 # likewise P contains macro parameters if any. Preserve backslash
7690 # newline sequences.
7692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7693 sed -n '
7694 s/.\{148\}/&'"$ac_delim"'/g
7695 t rset
7696 :rset
7697 s/^[ ]*#[ ]*define[ ][ ]*/ /
7698 t def
7700 :def
7701 s/\\$//
7702 t bsnl
7703 s/["\\]/\\&/g
7704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7705 D["\1"]=" \3"/p
7706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7708 :bsnl
7709 s/["\\]/\\&/g
7710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7711 D["\1"]=" \3\\\\\\n"\\/p
7712 t cont
7713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7714 t cont
7716 :cont
7718 s/.\{148\}/&'"$ac_delim"'/g
7719 t clear
7720 :clear
7721 s/\\$//
7722 t bsnlc
7723 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7725 :bsnlc
7726 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7727 b cont
7728 ' <confdefs.h | sed '
7729 s/'"$ac_delim"'/"\\\
7730 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 for (key in D) D_is_set[key] = 1
7734 FS = "\a"
7736 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7737 line = \$ 0
7738 split(line, arg, " ")
7739 if (arg[1] == "#") {
7740 defundef = arg[2]
7741 mac1 = arg[3]
7742 } else {
7743 defundef = substr(arg[1], 2)
7744 mac1 = arg[2]
7746 split(mac1, mac2, "(") #)
7747 macro = mac2[1]
7748 prefix = substr(line, 1, index(line, defundef) - 1)
7749 if (D_is_set[macro]) {
7750 # Preserve the white space surrounding the "#".
7751 print prefix "define", macro P[macro] D[macro]
7752 next
7753 } else {
7754 # Replace #undef with comments. This is necessary, for example,
7755 # in the case of _POSIX_SOURCE, which is predefined and required
7756 # on some systems where configure will not decide to define it.
7757 if (defundef == "undef") {
7758 print "/*", prefix defundef, macro, "*/"
7759 next
7763 { print }
7764 _ACAWK
7765 _ACEOF
7766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7767 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7768 fi # test -n "$CONFIG_HEADERS"
7771 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7772 shift
7773 for ac_tag
7775 case $ac_tag in
7776 :[FHLC]) ac_mode=$ac_tag; continue;;
7777 esac
7778 case $ac_mode$ac_tag in
7779 :[FHL]*:*);;
7780 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7781 :[FH]-) ac_tag=-:-;;
7782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7783 esac
7784 ac_save_IFS=$IFS
7785 IFS=:
7786 set x $ac_tag
7787 IFS=$ac_save_IFS
7788 shift
7789 ac_file=$1
7790 shift
7792 case $ac_mode in
7793 :L) ac_source=$1;;
7794 :[FH])
7795 ac_file_inputs=
7796 for ac_f
7798 case $ac_f in
7799 -) ac_f="$ac_tmp/stdin";;
7800 *) # Look for the file first in the build tree, then in the source tree
7801 # (if the path is not absolute). The absolute path cannot be DOS-style,
7802 # because $ac_f cannot contain `:'.
7803 test -f "$ac_f" ||
7804 case $ac_f in
7805 [\\/$]*) false;;
7806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7807 esac ||
7808 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7809 esac
7810 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7811 as_fn_append ac_file_inputs " '$ac_f'"
7812 done
7814 # Let's still pretend it is `configure' which instantiates (i.e., don't
7815 # use $as_me), people would be surprised to read:
7816 # /* config.h. Generated by config.status. */
7817 configure_input='Generated from '`
7818 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7819 `' by configure.'
7820 if test x"$ac_file" != x-; then
7821 configure_input="$ac_file. $configure_input"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7823 $as_echo "$as_me: creating $ac_file" >&6;}
7825 # Neutralize special characters interpreted by sed in replacement strings.
7826 case $configure_input in #(
7827 *\&* | *\|* | *\\* )
7828 ac_sed_conf_input=`$as_echo "$configure_input" |
7829 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7830 *) ac_sed_conf_input=$configure_input;;
7831 esac
7833 case $ac_tag in
7834 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7836 esac
7838 esac
7840 ac_dir=`$as_dirname -- "$ac_file" ||
7841 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7842 X"$ac_file" : 'X\(//\)[^/]' \| \
7843 X"$ac_file" : 'X\(//\)$' \| \
7844 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7845 $as_echo X"$ac_file" |
7846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7847 s//\1/
7850 /^X\(\/\/\)[^/].*/{
7851 s//\1/
7854 /^X\(\/\/\)$/{
7855 s//\1/
7858 /^X\(\/\).*/{
7859 s//\1/
7862 s/.*/./; q'`
7863 as_dir="$ac_dir"; as_fn_mkdir_p
7864 ac_builddir=.
7866 case "$ac_dir" in
7867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7870 # A ".." for each directory in $ac_dir_suffix.
7871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7872 case $ac_top_builddir_sub in
7873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7875 esac ;;
7876 esac
7877 ac_abs_top_builddir=$ac_pwd
7878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7879 # for backward compatibility:
7880 ac_top_builddir=$ac_top_build_prefix
7882 case $srcdir in
7883 .) # We are building in place.
7884 ac_srcdir=.
7885 ac_top_srcdir=$ac_top_builddir_sub
7886 ac_abs_top_srcdir=$ac_pwd ;;
7887 [\\/]* | ?:[\\/]* ) # Absolute name.
7888 ac_srcdir=$srcdir$ac_dir_suffix;
7889 ac_top_srcdir=$srcdir
7890 ac_abs_top_srcdir=$srcdir ;;
7891 *) # Relative name.
7892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7893 ac_top_srcdir=$ac_top_build_prefix$srcdir
7894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7895 esac
7896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7899 case $ac_mode in
7902 # CONFIG_FILE
7905 case $INSTALL in
7906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7908 esac
7909 _ACEOF
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7912 # If the template does not know about datarootdir, expand it.
7913 # FIXME: This hack should be removed a few years after 2.60.
7914 ac_datarootdir_hack=; ac_datarootdir_seen=
7915 ac_sed_dataroot='
7916 /datarootdir/ {
7920 /@datadir@/p
7921 /@docdir@/p
7922 /@infodir@/p
7923 /@localedir@/p
7924 /@mandir@/p'
7925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7926 *datarootdir*) ac_datarootdir_seen=yes;;
7927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7930 _ACEOF
7931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7932 ac_datarootdir_hack='
7933 s&@datadir@&$datadir&g
7934 s&@docdir@&$docdir&g
7935 s&@infodir@&$infodir&g
7936 s&@localedir@&$localedir&g
7937 s&@mandir@&$mandir&g
7938 s&\\\${datarootdir}&$datarootdir&g' ;;
7939 esac
7940 _ACEOF
7942 # Neutralize VPATH when `$srcdir' = `.'.
7943 # Shell code in configure.ac might set extrasub.
7944 # FIXME: do we really want to maintain this feature?
7945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7946 ac_sed_extra="$ac_vpsub
7947 $extrasub
7948 _ACEOF
7949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7952 s|@configure_input@|$ac_sed_conf_input|;t t
7953 s&@top_builddir@&$ac_top_builddir_sub&;t t
7954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7955 s&@srcdir@&$ac_srcdir&;t t
7956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7957 s&@top_srcdir@&$ac_top_srcdir&;t t
7958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7959 s&@builddir@&$ac_builddir&;t t
7960 s&@abs_builddir@&$ac_abs_builddir&;t t
7961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7962 s&@INSTALL@&$ac_INSTALL&;t t
7963 $ac_datarootdir_hack
7965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7966 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7968 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7969 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7970 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7971 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7973 which seems to be undefined. Please make sure it is defined" >&5
7974 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7975 which seems to be undefined. Please make sure it is defined" >&2;}
7977 rm -f "$ac_tmp/stdin"
7978 case $ac_file in
7979 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7980 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7981 esac \
7982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7986 # CONFIG_HEADER
7988 if test x"$ac_file" != x-; then
7990 $as_echo "/* $configure_input */" \
7991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7992 } >"$ac_tmp/config.h" \
7993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7994 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7996 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7997 else
7998 rm -f "$ac_file"
7999 mv "$ac_tmp/config.h" "$ac_file" \
8000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8002 else
8003 $as_echo "/* $configure_input */" \
8004 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8005 || as_fn_error $? "could not create -" "$LINENO" 5
8009 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8010 $as_echo "$as_me: executing $ac_file commands" >&6;}
8012 esac
8015 case $ac_file$ac_mode in
8016 "default":C)
8017 case $CONFIG_FILES in *config.make*)
8018 echo "$config_vars" >> config.make;;
8019 esac
8020 test -d bits || mkdir bits ;;
8022 esac
8023 done # for ac_tag
8026 as_fn_exit 0
8027 _ACEOF
8028 ac_clean_files=$ac_clean_files_save
8030 test $ac_write_fail = 0 ||
8031 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8034 # configure is writing to config.log, and then calls config.status.
8035 # config.status does its own redirection, appending to config.log.
8036 # Unfortunately, on DOS this fails, as config.log is still kept open
8037 # by configure, so config.status won't be able to write to it; its
8038 # output is simply discarded. So we exec the FD to /dev/null,
8039 # effectively closing config.log, so it can be properly (re)opened and
8040 # appended to by config.status. When coming back to configure, we
8041 # need to make the FD available again.
8042 if test "$no_create" != yes; then
8043 ac_cs_success=:
8044 ac_config_status_args=
8045 test "$silent" = yes &&
8046 ac_config_status_args="$ac_config_status_args --quiet"
8047 exec 5>/dev/null
8048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8049 exec 5>>config.log
8050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8051 # would make configure fail if this is the last instruction.
8052 $ac_cs_success || as_fn_exit 1
8056 # CONFIG_SUBDIRS section.
8058 if test "$no_recursion" != yes; then
8060 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8061 # so they do not pile up.
8062 ac_sub_configure_args=
8063 ac_prev=
8064 eval "set x $ac_configure_args"
8065 shift
8066 for ac_arg
8068 if test -n "$ac_prev"; then
8069 ac_prev=
8070 continue
8072 case $ac_arg in
8073 -cache-file | --cache-file | --cache-fil | --cache-fi \
8074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8075 ac_prev=cache_file ;;
8076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8078 | --c=*)
8080 --config-cache | -C)
8082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8083 ac_prev=srcdir ;;
8084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8087 ac_prev=prefix ;;
8088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8090 --disable-option-checking)
8093 case $ac_arg in
8094 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8095 esac
8096 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8097 esac
8098 done
8100 # Always prepend --prefix to ensure using the same prefix
8101 # in subdir configurations.
8102 ac_arg="--prefix=$prefix"
8103 case $ac_arg in
8104 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8105 esac
8106 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8108 # Pass --silent
8109 if test "$silent" = yes; then
8110 ac_sub_configure_args="--silent $ac_sub_configure_args"
8113 # Always prepend --disable-option-checking to silence warnings, since
8114 # different subdirs can have different --enable and --with options.
8115 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8117 ac_popdir=`pwd`
8118 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8120 # Do not complain, so a configure script can configure whichever
8121 # parts of a large source tree are present.
8122 test -d "$srcdir/$ac_dir" || continue
8124 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8126 $as_echo "$ac_msg" >&6
8127 as_dir="$ac_dir"; as_fn_mkdir_p
8128 ac_builddir=.
8130 case "$ac_dir" in
8131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8134 # A ".." for each directory in $ac_dir_suffix.
8135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8136 case $ac_top_builddir_sub in
8137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8139 esac ;;
8140 esac
8141 ac_abs_top_builddir=$ac_pwd
8142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8143 # for backward compatibility:
8144 ac_top_builddir=$ac_top_build_prefix
8146 case $srcdir in
8147 .) # We are building in place.
8148 ac_srcdir=.
8149 ac_top_srcdir=$ac_top_builddir_sub
8150 ac_abs_top_srcdir=$ac_pwd ;;
8151 [\\/]* | ?:[\\/]* ) # Absolute name.
8152 ac_srcdir=$srcdir$ac_dir_suffix;
8153 ac_top_srcdir=$srcdir
8154 ac_abs_top_srcdir=$srcdir ;;
8155 *) # Relative name.
8156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8157 ac_top_srcdir=$ac_top_build_prefix$srcdir
8158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8159 esac
8160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8163 cd "$ac_dir"
8165 # Check for guested configure; otherwise get Cygnus style configure.
8166 if test -f "$ac_srcdir/configure.gnu"; then
8167 ac_sub_configure=$ac_srcdir/configure.gnu
8168 elif test -f "$ac_srcdir/configure"; then
8169 ac_sub_configure=$ac_srcdir/configure
8170 elif test -f "$ac_srcdir/configure.in"; then
8171 # This should be Cygnus configure.
8172 ac_sub_configure=$ac_aux_dir/configure
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8175 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8176 ac_sub_configure=
8179 # The recursion is here.
8180 if test -n "$ac_sub_configure"; then
8181 # Make the cache file name correct relative to the subdirectory.
8182 case $cache_file in
8183 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8184 *) # Relative name.
8185 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8186 esac
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8189 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8190 # The eval makes quoting arguments work.
8191 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8192 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8193 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8196 cd "$ac_popdir"
8197 done
8199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}