Remove x86_64 __GNUC_PREREQ (4, 6) conditional.
[glibc.git] / configure
blob0cb54ec363e43bed0feb8725a0360fbac91185a1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
5 # Report bugs to <http://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://sourceware.org/bugzilla/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='GNU C Library'
582 PACKAGE_TARNAME='glibc'
583 PACKAGE_VERSION='(see version.h)'
584 PACKAGE_STRING='GNU C Library (see version.h)'
585 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
586 PACKAGE_URL='http://www.gnu.org/software/glibc/'
588 ac_unique_file="include/features.h"
589 enable_option_checking=no
590 ac_includes_default='/* none */'
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 RELEASE
594 VERSION
595 mach_interface_list
596 DEFINES
597 static_nss
598 profile
599 libc_cv_pic_default
600 shared
601 static
602 ldd_rewrite_script
603 use_ldconfig
604 libc_cv_forced_unwind
605 libc_cv_rootsbindir
606 libc_cv_localstatedir
607 libc_cv_sysconfdir
608 libc_cv_localedir
609 libc_cv_rtlddir
610 libc_cv_slibdir
611 old_glibc_headers
612 use_nscd
613 libc_cv_gcc_unwind_find_fde
614 libc_extra_cppflags
615 libc_extra_cflags
616 CPPUNDEFS
617 sizeof_long_double
618 have_selinux
619 have_libcap
620 have_libaudit
621 LIBGD
622 libc_cv_cc_loop_to_function
623 libc_cv_cc_submachine
624 libc_cv_cc_nofma
625 exceptions
626 gnu89_inline
627 libc_cv_ssp
628 fno_unit_at_a_time
629 libc_cv_output_format
630 libc_cv_hashstyle
631 libc_cv_fpie
632 libc_cv_z_execstack
633 libc_cv_z_combreloc
634 ASFLAGS_config
635 libc_cv_Bgroup
636 libc_cv_cc_with_libunwind
637 BISON
638 INSTALL_INFO
639 PERL
640 BASH_SHELL
641 libc_cv_gcc_static_libgcc
642 CXX_SYSINCLUDES
643 SYSINCLUDES
644 AUTOCONF
648 MAKEINFO
649 MSGFMT
650 MAKE
653 OBJCOPY
654 OBJDUMP
656 LN_S
657 INSTALL_DATA
658 INSTALL_SCRIPT
659 INSTALL_PROGRAM
660 sysdeps_add_ons
661 sysnames
662 submachine
663 multi_arch
664 base_machine
665 add_on_subdirs
666 add_ons
667 build_pt_chown
668 build_nscd
669 link_obsolete_rpc
670 libc_cv_nss_crypt
671 all_warnings
672 force_install
673 bindnow
674 enable_lock_elision
675 hardcoded_path_in_tests
676 use_default_link
677 sysheaders
678 with_fp
679 READELF
680 ac_ct_CXX
681 CXXFLAGS
684 cross_compiling
685 BUILD_CC
686 OBJEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 subdirs
701 REPORT_BUGS_TEXI
702 REPORT_BUGS_TO
703 PKGVERSION_TEXI
704 PKGVERSION
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 with_pkgversion
747 with_bugurl
748 with_gd
749 with_gd_include
750 with_gd_lib
751 with_fp
752 with_binutils
753 with_selinux
754 with_headers
755 with_default_link
756 enable_sanity_checks
757 enable_shared
758 enable_profile
759 enable_hardcoded_path_in_tests
760 enable_stackguard_randomization
761 enable_lock_elision
762 enable_add_ons
763 enable_hidden_plt
764 enable_bind_now
765 enable_static_nss
766 enable_force_install
767 enable_maintainer_mode
768 enable_kernel
769 enable_all_warnings
770 enable_multi_arch
771 enable_nss_crypt
772 enable_obsolete_rpc
773 enable_systemtap
774 enable_build_nscd
775 enable_nscd
776 enable_pt_chown
777 with_cpu
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
789 CXXFLAGS
790 CCC'
791 ac_subdirs_all='
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
842 ac_prev=
843 ac_dashdash=
844 for ac_option
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
863 ac_dashdash=yes ;;
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
882 --config-cache | -C)
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 esac
1200 done
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1398 esac
1399 cat <<\_ACEOF
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-sanity-checks really do not use threads (should not be used except
1406 in special situations) [default=yes]
1407 --enable-shared build shared library [default=yes if GNU ld]
1408 --enable-profile build profiled library [default=no]
1409 --enable-hardcoded-path-in-tests
1410 hardcode newly built glibc path in tests
1411 [default=no]
1412 --enable-stackguard-randomization
1413 initialize __stack_chk_guard canary with a random
1414 number at program start
1415 --enable-lock-elision=yes/no
1416 Enable lock elision for pthread mutexes by default
1417 --enable-add-ons[=DIRS...]
1418 configure and build add-ons in DIR1,DIR2,... search
1419 for add-ons if no parameter given
1420 --disable-hidden-plt do not hide internal function calls to avoid PLT
1421 --enable-bind-now disable lazy relocations in DSOs
1422 --enable-static-nss build static NSS modules [default=no]
1423 --disable-force-install don't force installation of files from this package,
1424 even if they are older than the installed files
1425 --enable-maintainer-mode
1426 enable make rules and dependencies not useful (and
1427 sometimes confusing) to the casual installer
1428 --enable-kernel=VERSION compile for compatibility with kernel not older than
1429 VERSION
1430 --enable-all-warnings enable all useful warnings gcc can issue
1431 --enable-multi-arch enable single DSO with optimizations for multiple
1432 architectures
1433 --enable-nss-crypt enable libcrypt to use nss
1434 --enable-obsolete-rpc build and install the obsolete RPC code for
1435 link-time usage
1436 --enable-systemtap enable systemtap static probe points [default=no]
1437 --disable-build-nscd disable building and installing the nscd daemon
1438 --disable-nscd library functions will not contact the nscd daemon
1439 --enable-pt_chown Enable building and installing pt_chown
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1445 --with-bugurl=URL Direct users to URL to report a bug
1446 --with-gd=DIR find libgd include dir and library with prefix DIR
1447 --with-gd-include=DIR find libgd include files in DIR
1448 --with-gd-lib=DIR find libgd library files in DIR
1449 --with-fp if using floating-point hardware [default=yes]
1450 --with-binutils=PATH specify location of binutils (as and ld)
1451 --with-selinux if building with SELinux support
1452 --with-headers=PATH location of system headers to use (for example
1453 /usr/src/linux/include) [default=compiler default]
1454 --with-default-link do not use explicit linker scripts
1455 --with-cpu=CPU select code for CPU variant
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <http://sourceware.org/bugzilla/>.
1473 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1474 General help using GNU software: <http://www.gnu.org/gethelp/>.
1475 _ACEOF
1476 ac_status=$?
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 GNU C Library configure (see version.h)
1538 generated by GNU Autoconf 2.69
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_cxx_try_compile LINENO
1590 # ----------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_cxx_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_cxx_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1620 ac_retval=1
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1625 } # ac_fn_cxx_try_compile
1627 # ac_fn_c_try_link LINENO
1628 # -----------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_link ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext conftest$ac_exeext
1634 if { { ac_try="$ac_link"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest$ac_exeext && {
1653 test "$cross_compiling" = yes ||
1654 test -x conftest$ac_exeext
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1661 ac_retval=1
1663 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1664 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1665 # interfere with the next link command; also delete a directory that is
1666 # left behind by Apple's compiler. We do this before executing the actions.
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_link
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_run
1715 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1716 # --------------------------------------------
1717 # Tries to find the compile-time value of EXPR in a program that includes
1718 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1719 # computed
1720 ac_fn_c_compute_int ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if test "$cross_compiling" = yes; then
1724 # Depending upon the size, compute the lo and hi bounds.
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1729 main ()
1731 static int test_array [1 - 2 * !(($2) >= 0)];
1732 test_array [0] = 0;
1733 return test_array [0];
1736 return 0;
1738 _ACEOF
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740 ac_lo=0 ac_mid=0
1741 while :; do
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1746 main ()
1748 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1749 test_array [0] = 0;
1750 return test_array [0];
1753 return 0;
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 ac_hi=$ac_mid; break
1758 else
1759 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1760 if test $ac_lo -le $ac_mid; then
1761 ac_lo= ac_hi=
1762 break
1764 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 done
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1773 main ()
1775 static int test_array [1 - 2 * !(($2) < 0)];
1776 test_array [0] = 0;
1777 return test_array [0];
1780 return 0;
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_hi=-1 ac_mid=-1
1785 while :; do
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1790 main ()
1792 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1793 test_array [0] = 0;
1794 return test_array [0];
1797 return 0;
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_lo=$ac_mid; break
1802 else
1803 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1804 if test $ac_mid -le $ac_hi; then
1805 ac_lo= ac_hi=
1806 break
1808 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 done
1812 else
1813 ac_lo= ac_hi=
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 # Binary search between lo and hi bounds.
1819 while test "x$ac_lo" != "x$ac_hi"; do
1820 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1825 main ()
1827 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1828 test_array [0] = 0;
1829 return test_array [0];
1832 return 0;
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_hi=$ac_mid
1837 else
1838 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 done
1842 case $ac_lo in #((
1843 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1844 '') ac_retval=1 ;;
1845 esac
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1850 static long int longval () { return $2; }
1851 static unsigned long int ulongval () { return $2; }
1852 #include <stdio.h>
1853 #include <stdlib.h>
1855 main ()
1858 FILE *f = fopen ("conftest.val", "w");
1859 if (! f)
1860 return 1;
1861 if (($2) < 0)
1863 long int i = longval ();
1864 if (i != ($2))
1865 return 1;
1866 fprintf (f, "%ld", i);
1868 else
1870 unsigned long int i = ulongval ();
1871 if (i != ($2))
1872 return 1;
1873 fprintf (f, "%lu", i);
1875 /* Do not output a trailing newline, as this causes \r\n confusion
1876 on some platforms. */
1877 return ferror (f) || fclose (f) != 0;
1880 return 0;
1882 _ACEOF
1883 if ac_fn_c_try_run "$LINENO"; then :
1884 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1885 else
1886 ac_retval=1
1888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1889 conftest.$ac_objext conftest.beam conftest.$ac_ext
1890 rm -f conftest.val
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_compute_int
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1901 It was created by GNU C Library $as_me (see version.h), which was
1902 generated by GNU Autoconf 2.69. Invocation command line was
1904 $ $0 $@
1906 _ACEOF
1907 exec 5>>config.log
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1931 _ASUNAME
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1939 done
1940 IFS=$as_save_IFS
1942 } >&5
1944 cat >&5 <<_ACEOF
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1951 _ACEOF
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1965 for ac_arg
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 esac
1975 case $ac_pass in
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1994 as_fn_append ac_configure_args " '$ac_arg'"
1996 esac
1997 done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2010 echo
2012 $as_echo "## ---------------- ##
2013 ## Cache variables. ##
2014 ## ---------------- ##"
2015 echo
2016 # The following way of writing the cache mishandles newlines in values,
2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in #(
2021 *${as_nl}*)
2022 case $ac_var in #(
2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025 esac
2026 case $ac_var in #(
2027 _ | IFS | as_nl) ;; #(
2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029 *) { eval $ac_var=; unset $ac_var;} ;;
2030 esac ;;
2031 esac
2032 done
2033 (set) 2>&1 |
2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035 *${as_nl}ac_space=\ *)
2036 sed -n \
2037 "s/'\''/'\''\\\\'\'''\''/g;
2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039 ;; #(
2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2043 esac |
2044 sort
2046 echo
2048 $as_echo "## ----------------- ##
2049 ## Output variables. ##
2050 ## ----------------- ##"
2051 echo
2052 for ac_var in $ac_subst_vars
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2062 if test -n "$ac_subst_files"; then
2063 $as_echo "## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##"
2066 echo
2067 for ac_var in $ac_subst_files
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2078 if test -s confdefs.h; then
2079 $as_echo "## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##"
2082 echo
2083 cat confdefs.h
2084 echo
2086 test "$ac_signal" != 0 &&
2087 $as_echo "$as_me: caught signal $ac_signal"
2088 $as_echo "$as_me: exit $exit_status"
2089 } >&5
2090 rm -f core *.core core.conftest.* &&
2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 exit $exit_status
2094 for ac_signal in 1 2 13 15; do
2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 done
2097 ac_signal=0
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2102 $as_echo "/* confdefs.h */" > confdefs.h
2104 # Predefined preprocessor variables.
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_URL "$PACKAGE_URL"
2128 _ACEOF
2131 # Let the site file select an alternate cache file if it wants to.
2132 # Prefer an explicitly selected file to automatically selected ones.
2133 ac_site_file1=NONE
2134 ac_site_file2=NONE
2135 if test -n "$CONFIG_SITE"; then
2136 # We do not want a PATH search for config.site.
2137 case $CONFIG_SITE in #((
2138 -*) ac_site_file1=./$CONFIG_SITE;;
2139 */*) ac_site_file1=$CONFIG_SITE;;
2140 *) ac_site_file1=./$CONFIG_SITE;;
2141 esac
2142 elif test "x$prefix" != xNONE; then
2143 ac_site_file1=$prefix/share/config.site
2144 ac_site_file2=$prefix/etc/config.site
2145 else
2146 ac_site_file1=$ac_default_prefix/share/config.site
2147 ac_site_file2=$ac_default_prefix/etc/config.site
2149 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2151 test "x$ac_site_file" = xNONE && continue
2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2162 done
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186 eval ac_new_set=\$ac_env_${ac_var}_set
2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188 eval ac_new_val=\$ac_env_${ac_var}_value
2189 case $ac_old_set,$ac_new_set in
2190 set,)
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193 ac_cache_corrupted=: ;;
2194 ,set)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,);;
2200 if test "x$ac_old_val" != "x$ac_new_val"; then
2201 # differences in whitespace do not lead to failure.
2202 ac_old_val_w=`echo x $ac_old_val`
2203 ac_new_val_w=`echo x $ac_new_val`
2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207 ac_cache_corrupted=:
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211 eval $ac_var=\$ac_old_val
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2217 fi;;
2218 esac
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2221 case $ac_new_val in
2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2224 esac
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228 esac
2230 done
2231 if $ac_cache_corrupted; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 ac_config_headers="$ac_config_headers config.h"
2252 ac_aux_dir=
2253 for ac_dir in scripts "$srcdir"/scripts; do
2254 if test -f "$ac_dir/install-sh"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/install-sh -c"
2257 break
2258 elif test -f "$ac_dir/install.sh"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/install.sh -c"
2261 break
2262 elif test -f "$ac_dir/shtool"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/shtool install -c"
2265 break
2267 done
2268 if test -z "$ac_aux_dir"; then
2269 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2272 # These three variables are undocumented and unsupported,
2273 # and are intended to be withdrawn in a future Autoconf release.
2274 # They can cause serious problems if a builder's source tree is in a directory
2275 # whose full name contains unusual characters.
2276 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2277 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2278 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284 # Check whether --with-pkgversion was given.
2285 if test "${with_pkgversion+set}" = set; then :
2286 withval=$with_pkgversion; case "$withval" in
2287 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2288 no) PKGVERSION= ;;
2289 *) PKGVERSION="($withval) " ;;
2290 esac
2291 else
2292 PKGVERSION="(GNU libc) "
2296 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2302 # Check whether --with-bugurl was given.
2303 if test "${with_bugurl+set}" = set; then :
2304 withval=$with_bugurl; case "$withval" in
2305 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2306 no) BUGURL=
2308 *) BUGURL="$withval"
2310 esac
2311 else
2312 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2316 case ${BUGURL} in
2318 REPORT_BUGS_TO=
2319 REPORT_BUGS_TEXI=
2322 REPORT_BUGS_TO="<$BUGURL>"
2323 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2325 esac;
2330 cat >>confdefs.h <<_ACEOF
2331 #define PKGVERSION "$PKGVERSION"
2332 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2337 _ACEOF
2340 # Glibc should not depend on any header files
2343 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2344 # here to work around the Autoconf issue discussed in
2345 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2346 # AC_PROG_CPP
2348 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2349 # issue discussed in
2350 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2355 subdirs="$subdirs "
2358 # Make sure we can run config.sub.
2359 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2360 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2363 $as_echo_n "checking build system type... " >&6; }
2364 if ${ac_cv_build+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 ac_build_alias=$build_alias
2368 test "x$ac_build_alias" = x &&
2369 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2370 test "x$ac_build_alias" = x &&
2371 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2372 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2377 $as_echo "$ac_cv_build" >&6; }
2378 case $ac_cv_build in
2379 *-*-*) ;;
2380 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2381 esac
2382 build=$ac_cv_build
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_build
2385 shift
2386 build_cpu=$1
2387 build_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 build_os=$*
2392 IFS=$ac_save_IFS
2393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2397 $as_echo_n "checking host system type... " >&6; }
2398 if ${ac_cv_host+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2403 else
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2410 $as_echo "$ac_cv_host" >&6; }
2411 case $ac_cv_host in
2412 *-*-*) ;;
2413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2414 esac
2415 host=$ac_cv_host
2416 ac_save_IFS=$IFS; IFS='-'
2417 set x $ac_cv_host
2418 shift
2419 host_cpu=$1
2420 host_vendor=$2
2421 shift; shift
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2424 host_os=$*
2425 IFS=$ac_save_IFS
2426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_CC+:} false; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2466 $as_echo "$CC" >&6; }
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2506 $as_echo "$ac_ct_CC" >&6; }
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2519 ac_tool_warned=yes ;;
2520 esac
2521 CC=$ac_ct_CC
2523 else
2524 CC="$ac_cv_prog_CC"
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}cc; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_CC+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_CC="${ac_tool_prefix}cc"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 CC=$ac_cv_prog_CC
2557 if test -n "$CC"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2559 $as_echo "$CC" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2568 if test -z "$CC"; then
2569 # Extract the first word of "cc", so it can be a program name with args.
2570 set dummy cc; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_CC+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579 ac_prog_rejected=no
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2588 ac_prog_rejected=yes
2589 continue
2591 ac_cv_prog_CC="cc"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2595 done
2596 done
2597 IFS=$as_save_IFS
2599 if test $ac_prog_rejected = yes; then
2600 # We found a bogon in the path, so make sure we never use it.
2601 set dummy $ac_cv_prog_CC
2602 shift
2603 if test $# != 0; then
2604 # We chose a different compiler from the bogus one.
2605 # However, it has the same basename, so the bogon will be chosen
2606 # first if we set CC to just the basename; use the full file name.
2607 shift
2608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2616 $as_echo "$CC" >&6; }
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 for ac_prog in cl.exe
2628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_CC+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658 $as_echo "$CC" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2665 test -n "$CC" && break
2666 done
2668 if test -z "$CC"; then
2669 ac_ct_CC=$CC
2670 for ac_prog in cl.exe
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$ac_ct_CC"; then
2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_ac_ct_CC="$ac_prog"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2695 IFS=$as_save_IFS
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2700 if test -n "$ac_ct_CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2702 $as_echo "$ac_ct_CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2709 test -n "$ac_ct_CC" && break
2710 done
2712 if test "x$ac_ct_CC" = x; then
2713 CC=""
2714 else
2715 case $cross_compiling:$ac_tool_warned in
2716 yes:)
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721 CC=$ac_ct_CC
2728 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2730 as_fn_error $? "no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details" "$LINENO" 5; }
2733 # Provide some information about the compiler.
2734 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2735 set X $ac_compile
2736 ac_compiler=$2
2737 for ac_option in --version -v -V -qversion; do
2738 { { ac_try="$ac_compiler $ac_option >&5"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2746 ac_status=$?
2747 if test -s conftest.err; then
2748 sed '10a\
2749 ... rest of stderr output deleted ...
2750 10q' conftest.err >conftest.er1
2751 cat conftest.er1 >&5
2753 rm -f conftest.er1 conftest.err
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2755 test $ac_status = 0; }
2756 done
2758 EXEEXT=
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2760 $as_echo_n "checking for suffix of object files... " >&6; }
2761 if ${ac_cv_objext+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.o conftest.obj
2776 if { { ac_try="$ac_compile"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 $as_echo "$ac_try_echo"; } >&5
2783 (eval "$ac_compile") 2>&5
2784 ac_status=$?
2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }; then :
2787 for ac_file in conftest.o conftest.obj conftest.*; do
2788 test -f "$ac_file" || continue;
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2792 break;;
2793 esac
2794 done
2795 else
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 as_fn_error $? "cannot compute suffix of object files: cannot compile
2802 See \`config.log' for more details" "$LINENO" 5; }
2804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2807 $as_echo "$ac_cv_objext" >&6; }
2808 OBJEXT=$ac_cv_objext
2809 ac_objext=$OBJEXT
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2811 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2812 if ${ac_cv_c_compiler_gnu+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2819 main ()
2821 #ifndef __GNUC__
2822 choke me
2823 #endif
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_compiler_gnu=yes
2831 else
2832 ac_compiler_gnu=no
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2840 if test $ac_compiler_gnu = yes; then
2841 GCC=yes
2842 else
2843 GCC=
2845 ac_test_CFLAGS=${CFLAGS+set}
2846 ac_save_CFLAGS=$CFLAGS
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2849 if ${ac_cv_prog_cc_g+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 ac_save_c_werror_flag=$ac_c_werror_flag
2853 ac_c_werror_flag=yes
2854 ac_cv_prog_cc_g=no
2855 CFLAGS="-g"
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_cv_prog_cc_g=yes
2869 else
2870 CFLAGS=""
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 if ac_fn_c_try_compile "$LINENO"; then :
2884 else
2885 ac_c_werror_flag=$ac_save_c_werror_flag
2886 CFLAGS="-g"
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2891 main ()
2895 return 0;
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_cv_prog_cc_g=yes
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_c_werror_flag=$ac_save_c_werror_flag
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2909 $as_echo "$ac_cv_prog_cc_g" >&6; }
2910 if test "$ac_test_CFLAGS" = set; then
2911 CFLAGS=$ac_save_CFLAGS
2912 elif test $ac_cv_prog_cc_g = yes; then
2913 if test "$GCC" = yes; then
2914 CFLAGS="-g -O2"
2915 else
2916 CFLAGS="-g"
2918 else
2919 if test "$GCC" = yes; then
2920 CFLAGS="-O2"
2921 else
2922 CFLAGS=
2926 ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test $host != $build; then
2933 for ac_prog in gcc cc
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_BUILD_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$BUILD_CC"; then
2943 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_BUILD_CC="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2956 done
2957 done
2958 IFS=$as_save_IFS
2962 BUILD_CC=$ac_cv_prog_BUILD_CC
2963 if test -n "$BUILD_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2965 $as_echo "$BUILD_CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$BUILD_CC" && break
2973 done
2977 # On Suns, sometimes $CPP names a directory.
2978 if test -n "$CPP" && test -d "$CPP"; then
2979 CPP=
2981 if test -z "$CPP"; then
2982 CPP="$CC -E"
2985 # We need the C++ compiler only for testing.
2986 ac_ext=cpp
2987 ac_cpp='$CXXCPP $CPPFLAGS'
2988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2991 if test -z "$CXX"; then
2992 if test -n "$CCC"; then
2993 CXX=$CCC
2994 else
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CXX+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$CXX"; then
3006 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3019 done
3020 done
3021 IFS=$as_save_IFS
3025 CXX=$ac_cv_prog_CXX
3026 if test -n "$CXX"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3028 $as_echo "$CXX" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3035 test -n "$CXX" && break
3036 done
3038 if test -z "$CXX"; then
3039 ac_ct_CXX=$CXX
3040 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$ac_ct_CXX"; then
3050 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_ac_ct_CXX="$ac_prog"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3070 if test -n "$ac_ct_CXX"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3072 $as_echo "$ac_ct_CXX" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3079 test -n "$ac_ct_CXX" && break
3080 done
3082 if test "x$ac_ct_CXX" = x; then
3083 CXX="g++"
3084 else
3085 case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091 CXX=$ac_ct_CXX
3097 # Provide some information about the compiler.
3098 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3099 set X $ac_compile
3100 ac_compiler=$2
3101 for ac_option in --version -v -V -qversion; do
3102 { { ac_try="$ac_compiler $ac_option >&5"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3110 ac_status=$?
3111 if test -s conftest.err; then
3112 sed '10a\
3113 ... rest of stderr output deleted ...
3114 10q' conftest.err >conftest.er1
3115 cat conftest.er1 >&5
3117 rm -f conftest.er1 conftest.err
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }
3120 done
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3123 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3124 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3131 main ()
3133 #ifndef __GNUC__
3134 choke me
3135 #endif
3138 return 0;
3140 _ACEOF
3141 if ac_fn_cxx_try_compile "$LINENO"; then :
3142 ac_compiler_gnu=yes
3143 else
3144 ac_compiler_gnu=no
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3151 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3153 GXX=yes
3154 else
3155 GXX=
3157 ac_test_CXXFLAGS=${CXXFLAGS+set}
3158 ac_save_CXXFLAGS=$CXXFLAGS
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3160 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3161 if ${ac_cv_prog_cxx_g+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3165 ac_cxx_werror_flag=yes
3166 ac_cv_prog_cxx_g=no
3167 CXXFLAGS="-g"
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3172 main ()
3176 return 0;
3178 _ACEOF
3179 if ac_fn_cxx_try_compile "$LINENO"; then :
3180 ac_cv_prog_cxx_g=yes
3181 else
3182 CXXFLAGS=""
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3187 main ()
3191 return 0;
3193 _ACEOF
3194 if ac_fn_cxx_try_compile "$LINENO"; then :
3196 else
3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3198 CXXFLAGS="-g"
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3203 main ()
3207 return 0;
3209 _ACEOF
3210 if ac_fn_cxx_try_compile "$LINENO"; then :
3211 ac_cv_prog_cxx_g=yes
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3221 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3222 if test "$ac_test_CXXFLAGS" = set; then
3223 CXXFLAGS=$ac_save_CXXFLAGS
3224 elif test $ac_cv_prog_cxx_g = yes; then
3225 if test "$GXX" = yes; then
3226 CXXFLAGS="-g -O2"
3227 else
3228 CXXFLAGS="-g"
3230 else
3231 if test "$GXX" = yes; then
3232 CXXFLAGS="-O2"
3233 else
3234 CXXFLAGS=
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_READELF+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$READELF"; then
3252 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3267 IFS=$as_save_IFS
3271 READELF=$ac_cv_prog_READELF
3272 if test -n "$READELF"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3274 $as_echo "$READELF" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3282 if test -z "$ac_cv_prog_READELF"; then
3283 ac_ct_READELF=$READELF
3284 # Extract the first word of "readelf", so it can be a program name with args.
3285 set dummy readelf; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$ac_ct_READELF"; then
3292 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_READELF="readelf"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3305 done
3306 done
3307 IFS=$as_save_IFS
3311 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3312 if test -n "$ac_ct_READELF"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3314 $as_echo "$ac_ct_READELF" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3320 if test "x$ac_ct_READELF" = x; then
3321 READELF="false"
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 READELF=$ac_ct_READELF
3331 else
3332 READELF="$ac_cv_prog_READELF"
3336 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3337 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3340 # This will get text that should go into config.make.
3341 config_vars=
3343 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3345 # Check whether --with-gd was given.
3346 if test "${with_gd+set}" = set; then :
3347 withval=$with_gd; case "$with_gd" in
3348 yes|''|no) ;;
3349 *) libgd_include="-I$withval/include"
3350 libgd_ldflags="-L$withval/lib" ;;
3351 esac
3356 # Check whether --with-gd-include was given.
3357 if test "${with_gd_include+set}" = set; then :
3358 withval=$with_gd_include; case "$with_gd_include" in
3359 ''|no) ;;
3360 *) libgd_include="-I$withval" ;;
3361 esac
3366 # Check whether --with-gd-lib was given.
3367 if test "${with_gd_lib+set}" = set; then :
3368 withval=$with_gd_lib; case "$with_gd_lib" in
3369 ''|no) ;;
3370 *) libgd_ldflags="-L$withval" ;;
3371 esac
3376 if test -n "$libgd_include"; then
3377 config_vars="$config_vars
3378 CFLAGS-memusagestat.c = $libgd_include"
3380 if test -n "$libgd_ldflags"; then
3381 config_vars="$config_vars
3382 libgd-LDFLAGS = $libgd_ldflags"
3386 # Check whether --with-fp was given.
3387 if test "${with_fp+set}" = set; then :
3388 withval=$with_fp; with_fp=$withval
3389 else
3390 with_fp=yes
3395 # Check whether --with-binutils was given.
3396 if test "${with_binutils+set}" = set; then :
3397 withval=$with_binutils; path_binutils=$withval
3398 else
3399 path_binutils=''
3403 # Check whether --with-selinux was given.
3404 if test "${with_selinux+set}" = set; then :
3405 withval=$with_selinux; with_selinux=$withval
3406 else
3407 with_selinux=auto
3412 # Check whether --with-headers was given.
3413 if test "${with_headers+set}" = set; then :
3414 withval=$with_headers; sysheaders=$withval
3415 else
3416 sysheaders=''
3423 # Check whether --with-default-link was given.
3424 if test "${with_default_link+set}" = set; then :
3425 withval=$with_default_link; use_default_link=$withval
3426 else
3427 use_default_link=default
3431 # Check whether --enable-sanity-checks was given.
3432 if test "${enable_sanity_checks+set}" = set; then :
3433 enableval=$enable_sanity_checks; enable_sanity=$enableval
3434 else
3435 enable_sanity=yes
3439 # Check whether --enable-shared was given.
3440 if test "${enable_shared+set}" = set; then :
3441 enableval=$enable_shared; shared=$enableval
3442 else
3443 shared=yes
3446 # Check whether --enable-profile was given.
3447 if test "${enable_profile+set}" = set; then :
3448 enableval=$enable_profile; profile=$enableval
3449 else
3450 profile=no
3454 # Check whether --enable-hardcoded-path-in-tests was given.
3455 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3456 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3457 else
3458 hardcoded_path_in_tests=no
3463 # Check whether --enable-stackguard-randomization was given.
3464 if test "${enable_stackguard_randomization+set}" = set; then :
3465 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3466 else
3467 enable_stackguard_randomize=no
3470 if test "$enable_stackguard_randomize" = yes; then
3471 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3475 # Check whether --enable-lock-elision was given.
3476 if test "${enable_lock_elision+set}" = set; then :
3477 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3478 else
3479 enable_lock_elision=no
3483 if test "$enable_lock_elision" = yes ; then
3484 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3488 # Check whether --enable-add-ons was given.
3489 if test "${enable_add_ons+set}" = set; then :
3490 enableval=$enable_add_ons;
3491 else
3492 enable_add_ons=yes
3496 # Check whether --enable-hidden-plt was given.
3497 if test "${enable_hidden_plt+set}" = set; then :
3498 enableval=$enable_hidden_plt; hidden=$enableval
3499 else
3500 hidden=yes
3503 if test "x$hidden" = xno; then
3504 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3508 # Check whether --enable-bind-now was given.
3509 if test "${enable_bind_now+set}" = set; then :
3510 enableval=$enable_bind_now; bindnow=$enableval
3511 else
3512 bindnow=no
3517 # Check whether --enable-static-nss was given.
3518 if test "${enable_static_nss+set}" = set; then :
3519 enableval=$enable_static_nss; static_nss=$enableval
3520 else
3521 static_nss=no
3524 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3525 static_nss=yes
3526 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3530 # Check whether --enable-force-install was given.
3531 if test "${enable_force_install+set}" = set; then :
3532 enableval=$enable_force_install; force_install=$enableval
3533 else
3534 force_install=yes
3539 # Check whether --enable-maintainer-mode was given.
3540 if test "${enable_maintainer_mode+set}" = set; then :
3541 enableval=$enable_maintainer_mode; maintainer=$enableval
3542 else
3543 maintainer=no
3547 # Check whether --enable-kernel was given.
3548 if test "${enable_kernel+set}" = set; then :
3549 enableval=$enable_kernel; minimum_kernel=$enableval
3552 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3553 # Better nothing than this.
3554 minimum_kernel=""
3555 else
3556 if test "$minimum_kernel" = current; then
3557 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3561 # Check whether --enable-all-warnings was given.
3562 if test "${enable_all_warnings+set}" = set; then :
3563 enableval=$enable_all_warnings; all_warnings=$enableval
3568 # Check whether --enable-multi-arch was given.
3569 if test "${enable_multi_arch+set}" = set; then :
3570 enableval=$enable_multi_arch; multi_arch=$enableval
3571 else
3572 multi_arch=default
3576 # Check whether --enable-nss-crypt was given.
3577 if test "${enable_nss_crypt+set}" = set; then :
3578 enableval=$enable_nss_crypt; nss_crypt=$enableval
3579 else
3580 nss_crypt=no
3583 if test x$nss_crypt = xyes; then
3584 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3585 if test $? -ne 0; then
3586 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3588 old_CFLAGS="$CFLAGS"
3589 CFLAGS="$CFLAGS $nss_includes"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 typedef int PRBool;
3594 #include <hasht.h>
3595 #include <nsslowhash.h>
3596 void f (void) { NSSLOW_Init (); }
3598 main ()
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 libc_cv_nss_crypt=yes
3607 else
3608 as_fn_error $? "
3609 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 old_LIBS="$LIBS"
3613 LIBS="$LIBS -lfreebl3"
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 typedef int PRBool;
3617 #include <hasht.h>
3618 #include <nsslowhash.h>
3620 main ()
3622 NSSLOW_Init();
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_link "$LINENO"; then :
3628 libc_cv_nss_crypt=yes
3629 else
3630 as_fn_error $? "
3631 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3633 rm -f core conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 CFLAGS="$old_CFLAGS"
3636 LIBS="$old_LIBS"
3637 else
3638 libc_cv_nss_crypt=no
3643 # Check whether --enable-obsolete-rpc was given.
3644 if test "${enable_obsolete_rpc+set}" = set; then :
3645 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3646 else
3647 link_obsolete_rpc=no
3652 if test "$link_obsolete_rpc" = yes; then
3653 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3657 # Check whether --enable-systemtap was given.
3658 if test "${enable_systemtap+set}" = set; then :
3659 enableval=$enable_systemtap; systemtap=$enableval
3660 else
3661 systemtap=no
3664 if test "x$systemtap" != xno; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3666 $as_echo_n "checking for systemtap static probe support... " >&6; }
3667 if ${libc_cv_sdt+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 old_CFLAGS="$CFLAGS"
3671 CFLAGS="-std=gnu99 $CFLAGS"
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <sys/sdt.h>
3675 void foo (int i, void *p)
3677 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3678 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 libc_cv_sdt=yes
3683 else
3684 libc_cv_sdt=no
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 CFLAGS="$old_CFLAGS"
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3690 $as_echo "$libc_cv_sdt" >&6; }
3691 if test $libc_cv_sdt = yes; then
3692 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3694 elif test "x$systemtap" != xauto; then
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3698 See \`config.log' for more details" "$LINENO" 5; }
3702 # Check whether --enable-build-nscd was given.
3703 if test "${enable_build_nscd+set}" = set; then :
3704 enableval=$enable_build_nscd; build_nscd=$enableval
3705 else
3706 build_nscd=default
3711 # Note the use of $use_nscd is near the bottom of the file.
3712 # Check whether --enable-nscd was given.
3713 if test "${enable_nscd+set}" = set; then :
3714 enableval=$enable_nscd; use_nscd=$enableval
3715 else
3716 use_nscd=yes
3720 # Check whether --enable-pt_chown was given.
3721 if test "${enable_pt_chown+set}" = set; then :
3722 enableval=$enable_pt_chown; build_pt_chown=$enableval
3723 else
3724 build_pt_chown=no
3728 if test "$build_pt_chown" = yes; then
3729 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3733 # We keep the original values in `$config_*' and never modify them, so we
3734 # can write them unchanged into config.make. Everything else uses
3735 # $machine, $vendor, and $os, and changes them whenever convenient.
3736 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3738 # Don't allow vendor == "unknown"
3739 test "$config_vendor" = unknown && config_vendor=
3740 config_os="`echo $config_os | sed 's/^unknown-//'`"
3742 # Some configurations imply other options.
3743 elf=yes
3745 # The configure fragment of an add-on port can modify these to supplement
3746 # or override the table in the case statement below. No fragment should
3747 # ever change the config_* variables, however.
3748 machine=$config_machine
3749 vendor=$config_vendor
3750 os=$config_os
3751 base_os=''
3753 submachine=
3755 # Check whether --with-cpu was given.
3756 if test "${with_cpu+set}" = set; then :
3757 withval=$with_cpu; case "$withval" in
3758 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3759 no) ;;
3760 *) submachine="$withval" ;;
3761 esac
3766 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3767 then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3769 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3770 for frag in $frags; do
3771 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3772 echo $ECHO_N "$name $ECHO_C" >&6
3773 . "$frag"
3774 done
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3776 $as_echo "" >&6; }
3779 # An add-on can set this when it wants to disable the sanity check below.
3780 libc_config_ok=no
3782 subdirs="$subdirs "
3785 case "$enable_add_ons" in
3786 ''|no) add_ons= ;;
3787 yes|'*')
3788 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3789 sed 's@/[^/]*$@@' | sort | uniq`
3790 add_ons_automatic=yes
3792 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3793 add_ons_automatic=no ;;
3794 esac
3796 configured_add_ons=
3797 add_ons_sfx=
3798 add_ons_pfx=
3799 if test x"$add_ons" != x; then
3800 for f in $add_ons; do
3801 # Some sanity checks
3802 case "$f" in
3803 crypt)
3804 as_fn_error $? "
3805 *** It seems that you're using an old \`crypt' add-on. crypt is now
3806 *** part of glibc and using the old add-on will not work with this
3807 *** release. Start again with fresh sources and without the old
3808 *** \`crypt' add-on." "$LINENO" 5
3810 localedata)
3811 as_fn_error $? "
3812 *** It seems that you're using an old \`localedata' add-on. localedata
3813 *** is now part of glibc and using the old add-on will not work with
3814 *** this release. Start again with fresh sources and without the old
3815 *** \`localedata' add-on." "$LINENO" 5
3817 esac
3818 done
3820 # Now source each add-on's configure fragment.
3821 # The fragments can use $srcdir/$libc_add_on to find themselves,
3822 # and test $add_ons_automatic to see if they were explicitly requested.
3823 # A fragment can clear (or even change) $libc_add_on to affect
3824 # whether it goes into the list to be actually used in the build.
3825 use_add_ons=
3826 for libc_add_on in $add_ons; do
3827 # Test whether such a directory really exists.
3828 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3829 case "$libc_add_on" in
3831 libc_add_on_srcdir=$libc_add_on
3834 test -d "$srcdir/$libc_add_on" || {
3835 if test -d "$libc_add_on"; then
3836 libc_add_on="`pwd`/$libc_add_on"
3837 else
3838 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3841 libc_add_on_srcdir=$srcdir/$libc_add_on
3843 esac
3845 libc_add_on_frag=$libc_add_on_srcdir/configure
3846 libc_add_on_canonical=
3847 libc_add_on_config_subdirs=
3848 if test -r "$libc_add_on_frag"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3850 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3851 libc_add_on_canonical=unknown
3852 libc_add_on_subdirs=
3853 . "$libc_add_on_frag"
3854 test -z "$libc_add_on" || {
3855 configured_add_ons="$configured_add_ons $libc_add_on"
3856 if test "x$libc_add_on_canonical" = xunknown; then
3857 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3859 for d in $libc_add_on_subdirs; do
3860 case "$libc_add_on" in
3861 /*) subdir_srcdir="$libc_add_on" ;;
3862 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3863 esac
3864 case "$d" in
3866 d="${libc_add_on_canonical:-$libc_add_on}"
3869 subdir_srcdir="$d"
3872 subdir_srcdir="$subdir_srcdir/$d"
3874 esac
3875 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3876 add_on_subdirs="$add_on_subdirs $d"
3877 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3878 $d-srcdir = $subdir_srcdir"
3879 done
3880 for d in $libc_add_on_config_subdirs; do
3881 case "$d" in
3882 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3883 esac
3884 if test ! -d "$libc_add_on_srcdir/$d"; then
3885 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3887 case "$libc_add_on" in
3888 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3889 esac
3890 subdirs="$subdirs $libc_add_on/$d"
3891 done
3894 if test -n "$libc_add_on"; then
3895 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3896 then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
3898 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
3899 for frag in $frags; do
3900 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3901 echo $ECHO_N "$name $ECHO_C" >&6
3902 . "$frag"
3903 done
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3905 $as_echo "" >&6; }
3907 use_add_ons="$use_add_ons $libc_add_on"
3908 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3909 test -z "$libc_add_on_canonical" ||
3910 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3912 done
3913 # Use echo to strip excess whitespace.
3914 add_ons="`echo $use_add_ons`"
3921 ### I put this here to prevent those annoying emails from people who cannot
3922 ### read and try to compile glibc on unsupported platforms. --drepper
3924 ### By using the undocumented --enable-hacker-mode option for configure
3925 ### one can skip this test to make the configuration not fail for unsupported
3926 ### platforms.
3928 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3929 case "$machine-$host_os" in
3930 *-linux* | *-gnu*)
3933 echo "*** The GNU C library is currently not available for this platform."
3934 echo "*** So far nobody cared to port it and if there is no volunteer it"
3935 echo "*** might never happen. So, if you have interest to see glibc on"
3936 echo "*** this platform visit"
3937 echo "*** http://www.gnu.org/software/libc/porting.html"
3938 echo "*** and join the group of porters"
3939 exit 1
3941 esac
3944 # Set base_machine if not set by a preconfigure fragment.
3945 test -n "$base_machine" || base_machine=$machine
3948 # For the multi-arch option we need support in the assembler & linker.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
3950 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
3951 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat > conftest.S <<EOF
3955 .type foo,%gnu_indirect_function
3956 foo:
3957 .globl _start
3958 _start:
3959 .globl __start
3960 __start:
3961 .data
3962 #ifdef _LP64
3963 .quad foo
3964 #else
3965 .long foo
3966 #endif
3968 libc_cv_ld_gnu_indirect_function=no
3969 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
3970 -nostartfiles -nostdlib \
3971 -o conftest conftest.S 1>&5 2>&5; then
3972 # Do a link to see if the backend supports IFUNC relocs.
3973 $READELF -r conftest 1>&5
3974 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
3975 libc_cv_ld_gnu_indirect_function=yes
3978 rm -f conftest*
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
3981 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
3984 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
3985 if ${libc_cv_dot_text+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 cat > conftest.s <<EOF
3989 .text
3991 libc_cv_dot_text=
3992 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
3993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; }; then
3998 libc_cv_dot_text=.text
4000 rm -f conftest*
4003 if test -z "$libc_cv_dot_text"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008 $as_echo "yes" >&6; }
4011 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
4012 if test x"$multi_arch" = xyes; then
4013 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4014 else
4015 multi_arch=no
4018 multi_arch_d=
4019 if test x"$multi_arch" != xno; then
4020 multi_arch_d=/multiarch
4023 # Compute the list of sysdep directories for this configuration.
4024 # This can take a while to compute.
4025 sysdep_dir=$srcdir/sysdeps
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4027 $as_echo_n "checking sysdep dirs... " >&6; }
4028 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4029 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4031 test "x$base_os" != x || case "$os" in
4032 gnu*)
4033 base_os=mach/hurd ;;
4034 linux*)
4035 base_os=unix/sysv ;;
4036 esac
4038 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4039 tail=$os
4040 ostry=$os
4041 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4042 ostry="$ostry /$o"
4043 tail=$o
4044 done
4045 o=`echo $tail | sed 's/[0-9]*$//'`
4046 if test $o != $tail; then
4047 ostry="$ostry /$o"
4049 # For linux-gnu, try linux-gnu, then linux.
4050 o=`echo $tail | sed 's/-.*$//'`
4051 if test $o != $tail; then
4052 ostry="$ostry /$o"
4055 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4056 base=
4057 tail=$base_os
4058 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4059 set $b
4060 base="$base /$1"
4061 tail="$2"
4062 done
4064 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4065 mach=
4066 tail=$machine${submachine:+/$submachine}
4067 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4068 set $m
4069 # Prepend the machine's FPU directory unless --without-fp.
4070 if test "$with_fp" = yes; then
4071 maybe_fpu=/fpu
4072 else
4073 maybe_fpu=/nofpu
4075 # For each machine term, try it with and then without /multiarch.
4076 for try_fpu in $maybe_fpu ''; do
4077 for try_multi in $multi_arch_d ''; do
4078 mach="$mach /$1$try_fpu$try_multi"
4079 done
4080 done
4081 tail="$2"
4082 done
4085 # Find what sysdep directories exist.
4086 sysnames_add_ons=
4087 sysnames=
4088 for b in $base ''; do
4089 for m0 in $mach ''; do
4090 for v in /$vendor ''; do
4091 test "$v" = / && continue
4092 for o in /$ostry ''; do
4093 test "$o" = / && continue
4094 for m in $mach ''; do
4095 for d in $add_ons_pfx ''; do
4096 for a in $add_ons_sfx ''; do
4097 try_suffix="$m0$b$v$o$m"
4098 if test -n "$try_suffix"; then
4099 try_srcdir="${srcdir}/"
4100 case "$d" in
4101 /*) try_srcdir= ;;
4102 esac
4103 try="${d}sysdeps$try_suffix$a"
4104 test -n "$enable_debug_configure" &&
4105 echo "$0 DEBUG: try $try" >&2
4106 if test -d "$try_srcdir$try"; then
4107 sysnames="$sysnames $try"
4108 { test -n "$o" || test -n "$b"; } && os_used=t
4109 { test -n "$m" || test -n "$m0"; } && machine_used=t
4110 case x${m0:-$m} in
4111 x*/$submachine) submachine_used=t ;;
4112 esac
4113 if test -n "$d"; then
4114 case "$sysnames_add_ons" in
4115 *" $d "*) ;;
4116 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4117 esac
4121 done
4122 done
4123 done
4124 done
4125 done
4126 done
4127 done
4129 # If the assembler supports gnu_indirect_function symbol type and the
4130 # architecture supports multi-arch, we enable multi-arch by default.
4131 case $sysnames_add_ons$sysnames in
4132 *"$multi_arch_d"*)
4135 test x"$multi_arch" = xdefault && multi_arch=no
4137 esac
4138 if test x"$multi_arch" != xno; then
4139 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4144 if test -z "$os_used" && test "$os" != none; then
4145 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4147 if test -z "$machine_used" && test "$machine" != none; then
4148 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4150 if test -z "$submachine_used" && test -n "$submachine"; then
4151 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4155 # We have now validated the configuration.
4157 # Expand the list of system names into a full list of directories
4158 # from each element's parent name and Implies file (if present).
4159 set $sysnames
4160 names=
4161 while test $# -gt 0; do
4162 name=$1
4163 shift
4165 case " $names " in *" $name "*)
4166 # Already in the list.
4167 continue
4168 esac
4170 # Report each name as we discover it, so there is no long pause in output.
4171 echo $ECHO_N "$name $ECHO_C" >&6
4173 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4175 case $name in
4176 /*) xsrcdir= ;;
4177 *) xsrcdir=$srcdir/ ;;
4178 esac
4179 test -n "$enable_debug_configure" &&
4180 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4182 for implies_file in Implies Implies-before Implies-after; do
4183 implies_type=`echo $implies_file | sed s/-/_/`
4184 eval ${implies_type}=
4185 if test -f $xsrcdir$name/$implies_file; then
4186 # Collect more names from the `Implies' file (removing comments).
4187 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4188 for x in $implied_candidate; do
4189 found=no
4190 if test -d $xsrcdir$name_base/$x; then
4191 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4192 found=yes
4194 for d in $add_ons_pfx ''; do
4195 try="${d}sysdeps/$x"
4196 case $d in
4197 /*) try_srcdir= ;;
4198 *) try_srcdir=$srcdir/ ;;
4199 esac
4200 test -n "$enable_debug_configure" &&
4201 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4202 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4203 then
4204 eval "${implies_type}=\"\$${implies_type} \$try\""
4205 found=yes
4206 case "$sysnames_add_ons" in
4207 *" $d "*) ;;
4208 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4209 esac
4211 done
4212 if test $found = no; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4214 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4216 done
4218 done
4220 # Add NAME to the list of names.
4221 names="$names $name"
4223 # Find the parent of NAME, using the empty string if it has none.
4224 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4226 test -n "$enable_debug_configure" &&
4227 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4228 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4230 # Add the names implied by NAME, and NAME's parent (if it has one), to
4231 # the list of names to be processed (the argument list). We prepend the
4232 # implied names to the list and append the parent. We want implied
4233 # directories to come before further directories inferred from the
4234 # configuration components; this ensures that for sysv4, unix/common
4235 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4236 # after sysv4).
4237 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4238 test -n "$sysnames" && set $sysnames
4239 done
4241 # Add the default directories.
4242 default_sysnames="sysdeps/generic"
4243 sysnames="$names $default_sysnames"
4245 # The other names were emitted during the scan.
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4247 $as_echo "$default_sysnames" >&6; }
4249 # Collect the list of add-ons that supply partial sysdeps trees.
4250 sysdeps_add_ons=
4251 for add_on in $add_ons; do
4252 case "$add_on" in
4253 /*) xsrcdir= ;;
4254 *) xsrcdir="$srcdir/" ;;
4255 esac
4257 test -d "$xsrcdir$add_on/sysdeps" || {
4258 case "$configured_add_ons " in
4259 *" $add_on "*) ;;
4260 *|'')
4261 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4263 esac
4264 continue
4267 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4268 case "$sysnames_add_ons" in
4269 *" $add_on/ "*) ;;
4270 *|'')
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4272 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4273 continue ;;
4274 esac
4276 found=no
4277 for d in $sysnames; do
4278 case "$d" in
4279 $add_on/sysdeps/*) ;;
4280 *) continue ;;
4281 esac
4282 (cd "$xsrcdir$d" && for f in *[!~]; do
4283 case "$f" in
4284 sys|bits)
4285 for ff in $f/*.h; do
4286 test -d "$ff" || { test -e "$ff" && exit 88; }
4287 done
4290 test -d "$f" || { test -e "$f" && exit 88; }
4292 esac
4293 done)
4294 if test $? -eq 88; then
4295 found=yes
4296 break
4298 done
4299 if test $found = no; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4301 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4303 done
4307 ### Locate tools.
4309 # Find a good install program. We prefer a C program (faster),
4310 # so one script is as good as another. But avoid the broken or
4311 # incompatible versions:
4312 # SysV /etc/install, /usr/sbin/install
4313 # SunOS /usr/etc/install
4314 # IRIX /sbin/install
4315 # AIX /bin/install
4316 # AmigaOS /C/install, which installs bootblocks on floppy discs
4317 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4318 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4319 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4320 # OS/2's system install, which has a completely different semantic
4321 # ./install, which can be erroneously created by make from ./install.sh.
4322 # Reject install programs that cannot install multiple files.
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4324 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4325 if test -z "$INSTALL"; then
4326 if ${ac_cv_path_install+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 # Account for people who put trailing slashes in PATH elements.
4335 case $as_dir/ in #((
4336 ./ | .// | /[cC]/* | \
4337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4338 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4339 /usr/ucb/* ) ;;
4341 # OSF1 and SCO ODT 3.0 have their own names for install.
4342 # Don't use installbsd from OSF since it installs stuff as root
4343 # by default.
4344 for ac_prog in ginstall scoinst install; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4347 if test $ac_prog = install &&
4348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4349 # AIX install. It has an incompatible calling convention.
4351 elif test $ac_prog = install &&
4352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4353 # program-specific install script used by HP pwplus--don't use.
4355 else
4356 rm -rf conftest.one conftest.two conftest.dir
4357 echo one > conftest.one
4358 echo two > conftest.two
4359 mkdir conftest.dir
4360 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4361 test -s conftest.one && test -s conftest.two &&
4362 test -s conftest.dir/conftest.one &&
4363 test -s conftest.dir/conftest.two
4364 then
4365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4366 break 3
4370 done
4371 done
4373 esac
4375 done
4376 IFS=$as_save_IFS
4378 rm -rf conftest.one conftest.two conftest.dir
4381 if test "${ac_cv_path_install+set}" = set; then
4382 INSTALL=$ac_cv_path_install
4383 else
4384 # As a last resort, use the slow shell script. Don't cache a
4385 # value for INSTALL within a source directory, because that will
4386 # break other packages using the cache if that directory is
4387 # removed, or if the value is a relative name.
4388 INSTALL=$ac_install_sh
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4392 $as_echo "$INSTALL" >&6; }
4394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4395 # It thinks the first close brace ends the variable substitution.
4396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4400 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4402 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4403 # The makefiles need to use a different form to find it in $srcdir.
4404 INSTALL='\$(..)./scripts/install-sh -c'
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4407 $as_echo_n "checking whether ln -s works... " >&6; }
4408 LN_S=$as_ln_s
4409 if test "$LN_S" = "ln -s"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411 $as_echo "yes" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4414 $as_echo "no, using $LN_S" >&6; }
4418 # Was a --with-binutils option given?
4419 if test -n "$path_binutils"; then
4420 # Make absolute; ensure a single trailing slash.
4421 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4422 CC="$CC -B$path_binutils"
4424 AS=`$CC -print-prog-name=as`
4425 LD=`$CC -print-prog-name=ld`
4426 AR=`$CC -print-prog-name=ar`
4428 OBJDUMP=`$CC -print-prog-name=objdump`
4430 OBJCOPY=`$CC -print-prog-name=objcopy`
4433 # Determine whether we are using GNU binutils.
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4435 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4436 if ${libc_cv_prog_as_gnu+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 # Most GNU programs take a -v and spit out some text including
4440 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4441 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4442 libc_cv_prog_as_gnu=yes
4443 else
4444 libc_cv_prog_as_gnu=no
4446 rm -fr contest*
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4449 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4450 rm -f a.out
4451 gnu_as=$libc_cv_prog_as_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4454 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4455 if ${libc_cv_prog_ld_gnu+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 # Most GNU programs take a -v and spit out some text including
4459 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4460 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4461 libc_cv_prog_ld_gnu=yes
4462 else
4463 libc_cv_prog_ld_gnu=no
4465 rm -fr contest*
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4468 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4469 gnu_ld=$libc_cv_prog_ld_gnu
4472 # Accept binutils 2.22 or newer.
4473 for ac_prog in $AS
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476 set dummy $ac_prog; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if ${ac_cv_prog_AS+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$AS"; then
4483 ac_cv_prog_AS="$AS" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_AS="$ac_prog"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4502 AS=$ac_cv_prog_AS
4503 if test -n "$AS"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4505 $as_echo "$AS" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4512 test -n "$AS" && break
4513 done
4515 if test -z "$AS"; then
4516 ac_verc_fail=yes
4517 else
4518 # Found it, now check the version.
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4520 $as_echo_n "checking version of $AS... " >&6; }
4521 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4522 case $ac_prog_version in
4523 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4524 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4525 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4526 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4528 esac
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4530 $as_echo "$ac_prog_version" >&6; }
4532 if test $ac_verc_fail = yes; then
4533 AS=: critic_missing="$critic_missing as"
4536 for ac_prog in $LD
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_LD+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$LD"; then
4546 ac_cv_prog_LD="$LD" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_LD="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 LD=$ac_cv_prog_LD
4566 if test -n "$LD"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4568 $as_echo "$LD" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$LD" && break
4576 done
4578 if test -z "$LD"; then
4579 ac_verc_fail=yes
4580 else
4581 # Found it, now check the version.
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4583 $as_echo_n "checking version of $LD... " >&6; }
4584 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4585 case $ac_prog_version in
4586 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4587 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4588 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4589 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4591 esac
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4593 $as_echo "$ac_prog_version" >&6; }
4595 if test $ac_verc_fail = yes; then
4596 LD=: critic_missing="$critic_missing ld"
4600 # These programs are version sensitive.
4602 for ac_prog in gnumake gmake make
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_MAKE+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$MAKE"; then
4612 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_MAKE="$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4627 IFS=$as_save_IFS
4631 MAKE=$ac_cv_prog_MAKE
4632 if test -n "$MAKE"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4634 $as_echo "$MAKE" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4641 test -n "$MAKE" && break
4642 done
4644 if test -z "$MAKE"; then
4645 ac_verc_fail=yes
4646 else
4647 # Found it, now check the version.
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4649 $as_echo_n "checking version of $MAKE... " >&6; }
4650 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4651 case $ac_prog_version in
4652 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4653 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4654 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4655 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4657 esac
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4659 $as_echo "$ac_prog_version" >&6; }
4661 if test $ac_verc_fail = yes; then
4662 critic_missing="$critic_missing make"
4666 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_MSGFMT+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$MSGFMT"; then
4676 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_MSGFMT="$ac_prog"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 MSGFMT=$ac_cv_prog_MSGFMT
4696 if test -n "$MSGFMT"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4698 $as_echo "$MSGFMT" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4705 test -n "$MSGFMT" && break
4706 done
4708 if test -z "$MSGFMT"; then
4709 ac_verc_fail=yes
4710 else
4711 # Found it, now check the version.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4713 $as_echo_n "checking version of $MSGFMT... " >&6; }
4714 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4715 case $ac_prog_version in
4716 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4717 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4718 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4719 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4721 esac
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4723 $as_echo "$ac_prog_version" >&6; }
4725 if test $ac_verc_fail = yes; then
4726 MSGFMT=: aux_missing="$aux_missing msgfmt"
4729 for ac_prog in makeinfo
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_MAKEINFO+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$MAKEINFO"; then
4739 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_MAKEINFO="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 MAKEINFO=$ac_cv_prog_MAKEINFO
4759 if test -n "$MAKEINFO"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4761 $as_echo "$MAKEINFO" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$MAKEINFO" && break
4769 done
4771 if test -z "$MAKEINFO"; then
4772 ac_verc_fail=yes
4773 else
4774 # Found it, now check the version.
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4776 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4777 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4778 case $ac_prog_version in
4779 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4780 4.[5-9]*|4.[1-9][0-9]*|[5-9].*)
4781 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4782 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4784 esac
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4786 $as_echo "$ac_prog_version" >&6; }
4788 if test $ac_verc_fail = yes; then
4789 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4792 for ac_prog in sed
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_SED+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$SED"; then
4802 ac_cv_prog_SED="$SED" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_SED="$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4821 SED=$ac_cv_prog_SED
4822 if test -n "$SED"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4824 $as_echo "$SED" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 test -n "$SED" && break
4832 done
4834 if test -z "$SED"; then
4835 ac_verc_fail=yes
4836 else
4837 # Found it, now check the version.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4839 $as_echo_n "checking version of $SED... " >&6; }
4840 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4841 case $ac_prog_version in
4842 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4843 3.0[2-9]*|3.[1-9]*|[4-9]*)
4844 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4845 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4847 esac
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4849 $as_echo "$ac_prog_version" >&6; }
4851 if test $ac_verc_fail = yes; then
4852 SED=: aux_missing="$aux_missing sed"
4855 for ac_prog in gawk
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_AWK+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$AWK"; then
4865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_AWK="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 AWK=$ac_cv_prog_AWK
4885 if test -n "$AWK"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4887 $as_echo "$AWK" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$AWK" && break
4895 done
4897 if test -z "$AWK"; then
4898 ac_verc_fail=yes
4899 else
4900 # Found it, now check the version.
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4902 $as_echo_n "checking version of $AWK... " >&6; }
4903 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4904 case $ac_prog_version in
4905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4906 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4910 esac
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4912 $as_echo "$ac_prog_version" >&6; }
4914 if test $ac_verc_fail = yes; then
4915 critic_missing="$critic_missing gawk"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4920 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4921 if ${libc_cv_compiler_ok+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4929 main ()
4932 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
4933 #error insufficient compiler
4934 #endif
4936 return 0;
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 libc_cv_compiler_ok=yes
4941 else
4942 libc_cv_compiler_ok=no
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4947 $as_echo "$libc_cv_compiler_ok" >&6; }
4948 if test $libc_cv_compiler_ok != yes; then :
4949 critic_missing="$critic_missing compiler"
4952 if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4954 set dummy ${ac_tool_prefix}nm; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_prog_NM+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$NM"; then
4961 ac_cv_prog_NM="$NM" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_NM="${ac_tool_prefix}nm"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 NM=$ac_cv_prog_NM
4981 if test -n "$NM"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4983 $as_echo "$NM" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4991 if test -z "$ac_cv_prog_NM"; then
4992 ac_ct_NM=$NM
4993 # Extract the first word of "nm", so it can be a program name with args.
4994 set dummy nm; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$ac_ct_NM"; then
5001 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_ac_ct_NM="nm"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5014 done
5015 done
5016 IFS=$as_save_IFS
5020 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5021 if test -n "$ac_ct_NM"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5023 $as_echo "$ac_ct_NM" >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5029 if test "x$ac_ct_NM" = x; then
5030 NM="false"
5031 else
5032 case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038 NM=$ac_ct_NM
5040 else
5041 NM="$ac_cv_prog_NM"
5045 if test "x$maintainer" = "xyes"; then
5046 for ac_prog in autoconf
5048 # Extract the first word of "$ac_prog", so it can be a program name with args.
5049 set dummy $ac_prog; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_AUTOCONF+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$AUTOCONF"; then
5056 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_AUTOCONF="$ac_prog"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5069 done
5070 done
5071 IFS=$as_save_IFS
5075 AUTOCONF=$ac_cv_prog_AUTOCONF
5076 if test -n "$AUTOCONF"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5078 $as_echo "$AUTOCONF" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5085 test -n "$AUTOCONF" && break
5086 done
5087 test -n "$AUTOCONF" || AUTOCONF="no"
5089 case "x$AUTOCONF" in
5090 xno|x|x:) AUTOCONF=no ;;
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5093 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5094 if ${libc_cv_autoconf_works+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5098 libc_cv_autoconf_works=yes
5099 else
5100 libc_cv_autoconf_works=no
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5104 $as_echo "$libc_cv_autoconf_works" >&6; }
5105 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5107 esac
5108 if test "x$AUTOCONF" = xno; then
5109 aux_missing="$aux_missing autoconf"
5111 else
5112 AUTOCONF=no
5115 test -n "$critic_missing" && as_fn_error $? "
5116 *** These critical programs are missing or too old:$critic_missing
5117 *** Check the INSTALL file for required versions." "$LINENO" 5
5119 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5120 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5121 *** some features will be disabled.
5122 *** Check the INSTALL file for required versions." >&5
5123 $as_echo "$as_me: WARNING:
5124 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5125 *** some features will be disabled.
5126 *** Check the INSTALL file for required versions." >&2;}
5128 # if using special system headers, find out the compiler's sekrit
5129 # header directory and add that to the list. NOTE: Only does the right
5130 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5131 if test -n "$sysheaders"; then
5132 SYSINCLUDES=-nostdinc
5133 for d in include include-fixed; do
5134 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5135 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5136 done
5137 SYSINCLUDES="$SYSINCLUDES \
5138 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5139 if test -n "$CXX"; then
5140 CXX_SYSINCLUDES=
5141 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5142 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5143 test "x$cxxheaders" != x &&
5144 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5145 done
5151 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5152 # since this would lead to problems installing/building glibc.
5153 # LD_LIBRARY_PATH contains the current directory if one of the following
5154 # is true:
5155 # - one of the terminals (":" and ";") is the first or last sign
5156 # - two terminals occur directly after each other
5157 # - the path contains an element with a dot in it
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5159 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5160 case ${LD_LIBRARY_PATH} in
5161 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5162 ld_library_path_setting="contains current directory"
5165 ld_library_path_setting="ok"
5167 esac
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5169 $as_echo "$ld_library_path_setting" >&6; }
5170 if test "$ld_library_path_setting" != "ok"; then
5171 as_fn_error $? "
5172 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5173 *** building glibc. Please change the environment variable
5174 *** and run configure again." "$LINENO" 5
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5178 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5179 if ${libc_cv_gcc_static_libgcc+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
5183 libc_cv_gcc_static_libgcc=
5184 else
5185 libc_cv_gcc_static_libgcc=-static-libgcc
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5189 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5192 # Extract the first word of "bash", so it can be a program name with args.
5193 set dummy bash; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_BASH_SHELL+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 case $BASH_SHELL in
5200 [\\/]* | ?:[\\/]*)
5201 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5215 done
5216 done
5217 IFS=$as_save_IFS
5219 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5221 esac
5223 BASH_SHELL=$ac_cv_path_BASH_SHELL
5224 if test -n "$BASH_SHELL"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5226 $as_echo "$BASH_SHELL" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5234 # Extract the first word of "perl", so it can be a program name with args.
5235 set dummy perl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_PERL+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 case $PERL in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5261 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5263 esac
5265 PERL=$ac_cv_path_PERL
5266 if test -n "$PERL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5268 $as_echo "$PERL" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 if test "$PERL" != no &&
5276 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5277 PERL=no
5279 # Extract the first word of "install-info", so it can be a program name with args.
5280 set dummy install-info; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 case $INSTALL_INFO in
5287 [\\/]* | ?:[\\/]*)
5288 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5293 for as_dir in $as_dummy
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5303 done
5304 done
5305 IFS=$as_save_IFS
5307 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5309 esac
5311 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5312 if test -n "$INSTALL_INFO"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5314 $as_echo "$INSTALL_INFO" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 # Extract the first word of "bison", so it can be a program name with args.
5322 set dummy bison; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_path_BISON+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 case $BISON in
5329 [\\/]* | ?:[\\/]*)
5330 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5335 for as_dir in $as_dummy
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5349 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5351 esac
5353 BISON=$ac_cv_path_BISON
5354 if test -n "$BISON"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5356 $as_echo "$BISON" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5365 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5366 if ${libc_cv_friendly_stddef+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #define __need_size_t
5372 #define __need_wchar_t
5373 #include <stddef.h>
5374 #define __need_NULL
5375 #include <stddef.h>
5377 main ()
5379 size_t size; wchar_t wchar;
5380 #ifdef offsetof
5381 #error stddef.h ignored __need_*
5382 #endif
5383 if (&size == NULL || &wchar == NULL) abort ();
5385 return 0;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 libc_cv_friendly_stddef=yes
5390 else
5391 libc_cv_friendly_stddef=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5396 $as_echo "$libc_cv_friendly_stddef" >&6; }
5397 if test $libc_cv_friendly_stddef = yes; then
5398 config_vars="$config_vars
5399 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5403 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5404 if ${libc_cv_need_minus_P+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat > conftest.S <<EOF
5408 #include "confdefs.h"
5409 /* Nothing whatsoever. */
5411 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5416 test $ac_status = 0; }; }; then
5417 libc_cv_need_minus_P=no
5418 else
5419 libc_cv_need_minus_P=yes
5421 rm -f conftest*
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5424 $as_echo "$libc_cv_need_minus_P" >&6; }
5425 if test $libc_cv_need_minus_P = yes; then
5426 config_vars="$config_vars
5427 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5431 $as_echo_n "checking for .set assembler directive... " >&6; }
5432 if ${libc_cv_asm_set_directive+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat > conftest.s <<EOF
5436 ${libc_cv_dot_text}
5437 foo:
5438 .set glibc_conftest_frobozz,foo
5439 .globl glibc_conftest_frobozz
5441 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5442 # (but it doesn't work), so we must do a linking check to be sure.
5443 cat > conftest1.c <<\EOF
5444 extern int glibc_conftest_frobozz;
5445 void _start() { glibc_conftest_frobozz = 1; }
5447 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5448 -nostartfiles -nostdlib \
5449 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5450 libc_cv_asm_set_directive=yes
5451 else
5452 libc_cv_asm_set_directive=no
5454 rm -f conftest*
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5457 $as_echo "$libc_cv_asm_set_directive" >&6; }
5458 if test $libc_cv_asm_set_directive = yes; then
5459 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5464 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5465 if ${libc_cv_asm_unique_object+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 cat > conftest.s <<EOF
5469 ${libc_cv_dot_text}
5470 _sym:
5471 .type _sym, %gnu_unique_object
5473 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5474 libc_cv_asm_unique_object=yes
5475 else
5476 libc_cv_asm_unique_object=no
5478 rm -f conftest*
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5481 $as_echo "$libc_cv_asm_unique_object" >&6; }
5482 if test $libc_cv_asm_unique_object = yes; then
5483 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5488 $as_echo_n "checking for .previous assembler directive... " >&6; }
5489 if ${libc_cv_asm_previous_directive+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat > conftest.s <<EOF
5493 .section foo_section
5494 .previous
5496 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5501 test $ac_status = 0; }; }; then
5502 libc_cv_asm_previous_directive=yes
5503 else
5504 libc_cv_asm_previous_directive=no
5506 rm -f conftest*
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5509 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5510 if test $libc_cv_asm_previous_directive = yes; then
5511 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5515 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5516 if ${libc_cv_asm_popsection_directive+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat > conftest.s <<EOF
5520 .pushsection foo_section
5521 .popsection
5523 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5528 test $ac_status = 0; }; }; then
5529 libc_cv_asm_popsection_directive=yes
5530 else
5531 libc_cv_asm_popsection_directive=no
5533 rm -f conftest*
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5536 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5537 if test $libc_cv_asm_popsection_directive = yes; then
5538 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5543 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5544 if ${libc_cv_asm_protected_directive+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat > conftest.s <<EOF
5548 .protected foo
5549 foo:
5550 .hidden bar
5551 bar:
5553 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }; }; then
5559 libc_cv_asm_protected_directive=yes
5560 else
5561 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5563 rm -f conftest*
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5566 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5568 if test $libc_cv_asm_protected_directive = yes; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5570 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5571 if ${libc_cv_visibility_attribute+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 cat > conftest.c <<EOF
5575 int foo __attribute__ ((visibility ("hidden"))) = 1;
5576 int bar __attribute__ ((visibility ("protected"))) = 1;
5578 libc_cv_visibility_attribute=no
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 '\.hidden.*foo' conftest.s >/dev/null; then
5586 if grep '\.protected.*bar' conftest.s >/dev/null; then
5587 libc_cv_visibility_attribute=yes
5591 rm -f conftest.{c,s}
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
5595 $as_echo "$libc_cv_visibility_attribute" >&6; }
5596 if test $libc_cv_visibility_attribute != yes; then
5597 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
5601 if test $libc_cv_visibility_attribute = yes; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
5603 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
5604 if ${libc_cv_broken_visibility_attribute+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat > conftest.c <<EOF
5608 int foo (int x);
5609 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5610 int bar (int x) { return x; }
5612 libc_cv_broken_visibility_attribute=yes
5613 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; }; }; then
5619 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5620 libc_cv_broken_visibility_attribute=no
5623 rm -f conftest.c conftest.s
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
5627 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
5628 if test $libc_cv_broken_visibility_attribute = yes; then
5629 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5634 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5635 if ${libc_cv_broken_alias_attribute+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat > conftest.c <<EOF
5639 extern int foo (int x) __asm ("xyzzy");
5640 int bar (int x) { return x; }
5641 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5642 extern int dfoo;
5643 extern __typeof (dfoo) dfoo __asm ("abccb");
5644 int dfoo = 1;
5646 libc_cv_broken_alias_attribute=yes
5647 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; }; }; then
5653 if grep 'xyzzy' conftest.s >/dev/null &&
5654 grep 'abccb' conftest.s >/dev/null; then
5655 libc_cv_broken_alias_attribute=no
5658 rm -f conftest.c conftest.s
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5662 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5663 if test $libc_cv_broken_alias_attribute = yes; then
5664 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5667 if test $libc_cv_visibility_attribute = yes; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5669 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5670 if ${libc_cv_have_sdata_section+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 echo "int i;" > conftest.c
5674 libc_cv_have_sdata_section=no
5675 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5676 | grep '\.sdata' >/dev/null; then
5677 libc_cv_have_sdata_section=yes
5679 rm -f conftest.c conftest.so
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5683 $as_echo "$libc_cv_have_sdata_section" >&6; }
5684 if test $libc_cv_have_sdata_section = yes; then
5685 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
5691 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
5692 if ${libc_cv_initfini_array+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat > conftest.c <<EOF
5696 int _start (void) { return 0; }
5697 int __start (void) { return 0; }
5699 int foo (void) { return 1; }
5700 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5703 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5704 conftest.c -static -nostartfiles -nostdlib
5705 1>&5'
5706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }; }; then :
5711 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
5712 libc_cv_initfini_array=yes
5713 else
5714 libc_cv_initfini_array=no
5716 else
5717 libc_cv_initfini_array=no
5719 rm -f conftest*
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
5723 $as_echo "$libc_cv_initfini_array" >&6; }
5724 if test $libc_cv_initfini_array != yes; then
5725 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5729 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5730 if ${libc_cv_ctors_header+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 libc_cv_ctors_header=yes
5734 cat > conftest.c <<EOF
5735 int _start (void) { return 0; }
5736 int __start (void) { return 0; }
5738 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5739 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5742 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5743 conftest.c -static -nostartfiles -nostdlib
5744 1>&5'
5745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; }; }; then :
5750 if $READELF -WS conftest$ac_exeext | $AWK '
5751 { gsub(/\[ */, "[") }
5752 $2 == ".ctors" || $2 == ".dtors" {
5753 size = strtonum("0x" $6)
5754 align = strtonum("0x" $NF)
5755 seen[$2] = 1
5756 stub[$2] = size == align * 2
5758 END {
5759 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5760 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5761 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5763 '; then :
5764 libc_cv_ctors_header=no
5767 else
5768 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5771 rm -f conftest*
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5775 $as_echo "$libc_cv_ctors_header" >&6; }
5776 if test $libc_cv_ctors_header = no; then
5777 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5782 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5783 if ${libc_cv_cc_with_libunwind+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5787 cat > conftest.c <<EOF
5788 int main (void) { return 0; }
5790 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5791 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5792 libc_cv_cc_with_libunwind=yes
5793 else
5794 libc_cv_cc_with_libunwind=no
5796 rm -f conftest*
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5799 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5801 if test $libc_cv_cc_with_libunwind = yes; then
5802 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5
5807 $as_echo_n "checking for linker that supports -z nodelete... " >&6; }
5808 libc_linker_feature=no
5809 if test x"$gnu_ld" = x"yes"; then
5810 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"`
5811 if test -n "$libc_linker_check"; then
5812 cat > conftest.c <<EOF
5813 int _start (void) { return 42; }
5815 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5816 -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
5817 -fPIC -shared -o conftest.so conftest.c
5818 1>&5'
5819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }; }
5824 then
5825 libc_linker_feature=yes
5827 rm -f conftest*
5830 if test $libc_linker_feature = yes; then
5831 libc_cv_z_nodelete=yes
5832 else
5833 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5836 $as_echo "$libc_linker_feature" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5
5839 $as_echo_n "checking for linker that supports -z nodlopen... " >&6; }
5840 libc_linker_feature=no
5841 if test x"$gnu_ld" = x"yes"; then
5842 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"`
5843 if test -n "$libc_linker_check"; then
5844 cat > conftest.c <<EOF
5845 int _start (void) { return 42; }
5847 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5848 -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
5849 -fPIC -shared -o conftest.so conftest.c
5850 1>&5'
5851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }; }
5856 then
5857 libc_linker_feature=yes
5859 rm -f conftest*
5862 if test $libc_linker_feature = yes; then
5863 libc_cv_z_nodlopen=yes
5864 else
5865 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5868 $as_echo "$libc_linker_feature" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5
5871 $as_echo_n "checking for linker that supports -z initfirst... " >&6; }
5872 libc_linker_feature=no
5873 if test x"$gnu_ld" = x"yes"; then
5874 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"`
5875 if test -n "$libc_linker_check"; then
5876 cat > conftest.c <<EOF
5877 int _start (void) { return 42; }
5879 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5880 -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
5881 -fPIC -shared -o conftest.so conftest.c
5882 1>&5'
5883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }; }
5888 then
5889 libc_linker_feature=yes
5891 rm -f conftest*
5894 if test $libc_linker_feature = yes; then
5895 libc_cv_z_initfirst=yes
5896 else
5897 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5900 $as_echo "$libc_linker_feature" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
5903 $as_echo_n "checking for -Bgroup option... " >&6; }
5904 if ${libc_cv_Bgroup+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 cat > conftest.c <<EOF
5908 int _start (void) { return 42; }
5910 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5911 -fPIC -shared -o conftest.so conftest.c
5912 -Wl,-Bgroup -nostdlib 1>&5'
5913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5917 test $ac_status = 0; }; }
5918 then
5919 libc_cv_Bgroup=yes
5920 else
5921 libc_cv_Bgroup=no
5923 rm -f conftest*
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
5926 $as_echo "$libc_cv_Bgroup" >&6; }
5929 ASFLAGS_config=
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5931 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5932 if ${libc_cv_as_noexecstack+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat > conftest.c <<EOF
5936 void foo (void) { }
5938 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5939 -S -o conftest.s conftest.c 1>&5'
5940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; }; } \
5945 && grep .note.GNU-stack conftest.s >/dev/null \
5946 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5947 -c -o conftest.o conftest.s 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_as_noexecstack=yes
5955 else
5956 libc_cv_as_noexecstack=no
5958 rm -f conftest*
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5961 $as_echo "$libc_cv_as_noexecstack" >&6; }
5962 if test $libc_cv_as_noexecstack = yes; then
5963 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
5968 $as_echo_n "checking for -z combreloc... " >&6; }
5969 if ${libc_cv_z_combreloc+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 cat > conftest.c <<EOF
5973 extern int bar (int);
5974 extern int mumble;
5975 int foo (void) { return bar (mumble); }
5977 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5978 -fPIC -shared -o conftest.so conftest.c
5979 -nostdlib -nostartfiles
5980 -Wl,-z,combreloc 1>&5'
5981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; }; }
5986 then
5987 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5988 libc_cv_z_combreloc=yes
5989 else
5990 libc_cv_z_combreloc=no
5992 else
5993 libc_cv_z_combreloc=no
5995 rm -f conftest*
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
5998 $as_echo "$libc_cv_z_combreloc" >&6; }
5999 if test "$libc_cv_z_combreloc" = yes; then
6000 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6006 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
6007 libc_linker_feature=no
6008 if test x"$gnu_ld" = x"yes"; then
6009 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
6010 if test -n "$libc_linker_check"; then
6011 cat > conftest.c <<EOF
6012 int _start (void) { return 42; }
6014 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6015 -Wl,-z,execstack -nostdlib -nostartfiles
6016 -fPIC -shared -o conftest.so conftest.c
6017 1>&5'
6018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022 test $ac_status = 0; }; }
6023 then
6024 libc_linker_feature=yes
6026 rm -f conftest*
6029 if test $libc_linker_feature = yes; then
6030 libc_cv_z_execstack=yes
6031 else
6032 libc_cv_z_execstack=no
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6035 $as_echo "$libc_linker_feature" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6039 $as_echo_n "checking for -fpie... " >&6; }
6040 if ${libc_cv_fpie+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; }; }; then :
6049 libc_cv_fpie=yes
6050 else
6051 libc_cv_fpie=no
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6056 $as_echo "$libc_cv_fpie" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6061 $as_echo_n "checking for --hash-style option... " >&6; }
6062 if ${libc_cv_hashstyle+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 cat > conftest.c <<EOF
6066 int _start (void) { return 42; }
6068 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6069 -fPIC -shared -o conftest.so conftest.c
6070 -Wl,--hash-style=both -nostdlib 1>&5'
6071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; }; }
6076 then
6077 libc_cv_hashstyle=yes
6078 else
6079 libc_cv_hashstyle=no
6081 rm -f conftest*
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6084 $as_echo "$libc_cv_hashstyle" >&6; }
6087 # The linker's default -shared behavior is good enough if it
6088 # does these things that our custom linker scripts ensure that
6089 # all allocated NOTE sections come first.
6090 if test "$use_default_link" = default; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6092 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6093 if ${libc_cv_use_default_link+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 libc_cv_use_default_link=no
6097 cat > conftest.s <<\EOF
6098 .section .note.a,"a",%note
6099 .balign 4
6100 .long 4,4,9
6101 .string "GNU"
6102 .string "foo"
6103 .section .note.b,"a",%note
6104 .balign 4
6105 .long 4,4,9
6106 .string "GNU"
6107 .string "bar"
6109 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; } &&
6115 ac_try=`$READELF -S conftest.so | sed -n \
6116 '${x;p;}
6117 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6122 then
6123 libc_seen_a=no libc_seen_b=no
6124 set -- $ac_try
6125 while test $# -ge 2 -a "$1" = NOTE; do
6126 case "$2" in
6127 .note.a) libc_seen_a=yes ;;
6128 .note.b) libc_seen_b=yes ;;
6129 esac
6130 shift 2
6131 done
6132 case "$libc_seen_a$libc_seen_b" in
6133 yesyes)
6134 libc_cv_use_default_link=yes
6137 echo >&5 "\
6138 $libc_seen_a$libc_seen_b from:
6139 $ac_try"
6141 esac
6143 rm -f conftest*
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6146 $as_echo "$libc_cv_use_default_link" >&6; }
6147 use_default_link=$libc_cv_use_default_link
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6151 $as_echo_n "checking linker output format... " >&6; }
6152 if ${libc_cv_output_format+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if libc_cv_output_format=`
6156 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6157 then
6159 else
6160 libc_cv_output_format=
6162 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6165 $as_echo "$libc_cv_output_format" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6169 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6170 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat > conftest.c <<EOF
6174 int foo;
6176 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6177 conftest.c 1>&5'
6178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 test $ac_status = 0; }; }
6183 then
6184 libc_cv_fno_toplevel_reorder=yes
6185 else
6186 libc_cv_fno_toplevel_reorder=no
6188 rm -f conftest*
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6191 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6192 if test $libc_cv_fno_toplevel_reorder = yes; then
6193 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6194 else
6195 fno_unit_at_a_time=-fno-unit-at-a-time
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6200 $as_echo_n "checking for -fstack-protector... " >&6; }
6201 if ${libc_cv_ssp+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; }; }; then :
6210 libc_cv_ssp=yes
6211 else
6212 libc_cv_ssp=no
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6217 $as_echo "$libc_cv_ssp" >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6221 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6222 if ${libc_cv_gnu89_inline+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat > conftest.c <<EOF
6226 int foo;
6227 #ifdef __GNUC_GNU_INLINE__
6228 main () { return 0;}
6229 #else
6230 #error
6231 #endif
6233 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6234 -o conftest.s conftest.c 1>&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; }
6240 then
6241 libc_cv_gnu89_inline=yes
6242 else
6243 libc_cv_gnu89_inline=no
6245 rm -f conftest*
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6248 $as_echo "$libc_cv_gnu89_inline" >&6; }
6249 if test $libc_cv_gnu89_inline = yes; then
6250 gnu89_inline=-fgnu89-inline
6251 else
6252 gnu89_inline=
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6257 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6258 if ${libc_cv_have_section_quotes+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat > conftest.c <<EOF
6262 static const int foo
6263 __attribute__ ((section ("bar"))) = 1;
6265 if ${CC-cc} -S conftest.c -o conftest.s; then
6266 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6267 libc_cv_have_section_quotes=yes
6268 else
6269 libc_cv_have_section_quotes=no
6271 else
6272 libc_cv_have_section_quotes=unknown
6274 rm -f conftest.{c,s}
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6278 $as_echo "$libc_cv_have_section_quotes" >&6; }
6279 if test $libc_cv_have_section_quotes = yes; then
6280 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6285 $as_echo_n "checking for assembler .weak directive... " >&6; }
6286 if ${libc_cv_asm_weak_directive+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat > conftest.s <<EOF
6290 ${libc_cv_dot_text}
6291 .globl foo
6292 foo:
6293 .weak foo
6294 .weak bar; bar = foo
6296 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }; }; then
6302 libc_cv_asm_weak_directive=yes
6303 else
6304 libc_cv_asm_weak_directive=no
6306 rm -f conftest*
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6309 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6311 if test $libc_cv_asm_weak_directive = no; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6313 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6314 if ${libc_cv_asm_weakext_directive+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat > conftest.s <<EOF
6318 ${libc_cv_dot_text}
6319 .globl foo
6320 foo:
6321 .weakext bar foo
6322 .weakext baz
6323 .globl baz
6324 baz:
6326 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; }; }; then
6332 libc_cv_asm_weakext_directive=yes
6333 else
6334 libc_cv_asm_weakext_directive=no
6336 rm -f conftest*
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6339 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6341 fi # no .weak
6343 if test $libc_cv_asm_weak_directive = yes; then
6344 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6346 elif test $libc_cv_asm_weakext_directive = yes; then
6347 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6352 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6353 if ${libc_cv_ld_no_whole_archive+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat > conftest.c <<\EOF
6357 _start () {}
6358 int __eh_pc;
6359 __throw () {}
6361 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6362 -nostdlib -nostartfiles -Wl,--no-whole-archive
6363 -o conftest conftest.c 1>&5'
6364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368 test $ac_status = 0; }; }; then
6369 libc_cv_ld_no_whole_archive=yes
6370 else
6371 libc_cv_ld_no_whole_archive=no
6373 rm -f conftest*
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6376 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6377 if test $libc_cv_ld_no_whole_archive = no; then
6378 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6382 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6383 if ${libc_cv_gcc_exceptions+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 cat > conftest.c <<\EOF
6387 _start () {}
6388 int __eh_pc;
6389 __throw () {}
6391 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6392 -nostdlib -nostartfiles -fexceptions
6393 -o conftest conftest.c 1>&5'
6394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }; }; then
6399 libc_cv_gcc_exceptions=yes
6400 else
6401 libc_cv_gcc_exceptions=no
6403 rm -f conftest*
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6406 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6407 if test $libc_cv_gcc_exceptions = yes; then
6408 exceptions=-fexceptions
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6412 $as_echo_n "checking for __builtin_memset... " >&6; }
6413 if ${libc_cv_gcc_builtin_memset+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 cat > conftest.c <<\EOF
6417 void zero (void *x)
6419 __builtin_memset (x, 0, 1000);
6422 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; }; };
6428 then
6429 libc_cv_gcc_builtin_memset=no
6430 else
6431 libc_cv_gcc_builtin_memset=yes
6433 rm -f conftest*
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6436 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6437 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6438 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6443 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6444 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat > conftest.c <<\EOF
6448 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6449 char *foo (const char *a, const char *b)
6451 return __builtin_strstr (a, b);
6454 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; };
6460 then
6461 libc_cv_gcc_builtin_redirection=yes
6462 else
6463 libc_cv_gcc_builtin_redirection=no
6465 rm -f conftest*
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6468 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6469 if test "$libc_cv_gcc_builtin_redirection" = no; then
6470 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
6474 $as_echo_n "checking for __thread... " >&6; }
6475 if ${libc_cv_gcc___thread+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 cat > conftest.c <<\EOF
6479 __thread int a = 42;
6481 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }; }; then
6487 libc_cv_gcc___thread=yes
6488 else
6489 libc_cv_gcc___thread=no
6491 rm -f conftest*
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
6494 $as_echo "$libc_cv_gcc___thread" >&6; }
6495 if test "$libc_cv_gcc___thread" = no; then
6496 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
6500 $as_echo_n "checking for tls_model attribute... " >&6; }
6501 if ${libc_cv_gcc_tls_model_attr+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 cat > conftest.c <<\EOF
6505 extern __thread int a __attribute__((tls_model ("initial-exec")));
6507 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; }; then
6513 libc_cv_gcc_tls_model_attr=yes
6514 else
6515 libc_cv_gcc_tls_model_attr=no
6517 rm -f conftest*
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
6520 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
6521 if test "$libc_cv_gcc_tls_model_attr" = no; then
6522 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6526 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6527 if ${libc_cv_cc_nofma+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 libc_cv_cc_nofma=
6531 for opt in -ffp-contract=off -mno-fused-madd; do
6532 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }; }; then :
6538 libc_cv_cc_nofma=$opt; break
6540 done
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6543 $as_echo "$libc_cv_cc_nofma" >&6; }
6546 if test -n "$submachine"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6548 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6549 if ${libc_cv_cc_submachine+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 libc_cv_cc_submachine=no
6553 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6554 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; }; then :
6561 libc_cv_cc_submachine="$opt"
6562 break
6564 done
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6567 $as_echo "$libc_cv_cc_submachine" >&6; }
6568 if test "x$libc_cv_cc_submachine" = xno; then
6569 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6575 __attribute__ ((__optimize__))" >&5
6576 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6577 __attribute__ ((__optimize__))... " >&6; }
6578 if ${libc_cv_cc_loop_to_function+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 cat > conftest.c <<EOF
6582 void
6583 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6584 foo (void) {}
6586 libc_cv_cc_loop_to_function=no
6587 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; }
6593 then
6594 libc_cv_cc_loop_to_function=yes
6596 rm -f conftest*
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6599 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6600 if test $libc_cv_cc_loop_to_function = yes; then
6601 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6607 $as_echo_n "checking for libgd... " >&6; }
6608 if test "$with_gd" != "no"; then
6609 old_CFLAGS="$CFLAGS"
6610 CFLAGS="$CFLAGS $libgd_include"
6611 old_LDFLAGS="$LDFLAGS"
6612 LDFLAGS="$LDFLAGS $libgd_ldflags"
6613 old_LIBS="$LIBS"
6614 LIBS="$LIBS -lgd -lpng -lz -lm"
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 #include <gd.h>
6619 main ()
6621 gdImagePng (0, 0)
6623 return 0;
6625 _ACEOF
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 LIBGD=yes
6628 else
6629 LIBGD=no
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633 CFLAGS="$old_CFLAGS"
6634 LDFLAGS="$old_LDFLAGS"
6635 LIBS="$old_LIBS"
6636 else
6637 LIBGD=no
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6640 $as_echo "$LIBGD" >&6; }
6643 # SELinux detection
6644 if test x$with_selinux = xno ; then
6645 have_selinux=no;
6646 else
6647 # See if we have the SELinux library
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6649 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6650 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 ac_check_lib_save_LIBS=$LIBS
6654 LIBS="-lselinux $LIBS"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 char is_selinux_enabled ();
6666 main ()
6668 return is_selinux_enabled ();
6670 return 0;
6672 _ACEOF
6673 if ac_fn_c_try_link "$LINENO"; then :
6674 ac_cv_lib_selinux_is_selinux_enabled=yes
6675 else
6676 ac_cv_lib_selinux_is_selinux_enabled=no
6678 rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_check_lib_save_LIBS
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6683 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6684 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6685 have_selinux=yes
6686 else
6687 have_selinux=no
6690 if test x$with_selinux = xyes ; then
6691 if test x$have_selinux = xno ; then
6692 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6696 # Check if we're building with SELinux support.
6697 if test "x$have_selinux" = xyes; then
6699 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6702 # See if we have the libaudit library
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6704 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6705 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 ac_check_lib_save_LIBS=$LIBS
6709 LIBS="-laudit $LIBS"
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6713 /* Override any GCC internal prototype to avoid an error.
6714 Use char because int might match the return type of a GCC
6715 builtin and then its argument prototype would still apply. */
6716 #ifdef __cplusplus
6717 extern "C"
6718 #endif
6719 char audit_log_user_avc_message ();
6721 main ()
6723 return audit_log_user_avc_message ();
6725 return 0;
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 ac_cv_lib_audit_audit_log_user_avc_message=yes
6730 else
6731 ac_cv_lib_audit_audit_log_user_avc_message=no
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 LIBS=$ac_check_lib_save_LIBS
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6738 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6739 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6740 have_libaudit=yes
6741 else
6742 have_libaudit=no
6745 if test "x$have_libaudit" = xyes; then
6747 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6752 # See if we have the libcap library
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6754 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6755 if ${ac_cv_lib_cap_cap_init+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-lcap $LIBS"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply. */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 char cap_init ();
6771 main ()
6773 return cap_init ();
6775 return 0;
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 ac_cv_lib_cap_cap_init=yes
6780 else
6781 ac_cv_lib_cap_cap_init=no
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6788 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6789 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6790 have_libcap=yes
6791 else
6792 have_libcap=no
6795 if test "x$have_libcap" = xyes; then
6797 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6805 # The cast to long int works around a bug in the HP C Compiler
6806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6808 # This bug is HP SR number 8606223364.
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
6810 $as_echo_n "checking size of long double... " >&6; }
6811 if ${ac_cv_sizeof_long_double+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
6816 else
6817 if test "$ac_cv_type_long_double" = yes; then
6818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6820 as_fn_error 77 "cannot compute sizeof (long double)
6821 See \`config.log' for more details" "$LINENO" 5; }
6822 else
6823 ac_cv_sizeof_long_double=0
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
6829 $as_echo "$ac_cv_sizeof_long_double" >&6; }
6833 cat >>confdefs.h <<_ACEOF
6834 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6835 _ACEOF
6838 sizeof_long_double=$ac_cv_sizeof_long_double
6841 CPPUNDEFS=
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6843 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6844 if ${libc_cv_predef_fortify_source+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 main ()
6854 #ifdef _FORTIFY_SOURCE
6855 # error bogon
6856 #endif
6858 return 0;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 libc_cv_predef_fortify_source=no
6863 else
6864 libc_cv_predef_fortify_source=yes
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6869 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6870 if test $libc_cv_predef_fortify_source = yes; then
6871 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
6876 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
6877 if ${libc_cv_predef_stack_protector+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 extern void foobar (char *);
6885 main ()
6887 char large_array[2048]; foobar (large_array);
6889 return 0;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6894 libc_undefs=`$NM -u conftest.o |
6895 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6896 2>&5` || {
6897 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6899 echo >&5 "libc_undefs='$libc_undefs'"
6900 # On some architectures, there are architecture-specific undefined
6901 # symbols (resolved by the linker), so filter out unknown symbols.
6902 # This will fail to produce the correct result if the compiler
6903 # defaults to -fstack-protector but this produces an undefined symbol
6904 # other than __stack_chk_fail. However, compilers like that have not
6905 # been encountered in practice.
6906 libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
6907 case "$libc_undefs" in
6908 foobar) libc_cv_predef_stack_protector=no ;;
6909 '__stack_chk_fail
6910 foobar') libc_cv_predef_stack_protector=yes ;;
6911 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
6912 esac
6913 else
6914 as_fn_error $? "test compilation failed" "$LINENO" 5
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
6920 $as_echo "$libc_cv_predef_stack_protector" >&6; }
6921 libc_extra_cflags=
6922 if test $libc_cv_predef_stack_protector = yes; then
6923 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
6925 libc_extra_cppflags=
6927 # Some linkers on some architectures support __ehdr_start but with
6928 # bugs. Make sure usage of it does not create relocations in the
6929 # output (as the linker should resolve them all for us).
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
6931 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
6932 if ${libc_cv_ehdr_start+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6936 old_CFLAGS="$CFLAGS"
6937 old_LDFLAGS="$LDFLAGS"
6938 old_LIBS="$LIBS"
6939 CFLAGS="$CFLAGS -fPIC"
6940 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
6941 LIBS=
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6945 typedef struct {
6946 char foo;
6947 long val;
6948 } Ehdr;
6949 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
6950 long ehdr (void) { return __ehdr_start.val; }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
6955 libc_cv_ehdr_start=broken
6956 else
6957 libc_cv_ehdr_start=yes
6959 else
6960 libc_cv_ehdr_start=no
6962 rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 CFLAGS="$old_CFLAGS"
6965 LDFLAGS="$old_LDFLAGS"
6966 LIBS="$old_LIBS"
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
6970 $as_echo "$libc_cv_ehdr_start" >&6; }
6971 if test "$libc_cv_ehdr_start" = yes; then
6972 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
6974 elif test "$libc_cv_ehdr_start" = broken; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
6976 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6980 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6981 if ${libc_cv_builtin_trap+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 libc_cv_builtin_trap=no
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6989 main ()
6991 __builtin_trap ()
6993 return 0;
6995 _ACEOF
6996 if ac_fn_c_try_compile "$LINENO"; then :
6998 libc_undefs=`$NM -u conftest.o |
6999 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7000 2>&5` || {
7001 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7003 echo >&5 "libc_undefs='$libc_undefs'"
7004 if test -z "$libc_undefs"; then
7005 libc_cv_builtin_trap=yes
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7011 $as_echo "$libc_cv_builtin_trap" >&6; }
7012 if test $libc_cv_builtin_trap = yes; then
7013 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7017 ### End of automated tests.
7018 ### Now run sysdeps configure fragments.
7020 # They also can set these variables.
7021 use_ldconfig=no
7022 ldd_rewrite_script=no
7023 libc_cv_sysconfdir=$sysconfdir
7024 libc_cv_localstatedir=$localstatedir
7025 libc_cv_gcc_unwind_find_fde=no
7026 libc_cv_idn=no
7028 # Iterate over all the sysdep directories we will use, running their
7029 # configure fragments.
7030 for dir in $sysnames; do
7031 case $dir in
7032 /*) dest=$dir ;;
7033 *) dest=$srcdir/$dir ;;
7034 esac
7035 if test -r $dest/configure; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7037 $as_echo "running configure fragment for $dir" >&6; }
7038 . $dest/configure
7040 done
7045 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7046 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7051 # A sysdeps configure fragment can reset this if IFUNC is not actually
7052 # usable even though the assembler knows how to generate the symbol type.
7053 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
7054 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
7058 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7059 # configure fragment can override the value to prevent this AC_DEFINE.
7061 if test "x$use_nscd" != xno; then
7062 $as_echo "#define USE_NSCD 1" >>confdefs.h
7065 if test "x$build_nscd" = xdefault; then
7066 build_nscd=$use_nscd
7069 # Test for old glibc 2.0.x headers so that they can be removed properly
7070 # Search only in includedir.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7072 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7073 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7074 then
7075 old_glibc_headers=yes
7076 else
7077 old_glibc_headers=no
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7080 $as_echo "$old_glibc_headers" >&6; }
7081 if test ${old_glibc_headers} = yes; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7083 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7085 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7097 if test x$use_ldconfig = xyes; then
7098 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7108 $as_echo_n "checking whether -fPIC is default... " >&6; }
7109 if ${libc_cv_pic_default+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 libc_cv_pic_default=yes
7113 cat > conftest.c <<EOF
7114 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7115 # error PIC is default.
7116 #endif
7118 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7119 libc_cv_pic_default=no
7121 rm -f conftest.*
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7124 $as_echo "$libc_cv_pic_default" >&6; }
7134 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7135 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7139 ac_config_files="$ac_config_files config.make Makefile"
7141 ac_config_commands="$ac_config_commands default"
7143 cat >confcache <<\_ACEOF
7144 # This file is a shell script that caches the results of configure
7145 # tests run on this system so they can be shared between configure
7146 # scripts and configure runs, see configure's option --config-cache.
7147 # It is not useful on other systems. If it contains results you don't
7148 # want to keep, you may remove or edit it.
7150 # config.status only pays attention to the cache file if you give it
7151 # the --recheck option to rerun configure.
7153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7155 # following values.
7157 _ACEOF
7159 # The following way of writing the cache mishandles newlines in values,
7160 # but we know of no workaround that is simple, portable, and efficient.
7161 # So, we kill variables containing newlines.
7162 # Ultrix sh set writes to stderr and can't be redirected directly,
7163 # and sets the high bit in the cache file unless we assign to the vars.
7165 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7166 eval ac_val=\$$ac_var
7167 case $ac_val in #(
7168 *${as_nl}*)
7169 case $ac_var in #(
7170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7172 esac
7173 case $ac_var in #(
7174 _ | IFS | as_nl) ;; #(
7175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7176 *) { eval $ac_var=; unset $ac_var;} ;;
7177 esac ;;
7178 esac
7179 done
7181 (set) 2>&1 |
7182 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7183 *${as_nl}ac_space=\ *)
7184 # `set' does not quote correctly, so add quotes: double-quote
7185 # substitution turns \\\\ into \\, and sed turns \\ into \.
7186 sed -n \
7187 "s/'/'\\\\''/g;
7188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7189 ;; #(
7191 # `set' quotes correctly as required by POSIX, so do not add quotes.
7192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7194 esac |
7195 sort
7197 sed '
7198 /^ac_cv_env_/b end
7199 t clear
7200 :clear
7201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7202 t end
7203 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7204 :end' >>confcache
7205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7206 if test -w "$cache_file"; then
7207 if test "x$cache_file" != "x/dev/null"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7209 $as_echo "$as_me: updating cache $cache_file" >&6;}
7210 if test ! -f "$cache_file" || test -h "$cache_file"; then
7211 cat confcache >"$cache_file"
7212 else
7213 case $cache_file in #(
7214 */* | ?:*)
7215 mv -f confcache "$cache_file"$$ &&
7216 mv -f "$cache_file"$$ "$cache_file" ;; #(
7218 mv -f confcache "$cache_file" ;;
7219 esac
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7227 rm -f confcache
7229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7230 # Let make expand exec_prefix.
7231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7233 DEFS=-DHAVE_CONFIG_H
7235 ac_libobjs=
7236 ac_ltlibobjs=
7238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7239 # 1. Remove the extension, and $U if already installed.
7240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7241 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7243 # will be set to the directory where LIBOBJS objects are built.
7244 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7245 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7246 done
7247 LIBOBJS=$ac_libobjs
7249 LTLIBOBJS=$ac_ltlibobjs
7253 : "${CONFIG_STATUS=./config.status}"
7254 ac_write_fail=0
7255 ac_clean_files_save=$ac_clean_files
7256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7258 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7259 as_write_fail=0
7260 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7261 #! $SHELL
7262 # Generated by $as_me.
7263 # Run this file to recreate the current configuration.
7264 # Compiler output produced by configure, useful for debugging
7265 # configure, is in config.log if it exists.
7267 debug=false
7268 ac_cs_recheck=false
7269 ac_cs_silent=false
7271 SHELL=\${CONFIG_SHELL-$SHELL}
7272 export SHELL
7273 _ASEOF
7274 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7275 ## -------------------- ##
7276 ## M4sh Initialization. ##
7277 ## -------------------- ##
7279 # Be more Bourne compatible
7280 DUALCASE=1; export DUALCASE # for MKS sh
7281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7282 emulate sh
7283 NULLCMD=:
7284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7285 # is contrary to our usage. Disable this feature.
7286 alias -g '${1+"$@"}'='"$@"'
7287 setopt NO_GLOB_SUBST
7288 else
7289 case `(set -o) 2>/dev/null` in #(
7290 *posix*) :
7291 set -o posix ;; #(
7292 *) :
7294 esac
7298 as_nl='
7300 export as_nl
7301 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7302 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7305 # Prefer a ksh shell builtin over an external printf program on Solaris,
7306 # but without wasting forks for bash or zsh.
7307 if test -z "$BASH_VERSION$ZSH_VERSION" \
7308 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7309 as_echo='print -r --'
7310 as_echo_n='print -rn --'
7311 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7312 as_echo='printf %s\n'
7313 as_echo_n='printf %s'
7314 else
7315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7317 as_echo_n='/usr/ucb/echo -n'
7318 else
7319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7320 as_echo_n_body='eval
7321 arg=$1;
7322 case $arg in #(
7323 *"$as_nl"*)
7324 expr "X$arg" : "X\\(.*\\)$as_nl";
7325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7326 esac;
7327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7329 export as_echo_n_body
7330 as_echo_n='sh -c $as_echo_n_body as_echo'
7332 export as_echo_body
7333 as_echo='sh -c $as_echo_body as_echo'
7336 # The user is always right.
7337 if test "${PATH_SEPARATOR+set}" != set; then
7338 PATH_SEPARATOR=:
7339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7341 PATH_SEPARATOR=';'
7346 # IFS
7347 # We need space, tab and new line, in precisely that order. Quoting is
7348 # there to prevent editors from complaining about space-tab.
7349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7350 # splitting by setting IFS to empty value.)
7351 IFS=" "" $as_nl"
7353 # Find who we are. Look in the path if we contain no directory separator.
7354 as_myself=
7355 case $0 in #((
7356 *[\\/]* ) as_myself=$0 ;;
7357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7363 done
7364 IFS=$as_save_IFS
7367 esac
7368 # We did not find ourselves, most probably we were run as `sh COMMAND'
7369 # in which case we are not to be found in the path.
7370 if test "x$as_myself" = x; then
7371 as_myself=$0
7373 if test ! -f "$as_myself"; then
7374 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7375 exit 1
7378 # Unset variables that we do not need and which cause bugs (e.g. in
7379 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7380 # suppresses any "Segmentation fault" message there. '((' could
7381 # trigger a bug in pdksh 5.2.14.
7382 for as_var in BASH_ENV ENV MAIL MAILPATH
7383 do eval test x\${$as_var+set} = xset \
7384 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7385 done
7386 PS1='$ '
7387 PS2='> '
7388 PS4='+ '
7390 # NLS nuisances.
7391 LC_ALL=C
7392 export LC_ALL
7393 LANGUAGE=C
7394 export LANGUAGE
7396 # CDPATH.
7397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7400 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7401 # ----------------------------------------
7402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7404 # script with STATUS, using 1 if that was 0.
7405 as_fn_error ()
7407 as_status=$1; test $as_status -eq 0 && as_status=1
7408 if test "$4"; then
7409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7410 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7412 $as_echo "$as_me: error: $2" >&2
7413 as_fn_exit $as_status
7414 } # as_fn_error
7417 # as_fn_set_status STATUS
7418 # -----------------------
7419 # Set $? to STATUS, without forking.
7420 as_fn_set_status ()
7422 return $1
7423 } # as_fn_set_status
7425 # as_fn_exit STATUS
7426 # -----------------
7427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7428 as_fn_exit ()
7430 set +e
7431 as_fn_set_status $1
7432 exit $1
7433 } # as_fn_exit
7435 # as_fn_unset VAR
7436 # ---------------
7437 # Portably unset VAR.
7438 as_fn_unset ()
7440 { eval $1=; unset $1;}
7442 as_unset=as_fn_unset
7443 # as_fn_append VAR VALUE
7444 # ----------------------
7445 # Append the text in VALUE to the end of the definition contained in VAR. Take
7446 # advantage of any shell optimizations that allow amortized linear growth over
7447 # repeated appends, instead of the typical quadratic growth present in naive
7448 # implementations.
7449 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7450 eval 'as_fn_append ()
7452 eval $1+=\$2
7454 else
7455 as_fn_append ()
7457 eval $1=\$$1\$2
7459 fi # as_fn_append
7461 # as_fn_arith ARG...
7462 # ------------------
7463 # Perform arithmetic evaluation on the ARGs, and store the result in the
7464 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7465 # must be portable across $(()) and expr.
7466 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7467 eval 'as_fn_arith ()
7469 as_val=$(( $* ))
7471 else
7472 as_fn_arith ()
7474 as_val=`expr "$@" || test $? -eq 1`
7476 fi # as_fn_arith
7479 if expr a : '\(a\)' >/dev/null 2>&1 &&
7480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7481 as_expr=expr
7482 else
7483 as_expr=false
7486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7487 as_basename=basename
7488 else
7489 as_basename=false
7492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7493 as_dirname=dirname
7494 else
7495 as_dirname=false
7498 as_me=`$as_basename -- "$0" ||
7499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7500 X"$0" : 'X\(//\)$' \| \
7501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7502 $as_echo X/"$0" |
7503 sed '/^.*\/\([^/][^/]*\)\/*$/{
7504 s//\1/
7507 /^X\/\(\/\/\)$/{
7508 s//\1/
7511 /^X\/\(\/\).*/{
7512 s//\1/
7515 s/.*/./; q'`
7517 # Avoid depending upon Character Ranges.
7518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7521 as_cr_digits='0123456789'
7522 as_cr_alnum=$as_cr_Letters$as_cr_digits
7524 ECHO_C= ECHO_N= ECHO_T=
7525 case `echo -n x` in #(((((
7526 -n*)
7527 case `echo 'xy\c'` in
7528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7529 xy) ECHO_C='\c';;
7530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7531 ECHO_T=' ';;
7532 esac;;
7534 ECHO_N='-n';;
7535 esac
7537 rm -f conf$$ conf$$.exe conf$$.file
7538 if test -d conf$$.dir; then
7539 rm -f conf$$.dir/conf$$.file
7540 else
7541 rm -f conf$$.dir
7542 mkdir conf$$.dir 2>/dev/null
7544 if (echo >conf$$.file) 2>/dev/null; then
7545 if ln -s conf$$.file conf$$ 2>/dev/null; then
7546 as_ln_s='ln -s'
7547 # ... but there are two gotchas:
7548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7550 # In both cases, we have to default to `cp -pR'.
7551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7552 as_ln_s='cp -pR'
7553 elif ln conf$$.file conf$$ 2>/dev/null; then
7554 as_ln_s=ln
7555 else
7556 as_ln_s='cp -pR'
7558 else
7559 as_ln_s='cp -pR'
7561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7562 rmdir conf$$.dir 2>/dev/null
7565 # as_fn_mkdir_p
7566 # -------------
7567 # Create "$as_dir" as a directory, including parents if necessary.
7568 as_fn_mkdir_p ()
7571 case $as_dir in #(
7572 -*) as_dir=./$as_dir;;
7573 esac
7574 test -d "$as_dir" || eval $as_mkdir_p || {
7575 as_dirs=
7576 while :; do
7577 case $as_dir in #(
7578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7579 *) as_qdir=$as_dir;;
7580 esac
7581 as_dirs="'$as_qdir' $as_dirs"
7582 as_dir=`$as_dirname -- "$as_dir" ||
7583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7584 X"$as_dir" : 'X\(//\)[^/]' \| \
7585 X"$as_dir" : 'X\(//\)$' \| \
7586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7587 $as_echo X"$as_dir" |
7588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7589 s//\1/
7592 /^X\(\/\/\)[^/].*/{
7593 s//\1/
7596 /^X\(\/\/\)$/{
7597 s//\1/
7600 /^X\(\/\).*/{
7601 s//\1/
7604 s/.*/./; q'`
7605 test -d "$as_dir" && break
7606 done
7607 test -z "$as_dirs" || eval "mkdir $as_dirs"
7608 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7611 } # as_fn_mkdir_p
7612 if mkdir -p . 2>/dev/null; then
7613 as_mkdir_p='mkdir -p "$as_dir"'
7614 else
7615 test -d ./-p && rmdir ./-p
7616 as_mkdir_p=false
7620 # as_fn_executable_p FILE
7621 # -----------------------
7622 # Test if FILE is an executable regular file.
7623 as_fn_executable_p ()
7625 test -f "$1" && test -x "$1"
7626 } # as_fn_executable_p
7627 as_test_x='test -x'
7628 as_executable_p=as_fn_executable_p
7630 # Sed expression to map a string onto a valid CPP name.
7631 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7633 # Sed expression to map a string onto a valid variable name.
7634 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7637 exec 6>&1
7638 ## ----------------------------------- ##
7639 ## Main body of $CONFIG_STATUS script. ##
7640 ## ----------------------------------- ##
7641 _ASEOF
7642 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7645 # Save the log message, to keep $0 and so on meaningful, and to
7646 # report actual input values of CONFIG_FILES etc. instead of their
7647 # values after options handling.
7648 ac_log="
7649 This file was extended by GNU C Library $as_me (see version.h), which was
7650 generated by GNU Autoconf 2.69. Invocation command line was
7652 CONFIG_FILES = $CONFIG_FILES
7653 CONFIG_HEADERS = $CONFIG_HEADERS
7654 CONFIG_LINKS = $CONFIG_LINKS
7655 CONFIG_COMMANDS = $CONFIG_COMMANDS
7656 $ $0 $@
7658 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7661 _ACEOF
7663 case $ac_config_files in *"
7664 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7665 esac
7667 case $ac_config_headers in *"
7668 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7669 esac
7672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7673 # Files that config.status was made for.
7674 config_files="$ac_config_files"
7675 config_headers="$ac_config_headers"
7676 config_commands="$ac_config_commands"
7678 _ACEOF
7680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7681 ac_cs_usage="\
7682 \`$as_me' instantiates files and other configuration actions
7683 from templates according to the current configuration. Unless the files
7684 and actions are specified as TAGs, all are instantiated by default.
7686 Usage: $0 [OPTION]... [TAG]...
7688 -h, --help print this help, then exit
7689 -V, --version print version number and configuration settings, then exit
7690 --config print configuration, then exit
7691 -q, --quiet, --silent
7692 do not print progress messages
7693 -d, --debug don't remove temporary files
7694 --recheck update $as_me by reconfiguring in the same conditions
7695 --file=FILE[:TEMPLATE]
7696 instantiate the configuration file FILE
7697 --header=FILE[:TEMPLATE]
7698 instantiate the configuration header FILE
7700 Configuration files:
7701 $config_files
7703 Configuration headers:
7704 $config_headers
7706 Configuration commands:
7707 $config_commands
7709 Report bugs to <http://sourceware.org/bugzilla/>.
7710 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7711 General help using GNU software: <http://www.gnu.org/gethelp/>."
7713 _ACEOF
7714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7715 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7716 ac_cs_version="\\
7717 GNU C Library config.status (see version.h)
7718 configured by $0, generated by GNU Autoconf 2.69,
7719 with options \\"\$ac_cs_config\\"
7721 Copyright (C) 2012 Free Software Foundation, Inc.
7722 This config.status script is free software; the Free Software Foundation
7723 gives unlimited permission to copy, distribute and modify it."
7725 ac_pwd='$ac_pwd'
7726 srcdir='$srcdir'
7727 INSTALL='$INSTALL'
7728 test -n "\$AWK" || AWK=awk
7729 _ACEOF
7731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7732 # The default lists apply if the user does not specify any file.
7733 ac_need_defaults=:
7734 while test $# != 0
7736 case $1 in
7737 --*=?*)
7738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7740 ac_shift=:
7742 --*=)
7743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7744 ac_optarg=
7745 ac_shift=:
7748 ac_option=$1
7749 ac_optarg=$2
7750 ac_shift=shift
7752 esac
7754 case $ac_option in
7755 # Handling of the options.
7756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7757 ac_cs_recheck=: ;;
7758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7759 $as_echo "$ac_cs_version"; exit ;;
7760 --config | --confi | --conf | --con | --co | --c )
7761 $as_echo "$ac_cs_config"; exit ;;
7762 --debug | --debu | --deb | --de | --d | -d )
7763 debug=: ;;
7764 --file | --fil | --fi | --f )
7765 $ac_shift
7766 case $ac_optarg in
7767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7768 '') as_fn_error $? "missing file argument" ;;
7769 esac
7770 as_fn_append CONFIG_FILES " '$ac_optarg'"
7771 ac_need_defaults=false;;
7772 --header | --heade | --head | --hea )
7773 $ac_shift
7774 case $ac_optarg in
7775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7776 esac
7777 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7778 ac_need_defaults=false;;
7779 --he | --h)
7780 # Conflict between --help and --header
7781 as_fn_error $? "ambiguous option: \`$1'
7782 Try \`$0 --help' for more information.";;
7783 --help | --hel | -h )
7784 $as_echo "$ac_cs_usage"; exit ;;
7785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7787 ac_cs_silent=: ;;
7789 # This is an error.
7790 -*) as_fn_error $? "unrecognized option: \`$1'
7791 Try \`$0 --help' for more information." ;;
7793 *) as_fn_append ac_config_targets " $1"
7794 ac_need_defaults=false ;;
7796 esac
7797 shift
7798 done
7800 ac_configure_extra_args=
7802 if $ac_cs_silent; then
7803 exec 6>/dev/null
7804 ac_configure_extra_args="$ac_configure_extra_args --silent"
7807 _ACEOF
7808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7809 if \$ac_cs_recheck; then
7810 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7811 shift
7812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7813 CONFIG_SHELL='$SHELL'
7814 export CONFIG_SHELL
7815 exec "\$@"
7818 _ACEOF
7819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7820 exec 5>>config.log
7822 echo
7823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7824 ## Running $as_me. ##
7825 _ASBOX
7826 $as_echo "$ac_log"
7827 } >&5
7829 _ACEOF
7830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7832 # INIT-COMMANDS
7834 config_vars='$config_vars'
7836 _ACEOF
7838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7840 # Handling of arguments.
7841 for ac_config_target in $ac_config_targets
7843 case $ac_config_target in
7844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7845 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7847 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7849 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7850 esac
7851 done
7854 # If the user did not use the arguments to specify the items to instantiate,
7855 # then the envvar interface is used. Set only those that are not.
7856 # We use the long form for the default assignment because of an extremely
7857 # bizarre bug on SunOS 4.1.3.
7858 if $ac_need_defaults; then
7859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7864 # Have a temporary directory for convenience. Make it in the build tree
7865 # simply because there is no reason against having it here, and in addition,
7866 # creating and moving files from /tmp can sometimes cause problems.
7867 # Hook for its removal unless debugging.
7868 # Note that there is a small window in which the directory will not be cleaned:
7869 # after its creation but before its name has been assigned to `$tmp'.
7870 $debug ||
7872 tmp= ac_tmp=
7873 trap 'exit_status=$?
7874 : "${ac_tmp:=$tmp}"
7875 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7877 trap 'as_fn_exit 1' 1 2 13 15
7879 # Create a (secure) tmp directory for tmp files.
7882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7883 test -d "$tmp"
7884 } ||
7886 tmp=./conf$$-$RANDOM
7887 (umask 077 && mkdir "$tmp")
7888 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7889 ac_tmp=$tmp
7891 # Set up the scripts for CONFIG_FILES section.
7892 # No need to generate them if there are no CONFIG_FILES.
7893 # This happens for instance with `./config.status config.h'.
7894 if test -n "$CONFIG_FILES"; then
7897 ac_cr=`echo X | tr X '\015'`
7898 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7899 # But we know of no other shell where ac_cr would be empty at this
7900 # point, so we can use a bashism as a fallback.
7901 if test "x$ac_cr" = x; then
7902 eval ac_cr=\$\'\\r\'
7904 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7905 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7906 ac_cs_awk_cr='\\r'
7907 else
7908 ac_cs_awk_cr=$ac_cr
7911 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7912 _ACEOF
7916 echo "cat >conf$$subs.awk <<_ACEOF" &&
7917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7918 echo "_ACEOF"
7919 } >conf$$subs.sh ||
7920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7922 ac_delim='%!_!# '
7923 for ac_last_try in false false false false false :; do
7924 . ./conf$$subs.sh ||
7925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7928 if test $ac_delim_n = $ac_delim_num; then
7929 break
7930 elif $ac_last_try; then
7931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7932 else
7933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7935 done
7936 rm -f conf$$subs.sh
7938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7939 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7940 _ACEOF
7941 sed -n '
7943 s/^/S["/; s/!.*/"]=/
7946 s/^[^!]*!//
7947 :repl
7948 t repl
7949 s/'"$ac_delim"'$//
7950 t delim
7953 s/\(.\{148\}\)..*/\1/
7954 t more1
7955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7958 b repl
7959 :more1
7960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7963 s/.\{148\}//
7964 t nl
7965 :delim
7967 s/\(.\{148\}\)..*/\1/
7968 t more2
7969 s/["\\]/\\&/g; s/^/"/; s/$/"/
7972 :more2
7973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7976 s/.\{148\}//
7977 t delim
7978 ' <conf$$subs.awk | sed '
7979 /^[^""]/{
7981 s/\n//
7983 ' >>$CONFIG_STATUS || ac_write_fail=1
7984 rm -f conf$$subs.awk
7985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7986 _ACAWK
7987 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7988 for (key in S) S_is_set[key] = 1
7989 FS = "\a"
7993 line = $ 0
7994 nfields = split(line, field, "@")
7995 substed = 0
7996 len = length(field[1])
7997 for (i = 2; i < nfields; i++) {
7998 key = field[i]
7999 keylen = length(key)
8000 if (S_is_set[key]) {
8001 value = S[key]
8002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8003 len += length(value) + length(field[++i])
8004 substed = 1
8005 } else
8006 len += 1 + keylen
8009 print line
8012 _ACAWK
8013 _ACEOF
8014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8015 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8016 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8017 else
8019 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8020 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8021 _ACEOF
8023 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8024 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8025 # trailing colons and then remove the whole line if VPATH becomes empty
8026 # (actually we leave an empty line to preserve line numbers).
8027 if test "x$srcdir" = x.; then
8028 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8030 s///
8031 s/^/:/
8032 s/[ ]*$/:/
8033 s/:\$(srcdir):/:/g
8034 s/:\${srcdir}:/:/g
8035 s/:@srcdir@:/:/g
8036 s/^:*//
8037 s/:*$//
8039 s/\(=[ ]*\).*/\1/
8041 s/\n//
8042 s/^[^=]*=[ ]*$//
8046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8047 fi # test -n "$CONFIG_FILES"
8049 # Set up the scripts for CONFIG_HEADERS section.
8050 # No need to generate them if there are no CONFIG_HEADERS.
8051 # This happens for instance with `./config.status Makefile'.
8052 if test -n "$CONFIG_HEADERS"; then
8053 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8054 BEGIN {
8055 _ACEOF
8057 # Transform confdefs.h into an awk script `defines.awk', embedded as
8058 # here-document in config.status, that substitutes the proper values into
8059 # config.h.in to produce config.h.
8061 # Create a delimiter string that does not exist in confdefs.h, to ease
8062 # handling of long lines.
8063 ac_delim='%!_!# '
8064 for ac_last_try in false false :; do
8065 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8066 if test -z "$ac_tt"; then
8067 break
8068 elif $ac_last_try; then
8069 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8070 else
8071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8073 done
8075 # For the awk script, D is an array of macro values keyed by name,
8076 # likewise P contains macro parameters if any. Preserve backslash
8077 # newline sequences.
8079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8080 sed -n '
8081 s/.\{148\}/&'"$ac_delim"'/g
8082 t rset
8083 :rset
8084 s/^[ ]*#[ ]*define[ ][ ]*/ /
8085 t def
8087 :def
8088 s/\\$//
8089 t bsnl
8090 s/["\\]/\\&/g
8091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8092 D["\1"]=" \3"/p
8093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8095 :bsnl
8096 s/["\\]/\\&/g
8097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8098 D["\1"]=" \3\\\\\\n"\\/p
8099 t cont
8100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8101 t cont
8103 :cont
8105 s/.\{148\}/&'"$ac_delim"'/g
8106 t clear
8107 :clear
8108 s/\\$//
8109 t bsnlc
8110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8112 :bsnlc
8113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8114 b cont
8115 ' <confdefs.h | sed '
8116 s/'"$ac_delim"'/"\\\
8117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8120 for (key in D) D_is_set[key] = 1
8121 FS = "\a"
8123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8124 line = \$ 0
8125 split(line, arg, " ")
8126 if (arg[1] == "#") {
8127 defundef = arg[2]
8128 mac1 = arg[3]
8129 } else {
8130 defundef = substr(arg[1], 2)
8131 mac1 = arg[2]
8133 split(mac1, mac2, "(") #)
8134 macro = mac2[1]
8135 prefix = substr(line, 1, index(line, defundef) - 1)
8136 if (D_is_set[macro]) {
8137 # Preserve the white space surrounding the "#".
8138 print prefix "define", macro P[macro] D[macro]
8139 next
8140 } else {
8141 # Replace #undef with comments. This is necessary, for example,
8142 # in the case of _POSIX_SOURCE, which is predefined and required
8143 # on some systems where configure will not decide to define it.
8144 if (defundef == "undef") {
8145 print "/*", prefix defundef, macro, "*/"
8146 next
8150 { print }
8151 _ACAWK
8152 _ACEOF
8153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8154 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8155 fi # test -n "$CONFIG_HEADERS"
8158 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8159 shift
8160 for ac_tag
8162 case $ac_tag in
8163 :[FHLC]) ac_mode=$ac_tag; continue;;
8164 esac
8165 case $ac_mode$ac_tag in
8166 :[FHL]*:*);;
8167 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8168 :[FH]-) ac_tag=-:-;;
8169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8170 esac
8171 ac_save_IFS=$IFS
8172 IFS=:
8173 set x $ac_tag
8174 IFS=$ac_save_IFS
8175 shift
8176 ac_file=$1
8177 shift
8179 case $ac_mode in
8180 :L) ac_source=$1;;
8181 :[FH])
8182 ac_file_inputs=
8183 for ac_f
8185 case $ac_f in
8186 -) ac_f="$ac_tmp/stdin";;
8187 *) # Look for the file first in the build tree, then in the source tree
8188 # (if the path is not absolute). The absolute path cannot be DOS-style,
8189 # because $ac_f cannot contain `:'.
8190 test -f "$ac_f" ||
8191 case $ac_f in
8192 [\\/$]*) false;;
8193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8194 esac ||
8195 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8196 esac
8197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8198 as_fn_append ac_file_inputs " '$ac_f'"
8199 done
8201 # Let's still pretend it is `configure' which instantiates (i.e., don't
8202 # use $as_me), people would be surprised to read:
8203 # /* config.h. Generated by config.status. */
8204 configure_input='Generated from '`
8205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8206 `' by configure.'
8207 if test x"$ac_file" != x-; then
8208 configure_input="$ac_file. $configure_input"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8210 $as_echo "$as_me: creating $ac_file" >&6;}
8212 # Neutralize special characters interpreted by sed in replacement strings.
8213 case $configure_input in #(
8214 *\&* | *\|* | *\\* )
8215 ac_sed_conf_input=`$as_echo "$configure_input" |
8216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8217 *) ac_sed_conf_input=$configure_input;;
8218 esac
8220 case $ac_tag in
8221 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8223 esac
8225 esac
8227 ac_dir=`$as_dirname -- "$ac_file" ||
8228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8229 X"$ac_file" : 'X\(//\)[^/]' \| \
8230 X"$ac_file" : 'X\(//\)$' \| \
8231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8232 $as_echo X"$ac_file" |
8233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8234 s//\1/
8237 /^X\(\/\/\)[^/].*/{
8238 s//\1/
8241 /^X\(\/\/\)$/{
8242 s//\1/
8245 /^X\(\/\).*/{
8246 s//\1/
8249 s/.*/./; q'`
8250 as_dir="$ac_dir"; as_fn_mkdir_p
8251 ac_builddir=.
8253 case "$ac_dir" in
8254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8257 # A ".." for each directory in $ac_dir_suffix.
8258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8259 case $ac_top_builddir_sub in
8260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8262 esac ;;
8263 esac
8264 ac_abs_top_builddir=$ac_pwd
8265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8266 # for backward compatibility:
8267 ac_top_builddir=$ac_top_build_prefix
8269 case $srcdir in
8270 .) # We are building in place.
8271 ac_srcdir=.
8272 ac_top_srcdir=$ac_top_builddir_sub
8273 ac_abs_top_srcdir=$ac_pwd ;;
8274 [\\/]* | ?:[\\/]* ) # Absolute name.
8275 ac_srcdir=$srcdir$ac_dir_suffix;
8276 ac_top_srcdir=$srcdir
8277 ac_abs_top_srcdir=$srcdir ;;
8278 *) # Relative name.
8279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8280 ac_top_srcdir=$ac_top_build_prefix$srcdir
8281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8282 esac
8283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8286 case $ac_mode in
8289 # CONFIG_FILE
8292 case $INSTALL in
8293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8295 esac
8296 _ACEOF
8298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8299 # If the template does not know about datarootdir, expand it.
8300 # FIXME: This hack should be removed a few years after 2.60.
8301 ac_datarootdir_hack=; ac_datarootdir_seen=
8302 ac_sed_dataroot='
8303 /datarootdir/ {
8307 /@datadir@/p
8308 /@docdir@/p
8309 /@infodir@/p
8310 /@localedir@/p
8311 /@mandir@/p'
8312 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8313 *datarootdir*) ac_datarootdir_seen=yes;;
8314 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8316 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8317 _ACEOF
8318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8319 ac_datarootdir_hack='
8320 s&@datadir@&$datadir&g
8321 s&@docdir@&$docdir&g
8322 s&@infodir@&$infodir&g
8323 s&@localedir@&$localedir&g
8324 s&@mandir@&$mandir&g
8325 s&\\\${datarootdir}&$datarootdir&g' ;;
8326 esac
8327 _ACEOF
8329 # Neutralize VPATH when `$srcdir' = `.'.
8330 # Shell code in configure.ac might set extrasub.
8331 # FIXME: do we really want to maintain this feature?
8332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8333 ac_sed_extra="$ac_vpsub
8334 $extrasub
8335 _ACEOF
8336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8339 s|@configure_input@|$ac_sed_conf_input|;t t
8340 s&@top_builddir@&$ac_top_builddir_sub&;t t
8341 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8342 s&@srcdir@&$ac_srcdir&;t t
8343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8344 s&@top_srcdir@&$ac_top_srcdir&;t t
8345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8346 s&@builddir@&$ac_builddir&;t t
8347 s&@abs_builddir@&$ac_abs_builddir&;t t
8348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8349 s&@INSTALL@&$ac_INSTALL&;t t
8350 $ac_datarootdir_hack
8352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8360 which seems to be undefined. Please make sure it is defined" >&5
8361 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8362 which seems to be undefined. Please make sure it is defined" >&2;}
8364 rm -f "$ac_tmp/stdin"
8365 case $ac_file in
8366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8368 esac \
8369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8373 # CONFIG_HEADER
8375 if test x"$ac_file" != x-; then
8377 $as_echo "/* $configure_input */" \
8378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8379 } >"$ac_tmp/config.h" \
8380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8384 else
8385 rm -f "$ac_file"
8386 mv "$ac_tmp/config.h" "$ac_file" \
8387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8389 else
8390 $as_echo "/* $configure_input */" \
8391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8392 || as_fn_error $? "could not create -" "$LINENO" 5
8396 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8397 $as_echo "$as_me: executing $ac_file commands" >&6;}
8399 esac
8402 case $ac_file$ac_mode in
8403 "default":C)
8404 case $CONFIG_FILES in *config.make*)
8405 echo "$config_vars" >> config.make;;
8406 esac
8407 test -d bits || mkdir bits ;;
8409 esac
8410 done # for ac_tag
8413 as_fn_exit 0
8414 _ACEOF
8415 ac_clean_files=$ac_clean_files_save
8417 test $ac_write_fail = 0 ||
8418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8421 # configure is writing to config.log, and then calls config.status.
8422 # config.status does its own redirection, appending to config.log.
8423 # Unfortunately, on DOS this fails, as config.log is still kept open
8424 # by configure, so config.status won't be able to write to it; its
8425 # output is simply discarded. So we exec the FD to /dev/null,
8426 # effectively closing config.log, so it can be properly (re)opened and
8427 # appended to by config.status. When coming back to configure, we
8428 # need to make the FD available again.
8429 if test "$no_create" != yes; then
8430 ac_cs_success=:
8431 ac_config_status_args=
8432 test "$silent" = yes &&
8433 ac_config_status_args="$ac_config_status_args --quiet"
8434 exec 5>/dev/null
8435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8436 exec 5>>config.log
8437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8438 # would make configure fail if this is the last instruction.
8439 $ac_cs_success || as_fn_exit 1
8443 # CONFIG_SUBDIRS section.
8445 if test "$no_recursion" != yes; then
8447 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8448 # so they do not pile up.
8449 ac_sub_configure_args=
8450 ac_prev=
8451 eval "set x $ac_configure_args"
8452 shift
8453 for ac_arg
8455 if test -n "$ac_prev"; then
8456 ac_prev=
8457 continue
8459 case $ac_arg in
8460 -cache-file | --cache-file | --cache-fil | --cache-fi \
8461 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8462 ac_prev=cache_file ;;
8463 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8464 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8465 | --c=*)
8467 --config-cache | -C)
8469 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8470 ac_prev=srcdir ;;
8471 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8473 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8474 ac_prev=prefix ;;
8475 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8477 --disable-option-checking)
8480 case $ac_arg in
8481 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8482 esac
8483 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8484 esac
8485 done
8487 # Always prepend --prefix to ensure using the same prefix
8488 # in subdir configurations.
8489 ac_arg="--prefix=$prefix"
8490 case $ac_arg in
8491 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8492 esac
8493 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8495 # Pass --silent
8496 if test "$silent" = yes; then
8497 ac_sub_configure_args="--silent $ac_sub_configure_args"
8500 # Always prepend --disable-option-checking to silence warnings, since
8501 # different subdirs can have different --enable and --with options.
8502 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8504 ac_popdir=`pwd`
8505 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8507 # Do not complain, so a configure script can configure whichever
8508 # parts of a large source tree are present.
8509 test -d "$srcdir/$ac_dir" || continue
8511 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8513 $as_echo "$ac_msg" >&6
8514 as_dir="$ac_dir"; as_fn_mkdir_p
8515 ac_builddir=.
8517 case "$ac_dir" in
8518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8521 # A ".." for each directory in $ac_dir_suffix.
8522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8523 case $ac_top_builddir_sub in
8524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8526 esac ;;
8527 esac
8528 ac_abs_top_builddir=$ac_pwd
8529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8530 # for backward compatibility:
8531 ac_top_builddir=$ac_top_build_prefix
8533 case $srcdir in
8534 .) # We are building in place.
8535 ac_srcdir=.
8536 ac_top_srcdir=$ac_top_builddir_sub
8537 ac_abs_top_srcdir=$ac_pwd ;;
8538 [\\/]* | ?:[\\/]* ) # Absolute name.
8539 ac_srcdir=$srcdir$ac_dir_suffix;
8540 ac_top_srcdir=$srcdir
8541 ac_abs_top_srcdir=$srcdir ;;
8542 *) # Relative name.
8543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8544 ac_top_srcdir=$ac_top_build_prefix$srcdir
8545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8546 esac
8547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8550 cd "$ac_dir"
8552 # Check for guested configure; otherwise get Cygnus style configure.
8553 if test -f "$ac_srcdir/configure.gnu"; then
8554 ac_sub_configure=$ac_srcdir/configure.gnu
8555 elif test -f "$ac_srcdir/configure"; then
8556 ac_sub_configure=$ac_srcdir/configure
8557 elif test -f "$ac_srcdir/configure.in"; then
8558 # This should be Cygnus configure.
8559 ac_sub_configure=$ac_aux_dir/configure
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8563 ac_sub_configure=
8566 # The recursion is here.
8567 if test -n "$ac_sub_configure"; then
8568 # Make the cache file name correct relative to the subdirectory.
8569 case $cache_file in
8570 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8571 *) # Relative name.
8572 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8573 esac
8575 { $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
8576 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8577 # The eval makes quoting arguments work.
8578 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8579 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8580 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8583 cd "$ac_popdir"
8584 done
8586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8588 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}