]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
Avoid namespace pollution.
[thirdparty/glibc.git] / configure
CommitLineData
cd6ede75 1#! /bin/sh
3a12e572
UD
2# From configure.in CVSid.
3# Guess values for system-dependent variables and create Makefiles.
322e23db 4# Generated by GNU Autoconf 2.63 for GNU C Library (see version.h).
f4b07664
RM
5#
6# Report bugs to <glibc>.
3a12e572 7#
26f56c1c 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
322e23db 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3a12e572
UD
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
3a12e572
UD
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
cd6ede75 15
26f56c1c
UD
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
3a12e572
UD
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
322e23db 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26f56c1c
UD
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
322e23db
UD
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
a152f366 57 else
322e23db
UD
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
a152f366 70 fi
322e23db
UD
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
3a12e572 82fi
cd6ede75 83
3a12e572 84# Support unset when possible.
9382fcee 85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3a12e572
UD
86 as_unset=unset
87else
88 as_unset=false
89fi
90
f4b07664 91
26f56c1c
UD
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
26f56c1c
UD
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
322e23db 119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26f56c1c
UD
120 { (exit 1); exit 1; }
121fi
122
f4b07664 123# Work around bugs in pre-3.0 UWIN ksh.
26f56c1c
UD
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
f4b07664
RM
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
322e23db
UD
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
f4b07664
RM
136
137# Required to use basename.
26f56c1c
UD
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
140 as_expr=expr
141else
142 as_expr=false
143fi
144
26f56c1c 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
146 as_basename=basename
147else
148 as_basename=false
149fi
3a12e572
UD
150
151
152# Name of the executable.
26f56c1c 153as_me=`$as_basename -- "$0" ||
3a12e572
UD
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
26f56c1c 156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 157$as_echo X/"$0" |
26f56c1c
UD
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
3a12e572 171
26f56c1c
UD
172# CDPATH.
173$as_unset CDPATH
f4b07664 174
3a12e572 175
26f56c1c
UD
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
3a12e572 181fi
cd6ede75 182
322e23db 183 if test $as_have_required = yes && (eval ":
26f56c1c
UD
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
cd6ede75 199
26f56c1c
UD
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
650425ce 207
26f56c1c
UD
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
3a12e572
UD
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
26f56c1c 248 case $as_dir in
3a12e572 249 /*)
26f56c1c
UD
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
322e23db 265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26f56c1c
UD
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
322e23db 286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26f56c1c
UD
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
3a12e572
UD
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
3a12e572 352 test "x$as_lineno_1" != "x$as_lineno_2" &&
26f56c1c
UD
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
322e23db
UD
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
26f56c1c
UD
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
322e23db
UD
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
26f56c1c
UD
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
650425ce 450
3a12e572
UD
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
26f56c1c
UD
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
3a12e572 458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26f56c1c
UD
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
3a12e572 465 sed '
26f56c1c
UD
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
3a12e572 470 N
26f56c1c
UD
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3a12e572 473 t loop
26f56c1c 474 s/-\n.*//
3a12e572 475 ' >$as_me.lineno &&
26f56c1c 476 chmod +x "$as_me.lineno" ||
322e23db 477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3a12e572
UD
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
26f56c1c
UD
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
3a12e572
UD
484 # Exit status is that of the last command.
485 exit
486}
650425ce
UD
487
488
26f56c1c
UD
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
3a12e572 504esac
26f56c1c
UD
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3a12e572
UD
507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
322e23db
UD
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
3a12e572 531 as_ln_s='cp -p'
322e23db 532 fi
3a12e572
UD
533else
534 as_ln_s='cp -p'
535fi
26f56c1c
UD
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
3a12e572 538
f4b07664
RM
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
9382fcee 542 test -d ./-p && rmdir ./-p
f4b07664
RM
543 as_mkdir_p=false
544fi
545
26f56c1c
UD
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
322e23db 557 test -d "$1/.";
26f56c1c
UD
558 else
559 case $1 in
322e23db 560 -*)set "./$1";;
26f56c1c
UD
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
3a12e572
UD
568
569# Sed expression to map a string onto a valid CPP name.
9382fcee 570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
571
572# Sed expression to map a string onto a valid variable name.
9382fcee 573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
574
575
63bda0c1 576
26f56c1c 577exec 7<&0 </dev/null 6>&1
cd6ede75 578
3a12e572
UD
579# Name of the host.
580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
3a12e572
UD
584#
585# Initializations.
586#
cd6ede75 587ac_default_prefix=/usr/local
26f56c1c 588ac_clean_files=
f4b07664 589ac_config_libobj_dir=.
26f56c1c 590LIBOBJS=
3a12e572
UD
591cross_compiling=no
592subdirs=
593MFLAGS=
594MAKEFLAGS=
595SHELL=${CONFIG_SHELL-/bin/sh}
596
3a12e572 597# Identity of this package.
f4b07664
RM
598PACKAGE_NAME='GNU C Library'
599PACKAGE_TARNAME='c-library'
600PACKAGE_VERSION='(see version.h)'
601PACKAGE_STRING='GNU C Library (see version.h)'
602PACKAGE_BUGREPORT='glibc'
3a12e572
UD
603
604ac_unique_file="include/features.h"
322e23db 605enable_option_checking=no
3a12e572
UD
606# Factoring default headers for most tests.
607ac_includes_default="\
608#include <stdio.h>
26f56c1c 609#ifdef HAVE_SYS_TYPES_H
3a12e572
UD
610# include <sys/types.h>
611#endif
26f56c1c 612#ifdef HAVE_SYS_STAT_H
3a12e572
UD
613# include <sys/stat.h>
614#endif
26f56c1c 615#ifdef STDC_HEADERS
3a12e572
UD
616# include <stdlib.h>
617# include <stddef.h>
618#else
26f56c1c 619# ifdef HAVE_STDLIB_H
3a12e572
UD
620# include <stdlib.h>
621# endif
622#endif
26f56c1c
UD
623#ifdef HAVE_STRING_H
624# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
3a12e572
UD
625# include <memory.h>
626# endif
627# include <string.h>
628#endif
26f56c1c 629#ifdef HAVE_STRINGS_H
3a12e572
UD
630# include <strings.h>
631#endif
26f56c1c 632#ifdef HAVE_INTTYPES_H
3a12e572 633# include <inttypes.h>
3a12e572 634#endif
26f56c1c
UD
635#ifdef HAVE_STDINT_H
636# include <stdint.h>
637#endif
638#ifdef HAVE_UNISTD_H
3a12e572
UD
639# include <unistd.h>
640#endif"
641
322e23db 642ac_subst_vars='LTLIBOBJS
a152f366 643LIBOBJS
322e23db
UD
644RELEASE
645VERSION
646mach_interface_list
647DEFINES
648nopic_initfini
649static_nss
650bounded
651omitfp
652profile
653libc_cv_pic_default
654shared
655static
656xcoff
657elf
658ldd_rewrite_script
659use_ldconfig
01f1f5ee 660libc_cv_as_i686
b0ecde3a 661libc_cv_cc_avx
06e51c8f 662libc_cv_cc_sse4
322e23db
UD
663libc_cv_cpp_asm_debuginfo
664libc_cv_forced_unwind
665libc_cv_rootsbindir
666libc_cv_sysconfdir
667libc_cv_localedir
668libc_cv_slibdir
669old_glibc_headers
670uname_version
671uname_release
672uname_sysname
673libc_cv_gcc_unwind_find_fde
674sizeof_long_double
675EGREP
676GREP
677have_selinux
678have_libcap
679have_libaudit
680LIBGD
681libc_cv_cc_submachine
682exceptions
683no_whole_archive
684libc_cv_have_initfini
685libc_cv_gnu89_inline
686libc_cv_ssp
687fno_unit_at_a_time
688libc_cv_hashstyle
689libc_cv_fpie
690libc_cv_z_execstack
691libc_cv_z_combreloc
692ASFLAGS_config
693libc_cv_as_needed
694libc_cv_libgcc_s_suffix
695libc_cv_Bgroup
696libc_cv_cc_with_libunwind
697VERSIONING
698BISON
699INSTALL_INFO
700PERL
701AWK
702libc_cv_have_ksh
703KSH
704libc_cv_have_bash2
705BASH_SHELL
706libc_cv_gcc_static_libgcc
707CXX_SYSINCLUDES
708SYSINCLUDES
709AUTOCONF
710SED
711MAKEINFO
712MSGFMT
713MAKE
714PWD_P
715LD
716AS
717MIG
718RANLIB
719OBJDUMP
720AR
721LN_S
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725sysdeps_add_ons
726sysnames
727submachine
6f89d2f3 728multi_arch
322e23db
UD
729base_machine
730add_on_subdirs
731add_ons
322e23db
UD
732libc_cv_nss_crypt
733experimental_malloc
322e23db
UD
734all_warnings
735force_install
736bindnow
737oldest_abi
738enable_check_abi
739with_cvs
740with_fp
741ac_ct_CXX
742CXXFLAGS
743CXX
744CPP
745cross_compiling
746BUILD_CC
747OBJEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
c16a054d
AS
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
7967983f 761subdirs
322e23db
UD
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_BUGREPORT
793PACKAGE_STRING
794PACKAGE_VERSION
795PACKAGE_TARNAME
796PACKAGE_NAME
797PATH_SEPARATOR
798SHELL'
a152f366 799ac_subst_files=''
322e23db
UD
800ac_user_opts='
801enable_option_checking
802with_gd
803with_gd_include
804with_gd_lib
805with_fp
806with_binutils
807with_elf
808with_selinux
809with_xcoff
810with_cvs
811with_headers
812enable_sanity_checks
813enable_check_abi
814enable_shared
815enable_profile
816enable_omitfp
817enable_bounded
818enable_versioning
819enable_oldest_abi
820enable_stackguard_randomization
821enable_add_ons
822with_tls
823with___thread
824enable_hidden_plt
825enable_bind_now
826enable_static_nss
827enable_force_install
828enable_kernel
829enable_all_warnings
830enable_multi_arch
831enable_experimental_malloc
832enable_nss_crypt
833with_cpu
834'
a152f366
UD
835 ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843CPP
844CXX
845CXXFLAGS
846CCC'
7967983f
RM
847ac_subdirs_all='
848'
a152f366
UD
849
850# Initialize some variables set by options.
851ac_init_help=
852ac_init_version=false
322e23db
UD
853ac_unrecognized_opts=
854ac_unrecognized_sep=
a152f366
UD
855# The variables have the same names as the options, with
856# dashes changed to underlines.
857cache_file=/dev/null
858exec_prefix=NONE
859no_create=
860no_recursion=
861prefix=NONE
862program_prefix=NONE
863program_suffix=NONE
864program_transform_name=s,x,x,
865silent=
866site=
867srcdir=
868verbose=
869x_includes=NONE
870x_libraries=NONE
871
872# Installation directory options.
873# These are left unexpanded so users can "make install exec_prefix=/foo"
874# and all the variables that are supposed to be based on exec_prefix
875# by default will actually change.
876# Use braces instead of parens because sh, perl, etc. also accept them.
877# (The list follows the same order as the GNU Coding Standards.)
878bindir='${exec_prefix}/bin'
879sbindir='${exec_prefix}/sbin'
880libexecdir='${exec_prefix}/libexec'
881datarootdir='${prefix}/share'
882datadir='${datarootdir}'
883sysconfdir='${prefix}/etc'
884sharedstatedir='${prefix}/com'
885localstatedir='${prefix}/var'
886includedir='${prefix}/include'
887oldincludedir='/usr/include'
888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889infodir='${datarootdir}/info'
890htmldir='${docdir}'
26f56c1c
UD
891dvidir='${docdir}'
892pdfdir='${docdir}'
893psdir='${docdir}'
894libdir='${exec_prefix}/lib'
895localedir='${datarootdir}/locale'
896mandir='${datarootdir}/man'
cd6ede75 897
cd6ede75 898ac_prev=
26f56c1c 899ac_dashdash=
cd6ede75
UD
900for ac_option
901do
cd6ede75
UD
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
26f56c1c 904 eval $ac_prev=\$ac_option
cd6ede75
UD
905 ac_prev=
906 continue
907 fi
908
26f56c1c
UD
909 case $ac_option in
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *) ac_optarg=yes ;;
912 esac
cd6ede75
UD
913
914 # Accept the important Cygnus configure options, so we can diagnose typos.
915
26f56c1c
UD
916 case $ac_dashdash$ac_option in
917 --)
918 ac_dashdash=yes ;;
cd6ede75
UD
919
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3a12e572 923 bindir=$ac_optarg ;;
cd6ede75
UD
924
925 -build | --build | --buil | --bui | --bu)
3a12e572 926 ac_prev=build_alias ;;
cd6ede75 927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3a12e572 928 build_alias=$ac_optarg ;;
cd6ede75
UD
929
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3a12e572
UD
935 cache_file=$ac_optarg ;;
936
937 --config-cache | -C)
938 cache_file=config.cache ;;
cd6ede75 939
26f56c1c 940 -datadir | --datadir | --datadi | --datad)
cd6ede75 941 ac_prev=datadir ;;
26f56c1c 942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3a12e572 943 datadir=$ac_optarg ;;
cd6ede75 944
26f56c1c
UD
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
951
cd6ede75 952 -disable-* | --disable-*)
322e23db 953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cd6ede75 954 # Reject names that are not valid shell variable names.
322e23db
UD
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
3a12e572 957 { (exit 1); exit 1; }; }
322e23db
UD
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962"enable_$ac_useropt"
963"*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
26f56c1c
UD
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
cd6ede75
UD
978
979 -enable-* | --enable-*)
322e23db 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cd6ede75 981 # Reject names that are not valid shell variable names.
322e23db
UD
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
3a12e572 984 { (exit 1); exit 1; }; }
322e23db
UD
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
cd6ede75
UD
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
3a12e572 1003 exec_prefix=$ac_optarg ;;
cd6ede75
UD
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
3a12e572
UD
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
cd6ede75
UD
1015
1016 -host | --host | --hos | --ho)
3a12e572 1017 ac_prev=host_alias ;;
cd6ede75 1018 -host=* | --host=* | --hos=* | --ho=*)
3a12e572 1019 host_alias=$ac_optarg ;;
cd6ede75 1020
26f56c1c
UD
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
cd6ede75
UD
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
3a12e572 1032 includedir=$ac_optarg ;;
cd6ede75
UD
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3a12e572 1037 infodir=$ac_optarg ;;
cd6ede75
UD
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3a12e572 1042 libdir=$ac_optarg ;;
cd6ede75
UD
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
3a12e572 1049 libexecdir=$ac_optarg ;;
cd6ede75 1050
26f56c1c
UD
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
cd6ede75 1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
26f56c1c 1057 | --localstate | --localstat | --localsta | --localst | --locals)
cd6ede75
UD
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26f56c1c 1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3a12e572 1061 localstatedir=$ac_optarg ;;
cd6ede75
UD
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3a12e572 1066 mandir=$ac_optarg ;;
cd6ede75
UD
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3a12e572 1073 | --no-cr | --no-c | -n)
cd6ede75
UD
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3a12e572 1087 oldincludedir=$ac_optarg ;;
cd6ede75
UD
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3a12e572 1092 prefix=$ac_optarg ;;
cd6ede75
UD
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3a12e572 1099 program_prefix=$ac_optarg ;;
cd6ede75
UD
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3a12e572 1106 program_suffix=$ac_optarg ;;
cd6ede75
UD
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
3a12e572 1123 program_transform_name=$ac_optarg ;;
cd6ede75 1124
26f56c1c
UD
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
cd6ede75
UD
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
3a12e572 1143 sbindir=$ac_optarg ;;
cd6ede75
UD
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
3a12e572 1154 sharedstatedir=$ac_optarg ;;
cd6ede75
UD
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
3a12e572 1159 site=$ac_optarg ;;
cd6ede75
UD
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3a12e572 1164 srcdir=$ac_optarg ;;
cd6ede75
UD
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3a12e572 1171 sysconfdir=$ac_optarg ;;
cd6ede75
UD
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
3a12e572 1174 ac_prev=target_alias ;;
cd6ede75 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3a12e572 1176 target_alias=$ac_optarg ;;
cd6ede75
UD
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
3a12e572
UD
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
cd6ede75
UD
1183
1184 -with-* | --with-*)
322e23db 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cd6ede75 1186 # Reject names that are not valid shell variable names.
322e23db
UD
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
3a12e572 1189 { (exit 1); exit 1; }; }
322e23db
UD
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
cd6ede75
UD
1200
1201 -without-* | --without-*)
322e23db 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cd6ede75 1203 # Reject names that are not valid shell variable names.
322e23db
UD
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
3a12e572 1206 { (exit 1); exit 1; }; }
322e23db
UD
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
cd6ede75
UD
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3a12e572 1227 x_includes=$ac_optarg ;;
cd6ede75
UD
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3a12e572 1234 x_libraries=$ac_optarg ;;
cd6ede75 1235
322e23db 1236 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
3a12e572
UD
1237Try \`$0 --help' for more information." >&2
1238 { (exit 1); exit 1; }; }
cd6ede75
UD
1239 ;;
1240
3a12e572
UD
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
322e23db 1245 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
3a12e572 1246 { (exit 1); exit 1; }; }
26f56c1c 1247 eval $ac_envvar=\$ac_optarg
3a12e572
UD
1248 export $ac_envvar ;;
1249
cd6ede75 1250 *)
3a12e572 1251 # FIXME: should be removed in autoconf 3.0.
322e23db 1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3a12e572 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
322e23db 1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3a12e572 1255 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
cd6ede75
UD
1256 ;;
1257
1258 esac
1259done
1260
1261if test -n "$ac_prev"; then
3a12e572 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
322e23db 1263 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
3a12e572 1264 { (exit 1); exit 1; }; }
cd6ede75 1265fi
cd6ede75 1266
322e23db
UD
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1271 { (exit 1); exit 1; }; } ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274fi
1275
1276# Check all directory arguments for consistency.
26f56c1c
UD
1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
cd6ede75 1281do
26f56c1c 1282 eval ac_val=\$$ac_var
322e23db
UD
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
3a12e572 1290 case $ac_val in
26f56c1c
UD
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cd6ede75 1293 esac
322e23db 1294 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26f56c1c 1295 { (exit 1); exit 1; }; }
cd6ede75
UD
1296done
1297
3a12e572
UD
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
322e23db 1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3a12e572
UD
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314fi
cd6ede75 1315
3a12e572
UD
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
cd6ede75 1320
cd6ede75 1321
26f56c1c
UD
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
322e23db 1325 { $as_echo "$as_me: error: working directory cannot be determined" >&2
26f56c1c
UD
1326 { (exit 1); exit 1; }; }
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
322e23db 1328 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
26f56c1c
UD
1329 { (exit 1); exit 1; }; }
1330
1331
cd6ede75
UD
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
26f56c1c 1335 # Try the directory containing this script, then the parent directory.
322e23db
UD
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
26f56c1c
UD
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
cd6ede75 1359 srcdir=$ac_confdir
26f56c1c 1360 if test ! -r "$srcdir/$ac_unique_file"; then
cd6ede75
UD
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
26f56c1c
UD
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
322e23db 1368 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
3a12e572 1369 { (exit 1); exit 1; }; }
cd6ede75 1370fi
26f56c1c
UD
1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
322e23db 1373 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
f4b07664 1374 { (exit 1); exit 1; }; }
26f56c1c
UD
1375 pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
3a12e572
UD
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
f4b07664 1400\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
3a12e572
UD
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
3a12e572
UD
1420Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
322e23db 1422 [$ac_default_prefix]
3a12e572 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
322e23db 1424 [PREFIX]
3a12e572
UD
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
322e23db
UD
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
3a12e572
UD
1453_ACEOF
1454
1455 cat <<\_ACEOF
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
cd6ede75 1462
3a12e572 1463if test -n "$ac_init_help"; then
f4b07664
RM
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1466 esac
3a12e572
UD
1467 cat <<\_ACEOF
1468
1469Optional Features:
322e23db 1470 --disable-option-checking ignore unrecognized --enable/--with options
3a12e572
UD
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6b7f6183
RM
1473 --disable-sanity-checks really do not use threads (should not be used except
1474 in special situations) [default=yes]
fd54683c
RM
1475 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1476 [default=no]
26f56c1c 1477 --enable-shared build shared library [default=yes if GNU ld & ELF]
11bf311e 1478 --enable-profile build profiled library [default=no]
26f56c1c
UD
1479 --enable-omitfp build undebuggable optimized library [default=no]
1480 --enable-bounded build with runtime bounds checking [default=no]
6b7f6183
RM
1481 --disable-versioning do not include versioning information in the library
1482 objects [default=yes if supported]
1483 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1484 [default=glibc default]
35f1e827
UD
1485 --enable-stackguard-randomization
1486 initialize __stack_chk_guard canary with a random
1487 number at program start
6b7f6183
RM
1488 --enable-add-ons[=DIRS...]
1489 configure and build add-ons in DIR1,DIR2,... search
1490 for add-ons if no parameter given
3a12e572 1491 --disable-hidden-plt do not hide internal function calls to avoid PLT
4df8c11d 1492 --enable-bind-now disable lazy relocations in DSOs
6b7f6183 1493 --enable-static-nss build static NSS modules [default=no]
3a12e572 1494 --disable-force-install don't force installation of files from this package,
6b7f6183
RM
1495 even if they are older than the installed files
1496 --enable-kernel=VERSION compile for compatibility with kernel not older than
1497 VERSION
3a12e572 1498 --enable-all-warnings enable all useful warnings gcc can issue
425ce2ed
UD
1499 --enable-multi-arch enable single DSO with optimizations for multiple
1500 architectures
1501 --enable-experimental-malloc
1502 enable experimental malloc features
ff886b82 1503 --enable-nss-crypt enable libcrypt to use nss
3a12e572
UD
1504
1505Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3a12e572
UD
1508 --with-gd=DIR find libgd include dir and library with prefix DIR
1509 --with-gd-include=DIR find libgd include files in DIR
1510 --with-gd-lib=DIR find libgd library files in DIR
6b7f6183
RM
1511 --with-fp if using floating-point hardware [default=yes]
1512 --with-binutils=PATH specify location of binutils (as and ld)
1513 --with-elf if using the ELF object format
74a30a58 1514 --with-selinux if building with SELinux support
6b7f6183 1515 --with-xcoff if using the XCOFF object format
3a12e572 1516 --without-cvs if CVS should not be used
6b7f6183 1517 --with-headers=PATH location of system headers to use (for example
26f56c1c 1518 /usr/src/linux/include) [default=compiler default]
3a12e572
UD
1519 --with-tls enable support for TLS
1520 --without-__thread do not use TLS features even when supporting them
2ceaa76a 1521 --with-cpu=CPU select code for CPU variant
3a12e572
UD
1522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
26f56c1c
UD
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
3a12e572 1531 CPP C preprocessor
925c3c5c
UD
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
3a12e572
UD
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
f4b07664 1538Report bugs to <glibc>.
3a12e572 1539_ACEOF
26f56c1c 1540ac_status=$?
3a12e572
UD
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
3a12e572 1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
322e23db
UD
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
3a12e572
UD
1549 ac_builddir=.
1550
26f56c1c
UD
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
322e23db 1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 1555 # A ".." for each directory in $ac_dir_suffix.
322e23db 1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
1566
1567case $srcdir in
26f56c1c 1568 .) # We are building in place.
3a12e572 1569 ac_srcdir=.
26f56c1c
UD
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 1573 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 1580esac
26f56c1c
UD
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
3a12e572 1591 else
322e23db 1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
26f56c1c
UD
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
3a12e572
UD
1595 done
1596fi
1597
26f56c1c 1598test -n "$ac_init_help" && exit $ac_status
3a12e572
UD
1599if $ac_init_version; then
1600 cat <<\_ACEOF
f4b07664 1601GNU C Library configure (see version.h)
322e23db 1602generated by GNU Autoconf 2.63
3a12e572 1603
26f56c1c 1604Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
322e23db 16052002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3a12e572
UD
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
26f56c1c 1609 exit
3a12e572 1610fi
26f56c1c 1611cat >config.log <<_ACEOF
3a12e572
UD
1612This file contains any messages produced by compilers while
1613running configure, to aid debugging if configure makes a mistake.
1614
f4b07664 1615It was created by GNU C Library $as_me (see version.h), which was
322e23db 1616generated by GNU Autoconf 2.63. Invocation command line was
3a12e572
UD
1617
1618 $ $0 $@
1619
1620_ACEOF
26f56c1c 1621exec 5>>config.log
3a12e572
UD
1622{
1623cat <<_ASUNAME
1624## --------- ##
1625## Platform. ##
1626## --------- ##
1627
1628hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636
1637/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
26f56c1c 1640/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3a12e572
UD
1641/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644
1645_ASUNAME
1646
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
322e23db 1652 $as_echo "PATH: $as_dir"
3a12e572 1653done
26f56c1c 1654IFS=$as_save_IFS
3a12e572
UD
1655
1656} >&5
1657
1658cat >&5 <<_ACEOF
1659
1660
1661## ----------- ##
1662## Core tests. ##
1663## ----------- ##
1664
1665_ACEOF
1666
1667
1668# Keep a trace of the command line.
1669# Strip out --no-create and --no-recursion so they do not pile up.
2abf9ff1 1670# Strip out --silent because we don't want to record it for future runs.
3a12e572 1671# Also quote any args containing shell meta-characters.
2abf9ff1 1672# Make two passes to allow for proper duplicate-argument suppression.
3a12e572 1673ac_configure_args=
2abf9ff1
RM
1674ac_configure_args0=
1675ac_configure_args1=
2abf9ff1
RM
1676ac_must_keep_next=false
1677for ac_pass in 1 2
3a12e572 1678do
2abf9ff1
RM
1679 for ac_arg
1680 do
1681 case $ac_arg in
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 continue ;;
26f56c1c 1686 *\'*)
322e23db 1687 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2abf9ff1
RM
1688 esac
1689 case $ac_pass in
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 2)
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
9382fcee 1694 ac_must_keep_next=false # Got value, back to normal.
2abf9ff1 1695 else
9382fcee
RM
1696 case $ac_arg in
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 esac
1704 ;;
1705 -* ) ac_must_keep_next=true ;;
1706 esac
2abf9ff1 1707 fi
26f56c1c 1708 ac_configure_args="$ac_configure_args '$ac_arg'"
2abf9ff1
RM
1709 ;;
1710 esac
1711 done
3a12e572 1712done
2abf9ff1
RM
1713$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
3a12e572
UD
1715
1716# When interrupted or exit'd, cleanup temporary files, and complete
1717# config.log. We remove comments because anyway the quotes in there
1718# would cause problems or look ugly.
26f56c1c
UD
1719# WARNING: Use '\'' to represent an apostrophe within the trap.
1720# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3a12e572
UD
1721trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1723 {
1724 echo
f4b07664 1725
3a12e572
UD
1726 cat <<\_ASBOX
1727## ---------------- ##
1728## Cache variables. ##
1729## ---------------- ##
1730_ASBOX
1731 echo
1732 # The following way of writing the cache mishandles newlines in values,
26f56c1c
UD
1733(
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1736 case $ac_val in #(
1737 *${as_nl}*)
1738 case $ac_var in #(
322e23db
UD
1739 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26f56c1c
UD
1741 esac
1742 case $ac_var in #(
1743 _ | IFS | as_nl) ;; #(
322e23db 1744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26f56c1c
UD
1745 *) $as_unset $ac_var ;;
1746 esac ;;
1747 esac
1748 done
3a12e572 1749 (set) 2>&1 |
26f56c1c
UD
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
3a12e572 1752 sed -n \
26f56c1c
UD
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 ;; #(
3a12e572 1756 *)
26f56c1c 1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 1758 ;;
26f56c1c
UD
1759 esac |
1760 sort
1761)
3a12e572 1762 echo
f4b07664
RM
1763
1764 cat <<\_ASBOX
1765## ----------------- ##
1766## Output variables. ##
1767## ----------------- ##
1768_ASBOX
1769 echo
1770 for ac_var in $ac_subst_vars
1771 do
26f56c1c
UD
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
322e23db 1774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 1775 esac
322e23db 1776 $as_echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1777 done | sort
1778 echo
1779
1780 if test -n "$ac_subst_files"; then
1781 cat <<\_ASBOX
26f56c1c
UD
1782## ------------------- ##
1783## File substitutions. ##
1784## ------------------- ##
f4b07664
RM
1785_ASBOX
1786 echo
1787 for ac_var in $ac_subst_files
1788 do
26f56c1c
UD
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
322e23db 1791 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
26f56c1c 1792 esac
322e23db 1793 $as_echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1794 done | sort
1795 echo
1796 fi
1797
3a12e572
UD
1798 if test -s confdefs.h; then
1799 cat <<\_ASBOX
1800## ----------- ##
1801## confdefs.h. ##
1802## ----------- ##
1803_ASBOX
1804 echo
26f56c1c 1805 cat confdefs.h
3a12e572
UD
1806 echo
1807 fi
1808 test "$ac_signal" != 0 &&
322e23db
UD
1809 $as_echo "$as_me: caught signal $ac_signal"
1810 $as_echo "$as_me: exit $exit_status"
3a12e572 1811 } >&5
26f56c1c
UD
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3a12e572 1814 exit $exit_status
26f56c1c 1815' 0
3a12e572
UD
1816for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818done
1819ac_signal=0
1820
1821# confdefs.h avoids OS command line length limits that DEFS can exceed.
26f56c1c 1822rm -f -r conftest* confdefs.h
3a12e572
UD
1823
1824# Predefined preprocessor variables.
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_NAME "$PACKAGE_NAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_VERSION "$PACKAGE_VERSION"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_STRING "$PACKAGE_STRING"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848_ACEOF
1849
1850
1851# Let the site file select an alternate cache file if it wants to.
322e23db
UD
1852# Prefer an explicitly selected file to automatically selected ones.
1853ac_site_file1=NONE
1854ac_site_file2=NONE
26f56c1c 1855if test -n "$CONFIG_SITE"; then
322e23db 1856 ac_site_file1=$CONFIG_SITE
26f56c1c 1857elif test "x$prefix" != xNONE; then
322e23db
UD
1858 ac_site_file1=$prefix/share/config.site
1859 ac_site_file2=$prefix/etc/config.site
26f56c1c 1860else
322e23db
UD
1861 ac_site_file1=$ac_default_prefix/share/config.site
1862 ac_site_file2=$ac_default_prefix/etc/config.site
cd6ede75 1863fi
322e23db 1864for ac_site_file in "$ac_site_file1" "$ac_site_file2"
26f56c1c 1865do
322e23db 1866 test "x$ac_site_file" = xNONE && continue
cd6ede75 1867 if test -r "$ac_site_file"; then
322e23db
UD
1868 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3a12e572 1870 sed 's/^/| /' "$ac_site_file" >&5
cd6ede75
UD
1871 . "$ac_site_file"
1872 fi
1873done
1874
1875if test -r "$cache_file"; then
3a12e572
UD
1876 # Some versions of bash will fail to source /dev/null (special
1877 # files actually), so we avoid doing that.
1878 if test -f "$cache_file"; then
322e23db
UD
1879 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880$as_echo "$as_me: loading cache $cache_file" >&6;}
3a12e572 1881 case $cache_file in
26f56c1c
UD
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
3a12e572
UD
1884 esac
1885 fi
cd6ede75 1886else
322e23db
UD
1887 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888$as_echo "$as_me: creating cache $cache_file" >&6;}
3a12e572
UD
1889 >$cache_file
1890fi
1891
1892# Check that the precious variables saved in the cache have kept the same
1893# value.
1894ac_cache_corrupted=false
26f56c1c 1895for ac_var in $ac_precious_vars; do
3a12e572
UD
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
26f56c1c
UD
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
3a12e572
UD
1900 case $ac_old_set,$ac_new_set in
1901 set,)
322e23db
UD
1902 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3a12e572
UD
1904 ac_cache_corrupted=: ;;
1905 ,set)
322e23db
UD
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3a12e572
UD
1908 ac_cache_corrupted=: ;;
1909 ,);;
1910 *)
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
322e23db
UD
1912 # differences in whitespace do not lead to failure.
1913 ac_old_val_w=`echo x $ac_old_val`
1914 ac_new_val_w=`echo x $ac_new_val`
1915 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1917$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1918 ac_cache_corrupted=:
1919 else
1920 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1921$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1922 eval $ac_var=\$ac_old_val
1923 fi
1924 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1925$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1926 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1927$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3a12e572
UD
1928 fi;;
1929 esac
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1932 case $ac_new_val in
322e23db 1933 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3a12e572
UD
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1935 esac
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1939 esac
1940 fi
1941done
1942if $ac_cache_corrupted; then
322e23db
UD
1943 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3a12e572 1949 { (exit 1); exit 1; }; }
cd6ede75
UD
1950fi
1951
3a12e572
UD
1952
1953
cd6ede75 1954
63bda0c1 1955
cd6ede75
UD
1956
1957
3a12e572
UD
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
f4b07664
RM
1969
1970
1971
1972
1973
1974
1975
26f56c1c
UD
1976ac_ext=c
1977ac_cpp='$CPP $CPPFLAGS'
1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
f4b07664
RM
1981
1982
1983
26f56c1c 1984ac_config_headers="$ac_config_headers config.h"
3a12e572 1985
444518fe 1986ac_aux_dir=
26f56c1c
UD
1987for ac_dir in scripts "$srcdir"/scripts; do
1988 if test -f "$ac_dir/install-sh"; then
444518fe
UD
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install-sh -c"
1991 break
26f56c1c 1992 elif test -f "$ac_dir/install.sh"; then
444518fe
UD
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/install.sh -c"
1995 break
26f56c1c 1996 elif test -f "$ac_dir/shtool"; then
3a12e572
UD
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/shtool install -c"
1999 break
444518fe
UD
2000 fi
2001done
2002if test -z "$ac_aux_dir"; then
322e23db
UD
2003 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2004$as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
3a12e572 2005 { (exit 1); exit 1; }; }
444518fe 2006fi
26f56c1c
UD
2007
2008# These three variables are undocumented and unsupported,
2009# and are intended to be withdrawn in a future Autoconf release.
2010# They can cause serious problems if a builder's source tree is in a directory
2011# whose full name contains unusual characters.
2012ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2013ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2014ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015
444518fe 2016
cd6ede75 2017
7967983f
RM
2018
2019
2020subdirs="$subdirs "
2021
2022
c16a054d
AS
2023# Make sure we can run config.sub.
2024$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2025 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2026$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2027 { (exit 1); exit 1; }; }
2028
2029{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2030$as_echo_n "checking build system type... " >&6; }
2031if test "${ac_cv_build+set}" = set; then
2032 $as_echo_n "(cached) " >&6
2033else
2034 ac_build_alias=$build_alias
2035test "x$ac_build_alias" = x &&
2036 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2037test "x$ac_build_alias" = x &&
2038 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2042 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2043$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2045
2046fi
2047{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048$as_echo "$ac_cv_build" >&6; }
2049case $ac_cv_build in
2050*-*-*) ;;
2051*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2052$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2053 { (exit 1); exit 1; }; };;
2054esac
2055build=$ac_cv_build
2056ac_save_IFS=$IFS; IFS='-'
2057set x $ac_cv_build
2058shift
2059build_cpu=$1
2060build_vendor=$2
2061shift; shift
2062# Remember, the first character of IFS is used to create $*,
2063# except with old shells:
2064build_os=$*
2065IFS=$ac_save_IFS
2066case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2067
2068
2069{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2070$as_echo_n "checking host system type... " >&6; }
2071if test "${ac_cv_host+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2073else
2074 if test "x$host_alias" = x; then
2075 ac_cv_host=$ac_cv_build
2076else
2077 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2078 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2079$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2080 { (exit 1); exit 1; }; }
2081fi
2082
2083fi
2084{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2085$as_echo "$ac_cv_host" >&6; }
2086case $ac_cv_host in
2087*-*-*) ;;
2088*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2089$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2090 { (exit 1); exit 1; }; };;
2091esac
2092host=$ac_cv_host
2093ac_save_IFS=$IFS; IFS='-'
2094set x $ac_cv_host
2095shift
2096host_cpu=$1
2097host_vendor=$2
2098shift; shift
2099# Remember, the first character of IFS is used to create $*,
2100# except with old shells:
2101host_os=$*
2102IFS=$ac_save_IFS
2103case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2104
2105
2106
a152f366
UD
2107ac_ext=c
2108ac_cpp='$CPP $CPPFLAGS'
2109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114set dummy ${ac_tool_prefix}gcc; ac_word=$2
322e23db
UD
2115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2116$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2117if test "${ac_cv_prog_CC+set}" = set; then
322e23db 2118 $as_echo_n "(cached) " >&6
a152f366
UD
2119else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
322e23db 2131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2132 break 2
2133 fi
2134done
2135done
2136IFS=$as_save_IFS
c8f3e6db 2137
26f56c1c 2138fi
26f56c1c 2139fi
a152f366
UD
2140CC=$ac_cv_prog_CC
2141if test -n "$CC"; then
322e23db
UD
2142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2143$as_echo "$CC" >&6; }
a152f366 2144else
322e23db
UD
2145 { $as_echo "$as_me:$LINENO: result: no" >&5
2146$as_echo "no" >&6; }
26f56c1c
UD
2147fi
2148
e41db95b 2149
e41db95b 2150fi
a152f366
UD
2151if test -z "$ac_cv_prog_CC"; then
2152 ac_ct_CC=$CC
2153 # Extract the first word of "gcc", so it can be a program name with args.
2154set dummy gcc; ac_word=$2
322e23db
UD
2155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
322e23db 2158 $as_echo_n "(cached) " >&6
cd6ede75 2159else
a152f366
UD
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a5a0310d 2162else
a152f366
UD
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="gcc"
322e23db 2171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2172 break 2
2173 fi
2174done
2175done
2176IFS=$as_save_IFS
cd6ede75 2177
a152f366
UD
2178fi
2179fi
2180ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181if test -n "$ac_ct_CC"; then
322e23db
UD
2182 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183$as_echo "$ac_ct_CC" >&6; }
cd6ede75 2184else
322e23db
UD
2185 { $as_echo "$as_me:$LINENO: result: no" >&5
2186$as_echo "no" >&6; }
26f56c1c
UD
2187fi
2188
a152f366
UD
2189 if test "x$ac_ct_CC" = x; then
2190 CC=""
2191 else
2192 case $cross_compiling:$ac_tool_warned in
2193yes:)
322e23db
UD
2194{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
2196ac_tool_warned=yes ;;
2197esac
2198 CC=$ac_ct_CC
2199 fi
74a30a58 2200else
a152f366 2201 CC="$ac_cv_prog_CC"
26f56c1c
UD
2202fi
2203
a152f366
UD
2204if test -z "$CC"; then
2205 if test -n "$ac_tool_prefix"; then
2206 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2207set dummy ${ac_tool_prefix}cc; ac_word=$2
322e23db
UD
2208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2209$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2210if test "${ac_cv_prog_CC+set}" = set; then
322e23db 2211 $as_echo_n "(cached) " >&6
a152f366
UD
2212else
2213 if test -n "$CC"; then
2214 ac_cv_prog_CC="$CC" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_CC="${ac_tool_prefix}cc"
322e23db 2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2225 break 2
2226 fi
2227done
2228done
2229IFS=$as_save_IFS
74a30a58 2230
a152f366
UD
2231fi
2232fi
2233CC=$ac_cv_prog_CC
2234if test -n "$CC"; then
322e23db
UD
2235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2236$as_echo "$CC" >&6; }
5af3245a 2237else
322e23db
UD
2238 { $as_echo "$as_me:$LINENO: result: no" >&5
2239$as_echo "no" >&6; }
26f56c1c
UD
2240fi
2241
5af3245a 2242
a152f366 2243 fi
26f56c1c 2244fi
a152f366
UD
2245if test -z "$CC"; then
2246 # Extract the first word of "cc", so it can be a program name with args.
2247set dummy cc; ac_word=$2
322e23db
UD
2248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2250if test "${ac_cv_prog_CC+set}" = set; then
322e23db 2251 $as_echo_n "(cached) " >&6
a152f366
UD
2252else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255else
2256 ac_prog_rejected=no
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2265 ac_prog_rejected=yes
2266 continue
2267 fi
2268 ac_cv_prog_CC="cc"
322e23db 2269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2270 break 2
2271 fi
2272done
2273done
2274IFS=$as_save_IFS
26f56c1c 2275
a152f366
UD
2276if test $ac_prog_rejected = yes; then
2277 # We found a bogon in the path, so make sure we never use it.
2278 set dummy $ac_cv_prog_CC
2279 shift
2280 if test $# != 0; then
2281 # We chose a different compiler from the bogus one.
2282 # However, it has the same basename, so the bogon will be chosen
2283 # first if we set CC to just the basename; use the full file name.
2284 shift
2285 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6b3f2b3d 2286 fi
4442d7e8 2287fi
26f56c1c 2288fi
26f56c1c 2289fi
a152f366
UD
2290CC=$ac_cv_prog_CC
2291if test -n "$CC"; then
322e23db
UD
2292 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2293$as_echo "$CC" >&6; }
7dbde9db 2294else
322e23db
UD
2295 { $as_echo "$as_me:$LINENO: result: no" >&5
2296$as_echo "no" >&6; }
26f56c1c
UD
2297fi
2298
7dbde9db 2299
26f56c1c 2300fi
a152f366
UD
2301if test -z "$CC"; then
2302 if test -n "$ac_tool_prefix"; then
2303 for ac_prog in cl.exe
2304 do
2305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
322e23db
UD
2307{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2308$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2309if test "${ac_cv_prog_CC+set}" = set; then
322e23db 2310 $as_echo_n "(cached) " >&6
cd6ede75 2311else
a152f366
UD
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 2314else
a152f366
UD
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
322e23db 2323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2324 break 2
2325 fi
2326done
2327done
2328IFS=$as_save_IFS
26f56c1c 2329
26f56c1c 2330fi
a152f366
UD
2331fi
2332CC=$ac_cv_prog_CC
2333if test -n "$CC"; then
322e23db
UD
2334 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2335$as_echo "$CC" >&6; }
650425ce 2336else
322e23db
UD
2337 { $as_echo "$as_me:$LINENO: result: no" >&5
2338$as_echo "no" >&6; }
26f56c1c
UD
2339fi
2340
cd6ede75 2341
a152f366
UD
2342 test -n "$CC" && break
2343 done
26f56c1c 2344fi
a152f366
UD
2345if test -z "$CC"; then
2346 ac_ct_CC=$CC
2347 for ac_prog in cl.exe
2348do
2349 # Extract the first word of "$ac_prog", so it can be a program name with args.
2350set dummy $ac_prog; ac_word=$2
322e23db
UD
2351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2353if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
322e23db 2354 $as_echo_n "(cached) " >&6
62ab42d6 2355else
a152f366
UD
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_CC="$ac_prog"
322e23db 2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
2368 break 2
2369 fi
2370done
2371done
2372IFS=$as_save_IFS
62ab42d6
UD
2373
2374fi
a152f366
UD
2375fi
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
322e23db
UD
2378 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2379$as_echo "$ac_ct_CC" >&6; }
35f1e827 2380else
322e23db
UD
2381 { $as_echo "$as_me:$LINENO: result: no" >&5
2382$as_echo "no" >&6; }
26f56c1c
UD
2383fi
2384
35f1e827 2385
a152f366
UD
2386 test -n "$ac_ct_CC" && break
2387done
35f1e827 2388
a152f366
UD
2389 if test "x$ac_ct_CC" = x; then
2390 CC=""
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393yes:)
322e23db
UD
2394{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
2396ac_tool_warned=yes ;;
2397esac
2398 CC=$ac_ct_CC
2399 fi
26f56c1c 2400fi
cd6ede75 2401
26f56c1c 2402fi
8d4b5a8a
UD
2403
2404
322e23db
UD
2405test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a152f366 2408See \`config.log' for more details." >&5
322e23db 2409$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
a152f366 2410See \`config.log' for more details." >&2;}
322e23db 2411 { (exit 1); exit 1; }; }; }
26f56c1c 2412
a152f366 2413# Provide some information about the compiler.
322e23db
UD
2414$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2415set X $ac_compile
2416ac_compiler=$2
a152f366
UD
2417{ (ac_try="$ac_compiler --version >&5"
2418case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421esac
322e23db
UD
2422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2423$as_echo "$ac_try_echo") >&5
a152f366
UD
2424 (eval "$ac_compiler --version >&5") 2>&5
2425 ac_status=$?
322e23db 2426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2427 (exit $ac_status); }
2428{ (ac_try="$ac_compiler -v >&5"
2429case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432esac
322e23db
UD
2433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2434$as_echo "$ac_try_echo") >&5
a152f366
UD
2435 (eval "$ac_compiler -v >&5") 2>&5
2436 ac_status=$?
322e23db 2437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2438 (exit $ac_status); }
2439{ (ac_try="$ac_compiler -V >&5"
2440case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443esac
322e23db
UD
2444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2445$as_echo "$ac_try_echo") >&5
a152f366
UD
2446 (eval "$ac_compiler -V >&5") 2>&5
2447 ac_status=$?
322e23db 2448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366 2449 (exit $ac_status); }
26f56c1c 2450
a152f366 2451EXEEXT=
322e23db
UD
2452{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453$as_echo_n "checking for suffix of object files... " >&6; }
a152f366 2454if test "${ac_cv_objext+set}" = set; then
322e23db 2455 $as_echo_n "(cached) " >&6
749a9a4f 2456else
a152f366
UD
2457 cat >conftest.$ac_ext <<_ACEOF
2458/* confdefs.h. */
3a12e572 2459_ACEOF
a152f366
UD
2460cat confdefs.h >>conftest.$ac_ext
2461cat >>conftest.$ac_ext <<_ACEOF
2462/* end confdefs.h. */
749a9a4f 2463
a152f366
UD
2464int
2465main ()
2466{
749a9a4f 2467
a152f366
UD
2468 ;
2469 return 0;
2470}
2471_ACEOF
2472rm -f conftest.o conftest.obj
2473if { (ac_try="$ac_compile"
2474case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
322e23db
UD
2478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2479$as_echo "$ac_try_echo") >&5
a152f366
UD
2480 (eval "$ac_compile") 2>&5
2481 ac_status=$?
322e23db 2482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2483 (exit $ac_status); }; then
2484 for ac_file in conftest.o conftest.obj conftest.*; do
2485 test -f "$ac_file" || continue;
2486 case $ac_file in
322e23db 2487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
a152f366
UD
2488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 break;;
2490 esac
2491done
4df8c11d 2492else
322e23db 2493 $as_echo "$as_me: failed program was:" >&5
a152f366 2494sed 's/^/| /' conftest.$ac_ext >&5
26f56c1c 2495
322e23db
UD
2496{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a152f366 2499See \`config.log' for more details." >&5
322e23db 2500$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a152f366 2501See \`config.log' for more details." >&2;}
322e23db 2502 { (exit 1); exit 1; }; }; }
26f56c1c
UD
2503fi
2504
a152f366 2505rm -f conftest.$ac_cv_objext conftest.$ac_ext
cd6ede75 2506fi
322e23db
UD
2507{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2508$as_echo "$ac_cv_objext" >&6; }
a152f366
UD
2509OBJEXT=$ac_cv_objext
2510ac_objext=$OBJEXT
322e23db
UD
2511{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
a152f366 2513if test "${ac_cv_c_compiler_gnu+set}" = set; then
322e23db 2514 $as_echo_n "(cached) " >&6
73237de3 2515else
a152f366
UD
2516 cat >conftest.$ac_ext <<_ACEOF
2517/* confdefs.h. */
2518_ACEOF
2519cat confdefs.h >>conftest.$ac_ext
2520cat >>conftest.$ac_ext <<_ACEOF
2521/* end confdefs.h. */
73237de3 2522
a152f366
UD
2523int
2524main ()
2525{
2526#ifndef __GNUC__
2527 choke me
2528#endif
73237de3 2529
a152f366
UD
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534rm -f conftest.$ac_objext
2535if { (ac_try="$ac_compile"
2536case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
322e23db
UD
2540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2541$as_echo "$ac_try_echo") >&5
a152f366
UD
2542 (eval "$ac_compile") 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
322e23db 2547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2552 ac_compiler_gnu=yes
2553else
322e23db 2554 $as_echo "$as_me: failed program was:" >&5
a152f366 2555sed 's/^/| /' conftest.$ac_ext >&5
26f56c1c 2556
a152f366 2557 ac_compiler_gnu=no
26f56c1c
UD
2558fi
2559
a152f366
UD
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561ac_cv_c_compiler_gnu=$ac_compiler_gnu
958f238f 2562
26f56c1c 2563fi
322e23db
UD
2564{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2565$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2566if test $ac_compiler_gnu = yes; then
2567 GCC=yes
2568else
2569 GCC=
2570fi
a152f366
UD
2571ac_test_CFLAGS=${CFLAGS+set}
2572ac_save_CFLAGS=$CFLAGS
322e23db
UD
2573{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2574$as_echo_n "checking whether $CC accepts -g... " >&6; }
a152f366 2575if test "${ac_cv_prog_cc_g+set}" = set; then
322e23db 2576 $as_echo_n "(cached) " >&6
a152f366
UD
2577else
2578 ac_save_c_werror_flag=$ac_c_werror_flag
2579 ac_c_werror_flag=yes
2580 ac_cv_prog_cc_g=no
2581 CFLAGS="-g"
2582 cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
26f56c1c 2588
a152f366
UD
2589int
2590main ()
2591{
958f238f 2592
a152f366
UD
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (ac_try="$ac_compile"
2599case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602esac
322e23db
UD
2603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2604$as_echo "$ac_try_echo") >&5
a152f366
UD
2605 (eval "$ac_compile") 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
322e23db 2610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2615 ac_cv_prog_cc_g=yes
425ce2ed 2616else
322e23db 2617 $as_echo "$as_me: failed program was:" >&5
a152f366 2618sed 's/^/| /' conftest.$ac_ext >&5
425ce2ed 2619
a152f366
UD
2620 CFLAGS=""
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
425ce2ed 2623_ACEOF
a152f366
UD
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
425ce2ed 2627
a152f366
UD
2628int
2629main ()
2630{
425ce2ed 2631
a152f366
UD
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
322e23db
UD
2642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2643$as_echo "$ac_try_echo") >&5
a152f366
UD
2644 (eval "$ac_compile") 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
322e23db 2649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2650 (exit $ac_status); } && {
2651 test -z "$ac_c_werror_flag" ||
2652 test ! -s conftest.err
2653 } && test -s conftest.$ac_objext; then
2654 :
2655else
322e23db 2656 $as_echo "$as_me: failed program was:" >&5
a152f366 2657sed 's/^/| /' conftest.$ac_ext >&5
425ce2ed 2658
a152f366
UD
2659 ac_c_werror_flag=$ac_save_c_werror_flag
2660 CFLAGS="-g"
2661 cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h. */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h. */
425ce2ed 2667
a152f366
UD
2668int
2669main ()
2670{
425ce2ed 2671
a152f366
UD
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (ac_try="$ac_compile"
2678case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681esac
322e23db
UD
2682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683$as_echo "$ac_try_echo") >&5
a152f366
UD
2684 (eval "$ac_compile") 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
322e23db 2689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2690 (exit $ac_status); } && {
2691 test -z "$ac_c_werror_flag" ||
2692 test ! -s conftest.err
2693 } && test -s conftest.$ac_objext; then
2694 ac_cv_prog_cc_g=yes
ff886b82 2695else
322e23db 2696 $as_echo "$as_me: failed program was:" >&5
a152f366 2697sed 's/^/| /' conftest.$ac_ext >&5
ff886b82 2698
ff886b82
UD
2699
2700fi
a152f366
UD
2701
2702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff886b82
UD
2703fi
2704
a152f366
UD
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706fi
ff886b82 2707
a152f366
UD
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ac_c_werror_flag=$ac_save_c_werror_flag
ff886b82 2710fi
322e23db
UD
2711{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712$as_echo "$ac_cv_prog_cc_g" >&6; }
a152f366
UD
2713if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2717 CFLAGS="-g -O2"
2718 else
2719 CFLAGS="-g"
2720 fi
ff886b82 2721else
a152f366
UD
2722 if test "$GCC" = yes; then
2723 CFLAGS="-O2"
2724 else
2725 CFLAGS=
ff886b82 2726 fi
ff886b82 2727fi
322e23db
UD
2728{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
a152f366 2730if test "${ac_cv_prog_cc_c89+set}" = set; then
322e23db 2731 $as_echo_n "(cached) " >&6
ff886b82 2732else
a152f366
UD
2733 ac_cv_prog_cc_c89=no
2734ac_save_CC=$CC
2735cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
2741#include <stdarg.h>
2742#include <stdio.h>
2743#include <sys/types.h>
2744#include <sys/stat.h>
2745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746struct buf { int x; };
2747FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748static char *e (p, i)
2749 char **p;
2750 int i;
2751{
2752 return p[i];
2753}
2754static char *f (char * (*g) (char **, int), char **p, ...)
2755{
2756 char *s;
2757 va_list v;
2758 va_start (v,p);
2759 s = g (p, va_arg (v,int));
2760 va_end (v);
2761 return s;
2762}
ff886b82 2763
a152f366
UD
2764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std. */
2771int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772
2773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2774 inside strings and character constants. */
2775#define FOO(x) 'x'
2776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2777
2778int test (int i, double x);
2779struct s1 {int (*f) (int a);};
2780struct s2 {int (*f) (double a);};
2781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782int argc;
2783char **argv;
2784int
2785main ()
2786{
2787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794do
2795 CC="$ac_save_CC $ac_arg"
2796 rm -f conftest.$ac_objext
2797if { (ac_try="$ac_compile"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
ff886b82 2801esac
322e23db
UD
2802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803$as_echo "$ac_try_echo") >&5
a152f366
UD
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
322e23db 2809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2814 ac_cv_prog_cc_c89=$ac_arg
ff886b82 2815else
322e23db 2816 $as_echo "$as_me: failed program was:" >&5
a152f366
UD
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
2819
ff886b82
UD
2820fi
2821
a152f366
UD
2822rm -f core conftest.err conftest.$ac_objext
2823 test "x$ac_cv_prog_cc_c89" != "xno" && break
2824done
2825rm -f conftest.$ac_ext
2826CC=$ac_save_CC
2827
2828fi
2829# AC_CACHE_VAL
2830case "x$ac_cv_prog_cc_c89" in
2831 x)
322e23db
UD
2832 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2833$as_echo "none needed" >&6; } ;;
a152f366 2834 xno)
322e23db
UD
2835 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2836$as_echo "unsupported" >&6; } ;;
a152f366
UD
2837 *)
2838 CC="$CC $ac_cv_prog_cc_c89"
322e23db
UD
2839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2840$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a152f366
UD
2841esac
2842
2843
2844ac_ext=c
2845ac_cpp='$CPP $CPPFLAGS'
2846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850if test $host != $build; then
2851 for ac_prog in gcc cc
2852do
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
322e23db
UD
2855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2856$as_echo_n "checking for $ac_word... " >&6; }
a152f366 2857if test "${ac_cv_prog_BUILD_CC+set}" = set; then
322e23db 2858 $as_echo_n "(cached) " >&6
ff886b82 2859else
a152f366
UD
2860 if test -n "$BUILD_CC"; then
2861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
ff886b82
UD
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a152f366 2870 ac_cv_prog_BUILD_CC="$ac_prog"
322e23db 2871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ff886b82
UD
2872 break 2
2873 fi
2874done
2875done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
a152f366
UD
2880BUILD_CC=$ac_cv_prog_BUILD_CC
2881if test -n "$BUILD_CC"; then
322e23db
UD
2882 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2883$as_echo "$BUILD_CC" >&6; }
ff886b82 2884else
322e23db
UD
2885 { $as_echo "$as_me:$LINENO: result: no" >&5
2886$as_echo "no" >&6; }
ff886b82
UD
2887fi
2888
2889
a152f366 2890 test -n "$BUILD_CC" && break
ff886b82 2891done
ff886b82
UD
2892
2893fi
ff886b82 2894
a152f366
UD
2895ac_ext=c
2896ac_cpp='$CPP $CPPFLAGS'
2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_c_compiler_gnu
322e23db
UD
2900{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2901$as_echo_n "checking how to run the C preprocessor... " >&6; }
a152f366
UD
2902# On Suns, sometimes $CPP names a directory.
2903if test -n "$CPP" && test -d "$CPP"; then
2904 CPP=
ff886b82 2905fi
a152f366
UD
2906if test -z "$CPP"; then
2907 if test "${ac_cv_prog_CPP+set}" = set; then
322e23db 2908 $as_echo_n "(cached) " >&6
ff886b82 2909else
a152f366
UD
2910 # Double quotes because CPP needs to be expanded
2911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2912 do
2913 ac_preproc_ok=false
2914for ac_c_preproc_warn_flag in '' yes
ff886b82 2915do
a152f366
UD
2916 # Use a header file that comes with gcc, so configuring glibc
2917 # with a fresh cross-compiler works.
2918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2919 # <limits.h> exists even on freestanding compilers.
2920 # On the NeXT, cc -E runs the code through the compiler's parser,
2921 # not just through cpp. "Syntax error" is here to catch this case.
ff886b82
UD
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
a152f366
UD
2928#ifdef __STDC__
2929# include <limits.h>
2930#else
2931# include <assert.h>
2932#endif
2933 Syntax error
ff886b82 2934_ACEOF
a152f366 2935if { (ac_try="$ac_cpp conftest.$ac_ext"
ff886b82
UD
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
322e23db
UD
2940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2941$as_echo "$ac_try_echo") >&5
a152f366 2942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ff886b82 2943 ac_status=$?
a152f366
UD
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
322e23db 2947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2948 (exit $ac_status); } >/dev/null && {
2949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 }; then
2952 :
ff886b82 2953else
322e23db 2954 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
2955sed 's/^/| /' conftest.$ac_ext >&5
2956
a152f366
UD
2957 # Broken: fails on valid input.
2958continue
ff886b82
UD
2959fi
2960
a152f366
UD
2961rm -f conftest.err conftest.$ac_ext
2962
2963 # OK, works on sane cases. Now check whether nonexistent headers
2964 # can be detected and how.
ff886b82
UD
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
a152f366 2971#include <ac_nonexistent.h>
ff886b82 2972_ACEOF
a152f366 2973if { (ac_try="$ac_cpp conftest.$ac_ext"
ff886b82
UD
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
322e23db
UD
2978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979$as_echo "$ac_try_echo") >&5
a152f366 2980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ff886b82
UD
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
322e23db 2985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
2986 (exit $ac_status); } >/dev/null && {
2987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
ff886b82 2988 test ! -s conftest.err
a152f366
UD
2989 }; then
2990 # Broken: success on invalid input.
2991continue
2992else
322e23db 2993 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
a152f366
UD
2996 # Passes both tests.
2997ac_preproc_ok=:
2998break
ff886b82
UD
2999fi
3000
a152f366
UD
3001rm -f conftest.err conftest.$ac_ext
3002
3003done
3004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3005rm -f conftest.err conftest.$ac_ext
3006if $ac_preproc_ok; then
3007 break
3008fi
3009
3010 done
3011 ac_cv_prog_CPP=$CPP
ff886b82
UD
3012
3013fi
a152f366 3014 CPP=$ac_cv_prog_CPP
ff886b82 3015else
a152f366 3016 ac_cv_prog_CPP=$CPP
ff886b82 3017fi
322e23db
UD
3018{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3019$as_echo "$CPP" >&6; }
a152f366
UD
3020ac_preproc_ok=false
3021for ac_c_preproc_warn_flag in '' yes
3022do
3023 # Use a header file that comes with gcc, so configuring glibc
3024 # with a fresh cross-compiler works.
3025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3026 # <limits.h> exists even on freestanding compilers.
3027 # On the NeXT, cc -E runs the code through the compiler's parser,
3028 # not just through cpp. "Syntax error" is here to catch this case.
3029 cat >conftest.$ac_ext <<_ACEOF
ff886b82
UD
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
a152f366
UD
3035#ifdef __STDC__
3036# include <limits.h>
3037#else
3038# include <assert.h>
3039#endif
3040 Syntax error
ff886b82 3041_ACEOF
a152f366 3042if { (ac_try="$ac_cpp conftest.$ac_ext"
ff886b82
UD
3043case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
322e23db
UD
3047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048$as_echo "$ac_try_echo") >&5
a152f366 3049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ff886b82
UD
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
322e23db 3054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3055 (exit $ac_status); } >/dev/null && {
3056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
ff886b82 3057 test ! -s conftest.err
a152f366
UD
3058 }; then
3059 :
ff886b82 3060else
322e23db 3061 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
a152f366
UD
3064 # Broken: fails on valid input.
3065continue
3066fi
3067
3068rm -f conftest.err conftest.$ac_ext
3069
3070 # OK, works on sane cases. Now check whether nonexistent headers
3071 # can be detected and how.
3072 cat >conftest.$ac_ext <<_ACEOF
ff886b82
UD
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
a152f366 3078#include <ac_nonexistent.h>
ff886b82 3079_ACEOF
a152f366 3080if { (ac_try="$ac_cpp conftest.$ac_ext"
ff886b82
UD
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
322e23db
UD
3085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086$as_echo "$ac_try_echo") >&5
a152f366 3087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ff886b82
UD
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
322e23db 3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3093 (exit $ac_status); } >/dev/null && {
3094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
ff886b82 3095 test ! -s conftest.err
a152f366
UD
3096 }; then
3097 # Broken: success on invalid input.
3098continue
ff886b82 3099else
322e23db 3100 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
a152f366
UD
3103 # Passes both tests.
3104ac_preproc_ok=:
3105break
3106fi
3107
3108rm -f conftest.err conftest.$ac_ext
3109
3110done
3111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3112rm -f conftest.err conftest.$ac_ext
3113if $ac_preproc_ok; then
3114 :
3115else
322e23db
UD
3116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a152f366 3119See \`config.log' for more details." >&5
322e23db 3120$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a152f366 3121See \`config.log' for more details." >&2;}
322e23db 3122 { (exit 1); exit 1; }; }; }
a152f366
UD
3123fi
3124
3125ac_ext=c
3126ac_cpp='$CPP $CPPFLAGS'
3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131# We need the C++ compiler only for testing.
3132ac_ext=cpp
3133ac_cpp='$CXXCPP $CPPFLAGS'
3134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3137if test -z "$CXX"; then
3138 if test -n "$CCC"; then
3139 CXX=$CCC
3140 else
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3143 do
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
322e23db
UD
3146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
a152f366 3148if test "${ac_cv_prog_CXX+set}" = set; then
322e23db 3149 $as_echo_n "(cached) " >&6
a152f366
UD
3150else
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
322e23db 3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
3163 break 2
3164 fi
3165done
3166done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171CXX=$ac_cv_prog_CXX
3172if test -n "$CXX"; then
322e23db
UD
3173 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3174$as_echo "$CXX" >&6; }
a152f366 3175else
322e23db
UD
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177$as_echo "no" >&6; }
a152f366
UD
3178fi
3179
3180
3181 test -n "$CXX" && break
3182 done
3183fi
3184if test -z "$CXX"; then
3185 ac_ct_CXX=$CXX
3186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3187do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
322e23db
UD
3190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
a152f366 3192if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
322e23db 3193 $as_echo_n "(cached) " >&6
a152f366
UD
3194else
3195 if test -n "$ac_ct_CXX"; then
3196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CXX="$ac_prog"
322e23db 3206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a152f366
UD
3207 break 2
3208 fi
3209done
3210done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3216if test -n "$ac_ct_CXX"; then
322e23db
UD
3217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3218$as_echo "$ac_ct_CXX" >&6; }
a152f366 3219else
322e23db
UD
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221$as_echo "no" >&6; }
a152f366
UD
3222fi
3223
3224
3225 test -n "$ac_ct_CXX" && break
3226done
3227
3228 if test "x$ac_ct_CXX" = x; then
3229 CXX="g++"
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232yes:)
322e23db
UD
3233{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
a152f366
UD
3235ac_tool_warned=yes ;;
3236esac
3237 CXX=$ac_ct_CXX
3238 fi
3239fi
3240
3241 fi
3242fi
3243# Provide some information about the compiler.
322e23db
UD
3244$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3245set X $ac_compile
3246ac_compiler=$2
a152f366
UD
3247{ (ac_try="$ac_compiler --version >&5"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
322e23db
UD
3252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253$as_echo "$ac_try_echo") >&5
a152f366
UD
3254 (eval "$ac_compiler --version >&5") 2>&5
3255 ac_status=$?
322e23db 3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3257 (exit $ac_status); }
3258{ (ac_try="$ac_compiler -v >&5"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
322e23db
UD
3263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264$as_echo "$ac_try_echo") >&5
a152f366
UD
3265 (eval "$ac_compiler -v >&5") 2>&5
3266 ac_status=$?
322e23db 3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3268 (exit $ac_status); }
3269{ (ac_try="$ac_compiler -V >&5"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
322e23db
UD
3274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275$as_echo "$ac_try_echo") >&5
a152f366
UD
3276 (eval "$ac_compiler -V >&5") 2>&5
3277 ac_status=$?
322e23db 3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3279 (exit $ac_status); }
3280
322e23db
UD
3281{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3282$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
a152f366 3283if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
322e23db 3284 $as_echo_n "(cached) " >&6
a152f366
UD
3285else
3286 cat >conftest.$ac_ext <<_ACEOF
ff886b82
UD
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292
3293int
3294main ()
3295{
a152f366
UD
3296#ifndef __GNUC__
3297 choke me
3298#endif
ff886b82
UD
3299
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
322e23db
UD
3310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311$as_echo "$ac_try_echo") >&5
ff886b82
UD
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
322e23db 3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff886b82 3318 (exit $ac_status); } && {
a152f366 3319 test -z "$ac_cxx_werror_flag" ||
ff886b82
UD
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
a152f366 3322 ac_compiler_gnu=yes
ff886b82 3323else
322e23db 3324 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
a152f366 3327 ac_compiler_gnu=no
ff886b82
UD
3328fi
3329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a152f366 3331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
ff886b82 3332
ff886b82 3333fi
322e23db
UD
3334{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3335$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336if test $ac_compiler_gnu = yes; then
3337 GXX=yes
3338else
3339 GXX=
3340fi
a152f366
UD
3341ac_test_CXXFLAGS=${CXXFLAGS+set}
3342ac_save_CXXFLAGS=$CXXFLAGS
322e23db
UD
3343{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3344$as_echo_n "checking whether $CXX accepts -g... " >&6; }
a152f366 3345if test "${ac_cv_prog_cxx_g+set}" = set; then
322e23db 3346 $as_echo_n "(cached) " >&6
ff886b82 3347else
a152f366
UD
3348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3350 ac_cv_prog_cxx_g=no
3351 CXXFLAGS="-g"
3352 cat >conftest.$ac_ext <<_ACEOF
ff886b82
UD
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
ff886b82 3358
ff886b82
UD
3359int
3360main ()
3361{
a152f366 3362
ff886b82
UD
3363 ;
3364 return 0;
3365}
3366_ACEOF
a152f366 3367rm -f conftest.$ac_objext
ff886b82
UD
3368if { (ac_try="$ac_compile"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
322e23db
UD
3373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374$as_echo "$ac_try_echo") >&5
ff886b82
UD
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
322e23db 3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff886b82 3381 (exit $ac_status); } && {
a152f366 3382 test -z "$ac_cxx_werror_flag" ||
ff886b82
UD
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
a152f366 3385 ac_cv_prog_cxx_g=yes
ff886b82 3386else
322e23db 3387 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
a152f366
UD
3390 CXXFLAGS=""
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
ff886b82 3397
a152f366
UD
3398int
3399main ()
3400{
ff886b82 3401
a152f366
UD
3402 ;
3403 return 0;
3404}
ff886b82
UD
3405_ACEOF
3406rm -f conftest.$ac_objext
3407if { (ac_try="$ac_compile"
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
322e23db
UD
3412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413$as_echo "$ac_try_echo") >&5
ff886b82
UD
3414 (eval "$ac_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
322e23db 3419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff886b82 3420 (exit $ac_status); } && {
a152f366 3421 test -z "$ac_cxx_werror_flag" ||
ff886b82
UD
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
a152f366 3424 :
ff886b82 3425else
322e23db 3426 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
a152f366
UD
3429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3430 CXXFLAGS="-g"
3431 cat >conftest.$ac_ext <<_ACEOF
ff886b82
UD
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
a152f366 3437
ff886b82
UD
3438int
3439main ()
3440{
a152f366 3441
ff886b82
UD
3442 ;
3443 return 0;
3444}
3445_ACEOF
a152f366
UD
3446rm -f conftest.$ac_objext
3447if { (ac_try="$ac_compile"
ff886b82
UD
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
322e23db
UD
3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453$as_echo "$ac_try_echo") >&5
a152f366 3454 (eval "$ac_compile") 2>conftest.er1
ff886b82
UD
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
322e23db 3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ff886b82 3460 (exit $ac_status); } && {
a152f366 3461 test -z "$ac_cxx_werror_flag" ||
ff886b82 3462 test ! -s conftest.err
a152f366
UD
3463 } && test -s conftest.$ac_objext; then
3464 ac_cv_prog_cxx_g=yes
ff886b82 3465else
322e23db 3466 $as_echo "$as_me: failed program was:" >&5
ff886b82
UD
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
ff886b82 3469
ff886b82
UD
3470fi
3471
a152f366
UD
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473fi
ff886b82 3474
a152f366
UD
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476fi
3a12e572 3477
a152f366
UD
3478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3480fi
322e23db
UD
3481{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3482$as_echo "$ac_cv_prog_cxx_g" >&6; }
a152f366
UD
3483if test "$ac_test_CXXFLAGS" = set; then
3484 CXXFLAGS=$ac_save_CXXFLAGS
3485elif test $ac_cv_prog_cxx_g = yes; then
3486 if test "$GXX" = yes; then
3487 CXXFLAGS="-g -O2"
3488 else
3489 CXXFLAGS="-g"
3490 fi
3a12e572 3491else
a152f366
UD
3492 if test "$GXX" = yes; then
3493 CXXFLAGS="-O2"
3494 else
3495 CXXFLAGS=
3496 fi
3a12e572 3497fi
a152f366
UD
3498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
26f56c1c
UD
3503
3504
a152f366 3505if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
322e23db
UD
3506 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3507$as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3a12e572 3508 { (exit 1); exit 1; }; }
26f56c1c 3509fi
3a12e572 3510
a152f366
UD
3511# This will get text that should go into config.make.
3512config_vars=
3513
3514# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3515
3516# Check whether --with-gd was given.
3517if test "${with_gd+set}" = set; then
3518 withval=$with_gd; case "$with_gd" in
3519yes|''|no) ;;
3520*) libgd_include="-I$withval/include"
3521 libgd_ldflags="-L$withval/lib" ;;
26f56c1c 3522esac
cd6ede75 3523
a152f366 3524fi
cd6ede75
UD
3525
3526
a152f366
UD
3527# Check whether --with-gd-include was given.
3528if test "${with_gd_include+set}" = set; then
3529 withval=$with_gd_include; case "$with_gd_include" in
3530''|no) ;;
3531*) libgd_include="-I$withval" ;;
cd6ede75
UD
3532esac
3533
a152f366 3534fi
cd6ede75 3535
0816838f 3536
a152f366
UD
3537# Check whether --with-gd-lib was given.
3538if test "${with_gd_lib+set}" = set; then
3539 withval=$with_gd_lib; case "$with_gd_lib" in
3540''|no) ;;
3541*) libgd_ldflags="-L$withval" ;;
cd6ede75
UD
3542esac
3543
a808d541
UD
3544fi
3545
f4b07664 3546
a152f366
UD
3547if test -n "$libgd_include"; then
3548 config_vars="$config_vars
3549CFLAGS-memusagestat.c = $libgd_include"
3550fi
3551if test -n "$libgd_ldflags"; then
3552 config_vars="$config_vars
3553libgd-LDFLAGS = $libgd_ldflags"
3554fi
2ceaa76a 3555
2ceaa76a 3556
a152f366
UD
3557# Check whether --with-fp was given.
3558if test "${with_fp+set}" = set; then
3559 withval=$with_fp; with_fp=$withval
3560else
3561 with_fp=yes
26f56c1c
UD
3562fi
3563
2ceaa76a 3564
8f73811b 3565
a152f366
UD
3566# Check whether --with-binutils was given.
3567if test "${with_binutils+set}" = set; then
3568 withval=$with_binutils; path_binutils=$withval
3569else
3570 path_binutils=''
3571fi
ff886b82
UD
3572
3573
a152f366
UD
3574# Check whether --with-elf was given.
3575if test "${with_elf+set}" = set; then
3576 withval=$with_elf; elf=$withval
3577else
3578 elf=no
3579fi
8f73811b
RM
3580
3581
a152f366
UD
3582# Check whether --with-selinux was given.
3583if test "${with_selinux+set}" = set; then
3584 withval=$with_selinux; with_selinux=$withval
3585else
3586 with_selinux=auto
3587fi
e0a3ed4f 3588
8f73811b 3589
a152f366
UD
3590# Check whether --with-xcoff was given.
3591if test "${with_xcoff+set}" = set; then
3592 withval=$with_xcoff; xcoff=$withval
3593else
3594 xcoff=no
3595fi
e0a3ed4f 3596
a152f366
UD
3597
3598# Check whether --with-cvs was given.
3599if test "${with_cvs+set}" = set; then
3600 withval=$with_cvs; with_cvs=$withval
3601else
3602 with_cvs=yes
8f73811b
RM
3603fi
3604
a152f366
UD
3605if test "$with_cvs" = yes; then
3606 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3607 then
3608 with_cvs=no
3609 fi
3610fi
8f73811b
RM
3611
3612
e0a3ed4f 3613
a152f366
UD
3614# Check whether --with-headers was given.
3615if test "${with_headers+set}" = set; then
3616 withval=$with_headers; sysheaders=$withval
3617else
3618 sysheaders=''
7efb9bd1
UD
3619fi
3620
dfd2257a 3621
a152f366
UD
3622# Check whether --enable-sanity-checks was given.
3623if test "${enable_sanity_checks+set}" = set; then
3624 enableval=$enable_sanity_checks; enable_sanity=$enableval
3625else
3626 enable_sanity=yes
dfd2257a
UD
3627fi
3628
cd6ede75 3629
cd6ede75 3630
a152f366
UD
3631# Check whether --enable-check-abi was given.
3632if test "${enable_check_abi+set}" = set; then
3633 enableval=$enable_check_abi; enable_check_abi=$enableval
3634else
3635 enable_check_abi=no
cd6ede75
UD
3636fi
3637
cd6ede75 3638
a152f366
UD
3639static=yes
3640# Check whether --enable-shared was given.
3641if test "${enable_shared+set}" = set; then
3642 enableval=$enable_shared; shared=$enableval
3643else
3644 shared=default
3645fi
cd6ede75 3646
a152f366
UD
3647# Check whether --enable-profile was given.
3648if test "${enable_profile+set}" = set; then
3649 enableval=$enable_profile; profile=$enableval
3650else
3651 profile=no
3652fi
cd6ede75 3653
a152f366
UD
3654# Check whether --enable-omitfp was given.
3655if test "${enable_omitfp+set}" = set; then
3656 enableval=$enable_omitfp; omitfp=$enableval
3657else
3658 omitfp=no
3659fi
cd6ede75 3660
a152f366
UD
3661# Check whether --enable-bounded was given.
3662if test "${enable_bounded+set}" = set; then
3663 enableval=$enable_bounded; bounded=$enableval
3664else
3665 bounded=no
cd6ede75 3666fi
a152f366
UD
3667
3668# Check whether --enable-versioning was given.
3669if test "${enable_versioning+set}" = set; then
3670 enableval=$enable_versioning; enable_versioning=$enableval
3671else
3672 enable_versioning=yes
cd6ede75 3673fi
a152f366
UD
3674
3675
3676# Check whether --enable-oldest-abi was given.
3677if test "${enable_oldest_abi+set}" = set; then
3678 enableval=$enable_oldest_abi; oldest_abi=$enableval
3679else
3680 oldest_abi=no
2ceaa76a
RM
3681fi
3682
a152f366
UD
3683if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3684 oldest_abi=default
3685else
3686 cat >>confdefs.h <<_ACEOF
3687#define GLIBC_OLDEST_ABI "$oldest_abi"
3688_ACEOF
cd6ede75 3689
a152f366 3690fi
cd6ede75
UD
3691
3692
a152f366
UD
3693# Check whether --enable-stackguard-randomization was given.
3694if test "${enable_stackguard_randomization+set}" = set; then
3695 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3696else
3697 enable_stackguard_randomize=no
cd6ede75
UD
3698fi
3699
a152f366
UD
3700if test "$enable_stackguard_randomize" = yes; then
3701 cat >>confdefs.h <<\_ACEOF
3702#define ENABLE_STACKGUARD_RANDOMIZE 1
3703_ACEOF
cd6ede75 3704
a152f366 3705fi
cd6ede75 3706
a152f366
UD
3707# Check whether --enable-add-ons was given.
3708if test "${enable_add_ons+set}" = set; then
3709 enableval=$enable_add_ons;
3710else
3711 enable_add_ons=yes
3712fi
cd6ede75 3713
cd6ede75 3714
cd6ede75 3715
a152f366
UD
3716# Check whether --with-tls was given.
3717if test "${with_tls+set}" = set; then
3718 withval=$with_tls; usetls=$withval
3719else
3720 usetls=yes
3721fi
cd6ede75 3722
cd6ede75 3723
cd6ede75 3724
a152f366
UD
3725# Check whether --with-__thread was given.
3726if test "${with___thread+set}" = set; then
3727 withval=$with___thread; use__thread=$withval
3728else
3729 use__thread=yes
3730fi
cd6ede75 3731
cd6ede75 3732
a152f366
UD
3733# Check whether --enable-hidden-plt was given.
3734if test "${enable_hidden_plt+set}" = set; then
3735 enableval=$enable_hidden_plt; hidden=$enableval
3736else
3737 hidden=yes
2de7874e 3738fi
cd6ede75 3739
a152f366
UD
3740if test "x$hidden" = xno; then
3741 cat >>confdefs.h <<\_ACEOF
3742#define NO_HIDDEN 1
3743_ACEOF
cd6ede75 3744
a152f366 3745fi
e0a3ed4f 3746
a152f366
UD
3747# Check whether --enable-bind-now was given.
3748if test "${enable_bind_now+set}" = set; then
3749 enableval=$enable_bind_now; bindnow=$enableval
3750else
3751 bindnow=no
3752fi
e0a3ed4f 3753
e0a3ed4f 3754
e0a3ed4f 3755
a152f366
UD
3756# Check whether --enable-static-nss was given.
3757if test "${enable_static_nss+set}" = set; then
3758 enableval=$enable_static_nss; static_nss=$enableval
3759else
3760 static_nss=no
3761fi
e0a3ed4f 3762
a152f366
UD
3763if test x"$static_nss" = xyes || test x"$shared" = xno; then
3764 static_nss=yes
3765 cat >>confdefs.h <<\_ACEOF
3766#define DO_STATIC_NSS 1
3767_ACEOF
cd6ede75 3768
a152f366 3769fi
cd6ede75 3770
a152f366
UD
3771# Check whether --enable-force-install was given.
3772if test "${enable_force_install+set}" = set; then
3773 enableval=$enable_force_install; force_install=$enableval
3a12e572 3774else
a152f366
UD
3775 force_install=yes
3776fi
ff886b82 3777
3a12e572 3778
cd6ede75 3779
a152f366
UD
3780# Check whether --enable-kernel was given.
3781if test "${enable_kernel+set}" = set; then
3782 enableval=$enable_kernel; minimum_kernel=$enableval
cd6ede75 3783fi
a152f366
UD
3784
3785if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3786 # Better nothing than this.
3787 minimum_kernel=""
3788else
3789 if test "$minimum_kernel" = current; then
3790 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
cd6ede75
UD
3791 fi
3792fi
cd6ede75 3793
a152f366
UD
3794# Check whether --enable-all-warnings was given.
3795if test "${enable_all_warnings+set}" = set; then
3796 enableval=$enable_all_warnings; all_warnings=$enableval
3797fi
cd6ede75 3798
5c2a0669 3799
cd6ede75 3800
a152f366
UD
3801# Check whether --enable-multi-arch was given.
3802if test "${enable_multi_arch+set}" = set; then
3803 enableval=$enable_multi_arch; multi_arch=$enableval
cd6ede75 3804else
6f89d2f3 3805 multi_arch=default
cd6ede75
UD
3806fi
3807
6f89d2f3 3808if test x"$multi_arch" != xno; then
a152f366 3809 multi_arch_d=/multiarch
4bca4c17
UD
3810fi
3811
a152f366
UD
3812# Check whether --enable-experimental-malloc was given.
3813if test "${enable_experimental_malloc+set}" = set; then
3814 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
ae828bc6 3815fi
3a12e572 3816
a152f366
UD
3817
3818
3819# Check whether --enable-nss-crypt was given.
3820if test "${enable_nss_crypt+set}" = set; then
3821 enableval=$enable_nss_crypt; nss_crypt=$enableval
4bca4c17 3822else
a152f366 3823 nss_crypt=no
4bca4c17
UD
3824fi
3825
a152f366
UD
3826if test x$nss_crypt = xyes; then
3827 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3828 if test $? -ne 0; then
322e23db
UD
3829 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3830$as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
a152f366 3831 { (exit 1); exit 1; }; }
26f56c1c 3832 fi
a152f366
UD
3833 old_CFLAGS="$CFLAGS"
3834 CFLAGS="$CFLAGS $nss_includes"
3835
3836cat >conftest.$ac_ext <<_ACEOF
3837typedef int PRBool;
3838#include <hasht.h>
3839#include <nsslowhash.h>
3840void f (void) { NSSLOW_Init (); }
3841_ACEOF
3842rm -f conftest.$ac_objext
3843if { (ac_try="$ac_compile"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
322e23db
UD
3848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849$as_echo "$ac_try_echo") >&5
a152f366
UD
3850 (eval "$ac_compile") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
322e23db 3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3860 libc_cv_nss_crypt=yes
63bda0c1 3861else
322e23db 3862 $as_echo "$as_me: failed program was:" >&5
a152f366
UD
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
322e23db 3865 { { $as_echo "$as_me:$LINENO: error:
a152f366 3866cannot find NSS headers with lowlevel hash function interfaces" >&5
322e23db 3867$as_echo "$as_me: error:
a152f366
UD
3868cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3869 { (exit 1); exit 1; }; }
04be94a8 3870fi
cd6ede75 3871
a152f366
UD
3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 old_LIBS="$LIBS"
3874 LIBS="$LIBS -lfreebl3"
3875 cat >conftest.$ac_ext <<_ACEOF
3876/* confdefs.h. */
3877_ACEOF
3878cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF
3880/* end confdefs.h. */
3881typedef int PRBool;
3882#include <hasht.h>
3883#include <nsslowhash.h>
3884int
3885main ()
3886{
3887NSSLOW_Init();
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892rm -f conftest.$ac_objext conftest$ac_exeext
3893if { (ac_try="$ac_link"
3894case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897esac
322e23db
UD
3898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899$as_echo "$ac_try_echo") >&5
a152f366
UD
3900 (eval "$ac_link") 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
322e23db 3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a152f366
UD
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
322e23db
UD
3909 } && test -s conftest$ac_exeext && {
3910 test "$cross_compiling" = yes ||
3911 $as_test_x conftest$ac_exeext
3912 }; then
a152f366 3913 libc_cv_nss_crypt=yes
cd6ede75 3914else
322e23db 3915 $as_echo "$as_me: failed program was:" >&5
a152f366 3916sed 's/^/| /' conftest.$ac_ext >&5
3a12e572 3917
322e23db 3918 { { $as_echo "$as_me:$LINENO: error:
a152f366 3919cannot link program using lowlevel NSS hash functions" >&5
322e23db 3920$as_echo "$as_me: error:
a152f366
UD
3921cannot link program using lowlevel NSS hash functions" >&2;}
3922 { (exit 1); exit 1; }; }
cd6ede75 3923fi
a152f366 3924
322e23db 3925rm -rf conftest.dSYM
a152f366
UD
3926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3927 conftest$ac_exeext conftest.$ac_ext
3928 CFLAGS="$old_CFLAGS"
3929 LIBS="$old_LIBS"
4bca4c17 3930else
a152f366 3931 libc_cv_nss_crypt=no
4bca4c17
UD
3932fi
3933
cd6ede75 3934
a152f366
UD
3935# The way shlib-versions is used to generate soversions.mk uses a
3936# fairly simplistic model for name recognition that can't distinguish
3937# i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3938# of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3939# tell. This doesn't get used much beyond that, so it's fairly safe.
3940case "$host_os" in
3941linux*)
3942 ;;
3943gnu*)
3944 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3945 ;;
26f56c1c 3946esac
3a12e572 3947
a152f366
UD
3948# We keep the original values in `$config_*' and never modify them, so we
3949# can write them unchanged into config.make. Everything else uses
3950# $machine, $vendor, and $os, and changes them whenever convenient.
3951config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3a12e572 3952
a152f366
UD
3953# Don't allow vendor == "unknown"
3954test "$config_vendor" = unknown && config_vendor=
3955config_os="`echo $config_os | sed 's/^unknown-//'`"
3a12e572 3956
a152f366
UD
3957# Some configurations imply other options.
3958case "$host_os" in
3959# i586-linuxaout is mangled into i586-pc-linux-gnuaout
3960linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3961 ;;
3962gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3963 # These systems (almost) always use the ELF format.
3964 elf=yes
3965 ;;
3966aix*)
3967 # These systems are always xcoff
3968 xcoff=yes
3969 elf=no
3970 ;;
26f56c1c 3971esac
3a12e572 3972
a152f366
UD
3973# The configure fragment of an add-on port can modify these to supplement
3974# or override the table in the case statement below. No fragment should
3975# ever change the config_* variables, however.
3976machine=$config_machine
3977vendor=$config_vendor
3978os=$config_os
3979base_os=''
3a12e572 3980
a152f366
UD
3981# config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3982# Unify this here.
3983if test "$machine" = rs6000; then
3984 machine="powerpc"
3985fi
3a12e572 3986
a152f366
UD
3987# Braindead PowerPC box with absolutely no FPU.
3988case "$machine-$host_os" in
3989 powerpc*-*soft)
3990 with_fp=no
3991 ;;
26f56c1c 3992esac
2abf9ff1 3993
a152f366 3994submachine=
26f56c1c 3995
a152f366
UD
3996# Check whether --with-cpu was given.
3997if test "${with_cpu+set}" = set; then
3998 withval=$with_cpu; case "$withval" in
322e23db
UD
3999 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
4000$as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
a152f366
UD
4001 { (exit 1); exit 1; }; } ;;
4002 no) ;;
4003 *) submachine="$withval" ;;
4004 esac
3a12e572
UD
4005
4006fi
3a12e572 4007
3a12e572 4008
a152f366
UD
4009# An add-on can set this when it wants to disable the sanity check below.
4010libc_config_ok=no
26f56c1c 4011
a152f366 4012subdirs="$subdirs "
3a12e572 4013
3a12e572 4014
a152f366
UD
4015case "$enable_add_ons" in
4016''|no) add_ons= ;;
4017yes|'*')
4018 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4019 sed 's@/[^/]*$@@' | sort | uniq`
4020 add_ons_automatic=yes
4021 ;;
4022*) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4023 add_ons_automatic=no ;;
26f56c1c 4024esac
2abf9ff1 4025
a152f366
UD
4026configured_add_ons=
4027add_ons_sfx=
4028add_ons_pfx=
4029if test x"$add_ons" != x; then
4030 for f in $add_ons; do
4031 # Some sanity checks
4032 case "$f" in
4033 crypt)
322e23db 4034 { { $as_echo "$as_me:$LINENO: error:
a152f366
UD
4035*** It seems that you're using an old \`crypt' add-on. crypt is now
4036*** part of glibc and using the old add-on will not work with this
4037*** release. Start again with fresh sources and without the old
4038*** \`crypt' add-on." >&5
322e23db 4039$as_echo "$as_me: error:
a152f366
UD
4040*** It seems that you're using an old \`crypt' add-on. crypt is now
4041*** part of glibc and using the old add-on will not work with this
4042*** release. Start again with fresh sources and without the old
4043*** \`crypt' add-on." >&2;}
4044 { (exit 1); exit 1; }; }
4045 ;;
4046 localedata)
322e23db 4047 { { $as_echo "$as_me:$LINENO: error:
a152f366
UD
4048*** It seems that you're using an old \`localedata' add-on. localedata
4049*** is now part of glibc and using the old add-on will not work with
4050*** this release. Start again with fresh sources and without the old
4051*** \`localedata' add-on." >&5
322e23db 4052$as_echo "$as_me: error:
a152f366
UD
4053*** It seems that you're using an old \`localedata' add-on. localedata
4054*** is now part of glibc and using the old add-on will not work with
4055*** this release. Start again with fresh sources and without the old
4056*** \`localedata' add-on." >&2;}
4057 { (exit 1); exit 1; }; }
4058 ;;
4059 esac
4060 done
3a12e572 4061
a152f366
UD
4062 # Now source each add-on's configure fragment.
4063 # The fragments can use $srcdir/$libc_add_on to find themselves,
4064 # and test $add_ons_automatic to see if they were explicitly requested.
4065 # A fragment can clear (or even change) $libc_add_on to affect
4066 # whether it goes into the list to be actually used in the build.
4067 use_add_ons=
4068 for libc_add_on in $add_ons; do
4069 # Test whether such a directory really exists.
4070 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4071 case "$libc_add_on" in
4072 /*)
4073 libc_add_on_srcdir=$libc_add_on
4074 ;;
4075 *)
4076 test -d "$srcdir/$libc_add_on" || {
4077 if test -d "$libc_add_on"; then
4078 libc_add_on="`pwd`/$libc_add_on"
4079 else
322e23db
UD
4080 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4081$as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
a152f366
UD
4082 { (exit 1); exit 1; }; }
4083 fi
4084 }
4085 libc_add_on_srcdir=$srcdir/$libc_add_on
4086 ;;
4087 esac
2abf9ff1 4088
a152f366
UD
4089 libc_add_on_frag=$libc_add_on_srcdir/configure
4090 libc_add_on_canonical=
7967983f 4091 libc_add_on_config_subdirs=
a152f366 4092 if test -r "$libc_add_on_frag"; then
322e23db
UD
4093 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4094$as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
a152f366
UD
4095 libc_add_on_canonical=unknown
4096 libc_add_on_subdirs=
4097 . "$libc_add_on_frag"
4098 test -z "$libc_add_on" || {
4099 configured_add_ons="$configured_add_ons $libc_add_on"
4100 if test "x$libc_add_on_canonical" = xunknown; then
322e23db
UD
4101 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4102$as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
a152f366
UD
4103 { (exit 1); exit 1; }; }
4104 fi
4105 for d in $libc_add_on_subdirs; do
4106 case "$libc_add_on" in
4107 /*) subdir_srcdir="$libc_add_on" ;;
4108 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4109 esac
4110 case "$d" in
4111 .)
4112 d="${libc_add_on_canonical:-$libc_add_on}"
4113 ;;
4114 /*)
4115 subdir_srcdir="$d"
4116 ;;
4117 *)
4118 subdir_srcdir="$subdir_srcdir/$d"
4119 ;;
4120 esac
4121 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4122 add_on_subdirs="$add_on_subdirs $d"
4123 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4124$d-srcdir = $subdir_srcdir"
4125 done
7967983f
RM
4126 for d in $libc_add_on_config_subdirs; do
4127 case "$d" in
4128 /*) { { $as_echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5
4129$as_echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;}
4130 { (exit 1); exit 1; }; } ;;
4131 esac
4132 if test ! -d "$libc_add_on_srcdir/$d"; then
4133 { { $as_echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5
4134$as_echo "$as_me: error: fragment wants to configure missing directory $d" >&2;}
4135 { (exit 1); exit 1; }; }
4136 fi
4137 case "$libc_add_on" in
4138 /*) { { $as_echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5
4139$as_echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;}
4140 { (exit 1); exit 1; }; } ;;
4141 esac
4142 subdirs="$subdirs $libc_add_on/$d"
4143 done
a152f366
UD
4144 }
4145 fi
4146 if test -n "$libc_add_on"; then
4147 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4148 then
322e23db
UD
4149 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4150$as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
a152f366
UD
4151 for frag in $frags; do
4152 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4153 echo $ECHO_N "$name $ECHO_C" >&6
4154 . "$frag"
4155 done
322e23db
UD
4156 { $as_echo "$as_me:$LINENO: result: " >&5
4157$as_echo "" >&6; }
a152f366
UD
4158 fi
4159 use_add_ons="$use_add_ons $libc_add_on"
4160 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4161 test -z "$libc_add_on_canonical" ||
4162 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4163 fi
4164 done
4165 # Use echo to strip excess whitespace.
4166 add_ons="`echo $use_add_ons`"
5c2a0669 4167fi
26f56c1c 4168
3a12e572 4169
3a12e572 4170
3a12e572 4171
a152f366
UD
4172###
4173### I put this here to prevent those annoying emails from people who cannot
4174### read and try to compile glibc on unsupported platforms. --drepper
4175###
4176### By using the undocumented --enable-hacker-mode option for configure
4177### one can skip this test to make the configuration not fail for unsupported
4178### platforms.
4179###
4180if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4181 case "$machine-$host_os" in
4182 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4183 ;;
4184 *)
4185 echo "*** The GNU C library is currently not available for this platform."
4186 echo "*** So far nobody cared to port it and if there is no volunteer it"
4187 echo "*** might never happen. So, if you have interest to see glibc on"
4188 echo "*** this platform visit"
4189 echo "*** http://www.gnu.org/software/libc/porting.html"
4190 echo "*** and join the group of porters"
4191 exit 1
4192 ;;
4193 esac
3a12e572 4194fi
2abf9ff1 4195
a152f366
UD
4196# Expand the configuration machine name into a subdirectory by architecture
4197# type and particular chip. If an add-on configure fragment already set
4198# base_machine, we don't change it.
4199test -n "$base_machine" || case "$machine" in
4200a29k | am29000) base_machine=a29k machine=a29k ;;
4201c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4202c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4203i[34567]86) base_machine=i386 machine=i386/$machine ;;
4204ia64) base_machine=ia64 machine=ia64 ;;
4205m88???) base_machine=m88k machine=m88k/$machine ;;
4206m88k) base_machine=m88k machine=m88k/m88100 ;;
4207powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4208powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4209s390) base_machine=s390 machine=s390/s390-32 ;;
4210s390x) base_machine=s390 machine=s390/s390-64 ;;
4211sh3*) base_machine=sh machine=sh/sh3 ;;
4212sh4*) base_machine=sh machine=sh/sh4 ;;
4213sparc | sparcv[67])
4214 base_machine=sparc machine=sparc/sparc32 ;;
4215sparcv8 | supersparc | hypersparc)
4216 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4217sparcv8plus | sparcv8plusa | sparcv9)
4218 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4219sparcv8plusb | sparcv9b)
4220 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4221sparcv9v)
4222 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4223sparcv9v2)
4224 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4225sparc64)
4226 base_machine=sparc machine=sparc/sparc64 ;;
4227sparc64b)
4228 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4229sparc64v)
4230 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4231sparc64v2)
4232 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4233*) base_machine=$machine ;;
4234esac
26f56c1c 4235
3a12e572 4236
a152f366
UD
4237if test "$base_machine" = "i386"; then
4238 cat >>confdefs.h <<\_ACEOF
4239#define USE_REGPARMS 1
3a12e572 4240_ACEOF
2abf9ff1 4241
cd6ede75 4242fi
26f56c1c 4243
a152f366
UD
4244# Compute the list of sysdep directories for this configuration.
4245# This can take a while to compute.
4246sysdep_dir=$srcdir/sysdeps
322e23db
UD
4247{ $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4248$as_echo_n "checking sysdep dirs... " >&6; }
a152f366
UD
4249# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4250os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4251
4252test "x$base_os" != x || case "$os" in
4253gnu*)
4254 base_os=mach/hurd ;;
4255netbsd* | 386bsd* | freebsd* | bsdi*)
4256 base_os=unix/bsd/bsd4.4 ;;
4257osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4258 base_os=unix/bsd ;;
4259sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4260 base_os=unix/sysv ;;
4261irix6*)
4262 base_os=unix/sysv/irix6/$os ;;
4263solaris[2-9]*)
4264 base_os=unix/sysv/sysv4 ;;
4265hpux*)
4266 base_os=unix/sysv/hpux/$os ;;
4267aix4.3*)
4268 base_os=unix/sysv/aix/aix4.3 ;;
4269none)
4270 base_os=standalone ;;
4271esac
3a12e572 4272
a152f366
UD
4273# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4274tail=$os
4275ostry=$os
4276while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4277 ostry="$ostry /$o"
4278 tail=$o
3a12e572 4279done
a152f366
UD
4280o=`echo $tail | sed 's/[0-9]*$//'`
4281if test $o != $tail; then
4282 ostry="$ostry /$o"
4283fi
4284# For linux-gnu, try linux-gnu, then linux.
4285o=`echo $tail | sed 's/-.*$//'`
4286if test $o != $tail; then
4287 ostry="$ostry /$o"
cd6ede75 4288fi
3a12e572 4289
a152f366
UD
4290# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4291base=
4292tail=$base_os
4293while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4294 set $b
4295 base="$base /$1"
4296 tail="$2"
4297done
cd6ede75 4298
a152f366
UD
4299# For sparc/sparc32, try sparc/sparc32 and then sparc.
4300mach=
4301tail=$machine${submachine:+/$submachine}
4302while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4303 set $m
4304 # Prepend the machine's FPU directory unless --without-fp.
4305 if test "$with_fp" = yes; then
4306 mach="$mach /$1/fpu"
26f56c1c 4307 else
a152f366 4308 mach="$mach /$1/nofpu"
925c3c5c 4309 fi
a152f366
UD
4310 mach="$mach /$1"
4311 tail="$2"
925c3c5c 4312done
a152f366
UD
4313
4314
4315# Find what sysdep directories exist.
4316sysnames_add_ons=
4317sysnames=
4318for b in $base ''; do
4319 for m0 in $mach ''; do
4320 for v in /$vendor ''; do
4321 test "$v" = / && continue
4322 for o in /$ostry ''; do
4323 test "$o" = / && continue
4324 for m in $multi_arch_d $mach ''; do
4325 for d in $add_ons_pfx ''; do
4326 for a in $add_ons_sfx ''; do
4327 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4328 try_srcdir="${srcdir}/"
4329 case "$d" in
4330 /*) try_srcdir= ;;
4331 esac
4332 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4333 test -n "$enable_debug_configure" &&
4334 echo "$0 DEBUG: try $try" >&2
4335 if test -d "$try_srcdir$try"; then
4336 sysnames="$sysnames $try"
4337 { test -n "$o" || test -n "$b"; } && os_used=t
4338 { test -n "$m" || test -n "$m0"; } && machine_used=t
4339 case x${m0:-$m} in
4340 x*/$submachine) submachine_used=t ;;
4341 esac
4342 if test -n "$d"; then
4343 case "$sysnames_add_ons" in
4344 *" $d "*) ;;
4345 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4346 esac
4347 fi
4348 fi
4349 fi
4350 done
4351 done
4352 done
4353 done
4354 done
4355 done
925c3c5c
UD
4356done
4357
6f89d2f3
L
4358# If the assembler supports gnu_indirect_function symbol type and the
4359# architecture supports multi-arch, we enable multi-arch by default.
4360if test "$multi_arch" = default; then
4361{ $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
4362$as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4363if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
4364 $as_echo_n "(cached) " >&6
4365else
4366 cat > conftest.s <<EOF
4367.type foo,%gnu_indirect_function
4368EOF
4369if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4370then
4371 libc_cv_asm_gnu_indirect_function=yes
4372else
4373 libc_cv_asm_gnu_indirect_function=no
4374fi
4375rm -f conftest*
4376fi
4377{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
4378$as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4379 multi_arch=no
4380 if test "$libc_cv_asm_gnu_indirect_function" = yes; then
4381 case $sysnames_add_ons$sysnames in
4382 *"$multi_arch_d"*)
4383 multi_arch=yes
4384 ;;
4385 esac
4386 fi
4387fi
4388if test x"$multi_arch" = xyes; then
4389 cat >>confdefs.h <<\_ACEOF
4390#define USE_MULTIARCH 1
4391_ACEOF
4392
4393fi
4394
4395
a152f366 4396if test -z "$os_used" && test "$os" != none; then
322e23db
UD
4397 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4398$as_echo "$as_me: error: Operating system $os is not supported." >&2;}
a152f366 4399 { (exit 1); exit 1; }; }
925c3c5c 4400fi
a152f366 4401if test -z "$machine_used" && test "$machine" != none; then
322e23db
UD
4402 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4403$as_echo "$as_me: error: The $machine is not supported." >&2;}
a152f366 4404 { (exit 1); exit 1; }; }
925c3c5c 4405fi
a152f366 4406if test -z "$submachine_used" && test -n "$submachine"; then
322e23db
UD
4407 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4408$as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
a152f366 4409 { (exit 1); exit 1; }; }
925c3c5c
UD
4410fi
4411
26f56c1c 4412
a152f366
UD
4413# We have now validated the configuration.
4414
4415
4416# If using ELF, look for an `elf' subdirectory of each machine directory.
4417# We prepend these rather than inserting them whereever the machine appears
4418# because things specified by the machine's ELF ABI should override
4419# OS-specific things, and should always be the same for any OS on the
4420# machine (otherwise what's the point of an ABI?).
4421if test "$elf" = yes; then
4422 elf_dirs=
4423 for d in $add_ons_pfx ''; do
4424 for m in $mach; do
4425 if test -d $srcdir/${d}sysdeps$m/elf; then
4426 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4427 fi
4428 done
925c3c5c 4429 done
a152f366 4430 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
925c3c5c 4431fi
925c3c5c 4432
925c3c5c 4433
a152f366
UD
4434# Expand the list of system names into a full list of directories
4435# from each element's parent name and Implies file (if present).
4436set $sysnames
4437names=
4438while test $# -gt 0; do
4439 name=$1
4440 shift
26f56c1c 4441
a152f366
UD
4442 case " $names " in *" $name "*)
4443 # Already in the list.
4444 continue
4445 esac
925c3c5c 4446
a152f366
UD
4447 # Report each name as we discover it, so there is no long pause in output.
4448 echo $ECHO_N "$name $ECHO_C" >&6
925c3c5c 4449
a152f366
UD
4450 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4451
4452 case $name in
4453 /*) xsrcdir= ;;
4454 *) xsrcdir=$srcdir/ ;;
4455 esac
4456 test -n "$enable_debug_configure" &&
4457 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4458
4459 if test -f $xsrcdir$name/Implies; then
4460 # Collect more names from the `Implies' file (removing comments).
4461 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4462 implied=
4463 for x in $implied_candidate; do
4464 found=no
4465 if test -d $xsrcdir$name_base/$x; then
4466 implied="$implied $name_base/$x";
4467 found=yes
4468 fi
4469 for d in $add_ons_pfx ''; do
4470 try="${d}sysdeps/$x"
4471 case $d in
4472 /*) try_srcdir= ;;
4473 *) try_srcdir=$srcdir/ ;;
4474 esac
4475 test -n "$enable_debug_configure" &&
4476 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4477 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4478 then
4479 implied="$implied $try"
4480 found=yes
4481 case "$sysnames_add_ons" in
4482 *" $d "*) ;;
4483 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4484 esac
4485 fi
4486 done
4487 if test $found = no; then
322e23db
UD
4488 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4489$as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
a152f366
UD
4490 fi
4491 done
4492 else
4493 implied=
4494 fi
925c3c5c 4495
a152f366
UD
4496 # Add NAME to the list of names.
4497 names="$names $name"
925c3c5c 4498
a152f366
UD
4499 # Find the parent of NAME, using the empty string if it has none.
4500 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
925c3c5c 4501
a152f366
UD
4502 # Add the names implied by NAME, and NAME's parent (if it has one), to
4503 # the list of names to be processed (the argument list). We prepend the
4504 # implied names to the list and append the parent. We want implied
4505 # directories to come before further directories inferred from the
4506 # configuration components; this ensures that for sysv4, unix/common
4507 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4508 # after sysv4).
4509 sysnames="`echo $implied $* $parent`"
4510 test -n "$sysnames" && set $sysnames
4511done
2abf9ff1 4512
a152f366
UD
4513# Add the default directories.
4514default_sysnames=sysdeps/generic
4515if test "$elf" = yes; then
4516 default_sysnames="sysdeps/generic/elf $default_sysnames"
925c3c5c 4517fi
a152f366 4518sysnames="$names $default_sysnames"
26f56c1c 4519
a152f366 4520# The other names were emitted during the scan.
322e23db
UD
4521{ $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4522$as_echo "$default_sysnames" >&6; }
925c3c5c 4523
a152f366
UD
4524# Collect the list of add-ons that supply partial sysdeps trees.
4525sysdeps_add_ons=
4526for add_on in $add_ons; do
4527 case "$add_on" in
4528 /*) xsrcdir= ;;
4529 *) xsrcdir="$srcdir/" ;;
4530 esac
925c3c5c 4531
a152f366
UD
4532 test -d "$xsrcdir$add_on/sysdeps" || {
4533 case "$configured_add_ons " in
4534 *" $add_on "*) ;;
4535 *|'')
322e23db
UD
4536 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4537$as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
a152f366
UD
4538 { (exit 1); exit 1; }; }
4539 ;;
4540 esac
4541 continue
4542 }
2abf9ff1 4543
a152f366
UD
4544 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4545 case "$sysnames_add_ons" in
4546 *" $add_on/ "*) ;;
4547 *|'')
322e23db
UD
4548 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4549$as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
a152f366
UD
4550 continue ;;
4551 esac
26f56c1c 4552
a152f366
UD
4553 found=no
4554 for d in $sysnames; do
4555 case "$d" in
4556 $add_on/sysdeps/*) ;;
4557 *) continue ;;
4558 esac
4559 (cd "$xsrcdir$d" && for f in *[!~]; do
4560 case "$f" in
4561 sys|bits)
4562 for ff in $f/*.h; do
4563 test -d "$ff" || { test -e "$ff" && exit 88; }
4564 done
4565 ;;
4566 *)
4567 test -d "$f" || { test -e "$f" && exit 88; }
4568 ;;
4569 esac
4570 done)
4571 if test $? -eq 88; then
4572 found=yes
4573 break
4574 fi
4575 done
4576 if test $found = no; then
322e23db
UD
4577 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4578$as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
a152f366
UD
4579 fi
4580done
26f56c1c 4581
2abf9ff1 4582
26f56c1c 4583
a152f366 4584### Locate tools.
26f56c1c 4585
a152f366
UD
4586# Find a good install program. We prefer a C program (faster),
4587# so one script is as good as another. But avoid the broken or
4588# incompatible versions:
4589# SysV /etc/install, /usr/sbin/install
4590# SunOS /usr/etc/install
4591# IRIX /sbin/install
4592# AIX /bin/install
4593# AmigaOS /C/install, which installs bootblocks on floppy discs
4594# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4595# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4596# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4597# OS/2's system install, which has a completely different semantic
4598# ./install, which can be erroneously created by make from ./install.sh.
322e23db
UD
4599# Reject install programs that cannot install multiple files.
4600{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4601$as_echo_n "checking for a BSD-compatible install... " >&6; }
a152f366
UD
4602if test -z "$INSTALL"; then
4603if test "${ac_cv_path_install+set}" = set; then
322e23db 4604 $as_echo_n "(cached) " >&6
a152f366
UD
4605else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 # Account for people who put trailing slashes in PATH elements.
4612case $as_dir/ in
4613 ./ | .// | /cC/* | \
4614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4615 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4616 /usr/ucb/* ) ;;
4617 *)
4618 # OSF1 and SCO ODT 3.0 have their own names for install.
4619 # Don't use installbsd from OSF since it installs stuff as root
4620 # by default.
4621 for ac_prog in ginstall scoinst install; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4624 if test $ac_prog = install &&
4625 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4626 # AIX install. It has an incompatible calling convention.
4627 :
4628 elif test $ac_prog = install &&
4629 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4630 # program-specific install script used by HP pwplus--don't use.
4631 :
4632 else
322e23db
UD
4633 rm -rf conftest.one conftest.two conftest.dir
4634 echo one > conftest.one
4635 echo two > conftest.two
4636 mkdir conftest.dir
4637 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4638 test -s conftest.one && test -s conftest.two &&
4639 test -s conftest.dir/conftest.one &&
4640 test -s conftest.dir/conftest.two
4641 then
4642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4643 break 3
4644 fi
a152f366
UD
4645 fi
4646 fi
4647 done
4648 done
4649 ;;
26f56c1c 4650esac
322e23db 4651
a152f366
UD
4652done
4653IFS=$as_save_IFS
2abf9ff1 4654
322e23db 4655rm -rf conftest.one conftest.two conftest.dir
26f56c1c 4656
925c3c5c 4657fi
a152f366
UD
4658 if test "${ac_cv_path_install+set}" = set; then
4659 INSTALL=$ac_cv_path_install
4660 else
4661 # As a last resort, use the slow shell script. Don't cache a
4662 # value for INSTALL within a source directory, because that will
4663 # break other packages using the cache if that directory is
4664 # removed, or if the value is a relative name.
4665 INSTALL=$ac_install_sh
4666 fi
925c3c5c 4667fi
322e23db
UD
4668{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4669$as_echo "$INSTALL" >&6; }
925c3c5c 4670
a152f366
UD
4671# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4672# It thinks the first close brace ends the variable substitution.
4673test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
26f56c1c 4674
a152f366
UD
4675test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4676
4677test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4678
4679if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4680 # The makefiles need to use a different form to find it in $srcdir.
4681 INSTALL='\$(..)./scripts/install-sh -c'
26f56c1c 4682fi
322e23db
UD
4683{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684$as_echo_n "checking whether ln -s works... " >&6; }
a152f366
UD
4685LN_S=$as_ln_s
4686if test "$LN_S" = "ln -s"; then
322e23db
UD
4687 { $as_echo "$as_me:$LINENO: result: yes" >&5
4688$as_echo "yes" >&6; }
26f56c1c 4689else
322e23db
UD
4690 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691$as_echo "no, using $LN_S" >&6; }
26f56c1c 4692fi
a152f366 4693
925c3c5c 4694
650425ce
UD
4695# Was a --with-binutils option given?
4696if test -n "$path_binutils"; then
4697 # Make absolute; ensure a single trailing slash.
4698 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
63bda0c1 4699 CC="$CC -B$path_binutils"
650425ce 4700fi
27a5bb33
UD
4701AS=`$CC -print-prog-name=as`
4702LD=`$CC -print-prog-name=ld`
5edb9387 4703AR=`$CC -print-prog-name=ar`
cd6ede75 4704
4baa087a
RM
4705OBJDUMP=`$CC -print-prog-name=objdump`
4706
4707
4708# ranlib has to be treated a bit differently since it might not exist at all.
4709ac_ranlib=`$CC -print-prog-name=ranlib`
4710if test "x$ac_ranlib" = xranlib; then
4711# This extra check has to happen since gcc simply echos the parameter in
4712# case it cannot find the value in its own directories.
4713if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4715set dummy ${ac_tool_prefix}ranlib; ac_word=$2
322e23db
UD
4716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 4718if test "${ac_cv_prog_RANLIB+set}" = set; then
322e23db 4719 $as_echo_n "(cached) " >&6
4baa087a
RM
4720else
4721 if test -n "$RANLIB"; then
4722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
322e23db 4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4733 break 2
4734 fi
4735done
4736done
26f56c1c 4737IFS=$as_save_IFS
4baa087a
RM
4738
4739fi
4740fi
4741RANLIB=$ac_cv_prog_RANLIB
4742if test -n "$RANLIB"; then
322e23db
UD
4743 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4744$as_echo "$RANLIB" >&6; }
4baa087a 4745else
322e23db
UD
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747$as_echo "no" >&6; }
4baa087a
RM
4748fi
4749
26f56c1c 4750
4baa087a
RM
4751fi
4752if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755set dummy ranlib; ac_word=$2
322e23db
UD
4756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 4758if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
322e23db 4759 $as_echo_n "(cached) " >&6
4baa087a
RM
4760else
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4771 ac_cv_prog_ac_ct_RANLIB="ranlib"
322e23db 4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4773 break 2
4774 fi
4775done
4776done
26f56c1c 4777IFS=$as_save_IFS
4baa087a 4778
4baa087a
RM
4779fi
4780fi
4781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782if test -n "$ac_ct_RANLIB"; then
322e23db
UD
4783 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4784$as_echo "$ac_ct_RANLIB" >&6; }
4baa087a 4785else
322e23db
UD
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787$as_echo "no" >&6; }
4baa087a
RM
4788fi
4789
26f56c1c
UD
4790 if test "x$ac_ct_RANLIB" = x; then
4791 RANLIB=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794yes:)
322e23db
UD
4795{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26f56c1c
UD
4797ac_tool_warned=yes ;;
4798esac
4799 RANLIB=$ac_ct_RANLIB
4800 fi
4baa087a
RM
4801else
4802 RANLIB="$ac_cv_prog_RANLIB"
4803fi
4804
4805else
4806 RANLIB=$ac_ranlib
4807fi
4808
4809
4810# Determine whether we are using GNU binutils.
322e23db
UD
4811{ $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4812$as_echo_n "checking whether $AS is GNU as... " >&6; }
4baa087a 4813if test "${libc_cv_prog_as_gnu+set}" = set; then
322e23db 4814 $as_echo_n "(cached) " >&6
4baa087a
RM
4815else
4816 # Most GNU programs take a -v and spit out some text including
4817# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4818if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4819 libc_cv_prog_as_gnu=yes
4820else
4821 libc_cv_prog_as_gnu=no
4822fi
4823rm -fr contest*
4824fi
322e23db
UD
4825{ $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4826$as_echo "$libc_cv_prog_as_gnu" >&6; }
4baa087a
RM
4827rm -f a.out
4828gnu_as=$libc_cv_prog_as_gnu
4829
322e23db
UD
4830{ $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4831$as_echo_n "checking whether $LD is GNU ld... " >&6; }
4baa087a 4832if test "${libc_cv_prog_ld_gnu+set}" = set; then
322e23db 4833 $as_echo_n "(cached) " >&6
4baa087a
RM
4834else
4835 # Most GNU programs take a -v and spit out some text including
4836# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4837if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4838 libc_cv_prog_ld_gnu=yes
4839else
4840 libc_cv_prog_ld_gnu=no
4841fi
4842rm -fr contest*
4843fi
322e23db
UD
4844{ $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4845$as_echo "$libc_cv_prog_ld_gnu" >&6; }
4baa087a
RM
4846gnu_ld=$libc_cv_prog_ld_gnu
4847
4848
4849# Accept binutils 2.13 or newer.
4850for ac_prog in $AS
4851do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
322e23db
UD
4854{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 4856if test "${ac_cv_prog_AS+set}" = set; then
322e23db 4857 $as_echo_n "(cached) " >&6
4baa087a
RM
4858else
4859 if test -n "$AS"; then
4860 ac_cv_prog_AS="$AS" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4869 ac_cv_prog_AS="$ac_prog"
322e23db 4870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4871 break 2
4872 fi
4873done
4874done
26f56c1c 4875IFS=$as_save_IFS
4baa087a
RM
4876
4877fi
4878fi
4879AS=$ac_cv_prog_AS
4880if test -n "$AS"; then
322e23db
UD
4881 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4882$as_echo "$AS" >&6; }
4baa087a 4883else
322e23db
UD
4884 { $as_echo "$as_me:$LINENO: result: no" >&5
4885$as_echo "no" >&6; }
4baa087a
RM
4886fi
4887
26f56c1c 4888
4baa087a
RM
4889 test -n "$AS" && break
4890done
4891
4892if test -z "$AS"; then
4893 ac_verc_fail=yes
4894else
4895 # Found it, now check the version.
322e23db
UD
4896 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4897$as_echo_n "checking version of $AS... " >&6; }
4baa087a
RM
4898 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4899 case $ac_prog_version in
4900 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
f450806e 4901 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4baa087a
RM
4902 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4903 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4904
4905 esac
322e23db
UD
4906 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4907$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
4908fi
4909if test $ac_verc_fail = yes; then
73588175 4910 AS=: critic_missing="$critic_missing as"
4baa087a
RM
4911fi
4912
4913for ac_prog in $LD
4914do
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916set dummy $ac_prog; ac_word=$2
322e23db
UD
4917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 4919if test "${ac_cv_prog_LD+set}" = set; then
322e23db 4920 $as_echo_n "(cached) " >&6
4baa087a
RM
4921else
4922 if test -n "$LD"; then
4923 ac_cv_prog_LD="$LD" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4932 ac_cv_prog_LD="$ac_prog"
322e23db 4933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
4934 break 2
4935 fi
4936done
4937done
26f56c1c 4938IFS=$as_save_IFS
4baa087a
RM
4939
4940fi
4941fi
4942LD=$ac_cv_prog_LD
4943if test -n "$LD"; then
322e23db
UD
4944 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4945$as_echo "$LD" >&6; }
4baa087a 4946else
322e23db
UD
4947 { $as_echo "$as_me:$LINENO: result: no" >&5
4948$as_echo "no" >&6; }
4baa087a
RM
4949fi
4950
26f56c1c 4951
4baa087a
RM
4952 test -n "$LD" && break
4953done
4954
4955if test -z "$LD"; then
4956 ac_verc_fail=yes
4957else
4958 # Found it, now check the version.
322e23db
UD
4959 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4960$as_echo_n "checking version of $LD... " >&6; }
4baa087a
RM
4961 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4962 case $ac_prog_version in
4963 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
f450806e 4964 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4baa087a
RM
4965 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4966 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4967
4968 esac
322e23db
UD
4969 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4970$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
4971fi
4972if test $ac_verc_fail = yes; then
73588175 4973 LD=: critic_missing="$critic_missing ld"
4baa087a
RM
4974fi
4975
4976
4977# We need the physical current working directory. We cannot use the
4978# "pwd -P" shell builtin since that's not portable. Instead we try to
4979# find a pwd binary. Note that assigning to the PWD environment
4980# variable might have some interesting side effects, so we don't do
4981# that.
4982# Extract the first word of "pwd", so it can be a program name with args.
4983set dummy pwd; ac_word=$2
322e23db
UD
4984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4985$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 4986if test "${ac_cv_path_PWD_P+set}" = set; then
322e23db 4987 $as_echo_n "(cached) " >&6
4baa087a
RM
4988else
4989 case $PWD_P in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4992 ;;
4993 *)
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5001 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
322e23db 5002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
5003 break 2
5004 fi
5005done
5006done
26f56c1c 5007IFS=$as_save_IFS
4baa087a
RM
5008
5009 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
5010 ;;
5011esac
5012fi
5013PWD_P=$ac_cv_path_PWD_P
4baa087a 5014if test -n "$PWD_P"; then
322e23db
UD
5015 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
5016$as_echo "$PWD_P" >&6; }
4baa087a 5017else
322e23db
UD
5018 { $as_echo "$as_me:$LINENO: result: no" >&5
5019$as_echo "no" >&6; }
4baa087a
RM
5020fi
5021
26f56c1c 5022
4baa087a 5023if test "$PWD_P" = no; then
322e23db
UD
5024 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
5025$as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4baa087a
RM
5026 { (exit 1); exit 1; }; }
5027fi
5028
5029# These programs are version sensitive.
5030
5031for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
5032do
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034set dummy $ac_prog; ac_word=$2
322e23db
UD
5035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5036$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5037if test "${ac_cv_prog_CC+set}" = set; then
322e23db 5038 $as_echo_n "(cached) " >&6
4baa087a
RM
5039else
5040 if test -n "$CC"; then
5041 ac_cv_prog_CC="$CC" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5050 ac_cv_prog_CC="$ac_prog"
322e23db 5051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
5052 break 2
5053 fi
5054done
5055done
26f56c1c 5056IFS=$as_save_IFS
4baa087a
RM
5057
5058fi
5059fi
5060CC=$ac_cv_prog_CC
5061if test -n "$CC"; then
322e23db
UD
5062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5063$as_echo "$CC" >&6; }
4baa087a 5064else
322e23db
UD
5065 { $as_echo "$as_me:$LINENO: result: no" >&5
5066$as_echo "no" >&6; }
4baa087a
RM
5067fi
5068
26f56c1c 5069
4baa087a
RM
5070 test -n "$CC" && break
5071done
5072
5073if test -z "$CC"; then
5074 ac_verc_fail=yes
5075else
5076 # Found it, now check the version.
322e23db
UD
5077 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5078$as_echo_n "checking version of $CC... " >&6; }
4baa087a
RM
5079 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5080 case $ac_prog_version in
5081 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3cc4a097 5082 3.4* | 4.[0-9]* )
4baa087a
RM
5083 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5084 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5085
5086 esac
322e23db
UD
5087 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5088$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
5089fi
5090if test $ac_verc_fail = yes; then
5091 critic_missing="$critic_missing gcc"
5092fi
5093
5094for ac_prog in gnumake gmake make
5095do
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097set dummy $ac_prog; ac_word=$2
322e23db
UD
5098{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5100if test "${ac_cv_prog_MAKE+set}" = set; then
322e23db 5101 $as_echo_n "(cached) " >&6
4baa087a
RM
5102else
5103 if test -n "$MAKE"; then
5104 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5113 ac_cv_prog_MAKE="$ac_prog"
322e23db 5114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4baa087a
RM
5115 break 2
5116 fi
5117done
5118done
26f56c1c 5119IFS=$as_save_IFS
4baa087a
RM
5120
5121fi
5122fi
5123MAKE=$ac_cv_prog_MAKE
5124if test -n "$MAKE"; then
322e23db
UD
5125 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5126$as_echo "$MAKE" >&6; }
4baa087a 5127else
322e23db
UD
5128 { $as_echo "$as_me:$LINENO: result: no" >&5
5129$as_echo "no" >&6; }
4baa087a
RM
5130fi
5131
26f56c1c 5132
4baa087a
RM
5133 test -n "$MAKE" && break
5134done
5135
5136if test -z "$MAKE"; then
5137 ac_verc_fail=yes
5138else
5139 # Found it, now check the version.
322e23db
UD
5140 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5141$as_echo_n "checking version of $MAKE... " >&6; }
4baa087a
RM
5142 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5143 case $ac_prog_version in
5144 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5145 3.79* | 3.[89]*)
5146 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5147 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5148
5149 esac
322e23db
UD
5150 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5151$as_echo "$ac_prog_version" >&6; }
4baa087a
RM
5152fi
5153if test $ac_verc_fail = yes; then
5154 critic_missing="$critic_missing make"
5155fi
6e3d59bc 5156
cd6ede75 5157
4baa087a
RM
5158for ac_prog in gnumsgfmt gmsgfmt msgfmt
5159do
5160 # Extract the first word of "$ac_prog", so it can be a program name with args.
5161set dummy $ac_prog; ac_word=$2
322e23db
UD
5162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5164if test "${ac_cv_prog_MSGFMT+set}" = set; then
322e23db 5165 $as_echo_n "(cached) " >&6
cd6ede75 5166else
4baa087a
RM
5167 if test -n "$MSGFMT"; then
5168 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
cd6ede75 5169else
3a12e572
UD
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5177 ac_cv_prog_MSGFMT="$ac_prog"
322e23db 5178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5179 break 2
5180 fi
5181done
5182done
26f56c1c 5183IFS=$as_save_IFS
3a12e572 5184
cd6ede75
UD
5185fi
5186fi
4baa087a
RM
5187MSGFMT=$ac_cv_prog_MSGFMT
5188if test -n "$MSGFMT"; then
322e23db
UD
5189 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5190$as_echo "$MSGFMT" >&6; }
cd6ede75 5191else
322e23db
UD
5192 { $as_echo "$as_me:$LINENO: result: no" >&5
5193$as_echo "no" >&6; }
cd6ede75
UD
5194fi
5195
26f56c1c 5196
4baa087a
RM
5197 test -n "$MSGFMT" && break
5198done
5199
5200if test -z "$MSGFMT"; then
5201 ac_verc_fail=yes
5202else
5203 # Found it, now check the version.
322e23db
UD
5204 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5205$as_echo_n "checking version of $MSGFMT... " >&6; }
4baa087a
RM
5206 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5207 case $ac_prog_version in
5208 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5209 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5210 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5211 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5212
5213 esac
322e23db
UD
5214 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5215$as_echo "$ac_prog_version" >&6; }
3a12e572 5216fi
4baa087a
RM
5217if test $ac_verc_fail = yes; then
5218 MSGFMT=: aux_missing="$aux_missing msgfmt"
5219fi
5220
5221for ac_prog in makeinfo
5222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
322e23db
UD
5225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5226$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5227if test "${ac_cv_prog_MAKEINFO+set}" = set; then
322e23db 5228 $as_echo_n "(cached) " >&6
cd6ede75 5229else
4baa087a
RM
5230 if test -n "$MAKEINFO"; then
5231 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
cd6ede75 5232else
3a12e572
UD
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5240 ac_cv_prog_MAKEINFO="$ac_prog"
322e23db 5241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5242 break 2
5243 fi
5244done
5245done
26f56c1c 5246IFS=$as_save_IFS
3a12e572 5247
cd6ede75
UD
5248fi
5249fi
4baa087a
RM
5250MAKEINFO=$ac_cv_prog_MAKEINFO
5251if test -n "$MAKEINFO"; then
322e23db
UD
5252 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5253$as_echo "$MAKEINFO" >&6; }
cd6ede75 5254else
322e23db
UD
5255 { $as_echo "$as_me:$LINENO: result: no" >&5
5256$as_echo "no" >&6; }
cd6ede75
UD
5257fi
5258
26f56c1c 5259
4baa087a
RM
5260 test -n "$MAKEINFO" && break
5261done
5edb9387 5262
4baa087a
RM
5263if test -z "$MAKEINFO"; then
5264 ac_verc_fail=yes
5edb9387 5265else
4baa087a 5266 # Found it, now check the version.
322e23db
UD
5267 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5268$as_echo_n "checking version of $MAKEINFO... " >&6; }
4baa087a
RM
5269 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5270 case $ac_prog_version in
5271 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5272 4.*)
5273 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5274 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5edb9387 5275
4baa087a 5276 esac
322e23db
UD
5277 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5278$as_echo "$ac_prog_version" >&6; }
5edb9387 5279fi
4baa087a
RM
5280if test $ac_verc_fail = yes; then
5281 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5edb9387 5282fi
cd6ede75 5283
4baa087a 5284for ac_prog in sed
c4d23330
RM
5285do
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
322e23db
UD
5288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5290if test "${ac_cv_prog_SED+set}" = set; then
322e23db 5291 $as_echo_n "(cached) " >&6
c4d23330 5292else
4baa087a
RM
5293 if test -n "$SED"; then
5294 ac_cv_prog_SED="$SED" # Let the user override the test.
c4d23330
RM
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5303 ac_cv_prog_SED="$ac_prog"
322e23db 5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
c4d23330
RM
5305 break 2
5306 fi
5307done
5308done
26f56c1c 5309IFS=$as_save_IFS
c4d23330
RM
5310
5311fi
5312fi
4baa087a
RM
5313SED=$ac_cv_prog_SED
5314if test -n "$SED"; then
322e23db
UD
5315 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5316$as_echo "$SED" >&6; }
c4d23330 5317else
322e23db
UD
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319$as_echo "no" >&6; }
c4d23330
RM
5320fi
5321
26f56c1c 5322
4baa087a 5323 test -n "$SED" && break
c4d23330
RM
5324done
5325
4baa087a 5326if test -z "$SED"; then
c4d23330
RM
5327 ac_verc_fail=yes
5328else
5329 # Found it, now check the version.
322e23db
UD
5330 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5331$as_echo_n "checking version of $SED... " >&6; }
4baa087a 5332 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
c4d23330
RM
5333 case $ac_prog_version in
5334 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4baa087a 5335 3.0[2-9]*|3.[1-9]*|[4-9]*)
c4d23330
RM
5336 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5337 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5338
5339 esac
322e23db
UD
5340 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5341$as_echo "$ac_prog_version" >&6; }
c4d23330
RM
5342fi
5343if test $ac_verc_fail = yes; then
4baa087a 5344 SED=: aux_missing="$aux_missing sed"
c4d23330
RM
5345fi
5346
4baa087a 5347
476e7d78 5348for ac_prog in autoconf
c4d23330
RM
5349do
5350 # Extract the first word of "$ac_prog", so it can be a program name with args.
5351set dummy $ac_prog; ac_word=$2
322e23db
UD
5352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
4baa087a 5354if test "${ac_cv_prog_AUTOCONF+set}" = set; then
322e23db 5355 $as_echo_n "(cached) " >&6
c4d23330 5356else
4baa087a
RM
5357 if test -n "$AUTOCONF"; then
5358 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
c4d23330
RM
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 5367 ac_cv_prog_AUTOCONF="$ac_prog"
322e23db 5368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
c4d23330
RM
5369 break 2
5370 fi
5371done
5372done
26f56c1c 5373IFS=$as_save_IFS
c4d23330
RM
5374
5375fi
5376fi
4baa087a
RM
5377AUTOCONF=$ac_cv_prog_AUTOCONF
5378if test -n "$AUTOCONF"; then
322e23db
UD
5379 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5380$as_echo "$AUTOCONF" >&6; }
c4d23330 5381else
322e23db
UD
5382 { $as_echo "$as_me:$LINENO: result: no" >&5
5383$as_echo "no" >&6; }
c4d23330
RM
5384fi
5385
26f56c1c 5386
4baa087a 5387 test -n "$AUTOCONF" && break
c4d23330 5388done
4baa087a 5389test -n "$AUTOCONF" || AUTOCONF="no"
c4d23330 5390
476e7d78
RM
5391case "x$AUTOCONF" in
5392xno|x|x:) AUTOCONF=no ;;
5393*)
322e23db
UD
5394 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5395$as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4baa087a 5396if test "${libc_cv_autoconf_works+set}" = set; then
322e23db 5397 $as_echo_n "(cached) " >&6
c4d23330 5398else
476e7d78
RM
5399 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5400 libc_cv_autoconf_works=yes
5401 else
5402 libc_cv_autoconf_works=no
5403 fi
c4d23330 5404fi
322e23db
UD
5405{ $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5406$as_echo "$libc_cv_autoconf_works" >&6; }
476e7d78
RM
5407 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5408 ;;
5409esac
5410if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5411 # If --without-cvs they probably won't change configure.in, so no complaints.
5412 aux_missing="$aux_missing autoconf"
c4d23330
RM
5413fi
5414
322e23db 5415test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
32a448ed
RM
5416*** These critical programs are missing or too old:$critic_missing
5417*** Check the INSTALL file for required versions." >&5
322e23db 5418$as_echo "$as_me: error:
32a448ed
RM
5419*** These critical programs are missing or too old:$critic_missing
5420*** Check the INSTALL file for required versions." >&2;}
5421 { (exit 1); exit 1; }; }
5422
322e23db 5423test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
9c6fffc0 5424*** These auxiliary programs are missing or incompatible versions:$aux_missing
ea9f119b 5425*** some features will be disabled.
3a12e572 5426*** Check the INSTALL file for required versions." >&5
322e23db 5427$as_echo "$as_me: WARNING:
3a12e572
UD
5428*** These auxiliary programs are missing or incompatible versions:$aux_missing
5429*** some features will be disabled.
5430*** Check the INSTALL file for required versions." >&2;}
ea9f119b 5431
3c720987
UD
5432# if using special system headers, find out the compiler's sekrit
5433# header directory and add that to the list. NOTE: Only does the right
5434# thing on a system that doesn't need fixincludes. (Not presently a problem.)
5435if test -n "$sysheaders"; then
67fbfa5c
RM
5436 SYSINCLUDES=-nostdinc
5437 for d in include include-fixed; do
22dca1ea 5438 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
67fbfa5c
RM
5439 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5440 done
5441 SYSINCLUDES="$SYSINCLUDES \
3d6ce23a 5442-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
ef226fec
RM
5443 if test -n "$CXX"; then
5444 cxxversion=`$CXX -dumpversion 2>&5` &&
5445 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5446 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5447 CXX_SYSINCLUDES="-isystem $cxxheaders \
5448-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5449 fi
3c720987
UD
5450fi
5451
5452
ef226fec 5453
f89ac85c 5454# check if ranlib is necessary
322e23db
UD
5455{ $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5456$as_echo_n "checking whether ranlib is necessary... " >&6; }
3a12e572 5457if test "${libc_cv_ranlib_necessary+set}" = set; then
322e23db 5458 $as_echo_n "(cached) " >&6
f38931a9 5459else
f89ac85c
UD
5460 cat > conftest.c <<EOF
5461int a;
5462char b;
5463void c(void) {}
5464EOF
3217788f 5465$CC $CFLAGS $CPPFLAGS -c conftest.c
5bbfc1ea 5466$AR cr conftest.a conftest.o
f89ac85c
UD
5467cp conftest.a conftest2.a
5468$RANLIB conftest.a
5469if cmp -s conftest.a conftest2.a; then
5470 libc_cv_ranlib_necessary=no
f38931a9 5471else
f89ac85c 5472 libc_cv_ranlib_necessary=yes
f38931a9 5473fi
f89ac85c 5474rm -rf conftest*
f38931a9 5475fi
322e23db
UD
5476{ $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5477$as_echo "$libc_cv_ranlib_necessary" >&6; }
f89ac85c
UD
5478if test "$libc_cv_ranlib_necessary" = no; then
5479 RANLIB=:
5480fi
f38931a9 5481
3911660e
UD
5482# Test if LD_LIBRARY_PATH contains the notation for the current directory
5483# since this would lead to problems installing/building glibc.
5484# LD_LIBRARY_PATH contains the current directory if one of the following
5485# is true:
5486# - one of the terminals (":" and ";") is the first or last sign
5487# - two terminals occur directly after each other
5488# - the path contains an element with a dot in it
322e23db
UD
5489{ $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5490$as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
3911660e
UD
5491case ${LD_LIBRARY_PATH} in
5492 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 5493 ld_library_path_setting="contains current directory"
3911660e
UD
5494 ;;
5495 *)
5496 ld_library_path_setting="ok"
5497 ;;
5498esac
322e23db
UD
5499{ $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5500$as_echo "$ld_library_path_setting" >&6; }
3911660e 5501if test "$ld_library_path_setting" != "ok"; then
322e23db 5502{ { $as_echo "$as_me:$LINENO: error:
3a12e572
UD
5503*** LD_LIBRARY_PATH shouldn't contain the current directory when
5504*** building glibc. Please change the environment variable
5505*** and run configure again." >&5
322e23db 5506$as_echo "$as_me: error:
63bda0c1
UD
5507*** LD_LIBRARY_PATH shouldn't contain the current directory when
5508*** building glibc. Please change the environment variable
3a12e572
UD
5509*** and run configure again." >&2;}
5510 { (exit 1); exit 1; }; }
3911660e
UD
5511fi
5512
322e23db
UD
5513{ $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5514$as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
3a12e572 5515if test "${libc_cv_gcc_static_libgcc+set}" = set; then
322e23db 5516 $as_echo_n "(cached) " >&6
74bd2300
UD
5517else
5518 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5519 libc_cv_gcc_static_libgcc=
5520else
5521 libc_cv_gcc_static_libgcc=-static-libgcc
5522fi
5523fi
322e23db
UD
5524{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5525$as_echo "$libc_cv_gcc_static_libgcc" >&6; }
74bd2300
UD
5526
5527
cd6ede75
UD
5528# Extract the first word of "bash", so it can be a program name with args.
5529set dummy bash; ac_word=$2
322e23db
UD
5530{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
26f56c1c 5532if test "${ac_cv_path_BASH_SHELL+set}" = set; then
322e23db 5533 $as_echo_n "(cached) " >&6
cd6ede75 5534else
26f56c1c 5535 case $BASH_SHELL in
3a12e572 5536 [\\/]* | ?:[\\/]*)
26f56c1c 5537 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
cd6ede75
UD
5538 ;;
5539 *)
3a12e572
UD
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c
UD
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
322e23db 5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5549 break 2
5550 fi
5551done
5552done
26f56c1c 5553IFS=$as_save_IFS
3a12e572 5554
26f56c1c 5555 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
cd6ede75
UD
5556 ;;
5557esac
5558fi
26f56c1c
UD
5559BASH_SHELL=$ac_cv_path_BASH_SHELL
5560if test -n "$BASH_SHELL"; then
322e23db
UD
5561 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5562$as_echo "$BASH_SHELL" >&6; }
cd6ede75 5563else
322e23db
UD
5564 { $as_echo "$as_me:$LINENO: result: no" >&5
5565$as_echo "no" >&6; }
cd6ede75
UD
5566fi
5567
26f56c1c
UD
5568
5569if test "$BASH_SHELL" != no &&
5570 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
6973fc01 5571 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
cd6ede75
UD
5572 libc_cv_have_bash2=yes
5573else
5574 libc_cv_have_bash2=no
5575fi
5576
5577
26f56c1c 5578if test "$BASH_SHELL" = no; then
cd6ede75
UD
5579 # Extract the first word of "ksh", so it can be a program name with args.
5580set dummy ksh; ac_word=$2
322e23db
UD
5581{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
3a12e572 5583if test "${ac_cv_path_KSH+set}" = set; then
322e23db 5584 $as_echo_n "(cached) " >&6
cd6ede75 5585else
3a12e572
UD
5586 case $KSH in
5587 [\\/]* | ?:[\\/]*)
cd6ede75
UD
5588 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5589 ;;
5590 *)
3a12e572
UD
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572 5598 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
322e23db 5599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5600 break 2
5601 fi
5602done
5603done
26f56c1c 5604IFS=$as_save_IFS
3a12e572 5605
cd6ede75
UD
5606 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5607 ;;
5608esac
5609fi
3a12e572 5610KSH=$ac_cv_path_KSH
cd6ede75 5611if test -n "$KSH"; then
322e23db
UD
5612 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5613$as_echo "$KSH" >&6; }
cd6ede75 5614else
322e23db
UD
5615 { $as_echo "$as_me:$LINENO: result: no" >&5
5616$as_echo "no" >&6; }
cd6ede75
UD
5617fi
5618
26f56c1c 5619
cd6ede75
UD
5620 if test "$KSH" = no; then
5621 libc_cv_have_ksh=no
5622 else
5623 libc_cv_have_ksh=yes
5624 fi
5625else
26f56c1c 5626 KSH="$BASH_SHELL"
3a12e572 5627
cd6ede75
UD
5628 libc_cv_have_ksh=yes
5629fi
5630
5631
a8c01776 5632for ac_prog in gawk mawk nawk awk
a2b08ee5 5633do
3a12e572 5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
a2b08ee5 5635set dummy $ac_prog; ac_word=$2
322e23db
UD
5636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5637$as_echo_n "checking for $ac_word... " >&6; }
3a12e572 5638if test "${ac_cv_prog_AWK+set}" = set; then
322e23db 5639 $as_echo_n "(cached) " >&6
5aa8ff62
UD
5640else
5641 if test -n "$AWK"; then
5642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5643else
3a12e572
UD
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572 5651 ac_cv_prog_AWK="$ac_prog"
322e23db 5652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5653 break 2
5654 fi
5655done
5656done
26f56c1c 5657IFS=$as_save_IFS
3a12e572 5658
5aa8ff62
UD
5659fi
5660fi
3a12e572 5661AWK=$ac_cv_prog_AWK
5aa8ff62 5662if test -n "$AWK"; then
322e23db
UD
5663 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5664$as_echo "$AWK" >&6; }
5aa8ff62 5665else
322e23db
UD
5666 { $as_echo "$as_me:$LINENO: result: no" >&5
5667$as_echo "no" >&6; }
5aa8ff62
UD
5668fi
5669
26f56c1c 5670
3a12e572 5671 test -n "$AWK" && break
5aa8ff62
UD
5672done
5673
c0016081
UD
5674# Extract the first word of "perl", so it can be a program name with args.
5675set dummy perl; ac_word=$2
322e23db
UD
5676{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5677$as_echo_n "checking for $ac_word... " >&6; }
3a12e572 5678if test "${ac_cv_path_PERL+set}" = set; then
322e23db 5679 $as_echo_n "(cached) " >&6
a2b08ee5 5680else
3a12e572
UD
5681 case $PERL in
5682 [\\/]* | ?:[\\/]*)
a2b08ee5
UD
5683 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5684 ;;
5685 *)
3a12e572
UD
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572 5693 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
322e23db 5694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5695 break 2
5696 fi
5697done
5698done
26f56c1c 5699IFS=$as_save_IFS
3a12e572 5700
c0016081 5701 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5
UD
5702 ;;
5703esac
5704fi
3a12e572 5705PERL=$ac_cv_path_PERL
a2b08ee5 5706if test -n "$PERL"; then
322e23db
UD
5707 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5708$as_echo "$PERL" >&6; }
a2b08ee5 5709else
322e23db
UD
5710 { $as_echo "$as_me:$LINENO: result: no" >&5
5711$as_echo "no" >&6; }
a2b08ee5
UD
5712fi
5713
26f56c1c 5714
2fd5d029
RM
5715if test "$PERL" != no &&
5716 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5717 PERL=no
fc304e02 5718fi
c0016081
UD
5719# Extract the first word of "install-info", so it can be a program name with args.
5720set dummy install-info; ac_word=$2
322e23db
UD
5721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
3a12e572 5723if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
322e23db 5724 $as_echo_n "(cached) " >&6
c0016081 5725else
3a12e572
UD
5726 case $INSTALL_INFO in
5727 [\\/]* | ?:[\\/]*)
c0016081
UD
5728 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5729 ;;
5730 *)
3a12e572 5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
5732as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5733for as_dir in $as_dummy
3a12e572
UD
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572 5739 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
322e23db 5740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5741 break 2
5742 fi
5743done
5744done
26f56c1c 5745IFS=$as_save_IFS
3a12e572 5746
c0016081
UD
5747 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5748 ;;
5749esac
5750fi
3a12e572 5751INSTALL_INFO=$ac_cv_path_INSTALL_INFO
c0016081 5752if test -n "$INSTALL_INFO"; then
322e23db
UD
5753 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5754$as_echo "$INSTALL_INFO" >&6; }
c0016081 5755else
322e23db
UD
5756 { $as_echo "$as_me:$LINENO: result: no" >&5
5757$as_echo "no" >&6; }
c0016081
UD
5758fi
5759
26f56c1c 5760
ae113383
UD
5761# Extract the first word of "bison", so it can be a program name with args.
5762set dummy bison; ac_word=$2
322e23db
UD
5763{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
3a12e572 5765if test "${ac_cv_path_BISON+set}" = set; then
322e23db 5766 $as_echo_n "(cached) " >&6
ae113383 5767else
3a12e572
UD
5768 case $BISON in
5769 [\\/]* | ?:[\\/]*)
ae113383
UD
5770 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5771 ;;
ae113383 5772 *)
3a12e572 5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
5774as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5775for as_dir in $as_dummy
3a12e572
UD
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572 5781 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
322e23db 5782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3a12e572
UD
5783 break 2
5784 fi
5785done
5786done
26f56c1c 5787IFS=$as_save_IFS
3a12e572 5788
ae113383
UD
5789 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5790 ;;
5791esac
5792fi
3a12e572 5793BISON=$ac_cv_path_BISON
ae113383 5794if test -n "$BISON"; then
322e23db
UD
5795 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5796$as_echo "$BISON" >&6; }
ae113383 5797else
322e23db
UD
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799$as_echo "no" >&6; }
ae113383
UD
5800fi
5801
5802
26f56c1c 5803
322e23db
UD
5804{ $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5805$as_echo_n "checking for signed size_t type... " >&6; }
3a12e572 5806if test "${libc_cv_signed_size_t+set}" = set; then
322e23db 5807 $as_echo_n "(cached) " >&6
cd6ede75
UD
5808else
5809 echo '#include <stddef.h>
5810FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5811if eval "$ac_cpp conftest.c 2>/dev/null" \
5812| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5813 libc_cv_signed_size_t=no
5814else
5815 libc_cv_signed_size_t=yes
5816fi
5817rm -f conftest*
5818fi
322e23db
UD
5819{ $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5820$as_echo "$libc_cv_signed_size_t" >&6; }
cd6ede75
UD
5821if test $libc_cv_signed_size_t = yes; then
5822 cat >> confdefs.h <<\EOF
5823#undef __SIZE_TYPE__
5824#define __SIZE_TYPE__ unsigned
5825EOF
5826fi
5827
322e23db
UD
5828{ $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5829$as_echo_n "checking for libc-friendly stddef.h... " >&6; }
3a12e572 5830if test "${libc_cv_friendly_stddef+set}" = set; then
322e23db 5831 $as_echo_n "(cached) " >&6
cd6ede75 5832else
f4b07664 5833 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
cd6ede75
UD
5839#define __need_size_t
5840#define __need_wchar_t
5841#include <stddef.h>
5842#define __need_NULL
5843#include <stddef.h>
3a12e572
UD
5844int
5845main ()
5846{
cd6ede75
UD
5847size_t size; wchar_t wchar;
5848#ifdef offsetof
5849#error stddef.h ignored __need_*
5850#endif
5851if (&size == NULL || &wchar == NULL) abort ();
3a12e572
UD
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext
26f56c1c
UD
5857if { (ac_try="$ac_compile"
5858case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
322e23db
UD
5862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5863$as_echo "$ac_try_echo") >&5
26f56c1c 5864 (eval "$ac_compile") 2>conftest.er1
3a12e572 5865 ac_status=$?
9382fcee
RM
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
322e23db 5869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
cd6ede75
UD
5874 libc_cv_friendly_stddef=yes
5875else
322e23db 5876 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
26f56c1c 5879 libc_cv_friendly_stddef=no
cd6ede75 5880fi
26f56c1c
UD
5881
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd6ede75 5883fi
322e23db
UD
5884{ $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5885$as_echo "$libc_cv_friendly_stddef" >&6; }
cd6ede75
UD
5886if test $libc_cv_friendly_stddef = yes; then
5887 config_vars="$config_vars
5888override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5889fi
5890
322e23db
UD
5891{ $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5892$as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
3a12e572 5893if test "${libc_cv_need_minus_P+set}" = set; then
322e23db 5894 $as_echo_n "(cached) " >&6
cd6ede75
UD
5895else
5896 cat > conftest.S <<EOF
5897#include "confdefs.h"
5898/* Nothing whatsoever. */
5899EOF
3217788f 5900if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
61cea1c3
RM
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
322e23db 5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 5905 (exit $ac_status); }; }; then
cd6ede75
UD
5906 libc_cv_need_minus_P=no
5907else
5908 libc_cv_need_minus_P=yes
5909fi
5910rm -f conftest*
5911fi
322e23db
UD
5912{ $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5913$as_echo "$libc_cv_need_minus_P" >&6; }
cd6ede75
UD
5914if test $libc_cv_need_minus_P = yes; then
5915 config_vars="$config_vars
5916asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5917fi
5918
322e23db
UD
5919{ $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5920$as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
3a12e572 5921if test "${libc_cv_dot_text+set}" = set; then
322e23db 5922 $as_echo_n "(cached) " >&6
2293395f
UD
5923else
5924 cat > conftest.s <<EOF
5925.text
5926EOF
5927libc_cv_dot_text=
3217788f 5928if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
322e23db 5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 5933 (exit $ac_status); }; }; then
2293395f
UD
5934 libc_cv_dot_text=.text
5935fi
5936rm -f conftest*
5937fi
5938
5939if test -z "$libc_cv_dot_text"; then
322e23db
UD
5940 { $as_echo "$as_me:$LINENO: result: no" >&5
5941$as_echo "no" >&6; }
2293395f 5942else
322e23db
UD
5943 { $as_echo "$as_me:$LINENO: result: yes" >&5
5944$as_echo "yes" >&6; }
2293395f
UD
5945fi
5946
322e23db
UD
5947{ $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5948$as_echo_n "checking for assembler global-symbol directive... " >&6; }
3a12e572 5949if test "${libc_cv_asm_global_directive+set}" = set; then
322e23db 5950 $as_echo_n "(cached) " >&6
cd6ede75
UD
5951else
5952 libc_cv_asm_global_directive=UNKNOWN
908c3d5b 5953for ac_globl in .globl .global .EXPORT; do
cd6ede75 5954 cat > conftest.s <<EOF
2293395f 5955 ${libc_cv_dot_text}
908c3d5b 5956 ${ac_globl} foo
cd6ede75
UD
5957foo:
5958EOF
3217788f 5959 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
322e23db 5963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 5964 (exit $ac_status); }; }; then
cd6ede75
UD
5965 libc_cv_asm_global_directive=${ac_globl}
5966 fi
5967 rm -f conftest*
5968 test $libc_cv_asm_global_directive != UNKNOWN && break
5969done
5970fi
322e23db
UD
5971{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5972$as_echo "$libc_cv_asm_global_directive" >&6; }
cd6ede75 5973if test $libc_cv_asm_global_directive = UNKNOWN; then
322e23db
UD
5974 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5975$as_echo "$as_me: error: cannot determine asm global directive" >&2;}
3a12e572 5976 { (exit 1); exit 1; }; }
cd6ede75 5977else
3a12e572 5978 cat >>confdefs.h <<_ACEOF
cd6ede75 5979#define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
3a12e572 5980_ACEOF
cd6ede75
UD
5981
5982fi
5983
322e23db
UD
5984{ $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5985$as_echo_n "checking for .set assembler directive... " >&6; }
3a12e572 5986if test "${libc_cv_asm_set_directive+set}" = set; then
322e23db 5987 $as_echo_n "(cached) " >&6
cd6ede75
UD
5988else
5989 cat > conftest.s <<EOF
2293395f 5990${libc_cv_dot_text}
cd6ede75
UD
5991foo:
5992.set glibc_conftest_frobozz,foo
5993$libc_cv_asm_global_directive glibc_conftest_frobozz
5994EOF
5995# The alpha-dec-osf1 assembler gives only a warning for `.set'
5996# (but it doesn't work), so we must do a linking check to be sure.
5997cat > conftest1.c <<\EOF
5998extern int glibc_conftest_frobozz;
640f0119 5999void _start() { glibc_conftest_frobozz = 1; }
cd6ede75
UD
6000EOF
6001if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
640f0119 6002 -nostartfiles -nostdlib \
cd6ede75
UD
6003 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6004 libc_cv_asm_set_directive=yes
6005else
6006 libc_cv_asm_set_directive=no
6007fi
6008rm -f conftest*
6009fi
322e23db
UD
6010{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
6011$as_echo "$libc_cv_asm_set_directive" >&6; }
cd6ede75 6012if test $libc_cv_asm_set_directive = yes; then
3a12e572 6013 cat >>confdefs.h <<\_ACEOF
cd6ede75 6014#define HAVE_ASM_SET_DIRECTIVE 1
3a12e572 6015_ACEOF
cd6ede75
UD
6016
6017fi
6018
322e23db
UD
6019{ $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
6020$as_echo_n "checking for assembler .type directive prefix... " >&6; }
3a12e572 6021if test "${libc_cv_asm_type_prefix+set}" = set; then
322e23db 6022 $as_echo_n "(cached) " >&6
b88ac073
RM
6023else
6024 libc_cv_asm_type_prefix=no
6025for ac_try_prefix in '@' '%' '#'; do
6026 cat > conftest.s <<EOF
6027 ${libc_cv_dot_text}
6028 ${libc_cv_asm_global_directive} foo
6029 .type foo, ${ac_try_prefix}object
6030 .size foo, 1
6031foo:
6032 .byte 1
6033EOF
3217788f 6034 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
322e23db 6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 6039 (exit $ac_status); }; }; then
b88ac073
RM
6040 libc_cv_asm_type_prefix=${ac_try_prefix}
6041 fi
6042 rm -f conftest*
6043 test "x$libc_cv_asm_type_prefix" != xno && break
6044done
6045fi
322e23db
UD
6046{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
6047$as_echo "$libc_cv_asm_type_prefix" >&6; }
b88ac073 6048if test "x$libc_cv_asm_type_prefix" != xno; then
3a12e572 6049 cat >>confdefs.h <<_ACEOF
b88ac073 6050#define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
3a12e572 6051_ACEOF
b88ac073
RM
6052
6053fi
6054
415ac3df
UD
6055{ $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
6056$as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
6057if test "${libc_cv_asm_unique_object+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059else
6060 cat > conftest.s <<EOF
6061${libc_cv_dot_text}
6062_sym:
6063.type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6064EOF
6065if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6066 libc_cv_asm_unique_object=yes
6067else
6068 libc_cv_asm_unique_object=no
6069fi
6070rm -f conftest*
6071fi
6072{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6073$as_echo "$libc_cv_asm_unique_object" >&6; }
6074if test $libc_cv_asm_unique_object = yes; then
6075 cat >>confdefs.h <<\_ACEOF
6076#define HAVE_ASM_UNIQUE_OBJECT 1
6077_ACEOF
6078
6079fi
6080
425ce2ed
UD
6081# For the multi-arch option we need support in the assembler.
6082if test "$multi_arch" = yes; then
6083 if test "x$libc_cv_asm_type_prefix" != xno; then
322e23db
UD
6084{ $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6085$as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
425ce2ed 6086if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
322e23db 6087 $as_echo_n "(cached) " >&6
425ce2ed
UD
6088else
6089 cat > conftest.s <<EOF
6090.type foo,%gnu_indirect_function
6091EOF
6092if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6093then
6094 libc_cv_asm_gnu_indirect_function=yes
6095else
6096 libc_cv_asm_gnu_indirect_function=no
6097fi
6098rm -f conftest*
6099fi
322e23db
UD
6100{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6101$as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
425ce2ed
UD
6102 else
6103 libc_cv_asm_gnu_indirect_function=no
6104 fi
6105 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
322e23db
UD
6106 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6107$as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
425ce2ed
UD
6108 { (exit 1); exit 1; }; }
6109 fi
6110fi
6111
322e23db
UD
6112{ $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6113$as_echo_n "checking for .symver assembler directive... " >&6; }
3a12e572 6114if test "${libc_cv_asm_symver_directive+set}" = set; then
322e23db 6115 $as_echo_n "(cached) " >&6
cd6ede75
UD
6116else
6117 cat > conftest.s <<EOF
2293395f 6118${libc_cv_dot_text}
cd6ede75
UD
6119_sym:
6120.symver _sym,sym@VERS
6121EOF
3217788f 6122if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
cd6ede75
UD
6123 libc_cv_asm_symver_directive=yes
6124else
6125 libc_cv_asm_symver_directive=no
6126fi
6127rm -f conftest*
6128fi
322e23db
UD
6129{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6130$as_echo "$libc_cv_asm_symver_directive" >&6; }
6131{ $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6132$as_echo_n "checking for ld --version-script... " >&6; }
3a12e572 6133if test "${libc_cv_ld_version_script_option+set}" = set; then
322e23db 6134 $as_echo_n "(cached) " >&6
cd6ede75
UD
6135else
6136 if test $libc_cv_asm_symver_directive = yes; then
6137 cat > conftest.s <<EOF
2293395f 6138${libc_cv_dot_text}
cd6ede75
UD
6139_sym:
6140.symver _sym,sym@VERS
6141EOF
6142 cat > conftest.map <<EOF
f43ce637 6143VERS_1 {
cd6ede75
UD
6144 global: sym;
6145};
f43ce637
UD
6146
6147VERS_2 {
6148 global: sym;
6149} VERS_1;
cd6ede75 6150EOF
3217788f
RM
6151 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6152 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6153 -o conftest.so conftest.o
6154 -nostartfiles -nostdlib
6155 -Wl,--version-script,conftest.map
3a12e572
UD
6156 1>&5'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
322e23db 6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6161 (exit $ac_status); }; };
cd6ede75
UD
6162 then
6163 libc_cv_ld_version_script_option=yes
6164 else
6165 libc_cv_ld_version_script_option=no
6166 fi
6167 else
6168 libc_cv_ld_version_script_option=no
6169 fi
6170else
6171 libc_cv_ld_version_script_option=no
6172fi
6173rm -f conftest*
6174fi
322e23db
UD
6175{ $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6176$as_echo "$libc_cv_ld_version_script_option" >&6; }
7499a22a
RM
6177if test $shared != no &&
6178 test $libc_cv_asm_symver_directive = yes &&
650425ce
UD
6179 test $libc_cv_ld_version_script_option = yes &&
6180 test $enable_versioning = yes; then
cd6ede75 6181 VERSIONING=yes
3a12e572 6182 cat >>confdefs.h <<\_ACEOF
cd6ede75 6183#define DO_VERSIONING 1
3a12e572 6184_ACEOF
cd6ede75
UD
6185
6186else
6187 VERSIONING=no
6188fi
6189
6190
22af13de 6191if test $elf = yes && test $shared != no && test $VERSIONING = no; then
f43ce637 6192 echo "\
f4017d20 6193*** WARNING: You should not compile GNU libc without versioning. Not using
f43ce637
UD
6194*** versioning will introduce incompatibilities so that old binaries
6195*** will not run anymore.
08a0d60a 6196*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
f43ce637 6197fi
cd6ede75 6198if test $elf = yes; then
322e23db
UD
6199 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6200$as_echo_n "checking for .previous assembler directive... " >&6; }
3a12e572 6201if test "${libc_cv_asm_previous_directive+set}" = set; then
322e23db 6202 $as_echo_n "(cached) " >&6
cd6ede75
UD
6203else
6204 cat > conftest.s <<EOF
6205.section foo_section
6206.previous
6207EOF
3217788f 6208 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
322e23db 6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6213 (exit $ac_status); }; }; then
cd6ede75
UD
6214 libc_cv_asm_previous_directive=yes
6215 else
6216 libc_cv_asm_previous_directive=no
6217 fi
6218 rm -f conftest*
6219fi
322e23db
UD
6220{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6221$as_echo "$libc_cv_asm_previous_directive" >&6; }
cd6ede75 6222 if test $libc_cv_asm_previous_directive = yes; then
3a12e572 6223 cat >>confdefs.h <<\_ACEOF
cd6ede75 6224#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
3a12e572 6225_ACEOF
cd6ede75
UD
6226
6227 else
322e23db
UD
6228 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6229$as_echo_n "checking for .popsection assembler directive... " >&6; }
3a12e572 6230if test "${libc_cv_asm_popsection_directive+set}" = set; then
322e23db 6231 $as_echo_n "(cached) " >&6
cd6ede75
UD
6232else
6233 cat > conftest.s <<EOF
6234.pushsection foo_section
6235.popsection
6236EOF
3217788f 6237 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
322e23db 6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6242 (exit $ac_status); }; }; then
cd6ede75
UD
6243 libc_cv_asm_popsection_directive=yes
6244 else
6245 libc_cv_asm_popsection_directive=no
6246 fi
6247 rm -f conftest*
6248fi
322e23db
UD
6249{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6250$as_echo "$libc_cv_asm_popsection_directive" >&6; }
cd6ede75 6251 if test $libc_cv_asm_popsection_directive = yes; then
3a12e572 6252 cat >>confdefs.h <<\_ACEOF
cd6ede75 6253#define HAVE_ASM_POPSECTION_DIRECTIVE 1
3a12e572 6254_ACEOF
cd6ede75
UD
6255
6256 fi
6257 fi
322e23db
UD
6258 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6259$as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
3a12e572 6260if test "${libc_cv_asm_protected_directive+set}" = set; then
322e23db 6261 $as_echo_n "(cached) " >&6
2d499f55
UD
6262else
6263 cat > conftest.s <<EOF
6264.protected foo
6265foo:
6266.hidden bar
6267bar:
6268EOF
3217788f 6269 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
322e23db 6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6274 (exit $ac_status); }; }; then
2d499f55
UD
6275 libc_cv_asm_protected_directive=yes
6276 else
322e23db
UD
6277 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6278$as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
11bf311e 6279 { (exit 1); exit 1; }; }
2d499f55
UD
6280 fi
6281 rm -f conftest*
6282fi
322e23db
UD
6283{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6284$as_echo "$libc_cv_asm_protected_directive" >&6; }
2d499f55 6285
0d01dace 6286 if test $libc_cv_asm_protected_directive = yes; then
322e23db
UD
6287 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6288$as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
3a12e572 6289if test "${libc_cv_visibility_attribute+set}" = set; then
322e23db 6290 $as_echo_n "(cached) " >&6
0d01dace
UD
6291else
6292 cat > conftest.c <<EOF
6293 int foo __attribute__ ((visibility ("hidden"))) = 1;
6294 int bar __attribute__ ((visibility ("protected"))) = 1;
6295EOF
6296 libc_cv_visibility_attribute=no
61cea1c3
RM
6297 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
322e23db 6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 6302 (exit $ac_status); }; }; then
0d01dace
UD
6303 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6304 if grep '\.protected.*bar' conftest.s >/dev/null; then
6305 libc_cv_visibility_attribute=yes
6306 fi
6307 fi
6308 fi
6309 rm -f conftest.cs
0d01dace 6310
3a12e572 6311fi
322e23db
UD
6312{ $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6313$as_echo "$libc_cv_visibility_attribute" >&6; }
11bf311e 6314 if test $libc_cv_visibility_attribute != yes; then
322e23db
UD
6315 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6316$as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
11bf311e 6317 { (exit 1); exit 1; }; }
0d01dace
UD
6318 fi
6319 fi
6320
37ba7d66 6321 if test $libc_cv_visibility_attribute = yes; then
322e23db
UD
6322 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6323$as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
3a12e572 6324if test "${libc_cv_broken_visibility_attribute+set}" = set; then
322e23db 6325 $as_echo_n "(cached) " >&6
37ba7d66
UD
6326else
6327 cat > conftest.c <<EOF
6328 int foo (int x);
6329 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6330 int bar (int x) { return x; }
6331EOF
6332 libc_cv_broken_visibility_attribute=yes
61cea1c3
RM
6333 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
322e23db 6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 6338 (exit $ac_status); }; }; then
37ba7d66
UD
6339 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6340 libc_cv_broken_visibility_attribute=no
6341 fi
6342 fi
6343 rm -f conftest.c conftest.s
37ba7d66 6344
3a12e572 6345fi
322e23db
UD
6346{ $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6347$as_echo "$libc_cv_broken_visibility_attribute" >&6; }
37ba7d66 6348 if test $libc_cv_broken_visibility_attribute = yes; then
322e23db
UD
6349 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6350$as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
11bf311e 6351 { (exit 1); exit 1; }; }
37ba7d66
UD
6352 fi
6353 fi
6354
322e23db
UD
6355 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6356$as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
3a12e572 6357if test "${libc_cv_broken_alias_attribute+set}" = set; then
322e23db 6358 $as_echo_n "(cached) " >&6
37ba7d66
UD
6359else
6360 cat > conftest.c <<EOF
6361 extern int foo (int x) __asm ("xyzzy");
6362 int bar (int x) { return x; }
48b8e846
UD
6363 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6364 extern int dfoo;
6365 extern __typeof (dfoo) dfoo __asm ("abccb");
6366 int dfoo = 1;
37ba7d66
UD
6367EOF
6368 libc_cv_broken_alias_attribute=yes
61cea1c3
RM
6369 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
322e23db 6373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 6374 (exit $ac_status); }; }; then
48b8e846
UD
6375 if grep 'xyzzy' conftest.s >/dev/null &&
6376 grep 'abccb' conftest.s >/dev/null; then
37ba7d66
UD
6377 libc_cv_broken_alias_attribute=no
6378 fi
6379 fi
6380 rm -f conftest.c conftest.s
37ba7d66 6381
3a12e572 6382fi
322e23db
UD
6383{ $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6384$as_echo "$libc_cv_broken_alias_attribute" >&6; }
37ba7d66 6385 if test $libc_cv_broken_alias_attribute = yes; then
322e23db
UD
6386 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6387$as_echo "$as_me: error: working alias attribute support required" >&2;}
11bf311e 6388 { (exit 1); exit 1; }; }
37ba7d66
UD
6389 fi
6390
8e635611 6391 if test $libc_cv_visibility_attribute = yes; then
322e23db
UD
6392 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6393$as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
3a12e572 6394if test "${libc_cv_have_sdata_section+set}" = set; then
322e23db 6395 $as_echo_n "(cached) " >&6
0d01dace
UD
6396else
6397 echo "int i;" > conftest.c
6398 libc_cv_have_sdata_section=no
dbc92dc6 6399 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
0d01dace
UD
6400 | grep '\.sdata' >/dev/null; then
6401 libc_cv_have_sdata_section=yes
6402 fi
6403 rm -f conftest.c conftest.so
0d01dace 6404
3a12e572 6405fi
322e23db
UD
6406{ $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6407$as_echo "$libc_cv_have_sdata_section" >&6; }
0d01dace 6408 if test $libc_cv_have_sdata_section = yes; then
3a12e572 6409 cat >>confdefs.h <<\_ACEOF
0d01dace 6410#define HAVE_SDATA_SECTION 1
3a12e572 6411_ACEOF
0d01dace
UD
6412
6413 fi
6414 fi
6415
322e23db
UD
6416 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6417$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
ce33ee7c 6418if test "${libc_cv_initfini_array+set}" = set; then
322e23db 6419 $as_echo_n "(cached) " >&6
2c617417
UD
6420else
6421 cat > conftest.c <<EOF
6422int _start (void) { return 0; }
6423int __start (void) { return 0; }
6424int foo (void) { return 1; }
6425int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6426EOF
3217788f 6427 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
3a12e572
UD
6428 -static -nostartfiles -nostdlib 1>&5'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
322e23db 6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6433 (exit $ac_status); }; }
2c617417
UD
6434 then
6435 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
ce33ee7c 6436 libc_cv_initfini_array=yes
2c617417 6437 else
ce33ee7c 6438 libc_cv_initfini_array=no
2c617417
UD
6439 fi
6440 else
ce33ee7c 6441 libc_cv_initfini_array=no
2c617417
UD
6442 fi
6443 rm -f conftest*
6444fi
322e23db
UD
6445{ $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6446$as_echo "$libc_cv_initfini_array" >&6; }
ce33ee7c 6447 if test $libc_cv_initfini_array != yes; then
322e23db
UD
6448 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6449$as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
ce33ee7c 6450 { (exit 1); exit 1; }; }
2c617417
UD
6451 fi
6452
322e23db
UD
6453 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6454$as_echo_n "checking for libunwind-support in compiler... " >&6; }
c776b3d7 6455if test "${libc_cv_cc_with_libunwind+set}" = set; then
322e23db 6456 $as_echo_n "(cached) " >&6
c776b3d7 6457else
c776b3d7 6458
cbdb12de
UD
6459 cat > conftest.c <<EOF
6460int main (void) { return 0; }
6461EOF
6462 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6463 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6464 libc_cv_cc_with_libunwind=yes
6465 else
6466 libc_cv_cc_with_libunwind=no
6467 fi
6468 rm -f conftest*
c776b3d7 6469fi
322e23db
UD
6470{ $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6471$as_echo "$libc_cv_cc_with_libunwind" >&6; }
c776b3d7
UD
6472
6473 if test $libc_cv_cc_with_libunwind = yes; then
6474 cat >>confdefs.h <<\_ACEOF
6475#define HAVE_CC_WITH_LIBUNWIND 1
6476_ACEOF
6477
6478 fi
6479
322e23db
UD
6480 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6481$as_echo_n "checking for -z nodelete option... " >&6; }
3a12e572 6482if test "${libc_cv_z_nodelete+set}" = set; then
322e23db 6483 $as_echo_n "(cached) " >&6
2f54c82d
UD
6484else
6485 cat > conftest.c <<EOF
6486int _start (void) { return 42; }
6487EOF
3217788f 6488 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6489 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6490 -nostartfiles -nostdlib
3a12e572
UD
6491 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
322e23db 6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6496 (exit $ac_status); }; }
2f54c82d
UD
6497 then
6498 libc_cv_z_nodelete=yes
6499 else
322e23db
UD
6500 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6501$as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
11bf311e 6502 { (exit 1); exit 1; }; }
2f54c82d
UD
6503 fi
6504 rm -f conftest*
6505fi
322e23db
UD
6506{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6507$as_echo "$libc_cv_z_nodelete" >&6; }
2f54c82d 6508
322e23db
UD
6509 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6510$as_echo_n "checking for -z nodlopen option... " >&6; }
3a12e572 6511if test "${libc_cv_z_nodlopen+set}" = set; then
322e23db 6512 $as_echo_n "(cached) " >&6
2f54c82d
UD
6513else
6514 cat > conftest.c <<EOF
6515int _start (void) { return 42; }
6516EOF
3217788f 6517 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6518 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6519 -nostartfiles -nostdlib
3a12e572
UD
6520 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
322e23db 6524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6525 (exit $ac_status); }; }
2f54c82d
UD
6526 then
6527 libc_cv_z_nodlopen=yes
6528 else
322e23db
UD
6529 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6530$as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
11bf311e 6531 { (exit 1); exit 1; }; }
2f54c82d
UD
6532 fi
6533 rm -f conftest*
6534fi
322e23db
UD
6535{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6536$as_echo "$libc_cv_z_nodlopen" >&6; }
2f54c82d 6537
322e23db
UD
6538 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6539$as_echo_n "checking for -z initfirst option... " >&6; }
3a12e572 6540if test "${libc_cv_z_initfirst+set}" = set; then
322e23db 6541 $as_echo_n "(cached) " >&6
5d916713
UD
6542else
6543 cat > conftest.c <<EOF
6544int _start (void) { return 42; }
6545EOF
3217788f 6546 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6547 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6548 -nostartfiles -nostdlib
3a12e572
UD
6549 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
322e23db 6553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6554 (exit $ac_status); }; }
5d916713
UD
6555 then
6556 libc_cv_z_initfirst=yes
6557 else
322e23db
UD
6558 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6559$as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
11bf311e 6560 { (exit 1); exit 1; }; }
5d916713
UD
6561 fi
6562 rm -f conftest*
6563fi
322e23db
UD
6564{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6565$as_echo "$libc_cv_z_initfirst" >&6; }
5d916713 6566
11bf311e
UD
6567 case "$base_machine" in
6568 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
322e23db
UD
6569 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6570$as_echo_n "checking for -z relro option... " >&6; }
ed20b3d9 6571if test "${libc_cv_z_relro+set}" = set; then
322e23db 6572 $as_echo_n "(cached) " >&6
ed20b3d9 6573else
54beacab
UD
6574 libc_cv_z_relro=no
6575 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
ed20b3d9
UD
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
322e23db 6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ed20b3d9
UD
6580 (exit $ac_status); }; }
6581 then
54beacab
UD
6582 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
322e23db 6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54beacab
UD
6587 (exit $ac_status); }; }
6588 then
6589 libc_cv_z_relro=yes
6590 fi
ed20b3d9
UD
6591 fi
6592fi
322e23db
UD
6593{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6594$as_echo "$libc_cv_z_relro" >&6; }
11bf311e 6595 if test "$libc_cv_z_relro" = no; then
322e23db
UD
6596 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6597$as_echo "$as_me: error: linker with -z relro support required" >&2;}
11bf311e
UD
6598 { (exit 1); exit 1; }; }
6599 fi
6600 ;;
6601 *) ;;
6602 esac
ed20b3d9 6603
322e23db
UD
6604 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6605$as_echo_n "checking for -Bgroup option... " >&6; }
3a12e572 6606if test "${libc_cv_Bgroup+set}" = set; then
322e23db 6607 $as_echo_n "(cached) " >&6
639c3248
UD
6608else
6609 cat > conftest.c <<EOF
6610int _start (void) { return 42; }
6611EOF
3217788f 6612 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6613 -fPIC -shared -o conftest.so conftest.c
3217788f 6614 -Wl,-Bgroup -nostdlib 1>&5'
3a12e572
UD
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
322e23db 6618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6619 (exit $ac_status); }; }
639c3248
UD
6620 then
6621 libc_cv_Bgroup=yes
6622 else
6623 libc_cv_Bgroup=no
6624 fi
6625 rm -f conftest*
6626fi
322e23db
UD
6627{ $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6628$as_echo "$libc_cv_Bgroup" >&6; }
639c3248 6629
a711b01d 6630
322e23db
UD
6631 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6632$as_echo_n "checking for libgcc_s suffix... " >&6; }
66b3d198 6633if test "${libc_cv_libgcc_s_suffix+set}" = set; then
322e23db 6634 $as_echo_n "(cached) " >&6
66b3d198
UD
6635else
6636 cat > conftest.c <<EOF
6637int main (void) { return 0; }
6638EOF
6639 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
dbc92dc6 6640 -fPIC -shared -shared-libgcc -o conftest.so \
66b3d198
UD
6641 conftest.c -v 2>&1 >/dev/null \
6642 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6643 rm -f conftest*
6644fi
322e23db
UD
6645{ $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6646$as_echo "$libc_cv_libgcc_s_suffix" >&6; }
66b3d198
UD
6647
6648
322e23db
UD
6649 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6650$as_echo_n "checking for --as-needed option... " >&6; }
78ec7d8c 6651if test "${libc_cv_as_needed+set}" = set; then
322e23db 6652 $as_echo_n "(cached) " >&6
78ec7d8c
UD
6653else
6654 cat > conftest.c <<EOF
6655int main (void) { return 0; }
6656EOF
6657 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6658 -fPIC -shared -o conftest.so conftest.c
66b3d198
UD
6659 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6660 -nostdlib 1>&5'
78ec7d8c
UD
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
322e23db 6664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78ec7d8c
UD
6665 (exit $ac_status); }; }
6666 then
6667 libc_cv_as_needed=yes
6668 else
6669 libc_cv_as_needed=no
6670 fi
6671 rm -f conftest*
6672fi
322e23db
UD
6673{ $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6674$as_echo "$libc_cv_as_needed" >&6; }
78ec7d8c
UD
6675
6676
35915ec8 6677 ASFLAGS_config=
322e23db
UD
6678 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6679$as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
35915ec8 6680if test "${libc_cv_as_noexecstack+set}" = set; then
322e23db 6681 $as_echo_n "(cached) " >&6
35915ec8
UD
6682else
6683 cat > conftest.c <<EOF
6684void foo (void) { }
6685EOF
6686 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6687 -S -o conftest.s conftest.c 1>&5'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
322e23db 6691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915ec8
UD
6692 (exit $ac_status); }; } \
6693 && grep -q .note.GNU-stack conftest.s \
215a8745 6694 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
35915ec8
UD
6695 -c -o conftest.o conftest.s 1>&5'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
322e23db 6699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915ec8
UD
6700 (exit $ac_status); }; }
6701 then
6702 libc_cv_as_noexecstack=yes
6703 else
6704 libc_cv_as_noexecstack=no
6705 fi
6706 rm -f conftest*
6707fi
322e23db
UD
6708{ $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6709$as_echo "$libc_cv_as_noexecstack" >&6; }
35915ec8
UD
6710 if test $libc_cv_as_noexecstack = yes; then
6711 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6712 fi
6713
2abf9ff1 6714
322e23db
UD
6715 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6716$as_echo_n "checking for -z combreloc... " >&6; }
3a12e572 6717if test "${libc_cv_z_combreloc+set}" = set; then
322e23db 6718 $as_echo_n "(cached) " >&6
a711b01d
UD
6719else
6720 cat > conftest.c <<EOF
d555194c
UD
6721extern int bar (int);
6722extern int mumble;
6723int foo (void) { return bar (mumble); }
a711b01d 6724EOF
3217788f 6725 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6726 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6727 -nostdlib -nostartfiles
3a12e572
UD
6728 -Wl,-z,combreloc 1>&5'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
322e23db 6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 6733 (exit $ac_status); }; }
a711b01d 6734 then
fdde8349
UD
6735 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6736 libc_cv_z_combreloc=yes
6737 else
6738 libc_cv_z_combreloc=no
a711b01d 6739 fi
fdde8349
UD
6740 else
6741 libc_cv_z_combreloc=no
a711b01d
UD
6742 fi
6743 rm -f conftest*
6744fi
322e23db
UD
6745{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6746$as_echo "$libc_cv_z_combreloc" >&6; }
fdde8349 6747 if test "$libc_cv_z_combreloc" = yes; then
3a12e572 6748 cat >>confdefs.h <<\_ACEOF
fdde8349 6749#define HAVE_Z_COMBRELOC 1
3a12e572 6750_ACEOF
fdde8349
UD
6751
6752 fi
2abf9ff1
RM
6753
6754
322e23db
UD
6755 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6756$as_echo_n "checking for -z execstack... " >&6; }
2abf9ff1 6757if test "${libc_cv_z_execstack+set}" = set; then
322e23db 6758 $as_echo_n "(cached) " >&6
2abf9ff1
RM
6759else
6760 cat > conftest.c <<EOF
6761int _start (void) { return 42; }
6762EOF
6763 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6764 -fPIC -shared -o conftest.so conftest.c
2abf9ff1
RM
6765 -Wl,-z,execstack -nostdlib
6766 1>&5'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
322e23db 6770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2abf9ff1
RM
6771 (exit $ac_status); }; }
6772 then
6773 libc_cv_z_execstack=yes
6774 else
6775 libc_cv_z_execstack=no
6776 fi
6777 rm -f conftest*
cd6ede75 6778fi
322e23db
UD
6779{ $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6780$as_echo "$libc_cv_z_execstack" >&6; }
cd6ede75 6781
0f124303 6782
322e23db
UD
6783 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6784$as_echo_n "checking for -fpie... " >&6; }
0f124303 6785if test "${libc_cv_fpie+set}" = set; then
322e23db 6786 $as_echo_n "(cached) " >&6
0f124303
UD
6787else
6788 cat > conftest.c <<EOF
6789int foo;
49803108 6790main () { return 0;}
0f124303
UD
6791EOF
6792 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6793 -o conftest conftest.c 1>&5'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
322e23db 6797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0f124303
UD
6798 (exit $ac_status); }; }
6799 then
6800 libc_cv_fpie=yes
6801 else
6802 libc_cv_fpie=no
6803 fi
6804 rm -f conftest*
6805fi
322e23db
UD
6806{ $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6807$as_echo "$libc_cv_fpie" >&6; }
0f124303
UD
6808
6809
871b9158 6810
322e23db
UD
6811 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6812$as_echo_n "checking for --hash-style option... " >&6; }
871b9158 6813if test "${libc_cv_hashstyle+set}" = set; then
322e23db 6814 $as_echo_n "(cached) " >&6
871b9158
UD
6815else
6816 cat > conftest.c <<EOF
6817int _start (void) { return 42; }
6818EOF
6819 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6820 -fPIC -shared -o conftest.so conftest.c
6821 -Wl,--hash-style=both -nostdlib 1>&5'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
322e23db 6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
871b9158
UD
6826 (exit $ac_status); }; }
6827 then
6828 libc_cv_hashstyle=yes
6829 else
6830 libc_cv_hashstyle=no
6831 fi
6832 rm -f conftest*
6833fi
322e23db
UD
6834{ $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6835$as_echo "$libc_cv_hashstyle" >&6; }
871b9158 6836
2abf9ff1 6837fi
f13df7c7 6838
322e23db
UD
6839{ $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6840$as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
18e2ac6d 6841if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
322e23db 6842 $as_echo_n "(cached) " >&6
49803108
AJ
6843else
6844 cat > conftest.c <<EOF
6845int foo;
6846EOF
22dca1ea 6847if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
49803108
AJ
6848 conftest.c 1>&5'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
322e23db 6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49803108
AJ
6853 (exit $ac_status); }; }
6854then
18e2ac6d 6855 libc_cv_fno_toplevel_reorder=yes
49803108 6856else
18e2ac6d 6857 libc_cv_fno_toplevel_reorder=no
49803108
AJ
6858fi
6859rm -f conftest*
6860fi
322e23db
UD
6861{ $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6862$as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
18e2ac6d 6863if test $libc_cv_fno_toplevel_reorder = yes; then
22dca1ea 6864 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
18e2ac6d 6865else
49803108
AJ
6866 fno_unit_at_a_time=-fno-unit-at-a-time
6867fi
6868
6869
322e23db
UD
6870{ $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6871$as_echo_n "checking for -fstack-protector... " >&6; }
10ffcd52 6872if test "${libc_cv_ssp+set}" = set; then
322e23db 6873 $as_echo_n "(cached) " >&6
10ffcd52
UD
6874else
6875 cat > conftest.c <<EOF
6876int foo;
6877main () { return 0;}
6878EOF
a40fbc8d 6879if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
10ffcd52
UD
6880 -o conftest conftest.c 1>&5'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
322e23db 6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10ffcd52
UD
6885 (exit $ac_status); }; }
6886then
6887 libc_cv_ssp=yes
6888else
6889 libc_cv_ssp=no
6890fi
6891rm -f conftest*
6892fi
322e23db
UD
6893{ $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6894$as_echo "$libc_cv_ssp" >&6; }
10ffcd52
UD
6895
6896
322e23db
UD
6897{ $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6898$as_echo_n "checking for -fgnu89-inline... " >&6; }
965cba04 6899if test "${libc_cv_gnu89_inline+set}" = set; then
322e23db 6900 $as_echo_n "(cached) " >&6
965cba04
UD
6901else
6902 cat > conftest.c <<EOF
6903int foo;
6904#ifdef __GNUC_GNU_INLINE__
6905main () { return 0;}
6906#else
6907#error
6908#endif
6909EOF
371f84a4
JJ
6910if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6911 -o conftest.s conftest.c 1>&5'
965cba04
UD
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
322e23db 6915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
965cba04
UD
6916 (exit $ac_status); }; }
6917then
6918 libc_cv_gnu89_inline=yes
6919else
6920 libc_cv_gnu89_inline=no
6921fi
6922rm -f conftest*
6923fi
322e23db
UD
6924{ $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6925$as_echo "$libc_cv_gnu89_inline" >&6; }
965cba04
UD
6926if test $libc_cv_gnu89_inline = yes; then
6927 libc_cv_gnu89_inline=-fgnu89-inline
6928else
6929 libc_cv_gnu89_inline=
6930fi
6931
6932
cd6ede75 6933if test $elf != yes; then
322e23db
UD
6934 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6935$as_echo_n "checking for .init and .fini sections... " >&6; }
3a12e572 6936if test "${libc_cv_have_initfini+set}" = set; then
322e23db 6937 $as_echo_n "(cached) " >&6
cd6ede75 6938else
3a12e572 6939 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
cd6ede75 6945
3a12e572
UD
6946int
6947main ()
6948{
cd6ede75
UD
6949asm (".section .init");
6950 asm (".section .fini");
2293395f 6951 asm ("${libc_cv_dot_text}");
3a12e572
UD
6952 ;
6953 return 0;
6954}
6955_ACEOF
6956rm -f conftest.$ac_objext
26f56c1c
UD
6957if { (ac_try="$ac_compile"
6958case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961esac
322e23db
UD
6962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6963$as_echo "$ac_try_echo") >&5
26f56c1c 6964 (eval "$ac_compile") 2>conftest.er1
3a12e572 6965 ac_status=$?
9382fcee
RM
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
322e23db 6969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
cd6ede75
UD
6974 libc_cv_have_initfini=yes
6975else
322e23db 6976 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
26f56c1c 6979 libc_cv_have_initfini=no
cd6ede75 6980fi
26f56c1c
UD
6981
6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd6ede75 6983fi
322e23db
UD
6984{ $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6985$as_echo "$libc_cv_have_initfini" >&6; }
cd6ede75 6986 if test $libc_cv_have_initfini = yes; then
3a12e572 6987 cat >>confdefs.h <<\_ACEOF
cd6ede75 6988#define HAVE_INITFINI 1
3a12e572 6989_ACEOF
cd6ede75
UD
6990
6991 fi
6992fi
6993
8e635611 6994if test $elf = yes; then
322e23db
UD
6995 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6996$as_echo_n "checking whether cc puts quotes around section names... " >&6; }
3a12e572 6997if test "${libc_cv_have_section_quotes+set}" = set; then
322e23db 6998 $as_echo_n "(cached) " >&6
e26dd47f
UD
6999else
7000 cat > conftest.c <<EOF
7001 static const int foo
7002 __attribute__ ((section ("bar"))) = 1;
7003EOF
7004 if ${CC-cc} -S conftest.c -o conftest.s; then
7005 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7006 libc_cv_have_section_quotes=yes
7007 else
7008 libc_cv_have_section_quotes=no
7009 fi
7010 else
7011 libc_cv_have_section_quotes=unknown
7012 fi
7013 rm -f conftest.cs
e26dd47f 7014
3a12e572 7015fi
322e23db
UD
7016{ $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
7017$as_echo "$libc_cv_have_section_quotes" >&6; }
e26dd47f 7018 if test $libc_cv_have_section_quotes = yes; then
3a12e572 7019 cat >>confdefs.h <<\_ACEOF
e26dd47f 7020#define HAVE_SECTION_QUOTES 1
3a12e572 7021_ACEOF
e26dd47f
UD
7022
7023 fi
7024fi
7025
9a0a462c
UD
7026
7027
cd6ede75
UD
7028if test $elf = yes; then
7029 libc_cv_asm_underscores=no
7030else
9a0a462c 7031 if test $ac_cv_prog_cc_works = yes; then
322e23db
UD
7032 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7033$as_echo_n "checking for _ prefix on C symbol names... " >&6; }
3a12e572 7034if test "${libc_cv_asm_underscores+set}" = set; then
322e23db 7035 $as_echo_n "(cached) " >&6
cd6ede75 7036else
3a12e572 7037 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
cd6ede75 7043asm ("_glibc_foobar:");
3a12e572
UD
7044int
7045main ()
7046{
cd6ede75 7047glibc_foobar ();
3a12e572
UD
7048 ;
7049 return 0;
7050}
7051_ACEOF
7052rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7053if { (ac_try="$ac_link"
7054case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057esac
322e23db
UD
7058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059$as_echo "$ac_try_echo") >&5
26f56c1c 7060 (eval "$ac_link") 2>conftest.er1
3a12e572 7061 ac_status=$?
9382fcee
RM
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
322e23db 7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
322e23db
UD
7069 } && test -s conftest$ac_exeext && {
7070 test "$cross_compiling" = yes ||
7071 $as_test_x conftest$ac_exeext
7072 }; then
cd6ede75
UD
7073 libc_cv_asm_underscores=yes
7074else
322e23db 7075 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
26f56c1c 7078 libc_cv_asm_underscores=no
cd6ede75 7079fi
26f56c1c 7080
322e23db 7081rm -rf conftest.dSYM
26f56c1c 7082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382fcee 7083 conftest$ac_exeext conftest.$ac_ext
cd6ede75 7084fi
322e23db
UD
7085{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7086$as_echo "$libc_cv_asm_underscores" >&6; }
9a0a462c 7087 else
322e23db
UD
7088 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7089$as_echo_n "checking for _ prefix on C symbol names... " >&6; }
3a12e572 7090if test "${libc_cv_asm_underscores+set}" = set; then
322e23db 7091 $as_echo_n "(cached) " >&6
9a0a462c
UD
7092else
7093 cat > conftest.$ac_ext <<EOF
85dd1003 7094#line $LINENO "configure"
9a0a462c
UD
7095#include "confdefs.h"
7096void underscore_test(void) {
7097return; }
7098EOF
3a12e572
UD
7099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
322e23db 7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7103 (exit $ac_status); }; then
9a0a462c
UD
7104 if grep _underscore_test conftest* >/dev/null; then
7105 rm -f conftest*
7106 libc_cv_asm_underscores=yes
7107 else
7108 rm -f conftest*
7109 libc_cv_asm_underscores=no
7110 fi
7111else
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 rm -f conftest*
7115 libc_cv_asm_underscores=no
7116fi
7117rm -f conftest*
7118fi
322e23db
UD
7119{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7120$as_echo "$libc_cv_asm_underscores" >&6; }
9a0a462c 7121 fi
cd6ede75
UD
7122fi
7123if test $libc_cv_asm_underscores = no; then
3a12e572 7124 cat >>confdefs.h <<\_ACEOF
cd6ede75 7125#define NO_UNDERSCORES 1
3a12e572 7126_ACEOF
cd6ede75
UD
7127
7128fi
7129
7130if test $elf = yes; then
7131 libc_cv_weak_symbols=yes
9a97d1f7
UD
7132fi
7133
322e23db
UD
7134{ $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7135$as_echo_n "checking for assembler .weak directive... " >&6; }
3a12e572 7136if test "${libc_cv_asm_weak_directive+set}" = set; then
322e23db 7137 $as_echo_n "(cached) " >&6
cd6ede75
UD
7138else
7139 cat > conftest.s <<EOF
2293395f 7140${libc_cv_dot_text}
cd6ede75
UD
7141${libc_cv_asm_global_directive} foo
7142foo:
7143.weak foo
7144.weak bar; bar = foo
7145EOF
3217788f 7146if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
322e23db 7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 7151 (exit $ac_status); }; }; then
9a97d1f7
UD
7152 libc_cv_asm_weak_directive=yes
7153else
7154 libc_cv_asm_weak_directive=no
7155fi
7156rm -f conftest*
cd6ede75 7157fi
322e23db
UD
7158{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7159$as_echo "$libc_cv_asm_weak_directive" >&6; }
cd6ede75
UD
7160
7161if test $libc_cv_asm_weak_directive = no; then
322e23db
UD
7162 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7163$as_echo_n "checking for assembler .weakext directive... " >&6; }
3a12e572 7164if test "${libc_cv_asm_weakext_directive+set}" = set; then
322e23db 7165 $as_echo_n "(cached) " >&6
cd6ede75
UD
7166else
7167 cat > conftest.s <<EOF
2293395f 7168${libc_cv_dot_text}
cd6ede75
UD
7169${libc_cv_asm_global_directive} foo
7170foo:
9a97d1f7
UD
7171.weakext bar foo
7172.weakext baz
7173${libc_cv_asm_global_directive} baz
7174baz:
cd6ede75 7175EOF
3217788f 7176 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
322e23db 7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61cea1c3 7181 (exit $ac_status); }; }; then
cd6ede75
UD
7182 libc_cv_asm_weakext_directive=yes
7183 else
7184 libc_cv_asm_weakext_directive=no
7185 fi
7186 rm -f conftest*
7187fi
322e23db
UD
7188{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7189$as_echo "$libc_cv_asm_weakext_directive" >&6; }
cd6ede75 7190
9a97d1f7 7191fi # no .weak
cd6ede75
UD
7192
7193if test $libc_cv_asm_weak_directive = yes; then
3a12e572 7194 cat >>confdefs.h <<\_ACEOF
cd6ede75 7195#define HAVE_ASM_WEAK_DIRECTIVE 1
3a12e572 7196_ACEOF
cd6ede75
UD
7197
7198elif test $libc_cv_asm_weakext_directive = yes; then
3a12e572 7199 cat >>confdefs.h <<\_ACEOF
cd6ede75 7200#define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3a12e572 7201_ACEOF
cd6ede75
UD
7202
7203fi
7204
322e23db
UD
7205{ $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7206$as_echo_n "checking whether CFI directives are supported... " >&6; }
50189569 7207if test "${libc_cv_asm_cfi_directives+set}" = set; then
322e23db 7208 $as_echo_n "(cached) " >&6
50189569 7209else
ced368f7
UD
7210 case $machine in
7211 sparc/sparc64*) cfi_offset=2047;;
7212 *) cfi_offset=0;;
7213esac
7214cat > conftest.s <<EOF
50189569 7215 .text
d0868826 7216 .type func,%function
50189569
AJ
7217func:
7218 .cfi_startproc
f212e8dc 7219 .cfi_remember_state
ced368f7 7220 .cfi_rel_offset 1, $cfi_offset
50189569
AJ
7221 .cfi_endproc
7222EOF
7223if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
322e23db 7227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50189569
AJ
7228 (exit $ac_status); }; }; then
7229 libc_cv_asm_cfi_directives=yes
7230else
7231 libc_cv_asm_cfi_directives=no
7232fi
7233rm -f conftest*
7234fi
322e23db
UD
7235{ $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7236$as_echo "$libc_cv_asm_cfi_directives" >&6; }
50189569
AJ
7237if test $libc_cv_asm_cfi_directives = yes; then
7238 cat >>confdefs.h <<\_ACEOF
7239#define HAVE_ASM_CFI_DIRECTIVES 1
7240_ACEOF
7241
7242fi
7243
322e23db
UD
7244{ $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7245$as_echo_n "checking for ld --no-whole-archive... " >&6; }
3a12e572 7246if test "${libc_cv_ld_no_whole_archive+set}" = set; then
322e23db 7247 $as_echo_n "(cached) " >&6
cd6ede75
UD
7248else
7249 cat > conftest.c <<\EOF
7250_start () {}
7251int __eh_pc;
7252__throw () {}
7253EOF
3217788f 7254if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
cd6ede75 7255 -nostdlib -nostartfiles -Wl,--no-whole-archive
3a12e572
UD
7256 -o conftest conftest.c 1>&5'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
322e23db 7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7261 (exit $ac_status); }; }; then
cd6ede75
UD
7262 libc_cv_ld_no_whole_archive=yes
7263else
7264 libc_cv_ld_no_whole_archive=no
7265fi
7266rm -f conftest*
7267fi
322e23db
UD
7268{ $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7269$as_echo "$libc_cv_ld_no_whole_archive" >&6; }
b17277cf
UD
7270if test $libc_cv_ld_no_whole_archive = yes; then
7271 no_whole_archive=-Wl,--no-whole-archive
7272fi
cd6ede75 7273
322e23db
UD
7274{ $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7275$as_echo_n "checking for gcc -fexceptions... " >&6; }
3a12e572 7276if test "${libc_cv_gcc_exceptions+set}" = set; then
322e23db 7277 $as_echo_n "(cached) " >&6
cd6ede75
UD
7278else
7279 cat > conftest.c <<\EOF
7280_start () {}
7281int __eh_pc;
7282__throw () {}
7283EOF
3217788f 7284if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dff14448 7285 -nostdlib -nostartfiles -fexceptions
3a12e572
UD
7286 -o conftest conftest.c 1>&5'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
322e23db 7290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7291 (exit $ac_status); }; }; then
dff14448 7292 libc_cv_gcc_exceptions=yes
cd6ede75 7293else
dff14448 7294 libc_cv_gcc_exceptions=no
cd6ede75
UD
7295fi
7296rm -f conftest*
7297fi
322e23db
UD
7298{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7299$as_echo "$libc_cv_gcc_exceptions" >&6; }
dff14448
UD
7300if test $libc_cv_gcc_exceptions = yes; then
7301 exceptions=-fexceptions
b17277cf 7302fi
cd6ede75 7303
ebcd12d4
UD
7304if test "$host_cpu" = powerpc ; then
7305# Check for a bug present in at least versions 2.8.x of GCC
7306# and versions 1.0.x of EGCS.
322e23db
UD
7307{ $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7308$as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
3a12e572 7309if test "${libc_cv_c_asmcr0_bug+set}" = set; then
322e23db 7310 $as_echo_n "(cached) " >&6
ebcd12d4 7311else
3a12e572 7312 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7313/* confdefs.h. */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h. */
ebcd12d4 7318int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3a12e572
UD
7319int
7320main ()
7321{
ebcd12d4 7322
3a12e572
UD
7323 ;
7324 return 0;
7325}
7326_ACEOF
7327rm -f conftest.$ac_objext
26f56c1c
UD
7328if { (ac_try="$ac_compile"
7329case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332esac
322e23db
UD
7333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7334$as_echo "$ac_try_echo") >&5
26f56c1c 7335 (eval "$ac_compile") 2>conftest.er1
3a12e572 7336 ac_status=$?
9382fcee
RM
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
322e23db 7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
ebcd12d4
UD
7345 libc_cv_c_asmcr0_bug='no'
7346else
322e23db 7347 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
26f56c1c 7350 libc_cv_c_asmcr0_bug='yes'
ebcd12d4 7351fi
26f56c1c
UD
7352
7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ebcd12d4 7354fi
322e23db
UD
7355{ $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7356$as_echo "$libc_cv_c_asmcr0_bug" >&6; }
ebcd12d4 7357if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3a12e572 7358 cat >>confdefs.h <<\_ACEOF
ebcd12d4 7359#define BROKEN_PPC_ASM_CR0 1
3a12e572 7360_ACEOF
ebcd12d4
UD
7361
7362fi
7363fi
7364
322e23db
UD
7365{ $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7366$as_echo_n "checking for __builtin_expect... " >&6; }
3a12e572 7367if test "${libc_cv_gcc_builtin_expect+set}" = set; then
322e23db 7368 $as_echo_n "(cached) " >&6
a8eab8b1
UD
7369else
7370 cat > conftest.c <<EOF
85dd1003 7371#line $LINENO "configure"
a8eab8b1
UD
7372int foo (int a)
7373{
7374 a = __builtin_expect (a, 10);
7375 return a == 10 ? 0 : 1;
7376}
7377EOF
3217788f 7378if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
3a12e572
UD
7379 -o conftest conftest.c -lgcc >&5'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
322e23db 7383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7384 (exit $ac_status); }; }; then
a8eab8b1
UD
7385 libc_cv_gcc_builtin_expect=yes
7386else
7387 libc_cv_gcc_builtin_expect=no
7388fi
7389rm -f conftest*
7390fi
322e23db
UD
7391{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7392$as_echo "$libc_cv_gcc_builtin_expect" >&6; }
a8eab8b1 7393if test "$libc_cv_gcc_builtin_expect" = yes; then
3a12e572 7394 cat >>confdefs.h <<\_ACEOF
a8eab8b1 7395#define HAVE_BUILTIN_EXPECT 1
3a12e572 7396_ACEOF
a8eab8b1
UD
7397
7398fi
7399
322e23db
UD
7400{ $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7401$as_echo_n "checking for __builtin_memset... " >&6; }
3a12e572 7402if test "${libc_cv_gcc_builtin_memset+set}" = set; then
322e23db 7403 $as_echo_n "(cached) " >&6
d555194c
UD
7404else
7405 cat > conftest.c <<\EOF
7406void zero (void *x)
7407{
a52d1562 7408 __builtin_memset (x, 0, 1000);
d555194c
UD
7409}
7410EOF
3a12e572
UD
7411if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
322e23db 7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7416 (exit $ac_status); }; };
d555194c
UD
7417then
7418 libc_cv_gcc_builtin_memset=no
7419else
7420 libc_cv_gcc_builtin_memset=yes
7421fi
3a12e572 7422rm -f conftest*
d555194c 7423fi
322e23db
UD
7424{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7425$as_echo "$libc_cv_gcc_builtin_memset" >&6; }
d555194c 7426if test "$libc_cv_gcc_builtin_memset" = yes ; then
3a12e572 7427 cat >>confdefs.h <<\_ACEOF
d555194c 7428#define HAVE_BUILTIN_MEMSET 1
3a12e572 7429_ACEOF
d555194c
UD
7430
7431fi
7432
322e23db
UD
7433{ $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7434$as_echo_n "checking for redirection of built-in functions... " >&6; }
85dd1003 7435if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
322e23db 7436 $as_echo_n "(cached) " >&6
85dd1003
UD
7437else
7438 cat > conftest.c <<\EOF
7439extern char *strstr (const char *, const char *) __asm ("my_strstr");
7440char *foo (const char *a, const char *b)
7441{
7442 return __builtin_strstr (a, b);
7443}
7444EOF
7445if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
322e23db 7449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
85dd1003
UD
7450 (exit $ac_status); }; };
7451then
7452 libc_cv_gcc_builtin_redirection=yes
7453else
7454 libc_cv_gcc_builtin_redirection=no
7455fi
7456rm -f conftest*
7457fi
322e23db
UD
7458{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7459$as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
85dd1003
UD
7460if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7461 cat >>confdefs.h <<\_ACEOF
7462#define HAVE_BUILTIN_REDIRECTION 1
7463_ACEOF
7464
7465fi
7466
5b8f26b4 7467if test "x$use__thread" != xno; then
322e23db
UD
7468 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7469$as_echo_n "checking for __thread... " >&6; }
3a12e572 7470if test "${libc_cv_gcc___thread+set}" = set; then
322e23db 7471 $as_echo_n "(cached) " >&6
739d440d 7472else
5bbfc1ea 7473 cat > conftest.c <<\EOF
fbb18522
RM
7474__thread int a = 42;
7475EOF
3217788f 7476 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
3a12e572
UD
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
322e23db 7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7481 (exit $ac_status); }; }; then
5b8f26b4
RM
7482 libc_cv_gcc___thread=yes
7483 else
7484 libc_cv_gcc___thread=no
7485 fi
7486 rm -f conftest*
739d440d 7487fi
322e23db
UD
7488{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7489$as_echo "$libc_cv_gcc___thread" >&6; }
5b8f26b4 7490 if test "$libc_cv_gcc___thread" = yes; then
3a12e572 7491 cat >>confdefs.h <<\_ACEOF
739d440d 7492#define HAVE___THREAD 1
3a12e572 7493_ACEOF
739d440d 7494
5b8f26b4 7495 fi
fbb18522
RM
7496else
7497 libc_cv_gcc___thread=no
739d440d
UD
7498fi
7499
9b21e6bc 7500if test "$libc_cv_gcc___thread" = yes; then
322e23db
UD
7501 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7502$as_echo_n "checking for tls_model attribute... " >&6; }
3a12e572 7503if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
322e23db 7504 $as_echo_n "(cached) " >&6
9b21e6bc
RM
7505else
7506 cat > conftest.c <<\EOF
7507extern __thread int a __attribute__((tls_model ("initial-exec")));
7508EOF
3217788f 7509 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
3a12e572
UD
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
322e23db 7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 7514 (exit $ac_status); }; }; then
9b21e6bc
RM
7515 libc_cv_gcc_tls_model_attr=yes
7516 else
7517 libc_cv_gcc_tls_model_attr=no
7518 fi
7519 rm -f conftest*
7520fi
322e23db
UD
7521{ $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7522$as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
9b21e6bc 7523 if test "$libc_cv_gcc_tls_model_attr" = yes; then
3a12e572 7524 cat >>confdefs.h <<\_ACEOF
9b21e6bc 7525#define HAVE_TLS_MODEL_ATTRIBUTE 1
3a12e572 7526_ACEOF
9b21e6bc
RM
7527
7528 fi
7529fi
739d440d 7530
2cf9ad57 7531if test -n "$submachine"; then
322e23db
UD
7532 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7533$as_echo_n "checking for compiler option for CPU variant... " >&6; }
2cf9ad57 7534if test "${libc_cv_cc_submachine+set}" = set; then
322e23db 7535 $as_echo_n "(cached) " >&6
2cf9ad57
RM
7536else
7537 libc_cv_cc_submachine=no
7538 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7539 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
322e23db 7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2cf9ad57
RM
7544 (exit $ac_status); }; }; then
7545 libc_cv_cc_submachine="$opt"
7546 break
7547 fi
7548 done
7549fi
322e23db
UD
7550{ $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7551$as_echo "$libc_cv_cc_submachine" >&6; }
2cf9ad57 7552 if test "x$libc_cv_cc_submachine" = xno; then
322e23db
UD
7553 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7554$as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
2cf9ad57
RM
7555 { (exit 1); exit 1; }; }
7556 fi
7557fi
7558
7559
322e23db
UD
7560{ $as_echo "$as_me:$LINENO: checking for libgd" >&5
7561$as_echo_n "checking for libgd... " >&6; }
6dab8688
UD
7562if test "$with_gd" != "no"; then
7563 old_CFLAGS="$CFLAGS"
7564 CFLAGS="$CFLAGS $libgd_include"
7565 old_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $libgd_ldflags"
7567 old_LIBS="$LIBS"
7568 LIBS="$LIBS -lgd -lpng -lz -lm"
3a12e572 7569 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7570/* confdefs.h. */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */
c8f3e6db 7575#include <gd.h>
3a12e572
UD
7576int
7577main ()
7578{
c8f3e6db 7579gdImagePng (0, 0)
3a12e572
UD
7580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7585if { (ac_try="$ac_link"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
322e23db
UD
7590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591$as_echo "$ac_try_echo") >&5
26f56c1c 7592 (eval "$ac_link") 2>conftest.er1
3a12e572 7593 ac_status=$?
9382fcee
RM
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
322e23db 7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
322e23db
UD
7601 } && test -s conftest$ac_exeext && {
7602 test "$cross_compiling" = yes ||
7603 $as_test_x conftest$ac_exeext
7604 }; then
c8f3e6db
UD
7605 LIBGD=yes
7606else
322e23db 7607 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
26f56c1c 7610 LIBGD=no
c8f3e6db 7611fi
26f56c1c 7612
322e23db 7613rm -rf conftest.dSYM
26f56c1c 7614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382fcee 7615 conftest$ac_exeext conftest.$ac_ext
6dab8688
UD
7616 CFLAGS="$old_CFLAGS"
7617 LDFLAGS="$old_LDFLAGS"
7618 LIBS="$old_LIBS"
7619else
7620 LIBGD=no
7621fi
322e23db
UD
7622{ $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7623$as_echo "$LIBGD" >&6; }
3a12e572
UD
7624
7625
74a30a58
UD
7626# SELinux detection
7627if test x$with_selinux = xno ; then
7628 have_selinux=no;
7629else
7630 # See if we have the SELinux library
322e23db
UD
7631 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7632$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
74a30a58 7633if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
322e23db 7634 $as_echo_n "(cached) " >&6
74a30a58
UD
7635else
7636 ac_check_lib_save_LIBS=$LIBS
7637LIBS="-lselinux $LIBS"
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644
26f56c1c
UD
7645/* Override any GCC internal prototype to avoid an error.
7646 Use char because int might match the return type of a GCC
7647 builtin and then its argument prototype would still apply. */
74a30a58
UD
7648#ifdef __cplusplus
7649extern "C"
7650#endif
74a30a58
UD
7651char is_selinux_enabled ();
7652int
7653main ()
7654{
26f56c1c 7655return is_selinux_enabled ();
74a30a58
UD
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7661if { (ac_try="$ac_link"
7662case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
322e23db
UD
7666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667$as_echo "$ac_try_echo") >&5
26f56c1c 7668 (eval "$ac_link") 2>conftest.er1
74a30a58
UD
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
322e23db 7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
322e23db
UD
7677 } && test -s conftest$ac_exeext && {
7678 test "$cross_compiling" = yes ||
7679 $as_test_x conftest$ac_exeext
7680 }; then
74a30a58
UD
7681 ac_cv_lib_selinux_is_selinux_enabled=yes
7682else
322e23db 7683 $as_echo "$as_me: failed program was:" >&5
74a30a58
UD
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
26f56c1c 7686 ac_cv_lib_selinux_is_selinux_enabled=no
74a30a58 7687fi
26f56c1c 7688
322e23db 7689rm -rf conftest.dSYM
26f56c1c 7690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74a30a58
UD
7691 conftest$ac_exeext conftest.$ac_ext
7692LIBS=$ac_check_lib_save_LIBS
7693fi
322e23db
UD
7694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7695$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7696if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
74a30a58
UD
7697 have_selinux=yes
7698else
7699 have_selinux=no
7700fi
7701
7702 # See if we have the SELinux header with the NSCD permissions in it.
7703 if test x$have_selinux = xyes ; then
322e23db
UD
7704 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7705$as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
74a30a58
UD
7706 cat >conftest.$ac_ext <<_ACEOF
7707/* confdefs.h. */
7708_ACEOF
7709cat confdefs.h >>conftest.$ac_ext
7710cat >>conftest.$ac_ext <<_ACEOF
7711/* end confdefs.h. */
7712#include <selinux/av_permissions.h>
7713int
7714main ()
7715{
7716#ifdef NSCD__SHMEMHOST
7717 return 0;
7718 #else
7719 #error NSCD__SHMEMHOST not defined
7720 #endif
7721 ;
7722 return 0;
7723}
7724_ACEOF
7725rm -f conftest.$ac_objext
26f56c1c
UD
7726if { (ac_try="$ac_compile"
7727case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730esac
322e23db
UD
7731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732$as_echo "$ac_try_echo") >&5
26f56c1c 7733 (eval "$ac_compile") 2>conftest.er1
74a30a58
UD
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
322e23db 7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
74a30a58
UD
7743 have_selinux=yes
7744else
322e23db 7745 $as_echo "$as_me: failed program was:" >&5
74a30a58
UD
7746sed 's/^/| /' conftest.$ac_ext >&5
7747
26f56c1c 7748 have_selinux=no
74a30a58 7749fi
26f56c1c
UD
7750
7751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
322e23db
UD
7752 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7753$as_echo "$have_selinux" >&6; }
74a30a58
UD
7754 fi
7755
8f1913a9 7756 if test x$with_selinux = xyes ; then
74a30a58 7757 if test x$have_selinux = xno ; then
322e23db
UD
7758 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7759$as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
74a30a58
UD
7760 { (exit 1); exit 1; }; }
7761 fi
7762 fi
7763fi
7764# Check if we're building with SELinux support.
7765if test "x$have_selinux" = xyes; then
7766
7767cat >>confdefs.h <<\_ACEOF
7768#define HAVE_SELINUX 1
7769_ACEOF
7770
b399a0c2
UD
7771
7772 # See if we have the libaudit library
322e23db
UD
7773 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7774$as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
b2f97341 7775if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
322e23db 7776 $as_echo_n "(cached) " >&6
b399a0c2
UD
7777else
7778 ac_check_lib_save_LIBS=$LIBS
7779LIBS="-laudit $LIBS"
7780cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h. */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h. */
7786
26f56c1c
UD
7787/* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
b399a0c2
UD
7790#ifdef __cplusplus
7791extern "C"
7792#endif
b2f97341 7793char audit_log_user_avc_message ();
b399a0c2
UD
7794int
7795main ()
7796{
26f56c1c 7797return audit_log_user_avc_message ();
b399a0c2
UD
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7803if { (ac_try="$ac_link"
7804case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
322e23db
UD
7808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809$as_echo "$ac_try_echo") >&5
26f56c1c 7810 (eval "$ac_link") 2>conftest.er1
b399a0c2
UD
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
322e23db 7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
322e23db
UD
7819 } && test -s conftest$ac_exeext && {
7820 test "$cross_compiling" = yes ||
7821 $as_test_x conftest$ac_exeext
7822 }; then
b2f97341 7823 ac_cv_lib_audit_audit_log_user_avc_message=yes
b399a0c2 7824else
322e23db 7825 $as_echo "$as_me: failed program was:" >&5
b399a0c2
UD
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
26f56c1c 7828 ac_cv_lib_audit_audit_log_user_avc_message=no
b399a0c2 7829fi
26f56c1c 7830
322e23db 7831rm -rf conftest.dSYM
26f56c1c 7832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b399a0c2
UD
7833 conftest$ac_exeext conftest.$ac_ext
7834LIBS=$ac_check_lib_save_LIBS
7835fi
322e23db
UD
7836{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7837$as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7838if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
b399a0c2
UD
7839 have_libaudit=yes
7840else
7841 have_libaudit=no
7842fi
7843
7844 if test "x$have_libaudit" = xyes; then
7845
7846cat >>confdefs.h <<\_ACEOF
7847#define HAVE_LIBAUDIT 1
7848_ACEOF
7849
7850 fi
7851
1f063dca
UD
7852
7853 # See if we have the libcap library
322e23db
UD
7854 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7855$as_echo_n "checking for cap_init in -lcap... " >&6; }
1f063dca 7856if test "${ac_cv_lib_cap_cap_init+set}" = set; then
322e23db 7857 $as_echo_n "(cached) " >&6
1f063dca
UD
7858else
7859 ac_check_lib_save_LIBS=$LIBS
7860LIBS="-lcap $LIBS"
7861cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867
26f56c1c
UD
7868/* Override any GCC internal prototype to avoid an error.
7869 Use char because int might match the return type of a GCC
7870 builtin and then its argument prototype would still apply. */
1f063dca
UD
7871#ifdef __cplusplus
7872extern "C"
7873#endif
1f063dca
UD
7874char cap_init ();
7875int
7876main ()
7877{
26f56c1c 7878return cap_init ();
1f063dca
UD
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7884if { (ac_try="$ac_link"
7885case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
322e23db
UD
7889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890$as_echo "$ac_try_echo") >&5
26f56c1c 7891 (eval "$ac_link") 2>conftest.er1
1f063dca
UD
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
322e23db 7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
322e23db
UD
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7903 }; then
1f063dca
UD
7904 ac_cv_lib_cap_cap_init=yes
7905else
322e23db 7906 $as_echo "$as_me: failed program was:" >&5
1f063dca
UD
7907sed 's/^/| /' conftest.$ac_ext >&5
7908
26f56c1c 7909 ac_cv_lib_cap_cap_init=no
1f063dca 7910fi
26f56c1c 7911
322e23db 7912rm -rf conftest.dSYM
26f56c1c 7913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1f063dca
UD
7914 conftest$ac_exeext conftest.$ac_ext
7915LIBS=$ac_check_lib_save_LIBS
7916fi
322e23db
UD
7917{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7918$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7919if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
1f063dca
UD
7920 have_libcap=yes
7921else
7922 have_libcap=no
7923fi
7924
7925 if test "x$have_libcap" = xyes; then
7926
7927cat >>confdefs.h <<\_ACEOF
7928#define HAVE_LIBCAP 1
7929_ACEOF
7930
7931 fi
7932
74a30a58
UD
7933fi
7934
7935
3a12e572 7936
322e23db
UD
7937{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7938$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
26f56c1c 7939if test "${ac_cv_path_GREP+set}" = set; then
322e23db 7940 $as_echo_n "(cached) " >&6
26f56c1c 7941else
322e23db 7942 if test -z "$GREP"; then
26f56c1c 7943 ac_path_GREP_found=false
322e23db
UD
7944 # Loop through the user's path and test for each of PROGNAME-LIST
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26f56c1c
UD
7946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_prog in grep ggrep; do
322e23db
UD
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7953 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7954# Check for GNU ac_path_GREP and select it if it is found.
26f56c1c
UD
7955 # Check for GNU $ac_path_GREP
7956case `"$ac_path_GREP" --version 2>&1` in
7957*GNU*)
7958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7959*)
7960 ac_count=0
322e23db 7961 $as_echo_n 0123456789 >"conftest.in"
26f56c1c
UD
7962 while :
7963 do
7964 cat "conftest.in" "conftest.in" >"conftest.tmp"
7965 mv "conftest.tmp" "conftest.in"
7966 cp "conftest.in" "conftest.nl"
322e23db 7967 $as_echo 'GREP' >> "conftest.nl"
26f56c1c
UD
7968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970 ac_count=`expr $ac_count + 1`
7971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972 # Best one so far, save it but keep looking for a better one
7973 ac_cv_path_GREP="$ac_path_GREP"
7974 ac_path_GREP_max=$ac_count
7975 fi
7976 # 10*(2^10) chars as input seems more than enough
7977 test $ac_count -gt 10 && break
7978 done
7979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7980esac
7981
322e23db
UD
7982 $ac_path_GREP_found && break 3
7983 done
26f56c1c
UD
7984 done
7985done
26f56c1c 7986IFS=$as_save_IFS
322e23db
UD
7987 if test -z "$ac_cv_path_GREP"; then
7988 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7989$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
26f56c1c 7990 { (exit 1); exit 1; }; }
322e23db 7991 fi
26f56c1c
UD
7992else
7993 ac_cv_path_GREP=$GREP
7994fi
7995
26f56c1c 7996fi
322e23db
UD
7997{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7998$as_echo "$ac_cv_path_GREP" >&6; }
26f56c1c
UD
7999 GREP="$ac_cv_path_GREP"
8000
8001
322e23db
UD
8002{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
8003$as_echo_n "checking for egrep... " >&6; }
26f56c1c 8004if test "${ac_cv_path_EGREP+set}" = set; then
322e23db 8005 $as_echo_n "(cached) " >&6
26f56c1c
UD
8006else
8007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8008 then ac_cv_path_EGREP="$GREP -E"
8009 else
322e23db 8010 if test -z "$EGREP"; then
26f56c1c 8011 ac_path_EGREP_found=false
322e23db
UD
8012 # Loop through the user's path and test for each of PROGNAME-LIST
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26f56c1c
UD
8014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_prog in egrep; do
322e23db
UD
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8021 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8022# Check for GNU ac_path_EGREP and select it if it is found.
26f56c1c
UD
8023 # Check for GNU $ac_path_EGREP
8024case `"$ac_path_EGREP" --version 2>&1` in
8025*GNU*)
8026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8027*)
8028 ac_count=0
322e23db 8029 $as_echo_n 0123456789 >"conftest.in"
26f56c1c
UD
8030 while :
8031 do
8032 cat "conftest.in" "conftest.in" >"conftest.tmp"
8033 mv "conftest.tmp" "conftest.in"
8034 cp "conftest.in" "conftest.nl"
322e23db 8035 $as_echo 'EGREP' >> "conftest.nl"
26f56c1c
UD
8036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8038 ac_count=`expr $ac_count + 1`
8039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8040 # Best one so far, save it but keep looking for a better one
8041 ac_cv_path_EGREP="$ac_path_EGREP"
8042 ac_path_EGREP_max=$ac_count
f4b07664 8043 fi
26f56c1c
UD
8044 # 10*(2^10) chars as input seems more than enough
8045 test $ac_count -gt 10 && break
8046 done
8047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8048esac
8049
322e23db
UD
8050 $ac_path_EGREP_found && break 3
8051 done
26f56c1c
UD
8052 done
8053done
26f56c1c 8054IFS=$as_save_IFS
322e23db
UD
8055 if test -z "$ac_cv_path_EGREP"; then
8056 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8057$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
26f56c1c 8058 { (exit 1); exit 1; }; }
322e23db 8059 fi
26f56c1c
UD
8060else
8061 ac_cv_path_EGREP=$EGREP
8062fi
8063
26f56c1c
UD
8064 fi
8065fi
322e23db
UD
8066{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8067$as_echo "$ac_cv_path_EGREP" >&6; }
26f56c1c 8068 EGREP="$ac_cv_path_EGREP"
f4b07664
RM
8069
8070
322e23db
UD
8071{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8072$as_echo_n "checking for ANSI C header files... " >&6; }
3a12e572 8073if test "${ac_cv_header_stdc+set}" = set; then
322e23db 8074 $as_echo_n "(cached) " >&6
3a12e572
UD
8075else
8076 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8077/* confdefs.h. */
8078_ACEOF
8079cat confdefs.h >>conftest.$ac_ext
8080cat >>conftest.$ac_ext <<_ACEOF
8081/* end confdefs.h. */
3a12e572
UD
8082#include <stdlib.h>
8083#include <stdarg.h>
8084#include <string.h>
8085#include <float.h>
8086
2abf9ff1
RM
8087int
8088main ()
8089{
8090
8091 ;
8092 return 0;
8093}
3a12e572 8094_ACEOF
2abf9ff1 8095rm -f conftest.$ac_objext
26f56c1c
UD
8096if { (ac_try="$ac_compile"
8097case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
322e23db
UD
8101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8102$as_echo "$ac_try_echo") >&5
26f56c1c 8103 (eval "$ac_compile") 2>conftest.er1
32a448ed 8104 ac_status=$?
9382fcee
RM
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
322e23db 8108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
3a12e572
UD
8113 ac_cv_header_stdc=yes
8114else
322e23db 8115 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
26f56c1c 8118 ac_cv_header_stdc=no
3a12e572 8119fi
26f56c1c
UD
8120
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8f3e6db 8122
3a12e572
UD
8123if test $ac_cv_header_stdc = yes; then
8124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8125 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
3a12e572 8131#include <string.h>
3d558f4e 8132
3a12e572
UD
8133_ACEOF
8134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 8135 $EGREP "memchr" >/dev/null 2>&1; then
3a12e572 8136 :
8ed1e7d5 8137else
3a12e572
UD
8138 ac_cv_header_stdc=no
8139fi
8140rm -f conftest*
8141
8142fi
8143
8144if test $ac_cv_header_stdc = yes; then
8145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8146 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
3a12e572
UD
8152#include <stdlib.h>
8153
8154_ACEOF
8155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 8156 $EGREP "free" >/dev/null 2>&1; then
3a12e572
UD
8157 :
8158else
8159 ac_cv_header_stdc=no
8160fi
8161rm -f conftest*
8162
8163fi
8164
8165if test $ac_cv_header_stdc = yes; then
8166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8ed1e7d5 8167 if test "$cross_compiling" = yes; then
3a12e572 8168 :
8ed1e7d5 8169else
3a12e572 8170 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
3a12e572 8176#include <ctype.h>
26f56c1c 8177#include <stdlib.h>
3a12e572
UD
8178#if ((' ' & 0x0FF) == 0x020)
8179# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8180# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8181#else
2abf9ff1 8182# define ISLOWER(c) \
9382fcee
RM
8183 (('a' <= (c) && (c) <= 'i') \
8184 || ('j' <= (c) && (c) <= 'r') \
8185 || ('s' <= (c) && (c) <= 'z'))
3a12e572
UD
8186# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8187#endif
8188
8189#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8190int
8191main ()
8ed1e7d5 8192{
3a12e572
UD
8193 int i;
8194 for (i = 0; i < 256; i++)
8195 if (XOR (islower (i), ISLOWER (i))
9382fcee 8196 || toupper (i) != TOUPPER (i))
26f56c1c
UD
8197 return 2;
8198 return 0;
8ed1e7d5 8199}
3a12e572
UD
8200_ACEOF
8201rm -f conftest$ac_exeext
26f56c1c
UD
8202if { (ac_try="$ac_link"
8203case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206esac
322e23db
UD
8207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208$as_echo "$ac_try_echo") >&5
26f56c1c 8209 (eval "$ac_link") 2>&5
3a12e572 8210 ac_status=$?
322e23db 8211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 8212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26f56c1c
UD
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
322e23db
UD
8217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218$as_echo "$ac_try_echo") >&5
26f56c1c 8219 (eval "$ac_try") 2>&5
3a12e572 8220 ac_status=$?
322e23db 8221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572
UD
8222 (exit $ac_status); }; }; then
8223 :
8ed1e7d5 8224else
322e23db
UD
8225 $as_echo "$as_me: program exited with status $ac_status" >&5
8226$as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
3a12e572
UD
8229( exit $ac_status )
8230ac_cv_header_stdc=no
8231fi
322e23db 8232rm -rf conftest.dSYM
26f56c1c 8233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8ed1e7d5 8234fi
26f56c1c
UD
8235
8236
8ed1e7d5 8237fi
3a12e572 8238fi
322e23db
UD
8239{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8240$as_echo "$ac_cv_header_stdc" >&6; }
3a12e572
UD
8241if test $ac_cv_header_stdc = yes; then
8242
8243cat >>confdefs.h <<\_ACEOF
8244#define STDC_HEADERS 1
8245_ACEOF
8246
8247fi
8248
8249# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9382fcee 8260 inttypes.h stdint.h unistd.h
3a12e572 8261do
322e23db
UD
8262as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8264$as_echo_n "checking for $ac_header... " >&6; }
26f56c1c 8265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
322e23db 8266 $as_echo_n "(cached) " >&6
3a12e572
UD
8267else
8268 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
3a12e572
UD
8274$ac_includes_default
8275
8276#include <$ac_header>
8277_ACEOF
8278rm -f conftest.$ac_objext
26f56c1c
UD
8279if { (ac_try="$ac_compile"
8280case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283esac
322e23db
UD
8284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285$as_echo "$ac_try_echo") >&5
26f56c1c 8286 (eval "$ac_compile") 2>conftest.er1
3a12e572 8287 ac_status=$?
9382fcee
RM
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
322e23db 8291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
3a12e572
UD
8296 eval "$as_ac_Header=yes"
8297else
322e23db 8298 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
26f56c1c 8301 eval "$as_ac_Header=no"
3a12e572 8302fi
26f56c1c
UD
8303
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572 8305fi
322e23db
UD
8306ac_res=`eval 'as_val=${'$as_ac_Header'}
8307 $as_echo "$as_val"'`
8308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8309$as_echo "$ac_res" >&6; }
8310as_val=`eval 'as_val=${'$as_ac_Header'}
8311 $as_echo "$as_val"'`
8312 if test "x$as_val" = x""yes; then
3a12e572 8313 cat >>confdefs.h <<_ACEOF
322e23db 8314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3a12e572 8315_ACEOF
8ed1e7d5
GK
8316
8317fi
3a12e572
UD
8318
8319done
8320
8321
26f56c1c
UD
8322# The cast to long int works around a bug in the HP C Compiler
8323# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8324# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8325# This bug is HP SR number 8606223364.
322e23db
UD
8326{ $as_echo "$as_me:$LINENO: checking size of long double" >&5
8327$as_echo_n "checking size of long double... " >&6; }
3a12e572 8328if test "${ac_cv_sizeof_long_double+set}" = set; then
322e23db 8329 $as_echo_n "(cached) " >&6
3a12e572 8330else
3a12e572
UD
8331 if test "$cross_compiling" = yes; then
8332 # Depending upon the size, compute the lo and hi bounds.
8333cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8334/* confdefs.h. */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h. */
3a12e572 8339$ac_includes_default
3a12e572
UD
8340int
8341main ()
8342{
322e23db 8343static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
3a12e572
UD
8344test_array [0] = 0
8345
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext
26f56c1c
UD
8351if { (ac_try="$ac_compile"
8352case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355esac
322e23db
UD
8356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357$as_echo "$ac_try_echo") >&5
26f56c1c 8358 (eval "$ac_compile") 2>conftest.er1
3a12e572 8359 ac_status=$?
9382fcee
RM
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
322e23db 8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
3a12e572
UD
8368 ac_lo=0 ac_mid=0
8369 while :; do
8370 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
3a12e572 8376$ac_includes_default
3a12e572
UD
8377int
8378main ()
8379{
322e23db 8380static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
3a12e572
UD
8381test_array [0] = 0
8382
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext
26f56c1c
UD
8388if { (ac_try="$ac_compile"
8389case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
322e23db
UD
8393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394$as_echo "$ac_try_echo") >&5
26f56c1c 8395 (eval "$ac_compile") 2>conftest.er1
3a12e572 8396 ac_status=$?
9382fcee
RM
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
322e23db 8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
3a12e572
UD
8405 ac_hi=$ac_mid; break
8406else
322e23db 8407 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8408sed 's/^/| /' conftest.$ac_ext >&5
8409
26f56c1c
UD
8410 ac_lo=`expr $ac_mid + 1`
8411 if test $ac_lo -le $ac_mid; then
8412 ac_lo= ac_hi=
8413 break
8414 fi
8415 ac_mid=`expr 2 '*' $ac_mid + 1`
3a12e572 8416fi
26f56c1c
UD
8417
8418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8419 done
8420else
322e23db 8421 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
26f56c1c 8424 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
3a12e572 8430$ac_includes_default
3a12e572
UD
8431int
8432main ()
8433{
322e23db 8434static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
3a12e572
UD
8435test_array [0] = 0
8436
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext
26f56c1c
UD
8442if { (ac_try="$ac_compile"
8443case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
322e23db
UD
8447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8448$as_echo "$ac_try_echo") >&5
26f56c1c 8449 (eval "$ac_compile") 2>conftest.er1
3a12e572 8450 ac_status=$?
9382fcee
RM
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
322e23db 8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
3a12e572
UD
8459 ac_hi=-1 ac_mid=-1
8460 while :; do
8461 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
3a12e572 8467$ac_includes_default
3a12e572
UD
8468int
8469main ()
8470{
322e23db 8471static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
3a12e572
UD
8472test_array [0] = 0
8473
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext
26f56c1c
UD
8479if { (ac_try="$ac_compile"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
322e23db
UD
8484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485$as_echo "$ac_try_echo") >&5
26f56c1c 8486 (eval "$ac_compile") 2>conftest.er1
3a12e572 8487 ac_status=$?
9382fcee
RM
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
322e23db 8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest.$ac_objext; then
3a12e572
UD
8496 ac_lo=$ac_mid; break
8497else
322e23db 8498 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
26f56c1c
UD
8501 ac_hi=`expr '(' $ac_mid ')' - 1`
8502 if test $ac_mid -le $ac_hi; then
8503 ac_lo= ac_hi=
8504 break
8505 fi
8506 ac_mid=`expr 2 '*' $ac_mid`
3a12e572 8507fi
26f56c1c
UD
8508
8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8510 done
8511else
322e23db 8512 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
26f56c1c 8515 ac_lo= ac_hi=
3a12e572 8516fi
26f56c1c
UD
8517
8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572 8519fi
26f56c1c
UD
8520
8521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8522# Binary search between lo and hi bounds.
8523while test "x$ac_lo" != "x$ac_hi"; do
8524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8525 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8526/* confdefs.h. */
8527_ACEOF
8528cat confdefs.h >>conftest.$ac_ext
8529cat >>conftest.$ac_ext <<_ACEOF
8530/* end confdefs.h. */
3a12e572 8531$ac_includes_default
3a12e572
UD
8532int
8533main ()
8534{
322e23db 8535static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
3a12e572
UD
8536test_array [0] = 0
8537
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext
26f56c1c
UD
8543if { (ac_try="$ac_compile"
8544case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547esac
322e23db
UD
8548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549$as_echo "$ac_try_echo") >&5
26f56c1c 8550 (eval "$ac_compile") 2>conftest.er1
3a12e572 8551 ac_status=$?
9382fcee
RM
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
322e23db 8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest.$ac_objext; then
3a12e572
UD
8560 ac_hi=$ac_mid
8561else
322e23db 8562 $as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
26f56c1c 8565 ac_lo=`expr '(' $ac_mid ')' + 1`
3a12e572 8566fi
26f56c1c
UD
8567
8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8569done
8570case $ac_lo in
8571?*) ac_cv_sizeof_long_double=$ac_lo;;
26f56c1c 8572'') if test "$ac_cv_type_long_double" = yes; then
322e23db
UD
8573 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8575{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2abf9ff1 8576See \`config.log' for more details." >&5
322e23db 8577$as_echo "$as_me: error: cannot compute sizeof (long double)
2abf9ff1 8578See \`config.log' for more details." >&2;}
322e23db 8579 { (exit 77); exit 77; }; }; }
26f56c1c
UD
8580 else
8581 ac_cv_sizeof_long_double=0
8582 fi ;;
3a12e572 8583esac
3a12e572
UD
8584else
8585 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
3a12e572 8591$ac_includes_default
322e23db
UD
8592static long int longval () { return (long int) (sizeof (long double)); }
8593static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
3a12e572
UD
8594#include <stdio.h>
8595#include <stdlib.h>
3a12e572
UD
8596int
8597main ()
8598{
8599
8600 FILE *f = fopen ("conftest.val", "w");
8601 if (! f)
26f56c1c 8602 return 1;
322e23db 8603 if (((long int) (sizeof (long double))) < 0)
3a12e572 8604 {
26f56c1c 8605 long int i = longval ();
322e23db 8606 if (i != ((long int) (sizeof (long double))))
26f56c1c 8607 return 1;
322e23db 8608 fprintf (f, "%ld", i);
3a12e572
UD
8609 }
8610 else
8611 {
26f56c1c 8612 unsigned long int i = ulongval ();
322e23db 8613 if (i != ((long int) (sizeof (long double))))
26f56c1c 8614 return 1;
322e23db 8615 fprintf (f, "%lu", i);
3a12e572 8616 }
322e23db
UD
8617 /* Do not output a trailing newline, as this causes \r\n confusion
8618 on some platforms. */
26f56c1c 8619 return ferror (f) || fclose (f) != 0;
3a12e572
UD
8620
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625rm -f conftest$ac_exeext
26f56c1c
UD
8626if { (ac_try="$ac_link"
8627case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630esac
322e23db
UD
8631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8632$as_echo "$ac_try_echo") >&5
26f56c1c 8633 (eval "$ac_link") 2>&5
3a12e572 8634 ac_status=$?
322e23db 8635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572 8636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26f56c1c
UD
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
322e23db
UD
8641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642$as_echo "$ac_try_echo") >&5
26f56c1c 8643 (eval "$ac_try") 2>&5
3a12e572 8644 ac_status=$?
322e23db 8645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3a12e572
UD
8646 (exit $ac_status); }; }; then
8647 ac_cv_sizeof_long_double=`cat conftest.val`
8648else
322e23db
UD
8649 $as_echo "$as_me: program exited with status $ac_status" >&5
8650$as_echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
3a12e572 8653( exit $ac_status )
26f56c1c 8654if test "$ac_cv_type_long_double" = yes; then
322e23db
UD
8655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8657{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2abf9ff1 8658See \`config.log' for more details." >&5
322e23db 8659$as_echo "$as_me: error: cannot compute sizeof (long double)
2abf9ff1 8660See \`config.log' for more details." >&2;}
322e23db 8661 { (exit 77); exit 77; }; }; }
26f56c1c
UD
8662 else
8663 ac_cv_sizeof_long_double=0
8664 fi
3a12e572 8665fi
322e23db 8666rm -rf conftest.dSYM
26f56c1c 8667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8668fi
8669rm -f conftest.val
3a12e572 8670fi
322e23db
UD
8671{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8672$as_echo "$ac_cv_sizeof_long_double" >&6; }
26f56c1c
UD
8673
8674
8675
3a12e572 8676cat >>confdefs.h <<_ACEOF
8ed1e7d5 8677#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3a12e572 8678_ACEOF
8ed1e7d5
GK
8679
8680
8681sizeof_long_double=$ac_cv_sizeof_long_double
8682
8683
cd6ede75
UD
8684### End of automated tests.
8685### Now run sysdeps configure fragments.
8686
cb343854 8687# They also can set these variables.
b43b13ac 8688use_ldconfig=no
cb343854 8689ldd_rewrite_script=no
77259608 8690libc_cv_sysconfdir=$sysconfdir
74bd2300 8691libc_cv_gcc_unwind_find_fde=no
e2fd3cbe 8692libc_cv_idn=no
cb343854 8693
cd6ede75
UD
8694# Iterate over all the sysdep directories we will use, running their
8695# configure fragments, and looking for a uname implementation.
8696uname=
8697for dir in $sysnames; do
8698 case $dir in
8699 /*) dest=$dir ;;
8700 *) dest=$srcdir/$dir ;;
8701 esac
8702 if test -r $dest/configure; then
322e23db
UD
8703 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8704$as_echo "running configure fragment for $dir" >&6; }
cd6ede75
UD
8705 . $dest/configure
8706 fi
8707
8708 if test -z "$uname"; then
8709 if test -r $dest/uname.c ||
8710 test -r $dest/uname.S ||
8711 { test -r $dest/syscalls.list &&
8712 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8713 uname=$dir
8714 fi
8715 fi
8716done
8717
74bd2300 8718if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3a12e572 8719 cat >>confdefs.h <<\_ACEOF
74bd2300 8720#define EXPORT_UNWIND_FIND_FDE 1
3a12e572 8721_ACEOF
74bd2300
UD
8722
8723fi
8724
8725
cd6ede75
UD
8726# If we will use the generic uname implementation, we must figure out what
8727# it will say by examining the system, and write the results in config-name.h.
8728if test "$uname" = "sysdeps/generic"; then
8729
8730 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8731 if test $uname_sysname != $config_os; then
8732 config_release=`echo $config_os | sed s/$uname_sysname//`
8733 fi
8734
322e23db
UD
8735 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8736$as_echo_n "checking OS release for uname... " >&6; }
3a12e572 8737if test "${libc_cv_uname_release+set}" = set; then
322e23db 8738 $as_echo_n "(cached) " >&6
cd6ede75 8739else
3a12e572
UD
8740 if test -r /vmunix; then
8741 kernel_id=`strings /vmunix | grep UNIX`
8742 elif test -r /dynix; then
8743 kernel_id=`strings /dynix | grep DYNIX`
8744 else
8745 kernel_id=
8746 fi
8747
8748 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
cd6ede75
UD
8749 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8750 != x$config_release; then
8751 # The configuration release is a substring of the kernel release.
8752 libc_cv_uname_release=$kernel_release
8753 elif test x$config_release != x; then
8754 libc_cv_uname_release=$config_release
8755 elif test x$kernel_release != x; then
8756 libc_cv_uname_release=$kernel_release
8757 else
8758 libc_cv_uname_release=unknown
8759 fi
8760fi
322e23db
UD
8761{ $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8762$as_echo "$libc_cv_uname_release" >&6; }
cd6ede75
UD
8763 uname_release="$libc_cv_uname_release"
8764
322e23db
UD
8765 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8766$as_echo_n "checking OS version for uname... " >&6; }
3a12e572 8767if test "${libc_cv_uname_version+set}" = set; then
322e23db 8768 $as_echo_n "(cached) " >&6
cd6ede75 8769else
3a12e572
UD
8770 if test -r /vmunix; then
8771 kernel_id=`strings /vmunix | grep UNIX`
8772 elif test -r /dynix; then
8773 kernel_id=`strings /dynix | grep DYNIX`
8774 else
8775 kernel_id=
8776 fi
8777
8778 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
cd6ede75
UD
8779 if test -n "$kernel_version"; then
8780 libc_cv_uname_version="$kernel_version"
8781 else
8782 libc_cv_uname_version=unknown
8783 fi
8784fi
322e23db
UD
8785{ $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8786$as_echo "$libc_cv_uname_version" >&6; }
cd6ede75
UD
8787 uname_version="$libc_cv_uname_version"
8788
8789 config_uname=config-name.h:config-name.in
8790else
8791 # For non-generic uname, we don't need to create config-name.h at all.
8792 config_uname=
8793fi
8794
3a12e572 8795cat >>confdefs.h <<\_ACEOF
cd6ede75 8796#define USE_IN_LIBIO 1
3a12e572 8797_ACEOF
a8c01776 8798
cd6ede75 8799
a53bad16
UD
8800# Test for old glibc 2.0.x headers so that they can be removed properly
8801# Search only in includedir.
322e23db
UD
8802{ $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8803$as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
011ce8ed 8804if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
a53bad16
UD
8805then
8806 old_glibc_headers=yes
8807else
8808 old_glibc_headers=no
8809fi
322e23db
UD
8810{ $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8811$as_echo "$old_glibc_headers" >&6; }
a53bad16 8812if test ${old_glibc_headers} = yes; then
322e23db
UD
8813 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8814$as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8815 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8816$as_echo "$as_me: WARNING: *** be removed." >&2;}
a53bad16 8817fi
26b4d766 8818
cd6ede75
UD
8819
8820
8821
8822
8823
8824
cb343854 8825
dff14448 8826
77259608 8827
3a12e572 8828
bcd5f356 8829
58a4b51a
RM
8830
8831
06e51c8f 8832
b0ecde3a 8833
01f1f5ee 8834
cd6ede75 8835if test $elf = yes; then
3a12e572 8836 cat >>confdefs.h <<\_ACEOF
cd6ede75 8837#define HAVE_ELF 1
3a12e572 8838_ACEOF
cd6ede75
UD
8839
8840fi
5af3245a 8841if test $xcoff = yes; then
3a12e572 8842 cat >>confdefs.h <<\_ACEOF
5af3245a 8843#define HAVE_XCOFF 1
3a12e572 8844_ACEOF
5af3245a
UD
8845
8846fi
cd6ede75
UD
8847
8848
650425ce 8849
cd6ede75 8850if test $shared = default; then
8e635611 8851 shared=$elf
a334319f
UD
8852fi
8853
322e23db
UD
8854{ $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8855$as_echo_n "checking whether -fPIC is default... " >&6; }
ff886b82 8856if test "${libc_cv_pic_default+set}" = set; then
322e23db 8857 $as_echo_n "(cached) " >&6
cc3fa755 8858else
ff886b82 8859 libc_cv_pic_default=yes
cc3fa755 8860cat > conftest.c <<EOF
9756dfe1 8861#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
8862# error PIC is default.
8863#endif
8864EOF
8865if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
ff886b82 8866 libc_cv_pic_default=no
cc3fa755
UD
8867fi
8868rm -f conftest.*
8869fi
322e23db
UD
8870{ $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8871$as_echo "$libc_cv_pic_default" >&6; }
cc3fa755
UD
8872
8873
2103c260 8874
2103c260 8875
2103c260 8876
cc3fa755 8877
cd6ede75
UD
8878
8879
8880
8881
8882
8883
cd6ede75
UD
8884if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8885 config_makefile=
8886else
8887 config_makefile=Makefile
8888fi
8889
ee74a442
UD
8890VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8891RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8892
cd6ede75
UD
8893
8894
26f56c1c 8895ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
f4b07664 8896
26f56c1c 8897ac_config_commands="$ac_config_commands default"
f4b07664 8898
3a12e572 8899cat >confcache <<\_ACEOF
cd6ede75
UD
8900# This file is a shell script that caches the results of configure
8901# tests run on this system so they can be shared between configure
3a12e572
UD
8902# scripts and configure runs, see configure's option --config-cache.
8903# It is not useful on other systems. If it contains results you don't
8904# want to keep, you may remove or edit it.
cd6ede75 8905#
3a12e572
UD
8906# config.status only pays attention to the cache file if you give it
8907# the --recheck option to rerun configure.
cd6ede75 8908#
f4b07664 8909# `ac_cv_env_foo' variables (set or unset) will be overridden when
3a12e572
UD
8910# loading this file, other *unset* `ac_cv_foo' will be assigned the
8911# following values.
8912
8913_ACEOF
8914
cd6ede75
UD
8915# The following way of writing the cache mishandles newlines in values,
8916# but we know of no workaround that is simple, portable, and efficient.
26f56c1c 8917# So, we kill variables containing newlines.
cd6ede75
UD
8918# Ultrix sh set writes to stderr and can't be redirected directly,
8919# and sets the high bit in the cache file unless we assign to the vars.
26f56c1c
UD
8920(
8921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8922 eval ac_val=\$$ac_var
8923 case $ac_val in #(
8924 *${as_nl}*)
8925 case $ac_var in #(
322e23db
UD
8926 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8927$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26f56c1c
UD
8928 esac
8929 case $ac_var in #(
8930 _ | IFS | as_nl) ;; #(
322e23db 8931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26f56c1c
UD
8932 *) $as_unset $ac_var ;;
8933 esac ;;
8934 esac
8935 done
8936
3a12e572 8937 (set) 2>&1 |
26f56c1c
UD
8938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8939 *${as_nl}ac_space=\ *)
3a12e572
UD
8940 # `set' does not quote correctly, so add quotes (double-quote
8941 # substitution turns \\\\ into \\, and sed turns \\ into \).
8942 sed -n \
9382fcee
RM
8943 "s/'/'\\\\''/g;
8944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26f56c1c 8945 ;; #(
3a12e572
UD
8946 *)
8947 # `set' quotes correctly as required by POSIX, so do not add quotes.
26f56c1c 8948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 8949 ;;
26f56c1c
UD
8950 esac |
8951 sort
8952) |
3a12e572 8953 sed '
26f56c1c 8954 /^ac_cv_env_/b end
3a12e572 8955 t clear
26f56c1c 8956 :clear
3a12e572
UD
8957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8958 t end
26f56c1c
UD
8959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8960 :end' >>confcache
8961if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8962 if test -w "$cache_file"; then
8963 test "x$cache_file" != "x/dev/null" &&
322e23db
UD
8964 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8965$as_echo "$as_me: updating cache $cache_file" >&6;}
3a12e572 8966 cat confcache >$cache_file
cd6ede75 8967 else
322e23db
UD
8968 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8969$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cd6ede75
UD
8970 fi
8971fi
8972rm -f confcache
8973
cd6ede75
UD
8974test "x$prefix" = xNONE && prefix=$ac_default_prefix
8975# Let make expand exec_prefix.
8976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8977
cd6ede75
UD
8978DEFS=-DHAVE_CONFIG_H
8979
f4b07664
RM
8980ac_libobjs=
8981ac_ltlibobjs=
8982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8983 # 1. Remove the extension, and $U if already installed.
26f56c1c 8984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
322e23db 8985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26f56c1c
UD
8986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8987 # will be set to the directory where LIBOBJS objects are built.
8988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
f4b07664
RM
8990done
8991LIBOBJS=$ac_libobjs
8992
8993LTLIBOBJS=$ac_ltlibobjs
8994
8995
cd6ede75 8996
3a12e572 8997: ${CONFIG_STATUS=./config.status}
322e23db 8998ac_write_fail=0
3a12e572
UD
8999ac_clean_files_save=$ac_clean_files
9000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
322e23db
UD
9001{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9003cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572
UD
9004#! $SHELL
9005# Generated by $as_me.
cd6ede75 9006# Run this file to recreate the current configuration.
cd6ede75 9007# Compiler output produced by configure, useful for debugging
3a12e572 9008# configure, is in config.log if it exists.
cd6ede75 9009
3a12e572 9010debug=false
2abf9ff1
RM
9011ac_cs_recheck=false
9012ac_cs_silent=false
3a12e572
UD
9013SHELL=\${CONFIG_SHELL-$SHELL}
9014_ACEOF
9015
322e23db 9016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572
UD
9017## --------------------- ##
9018## M4sh Initialization. ##
9019## --------------------- ##
9020
26f56c1c
UD
9021# Be more Bourne compatible
9022DUALCASE=1; export DUALCASE # for MKS sh
3a12e572
UD
9023if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9024 emulate sh
9025 NULLCMD=:
322e23db 9026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
f4b07664
RM
9027 # is contrary to our usage. Disable this feature.
9028 alias -g '${1+"$@"}'='"$@"'
26f56c1c
UD
9029 setopt NO_GLOB_SUBST
9030else
9031 case `(set -o) 2>/dev/null` in
9032 *posix*) set -o posix ;;
9033esac
9034
9035fi
9036
9037
9038
9039
9040# PATH needs CR
9041# Avoid depending upon Character Ranges.
9042as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9044as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9045as_cr_digits='0123456789'
9046as_cr_alnum=$as_cr_Letters$as_cr_digits
9047
322e23db
UD
9048as_nl='
9049'
9050export as_nl
9051# Printing a long string crashes Solaris 7 /usr/bin/printf.
9052as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9053as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9054as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9055if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9056 as_echo='printf %s\n'
9057 as_echo_n='printf %s'
9058else
9059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9061 as_echo_n='/usr/ucb/echo -n'
a152f366 9062 else
322e23db
UD
9063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9064 as_echo_n_body='eval
9065 arg=$1;
9066 case $arg in
9067 *"$as_nl"*)
9068 expr "X$arg" : "X\\(.*\\)$as_nl";
9069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9070 esac;
9071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9072 '
9073 export as_echo_n_body
9074 as_echo_n='sh -c $as_echo_n_body as_echo'
a152f366 9075 fi
322e23db
UD
9076 export as_echo_body
9077 as_echo='sh -c $as_echo_body as_echo'
9078fi
9079
9080# The user is always right.
9081if test "${PATH_SEPARATOR+set}" != set; then
9082 PATH_SEPARATOR=:
9083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9085 PATH_SEPARATOR=';'
9086 }
3a12e572
UD
9087fi
9088
3a12e572 9089# Support unset when possible.
9382fcee 9090if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3a12e572
UD
9091 as_unset=unset
9092else
9093 as_unset=false
9094fi
9095
f4b07664 9096
26f56c1c
UD
9097# IFS
9098# We need space, tab and new line, in precisely that order. Quoting is
9099# there to prevent editors from complaining about space-tab.
9100# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9101# splitting by setting IFS to empty value.)
26f56c1c
UD
9102IFS=" "" $as_nl"
9103
9104# Find who we are. Look in the path if we contain no directory separator.
9105case $0 in
9106 *[\\/]* ) as_myself=$0 ;;
9107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9113done
9114IFS=$as_save_IFS
9115
9116 ;;
9117esac
9118# We did not find ourselves, most probably we were run as `sh COMMAND'
9119# in which case we are not to be found in the path.
9120if test "x$as_myself" = x; then
9121 as_myself=$0
9122fi
9123if test ! -f "$as_myself"; then
322e23db 9124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26f56c1c
UD
9125 { (exit 1); exit 1; }
9126fi
9127
f4b07664 9128# Work around bugs in pre-3.0 UWIN ksh.
26f56c1c
UD
9129for as_var in ENV MAIL MAILPATH
9130do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9131done
f4b07664
RM
9132PS1='$ '
9133PS2='> '
9134PS4='+ '
9135
9136# NLS nuisances.
322e23db
UD
9137LC_ALL=C
9138export LC_ALL
9139LANGUAGE=C
9140export LANGUAGE
f4b07664
RM
9141
9142# Required to use basename.
26f56c1c
UD
9143if expr a : '\(a\)' >/dev/null 2>&1 &&
9144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
9145 as_expr=expr
9146else
9147 as_expr=false
9148fi
9149
26f56c1c 9150if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
9151 as_basename=basename
9152else
9153 as_basename=false
9154fi
3a12e572
UD
9155
9156
9157# Name of the executable.
26f56c1c 9158as_me=`$as_basename -- "$0" ||
3a12e572
UD
9159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9160 X"$0" : 'X\(//\)$' \| \
26f56c1c 9161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 9162$as_echo X/"$0" |
26f56c1c
UD
9163 sed '/^.*\/\([^/][^/]*\)\/*$/{
9164 s//\1/
9165 q
9166 }
9167 /^X\/\(\/\/\)$/{
9168 s//\1/
9169 q
9170 }
9171 /^X\/\(\/\).*/{
9172 s//\1/
9173 q
9174 }
9175 s/.*/./; q'`
3a12e572 9176
26f56c1c
UD
9177# CDPATH.
9178$as_unset CDPATH
3a12e572
UD
9179
9180
3a12e572 9181
3a12e572
UD
9182 as_lineno_1=$LINENO
9183 as_lineno_2=$LINENO
3a12e572 9184 test "x$as_lineno_1" != "x$as_lineno_2" &&
26f56c1c 9185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
cd6ede75 9186
3a12e572
UD
9187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9188 # uniformly replaced by the line number. The first 'sed' inserts a
26f56c1c
UD
9189 # line-number line after each line using $LINENO; the second 'sed'
9190 # does the real work. The second script uses 'N' to pair each
9191 # line-number line with the line containing $LINENO, and appends
9192 # trailing '-' during substitution so that $LINENO is not a special
9193 # case at line end.
3a12e572 9194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26f56c1c
UD
9195 # scripts with optimization help from Paolo Bonzini. Blame Lee
9196 # E. McMahon (1931-1989) for sed's syntax. :-)
9197 sed -n '
9198 p
9199 /[$]LINENO/=
9200 ' <$as_myself |
3a12e572 9201 sed '
26f56c1c
UD
9202 s/[$]LINENO.*/&-/
9203 t lineno
9204 b
9205 :lineno
3a12e572 9206 N
26f56c1c
UD
9207 :loop
9208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3a12e572 9209 t loop
26f56c1c 9210 s/-\n.*//
3a12e572 9211 ' >$as_me.lineno &&
26f56c1c 9212 chmod +x "$as_me.lineno" ||
322e23db 9213 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3a12e572
UD
9214 { (exit 1); exit 1; }; }
9215
9216 # Don't try to exec as it changes $[0], causing all sort of problems
9217 # (the dirname of $[0] is not the place where we might find the
26f56c1c
UD
9218 # original and so on. Autoconf is especially sensitive to this).
9219 . "./$as_me.lineno"
3a12e572
UD
9220 # Exit status is that of the last command.
9221 exit
9222}
cd6ede75 9223
cd6ede75 9224
26f56c1c
UD
9225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9226 as_dirname=dirname
9227else
9228 as_dirname=false
9229fi
9230
9231ECHO_C= ECHO_N= ECHO_T=
9232case `echo -n x` in
9233-n*)
9234 case `echo 'x\c'` in
9235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9236 *) ECHO_C='\c';;
9237 esac;;
9238*)
9239 ECHO_N='-n';;
3a12e572 9240esac
26f56c1c
UD
9241if expr a : '\(a\)' >/dev/null 2>&1 &&
9242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3a12e572
UD
9243 as_expr=expr
9244else
9245 as_expr=false
9246fi
cd6ede75 9247
3a12e572 9248rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
9249if test -d conf$$.dir; then
9250 rm -f conf$$.dir/conf$$.file
9251else
9252 rm -f conf$$.dir
322e23db
UD
9253 mkdir conf$$.dir 2>/dev/null
9254fi
9255if (echo >conf$$.file) 2>/dev/null; then
9256 if ln -s conf$$.file conf$$ 2>/dev/null; then
9257 as_ln_s='ln -s'
9258 # ... but there are two gotchas:
9259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9261 # In both cases, we have to default to `cp -p'.
9262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9263 as_ln_s='cp -p'
9264 elif ln conf$$.file conf$$ 2>/dev/null; then
9265 as_ln_s=ln
9266 else
3a12e572 9267 as_ln_s='cp -p'
322e23db 9268 fi
3a12e572
UD
9269else
9270 as_ln_s='cp -p'
cd6ede75 9271fi
26f56c1c
UD
9272rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9273rmdir conf$$.dir 2>/dev/null
cd6ede75 9274
f4b07664
RM
9275if mkdir -p . 2>/dev/null; then
9276 as_mkdir_p=:
9277else
9382fcee 9278 test -d ./-p && rmdir ./-p
f4b07664
RM
9279 as_mkdir_p=false
9280fi
9281
26f56c1c
UD
9282if test -x / >/dev/null 2>&1; then
9283 as_test_x='test -x'
9284else
9285 if ls -dL / >/dev/null 2>&1; then
9286 as_ls_L_option=L
9287 else
9288 as_ls_L_option=
9289 fi
9290 as_test_x='
9291 eval sh -c '\''
9292 if test -d "$1"; then
322e23db 9293 test -d "$1/.";
26f56c1c
UD
9294 else
9295 case $1 in
322e23db 9296 -*)set "./$1";;
26f56c1c
UD
9297 esac;
9298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9299 ???[sx]*):;;*)false;;esac;fi
9300 '\'' sh
9301 '
9302fi
9303as_executable_p=$as_test_x
cd6ede75 9304
3a12e572 9305# Sed expression to map a string onto a valid CPP name.
9382fcee 9306as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
9307
9308# Sed expression to map a string onto a valid variable name.
9382fcee 9309as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
9310
9311
3a12e572
UD
9312exec 6>&1
9313
26f56c1c 9314# Save the log message, to keep $[0] and so on meaningful, and to
3a12e572 9315# report actual input values of CONFIG_FILES etc. instead of their
26f56c1c
UD
9316# values after options handling.
9317ac_log="
f4b07664 9318This file was extended by GNU C Library $as_me (see version.h), which was
322e23db 9319generated by GNU Autoconf 2.63. Invocation command line was
3a12e572
UD
9320
9321 CONFIG_FILES = $CONFIG_FILES
9322 CONFIG_HEADERS = $CONFIG_HEADERS
9323 CONFIG_LINKS = $CONFIG_LINKS
9324 CONFIG_COMMANDS = $CONFIG_COMMANDS
9325 $ $0 $@
9326
26f56c1c
UD
9327on `(hostname || uname -n) 2>/dev/null | sed 1q`
9328"
9329
3a12e572
UD
9330_ACEOF
9331
322e23db
UD
9332case $ac_config_files in *"
9333"*) set x $ac_config_files; shift; ac_config_files=$*;;
9334esac
9335
9336case $ac_config_headers in *"
9337"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9338esac
9339
9340
9341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 9342# Files that config.status was made for.
26f56c1c
UD
9343config_files="$ac_config_files"
9344config_headers="$ac_config_headers"
9345config_commands="$ac_config_commands"
3a12e572 9346
26f56c1c 9347_ACEOF
3a12e572 9348
322e23db 9349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572
UD
9350ac_cs_usage="\
9351\`$as_me' instantiates files from templates according to the
9352current configuration.
9353
322e23db 9354Usage: $0 [OPTION]... [FILE]...
3a12e572
UD
9355
9356 -h, --help print this help, then exit
26f56c1c 9357 -V, --version print version number and configuration settings, then exit
322e23db
UD
9358 -q, --quiet, --silent
9359 do not print progress messages
3a12e572
UD
9360 -d, --debug don't remove temporary files
9361 --recheck update $as_me by reconfiguring in the same conditions
322e23db
UD
9362 --file=FILE[:TEMPLATE]
9363 instantiate the configuration file FILE
9364 --header=FILE[:TEMPLATE]
9365 instantiate the configuration header FILE
3a12e572
UD
9366
9367Configuration files:
9368$config_files
9369
9370Configuration headers:
9371$config_headers
9372
3a12e572
UD
9373Configuration commands:
9374$config_commands
9375
9376Report bugs to <bug-autoconf@gnu.org>."
3a12e572 9377
26f56c1c 9378_ACEOF
322e23db 9379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 9380ac_cs_version="\\
f4b07664 9381GNU C Library config.status (see version.h)
322e23db
UD
9382configured by $0, generated by GNU Autoconf 2.63,
9383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3a12e572 9384
322e23db 9385Copyright (C) 2008 Free Software Foundation, Inc.
3a12e572
UD
9386This config.status script is free software; the Free Software Foundation
9387gives unlimited permission to copy, distribute and modify it."
26f56c1c
UD
9388
9389ac_pwd='$ac_pwd'
9390srcdir='$srcdir'
9391INSTALL='$INSTALL'
322e23db
UD
9392AWK='$AWK'
9393test -n "\$AWK" || AWK=awk
3a12e572
UD
9394_ACEOF
9395
322e23db
UD
9396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9397# The default lists apply if the user does not specify any file.
3a12e572
UD
9398ac_need_defaults=:
9399while test $# != 0
9400do
9401 case $1 in
9402 --*=*)
26f56c1c
UD
9403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
f4b07664
RM
9405 ac_shift=:
9406 ;;
26f56c1c 9407 *)
f4b07664
RM
9408 ac_option=$1
9409 ac_optarg=$2
9410 ac_shift=shift
3a12e572 9411 ;;
cd6ede75
UD
9412 esac
9413
f4b07664 9414 case $ac_option in
3a12e572 9415 # Handling of the options.
2abf9ff1
RM
9416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9417 ac_cs_recheck=: ;;
26f56c1c 9418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
322e23db 9419 $as_echo "$ac_cs_version"; exit ;;
26f56c1c 9420 --debug | --debu | --deb | --de | --d | -d )
3a12e572
UD
9421 debug=: ;;
9422 --file | --fil | --fi | --f )
f4b07664 9423 $ac_shift
322e23db
UD
9424 case $ac_optarg in
9425 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9426 esac
9427 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
3a12e572
UD
9428 ac_need_defaults=false;;
9429 --header | --heade | --head | --hea )
f4b07664 9430 $ac_shift
322e23db
UD
9431 case $ac_optarg in
9432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9433 esac
9434 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
3a12e572 9435 ac_need_defaults=false;;
26f56c1c
UD
9436 --he | --h)
9437 # Conflict between --help and --header
322e23db 9438 { $as_echo "$as_me: error: ambiguous option: $1
26f56c1c
UD
9439Try \`$0 --help' for more information." >&2
9440 { (exit 1); exit 1; }; };;
9441 --help | --hel | -h )
322e23db 9442 $as_echo "$ac_cs_usage"; exit ;;
2abf9ff1
RM
9443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9445 ac_cs_silent=: ;;
3a12e572
UD
9446
9447 # This is an error.
322e23db 9448 -*) { $as_echo "$as_me: error: unrecognized option: $1
26f56c1c 9449Try \`$0 --help' for more information." >&2
3a12e572
UD
9450 { (exit 1); exit 1; }; } ;;
9451
26f56c1c
UD
9452 *) ac_config_targets="$ac_config_targets $1"
9453 ac_need_defaults=false ;;
cd6ede75 9454
3a12e572
UD
9455 esac
9456 shift
9457done
9458
2abf9ff1
RM
9459ac_configure_extra_args=
9460
9461if $ac_cs_silent; then
9462 exec 6>/dev/null
9463 ac_configure_extra_args="$ac_configure_extra_args --silent"
9464fi
9465
9466_ACEOF
322e23db 9467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2abf9ff1 9468if \$ac_cs_recheck; then
322e23db
UD
9469 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9470 shift
9471 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9472 CONFIG_SHELL='$SHELL'
26f56c1c 9473 export CONFIG_SHELL
322e23db 9474 exec "\$@"
2abf9ff1
RM
9475fi
9476
3a12e572 9477_ACEOF
322e23db 9478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
9479exec 5>>config.log
9480{
9481 echo
9482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9483## Running $as_me. ##
9484_ASBOX
322e23db 9485 $as_echo "$ac_log"
26f56c1c 9486} >&5
3a12e572 9487
26f56c1c 9488_ACEOF
322e23db 9489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3a12e572 9490#
26f56c1c 9491# INIT-COMMANDS
3a12e572 9492#
3a12e572
UD
9493config_vars='$config_vars'
9494
9495_ACEOF
9496
322e23db 9497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
9498
9499# Handling of arguments.
3a12e572
UD
9500for ac_config_target in $ac_config_targets
9501do
26f56c1c
UD
9502 case $ac_config_target in
9503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9504 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9505 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9506 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9507 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9508
322e23db
UD
9509 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9510$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3a12e572
UD
9511 { (exit 1); exit 1; }; };;
9512 esac
9513done
9514
26f56c1c 9515
3a12e572
UD
9516# If the user did not use the arguments to specify the items to instantiate,
9517# then the envvar interface is used. Set only those that are not.
9518# We use the long form for the default assignment because of an extremely
9519# bizarre bug on SunOS 4.1.3.
9520if $ac_need_defaults; then
9521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3a12e572
UD
9523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9524fi
9525
2abf9ff1 9526# Have a temporary directory for convenience. Make it in the build tree
26f56c1c 9527# simply because there is no reason against having it here, and in addition,
2abf9ff1 9528# creating and moving files from /tmp can sometimes cause problems.
26f56c1c
UD
9529# Hook for its removal unless debugging.
9530# Note that there is a small window in which the directory will not be cleaned:
9531# after its creation but before its name has been assigned to `$tmp'.
3a12e572
UD
9532$debug ||
9533{
26f56c1c
UD
9534 tmp=
9535 trap 'exit_status=$?
9536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9537' 0
3a12e572
UD
9538 trap '{ (exit 1); exit 1; }' 1 2 13 15
9539}
3a12e572 9540# Create a (secure) tmp directory for tmp files.
2abf9ff1 9541
3a12e572 9542{
26f56c1c 9543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3a12e572
UD
9544 test -n "$tmp" && test -d "$tmp"
9545} ||
9546{
26f56c1c
UD
9547 tmp=./conf$$-$RANDOM
9548 (umask 077 && mkdir "$tmp")
3a12e572
UD
9549} ||
9550{
322e23db 9551 $as_echo "$as_me: cannot create a temporary directory in ." >&2
3a12e572
UD
9552 { (exit 1); exit 1; }
9553}
9554
322e23db
UD
9555# Set up the scripts for CONFIG_FILES section.
9556# No need to generate them if there are no CONFIG_FILES.
9557# This happens for instance with `./config.status config.h'.
26f56c1c
UD
9558if test -n "$CONFIG_FILES"; then
9559
a152f366 9560
322e23db
UD
9561ac_cr='\r'
9562ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9563if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9564 ac_cs_awk_cr='\\r'
9565else
9566 ac_cs_awk_cr=$ac_cr
26f56c1c
UD
9567fi
9568
322e23db 9569echo 'BEGIN {' >"$tmp/subs1.awk" &&
26f56c1c
UD
9570_ACEOF
9571
9572
322e23db
UD
9573{
9574 echo "cat >conf$$subs.awk <<_ACEOF" &&
9575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9576 echo "_ACEOF"
9577} >conf$$subs.sh ||
9578 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9579$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9580 { (exit 1); exit 1; }; }
9581ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26f56c1c
UD
9582ac_delim='%!_!# '
9583for ac_last_try in false false false false false :; do
322e23db
UD
9584 . ./conf$$subs.sh ||
9585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9586$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9587 { (exit 1); exit 1; }; }
9588
9589 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9590 if test $ac_delim_n = $ac_delim_num; then
26f56c1c
UD
9591 break
9592 elif $ac_last_try; then
322e23db
UD
9593 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9594$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26f56c1c
UD
9595 { (exit 1); exit 1; }; }
9596 else
9597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9598 fi
9599done
322e23db
UD
9600rm -f conf$$subs.sh
9601
9602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9603cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9604_ACEOF
9605sed -n '
9606h
9607s/^/S["/; s/!.*/"]=/
9608p
9609g
9610s/^[^!]*!//
9611:repl
9612t repl
9613s/'"$ac_delim"'$//
9614t delim
9615:nl
9616h
9617s/\(.\{148\}\).*/\1/
9618t more1
9619s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9620p
9621n
9622b repl
9623:more1
9624s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9625p
9626g
9627s/.\{148\}//
9628t nl
9629:delim
9630h
9631s/\(.\{148\}\).*/\1/
9632t more2
9633s/["\\]/\\&/g; s/^/"/; s/$/"/
9634p
9635b
9636:more2
9637s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9638p
9639g
9640s/.\{148\}//
9641t delim
9642' <conf$$subs.awk | sed '
9643/^[^""]/{
9644 N
9645 s/\n//
9646}
9647' >>$CONFIG_STATUS || ac_write_fail=1
9648rm -f conf$$subs.awk
9649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9650_ACAWK
9651cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9652 for (key in S) S_is_set[key] = 1
9653 FS = "\a"
ff886b82 9654
322e23db
UD
9655}
9656{
9657 line = $ 0
9658 nfields = split(line, field, "@")
9659 substed = 0
9660 len = length(field[1])
9661 for (i = 2; i < nfields; i++) {
9662 key = field[i]
9663 keylen = length(key)
9664 if (S_is_set[key]) {
9665 value = S[key]
9666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9667 len += length(value) + length(field[++i])
9668 substed = 1
9669 } else
9670 len += 1 + keylen
9671 }
9672
9673 print line
9674}
cd6ede75 9675
322e23db 9676_ACAWK
26f56c1c 9677_ACEOF
322e23db
UD
9678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9679if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9681else
9682 cat
9683fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9684 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9685$as_echo "$as_me: error: could not setup config files machinery" >&2;}
9686 { (exit 1); exit 1; }; }
3a12e572 9687_ACEOF
26f56c1c 9688
26f56c1c
UD
9689# VPATH may cause trouble with some makes, so we remove $(srcdir),
9690# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9691# trailing colons and then remove the whole line if VPATH becomes empty
9692# (actually we leave an empty line to preserve line numbers).
9693if test "x$srcdir" = x.; then
9694 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9695s/:*\$(srcdir):*/:/
9696s/:*\${srcdir}:*/:/
9697s/:*@srcdir@:*/:/
9698s/^\([^=]*=[ ]*\):*/\1/
9699s/:*$//
9700s/^[^=]*=[ ]*$//
9701}'
9702fi
9703
322e23db 9704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
9705fi # test -n "$CONFIG_FILES"
9706
322e23db
UD
9707# Set up the scripts for CONFIG_HEADERS section.
9708# No need to generate them if there are no CONFIG_HEADERS.
9709# This happens for instance with `./config.status Makefile'.
9710if test -n "$CONFIG_HEADERS"; then
9711cat >"$tmp/defines.awk" <<\_ACAWK ||
9712BEGIN {
9713_ACEOF
9714
9715# Transform confdefs.h into an awk script `defines.awk', embedded as
9716# here-document in config.status, that substitutes the proper values into
9717# config.h.in to produce config.h.
9718
9719# Create a delimiter string that does not exist in confdefs.h, to ease
9720# handling of long lines.
9721ac_delim='%!_!# '
9722for ac_last_try in false false :; do
9723 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9724 if test -z "$ac_t"; then
9725 break
9726 elif $ac_last_try; then
9727 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9728$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9729 { (exit 1); exit 1; }; }
9730 else
9731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9732 fi
9733done
9734
9735# For the awk script, D is an array of macro values keyed by name,
9736# likewise P contains macro parameters if any. Preserve backslash
9737# newline sequences.
9738
9739ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9740sed -n '
9741s/.\{148\}/&'"$ac_delim"'/g
9742t rset
9743:rset
9744s/^[ ]*#[ ]*define[ ][ ]*/ /
9745t def
9746d
9747:def
9748s/\\$//
9749t bsnl
9750s/["\\]/\\&/g
9751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9752D["\1"]=" \3"/p
9753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9754d
9755:bsnl
9756s/["\\]/\\&/g
9757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9758D["\1"]=" \3\\\\\\n"\\/p
9759t cont
9760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9761t cont
9762d
9763:cont
9764n
9765s/.\{148\}/&'"$ac_delim"'/g
9766t clear
9767:clear
9768s/\\$//
9769t bsnlc
9770s/["\\]/\\&/g; s/^/"/; s/$/"/p
9771d
9772:bsnlc
9773s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9774b cont
9775' <confdefs.h | sed '
9776s/'"$ac_delim"'/"\\\
9777"/g' >>$CONFIG_STATUS || ac_write_fail=1
9778
9779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9780 for (key in D) D_is_set[key] = 1
9781 FS = "\a"
9782}
9783/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9784 line = \$ 0
9785 split(line, arg, " ")
9786 if (arg[1] == "#") {
9787 defundef = arg[2]
9788 mac1 = arg[3]
9789 } else {
9790 defundef = substr(arg[1], 2)
9791 mac1 = arg[2]
9792 }
9793 split(mac1, mac2, "(") #)
9794 macro = mac2[1]
9795 prefix = substr(line, 1, index(line, defundef) - 1)
9796 if (D_is_set[macro]) {
9797 # Preserve the white space surrounding the "#".
9798 print prefix "define", macro P[macro] D[macro]
9799 next
9800 } else {
9801 # Replace #undef with comments. This is necessary, for example,
9802 # in the case of _POSIX_SOURCE, which is predefined and required
9803 # on some systems where configure will not decide to define it.
9804 if (defundef == "undef") {
9805 print "/*", prefix defundef, macro, "*/"
9806 next
9807 }
9808 }
9809}
9810{ print }
9811_ACAWK
9812_ACEOF
9813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9814 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9815$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9816 { (exit 1); exit 1; }; }
9817fi # test -n "$CONFIG_HEADERS"
9818
26f56c1c 9819
322e23db
UD
9820eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9821shift
9822for ac_tag
26f56c1c
UD
9823do
9824 case $ac_tag in
9825 :[FHLC]) ac_mode=$ac_tag; continue;;
9826 esac
9827 case $ac_mode$ac_tag in
9828 :[FHL]*:*);;
322e23db
UD
9829 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9830$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26f56c1c
UD
9831 { (exit 1); exit 1; }; };;
9832 :[FH]-) ac_tag=-:-;;
9833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cd6ede75 9834 esac
26f56c1c
UD
9835 ac_save_IFS=$IFS
9836 IFS=:
9837 set x $ac_tag
9838 IFS=$ac_save_IFS
9839 shift
9840 ac_file=$1
9841 shift
9842
9843 case $ac_mode in
9844 :L) ac_source=$1;;
9845 :[FH])
9846 ac_file_inputs=
9847 for ac_f
9848 do
9849 case $ac_f in
9850 -) ac_f="$tmp/stdin";;
9851 *) # Look for the file first in the build tree, then in the source tree
9852 # (if the path is not absolute). The absolute path cannot be DOS-style,
9853 # because $ac_f cannot contain `:'.
9854 test -f "$ac_f" ||
9855 case $ac_f in
9856 [\\/$]*) false;;
9857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9858 esac ||
322e23db
UD
9859 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9860$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26f56c1c
UD
9861 { (exit 1); exit 1; }; };;
9862 esac
322e23db
UD
9863 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9864 ac_file_inputs="$ac_file_inputs '$ac_f'"
26f56c1c 9865 done
cd6ede75 9866
26f56c1c
UD
9867 # Let's still pretend it is `configure' which instantiates (i.e., don't
9868 # use $as_me), people would be surprised to read:
9869 # /* config.h. Generated by config.status. */
322e23db
UD
9870 configure_input='Generated from '`
9871 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9872 `' by configure.'
26f56c1c
UD
9873 if test x"$ac_file" != x-; then
9874 configure_input="$ac_file. $configure_input"
322e23db
UD
9875 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9876$as_echo "$as_me: creating $ac_file" >&6;}
26f56c1c 9877 fi
322e23db
UD
9878 # Neutralize special characters interpreted by sed in replacement strings.
9879 case $configure_input in #(
9880 *\&* | *\|* | *\\* )
9881 ac_sed_conf_input=`$as_echo "$configure_input" |
9882 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9883 *) ac_sed_conf_input=$configure_input;;
9884 esac
26f56c1c
UD
9885
9886 case $ac_tag in
322e23db
UD
9887 *:-:* | *:-) cat >"$tmp/stdin" \
9888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9889$as_echo "$as_me: error: could not create $ac_file" >&2;}
9890 { (exit 1); exit 1; }; } ;;
26f56c1c
UD
9891 esac
9892 ;;
9893 esac
9894
9895 ac_dir=`$as_dirname -- "$ac_file" ||
3a12e572 9896$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
9897 X"$ac_file" : 'X\(//\)[^/]' \| \
9898 X"$ac_file" : 'X\(//\)$' \| \
26f56c1c 9899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 9900$as_echo X"$ac_file" |
26f56c1c
UD
9901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9902 s//\1/
9903 q
9904 }
9905 /^X\(\/\/\)[^/].*/{
9906 s//\1/
9907 q
9908 }
9909 /^X\(\/\/\)$/{
9910 s//\1/
9911 q
9912 }
9913 /^X\(\/\).*/{
9914 s//\1/
9915 q
9916 }
9917 s/.*/./; q'`
9918 { as_dir="$ac_dir"
9919 case $as_dir in #(
9920 -*) as_dir=./$as_dir;;
9921 esac
9922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
f4b07664 9923 as_dirs=
26f56c1c
UD
9924 while :; do
9925 case $as_dir in #(
322e23db 9926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26f56c1c
UD
9927 *) as_qdir=$as_dir;;
9928 esac
9929 as_dirs="'$as_qdir' $as_dirs"
9930 as_dir=`$as_dirname -- "$as_dir" ||
f4b07664 9931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
9932 X"$as_dir" : 'X\(//\)[^/]' \| \
9933 X"$as_dir" : 'X\(//\)$' \| \
26f56c1c 9934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 9935$as_echo X"$as_dir" |
26f56c1c
UD
9936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9937 s//\1/
9938 q
9939 }
9940 /^X\(\/\/\)[^/].*/{
9941 s//\1/
9942 q
9943 }
9944 /^X\(\/\/\)$/{
9945 s//\1/
9946 q
9947 }
9948 /^X\(\/\).*/{
9949 s//\1/
9950 q
9951 }
9952 s/.*/./; q'`
9953 test -d "$as_dir" && break
f4b07664 9954 done
26f56c1c 9955 test -z "$as_dirs" || eval "mkdir $as_dirs"
322e23db
UD
9956 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9957$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
f4b07664 9958 { (exit 1); exit 1; }; }; }
3a12e572
UD
9959 ac_builddir=.
9960
26f56c1c
UD
9961case "$ac_dir" in
9962.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9963*)
322e23db 9964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 9965 # A ".." for each directory in $ac_dir_suffix.
322e23db 9966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
9967 case $ac_top_builddir_sub in
9968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9970 esac ;;
9971esac
9972ac_abs_top_builddir=$ac_pwd
9973ac_abs_builddir=$ac_pwd$ac_dir_suffix
9974# for backward compatibility:
9975ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
9976
9977case $srcdir in
26f56c1c 9978 .) # We are building in place.
3a12e572 9979 ac_srcdir=.
26f56c1c
UD
9980 ac_top_srcdir=$ac_top_builddir_sub
9981 ac_abs_top_srcdir=$ac_pwd ;;
9982 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 9983 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
9984 ac_top_srcdir=$srcdir
9985 ac_abs_top_srcdir=$srcdir ;;
9986 *) # Relative name.
9987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9988 ac_top_srcdir=$ac_top_build_prefix$srcdir
9989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 9990esac
26f56c1c 9991ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9382fcee 9992
cd6ede75 9993
26f56c1c
UD
9994 case $ac_mode in
9995 :F)
9996 #
9997 # CONFIG_FILE
9998 #
3a12e572
UD
9999
10000 case $INSTALL in
10001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26f56c1c 10002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cd6ede75 10003 esac
26f56c1c 10004_ACEOF
cd6ede75 10005
322e23db 10006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26f56c1c
UD
10007# If the template does not know about datarootdir, expand it.
10008# FIXME: This hack should be removed a few years after 2.60.
10009ac_datarootdir_hack=; ac_datarootdir_seen=
10010
322e23db
UD
10011ac_sed_dataroot='
10012/datarootdir/ {
26f56c1c
UD
10013 p
10014 q
10015}
10016/@datadir@/p
10017/@docdir@/p
10018/@infodir@/p
10019/@localedir@/p
10020/@mandir@/p
322e23db
UD
10021'
10022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26f56c1c
UD
10023*datarootdir*) ac_datarootdir_seen=yes;;
10024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
322e23db
UD
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10026$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26f56c1c 10027_ACEOF
322e23db 10028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26f56c1c
UD
10029 ac_datarootdir_hack='
10030 s&@datadir@&$datadir&g
10031 s&@docdir@&$docdir&g
10032 s&@infodir@&$infodir&g
10033 s&@localedir@&$localedir&g
10034 s&@mandir@&$mandir&g
10035 s&\\\${datarootdir}&$datarootdir&g' ;;
10036esac
3a12e572 10037_ACEOF
26f56c1c
UD
10038
10039# Neutralize VPATH when `$srcdir' = `.'.
10040# Shell code in configure.ac might set extrasub.
10041# FIXME: do we really want to maintain this feature?
322e23db
UD
10042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10043ac_sed_extra="$ac_vpsub
3a12e572
UD
10044$extrasub
10045_ACEOF
322e23db 10046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3a12e572
UD
10047:t
10048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
322e23db 10049s|@configure_input@|$ac_sed_conf_input|;t t
26f56c1c 10050s&@top_builddir@&$ac_top_builddir_sub&;t t
322e23db 10051s&@top_build_prefix@&$ac_top_build_prefix&;t t
26f56c1c
UD
10052s&@srcdir@&$ac_srcdir&;t t
10053s&@abs_srcdir@&$ac_abs_srcdir&;t t
10054s&@top_srcdir@&$ac_top_srcdir&;t t
10055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10056s&@builddir@&$ac_builddir&;t t
10057s&@abs_builddir@&$ac_abs_builddir&;t t
10058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10059s&@INSTALL@&$ac_INSTALL&;t t
10060$ac_datarootdir_hack
322e23db
UD
10061"
10062eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10064$as_echo "$as_me: error: could not create $ac_file" >&2;}
10065 { (exit 1); exit 1; }; }
26f56c1c
UD
10066
10067test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
322e23db 10070 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26f56c1c 10071which seems to be undefined. Please make sure it is defined." >&5
322e23db 10072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26f56c1c
UD
10073which seems to be undefined. Please make sure it is defined." >&2;}
10074
10075 rm -f "$tmp/stdin"
3a12e572 10076 case $ac_file in
322e23db
UD
10077 -) cat "$tmp/out" && rm -f "$tmp/out";;
10078 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10079 esac \
10080 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10081$as_echo "$as_me: error: could not create $ac_file" >&2;}
10082 { (exit 1); exit 1; }; }
26f56c1c
UD
10083 ;;
10084 :H)
10085 #
10086 # CONFIG_HEADER
10087 #
3a12e572 10088 if test x"$ac_file" != x-; then
322e23db
UD
10089 {
10090 $as_echo "/* $configure_input */" \
10091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10092 } >"$tmp/config.h" \
10093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10094$as_echo "$as_me: error: could not create $ac_file" >&2;}
10095 { (exit 1); exit 1; }; }
10096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10097 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10098$as_echo "$as_me: $ac_file is unchanged" >&6;}
3a12e572 10099 else
322e23db
UD
10100 rm -f "$ac_file"
10101 mv "$tmp/config.h" "$ac_file" \
10102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10103$as_echo "$as_me: error: could not create $ac_file" >&2;}
10104 { (exit 1); exit 1; }; }
f4b07664
RM
10105 fi
10106 else
322e23db
UD
10107 $as_echo "/* $configure_input */" \
10108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10109 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10110$as_echo "$as_me: error: could not create -" >&2;}
10111 { (exit 1); exit 1; }; }
f4b07664 10112 fi
26f56c1c 10113 ;;
9382fcee 10114
322e23db
UD
10115 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10116$as_echo "$as_me: executing $ac_file commands" >&6;}
26f56c1c
UD
10117 ;;
10118 esac
3a12e572
UD
10119
10120
26f56c1c
UD
10121 case $ac_file$ac_mode in
10122 "default":C)
c0fb8a56
UD
10123case $CONFIG_FILES in *config.make*)
10124echo "$config_vars" >> config.make;;
10125esac
3a12e572 10126test -d bits || mkdir bits ;;
26f56c1c 10127
3a12e572 10128 esac
26f56c1c 10129done # for ac_tag
3a12e572 10130
3a12e572
UD
10131
10132{ (exit 0); exit 0; }
10133_ACEOF
cd6ede75 10134chmod +x $CONFIG_STATUS
3a12e572
UD
10135ac_clean_files=$ac_clean_files_save
10136
322e23db
UD
10137test $ac_write_fail = 0 ||
10138 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10139$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10140 { (exit 1); exit 1; }; }
10141
3a12e572
UD
10142
10143# configure is writing to config.log, and then calls config.status.
10144# config.status does its own redirection, appending to config.log.
10145# Unfortunately, on DOS this fails, as config.log is still kept open
10146# by configure, so config.status won't be able to write to it; its
10147# output is simply discarded. So we exec the FD to /dev/null,
10148# effectively closing config.log, so it can be properly (re)opened and
10149# appended to by config.status. When coming back to configure, we
10150# need to make the FD available again.
10151if test "$no_create" != yes; then
10152 ac_cs_success=:
2abf9ff1
RM
10153 ac_config_status_args=
10154 test "$silent" = yes &&
10155 ac_config_status_args="$ac_config_status_args --quiet"
3a12e572 10156 exec 5>/dev/null
2abf9ff1 10157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3a12e572
UD
10158 exec 5>>config.log
10159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10160 # would make configure fail if this is the last instruction.
10161 $ac_cs_success || { (exit 1); exit 1; }
10162fi
cd6ede75 10163
3a12e572
UD
10164#
10165# CONFIG_SUBDIRS section.
10166#
cd6ede75
UD
10167if test "$no_recursion" != yes; then
10168
322e23db
UD
10169 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10170 # so they do not pile up.
cd6ede75
UD
10171 ac_sub_configure_args=
10172 ac_prev=
26f56c1c
UD
10173 eval "set x $ac_configure_args"
10174 shift
10175 for ac_arg
10176 do
cd6ede75
UD
10177 if test -n "$ac_prev"; then
10178 ac_prev=
10179 continue
10180 fi
3a12e572 10181 case $ac_arg in
cd6ede75
UD
10182 -cache-file | --cache-file | --cache-fil | --cache-fi \
10183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10184 ac_prev=cache_file ;;
10185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3a12e572
UD
10186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10187 | --c=*)
10188 ;;
10189 --config-cache | -C)
cd6ede75
UD
10190 ;;
10191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10192 ac_prev=srcdir ;;
10193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10194 ;;
3a12e572
UD
10195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10196 ac_prev=prefix ;;
10197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10198 ;;
322e23db
UD
10199 --disable-option-checking)
10200 ;;
26f56c1c
UD
10201 *)
10202 case $ac_arg in
322e23db 10203 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c
UD
10204 esac
10205 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
cd6ede75
UD
10206 esac
10207 done
10208
3a12e572
UD
10209 # Always prepend --prefix to ensure using the same prefix
10210 # in subdir configurations.
26f56c1c
UD
10211 ac_arg="--prefix=$prefix"
10212 case $ac_arg in
322e23db 10213 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26f56c1c
UD
10214 esac
10215 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10216
10217 # Pass --silent
10218 if test "$silent" = yes; then
10219 ac_sub_configure_args="--silent $ac_sub_configure_args"
10220 fi
3a12e572 10221
322e23db
UD
10222 # Always prepend --disable-option-checking to silence warnings, since
10223 # different subdirs can have different --enable and --with options.
10224 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10225
3a12e572
UD
10226 ac_popdir=`pwd`
10227 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cd6ede75
UD
10228
10229 # Do not complain, so a configure script can configure whichever
10230 # parts of a large source tree are present.
26f56c1c
UD
10231 test -d "$srcdir/$ac_dir" || continue
10232
10233 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
322e23db
UD
10234 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10235 $as_echo "$ac_msg" >&6
26f56c1c
UD
10236 { as_dir="$ac_dir"
10237 case $as_dir in #(
10238 -*) as_dir=./$as_dir;;
10239 esac
10240 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
f4b07664 10241 as_dirs=
26f56c1c
UD
10242 while :; do
10243 case $as_dir in #(
322e23db 10244 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26f56c1c
UD
10245 *) as_qdir=$as_dir;;
10246 esac
10247 as_dirs="'$as_qdir' $as_dirs"
10248 as_dir=`$as_dirname -- "$as_dir" ||
f4b07664 10249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
10250 X"$as_dir" : 'X\(//\)[^/]' \| \
10251 X"$as_dir" : 'X\(//\)$' \| \
26f56c1c 10252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
322e23db 10253$as_echo X"$as_dir" |
26f56c1c
UD
10254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10255 s//\1/
10256 q
10257 }
10258 /^X\(\/\/\)[^/].*/{
10259 s//\1/
10260 q
10261 }
10262 /^X\(\/\/\)$/{
10263 s//\1/
10264 q
10265 }
10266 /^X\(\/\).*/{
10267 s//\1/
10268 q
10269 }
10270 s/.*/./; q'`
10271 test -d "$as_dir" && break
f4b07664 10272 done
26f56c1c 10273 test -z "$as_dirs" || eval "mkdir $as_dirs"
322e23db
UD
10274 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10275$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
f4b07664 10276 { (exit 1); exit 1; }; }; }
3a12e572 10277 ac_builddir=.
cd6ede75 10278
26f56c1c
UD
10279case "$ac_dir" in
10280.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10281*)
322e23db 10282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26f56c1c 10283 # A ".." for each directory in $ac_dir_suffix.
322e23db 10284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26f56c1c
UD
10285 case $ac_top_builddir_sub in
10286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10288 esac ;;
10289esac
10290ac_abs_top_builddir=$ac_pwd
10291ac_abs_builddir=$ac_pwd$ac_dir_suffix
10292# for backward compatibility:
10293ac_top_builddir=$ac_top_build_prefix
cd6ede75 10294
3a12e572 10295case $srcdir in
26f56c1c 10296 .) # We are building in place.
3a12e572 10297 ac_srcdir=.
26f56c1c
UD
10298 ac_top_srcdir=$ac_top_builddir_sub
10299 ac_abs_top_srcdir=$ac_pwd ;;
10300 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 10301 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
10302 ac_top_srcdir=$srcdir
10303 ac_abs_top_srcdir=$srcdir ;;
10304 *) # Relative name.
10305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10306 ac_top_srcdir=$ac_top_build_prefix$srcdir
10307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9382fcee 10308esac
26f56c1c 10309ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3a12e572
UD
10310
10311
26f56c1c 10312 cd "$ac_dir"
cd6ede75
UD
10313
10314 # Check for guested configure; otherwise get Cygnus style configure.
26f56c1c
UD
10315 if test -f "$ac_srcdir/configure.gnu"; then
10316 ac_sub_configure=$ac_srcdir/configure.gnu
10317 elif test -f "$ac_srcdir/configure"; then
10318 ac_sub_configure=$ac_srcdir/configure
10319 elif test -f "$ac_srcdir/configure.in"; then
10320 # This should be Cygnus configure.
10321 ac_sub_configure=$ac_aux_dir/configure
cd6ede75 10322 else
322e23db
UD
10323 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10324$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
cd6ede75
UD
10325 ac_sub_configure=
10326 fi
10327
10328 # The recursion is here.
10329 if test -n "$ac_sub_configure"; then
cd6ede75 10330 # Make the cache file name correct relative to the subdirectory.
3a12e572
UD
10331 case $cache_file in
10332 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26f56c1c
UD
10333 *) # Relative name.
10334 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
cd6ede75 10335 esac
cd6ede75 10336
322e23db
UD
10337 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10338$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
cd6ede75 10339 # The eval makes quoting arguments work.
26f56c1c
UD
10340 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10341 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
322e23db
UD
10342 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10343$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
3a12e572 10344 { (exit 1); exit 1; }; }
cd6ede75
UD
10345 fi
10346
26f56c1c 10347 cd "$ac_popdir"
cd6ede75
UD
10348 done
10349fi
322e23db
UD
10350if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10351 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10352$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10353fi
cd6ede75 10354