]> git.ipfire.org Git - thirdparty/glibc.git/blob - configure
Remove --with-default-link configure option
[thirdparty/glibc.git] / configure
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).
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
97 do
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
103
104 ;;
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
110 fi
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
114 fi
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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
159 fi
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 *) :
175 ;;
176 esac
177 fi
178 "
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; }
184
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 :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
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
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
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
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
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
226 fi
227 fi
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
237
238
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
259 fi
260
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."
273 fi
274 exit 1
275 fi
276 fi
277 fi
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
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
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 ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
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/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
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"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
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 ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
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 ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
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 ()
411 {
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
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
420
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
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
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
438 fi
439
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/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
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
465
466
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 '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
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; }
489
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
500 }
501
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;;
511 *)
512 ECHO_N='-n';;
513 esac
514
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
521 fi
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'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
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
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
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'"
554
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'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
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`
566
567 #
568 # Initializations.
569 #
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=
578
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/'
586
587 ac_unique_file="include/features.h"
588 enable_option_checking=no
589 ac_subst_vars='LTLIBOBJS
590 LIBOBJS
591 pthread_in_libc
592 RELEASE
593 VERSION
594 mach_interface_list
595 DEFINES
596 static_nss
597 profile
598 libc_cv_multidir
599 shared
600 static
601 ldd_rewrite_script
602 use_ldconfig
603 libc_cv_rootsbindir
604 libc_cv_localstatedir
605 libc_cv_sysconfdir
606 libc_cv_complocaledir
607 libc_cv_rtlddir
608 libc_cv_slibdir
609 use_nscd
610 libc_cv_gcc_unwind_find_fde
611 libc_extra_cppflags
612 libc_extra_cflags
613 libc_cv_cxx_thread_local
614 CPPUNDEFS
615 have_selinux
616 have_libcap
617 have_libaudit
618 LIBGD
619 libc_cv_cc_loop_to_function
620 libc_cv_cc_submachine
621 libc_cv_cc_nofma
622 libc_cv_mtls_dialect_gnu2
623 libc_cv_has_glob_dat
624 libc_cv_fpie
625 libc_cv_z_execstack
626 ASFLAGS_config
627 libc_cv_cc_with_libunwind
628 libc_cv_insert
629 libc_cv_protected_data
630 INSTALL_INFO
631 PERL
632 BASH_SHELL
633 CXX_BITS_STD_ABS_H
634 CXX_CMATH_HEADER
635 CXX_CSTDLIB_HEADER
636 CXX_SYSINCLUDES
637 SYSINCLUDES
638 sysnames
639 submachine
640 multi_arch
641 libc_cv_textrel_ifunc
642 no_stack_protector
643 stack_protector
644 libc_cv_ssp
645 libc_cv_with_fp
646 PYTHON
647 PYTHON_PROG
648 AUTOCONF
649 BISON
650 AWK
651 SED
652 MAKEINFO
653 MSGFMT
654 MAKE
655 LD
656 NM
657 OBJDUMP
658 READELF
659 GPROF
660 OBJCOPY
661 AR
662 LN_S
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 base_machine
667 have_tunables
668 build_pt_chown
669 build_nscd
670 libc_cv_static_nss_crypt
671 libc_cv_nss_crypt
672 build_crypt
673 memory_tagging
674 experimental_malloc
675 enable_werror
676 all_warnings
677 force_install
678 bindnow
679 hardcoded_path_in_tests
680 enable_timezone_tools
681 rtld_early_cflags
682 extra_nonshared_cflags
683 sysheaders
684 ac_ct_CXX
685 CXXFLAGS
686 CXX
687 CPP
688 cross_compiling
689 BUILD_CC
690 OBJEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 subdirs
705 REPORT_BUGS_TEXI
706 REPORT_BUGS_TO
707 PKGVERSION_TEXI
708 PKGVERSION
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 with_pkgversion
751 with_bugurl
752 with_gd
753 with_gd_include
754 with_gd_lib
755 with_binutils
756 with_selinux
757 with_headers
758 with_nonshared_cflags
759 with_rtld_early_cflags
760 with_timeoutfactor
761 enable_sanity_checks
762 enable_shared
763 enable_profile
764 enable_default_pie
765 enable_timezone_tools
766 enable_hardcoded_path_in_tests
767 enable_hidden_plt
768 enable_bind_now
769 enable_stack_protector
770 enable_static_nss
771 enable_force_install
772 enable_maintainer_mode
773 enable_kernel
774 enable_all_warnings
775 enable_werror
776 enable_multi_arch
777 enable_experimental_malloc
778 enable_memory_tagging
779 enable_crypt
780 enable_nss_crypt
781 enable_systemtap
782 enable_build_nscd
783 enable_nscd
784 enable_pt_chown
785 enable_tunables
786 enable_mathvec
787 enable_cet
788 enable_scv
789 with_cpu
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP
800 CXX
801 CXXFLAGS
802 CCC'
803 ac_subdirs_all=''
804
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
826
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'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
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
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
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 ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
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 ;;
907
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
916 *"
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 ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
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
942 *"
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 ;;
949
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 ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
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 ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
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 ;;
980
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 ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
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 ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
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 ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
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 ;;
1033
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 ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
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 ;;
1054
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 ;;
1061
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 ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
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 ;;
1098
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 ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
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 ;;
1126
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 ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
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
1146 *"
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 ;;
1153
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
1162 *"
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 ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
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 ;;
1180
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 ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
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 ;;
1201
1202 *)
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}"
1208 ;;
1209
1210 esac
1211 done
1212
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"
1216 fi
1217
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
1224 fi
1225
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
1231 do
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
1246
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
1253
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
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
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"
1275
1276
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/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
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"
1314 fi
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=.
1322 fi
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
1335
1336 #
1337 # Report the --help message.
1338 #
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.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
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.
1349
1350 Defaults for the options are specified in brackets.
1351
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 \`..']
1362
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]
1368
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'.
1373
1374 For better control, use the options below.
1375
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
1397
1398 cat <<\_ACEOF
1399
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
1404 fi
1405
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
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --disable-sanity-checks really do not use threads (should not be used except
1417 in special situations) [default=yes]
1418 --enable-shared build shared library [default=yes if GNU ld]
1419 --enable-profile build profiled library [default=no]
1420 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1421 [default=no]
1422 --disable-timezone-tools
1423 do not install timezone tools [default=install]
1424 --enable-hardcoded-path-in-tests
1425 hardcode newly built glibc path in tests
1426 [default=no]
1427 --disable-hidden-plt do not hide internal function calls to avoid PLT
1428 --enable-bind-now disable lazy relocations in DSOs
1429 --enable-stack-protector=[yes|no|all|strong]
1430 Use -fstack-protector[-all|-strong] to detect glibc
1431 buffer overflows
1432 --enable-static-nss build static NSS modules [default=no]
1433 --disable-force-install don't force installation of files from this package,
1434 even if they are older than the installed files
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful (and
1437 sometimes confusing) to the casual installer
1438 --enable-kernel=VERSION compile for compatibility with kernel not older than
1439 VERSION
1440 --enable-all-warnings enable all useful warnings gcc can issue
1441 --disable-werror do not build with -Werror
1442 --enable-multi-arch enable single DSO with optimizations for multiple
1443 architectures
1444 --disable-experimental-malloc
1445 disable experimental malloc features
1446 --enable-memory-tagging enable memory tagging if supported by the
1447 architecture [default=no]
1448 --disable-crypt do not build nor install the passphrase hashing
1449 library, libcrypt
1450 --enable-nss-crypt enable libcrypt to use nss
1451 --enable-systemtap enable systemtap static probe points [default=no]
1452 --disable-build-nscd disable building and installing the nscd daemon
1453 --disable-nscd library functions will not contact the nscd daemon
1454 --enable-pt_chown Enable building and installing pt_chown
1455 --enable-tunables Enable tunables support. Known values are 'yes',
1456 'no' and 'valstring'
1457 --enable-mathvec Enable building and installing mathvec [default
1458 depends on architecture]
1459 --enable-cet enable Intel Control-flow Enforcement Technology
1460 (CET), x86 only
1461 --disable-scv syscalls will not use scv instruction, even if the
1462 kernel supports it, powerpc only
1463
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
1483
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
1495
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.
1498
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=$?
1504 fi
1505
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=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
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
1529
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
1545
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
1559 fi
1560
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
1566
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
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
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 ()
1582 {
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
1598 fi
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
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
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 ()
1620 {
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
1636 fi
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
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_cxx_try_compile
1653
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 ()
1658 {
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
1674 fi
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
1687
1688 ac_retval=1
1689 fi
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
1697
1698 } # ac_fn_cxx_try_link
1699
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 ()
1704 {
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
1720 fi
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
1733
1734 ac_retval=1
1735 fi
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
1743
1744 } # ac_fn_c_try_link
1745
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 ()
1750 {
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
1765 fi
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
1775
1776 ac_retval=1
1777 fi
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
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.
1785
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
1788
1789 $ $0 $@
1790
1791 _ACEOF
1792 exec 5>>config.log
1793 {
1794 cat <<_ASUNAME
1795 ## --------- ##
1796 ## Platform. ##
1797 ## --------- ##
1798
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`
1804
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`
1807
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`
1815
1816 _ASUNAME
1817
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
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
1826
1827 } >&5
1828
1829 cat >&5 <<_ACEOF
1830
1831
1832 ## ----------- ##
1833 ## Core tests. ##
1834 ## ----------- ##
1835
1836 _ACEOF
1837
1838
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
1849 do
1850 for ac_arg
1851 do
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'" ;;
1862 2)
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
1875 ;;
1876 -* ) ac_must_keep_next=true ;;
1877 esac
1878 fi
1879 as_fn_append ac_configure_args " '$ac_arg'"
1880 ;;
1881 esac
1882 done
1883 done
1884 { ac_configure_args0=; unset ac_configure_args0;}
1885 { ac_configure_args1=; unset ac_configure_args1;}
1886
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.
1894 {
1895 echo
1896
1897 $as_echo "## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##"
1900 echo
1901 # The following way of writing the cache mishandles newlines in values,
1902 (
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 ;; #(
1925 *)
1926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1927 ;;
1928 esac |
1929 sort
1930 )
1931 echo
1932
1933 $as_echo "## ----------------- ##
1934 ## Output variables. ##
1935 ## ----------------- ##"
1936 echo
1937 for ac_var in $ac_subst_vars
1938 do
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
1946
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
1953 do
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
1961 fi
1962
1963 if test -s confdefs.h; then
1964 $as_echo "## ----------- ##
1965 ## confdefs.h. ##
1966 ## ----------- ##"
1967 echo
1968 cat confdefs.h
1969 echo
1970 fi
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
1978 ' 0
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
1983
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1986
1987 $as_echo "/* confdefs.h */" > confdefs.h
1988
1989 # Predefined preprocessor variables.
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997 _ACEOF
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 _ACEOF
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_STRING "$PACKAGE_STRING"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_URL "$PACKAGE_URL"
2013 _ACEOF
2014
2015
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
2033 fi
2034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2035 do
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; }
2046 fi
2047 done
2048
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
2059 fi
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
2064 fi
2065
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 ,);;
2084 *)
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
2097 fi
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
2114 fi
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
2122 fi
2123 ## -------------------- ##
2124 ## Main body of script. ##
2125 ## -------------------- ##
2126
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
2132
2133
2134
2135 ac_config_headers="$ac_config_headers config.h"
2136
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
2151 fi
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
2155 fi
2156
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.
2164
2165
2166
2167
2168
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) "
2178
2179 fi
2180
2181 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2182
2183
2184
2185
2186
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=
2192 ;;
2193 *) BUGURL="$withval"
2194 ;;
2195 esac
2196 else
2197 BUGURL="https://www.gnu.org/software/libc/bugs.html"
2198
2199 fi
2200
2201 case ${BUGURL} in
2202 "")
2203 REPORT_BUGS_TO=
2204 REPORT_BUGS_TEXI=
2205 ;;
2206 *)
2207 REPORT_BUGS_TO="<$BUGURL>"
2208 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2209 ;;
2210 esac;
2211
2212
2213
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PKGVERSION "$PKGVERSION"
2217 _ACEOF
2218
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2222 _ACEOF
2223
2224
2225 # Glibc should not depend on any header files
2226
2227
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
2232
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>.
2236
2237
2238
2239
2240 subdirs="$subdirs "
2241
2242
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
2246
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
2259
2260 fi
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
2279
2280
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
2291 fi
2292
2293 fi
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
2312
2313
2314
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
2333 do
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
2341 fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
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; }
2355 fi
2356
2357
2358 fi
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
2373 do
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
2381 fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
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; }
2395 fi
2396
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
2407 fi
2408 else
2409 CC="$ac_cv_prog_CC"
2410 fi
2411
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
2426 do
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
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
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; }
2448 fi
2449
2450
2451 fi
2452 fi
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
2467 do
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
2475 fi
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
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
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+' '}$@"
2494 fi
2495 fi
2496 fi
2497 fi
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; }
2505 fi
2506
2507
2508 fi
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in cl.exe
2512 do
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
2525 do
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
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
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; }
2547 fi
2548
2549
2550 test -n "$CC" && break
2551 done
2552 fi
2553 if test -z "$CC"; then
2554 ac_ct_CC=$CC
2555 for ac_prog in cl.exe
2556 do
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
2569 do
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
2577 fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
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; }
2591 fi
2592
2593
2594 test -n "$ac_ct_CC" && break
2595 done
2596
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
2607 fi
2608 fi
2609
2610 fi
2611
2612
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; }
2617
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
2637 fi
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
2642
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. */
2651
2652 int
2653 main ()
2654 {
2655
2656 ;
2657 return 0;
2658 }
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
2683
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; }
2688 fi
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2690 fi
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. */
2702
2703 int
2704 main ()
2705 {
2706 #ifndef __GNUC__
2707 choke me
2708 #endif
2709
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_compiler_gnu=yes
2716 else
2717 ac_compiler_gnu=no
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2721
2722 fi
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=
2729 fi
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. */
2743
2744 int
2745 main ()
2746 {
2747
2748 ;
2749 return 0;
2750 }
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. */
2758
2759 int
2760 main ()
2761 {
2762
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 if ac_fn_c_try_compile "$LINENO"; then :
2768
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. */
2774
2775 int
2776 main ()
2777 {
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_c_try_compile "$LINENO"; then :
2784 ac_cv_prog_cc_g=yes
2785 fi
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2792 fi
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"
2802 fi
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2808 fi
2809 fi
2810
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
2816
2817 if test $host != $build; then
2818 for ac_prog in gcc cc
2819 do
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
2832 do
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
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
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; }
2854 fi
2855
2856
2857 test -n "$BUILD_CC" && break
2858 done
2859
2860 fi
2861
2862 # On Suns, sometimes $CPP names a directory.
2863 if test -n "$CPP" && test -d "$CPP"; then
2864 CPP=
2865 fi
2866 if test -z "$CPP"; then
2867 CPP="$CC -E"
2868 fi
2869
2870
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
2883 do
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
2896 do
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
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
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; }
2918 fi
2919
2920
2921 test -n "$CXX" && break
2922 done
2923 fi
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
2927 do
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
2940 do
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
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
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; }
2962 fi
2963
2964
2965 test -n "$ac_ct_CXX" && break
2966 done
2967
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
2978 fi
2979 fi
2980
2981 fi
2982 fi
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
3002 fi
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
3007
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. */
3015
3016 int
3017 main ()
3018 {
3019 #ifndef __GNUC__
3020 choke me
3021 #endif
3022
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 if ac_fn_cxx_try_compile "$LINENO"; then :
3028 ac_compiler_gnu=yes
3029 else
3030 ac_compiler_gnu=no
3031 fi
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3034
3035 fi
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=
3042 fi
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. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
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. */
3071
3072 int
3073 main ()
3074 {
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 if ac_fn_cxx_try_compile "$LINENO"; then :
3081
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. */
3087
3088 int
3089 main ()
3090 {
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 if ac_fn_cxx_try_compile "$LINENO"; then :
3097 ac_cv_prog_cxx_g=yes
3098 fi
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 fi
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 fi
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 fi
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"
3115 fi
3116 else
3117 if test "$GXX" = yes; then
3118 CXXFLAGS="-O2"
3119 else
3120 CXXFLAGS=
3121 fi
3122 fi
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
3128
3129 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3130
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
3141
3142 # Default, dynamic case.
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
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
3158 fi
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. */
3166
3167 #include <iostream>
3168
3169 int
3170 main()
3171 {
3172 std::cout << "Hello, world!";
3173 return 0;
3174 }
3175
3176 _ACEOF
3177 if ac_fn_cxx_try_link "$LINENO"; then :
3178
3179 else
3180 libc_cv_cxx_link_ok=no
3181 fi
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
3190
3191 fi
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=
3196 fi
3197
3198 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3199 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3200 fi
3201
3202 # This will get text that should go into config.make.
3203 config_vars=
3204
3205 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3206
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
3214
3215 fi
3216
3217
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
3224
3225 fi
3226
3227
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
3234
3235 fi
3236
3237
3238 if test -n "$libgd_include"; then
3239 config_vars="$config_vars
3240 CFLAGS-memusagestat.c = $libgd_include"
3241 fi
3242 if test -n "$libgd_ldflags"; then
3243 config_vars="$config_vars
3244 libgd-LDFLAGS = $libgd_ldflags"
3245 fi
3246
3247
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=''
3253 fi
3254
3255
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
3261 fi
3262
3263
3264
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=''
3270 fi
3271
3272
3273
3274
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=
3280 fi
3281
3282
3283
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=
3289 fi
3290
3291
3292
3293
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
3299 fi
3300
3301 cat >>confdefs.h <<_ACEOF
3302 #define TIMEOUTFACTOR $timeoutfactor
3303 _ACEOF
3304
3305
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
3311 fi
3312
3313
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
3319 fi
3320
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
3326 fi
3327
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
3333 fi
3334
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
3340 fi
3341
3342
3343
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
3349 fi
3350
3351
3352
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
3358 fi
3359
3360 if test "x$hidden" = xno; then
3361 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3362
3363 fi
3364
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
3370 fi
3371
3372
3373 if test "x$bindnow" = xyes; then
3374 $as_echo "#define BIND_NOW 1" >>confdefs.h
3375
3376 fi
3377
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
3383 fi
3384
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
3389
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
3395 fi
3396
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
3400
3401 fi
3402
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
3408 fi
3409
3410
3411
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
3417 fi
3418
3419
3420 # Check whether --enable-kernel was given.
3421 if test "${enable_kernel+set}" = set; then :
3422 enableval=$enable_kernel; minimum_kernel=$enableval
3423 fi
3424
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=
3431 fi
3432 fi
3433
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
3437 fi
3438
3439
3440
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
3446 fi
3447
3448
3449
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
3455 fi
3456
3457
3458 # Check whether --enable-experimental-malloc was given.
3459 if test "${enable_experimental_malloc+set}" = set; then :
3460 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3461 else
3462 experimental_malloc=yes
3463 fi
3464
3465
3466
3467 # Check whether --enable-memory-tagging was given.
3468 if test "${enable_memory_tagging+set}" = set; then :
3469 enableval=$enable_memory_tagging; memory_tagging=$enableval
3470 else
3471 memory_tagging=no
3472 fi
3473
3474 if test "$memory_tagging" = yes; then
3475 # Only enable this on architectures that support it.
3476 case $host_cpu in
3477 aarch64)
3478 $as_echo "#define USE_MTAG 1" >>confdefs.h
3479
3480 ;;
3481 esac
3482 fi
3483
3484
3485 # Check whether --enable-crypt was given.
3486 if test "${enable_crypt+set}" = set; then :
3487 enableval=$enable_crypt; build_crypt=$enableval
3488 else
3489 build_crypt=yes
3490 fi
3491
3492
3493
3494 # Check whether --enable-nss-crypt was given.
3495 if test "${enable_nss_crypt+set}" = set; then :
3496 enableval=$enable_nss_crypt; nss_crypt=$enableval
3497 else
3498 nss_crypt=no
3499 fi
3500
3501 if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
3503 $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
3504 nss_crypt=no
3505 fi
3506 if test x$nss_crypt = xyes; then
3507 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3508 if test $? -ne 0; then
3509 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3510 fi
3511 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
3512 if test $? -ne 0; then
3513 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
3514 fi
3515 old_CFLAGS="$CFLAGS"
3516 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
3517
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 typedef int PRBool;
3521 #include <hasht.h>
3522 #include <nsslowhash.h>
3523 void f (void) { NSSLOW_Init (); }
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 libc_cv_nss_crypt=yes
3534 else
3535 as_fn_error $? "
3536 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 old_LIBS="$LIBS"
3540 old_LDFLAGS="$LDFLAGS"
3541 LIBS="$LIBS -lfreebl3"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 typedef int PRBool;
3545 #include <hasht.h>
3546 #include <nsslowhash.h>
3547 int
3548 main ()
3549 {
3550 NSSLOW_Init();
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_link "$LINENO"; then :
3556 libc_cv_nss_crypt=yes
3557 else
3558 as_fn_error $? "
3559 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext \
3562 conftest$ac_exeext conftest.$ac_ext
3563 # Check to see if there is a static NSS cryptographic library.
3564 # If there isn't then we can't link anything with libcrypt.a,
3565 # and that might mean disabling some static tests.
3566 LDFLAGS="$LDFLAGS -static"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 typedef int PRBool;
3570 #include <hasht.h>
3571 #include <nsslowhash.h>
3572 int
3573 main ()
3574 {
3575 NSSLOW_Init();
3576 ;
3577 return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_link "$LINENO"; then :
3581 libc_cv_static_nss_crypt=yes
3582 else
3583 libc_cv_static_nss_crypt=no
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext \
3586 conftest$ac_exeext conftest.$ac_ext
3587 LDFLAGS="$old_LDFLAGS"
3588 CFLAGS="$old_CFLAGS"
3589 LIBS="$old_LIBS"
3590 else
3591 libc_cv_nss_crypt=no
3592 libc_cv_static_nss_crypt=no
3593 fi
3594
3595
3596
3597
3598 # Check whether --enable-systemtap was given.
3599 if test "${enable_systemtap+set}" = set; then :
3600 enableval=$enable_systemtap; systemtap=$enableval
3601 else
3602 systemtap=no
3603 fi
3604
3605 if test "x$systemtap" != xno; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3607 $as_echo_n "checking for systemtap static probe support... " >&6; }
3608 if ${libc_cv_sdt+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 old_CFLAGS="$CFLAGS"
3612 CFLAGS="-std=gnu11 $CFLAGS"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <sys/sdt.h>
3616 void foo (int i, void *p)
3617 {
3618 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3619 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 libc_cv_sdt=yes
3624 else
3625 libc_cv_sdt=no
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 CFLAGS="$old_CFLAGS"
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3631 $as_echo "$libc_cv_sdt" >&6; }
3632 if test $libc_cv_sdt = yes; then
3633 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3634
3635 elif test "x$systemtap" != xauto; then
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 fi
3642
3643 # Check whether --enable-build-nscd was given.
3644 if test "${enable_build_nscd+set}" = set; then :
3645 enableval=$enable_build_nscd; build_nscd=$enableval
3646 else
3647 build_nscd=default
3648 fi
3649
3650
3651
3652 # Note the use of $use_nscd is near the bottom of the file.
3653 # Check whether --enable-nscd was given.
3654 if test "${enable_nscd+set}" = set; then :
3655 enableval=$enable_nscd; use_nscd=$enableval
3656 else
3657 use_nscd=yes
3658 fi
3659
3660
3661 # Check whether --enable-pt_chown was given.
3662 if test "${enable_pt_chown+set}" = set; then :
3663 enableval=$enable_pt_chown; build_pt_chown=$enableval
3664 else
3665 build_pt_chown=no
3666 fi
3667
3668
3669 if test "$build_pt_chown" = yes; then
3670 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3671
3672 fi
3673
3674 # Check whether --enable-tunables was given.
3675 if test "${enable_tunables+set}" = set; then :
3676 enableval=$enable_tunables; have_tunables=$enableval
3677 else
3678 have_tunables=yes
3679 fi
3680
3681
3682 if test "$have_tunables" = yes; then
3683 $as_echo "#define HAVE_TUNABLES 1" >>confdefs.h
3684
3685 fi
3686
3687 # The abi-tags file uses a fairly simplistic model for name recognition that
3688 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3689 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3690 # This doesn't get used much beyond that, so it's fairly safe.
3691 case "$host_os" in
3692 linux*)
3693 ;;
3694 gnu*)
3695 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3696 ;;
3697 esac
3698
3699 # Check whether --enable-mathvec was given.
3700 if test "${enable_mathvec+set}" = set; then :
3701 enableval=$enable_mathvec; build_mathvec=$enableval
3702 else
3703 build_mathvec=notset
3704 fi
3705
3706
3707
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 #ifndef __CET__
3716 # error no CET compiler support
3717 #endif
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_cpp "$LINENO"; then :
3723 libc_cv_compiler_default_cet=yes
3724 else
3725 libc_cv_compiler_default_cet=no
3726 fi
3727 rm -f conftest.err conftest.i conftest.$ac_ext
3728
3729 # Check whether --enable-cet was given.
3730 if test "${enable_cet+set}" = set; then :
3731 enableval=$enable_cet; enable_cet=$enableval
3732 else
3733 enable_cet=$libc_cv_compiler_default_cet
3734 fi
3735
3736
3737 # Check whether --enable-scv was given.
3738 if test "${enable_scv+set}" = set; then :
3739 enableval=$enable_scv; use_scv=$enableval
3740 else
3741 use_scv=yes
3742 fi
3743
3744
3745 if test "$use_scv" != "no"; then :
3746 $as_echo "#define USE_PPC_SCV 1" >>confdefs.h
3747
3748 fi
3749
3750 # We keep the original values in `$config_*' and never modify them, so we
3751 # can write them unchanged into config.make. Everything else uses
3752 # $machine, $vendor, and $os, and changes them whenever convenient.
3753 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3754
3755 # Don't allow vendor == "unknown"
3756 test "$config_vendor" = unknown && config_vendor=
3757 config_os="`echo $config_os | sed 's/^unknown-//'`"
3758
3759 # Some configurations imply other options.
3760 elf=yes
3761
3762 # The configure fragment of a port can modify these to supplement
3763 # or override the table in the case statement below. No fragment should
3764 # ever change the config_* variables, however.
3765 machine=$config_machine
3766 vendor=$config_vendor
3767 os=$config_os
3768 base_os=''
3769
3770 submachine=
3771
3772 # Check whether --with-cpu was given.
3773 if test "${with_cpu+set}" = set; then :
3774 withval=$with_cpu; case "$withval" in
3775 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3776 no) ;;
3777 *) submachine="$withval" ;;
3778 esac
3779
3780 fi
3781
3782
3783 # An preconfigure script can set this when it wants to disable the sanity
3784 # check below.
3785 libc_config_ok=no
3786
3787 # A preconfigure script for a system that may or may not use fpu
3788 # sysdeps directories sets this to a preprocessor conditional for
3789 # whether to use such directories.
3790 with_fp_cond=1
3791
3792 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3793 then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3795 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3796 for frag in $frags; do
3797 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3798 echo $ECHO_N "$name $ECHO_C" >&6
3799 . "$frag"
3800 done
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3802 $as_echo "" >&6; }
3803 fi
3804
3805
3806 ###
3807 ### By using the undocumented --enable-hacker-mode option for configure
3808 ### one can skip this test to make the configuration not fail for unsupported
3809 ### platforms.
3810 ###
3811 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3812 case "$machine-$host_os" in
3813 *-linux* | *-gnu*)
3814 ;;
3815 *)
3816 as_fn_error $? "
3817 *** The GNU C library is currently unavailable for this platform.
3818 *** If you are interested in seeing glibc on this platform visit
3819 *** the \"How to submit a new port\" in the wiki:
3820 *** https://sourceware.org/glibc/wiki/#Development
3821 *** and join the community!" "$LINENO" 5
3822 ;;
3823 esac
3824 fi
3825
3826 # Set base_machine if not set by a preconfigure fragment.
3827 test -n "$base_machine" || base_machine=$machine
3828
3829
3830 ### Locate tools.
3831
3832 # Find a good install program. We prefer a C program (faster),
3833 # so one script is as good as another. But avoid the broken or
3834 # incompatible versions:
3835 # SysV /etc/install, /usr/sbin/install
3836 # SunOS /usr/etc/install
3837 # IRIX /sbin/install
3838 # AIX /bin/install
3839 # AmigaOS /C/install, which installs bootblocks on floppy discs
3840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3843 # OS/2's system install, which has a completely different semantic
3844 # ./install, which can be erroneously created by make from ./install.sh.
3845 # Reject install programs that cannot install multiple files.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3848 if test -z "$INSTALL"; then
3849 if ${ac_cv_path_install+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 # Account for people who put trailing slashes in PATH elements.
3858 case $as_dir/ in #((
3859 ./ | .// | /[cC]/* | \
3860 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3861 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3862 /usr/ucb/* ) ;;
3863 *)
3864 # OSF1 and SCO ODT 3.0 have their own names for install.
3865 # Don't use installbsd from OSF since it installs stuff as root
3866 # by default.
3867 for ac_prog in ginstall scoinst install; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3870 if test $ac_prog = install &&
3871 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3872 # AIX install. It has an incompatible calling convention.
3873 :
3874 elif test $ac_prog = install &&
3875 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3876 # program-specific install script used by HP pwplus--don't use.
3877 :
3878 else
3879 rm -rf conftest.one conftest.two conftest.dir
3880 echo one > conftest.one
3881 echo two > conftest.two
3882 mkdir conftest.dir
3883 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3884 test -s conftest.one && test -s conftest.two &&
3885 test -s conftest.dir/conftest.one &&
3886 test -s conftest.dir/conftest.two
3887 then
3888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3889 break 3
3890 fi
3891 fi
3892 fi
3893 done
3894 done
3895 ;;
3896 esac
3897
3898 done
3899 IFS=$as_save_IFS
3900
3901 rm -rf conftest.one conftest.two conftest.dir
3902
3903 fi
3904 if test "${ac_cv_path_install+set}" = set; then
3905 INSTALL=$ac_cv_path_install
3906 else
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for INSTALL within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 INSTALL=$ac_install_sh
3912 fi
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3915 $as_echo "$INSTALL" >&6; }
3916
3917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3918 # It thinks the first close brace ends the variable substitution.
3919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3920
3921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3922
3923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3924
3925 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3926 # The makefiles need to use a different form to find it in $srcdir.
3927 INSTALL='\$(..)./scripts/install-sh -c'
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3930 $as_echo_n "checking whether ln -s works... " >&6; }
3931 LN_S=$as_ln_s
3932 if test "$LN_S" = "ln -s"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3937 $as_echo "no, using $LN_S" >&6; }
3938 fi
3939
3940
3941 # Was a --with-binutils option given?
3942 if test -n "$path_binutils"; then
3943 # Make absolute; ensure a single trailing slash.
3944 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3945 CC="$CC -B$path_binutils"
3946 fi
3947 case "$CC" in
3948 *fuse-ld=lld*) LDNAME=ld.lld;;
3949 *) LDNAME=ld;;
3950 esac
3951 if test -z "$LD"; then
3952 LD=`$CC -print-prog-name=$LDNAME`
3953 fi
3954 if test -z "$AR"; then
3955 AR=`$CC -print-prog-name=ar`
3956 fi
3957
3958 if test -z "$OBJCOPY"; then
3959 OBJCOPY=`$CC -print-prog-name=objcopy`
3960 fi
3961
3962 if test -z "$GPROF"; then
3963 GPROF=`$CC -print-prog-name=gprof`
3964 fi
3965
3966 if test -z "$READELF"; then
3967 READELF=`$CC -print-prog-name=readelf`
3968 fi
3969
3970 if test -z "$OBJDUMP"; then
3971 OBJDUMP=`$CC -print-prog-name=objdump`
3972 fi
3973
3974 if test -z "$NM"; then
3975 NM=`$CC -print-prog-name=nm`
3976 fi
3977
3978
3979
3980 # Accept binutils 2.25 or newer.
3981 libc_cv_with_lld=no
3982 case $($LD --version) in
3983 "GNU gold"*)
3984 # Accept gold 1.14 or higher
3985 for ac_prog in $LD
3986 do
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988 set dummy $ac_prog; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_LD+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$LD"; then
3995 ac_cv_prog_LD="$LD" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_LD="$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi
4013 fi
4014 LD=$ac_cv_prog_LD
4015 if test -n "$LD"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4017 $as_echo "$LD" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 fi
4022
4023
4024 test -n "$LD" && break
4025 done
4026
4027 if test -z "$LD"; then
4028 ac_verc_fail=yes
4029 else
4030 # Found it, now check the version.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4032 $as_echo_n "checking version of $LD... " >&6; }
4033 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4034 case $ac_prog_version in
4035 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4036 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
4037 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4038 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4039
4040 esac
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4042 $as_echo "$ac_prog_version" >&6; }
4043 fi
4044 if test $ac_verc_fail = yes; then
4045 LD=: critic_missing="$critic_missing GNU gold"
4046 fi
4047
4048 ;;
4049 "LLD"*)
4050 # Accept LLD 13.0.0 or higher
4051 for ac_prog in $LD
4052 do
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_LD+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$LD"; then
4061 ac_cv_prog_LD="$LD" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_LD="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 LD=$ac_cv_prog_LD
4081 if test -n "$LD"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4083 $as_echo "$LD" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 test -n "$LD" && break
4091 done
4092
4093 if test -z "$LD"; then
4094 ac_verc_fail=yes
4095 else
4096 # Found it, now check the version.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4098 $as_echo_n "checking version of $LD... " >&6; }
4099 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4100 case $ac_prog_version in
4101 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4102 1[3-9].*|[2-9][0-9].*)
4103 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4104 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4105
4106 esac
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4108 $as_echo "$ac_prog_version" >&6; }
4109 fi
4110 if test $ac_verc_fail = yes; then
4111 LD=: critic_missing="$critic_missing LLD"
4112 fi
4113
4114 libc_cv_with_lld=yes
4115 ;;
4116 *)
4117 for ac_prog in $LD
4118 do
4119 # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy $ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_LD+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$LD"; then
4127 ac_cv_prog_LD="$LD" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_LD="$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 LD=$ac_cv_prog_LD
4147 if test -n "$LD"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4149 $as_echo "$LD" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156 test -n "$LD" && break
4157 done
4158
4159 if test -z "$LD"; then
4160 ac_verc_fail=yes
4161 else
4162 # Found it, now check the version.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4164 $as_echo_n "checking version of $LD... " >&6; }
4165 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4166 case $ac_prog_version in
4167 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4168 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4169 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4170 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4171
4172 esac
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4174 $as_echo "$ac_prog_version" >&6; }
4175 fi
4176 if test $ac_verc_fail = yes; then
4177 LD=: critic_missing="$critic_missing GNU ld"
4178 fi
4179
4180 ;;
4181 esac
4182 config_vars="$config_vars
4183 with-lld = $libc_cv_with_lld"
4184
4185 # These programs are version sensitive.
4186 for ac_prog in gnumake gmake make
4187 do
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_MAKE+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$MAKE"; then
4196 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_MAKE="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 MAKE=$ac_cv_prog_MAKE
4216 if test -n "$MAKE"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4218 $as_echo "$MAKE" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225 test -n "$MAKE" && break
4226 done
4227
4228 if test -z "$MAKE"; then
4229 ac_verc_fail=yes
4230 else
4231 # Found it, now check the version.
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4233 $as_echo_n "checking version of $MAKE... " >&6; }
4234 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4235 case $ac_prog_version in
4236 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4237 [4-9].* | [1-9][0-9]*)
4238 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4239 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4240
4241 esac
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4243 $as_echo "$ac_prog_version" >&6; }
4244 fi
4245 if test $ac_verc_fail = yes; then
4246 critic_missing="$critic_missing make"
4247 fi
4248
4249
4250 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4251 do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_MSGFMT+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$MSGFMT"; then
4260 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_MSGFMT="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 MSGFMT=$ac_cv_prog_MSGFMT
4280 if test -n "$MSGFMT"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4282 $as_echo "$MSGFMT" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289 test -n "$MSGFMT" && break
4290 done
4291
4292 if test -z "$MSGFMT"; then
4293 ac_verc_fail=yes
4294 else
4295 # Found it, now check the version.
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4297 $as_echo_n "checking version of $MSGFMT... " >&6; }
4298 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4299 case $ac_prog_version in
4300 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4301 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4302 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4303 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4304
4305 esac
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4307 $as_echo "$ac_prog_version" >&6; }
4308 fi
4309 if test $ac_verc_fail = yes; then
4310 MSGFMT=: aux_missing="$aux_missing msgfmt"
4311 fi
4312
4313 for ac_prog in makeinfo
4314 do
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_MAKEINFO+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$MAKEINFO"; then
4323 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_MAKEINFO="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 MAKEINFO=$ac_cv_prog_MAKEINFO
4343 if test -n "$MAKEINFO"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4345 $as_echo "$MAKEINFO" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 test -n "$MAKEINFO" && break
4353 done
4354
4355 if test -z "$MAKEINFO"; then
4356 ac_verc_fail=yes
4357 else
4358 # Found it, now check the version.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4360 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4361 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4362 case $ac_prog_version in
4363 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4364 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4365 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4366 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4367
4368 esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4370 $as_echo "$ac_prog_version" >&6; }
4371 fi
4372 if test $ac_verc_fail = yes; then
4373 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4374 fi
4375
4376 for ac_prog in sed
4377 do
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_SED+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -n "$SED"; then
4386 ac_cv_prog_SED="$SED" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_SED="$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 SED=$ac_cv_prog_SED
4406 if test -n "$SED"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4408 $as_echo "$SED" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4412 fi
4413
4414
4415 test -n "$SED" && break
4416 done
4417
4418 if test -z "$SED"; then
4419 ac_verc_fail=yes
4420 else
4421 # Found it, now check the version.
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4423 $as_echo_n "checking version of $SED... " >&6; }
4424 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4425 case $ac_prog_version in
4426 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4427 3.0[2-9]*|3.[1-9]*|[4-9]*)
4428 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4429 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4430
4431 esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4433 $as_echo "$ac_prog_version" >&6; }
4434 fi
4435 if test $ac_verc_fail = yes; then
4436 SED=: aux_missing="$aux_missing sed"
4437 fi
4438
4439 for ac_prog in gawk
4440 do
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_AWK+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$AWK"; then
4449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_AWK="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 AWK=$ac_cv_prog_AWK
4469 if test -n "$AWK"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4471 $as_echo "$AWK" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477
4478 test -n "$AWK" && break
4479 done
4480
4481 if test -z "$AWK"; then
4482 ac_verc_fail=yes
4483 else
4484 # Found it, now check the version.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4486 $as_echo_n "checking version of $AWK... " >&6; }
4487 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4488 case $ac_prog_version in
4489 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4490 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4491 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4492 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4493
4494 esac
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4496 $as_echo "$ac_prog_version" >&6; }
4497 fi
4498 if test $ac_verc_fail = yes; then
4499 critic_missing="$critic_missing gawk"
4500 fi
4501
4502 for ac_prog in bison
4503 do
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_BISON+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$BISON"; then
4512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_BISON="$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525 done
4526 done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 BISON=$ac_cv_prog_BISON
4532 if test -n "$BISON"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4534 $as_echo "$BISON" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541 test -n "$BISON" && break
4542 done
4543
4544 if test -z "$BISON"; then
4545 ac_verc_fail=yes
4546 else
4547 # Found it, now check the version.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
4549 $as_echo_n "checking version of $BISON... " >&6; }
4550 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
4551 case $ac_prog_version in
4552 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4553 2.7*|[3-9].*|[1-9][0-9]*)
4554 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4555 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4556
4557 esac
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4559 $as_echo "$ac_prog_version" >&6; }
4560 fi
4561 if test $ac_verc_fail = yes; then
4562 critic_missing="$critic_missing bison"
4563 fi
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4567 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4568 if ${libc_cv_compiler_ok+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 int
4576 main ()
4577 {
4578
4579 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
4580 #error insufficient compiler
4581 #endif
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587 libc_cv_compiler_ok=yes
4588 else
4589 libc_cv_compiler_ok=no
4590 fi
4591 rm -f conftest.err conftest.i conftest.$ac_ext
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4594 $as_echo "$libc_cv_compiler_ok" >&6; }
4595 if test $libc_cv_compiler_ok != yes; then :
4596 critic_missing="$critic_missing compiler"
4597 fi
4598
4599 if test "x$maintainer" = "xyes"; then
4600 for ac_prog in autoconf
4601 do
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_AUTOCONF+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$AUTOCONF"; then
4610 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_AUTOCONF="$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 AUTOCONF=$ac_cv_prog_AUTOCONF
4630 if test -n "$AUTOCONF"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4632 $as_echo "$AUTOCONF" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 test -n "$AUTOCONF" && break
4640 done
4641 test -n "$AUTOCONF" || AUTOCONF="no"
4642
4643 case "x$AUTOCONF" in
4644 xno|x|x:) AUTOCONF=no ;;
4645 *)
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4647 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4648 if ${libc_cv_autoconf_works+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
4652 libc_cv_autoconf_works=yes
4653 else
4654 libc_cv_autoconf_works=no
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
4658 $as_echo "$libc_cv_autoconf_works" >&6; }
4659 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4660 ;;
4661 esac
4662 if test "x$AUTOCONF" = xno; then
4663 aux_missing="$aux_missing autoconf"
4664 fi
4665 else
4666 AUTOCONF=no
4667 fi
4668
4669 # Check for python3 if available, or else python.
4670 for ac_prog in python3 python
4671 do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$PYTHON_PROG"; then
4680 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_PYTHON_PROG="$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
4700 if test -n "$PYTHON_PROG"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
4702 $as_echo "$PYTHON_PROG" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 test -n "$PYTHON_PROG" && break
4710 done
4711
4712 if test -z "$PYTHON_PROG"; then
4713 ac_verc_fail=yes
4714 else
4715 # Found it, now check the version.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
4717 $as_echo_n "checking version of $PYTHON_PROG... " >&6; }
4718 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4719 case $ac_prog_version in
4720 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4721 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
4722 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4723 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4724
4725 esac
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4727 $as_echo "$ac_prog_version" >&6; }
4728 fi
4729 if test $ac_verc_fail = yes; then
4730 critic_missing="$critic_missing python"
4731 fi
4732
4733 PYTHON="$PYTHON_PROG -B"
4734
4735
4736 test -n "$critic_missing" && as_fn_error $? "
4737 *** These critical programs are missing or too old:$critic_missing
4738 *** Check the INSTALL file for required versions." "$LINENO" 5
4739
4740 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4741 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4742 *** some features or tests will be disabled.
4743 *** Check the INSTALL file for required versions." >&5
4744 $as_echo "$as_me: WARNING:
4745 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4746 *** some features or tests will be disabled.
4747 *** Check the INSTALL file for required versions." >&2;}
4748
4749
4750 # Determine whether to use fpu or nofpu sysdeps directories.
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
4752 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
4753 if ${libc_cv_with_fp+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat > conftest.c <<EOF
4757 #if $with_fp_cond
4758 int dummy;
4759 #else
4760 # error "no hardware floating point"
4761 #endif
4762 EOF
4763 libc_cv_with_fp=no
4764 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
4765 1>&5 2>&5 ; then
4766 libc_cv_with_fp=yes
4767 fi
4768 rm -f conftest*
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
4771 $as_echo "$libc_cv_with_fp" >&6; }
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
4775 $as_echo_n "checking for -fstack-protector... " >&6; }
4776 if ${libc_cv_ssp+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
4780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4784 test $ac_status = 0; }; }; then :
4785 libc_cv_ssp=yes
4786 else
4787 libc_cv_ssp=no
4788 fi
4789
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
4792 $as_echo "$libc_cv_ssp" >&6; }
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
4795 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
4796 if ${libc_cv_ssp_strong+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
4800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }; }; then :
4805 libc_cv_ssp_strong=yes
4806 else
4807 libc_cv_ssp_strong=no
4808 fi
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
4812 $as_echo "$libc_cv_ssp_strong" >&6; }
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
4815 $as_echo_n "checking for -fstack-protector-all... " >&6; }
4816 if ${libc_cv_ssp_all+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
4820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824 test $ac_status = 0; }; }; then :
4825 libc_cv_ssp_all=yes
4826 else
4827 libc_cv_ssp_all=no
4828 fi
4829
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
4832 $as_echo "$libc_cv_ssp_all" >&6; }
4833
4834 stack_protector=
4835 no_stack_protector=
4836 if test "$libc_cv_ssp" = yes; then
4837 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
4838 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
4839
4840 fi
4841
4842 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
4843 stack_protector="-fstack-protector"
4844 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
4845
4846 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
4847 stack_protector="-fstack-protector-all"
4848 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
4849
4850 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
4851 stack_protector="-fstack-protector-strong"
4852 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
4853
4854 else
4855 stack_protector="-fno-stack-protector"
4856 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
4857
4858 fi
4859
4860
4861
4862
4863 if test -n "$stack_protector"; then
4864 no_ssp=-fno-stack-protector
4865 else
4866 no_ssp=
4867
4868 if test "$enable_stack_protector" != no; then
4869 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
4870 fi
4871 fi
4872
4873 # For the multi-arch option we need support in the assembler & linker.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4875 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4876 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat > conftest.S <<EOF
4880 .type foo,%gnu_indirect_function
4881 foo:
4882 .globl _start
4883 _start:
4884 .globl __start
4885 __start:
4886 .data
4887 #ifdef _LP64
4888 .quad foo
4889 #else
4890 .long foo
4891 #endif
4892 EOF
4893 libc_cv_ld_gnu_indirect_function=no
4894 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4895 -nostartfiles -nostdlib $no_ssp \
4896 -o conftest conftest.S 1>&5 2>&5; then
4897 # Do a link to see if the backend supports IFUNC relocs.
4898 $READELF -r conftest 1>&5
4899 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
4900 libc_cv_ld_gnu_indirect_function=yes
4901 }
4902 fi
4903 rm -f conftest*
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4906 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4907
4908 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
4910 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
4911 if ${libc_cv_gcc_indirect_function+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat > conftest.c <<EOF
4915 extern int func (int);
4916 int used_func (int a)
4917 {
4918 return a;
4919 }
4920 static void *resolver ()
4921 {
4922 return &used_func;
4923 }
4924 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
4925 EOF
4926 libc_cv_gcc_indirect_function=no
4927 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
4928 2>&5 ; then
4929 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
4930 libc_cv_gcc_indirect_function=yes
4931 fi
4932 fi
4933 rm -f conftest*
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4936 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4937
4938 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
4939 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
4941 $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; }
4942 if ${libc_cv_textrel_ifunc+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 cat > conftest.S <<EOF
4946 .type foo,%gnu_indirect_function
4947 foo:
4948 .globl _start
4949 _start:
4950 .globl __start
4951 __start:
4952 .data
4953 #ifdef _LP64
4954 .quad foo
4955 #else
4956 .long foo
4957 #endif
4958 .text
4959 .globl address
4960 address:
4961 #ifdef _LP64
4962 .quad address
4963 #else
4964 .long address
4965 #endif
4966 EOF
4967 libc_cv_textrel_ifunc=no
4968 if test $libc_cv_ld_gnu_indirect_function = yes; then
4969 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
4970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974 test $ac_status = 0; }; }; then
4975 libc_cv_textrel_ifunc=yes
4976 fi
4977 fi
4978 rm -f conftest*
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
4981 $as_echo "$libc_cv_textrel_ifunc" >&6; }
4982
4983
4984 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
4986 $as_echo_n "checking for GNU attribute retain support... " >&6; }
4987 if ${libc_cv_gnu_retain+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat > conftest.c <<EOF
4991 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
4992 EOF
4993 libc_cv_gnu_retain=no
4994 if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
4995 2>&5 ; then
4996 libc_cv_gnu_retain=yes
4997 fi
4998 rm -f conftest*
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
5001 $as_echo "$libc_cv_gnu_retain" >&6; }
5002 if test $libc_cv_gnu_retain = yes; then
5003 $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h
5004
5005 fi
5006 config_vars="$config_vars
5007 have-gnu-retain = $libc_cv_gnu_retain"
5008
5009 # Check if gcc warns about alias for function with incompatible types.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
5011 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
5012 if ${libc_cv_gcc_incompatible_alias+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat > conftest.c <<EOF
5016 int __redirect_foo (const void *s, int c);
5017
5018 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
5019 __typeof (__redirect_foo) *foo_impl (void)
5020 {
5021 return 0;
5022 }
5023
5024 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
5025 EOF
5026 libc_cv_gcc_incompatible_alias=yes
5027 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
5028 libc_cv_gcc_incompatible_alias=no
5029 fi
5030 rm -f conftest*
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
5033 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
5034
5035 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
5036 if test x"$multi_arch" = xyes; then
5037 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
5038 else
5039 multi_arch=no
5040 fi
5041 fi
5042 if test x"$libc_cv_gcc_indirect_function" != xyes; then
5043 # GCC 8+ emits a warning for alias with incompatible types and it might
5044 # fail to build ifunc resolvers aliases to either weak or internal
5045 # symbols. Disables multiarch build in this case.
5046 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
5048 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
5049 if test x"$multi_arch" = xyes; then
5050 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
5053 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
5054 multi_arch=no
5055 elif test x"$multi_arch" = xyes; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5057 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
5058 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5059 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
5060 fi
5061 fi
5062 multi_arch_d=
5063 if test x"$multi_arch" != xno; then
5064 multi_arch_d=/multiarch
5065 fi
5066
5067 # Compute the list of sysdep directories for this configuration.
5068 # This can take a while to compute.
5069 sysdep_dir=$srcdir/sysdeps
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
5071 $as_echo_n "checking sysdep dirs... " >&6; }
5072 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
5073 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
5074
5075 test "x$base_os" != x || case "$os" in
5076 gnu*)
5077 base_os=mach/hurd ;;
5078 linux*)
5079 base_os=unix/sysv ;;
5080 esac
5081
5082 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
5083 tail=$os
5084 ostry=$os
5085 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
5086 ostry="$ostry /$o"
5087 tail=$o
5088 done
5089 o=`echo $tail | sed 's/[0-9]*$//'`
5090 if test $o != $tail; then
5091 ostry="$ostry /$o"
5092 fi
5093 # For linux-gnu, try linux-gnu, then linux.
5094 o=`echo $tail | sed 's/-.*$//'`
5095 if test $o != $tail; then
5096 ostry="$ostry /$o"
5097 fi
5098
5099 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
5100 base=
5101 tail=$base_os
5102 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
5103 set $b
5104 base="$base /$1"
5105 tail="$2"
5106 done
5107
5108 # For sparc/sparc32, try sparc/sparc32 and then sparc.
5109 mach=
5110 tail=$machine${submachine:+/$submachine}
5111 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
5112 set $m
5113 # Prepend the machine's FPU directory unless the architecture specific
5114 # preconfigure disables it.
5115 if test "$libc_cv_with_fp" = yes; then
5116 maybe_fpu=/fpu
5117 else
5118 maybe_fpu=/nofpu
5119 fi
5120 # For each machine term, try it with and then without /multiarch.
5121 for try_fpu in $maybe_fpu ''; do
5122 for try_multi in $multi_arch_d ''; do
5123 mach="$mach /$1$try_fpu$try_multi"
5124 done
5125 done
5126 tail="$2"
5127 done
5128
5129
5130 # Find what sysdep directories exist.
5131 sysnames=
5132 for b in $base ''; do
5133 for m0 in $mach ''; do
5134 for v in /$vendor ''; do
5135 test "$v" = / && continue
5136 for o in /$ostry ''; do
5137 test "$o" = / && continue
5138 for m in $mach ''; do
5139 try_suffix="$m0$b$v$o$m"
5140 if test -n "$try_suffix"; then
5141 try_srcdir="${srcdir}/"
5142 try="sysdeps$try_suffix"
5143 test -n "$enable_debug_configure" &&
5144 echo "$0 DEBUG: try $try" >&2
5145 if test -d "$try_srcdir$try"; then
5146 sysnames="$sysnames $try"
5147 { test -n "$o" || test -n "$b"; } && os_used=t
5148 { test -n "$m" || test -n "$m0"; } && machine_used=t
5149 case x${m0:-$m} in
5150 x*/$submachine) submachine_used=t ;;
5151 esac
5152 fi
5153 fi
5154 done
5155 done
5156 done
5157 done
5158 done
5159
5160 # If the assembler supports gnu_indirect_function symbol type and the
5161 # architecture supports multi-arch, we enable multi-arch by default.
5162 case $sysnames in
5163 *"$multi_arch_d"*)
5164 ;;
5165 *)
5166 test x"$multi_arch" = xdefault && multi_arch=no
5167 ;;
5168 esac
5169 if test x"$multi_arch" != xno; then
5170 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
5171
5172 fi
5173
5174
5175 if test -z "$os_used" && test "$os" != none; then
5176 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
5177 fi
5178 if test -z "$machine_used" && test "$machine" != none; then
5179 as_fn_error $? "The $machine is not supported." "$LINENO" 5
5180 fi
5181 if test -z "$submachine_used" && test -n "$submachine"; then
5182 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
5183 fi
5184
5185
5186 # We have now validated the configuration.
5187
5188 # Expand the list of system names into a full list of directories
5189 # from each element's parent name and Implies file (if present).
5190 set $sysnames
5191 names=
5192 while test $# -gt 0; do
5193 name=$1
5194 shift
5195
5196 case " $names " in *" $name "*)
5197 # Already in the list.
5198 continue
5199 esac
5200
5201 # Report each name as we discover it, so there is no long pause in output.
5202 echo $ECHO_N "$name $ECHO_C" >&6
5203
5204 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
5205
5206 case $name in
5207 /*) xsrcdir= ;;
5208 *) xsrcdir=$srcdir/ ;;
5209 esac
5210 test -n "$enable_debug_configure" &&
5211 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
5212
5213 for implies_file in Implies Implies-before Implies-after; do
5214 implies_type=`echo $implies_file | sed s/-/_/`
5215 eval ${implies_type}=
5216 if test -f $xsrcdir$name/$implies_file; then
5217 # Collect more names from the `Implies' file (removing comments).
5218 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
5219 for x in $implied_candidate; do
5220 found=no
5221 if test -d $xsrcdir$name_base/$x; then
5222 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
5223 found=yes
5224 fi
5225 try="sysdeps/$x"
5226 try_srcdir=$srcdir/
5227 test -n "$enable_debug_configure" &&
5228 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
5229 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
5230 then
5231 eval "${implies_type}=\"\$${implies_type} \$try\""
5232 found=yes
5233 fi
5234 if test $found = no; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
5236 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
5237 fi
5238 done
5239 fi
5240 done
5241
5242 # Add NAME to the list of names.
5243 names="$names $name"
5244
5245 # Find the parent of NAME, using the empty string if it has none.
5246 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
5247
5248 test -n "$enable_debug_configure" &&
5249 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
5250 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
5251
5252 # Add the names implied by NAME, and NAME's parent (if it has one), to
5253 # the list of names to be processed (the argument list). We prepend the
5254 # implied names to the list and append the parent. We want implied
5255 # directories to come before further directories inferred from the
5256 # configuration components; this ensures that for sysv4, unix/common
5257 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
5258 # after sysv4).
5259 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
5260 test -n "$sysnames" && set $sysnames
5261 done
5262
5263 # Add the default directories.
5264 default_sysnames="sysdeps/generic"
5265 sysnames="$names $default_sysnames"
5266
5267 # The other names were emitted during the scan.
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
5269 $as_echo "$default_sysnames" >&6; }
5270
5271 # if using special system headers, find out the compiler's sekrit
5272 # header directory and add that to the list. NOTE: Only does the right
5273 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5274 if test -n "$sysheaders"; then
5275 SYSINCLUDES=-nostdinc
5276 for d in include include-fixed; do
5277 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5278 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5279 done
5280 SYSINCLUDES="$SYSINCLUDES \
5281 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5282 if test -n "$CXX"; then
5283 CXX_SYSINCLUDES=
5284 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5285 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5286 test "x$cxxheaders" != x &&
5287 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5288 done
5289 fi
5290 fi
5291
5292
5293
5294 # Obtain some C++ header file paths. This is used to make a local
5295 # copy of those headers in Makerules.
5296 if test -n "$CXX"; then
5297 find_cxx_header () {
5298 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
5299 | $AWK '$1 == "."{print $2}'
5300 }
5301 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5302 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5303 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
5304 fi
5305
5306
5307
5308
5309 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5310 # since this would lead to problems installing/building glibc.
5311 # LD_LIBRARY_PATH contains the current directory if one of the following
5312 # is true:
5313 # - one of the terminals (":" and ";") is the first or last sign
5314 # - two terminals occur directly after each other
5315 # - the path contains an element with a dot in it
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5317 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5318 case ${LD_LIBRARY_PATH} in
5319 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5320 ld_library_path_setting="contains current directory"
5321 ;;
5322 *)
5323 ld_library_path_setting="ok"
5324 ;;
5325 esac
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5327 $as_echo "$ld_library_path_setting" >&6; }
5328 if test "$ld_library_path_setting" != "ok"; then
5329 as_fn_error $? "
5330 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5331 *** building glibc. Please change the environment variable
5332 *** and run configure again." "$LINENO" 5
5333 fi
5334
5335 # Extract the first word of "bash", so it can be a program name with args.
5336 set dummy bash; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_BASH_SHELL+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 case $BASH_SHELL in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5363 ;;
5364 esac
5365 fi
5366 BASH_SHELL=$ac_cv_path_BASH_SHELL
5367 if test -n "$BASH_SHELL"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5369 $as_echo "$BASH_SHELL" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376
5377 # Extract the first word of "perl", so it can be a program name with args.
5378 set dummy perl; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_PERL+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 case $PERL in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5405 ;;
5406 esac
5407 fi
5408 PERL=$ac_cv_path_PERL
5409 if test -n "$PERL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5411 $as_echo "$PERL" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 if test "$PERL" != no &&
5419 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5420 PERL=no
5421 fi
5422 # Extract the first word of "install-info", so it can be a program name with args.
5423 set dummy install-info; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 case $INSTALL_INFO in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5432 ;;
5433 *)
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5436 for as_dir in $as_dummy
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5451 ;;
5452 esac
5453 fi
5454 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5455 if test -n "$INSTALL_INFO"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5457 $as_echo "$INSTALL_INFO" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5466 $as_echo_n "checking for .set assembler directive... " >&6; }
5467 if ${libc_cv_asm_set_directive+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat > conftest.s <<EOF
5471 .text
5472 foo:
5473 .set glibc_conftest_frobozz,foo
5474 .globl glibc_conftest_frobozz
5475 EOF
5476 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5477 # (but it doesn't work), so we must do a linking check to be sure.
5478 cat > conftest1.c <<\EOF
5479 extern int glibc_conftest_frobozz;
5480 void _start() { glibc_conftest_frobozz = 1; }
5481 EOF
5482 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5483 -nostartfiles -nostdlib $no_ssp \
5484 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5485 libc_cv_asm_set_directive=yes
5486 else
5487 libc_cv_asm_set_directive=no
5488 fi
5489 rm -f conftest*
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5492 $as_echo "$libc_cv_asm_set_directive" >&6; }
5493 if test $libc_cv_asm_set_directive = yes; then
5494 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5495
5496 fi
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5499 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5500 if ${libc_cv_protected_data+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 cat > conftest.c <<EOF
5504 int bar __attribute__ ((visibility ("protected"))) = 1;
5505 EOF
5506 libc_cv_protected_data=no
5507 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }; }; then
5513 cat > conftest.c <<EOF
5514 extern int bar;
5515 int main (void) { return bar; }
5516 EOF
5517 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
5518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5522 test $ac_status = 0; }; }; then
5523 libc_cv_protected_data=yes
5524 fi
5525 fi
5526 rm -f conftest.*
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5530 $as_echo "$libc_cv_protected_data" >&6; }
5531
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5534 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5535 if ${libc_cv_insert+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 cat > conftest.c <<EOF
5539 int __attribute__ ((section(".bar"))) bar = 0x12345678;
5540 int test (void) { return bar; }
5541 EOF
5542 cat > conftest.t <<EOF
5543 SECTIONS
5544 {
5545 .bar : { *(.bar) }
5546 }
5547 INSERT AFTER .rela.dyn;
5548 EOF
5549 libc_cv_insert=no
5550 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555 test $ac_status = 0; }; }; then
5556 libc_cv_insert=yes
5557 fi
5558 rm -f conftest.*
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5562 $as_echo "$libc_cv_insert" >&6; }
5563
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5566 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5567 if ${libc_cv_broken_alias_attribute+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat > conftest.c <<EOF
5571 extern int foo (int x) __asm ("xyzzy");
5572 int bar (int x) { return x; }
5573 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5574 extern int dfoo;
5575 extern __typeof (dfoo) dfoo __asm ("abccb");
5576 int dfoo = 1;
5577 EOF
5578 libc_cv_broken_alias_attribute=yes
5579 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5584 test $ac_status = 0; }; }; then
5585 if grep 'xyzzy' conftest.s >/dev/null &&
5586 grep 'abccb' conftest.s >/dev/null; then
5587 libc_cv_broken_alias_attribute=no
5588 fi
5589 fi
5590 rm -f conftest.c conftest.s
5591
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5594 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5595 if test $libc_cv_broken_alias_attribute = yes; then
5596 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5597 fi
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5600 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5601 if ${libc_cv_have_sdata_section+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 echo "int i;" > conftest.c
5605 libc_cv_have_sdata_section=no
5606 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5607 | grep '\.sdata' >/dev/null; then
5608 libc_cv_have_sdata_section=yes
5609 fi
5610 rm -f conftest.c conftest.so
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5614 $as_echo "$libc_cv_have_sdata_section" >&6; }
5615 if test $libc_cv_have_sdata_section = yes; then
5616 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5617
5618 fi
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5621 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5622 if ${libc_cv_cc_with_libunwind+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625
5626 cat > conftest.c <<EOF
5627 int main (void) { return 0; }
5628 EOF
5629 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5630 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5631 libc_cv_cc_with_libunwind=yes
5632 else
5633 libc_cv_cc_with_libunwind=no
5634 fi
5635 rm -f conftest*
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5638 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5639
5640 if test $libc_cv_cc_with_libunwind = yes; then
5641 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5642
5643 fi
5644
5645 ASFLAGS_config=
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5647 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5648 if ${libc_cv_as_noexecstack+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat > conftest.c <<EOF
5652 void foo (void) { }
5653 EOF
5654 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5655 -S -o conftest.s conftest.c 1>&5'
5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; } \
5661 && grep .note.GNU-stack conftest.s >/dev/null \
5662 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5663 -c -o conftest.o conftest.s 1>&5'
5664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; }; }
5669 then
5670 libc_cv_as_noexecstack=yes
5671 else
5672 libc_cv_as_noexecstack=no
5673 fi
5674 rm -f conftest*
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5677 $as_echo "$libc_cv_as_noexecstack" >&6; }
5678 if test $libc_cv_as_noexecstack = yes; then
5679 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5680 fi
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5684 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5685 libc_linker_feature=no
5686 cat > conftest.c <<EOF
5687 int _start (void) { return 42; }
5688 EOF
5689 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5690 -Wl,-z,execstack -nostdlib -nostartfiles
5691 -fPIC -shared -o conftest.so conftest.c
5692 1>&5'
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }; }
5698 then
5699 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
5700 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5701 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
5702 true
5703 else
5704 libc_linker_feature=yes
5705 fi
5706 fi
5707 rm -f conftest*
5708 if test $libc_linker_feature = yes; then
5709 libc_cv_z_execstack=yes
5710 else
5711 libc_cv_z_execstack=no
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5714 $as_echo "$libc_linker_feature" >&6; }
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
5718 $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
5719 libc_linker_feature=no
5720 cat > conftest.c <<EOF
5721 int _start (void) { return 42; }
5722 EOF
5723 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5724 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
5725 -fPIC -shared -o conftest.so conftest.c
5726 1>&5'
5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }; }
5732 then
5733 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
5734 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5735 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
5736 true
5737 else
5738 libc_linker_feature=yes
5739 fi
5740 fi
5741 rm -f conftest*
5742 if test $libc_linker_feature = yes; then
5743 libc_cv_z_start_stop_gc=yes
5744 else
5745 libc_cv_z_start_stop_gc=no
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5748 $as_echo "$libc_linker_feature" >&6; }
5749 config_vars="$config_vars
5750 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
5753 $as_echo_n "checking for linker that supports --depaudit... " >&6; }
5754 libc_linker_feature=no
5755 cat > conftest.c <<EOF
5756 int _start (void) { return 42; }
5757 EOF
5758 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5759 -Wl,--depaudit,x -nostdlib -nostartfiles
5760 -fPIC -shared -o conftest.so conftest.c
5761 1>&5'
5762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; }
5767 then
5768 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
5769 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5770 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
5771 true
5772 else
5773 libc_linker_feature=yes
5774 fi
5775 fi
5776 rm -f conftest*
5777 if test $libc_linker_feature = yes; then
5778 libc_cv_depaudit=yes
5779 else
5780 libc_cv_depaudit=no
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5783 $as_echo "$libc_linker_feature" >&6; }
5784 config_vars="$config_vars
5785 have-depaudit = $libc_cv_depaudit"
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
5788 $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; }
5789 libc_linker_feature=no
5790 cat > conftest.c <<EOF
5791 int _start (void) { return 42; }
5792 EOF
5793 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5794 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
5795 -fPIC -shared -o conftest.so conftest.c
5796 1>&5'
5797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; }; }
5802 then
5803 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
5804 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5805 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
5806 true
5807 else
5808 libc_linker_feature=yes
5809 fi
5810 fi
5811 rm -f conftest*
5812 if test $libc_linker_feature = yes; then
5813 libc_cv_dt_relr=yes
5814 else
5815 libc_cv_dt_relr=no
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5818 $as_echo "$libc_linker_feature" >&6; }
5819 config_vars="$config_vars
5820 have-dt-relr = $libc_cv_dt_relr"
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5823 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5824 libc_linker_feature=no
5825 cat > conftest.c <<EOF
5826 int _start (void) { return 42; }
5827 EOF
5828 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5829 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5830 -fPIC -shared -o conftest.so conftest.c
5831 1>&5'
5832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; }; }
5837 then
5838 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
5839 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5840 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
5841 true
5842 else
5843 libc_linker_feature=yes
5844 fi
5845 fi
5846 rm -f conftest*
5847 if test $libc_linker_feature = yes; then
5848 libc_cv_no_dynamic_linker=yes
5849 else
5850 libc_cv_no_dynamic_linker=no
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5853 $as_echo "$libc_linker_feature" >&6; }
5854 config_vars="$config_vars
5855 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5858 $as_echo_n "checking for -static-pie... " >&6; }
5859 if ${libc_cv_static_pie+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; }; then :
5868 libc_cv_static_pie=yes
5869 else
5870 libc_cv_static_pie=no
5871 fi
5872
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5875 $as_echo "$libc_cv_static_pie" >&6; }
5876 config_vars="$config_vars
5877 have-static-pie = $libc_cv_static_pie"
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5880 $as_echo_n "checking for -fpie... " >&6; }
5881 if ${libc_cv_fpie+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; }; then :
5890 libc_cv_fpie=yes
5891 else
5892 libc_cv_fpie=no
5893 fi
5894
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5897 $as_echo "$libc_cv_fpie" >&6; }
5898
5899
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5902 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5903 if ${libc_cv_has_glob_dat+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 cat > conftest.c <<EOF
5907 extern int mumble;
5908 int foo (void) { return mumble; }
5909 EOF
5910 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5911 -fPIC -shared -o conftest.so conftest.c
5912 -nostdlib -nostartfiles $no_ssp
5913 1>&5'
5914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }; }
5919 then
5920 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
5921 libc_cv_has_glob_dat=yes
5922 else
5923 libc_cv_has_glob_dat=no
5924 fi
5925 else
5926 libc_cv_has_glob_dat=no
5927 fi
5928 rm -f conftest*
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5931 $as_echo "$libc_cv_has_glob_dat" >&6; }
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5935 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5936 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat > conftest.c <<EOF
5940 __thread int i;
5941 void foo (void)
5942 {
5943 i = 10;
5944 }
5945 EOF
5946 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
5947 conftest.c -o conftest 1>&5'
5948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }; }
5953 then
5954 libc_cv_mtls_dialect_gnu2=yes
5955 else
5956 libc_cv_mtls_dialect_gnu2=no
5957 fi
5958 rm -f conftest*
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5961 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5962
5963 config_vars="$config_vars
5964 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
5967 $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
5968 if ${libc_cv_wno_ignored_attributes+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat > conftest.c <<EOF
5972 void __foo (void)
5973 {
5974 }
5975 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
5976 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
5977 EOF
5978 libc_cv_wno_ignored_attributes=""
5979 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }; }
5985 then
5986 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
5987 fi
5988 rm -f conftest*
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
5991 $as_echo "$libc_cv_wno_ignored_attributes" >&6; }
5992 config_vars="$config_vars
5993 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5996 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
5997 if ${libc_cv_have_section_quotes+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat > conftest.c <<EOF
6001 static const int foo
6002 __attribute__ ((section ("bar"))) = 1;
6003 EOF
6004 if ${CC-cc} -S conftest.c -o conftest.s; then
6005 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6006 libc_cv_have_section_quotes=yes
6007 else
6008 libc_cv_have_section_quotes=no
6009 fi
6010 else
6011 libc_cv_have_section_quotes=unknown
6012 fi
6013 rm -f conftest.{c,s}
6014
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6017 $as_echo "$libc_cv_have_section_quotes" >&6; }
6018 if test $libc_cv_have_section_quotes = yes; then
6019 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6020
6021 fi
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6024 $as_echo_n "checking for __builtin_memset... " >&6; }
6025 if ${libc_cv_gcc_builtin_memset+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat > conftest.c <<\EOF
6029 void zero (void *x)
6030 {
6031 __builtin_memset (x, 0, 1000);
6032 }
6033 EOF
6034 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; };
6040 then
6041 libc_cv_gcc_builtin_memset=no
6042 else
6043 libc_cv_gcc_builtin_memset=yes
6044 fi
6045 rm -f conftest*
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6048 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6049 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6050 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6051
6052 fi
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6055 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6056 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat > conftest.c <<\EOF
6060 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6061 char *foo (const char *a, const char *b)
6062 {
6063 return __builtin_strstr (a, b);
6064 }
6065 EOF
6066 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }; };
6072 then
6073 libc_cv_gcc_builtin_redirection=yes
6074 else
6075 libc_cv_gcc_builtin_redirection=no
6076 fi
6077 rm -f conftest*
6078 fi
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6080 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6081 if test "$libc_cv_gcc_builtin_redirection" = no; then
6082 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6083 fi
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6086 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6087 if ${libc_cv_cc_nofma+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 libc_cv_cc_nofma=
6091 for opt in -ffp-contract=off -mno-fused-madd; do
6092 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; }; then :
6098 libc_cv_cc_nofma=$opt; break
6099 fi
6100 done
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6103 $as_echo "$libc_cv_cc_nofma" >&6; }
6104
6105
6106 if test -n "$submachine"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6108 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6109 if ${libc_cv_cc_submachine+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 libc_cv_cc_submachine=no
6113 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6114 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }; }; then :
6120
6121 libc_cv_cc_submachine="$opt"
6122 break
6123 fi
6124 done
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6127 $as_echo "$libc_cv_cc_submachine" >&6; }
6128 if test "x$libc_cv_cc_submachine" = xno; then
6129 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6130 fi
6131 fi
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
6135 $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; }
6136 if ${libc_cv_cc_signaling_nans+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; }; then :
6145 libc_cv_cc_signaling_nans=-fsignaling-nans
6146 else
6147 libc_cv_cc_signaling_nans=
6148 fi
6149
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
6152 $as_echo "$libc_cv_cc_signaling_nans" >&6; }
6153 config_vars="$config_vars
6154 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6157 __attribute__ ((__optimize__))" >&5
6158 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6159 __attribute__ ((__optimize__))... " >&6; }
6160 if ${libc_cv_cc_loop_to_function+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat > conftest.c <<EOF
6164 void
6165 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6166 foo (void) {}
6167 EOF
6168 libc_cv_cc_loop_to_function=no
6169 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; }
6175 then
6176 libc_cv_cc_loop_to_function=yes
6177 fi
6178 rm -f conftest*
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6181 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6182 if test $libc_cv_cc_loop_to_function = yes; then
6183 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6184
6185 fi
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6189 $as_echo_n "checking for libgd... " >&6; }
6190 if test "$with_gd" != "no"; then
6191 old_CFLAGS="$CFLAGS"
6192 CFLAGS="$CFLAGS $libgd_include"
6193 old_LDFLAGS="$LDFLAGS"
6194 LDFLAGS="$LDFLAGS $libgd_ldflags"
6195 old_LIBS="$LIBS"
6196 LIBS="$LIBS -lgd -lpng -lz -lm"
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <gd.h>
6200 int
6201 main ()
6202 {
6203 gdImagePng (0, 0)
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 LIBGD=yes
6210 else
6211 LIBGD=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 CFLAGS="$old_CFLAGS"
6216 LDFLAGS="$old_LDFLAGS"
6217 LIBS="$old_LIBS"
6218 else
6219 LIBGD=no
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6222 $as_echo "$LIBGD" >&6; }
6223
6224
6225 # SELinux detection
6226 if test x$with_selinux = xno ; then
6227 have_selinux=no;
6228 else
6229 # See if we have the SELinux library
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6231 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6232 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 ac_check_lib_save_LIBS=$LIBS
6236 LIBS="-lselinux $LIBS"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6243 #ifdef __cplusplus
6244 extern "C"
6245 #endif
6246 char is_selinux_enabled ();
6247 int
6248 main ()
6249 {
6250 return is_selinux_enabled ();
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_link "$LINENO"; then :
6256 ac_cv_lib_selinux_is_selinux_enabled=yes
6257 else
6258 ac_cv_lib_selinux_is_selinux_enabled=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262 LIBS=$ac_check_lib_save_LIBS
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6265 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6266 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6267 have_selinux=yes
6268 else
6269 have_selinux=no
6270 fi
6271
6272 if test x$with_selinux = xyes ; then
6273 if test x$have_selinux = xno ; then
6274 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6275 fi
6276 fi
6277 fi
6278 # Check if we're building with SELinux support.
6279 if test "x$have_selinux" = xyes; then
6280
6281 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6282
6283
6284 # See if we have the libaudit library
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6286 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6287 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-laudit $LIBS"
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294
6295 /* Override any GCC internal prototype to avoid an error.
6296 Use char because int might match the return type of a GCC
6297 builtin and then its argument prototype would still apply. */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 char audit_log_user_avc_message ();
6302 int
6303 main ()
6304 {
6305 return audit_log_user_avc_message ();
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_cv_lib_audit_audit_log_user_avc_message=yes
6312 else
6313 ac_cv_lib_audit_audit_log_user_avc_message=no
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_check_lib_save_LIBS
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6320 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6321 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6322 have_libaudit=yes
6323 else
6324 have_libaudit=no
6325 fi
6326
6327 if test "x$have_libaudit" = xyes; then
6328
6329 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6330
6331 fi
6332
6333
6334 # See if we have the libcap library
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6336 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6337 if ${ac_cv_lib_cap_cap_init+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-lcap $LIBS"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344
6345 /* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 char cap_init ();
6352 int
6353 main ()
6354 {
6355 return cap_init ();
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 ac_cv_lib_cap_cap_init=yes
6362 else
6363 ac_cv_lib_cap_cap_init=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6370 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6371 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6372 have_libcap=yes
6373 else
6374 have_libcap=no
6375 fi
6376
6377 if test "x$have_libcap" = xyes; then
6378
6379 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6380
6381 fi
6382
6383 fi
6384
6385
6386 CPPUNDEFS=
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6388 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6389 if ${libc_cv_predef_fortify_source+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395 int
6396 main ()
6397 {
6398
6399 #ifdef _FORTIFY_SOURCE
6400 # error bogon
6401 #endif
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"; then :
6407 libc_cv_predef_fortify_source=no
6408 else
6409 libc_cv_predef_fortify_source=yes
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6414 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6415 if test $libc_cv_predef_fortify_source = yes; then
6416 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6417 fi
6418
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
6421 $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; }
6422 if ${libc_cv_symver_needs_alias+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 cat > conftest.s <<EOF
6426 .text
6427 testfunc:
6428 .globl testfunc
6429 .symver testfunc, testfunc1@VERSION1
6430 .symver testfunc, testfunc1@VERSION2
6431 EOF
6432 libc_cv_symver_needs_alias=no
6433 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
6434 libc_cv_symver_needs_alias=no
6435 else
6436 libc_cv_symver_needs_alias=yes
6437 fi
6438 rm conftest.*
6439
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
6442 $as_echo "$libc_cv_symver_needs_alias" >&6; }
6443 if test "$libc_cv_symver_needs_alias" = yes; then
6444 $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
6445
6446 fi
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6449 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6450 if ${libc_cv_builtin_trap+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 libc_cv_builtin_trap=no
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456
6457 int
6458 main ()
6459 {
6460 __builtin_trap ()
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466
6467 libc_undefs=`$NM -u conftest.o |
6468 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6469 2>&5` || {
6470 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6471 }
6472 echo >&5 "libc_undefs='$libc_undefs'"
6473 if test -z "$libc_undefs"; then
6474 libc_cv_builtin_trap=yes
6475 fi
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6480 $as_echo "$libc_cv_builtin_trap" >&6; }
6481 if test $libc_cv_builtin_trap = yes; then
6482 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6483
6484 fi
6485
6486 ac_ext=cpp
6487 ac_cpp='$CXXCPP $CPPFLAGS'
6488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6491
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6494 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6495 if ${libc_cv_cxx_thread_local+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498
6499 old_CXXFLAGS="$CXXFLAGS"
6500 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503
6504 #include <thread>
6505
6506 // Compiler support.
6507 struct S
6508 {
6509 S ();
6510 ~S ();
6511 };
6512 thread_local S s;
6513 S * get () { return &s; }
6514
6515 // libstdc++ support.
6516 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6517 #error __cxa_thread_atexit_impl not supported
6518 #endif
6519
6520 _ACEOF
6521 if ac_fn_cxx_try_compile "$LINENO"; then :
6522 libc_cv_cxx_thread_local=yes
6523 else
6524 libc_cv_cxx_thread_local=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 CXXFLAGS="$old_CXXFLAGS"
6528
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6531 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6532
6533
6534 ac_ext=c
6535 ac_cpp='$CPP $CPPFLAGS'
6536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539
6540
6541 ### End of automated tests.
6542 ### Now run sysdeps configure fragments.
6543
6544 # They also can set these variables.
6545 use_ldconfig=no
6546 ldd_rewrite_script=no
6547 libc_cv_sysconfdir=$sysconfdir
6548 libc_cv_localstatedir=$localstatedir
6549 libc_cv_gcc_unwind_find_fde=no
6550 libc_cv_idn=no
6551 pthread_in_libc=yes
6552
6553 # Iterate over all the sysdep directories we will use, running their
6554 # configure fragments.
6555 for dir in $sysnames; do
6556 case $dir in
6557 /*) dest=$dir ;;
6558 *) dest=$srcdir/$dir ;;
6559 esac
6560 if test -r $dest/configure; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6562 $as_echo "running configure fragment for $dir" >&6; }
6563 . $dest/configure
6564 fi
6565 done
6566
6567 if test x"$build_mathvec" = xnotset; then
6568 build_mathvec=no
6569 fi
6570 config_vars="$config_vars
6571 build-mathvec = $build_mathvec"
6572
6573
6574
6575
6576 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6577 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6578
6579 fi
6580
6581
6582 # A sysdeps configure fragment can reset this if IFUNC is not actually
6583 # usable even though the assembler knows how to generate the symbol type.
6584 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6585 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6586
6587 fi
6588 config_vars="$config_vars
6589 have-ifunc = $libc_cv_ld_gnu_indirect_function"
6590
6591 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6592 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6593
6594 fi
6595 config_vars="$config_vars
6596 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
6597
6598 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6599 # configure fragment can override the value to prevent this AC_DEFINE.
6600
6601 if test "x$use_nscd" != xno; then
6602 $as_echo "#define USE_NSCD 1" >>confdefs.h
6603
6604 fi
6605 if test "x$build_nscd" = xdefault; then
6606 build_nscd=$use_nscd
6607 fi
6608
6609
6610
6611
6612
6613
6614
6615
6616 if test x$use_ldconfig = xyes; then
6617 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6618
6619 fi
6620
6621
6622
6623
6624
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6627 $as_echo_n "checking whether -fPIC is default... " >&6; }
6628 if ${libc_cv_pic_default+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 libc_cv_pic_default=yes
6632 cat > conftest.c <<EOF
6633 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6634 # error PIC is default.
6635 #endif
6636 EOF
6637 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6638 libc_cv_pic_default=no
6639 fi
6640 rm -f conftest.*
6641 fi
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6643 $as_echo "$libc_cv_pic_default" >&6; }
6644 config_vars="$config_vars
6645 build-pic-default = $libc_cv_pic_default"
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6648 $as_echo_n "checking whether -fPIE is default... " >&6; }
6649 if ${libc_cv_cc_pie_default+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 libc_cv_cc_pie_default=yes
6653 cat > conftest.c <<EOF
6654 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6655 # error PIE is default.
6656 #endif
6657 EOF
6658 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6659 libc_cv_cc_pie_default=no
6660 fi
6661 rm -f conftest.*
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
6664 $as_echo "$libc_cv_cc_pie_default" >&6; }
6665 config_vars="$config_vars
6666 cc-pie-default = $libc_cv_cc_pie_default"
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
6669 $as_echo_n "checking if we can build programs as PIE... " >&6; }
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #ifdef PIE_UNSUPPORTED
6673 # error PIE is not supported
6674 #endif
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 libc_cv_pie_supported=yes
6678 else
6679 libc_cv_pie_supported=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
6683 $as_echo "$libc_cv_pie_supported" >&6; }
6684 # Disable build-pie-default if target does not support it or glibc is
6685 # configured with --disable-default-pie.
6686 if test "x$default_pie" = xno; then
6687 build_pie_default=no
6688 else
6689 build_pie_default=$libc_cv_pie_supported
6690 fi
6691 config_vars="$config_vars
6692 build-pie-default = $build_pie_default"
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
6695 $as_echo_n "checking if we can build static PIE programs... " >&6; }
6696 libc_cv_static_pie_supported=$libc_cv_pie_supported
6697 if test "x$libc_cv_pie_supported" != xno \
6698 -a "$libc_cv_no_dynamic_linker" = yes; then
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #ifndef SUPPORT_STATIC_PIE
6702 # error static PIE is not supported
6703 #endif
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 libc_cv_static_pie_supported=yes
6707 else
6708 libc_cv_static_pie_supported=no
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
6713 $as_echo "$libc_cv_static_pie_supported" >&6; }
6714
6715 # Enable static-pie only if it is available and glibc isn't configured
6716 # with --disable-default-pie.
6717 if test "x$default_pie" = xno; then
6718 libc_cv_static_pie=no
6719 else
6720 libc_cv_static_pie=$libc_cv_static_pie_supported
6721 fi
6722 if test "$libc_cv_static_pie" = "yes"; then
6723 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6724
6725 fi
6726 config_vars="$config_vars
6727 enable-static-pie = $libc_cv_static_pie"
6728
6729 # Set the `multidir' variable by grabbing the variable from the compiler.
6730 # We do it once and save the result in a generated makefile.
6731 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6742 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6743
6744
6745
6746 if test "$pthread_in_libc" = yes; then
6747 $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h
6748
6749 fi
6750
6751
6752 ac_config_files="$ac_config_files config.make Makefile"
6753
6754 ac_config_commands="$ac_config_commands default"
6755
6756 cat >confcache <<\_ACEOF
6757 # This file is a shell script that caches the results of configure
6758 # tests run on this system so they can be shared between configure
6759 # scripts and configure runs, see configure's option --config-cache.
6760 # It is not useful on other systems. If it contains results you don't
6761 # want to keep, you may remove or edit it.
6762 #
6763 # config.status only pays attention to the cache file if you give it
6764 # the --recheck option to rerun configure.
6765 #
6766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6768 # following values.
6769
6770 _ACEOF
6771
6772 # The following way of writing the cache mishandles newlines in values,
6773 # but we know of no workaround that is simple, portable, and efficient.
6774 # So, we kill variables containing newlines.
6775 # Ultrix sh set writes to stderr and can't be redirected directly,
6776 # and sets the high bit in the cache file unless we assign to the vars.
6777 (
6778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6779 eval ac_val=\$$ac_var
6780 case $ac_val in #(
6781 *${as_nl}*)
6782 case $ac_var in #(
6783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6785 esac
6786 case $ac_var in #(
6787 _ | IFS | as_nl) ;; #(
6788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6789 *) { eval $ac_var=; unset $ac_var;} ;;
6790 esac ;;
6791 esac
6792 done
6793
6794 (set) 2>&1 |
6795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6796 *${as_nl}ac_space=\ *)
6797 # `set' does not quote correctly, so add quotes: double-quote
6798 # substitution turns \\\\ into \\, and sed turns \\ into \.
6799 sed -n \
6800 "s/'/'\\\\''/g;
6801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6802 ;; #(
6803 *)
6804 # `set' quotes correctly as required by POSIX, so do not add quotes.
6805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6806 ;;
6807 esac |
6808 sort
6809 ) |
6810 sed '
6811 /^ac_cv_env_/b end
6812 t clear
6813 :clear
6814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6815 t end
6816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6817 :end' >>confcache
6818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6819 if test -w "$cache_file"; then
6820 if test "x$cache_file" != "x/dev/null"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6822 $as_echo "$as_me: updating cache $cache_file" >&6;}
6823 if test ! -f "$cache_file" || test -h "$cache_file"; then
6824 cat confcache >"$cache_file"
6825 else
6826 case $cache_file in #(
6827 */* | ?:*)
6828 mv -f confcache "$cache_file"$$ &&
6829 mv -f "$cache_file"$$ "$cache_file" ;; #(
6830 *)
6831 mv -f confcache "$cache_file" ;;
6832 esac
6833 fi
6834 fi
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6837 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6838 fi
6839 fi
6840 rm -f confcache
6841
6842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6843 # Let make expand exec_prefix.
6844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6845
6846 DEFS=-DHAVE_CONFIG_H
6847
6848 ac_libobjs=
6849 ac_ltlibobjs=
6850 U=
6851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6852 # 1. Remove the extension, and $U if already installed.
6853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6856 # will be set to the directory where LIBOBJS objects are built.
6857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6859 done
6860 LIBOBJS=$ac_libobjs
6861
6862 LTLIBOBJS=$ac_ltlibobjs
6863
6864
6865
6866 : "${CONFIG_STATUS=./config.status}"
6867 ac_write_fail=0
6868 ac_clean_files_save=$ac_clean_files
6869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6872 as_write_fail=0
6873 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6874 #! $SHELL
6875 # Generated by $as_me.
6876 # Run this file to recreate the current configuration.
6877 # Compiler output produced by configure, useful for debugging
6878 # configure, is in config.log if it exists.
6879
6880 debug=false
6881 ac_cs_recheck=false
6882 ac_cs_silent=false
6883
6884 SHELL=\${CONFIG_SHELL-$SHELL}
6885 export SHELL
6886 _ASEOF
6887 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6888 ## -------------------- ##
6889 ## M4sh Initialization. ##
6890 ## -------------------- ##
6891
6892 # Be more Bourne compatible
6893 DUALCASE=1; export DUALCASE # for MKS sh
6894 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6895 emulate sh
6896 NULLCMD=:
6897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6898 # is contrary to our usage. Disable this feature.
6899 alias -g '${1+"$@"}'='"$@"'
6900 setopt NO_GLOB_SUBST
6901 else
6902 case `(set -o) 2>/dev/null` in #(
6903 *posix*) :
6904 set -o posix ;; #(
6905 *) :
6906 ;;
6907 esac
6908 fi
6909
6910
6911 as_nl='
6912 '
6913 export as_nl
6914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6915 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6918 # Prefer a ksh shell builtin over an external printf program on Solaris,
6919 # but without wasting forks for bash or zsh.
6920 if test -z "$BASH_VERSION$ZSH_VERSION" \
6921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6922 as_echo='print -r --'
6923 as_echo_n='print -rn --'
6924 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6925 as_echo='printf %s\n'
6926 as_echo_n='printf %s'
6927 else
6928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6930 as_echo_n='/usr/ucb/echo -n'
6931 else
6932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6933 as_echo_n_body='eval
6934 arg=$1;
6935 case $arg in #(
6936 *"$as_nl"*)
6937 expr "X$arg" : "X\\(.*\\)$as_nl";
6938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6939 esac;
6940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6941 '
6942 export as_echo_n_body
6943 as_echo_n='sh -c $as_echo_n_body as_echo'
6944 fi
6945 export as_echo_body
6946 as_echo='sh -c $as_echo_body as_echo'
6947 fi
6948
6949 # The user is always right.
6950 if test "${PATH_SEPARATOR+set}" != set; then
6951 PATH_SEPARATOR=:
6952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6954 PATH_SEPARATOR=';'
6955 }
6956 fi
6957
6958
6959 # IFS
6960 # We need space, tab and new line, in precisely that order. Quoting is
6961 # there to prevent editors from complaining about space-tab.
6962 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6963 # splitting by setting IFS to empty value.)
6964 IFS=" "" $as_nl"
6965
6966 # Find who we are. Look in the path if we contain no directory separator.
6967 as_myself=
6968 case $0 in #((
6969 *[\\/]* ) as_myself=$0 ;;
6970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6976 done
6977 IFS=$as_save_IFS
6978
6979 ;;
6980 esac
6981 # We did not find ourselves, most probably we were run as `sh COMMAND'
6982 # in which case we are not to be found in the path.
6983 if test "x$as_myself" = x; then
6984 as_myself=$0
6985 fi
6986 if test ! -f "$as_myself"; then
6987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6988 exit 1
6989 fi
6990
6991 # Unset variables that we do not need and which cause bugs (e.g. in
6992 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6993 # suppresses any "Segmentation fault" message there. '((' could
6994 # trigger a bug in pdksh 5.2.14.
6995 for as_var in BASH_ENV ENV MAIL MAILPATH
6996 do eval test x\${$as_var+set} = xset \
6997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6998 done
6999 PS1='$ '
7000 PS2='> '
7001 PS4='+ '
7002
7003 # NLS nuisances.
7004 LC_ALL=C
7005 export LC_ALL
7006 LANGUAGE=C
7007 export LANGUAGE
7008
7009 # CDPATH.
7010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7011
7012
7013 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7014 # ----------------------------------------
7015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7017 # script with STATUS, using 1 if that was 0.
7018 as_fn_error ()
7019 {
7020 as_status=$1; test $as_status -eq 0 && as_status=1
7021 if test "$4"; then
7022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7024 fi
7025 $as_echo "$as_me: error: $2" >&2
7026 as_fn_exit $as_status
7027 } # as_fn_error
7028
7029
7030 # as_fn_set_status STATUS
7031 # -----------------------
7032 # Set $? to STATUS, without forking.
7033 as_fn_set_status ()
7034 {
7035 return $1
7036 } # as_fn_set_status
7037
7038 # as_fn_exit STATUS
7039 # -----------------
7040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7041 as_fn_exit ()
7042 {
7043 set +e
7044 as_fn_set_status $1
7045 exit $1
7046 } # as_fn_exit
7047
7048 # as_fn_unset VAR
7049 # ---------------
7050 # Portably unset VAR.
7051 as_fn_unset ()
7052 {
7053 { eval $1=; unset $1;}
7054 }
7055 as_unset=as_fn_unset
7056 # as_fn_append VAR VALUE
7057 # ----------------------
7058 # Append the text in VALUE to the end of the definition contained in VAR. Take
7059 # advantage of any shell optimizations that allow amortized linear growth over
7060 # repeated appends, instead of the typical quadratic growth present in naive
7061 # implementations.
7062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7063 eval 'as_fn_append ()
7064 {
7065 eval $1+=\$2
7066 }'
7067 else
7068 as_fn_append ()
7069 {
7070 eval $1=\$$1\$2
7071 }
7072 fi # as_fn_append
7073
7074 # as_fn_arith ARG...
7075 # ------------------
7076 # Perform arithmetic evaluation on the ARGs, and store the result in the
7077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7078 # must be portable across $(()) and expr.
7079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7080 eval 'as_fn_arith ()
7081 {
7082 as_val=$(( $* ))
7083 }'
7084 else
7085 as_fn_arith ()
7086 {
7087 as_val=`expr "$@" || test $? -eq 1`
7088 }
7089 fi # as_fn_arith
7090
7091
7092 if expr a : '\(a\)' >/dev/null 2>&1 &&
7093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7094 as_expr=expr
7095 else
7096 as_expr=false
7097 fi
7098
7099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7100 as_basename=basename
7101 else
7102 as_basename=false
7103 fi
7104
7105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7106 as_dirname=dirname
7107 else
7108 as_dirname=false
7109 fi
7110
7111 as_me=`$as_basename -- "$0" ||
7112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7113 X"$0" : 'X\(//\)$' \| \
7114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7115 $as_echo X/"$0" |
7116 sed '/^.*\/\([^/][^/]*\)\/*$/{
7117 s//\1/
7118 q
7119 }
7120 /^X\/\(\/\/\)$/{
7121 s//\1/
7122 q
7123 }
7124 /^X\/\(\/\).*/{
7125 s//\1/
7126 q
7127 }
7128 s/.*/./; q'`
7129
7130 # Avoid depending upon Character Ranges.
7131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7134 as_cr_digits='0123456789'
7135 as_cr_alnum=$as_cr_Letters$as_cr_digits
7136
7137 ECHO_C= ECHO_N= ECHO_T=
7138 case `echo -n x` in #(((((
7139 -n*)
7140 case `echo 'xy\c'` in
7141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7142 xy) ECHO_C='\c';;
7143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7144 ECHO_T=' ';;
7145 esac;;
7146 *)
7147 ECHO_N='-n';;
7148 esac
7149
7150 rm -f conf$$ conf$$.exe conf$$.file
7151 if test -d conf$$.dir; then
7152 rm -f conf$$.dir/conf$$.file
7153 else
7154 rm -f conf$$.dir
7155 mkdir conf$$.dir 2>/dev/null
7156 fi
7157 if (echo >conf$$.file) 2>/dev/null; then
7158 if ln -s conf$$.file conf$$ 2>/dev/null; then
7159 as_ln_s='ln -s'
7160 # ... but there are two gotchas:
7161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7163 # In both cases, we have to default to `cp -pR'.
7164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7165 as_ln_s='cp -pR'
7166 elif ln conf$$.file conf$$ 2>/dev/null; then
7167 as_ln_s=ln
7168 else
7169 as_ln_s='cp -pR'
7170 fi
7171 else
7172 as_ln_s='cp -pR'
7173 fi
7174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7175 rmdir conf$$.dir 2>/dev/null
7176
7177
7178 # as_fn_mkdir_p
7179 # -------------
7180 # Create "$as_dir" as a directory, including parents if necessary.
7181 as_fn_mkdir_p ()
7182 {
7183
7184 case $as_dir in #(
7185 -*) as_dir=./$as_dir;;
7186 esac
7187 test -d "$as_dir" || eval $as_mkdir_p || {
7188 as_dirs=
7189 while :; do
7190 case $as_dir in #(
7191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7192 *) as_qdir=$as_dir;;
7193 esac
7194 as_dirs="'$as_qdir' $as_dirs"
7195 as_dir=`$as_dirname -- "$as_dir" ||
7196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7197 X"$as_dir" : 'X\(//\)[^/]' \| \
7198 X"$as_dir" : 'X\(//\)$' \| \
7199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7200 $as_echo X"$as_dir" |
7201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7202 s//\1/
7203 q
7204 }
7205 /^X\(\/\/\)[^/].*/{
7206 s//\1/
7207 q
7208 }
7209 /^X\(\/\/\)$/{
7210 s//\1/
7211 q
7212 }
7213 /^X\(\/\).*/{
7214 s//\1/
7215 q
7216 }
7217 s/.*/./; q'`
7218 test -d "$as_dir" && break
7219 done
7220 test -z "$as_dirs" || eval "mkdir $as_dirs"
7221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7222
7223
7224 } # as_fn_mkdir_p
7225 if mkdir -p . 2>/dev/null; then
7226 as_mkdir_p='mkdir -p "$as_dir"'
7227 else
7228 test -d ./-p && rmdir ./-p
7229 as_mkdir_p=false
7230 fi
7231
7232
7233 # as_fn_executable_p FILE
7234 # -----------------------
7235 # Test if FILE is an executable regular file.
7236 as_fn_executable_p ()
7237 {
7238 test -f "$1" && test -x "$1"
7239 } # as_fn_executable_p
7240 as_test_x='test -x'
7241 as_executable_p=as_fn_executable_p
7242
7243 # Sed expression to map a string onto a valid CPP name.
7244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7245
7246 # Sed expression to map a string onto a valid variable name.
7247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7248
7249
7250 exec 6>&1
7251 ## ----------------------------------- ##
7252 ## Main body of $CONFIG_STATUS script. ##
7253 ## ----------------------------------- ##
7254 _ASEOF
7255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7256
7257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7258 # Save the log message, to keep $0 and so on meaningful, and to
7259 # report actual input values of CONFIG_FILES etc. instead of their
7260 # values after options handling.
7261 ac_log="
7262 This file was extended by GNU C Library $as_me (see version.h), which was
7263 generated by GNU Autoconf 2.69. Invocation command line was
7264
7265 CONFIG_FILES = $CONFIG_FILES
7266 CONFIG_HEADERS = $CONFIG_HEADERS
7267 CONFIG_LINKS = $CONFIG_LINKS
7268 CONFIG_COMMANDS = $CONFIG_COMMANDS
7269 $ $0 $@
7270
7271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7272 "
7273
7274 _ACEOF
7275
7276 case $ac_config_files in *"
7277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7278 esac
7279
7280 case $ac_config_headers in *"
7281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7282 esac
7283
7284
7285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7286 # Files that config.status was made for.
7287 config_files="$ac_config_files"
7288 config_headers="$ac_config_headers"
7289 config_commands="$ac_config_commands"
7290
7291 _ACEOF
7292
7293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7294 ac_cs_usage="\
7295 \`$as_me' instantiates files and other configuration actions
7296 from templates according to the current configuration. Unless the files
7297 and actions are specified as TAGs, all are instantiated by default.
7298
7299 Usage: $0 [OPTION]... [TAG]...
7300
7301 -h, --help print this help, then exit
7302 -V, --version print version number and configuration settings, then exit
7303 --config print configuration, then exit
7304 -q, --quiet, --silent
7305 do not print progress messages
7306 -d, --debug don't remove temporary files
7307 --recheck update $as_me by reconfiguring in the same conditions
7308 --file=FILE[:TEMPLATE]
7309 instantiate the configuration file FILE
7310 --header=FILE[:TEMPLATE]
7311 instantiate the configuration header FILE
7312
7313 Configuration files:
7314 $config_files
7315
7316 Configuration headers:
7317 $config_headers
7318
7319 Configuration commands:
7320 $config_commands
7321
7322 Report bugs to <https://sourceware.org/bugzilla/>.
7323 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
7324 General help using GNU software: <http://www.gnu.org/gethelp/>."
7325
7326 _ACEOF
7327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7328 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7329 ac_cs_version="\\
7330 GNU C Library config.status (see version.h)
7331 configured by $0, generated by GNU Autoconf 2.69,
7332 with options \\"\$ac_cs_config\\"
7333
7334 Copyright (C) 2012 Free Software Foundation, Inc.
7335 This config.status script is free software; the Free Software Foundation
7336 gives unlimited permission to copy, distribute and modify it."
7337
7338 ac_pwd='$ac_pwd'
7339 srcdir='$srcdir'
7340 INSTALL='$INSTALL'
7341 test -n "\$AWK" || AWK=awk
7342 _ACEOF
7343
7344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7345 # The default lists apply if the user does not specify any file.
7346 ac_need_defaults=:
7347 while test $# != 0
7348 do
7349 case $1 in
7350 --*=?*)
7351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7353 ac_shift=:
7354 ;;
7355 --*=)
7356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7357 ac_optarg=
7358 ac_shift=:
7359 ;;
7360 *)
7361 ac_option=$1
7362 ac_optarg=$2
7363 ac_shift=shift
7364 ;;
7365 esac
7366
7367 case $ac_option in
7368 # Handling of the options.
7369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7370 ac_cs_recheck=: ;;
7371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7372 $as_echo "$ac_cs_version"; exit ;;
7373 --config | --confi | --conf | --con | --co | --c )
7374 $as_echo "$ac_cs_config"; exit ;;
7375 --debug | --debu | --deb | --de | --d | -d )
7376 debug=: ;;
7377 --file | --fil | --fi | --f )
7378 $ac_shift
7379 case $ac_optarg in
7380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7381 '') as_fn_error $? "missing file argument" ;;
7382 esac
7383 as_fn_append CONFIG_FILES " '$ac_optarg'"
7384 ac_need_defaults=false;;
7385 --header | --heade | --head | --hea )
7386 $ac_shift
7387 case $ac_optarg in
7388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7389 esac
7390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7391 ac_need_defaults=false;;
7392 --he | --h)
7393 # Conflict between --help and --header
7394 as_fn_error $? "ambiguous option: \`$1'
7395 Try \`$0 --help' for more information.";;
7396 --help | --hel | -h )
7397 $as_echo "$ac_cs_usage"; exit ;;
7398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7400 ac_cs_silent=: ;;
7401
7402 # This is an error.
7403 -*) as_fn_error $? "unrecognized option: \`$1'
7404 Try \`$0 --help' for more information." ;;
7405
7406 *) as_fn_append ac_config_targets " $1"
7407 ac_need_defaults=false ;;
7408
7409 esac
7410 shift
7411 done
7412
7413 ac_configure_extra_args=
7414
7415 if $ac_cs_silent; then
7416 exec 6>/dev/null
7417 ac_configure_extra_args="$ac_configure_extra_args --silent"
7418 fi
7419
7420 _ACEOF
7421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7422 if \$ac_cs_recheck; then
7423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7424 shift
7425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7426 CONFIG_SHELL='$SHELL'
7427 export CONFIG_SHELL
7428 exec "\$@"
7429 fi
7430
7431 _ACEOF
7432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7433 exec 5>>config.log
7434 {
7435 echo
7436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7437 ## Running $as_me. ##
7438 _ASBOX
7439 $as_echo "$ac_log"
7440 } >&5
7441
7442 _ACEOF
7443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7444 #
7445 # INIT-COMMANDS
7446 #
7447 config_vars='$config_vars'
7448
7449 _ACEOF
7450
7451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7452
7453 # Handling of arguments.
7454 for ac_config_target in $ac_config_targets
7455 do
7456 case $ac_config_target in
7457 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7458 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7460 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7461
7462 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7463 esac
7464 done
7465
7466
7467 # If the user did not use the arguments to specify the items to instantiate,
7468 # then the envvar interface is used. Set only those that are not.
7469 # We use the long form for the default assignment because of an extremely
7470 # bizarre bug on SunOS 4.1.3.
7471 if $ac_need_defaults; then
7472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7475 fi
7476
7477 # Have a temporary directory for convenience. Make it in the build tree
7478 # simply because there is no reason against having it here, and in addition,
7479 # creating and moving files from /tmp can sometimes cause problems.
7480 # Hook for its removal unless debugging.
7481 # Note that there is a small window in which the directory will not be cleaned:
7482 # after its creation but before its name has been assigned to `$tmp'.
7483 $debug ||
7484 {
7485 tmp= ac_tmp=
7486 trap 'exit_status=$?
7487 : "${ac_tmp:=$tmp}"
7488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7489 ' 0
7490 trap 'as_fn_exit 1' 1 2 13 15
7491 }
7492 # Create a (secure) tmp directory for tmp files.
7493
7494 {
7495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7496 test -d "$tmp"
7497 } ||
7498 {
7499 tmp=./conf$$-$RANDOM
7500 (umask 077 && mkdir "$tmp")
7501 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7502 ac_tmp=$tmp
7503
7504 # Set up the scripts for CONFIG_FILES section.
7505 # No need to generate them if there are no CONFIG_FILES.
7506 # This happens for instance with `./config.status config.h'.
7507 if test -n "$CONFIG_FILES"; then
7508
7509
7510 ac_cr=`echo X | tr X '\015'`
7511 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7512 # But we know of no other shell where ac_cr would be empty at this
7513 # point, so we can use a bashism as a fallback.
7514 if test "x$ac_cr" = x; then
7515 eval ac_cr=\$\'\\r\'
7516 fi
7517 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7518 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7519 ac_cs_awk_cr='\\r'
7520 else
7521 ac_cs_awk_cr=$ac_cr
7522 fi
7523
7524 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7525 _ACEOF
7526
7527
7528 {
7529 echo "cat >conf$$subs.awk <<_ACEOF" &&
7530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7531 echo "_ACEOF"
7532 } >conf$$subs.sh ||
7533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7534 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7535 ac_delim='%!_!# '
7536 for ac_last_try in false false false false false :; do
7537 . ./conf$$subs.sh ||
7538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7539
7540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7541 if test $ac_delim_n = $ac_delim_num; then
7542 break
7543 elif $ac_last_try; then
7544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7545 else
7546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7547 fi
7548 done
7549 rm -f conf$$subs.sh
7550
7551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7552 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7553 _ACEOF
7554 sed -n '
7555 h
7556 s/^/S["/; s/!.*/"]=/
7557 p
7558 g
7559 s/^[^!]*!//
7560 :repl
7561 t repl
7562 s/'"$ac_delim"'$//
7563 t delim
7564 :nl
7565 h
7566 s/\(.\{148\}\)..*/\1/
7567 t more1
7568 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7569 p
7570 n
7571 b repl
7572 :more1
7573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7574 p
7575 g
7576 s/.\{148\}//
7577 t nl
7578 :delim
7579 h
7580 s/\(.\{148\}\)..*/\1/
7581 t more2
7582 s/["\\]/\\&/g; s/^/"/; s/$/"/
7583 p
7584 b
7585 :more2
7586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7587 p
7588 g
7589 s/.\{148\}//
7590 t delim
7591 ' <conf$$subs.awk | sed '
7592 /^[^""]/{
7593 N
7594 s/\n//
7595 }
7596 ' >>$CONFIG_STATUS || ac_write_fail=1
7597 rm -f conf$$subs.awk
7598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7599 _ACAWK
7600 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7601 for (key in S) S_is_set[key] = 1
7602 FS = "\a"
7603
7604 }
7605 {
7606 line = $ 0
7607 nfields = split(line, field, "@")
7608 substed = 0
7609 len = length(field[1])
7610 for (i = 2; i < nfields; i++) {
7611 key = field[i]
7612 keylen = length(key)
7613 if (S_is_set[key]) {
7614 value = S[key]
7615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7616 len += length(value) + length(field[++i])
7617 substed = 1
7618 } else
7619 len += 1 + keylen
7620 }
7621
7622 print line
7623 }
7624
7625 _ACAWK
7626 _ACEOF
7627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7628 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7630 else
7631 cat
7632 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7633 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7634 _ACEOF
7635
7636 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7637 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7638 # trailing colons and then remove the whole line if VPATH becomes empty
7639 # (actually we leave an empty line to preserve line numbers).
7640 if test "x$srcdir" = x.; then
7641 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7642 h
7643 s///
7644 s/^/:/
7645 s/[ ]*$/:/
7646 s/:\$(srcdir):/:/g
7647 s/:\${srcdir}:/:/g
7648 s/:@srcdir@:/:/g
7649 s/^:*//
7650 s/:*$//
7651 x
7652 s/\(=[ ]*\).*/\1/
7653 G
7654 s/\n//
7655 s/^[^=]*=[ ]*$//
7656 }'
7657 fi
7658
7659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7660 fi # test -n "$CONFIG_FILES"
7661
7662 # Set up the scripts for CONFIG_HEADERS section.
7663 # No need to generate them if there are no CONFIG_HEADERS.
7664 # This happens for instance with `./config.status Makefile'.
7665 if test -n "$CONFIG_HEADERS"; then
7666 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7667 BEGIN {
7668 _ACEOF
7669
7670 # Transform confdefs.h into an awk script `defines.awk', embedded as
7671 # here-document in config.status, that substitutes the proper values into
7672 # config.h.in to produce config.h.
7673
7674 # Create a delimiter string that does not exist in confdefs.h, to ease
7675 # handling of long lines.
7676 ac_delim='%!_!# '
7677 for ac_last_try in false false :; do
7678 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7679 if test -z "$ac_tt"; then
7680 break
7681 elif $ac_last_try; then
7682 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7683 else
7684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7685 fi
7686 done
7687
7688 # For the awk script, D is an array of macro values keyed by name,
7689 # likewise P contains macro parameters if any. Preserve backslash
7690 # newline sequences.
7691
7692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7693 sed -n '
7694 s/.\{148\}/&'"$ac_delim"'/g
7695 t rset
7696 :rset
7697 s/^[ ]*#[ ]*define[ ][ ]*/ /
7698 t def
7699 d
7700 :def
7701 s/\\$//
7702 t bsnl
7703 s/["\\]/\\&/g
7704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7705 D["\1"]=" \3"/p
7706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7707 d
7708 :bsnl
7709 s/["\\]/\\&/g
7710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7711 D["\1"]=" \3\\\\\\n"\\/p
7712 t cont
7713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7714 t cont
7715 d
7716 :cont
7717 n
7718 s/.\{148\}/&'"$ac_delim"'/g
7719 t clear
7720 :clear
7721 s/\\$//
7722 t bsnlc
7723 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7724 d
7725 :bsnlc
7726 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7727 b cont
7728 ' <confdefs.h | sed '
7729 s/'"$ac_delim"'/"\\\
7730 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7731
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 for (key in D) D_is_set[key] = 1
7734 FS = "\a"
7735 }
7736 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7737 line = \$ 0
7738 split(line, arg, " ")
7739 if (arg[1] == "#") {
7740 defundef = arg[2]
7741 mac1 = arg[3]
7742 } else {
7743 defundef = substr(arg[1], 2)
7744 mac1 = arg[2]
7745 }
7746 split(mac1, mac2, "(") #)
7747 macro = mac2[1]
7748 prefix = substr(line, 1, index(line, defundef) - 1)
7749 if (D_is_set[macro]) {
7750 # Preserve the white space surrounding the "#".
7751 print prefix "define", macro P[macro] D[macro]
7752 next
7753 } else {
7754 # Replace #undef with comments. This is necessary, for example,
7755 # in the case of _POSIX_SOURCE, which is predefined and required
7756 # on some systems where configure will not decide to define it.
7757 if (defundef == "undef") {
7758 print "/*", prefix defundef, macro, "*/"
7759 next
7760 }
7761 }
7762 }
7763 { print }
7764 _ACAWK
7765 _ACEOF
7766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7767 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7768 fi # test -n "$CONFIG_HEADERS"
7769
7770
7771 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7772 shift
7773 for ac_tag
7774 do
7775 case $ac_tag in
7776 :[FHLC]) ac_mode=$ac_tag; continue;;
7777 esac
7778 case $ac_mode$ac_tag in
7779 :[FHL]*:*);;
7780 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7781 :[FH]-) ac_tag=-:-;;
7782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7783 esac
7784 ac_save_IFS=$IFS
7785 IFS=:
7786 set x $ac_tag
7787 IFS=$ac_save_IFS
7788 shift
7789 ac_file=$1
7790 shift
7791
7792 case $ac_mode in
7793 :L) ac_source=$1;;
7794 :[FH])
7795 ac_file_inputs=
7796 for ac_f
7797 do
7798 case $ac_f in
7799 -) ac_f="$ac_tmp/stdin";;
7800 *) # Look for the file first in the build tree, then in the source tree
7801 # (if the path is not absolute). The absolute path cannot be DOS-style,
7802 # because $ac_f cannot contain `:'.
7803 test -f "$ac_f" ||
7804 case $ac_f in
7805 [\\/$]*) false;;
7806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7807 esac ||
7808 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7809 esac
7810 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7811 as_fn_append ac_file_inputs " '$ac_f'"
7812 done
7813
7814 # Let's still pretend it is `configure' which instantiates (i.e., don't
7815 # use $as_me), people would be surprised to read:
7816 # /* config.h. Generated by config.status. */
7817 configure_input='Generated from '`
7818 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7819 `' by configure.'
7820 if test x"$ac_file" != x-; then
7821 configure_input="$ac_file. $configure_input"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7823 $as_echo "$as_me: creating $ac_file" >&6;}
7824 fi
7825 # Neutralize special characters interpreted by sed in replacement strings.
7826 case $configure_input in #(
7827 *\&* | *\|* | *\\* )
7828 ac_sed_conf_input=`$as_echo "$configure_input" |
7829 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7830 *) ac_sed_conf_input=$configure_input;;
7831 esac
7832
7833 case $ac_tag in
7834 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7836 esac
7837 ;;
7838 esac
7839
7840 ac_dir=`$as_dirname -- "$ac_file" ||
7841 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7842 X"$ac_file" : 'X\(//\)[^/]' \| \
7843 X"$ac_file" : 'X\(//\)$' \| \
7844 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7845 $as_echo X"$ac_file" |
7846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7847 s//\1/
7848 q
7849 }
7850 /^X\(\/\/\)[^/].*/{
7851 s//\1/
7852 q
7853 }
7854 /^X\(\/\/\)$/{
7855 s//\1/
7856 q
7857 }
7858 /^X\(\/\).*/{
7859 s//\1/
7860 q
7861 }
7862 s/.*/./; q'`
7863 as_dir="$ac_dir"; as_fn_mkdir_p
7864 ac_builddir=.
7865
7866 case "$ac_dir" in
7867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7868 *)
7869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7870 # A ".." for each directory in $ac_dir_suffix.
7871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7872 case $ac_top_builddir_sub in
7873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7875 esac ;;
7876 esac
7877 ac_abs_top_builddir=$ac_pwd
7878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7879 # for backward compatibility:
7880 ac_top_builddir=$ac_top_build_prefix
7881
7882 case $srcdir in
7883 .) # We are building in place.
7884 ac_srcdir=.
7885 ac_top_srcdir=$ac_top_builddir_sub
7886 ac_abs_top_srcdir=$ac_pwd ;;
7887 [\\/]* | ?:[\\/]* ) # Absolute name.
7888 ac_srcdir=$srcdir$ac_dir_suffix;
7889 ac_top_srcdir=$srcdir
7890 ac_abs_top_srcdir=$srcdir ;;
7891 *) # Relative name.
7892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7893 ac_top_srcdir=$ac_top_build_prefix$srcdir
7894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7895 esac
7896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7897
7898
7899 case $ac_mode in
7900 :F)
7901 #
7902 # CONFIG_FILE
7903 #
7904
7905 case $INSTALL in
7906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7908 esac
7909 _ACEOF
7910
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7912 # If the template does not know about datarootdir, expand it.
7913 # FIXME: This hack should be removed a few years after 2.60.
7914 ac_datarootdir_hack=; ac_datarootdir_seen=
7915 ac_sed_dataroot='
7916 /datarootdir/ {
7917 p
7918 q
7919 }
7920 /@datadir@/p
7921 /@docdir@/p
7922 /@infodir@/p
7923 /@localedir@/p
7924 /@mandir@/p'
7925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7926 *datarootdir*) ac_datarootdir_seen=yes;;
7927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7930 _ACEOF
7931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7932 ac_datarootdir_hack='
7933 s&@datadir@&$datadir&g
7934 s&@docdir@&$docdir&g
7935 s&@infodir@&$infodir&g
7936 s&@localedir@&$localedir&g
7937 s&@mandir@&$mandir&g
7938 s&\\\${datarootdir}&$datarootdir&g' ;;
7939 esac
7940 _ACEOF
7941
7942 # Neutralize VPATH when `$srcdir' = `.'.
7943 # Shell code in configure.ac might set extrasub.
7944 # FIXME: do we really want to maintain this feature?
7945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7946 ac_sed_extra="$ac_vpsub
7947 $extrasub
7948 _ACEOF
7949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7950 :t
7951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7952 s|@configure_input@|$ac_sed_conf_input|;t t
7953 s&@top_builddir@&$ac_top_builddir_sub&;t t
7954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7955 s&@srcdir@&$ac_srcdir&;t t
7956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7957 s&@top_srcdir@&$ac_top_srcdir&;t t
7958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7959 s&@builddir@&$ac_builddir&;t t
7960 s&@abs_builddir@&$ac_abs_builddir&;t t
7961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7962 s&@INSTALL@&$ac_INSTALL&;t t
7963 $ac_datarootdir_hack
7964 "
7965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7966 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7967
7968 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7969 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7970 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7971 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7973 which seems to be undefined. Please make sure it is defined" >&5
7974 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7975 which seems to be undefined. Please make sure it is defined" >&2;}
7976
7977 rm -f "$ac_tmp/stdin"
7978 case $ac_file in
7979 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7980 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7981 esac \
7982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7983 ;;
7984 :H)
7985 #
7986 # CONFIG_HEADER
7987 #
7988 if test x"$ac_file" != x-; then
7989 {
7990 $as_echo "/* $configure_input */" \
7991 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7992 } >"$ac_tmp/config.h" \
7993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7994 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7996 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7997 else
7998 rm -f "$ac_file"
7999 mv "$ac_tmp/config.h" "$ac_file" \
8000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8001 fi
8002 else
8003 $as_echo "/* $configure_input */" \
8004 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8005 || as_fn_error $? "could not create -" "$LINENO" 5
8006 fi
8007 ;;
8008
8009 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8010 $as_echo "$as_me: executing $ac_file commands" >&6;}
8011 ;;
8012 esac
8013
8014
8015 case $ac_file$ac_mode in
8016 "default":C)
8017 case $CONFIG_FILES in *config.make*)
8018 echo "$config_vars" >> config.make;;
8019 esac
8020 test -d bits || mkdir bits ;;
8021
8022 esac
8023 done # for ac_tag
8024
8025
8026 as_fn_exit 0
8027 _ACEOF
8028 ac_clean_files=$ac_clean_files_save
8029
8030 test $ac_write_fail = 0 ||
8031 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8032
8033
8034 # configure is writing to config.log, and then calls config.status.
8035 # config.status does its own redirection, appending to config.log.
8036 # Unfortunately, on DOS this fails, as config.log is still kept open
8037 # by configure, so config.status won't be able to write to it; its
8038 # output is simply discarded. So we exec the FD to /dev/null,
8039 # effectively closing config.log, so it can be properly (re)opened and
8040 # appended to by config.status. When coming back to configure, we
8041 # need to make the FD available again.
8042 if test "$no_create" != yes; then
8043 ac_cs_success=:
8044 ac_config_status_args=
8045 test "$silent" = yes &&
8046 ac_config_status_args="$ac_config_status_args --quiet"
8047 exec 5>/dev/null
8048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8049 exec 5>>config.log
8050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8051 # would make configure fail if this is the last instruction.
8052 $ac_cs_success || as_fn_exit 1
8053 fi
8054
8055 #
8056 # CONFIG_SUBDIRS section.
8057 #
8058 if test "$no_recursion" != yes; then
8059
8060 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8061 # so they do not pile up.
8062 ac_sub_configure_args=
8063 ac_prev=
8064 eval "set x $ac_configure_args"
8065 shift
8066 for ac_arg
8067 do
8068 if test -n "$ac_prev"; then
8069 ac_prev=
8070 continue
8071 fi
8072 case $ac_arg in
8073 -cache-file | --cache-file | --cache-fil | --cache-fi \
8074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8075 ac_prev=cache_file ;;
8076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8078 | --c=*)
8079 ;;
8080 --config-cache | -C)
8081 ;;
8082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8083 ac_prev=srcdir ;;
8084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8085 ;;
8086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8087 ac_prev=prefix ;;
8088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8089 ;;
8090 --disable-option-checking)
8091 ;;
8092 *)
8093 case $ac_arg in
8094 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8095 esac
8096 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8097 esac
8098 done
8099
8100 # Always prepend --prefix to ensure using the same prefix
8101 # in subdir configurations.
8102 ac_arg="--prefix=$prefix"
8103 case $ac_arg in
8104 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8105 esac
8106 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8107
8108 # Pass --silent
8109 if test "$silent" = yes; then
8110 ac_sub_configure_args="--silent $ac_sub_configure_args"
8111 fi
8112
8113 # Always prepend --disable-option-checking to silence warnings, since
8114 # different subdirs can have different --enable and --with options.
8115 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8116
8117 ac_popdir=`pwd`
8118 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8119
8120 # Do not complain, so a configure script can configure whichever
8121 # parts of a large source tree are present.
8122 test -d "$srcdir/$ac_dir" || continue
8123
8124 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8126 $as_echo "$ac_msg" >&6
8127 as_dir="$ac_dir"; as_fn_mkdir_p
8128 ac_builddir=.
8129
8130 case "$ac_dir" in
8131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8132 *)
8133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8134 # A ".." for each directory in $ac_dir_suffix.
8135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8136 case $ac_top_builddir_sub in
8137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8139 esac ;;
8140 esac
8141 ac_abs_top_builddir=$ac_pwd
8142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8143 # for backward compatibility:
8144 ac_top_builddir=$ac_top_build_prefix
8145
8146 case $srcdir in
8147 .) # We are building in place.
8148 ac_srcdir=.
8149 ac_top_srcdir=$ac_top_builddir_sub
8150 ac_abs_top_srcdir=$ac_pwd ;;
8151 [\\/]* | ?:[\\/]* ) # Absolute name.
8152 ac_srcdir=$srcdir$ac_dir_suffix;
8153 ac_top_srcdir=$srcdir
8154 ac_abs_top_srcdir=$srcdir ;;
8155 *) # Relative name.
8156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8157 ac_top_srcdir=$ac_top_build_prefix$srcdir
8158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8159 esac
8160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8161
8162
8163 cd "$ac_dir"
8164
8165 # Check for guested configure; otherwise get Cygnus style configure.
8166 if test -f "$ac_srcdir/configure.gnu"; then
8167 ac_sub_configure=$ac_srcdir/configure.gnu
8168 elif test -f "$ac_srcdir/configure"; then
8169 ac_sub_configure=$ac_srcdir/configure
8170 elif test -f "$ac_srcdir/configure.in"; then
8171 # This should be Cygnus configure.
8172 ac_sub_configure=$ac_aux_dir/configure
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8175 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8176 ac_sub_configure=
8177 fi
8178
8179 # The recursion is here.
8180 if test -n "$ac_sub_configure"; then
8181 # Make the cache file name correct relative to the subdirectory.
8182 case $cache_file in
8183 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8184 *) # Relative name.
8185 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8186 esac
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8189 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8190 # The eval makes quoting arguments work.
8191 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8192 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8193 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8194 fi
8195
8196 cd "$ac_popdir"
8197 done
8198 fi
8199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8202 fi
8203