]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
Remove sysdeps/nptl/configure.ac.
[thirdparty/glibc.git] / configure
CommitLineData
cd6ede75 1#! /bin/sh
3a12e572 2# Guess values for system-dependent variables and create Makefiles.
f4a58f0d 3# Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
f4b07664 4#
f318beb8 5# Report bugs to <http://sourceware.org/bugzilla/>.
3a12e572 6#
b08c89d9 7#
f4a58f0d 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
b08c89d9
UD
9#
10#
3a12e572
UD
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b08c89d9
UD
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cd6ede75 16
26f56c1c
UD
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b08c89d9 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3a12e572
UD
20 emulate sh
21 NULLCMD=:
322e23db 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
26f56c1c
UD
25 setopt NO_GLOB_SUBST
26else
b08c89d9
UD
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
26f56c1c 32esac
26f56c1c
UD
33fi
34
35
322e23db
UD
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b08c89d9
UD
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if 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 --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
322e23db
UD
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
a152f366 56 else
322e23db
UD
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b08c89d9 60 case $arg in #(
322e23db
UD
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
a152f366 69 fi
322e23db
UD
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
3a12e572 81fi
cd6ede75 82
f4b07664 83
26f56c1c
UD
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.)
26f56c1c
UD
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f318beb8 92as_myself=
b08c89d9 93case $0 in #((
26f56c1c
UD
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
b08c89d9
UD
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
26f56c1c
UD
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
322e23db 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b08c89d9 113 exit 1
26f56c1c
UD
114fi
115
b08c89d9
UD
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26f56c1c 123done
f4b07664
RM
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
322e23db
UD
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
f4b07664 133
b08c89d9
UD
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
f4a58f0d
L
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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
b08c89d9
UD
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
f4a58f0d
L
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
b08c89d9
UD
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'\" &&
3d0dbdc4 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
b08c89d9
UD
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
f4a58f0d
L
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
b08c89d9
UD
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
f318beb8
UD
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269$0: http://sourceware.org/bugzilla/ about your system,
270$0: including any error possibly output before this
b08c89d9
UD
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
4a531bb0 357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b08c89d9
UD
358
359
360} # as_fn_mkdir_p
f4a58f0d
L
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
b08c89d9
UD
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
4a531bb0
L
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
b08c89d9
UD
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4a531bb0 409# script with STATUS, using 1 if that was 0.
b08c89d9
UD
410as_fn_error ()
411{
4a531bb0
L
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b08c89d9 416 fi
4a531bb0 417 $as_echo "$as_me: error: $2" >&2
b08c89d9
UD
418 as_fn_exit $as_status
419} # as_fn_error
420
26f56c1c
UD
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
423 as_expr=expr
424else
425 as_expr=false
426fi
427
26f56c1c 428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
429 as_basename=basename
430else
431 as_basename=false
432fi
3a12e572 433
b08c89d9
UD
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
3a12e572 439
26f56c1c 440as_me=`$as_basename -- "$0" ||
3a12e572
UD
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
26f56c1c 443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 444$as_echo X/"$0" |
26f56c1c
UD
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
3a12e572 458
b08c89d9
UD
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
f4b07664 465
3a12e572 466
b08c89d9
UD
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cd6ede75 489
f4a58f0d
L
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
b08c89d9
UD
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
26f56c1c 500}
cd6ede75 501
b08c89d9
UD
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
650425ce 514
b08c89d9
UD
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
26f56c1c 521fi
b08c89d9
UD
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f4a58f0d 528 # In both cases, we have to default to `cp -pR'.
b08c89d9 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f4a58f0d 530 as_ln_s='cp -pR'
b08c89d9
UD
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
f4a58f0d 534 as_ln_s='cp -pR'
b08c89d9 535 fi
26f56c1c 536else
f4a58f0d 537 as_ln_s='cp -pR'
26f56c1c 538fi
b08c89d9
UD
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
26f56c1c 541
b08c89d9
UD
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
26f56c1c
UD
547fi
548
f4a58f0d
L
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
26f56c1c 551
b08c89d9
UD
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26f56c1c 554
b08c89d9
UD
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26f56c1c
UD
557
558
b08c89d9
UD
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
cd6ede75 561
3a12e572 562# Name of the host.
4a531bb0 563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
3a12e572
UD
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
3a12e572
UD
567#
568# Initializations.
569#
cd6ede75 570ac_default_prefix=/usr/local
26f56c1c 571ac_clean_files=
f4b07664 572ac_config_libobj_dir=.
26f56c1c 573LIBOBJS=
3a12e572
UD
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
3a12e572 578
3a12e572 579# Identity of this package.
f4b07664 580PACKAGE_NAME='GNU C Library'
f318beb8 581PACKAGE_TARNAME='glibc'
f4b07664
RM
582PACKAGE_VERSION='(see version.h)'
583PACKAGE_STRING='GNU C Library (see version.h)'
f318beb8
UD
584PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
585PACKAGE_URL='http://www.gnu.org/software/glibc/'
3a12e572
UD
586
587ac_unique_file="include/features.h"
322e23db 588enable_option_checking=no
322e23db 589ac_subst_vars='LTLIBOBJS
a152f366 590LIBOBJS
322e23db
UD
591RELEASE
592VERSION
593mach_interface_list
594DEFINES
322e23db 595static_nss
322e23db 596profile
cc08749b 597libc_cv_pie_default
322e23db
UD
598libc_cv_pic_default
599shared
600static
322e23db
UD
601ldd_rewrite_script
602use_ldconfig
322e23db 603libc_cv_rootsbindir
4248b1b1 604libc_cv_localstatedir
322e23db
UD
605libc_cv_sysconfdir
606libc_cv_localedir
aaa8cb4b 607libc_cv_rtlddir
322e23db 608libc_cv_slibdir
3cc3ef96 609use_nscd
322e23db 610libc_cv_gcc_unwind_find_fde
7ffa9423 611libc_extra_cppflags
30b99d79 612libc_extra_cflags
99e1dc0a 613libc_cv_cxx_thread_local
61653dfb 614CPPUNDEFS
322e23db
UD
615have_selinux
616have_libcap
617have_libaudit
618LIBGD
85c2e611 619libc_cv_cc_loop_to_function
322e23db 620libc_cv_cc_submachine
bef0b507 621libc_cv_cc_nofma
6ab674eb 622stack_protector
322e23db 623fno_unit_at_a_time
5c550700 624libc_cv_output_format
322e23db
UD
625libc_cv_hashstyle
626libc_cv_fpie
627libc_cv_z_execstack
628libc_cv_z_combreloc
629ASFLAGS_config
322e23db 630libc_cv_cc_with_libunwind
83569fb8 631libc_cv_protected_data
322e23db
UD
632BISON
633INSTALL_INFO
634PERL
322e23db 635BASH_SHELL
322e23db
UD
636CXX_SYSINCLUDES
637SYSINCLUDES
638AUTOCONF
30b99d79 639NM
0786794f 640AWK
322e23db
UD
641SED
642MAKEINFO
643MSGFMT
644MAKE
322e23db
UD
645LD
646AS
1b74661a 647OBJCOPY
322e23db
UD
648OBJDUMP
649AR
650LN_S
651INSTALL_DATA
652INSTALL_SCRIPT
653INSTALL_PROGRAM
654sysdeps_add_ons
655sysnames
656submachine
6f89d2f3 657multi_arch
322e23db
UD
658base_machine
659add_on_subdirs
660add_ons
e4608715 661build_pt_chown
c53d909c 662build_nscd
021db4be 663link_obsolete_rpc
322e23db 664libc_cv_nss_crypt
a4ecc9eb 665enable_werror
322e23db
UD
666all_warnings
667force_install
668bindnow
5a414ff7 669enable_lock_elision
740b3dbe 670hardcoded_path_in_tests
1cba4036 671enable_timezone_tools
f781ef40 672use_default_link
c91c505f 673sysheaders
322e23db
UD
674with_fp
675ac_ct_CXX
676CXXFLAGS
677CXX
e4693aa7 678READELF
322e23db
UD
679CPP
680cross_compiling
681BUILD_CC
682OBJEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
c16a054d
AS
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
7967983f 696subdirs
8b748aed
JM
697REPORT_BUGS_TEXI
698REPORT_BUGS_TO
699PKGVERSION_TEXI
700PKGVERSION
322e23db
UD
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
b08c89d9 731PACKAGE_URL
322e23db
UD
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
a152f366 739ac_subst_files=''
322e23db
UD
740ac_user_opts='
741enable_option_checking
8b748aed
JM
742with_pkgversion
743with_bugurl
322e23db
UD
744with_gd
745with_gd_include
746with_gd_lib
747with_fp
748with_binutils
322e23db 749with_selinux
322e23db 750with_headers
f781ef40 751with_default_link
322e23db 752enable_sanity_checks
322e23db
UD
753enable_shared
754enable_profile
1cba4036 755enable_timezone_tools
740b3dbe 756enable_hardcoded_path_in_tests
322e23db 757enable_stackguard_randomization
1717da59 758enable_lock_elision
322e23db 759enable_add_ons
322e23db
UD
760enable_hidden_plt
761enable_bind_now
762enable_static_nss
763enable_force_install
8894bad3 764enable_maintainer_mode
322e23db
UD
765enable_kernel
766enable_all_warnings
a4ecc9eb 767enable_werror
322e23db 768enable_multi_arch
322e23db 769enable_nss_crypt
021db4be 770enable_obsolete_rpc
3a097cc7 771enable_systemtap
c53d909c 772enable_build_nscd
3cc3ef96 773enable_nscd
e4608715 774enable_pt_chown
5695d46f 775enable_mathvec
322e23db
UD
776with_cpu
777'
a152f366
UD
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CPP
787CXX
788CXXFLAGS
789CCC'
7967983f
RM
790ac_subdirs_all='
791'
a152f366
UD
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
322e23db
UD
796ac_unrecognized_opts=
797ac_unrecognized_sep=
a152f366
UD
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
26f56c1c
UD
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
cd6ede75 840
cd6ede75 841ac_prev=
26f56c1c 842ac_dashdash=
cd6ede75
UD
843for ac_option
844do
cd6ede75
UD
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
26f56c1c 847 eval $ac_prev=\$ac_option
cd6ede75
UD
848 ac_prev=
849 continue
850 fi
851
26f56c1c 852 case $ac_option in
f318beb8
UD
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
26f56c1c 856 esac
cd6ede75
UD
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
26f56c1c
UD
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
cd6ede75
UD
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3a12e572 867 bindir=$ac_optarg ;;
cd6ede75
UD
868
869 -build | --build | --buil | --bui | --bu)
3a12e572 870 ac_prev=build_alias ;;
cd6ede75 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3a12e572 872 build_alias=$ac_optarg ;;
cd6ede75
UD
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3a12e572
UD
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
cd6ede75 883
26f56c1c 884 -datadir | --datadir | --datadi | --datad)
cd6ede75 885 ac_prev=datadir ;;
26f56c1c 886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3a12e572 887 datadir=$ac_optarg ;;
cd6ede75 888
26f56c1c
UD
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
cd6ede75 896 -disable-* | --disable-*)
322e23db 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cd6ede75 898 # Reject names that are not valid shell variable names.
322e23db 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a531bb0 900 as_fn_error $? "invalid feature name: $ac_useropt"
322e23db
UD
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
26f56c1c
UD
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
cd6ede75
UD
921
922 -enable-* | --enable-*)
322e23db 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cd6ede75 924 # Reject names that are not valid shell variable names.
322e23db 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a531bb0 926 as_fn_error $? "invalid feature name: $ac_useropt"
322e23db
UD
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
cd6ede75
UD
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
3a12e572 945 exec_prefix=$ac_optarg ;;
cd6ede75
UD
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
3a12e572
UD
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
cd6ede75
UD
957
958 -host | --host | --hos | --ho)
3a12e572 959 ac_prev=host_alias ;;
cd6ede75 960 -host=* | --host=* | --hos=* | --ho=*)
3a12e572 961 host_alias=$ac_optarg ;;
cd6ede75 962
26f56c1c
UD
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
cd6ede75
UD
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
3a12e572 974 includedir=$ac_optarg ;;
cd6ede75
UD
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3a12e572 979 infodir=$ac_optarg ;;
cd6ede75
UD
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3a12e572 984 libdir=$ac_optarg ;;
cd6ede75
UD
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
3a12e572 991 libexecdir=$ac_optarg ;;
cd6ede75 992
26f56c1c
UD
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
cd6ede75 998 -localstatedir | --localstatedir | --localstatedi | --localstated \
26f56c1c 999 | --localstate | --localstat | --localsta | --localst | --locals)
cd6ede75
UD
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26f56c1c 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3a12e572 1003 localstatedir=$ac_optarg ;;
cd6ede75
UD
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3a12e572 1008 mandir=$ac_optarg ;;
cd6ede75
UD
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3a12e572 1015 | --no-cr | --no-c | -n)
cd6ede75
UD
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3a12e572 1029 oldincludedir=$ac_optarg ;;
cd6ede75
UD
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3a12e572 1034 prefix=$ac_optarg ;;
cd6ede75
UD
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3a12e572 1041 program_prefix=$ac_optarg ;;
cd6ede75
UD
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3a12e572 1048 program_suffix=$ac_optarg ;;
cd6ede75
UD
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
3a12e572 1065 program_transform_name=$ac_optarg ;;
cd6ede75 1066
26f56c1c
UD
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
cd6ede75
UD
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
3a12e572 1085 sbindir=$ac_optarg ;;
cd6ede75
UD
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
3a12e572 1096 sharedstatedir=$ac_optarg ;;
cd6ede75
UD
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
3a12e572 1101 site=$ac_optarg ;;
cd6ede75
UD
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3a12e572 1106 srcdir=$ac_optarg ;;
cd6ede75
UD
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3a12e572 1113 sysconfdir=$ac_optarg ;;
cd6ede75
UD
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
3a12e572 1116 ac_prev=target_alias ;;
cd6ede75 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3a12e572 1118 target_alias=$ac_optarg ;;
cd6ede75
UD
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
3a12e572
UD
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
cd6ede75
UD
1125
1126 -with-* | --with-*)
322e23db 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cd6ede75 1128 # Reject names that are not valid shell variable names.
322e23db 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a531bb0 1130 as_fn_error $? "invalid package name: $ac_useropt"
322e23db
UD
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
cd6ede75
UD
1141
1142 -without-* | --without-*)
322e23db 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cd6ede75 1144 # Reject names that are not valid shell variable names.
322e23db 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
4a531bb0 1146 as_fn_error $? "invalid package name: $ac_useropt"
322e23db
UD
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
cd6ede75
UD
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3a12e572 1167 x_includes=$ac_optarg ;;
cd6ede75
UD
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3a12e572 1174 x_libraries=$ac_optarg ;;
cd6ede75 1175
4a531bb0
L
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
cd6ede75
UD
1178 ;;
1179
3a12e572
UD
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
b08c89d9
UD
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
4a531bb0 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b08c89d9 1186 esac
26f56c1c 1187 eval $ac_envvar=\$ac_optarg
3a12e572
UD
1188 export $ac_envvar ;;
1189
cd6ede75 1190 *)
3a12e572 1191 # FIXME: should be removed in autoconf 3.0.
322e23db 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3a12e572 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
322e23db 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f318beb8 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cd6ede75
UD
1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
3a12e572 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
4a531bb0 1203 as_fn_error $? "missing argument to $ac_option"
cd6ede75 1204fi
cd6ede75 1205
322e23db
UD
1206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
4a531bb0 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
322e23db
UD
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
26f56c1c
UD
1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
cd6ede75 1219do
26f56c1c 1220 eval ac_val=\$$ac_var
322e23db
UD
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
3a12e572 1228 case $ac_val in
26f56c1c
UD
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cd6ede75 1231 esac
4a531bb0 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cd6ede75
UD
1233done
1234
3a12e572
UD
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
3a12e572
UD
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
cd6ede75 1250
3a12e572
UD
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
cd6ede75 1255
cd6ede75 1256
26f56c1c
UD
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
4a531bb0 1260 as_fn_error $? "working directory cannot be determined"
26f56c1c 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
4a531bb0 1262 as_fn_error $? "pwd does not report name of working directory"
26f56c1c
UD
1263
1264
cd6ede75
UD
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
26f56c1c 1268 # Try the directory containing this script, then the parent directory.
322e23db
UD
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
26f56c1c
UD
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
cd6ede75 1292 srcdir=$ac_confdir
26f56c1c 1293 if test ! -r "$srcdir/$ac_unique_file"; then
cd6ede75
UD
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
26f56c1c
UD
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
4a531bb0 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd6ede75 1302fi
26f56c1c
UD
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
4a531bb0 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
26f56c1c
UD
1306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
3a12e572
UD
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
f4b07664 1331\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
3a12e572
UD
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
4a531bb0 1345 -q, --quiet, --silent do not print \`checking ...' messages
3a12e572
UD
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
3a12e572
UD
1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
322e23db 1353 [$ac_default_prefix]
3a12e572 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
322e23db 1355 [PREFIX]
3a12e572
UD
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
322e23db
UD
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
f318beb8 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
322e23db
UD
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
3a12e572
UD
1384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391_ACEOF
1392fi
cd6ede75 1393
3a12e572 1394if test -n "$ac_init_help"; then
f4b07664
RM
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1397 esac
3a12e572
UD
1398 cat <<\_ACEOF
1399
1400Optional Features:
322e23db 1401 --disable-option-checking ignore unrecognized --enable/--with options
3a12e572
UD
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6b7f6183
RM
1404 --disable-sanity-checks really do not use threads (should not be used except
1405 in special situations) [default=yes]
a0da5fe1 1406 --enable-shared build shared library [default=yes if GNU ld]
11bf311e 1407 --enable-profile build profiled library [default=no]
1cba4036 1408 --disable-timezone-tools
44f826e3 1409 do not install timezone tools [default=install]
740b3dbe
L
1410 --enable-hardcoded-path-in-tests
1411 hardcode newly built glibc path in tests
1412 [default=no]
35f1e827
UD
1413 --enable-stackguard-randomization
1414 initialize __stack_chk_guard canary with a random
1415 number at program start
1717da59 1416 --enable-lock-elision=yes/no
52dfbe13 1417 Enable lock elision for pthread mutexes by default
6b7f6183
RM
1418 --enable-add-ons[=DIRS...]
1419 configure and build add-ons in DIR1,DIR2,... search
1420 for add-ons if no parameter given
3a12e572 1421 --disable-hidden-plt do not hide internal function calls to avoid PLT
4df8c11d 1422 --enable-bind-now disable lazy relocations in DSOs
6b7f6183 1423 --enable-static-nss build static NSS modules [default=no]
3a12e572 1424 --disable-force-install don't force installation of files from this package,
6b7f6183 1425 even if they are older than the installed files
8894bad3
AM
1426 --enable-maintainer-mode
1427 enable make rules and dependencies not useful (and
1428 sometimes confusing) to the casual installer
6b7f6183
RM
1429 --enable-kernel=VERSION compile for compatibility with kernel not older than
1430 VERSION
3a12e572 1431 --enable-all-warnings enable all useful warnings gcc can issue
a4ecc9eb 1432 --disable-werror do not build with -Werror
425ce2ed
UD
1433 --enable-multi-arch enable single DSO with optimizations for multiple
1434 architectures
ff886b82 1435 --enable-nss-crypt enable libcrypt to use nss
021db4be
AJ
1436 --enable-obsolete-rpc build and install the obsolete RPC code for
1437 link-time usage
3a097cc7 1438 --enable-systemtap enable systemtap static probe points [default=no]
c53d909c 1439 --disable-build-nscd disable building and installing the nscd daemon
3cc3ef96 1440 --disable-nscd library functions will not contact the nscd daemon
e4608715 1441 --enable-pt_chown Enable building and installing pt_chown
5695d46f
AS
1442 --enable-mathvec Enable building and installing mathvec [default
1443 depends on architecture]
3a12e572
UD
1444
1445Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b748aed
JM
1448 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1449 --with-bugurl=URL Direct users to URL to report a bug
3a12e572
UD
1450 --with-gd=DIR find libgd include dir and library with prefix DIR
1451 --with-gd-include=DIR find libgd include files in DIR
1452 --with-gd-lib=DIR find libgd library files in DIR
6b7f6183
RM
1453 --with-fp if using floating-point hardware [default=yes]
1454 --with-binutils=PATH specify location of binutils (as and ld)
74a30a58 1455 --with-selinux if building with SELinux support
6b7f6183 1456 --with-headers=PATH location of system headers to use (for example
26f56c1c 1457 /usr/src/linux/include) [default=compiler default]
fd5e21c7 1458 --with-default-link do not use explicit linker scripts
2ceaa76a 1459 --with-cpu=CPU select code for CPU variant
3a12e572
UD
1460
1461Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
26f56c1c 1466 LIBS libraries to pass to the linker, e.g. -l<library>
b08c89d9 1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
26f56c1c 1468 you have headers in a nonstandard directory <include dir>
3a12e572 1469 CPP C preprocessor
925c3c5c
UD
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
3a12e572
UD
1472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
f318beb8
UD
1476Report bugs to <http://sourceware.org/bugzilla/>.
1477GNU C Library home page: <http://www.gnu.org/software/glibc/>.
b08c89d9 1478General help using GNU software: <http://www.gnu.org/gethelp/>.
3a12e572 1479_ACEOF
26f56c1c 1480ac_status=$?
3a12e572
UD
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
3a12e572 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
322e23db
UD
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
3a12e572
UD
1489 ac_builddir=.
1490
26f56c1c
UD
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
322e23db 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 1495 # A ".." for each directory in $ac_dir_suffix.
322e23db 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
1506
1507case $srcdir in
26f56c1c 1508 .) # We are building in place.
3a12e572 1509 ac_srcdir=.
26f56c1c
UD
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 1513 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 1520esac
26f56c1c
UD
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
3a12e572 1531 else
322e23db 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
26f56c1c
UD
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
3a12e572
UD
1535 done
1536fi
1537
26f56c1c 1538test -n "$ac_init_help" && exit $ac_status
3a12e572
UD
1539if $ac_init_version; then
1540 cat <<\_ACEOF
f4b07664 1541GNU C Library configure (see version.h)
f4a58f0d 1542generated by GNU Autoconf 2.69
3a12e572 1543
f4a58f0d 1544Copyright (C) 2012 Free Software Foundation, Inc.
3a12e572
UD
1545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
26f56c1c 1548 exit
3a12e572 1549fi
3a12e572 1550
b08c89d9
UD
1551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
3a12e572 1554
b08c89d9
UD
1555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
3a12e572 1559{
b08c89d9
UD
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
3a12e572 1585
b08c89d9
UD
1586 ac_retval=1
1587fi
f318beb8 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9 1589 as_fn_set_status $ac_retval
3a12e572 1590
b08c89d9 1591} # ac_fn_c_try_compile
3a12e572 1592
b08c89d9
UD
1593# ac_fn_cxx_try_compile LINENO
1594# ----------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_cxx_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_cxx_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
f318beb8 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9
UD
1627 as_fn_set_status $ac_retval
1628
1629} # ac_fn_cxx_try_compile
1630
e4693aa7
RM
1631# ac_fn_cxx_try_link LINENO
1632# -------------------------
1633# Try to link conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_link ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 test -x conftest$ac_exeext
1659 }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666fi
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675} # ac_fn_cxx_try_link
1676
b08c89d9
UD
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
f4a58f0d 1704 test -x conftest$ac_exeext
b08c89d9
UD
1705 }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f318beb8 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b08c89d9
UD
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
b08c89d9
UD
1722cat >config.log <<_ACEOF
1723This file contains any messages produced by compilers while
1724running configure, to aid debugging if configure makes a mistake.
1725
1726It was created by GNU C Library $as_me (see version.h), which was
f4a58f0d 1727generated by GNU Autoconf 2.69. Invocation command line was
b08c89d9
UD
1728
1729 $ $0 $@
1730
1731_ACEOF
1732exec 5>>config.log
1733{
1734cat <<_ASUNAME
1735## --------- ##
1736## Platform. ##
1737## --------- ##
1738
1739hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744
1745/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747
1748/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1749/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1750/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1752/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1753/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1754/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1755
1756_ASUNAME
3a12e572
UD
1757
1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759for as_dir in $PATH
1760do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
b08c89d9
UD
1763 $as_echo "PATH: $as_dir"
1764 done
26f56c1c 1765IFS=$as_save_IFS
3a12e572
UD
1766
1767} >&5
1768
1769cat >&5 <<_ACEOF
1770
1771
1772## ----------- ##
1773## Core tests. ##
1774## ----------- ##
1775
1776_ACEOF
1777
1778
1779# Keep a trace of the command line.
1780# Strip out --no-create and --no-recursion so they do not pile up.
2abf9ff1 1781# Strip out --silent because we don't want to record it for future runs.
3a12e572 1782# Also quote any args containing shell meta-characters.
2abf9ff1 1783# Make two passes to allow for proper duplicate-argument suppression.
3a12e572 1784ac_configure_args=
2abf9ff1
RM
1785ac_configure_args0=
1786ac_configure_args1=
2abf9ff1
RM
1787ac_must_keep_next=false
1788for ac_pass in 1 2
3a12e572 1789do
2abf9ff1
RM
1790 for ac_arg
1791 do
1792 case $ac_arg in
1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795 | -silent | --silent | --silen | --sile | --sil)
1796 continue ;;
26f56c1c 1797 *\'*)
322e23db 1798 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2abf9ff1
RM
1799 esac
1800 case $ac_pass in
b08c89d9 1801 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2abf9ff1 1802 2)
b08c89d9 1803 as_fn_append ac_configure_args1 " '$ac_arg'"
2abf9ff1 1804 if test $ac_must_keep_next = true; then
9382fcee 1805 ac_must_keep_next=false # Got value, back to normal.
2abf9ff1 1806 else
9382fcee
RM
1807 case $ac_arg in
1808 *=* | --config-cache | -C | -disable-* | --disable-* \
1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811 | -with-* | --with-* | -without-* | --without-* | --x)
1812 case "$ac_configure_args0 " in
1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814 esac
1815 ;;
1816 -* ) ac_must_keep_next=true ;;
1817 esac
2abf9ff1 1818 fi
b08c89d9 1819 as_fn_append ac_configure_args " '$ac_arg'"
2abf9ff1
RM
1820 ;;
1821 esac
1822 done
3a12e572 1823done
b08c89d9
UD
1824{ ac_configure_args0=; unset ac_configure_args0;}
1825{ ac_configure_args1=; unset ac_configure_args1;}
3a12e572
UD
1826
1827# When interrupted or exit'd, cleanup temporary files, and complete
1828# config.log. We remove comments because anyway the quotes in there
1829# would cause problems or look ugly.
26f56c1c
UD
1830# WARNING: Use '\'' to represent an apostrophe within the trap.
1831# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3a12e572
UD
1832trap 'exit_status=$?
1833 # Save into config.log some information that might help in debugging.
1834 {
1835 echo
f4b07664 1836
4a531bb0 1837 $as_echo "## ---------------- ##
3a12e572 1838## Cache variables. ##
4a531bb0 1839## ---------------- ##"
3a12e572
UD
1840 echo
1841 # The following way of writing the cache mishandles newlines in values,
26f56c1c
UD
1842(
1843 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1844 eval ac_val=\$$ac_var
1845 case $ac_val in #(
1846 *${as_nl}*)
1847 case $ac_var in #(
b08c89d9 1848 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
322e23db 1849$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26f56c1c
UD
1850 esac
1851 case $ac_var in #(
1852 _ | IFS | as_nl) ;; #(
322e23db 1853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b08c89d9 1854 *) { eval $ac_var=; unset $ac_var;} ;;
26f56c1c
UD
1855 esac ;;
1856 esac
1857 done
3a12e572 1858 (set) 2>&1 |
26f56c1c
UD
1859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860 *${as_nl}ac_space=\ *)
3a12e572 1861 sed -n \
26f56c1c
UD
1862 "s/'\''/'\''\\\\'\'''\''/g;
1863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864 ;; #(
3a12e572 1865 *)
26f56c1c 1866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 1867 ;;
26f56c1c
UD
1868 esac |
1869 sort
1870)
3a12e572 1871 echo
f4b07664 1872
4a531bb0 1873 $as_echo "## ----------------- ##
f4b07664 1874## Output variables. ##
4a531bb0 1875## ----------------- ##"
f4b07664
RM
1876 echo
1877 for ac_var in $ac_subst_vars
1878 do
26f56c1c
UD
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
322e23db 1881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 1882 esac
322e23db 1883 $as_echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1884 done | sort
1885 echo
1886
1887 if test -n "$ac_subst_files"; then
4a531bb0 1888 $as_echo "## ------------------- ##
26f56c1c 1889## File substitutions. ##
4a531bb0 1890## ------------------- ##"
f4b07664
RM
1891 echo
1892 for ac_var in $ac_subst_files
1893 do
26f56c1c
UD
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
322e23db 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 1897 esac
322e23db 1898 $as_echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1899 done | sort
1900 echo
1901 fi
1902
3a12e572 1903 if test -s confdefs.h; then
4a531bb0 1904 $as_echo "## ----------- ##
3a12e572 1905## confdefs.h. ##
4a531bb0 1906## ----------- ##"
3a12e572 1907 echo
26f56c1c 1908 cat confdefs.h
3a12e572
UD
1909 echo
1910 fi
1911 test "$ac_signal" != 0 &&
322e23db
UD
1912 $as_echo "$as_me: caught signal $ac_signal"
1913 $as_echo "$as_me: exit $exit_status"
3a12e572 1914 } >&5
26f56c1c
UD
1915 rm -f core *.core core.conftest.* &&
1916 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3a12e572 1917 exit $exit_status
26f56c1c 1918' 0
3a12e572 1919for ac_signal in 1 2 13 15; do
b08c89d9 1920 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3a12e572
UD
1921done
1922ac_signal=0
1923
1924# confdefs.h avoids OS command line length limits that DEFS can exceed.
26f56c1c 1925rm -f -r conftest* confdefs.h
3a12e572 1926
b08c89d9
UD
1927$as_echo "/* confdefs.h */" > confdefs.h
1928
3a12e572
UD
1929# Predefined preprocessor variables.
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_NAME "$PACKAGE_NAME"
1933_ACEOF
1934
3a12e572
UD
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937_ACEOF
1938
3a12e572
UD
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_VERSION "$PACKAGE_VERSION"
1941_ACEOF
1942
3a12e572
UD
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_STRING "$PACKAGE_STRING"
1945_ACEOF
1946
3a12e572
UD
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949_ACEOF
1950
b08c89d9
UD
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_URL "$PACKAGE_URL"
1953_ACEOF
1954
3a12e572
UD
1955
1956# Let the site file select an alternate cache file if it wants to.
322e23db
UD
1957# Prefer an explicitly selected file to automatically selected ones.
1958ac_site_file1=NONE
1959ac_site_file2=NONE
26f56c1c 1960if test -n "$CONFIG_SITE"; then
4a531bb0
L
1961 # We do not want a PATH search for config.site.
1962 case $CONFIG_SITE in #((
1963 -*) ac_site_file1=./$CONFIG_SITE;;
1964 */*) ac_site_file1=$CONFIG_SITE;;
1965 *) ac_site_file1=./$CONFIG_SITE;;
1966 esac
26f56c1c 1967elif test "x$prefix" != xNONE; then
322e23db
UD
1968 ac_site_file1=$prefix/share/config.site
1969 ac_site_file2=$prefix/etc/config.site
26f56c1c 1970else
322e23db
UD
1971 ac_site_file1=$ac_default_prefix/share/config.site
1972 ac_site_file2=$ac_default_prefix/etc/config.site
cd6ede75 1973fi
322e23db 1974for ac_site_file in "$ac_site_file1" "$ac_site_file2"
26f56c1c 1975do
322e23db 1976 test "x$ac_site_file" = xNONE && continue
b08c89d9
UD
1977 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
322e23db 1979$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3a12e572 1980 sed 's/^/| /' "$ac_site_file" >&5
4a531bb0
L
1981 . "$ac_site_file" \
1982 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984as_fn_error $? "failed to load site script $ac_site_file
1985See \`config.log' for more details" "$LINENO" 5; }
cd6ede75
UD
1986 fi
1987done
1988
1989if test -r "$cache_file"; then
b08c89d9
UD
1990 # Some versions of bash will fail to source /dev/null (special files
1991 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1992 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
322e23db 1994$as_echo "$as_me: loading cache $cache_file" >&6;}
3a12e572 1995 case $cache_file in
26f56c1c
UD
1996 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997 *) . "./$cache_file";;
3a12e572
UD
1998 esac
1999 fi
cd6ede75 2000else
b08c89d9 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
322e23db 2002$as_echo "$as_me: creating cache $cache_file" >&6;}
3a12e572
UD
2003 >$cache_file
2004fi
2005
2006# Check that the precious variables saved in the cache have kept the same
2007# value.
2008ac_cache_corrupted=false
26f56c1c 2009for ac_var in $ac_precious_vars; do
3a12e572
UD
2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011 eval ac_new_set=\$ac_env_${ac_var}_set
26f56c1c
UD
2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013 eval ac_new_val=\$ac_env_${ac_var}_value
3a12e572
UD
2014 case $ac_old_set,$ac_new_set in
2015 set,)
b08c89d9 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
322e23db 2017$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3a12e572
UD
2018 ac_cache_corrupted=: ;;
2019 ,set)
b08c89d9 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
322e23db 2021$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3a12e572
UD
2022 ac_cache_corrupted=: ;;
2023 ,);;
2024 *)
2025 if test "x$ac_old_val" != "x$ac_new_val"; then
322e23db
UD
2026 # differences in whitespace do not lead to failure.
2027 ac_old_val_w=`echo x $ac_old_val`
2028 ac_new_val_w=`echo x $ac_new_val`
2029 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b08c89d9 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
322e23db
UD
2031$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 ac_cache_corrupted=:
2033 else
b08c89d9 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
322e23db
UD
2035$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2036 eval $ac_var=\$ac_old_val
2037 fi
b08c89d9 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
322e23db 2039$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b08c89d9 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
322e23db 2041$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3a12e572
UD
2042 fi;;
2043 esac
2044 # Pass precious variables to config.status.
2045 if test "$ac_new_set" = set; then
2046 case $ac_new_val in
322e23db 2047 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3a12e572
UD
2048 *) ac_arg=$ac_var=$ac_new_val ;;
2049 esac
2050 case " $ac_configure_args " in
2051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b08c89d9 2052 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3a12e572
UD
2053 esac
2054 fi
2055done
2056if $ac_cache_corrupted; then
b08c89d9 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
322e23db 2058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b08c89d9 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
322e23db 2060$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4a531bb0 2061 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cd6ede75 2062fi
b08c89d9
UD
2063## -------------------- ##
2064## Main body of script. ##
2065## -------------------- ##
cd6ede75 2066
b08c89d9
UD
2067ac_ext=c
2068ac_cpp='$CPP $CPPFLAGS'
2069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071ac_compiler_gnu=$ac_cv_c_compiler_gnu
3a12e572
UD
2072
2073
cd6ede75 2074
b08c89d9 2075ac_config_headers="$ac_config_headers config.h"
63bda0c1 2076
b08c89d9
UD
2077ac_aux_dir=
2078for ac_dir in scripts "$srcdir"/scripts; do
4a531bb0
L
2079 if test -f "$ac_dir/install-sh"; then
2080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/install-sh -c"
2082 break
2083 elif test -f "$ac_dir/install.sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install.sh -c"
2086 break
2087 elif test -f "$ac_dir/shtool"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/shtool install -c"
2090 break
2091 fi
b08c89d9
UD
2092done
2093if test -z "$ac_aux_dir"; then
4a531bb0 2094 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
b08c89d9 2095fi
26f56c1c
UD
2096
2097# These three variables are undocumented and unsupported,
2098# and are intended to be withdrawn in a future Autoconf release.
2099# They can cause serious problems if a builder's source tree is in a directory
2100# whose full name contains unusual characters.
2101ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2102ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2103ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2104
444518fe 2105
cd6ede75 2106
8b748aed
JM
2107
2108
2109# Check whether --with-pkgversion was given.
2110if test "${with_pkgversion+set}" = set; then :
2111 withval=$with_pkgversion; case "$withval" in
2112 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2113 no) PKGVERSION= ;;
2114 *) PKGVERSION="($withval) " ;;
2115 esac
2116else
2117 PKGVERSION="(GNU libc) "
2118
2119fi
2120
2121 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2122
2123
2124
2125
2126
2127# Check whether --with-bugurl was given.
2128if test "${with_bugurl+set}" = set; then :
2129 withval=$with_bugurl; case "$withval" in
2130 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2131 no) BUGURL=
2132 ;;
2133 *) BUGURL="$withval"
2134 ;;
2135 esac
2136else
2137 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2138
2139fi
2140
2141 case ${BUGURL} in
2142 "")
2143 REPORT_BUGS_TO=
2144 REPORT_BUGS_TEXI=
2145 ;;
2146 *)
2147 REPORT_BUGS_TO="<$BUGURL>"
2148 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2149 ;;
2150 esac;
2151
2152
2153
2154
2155cat >>confdefs.h <<_ACEOF
2156#define PKGVERSION "$PKGVERSION"
2157_ACEOF
2158
2159
2160cat >>confdefs.h <<_ACEOF
2161#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2162_ACEOF
2163
2164
918b5606
L
2165# Glibc should not depend on any header files
2166
2167
bb931195
TS
2168# We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2169# here to work around the Autoconf issue discussed in
2170# <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2171# AC_PROG_CPP
2172
b5a5da23
TS
2173# We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2174# issue discussed in
2175# <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2176
2177
7967983f
RM
2178
2179
2180subdirs="$subdirs "
2181
2182
c16a054d
AS
2183# Make sure we can run config.sub.
2184$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4a531bb0 2185 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
c16a054d 2186
b08c89d9 2187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
c16a054d 2188$as_echo_n "checking build system type... " >&6; }
f318beb8 2189if ${ac_cv_build+:} false; then :
c16a054d
AS
2190 $as_echo_n "(cached) " >&6
2191else
2192 ac_build_alias=$build_alias
2193test "x$ac_build_alias" = x &&
2194 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2195test "x$ac_build_alias" = x &&
4a531bb0 2196 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
c16a054d 2197ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4a531bb0 2198 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
c16a054d
AS
2199
2200fi
b08c89d9 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
c16a054d
AS
2202$as_echo "$ac_cv_build" >&6; }
2203case $ac_cv_build in
2204*-*-*) ;;
4a531bb0 2205*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
c16a054d
AS
2206esac
2207build=$ac_cv_build
2208ac_save_IFS=$IFS; IFS='-'
2209set x $ac_cv_build
2210shift
2211build_cpu=$1
2212build_vendor=$2
2213shift; shift
2214# Remember, the first character of IFS is used to create $*,
2215# except with old shells:
2216build_os=$*
2217IFS=$ac_save_IFS
2218case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2219
2220
b08c89d9 2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
c16a054d 2222$as_echo_n "checking host system type... " >&6; }
f318beb8 2223if ${ac_cv_host+:} false; then :
c16a054d
AS
2224 $as_echo_n "(cached) " >&6
2225else
2226 if test "x$host_alias" = x; then
2227 ac_cv_host=$ac_cv_build
2228else
2229 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4a531bb0 2230 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
c16a054d
AS
2231fi
2232
2233fi
b08c89d9 2234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
c16a054d
AS
2235$as_echo "$ac_cv_host" >&6; }
2236case $ac_cv_host in
2237*-*-*) ;;
4a531bb0 2238*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c16a054d
AS
2239esac
2240host=$ac_cv_host
2241ac_save_IFS=$IFS; IFS='-'
2242set x $ac_cv_host
2243shift
2244host_cpu=$1
2245host_vendor=$2
2246shift; shift
2247# Remember, the first character of IFS is used to create $*,
2248# except with old shells:
2249host_os=$*
2250IFS=$ac_save_IFS
2251case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2252
2253
2254
a152f366
UD
2255ac_ext=c
2256ac_cpp='$CPP $CPPFLAGS'
2257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2262set dummy ${ac_tool_prefix}gcc; ac_word=$2
b08c89d9 2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2264$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2265if ${ac_cv_prog_CC+:} false; then :
322e23db 2266 $as_echo_n "(cached) " >&6
a152f366
UD
2267else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
b08c89d9 2276 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b08c89d9 2279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2280 break 2
2281 fi
2282done
b08c89d9 2283 done
a152f366 2284IFS=$as_save_IFS
c8f3e6db 2285
26f56c1c 2286fi
26f56c1c 2287fi
a152f366
UD
2288CC=$ac_cv_prog_CC
2289if test -n "$CC"; then
b08c89d9 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
322e23db 2291$as_echo "$CC" >&6; }
a152f366 2292else
b08c89d9 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2294$as_echo "no" >&6; }
26f56c1c
UD
2295fi
2296
e41db95b 2297
e41db95b 2298fi
a152f366
UD
2299if test -z "$ac_cv_prog_CC"; then
2300 ac_ct_CC=$CC
2301 # Extract the first word of "gcc", so it can be a program name with args.
2302set dummy gcc; ac_word=$2
b08c89d9 2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2304$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2305if ${ac_cv_prog_ac_ct_CC+:} false; then :
322e23db 2306 $as_echo_n "(cached) " >&6
cd6ede75 2307else
a152f366
UD
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a5a0310d 2310else
a152f366
UD
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
b08c89d9 2316 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2318 ac_cv_prog_ac_ct_CC="gcc"
b08c89d9 2319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2320 break 2
2321 fi
2322done
b08c89d9 2323 done
a152f366 2324IFS=$as_save_IFS
cd6ede75 2325
a152f366
UD
2326fi
2327fi
2328ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329if test -n "$ac_ct_CC"; then
b08c89d9 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
322e23db 2331$as_echo "$ac_ct_CC" >&6; }
cd6ede75 2332else
b08c89d9 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2334$as_echo "no" >&6; }
26f56c1c
UD
2335fi
2336
a152f366
UD
2337 if test "x$ac_ct_CC" = x; then
2338 CC=""
2339 else
2340 case $cross_compiling:$ac_tool_warned in
2341yes:)
b08c89d9 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
322e23db 2343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
2344ac_tool_warned=yes ;;
2345esac
2346 CC=$ac_ct_CC
2347 fi
74a30a58 2348else
a152f366 2349 CC="$ac_cv_prog_CC"
26f56c1c
UD
2350fi
2351
a152f366
UD
2352if test -z "$CC"; then
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2355set dummy ${ac_tool_prefix}cc; ac_word=$2
b08c89d9 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2357$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2358if ${ac_cv_prog_CC+:} false; then :
322e23db 2359 $as_echo_n "(cached) " >&6
a152f366
UD
2360else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
b08c89d9 2369 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2371 ac_cv_prog_CC="${ac_tool_prefix}cc"
b08c89d9 2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2373 break 2
2374 fi
2375done
b08c89d9 2376 done
a152f366 2377IFS=$as_save_IFS
74a30a58 2378
a152f366
UD
2379fi
2380fi
2381CC=$ac_cv_prog_CC
2382if test -n "$CC"; then
b08c89d9 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
322e23db 2384$as_echo "$CC" >&6; }
5af3245a 2385else
b08c89d9 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2387$as_echo "no" >&6; }
26f56c1c
UD
2388fi
2389
5af3245a 2390
a152f366 2391 fi
26f56c1c 2392fi
a152f366
UD
2393if test -z "$CC"; then
2394 # Extract the first word of "cc", so it can be a program name with args.
2395set dummy cc; ac_word=$2
b08c89d9 2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2397$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2398if ${ac_cv_prog_CC+:} false; then :
322e23db 2399 $as_echo_n "(cached) " >&6
a152f366
UD
2400else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403else
2404 ac_prog_rejected=no
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
b08c89d9 2410 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366
UD
2412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2413 ac_prog_rejected=yes
2414 continue
2415 fi
2416 ac_cv_prog_CC="cc"
b08c89d9 2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2418 break 2
2419 fi
2420done
b08c89d9 2421 done
a152f366 2422IFS=$as_save_IFS
26f56c1c 2423
a152f366
UD
2424if test $ac_prog_rejected = yes; then
2425 # We found a bogon in the path, so make sure we never use it.
2426 set dummy $ac_cv_prog_CC
2427 shift
2428 if test $# != 0; then
2429 # We chose a different compiler from the bogus one.
2430 # However, it has the same basename, so the bogon will be chosen
2431 # first if we set CC to just the basename; use the full file name.
2432 shift
2433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6b3f2b3d 2434 fi
4442d7e8 2435fi
26f56c1c 2436fi
26f56c1c 2437fi
a152f366
UD
2438CC=$ac_cv_prog_CC
2439if test -n "$CC"; then
b08c89d9 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
322e23db 2441$as_echo "$CC" >&6; }
7dbde9db 2442else
b08c89d9 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2444$as_echo "no" >&6; }
26f56c1c
UD
2445fi
2446
7dbde9db 2447
26f56c1c 2448fi
a152f366
UD
2449if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
2451 for ac_prog in cl.exe
2452 do
2453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b08c89d9 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2456$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2457if ${ac_cv_prog_CC+:} false; then :
322e23db 2458 $as_echo_n "(cached) " >&6
cd6ede75 2459else
a152f366
UD
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 2462else
a152f366
UD
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
b08c89d9 2468 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b08c89d9 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2472 break 2
2473 fi
2474done
b08c89d9 2475 done
a152f366 2476IFS=$as_save_IFS
26f56c1c 2477
26f56c1c 2478fi
a152f366
UD
2479fi
2480CC=$ac_cv_prog_CC
2481if test -n "$CC"; then
b08c89d9 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
322e23db 2483$as_echo "$CC" >&6; }
650425ce 2484else
b08c89d9 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2486$as_echo "no" >&6; }
26f56c1c
UD
2487fi
2488
cd6ede75 2489
a152f366
UD
2490 test -n "$CC" && break
2491 done
26f56c1c 2492fi
a152f366
UD
2493if test -z "$CC"; then
2494 ac_ct_CC=$CC
2495 for ac_prog in cl.exe
2496do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498set dummy $ac_prog; ac_word=$2
b08c89d9 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2500$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2501if ${ac_cv_prog_ac_ct_CC+:} false; then :
322e23db 2502 $as_echo_n "(cached) " >&6
62ab42d6 2503else
a152f366
UD
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
b08c89d9 2512 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2514 ac_cv_prog_ac_ct_CC="$ac_prog"
b08c89d9 2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2516 break 2
2517 fi
2518done
b08c89d9 2519 done
a152f366 2520IFS=$as_save_IFS
62ab42d6
UD
2521
2522fi
a152f366
UD
2523fi
2524ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525if test -n "$ac_ct_CC"; then
b08c89d9 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
322e23db 2527$as_echo "$ac_ct_CC" >&6; }
35f1e827 2528else
b08c89d9 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2530$as_echo "no" >&6; }
26f56c1c
UD
2531fi
2532
35f1e827 2533
a152f366
UD
2534 test -n "$ac_ct_CC" && break
2535done
35f1e827 2536
a152f366
UD
2537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541yes:)
b08c89d9 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
322e23db 2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
2544ac_tool_warned=yes ;;
2545esac
2546 CC=$ac_ct_CC
2547 fi
26f56c1c 2548fi
cd6ede75 2549
26f56c1c 2550fi
8d4b5a8a
UD
2551
2552
b08c89d9 2553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
322e23db 2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a531bb0
L
2555as_fn_error $? "no acceptable C compiler found in \$PATH
2556See \`config.log' for more details" "$LINENO" 5; }
26f56c1c 2557
a152f366 2558# Provide some information about the compiler.
b08c89d9 2559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
322e23db
UD
2560set X $ac_compile
2561ac_compiler=$2
b08c89d9
UD
2562for ac_option in --version -v -V -qversion; do
2563 { { ac_try="$ac_compiler $ac_option >&5"
a152f366
UD
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
b08c89d9
UD
2568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569$as_echo "$ac_try_echo"; } >&5
2570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a152f366 2571 ac_status=$?
b08c89d9
UD
2572 if test -s conftest.err; then
2573 sed '10a\
2574... rest of stderr output deleted ...
2575 10q' conftest.err >conftest.er1
2576 cat conftest.er1 >&5
2577 fi
2578 rm -f conftest.er1 conftest.err
2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580 test $ac_status = 0; }
2581done
26f56c1c 2582
a152f366 2583EXEEXT=
b08c89d9 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
322e23db 2585$as_echo_n "checking for suffix of object files... " >&6; }
f318beb8 2586if ${ac_cv_objext+:} false; then :
322e23db 2587 $as_echo_n "(cached) " >&6
749a9a4f 2588else
b08c89d9 2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 2590/* end confdefs.h. */
749a9a4f 2591
a152f366
UD
2592int
2593main ()
2594{
749a9a4f 2595
a152f366
UD
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600rm -f conftest.o conftest.obj
b08c89d9 2601if { { ac_try="$ac_compile"
a152f366
UD
2602case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605esac
b08c89d9
UD
2606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607$as_echo "$ac_try_echo"; } >&5
a152f366
UD
2608 (eval "$ac_compile") 2>&5
2609 ac_status=$?
b08c89d9
UD
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; }; then :
a152f366
UD
2612 for ac_file in conftest.o conftest.obj conftest.*; do
2613 test -f "$ac_file" || continue;
2614 case $ac_file in
322e23db 2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
a152f366
UD
2616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2617 break;;
2618 esac
2619done
4df8c11d 2620else
322e23db 2621 $as_echo "$as_me: failed program was:" >&5
a152f366 2622sed 's/^/| /' conftest.$ac_ext >&5
26f56c1c 2623
b08c89d9 2624{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
322e23db 2625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4a531bb0
L
2626as_fn_error $? "cannot compute suffix of object files: cannot compile
2627See \`config.log' for more details" "$LINENO" 5; }
26f56c1c 2628fi
a152f366 2629rm -f conftest.$ac_cv_objext conftest.$ac_ext
cd6ede75 2630fi
b08c89d9 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
322e23db 2632$as_echo "$ac_cv_objext" >&6; }
a152f366
UD
2633OBJEXT=$ac_cv_objext
2634ac_objext=$OBJEXT
b08c89d9 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
322e23db 2636$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f318beb8 2637if ${ac_cv_c_compiler_gnu+:} false; then :
322e23db 2638 $as_echo_n "(cached) " >&6
73237de3 2639else
b08c89d9 2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 2641/* end confdefs.h. */
73237de3 2642
a152f366
UD
2643int
2644main ()
2645{
2646#ifndef __GNUC__
2647 choke me
2648#endif
73237de3 2649
a152f366
UD
2650 ;
2651 return 0;
2652}
2653_ACEOF
b08c89d9 2654if ac_fn_c_try_compile "$LINENO"; then :
a152f366
UD
2655 ac_compiler_gnu=yes
2656else
b08c89d9 2657 ac_compiler_gnu=no
26f56c1c 2658fi
a152f366
UD
2659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660ac_cv_c_compiler_gnu=$ac_compiler_gnu
958f238f 2661
26f56c1c 2662fi
b08c89d9 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
322e23db
UD
2664$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2665if test $ac_compiler_gnu = yes; then
2666 GCC=yes
2667else
2668 GCC=
2669fi
a152f366
UD
2670ac_test_CFLAGS=${CFLAGS+set}
2671ac_save_CFLAGS=$CFLAGS
b08c89d9 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
322e23db 2673$as_echo_n "checking whether $CC accepts -g... " >&6; }
f318beb8 2674if ${ac_cv_prog_cc_g+:} false; then :
322e23db 2675 $as_echo_n "(cached) " >&6
a152f366
UD
2676else
2677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2679 ac_cv_prog_cc_g=no
2680 CFLAGS="-g"
b08c89d9 2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 2682/* end confdefs.h. */
26f56c1c 2683
a152f366
UD
2684int
2685main ()
2686{
958f238f 2687
a152f366
UD
2688 ;
2689 return 0;
2690}
2691_ACEOF
b08c89d9 2692if ac_fn_c_try_compile "$LINENO"; then :
a152f366 2693 ac_cv_prog_cc_g=yes
425ce2ed 2694else
b08c89d9
UD
2695 CFLAGS=""
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 2697/* end confdefs.h. */
425ce2ed 2698
a152f366
UD
2699int
2700main ()
2701{
425ce2ed 2702
a152f366
UD
2703 ;
2704 return 0;
2705}
2706_ACEOF
b08c89d9 2707if ac_fn_c_try_compile "$LINENO"; then :
425ce2ed 2708
b08c89d9
UD
2709else
2710 ac_c_werror_flag=$ac_save_c_werror_flag
a152f366 2711 CFLAGS="-g"
b08c89d9 2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 2713/* end confdefs.h. */
425ce2ed 2714
a152f366
UD
2715int
2716main ()
2717{
425ce2ed 2718
a152f366
UD
2719 ;
2720 return 0;
2721}
2722_ACEOF
b08c89d9 2723if ac_fn_c_try_compile "$LINENO"; then :
a152f366 2724 ac_cv_prog_cc_g=yes
ff886b82 2725fi
a152f366 2726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff886b82 2727fi
a152f366
UD
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729fi
a152f366
UD
2730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_c_werror_flag=$ac_save_c_werror_flag
ff886b82 2732fi
b08c89d9 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
322e23db 2734$as_echo "$ac_cv_prog_cc_g" >&6; }
a152f366
UD
2735if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2739 CFLAGS="-g -O2"
2740 else
2741 CFLAGS="-g"
2742 fi
ff886b82 2743else
a152f366
UD
2744 if test "$GCC" = yes; then
2745 CFLAGS="-O2"
2746 else
2747 CFLAGS=
ff886b82 2748 fi
ff886b82 2749fi
a152f366
UD
2750
2751ac_ext=c
2752ac_cpp='$CPP $CPPFLAGS'
2753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756
2757if test $host != $build; then
2758 for ac_prog in gcc cc
2759do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761set dummy $ac_prog; ac_word=$2
b08c89d9 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2763$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2764if ${ac_cv_prog_BUILD_CC+:} false; then :
322e23db 2765 $as_echo_n "(cached) " >&6
ff886b82 2766else
a152f366
UD
2767 if test -n "$BUILD_CC"; then
2768 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
ff886b82
UD
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
b08c89d9 2775 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2777 ac_cv_prog_BUILD_CC="$ac_prog"
b08c89d9 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ff886b82
UD
2779 break 2
2780 fi
2781done
b08c89d9 2782 done
ff886b82
UD
2783IFS=$as_save_IFS
2784
2785fi
2786fi
a152f366
UD
2787BUILD_CC=$ac_cv_prog_BUILD_CC
2788if test -n "$BUILD_CC"; then
b08c89d9 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
322e23db 2790$as_echo "$BUILD_CC" >&6; }
ff886b82 2791else
b08c89d9 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2793$as_echo "no" >&6; }
ff886b82
UD
2794fi
2795
2796
a152f366 2797 test -n "$BUILD_CC" && break
ff886b82 2798done
ff886b82
UD
2799
2800fi
ff886b82 2801
a152f366
UD
2802# On Suns, sometimes $CPP names a directory.
2803if test -n "$CPP" && test -d "$CPP"; then
2804 CPP=
ff886b82 2805fi
a152f366 2806if test -z "$CPP"; then
bb931195 2807 CPP="$CC -E"
ff886b82 2808fi
a152f366 2809
e4693aa7
RM
2810if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2812set dummy ${ac_tool_prefix}readelf; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
2815if ${ac_cv_prog_READELF+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817else
2818 if test -n "$READELF"; then
2819 ac_cv_prog_READELF="$READELF" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838READELF=$ac_cv_prog_READELF
2839if test -n "$READELF"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
2841$as_echo "$READELF" >&6; }
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
2848fi
2849if test -z "$ac_cv_prog_READELF"; then
2850 ac_ct_READELF=$READELF
2851 # Extract the first word of "readelf", so it can be a program name with args.
2852set dummy readelf; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_ac_ct_READELF+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857else
2858 if test -n "$ac_ct_READELF"; then
2859 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_READELF="readelf"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873 done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2879if test -n "$ac_ct_READELF"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
2881$as_echo "$ac_ct_READELF" >&6; }
2882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887 if test "x$ac_ct_READELF" = x; then
2888 READELF="false"
2889 else
2890 case $cross_compiling:$ac_tool_warned in
2891yes:)
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894ac_tool_warned=yes ;;
2895esac
2896 READELF=$ac_ct_READELF
2897 fi
2898else
2899 READELF="$ac_cv_prog_READELF"
2900fi
2901
2902
a152f366
UD
2903# We need the C++ compiler only for testing.
2904ac_ext=cpp
2905ac_cpp='$CXXCPP $CPPFLAGS'
2906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2909if test -z "$CXX"; then
2910 if test -n "$CCC"; then
2911 CXX=$CCC
2912 else
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2915 do
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b08c89d9 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2919$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2920if ${ac_cv_prog_CXX+:} false; then :
322e23db 2921 $as_echo_n "(cached) " >&6
a152f366
UD
2922else
2923 if test -n "$CXX"; then
2924 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
b08c89d9 2931 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2933 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
b08c89d9 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2935 break 2
2936 fi
2937done
b08c89d9 2938 done
a152f366
UD
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CXX=$ac_cv_prog_CXX
2944if test -n "$CXX"; then
b08c89d9 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
322e23db 2946$as_echo "$CXX" >&6; }
a152f366 2947else
b08c89d9 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2949$as_echo "no" >&6; }
a152f366
UD
2950fi
2951
2952
2953 test -n "$CXX" && break
2954 done
2955fi
2956if test -z "$CXX"; then
2957 ac_ct_CXX=$CXX
2958 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2959do
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961set dummy $ac_prog; ac_word=$2
b08c89d9 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 2963$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 2964if ${ac_cv_prog_ac_ct_CXX+:} false; then :
322e23db 2965 $as_echo_n "(cached) " >&6
a152f366
UD
2966else
2967 if test -n "$ac_ct_CXX"; then
2968 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
b08c89d9 2975 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a152f366 2977 ac_cv_prog_ac_ct_CXX="$ac_prog"
b08c89d9 2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2979 break 2
2980 fi
2981done
b08c89d9 2982 done
a152f366
UD
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2988if test -n "$ac_ct_CXX"; then
b08c89d9 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
322e23db 2990$as_echo "$ac_ct_CXX" >&6; }
a152f366 2991else
b08c89d9 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 2993$as_echo "no" >&6; }
a152f366
UD
2994fi
2995
2996
2997 test -n "$ac_ct_CXX" && break
2998done
2999
3000 if test "x$ac_ct_CXX" = x; then
3001 CXX="g++"
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004yes:)
b08c89d9 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
322e23db 3006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
3007ac_tool_warned=yes ;;
3008esac
3009 CXX=$ac_ct_CXX
3010 fi
3011fi
3012
3013 fi
3014fi
3015# Provide some information about the compiler.
b08c89d9 3016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
322e23db
UD
3017set X $ac_compile
3018ac_compiler=$2
b08c89d9
UD
3019for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
a152f366
UD
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
b08c89d9
UD
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a152f366 3028 ac_status=$?
b08c89d9
UD
3029 if test -s conftest.err; then
3030 sed '10a\
3031... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
3034 fi
3035 rm -f conftest.er1 conftest.err
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038done
a152f366 3039
b08c89d9 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
322e23db 3041$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
f318beb8 3042if ${ac_cv_cxx_compiler_gnu+:} false; then :
322e23db 3043 $as_echo_n "(cached) " >&6
a152f366 3044else
b08c89d9 3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82
UD
3046/* end confdefs.h. */
3047
3048int
3049main ()
3050{
a152f366
UD
3051#ifndef __GNUC__
3052 choke me
3053#endif
ff886b82
UD
3054
3055 ;
3056 return 0;
3057}
3058_ACEOF
b08c89d9 3059if ac_fn_cxx_try_compile "$LINENO"; then :
a152f366 3060 ac_compiler_gnu=yes
ff886b82 3061else
b08c89d9 3062 ac_compiler_gnu=no
ff886b82 3063fi
ff886b82 3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a152f366 3065ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
ff886b82 3066
ff886b82 3067fi
b08c89d9 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
322e23db
UD
3069$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3070if test $ac_compiler_gnu = yes; then
3071 GXX=yes
3072else
3073 GXX=
3074fi
a152f366
UD
3075ac_test_CXXFLAGS=${CXXFLAGS+set}
3076ac_save_CXXFLAGS=$CXXFLAGS
b08c89d9 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
322e23db 3078$as_echo_n "checking whether $CXX accepts -g... " >&6; }
f318beb8 3079if ${ac_cv_prog_cxx_g+:} false; then :
322e23db 3080 $as_echo_n "(cached) " >&6
ff886b82 3081else
a152f366
UD
3082 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3083 ac_cxx_werror_flag=yes
3084 ac_cv_prog_cxx_g=no
3085 CXXFLAGS="-g"
b08c89d9 3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82 3087/* end confdefs.h. */
ff886b82 3088
ff886b82
UD
3089int
3090main ()
3091{
a152f366 3092
ff886b82
UD
3093 ;
3094 return 0;
3095}
3096_ACEOF
b08c89d9 3097if ac_fn_cxx_try_compile "$LINENO"; then :
a152f366 3098 ac_cv_prog_cxx_g=yes
ff886b82 3099else
b08c89d9
UD
3100 CXXFLAGS=""
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366 3102/* end confdefs.h. */
ff886b82 3103
a152f366
UD
3104int
3105main ()
3106{
ff886b82 3107
a152f366
UD
3108 ;
3109 return 0;
3110}
ff886b82 3111_ACEOF
b08c89d9 3112if ac_fn_cxx_try_compile "$LINENO"; then :
ff886b82 3113
b08c89d9
UD
3114else
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
a152f366 3116 CXXFLAGS="-g"
b08c89d9 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff886b82 3118/* end confdefs.h. */
a152f366 3119
ff886b82
UD
3120int
3121main ()
3122{
a152f366 3123
ff886b82
UD
3124 ;
3125 return 0;
3126}
3127_ACEOF
b08c89d9 3128if ac_fn_cxx_try_compile "$LINENO"; then :
a152f366 3129 ac_cv_prog_cxx_g=yes
ff886b82 3130fi
a152f366
UD
3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132fi
a152f366
UD
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134fi
a152f366
UD
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3137fi
b08c89d9 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
322e23db 3139$as_echo "$ac_cv_prog_cxx_g" >&6; }
a152f366
UD
3140if test "$ac_test_CXXFLAGS" = set; then
3141 CXXFLAGS=$ac_save_CXXFLAGS
3142elif test $ac_cv_prog_cxx_g = yes; then
3143 if test "$GXX" = yes; then
3144 CXXFLAGS="-g -O2"
3145 else
3146 CXXFLAGS="-g"
3147 fi
3a12e572 3148else
a152f366
UD
3149 if test "$GXX" = yes; then
3150 CXXFLAGS="-O2"
3151 else
3152 CXXFLAGS=
3153 fi
3a12e572 3154fi
a152f366
UD
3155ac_ext=c
3156ac_cpp='$CPP $CPPFLAGS'
3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_c_compiler_gnu
26f56c1c 3160
e4693aa7 3161# It's useless to us if it can't link programs (e.g. missing -lstdc++).
0cae3f4b 3162
e4693aa7
RM
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3164$as_echo_n "checking whether $CXX can link programs... " >&6; }
3165if ${libc_cv_cxx_link_ok+:} false; then :
3166 $as_echo_n "(cached) " >&6
0cae3f4b 3167else
e4693aa7
RM
3168 ac_ext=cpp
3169ac_cpp='$CXXCPP $CPPFLAGS'
3170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
0cae3f4b 3173
d337ceb7 3174# Default, dynamic case.
e4693aa7
RM
3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h. */
0cae3f4b 3177
e4693aa7
RM
3178int
3179main ()
3180{
0cae3f4b 3181
e4693aa7
RM
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186if ac_fn_cxx_try_link "$LINENO"; then :
3187 libc_cv_cxx_link_ok=yes
0cae3f4b 3188else
e4693aa7 3189 libc_cv_cxx_link_ok=no
0cae3f4b 3190fi
e4693aa7
RM
3191rm -f core conftest.err conftest.$ac_objext \
3192 conftest$ac_exeext conftest.$ac_ext
d337ceb7
FW
3193# Static case.
3194old_LDFLAGS="$LDFLAGS"
3195LDFLAGS="$LDFLAGS -static"
3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
3198
3199#include <iostream>
3200
3201int
3202main()
3203{
3204 std::cout << "Hello, world!";
3205 return 0;
3206}
3207
3208_ACEOF
3209if ac_fn_cxx_try_link "$LINENO"; then :
3210
3211else
3212 libc_cv_cxx_link_ok=no
3213fi
3214rm -f core conftest.err conftest.$ac_objext \
3215 conftest$ac_exeext conftest.$ac_ext
3216LDFLAGS="$old_LDFLAGS"
e4693aa7
RM
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
0cae3f4b 3222
0cae3f4b 3223fi
e4693aa7
RM
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3225$as_echo "$libc_cv_cxx_link_ok" >&6; }
3226if test $libc_cv_cxx_link_ok != yes; then :
3227 CXX=
3228fi
26f56c1c 3229
a152f366 3230if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
4a531bb0 3231 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
26f56c1c 3232fi
3a12e572 3233
a152f366
UD
3234# This will get text that should go into config.make.
3235config_vars=
3236
3237# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3238
3239# Check whether --with-gd was given.
b08c89d9 3240if test "${with_gd+set}" = set; then :
a152f366
UD
3241 withval=$with_gd; case "$with_gd" in
3242yes|''|no) ;;
3243*) libgd_include="-I$withval/include"
3244 libgd_ldflags="-L$withval/lib" ;;
26f56c1c 3245esac
cd6ede75 3246
a152f366 3247fi
cd6ede75
UD
3248
3249
a152f366 3250# Check whether --with-gd-include was given.
b08c89d9 3251if test "${with_gd_include+set}" = set; then :
a152f366
UD
3252 withval=$with_gd_include; case "$with_gd_include" in
3253''|no) ;;
3254*) libgd_include="-I$withval" ;;
cd6ede75
UD
3255esac
3256
a152f366 3257fi
cd6ede75 3258
0816838f 3259
a152f366 3260# Check whether --with-gd-lib was given.
b08c89d9 3261if test "${with_gd_lib+set}" = set; then :
a152f366
UD
3262 withval=$with_gd_lib; case "$with_gd_lib" in
3263''|no) ;;
3264*) libgd_ldflags="-L$withval" ;;
cd6ede75
UD
3265esac
3266
a808d541
UD
3267fi
3268
f4b07664 3269
a152f366
UD
3270if test -n "$libgd_include"; then
3271 config_vars="$config_vars
3272CFLAGS-memusagestat.c = $libgd_include"
3273fi
3274if test -n "$libgd_ldflags"; then
3275 config_vars="$config_vars
3276libgd-LDFLAGS = $libgd_ldflags"
3277fi
2ceaa76a 3278
2ceaa76a 3279
a152f366 3280# Check whether --with-fp was given.
b08c89d9 3281if test "${with_fp+set}" = set; then :
a152f366
UD
3282 withval=$with_fp; with_fp=$withval
3283else
3284 with_fp=yes
26f56c1c
UD
3285fi
3286
2ceaa76a 3287
8f73811b 3288
a152f366 3289# Check whether --with-binutils was given.
b08c89d9 3290if test "${with_binutils+set}" = set; then :
a152f366
UD
3291 withval=$with_binutils; path_binutils=$withval
3292else
3293 path_binutils=''
3294fi
ff886b82
UD
3295
3296
a152f366 3297# Check whether --with-selinux was given.
b08c89d9 3298if test "${with_selinux+set}" = set; then :
a152f366
UD
3299 withval=$with_selinux; with_selinux=$withval
3300else
3301 with_selinux=auto
3302fi
e0a3ed4f 3303
8f73811b 3304
e0a3ed4f 3305
a152f366 3306# Check whether --with-headers was given.
b08c89d9 3307if test "${with_headers+set}" = set; then :
a152f366
UD
3308 withval=$with_headers; sysheaders=$withval
3309else
3310 sysheaders=''
7efb9bd1
UD
3311fi
3312
dfd2257a 3313
f781ef40
RM
3314
3315
c91c505f 3316
f781ef40
RM
3317# Check whether --with-default-link was given.
3318if test "${with_default_link+set}" = set; then :
3319 withval=$with_default_link; use_default_link=$withval
3320else
fd5e21c7 3321 use_default_link=default
f781ef40
RM
3322fi
3323
3324
a152f366 3325# Check whether --enable-sanity-checks was given.
b08c89d9 3326if test "${enable_sanity_checks+set}" = set; then :
a152f366
UD
3327 enableval=$enable_sanity_checks; enable_sanity=$enableval
3328else
3329 enable_sanity=yes
dfd2257a
UD
3330fi
3331
cd6ede75 3332
a152f366 3333# Check whether --enable-shared was given.
b08c89d9 3334if test "${enable_shared+set}" = set; then :
a152f366
UD
3335 enableval=$enable_shared; shared=$enableval
3336else
a0da5fe1 3337 shared=yes
a152f366 3338fi
cd6ede75 3339
a152f366 3340# Check whether --enable-profile was given.
b08c89d9 3341if test "${enable_profile+set}" = set; then :
a152f366
UD
3342 enableval=$enable_profile; profile=$enableval
3343else
3344 profile=no
3345fi
cd6ede75 3346
1cba4036
MF
3347# Check whether --enable-timezone-tools was given.
3348if test "${enable_timezone_tools+set}" = set; then :
3349 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3350else
3351 enable_timezone_tools=yes
3352fi
3353
3354
a152f366 3355
740b3dbe
L
3356# Check whether --enable-hardcoded-path-in-tests was given.
3357if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3358 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3359else
3360 hardcoded_path_in_tests=no
3361fi
3362
3363
3364
a152f366 3365# Check whether --enable-stackguard-randomization was given.
b08c89d9 3366if test "${enable_stackguard_randomization+set}" = set; then :
a152f366
UD
3367 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3368else
3369 enable_stackguard_randomize=no
cd6ede75
UD
3370fi
3371
a152f366 3372if test "$enable_stackguard_randomize" = yes; then
b08c89d9 3373 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
cd6ede75 3374
a152f366 3375fi
cd6ede75 3376
1717da59
AK
3377# Check whether --enable-lock-elision was given.
3378if test "${enable_lock_elision+set}" = set; then :
3379 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3380else
3381 enable_lock_elision=no
3382fi
3383
5a414ff7 3384
1717da59
AK
3385if test "$enable_lock_elision" = yes ; then
3386 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3387
3388fi
3389
a152f366 3390# Check whether --enable-add-ons was given.
b08c89d9 3391if test "${enable_add_ons+set}" = set; then :
a152f366
UD
3392 enableval=$enable_add_ons;
3393else
3394 enable_add_ons=yes
3395fi
cd6ede75 3396
cd6ede75 3397
a152f366 3398# Check whether --enable-hidden-plt was given.
b08c89d9 3399if test "${enable_hidden_plt+set}" = set; then :
a152f366
UD
3400 enableval=$enable_hidden_plt; hidden=$enableval
3401else
3402 hidden=yes
2de7874e 3403fi
cd6ede75 3404
a152f366 3405if test "x$hidden" = xno; then
b08c89d9 3406 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
cd6ede75 3407
a152f366 3408fi
e0a3ed4f 3409
a152f366 3410# Check whether --enable-bind-now was given.
b08c89d9 3411if test "${enable_bind_now+set}" = set; then :
a152f366
UD
3412 enableval=$enable_bind_now; bindnow=$enableval
3413else
3414 bindnow=no
3415fi
e0a3ed4f 3416
e0a3ed4f 3417
e0a3ed4f 3418
a152f366 3419# Check whether --enable-static-nss was given.
b08c89d9 3420if test "${enable_static_nss+set}" = set; then :
a152f366
UD
3421 enableval=$enable_static_nss; static_nss=$enableval
3422else
3423 static_nss=no
3424fi
e0a3ed4f 3425
a152f366
UD
3426if test x"$static_nss" = xyes || test x"$shared" = xno; then
3427 static_nss=yes
b08c89d9 3428 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
cd6ede75 3429
a152f366 3430fi
cd6ede75 3431
a152f366 3432# Check whether --enable-force-install was given.
b08c89d9 3433if test "${enable_force_install+set}" = set; then :
a152f366 3434 enableval=$enable_force_install; force_install=$enableval
3a12e572 3435else
a152f366
UD
3436 force_install=yes
3437fi
ff886b82 3438
3a12e572 3439
cd6ede75 3440
8894bad3
AM
3441# Check whether --enable-maintainer-mode was given.
3442if test "${enable_maintainer_mode+set}" = set; then :
3443 enableval=$enable_maintainer_mode; maintainer=$enableval
3444else
3445 maintainer=no
3446fi
3447
3448
a152f366 3449# Check whether --enable-kernel was given.
b08c89d9 3450if test "${enable_kernel+set}" = set; then :
a152f366 3451 enableval=$enable_kernel; minimum_kernel=$enableval
cd6ede75 3452fi
a152f366
UD
3453
3454if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3455 # Better nothing than this.
3456 minimum_kernel=""
3457else
3458 if test "$minimum_kernel" = current; then
3459 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
cd6ede75
UD
3460 fi
3461fi
cd6ede75 3462
a152f366 3463# Check whether --enable-all-warnings was given.
b08c89d9 3464if test "${enable_all_warnings+set}" = set; then :
a152f366
UD
3465 enableval=$enable_all_warnings; all_warnings=$enableval
3466fi
cd6ede75 3467
5c2a0669 3468
cd6ede75 3469
a4ecc9eb
JM
3470# Check whether --enable-werror was given.
3471if test "${enable_werror+set}" = set; then :
3472 enableval=$enable_werror; enable_werror=$enableval
3473else
3474 enable_werror=yes
3475fi
3476
3477
3478
a152f366 3479# Check whether --enable-multi-arch was given.
b08c89d9 3480if test "${enable_multi_arch+set}" = set; then :
a152f366 3481 enableval=$enable_multi_arch; multi_arch=$enableval
cd6ede75 3482else
6f89d2f3 3483 multi_arch=default
cd6ede75
UD
3484fi
3485
4bca4c17 3486
a152f366 3487# Check whether --enable-nss-crypt was given.
b08c89d9 3488if test "${enable_nss_crypt+set}" = set; then :
a152f366 3489 enableval=$enable_nss_crypt; nss_crypt=$enableval
4bca4c17 3490else
a152f366 3491 nss_crypt=no
4bca4c17
UD
3492fi
3493
a152f366
UD
3494if test x$nss_crypt = xyes; then
3495 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3496 if test $? -ne 0; then
4a531bb0 3497 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
26f56c1c 3498 fi
a152f366
UD
3499 old_CFLAGS="$CFLAGS"
3500 CFLAGS="$CFLAGS $nss_includes"
3501
b08c89d9
UD
3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h. */
a152f366
UD
3504typedef int PRBool;
3505#include <hasht.h>
3506#include <nsslowhash.h>
3507void f (void) { NSSLOW_Init (); }
b68e08db
RM
3508int
3509main ()
3510{
3511
3512 ;
3513 return 0;
3514}
a152f366 3515_ACEOF
b08c89d9 3516if ac_fn_c_try_compile "$LINENO"; then :
a152f366 3517 libc_cv_nss_crypt=yes
63bda0c1 3518else
4a531bb0 3519 as_fn_error $? "
b08c89d9 3520cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
04be94a8 3521fi
a152f366
UD
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 old_LIBS="$LIBS"
3524 LIBS="$LIBS -lfreebl3"
b08c89d9 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a152f366
UD
3526/* end confdefs.h. */
3527typedef int PRBool;
3528#include <hasht.h>
3529#include <nsslowhash.h>
3530int
3531main ()
3532{
3533NSSLOW_Init();
3534 ;
3535 return 0;
3536}
3537_ACEOF
b08c89d9 3538if ac_fn_c_try_link "$LINENO"; then :
a152f366 3539 libc_cv_nss_crypt=yes
cd6ede75 3540else
4a531bb0 3541 as_fn_error $? "
b08c89d9 3542cannot link program using lowlevel NSS hash functions" "$LINENO" 5
cd6ede75 3543fi
b08c89d9
UD
3544rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext conftest.$ac_ext
a152f366
UD
3546 CFLAGS="$old_CFLAGS"
3547 LIBS="$old_LIBS"
4bca4c17 3548else
a152f366 3549 libc_cv_nss_crypt=no
4bca4c17
UD
3550fi
3551
cd6ede75 3552
3a097cc7 3553
021db4be
AJ
3554# Check whether --enable-obsolete-rpc was given.
3555if test "${enable_obsolete_rpc+set}" = set; then :
3556 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3557else
3558 link_obsolete_rpc=no
3559fi
3560
3561
3562
3563if test "$link_obsolete_rpc" = yes; then
3564 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3565
3566fi
3567
3a097cc7
RM
3568# Check whether --enable-systemtap was given.
3569if test "${enable_systemtap+set}" = set; then :
3570 enableval=$enable_systemtap; systemtap=$enableval
3571else
3572 systemtap=no
3573fi
3574
3575if test "x$systemtap" != xno; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3577$as_echo_n "checking for systemtap static probe support... " >&6; }
3578if ${libc_cv_sdt+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 old_CFLAGS="$CFLAGS"
3582 CFLAGS="-std=gnu99 $CFLAGS"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h. */
3585#include <sys/sdt.h>
3586void foo (int i, void *p)
3587{
3588 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3589 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593 libc_cv_sdt=yes
3594else
3595 libc_cv_sdt=no
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 CFLAGS="$old_CFLAGS"
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3601$as_echo "$libc_cv_sdt" >&6; }
3602 if test $libc_cv_sdt = yes; then
3603 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3604
3605 elif test "x$systemtap" != xauto; then
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3609See \`config.log' for more details" "$LINENO" 5; }
3610 fi
3611fi
3612
c53d909c
RM
3613# Check whether --enable-build-nscd was given.
3614if test "${enable_build_nscd+set}" = set; then :
3615 enableval=$enable_build_nscd; build_nscd=$enableval
3616else
3617 build_nscd=default
3618fi
3619
3620
3621
3cc3ef96
RM
3622# Note the use of $use_nscd is near the bottom of the file.
3623# Check whether --enable-nscd was given.
3624if test "${enable_nscd+set}" = set; then :
3625 enableval=$enable_nscd; use_nscd=$enableval
3626else
3627 use_nscd=yes
3628fi
3629
3630
e4608715
CD
3631# Check whether --enable-pt_chown was given.
3632if test "${enable_pt_chown+set}" = set; then :
3633 enableval=$enable_pt_chown; build_pt_chown=$enableval
3634else
3635 build_pt_chown=no
3636fi
3637
3638
8c12f01d 3639if test "$build_pt_chown" = yes; then
e4608715
CD
3640 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3641
3642fi
3643
ebf27d12
ST
3644# The abi-tags file uses a fairly simplistic model for name recognition that
3645# can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3646# $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3647# This doesn't get used much beyond that, so it's fairly safe.
3648case "$host_os" in
3649linux*)
3650 ;;
3651gnu*)
3652 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3653 ;;
3654esac
3655
5695d46f
AS
3656# Check whether --enable-mathvec was given.
3657if test "${enable_mathvec+set}" = set; then :
3658 enableval=$enable_mathvec; build_mathvec=$enableval
3659else
3660 build_mathvec=notset
3661fi
3662
3663
a152f366
UD
3664# We keep the original values in `$config_*' and never modify them, so we
3665# can write them unchanged into config.make. Everything else uses
3666# $machine, $vendor, and $os, and changes them whenever convenient.
3667config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3a12e572 3668
a152f366
UD
3669# Don't allow vendor == "unknown"
3670test "$config_vendor" = unknown && config_vendor=
3671config_os="`echo $config_os | sed 's/^unknown-//'`"
3a12e572 3672
a152f366 3673# Some configurations imply other options.
0269750c 3674elf=yes
3a12e572 3675
a152f366
UD
3676# The configure fragment of an add-on port can modify these to supplement
3677# or override the table in the case statement below. No fragment should
3678# ever change the config_* variables, however.
3679machine=$config_machine
3680vendor=$config_vendor
3681os=$config_os
3682base_os=''
3a12e572 3683
a152f366 3684submachine=
26f56c1c 3685
a152f366 3686# Check whether --with-cpu was given.
b08c89d9 3687if test "${with_cpu+set}" = set; then :
a152f366 3688 withval=$with_cpu; case "$withval" in
4a531bb0 3689 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
a152f366
UD
3690 no) ;;
3691 *) submachine="$withval" ;;
3692 esac
3a12e572
UD
3693
3694fi
3a12e572 3695
3a12e572 3696
05439291
RM
3697# An preconfigure script can set this when it wants to disable the sanity
3698# check below.
3699libc_config_ok=no
3700
10a803e0
RM
3701if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3702then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3704$as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3705 for frag in $frags; do
3706 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3707 echo $ECHO_N "$name $ECHO_C" >&6
3708 . "$frag"
3709 done
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3711$as_echo "" >&6; }
3712fi
3713
a152f366 3714subdirs="$subdirs "
3a12e572 3715
3a12e572 3716
a152f366
UD
3717case "$enable_add_ons" in
3718''|no) add_ons= ;;
3719yes|'*')
3720 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3721 sed 's@/[^/]*$@@' | sort | uniq`
3722 add_ons_automatic=yes
3723 ;;
3724*) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3725 add_ons_automatic=no ;;
26f56c1c 3726esac
2abf9ff1 3727
a152f366
UD
3728configured_add_ons=
3729add_ons_sfx=
3730add_ons_pfx=
3731if test x"$add_ons" != x; then
3732 for f in $add_ons; do
3733 # Some sanity checks
3734 case "$f" in
3735 crypt)
4a531bb0 3736 as_fn_error $? "
a152f366
UD
3737*** It seems that you're using an old \`crypt' add-on. crypt is now
3738*** part of glibc and using the old add-on will not work with this
3739*** release. Start again with fresh sources and without the old
b08c89d9 3740*** \`crypt' add-on." "$LINENO" 5
a152f366
UD
3741 ;;
3742 localedata)
4a531bb0 3743 as_fn_error $? "
a152f366
UD
3744*** It seems that you're using an old \`localedata' add-on. localedata
3745*** is now part of glibc and using the old add-on will not work with
3746*** this release. Start again with fresh sources and without the old
b08c89d9 3747*** \`localedata' add-on." "$LINENO" 5
a152f366
UD
3748 ;;
3749 esac
3750 done
3a12e572 3751
a152f366
UD
3752 # Now source each add-on's configure fragment.
3753 # The fragments can use $srcdir/$libc_add_on to find themselves,
3754 # and test $add_ons_automatic to see if they were explicitly requested.
3755 # A fragment can clear (or even change) $libc_add_on to affect
3756 # whether it goes into the list to be actually used in the build.
3757 use_add_ons=
3758 for libc_add_on in $add_ons; do
3759 # Test whether such a directory really exists.
3760 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3761 case "$libc_add_on" in
3762 /*)
3763 libc_add_on_srcdir=$libc_add_on
3764 ;;
3765 *)
3766 test -d "$srcdir/$libc_add_on" || {
77e8bddf 3767 if test -d "$libc_add_on"; then
a152f366
UD
3768 libc_add_on="`pwd`/$libc_add_on"
3769 else
4a531bb0 3770 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
a152f366
UD
3771 fi
3772 }
3773 libc_add_on_srcdir=$srcdir/$libc_add_on
3774 ;;
3775 esac
2abf9ff1 3776
a152f366
UD
3777 libc_add_on_frag=$libc_add_on_srcdir/configure
3778 libc_add_on_canonical=
7967983f 3779 libc_add_on_config_subdirs=
a152f366 3780 if test -r "$libc_add_on_frag"; then
b08c89d9 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
322e23db 3782$as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
a152f366
UD
3783 libc_add_on_canonical=unknown
3784 libc_add_on_subdirs=
3785 . "$libc_add_on_frag"
3786 test -z "$libc_add_on" || {
77e8bddf 3787 configured_add_ons="$configured_add_ons $libc_add_on"
a152f366 3788 if test "x$libc_add_on_canonical" = xunknown; then
4a531bb0 3789 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
a152f366
UD
3790 fi
3791 for d in $libc_add_on_subdirs; do
3792 case "$libc_add_on" in
3793 /*) subdir_srcdir="$libc_add_on" ;;
3794 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3795 esac
3796 case "$d" in
3797 .)
3798 d="${libc_add_on_canonical:-$libc_add_on}"
3799 ;;
3800 /*)
3801 subdir_srcdir="$d"
3802 ;;
3803 *)
3804 subdir_srcdir="$subdir_srcdir/$d"
3805 ;;
3806 esac
3807 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3808 add_on_subdirs="$add_on_subdirs $d"
3809 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3810$d-srcdir = $subdir_srcdir"
3811 done
7967983f
RM
3812 for d in $libc_add_on_config_subdirs; do
3813 case "$d" in
4a531bb0 3814 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
7967983f
RM
3815 esac
3816 if test ! -d "$libc_add_on_srcdir/$d"; then
4a531bb0 3817 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
7967983f
RM
3818 fi
3819 case "$libc_add_on" in
4a531bb0 3820 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
7967983f
RM
3821 esac
3822 subdirs="$subdirs $libc_add_on/$d"
3823 done
a152f366
UD
3824 }
3825 fi
3826 if test -n "$libc_add_on"; then
3827 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
10a803e0
RM
3828then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
322e23db 3830$as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
10a803e0
RM
3831 for frag in $frags; do
3832 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3833 echo $ECHO_N "$name $ECHO_C" >&6
3834 . "$frag"
3835 done
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
322e23db 3837$as_echo "" >&6; }
10a803e0 3838fi
a152f366
UD
3839 use_add_ons="$use_add_ons $libc_add_on"
3840 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3841 test -z "$libc_add_on_canonical" ||
3842 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3843 fi
3844 done
3845 # Use echo to strip excess whitespace.
3846 add_ons="`echo $use_add_ons`"
5c2a0669 3847fi
26f56c1c 3848
3a12e572 3849
3a12e572 3850
3a12e572 3851
a152f366
UD
3852###
3853### I put this here to prevent those annoying emails from people who cannot
3854### read and try to compile glibc on unsupported platforms. --drepper
3855###
3856### By using the undocumented --enable-hacker-mode option for configure
3857### one can skip this test to make the configuration not fail for unsupported
3858### platforms.
3859###
3860if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3861 case "$machine-$host_os" in
2ce4f015 3862 *-linux* | *-gnu*)
a152f366
UD
3863 ;;
3864 *)
3865 echo "*** The GNU C library is currently not available for this platform."
3866 echo "*** So far nobody cared to port it and if there is no volunteer it"
3867 echo "*** might never happen. So, if you have interest to see glibc on"
3868 echo "*** this platform visit"
3869 echo "*** http://www.gnu.org/software/libc/porting.html"
3870 echo "*** and join the group of porters"
3871 exit 1
3872 ;;
3873 esac
3a12e572 3874fi
2abf9ff1 3875
3e239be6
JM
3876# Set base_machine if not set by a preconfigure fragment.
3877test -n "$base_machine" || base_machine=$machine
26f56c1c 3878
3a12e572 3879
0cae3f4b
MF
3880# For the multi-arch option we need support in the assembler & linker.
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
3882$as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
3883if ${libc_cv_ld_gnu_indirect_function+:} false; then :
84b9230c
MF
3884 $as_echo_n "(cached) " >&6
3885else
786b0b67 3886 cat > conftest.S <<EOF
84b9230c 3887.type foo,%gnu_indirect_function
0cae3f4b
MF
3888foo:
3889.globl _start
3890_start:
3891.globl __start
3892__start:
3893.data
786b0b67
AS
3894#ifdef _LP64
3895.quad foo
3896#else
0cae3f4b 3897.long foo
786b0b67 3898#endif
84b9230c 3899EOF
0cae3f4b
MF
3900libc_cv_ld_gnu_indirect_function=no
3901if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
3902 -nostartfiles -nostdlib \
786b0b67 3903 -o conftest conftest.S 1>&5 2>&5; then
0cae3f4b
MF
3904 # Do a link to see if the backend supports IFUNC relocs.
3905 $READELF -r conftest 1>&5
3906 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
3907 libc_cv_ld_gnu_indirect_function=yes
3908 }
84b9230c
MF
3909fi
3910rm -f conftest*
3911fi
0cae3f4b
MF
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
3913$as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
84b9230c 3914
0cae3f4b 3915if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
84b9230c 3916 if test x"$multi_arch" = xyes; then
4a531bb0 3917 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
84b9230c
MF
3918 else
3919 multi_arch=no
3920 fi
3921fi
6270516e 3922multi_arch_d=
84b9230c
MF
3923if test x"$multi_arch" != xno; then
3924 multi_arch_d=/multiarch
3925fi
3926
a152f366
UD
3927# Compute the list of sysdep directories for this configuration.
3928# This can take a while to compute.
3929sysdep_dir=$srcdir/sysdeps
b08c89d9 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
322e23db 3931$as_echo_n "checking sysdep dirs... " >&6; }
a152f366
UD
3932# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
3933os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
3934
3935test "x$base_os" != x || case "$os" in
3936gnu*)
3937 base_os=mach/hurd ;;
2ce4f015 3938linux*)
a152f366 3939 base_os=unix/sysv ;;
a152f366 3940esac
3a12e572 3941
a152f366
UD
3942# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
3943tail=$os
3944ostry=$os
3945while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
3946 ostry="$ostry /$o"
3947 tail=$o
3a12e572 3948done
a152f366
UD
3949o=`echo $tail | sed 's/[0-9]*$//'`
3950if test $o != $tail; then
3951 ostry="$ostry /$o"
3952fi
3953# For linux-gnu, try linux-gnu, then linux.
3954o=`echo $tail | sed 's/-.*$//'`
3955if test $o != $tail; then
3956 ostry="$ostry /$o"
cd6ede75 3957fi
3a12e572 3958
a152f366
UD
3959# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
3960base=
3961tail=$base_os
3962while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
3963 set $b
3964 base="$base /$1"
3965 tail="$2"
3966done
cd6ede75 3967
a152f366
UD
3968# For sparc/sparc32, try sparc/sparc32 and then sparc.
3969mach=
3970tail=$machine${submachine:+/$submachine}
3971while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
3972 set $m
3973 # Prepend the machine's FPU directory unless --without-fp.
3974 if test "$with_fp" = yes; then
6270516e 3975 maybe_fpu=/fpu
26f56c1c 3976 else
6270516e 3977 maybe_fpu=/nofpu
925c3c5c 3978 fi
6270516e
RM
3979 # For each machine term, try it with and then without /multiarch.
3980 for try_fpu in $maybe_fpu ''; do
3981 for try_multi in $multi_arch_d ''; do
3982 mach="$mach /$1$try_fpu$try_multi"
3983 done
3984 done
a152f366 3985 tail="$2"
925c3c5c 3986done
a152f366
UD
3987
3988
3989# Find what sysdep directories exist.
3990sysnames_add_ons=
3991sysnames=
3992for b in $base ''; do
3993 for m0 in $mach ''; do
3994 for v in /$vendor ''; do
3995 test "$v" = / && continue
3996 for o in /$ostry ''; do
3997 test "$o" = / && continue
6270516e 3998 for m in $mach ''; do
a152f366
UD
3999 for d in $add_ons_pfx ''; do
4000 for a in $add_ons_sfx ''; do
1c9f1a02
RM
4001 try_suffix="$m0$b$v$o$m"
4002 if test -n "$try_suffix"; then
77e8bddf
AS
4003 try_srcdir="${srcdir}/"
4004 case "$d" in
a152f366
UD
4005 /*) try_srcdir= ;;
4006 esac
1c9f1a02 4007 try="${d}sysdeps$try_suffix$a"
a152f366
UD
4008 test -n "$enable_debug_configure" &&
4009 echo "$0 DEBUG: try $try" >&2
4010 if test -d "$try_srcdir$try"; then
4011 sysnames="$sysnames $try"
4012 { test -n "$o" || test -n "$b"; } && os_used=t
4013 { test -n "$m" || test -n "$m0"; } && machine_used=t
4014 case x${m0:-$m} in
4015 x*/$submachine) submachine_used=t ;;
4016 esac
4017 if test -n "$d"; then
4018 case "$sysnames_add_ons" in
4019 *" $d "*) ;;
4020 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4021 esac
4022 fi
4023 fi
4024 fi
4025 done
4026 done
4027 done
4028 done
4029 done
4030 done
925c3c5c
UD
4031done
4032
6f89d2f3
L
4033# If the assembler supports gnu_indirect_function symbol type and the
4034# architecture supports multi-arch, we enable multi-arch by default.
84b9230c
MF
4035case $sysnames_add_ons$sysnames in
4036*"$multi_arch_d"*)
4037 ;;
4038*)
77e8bddf 4039 test x"$multi_arch" = xdefault && multi_arch=no
84b9230c
MF
4040 ;;
4041esac
4042if test x"$multi_arch" != xno; then
b08c89d9 4043 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
6f89d2f3
L
4044
4045fi
4046
4047
a152f366 4048if test -z "$os_used" && test "$os" != none; then
4a531bb0 4049 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
925c3c5c 4050fi
a152f366 4051if test -z "$machine_used" && test "$machine" != none; then
4a531bb0 4052 as_fn_error $? "The $machine is not supported." "$LINENO" 5
925c3c5c 4053fi
a152f366 4054if test -z "$submachine_used" && test -n "$submachine"; then
4a531bb0 4055 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
925c3c5c
UD
4056fi
4057
26f56c1c 4058
a152f366
UD
4059# We have now validated the configuration.
4060
a152f366
UD
4061# Expand the list of system names into a full list of directories
4062# from each element's parent name and Implies file (if present).
4063set $sysnames
4064names=
4065while test $# -gt 0; do
4066 name=$1
4067 shift
26f56c1c 4068
a152f366
UD
4069 case " $names " in *" $name "*)
4070 # Already in the list.
4071 continue
4072 esac
925c3c5c 4073
a152f366
UD
4074 # Report each name as we discover it, so there is no long pause in output.
4075 echo $ECHO_N "$name $ECHO_C" >&6
925c3c5c 4076
a152f366
UD
4077 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4078
4079 case $name in
4080 /*) xsrcdir= ;;
4081 *) xsrcdir=$srcdir/ ;;
4082 esac
4083 test -n "$enable_debug_configure" &&
4084 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4085
ba75122d
RM
4086 for implies_file in Implies Implies-before Implies-after; do
4087 implies_type=`echo $implies_file | sed s/-/_/`
4088 eval ${implies_type}=
4089 if test -f $xsrcdir$name/$implies_file; then
4090 # Collect more names from the `Implies' file (removing comments).
4091 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4092 for x in $implied_candidate; do
4093 found=no
4094 if test -d $xsrcdir$name_base/$x; then
4095 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
a152f366 4096 found=yes
ba75122d
RM
4097 fi
4098 for d in $add_ons_pfx ''; do
4099 try="${d}sysdeps/$x"
4100 case $d in
4101 /*) try_srcdir= ;;
4102 *) try_srcdir=$srcdir/ ;;
a152f366 4103 esac
ba75122d
RM
4104 test -n "$enable_debug_configure" &&
4105 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4106 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4107 then
4108 eval "${implies_type}=\"\$${implies_type} \$try\""
4109 found=yes
4110 case "$sysnames_add_ons" in
4111 *" $d "*) ;;
4112 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4113 esac
4114 fi
4115 done
4116 if test $found = no; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4118$as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
a152f366
UD
4119 fi
4120 done
ba75122d
RM
4121 fi
4122 done
925c3c5c 4123
a152f366
UD
4124 # Add NAME to the list of names.
4125 names="$names $name"
925c3c5c 4126
a152f366
UD
4127 # Find the parent of NAME, using the empty string if it has none.
4128 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
925c3c5c 4129
ba75122d
RM
4130 test -n "$enable_debug_configure" &&
4131 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
57633811 4132Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
ba75122d 4133
a152f366
UD
4134 # Add the names implied by NAME, and NAME's parent (if it has one), to
4135 # the list of names to be processed (the argument list). We prepend the
4136 # implied names to the list and append the parent. We want implied
4137 # directories to come before further directories inferred from the
4138 # configuration components; this ensures that for sysv4, unix/common
4139 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4140 # after sysv4).
ba75122d 4141 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
a152f366
UD
4142 test -n "$sysnames" && set $sysnames
4143done
2abf9ff1 4144
a152f366 4145# Add the default directories.
51d8bb8f 4146default_sysnames="sysdeps/generic"
a152f366 4147sysnames="$names $default_sysnames"
26f56c1c 4148
a152f366 4149# The other names were emitted during the scan.
b08c89d9 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
322e23db 4151$as_echo "$default_sysnames" >&6; }
925c3c5c 4152
a152f366
UD
4153# Collect the list of add-ons that supply partial sysdeps trees.
4154sysdeps_add_ons=
4155for add_on in $add_ons; do
4156 case "$add_on" in
4157 /*) xsrcdir= ;;
4158 *) xsrcdir="$srcdir/" ;;
4159 esac
925c3c5c 4160
a152f366
UD
4161 test -d "$xsrcdir$add_on/sysdeps" || {
4162 case "$configured_add_ons " in
4163 *" $add_on "*) ;;
4164 *|'')
4a531bb0 4165 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
a152f366
UD
4166 ;;
4167 esac
4168 continue
4169 }
2abf9ff1 4170
a152f366
UD
4171 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4172 case "$sysnames_add_ons" in
4173 *" $add_on/ "*) ;;
4174 *|'')
b08c89d9 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
322e23db 4176$as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
a152f366
UD
4177 continue ;;
4178 esac
26f56c1c 4179
a152f366
UD
4180 found=no
4181 for d in $sysnames; do
4182 case "$d" in
4183 $add_on/sysdeps/*) ;;
4184 *) continue ;;
4185 esac
4186 (cd "$xsrcdir$d" && for f in *[!~]; do
4187 case "$f" in
4188 sys|bits)
4189 for ff in $f/*.h; do
4190 test -d "$ff" || { test -e "$ff" && exit 88; }
4191 done
4192 ;;
4193 *)
77e8bddf 4194 test -d "$f" || { test -e "$f" && exit 88; }
a152f366
UD
4195 ;;
4196 esac
4197 done)
4198 if test $? -eq 88; then
4199 found=yes
4200 break
4201 fi
4202 done
4203 if test $found = no; then
b08c89d9 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
322e23db 4205$as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
a152f366
UD
4206 fi
4207done
26f56c1c 4208
2abf9ff1 4209
26f56c1c 4210
a152f366 4211### Locate tools.
26f56c1c 4212
a152f366
UD
4213# Find a good install program. We prefer a C program (faster),
4214# so one script is as good as another. But avoid the broken or
4215# incompatible versions:
4216# SysV /etc/install, /usr/sbin/install
4217# SunOS /usr/etc/install
4218# IRIX /sbin/install
4219# AIX /bin/install
4220# AmigaOS /C/install, which installs bootblocks on floppy discs
4221# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4222# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4223# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4224# OS/2's system install, which has a completely different semantic
4225# ./install, which can be erroneously created by make from ./install.sh.
322e23db 4226# Reject install programs that cannot install multiple files.
b08c89d9 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
322e23db 4228$as_echo_n "checking for a BSD-compatible install... " >&6; }
a152f366 4229if test -z "$INSTALL"; then
f318beb8 4230if ${ac_cv_path_install+:} false; then :
322e23db 4231 $as_echo_n "(cached) " >&6
a152f366
UD
4232else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
b08c89d9
UD
4238 # Account for people who put trailing slashes in PATH elements.
4239case $as_dir/ in #((
4240 ./ | .// | /[cC]/* | \
a152f366 4241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b08c89d9 4242 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a152f366
UD
4243 /usr/ucb/* ) ;;
4244 *)
4245 # OSF1 and SCO ODT 3.0 have their own names for install.
4246 # Don't use installbsd from OSF since it installs stuff as root
4247 # by default.
4248 for ac_prog in ginstall scoinst install; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4250 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a152f366
UD
4251 if test $ac_prog = install &&
4252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4253 # AIX install. It has an incompatible calling convention.
4254 :
4255 elif test $ac_prog = install &&
4256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4257 # program-specific install script used by HP pwplus--don't use.
4258 :
4259 else
322e23db
UD
4260 rm -rf conftest.one conftest.two conftest.dir
4261 echo one > conftest.one
4262 echo two > conftest.two
4263 mkdir conftest.dir
4264 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4265 test -s conftest.one && test -s conftest.two &&
4266 test -s conftest.dir/conftest.one &&
4267 test -s conftest.dir/conftest.two
4268 then
4269 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4270 break 3
4271 fi
a152f366
UD
4272 fi
4273 fi
4274 done
4275 done
4276 ;;
26f56c1c 4277esac
322e23db 4278
b08c89d9 4279 done
a152f366 4280IFS=$as_save_IFS
2abf9ff1 4281
322e23db 4282rm -rf conftest.one conftest.two conftest.dir
26f56c1c 4283
925c3c5c 4284fi
a152f366
UD
4285 if test "${ac_cv_path_install+set}" = set; then
4286 INSTALL=$ac_cv_path_install
4287 else
4288 # As a last resort, use the slow shell script. Don't cache a
4289 # value for INSTALL within a source directory, because that will
4290 # break other packages using the cache if that directory is
4291 # removed, or if the value is a relative name.
4292 INSTALL=$ac_install_sh
4293 fi
925c3c5c 4294fi
b08c89d9 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
322e23db 4296$as_echo "$INSTALL" >&6; }
925c3c5c 4297
a152f366
UD
4298# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299# It thinks the first close brace ends the variable substitution.
4300test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26f56c1c 4301
a152f366
UD
4302test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303
4304test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305
4306if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4307 # The makefiles need to use a different form to find it in $srcdir.
4308 INSTALL='\$(..)./scripts/install-sh -c'
26f56c1c 4309fi
b08c89d9 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
322e23db 4311$as_echo_n "checking whether ln -s works... " >&6; }
a152f366
UD
4312LN_S=$as_ln_s
4313if test "$LN_S" = "ln -s"; then
b08c89d9 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
322e23db 4315$as_echo "yes" >&6; }
26f56c1c 4316else
b08c89d9 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
322e23db 4318$as_echo "no, using $LN_S" >&6; }
26f56c1c 4319fi
a152f366 4320
925c3c5c 4321
650425ce
UD
4322# Was a --with-binutils option given?
4323if test -n "$path_binutils"; then
4324 # Make absolute; ensure a single trailing slash.
4325 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
63bda0c1 4326 CC="$CC -B$path_binutils"
650425ce 4327fi
27a5bb33
UD
4328AS=`$CC -print-prog-name=as`
4329LD=`$CC -print-prog-name=ld`
5edb9387 4330AR=`$CC -print-prog-name=ar`
cd6ede75 4331
4baa087a
RM
4332OBJDUMP=`$CC -print-prog-name=objdump`
4333
1b74661a
RM
4334OBJCOPY=`$CC -print-prog-name=objcopy`
4335
4baa087a 4336
4baa087a 4337# Determine whether we are using GNU binutils.
b08c89d9 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
322e23db 4339$as_echo_n "checking whether $AS is GNU as... " >&6; }
f318beb8 4340if ${libc_cv_prog_as_gnu+:} false; then :
322e23db 4341 $as_echo_n "(cached) " >&6
4baa087a
RM
4342else
4343 # Most GNU programs take a -v and spit out some text including
4344# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4345if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4346 libc_cv_prog_as_gnu=yes
4347else
4348 libc_cv_prog_as_gnu=no
4349fi
4350rm -fr contest*
4351fi
b08c89d9 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
322e23db 4353$as_echo "$libc_cv_prog_as_gnu" >&6; }
4baa087a
RM
4354rm -f a.out
4355gnu_as=$libc_cv_prog_as_gnu
4356
b08c89d9 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
322e23db 4358$as_echo_n "checking whether $LD is GNU ld... " >&6; }
f318beb8 4359if ${libc_cv_prog_ld_gnu+:} false; then :
322e23db 4360 $as_echo_n "(cached) " >&6
4baa087a
RM
4361else
4362 # Most GNU programs take a -v and spit out some text including
4363# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4364if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4365 libc_cv_prog_ld_gnu=yes
4366else
4367 libc_cv_prog_ld_gnu=no
4368fi
4369rm -fr contest*
4370fi
b08c89d9 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
322e23db 4372$as_echo "$libc_cv_prog_ld_gnu" >&6; }
4baa087a
RM
4373gnu_ld=$libc_cv_prog_ld_gnu
4374
4375
bd805071 4376# Accept binutils 2.22 or newer.
4baa087a
RM
4377for ac_prog in $AS
4378do
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380set dummy $ac_prog; ac_word=$2
b08c89d9 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4382$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4383if ${ac_cv_prog_AS+:} false; then :
322e23db 4384 $as_echo_n "(cached) " >&6
4baa087a
RM
4385else
4386 if test -n "$AS"; then
4387 ac_cv_prog_AS="$AS" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
b08c89d9 4394 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4396 ac_cv_prog_AS="$ac_prog"
b08c89d9 4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4398 break 2
4399 fi
4400done
b08c89d9 4401 done
26f56c1c 4402IFS=$as_save_IFS
4baa087a
RM
4403
4404fi
4405fi
4406AS=$ac_cv_prog_AS
4407if test -n "$AS"; then
b08c89d9 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
322e23db 4409$as_echo "$AS" >&6; }
4baa087a 4410else
b08c89d9 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4412$as_echo "no" >&6; }
4baa087a
RM
4413fi
4414
26f56c1c 4415
4baa087a
RM
4416 test -n "$AS" && break
4417done
4418
4419if test -z "$AS"; then
4420 ac_verc_fail=yes
4421else
4422 # Found it, now check the version.
b08c89d9 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
322e23db 4424$as_echo_n "checking version of $AS... " >&6; }
4baa087a
RM
4425 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4426 case $ac_prog_version in
4427 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
bd805071 4428 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4baa087a
RM
4429 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4430 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4431
4432 esac
b08c89d9 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4434$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
4435fi
4436if test $ac_verc_fail = yes; then
73588175 4437 AS=: critic_missing="$critic_missing as"
4baa087a
RM
4438fi
4439
4440for ac_prog in $LD
4441do
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443set dummy $ac_prog; ac_word=$2
b08c89d9 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4445$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4446if ${ac_cv_prog_LD+:} false; then :
322e23db 4447 $as_echo_n "(cached) " >&6
4baa087a
RM
4448else
4449 if test -n "$LD"; then
4450 ac_cv_prog_LD="$LD" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
b08c89d9 4457 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4459 ac_cv_prog_LD="$ac_prog"
b08c89d9 4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4461 break 2
4462 fi
4463done
b08c89d9 4464 done
26f56c1c 4465IFS=$as_save_IFS
4baa087a
RM
4466
4467fi
4468fi
4469LD=$ac_cv_prog_LD
4470if test -n "$LD"; then
b08c89d9 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
322e23db 4472$as_echo "$LD" >&6; }
4baa087a 4473else
b08c89d9 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4475$as_echo "no" >&6; }
4baa087a
RM
4476fi
4477
26f56c1c 4478
4baa087a
RM
4479 test -n "$LD" && break
4480done
4481
4482if test -z "$LD"; then
4483 ac_verc_fail=yes
4484else
4485 # Found it, now check the version.
b08c89d9 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
322e23db 4487$as_echo_n "checking version of $LD... " >&6; }
4baa087a
RM
4488 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4489 case $ac_prog_version in
4490 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
bd805071 4491 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4baa087a
RM
4492 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4493 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4494
4495 esac
b08c89d9 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4497$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
4498fi
4499if test $ac_verc_fail = yes; then
73588175 4500 LD=: critic_missing="$critic_missing ld"
4baa087a
RM
4501fi
4502
4503
4baa087a
RM
4504# These programs are version sensitive.
4505
4baa087a
RM
4506for ac_prog in gnumake gmake make
4507do
4508 # Extract the first word of "$ac_prog", so it can be a program name with args.
4509set dummy $ac_prog; ac_word=$2
b08c89d9 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4511$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4512if ${ac_cv_prog_MAKE+:} false; then :
322e23db 4513 $as_echo_n "(cached) " >&6
4baa087a
RM
4514else
4515 if test -n "$MAKE"; then
4516 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
b08c89d9 4523 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4525 ac_cv_prog_MAKE="$ac_prog"
b08c89d9 4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4527 break 2
4528 fi
4529done
b08c89d9 4530 done
26f56c1c 4531IFS=$as_save_IFS
4baa087a
RM
4532
4533fi
4534fi
4535MAKE=$ac_cv_prog_MAKE
4536if test -n "$MAKE"; then
b08c89d9 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
322e23db 4538$as_echo "$MAKE" >&6; }
4baa087a 4539else
b08c89d9 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4541$as_echo "no" >&6; }
4baa087a
RM
4542fi
4543
26f56c1c 4544
4baa087a
RM
4545 test -n "$MAKE" && break
4546done
4547
4548if test -z "$MAKE"; then
4549 ac_verc_fail=yes
4550else
4551 # Found it, now check the version.
b08c89d9 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
322e23db 4553$as_echo_n "checking version of $MAKE... " >&6; }
4baa087a
RM
4554 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4555 case $ac_prog_version in
4556 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
28d708c4 4557 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4baa087a
RM
4558 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4559 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4560
4561 esac
b08c89d9 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4563$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
4564fi
4565if test $ac_verc_fail = yes; then
4566 critic_missing="$critic_missing make"
4567fi
6e3d59bc 4568
cd6ede75 4569
4baa087a
RM
4570for ac_prog in gnumsgfmt gmsgfmt msgfmt
4571do
4572 # Extract the first word of "$ac_prog", so it can be a program name with args.
4573set dummy $ac_prog; ac_word=$2
b08c89d9 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4575$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4576if ${ac_cv_prog_MSGFMT+:} false; then :
322e23db 4577 $as_echo_n "(cached) " >&6
cd6ede75 4578else
4baa087a
RM
4579 if test -n "$MSGFMT"; then
4580 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
cd6ede75 4581else
3a12e572
UD
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
b08c89d9 4587 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4589 ac_cv_prog_MSGFMT="$ac_prog"
b08c89d9 4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
4591 break 2
4592 fi
4593done
b08c89d9 4594 done
26f56c1c 4595IFS=$as_save_IFS
3a12e572 4596
cd6ede75
UD
4597fi
4598fi
4baa087a
RM
4599MSGFMT=$ac_cv_prog_MSGFMT
4600if test -n "$MSGFMT"; then
b08c89d9 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
322e23db 4602$as_echo "$MSGFMT" >&6; }
cd6ede75 4603else
b08c89d9 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4605$as_echo "no" >&6; }
cd6ede75
UD
4606fi
4607
26f56c1c 4608
4baa087a
RM
4609 test -n "$MSGFMT" && break
4610done
4611
4612if test -z "$MSGFMT"; then
4613 ac_verc_fail=yes
4614else
4615 # Found it, now check the version.
b08c89d9 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
322e23db 4617$as_echo_n "checking version of $MSGFMT... " >&6; }
4baa087a
RM
4618 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4619 case $ac_prog_version in
4620 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4621 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4622 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4623 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4624
4625 esac
b08c89d9 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4627$as_echo "$ac_prog_version" >&6; }
3a12e572 4628fi
4baa087a
RM
4629if test $ac_verc_fail = yes; then
4630 MSGFMT=: aux_missing="$aux_missing msgfmt"
4631fi
4632
4633for ac_prog in makeinfo
4634do
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636set dummy $ac_prog; ac_word=$2
b08c89d9 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4638$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4639if ${ac_cv_prog_MAKEINFO+:} false; then :
322e23db 4640 $as_echo_n "(cached) " >&6
cd6ede75 4641else
4baa087a
RM
4642 if test -n "$MAKEINFO"; then
4643 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
cd6ede75 4644else
3a12e572
UD
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
b08c89d9 4650 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4652 ac_cv_prog_MAKEINFO="$ac_prog"
b08c89d9 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
4654 break 2
4655 fi
4656done
b08c89d9 4657 done
26f56c1c 4658IFS=$as_save_IFS
3a12e572 4659
cd6ede75
UD
4660fi
4661fi
4baa087a
RM
4662MAKEINFO=$ac_cv_prog_MAKEINFO
4663if test -n "$MAKEINFO"; then
b08c89d9 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
322e23db 4665$as_echo "$MAKEINFO" >&6; }
cd6ede75 4666else
b08c89d9 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4668$as_echo "no" >&6; }
cd6ede75
UD
4669fi
4670
26f56c1c 4671
4baa087a
RM
4672 test -n "$MAKEINFO" && break
4673done
5edb9387 4674
4baa087a
RM
4675if test -z "$MAKEINFO"; then
4676 ac_verc_fail=yes
5edb9387 4677else
4baa087a 4678 # Found it, now check the version.
b08c89d9 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
322e23db 4680$as_echo_n "checking version of $MAKEINFO... " >&6; }
4baa087a
RM
4681 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4682 case $ac_prog_version in
4683 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3a12c70f 4684 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4baa087a
RM
4685 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4686 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5edb9387 4687
4baa087a 4688 esac
b08c89d9 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4690$as_echo "$ac_prog_version" >&6; }
5edb9387 4691fi
4baa087a
RM
4692if test $ac_verc_fail = yes; then
4693 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5edb9387 4694fi
cd6ede75 4695
4baa087a 4696for ac_prog in sed
c4d23330
RM
4697do
4698 # Extract the first word of "$ac_prog", so it can be a program name with args.
4699set dummy $ac_prog; ac_word=$2
b08c89d9 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4701$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4702if ${ac_cv_prog_SED+:} false; then :
322e23db 4703 $as_echo_n "(cached) " >&6
c4d23330 4704else
4baa087a
RM
4705 if test -n "$SED"; then
4706 ac_cv_prog_SED="$SED" # Let the user override the test.
c4d23330
RM
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
b08c89d9 4713 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4715 ac_cv_prog_SED="$ac_prog"
b08c89d9 4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c4d23330
RM
4717 break 2
4718 fi
4719done
b08c89d9 4720 done
26f56c1c 4721IFS=$as_save_IFS
c4d23330
RM
4722
4723fi
4724fi
4baa087a
RM
4725SED=$ac_cv_prog_SED
4726if test -n "$SED"; then
b08c89d9 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
322e23db 4728$as_echo "$SED" >&6; }
c4d23330 4729else
b08c89d9 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4731$as_echo "no" >&6; }
c4d23330
RM
4732fi
4733
26f56c1c 4734
4baa087a 4735 test -n "$SED" && break
c4d23330
RM
4736done
4737
4baa087a 4738if test -z "$SED"; then
c4d23330
RM
4739 ac_verc_fail=yes
4740else
4741 # Found it, now check the version.
b08c89d9 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
322e23db 4743$as_echo_n "checking version of $SED... " >&6; }
07e51550 4744 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
c4d23330
RM
4745 case $ac_prog_version in
4746 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4baa087a 4747 3.0[2-9]*|3.[1-9]*|[4-9]*)
c4d23330
RM
4748 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4749 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4750
4751 esac
b08c89d9 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
322e23db 4753$as_echo "$ac_prog_version" >&6; }
c4d23330
RM
4754fi
4755if test $ac_verc_fail = yes; then
4baa087a 4756 SED=: aux_missing="$aux_missing sed"
c4d23330
RM
4757fi
4758
0786794f
AM
4759for ac_prog in gawk
4760do
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762set dummy $ac_prog; ac_word=$2
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764$as_echo_n "checking for $ac_word... " >&6; }
4765if ${ac_cv_prog_AWK+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767else
4768 if test -n "$AWK"; then
4769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0786794f
AM
4778 ac_cv_prog_AWK="$ac_prog"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782done
4783 done
4784IFS=$as_save_IFS
4785
4786fi
4787fi
4788AWK=$ac_cv_prog_AWK
4789if test -n "$AWK"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4791$as_echo "$AWK" >&6; }
4792else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796
4797
4798 test -n "$AWK" && break
4799done
4800
4801if test -z "$AWK"; then
4802 ac_verc_fail=yes
4803else
4804 # Found it, now check the version.
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4806$as_echo_n "checking version of $AWK... " >&6; }
4807 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4808 case $ac_prog_version in
4809 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12086fb4 4810 3.1.[2-9]*|3.[2-9]*|[4-9]*)
0786794f
AM
4811 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4812 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4813
4814 esac
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4816$as_echo "$ac_prog_version" >&6; }
4817fi
4818if test $ac_verc_fail = yes; then
4819 critic_missing="$critic_missing gawk"
4820fi
4821
4baa087a 4822
461a7b1e
RM
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4824$as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4825if ${libc_cv_compiler_ok+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827else
4828
4829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h. */
4831
4832int
4833main ()
4834{
4835
b08b4218 4836#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
461a7b1e
RM
4837#error insufficient compiler
4838#endif
4839 ;
4840 return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_compile "$LINENO"; then :
4844 libc_cv_compiler_ok=yes
4845else
4846 libc_cv_compiler_ok=no
4847fi
4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4851$as_echo "$libc_cv_compiler_ok" >&6; }
4852if test $libc_cv_compiler_ok != yes; then :
4853 critic_missing="$critic_missing compiler"
4854fi
4855
30b99d79
RM
4856if test -n "$ac_tool_prefix"; then
4857 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4858set dummy ${ac_tool_prefix}nm; 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; }
4861if ${ac_cv_prog_NM+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 if test -n "$NM"; then
4865 ac_cv_prog_NM="$NM" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30b99d79
RM
4874 ac_cv_prog_NM="${ac_tool_prefix}nm"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878done
4879 done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884NM=$ac_cv_prog_NM
4885if test -n "$NM"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4887$as_echo "$NM" >&6; }
4888else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893
4894fi
4895if test -z "$ac_cv_prog_NM"; then
4896 ac_ct_NM=$NM
4897 # Extract the first word of "nm", so it can be a program name with args.
4898set dummy nm; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if ${ac_cv_prog_ac_ct_NM+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903else
4904 if test -n "$ac_ct_NM"; then
4905 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30b99d79
RM
4914 ac_cv_prog_ac_ct_NM="nm"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918done
4919 done
4920IFS=$as_save_IFS
4921
4922fi
4923fi
4924ac_ct_NM=$ac_cv_prog_ac_ct_NM
4925if test -n "$ac_ct_NM"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4927$as_echo "$ac_ct_NM" >&6; }
4928else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933 if test "x$ac_ct_NM" = x; then
4934 NM="false"
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937yes:)
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940ac_tool_warned=yes ;;
4941esac
4942 NM=$ac_ct_NM
4943 fi
4944else
4945 NM="$ac_cv_prog_NM"
4946fi
4947
d30cf5bb 4948
8894bad3
AM
4949if test "x$maintainer" = "xyes"; then
4950 for ac_prog in autoconf
c4d23330
RM
4951do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
b08c89d9 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 4955$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 4956if ${ac_cv_prog_AUTOCONF+:} false; then :
322e23db 4957 $as_echo_n "(cached) " >&6
c4d23330 4958else
4baa087a
RM
4959 if test -n "$AUTOCONF"; then
4960 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
c4d23330
RM
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
b08c89d9 4967 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 4968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4969 ac_cv_prog_AUTOCONF="$ac_prog"
b08c89d9 4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c4d23330
RM
4971 break 2
4972 fi
4973done
b08c89d9 4974 done
26f56c1c 4975IFS=$as_save_IFS
c4d23330
RM
4976
4977fi
4978fi
4baa087a
RM
4979AUTOCONF=$ac_cv_prog_AUTOCONF
4980if test -n "$AUTOCONF"; then
b08c89d9 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
322e23db 4982$as_echo "$AUTOCONF" >&6; }
c4d23330 4983else
b08c89d9 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 4985$as_echo "no" >&6; }
c4d23330
RM
4986fi
4987
26f56c1c 4988
4baa087a 4989 test -n "$AUTOCONF" && break
c4d23330 4990done
4baa087a 4991test -n "$AUTOCONF" || AUTOCONF="no"
c4d23330 4992
8894bad3
AM
4993 case "x$AUTOCONF" in
4994 xno|x|x:) AUTOCONF=no ;;
4995 *)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4997$as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
f318beb8 4998if ${libc_cv_autoconf_works+:} false; then :
322e23db 4999 $as_echo_n "(cached) " >&6
c4d23330 5000else
8894bad3
AM
5001 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5002 libc_cv_autoconf_works=yes
5003 else
5004 libc_cv_autoconf_works=no
5005 fi
c4d23330 5006fi
b08c89d9 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
322e23db 5008$as_echo "$libc_cv_autoconf_works" >&6; }
8894bad3
AM
5009 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5010 ;;
5011 esac
5012 if test "x$AUTOCONF" = xno; then
5013 aux_missing="$aux_missing autoconf"
5014 fi
9e8ac24b
AM
5015else
5016 AUTOCONF=no
c4d23330
RM
5017fi
5018
4a531bb0 5019test -n "$critic_missing" && as_fn_error $? "
32a448ed 5020*** These critical programs are missing or too old:$critic_missing
b08c89d9 5021*** Check the INSTALL file for required versions." "$LINENO" 5
32a448ed 5022
b08c89d9 5023test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9c6fffc0 5024*** These auxiliary programs are missing or incompatible versions:$aux_missing
ea9f119b 5025*** some features will be disabled.
3a12e572 5026*** Check the INSTALL file for required versions." >&5
322e23db 5027$as_echo "$as_me: WARNING:
3a12e572
UD
5028*** These auxiliary programs are missing or incompatible versions:$aux_missing
5029*** some features will be disabled.
5030*** Check the INSTALL file for required versions." >&2;}
ea9f119b 5031
3c720987
UD
5032# if using special system headers, find out the compiler's sekrit
5033# header directory and add that to the list. NOTE: Only does the right
5034# thing on a system that doesn't need fixincludes. (Not presently a problem.)
5035if test -n "$sysheaders"; then
67fbfa5c
RM
5036 SYSINCLUDES=-nostdinc
5037 for d in include include-fixed; do
22dca1ea 5038 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
67fbfa5c
RM
5039 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5040 done
5041 SYSINCLUDES="$SYSINCLUDES \
3d6ce23a 5042-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
ef226fec 5043 if test -n "$CXX"; then
7872cfb0 5044 CXX_SYSINCLUDES=
67060746
AC
5045 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5046 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5047 test "x$cxxheaders" != x &&
5048 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5049 done
ef226fec 5050 fi
3c720987
UD
5051fi
5052
5053
ef226fec 5054
3911660e
UD
5055# Test if LD_LIBRARY_PATH contains the notation for the current directory
5056# since this would lead to problems installing/building glibc.
5057# LD_LIBRARY_PATH contains the current directory if one of the following
5058# is true:
5059# - one of the terminals (":" and ";") is the first or last sign
5060# - two terminals occur directly after each other
5061# - the path contains an element with a dot in it
b08c89d9 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
322e23db 5063$as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
3911660e
UD
5064case ${LD_LIBRARY_PATH} in
5065 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 5066 ld_library_path_setting="contains current directory"
3911660e
UD
5067 ;;
5068 *)
5069 ld_library_path_setting="ok"
5070 ;;
5071esac
b08c89d9 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
322e23db 5073$as_echo "$ld_library_path_setting" >&6; }
3911660e 5074if test "$ld_library_path_setting" != "ok"; then
4a531bb0 5075as_fn_error $? "
3a12e572
UD
5076*** LD_LIBRARY_PATH shouldn't contain the current directory when
5077*** building glibc. Please change the environment variable
b08c89d9 5078*** and run configure again." "$LINENO" 5
3911660e
UD
5079fi
5080
cd6ede75
UD
5081# Extract the first word of "bash", so it can be a program name with args.
5082set dummy bash; ac_word=$2
b08c89d9 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 5084$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 5085if ${ac_cv_path_BASH_SHELL+:} false; then :
322e23db 5086 $as_echo_n "(cached) " >&6
cd6ede75 5087else
26f56c1c 5088 case $BASH_SHELL in
3a12e572 5089 [\\/]* | ?:[\\/]*)
26f56c1c 5090 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
cd6ede75
UD
5091 ;;
5092 *)
3a12e572
UD
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
b08c89d9 5098 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26f56c1c 5100 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
b08c89d9 5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5102 break 2
5103 fi
5104done
b08c89d9 5105 done
26f56c1c 5106IFS=$as_save_IFS
3a12e572 5107
26f56c1c 5108 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
cd6ede75
UD
5109 ;;
5110esac
5111fi
26f56c1c
UD
5112BASH_SHELL=$ac_cv_path_BASH_SHELL
5113if test -n "$BASH_SHELL"; then
b08c89d9 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
322e23db 5115$as_echo "$BASH_SHELL" >&6; }
cd6ede75 5116else
b08c89d9 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 5118$as_echo "no" >&6; }
cd6ede75
UD
5119fi
5120
26f56c1c 5121
cd6ede75 5122
c0016081
UD
5123# Extract the first word of "perl", so it can be a program name with args.
5124set dummy perl; ac_word=$2
b08c89d9 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 5126$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 5127if ${ac_cv_path_PERL+:} false; then :
322e23db 5128 $as_echo_n "(cached) " >&6
a2b08ee5 5129else
3a12e572
UD
5130 case $PERL in
5131 [\\/]* | ?:[\\/]*)
a2b08ee5
UD
5132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5133 ;;
5134 *)
3a12e572
UD
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
b08c89d9 5140 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3a12e572 5142 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
b08c89d9 5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5144 break 2
5145 fi
5146done
b08c89d9 5147 done
26f56c1c 5148IFS=$as_save_IFS
3a12e572 5149
c0016081 5150 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5
UD
5151 ;;
5152esac
5153fi
3a12e572 5154PERL=$ac_cv_path_PERL
a2b08ee5 5155if test -n "$PERL"; then
b08c89d9 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
322e23db 5157$as_echo "$PERL" >&6; }
a2b08ee5 5158else
b08c89d9 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 5160$as_echo "no" >&6; }
a2b08ee5
UD
5161fi
5162
26f56c1c 5163
2fd5d029
RM
5164if test "$PERL" != no &&
5165 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5166 PERL=no
fc304e02 5167fi
c0016081
UD
5168# Extract the first word of "install-info", so it can be a program name with args.
5169set dummy install-info; ac_word=$2
b08c89d9 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 5171$as_echo_n "checking for $ac_word... " >&6; }
f318beb8 5172if ${ac_cv_path_INSTALL_INFO+:} false; then :
322e23db 5173 $as_echo_n "(cached) " >&6
c0016081 5174else
3a12e572
UD
5175 case $INSTALL_INFO in
5176 [\\/]* | ?:[\\/]*)
c0016081
UD
5177 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5178 ;;
5179 *)
3a12e572 5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
5181as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5182for as_dir in $as_dummy
3a12e572
UD
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
b08c89d9 5186 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3a12e572 5188 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
b08c89d9 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5190 break 2
5191 fi
5192done
b08c89d9 5193 done
26f56c1c 5194IFS=$as_save_IFS
3a12e572 5195
c0016081
UD
5196 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5197 ;;
5198esac
5199fi
3a12e572 5200INSTALL_INFO=$ac_cv_path_INSTALL_INFO
c0016081 5201if test -n "$INSTALL_INFO"; then
b08c89d9 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
322e23db 5203$as_echo "$INSTALL_INFO" >&6; }
c0016081 5204else
b08c89d9 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 5206$as_echo "no" >&6; }
c0016081
UD
5207fi
5208
26f56c1c 5209
cc8623f1
WN
5210for ac_prog in bison
5211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
b08c89d9 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322e23db 5215$as_echo_n "checking for $ac_word... " >&6; }
cc8623f1 5216if ${ac_cv_prog_BISON+:} false; then :
322e23db 5217 $as_echo_n "(cached) " >&6
ae113383 5218else
cc8623f1
WN
5219 if test -n "$BISON"; then
5220 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
3a12e572
UD
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
b08c89d9 5227 for ac_exec_ext in '' $ac_executable_extensions; do
f4a58f0d 5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cc8623f1 5229 ac_cv_prog_BISON="$ac_prog"
b08c89d9 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5231 break 2
5232 fi
5233done
b08c89d9 5234 done
26f56c1c 5235IFS=$as_save_IFS
3a12e572 5236
ae113383 5237fi
cc8623f1
WN
5238fi
5239BISON=$ac_cv_prog_BISON
ae113383 5240if test -n "$BISON"; then
b08c89d9 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
322e23db 5242$as_echo "$BISON" >&6; }
ae113383 5243else
b08c89d9 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
322e23db 5245$as_echo "no" >&6; }
ae113383
UD
5246fi
5247
5248
cc8623f1
WN
5249 test -n "$BISON" && break
5250done
5251
5252if test -z "$BISON"; then
5253 ac_verc_fail=yes
5254else
5255 # Found it, now check the version.
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5257$as_echo_n "checking version of $BISON... " >&6; }
5258 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5259 case $ac_prog_version in
5260 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5261 2.7*|[3-9].*|[1-9][0-9]*)
5262 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5263 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5264
5265 esac
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5267$as_echo "$ac_prog_version" >&6; }
5268fi
5269if test $ac_verc_fail = yes; then
5270 BISON=no
5271fi
5272
26f56c1c 5273
b08c89d9 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
322e23db 5275$as_echo_n "checking for .set assembler directive... " >&6; }
f318beb8 5276if ${libc_cv_asm_set_directive+:} false; then :
322e23db 5277 $as_echo_n "(cached) " >&6
cd6ede75
UD
5278else
5279 cat > conftest.s <<EOF
8c0c01db 5280.text
cd6ede75
UD
5281foo:
5282.set glibc_conftest_frobozz,foo
7b8e0d49 5283.globl glibc_conftest_frobozz
cd6ede75
UD
5284EOF
5285# The alpha-dec-osf1 assembler gives only a warning for `.set'
5286# (but it doesn't work), so we must do a linking check to be sure.
5287cat > conftest1.c <<\EOF
5288extern int glibc_conftest_frobozz;
640f0119 5289void _start() { glibc_conftest_frobozz = 1; }
cd6ede75
UD
5290EOF
5291if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
640f0119 5292 -nostartfiles -nostdlib \
cd6ede75
UD
5293 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5294 libc_cv_asm_set_directive=yes
5295else
5296 libc_cv_asm_set_directive=no
5297fi
5298rm -f conftest*
5299fi
b08c89d9 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
322e23db 5301$as_echo "$libc_cv_asm_set_directive" >&6; }
cd6ede75 5302if test $libc_cv_asm_set_directive = yes; then
b08c89d9 5303 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
cd6ede75
UD
5304
5305fi
5306
a0da5fe1 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
322e23db 5308$as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
f318beb8 5309if ${libc_cv_asm_protected_directive+:} false; then :
322e23db 5310 $as_echo_n "(cached) " >&6
2d499f55 5311else
a0da5fe1 5312 cat > conftest.s <<EOF
2d499f55
UD
5313.protected foo
5314foo:
5315.hidden bar
5316bar:
5317EOF
a0da5fe1 5318if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
b08c89d9 5319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
b08c89d9
UD
5322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5323 test $ac_status = 0; }; }; then
a0da5fe1
UD
5324 libc_cv_asm_protected_directive=yes
5325else
5326 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5327fi
5328rm -f conftest*
2d499f55 5329fi
b08c89d9 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
322e23db 5331$as_echo "$libc_cv_asm_protected_directive" >&6; }
2d499f55 5332
a0da5fe1
UD
5333if test $libc_cv_asm_protected_directive = yes; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
322e23db 5335$as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
f318beb8 5336if ${libc_cv_visibility_attribute+:} false; then :
322e23db 5337 $as_echo_n "(cached) " >&6
0d01dace
UD
5338else
5339 cat > conftest.c <<EOF
5340 int foo __attribute__ ((visibility ("hidden"))) = 1;
5341 int bar __attribute__ ((visibility ("protected"))) = 1;
5342EOF
5343 libc_cv_visibility_attribute=no
61cea1c3 5344 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
b08c89d9 5345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
61cea1c3
RM
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
b08c89d9
UD
5348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }; }; then
0d01dace
UD
5350 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5351 if grep '\.protected.*bar' conftest.s >/dev/null; then
5352 libc_cv_visibility_attribute=yes
5353 fi
5354 fi
5355 fi
f7d82dc9 5356 rm -f conftest.{c,s}
0d01dace 5357
3a12e572 5358fi
b08c89d9 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
322e23db 5360$as_echo "$libc_cv_visibility_attribute" >&6; }
a0da5fe1
UD
5361 if test $libc_cv_visibility_attribute != yes; then
5362 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
0d01dace 5363 fi
a0da5fe1 5364fi
0d01dace 5365
83569fb8
L
5366if test $libc_cv_visibility_attribute = yes; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5368$as_echo_n "checking linker support for protected data symbol... " >&6; }
5369if ${libc_cv_protected_data+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371else
5372 cat > conftest.c <<EOF
5373 int bar __attribute__ ((visibility ("protected"))) = 1;
5374EOF
5375 libc_cv_protected_data=no
5376 if { ac_try='${CC-cc} -nostdlib -nostartfiles -fPIC -shared conftest.c -o conftest.so'
5377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5381 test $ac_status = 0; }; }; then
5382 cat > conftest.c <<EOF
5383 extern int bar;
5384 int main (void) { return bar; }
5385EOF
5386 if { ac_try='${CC-cc} -nostdlib -nostartfiles conftest.c -o conftest conftest.so'
5387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5391 test $ac_status = 0; }; }; then
5392 libc_cv_protected_data=yes
5393 fi
5394 fi
5395 rm -f conftest.*
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5399$as_echo "$libc_cv_protected_data" >&6; }
5400else
5401 libc_cv_protected_data=no
5402fi
5403
5404
a0da5fe1
UD
5405if test $libc_cv_visibility_attribute = yes; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
322e23db 5407$as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
f318beb8 5408if ${libc_cv_broken_visibility_attribute+:} false; then :
322e23db 5409 $as_echo_n "(cached) " >&6
37ba7d66
UD
5410else
5411 cat > conftest.c <<EOF
5412 int foo (int x);
5413 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5414 int bar (int x) { return x; }
5415EOF
5416 libc_cv_broken_visibility_attribute=yes
f7d82dc9 5417 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
b08c89d9 5418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
61cea1c3
RM
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
b08c89d9
UD
5421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422 test $ac_status = 0; }; }; then
37ba7d66
UD
5423 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5424 libc_cv_broken_visibility_attribute=no
5425 fi
5426 fi
5427 rm -f conftest.c conftest.s
37ba7d66 5428
3a12e572 5429fi
b08c89d9 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
322e23db 5431$as_echo "$libc_cv_broken_visibility_attribute" >&6; }
a0da5fe1
UD
5432 if test $libc_cv_broken_visibility_attribute = yes; then
5433 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
37ba7d66 5434 fi
a0da5fe1 5435fi
37ba7d66 5436
a0da5fe1 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
322e23db 5438$as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
f318beb8 5439if ${libc_cv_broken_alias_attribute+:} false; then :
322e23db 5440 $as_echo_n "(cached) " >&6
37ba7d66
UD
5441else
5442 cat > conftest.c <<EOF
a0da5fe1
UD
5443 extern int foo (int x) __asm ("xyzzy");
5444 int bar (int x) { return x; }
5445 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5446 extern int dfoo;
5447 extern __typeof (dfoo) dfoo __asm ("abccb");
5448 int dfoo = 1;
37ba7d66 5449EOF
a0da5fe1
UD
5450 libc_cv_broken_alias_attribute=yes
5451 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
b08c89d9 5452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
61cea1c3
RM
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
b08c89d9
UD
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }; }; then
a0da5fe1
UD
5457 if grep 'xyzzy' conftest.s >/dev/null &&
5458 grep 'abccb' conftest.s >/dev/null; then
5459 libc_cv_broken_alias_attribute=no
5460 fi
5461 fi
5462 rm -f conftest.c conftest.s
37ba7d66 5463
3a12e572 5464fi
b08c89d9 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
322e23db 5466$as_echo "$libc_cv_broken_alias_attribute" >&6; }
a0da5fe1
UD
5467if test $libc_cv_broken_alias_attribute = yes; then
5468 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5469fi
37ba7d66 5470
a0da5fe1
UD
5471if test $libc_cv_visibility_attribute = yes; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
322e23db 5473$as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
f318beb8 5474if ${libc_cv_have_sdata_section+:} false; then :
322e23db 5475 $as_echo_n "(cached) " >&6
0d01dace
UD
5476else
5477 echo "int i;" > conftest.c
5478 libc_cv_have_sdata_section=no
dbc92dc6 5479 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
0d01dace
UD
5480 | grep '\.sdata' >/dev/null; then
5481 libc_cv_have_sdata_section=yes
5482 fi
5483 rm -f conftest.c conftest.so
0d01dace 5484
3a12e572 5485fi
b08c89d9 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
322e23db 5487$as_echo "$libc_cv_have_sdata_section" >&6; }
a0da5fe1
UD
5488 if test $libc_cv_have_sdata_section = yes; then
5489 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
0d01dace 5490
0d01dace 5491 fi
a0da5fe1 5492fi
0d01dace 5493
a0da5fe1 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
322e23db 5495$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
f318beb8 5496if ${libc_cv_initfini_array+:} false; then :
322e23db 5497 $as_echo_n "(cached) " >&6
2c617417 5498else
a0da5fe1 5499 cat > conftest.c <<EOF
2c617417
UD
5500int _start (void) { return 0; }
5501int __start (void) { return 0; }
07037eeb 5502
2c617417
UD
5503int foo (void) { return 1; }
5504int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
07037eeb 5505
2c617417 5506EOF
07037eeb
JM
5507if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5508 conftest.c -static -nostartfiles -nostdlib
5509 1>&5'
b08c89d9 5510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
b08c89d9 5513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
07037eeb 5514 test $ac_status = 0; }; }; then :
a0da5fe1
UD
5515 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
5516 libc_cv_initfini_array=yes
2c617417 5517 else
ce33ee7c 5518 libc_cv_initfini_array=no
2c617417 5519 fi
a0da5fe1
UD
5520else
5521 libc_cv_initfini_array=no
5522fi
5523rm -f conftest*
07037eeb 5524
2c617417 5525fi
b08c89d9 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
322e23db 5527$as_echo "$libc_cv_initfini_array" >&6; }
a0da5fe1
UD
5528if test $libc_cv_initfini_array != yes; then
5529 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
5530fi
62bede13 5531
a0da5fe1 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
62bede13 5533$as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
f318beb8 5534if ${libc_cv_ctors_header+:} false; then :
62bede13
RM
5535 $as_echo_n "(cached) " >&6
5536else
a0da5fe1 5537 libc_cv_ctors_header=yes
07037eeb
JM
5538 cat > conftest.c <<EOF
5539int _start (void) { return 0; }
5540int __start (void) { return 0; }
113ddea4 5541
07037eeb
JM
5542__attribute__ ((constructor)) void ctor (void) { asm (""); }
5543__attribute__ ((destructor)) void dtor (void) { asm (""); }
113ddea4 5544
07037eeb
JM
5545EOF
5546if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5547 conftest.c -static -nostartfiles -nostdlib
5548 1>&5'
5549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }; }; then :
113ddea4 5554 if $READELF -WS conftest$ac_exeext | $AWK '
5f69cd2f 5555 { gsub(/\[ */, "[") }
113ddea4
RM
5556 $2 == ".ctors" || $2 == ".dtors" {
5557 size = strtonum("0x" $6)
5558 align = strtonum("0x" $NF)
5559 seen[$2] = 1
5560 stub[$2] = size == align * 2
5f69cd2f 5561 }
113ddea4
RM
5562 END {
5563 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5564 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5565 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5566 }
5567 '; then :
5568 libc_cv_ctors_header=no
5569fi
5570
5571else
5572 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5573
5574fi
07037eeb 5575rm -f conftest*
113ddea4 5576
62bede13
RM
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5579$as_echo "$libc_cv_ctors_header" >&6; }
a0da5fe1
UD
5580if test $libc_cv_ctors_header = no; then
5581 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
4a531bb0 5582
a0da5fe1 5583fi
2c617417 5584
a0da5fe1 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
322e23db 5586$as_echo_n "checking for libunwind-support in compiler... " >&6; }
f318beb8 5587if ${libc_cv_cc_with_libunwind+:} false; then :
322e23db 5588 $as_echo_n "(cached) " >&6
c776b3d7 5589else
c776b3d7 5590
a0da5fe1 5591 cat > conftest.c <<EOF
cbdb12de
UD
5592int main (void) { return 0; }
5593EOF
a0da5fe1 5594 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
8175a253 5595 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
a0da5fe1
UD
5596 libc_cv_cc_with_libunwind=yes
5597 else
5598 libc_cv_cc_with_libunwind=no
5599 fi
5600 rm -f conftest*
c776b3d7 5601fi
b08c89d9 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
322e23db 5603$as_echo "$libc_cv_cc_with_libunwind" >&6; }
c776b3d7 5604
a0da5fe1
UD
5605if test $libc_cv_cc_with_libunwind = yes; then
5606 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
c776b3d7 5607
a0da5fe1 5608fi
c776b3d7 5609
6bfea974
L
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5
5611$as_echo_n "checking for linker that supports -z nodelete... " >&6; }
5612libc_linker_feature=no
5613if test x"$gnu_ld" = x"yes"; then
5614 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"`
5615 if test -n "$libc_linker_check"; then
5616 cat > conftest.c <<EOF
2f54c82d
UD
5617int _start (void) { return 42; }
5618EOF
6bfea974
L
5619 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5620 -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
5621 -fPIC -shared -o conftest.so conftest.c
5622 1>&5'
b08c89d9 5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
b08c89d9
UD
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }; }
6bfea974
L
5628 then
5629 libc_linker_feature=yes
5630 fi
5631 rm -f conftest*
5632 fi
5633fi
5634if test $libc_linker_feature = yes; then
a0da5fe1
UD
5635 libc_cv_z_nodelete=yes
5636else
5637 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
5638fi
6bfea974
L
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5640$as_echo "$libc_linker_feature" >&6; }
2f54c82d 5641
6bfea974
L
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5
5643$as_echo_n "checking for linker that supports -z nodlopen... " >&6; }
5644libc_linker_feature=no
5645if test x"$gnu_ld" = x"yes"; then
5646 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"`
5647 if test -n "$libc_linker_check"; then
5648 cat > conftest.c <<EOF
2f54c82d
UD
5649int _start (void) { return 42; }
5650EOF
6bfea974
L
5651 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5652 -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
5653 -fPIC -shared -o conftest.so conftest.c
5654 1>&5'
b08c89d9 5655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
b08c89d9
UD
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }; }
6bfea974
L
5660 then
5661 libc_linker_feature=yes
5662 fi
5663 rm -f conftest*
5664 fi
5665fi
5666if test $libc_linker_feature = yes; then
a0da5fe1
UD
5667 libc_cv_z_nodlopen=yes
5668else
5669 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
5670fi
6bfea974
L
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5672$as_echo "$libc_linker_feature" >&6; }
2f54c82d 5673
6bfea974
L
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5
5675$as_echo_n "checking for linker that supports -z initfirst... " >&6; }
5676libc_linker_feature=no
5677if test x"$gnu_ld" = x"yes"; then
5678 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"`
5679 if test -n "$libc_linker_check"; then
5680 cat > conftest.c <<EOF
5d916713
UD
5681int _start (void) { return 42; }
5682EOF
6bfea974
L
5683 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5684 -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
5685 -fPIC -shared -o conftest.so conftest.c
5686 1>&5'
b08c89d9 5687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
b08c89d9
UD
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; }; }
6bfea974
L
5692 then
5693 libc_linker_feature=yes
5694 fi
5695 rm -f conftest*
5696 fi
5697fi
5698if test $libc_linker_feature = yes; then
a0da5fe1
UD
5699 libc_cv_z_initfirst=yes
5700else
5701 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
5702fi
6bfea974
L
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5704$as_echo "$libc_linker_feature" >&6; }
5d916713 5705
a0da5fe1
UD
5706ASFLAGS_config=
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
322e23db 5708$as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
f318beb8 5709if ${libc_cv_as_noexecstack+:} false; then :
322e23db 5710 $as_echo_n "(cached) " >&6
35915ec8 5711else
a0da5fe1 5712 cat > conftest.c <<EOF
35915ec8
UD
5713void foo (void) { }
5714EOF
a0da5fe1
UD
5715if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5716 -S -o conftest.s conftest.c 1>&5'
b08c89d9 5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35915ec8
UD
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
b08c89d9
UD
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; }; } \
8175a253 5722 && grep .note.GNU-stack conftest.s >/dev/null \
a0da5fe1
UD
5723 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5724 -c -o conftest.o conftest.s 1>&5'
b08c89d9 5725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35915ec8
UD
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
b08c89d9
UD
5728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729 test $ac_status = 0; }; }
a0da5fe1
UD
5730then
5731 libc_cv_as_noexecstack=yes
5732else
5733 libc_cv_as_noexecstack=no
5734fi
5735rm -f conftest*
35915ec8 5736fi
b08c89d9 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
322e23db 5738$as_echo "$libc_cv_as_noexecstack" >&6; }
a0da5fe1
UD
5739if test $libc_cv_as_noexecstack = yes; then
5740 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5741fi
35915ec8 5742
2abf9ff1 5743
a0da5fe1 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
322e23db 5745$as_echo_n "checking for -z combreloc... " >&6; }
f318beb8 5746if ${libc_cv_z_combreloc+:} false; then :
322e23db 5747 $as_echo_n "(cached) " >&6
a711b01d 5748else
a0da5fe1 5749 cat > conftest.c <<EOF
d555194c
UD
5750extern int bar (int);
5751extern int mumble;
5752int foo (void) { return bar (mumble); }
a711b01d 5753EOF
a0da5fe1 5754if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 5755 -fPIC -shared -o conftest.so conftest.c
35cd3c97 5756 -nostdlib -nostartfiles
3a12e572 5757 -Wl,-z,combreloc 1>&5'
b08c89d9 5758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
b08c89d9
UD
5761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5762 test $ac_status = 0; }; }
a0da5fe1
UD
5763then
5764 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5765 libc_cv_z_combreloc=yes
fdde8349
UD
5766 else
5767 libc_cv_z_combreloc=no
a711b01d 5768 fi
a0da5fe1
UD
5769else
5770 libc_cv_z_combreloc=no
5771fi
5772rm -f conftest*
a711b01d 5773fi
b08c89d9 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
322e23db 5775$as_echo "$libc_cv_z_combreloc" >&6; }
a0da5fe1
UD
5776if test "$libc_cv_z_combreloc" = yes; then
5777 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
fdde8349 5778
a0da5fe1 5779fi
2abf9ff1
RM
5780
5781
6bfea974
L
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5783$as_echo_n "checking for linker that supports -z execstack... " >&6; }
5784libc_linker_feature=no
5785if test x"$gnu_ld" = x"yes"; then
5786 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
5787 if test -n "$libc_linker_check"; then
5788 cat > conftest.c <<EOF
2abf9ff1
RM
5789int _start (void) { return 42; }
5790EOF
6bfea974
L
5791 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5792 -Wl,-z,execstack -nostdlib -nostartfiles
5793 -fPIC -shared -o conftest.so conftest.c
5794 1>&5'
b08c89d9 5795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2abf9ff1
RM
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
b08c89d9
UD
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }; }
6bfea974
L
5800 then
5801 libc_linker_feature=yes
5802 fi
5803 rm -f conftest*
5804 fi
5805fi
5806if test $libc_linker_feature = yes; then
a0da5fe1
UD
5807 libc_cv_z_execstack=yes
5808else
5809 libc_cv_z_execstack=no
5810fi
6bfea974
L
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5812$as_echo "$libc_linker_feature" >&6; }
cd6ede75 5813
0f124303 5814
a0da5fe1 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
322e23db 5816$as_echo_n "checking for -fpie... " >&6; }
f318beb8 5817if ${libc_cv_fpie+:} false; then :
322e23db 5818 $as_echo_n "(cached) " >&6
0f124303 5819else
4da0431d 5820 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
b08c89d9 5821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
0f124303
UD
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
b08c89d9 5824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4da0431d 5825 test $ac_status = 0; }; }; then :
a0da5fe1
UD
5826 libc_cv_fpie=yes
5827else
5828 libc_cv_fpie=no
5829fi
4da0431d 5830
0f124303 5831fi
b08c89d9 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
322e23db 5833$as_echo "$libc_cv_fpie" >&6; }
0f124303
UD
5834
5835
871b9158 5836
a0da5fe1 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
322e23db 5838$as_echo_n "checking for --hash-style option... " >&6; }
f318beb8 5839if ${libc_cv_hashstyle+:} false; then :
322e23db 5840 $as_echo_n "(cached) " >&6
871b9158 5841else
a0da5fe1 5842 cat > conftest.c <<EOF
871b9158
UD
5843int _start (void) { return 42; }
5844EOF
a0da5fe1
UD
5845if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5846 -fPIC -shared -o conftest.so conftest.c
5847 -Wl,--hash-style=both -nostdlib 1>&5'
b08c89d9 5848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
871b9158
UD
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
b08c89d9
UD
5851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5852 test $ac_status = 0; }; }
a0da5fe1
UD
5853then
5854 libc_cv_hashstyle=yes
5855else
5856 libc_cv_hashstyle=no
5857fi
5858rm -f conftest*
871b9158 5859fi
b08c89d9 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
322e23db 5861$as_echo "$libc_cv_hashstyle" >&6; }
871b9158 5862
fd5e21c7 5863
a0da5fe1
UD
5864# The linker's default -shared behavior is good enough if it
5865# does these things that our custom linker scripts ensure that
5866# all allocated NOTE sections come first.
5867if test "$use_default_link" = default; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
fd5e21c7 5869$as_echo_n "checking for sufficient default -shared layout... " >&6; }
f318beb8 5870if ${libc_cv_use_default_link+:} false; then :
fd5e21c7
RM
5871 $as_echo_n "(cached) " >&6
5872else
a0da5fe1
UD
5873 libc_cv_use_default_link=no
5874 cat > conftest.s <<\EOF
fd5e21c7
RM
5875 .section .note.a,"a",%note
5876 .balign 4
5877 .long 4,4,9
5878 .string "GNU"
5879 .string "foo"
5880 .section .note.b,"a",%note
5881 .balign 4
5882 .long 4,4,9
5883 .string "GNU"
5884 .string "bar"
5885EOF
a0da5fe1 5886 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
fd5e21c7
RM
5887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; } &&
5892 ac_try=`$READELF -S conftest.so | sed -n \
5893 '${x;p;}
5894 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
5895 t a
5896 b
5897 : a
5898 H'`
a0da5fe1
UD
5899 then
5900 libc_seen_a=no libc_seen_b=no
5901 set -- $ac_try
5902 while test $# -ge 2 -a "$1" = NOTE; do
5903 case "$2" in
5904 .note.a) libc_seen_a=yes ;;
5905 .note.b) libc_seen_b=yes ;;
5906 esac
5907 shift 2
5908 done
5909 case "$libc_seen_a$libc_seen_b" in
5910 yesyes)
5911 libc_cv_use_default_link=yes
5912 ;;
5913 *)
5914 echo >&5 "\
fd5e21c7
RM
5915$libc_seen_a$libc_seen_b from:
5916$ac_try"
a0da5fe1
UD
5917 ;;
5918 esac
5919 fi
5920 rm -f conftest*
fd5e21c7
RM
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
5923$as_echo "$libc_cv_use_default_link" >&6; }
a0da5fe1 5924 use_default_link=$libc_cv_use_default_link
2abf9ff1 5925fi
f13df7c7 5926
5c550700
RM
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
5928$as_echo_n "checking linker output format... " >&6; }
f318beb8 5929if ${libc_cv_output_format+:} false; then :
5c550700
RM
5930 $as_echo_n "(cached) " >&6
5931else
5932 if libc_cv_output_format=`
5933${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
5934then
5935 :
5936else
5937 libc_cv_output_format=
5938fi
5939test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
5942$as_echo "$libc_cv_output_format" >&6; }
5943
5944
b08c89d9 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
322e23db 5946$as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
f318beb8 5947if ${libc_cv_fno_toplevel_reorder+:} false; then :
322e23db 5948 $as_echo_n "(cached) " >&6
49803108
AJ
5949else
5950 cat > conftest.c <<EOF
5951int foo;
5952EOF
22dca1ea 5953if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
49803108 5954 conftest.c 1>&5'
b08c89d9 5955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
49803108
AJ
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
b08c89d9
UD
5958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959 test $ac_status = 0; }; }
49803108 5960then
18e2ac6d 5961 libc_cv_fno_toplevel_reorder=yes
49803108 5962else
18e2ac6d 5963 libc_cv_fno_toplevel_reorder=no
49803108
AJ
5964fi
5965rm -f conftest*
5966fi
b08c89d9 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
322e23db 5968$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
18e2ac6d 5969if test $libc_cv_fno_toplevel_reorder = yes; then
22dca1ea 5970 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
18e2ac6d 5971else
49803108
AJ
5972 fno_unit_at_a_time=-fno-unit-at-a-time
5973fi
5974
5975
b08c89d9 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
322e23db 5977$as_echo_n "checking for -fstack-protector... " >&6; }
f318beb8 5978if ${libc_cv_ssp+:} false; then :
322e23db 5979 $as_echo_n "(cached) " >&6
10ffcd52 5980else
17228132 5981 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
b08c89d9 5982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10ffcd52
UD
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
b08c89d9 5985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17228132 5986 test $ac_status = 0; }; }; then :
10ffcd52
UD
5987 libc_cv_ssp=yes
5988else
5989 libc_cv_ssp=no
5990fi
17228132 5991
10ffcd52 5992fi
b08c89d9 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
322e23db 5994$as_echo "$libc_cv_ssp" >&6; }
10ffcd52 5995
6ab674eb
MF
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5997$as_echo_n "checking for -fstack-protector-strong... " >&6; }
5998if ${libc_cv_ssp_strong+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
6002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }; }; then :
6007 libc_cv_ssp_strong=yes
6008else
6009 libc_cv_ssp_strong=no
6010fi
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
6014$as_echo "$libc_cv_ssp_strong" >&6; }
6015
6016stack_protector=
6017if test "$libc_cv_ssp_strong" = "yes"; then
6018 stack_protector="-fstack-protector-strong"
6019elif test "$libc_cv_ssp" = "yes"; then
6020 stack_protector="-fstack-protector"
6021fi
6022
10ffcd52 6023
a0da5fe1 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
322e23db 6025$as_echo_n "checking whether cc puts quotes around section names... " >&6; }
f318beb8 6026if ${libc_cv_have_section_quotes+:} false; then :
322e23db 6027 $as_echo_n "(cached) " >&6
e26dd47f
UD
6028else
6029 cat > conftest.c <<EOF
a0da5fe1
UD
6030 static const int foo
6031 __attribute__ ((section ("bar"))) = 1;
e26dd47f 6032EOF
a0da5fe1
UD
6033 if ${CC-cc} -S conftest.c -o conftest.s; then
6034 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6035 libc_cv_have_section_quotes=yes
e26dd47f 6036 else
a0da5fe1 6037 libc_cv_have_section_quotes=no
e26dd47f 6038 fi
a0da5fe1
UD
6039 else
6040 libc_cv_have_section_quotes=unknown
6041 fi
6042 rm -f conftest.{c,s}
e26dd47f 6043
3a12e572 6044fi
b08c89d9 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
322e23db 6046$as_echo "$libc_cv_have_section_quotes" >&6; }
a0da5fe1
UD
6047if test $libc_cv_have_section_quotes = yes; then
6048 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
cd6ede75 6049
9a97d1f7
UD
6050fi
6051
b08c89d9 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
322e23db 6053$as_echo_n "checking for ld --no-whole-archive... " >&6; }
f318beb8 6054if ${libc_cv_ld_no_whole_archive+:} false; then :
322e23db 6055 $as_echo_n "(cached) " >&6
cd6ede75
UD
6056else
6057 cat > conftest.c <<\EOF
6058_start () {}
6059int __eh_pc;
6060__throw () {}
6061EOF
3217788f 6062if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
cd6ede75 6063 -nostdlib -nostartfiles -Wl,--no-whole-archive
3a12e572 6064 -o conftest conftest.c 1>&5'
b08c89d9 6065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
b08c89d9
UD
6068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6069 test $ac_status = 0; }; }; then
cd6ede75
UD
6070 libc_cv_ld_no_whole_archive=yes
6071else
6072 libc_cv_ld_no_whole_archive=no
6073fi
6074rm -f conftest*
6075fi
b08c89d9 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
322e23db 6077$as_echo "$libc_cv_ld_no_whole_archive" >&6; }
3ce1f295
UD
6078if test $libc_cv_ld_no_whole_archive = no; then
6079 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
b17277cf 6080fi
cd6ede75 6081
b08c89d9 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
322e23db 6083$as_echo_n "checking for __builtin_memset... " >&6; }
f318beb8 6084if ${libc_cv_gcc_builtin_memset+:} false; then :
322e23db 6085 $as_echo_n "(cached) " >&6
d555194c
UD
6086else
6087 cat > conftest.c <<\EOF
6088void zero (void *x)
6089{
a52d1562 6090 __builtin_memset (x, 0, 1000);
d555194c
UD
6091}
6092EOF
3a12e572 6093if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
b08c89d9 6094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3a12e572
UD
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
b08c89d9
UD
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098 test $ac_status = 0; }; };
d555194c
UD
6099then
6100 libc_cv_gcc_builtin_memset=no
6101else
6102 libc_cv_gcc_builtin_memset=yes
6103fi
3a12e572 6104rm -f conftest*
d555194c 6105fi
b08c89d9 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
322e23db 6107$as_echo "$libc_cv_gcc_builtin_memset" >&6; }
d555194c 6108if test "$libc_cv_gcc_builtin_memset" = yes ; then
b08c89d9 6109 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
d555194c
UD
6110
6111fi
6112
b08c89d9 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
322e23db 6114$as_echo_n "checking for redirection of built-in functions... " >&6; }
f318beb8 6115if ${libc_cv_gcc_builtin_redirection+:} false; then :
322e23db 6116 $as_echo_n "(cached) " >&6
85dd1003
UD
6117else
6118 cat > conftest.c <<\EOF
6119extern char *strstr (const char *, const char *) __asm ("my_strstr");
6120char *foo (const char *a, const char *b)
6121{
6122 return __builtin_strstr (a, b);
6123}
6124EOF
6125if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
b08c89d9 6126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
85dd1003
UD
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
b08c89d9
UD
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; };
85dd1003
UD
6131then
6132 libc_cv_gcc_builtin_redirection=yes
6133else
6134 libc_cv_gcc_builtin_redirection=no
6135fi
6136rm -f conftest*
6137fi
b08c89d9 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
322e23db 6139$as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
3ce1f295
UD
6140if test "$libc_cv_gcc_builtin_redirection" = no; then
6141 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
85dd1003
UD
6142fi
6143
7998fa78
AS
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6145$as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6146if ${libc_cv_cc_nofma+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 libc_cv_cc_nofma=
6150for opt in -ffp-contract=off -mno-fused-madd; do
6151 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }; }; then :
6157 libc_cv_cc_nofma=$opt; break
6158fi
6159done
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6162$as_echo "$libc_cv_cc_nofma" >&6; }
6163
bef0b507 6164
2cf9ad57 6165if test -n "$submachine"; then
b08c89d9 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
322e23db 6167$as_echo_n "checking for compiler option for CPU variant... " >&6; }
f318beb8 6168if ${libc_cv_cc_submachine+:} false; then :
322e23db 6169 $as_echo_n "(cached) " >&6
2cf9ad57
RM
6170else
6171 libc_cv_cc_submachine=no
6172 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6173 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
b08c89d9 6174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2cf9ad57
RM
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
b08c89d9 6177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40b601fb
JM
6178 test $ac_status = 0; }; }; then :
6179
2cf9ad57
RM
6180 libc_cv_cc_submachine="$opt"
6181 break
40b601fb 6182fi
2cf9ad57
RM
6183 done
6184fi
b08c89d9 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
322e23db 6186$as_echo "$libc_cv_cc_submachine" >&6; }
2cf9ad57 6187 if test "x$libc_cv_cc_submachine" = xno; then
4a531bb0 6188 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
2cf9ad57
RM
6189 fi
6190fi
6191
6192
85c2e611
AZ
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6194__attribute__ ((__optimize__))" >&5
6195$as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6196__attribute__ ((__optimize__))... " >&6; }
6197if ${libc_cv_cc_loop_to_function+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199else
6200 cat > conftest.c <<EOF
6201void
6202__attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6203foo (void) {}
6204EOF
6205libc_cv_cc_loop_to_function=no
6206if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; }; }
6212then
6213 libc_cv_cc_loop_to_function=yes
6214fi
6215rm -f conftest*
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6218$as_echo "$libc_cv_cc_loop_to_function" >&6; }
6219if test $libc_cv_cc_loop_to_function = yes; then
6220 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6221
6222fi
6223
6224
b08c89d9 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
322e23db 6226$as_echo_n "checking for libgd... " >&6; }
6dab8688
UD
6227if test "$with_gd" != "no"; then
6228 old_CFLAGS="$CFLAGS"
6229 CFLAGS="$CFLAGS $libgd_include"
6230 old_LDFLAGS="$LDFLAGS"
6231 LDFLAGS="$LDFLAGS $libgd_ldflags"
6232 old_LIBS="$LIBS"
6233 LIBS="$LIBS -lgd -lpng -lz -lm"
b08c89d9 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2abf9ff1 6235/* end confdefs.h. */
c8f3e6db 6236#include <gd.h>
3a12e572
UD
6237int
6238main ()
6239{
c8f3e6db 6240gdImagePng (0, 0)
3a12e572
UD
6241 ;
6242 return 0;
6243}
6244_ACEOF
b08c89d9 6245if ac_fn_c_try_link "$LINENO"; then :
c8f3e6db
UD
6246 LIBGD=yes
6247else
b08c89d9 6248 LIBGD=no
c8f3e6db 6249fi
b08c89d9
UD
6250rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6dab8688
UD
6252 CFLAGS="$old_CFLAGS"
6253 LDFLAGS="$old_LDFLAGS"
6254 LIBS="$old_LIBS"
6255else
6256 LIBGD=no
6257fi
b08c89d9 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
322e23db 6259$as_echo "$LIBGD" >&6; }
3a12e572
UD
6260
6261
74a30a58
UD
6262# SELinux detection
6263if test x$with_selinux = xno ; then
6264 have_selinux=no;
6265else
6266 # See if we have the SELinux library
b08c89d9 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
322e23db 6268$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
f318beb8 6269if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
322e23db 6270 $as_echo_n "(cached) " >&6
74a30a58
UD
6271else
6272 ac_check_lib_save_LIBS=$LIBS
6273LIBS="-lselinux $LIBS"
b08c89d9 6274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74a30a58
UD
6275/* end confdefs.h. */
6276
26f56c1c
UD
6277/* Override any GCC internal prototype to avoid an error.
6278 Use char because int might match the return type of a GCC
6279 builtin and then its argument prototype would still apply. */
74a30a58
UD
6280#ifdef __cplusplus
6281extern "C"
6282#endif
74a30a58
UD
6283char is_selinux_enabled ();
6284int
6285main ()
6286{
26f56c1c 6287return is_selinux_enabled ();
74a30a58
UD
6288 ;
6289 return 0;
6290}
6291_ACEOF
b08c89d9 6292if ac_fn_c_try_link "$LINENO"; then :
74a30a58
UD
6293 ac_cv_lib_selinux_is_selinux_enabled=yes
6294else
b08c89d9 6295 ac_cv_lib_selinux_is_selinux_enabled=no
74a30a58 6296fi
b08c89d9
UD
6297rm -f core conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
74a30a58
UD
6299LIBS=$ac_check_lib_save_LIBS
6300fi
b08c89d9 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
322e23db 6302$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
f318beb8 6303if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
74a30a58
UD
6304 have_selinux=yes
6305else
6306 have_selinux=no
6307fi
6308
8f1913a9 6309 if test x$with_selinux = xyes ; then
74a30a58 6310 if test x$have_selinux = xno ; then
0699f766 6311 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
74a30a58
UD
6312 fi
6313 fi
6314fi
6315# Check if we're building with SELinux support.
6316if test "x$have_selinux" = xyes; then
6317
b08c89d9 6318$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
74a30a58 6319
b399a0c2
UD
6320
6321 # See if we have the libaudit library
b08c89d9 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
322e23db 6323$as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
f318beb8 6324if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
322e23db 6325 $as_echo_n "(cached) " >&6
b399a0c2
UD
6326else
6327 ac_check_lib_save_LIBS=$LIBS
6328LIBS="-laudit $LIBS"
b08c89d9 6329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b399a0c2
UD
6330/* end confdefs.h. */
6331
26f56c1c
UD
6332/* Override any GCC internal prototype to avoid an error.
6333 Use char because int might match the return type of a GCC
6334 builtin and then its argument prototype would still apply. */
b399a0c2
UD
6335#ifdef __cplusplus
6336extern "C"
6337#endif
b2f97341 6338char audit_log_user_avc_message ();
b399a0c2
UD
6339int
6340main ()
6341{
26f56c1c 6342return audit_log_user_avc_message ();
b399a0c2
UD
6343 ;
6344 return 0;
6345}
6346_ACEOF
b08c89d9 6347if ac_fn_c_try_link "$LINENO"; then :
b2f97341 6348 ac_cv_lib_audit_audit_log_user_avc_message=yes
b399a0c2 6349else
b08c89d9 6350 ac_cv_lib_audit_audit_log_user_avc_message=no
b399a0c2 6351fi
b08c89d9
UD
6352rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
b399a0c2
UD
6354LIBS=$ac_check_lib_save_LIBS
6355fi
b08c89d9 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
322e23db 6357$as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
f318beb8 6358if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
b399a0c2
UD
6359 have_libaudit=yes
6360else
6361 have_libaudit=no
6362fi
6363
6364 if test "x$have_libaudit" = xyes; then
6365
b08c89d9 6366$as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
b399a0c2
UD
6367
6368 fi
6369
1f063dca
UD
6370
6371 # See if we have the libcap library
b08c89d9 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
322e23db 6373$as_echo_n "checking for cap_init in -lcap... " >&6; }
f318beb8 6374if ${ac_cv_lib_cap_cap_init+:} false; then :
322e23db 6375 $as_echo_n "(cached) " >&6
1f063dca
UD
6376else
6377 ac_check_lib_save_LIBS=$LIBS
6378LIBS="-lcap $LIBS"
b08c89d9 6379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1f063dca
UD
6380/* end confdefs.h. */
6381
26f56c1c
UD
6382/* Override any GCC internal prototype to avoid an error.
6383 Use char because int might match the return type of a GCC
6384 builtin and then its argument prototype would still apply. */
1f063dca
UD
6385#ifdef __cplusplus
6386extern "C"
6387#endif
1f063dca
UD
6388char cap_init ();
6389int
6390main ()
6391{
26f56c1c 6392return cap_init ();
1f063dca
UD
6393 ;
6394 return 0;
6395}
6396_ACEOF
b08c89d9 6397if ac_fn_c_try_link "$LINENO"; then :
1f063dca
UD
6398 ac_cv_lib_cap_cap_init=yes
6399else
b08c89d9 6400 ac_cv_lib_cap_cap_init=no
1f063dca 6401fi
b08c89d9
UD
6402rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
1f063dca
UD
6404LIBS=$ac_check_lib_save_LIBS
6405fi
b08c89d9 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
322e23db 6407$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
f318beb8 6408if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
1f063dca
UD
6409 have_libcap=yes
6410else
6411 have_libcap=no
6412fi
6413
6414 if test "x$have_libcap" = xyes; then
6415
b08c89d9 6416$as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
1f063dca
UD
6417
6418 fi
6419
74a30a58
UD
6420fi
6421
6422
61653dfb
RM
6423CPPUNDEFS=
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6425$as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6426if ${libc_cv_predef_fortify_source+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428else
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h. */
6431
6432int
6433main ()
6434{
6435
6436#ifdef _FORTIFY_SOURCE
6437# error bogon
6438#endif
6439 ;
6440 return 0;
6441}
6442_ACEOF
6443if ac_fn_c_try_compile "$LINENO"; then :
6444 libc_cv_predef_fortify_source=no
6445else
6446 libc_cv_predef_fortify_source=yes
6447fi
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6451$as_echo "$libc_cv_predef_fortify_source" >&6; }
6452if test $libc_cv_predef_fortify_source = yes; then
6453 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6454fi
6455
6456
30b99d79
RM
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
6458$as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
6459if ${libc_cv_predef_stack_protector+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461else
6462
6463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465extern void foobar (char *);
6466int
6467main ()
6468{
6469char large_array[2048]; foobar (large_array);
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475
6476libc_undefs=`$NM -u conftest.o |
6477 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6478 2>&5` || {
6479 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6480}
6481echo >&5 "libc_undefs='$libc_undefs'"
59f0c22e
JM
6482# On some architectures, there are architecture-specific undefined
6483# symbols (resolved by the linker), so filter out unknown symbols.
6484# This will fail to produce the correct result if the compiler
6485# defaults to -fstack-protector but this produces an undefined symbol
6486# other than __stack_chk_fail. However, compilers like that have not
6487# been encountered in practice.
6488libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
30b99d79
RM
6489case "$libc_undefs" in
6490foobar) libc_cv_predef_stack_protector=no ;;
6491'__stack_chk_fail
6492foobar') libc_cv_predef_stack_protector=yes ;;
6493*) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
6494esac
6495else
6496 as_fn_error $? "test compilation failed" "$LINENO" 5
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
6502$as_echo "$libc_cv_predef_stack_protector" >&6; }
6503libc_extra_cflags=
6504if test $libc_cv_predef_stack_protector = yes; then
7ffa9423 6505 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
30b99d79 6506fi
7ffa9423 6507libc_extra_cppflags=
30b99d79 6508
61b1ef6e
MF
6509# Some linkers on some architectures support __ehdr_start but with
6510# bugs. Make sure usage of it does not create relocations in the
6511# output (as the linker should resolve them all for us).
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
6513$as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
44c4e5d5
RM
6514if ${libc_cv_ehdr_start+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516else
6517
6518old_CFLAGS="$CFLAGS"
6519old_LDFLAGS="$LDFLAGS"
6520old_LIBS="$LIBS"
6521CFLAGS="$CFLAGS -fPIC"
6522LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
6523LIBS=
6524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h. */
6526
61b1ef6e
MF
6527typedef struct {
6528 char foo;
6529 long val;
6530} Ehdr;
6531extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
6532long ehdr (void) { return __ehdr_start.val; }
44c4e5d5
RM
6533
6534_ACEOF
6535if ac_fn_c_try_link "$LINENO"; then :
61b1ef6e
MF
6536 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
6537 libc_cv_ehdr_start=broken
6538 else
6539 libc_cv_ehdr_start=yes
6540 fi
44c4e5d5
RM
6541else
6542 libc_cv_ehdr_start=no
6543fi
6544rm -f core conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546CFLAGS="$old_CFLAGS"
6547LDFLAGS="$old_LDFLAGS"
6548LIBS="$old_LIBS"
6549
6550fi
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
6552$as_echo "$libc_cv_ehdr_start" >&6; }
61b1ef6e 6553if test "$libc_cv_ehdr_start" = yes; then
44c4e5d5
RM
6554 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
6555
61b1ef6e
MF
6556elif test "$libc_cv_ehdr_start" = broken; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
6558$as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
44c4e5d5
RM
6559fi
6560
9fe7e787
RM
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6562$as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6563if ${libc_cv_builtin_trap+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565else
6566 libc_cv_builtin_trap=no
6567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568/* end confdefs.h. */
6569
6570int
6571main ()
6572{
6573__builtin_trap ()
6574 ;
6575 return 0;
6576}
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"; then :
6579
6580libc_undefs=`$NM -u conftest.o |
6581 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6582 2>&5` || {
6583 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6584}
6585echo >&5 "libc_undefs='$libc_undefs'"
6586if test -z "$libc_undefs"; then
6587 libc_cv_builtin_trap=yes
6588fi
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591fi
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6593$as_echo "$libc_cv_builtin_trap" >&6; }
6594if test $libc_cv_builtin_trap = yes; then
6595 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6596
6597fi
6598
99e1dc0a
FW
6599ac_ext=cpp
6600ac_cpp='$CXXCPP $CPPFLAGS'
6601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6604
6605
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6607$as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6608if ${libc_cv_cxx_thread_local+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610else
6611
6612old_CXXFLAGS="$CXXFLAGS"
6613CXXFLAGS="$CXXFLAGS -std=gnu++11"
6614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617#include <thread>
6618
6619// Compiler support.
6620struct S
6621{
6622 S ();
6623 ~S ();
6624};
6625thread_local S s;
6626S * get () { return &s; }
6627
6628// libstdc++ support.
6629#ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6630#error __cxa_thread_atexit_impl not supported
6631#endif
6632
6633_ACEOF
6634if ac_fn_cxx_try_compile "$LINENO"; then :
6635 libc_cv_cxx_thread_local=yes
6636else
6637 libc_cv_cxx_thread_local=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640CXXFLAGS="$old_CXXFLAGS"
6641
6642fi
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6644$as_echo "$libc_cv_cxx_thread_local" >&6; }
6645
6646
6647ac_ext=c
6648ac_cpp='$CPP $CPPFLAGS'
6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
6653
cd6ede75
UD
6654### End of automated tests.
6655### Now run sysdeps configure fragments.
6656
cb343854 6657# They also can set these variables.
b43b13ac 6658use_ldconfig=no
cb343854 6659ldd_rewrite_script=no
77259608 6660libc_cv_sysconfdir=$sysconfdir
4248b1b1 6661libc_cv_localstatedir=$localstatedir
74bd2300 6662libc_cv_gcc_unwind_find_fde=no
e2fd3cbe 6663libc_cv_idn=no
cb343854 6664
cd6ede75 6665# Iterate over all the sysdep directories we will use, running their
09055553 6666# configure fragments.
cd6ede75
UD
6667for dir in $sysnames; do
6668 case $dir in
6669 /*) dest=$dir ;;
6670 *) dest=$srcdir/$dir ;;
6671 esac
6672 if test -r $dest/configure; then
b08c89d9 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
322e23db 6674$as_echo "running configure fragment for $dir" >&6; }
cd6ede75
UD
6675 . $dest/configure
6676 fi
cd6ede75
UD
6677done
6678
5695d46f
AS
6679if test x"$build_mathvec" = xnotset; then
6680 build_mathvec=no
6681fi
6682config_vars="$config_vars
6683build-mathvec = $build_mathvec"
6684
7ffa9423
AZ
6685
6686
6687
74bd2300 6688if test x$libc_cv_gcc_unwind_find_fde = xyes; then
b08c89d9 6689 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
74bd2300
UD
6690
6691fi
6692
6693
6e6249d0
RM
6694# A sysdeps configure fragment can reset this if IFUNC is not actually
6695# usable even though the assembler knows how to generate the symbol type.
6696if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6697 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6698
6699fi
6700
3cc3ef96
RM
6701# This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6702# configure fragment can override the value to prevent this AC_DEFINE.
6703
6704if test "x$use_nscd" != xno; then
6705 $as_echo "#define USE_NSCD 1" >>confdefs.h
6706
6707fi
c53d909c
RM
6708if test "x$build_nscd" = xdefault; then
6709 build_nscd=$use_nscd
6710fi
3cc3ef96 6711
cd6ede75
UD
6712
6713
6714
6715
6716
cb343854 6717
dff14448 6718
f57f8055
RM
6719if test x$use_ldconfig = xyes; then
6720 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6721
6722fi
af968f62 6723
3b100462 6724
eae47a36 6725
7998fa78 6726
650425ce 6727
a334319f 6728
b08c89d9 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
322e23db 6730$as_echo_n "checking whether -fPIC is default... " >&6; }
f318beb8 6731if ${libc_cv_pic_default+:} false; then :
322e23db 6732 $as_echo_n "(cached) " >&6
cc3fa755 6733else
ff886b82 6734 libc_cv_pic_default=yes
cc3fa755 6735cat > conftest.c <<EOF
9756dfe1 6736#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
6737# error PIC is default.
6738#endif
6739EOF
6740if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
ff886b82 6741 libc_cv_pic_default=no
cc3fa755
UD
6742fi
6743rm -f conftest.*
6744fi
b08c89d9 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
322e23db 6746$as_echo "$libc_cv_pic_default" >&6; }
cc3fa755
UD
6747
6748
cc08749b
L
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6750$as_echo_n "checking whether -fPIE is default... " >&6; }
6751if ${libc_cv_pie_default+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753else
6754 libc_cv_pie_default=yes
6755cat > conftest.c <<EOF
6756#if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6757# error PIE is default.
6758#endif
6759EOF
6760if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6761 libc_cv_pie_default=no
6762fi
6763rm -f conftest.*
6764fi
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_default" >&5
6766$as_echo "$libc_cv_pie_default" >&6; }
6767
6768
2103c260 6769
2103c260 6770
2103c260 6771
cc3fa755 6772
cd6ede75
UD
6773
6774
6775
ee74a442
UD
6776VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6777RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6778
cd6ede75
UD
6779
6780
728e272a 6781ac_config_files="$ac_config_files config.make Makefile"
f4b07664 6782
26f56c1c 6783ac_config_commands="$ac_config_commands default"
f4b07664 6784
3a12e572 6785cat >confcache <<\_ACEOF
cd6ede75
UD
6786# This file is a shell script that caches the results of configure
6787# tests run on this system so they can be shared between configure
3a12e572
UD
6788# scripts and configure runs, see configure's option --config-cache.
6789# It is not useful on other systems. If it contains results you don't
6790# want to keep, you may remove or edit it.
cd6ede75 6791#
3a12e572
UD
6792# config.status only pays attention to the cache file if you give it
6793# the --recheck option to rerun configure.
cd6ede75 6794#
f4b07664 6795# `ac_cv_env_foo' variables (set or unset) will be overridden when
3a12e572
UD
6796# loading this file, other *unset* `ac_cv_foo' will be assigned the
6797# following values.
6798
6799_ACEOF
6800
cd6ede75
UD
6801# The following way of writing the cache mishandles newlines in values,
6802# but we know of no workaround that is simple, portable, and efficient.
26f56c1c 6803# So, we kill variables containing newlines.
cd6ede75
UD
6804# Ultrix sh set writes to stderr and can't be redirected directly,
6805# and sets the high bit in the cache file unless we assign to the vars.
26f56c1c
UD
6806(
6807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6808 eval ac_val=\$$ac_var
6809 case $ac_val in #(
6810 *${as_nl}*)
6811 case $ac_var in #(
b08c89d9 6812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
322e23db 6813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26f56c1c
UD
6814 esac
6815 case $ac_var in #(
6816 _ | IFS | as_nl) ;; #(
322e23db 6817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b08c89d9 6818 *) { eval $ac_var=; unset $ac_var;} ;;
26f56c1c
UD
6819 esac ;;
6820 esac
6821 done
6822
3a12e572 6823 (set) 2>&1 |
26f56c1c
UD
6824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6825 *${as_nl}ac_space=\ *)
b08c89d9
UD
6826 # `set' does not quote correctly, so add quotes: double-quote
6827 # substitution turns \\\\ into \\, and sed turns \\ into \.
3a12e572 6828 sed -n \
9382fcee
RM
6829 "s/'/'\\\\''/g;
6830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26f56c1c 6831 ;; #(
3a12e572
UD
6832 *)
6833 # `set' quotes correctly as required by POSIX, so do not add quotes.
26f56c1c 6834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 6835 ;;
26f56c1c
UD
6836 esac |
6837 sort
6838) |
3a12e572 6839 sed '
26f56c1c 6840 /^ac_cv_env_/b end
3a12e572 6841 t clear
26f56c1c 6842 :clear
3a12e572
UD
6843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6844 t end
26f56c1c
UD
6845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6846 :end' >>confcache
6847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6848 if test -w "$cache_file"; then
f318beb8 6849 if test "x$cache_file" != "x/dev/null"; then
b08c89d9 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
322e23db 6851$as_echo "$as_me: updating cache $cache_file" >&6;}
f318beb8
UD
6852 if test ! -f "$cache_file" || test -h "$cache_file"; then
6853 cat confcache >"$cache_file"
6854 else
6855 case $cache_file in #(
6856 */* | ?:*)
6857 mv -f confcache "$cache_file"$$ &&
6858 mv -f "$cache_file"$$ "$cache_file" ;; #(
6859 *)
6860 mv -f confcache "$cache_file" ;;
6861 esac
6862 fi
6863 fi
cd6ede75 6864 else
b08c89d9 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
322e23db 6866$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cd6ede75
UD
6867 fi
6868fi
6869rm -f confcache
6870
cd6ede75
UD
6871test "x$prefix" = xNONE && prefix=$ac_default_prefix
6872# Let make expand exec_prefix.
6873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6874
cd6ede75
UD
6875DEFS=-DHAVE_CONFIG_H
6876
f4b07664
RM
6877ac_libobjs=
6878ac_ltlibobjs=
4a531bb0 6879U=
f4b07664
RM
6880for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6881 # 1. Remove the extension, and $U if already installed.
26f56c1c 6882 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
322e23db 6883 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26f56c1c
UD
6884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6885 # will be set to the directory where LIBOBJS objects are built.
b08c89d9
UD
6886 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6887 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
f4b07664
RM
6888done
6889LIBOBJS=$ac_libobjs
6890
6891LTLIBOBJS=$ac_ltlibobjs
6892
6893
cd6ede75 6894
f318beb8 6895: "${CONFIG_STATUS=./config.status}"
322e23db 6896ac_write_fail=0
3a12e572
UD
6897ac_clean_files_save=$ac_clean_files
6898ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b08c89d9 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
322e23db 6900$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b08c89d9
UD
6901as_write_fail=0
6902cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3a12e572
UD
6903#! $SHELL
6904# Generated by $as_me.
cd6ede75 6905# Run this file to recreate the current configuration.
cd6ede75 6906# Compiler output produced by configure, useful for debugging
3a12e572 6907# configure, is in config.log if it exists.
cd6ede75 6908
3a12e572 6909debug=false
2abf9ff1
RM
6910ac_cs_recheck=false
6911ac_cs_silent=false
3a12e572 6912
b08c89d9
UD
6913SHELL=\${CONFIG_SHELL-$SHELL}
6914export SHELL
6915_ASEOF
6916cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6917## -------------------- ##
6918## M4sh Initialization. ##
6919## -------------------- ##
3a12e572 6920
26f56c1c
UD
6921# Be more Bourne compatible
6922DUALCASE=1; export DUALCASE # for MKS sh
b08c89d9 6923if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3a12e572
UD
6924 emulate sh
6925 NULLCMD=:
322e23db 6926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
6927 # is contrary to our usage. Disable this feature.
6928 alias -g '${1+"$@"}'='"$@"'
26f56c1c
UD
6929 setopt NO_GLOB_SUBST
6930else
b08c89d9
UD
6931 case `(set -o) 2>/dev/null` in #(
6932 *posix*) :
6933 set -o posix ;; #(
6934 *) :
6935 ;;
26f56c1c 6936esac
26f56c1c
UD
6937fi
6938
6939
322e23db
UD
6940as_nl='
6941'
6942export as_nl
6943# Printing a long string crashes Solaris 7 /usr/bin/printf.
6944as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6945as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6946as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b08c89d9
UD
6947# Prefer a ksh shell builtin over an external printf program on Solaris,
6948# but without wasting forks for bash or zsh.
6949if test -z "$BASH_VERSION$ZSH_VERSION" \
6950 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6951 as_echo='print -r --'
6952 as_echo_n='print -rn --'
6953elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
322e23db
UD
6954 as_echo='printf %s\n'
6955 as_echo_n='printf %s'
6956else
6957 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6958 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6959 as_echo_n='/usr/ucb/echo -n'
a152f366 6960 else
322e23db
UD
6961 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6962 as_echo_n_body='eval
6963 arg=$1;
b08c89d9 6964 case $arg in #(
322e23db
UD
6965 *"$as_nl"*)
6966 expr "X$arg" : "X\\(.*\\)$as_nl";
6967 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6968 esac;
6969 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6970 '
6971 export as_echo_n_body
6972 as_echo_n='sh -c $as_echo_n_body as_echo'
a152f366 6973 fi
322e23db
UD
6974 export as_echo_body
6975 as_echo='sh -c $as_echo_body as_echo'
6976fi
6977
6978# The user is always right.
6979if test "${PATH_SEPARATOR+set}" != set; then
6980 PATH_SEPARATOR=:
6981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6983 PATH_SEPARATOR=';'
6984 }
3a12e572
UD
6985fi
6986
f4b07664 6987
26f56c1c
UD
6988# IFS
6989# We need space, tab and new line, in precisely that order. Quoting is
6990# there to prevent editors from complaining about space-tab.
6991# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6992# splitting by setting IFS to empty value.)
26f56c1c
UD
6993IFS=" "" $as_nl"
6994
6995# Find who we are. Look in the path if we contain no directory separator.
f318beb8 6996as_myself=
b08c89d9 6997case $0 in #((
26f56c1c
UD
6998 *[\\/]* ) as_myself=$0 ;;
6999 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
b08c89d9
UD
7004 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7005 done
26f56c1c
UD
7006IFS=$as_save_IFS
7007
7008 ;;
7009esac
7010# We did not find ourselves, most probably we were run as `sh COMMAND'
7011# in which case we are not to be found in the path.
7012if test "x$as_myself" = x; then
7013 as_myself=$0
7014fi
7015if test ! -f "$as_myself"; then
322e23db 7016 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b08c89d9 7017 exit 1
26f56c1c
UD
7018fi
7019
b08c89d9
UD
7020# Unset variables that we do not need and which cause bugs (e.g. in
7021# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7022# suppresses any "Segmentation fault" message there. '((' could
7023# trigger a bug in pdksh 5.2.14.
7024for as_var in BASH_ENV ENV MAIL MAILPATH
7025do eval test x\${$as_var+set} = xset \
7026 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26f56c1c 7027done
f4b07664
RM
7028PS1='$ '
7029PS2='> '
7030PS4='+ '
7031
7032# NLS nuisances.
322e23db
UD
7033LC_ALL=C
7034export LC_ALL
7035LANGUAGE=C
7036export LANGUAGE
f4b07664 7037
b08c89d9
UD
7038# CDPATH.
7039(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7040
7041
4a531bb0
L
7042# as_fn_error STATUS ERROR [LINENO LOG_FD]
7043# ----------------------------------------
b08c89d9
UD
7044# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7045# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4a531bb0 7046# script with STATUS, using 1 if that was 0.
b08c89d9
UD
7047as_fn_error ()
7048{
4a531bb0
L
7049 as_status=$1; test $as_status -eq 0 && as_status=1
7050 if test "$4"; then
7051 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7052 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b08c89d9 7053 fi
4a531bb0 7054 $as_echo "$as_me: error: $2" >&2
b08c89d9
UD
7055 as_fn_exit $as_status
7056} # as_fn_error
7057
7058
7059# as_fn_set_status STATUS
7060# -----------------------
7061# Set $? to STATUS, without forking.
7062as_fn_set_status ()
7063{
7064 return $1
7065} # as_fn_set_status
7066
7067# as_fn_exit STATUS
7068# -----------------
7069# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7070as_fn_exit ()
7071{
7072 set +e
7073 as_fn_set_status $1
7074 exit $1
7075} # as_fn_exit
7076
7077# as_fn_unset VAR
7078# ---------------
7079# Portably unset VAR.
7080as_fn_unset ()
7081{
7082 { eval $1=; unset $1;}
7083}
7084as_unset=as_fn_unset
7085# as_fn_append VAR VALUE
7086# ----------------------
7087# Append the text in VALUE to the end of the definition contained in VAR. Take
7088# advantage of any shell optimizations that allow amortized linear growth over
7089# repeated appends, instead of the typical quadratic growth present in naive
7090# implementations.
7091if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7092 eval 'as_fn_append ()
7093 {
7094 eval $1+=\$2
7095 }'
7096else
7097 as_fn_append ()
7098 {
7099 eval $1=\$$1\$2
7100 }
7101fi # as_fn_append
7102
7103# as_fn_arith ARG...
7104# ------------------
7105# Perform arithmetic evaluation on the ARGs, and store the result in the
7106# global $as_val. Take advantage of shells that can avoid forks. The arguments
7107# must be portable across $(()) and expr.
7108if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7109 eval 'as_fn_arith ()
7110 {
7111 as_val=$(( $* ))
7112 }'
7113else
7114 as_fn_arith ()
7115 {
7116 as_val=`expr "$@" || test $? -eq 1`
7117 }
7118fi # as_fn_arith
7119
7120
26f56c1c
UD
7121if expr a : '\(a\)' >/dev/null 2>&1 &&
7122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
7123 as_expr=expr
7124else
7125 as_expr=false
7126fi
7127
26f56c1c 7128if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
7129 as_basename=basename
7130else
7131 as_basename=false
7132fi
3a12e572 7133
b08c89d9
UD
7134if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7135 as_dirname=dirname
7136else
7137 as_dirname=false
7138fi
3a12e572 7139
26f56c1c 7140as_me=`$as_basename -- "$0" ||
3a12e572
UD
7141$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7142 X"$0" : 'X\(//\)$' \| \
26f56c1c 7143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 7144$as_echo X/"$0" |
26f56c1c
UD
7145 sed '/^.*\/\([^/][^/]*\)\/*$/{
7146 s//\1/
7147 q
7148 }
7149 /^X\/\(\/\/\)$/{
7150 s//\1/
7151 q
7152 }
7153 /^X\/\(\/\).*/{
7154 s//\1/
7155 q
7156 }
7157 s/.*/./; q'`
3a12e572 7158
b08c89d9
UD
7159# Avoid depending upon Character Ranges.
7160as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7161as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7162as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7163as_cr_digits='0123456789'
7164as_cr_alnum=$as_cr_Letters$as_cr_digits
26f56c1c
UD
7165
7166ECHO_C= ECHO_N= ECHO_T=
b08c89d9 7167case `echo -n x` in #(((((
26f56c1c 7168-n*)
b08c89d9 7169 case `echo 'xy\c'` in
26f56c1c 7170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b08c89d9
UD
7171 xy) ECHO_C='\c';;
7172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7173 ECHO_T=' ';;
26f56c1c
UD
7174 esac;;
7175*)
7176 ECHO_N='-n';;
3a12e572 7177esac
cd6ede75 7178
3a12e572 7179rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
7180if test -d conf$$.dir; then
7181 rm -f conf$$.dir/conf$$.file
7182else
7183 rm -f conf$$.dir
322e23db
UD
7184 mkdir conf$$.dir 2>/dev/null
7185fi
7186if (echo >conf$$.file) 2>/dev/null; then
7187 if ln -s conf$$.file conf$$ 2>/dev/null; then
7188 as_ln_s='ln -s'
7189 # ... but there are two gotchas:
7190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f4a58f0d 7192 # In both cases, we have to default to `cp -pR'.
322e23db 7193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f4a58f0d 7194 as_ln_s='cp -pR'
322e23db
UD
7195 elif ln conf$$.file conf$$ 2>/dev/null; then
7196 as_ln_s=ln
7197 else
f4a58f0d 7198 as_ln_s='cp -pR'
322e23db 7199 fi
3a12e572 7200else
f4a58f0d 7201 as_ln_s='cp -pR'
cd6ede75 7202fi
26f56c1c
UD
7203rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7204rmdir conf$$.dir 2>/dev/null
cd6ede75 7205
b08c89d9
UD
7206
7207# as_fn_mkdir_p
7208# -------------
7209# Create "$as_dir" as a directory, including parents if necessary.
7210as_fn_mkdir_p ()
7211{
7212
7213 case $as_dir in #(
7214 -*) as_dir=./$as_dir;;
7215 esac
7216 test -d "$as_dir" || eval $as_mkdir_p || {
7217 as_dirs=
7218 while :; do
7219 case $as_dir in #(
7220 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7221 *) as_qdir=$as_dir;;
7222 esac
7223 as_dirs="'$as_qdir' $as_dirs"
7224 as_dir=`$as_dirname -- "$as_dir" ||
7225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7226 X"$as_dir" : 'X\(//\)[^/]' \| \
7227 X"$as_dir" : 'X\(//\)$' \| \
7228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7229$as_echo X"$as_dir" |
7230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7231 s//\1/
7232 q
7233 }
7234 /^X\(\/\/\)[^/].*/{
7235 s//\1/
7236 q
7237 }
7238 /^X\(\/\/\)$/{
7239 s//\1/
7240 q
7241 }
7242 /^X\(\/\).*/{
7243 s//\1/
7244 q
7245 }
7246 s/.*/./; q'`
7247 test -d "$as_dir" && break
7248 done
7249 test -z "$as_dirs" || eval "mkdir $as_dirs"
4a531bb0 7250 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b08c89d9
UD
7251
7252
7253} # as_fn_mkdir_p
f4b07664 7254if mkdir -p . 2>/dev/null; then
b08c89d9 7255 as_mkdir_p='mkdir -p "$as_dir"'
f4b07664 7256else
9382fcee 7257 test -d ./-p && rmdir ./-p
f4b07664
RM
7258 as_mkdir_p=false
7259fi
7260
f4a58f0d
L
7261
7262# as_fn_executable_p FILE
7263# -----------------------
7264# Test if FILE is an executable regular file.
7265as_fn_executable_p ()
7266{
7267 test -f "$1" && test -x "$1"
7268} # as_fn_executable_p
7269as_test_x='test -x'
7270as_executable_p=as_fn_executable_p
cd6ede75 7271
3a12e572 7272# Sed expression to map a string onto a valid CPP name.
9382fcee 7273as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
7274
7275# Sed expression to map a string onto a valid variable name.
9382fcee 7276as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
7277
7278
3a12e572 7279exec 6>&1
b08c89d9
UD
7280## ----------------------------------- ##
7281## Main body of $CONFIG_STATUS script. ##
7282## ----------------------------------- ##
7283_ASEOF
7284test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3a12e572 7285
b08c89d9
UD
7286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7287# Save the log message, to keep $0 and so on meaningful, and to
3a12e572 7288# report actual input values of CONFIG_FILES etc. instead of their
26f56c1c
UD
7289# values after options handling.
7290ac_log="
f4b07664 7291This file was extended by GNU C Library $as_me (see version.h), which was
f4a58f0d 7292generated by GNU Autoconf 2.69. Invocation command line was
3a12e572
UD
7293
7294 CONFIG_FILES = $CONFIG_FILES
7295 CONFIG_HEADERS = $CONFIG_HEADERS
7296 CONFIG_LINKS = $CONFIG_LINKS
7297 CONFIG_COMMANDS = $CONFIG_COMMANDS
7298 $ $0 $@
7299
26f56c1c
UD
7300on `(hostname || uname -n) 2>/dev/null | sed 1q`
7301"
7302
3a12e572
UD
7303_ACEOF
7304
322e23db
UD
7305case $ac_config_files in *"
7306"*) set x $ac_config_files; shift; ac_config_files=$*;;
7307esac
7308
7309case $ac_config_headers in *"
7310"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7311esac
7312
7313
7314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 7315# Files that config.status was made for.
26f56c1c
UD
7316config_files="$ac_config_files"
7317config_headers="$ac_config_headers"
7318config_commands="$ac_config_commands"
3a12e572 7319
26f56c1c 7320_ACEOF
3a12e572 7321
322e23db 7322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572 7323ac_cs_usage="\
b08c89d9
UD
7324\`$as_me' instantiates files and other configuration actions
7325from templates according to the current configuration. Unless the files
7326and actions are specified as TAGs, all are instantiated by default.
3a12e572 7327
b08c89d9 7328Usage: $0 [OPTION]... [TAG]...
3a12e572
UD
7329
7330 -h, --help print this help, then exit
26f56c1c 7331 -V, --version print version number and configuration settings, then exit
b08c89d9 7332 --config print configuration, then exit
322e23db
UD
7333 -q, --quiet, --silent
7334 do not print progress messages
3a12e572
UD
7335 -d, --debug don't remove temporary files
7336 --recheck update $as_me by reconfiguring in the same conditions
322e23db
UD
7337 --file=FILE[:TEMPLATE]
7338 instantiate the configuration file FILE
7339 --header=FILE[:TEMPLATE]
7340 instantiate the configuration header FILE
3a12e572
UD
7341
7342Configuration files:
7343$config_files
7344
7345Configuration headers:
7346$config_headers
7347
3a12e572
UD
7348Configuration commands:
7349$config_commands
7350
f318beb8
UD
7351Report bugs to <http://sourceware.org/bugzilla/>.
7352GNU C Library home page: <http://www.gnu.org/software/glibc/>.
b08c89d9 7353General help using GNU software: <http://www.gnu.org/gethelp/>."
3a12e572 7354
26f56c1c 7355_ACEOF
322e23db 7356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b08c89d9 7357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3a12e572 7358ac_cs_version="\\
f4b07664 7359GNU C Library config.status (see version.h)
f4a58f0d 7360configured by $0, generated by GNU Autoconf 2.69,
b08c89d9 7361 with options \\"\$ac_cs_config\\"
3a12e572 7362
f4a58f0d 7363Copyright (C) 2012 Free Software Foundation, Inc.
3a12e572
UD
7364This config.status script is free software; the Free Software Foundation
7365gives unlimited permission to copy, distribute and modify it."
26f56c1c
UD
7366
7367ac_pwd='$ac_pwd'
7368srcdir='$srcdir'
7369INSTALL='$INSTALL'
322e23db 7370test -n "\$AWK" || AWK=awk
3a12e572
UD
7371_ACEOF
7372
322e23db
UD
7373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7374# The default lists apply if the user does not specify any file.
3a12e572
UD
7375ac_need_defaults=:
7376while test $# != 0
7377do
7378 case $1 in
f318beb8 7379 --*=?*)
26f56c1c
UD
7380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
f4b07664
RM
7382 ac_shift=:
7383 ;;
f318beb8
UD
7384 --*=)
7385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7386 ac_optarg=
7387 ac_shift=:
7388 ;;
26f56c1c 7389 *)
f4b07664
RM
7390 ac_option=$1
7391 ac_optarg=$2
7392 ac_shift=shift
3a12e572 7393 ;;
cd6ede75
UD
7394 esac
7395
f4b07664 7396 case $ac_option in
3a12e572 7397 # Handling of the options.
2abf9ff1
RM
7398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7399 ac_cs_recheck=: ;;
26f56c1c 7400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
322e23db 7401 $as_echo "$ac_cs_version"; exit ;;
b08c89d9
UD
7402 --config | --confi | --conf | --con | --co | --c )
7403 $as_echo "$ac_cs_config"; exit ;;
26f56c1c 7404 --debug | --debu | --deb | --de | --d | -d )
3a12e572
UD
7405 debug=: ;;
7406 --file | --fil | --fi | --f )
f4b07664 7407 $ac_shift
322e23db
UD
7408 case $ac_optarg in
7409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f318beb8 7410 '') as_fn_error $? "missing file argument" ;;
322e23db 7411 esac
b08c89d9 7412 as_fn_append CONFIG_FILES " '$ac_optarg'"
3a12e572
UD
7413 ac_need_defaults=false;;
7414 --header | --heade | --head | --hea )
f4b07664 7415 $ac_shift
322e23db
UD
7416 case $ac_optarg in
7417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7418 esac
b08c89d9 7419 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3a12e572 7420 ac_need_defaults=false;;
26f56c1c
UD
7421 --he | --h)
7422 # Conflict between --help and --header
4a531bb0 7423 as_fn_error $? "ambiguous option: \`$1'
b08c89d9 7424Try \`$0 --help' for more information.";;
26f56c1c 7425 --help | --hel | -h )
322e23db 7426 $as_echo "$ac_cs_usage"; exit ;;
2abf9ff1
RM
7427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7429 ac_cs_silent=: ;;
3a12e572
UD
7430
7431 # This is an error.
4a531bb0 7432 -*) as_fn_error $? "unrecognized option: \`$1'
b08c89d9 7433Try \`$0 --help' for more information." ;;
3a12e572 7434
b08c89d9 7435 *) as_fn_append ac_config_targets " $1"
26f56c1c 7436 ac_need_defaults=false ;;
cd6ede75 7437
3a12e572
UD
7438 esac
7439 shift
7440done
7441
2abf9ff1
RM
7442ac_configure_extra_args=
7443
7444if $ac_cs_silent; then
7445 exec 6>/dev/null
7446 ac_configure_extra_args="$ac_configure_extra_args --silent"
7447fi
7448
7449_ACEOF
322e23db 7450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2abf9ff1 7451if \$ac_cs_recheck; then
f4a58f0d 7452 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
322e23db
UD
7453 shift
7454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7455 CONFIG_SHELL='$SHELL'
26f56c1c 7456 export CONFIG_SHELL
322e23db 7457 exec "\$@"
2abf9ff1
RM
7458fi
7459
3a12e572 7460_ACEOF
322e23db 7461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
7462exec 5>>config.log
7463{
7464 echo
7465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7466## Running $as_me. ##
7467_ASBOX
322e23db 7468 $as_echo "$ac_log"
26f56c1c 7469} >&5
3a12e572 7470
26f56c1c 7471_ACEOF
322e23db 7472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 7473#
26f56c1c 7474# INIT-COMMANDS
3a12e572 7475#
3a12e572
UD
7476config_vars='$config_vars'
7477
7478_ACEOF
7479
322e23db 7480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
7481
7482# Handling of arguments.
3a12e572
UD
7483for ac_config_target in $ac_config_targets
7484do
26f56c1c
UD
7485 case $ac_config_target in
7486 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7487 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
728e272a 7488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26f56c1c
UD
7489 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7490
4a531bb0 7491 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3a12e572
UD
7492 esac
7493done
7494
26f56c1c 7495
3a12e572
UD
7496# If the user did not use the arguments to specify the items to instantiate,
7497# then the envvar interface is used. Set only those that are not.
7498# We use the long form for the default assignment because of an extremely
7499# bizarre bug on SunOS 4.1.3.
7500if $ac_need_defaults; then
7501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3a12e572
UD
7503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7504fi
7505
2abf9ff1 7506# Have a temporary directory for convenience. Make it in the build tree
26f56c1c 7507# simply because there is no reason against having it here, and in addition,
2abf9ff1 7508# creating and moving files from /tmp can sometimes cause problems.
26f56c1c
UD
7509# Hook for its removal unless debugging.
7510# Note that there is a small window in which the directory will not be cleaned:
7511# after its creation but before its name has been assigned to `$tmp'.
3a12e572
UD
7512$debug ||
7513{
f318beb8 7514 tmp= ac_tmp=
26f56c1c 7515 trap 'exit_status=$?
f318beb8
UD
7516 : "${ac_tmp:=$tmp}"
7517 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26f56c1c 7518' 0
b08c89d9 7519 trap 'as_fn_exit 1' 1 2 13 15
3a12e572 7520}
3a12e572 7521# Create a (secure) tmp directory for tmp files.
2abf9ff1 7522
3a12e572 7523{
26f56c1c 7524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f318beb8 7525 test -d "$tmp"
3a12e572
UD
7526} ||
7527{
26f56c1c
UD
7528 tmp=./conf$$-$RANDOM
7529 (umask 077 && mkdir "$tmp")
4a531bb0 7530} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
f318beb8 7531ac_tmp=$tmp
3a12e572 7532
322e23db
UD
7533# Set up the scripts for CONFIG_FILES section.
7534# No need to generate them if there are no CONFIG_FILES.
7535# This happens for instance with `./config.status config.h'.
26f56c1c
UD
7536if test -n "$CONFIG_FILES"; then
7537
a152f366 7538
b08c89d9
UD
7539ac_cr=`echo X | tr X '\015'`
7540# On cygwin, bash can eat \r inside `` if the user requested igncr.
7541# But we know of no other shell where ac_cr would be empty at this
7542# point, so we can use a bashism as a fallback.
7543if test "x$ac_cr" = x; then
7544 eval ac_cr=\$\'\\r\'
7545fi
322e23db
UD
7546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4a531bb0 7548 ac_cs_awk_cr='\\r'
322e23db
UD
7549else
7550 ac_cs_awk_cr=$ac_cr
26f56c1c
UD
7551fi
7552
f318beb8 7553echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26f56c1c
UD
7554_ACEOF
7555
7556
322e23db
UD
7557{
7558 echo "cat >conf$$subs.awk <<_ACEOF" &&
7559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7560 echo "_ACEOF"
7561} >conf$$subs.sh ||
4a531bb0
L
7562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7563ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26f56c1c
UD
7564ac_delim='%!_!# '
7565for ac_last_try in false false false false false :; do
322e23db 7566 . ./conf$$subs.sh ||
4a531bb0 7567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
322e23db
UD
7568
7569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7570 if test $ac_delim_n = $ac_delim_num; then
26f56c1c
UD
7571 break
7572 elif $ac_last_try; then
4a531bb0 7573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26f56c1c
UD
7574 else
7575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7576 fi
7577done
322e23db
UD
7578rm -f conf$$subs.sh
7579
7580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f318beb8 7581cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
322e23db
UD
7582_ACEOF
7583sed -n '
7584h
7585s/^/S["/; s/!.*/"]=/
7586p
7587g
7588s/^[^!]*!//
7589:repl
7590t repl
7591s/'"$ac_delim"'$//
7592t delim
7593:nl
7594h
b08c89d9 7595s/\(.\{148\}\)..*/\1/
322e23db
UD
7596t more1
7597s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7598p
7599n
7600b repl
7601:more1
7602s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7603p
7604g
7605s/.\{148\}//
7606t nl
7607:delim
7608h
b08c89d9 7609s/\(.\{148\}\)..*/\1/
322e23db
UD
7610t more2
7611s/["\\]/\\&/g; s/^/"/; s/$/"/
7612p
7613b
7614:more2
7615s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7616p
7617g
7618s/.\{148\}//
7619t delim
7620' <conf$$subs.awk | sed '
7621/^[^""]/{
7622 N
7623 s/\n//
7624}
7625' >>$CONFIG_STATUS || ac_write_fail=1
7626rm -f conf$$subs.awk
7627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7628_ACAWK
f318beb8 7629cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
322e23db
UD
7630 for (key in S) S_is_set[key] = 1
7631 FS = "\a"
ff886b82 7632
322e23db
UD
7633}
7634{
7635 line = $ 0
7636 nfields = split(line, field, "@")
7637 substed = 0
7638 len = length(field[1])
7639 for (i = 2; i < nfields; i++) {
7640 key = field[i]
7641 keylen = length(key)
7642 if (S_is_set[key]) {
7643 value = S[key]
7644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7645 len += length(value) + length(field[++i])
7646 substed = 1
7647 } else
7648 len += 1 + keylen
7649 }
7650
7651 print line
7652}
cd6ede75 7653
322e23db 7654_ACAWK
26f56c1c 7655_ACEOF
322e23db
UD
7656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7659else
7660 cat
f318beb8 7661fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4a531bb0 7662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3a12e572 7663_ACEOF
26f56c1c 7664
4a531bb0
L
7665# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7666# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26f56c1c
UD
7667# trailing colons and then remove the whole line if VPATH becomes empty
7668# (actually we leave an empty line to preserve line numbers).
7669if test "x$srcdir" = x.; then
4a531bb0
L
7670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7671h
7672s///
7673s/^/:/
7674s/[ ]*$/:/
7675s/:\$(srcdir):/:/g
7676s/:\${srcdir}:/:/g
7677s/:@srcdir@:/:/g
7678s/^:*//
26f56c1c 7679s/:*$//
4a531bb0
L
7680x
7681s/\(=[ ]*\).*/\1/
7682G
7683s/\n//
26f56c1c
UD
7684s/^[^=]*=[ ]*$//
7685}'
7686fi
7687
322e23db 7688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
7689fi # test -n "$CONFIG_FILES"
7690
322e23db
UD
7691# Set up the scripts for CONFIG_HEADERS section.
7692# No need to generate them if there are no CONFIG_HEADERS.
7693# This happens for instance with `./config.status Makefile'.
7694if test -n "$CONFIG_HEADERS"; then
f318beb8 7695cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
322e23db
UD
7696BEGIN {
7697_ACEOF
7698
7699# Transform confdefs.h into an awk script `defines.awk', embedded as
7700# here-document in config.status, that substitutes the proper values into
7701# config.h.in to produce config.h.
7702
7703# Create a delimiter string that does not exist in confdefs.h, to ease
7704# handling of long lines.
7705ac_delim='%!_!# '
7706for ac_last_try in false false :; do
f318beb8
UD
7707 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7708 if test -z "$ac_tt"; then
322e23db
UD
7709 break
7710 elif $ac_last_try; then
4a531bb0 7711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
322e23db
UD
7712 else
7713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7714 fi
7715done
7716
7717# For the awk script, D is an array of macro values keyed by name,
7718# likewise P contains macro parameters if any. Preserve backslash
7719# newline sequences.
7720
7721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7722sed -n '
7723s/.\{148\}/&'"$ac_delim"'/g
7724t rset
7725:rset
7726s/^[ ]*#[ ]*define[ ][ ]*/ /
7727t def
7728d
7729:def
7730s/\\$//
7731t bsnl
7732s/["\\]/\\&/g
7733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7734D["\1"]=" \3"/p
7735s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7736d
7737:bsnl
7738s/["\\]/\\&/g
7739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7740D["\1"]=" \3\\\\\\n"\\/p
7741t cont
7742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7743t cont
7744d
7745:cont
7746n
7747s/.\{148\}/&'"$ac_delim"'/g
7748t clear
7749:clear
7750s/\\$//
7751t bsnlc
7752s/["\\]/\\&/g; s/^/"/; s/$/"/p
7753d
7754:bsnlc
7755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7756b cont
7757' <confdefs.h | sed '
7758s/'"$ac_delim"'/"\\\
7759"/g' >>$CONFIG_STATUS || ac_write_fail=1
7760
7761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7762 for (key in D) D_is_set[key] = 1
7763 FS = "\a"
7764}
7765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7766 line = \$ 0
7767 split(line, arg, " ")
7768 if (arg[1] == "#") {
7769 defundef = arg[2]
7770 mac1 = arg[3]
7771 } else {
7772 defundef = substr(arg[1], 2)
7773 mac1 = arg[2]
7774 }
7775 split(mac1, mac2, "(") #)
7776 macro = mac2[1]
7777 prefix = substr(line, 1, index(line, defundef) - 1)
7778 if (D_is_set[macro]) {
7779 # Preserve the white space surrounding the "#".
7780 print prefix "define", macro P[macro] D[macro]
7781 next
7782 } else {
7783 # Replace #undef with comments. This is necessary, for example,
7784 # in the case of _POSIX_SOURCE, which is predefined and required
7785 # on some systems where configure will not decide to define it.
7786 if (defundef == "undef") {
7787 print "/*", prefix defundef, macro, "*/"
7788 next
7789 }
7790 }
7791}
7792{ print }
7793_ACAWK
7794_ACEOF
7795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4a531bb0 7796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
322e23db
UD
7797fi # test -n "$CONFIG_HEADERS"
7798
26f56c1c 7799
322e23db
UD
7800eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7801shift
7802for ac_tag
26f56c1c
UD
7803do
7804 case $ac_tag in
7805 :[FHLC]) ac_mode=$ac_tag; continue;;
7806 esac
7807 case $ac_mode$ac_tag in
7808 :[FHL]*:*);;
4a531bb0 7809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26f56c1c
UD
7810 :[FH]-) ac_tag=-:-;;
7811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cd6ede75 7812 esac
26f56c1c
UD
7813 ac_save_IFS=$IFS
7814 IFS=:
7815 set x $ac_tag
7816 IFS=$ac_save_IFS
7817 shift
7818 ac_file=$1
7819 shift
7820
7821 case $ac_mode in
7822 :L) ac_source=$1;;
7823 :[FH])
7824 ac_file_inputs=
7825 for ac_f
7826 do
7827 case $ac_f in
f318beb8 7828 -) ac_f="$ac_tmp/stdin";;
26f56c1c
UD
7829 *) # Look for the file first in the build tree, then in the source tree
7830 # (if the path is not absolute). The absolute path cannot be DOS-style,
7831 # because $ac_f cannot contain `:'.
7832 test -f "$ac_f" ||
7833 case $ac_f in
7834 [\\/$]*) false;;
7835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7836 esac ||
4a531bb0 7837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26f56c1c 7838 esac
322e23db 7839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b08c89d9 7840 as_fn_append ac_file_inputs " '$ac_f'"
26f56c1c 7841 done
cd6ede75 7842
26f56c1c
UD
7843 # Let's still pretend it is `configure' which instantiates (i.e., don't
7844 # use $as_me), people would be surprised to read:
7845 # /* config.h. Generated by config.status. */
322e23db
UD
7846 configure_input='Generated from '`
7847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7848 `' by configure.'
26f56c1c
UD
7849 if test x"$ac_file" != x-; then
7850 configure_input="$ac_file. $configure_input"
b08c89d9 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
322e23db 7852$as_echo "$as_me: creating $ac_file" >&6;}
26f56c1c 7853 fi
322e23db
UD
7854 # Neutralize special characters interpreted by sed in replacement strings.
7855 case $configure_input in #(
7856 *\&* | *\|* | *\\* )
7857 ac_sed_conf_input=`$as_echo "$configure_input" |
7858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7859 *) ac_sed_conf_input=$configure_input;;
7860 esac
26f56c1c
UD
7861
7862 case $ac_tag in
f318beb8 7863 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4a531bb0 7864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26f56c1c
UD
7865 esac
7866 ;;
7867 esac
7868
7869 ac_dir=`$as_dirname -- "$ac_file" ||
3a12e572 7870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
7871 X"$ac_file" : 'X\(//\)[^/]' \| \
7872 X"$ac_file" : 'X\(//\)$' \| \
26f56c1c 7873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 7874$as_echo X"$ac_file" |
26f56c1c
UD
7875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7876 s//\1/
7877 q
7878 }
7879 /^X\(\/\/\)[^/].*/{
7880 s//\1/
7881 q
7882 }
7883 /^X\(\/\/\)$/{
7884 s//\1/
7885 q
7886 }
7887 /^X\(\/\).*/{
7888 s//\1/
7889 q
7890 }
7891 s/.*/./; q'`
b08c89d9 7892 as_dir="$ac_dir"; as_fn_mkdir_p
3a12e572
UD
7893 ac_builddir=.
7894
26f56c1c
UD
7895case "$ac_dir" in
7896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7897*)
322e23db 7898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 7899 # A ".." for each directory in $ac_dir_suffix.
322e23db 7900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
7901 case $ac_top_builddir_sub in
7902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7904 esac ;;
7905esac
7906ac_abs_top_builddir=$ac_pwd
7907ac_abs_builddir=$ac_pwd$ac_dir_suffix
7908# for backward compatibility:
7909ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
7910
7911case $srcdir in
26f56c1c 7912 .) # We are building in place.
3a12e572 7913 ac_srcdir=.
26f56c1c
UD
7914 ac_top_srcdir=$ac_top_builddir_sub
7915 ac_abs_top_srcdir=$ac_pwd ;;
7916 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 7917 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
7918 ac_top_srcdir=$srcdir
7919 ac_abs_top_srcdir=$srcdir ;;
7920 *) # Relative name.
7921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7922 ac_top_srcdir=$ac_top_build_prefix$srcdir
7923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 7924esac
26f56c1c 7925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9382fcee 7926
cd6ede75 7927
26f56c1c
UD
7928 case $ac_mode in
7929 :F)
7930 #
7931 # CONFIG_FILE
7932 #
3a12e572
UD
7933
7934 case $INSTALL in
7935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26f56c1c 7936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cd6ede75 7937 esac
26f56c1c 7938_ACEOF
cd6ede75 7939
322e23db 7940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
7941# If the template does not know about datarootdir, expand it.
7942# FIXME: This hack should be removed a few years after 2.60.
7943ac_datarootdir_hack=; ac_datarootdir_seen=
322e23db
UD
7944ac_sed_dataroot='
7945/datarootdir/ {
26f56c1c
UD
7946 p
7947 q
7948}
7949/@datadir@/p
7950/@docdir@/p
7951/@infodir@/p
7952/@localedir@/p
b08c89d9 7953/@mandir@/p'
322e23db 7954case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26f56c1c
UD
7955*datarootdir*) ac_datarootdir_seen=yes;;
7956*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b08c89d9 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
322e23db 7958$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26f56c1c 7959_ACEOF
322e23db 7960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26f56c1c
UD
7961 ac_datarootdir_hack='
7962 s&@datadir@&$datadir&g
7963 s&@docdir@&$docdir&g
7964 s&@infodir@&$infodir&g
7965 s&@localedir@&$localedir&g
7966 s&@mandir@&$mandir&g
b08c89d9 7967 s&\\\${datarootdir}&$datarootdir&g' ;;
26f56c1c 7968esac
3a12e572 7969_ACEOF
26f56c1c
UD
7970
7971# Neutralize VPATH when `$srcdir' = `.'.
7972# Shell code in configure.ac might set extrasub.
7973# FIXME: do we really want to maintain this feature?
322e23db
UD
7974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7975ac_sed_extra="$ac_vpsub
3a12e572
UD
7976$extrasub
7977_ACEOF
322e23db 7978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572
UD
7979:t
7980/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
322e23db 7981s|@configure_input@|$ac_sed_conf_input|;t t
26f56c1c 7982s&@top_builddir@&$ac_top_builddir_sub&;t t
322e23db 7983s&@top_build_prefix@&$ac_top_build_prefix&;t t
26f56c1c
UD
7984s&@srcdir@&$ac_srcdir&;t t
7985s&@abs_srcdir@&$ac_abs_srcdir&;t t
7986s&@top_srcdir@&$ac_top_srcdir&;t t
7987s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7988s&@builddir@&$ac_builddir&;t t
7989s&@abs_builddir@&$ac_abs_builddir&;t t
7990s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7991s&@INSTALL@&$ac_INSTALL&;t t
7992$ac_datarootdir_hack
322e23db 7993"
f318beb8
UD
7994eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7995 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26f56c1c
UD
7996
7997test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f318beb8
UD
7998 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8000 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b08c89d9 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4a531bb0 8002which seems to be undefined. Please make sure it is defined" >&5
322e23db 8003$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4a531bb0 8004which seems to be undefined. Please make sure it is defined" >&2;}
26f56c1c 8005
f318beb8 8006 rm -f "$ac_tmp/stdin"
3a12e572 8007 case $ac_file in
f318beb8
UD
8008 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8009 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
322e23db 8010 esac \
4a531bb0 8011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26f56c1c
UD
8012 ;;
8013 :H)
8014 #
8015 # CONFIG_HEADER
8016 #
3a12e572 8017 if test x"$ac_file" != x-; then
322e23db
UD
8018 {
8019 $as_echo "/* $configure_input */" \
f318beb8
UD
8020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8021 } >"$ac_tmp/config.h" \
4a531bb0 8022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f318beb8 8023 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
b08c89d9 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
322e23db 8025$as_echo "$as_me: $ac_file is unchanged" >&6;}
3a12e572 8026 else
322e23db 8027 rm -f "$ac_file"
f318beb8 8028 mv "$ac_tmp/config.h" "$ac_file" \
4a531bb0 8029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
f4b07664
RM
8030 fi
8031 else
322e23db 8032 $as_echo "/* $configure_input */" \
f318beb8 8033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4a531bb0 8034 || as_fn_error $? "could not create -" "$LINENO" 5
f4b07664 8035 fi
26f56c1c 8036 ;;
9382fcee 8037
b08c89d9 8038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
322e23db 8039$as_echo "$as_me: executing $ac_file commands" >&6;}
26f56c1c
UD
8040 ;;
8041 esac
3a12e572
UD
8042
8043
26f56c1c
UD
8044 case $ac_file$ac_mode in
8045 "default":C)
c0fb8a56
UD
8046case $CONFIG_FILES in *config.make*)
8047echo "$config_vars" >> config.make;;
8048esac
3a12e572 8049test -d bits || mkdir bits ;;
26f56c1c 8050
3a12e572 8051 esac
26f56c1c 8052done # for ac_tag
3a12e572 8053
3a12e572 8054
b08c89d9 8055as_fn_exit 0
3a12e572 8056_ACEOF
3a12e572
UD
8057ac_clean_files=$ac_clean_files_save
8058
322e23db 8059test $ac_write_fail = 0 ||
4a531bb0 8060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
322e23db 8061
3a12e572
UD
8062
8063# configure is writing to config.log, and then calls config.status.
8064# config.status does its own redirection, appending to config.log.
8065# Unfortunately, on DOS this fails, as config.log is still kept open
8066# by configure, so config.status won't be able to write to it; its
8067# output is simply discarded. So we exec the FD to /dev/null,
8068# effectively closing config.log, so it can be properly (re)opened and
8069# appended to by config.status. When coming back to configure, we
8070# need to make the FD available again.
8071if test "$no_create" != yes; then
8072 ac_cs_success=:
2abf9ff1
RM
8073 ac_config_status_args=
8074 test "$silent" = yes &&
8075 ac_config_status_args="$ac_config_status_args --quiet"
3a12e572 8076 exec 5>/dev/null
2abf9ff1 8077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3a12e572
UD
8078 exec 5>>config.log
8079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8080 # would make configure fail if this is the last instruction.
4a531bb0 8081 $ac_cs_success || as_fn_exit 1
3a12e572 8082fi
cd6ede75 8083
3a12e572
UD
8084#
8085# CONFIG_SUBDIRS section.
8086#
cd6ede75
UD
8087if test "$no_recursion" != yes; then
8088
322e23db
UD
8089 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8090 # so they do not pile up.
cd6ede75
UD
8091 ac_sub_configure_args=
8092 ac_prev=
26f56c1c
UD
8093 eval "set x $ac_configure_args"
8094 shift
8095 for ac_arg
8096 do
cd6ede75
UD
8097 if test -n "$ac_prev"; then
8098 ac_prev=
8099 continue
8100 fi
3a12e572 8101 case $ac_arg in
cd6ede75
UD
8102 -cache-file | --cache-file | --cache-fil | --cache-fi \
8103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8104 ac_prev=cache_file ;;
8105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3a12e572
UD
8106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8107 | --c=*)
8108 ;;
8109 --config-cache | -C)
cd6ede75
UD
8110 ;;
8111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8112 ac_prev=srcdir ;;
8113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8114 ;;
3a12e572
UD
8115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8116 ac_prev=prefix ;;
8117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8118 ;;
322e23db
UD
8119 --disable-option-checking)
8120 ;;
26f56c1c
UD
8121 *)
8122 case $ac_arg in
322e23db 8123 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c 8124 esac
b08c89d9 8125 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
cd6ede75
UD
8126 esac
8127 done
8128
3a12e572
UD
8129 # Always prepend --prefix to ensure using the same prefix
8130 # in subdir configurations.
26f56c1c
UD
8131 ac_arg="--prefix=$prefix"
8132 case $ac_arg in
322e23db 8133 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c
UD
8134 esac
8135 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8136
8137 # Pass --silent
8138 if test "$silent" = yes; then
8139 ac_sub_configure_args="--silent $ac_sub_configure_args"
8140 fi
3a12e572 8141
322e23db
UD
8142 # Always prepend --disable-option-checking to silence warnings, since
8143 # different subdirs can have different --enable and --with options.
8144 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8145
3a12e572
UD
8146 ac_popdir=`pwd`
8147 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cd6ede75
UD
8148
8149 # Do not complain, so a configure script can configure whichever
8150 # parts of a large source tree are present.
26f56c1c
UD
8151 test -d "$srcdir/$ac_dir" || continue
8152
8153 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
b08c89d9 8154 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
322e23db 8155 $as_echo "$ac_msg" >&6
b08c89d9 8156 as_dir="$ac_dir"; as_fn_mkdir_p
3a12e572 8157 ac_builddir=.
cd6ede75 8158
26f56c1c
UD
8159case "$ac_dir" in
8160.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8161*)
322e23db 8162 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 8163 # A ".." for each directory in $ac_dir_suffix.
322e23db 8164 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
8165 case $ac_top_builddir_sub in
8166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8168 esac ;;
8169esac
8170ac_abs_top_builddir=$ac_pwd
8171ac_abs_builddir=$ac_pwd$ac_dir_suffix
8172# for backward compatibility:
8173ac_top_builddir=$ac_top_build_prefix
cd6ede75 8174
3a12e572 8175case $srcdir in
26f56c1c 8176 .) # We are building in place.
3a12e572 8177 ac_srcdir=.
26f56c1c
UD
8178 ac_top_srcdir=$ac_top_builddir_sub
8179 ac_abs_top_srcdir=$ac_pwd ;;
8180 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 8181 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
8182 ac_top_srcdir=$srcdir
8183 ac_abs_top_srcdir=$srcdir ;;
8184 *) # Relative name.
8185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8186 ac_top_srcdir=$ac_top_build_prefix$srcdir
8187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9382fcee 8188esac
26f56c1c 8189ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3a12e572
UD
8190
8191
26f56c1c 8192 cd "$ac_dir"
cd6ede75
UD
8193
8194 # Check for guested configure; otherwise get Cygnus style configure.
26f56c1c
UD
8195 if test -f "$ac_srcdir/configure.gnu"; then
8196 ac_sub_configure=$ac_srcdir/configure.gnu
8197 elif test -f "$ac_srcdir/configure"; then
8198 ac_sub_configure=$ac_srcdir/configure
8199 elif test -f "$ac_srcdir/configure.in"; then
8200 # This should be Cygnus configure.
8201 ac_sub_configure=$ac_aux_dir/configure
cd6ede75 8202 else
b08c89d9 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
322e23db 8204$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
cd6ede75
UD
8205 ac_sub_configure=
8206 fi
8207
8208 # The recursion is here.
8209 if test -n "$ac_sub_configure"; then
cd6ede75 8210 # Make the cache file name correct relative to the subdirectory.
3a12e572
UD
8211 case $cache_file in
8212 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26f56c1c
UD
8213 *) # Relative name.
8214 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
cd6ede75 8215 esac
cd6ede75 8216
b08c89d9 8217 { $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
322e23db 8218$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
cd6ede75 8219 # The eval makes quoting arguments work.
26f56c1c
UD
8220 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8221 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4a531bb0 8222 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
cd6ede75
UD
8223 fi
8224
26f56c1c 8225 cd "$ac_popdir"
cd6ede75
UD
8226 done
8227fi
322e23db 8228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b08c89d9 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
322e23db
UD
8230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8231fi
cd6ede75 8232