Translations: Add new ro support and update others.
[glibc.git] / configure
blob1833a4ce6649bdfce6739280e6666b1a9fcf73f8
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 fortify_source
615 no_fortify_source
616 libc_cv_fortify_source
617 enable_fortify_source
618 have_selinux
619 have_libcap
620 have_libaudit
621 LIBGD
622 libc_cv_cc_loop_to_function
623 libc_cv_cc_submachine
624 libc_cv_cc_nofma
625 libc_cv_mtls_dialect_gnu2
626 libc_cv_has_glob_dat
627 libc_cv_fpie
628 libc_cv_z_execstack
629 ASFLAGS_config
630 libc_cv_cc_with_libunwind
631 libc_cv_insert
632 libc_cv_protected_data
633 INSTALL_INFO
634 PERL
635 BASH_SHELL
636 CXX_BITS_STD_ABS_H
637 CXX_CMATH_HEADER
638 CXX_CSTDLIB_HEADER
639 CXX_SYSINCLUDES
640 SYSINCLUDES
641 sysnames
642 submachine
643 multi_arch
644 libc_cv_textrel_ifunc
645 no_stack_protector
646 stack_protector
647 libc_cv_ssp
648 libc_cv_with_fp
649 PYTHON
650 PYTHON_PROG
651 AUTOCONF
652 BISON
655 MAKEINFO
656 MSGFMT
657 MAKE
660 OBJDUMP
661 READELF
662 GPROF
663 OBJCOPY
665 LN_S
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 base_machine
670 build_pt_chown
671 build_nscd
672 libc_cv_static_nss_crypt
673 libc_cv_nss_crypt
674 build_crypt
675 memory_tagging
676 enable_werror
677 all_warnings
678 force_install
679 bindnow
680 hardcoded_path_in_tests
681 enable_timezone_tools
682 rtld_early_cflags
683 extra_nonshared_cflags
684 sysheaders
685 ac_ct_CXX
686 CXXFLAGS
689 cross_compiling
690 BUILD_CC
691 OBJEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 subdirs
706 REPORT_BUGS_TEXI
707 REPORT_BUGS_TO
708 PKGVERSION_TEXI
709 PKGVERSION
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 with_pkgversion
752 with_bugurl
753 with_gd
754 with_gd_include
755 with_gd_lib
756 with_binutils
757 with_selinux
758 with_headers
759 with_nonshared_cflags
760 with_rtld_early_cflags
761 with_timeoutfactor
762 enable_sanity_checks
763 enable_shared
764 enable_profile
765 enable_default_pie
766 enable_timezone_tools
767 enable_hardcoded_path_in_tests
768 enable_hidden_plt
769 enable_bind_now
770 enable_stack_protector
771 enable_static_nss
772 enable_force_install
773 enable_maintainer_mode
774 enable_kernel
775 enable_all_warnings
776 enable_werror
777 enable_multi_arch
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_mathvec
786 enable_cet
787 enable_scv
788 enable_fortify_source
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 --enable-memory-tagging enable memory tagging if supported by the
1445 architecture [default=no]
1446 --disable-crypt do not build nor install the passphrase hashing
1447 library, libcrypt
1448 --enable-nss-crypt enable libcrypt to use nss
1449 --enable-systemtap enable systemtap static probe points [default=no]
1450 --disable-build-nscd disable building and installing the nscd daemon
1451 --disable-nscd library functions will not contact the nscd daemon
1452 --enable-pt_chown Enable building and installing pt_chown
1453 --enable-mathvec Enable building and installing mathvec [default
1454 depends on architecture]
1455 --enable-cet enable Intel Control-flow Enforcement Technology
1456 (CET), x86 only
1457 --disable-scv syscalls will not use scv instruction, even if the
1458 kernel supports it, powerpc only
1459 --enable-fortify-source[=1|2|3]
1460 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1461 hardening, defaults to highest possible value
1462 supported by the build compiler.
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-memory-tagging was given.
3459 if test "${enable_memory_tagging+set}" = set; then :
3460 enableval=$enable_memory_tagging; memory_tagging=$enableval
3461 else
3462 memory_tagging=no
3465 if test "$memory_tagging" = yes; then
3466 # Only enable this on architectures that support it.
3467 case $host_cpu in
3468 aarch64)
3469 $as_echo "#define USE_MTAG 1" >>confdefs.h
3472 esac
3476 # Check whether --enable-crypt was given.
3477 if test "${enable_crypt+set}" = set; then :
3478 enableval=$enable_crypt; build_crypt=$enableval
3479 else
3480 build_crypt=yes
3485 # Check whether --enable-nss-crypt was given.
3486 if test "${enable_nss_crypt+set}" = set; then :
3487 enableval=$enable_nss_crypt; nss_crypt=$enableval
3488 else
3489 nss_crypt=no
3492 if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
3494 $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
3495 nss_crypt=no
3497 if test x$nss_crypt = xyes; then
3498 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3499 if test $? -ne 0; then
3500 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3502 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
3503 if test $? -ne 0; then
3504 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
3506 old_CFLAGS="$CFLAGS"
3507 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 typedef int PRBool;
3512 #include <hasht.h>
3513 #include <nsslowhash.h>
3514 void f (void) { NSSLOW_Init (); }
3516 main ()
3520 return 0;
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 libc_cv_nss_crypt=yes
3525 else
3526 as_fn_error $? "
3527 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 old_LIBS="$LIBS"
3531 old_LDFLAGS="$LDFLAGS"
3532 LIBS="$LIBS -lfreebl3"
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 typedef int PRBool;
3536 #include <hasht.h>
3537 #include <nsslowhash.h>
3539 main ()
3541 NSSLOW_Init();
3543 return 0;
3545 _ACEOF
3546 if ac_fn_c_try_link "$LINENO"; then :
3547 libc_cv_nss_crypt=yes
3548 else
3549 as_fn_error $? "
3550 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3552 rm -f core conftest.err conftest.$ac_objext \
3553 conftest$ac_exeext conftest.$ac_ext
3554 # Check to see if there is a static NSS cryptographic library.
3555 # If there isn't then we can't link anything with libcrypt.a,
3556 # and that might mean disabling some static tests.
3557 LDFLAGS="$LDFLAGS -static"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 typedef int PRBool;
3561 #include <hasht.h>
3562 #include <nsslowhash.h>
3564 main ()
3566 NSSLOW_Init();
3568 return 0;
3570 _ACEOF
3571 if ac_fn_c_try_link "$LINENO"; then :
3572 libc_cv_static_nss_crypt=yes
3573 else
3574 libc_cv_static_nss_crypt=no
3576 rm -f core conftest.err conftest.$ac_objext \
3577 conftest$ac_exeext conftest.$ac_ext
3578 LDFLAGS="$old_LDFLAGS"
3579 CFLAGS="$old_CFLAGS"
3580 LIBS="$old_LIBS"
3581 else
3582 libc_cv_nss_crypt=no
3583 libc_cv_static_nss_crypt=no
3589 # Check whether --enable-systemtap was given.
3590 if test "${enable_systemtap+set}" = set; then :
3591 enableval=$enable_systemtap; systemtap=$enableval
3592 else
3593 systemtap=no
3596 if test "x$systemtap" != xno; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3598 $as_echo_n "checking for systemtap static probe support... " >&6; }
3599 if ${libc_cv_sdt+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 old_CFLAGS="$CFLAGS"
3603 CFLAGS="-std=gnu11 $CFLAGS"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <sys/sdt.h>
3607 void foo (int i, void *p)
3609 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3610 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 libc_cv_sdt=yes
3615 else
3616 libc_cv_sdt=no
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 CFLAGS="$old_CFLAGS"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3622 $as_echo "$libc_cv_sdt" >&6; }
3623 if test $libc_cv_sdt = yes; then
3624 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3626 elif test "x$systemtap" != xauto; then
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3630 See \`config.log' for more details" "$LINENO" 5; }
3634 # Check whether --enable-build-nscd was given.
3635 if test "${enable_build_nscd+set}" = set; then :
3636 enableval=$enable_build_nscd; build_nscd=$enableval
3637 else
3638 build_nscd=default
3643 # Note the use of $use_nscd is near the bottom of the file.
3644 # Check whether --enable-nscd was given.
3645 if test "${enable_nscd+set}" = set; then :
3646 enableval=$enable_nscd; use_nscd=$enableval
3647 else
3648 use_nscd=yes
3652 # Check whether --enable-pt_chown was given.
3653 if test "${enable_pt_chown+set}" = set; then :
3654 enableval=$enable_pt_chown; build_pt_chown=$enableval
3655 else
3656 build_pt_chown=no
3660 if test "$build_pt_chown" = yes; then
3661 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3665 # The abi-tags file uses a fairly simplistic model for name recognition that
3666 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3667 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3668 # This doesn't get used much beyond that, so it's fairly safe.
3669 case "$host_os" in
3670 linux*)
3672 gnu*)
3673 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3675 esac
3677 # Check whether --enable-mathvec was given.
3678 if test "${enable_mathvec+set}" = set; then :
3679 enableval=$enable_mathvec; build_mathvec=$enableval
3680 else
3681 build_mathvec=notset
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3693 #ifndef __CET__
3694 # error no CET compiler support
3695 #endif
3697 return 0;
3699 _ACEOF
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3701 libc_cv_compiler_default_cet=yes
3702 else
3703 libc_cv_compiler_default_cet=no
3705 rm -f conftest.err conftest.i conftest.$ac_ext
3707 # Check whether --enable-cet was given.
3708 if test "${enable_cet+set}" = set; then :
3709 enableval=$enable_cet; enable_cet=$enableval
3710 else
3711 enable_cet=$libc_cv_compiler_default_cet
3715 # Check whether --enable-scv was given.
3716 if test "${enable_scv+set}" = set; then :
3717 enableval=$enable_scv; use_scv=$enableval
3718 else
3719 use_scv=yes
3723 if test "$use_scv" != "no"; then :
3724 $as_echo "#define USE_PPC_SCV 1" >>confdefs.h
3728 # Check whether --enable-fortify-source was given.
3729 if test "${enable_fortify_source+set}" = set; then :
3730 enableval=$enable_fortify_source; enable_fortify_source=$enableval
3731 else
3732 enable_fortify_source=no
3735 case "$enable_fortify_source" in
3736 1|2|3|no|yes) ;;
3737 *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
3738 esac
3740 # We keep the original values in `$config_*' and never modify them, so we
3741 # can write them unchanged into config.make. Everything else uses
3742 # $machine, $vendor, and $os, and changes them whenever convenient.
3743 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3745 # Don't allow vendor == "unknown"
3746 test "$config_vendor" = unknown && config_vendor=
3747 config_os="`echo $config_os | sed 's/^unknown-//'`"
3749 # Some configurations imply other options.
3750 elf=yes
3752 # The configure fragment of a port can modify these to supplement
3753 # or override the table in the case statement below. No fragment should
3754 # ever change the config_* variables, however.
3755 machine=$config_machine
3756 vendor=$config_vendor
3757 os=$config_os
3758 base_os=''
3760 submachine=
3762 # Check whether --with-cpu was given.
3763 if test "${with_cpu+set}" = set; then :
3764 withval=$with_cpu; case "$withval" in
3765 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3766 no) ;;
3767 *) submachine="$withval" ;;
3768 esac
3773 # An preconfigure script can set this when it wants to disable the sanity
3774 # check below.
3775 libc_config_ok=no
3777 # A preconfigure script for a system that may or may not use fpu
3778 # sysdeps directories sets this to a preprocessor conditional for
3779 # whether to use such directories.
3780 with_fp_cond=1
3782 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3783 then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3785 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3786 for frag in $frags; do
3787 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3788 echo $ECHO_N "$name $ECHO_C" >&6
3789 . "$frag"
3790 done
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3792 $as_echo "" >&6; }
3797 ### By using the undocumented --enable-hacker-mode option for configure
3798 ### one can skip this test to make the configuration not fail for unsupported
3799 ### platforms.
3801 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3802 case "$machine-$host_os" in
3803 *-linux* | *-gnu*)
3806 as_fn_error $? "
3807 *** The GNU C library is currently unavailable for this platform.
3808 *** If you are interested in seeing glibc on this platform visit
3809 *** the \"How to submit a new port\" in the wiki:
3810 *** https://sourceware.org/glibc/wiki/#Development
3811 *** and join the community!" "$LINENO" 5
3813 esac
3816 # Set base_machine if not set by a preconfigure fragment.
3817 test -n "$base_machine" || base_machine=$machine
3820 ### Locate tools.
3822 # Find a good install program. We prefer a C program (faster),
3823 # so one script is as good as another. But avoid the broken or
3824 # incompatible versions:
3825 # SysV /etc/install, /usr/sbin/install
3826 # SunOS /usr/etc/install
3827 # IRIX /sbin/install
3828 # AIX /bin/install
3829 # AmigaOS /C/install, which installs bootblocks on floppy discs
3830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3833 # OS/2's system install, which has a completely different semantic
3834 # ./install, which can be erroneously created by make from ./install.sh.
3835 # Reject install programs that cannot install multiple files.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3838 if test -z "$INSTALL"; then
3839 if ${ac_cv_path_install+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 # Account for people who put trailing slashes in PATH elements.
3848 case $as_dir/ in #((
3849 ./ | .// | /[cC]/* | \
3850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3852 /usr/ucb/* ) ;;
3854 # OSF1 and SCO ODT 3.0 have their own names for install.
3855 # Don't use installbsd from OSF since it installs stuff as root
3856 # by default.
3857 for ac_prog in ginstall scoinst install; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3860 if test $ac_prog = install &&
3861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3862 # AIX install. It has an incompatible calling convention.
3864 elif test $ac_prog = install &&
3865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3866 # program-specific install script used by HP pwplus--don't use.
3868 else
3869 rm -rf conftest.one conftest.two conftest.dir
3870 echo one > conftest.one
3871 echo two > conftest.two
3872 mkdir conftest.dir
3873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3874 test -s conftest.one && test -s conftest.two &&
3875 test -s conftest.dir/conftest.one &&
3876 test -s conftest.dir/conftest.two
3877 then
3878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3879 break 3
3883 done
3884 done
3886 esac
3888 done
3889 IFS=$as_save_IFS
3891 rm -rf conftest.one conftest.two conftest.dir
3894 if test "${ac_cv_path_install+set}" = set; then
3895 INSTALL=$ac_cv_path_install
3896 else
3897 # As a last resort, use the slow shell script. Don't cache a
3898 # value for INSTALL within a source directory, because that will
3899 # break other packages using the cache if that directory is
3900 # removed, or if the value is a relative name.
3901 INSTALL=$ac_install_sh
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3905 $as_echo "$INSTALL" >&6; }
3907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3908 # It thinks the first close brace ends the variable substitution.
3909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3915 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3916 # The makefiles need to use a different form to find it in $srcdir.
3917 INSTALL='\$(..)./scripts/install-sh -c'
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3920 $as_echo_n "checking whether ln -s works... " >&6; }
3921 LN_S=$as_ln_s
3922 if test "$LN_S" = "ln -s"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3927 $as_echo "no, using $LN_S" >&6; }
3931 # Was a --with-binutils option given?
3932 if test -n "$path_binutils"; then
3933 # Make absolute; ensure a single trailing slash.
3934 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3935 CC="$CC -B$path_binutils"
3937 case "$CC" in
3938 *fuse-ld=lld*) LDNAME=ld.lld;;
3939 *) LDNAME=ld;;
3940 esac
3941 if test -z "$LD"; then
3942 LD=`$CC -print-prog-name=$LDNAME`
3944 if test -z "$AR"; then
3945 AR=`$CC -print-prog-name=ar`
3948 if test -z "$OBJCOPY"; then
3949 OBJCOPY=`$CC -print-prog-name=objcopy`
3952 if test -z "$GPROF"; then
3953 GPROF=`$CC -print-prog-name=gprof`
3956 if test -z "$READELF"; then
3957 READELF=`$CC -print-prog-name=readelf`
3960 if test -z "$OBJDUMP"; then
3961 OBJDUMP=`$CC -print-prog-name=objdump`
3964 if test -z "$NM"; then
3965 NM=`$CC -print-prog-name=nm`
3970 # Accept binutils 2.25 or newer.
3971 libc_cv_with_lld=no
3972 case $($LD --version) in
3973 "GNU gold"*)
3974 # Accept gold 1.14 or higher
3975 for ac_prog in $LD
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_LD+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test -n "$LD"; then
3985 ac_cv_prog_LD="$LD" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_LD="$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4004 LD=$ac_cv_prog_LD
4005 if test -n "$LD"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4007 $as_echo "$LD" >&6; }
4008 else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$LD" && break
4015 done
4017 if test -z "$LD"; then
4018 ac_verc_fail=yes
4019 else
4020 # Found it, now check the version.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4022 $as_echo_n "checking version of $LD... " >&6; }
4023 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4024 case $ac_prog_version in
4025 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4026 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
4027 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4028 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4030 esac
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4032 $as_echo "$ac_prog_version" >&6; }
4034 if test $ac_verc_fail = yes; then
4035 LD=: critic_missing="$critic_missing GNU gold"
4039 "LLD"*)
4040 # Accept LLD 13.0.0 or higher
4041 for ac_prog in $LD
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_LD+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$LD"; then
4051 ac_cv_prog_LD="$LD" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_LD="$ac_prog"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4070 LD=$ac_cv_prog_LD
4071 if test -n "$LD"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4073 $as_echo "$LD" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4080 test -n "$LD" && break
4081 done
4083 if test -z "$LD"; then
4084 ac_verc_fail=yes
4085 else
4086 # Found it, now check the version.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4088 $as_echo_n "checking version of $LD... " >&6; }
4089 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4090 case $ac_prog_version in
4091 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4092 1[3-9].*|[2-9][0-9].*)
4093 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4094 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4096 esac
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4098 $as_echo "$ac_prog_version" >&6; }
4100 if test $ac_verc_fail = yes; then
4101 LD=: critic_missing="$critic_missing LLD"
4104 libc_cv_with_lld=yes
4107 for ac_prog in $LD
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_LD+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$LD"; then
4117 ac_cv_prog_LD="$LD" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_LD="$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 LD=$ac_cv_prog_LD
4137 if test -n "$LD"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4139 $as_echo "$LD" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$LD" && break
4147 done
4149 if test -z "$LD"; then
4150 ac_verc_fail=yes
4151 else
4152 # Found it, now check the version.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4154 $as_echo_n "checking version of $LD... " >&6; }
4155 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4156 case $ac_prog_version in
4157 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4158 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4159 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4160 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4162 esac
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4164 $as_echo "$ac_prog_version" >&6; }
4166 if test $ac_verc_fail = yes; then
4167 LD=: critic_missing="$critic_missing GNU ld"
4171 esac
4172 config_vars="$config_vars
4173 with-lld = $libc_cv_with_lld"
4175 # These programs are version sensitive.
4176 for ac_prog in gnumake gmake make
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_MAKE+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$MAKE"; then
4186 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_MAKE="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 MAKE=$ac_cv_prog_MAKE
4206 if test -n "$MAKE"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4208 $as_echo "$MAKE" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$MAKE" && break
4216 done
4218 if test -z "$MAKE"; then
4219 ac_verc_fail=yes
4220 else
4221 # Found it, now check the version.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4223 $as_echo_n "checking version of $MAKE... " >&6; }
4224 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4225 case $ac_prog_version in
4226 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4227 [4-9].* | [1-9][0-9]*)
4228 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4229 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4231 esac
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4233 $as_echo "$ac_prog_version" >&6; }
4235 if test $ac_verc_fail = yes; then
4236 critic_missing="$critic_missing make"
4240 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_MSGFMT+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$MSGFMT"; then
4250 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_MSGFMT="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 MSGFMT=$ac_cv_prog_MSGFMT
4270 if test -n "$MSGFMT"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4272 $as_echo "$MSGFMT" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$MSGFMT" && break
4280 done
4282 if test -z "$MSGFMT"; then
4283 ac_verc_fail=yes
4284 else
4285 # Found it, now check the version.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4287 $as_echo_n "checking version of $MSGFMT... " >&6; }
4288 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4289 case $ac_prog_version in
4290 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4291 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4292 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4293 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4295 esac
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4297 $as_echo "$ac_prog_version" >&6; }
4299 if test $ac_verc_fail = yes; then
4300 MSGFMT=: aux_missing="$aux_missing msgfmt"
4303 for ac_prog in makeinfo
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_MAKEINFO+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$MAKEINFO"; then
4313 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_MAKEINFO="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 MAKEINFO=$ac_cv_prog_MAKEINFO
4333 if test -n "$MAKEINFO"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4335 $as_echo "$MAKEINFO" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$MAKEINFO" && break
4343 done
4345 if test -z "$MAKEINFO"; then
4346 ac_verc_fail=yes
4347 else
4348 # Found it, now check the version.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4350 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4351 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4352 case $ac_prog_version in
4353 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4354 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4355 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4356 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4358 esac
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4360 $as_echo "$ac_prog_version" >&6; }
4362 if test $ac_verc_fail = yes; then
4363 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4366 for ac_prog in sed
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369 set dummy $ac_prog; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if ${ac_cv_prog_SED+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$SED"; then
4376 ac_cv_prog_SED="$SED" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_SED="$ac_prog"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 SED=$ac_cv_prog_SED
4396 if test -n "$SED"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4398 $as_echo "$SED" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4405 test -n "$SED" && break
4406 done
4408 if test -z "$SED"; then
4409 ac_verc_fail=yes
4410 else
4411 # Found it, now check the version.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4413 $as_echo_n "checking version of $SED... " >&6; }
4414 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4415 case $ac_prog_version in
4416 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4417 3.0[2-9]*|3.[1-9]*|[4-9]*)
4418 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4419 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4421 esac
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4423 $as_echo "$ac_prog_version" >&6; }
4425 if test $ac_verc_fail = yes; then
4426 SED=: aux_missing="$aux_missing sed"
4429 for ac_prog in gawk
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_AWK+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$AWK"; then
4439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_AWK="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4452 done
4453 done
4454 IFS=$as_save_IFS
4458 AWK=$ac_cv_prog_AWK
4459 if test -n "$AWK"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4461 $as_echo "$AWK" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$AWK" && break
4469 done
4471 if test -z "$AWK"; then
4472 ac_verc_fail=yes
4473 else
4474 # Found it, now check the version.
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4476 $as_echo_n "checking version of $AWK... " >&6; }
4477 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4478 case $ac_prog_version in
4479 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4480 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4481 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4482 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4484 esac
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4486 $as_echo "$ac_prog_version" >&6; }
4488 if test $ac_verc_fail = yes; then
4489 critic_missing="$critic_missing gawk"
4492 for ac_prog in bison
4494 # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_BISON+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$BISON"; then
4502 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_BISON="$ac_prog"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4521 BISON=$ac_cv_prog_BISON
4522 if test -n "$BISON"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4524 $as_echo "$BISON" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4531 test -n "$BISON" && break
4532 done
4534 if test -z "$BISON"; then
4535 ac_verc_fail=yes
4536 else
4537 # Found it, now check the version.
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
4539 $as_echo_n "checking version of $BISON... " >&6; }
4540 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
4541 case $ac_prog_version in
4542 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4543 2.7*|[3-9].*|[1-9][0-9]*)
4544 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4545 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4547 esac
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4549 $as_echo "$ac_prog_version" >&6; }
4551 if test $ac_verc_fail = yes; then
4552 critic_missing="$critic_missing bison"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4557 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4558 if ${libc_cv_compiler_ok+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4566 main ()
4569 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
4570 #error insufficient compiler
4571 #endif
4573 return 0;
4575 _ACEOF
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4577 libc_cv_compiler_ok=yes
4578 else
4579 libc_cv_compiler_ok=no
4581 rm -f conftest.err conftest.i conftest.$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4584 $as_echo "$libc_cv_compiler_ok" >&6; }
4585 if test $libc_cv_compiler_ok != yes; then :
4586 critic_missing="$critic_missing compiler"
4589 if test "x$maintainer" = "xyes"; then
4590 for ac_prog in autoconf
4592 # Extract the first word of "$ac_prog", so it can be a program name with args.
4593 set dummy $ac_prog; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_AUTOCONF+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$AUTOCONF"; then
4600 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_AUTOCONF="$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 AUTOCONF=$ac_cv_prog_AUTOCONF
4620 if test -n "$AUTOCONF"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4622 $as_echo "$AUTOCONF" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4629 test -n "$AUTOCONF" && break
4630 done
4631 test -n "$AUTOCONF" || AUTOCONF="no"
4633 case "x$AUTOCONF" in
4634 xno|x|x:) AUTOCONF=no ;;
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4637 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4638 if ${libc_cv_autoconf_works+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
4642 libc_cv_autoconf_works=yes
4643 else
4644 libc_cv_autoconf_works=no
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
4648 $as_echo "$libc_cv_autoconf_works" >&6; }
4649 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4651 esac
4652 if test "x$AUTOCONF" = xno; then
4653 aux_missing="$aux_missing autoconf"
4655 else
4656 AUTOCONF=no
4659 # Check for python3 if available, or else python.
4660 for ac_prog in python3 python
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$PYTHON_PROG"; then
4670 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_PYTHON_PROG="$ac_prog"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
4690 if test -n "$PYTHON_PROG"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
4692 $as_echo "$PYTHON_PROG" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4699 test -n "$PYTHON_PROG" && break
4700 done
4702 if test -z "$PYTHON_PROG"; then
4703 ac_verc_fail=yes
4704 else
4705 # Found it, now check the version.
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
4707 $as_echo_n "checking version of $PYTHON_PROG... " >&6; }
4708 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4709 case $ac_prog_version in
4710 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4711 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
4712 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4713 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4715 esac
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4717 $as_echo "$ac_prog_version" >&6; }
4719 if test $ac_verc_fail = yes; then
4720 critic_missing="$critic_missing python"
4723 PYTHON="$PYTHON_PROG -B"
4726 test -n "$critic_missing" && as_fn_error $? "
4727 *** These critical programs are missing or too old:$critic_missing
4728 *** Check the INSTALL file for required versions." "$LINENO" 5
4730 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4731 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4732 *** some features or tests will be disabled.
4733 *** Check the INSTALL file for required versions." >&5
4734 $as_echo "$as_me: WARNING:
4735 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4736 *** some features or tests will be disabled.
4737 *** Check the INSTALL file for required versions." >&2;}
4740 # Determine whether to use fpu or nofpu sysdeps directories.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
4742 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
4743 if ${libc_cv_with_fp+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat > conftest.c <<EOF
4747 #if $with_fp_cond
4748 int dummy;
4749 #else
4750 # error "no hardware floating point"
4751 #endif
4753 libc_cv_with_fp=no
4754 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
4755 1>&5 2>&5 ; then
4756 libc_cv_with_fp=yes
4758 rm -f conftest*
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
4761 $as_echo "$libc_cv_with_fp" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
4765 $as_echo_n "checking for -fstack-protector... " >&6; }
4766 if ${libc_cv_ssp+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
4770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; }; then :
4775 libc_cv_ssp=yes
4776 else
4777 libc_cv_ssp=no
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
4782 $as_echo "$libc_cv_ssp" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
4785 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
4786 if ${libc_cv_ssp_strong+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
4790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then :
4795 libc_cv_ssp_strong=yes
4796 else
4797 libc_cv_ssp_strong=no
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
4802 $as_echo "$libc_cv_ssp_strong" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
4805 $as_echo_n "checking for -fstack-protector-all... " >&6; }
4806 if ${libc_cv_ssp_all+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
4810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }; }; then :
4815 libc_cv_ssp_all=yes
4816 else
4817 libc_cv_ssp_all=no
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
4822 $as_echo "$libc_cv_ssp_all" >&6; }
4824 stack_protector=
4825 no_stack_protector=
4826 if test "$libc_cv_ssp" = yes; then
4827 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
4828 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
4832 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
4833 stack_protector="-fstack-protector"
4834 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
4836 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
4837 stack_protector="-fstack-protector-all"
4838 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
4840 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
4841 stack_protector="-fstack-protector-strong"
4842 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
4844 else
4845 stack_protector="-fno-stack-protector"
4846 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
4853 if test -n "$stack_protector"; then
4854 no_ssp=-fno-stack-protector
4855 else
4856 no_ssp=
4858 if test "$enable_stack_protector" != no; then
4859 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
4863 # For the multi-arch option we need support in the assembler & linker.
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4865 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4866 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat > conftest.S <<EOF
4870 .type foo,%gnu_indirect_function
4871 foo:
4872 .globl _start
4873 _start:
4874 .globl __start
4875 __start:
4876 .data
4877 #ifdef _LP64
4878 .quad foo
4879 #else
4880 .long foo
4881 #endif
4883 libc_cv_ld_gnu_indirect_function=no
4884 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4885 -nostartfiles -nostdlib $no_ssp \
4886 -o conftest conftest.S 1>&5 2>&5; then
4887 # Do a link to see if the backend supports IFUNC relocs.
4888 $READELF -r conftest 1>&5
4889 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
4890 libc_cv_ld_gnu_indirect_function=yes
4893 rm -f conftest*
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4896 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4898 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
4900 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
4901 if ${libc_cv_gcc_indirect_function+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 cat > conftest.c <<EOF
4905 extern int func (int);
4906 int used_func (int a)
4908 return a;
4910 static void *resolver ()
4912 return &used_func;
4914 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
4916 libc_cv_gcc_indirect_function=no
4917 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
4918 2>&5 ; then
4919 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
4920 libc_cv_gcc_indirect_function=yes
4923 rm -f conftest*
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4926 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4928 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
4929 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
4931 $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; }
4932 if ${libc_cv_textrel_ifunc+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 cat > conftest.S <<EOF
4936 .type foo,%gnu_indirect_function
4937 foo:
4938 .globl _start
4939 _start:
4940 .globl __start
4941 __start:
4942 .data
4943 #ifdef _LP64
4944 .quad foo
4945 #else
4946 .long foo
4947 #endif
4948 .text
4949 .globl address
4950 address:
4951 #ifdef _LP64
4952 .quad address
4953 #else
4954 .long address
4955 #endif
4957 libc_cv_textrel_ifunc=no
4958 if test $libc_cv_ld_gnu_indirect_function = yes; then
4959 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
4960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; }; then
4965 libc_cv_textrel_ifunc=yes
4968 rm -f conftest*
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
4971 $as_echo "$libc_cv_textrel_ifunc" >&6; }
4974 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
4976 $as_echo_n "checking for GNU attribute retain support... " >&6; }
4977 if ${libc_cv_gnu_retain+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 cat > conftest.c <<EOF
4981 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
4983 libc_cv_gnu_retain=no
4984 if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
4985 2>&5 ; then
4986 libc_cv_gnu_retain=yes
4988 rm -f conftest*
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
4991 $as_echo "$libc_cv_gnu_retain" >&6; }
4992 if test $libc_cv_gnu_retain = yes; then
4993 $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h
4996 config_vars="$config_vars
4997 have-gnu-retain = $libc_cv_gnu_retain"
4999 # Check if gcc warns about alias for function with incompatible types.
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
5001 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
5002 if ${libc_cv_gcc_incompatible_alias+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 cat > conftest.c <<EOF
5006 int __redirect_foo (const void *s, int c);
5008 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
5009 __typeof (__redirect_foo) *foo_impl (void)
5011 return 0;
5014 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
5016 libc_cv_gcc_incompatible_alias=yes
5017 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
5018 libc_cv_gcc_incompatible_alias=no
5020 rm -f conftest*
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
5023 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
5025 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
5026 if test x"$multi_arch" = xyes; then
5027 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
5028 else
5029 multi_arch=no
5032 if test x"$libc_cv_gcc_indirect_function" != xyes; then
5033 # GCC 8+ emits a warning for alias with incompatible types and it might
5034 # fail to build ifunc resolvers aliases to either weak or internal
5035 # symbols. Disables multiarch build in this case.
5036 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
5038 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
5039 if test x"$multi_arch" = xyes; then
5040 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
5043 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
5044 multi_arch=no
5045 elif test x"$multi_arch" = xyes; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5047 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
5048 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5049 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
5052 multi_arch_d=
5053 if test x"$multi_arch" != xno; then
5054 multi_arch_d=/multiarch
5057 # Compute the list of sysdep directories for this configuration.
5058 # This can take a while to compute.
5059 sysdep_dir=$srcdir/sysdeps
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
5061 $as_echo_n "checking sysdep dirs... " >&6; }
5062 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
5063 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
5065 test "x$base_os" != x || case "$os" in
5066 gnu*)
5067 base_os=mach/hurd ;;
5068 linux*)
5069 base_os=unix/sysv ;;
5070 esac
5072 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
5073 tail=$os
5074 ostry=$os
5075 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
5076 ostry="$ostry /$o"
5077 tail=$o
5078 done
5079 o=`echo $tail | sed 's/[0-9]*$//'`
5080 if test $o != $tail; then
5081 ostry="$ostry /$o"
5083 # For linux-gnu, try linux-gnu, then linux.
5084 o=`echo $tail | sed 's/-.*$//'`
5085 if test $o != $tail; then
5086 ostry="$ostry /$o"
5089 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
5090 base=
5091 tail=$base_os
5092 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
5093 set $b
5094 base="$base /$1"
5095 tail="$2"
5096 done
5098 # For sparc/sparc32, try sparc/sparc32 and then sparc.
5099 mach=
5100 tail=$machine${submachine:+/$submachine}
5101 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
5102 set $m
5103 # Prepend the machine's FPU directory unless the architecture specific
5104 # preconfigure disables it.
5105 if test "$libc_cv_with_fp" = yes; then
5106 maybe_fpu=/fpu
5107 else
5108 maybe_fpu=/nofpu
5110 # For each machine term, try it with and then without /multiarch.
5111 for try_fpu in $maybe_fpu ''; do
5112 for try_multi in $multi_arch_d ''; do
5113 mach="$mach /$1$try_fpu$try_multi"
5114 done
5115 done
5116 tail="$2"
5117 done
5120 # Find what sysdep directories exist.
5121 sysnames=
5122 for b in $base ''; do
5123 for m0 in $mach ''; do
5124 for v in /$vendor ''; do
5125 test "$v" = / && continue
5126 for o in /$ostry ''; do
5127 test "$o" = / && continue
5128 for m in $mach ''; do
5129 try_suffix="$m0$b$v$o$m"
5130 if test -n "$try_suffix"; then
5131 try_srcdir="${srcdir}/"
5132 try="sysdeps$try_suffix"
5133 test -n "$enable_debug_configure" &&
5134 echo "$0 DEBUG: try $try" >&2
5135 if test -d "$try_srcdir$try"; then
5136 sysnames="$sysnames $try"
5137 { test -n "$o" || test -n "$b"; } && os_used=t
5138 { test -n "$m" || test -n "$m0"; } && machine_used=t
5139 case x${m0:-$m} in
5140 x*/$submachine) submachine_used=t ;;
5141 esac
5144 done
5145 done
5146 done
5147 done
5148 done
5150 # If the assembler supports gnu_indirect_function symbol type and the
5151 # architecture supports multi-arch, we enable multi-arch by default.
5152 case $sysnames in
5153 *"$multi_arch_d"*)
5156 test x"$multi_arch" = xdefault && multi_arch=no
5158 esac
5159 if test x"$multi_arch" != xno; then
5160 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
5165 if test -z "$os_used" && test "$os" != none; then
5166 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
5168 if test -z "$machine_used" && test "$machine" != none; then
5169 as_fn_error $? "The $machine is not supported." "$LINENO" 5
5171 if test -z "$submachine_used" && test -n "$submachine"; then
5172 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
5176 # We have now validated the configuration.
5178 # Expand the list of system names into a full list of directories
5179 # from each element's parent name and Implies file (if present).
5180 set $sysnames
5181 names=
5182 while test $# -gt 0; do
5183 name=$1
5184 shift
5186 case " $names " in *" $name "*)
5187 # Already in the list.
5188 continue
5189 esac
5191 # Report each name as we discover it, so there is no long pause in output.
5192 echo $ECHO_N "$name $ECHO_C" >&6
5194 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
5196 case $name in
5197 /*) xsrcdir= ;;
5198 *) xsrcdir=$srcdir/ ;;
5199 esac
5200 test -n "$enable_debug_configure" &&
5201 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
5203 for implies_file in Implies Implies-before Implies-after; do
5204 implies_type=`echo $implies_file | sed s/-/_/`
5205 eval ${implies_type}=
5206 if test -f $xsrcdir$name/$implies_file; then
5207 # Collect more names from the `Implies' file (removing comments).
5208 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
5209 for x in $implied_candidate; do
5210 found=no
5211 if test -d $xsrcdir$name_base/$x; then
5212 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
5213 found=yes
5215 try="sysdeps/$x"
5216 try_srcdir=$srcdir/
5217 test -n "$enable_debug_configure" &&
5218 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
5219 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
5220 then
5221 eval "${implies_type}=\"\$${implies_type} \$try\""
5222 found=yes
5224 if test $found = no; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
5226 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
5228 done
5230 done
5232 # Add NAME to the list of names.
5233 names="$names $name"
5235 # Find the parent of NAME, using the empty string if it has none.
5236 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
5238 test -n "$enable_debug_configure" &&
5239 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
5240 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
5242 # Add the names implied by NAME, and NAME's parent (if it has one), to
5243 # the list of names to be processed (the argument list). We prepend the
5244 # implied names to the list and append the parent. We want implied
5245 # directories to come before further directories inferred from the
5246 # configuration components; this ensures that for sysv4, unix/common
5247 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
5248 # after sysv4).
5249 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
5250 test -n "$sysnames" && set $sysnames
5251 done
5253 # Add the default directories.
5254 default_sysnames="sysdeps/generic"
5255 sysnames="$names $default_sysnames"
5257 # The other names were emitted during the scan.
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
5259 $as_echo "$default_sysnames" >&6; }
5261 # if using special system headers, find out the compiler's sekrit
5262 # header directory and add that to the list. NOTE: Only does the right
5263 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5264 if test -n "$sysheaders"; then
5265 SYSINCLUDES=-nostdinc
5266 for d in include include-fixed; do
5267 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5268 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5269 done
5270 SYSINCLUDES="$SYSINCLUDES \
5271 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5272 if test -n "$CXX"; then
5273 CXX_SYSINCLUDES=
5274 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5275 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5276 test "x$cxxheaders" != x &&
5277 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5278 done
5284 # Obtain some C++ header file paths. This is used to make a local
5285 # copy of those headers in Makerules.
5286 if test -n "$CXX"; then
5287 find_cxx_header () {
5288 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
5289 | $AWK '$1 == "."{print $2}'
5291 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5292 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5293 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
5299 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5300 # since this would lead to problems installing/building glibc.
5301 # LD_LIBRARY_PATH contains the current directory if one of the following
5302 # is true:
5303 # - one of the terminals (":" and ";") is the first or last sign
5304 # - two terminals occur directly after each other
5305 # - the path contains an element with a dot in it
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5307 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5308 case ${LD_LIBRARY_PATH} in
5309 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5310 ld_library_path_setting="contains current directory"
5313 ld_library_path_setting="ok"
5315 esac
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5317 $as_echo "$ld_library_path_setting" >&6; }
5318 if test "$ld_library_path_setting" != "ok"; then
5319 as_fn_error $? "
5320 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5321 *** building glibc. Please change the environment variable
5322 *** and run configure again." "$LINENO" 5
5325 # Extract the first word of "bash", so it can be a program name with args.
5326 set dummy bash; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_path_BASH_SHELL+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 case $BASH_SHELL in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5352 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5354 esac
5356 BASH_SHELL=$ac_cv_path_BASH_SHELL
5357 if test -n "$BASH_SHELL"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5359 $as_echo "$BASH_SHELL" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5367 # Extract the first word of "perl", so it can be a program name with args.
5368 set dummy perl; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_path_PERL+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 case $PERL in
5375 [\\/]* | ?:[\\/]*)
5376 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5390 done
5391 done
5392 IFS=$as_save_IFS
5394 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5396 esac
5398 PERL=$ac_cv_path_PERL
5399 if test -n "$PERL"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5401 $as_echo "$PERL" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5408 if test "$PERL" != no &&
5409 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5410 PERL=no
5412 # Extract the first word of "install-info", so it can be a program name with args.
5413 set dummy install-info; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 case $INSTALL_INFO in
5420 [\\/]* | ?:[\\/]*)
5421 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5426 for as_dir in $as_dummy
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5440 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5442 esac
5444 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5445 if test -n "$INSTALL_INFO"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5447 $as_echo "$INSTALL_INFO" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5456 $as_echo_n "checking for .set assembler directive... " >&6; }
5457 if ${libc_cv_asm_set_directive+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 cat > conftest.s <<EOF
5461 .text
5462 foo:
5463 .set glibc_conftest_frobozz,foo
5464 .globl glibc_conftest_frobozz
5466 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5467 # (but it doesn't work), so we must do a linking check to be sure.
5468 cat > conftest1.c <<\EOF
5469 extern int glibc_conftest_frobozz;
5470 void _start() { glibc_conftest_frobozz = 1; }
5472 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5473 -nostartfiles -nostdlib $no_ssp \
5474 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5475 libc_cv_asm_set_directive=yes
5476 else
5477 libc_cv_asm_set_directive=no
5479 rm -f conftest*
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5482 $as_echo "$libc_cv_asm_set_directive" >&6; }
5483 if test $libc_cv_asm_set_directive = yes; then
5484 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5489 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5490 if ${libc_cv_protected_data+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 cat > conftest.c <<EOF
5494 int bar __attribute__ ((visibility ("protected"))) = 1;
5496 libc_cv_protected_data=no
5497 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; }; }; then
5503 cat > conftest.c <<EOF
5504 extern int bar;
5505 int main (void) { return bar; }
5507 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest 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 libc_cv_protected_data=yes
5516 rm -f conftest.*
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5520 $as_echo "$libc_cv_protected_data" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5524 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5525 if ${libc_cv_insert+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat > conftest.c <<EOF
5529 int __attribute__ ((section(".bar"))) bar = 0x12345678;
5530 int test (void) { return bar; }
5532 cat > conftest.t <<EOF
5533 SECTIONS
5535 .bar : { *(.bar) }
5537 INSERT AFTER .rela.dyn;
5539 libc_cv_insert=no
5540 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; }; then
5546 libc_cv_insert=yes
5548 rm -f conftest.*
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5552 $as_echo "$libc_cv_insert" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5556 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5557 if ${libc_cv_broken_alias_attribute+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat > conftest.c <<EOF
5561 extern int foo (int x) __asm ("xyzzy");
5562 int bar (int x) { return x; }
5563 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5564 extern int dfoo;
5565 extern __typeof (dfoo) dfoo __asm ("abccb");
5566 int dfoo = 1;
5568 libc_cv_broken_alias_attribute=yes
5569 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5574 test $ac_status = 0; }; }; then
5575 if grep 'xyzzy' conftest.s >/dev/null &&
5576 grep 'abccb' conftest.s >/dev/null; then
5577 libc_cv_broken_alias_attribute=no
5580 rm -f conftest.c conftest.s
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5584 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5585 if test $libc_cv_broken_alias_attribute = yes; then
5586 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5590 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5591 if ${libc_cv_have_sdata_section+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 echo "int i;" > conftest.c
5595 libc_cv_have_sdata_section=no
5596 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5597 | grep '\.sdata' >/dev/null; then
5598 libc_cv_have_sdata_section=yes
5600 rm -f conftest.c conftest.so
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5604 $as_echo "$libc_cv_have_sdata_section" >&6; }
5605 if test $libc_cv_have_sdata_section = yes; then
5606 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5611 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5612 if ${libc_cv_cc_with_libunwind+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5616 cat > conftest.c <<EOF
5617 int main (void) { return 0; }
5619 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5620 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5621 libc_cv_cc_with_libunwind=yes
5622 else
5623 libc_cv_cc_with_libunwind=no
5625 rm -f conftest*
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5628 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5630 if test $libc_cv_cc_with_libunwind = yes; then
5631 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5635 ASFLAGS_config=
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5637 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5638 if ${libc_cv_as_noexecstack+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat > conftest.c <<EOF
5642 void foo (void) { }
5644 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5645 -S -o conftest.s conftest.c 1>&5'
5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; }; } \
5651 && grep .note.GNU-stack conftest.s >/dev/null \
5652 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5653 -c -o conftest.o conftest.s 1>&5'
5654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }; }
5659 then
5660 libc_cv_as_noexecstack=yes
5661 else
5662 libc_cv_as_noexecstack=no
5664 rm -f conftest*
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5667 $as_echo "$libc_cv_as_noexecstack" >&6; }
5668 if test $libc_cv_as_noexecstack = yes; then
5669 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5674 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5675 libc_linker_feature=no
5676 cat > conftest.c <<EOF
5677 int _start (void) { return 42; }
5679 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5680 -Wl,-z,execstack -nostdlib -nostartfiles
5681 -fPIC -shared -o conftest.so conftest.c
5682 1>&5'
5683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; }
5688 then
5689 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
5690 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5691 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
5692 true
5693 else
5694 libc_linker_feature=yes
5697 rm -f conftest*
5698 if test $libc_linker_feature = yes; then
5699 libc_cv_z_execstack=yes
5700 else
5701 libc_cv_z_execstack=no
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5704 $as_echo "$libc_linker_feature" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
5708 $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
5709 libc_linker_feature=no
5710 cat > conftest.c <<EOF
5711 int _start (void) { return 42; }
5713 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5714 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
5715 -fPIC -shared -o conftest.so conftest.c
5716 1>&5'
5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; }; }
5722 then
5723 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
5724 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5725 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
5726 true
5727 else
5728 libc_linker_feature=yes
5731 rm -f conftest*
5732 if test $libc_linker_feature = yes; then
5733 libc_cv_z_start_stop_gc=yes
5734 else
5735 libc_cv_z_start_stop_gc=no
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5738 $as_echo "$libc_linker_feature" >&6; }
5739 config_vars="$config_vars
5740 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
5743 $as_echo_n "checking for linker that supports --depaudit... " >&6; }
5744 libc_linker_feature=no
5745 cat > conftest.c <<EOF
5746 int _start (void) { return 42; }
5748 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5749 -Wl,--depaudit,x -nostdlib -nostartfiles
5750 -fPIC -shared -o conftest.so conftest.c
5751 1>&5'
5752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; }; }
5757 then
5758 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
5759 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5760 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
5761 true
5762 else
5763 libc_linker_feature=yes
5766 rm -f conftest*
5767 if test $libc_linker_feature = yes; then
5768 libc_cv_depaudit=yes
5769 else
5770 libc_cv_depaudit=no
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5773 $as_echo "$libc_linker_feature" >&6; }
5774 config_vars="$config_vars
5775 have-depaudit = $libc_cv_depaudit"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
5778 $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; }
5779 libc_linker_feature=no
5780 cat > conftest.c <<EOF
5781 int _start (void) { return 42; }
5783 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5784 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
5785 -fPIC -shared -o conftest.so conftest.c
5786 1>&5'
5787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }; }
5792 then
5793 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
5794 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5795 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
5796 true
5797 else
5798 libc_linker_feature=yes
5801 rm -f conftest*
5802 if test $libc_linker_feature = yes; then
5803 libc_cv_dt_relr=yes
5804 else
5805 libc_cv_dt_relr=no
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5808 $as_echo "$libc_linker_feature" >&6; }
5809 config_vars="$config_vars
5810 have-dt-relr = $libc_cv_dt_relr"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5813 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5814 libc_linker_feature=no
5815 cat > conftest.c <<EOF
5816 int _start (void) { return 42; }
5818 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5819 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5820 -fPIC -shared -o conftest.so conftest.c
5821 1>&5'
5822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826 test $ac_status = 0; }; }
5827 then
5828 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
5829 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5830 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
5831 true
5832 else
5833 libc_linker_feature=yes
5836 rm -f conftest*
5837 if test $libc_linker_feature = yes; then
5838 libc_cv_no_dynamic_linker=yes
5839 else
5840 libc_cv_no_dynamic_linker=no
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5843 $as_echo "$libc_linker_feature" >&6; }
5844 config_vars="$config_vars
5845 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5848 $as_echo_n "checking for -static-pie... " >&6; }
5849 if ${libc_cv_static_pie+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; }; }; then :
5858 libc_cv_static_pie=yes
5859 else
5860 libc_cv_static_pie=no
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5865 $as_echo "$libc_cv_static_pie" >&6; }
5866 config_vars="$config_vars
5867 have-static-pie = $libc_cv_static_pie"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5870 $as_echo_n "checking for -fpie... " >&6; }
5871 if ${libc_cv_fpie+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }; }; then :
5880 libc_cv_fpie=yes
5881 else
5882 libc_cv_fpie=no
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5887 $as_echo "$libc_cv_fpie" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5892 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5893 if ${libc_cv_has_glob_dat+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat > conftest.c <<EOF
5897 extern int mumble;
5898 int foo (void) { return mumble; }
5900 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5901 -fPIC -shared -o conftest.so conftest.c
5902 -nostdlib -nostartfiles $no_ssp
5903 1>&5'
5904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; }; }
5909 then
5910 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
5911 libc_cv_has_glob_dat=yes
5912 else
5913 libc_cv_has_glob_dat=no
5915 else
5916 libc_cv_has_glob_dat=no
5918 rm -f conftest*
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5921 $as_echo "$libc_cv_has_glob_dat" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5925 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5926 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat > conftest.c <<EOF
5930 __thread int i;
5931 void foo (void)
5933 i = 10;
5936 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
5937 conftest.c -o conftest 1>&5'
5938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; }
5943 then
5944 libc_cv_mtls_dialect_gnu2=yes
5945 else
5946 libc_cv_mtls_dialect_gnu2=no
5948 rm -f conftest*
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5951 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5953 config_vars="$config_vars
5954 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
5957 $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
5958 if ${libc_cv_wno_ignored_attributes+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat > conftest.c <<EOF
5962 void __foo (void)
5965 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
5966 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
5968 libc_cv_wno_ignored_attributes=""
5969 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
5970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; }
5975 then
5976 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
5978 rm -f conftest*
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
5981 $as_echo "$libc_cv_wno_ignored_attributes" >&6; }
5982 config_vars="$config_vars
5983 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5986 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
5987 if ${libc_cv_have_section_quotes+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat > conftest.c <<EOF
5991 static const int foo
5992 __attribute__ ((section ("bar"))) = 1;
5994 if ${CC-cc} -S conftest.c -o conftest.s; then
5995 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5996 libc_cv_have_section_quotes=yes
5997 else
5998 libc_cv_have_section_quotes=no
6000 else
6001 libc_cv_have_section_quotes=unknown
6003 rm -f conftest.{c,s}
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6007 $as_echo "$libc_cv_have_section_quotes" >&6; }
6008 if test $libc_cv_have_section_quotes = yes; then
6009 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6014 $as_echo_n "checking for __builtin_memset... " >&6; }
6015 if ${libc_cv_gcc_builtin_memset+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 cat > conftest.c <<\EOF
6019 void zero (void *x)
6021 __builtin_memset (x, 0, 1000);
6024 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6026 (eval $ac_try) 2>&5
6027 ac_status=$?
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }; };
6030 then
6031 libc_cv_gcc_builtin_memset=no
6032 else
6033 libc_cv_gcc_builtin_memset=yes
6035 rm -f conftest*
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6038 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6039 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6040 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6045 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6046 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 cat > conftest.c <<\EOF
6050 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6051 char *foo (const char *a, const char *b)
6053 return __builtin_strstr (a, b);
6056 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }; };
6062 then
6063 libc_cv_gcc_builtin_redirection=yes
6064 else
6065 libc_cv_gcc_builtin_redirection=no
6067 rm -f conftest*
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6070 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6071 if test "$libc_cv_gcc_builtin_redirection" = no; then
6072 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6076 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6077 if ${libc_cv_cc_nofma+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 libc_cv_cc_nofma=
6081 for opt in -ffp-contract=off -mno-fused-madd; do
6082 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }; }; then :
6088 libc_cv_cc_nofma=$opt; break
6090 done
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6093 $as_echo "$libc_cv_cc_nofma" >&6; }
6096 if test -n "$submachine"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6098 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6099 if ${libc_cv_cc_submachine+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 libc_cv_cc_submachine=no
6103 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6104 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }; }; then :
6111 libc_cv_cc_submachine="$opt"
6112 break
6114 done
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6117 $as_echo "$libc_cv_cc_submachine" >&6; }
6118 if test "x$libc_cv_cc_submachine" = xno; then
6119 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
6125 $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; }
6126 if ${libc_cv_cc_signaling_nans+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
6130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }; }; then :
6135 libc_cv_cc_signaling_nans=-fsignaling-nans
6136 else
6137 libc_cv_cc_signaling_nans=
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
6142 $as_echo "$libc_cv_cc_signaling_nans" >&6; }
6143 config_vars="$config_vars
6144 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6147 __attribute__ ((__optimize__))" >&5
6148 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6149 __attribute__ ((__optimize__))... " >&6; }
6150 if ${libc_cv_cc_loop_to_function+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 cat > conftest.c <<EOF
6154 void
6155 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6156 foo (void) {}
6158 libc_cv_cc_loop_to_function=no
6159 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; }; }
6165 then
6166 libc_cv_cc_loop_to_function=yes
6168 rm -f conftest*
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6171 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6172 if test $libc_cv_cc_loop_to_function = yes; then
6173 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6179 $as_echo_n "checking for libgd... " >&6; }
6180 if test "$with_gd" != "no"; then
6181 old_CFLAGS="$CFLAGS"
6182 CFLAGS="$CFLAGS $libgd_include"
6183 old_LDFLAGS="$LDFLAGS"
6184 LDFLAGS="$LDFLAGS $libgd_ldflags"
6185 old_LIBS="$LIBS"
6186 LIBS="$LIBS -lgd -lpng -lz -lm"
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 #include <gd.h>
6191 main ()
6193 gdImagePng (0, 0)
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 LIBGD=yes
6200 else
6201 LIBGD=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 CFLAGS="$old_CFLAGS"
6206 LDFLAGS="$old_LDFLAGS"
6207 LIBS="$old_LIBS"
6208 else
6209 LIBGD=no
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6212 $as_echo "$LIBGD" >&6; }
6215 # SELinux detection
6216 if test x$with_selinux = xno ; then
6217 have_selinux=no;
6218 else
6219 # See if we have the SELinux library
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6221 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6222 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lselinux $LIBS"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6230 /* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply. */
6233 #ifdef __cplusplus
6234 extern "C"
6235 #endif
6236 char is_selinux_enabled ();
6238 main ()
6240 return is_selinux_enabled ();
6242 return 0;
6244 _ACEOF
6245 if ac_fn_c_try_link "$LINENO"; then :
6246 ac_cv_lib_selinux_is_selinux_enabled=yes
6247 else
6248 ac_cv_lib_selinux_is_selinux_enabled=no
6250 rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_check_lib_save_LIBS
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6255 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6256 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6257 have_selinux=yes
6258 else
6259 have_selinux=no
6262 if test x$with_selinux = xyes ; then
6263 if test x$have_selinux = xno ; then
6264 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6268 # Check if we're building with SELinux support.
6269 if test "x$have_selinux" = xyes; then
6271 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6274 # See if we have the libaudit library
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6276 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6277 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 ac_check_lib_save_LIBS=$LIBS
6281 LIBS="-laudit $LIBS"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply. */
6288 #ifdef __cplusplus
6289 extern "C"
6290 #endif
6291 char audit_log_user_avc_message ();
6293 main ()
6295 return audit_log_user_avc_message ();
6297 return 0;
6299 _ACEOF
6300 if ac_fn_c_try_link "$LINENO"; then :
6301 ac_cv_lib_audit_audit_log_user_avc_message=yes
6302 else
6303 ac_cv_lib_audit_audit_log_user_avc_message=no
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6310 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6311 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6312 have_libaudit=yes
6313 else
6314 have_libaudit=no
6317 if test "x$have_libaudit" = xyes; then
6319 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6324 # See if we have the libcap library
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6326 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6327 if ${ac_cv_lib_cap_cap_init+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 ac_check_lib_save_LIBS=$LIBS
6331 LIBS="-lcap $LIBS"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6335 /* Override any GCC internal prototype to avoid an error.
6336 Use char because int might match the return type of a GCC
6337 builtin and then its argument prototype would still apply. */
6338 #ifdef __cplusplus
6339 extern "C"
6340 #endif
6341 char cap_init ();
6343 main ()
6345 return cap_init ();
6347 return 0;
6349 _ACEOF
6350 if ac_fn_c_try_link "$LINENO"; then :
6351 ac_cv_lib_cap_cap_init=yes
6352 else
6353 ac_cv_lib_cap_cap_init=no
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext conftest.$ac_ext
6357 LIBS=$ac_check_lib_save_LIBS
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6360 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6361 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6362 have_libcap=yes
6363 else
6364 have_libcap=no
6367 if test "x$have_libcap" = xyes; then
6369 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6376 no_fortify_source="-Wp,-U_FORTIFY_SOURCE"
6377 fortify_source="${no_fortify_source}"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_dynamic_object_size" >&5
6380 $as_echo_n "checking for __builtin_dynamic_object_size... " >&6; }
6381 if ${libc_cv___builtin_dynamic_object_size+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6389 main ()
6391 __builtin_dynamic_object_size("", 0)
6393 return 0;
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397 libc_cv___builtin_dynamic_object_size=yes
6398 if test "$enable_fortify_source" = yes; then :
6399 enable_fortify_source=3
6401 else
6402 libc_cv___builtin_dynamic_object_size=no
6403 if test "$enable_fortify_source" = yes; then :
6404 enable_fortify_source=2
6407 rm -f core conftest.err conftest.$ac_objext \
6408 conftest$ac_exeext conftest.$ac_ext
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv___builtin_dynamic_object_size" >&5
6412 $as_echo "$libc_cv___builtin_dynamic_object_size" >&6; }
6414 case $enable_fortify_source in #(
6415 1|2) :
6416 libc_cv_fortify_source=yes ;; #(
6417 3) :
6418 if test "$libc_cv___builtin_dynamic_object_size" = yes; then :
6419 libc_cv_fortify_source=yes
6420 else
6421 as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5
6422 fi ;; #(
6423 *) :
6424 libc_cv_fortify_source=no ;;
6425 esac
6427 if test "$libc_cv_fortify_source" = yes; then :
6428 fortify_source="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
6438 $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; }
6439 if ${libc_cv_symver_needs_alias+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 cat > conftest.s <<EOF
6443 .text
6444 testfunc:
6445 .globl testfunc
6446 .symver testfunc, testfunc1@VERSION1
6447 .symver testfunc, testfunc1@VERSION2
6449 libc_cv_symver_needs_alias=no
6450 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
6451 libc_cv_symver_needs_alias=no
6452 else
6453 libc_cv_symver_needs_alias=yes
6455 rm conftest.*
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
6459 $as_echo "$libc_cv_symver_needs_alias" >&6; }
6460 if test "$libc_cv_symver_needs_alias" = yes; then
6461 $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6466 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6467 if ${libc_cv_builtin_trap+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 libc_cv_builtin_trap=no
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6475 main ()
6477 __builtin_trap ()
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6484 libc_undefs=`$NM -u conftest.o |
6485 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6486 2>&5` || {
6487 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6489 echo >&5 "libc_undefs='$libc_undefs'"
6490 if test -z "$libc_undefs"; then
6491 libc_cv_builtin_trap=yes
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6497 $as_echo "$libc_cv_builtin_trap" >&6; }
6498 if test $libc_cv_builtin_trap = yes; then
6499 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6503 ac_ext=cpp
6504 ac_cpp='$CXXCPP $CPPFLAGS'
6505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6511 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6512 if ${libc_cv_cxx_thread_local+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6516 old_CXXFLAGS="$CXXFLAGS"
6517 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6521 #include <thread>
6523 // Compiler support.
6524 struct S
6526 S ();
6527 ~S ();
6529 thread_local S s;
6530 S * get () { return &s; }
6532 // libstdc++ support.
6533 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6534 #error __cxa_thread_atexit_impl not supported
6535 #endif
6537 _ACEOF
6538 if ac_fn_cxx_try_compile "$LINENO"; then :
6539 libc_cv_cxx_thread_local=yes
6540 else
6541 libc_cv_cxx_thread_local=no
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 CXXFLAGS="$old_CXXFLAGS"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6548 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6551 ac_ext=c
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558 ### End of automated tests.
6559 ### Now run sysdeps configure fragments.
6561 # They also can set these variables.
6562 use_ldconfig=no
6563 ldd_rewrite_script=no
6564 libc_cv_sysconfdir=$sysconfdir
6565 libc_cv_localstatedir=$localstatedir
6566 libc_cv_gcc_unwind_find_fde=no
6567 libc_cv_idn=no
6568 pthread_in_libc=yes
6570 # Iterate over all the sysdep directories we will use, running their
6571 # configure fragments.
6572 for dir in $sysnames; do
6573 case $dir in
6574 /*) dest=$dir ;;
6575 *) dest=$srcdir/$dir ;;
6576 esac
6577 if test -r $dest/configure; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6579 $as_echo "running configure fragment for $dir" >&6; }
6580 . $dest/configure
6582 done
6584 if test x"$build_mathvec" = xnotset; then
6585 build_mathvec=no
6587 config_vars="$config_vars
6588 build-mathvec = $build_mathvec"
6593 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6594 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6599 # A sysdeps configure fragment can reset this if IFUNC is not actually
6600 # usable even though the assembler knows how to generate the symbol type.
6601 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6602 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6605 config_vars="$config_vars
6606 have-ifunc = $libc_cv_ld_gnu_indirect_function"
6608 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6609 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6612 config_vars="$config_vars
6613 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
6615 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6616 # configure fragment can override the value to prevent this AC_DEFINE.
6618 if test "x$use_nscd" != xno; then
6619 $as_echo "#define USE_NSCD 1" >>confdefs.h
6622 if test "x$build_nscd" = xdefault; then
6623 build_nscd=$use_nscd
6633 if test x$use_ldconfig = xyes; then
6634 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6644 $as_echo_n "checking whether -fPIC is default... " >&6; }
6645 if ${libc_cv_pic_default+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 libc_cv_pic_default=yes
6649 cat > conftest.c <<EOF
6650 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6651 # error PIC is default.
6652 #endif
6654 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6655 libc_cv_pic_default=no
6657 rm -f conftest.*
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6660 $as_echo "$libc_cv_pic_default" >&6; }
6661 config_vars="$config_vars
6662 build-pic-default = $libc_cv_pic_default"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6665 $as_echo_n "checking whether -fPIE is default... " >&6; }
6666 if ${libc_cv_cc_pie_default+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 libc_cv_cc_pie_default=yes
6670 cat > conftest.c <<EOF
6671 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6672 # error PIE is default.
6673 #endif
6675 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6676 libc_cv_cc_pie_default=no
6678 rm -f conftest.*
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
6681 $as_echo "$libc_cv_cc_pie_default" >&6; }
6682 config_vars="$config_vars
6683 cc-pie-default = $libc_cv_cc_pie_default"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
6686 $as_echo_n "checking if we can build programs as PIE... " >&6; }
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #ifdef PIE_UNSUPPORTED
6690 # error PIE is not supported
6691 #endif
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 libc_cv_pie_supported=yes
6695 else
6696 libc_cv_pie_supported=no
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
6700 $as_echo "$libc_cv_pie_supported" >&6; }
6701 # Disable build-pie-default if target does not support it or glibc is
6702 # configured with --disable-default-pie.
6703 if test "x$default_pie" = xno; then
6704 build_pie_default=no
6705 else
6706 build_pie_default=$libc_cv_pie_supported
6708 config_vars="$config_vars
6709 build-pie-default = $build_pie_default"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
6712 $as_echo_n "checking if we can build static PIE programs... " >&6; }
6713 libc_cv_static_pie_supported=$libc_cv_pie_supported
6714 if test "x$libc_cv_pie_supported" != xno \
6715 -a "$libc_cv_no_dynamic_linker" = yes; then
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #ifndef SUPPORT_STATIC_PIE
6719 # error static PIE is not supported
6720 #endif
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 libc_cv_static_pie_supported=yes
6724 else
6725 libc_cv_static_pie_supported=no
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
6730 $as_echo "$libc_cv_static_pie_supported" >&6; }
6732 # Enable static-pie only if it is available and glibc isn't configured
6733 # with --disable-default-pie.
6734 if test "x$default_pie" = xno; then
6735 libc_cv_static_pie=no
6736 else
6737 libc_cv_static_pie=$libc_cv_static_pie_supported
6739 if test "$libc_cv_static_pie" = "yes"; then
6740 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6743 config_vars="$config_vars
6744 enable-static-pie = $libc_cv_static_pie"
6746 # Set the `multidir' variable by grabbing the variable from the compiler.
6747 # We do it once and save the result in a generated makefile.
6748 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6758 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6759 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6763 if test "$pthread_in_libc" = yes; then
6764 $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h
6769 ac_config_files="$ac_config_files config.make Makefile"
6771 ac_config_commands="$ac_config_commands default"
6773 cat >confcache <<\_ACEOF
6774 # This file is a shell script that caches the results of configure
6775 # tests run on this system so they can be shared between configure
6776 # scripts and configure runs, see configure's option --config-cache.
6777 # It is not useful on other systems. If it contains results you don't
6778 # want to keep, you may remove or edit it.
6780 # config.status only pays attention to the cache file if you give it
6781 # the --recheck option to rerun configure.
6783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6785 # following values.
6787 _ACEOF
6789 # The following way of writing the cache mishandles newlines in values,
6790 # but we know of no workaround that is simple, portable, and efficient.
6791 # So, we kill variables containing newlines.
6792 # Ultrix sh set writes to stderr and can't be redirected directly,
6793 # and sets the high bit in the cache file unless we assign to the vars.
6795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6796 eval ac_val=\$$ac_var
6797 case $ac_val in #(
6798 *${as_nl}*)
6799 case $ac_var in #(
6800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6802 esac
6803 case $ac_var in #(
6804 _ | IFS | as_nl) ;; #(
6805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6806 *) { eval $ac_var=; unset $ac_var;} ;;
6807 esac ;;
6808 esac
6809 done
6811 (set) 2>&1 |
6812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6813 *${as_nl}ac_space=\ *)
6814 # `set' does not quote correctly, so add quotes: double-quote
6815 # substitution turns \\\\ into \\, and sed turns \\ into \.
6816 sed -n \
6817 "s/'/'\\\\''/g;
6818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6819 ;; #(
6821 # `set' quotes correctly as required by POSIX, so do not add quotes.
6822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6824 esac |
6825 sort
6827 sed '
6828 /^ac_cv_env_/b end
6829 t clear
6830 :clear
6831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6832 t end
6833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6834 :end' >>confcache
6835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6836 if test -w "$cache_file"; then
6837 if test "x$cache_file" != "x/dev/null"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6839 $as_echo "$as_me: updating cache $cache_file" >&6;}
6840 if test ! -f "$cache_file" || test -h "$cache_file"; then
6841 cat confcache >"$cache_file"
6842 else
6843 case $cache_file in #(
6844 */* | ?:*)
6845 mv -f confcache "$cache_file"$$ &&
6846 mv -f "$cache_file"$$ "$cache_file" ;; #(
6848 mv -f confcache "$cache_file" ;;
6849 esac
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6857 rm -f confcache
6859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6860 # Let make expand exec_prefix.
6861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6863 DEFS=-DHAVE_CONFIG_H
6865 ac_libobjs=
6866 ac_ltlibobjs=
6868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6869 # 1. Remove the extension, and $U if already installed.
6870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6873 # will be set to the directory where LIBOBJS objects are built.
6874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6876 done
6877 LIBOBJS=$ac_libobjs
6879 LTLIBOBJS=$ac_ltlibobjs
6883 : "${CONFIG_STATUS=./config.status}"
6884 ac_write_fail=0
6885 ac_clean_files_save=$ac_clean_files
6886 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6888 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6889 as_write_fail=0
6890 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6891 #! $SHELL
6892 # Generated by $as_me.
6893 # Run this file to recreate the current configuration.
6894 # Compiler output produced by configure, useful for debugging
6895 # configure, is in config.log if it exists.
6897 debug=false
6898 ac_cs_recheck=false
6899 ac_cs_silent=false
6901 SHELL=\${CONFIG_SHELL-$SHELL}
6902 export SHELL
6903 _ASEOF
6904 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6905 ## -------------------- ##
6906 ## M4sh Initialization. ##
6907 ## -------------------- ##
6909 # Be more Bourne compatible
6910 DUALCASE=1; export DUALCASE # for MKS sh
6911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6912 emulate sh
6913 NULLCMD=:
6914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6915 # is contrary to our usage. Disable this feature.
6916 alias -g '${1+"$@"}'='"$@"'
6917 setopt NO_GLOB_SUBST
6918 else
6919 case `(set -o) 2>/dev/null` in #(
6920 *posix*) :
6921 set -o posix ;; #(
6922 *) :
6924 esac
6928 as_nl='
6930 export as_nl
6931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6932 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6935 # Prefer a ksh shell builtin over an external printf program on Solaris,
6936 # but without wasting forks for bash or zsh.
6937 if test -z "$BASH_VERSION$ZSH_VERSION" \
6938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6939 as_echo='print -r --'
6940 as_echo_n='print -rn --'
6941 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6942 as_echo='printf %s\n'
6943 as_echo_n='printf %s'
6944 else
6945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6947 as_echo_n='/usr/ucb/echo -n'
6948 else
6949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6950 as_echo_n_body='eval
6951 arg=$1;
6952 case $arg in #(
6953 *"$as_nl"*)
6954 expr "X$arg" : "X\\(.*\\)$as_nl";
6955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6956 esac;
6957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6959 export as_echo_n_body
6960 as_echo_n='sh -c $as_echo_n_body as_echo'
6962 export as_echo_body
6963 as_echo='sh -c $as_echo_body as_echo'
6966 # The user is always right.
6967 if test "${PATH_SEPARATOR+set}" != set; then
6968 PATH_SEPARATOR=:
6969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6971 PATH_SEPARATOR=';'
6976 # IFS
6977 # We need space, tab and new line, in precisely that order. Quoting is
6978 # there to prevent editors from complaining about space-tab.
6979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6980 # splitting by setting IFS to empty value.)
6981 IFS=" "" $as_nl"
6983 # Find who we are. Look in the path if we contain no directory separator.
6984 as_myself=
6985 case $0 in #((
6986 *[\\/]* ) as_myself=$0 ;;
6987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6993 done
6994 IFS=$as_save_IFS
6997 esac
6998 # We did not find ourselves, most probably we were run as `sh COMMAND'
6999 # in which case we are not to be found in the path.
7000 if test "x$as_myself" = x; then
7001 as_myself=$0
7003 if test ! -f "$as_myself"; then
7004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7005 exit 1
7008 # Unset variables that we do not need and which cause bugs (e.g. in
7009 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7010 # suppresses any "Segmentation fault" message there. '((' could
7011 # trigger a bug in pdksh 5.2.14.
7012 for as_var in BASH_ENV ENV MAIL MAILPATH
7013 do eval test x\${$as_var+set} = xset \
7014 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7015 done
7016 PS1='$ '
7017 PS2='> '
7018 PS4='+ '
7020 # NLS nuisances.
7021 LC_ALL=C
7022 export LC_ALL
7023 LANGUAGE=C
7024 export LANGUAGE
7026 # CDPATH.
7027 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7030 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7031 # ----------------------------------------
7032 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7033 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7034 # script with STATUS, using 1 if that was 0.
7035 as_fn_error ()
7037 as_status=$1; test $as_status -eq 0 && as_status=1
7038 if test "$4"; then
7039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7040 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7042 $as_echo "$as_me: error: $2" >&2
7043 as_fn_exit $as_status
7044 } # as_fn_error
7047 # as_fn_set_status STATUS
7048 # -----------------------
7049 # Set $? to STATUS, without forking.
7050 as_fn_set_status ()
7052 return $1
7053 } # as_fn_set_status
7055 # as_fn_exit STATUS
7056 # -----------------
7057 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7058 as_fn_exit ()
7060 set +e
7061 as_fn_set_status $1
7062 exit $1
7063 } # as_fn_exit
7065 # as_fn_unset VAR
7066 # ---------------
7067 # Portably unset VAR.
7068 as_fn_unset ()
7070 { eval $1=; unset $1;}
7072 as_unset=as_fn_unset
7073 # as_fn_append VAR VALUE
7074 # ----------------------
7075 # Append the text in VALUE to the end of the definition contained in VAR. Take
7076 # advantage of any shell optimizations that allow amortized linear growth over
7077 # repeated appends, instead of the typical quadratic growth present in naive
7078 # implementations.
7079 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7080 eval 'as_fn_append ()
7082 eval $1+=\$2
7084 else
7085 as_fn_append ()
7087 eval $1=\$$1\$2
7089 fi # as_fn_append
7091 # as_fn_arith ARG...
7092 # ------------------
7093 # Perform arithmetic evaluation on the ARGs, and store the result in the
7094 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7095 # must be portable across $(()) and expr.
7096 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7097 eval 'as_fn_arith ()
7099 as_val=$(( $* ))
7101 else
7102 as_fn_arith ()
7104 as_val=`expr "$@" || test $? -eq 1`
7106 fi # as_fn_arith
7109 if expr a : '\(a\)' >/dev/null 2>&1 &&
7110 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7111 as_expr=expr
7112 else
7113 as_expr=false
7116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7117 as_basename=basename
7118 else
7119 as_basename=false
7122 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7123 as_dirname=dirname
7124 else
7125 as_dirname=false
7128 as_me=`$as_basename -- "$0" ||
7129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7130 X"$0" : 'X\(//\)$' \| \
7131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7132 $as_echo X/"$0" |
7133 sed '/^.*\/\([^/][^/]*\)\/*$/{
7134 s//\1/
7137 /^X\/\(\/\/\)$/{
7138 s//\1/
7141 /^X\/\(\/\).*/{
7142 s//\1/
7145 s/.*/./; q'`
7147 # Avoid depending upon Character Ranges.
7148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7151 as_cr_digits='0123456789'
7152 as_cr_alnum=$as_cr_Letters$as_cr_digits
7154 ECHO_C= ECHO_N= ECHO_T=
7155 case `echo -n x` in #(((((
7156 -n*)
7157 case `echo 'xy\c'` in
7158 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7159 xy) ECHO_C='\c';;
7160 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7161 ECHO_T=' ';;
7162 esac;;
7164 ECHO_N='-n';;
7165 esac
7167 rm -f conf$$ conf$$.exe conf$$.file
7168 if test -d conf$$.dir; then
7169 rm -f conf$$.dir/conf$$.file
7170 else
7171 rm -f conf$$.dir
7172 mkdir conf$$.dir 2>/dev/null
7174 if (echo >conf$$.file) 2>/dev/null; then
7175 if ln -s conf$$.file conf$$ 2>/dev/null; then
7176 as_ln_s='ln -s'
7177 # ... but there are two gotchas:
7178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7180 # In both cases, we have to default to `cp -pR'.
7181 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7182 as_ln_s='cp -pR'
7183 elif ln conf$$.file conf$$ 2>/dev/null; then
7184 as_ln_s=ln
7185 else
7186 as_ln_s='cp -pR'
7188 else
7189 as_ln_s='cp -pR'
7191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7192 rmdir conf$$.dir 2>/dev/null
7195 # as_fn_mkdir_p
7196 # -------------
7197 # Create "$as_dir" as a directory, including parents if necessary.
7198 as_fn_mkdir_p ()
7201 case $as_dir in #(
7202 -*) as_dir=./$as_dir;;
7203 esac
7204 test -d "$as_dir" || eval $as_mkdir_p || {
7205 as_dirs=
7206 while :; do
7207 case $as_dir in #(
7208 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7209 *) as_qdir=$as_dir;;
7210 esac
7211 as_dirs="'$as_qdir' $as_dirs"
7212 as_dir=`$as_dirname -- "$as_dir" ||
7213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7214 X"$as_dir" : 'X\(//\)[^/]' \| \
7215 X"$as_dir" : 'X\(//\)$' \| \
7216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7217 $as_echo X"$as_dir" |
7218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7219 s//\1/
7222 /^X\(\/\/\)[^/].*/{
7223 s//\1/
7226 /^X\(\/\/\)$/{
7227 s//\1/
7230 /^X\(\/\).*/{
7231 s//\1/
7234 s/.*/./; q'`
7235 test -d "$as_dir" && break
7236 done
7237 test -z "$as_dirs" || eval "mkdir $as_dirs"
7238 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7241 } # as_fn_mkdir_p
7242 if mkdir -p . 2>/dev/null; then
7243 as_mkdir_p='mkdir -p "$as_dir"'
7244 else
7245 test -d ./-p && rmdir ./-p
7246 as_mkdir_p=false
7250 # as_fn_executable_p FILE
7251 # -----------------------
7252 # Test if FILE is an executable regular file.
7253 as_fn_executable_p ()
7255 test -f "$1" && test -x "$1"
7256 } # as_fn_executable_p
7257 as_test_x='test -x'
7258 as_executable_p=as_fn_executable_p
7260 # Sed expression to map a string onto a valid CPP name.
7261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7263 # Sed expression to map a string onto a valid variable name.
7264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7267 exec 6>&1
7268 ## ----------------------------------- ##
7269 ## Main body of $CONFIG_STATUS script. ##
7270 ## ----------------------------------- ##
7271 _ASEOF
7272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7275 # Save the log message, to keep $0 and so on meaningful, and to
7276 # report actual input values of CONFIG_FILES etc. instead of their
7277 # values after options handling.
7278 ac_log="
7279 This file was extended by GNU C Library $as_me (see version.h), which was
7280 generated by GNU Autoconf 2.69. Invocation command line was
7282 CONFIG_FILES = $CONFIG_FILES
7283 CONFIG_HEADERS = $CONFIG_HEADERS
7284 CONFIG_LINKS = $CONFIG_LINKS
7285 CONFIG_COMMANDS = $CONFIG_COMMANDS
7286 $ $0 $@
7288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7291 _ACEOF
7293 case $ac_config_files in *"
7294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7295 esac
7297 case $ac_config_headers in *"
7298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7299 esac
7302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7303 # Files that config.status was made for.
7304 config_files="$ac_config_files"
7305 config_headers="$ac_config_headers"
7306 config_commands="$ac_config_commands"
7308 _ACEOF
7310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7311 ac_cs_usage="\
7312 \`$as_me' instantiates files and other configuration actions
7313 from templates according to the current configuration. Unless the files
7314 and actions are specified as TAGs, all are instantiated by default.
7316 Usage: $0 [OPTION]... [TAG]...
7318 -h, --help print this help, then exit
7319 -V, --version print version number and configuration settings, then exit
7320 --config print configuration, then exit
7321 -q, --quiet, --silent
7322 do not print progress messages
7323 -d, --debug don't remove temporary files
7324 --recheck update $as_me by reconfiguring in the same conditions
7325 --file=FILE[:TEMPLATE]
7326 instantiate the configuration file FILE
7327 --header=FILE[:TEMPLATE]
7328 instantiate the configuration header FILE
7330 Configuration files:
7331 $config_files
7333 Configuration headers:
7334 $config_headers
7336 Configuration commands:
7337 $config_commands
7339 Report bugs to <https://sourceware.org/bugzilla/>.
7340 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
7341 General help using GNU software: <http://www.gnu.org/gethelp/>."
7343 _ACEOF
7344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7345 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7346 ac_cs_version="\\
7347 GNU C Library config.status (see version.h)
7348 configured by $0, generated by GNU Autoconf 2.69,
7349 with options \\"\$ac_cs_config\\"
7351 Copyright (C) 2012 Free Software Foundation, Inc.
7352 This config.status script is free software; the Free Software Foundation
7353 gives unlimited permission to copy, distribute and modify it."
7355 ac_pwd='$ac_pwd'
7356 srcdir='$srcdir'
7357 INSTALL='$INSTALL'
7358 test -n "\$AWK" || AWK=awk
7359 _ACEOF
7361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7362 # The default lists apply if the user does not specify any file.
7363 ac_need_defaults=:
7364 while test $# != 0
7366 case $1 in
7367 --*=?*)
7368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7370 ac_shift=:
7372 --*=)
7373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7374 ac_optarg=
7375 ac_shift=:
7378 ac_option=$1
7379 ac_optarg=$2
7380 ac_shift=shift
7382 esac
7384 case $ac_option in
7385 # Handling of the options.
7386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7387 ac_cs_recheck=: ;;
7388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7389 $as_echo "$ac_cs_version"; exit ;;
7390 --config | --confi | --conf | --con | --co | --c )
7391 $as_echo "$ac_cs_config"; exit ;;
7392 --debug | --debu | --deb | --de | --d | -d )
7393 debug=: ;;
7394 --file | --fil | --fi | --f )
7395 $ac_shift
7396 case $ac_optarg in
7397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7398 '') as_fn_error $? "missing file argument" ;;
7399 esac
7400 as_fn_append CONFIG_FILES " '$ac_optarg'"
7401 ac_need_defaults=false;;
7402 --header | --heade | --head | --hea )
7403 $ac_shift
7404 case $ac_optarg in
7405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7406 esac
7407 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7408 ac_need_defaults=false;;
7409 --he | --h)
7410 # Conflict between --help and --header
7411 as_fn_error $? "ambiguous option: \`$1'
7412 Try \`$0 --help' for more information.";;
7413 --help | --hel | -h )
7414 $as_echo "$ac_cs_usage"; exit ;;
7415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7417 ac_cs_silent=: ;;
7419 # This is an error.
7420 -*) as_fn_error $? "unrecognized option: \`$1'
7421 Try \`$0 --help' for more information." ;;
7423 *) as_fn_append ac_config_targets " $1"
7424 ac_need_defaults=false ;;
7426 esac
7427 shift
7428 done
7430 ac_configure_extra_args=
7432 if $ac_cs_silent; then
7433 exec 6>/dev/null
7434 ac_configure_extra_args="$ac_configure_extra_args --silent"
7437 _ACEOF
7438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7439 if \$ac_cs_recheck; then
7440 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7441 shift
7442 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7443 CONFIG_SHELL='$SHELL'
7444 export CONFIG_SHELL
7445 exec "\$@"
7448 _ACEOF
7449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7450 exec 5>>config.log
7452 echo
7453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7454 ## Running $as_me. ##
7455 _ASBOX
7456 $as_echo "$ac_log"
7457 } >&5
7459 _ACEOF
7460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7462 # INIT-COMMANDS
7464 config_vars='$config_vars'
7466 _ACEOF
7468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7470 # Handling of arguments.
7471 for ac_config_target in $ac_config_targets
7473 case $ac_config_target in
7474 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7475 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7477 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7479 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7480 esac
7481 done
7484 # If the user did not use the arguments to specify the items to instantiate,
7485 # then the envvar interface is used. Set only those that are not.
7486 # We use the long form for the default assignment because of an extremely
7487 # bizarre bug on SunOS 4.1.3.
7488 if $ac_need_defaults; then
7489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7490 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7494 # Have a temporary directory for convenience. Make it in the build tree
7495 # simply because there is no reason against having it here, and in addition,
7496 # creating and moving files from /tmp can sometimes cause problems.
7497 # Hook for its removal unless debugging.
7498 # Note that there is a small window in which the directory will not be cleaned:
7499 # after its creation but before its name has been assigned to `$tmp'.
7500 $debug ||
7502 tmp= ac_tmp=
7503 trap 'exit_status=$?
7504 : "${ac_tmp:=$tmp}"
7505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7507 trap 'as_fn_exit 1' 1 2 13 15
7509 # Create a (secure) tmp directory for tmp files.
7512 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7513 test -d "$tmp"
7514 } ||
7516 tmp=./conf$$-$RANDOM
7517 (umask 077 && mkdir "$tmp")
7518 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7519 ac_tmp=$tmp
7521 # Set up the scripts for CONFIG_FILES section.
7522 # No need to generate them if there are no CONFIG_FILES.
7523 # This happens for instance with `./config.status config.h'.
7524 if test -n "$CONFIG_FILES"; then
7527 ac_cr=`echo X | tr X '\015'`
7528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7529 # But we know of no other shell where ac_cr would be empty at this
7530 # point, so we can use a bashism as a fallback.
7531 if test "x$ac_cr" = x; then
7532 eval ac_cr=\$\'\\r\'
7534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7536 ac_cs_awk_cr='\\r'
7537 else
7538 ac_cs_awk_cr=$ac_cr
7541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7542 _ACEOF
7546 echo "cat >conf$$subs.awk <<_ACEOF" &&
7547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7548 echo "_ACEOF"
7549 } >conf$$subs.sh ||
7550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7552 ac_delim='%!_!# '
7553 for ac_last_try in false false false false false :; do
7554 . ./conf$$subs.sh ||
7555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7557 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7558 if test $ac_delim_n = $ac_delim_num; then
7559 break
7560 elif $ac_last_try; then
7561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7562 else
7563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7565 done
7566 rm -f conf$$subs.sh
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7570 _ACEOF
7571 sed -n '
7573 s/^/S["/; s/!.*/"]=/
7576 s/^[^!]*!//
7577 :repl
7578 t repl
7579 s/'"$ac_delim"'$//
7580 t delim
7583 s/\(.\{148\}\)..*/\1/
7584 t more1
7585 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7588 b repl
7589 :more1
7590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7593 s/.\{148\}//
7594 t nl
7595 :delim
7597 s/\(.\{148\}\)..*/\1/
7598 t more2
7599 s/["\\]/\\&/g; s/^/"/; s/$/"/
7602 :more2
7603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7606 s/.\{148\}//
7607 t delim
7608 ' <conf$$subs.awk | sed '
7609 /^[^""]/{
7611 s/\n//
7613 ' >>$CONFIG_STATUS || ac_write_fail=1
7614 rm -f conf$$subs.awk
7615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7616 _ACAWK
7617 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7618 for (key in S) S_is_set[key] = 1
7619 FS = "\a"
7623 line = $ 0
7624 nfields = split(line, field, "@")
7625 substed = 0
7626 len = length(field[1])
7627 for (i = 2; i < nfields; i++) {
7628 key = field[i]
7629 keylen = length(key)
7630 if (S_is_set[key]) {
7631 value = S[key]
7632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7633 len += length(value) + length(field[++i])
7634 substed = 1
7635 } else
7636 len += 1 + keylen
7639 print line
7642 _ACAWK
7643 _ACEOF
7644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7645 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7646 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7647 else
7649 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7650 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7651 _ACEOF
7653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7655 # trailing colons and then remove the whole line if VPATH becomes empty
7656 # (actually we leave an empty line to preserve line numbers).
7657 if test "x$srcdir" = x.; then
7658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7660 s///
7661 s/^/:/
7662 s/[ ]*$/:/
7663 s/:\$(srcdir):/:/g
7664 s/:\${srcdir}:/:/g
7665 s/:@srcdir@:/:/g
7666 s/^:*//
7667 s/:*$//
7669 s/\(=[ ]*\).*/\1/
7671 s/\n//
7672 s/^[^=]*=[ ]*$//
7676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7677 fi # test -n "$CONFIG_FILES"
7679 # Set up the scripts for CONFIG_HEADERS section.
7680 # No need to generate them if there are no CONFIG_HEADERS.
7681 # This happens for instance with `./config.status Makefile'.
7682 if test -n "$CONFIG_HEADERS"; then
7683 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7684 BEGIN {
7685 _ACEOF
7687 # Transform confdefs.h into an awk script `defines.awk', embedded as
7688 # here-document in config.status, that substitutes the proper values into
7689 # config.h.in to produce config.h.
7691 # Create a delimiter string that does not exist in confdefs.h, to ease
7692 # handling of long lines.
7693 ac_delim='%!_!# '
7694 for ac_last_try in false false :; do
7695 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7696 if test -z "$ac_tt"; then
7697 break
7698 elif $ac_last_try; then
7699 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7700 else
7701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7703 done
7705 # For the awk script, D is an array of macro values keyed by name,
7706 # likewise P contains macro parameters if any. Preserve backslash
7707 # newline sequences.
7709 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7710 sed -n '
7711 s/.\{148\}/&'"$ac_delim"'/g
7712 t rset
7713 :rset
7714 s/^[ ]*#[ ]*define[ ][ ]*/ /
7715 t def
7717 :def
7718 s/\\$//
7719 t bsnl
7720 s/["\\]/\\&/g
7721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7722 D["\1"]=" \3"/p
7723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7725 :bsnl
7726 s/["\\]/\\&/g
7727 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7728 D["\1"]=" \3\\\\\\n"\\/p
7729 t cont
7730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7731 t cont
7733 :cont
7735 s/.\{148\}/&'"$ac_delim"'/g
7736 t clear
7737 :clear
7738 s/\\$//
7739 t bsnlc
7740 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7742 :bsnlc
7743 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7744 b cont
7745 ' <confdefs.h | sed '
7746 s/'"$ac_delim"'/"\\\
7747 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7750 for (key in D) D_is_set[key] = 1
7751 FS = "\a"
7753 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7754 line = \$ 0
7755 split(line, arg, " ")
7756 if (arg[1] == "#") {
7757 defundef = arg[2]
7758 mac1 = arg[3]
7759 } else {
7760 defundef = substr(arg[1], 2)
7761 mac1 = arg[2]
7763 split(mac1, mac2, "(") #)
7764 macro = mac2[1]
7765 prefix = substr(line, 1, index(line, defundef) - 1)
7766 if (D_is_set[macro]) {
7767 # Preserve the white space surrounding the "#".
7768 print prefix "define", macro P[macro] D[macro]
7769 next
7770 } else {
7771 # Replace #undef with comments. This is necessary, for example,
7772 # in the case of _POSIX_SOURCE, which is predefined and required
7773 # on some systems where configure will not decide to define it.
7774 if (defundef == "undef") {
7775 print "/*", prefix defundef, macro, "*/"
7776 next
7780 { print }
7781 _ACAWK
7782 _ACEOF
7783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7784 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7785 fi # test -n "$CONFIG_HEADERS"
7788 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7789 shift
7790 for ac_tag
7792 case $ac_tag in
7793 :[FHLC]) ac_mode=$ac_tag; continue;;
7794 esac
7795 case $ac_mode$ac_tag in
7796 :[FHL]*:*);;
7797 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7798 :[FH]-) ac_tag=-:-;;
7799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7800 esac
7801 ac_save_IFS=$IFS
7802 IFS=:
7803 set x $ac_tag
7804 IFS=$ac_save_IFS
7805 shift
7806 ac_file=$1
7807 shift
7809 case $ac_mode in
7810 :L) ac_source=$1;;
7811 :[FH])
7812 ac_file_inputs=
7813 for ac_f
7815 case $ac_f in
7816 -) ac_f="$ac_tmp/stdin";;
7817 *) # Look for the file first in the build tree, then in the source tree
7818 # (if the path is not absolute). The absolute path cannot be DOS-style,
7819 # because $ac_f cannot contain `:'.
7820 test -f "$ac_f" ||
7821 case $ac_f in
7822 [\\/$]*) false;;
7823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7824 esac ||
7825 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7826 esac
7827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7828 as_fn_append ac_file_inputs " '$ac_f'"
7829 done
7831 # Let's still pretend it is `configure' which instantiates (i.e., don't
7832 # use $as_me), people would be surprised to read:
7833 # /* config.h. Generated by config.status. */
7834 configure_input='Generated from '`
7835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7836 `' by configure.'
7837 if test x"$ac_file" != x-; then
7838 configure_input="$ac_file. $configure_input"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7840 $as_echo "$as_me: creating $ac_file" >&6;}
7842 # Neutralize special characters interpreted by sed in replacement strings.
7843 case $configure_input in #(
7844 *\&* | *\|* | *\\* )
7845 ac_sed_conf_input=`$as_echo "$configure_input" |
7846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7847 *) ac_sed_conf_input=$configure_input;;
7848 esac
7850 case $ac_tag in
7851 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7853 esac
7855 esac
7857 ac_dir=`$as_dirname -- "$ac_file" ||
7858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7859 X"$ac_file" : 'X\(//\)[^/]' \| \
7860 X"$ac_file" : 'X\(//\)$' \| \
7861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7862 $as_echo X"$ac_file" |
7863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7864 s//\1/
7867 /^X\(\/\/\)[^/].*/{
7868 s//\1/
7871 /^X\(\/\/\)$/{
7872 s//\1/
7875 /^X\(\/\).*/{
7876 s//\1/
7879 s/.*/./; q'`
7880 as_dir="$ac_dir"; as_fn_mkdir_p
7881 ac_builddir=.
7883 case "$ac_dir" in
7884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7887 # A ".." for each directory in $ac_dir_suffix.
7888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7889 case $ac_top_builddir_sub in
7890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7892 esac ;;
7893 esac
7894 ac_abs_top_builddir=$ac_pwd
7895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7896 # for backward compatibility:
7897 ac_top_builddir=$ac_top_build_prefix
7899 case $srcdir in
7900 .) # We are building in place.
7901 ac_srcdir=.
7902 ac_top_srcdir=$ac_top_builddir_sub
7903 ac_abs_top_srcdir=$ac_pwd ;;
7904 [\\/]* | ?:[\\/]* ) # Absolute name.
7905 ac_srcdir=$srcdir$ac_dir_suffix;
7906 ac_top_srcdir=$srcdir
7907 ac_abs_top_srcdir=$srcdir ;;
7908 *) # Relative name.
7909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7910 ac_top_srcdir=$ac_top_build_prefix$srcdir
7911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7912 esac
7913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7916 case $ac_mode in
7919 # CONFIG_FILE
7922 case $INSTALL in
7923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7925 esac
7926 _ACEOF
7928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7929 # If the template does not know about datarootdir, expand it.
7930 # FIXME: This hack should be removed a few years after 2.60.
7931 ac_datarootdir_hack=; ac_datarootdir_seen=
7932 ac_sed_dataroot='
7933 /datarootdir/ {
7937 /@datadir@/p
7938 /@docdir@/p
7939 /@infodir@/p
7940 /@localedir@/p
7941 /@mandir@/p'
7942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7943 *datarootdir*) ac_datarootdir_seen=yes;;
7944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7947 _ACEOF
7948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7949 ac_datarootdir_hack='
7950 s&@datadir@&$datadir&g
7951 s&@docdir@&$docdir&g
7952 s&@infodir@&$infodir&g
7953 s&@localedir@&$localedir&g
7954 s&@mandir@&$mandir&g
7955 s&\\\${datarootdir}&$datarootdir&g' ;;
7956 esac
7957 _ACEOF
7959 # Neutralize VPATH when `$srcdir' = `.'.
7960 # Shell code in configure.ac might set extrasub.
7961 # FIXME: do we really want to maintain this feature?
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7963 ac_sed_extra="$ac_vpsub
7964 $extrasub
7965 _ACEOF
7966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7969 s|@configure_input@|$ac_sed_conf_input|;t t
7970 s&@top_builddir@&$ac_top_builddir_sub&;t t
7971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7972 s&@srcdir@&$ac_srcdir&;t t
7973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7974 s&@top_srcdir@&$ac_top_srcdir&;t t
7975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7976 s&@builddir@&$ac_builddir&;t t
7977 s&@abs_builddir@&$ac_abs_builddir&;t t
7978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7979 s&@INSTALL@&$ac_INSTALL&;t t
7980 $ac_datarootdir_hack
7982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7983 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7986 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7988 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7990 which seems to be undefined. Please make sure it is defined" >&5
7991 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7992 which seems to be undefined. Please make sure it is defined" >&2;}
7994 rm -f "$ac_tmp/stdin"
7995 case $ac_file in
7996 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7997 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7998 esac \
7999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8003 # CONFIG_HEADER
8005 if test x"$ac_file" != x-; then
8007 $as_echo "/* $configure_input */" \
8008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8009 } >"$ac_tmp/config.h" \
8010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8011 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8013 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8014 else
8015 rm -f "$ac_file"
8016 mv "$ac_tmp/config.h" "$ac_file" \
8017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8019 else
8020 $as_echo "/* $configure_input */" \
8021 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8022 || as_fn_error $? "could not create -" "$LINENO" 5
8026 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8027 $as_echo "$as_me: executing $ac_file commands" >&6;}
8029 esac
8032 case $ac_file$ac_mode in
8033 "default":C)
8034 case $CONFIG_FILES in *config.make*)
8035 echo "$config_vars" >> config.make;;
8036 esac
8037 test -d bits || mkdir bits ;;
8039 esac
8040 done # for ac_tag
8043 as_fn_exit 0
8044 _ACEOF
8045 ac_clean_files=$ac_clean_files_save
8047 test $ac_write_fail = 0 ||
8048 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8051 # configure is writing to config.log, and then calls config.status.
8052 # config.status does its own redirection, appending to config.log.
8053 # Unfortunately, on DOS this fails, as config.log is still kept open
8054 # by configure, so config.status won't be able to write to it; its
8055 # output is simply discarded. So we exec the FD to /dev/null,
8056 # effectively closing config.log, so it can be properly (re)opened and
8057 # appended to by config.status. When coming back to configure, we
8058 # need to make the FD available again.
8059 if test "$no_create" != yes; then
8060 ac_cs_success=:
8061 ac_config_status_args=
8062 test "$silent" = yes &&
8063 ac_config_status_args="$ac_config_status_args --quiet"
8064 exec 5>/dev/null
8065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8066 exec 5>>config.log
8067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8068 # would make configure fail if this is the last instruction.
8069 $ac_cs_success || as_fn_exit 1
8073 # CONFIG_SUBDIRS section.
8075 if test "$no_recursion" != yes; then
8077 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8078 # so they do not pile up.
8079 ac_sub_configure_args=
8080 ac_prev=
8081 eval "set x $ac_configure_args"
8082 shift
8083 for ac_arg
8085 if test -n "$ac_prev"; then
8086 ac_prev=
8087 continue
8089 case $ac_arg in
8090 -cache-file | --cache-file | --cache-fil | --cache-fi \
8091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8092 ac_prev=cache_file ;;
8093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8095 | --c=*)
8097 --config-cache | -C)
8099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8100 ac_prev=srcdir ;;
8101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8104 ac_prev=prefix ;;
8105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8107 --disable-option-checking)
8110 case $ac_arg in
8111 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8112 esac
8113 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8114 esac
8115 done
8117 # Always prepend --prefix to ensure using the same prefix
8118 # in subdir configurations.
8119 ac_arg="--prefix=$prefix"
8120 case $ac_arg in
8121 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8122 esac
8123 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8125 # Pass --silent
8126 if test "$silent" = yes; then
8127 ac_sub_configure_args="--silent $ac_sub_configure_args"
8130 # Always prepend --disable-option-checking to silence warnings, since
8131 # different subdirs can have different --enable and --with options.
8132 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8134 ac_popdir=`pwd`
8135 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8137 # Do not complain, so a configure script can configure whichever
8138 # parts of a large source tree are present.
8139 test -d "$srcdir/$ac_dir" || continue
8141 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8143 $as_echo "$ac_msg" >&6
8144 as_dir="$ac_dir"; as_fn_mkdir_p
8145 ac_builddir=.
8147 case "$ac_dir" in
8148 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8151 # A ".." for each directory in $ac_dir_suffix.
8152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8153 case $ac_top_builddir_sub in
8154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8156 esac ;;
8157 esac
8158 ac_abs_top_builddir=$ac_pwd
8159 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8160 # for backward compatibility:
8161 ac_top_builddir=$ac_top_build_prefix
8163 case $srcdir in
8164 .) # We are building in place.
8165 ac_srcdir=.
8166 ac_top_srcdir=$ac_top_builddir_sub
8167 ac_abs_top_srcdir=$ac_pwd ;;
8168 [\\/]* | ?:[\\/]* ) # Absolute name.
8169 ac_srcdir=$srcdir$ac_dir_suffix;
8170 ac_top_srcdir=$srcdir
8171 ac_abs_top_srcdir=$srcdir ;;
8172 *) # Relative name.
8173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8174 ac_top_srcdir=$ac_top_build_prefix$srcdir
8175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8176 esac
8177 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8180 cd "$ac_dir"
8182 # Check for guested configure; otherwise get Cygnus style configure.
8183 if test -f "$ac_srcdir/configure.gnu"; then
8184 ac_sub_configure=$ac_srcdir/configure.gnu
8185 elif test -f "$ac_srcdir/configure"; then
8186 ac_sub_configure=$ac_srcdir/configure
8187 elif test -f "$ac_srcdir/configure.in"; then
8188 # This should be Cygnus configure.
8189 ac_sub_configure=$ac_aux_dir/configure
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8192 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8193 ac_sub_configure=
8196 # The recursion is here.
8197 if test -n "$ac_sub_configure"; then
8198 # Make the cache file name correct relative to the subdirectory.
8199 case $cache_file in
8200 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8201 *) # Relative name.
8202 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8203 esac
8205 { $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
8206 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8207 # The eval makes quoting arguments work.
8208 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8209 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8210 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8213 cd "$ac_popdir"
8214 done
8216 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8218 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}