]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
* stdlib/tst-setcontext.c: Set back_in_main before exit if
[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.
26f56c1c 4# Generated by GNU Autoconf 2.61 for GNU C Library (see version.h).
f4b07664
RM
5#
6# Report bugs to <glibc>.
3a12e572 7#
26f56c1c
UD
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 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=:
f4b07664
RM
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
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
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
3a12e572 54fi
cd6ede75 55
3a12e572 56# Support unset when possible.
9382fcee 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3a12e572
UD
58 as_unset=unset
59else
60 as_unset=false
61fi
62
f4b07664 63
26f56c1c
UD
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
f4b07664 97# Work around bugs in pre-3.0 UWIN ksh.
26f56c1c
UD
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
f4b07664
RM
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
2abf9ff1
RM
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
f4b07664 110do
9382fcee 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
f4b07664
RM
112 eval $as_var=C; export $as_var
113 else
26f56c1c 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
f4b07664
RM
115 fi
116done
117
118# Required to use basename.
26f56c1c
UD
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
121 as_expr=expr
122else
123 as_expr=false
124fi
125
26f56c1c 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
127 as_basename=basename
128else
129 as_basename=false
130fi
3a12e572
UD
131
132
133# Name of the executable.
26f56c1c 134as_me=`$as_basename -- "$0" ||
3a12e572
UD
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
26f56c1c 137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3a12e572 138echo X/"$0" |
26f56c1c
UD
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
3a12e572 152
26f56c1c
UD
153# CDPATH.
154$as_unset CDPATH
f4b07664 155
3a12e572 156
26f56c1c
UD
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
3a12e572 162fi
cd6ede75 163
26f56c1c
UD
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
cd6ede75 180
26f56c1c
UD
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
650425ce 188
26f56c1c
UD
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
3a12e572
UD
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
26f56c1c 229 case $as_dir in
3a12e572 230 /*)
26f56c1c
UD
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
3a12e572
UD
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
3a12e572 333 test "x$as_lineno_1" != "x$as_lineno_2" &&
26f56c1c
UD
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
650425ce 430
3a12e572
UD
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
26f56c1c
UD
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
3a12e572 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26f56c1c
UD
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
3a12e572 445 sed '
26f56c1c
UD
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
3a12e572 450 N
26f56c1c
UD
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3a12e572 453 t loop
26f56c1c 454 s/-\n.*//
3a12e572 455 ' >$as_me.lineno &&
26f56c1c 456 chmod +x "$as_me.lineno" ||
3a12e572
UD
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
26f56c1c
UD
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
3a12e572
UD
464 # Exit status is that of the last command.
465 exit
466}
650425ce
UD
467
468
26f56c1c
UD
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
3a12e572 484esac
63bda0c1 485
26f56c1c
UD
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3a12e572
UD
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
3a12e572
UD
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
26f56c1c
UD
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3a12e572 508 as_ln_s='cp -p'
3a12e572
UD
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
26f56c1c
UD
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
3a12e572 516
f4b07664
RM
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
9382fcee 520 test -d ./-p && rmdir ./-p
f4b07664
RM
521 as_mkdir_p=false
522fi
523
26f56c1c
UD
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
3a12e572
UD
546
547# Sed expression to map a string onto a valid CPP name.
9382fcee 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
549
550# Sed expression to map a string onto a valid variable name.
9382fcee 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
552
553
63bda0c1 554
26f56c1c 555exec 7<&0 </dev/null 6>&1
cd6ede75 556
3a12e572
UD
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
3a12e572
UD
562#
563# Initializations.
564#
cd6ede75 565ac_default_prefix=/usr/local
26f56c1c 566ac_clean_files=
f4b07664 567ac_config_libobj_dir=.
26f56c1c 568LIBOBJS=
3a12e572
UD
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
3a12e572 575# Identity of this package.
f4b07664
RM
576PACKAGE_NAME='GNU C Library'
577PACKAGE_TARNAME='c-library'
578PACKAGE_VERSION='(see version.h)'
579PACKAGE_STRING='GNU C Library (see version.h)'
580PACKAGE_BUGREPORT='glibc'
3a12e572
UD
581
582ac_unique_file="include/features.h"
3a12e572
UD
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
26f56c1c 586#ifdef HAVE_SYS_TYPES_H
3a12e572
UD
587# include <sys/types.h>
588#endif
26f56c1c 589#ifdef HAVE_SYS_STAT_H
3a12e572
UD
590# include <sys/stat.h>
591#endif
26f56c1c 592#ifdef STDC_HEADERS
3a12e572
UD
593# include <stdlib.h>
594# include <stddef.h>
595#else
26f56c1c 596# ifdef HAVE_STDLIB_H
3a12e572
UD
597# include <stdlib.h>
598# endif
599#endif
26f56c1c
UD
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
3a12e572
UD
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
26f56c1c 606#ifdef HAVE_STRINGS_H
3a12e572
UD
607# include <strings.h>
608#endif
26f56c1c 609#ifdef HAVE_INTTYPES_H
3a12e572 610# include <inttypes.h>
3a12e572 611#endif
26f56c1c
UD
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
3a12e572
UD
616# include <unistd.h>
617#endif"
618
26f56c1c
UD
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656with_fp
657with_cvs
658enable_check_abi
659oldest_abi
660bindnow
661force_install
662all_warnings
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671subdirs
672add_ons
673add_on_subdirs
674base_machine
675submachine
676sysnames
677sysdeps_add_ons
678INSTALL_PROGRAM
679INSTALL_SCRIPT
680INSTALL_DATA
681LN_S
682CC
683CFLAGS
684LDFLAGS
685CPPFLAGS
686ac_ct_CC
687OBJEXT
688BUILD_CC
689cross_compiling
690CPP
691CXX
692CXXFLAGS
693ac_ct_CXX
694AR
695OBJDUMP
696RANLIB
697MIG
698AS
699LD
700PWD_P
701MAKE
702MSGFMT
703MAKEINFO
704SED
705AUTOCONF
706SYSINCLUDES
707CXX_SYSINCLUDES
708libc_cv_gcc_static_libgcc
709BASH_SHELL
710libc_cv_have_bash2
711KSH
712libc_cv_have_ksh
713AWK
714PERL
715INSTALL_INFO
716BISON
717VERSIONING
718libc_cv_cc_with_libunwind
719libc_cv_Bgroup
720libc_cv_libgcc_s_suffix
721libc_cv_as_needed
722ASFLAGS_config
723libc_cv_z_combreloc
724libc_cv_z_execstack
725libc_cv_fpie
726libc_cv_hashstyle
727fno_unit_at_a_time
728libc_cv_ssp
729libc_cv_gnu89_inline
730libc_cv_have_initfini
731no_whole_archive
732exceptions
733LIBGD
734have_libaudit
735have_libcap
736have_selinux
737GREP
738EGREP
739sizeof_long_double
740libc_cv_gcc_unwind_find_fde
741uname_sysname
742uname_release
743uname_version
744old_glibc_headers
745libc_cv_slibdir
746libc_cv_localedir
747libc_cv_sysconfdir
748libc_cv_rootsbindir
749libc_cv_forced_unwind
750use_ldconfig
751ldd_rewrite_script
752elf
753xcoff
754static
755shared
756pic_default
757profile
758omitfp
759bounded
760static_nss
761nopic_initfini
762DEFINES
763mach_interface_list
764VERSION
765RELEASE
766LIBOBJS
767LTLIBOBJS'
f4b07664 768ac_subst_files=''
26f56c1c
UD
769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CPP
778CXX
779CXXFLAGS
780CCC'
781ac_subdirs_all=''
cd6ede75
UD
782
783# Initialize some variables set by options.
3a12e572
UD
784ac_init_help=
785ac_init_version=false
cd6ede75
UD
786# The variables have the same names as the options, with
787# dashes changed to underlines.
3a12e572 788cache_file=/dev/null
cd6ede75 789exec_prefix=NONE
cd6ede75 790no_create=
cd6ede75
UD
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
cd6ede75
UD
799verbose=
800x_includes=NONE
801x_libraries=NONE
3a12e572
UD
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
26f56c1c 808# (The list follows the same order as the GNU Coding Standards.)
cd6ede75
UD
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
26f56c1c
UD
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
cd6ede75
UD
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
cd6ede75
UD
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
26f56c1c
UD
819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
cd6ede75 828
cd6ede75 829ac_prev=
26f56c1c 830ac_dashdash=
cd6ede75
UD
831for ac_option
832do
cd6ede75
UD
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
26f56c1c 835 eval $ac_prev=\$ac_option
cd6ede75
UD
836 ac_prev=
837 continue
838 fi
839
26f56c1c
UD
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
cd6ede75
UD
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
26f56c1c
UD
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
cd6ede75
UD
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3a12e572 854 bindir=$ac_optarg ;;
cd6ede75
UD
855
856 -build | --build | --buil | --bui | --bu)
3a12e572 857 ac_prev=build_alias ;;
cd6ede75 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3a12e572 859 build_alias=$ac_optarg ;;
cd6ede75
UD
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3a12e572
UD
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
cd6ede75 870
26f56c1c 871 -datadir | --datadir | --datadi | --datad)
cd6ede75 872 ac_prev=datadir ;;
26f56c1c 873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3a12e572 874 datadir=$ac_optarg ;;
cd6ede75 875
26f56c1c
UD
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
cd6ede75 883 -disable-* | --disable-*)
3a12e572 884 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cd6ede75 885 # Reject names that are not valid shell variable names.
26f56c1c 886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3a12e572
UD
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
26f56c1c
UD
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
cd6ede75
UD
901
902 -enable-* | --enable-*)
3a12e572 903 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cd6ede75 904 # Reject names that are not valid shell variable names.
26f56c1c 905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3a12e572
UD
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
26f56c1c
UD
908 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_$ac_feature=\$ac_optarg ;;
cd6ede75
UD
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
3a12e572 918 exec_prefix=$ac_optarg ;;
cd6ede75
UD
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
3a12e572
UD
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
cd6ede75
UD
930
931 -host | --host | --hos | --ho)
3a12e572 932 ac_prev=host_alias ;;
cd6ede75 933 -host=* | --host=* | --hos=* | --ho=*)
3a12e572 934 host_alias=$ac_optarg ;;
cd6ede75 935
26f56c1c
UD
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
cd6ede75
UD
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
3a12e572 947 includedir=$ac_optarg ;;
cd6ede75
UD
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3a12e572 952 infodir=$ac_optarg ;;
cd6ede75
UD
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3a12e572 957 libdir=$ac_optarg ;;
cd6ede75
UD
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
3a12e572 964 libexecdir=$ac_optarg ;;
cd6ede75 965
26f56c1c
UD
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
cd6ede75 971 -localstatedir | --localstatedir | --localstatedi | --localstated \
26f56c1c 972 | --localstate | --localstat | --localsta | --localst | --locals)
cd6ede75
UD
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26f56c1c 975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3a12e572 976 localstatedir=$ac_optarg ;;
cd6ede75
UD
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3a12e572 981 mandir=$ac_optarg ;;
cd6ede75
UD
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3a12e572 988 | --no-cr | --no-c | -n)
cd6ede75
UD
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3a12e572 1002 oldincludedir=$ac_optarg ;;
cd6ede75
UD
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3a12e572 1007 prefix=$ac_optarg ;;
cd6ede75
UD
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3a12e572 1014 program_prefix=$ac_optarg ;;
cd6ede75
UD
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3a12e572 1021 program_suffix=$ac_optarg ;;
cd6ede75
UD
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
3a12e572 1038 program_transform_name=$ac_optarg ;;
cd6ede75 1039
26f56c1c
UD
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
cd6ede75
UD
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
3a12e572 1058 sbindir=$ac_optarg ;;
cd6ede75
UD
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
3a12e572 1069 sharedstatedir=$ac_optarg ;;
cd6ede75
UD
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
3a12e572 1074 site=$ac_optarg ;;
cd6ede75
UD
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3a12e572 1079 srcdir=$ac_optarg ;;
cd6ede75
UD
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3a12e572 1086 sysconfdir=$ac_optarg ;;
cd6ede75
UD
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
3a12e572 1089 ac_prev=target_alias ;;
cd6ede75 1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3a12e572 1091 target_alias=$ac_optarg ;;
cd6ede75
UD
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
3a12e572
UD
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
cd6ede75
UD
1098
1099 -with-* | --with-*)
3a12e572 1100 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cd6ede75 1101 # Reject names that are not valid shell variable names.
26f56c1c 1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3a12e572
UD
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
26f56c1c
UD
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=\$ac_optarg ;;
cd6ede75
UD
1107
1108 -without-* | --without-*)
3a12e572 1109 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cd6ede75 1110 # Reject names that are not valid shell variable names.
26f56c1c 1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3a12e572
UD
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
26f56c1c
UD
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=no ;;
cd6ede75
UD
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3a12e572 1126 x_includes=$ac_optarg ;;
cd6ede75
UD
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3a12e572 1133 x_libraries=$ac_optarg ;;
cd6ede75 1134
3a12e572
UD
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
cd6ede75
UD
1138 ;;
1139
3a12e572
UD
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
26f56c1c 1146 eval $ac_envvar=\$ac_optarg
3a12e572
UD
1147 export $ac_envvar ;;
1148
cd6ede75 1149 *)
3a12e572
UD
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
cd6ede75
UD
1155 ;;
1156
1157 esac
1158done
1159
1160if test -n "$ac_prev"; then
3a12e572
UD
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
cd6ede75 1164fi
cd6ede75 1165
26f56c1c
UD
1166# Be sure to have absolute directory names.
1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
cd6ede75 1171do
26f56c1c 1172 eval ac_val=\$$ac_var
3a12e572 1173 case $ac_val in
26f56c1c
UD
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
cd6ede75 1176 esac
26f56c1c
UD
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
cd6ede75
UD
1179done
1180
3a12e572
UD
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
cd6ede75 1198
3a12e572
UD
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
cd6ede75 1203
cd6ede75 1204
26f56c1c
UD
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1213
1214
cd6ede75
UD
1215# Find the source files, if location was not specified.
1216if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
26f56c1c
UD
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$0" ||
3a12e572 1220$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
26f56c1c 1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3a12e572 1224echo X"$0" |
26f56c1c
UD
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\).*/{
1238 s//\1/
1239 q
1240 }
1241 s/.*/./; q'`
cd6ede75 1242 srcdir=$ac_confdir
26f56c1c 1243 if test ! -r "$srcdir/$ac_unique_file"; then
cd6ede75
UD
1244 srcdir=..
1245 fi
1246else
1247 ac_srcdir_defaulted=no
1248fi
26f56c1c
UD
1249if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
3a12e572 1252 { (exit 1); exit 1; }; }
cd6ede75 1253fi
26f56c1c
UD
1254ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
f4b07664 1257 { (exit 1); exit 1; }; }
26f56c1c
UD
1258 pwd)`
1259# When building in place, set srcdir=.
1260if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1262fi
1263# Remove unnecessary trailing slashes from srcdir.
1264# Double slashes in file names in object file debugging info
1265# mess up M-x gdb in Emacs.
1266case $srcdir in
1267*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268esac
1269for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274done
3a12e572
UD
1275
1276#
1277# Report the --help message.
1278#
1279if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
f4b07664 1283\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
3a12e572
UD
1284
1285Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288VAR=VALUE. See below for descriptions of some of the useful variables.
1289
1290Defaults for the options are specified in brackets.
1291
1292Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302
3a12e572
UD
1303Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
9382fcee 1305 [$ac_default_prefix]
3a12e572 1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9382fcee 1307 [PREFIX]
3a12e572
UD
1308
1309By default, \`make install' will install all the files in
1310\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312for instance \`--prefix=\$HOME'.
1313
1314For better control, use the options below.
1315
1316Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
3a12e572
UD
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
26f56c1c
UD
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
3a12e572
UD
1336_ACEOF
1337
1338 cat <<\_ACEOF
1339
1340System types:
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343_ACEOF
1344fi
cd6ede75 1345
3a12e572 1346if test -n "$ac_init_help"; then
f4b07664
RM
1347 case $ac_init_help in
1348 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1349 esac
3a12e572
UD
1350 cat <<\_ACEOF
1351
1352Optional Features:
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6b7f6183
RM
1355 --disable-sanity-checks really do not use threads (should not be used except
1356 in special situations) [default=yes]
fd54683c
RM
1357 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1358 [default=no]
26f56c1c 1359 --enable-shared build shared library [default=yes if GNU ld & ELF]
11bf311e 1360 --enable-profile build profiled library [default=no]
26f56c1c
UD
1361 --enable-omitfp build undebuggable optimized library [default=no]
1362 --enable-bounded build with runtime bounds checking [default=no]
6b7f6183
RM
1363 --disable-versioning do not include versioning information in the library
1364 objects [default=yes if supported]
1365 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1366 [default=glibc default]
35f1e827
UD
1367 --enable-stackguard-randomization
1368 initialize __stack_chk_guard canary with a random
1369 number at program start
6b7f6183
RM
1370 --enable-add-ons[=DIRS...]
1371 configure and build add-ons in DIR1,DIR2,... search
1372 for add-ons if no parameter given
3a12e572 1373 --disable-hidden-plt do not hide internal function calls to avoid PLT
4df8c11d 1374 --enable-bind-now disable lazy relocations in DSOs
6b7f6183 1375 --enable-static-nss build static NSS modules [default=no]
3a12e572 1376 --disable-force-install don't force installation of files from this package,
6b7f6183
RM
1377 even if they are older than the installed files
1378 --enable-kernel=VERSION compile for compatibility with kernel not older than
1379 VERSION
3a12e572
UD
1380 --enable-all-warnings enable all useful warnings gcc can issue
1381
1382Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3a12e572
UD
1385 --with-gd=DIR find libgd include dir and library with prefix DIR
1386 --with-gd-include=DIR find libgd include files in DIR
1387 --with-gd-lib=DIR find libgd library files in DIR
6b7f6183
RM
1388 --with-fp if using floating-point hardware [default=yes]
1389 --with-binutils=PATH specify location of binutils (as and ld)
1390 --with-elf if using the ELF object format
74a30a58 1391 --with-selinux if building with SELinux support
6b7f6183 1392 --with-xcoff if using the XCOFF object format
3a12e572 1393 --without-cvs if CVS should not be used
6b7f6183 1394 --with-headers=PATH location of system headers to use (for example
26f56c1c 1395 /usr/src/linux/include) [default=compiler default]
3a12e572
UD
1396 --with-tls enable support for TLS
1397 --without-__thread do not use TLS features even when supporting them
2ceaa76a 1398 --with-cpu=CPU select code for CPU variant
3a12e572
UD
1399
1400Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
26f56c1c
UD
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
3a12e572 1408 CPP C preprocessor
925c3c5c
UD
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
3a12e572
UD
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
f4b07664 1415Report bugs to <glibc>.
3a12e572 1416_ACEOF
26f56c1c 1417ac_status=$?
3a12e572
UD
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
3a12e572 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
26f56c1c 1423 test -d "$ac_dir" || continue
3a12e572
UD
1424 ac_builddir=.
1425
26f56c1c
UD
1426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
3a12e572 1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26f56c1c
UD
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
1441
1442case $srcdir in
26f56c1c 1443 .) # We are building in place.
3a12e572 1444 ac_srcdir=.
26f56c1c
UD
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 1448 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 1455esac
26f56c1c
UD
1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
3a12e572
UD
1466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
26f56c1c
UD
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
3a12e572
UD
1470 done
1471fi
1472
26f56c1c 1473test -n "$ac_init_help" && exit $ac_status
3a12e572
UD
1474if $ac_init_version; then
1475 cat <<\_ACEOF
f4b07664 1476GNU C Library configure (see version.h)
26f56c1c 1477generated by GNU Autoconf 2.61
3a12e572 1478
26f56c1c
UD
1479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3a12e572
UD
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
26f56c1c 1484 exit
3a12e572 1485fi
26f56c1c 1486cat >config.log <<_ACEOF
3a12e572
UD
1487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
f4b07664 1490It was created by GNU C Library $as_me (see version.h), which was
26f56c1c 1491generated by GNU Autoconf 2.61. Invocation command line was
3a12e572
UD
1492
1493 $ $0 $@
1494
1495_ACEOF
26f56c1c 1496exec 5>>config.log
3a12e572
UD
1497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
26f56c1c 1515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3a12e572
UD
1516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528done
26f56c1c 1529IFS=$as_save_IFS
3a12e572
UD
1530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
2abf9ff1 1545# Strip out --silent because we don't want to record it for future runs.
3a12e572 1546# Also quote any args containing shell meta-characters.
2abf9ff1 1547# Make two passes to allow for proper duplicate-argument suppression.
3a12e572 1548ac_configure_args=
2abf9ff1
RM
1549ac_configure_args0=
1550ac_configure_args1=
2abf9ff1
RM
1551ac_must_keep_next=false
1552for ac_pass in 1 2
3a12e572 1553do
2abf9ff1
RM
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
26f56c1c 1561 *\'*)
2abf9ff1
RM
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 2)
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
9382fcee 1569 ac_must_keep_next=false # Got value, back to normal.
2abf9ff1 1570 else
9382fcee
RM
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
2abf9ff1 1582 fi
26f56c1c 1583 ac_configure_args="$ac_configure_args '$ac_arg'"
2abf9ff1
RM
1584 ;;
1585 esac
1586 done
3a12e572 1587done
2abf9ff1
RM
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
3a12e572
UD
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
26f56c1c
UD
1594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3a12e572
UD
1596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
f4b07664 1600
3a12e572
UD
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
26f56c1c
UD
1608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
3a12e572 1623 (set) 2>&1 |
26f56c1c
UD
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
3a12e572 1626 sed -n \
26f56c1c
UD
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
3a12e572 1630 *)
26f56c1c 1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 1632 ;;
26f56c1c
UD
1633 esac |
1634 sort
1635)
3a12e572 1636 echo
f4b07664
RM
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
26f56c1c
UD
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
26f56c1c
UD
1656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
f4b07664
RM
1659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
26f56c1c
UD
1663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
f4b07664
RM
1668 done | sort
1669 echo
1670 fi
1671
3a12e572
UD
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
26f56c1c 1679 cat confdefs.h
3a12e572
UD
1680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
26f56c1c
UD
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3a12e572 1688 exit $exit_status
26f56c1c 1689' 0
3a12e572
UD
1690for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
26f56c1c 1696rm -f -r conftest* confdefs.h
3a12e572
UD
1697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722_ACEOF
1723
1724
1725# Let the site file select an alternate cache file if it wants to.
cd6ede75 1726# Prefer explicitly selected file to automatically selected ones.
26f56c1c
UD
1727if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
cd6ede75 1734fi
26f56c1c
UD
1735shift
1736for ac_site_file
1737do
cd6ede75 1738 if test -r "$ac_site_file"; then
3a12e572
UD
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
cd6ede75
UD
1742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
3a12e572
UD
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
26f56c1c
UD
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
3a12e572
UD
1755 esac
1756 fi
cd6ede75 1757else
3a12e572
UD
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
26f56c1c 1766for ac_var in $ac_precious_vars; do
3a12e572
UD
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
26f56c1c
UD
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
3a12e572
UD
1771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
9382fcee 1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3a12e572 1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9382fcee 1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
3a12e572 1786echo "$as_me: former value: $ac_old_val" >&2;}
9382fcee 1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
3a12e572 1788echo "$as_me: current value: $ac_new_val" >&2;}
9382fcee 1789 ac_cache_corrupted=:
3a12e572
UD
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
26f56c1c 1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3a12e572
UD
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
cd6ede75
UD
1810fi
1811
3a12e572
UD
1812
1813
cd6ede75 1814
63bda0c1 1815
cd6ede75
UD
1816
1817
3a12e572
UD
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
f4b07664
RM
1829
1830
1831
1832
1833
1834
1835
26f56c1c
UD
1836ac_ext=c
1837ac_cpp='$CPP $CPPFLAGS'
1838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840ac_compiler_gnu=$ac_cv_c_compiler_gnu
f4b07664
RM
1841
1842
1843
26f56c1c 1844ac_config_headers="$ac_config_headers config.h"
3a12e572 1845
444518fe 1846ac_aux_dir=
26f56c1c
UD
1847for ac_dir in scripts "$srcdir"/scripts; do
1848 if test -f "$ac_dir/install-sh"; then
444518fe
UD
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install-sh -c"
1851 break
26f56c1c 1852 elif test -f "$ac_dir/install.sh"; then
444518fe
UD
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/install.sh -c"
1855 break
26f56c1c 1856 elif test -f "$ac_dir/shtool"; then
3a12e572
UD
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/shtool install -c"
1859 break
444518fe
UD
1860 fi
1861done
1862if test -z "$ac_aux_dir"; then
26f56c1c
UD
1863 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1864echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
3a12e572 1865 { (exit 1); exit 1; }; }
444518fe 1866fi
26f56c1c
UD
1867
1868# These three variables are undocumented and unsupported,
1869# and are intended to be withdrawn in a future Autoconf release.
1870# They can cause serious problems if a builder's source tree is in a directory
1871# whose full name contains unusual characters.
1872ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1873ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1874ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1875
444518fe 1876
cd6ede75 1877
c72637d4
RM
1878if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1879 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1880echo "$as_me: error: you must configure in a separate build directory" >&2;}
1881 { (exit 1); exit 1; }; }
1882fi
1883
cd6ede75
UD
1884# This will get text that should go into config.make.
1885config_vars=
1886
c8f3e6db 1887# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3a12e572 1888
26f56c1c 1889# Check whether --with-gd was given.
c8f3e6db 1890if test "${with_gd+set}" = set; then
26f56c1c 1891 withval=$with_gd; case "$with_gd" in
e41db95b
UD
1892yes|''|no) ;;
1893*) libgd_include="-I$withval/include"
c8f3e6db
UD
1894 libgd_ldflags="-L$withval/lib" ;;
1895esac
1896
26f56c1c
UD
1897fi
1898
c8f3e6db 1899
26f56c1c 1900# Check whether --with-gd-include was given.
e41db95b 1901if test "${with_gd_include+set}" = set; then
26f56c1c 1902 withval=$with_gd_include; case "$with_gd_include" in
e41db95b
UD
1903''|no) ;;
1904*) libgd_include="-I$withval" ;;
1905esac
1906
26f56c1c
UD
1907fi
1908
e41db95b 1909
26f56c1c 1910# Check whether --with-gd-lib was given.
e41db95b 1911if test "${with_gd_lib+set}" = set; then
26f56c1c 1912 withval=$with_gd_lib; case "$with_gd_lib" in
e41db95b
UD
1913''|no) ;;
1914*) libgd_ldflags="-L$withval" ;;
1915esac
1916
26f56c1c
UD
1917fi
1918
e41db95b
UD
1919
1920if test -n "$libgd_include"; then
1921 config_vars="$config_vars
cf90163d 1922CFLAGS-memusagestat.c = $libgd_include"
e41db95b
UD
1923fi
1924if test -n "$libgd_ldflags"; then
1925 config_vars="$config_vars
1926libgd-LDFLAGS = $libgd_ldflags"
1927fi
cd6ede75 1928
3a12e572 1929
26f56c1c 1930# Check whether --with-fp was given.
cd6ede75 1931if test "${with_fp+set}" = set; then
26f56c1c 1932 withval=$with_fp; with_fp=$withval
cd6ede75
UD
1933else
1934 with_fp=yes
26f56c1c
UD
1935fi
1936
cd6ede75 1937
675322a5 1938
26f56c1c 1939# Check whether --with-binutils was given.
650425ce 1940if test "${with_binutils+set}" = set; then
26f56c1c 1941 withval=$with_binutils; path_binutils=$withval
a5a0310d 1942else
650425ce 1943 path_binutils=''
26f56c1c
UD
1944fi
1945
cd6ede75 1946
26f56c1c 1947# Check whether --with-elf was given.
cd6ede75 1948if test "${with_elf+set}" = set; then
26f56c1c 1949 withval=$with_elf; elf=$withval
cd6ede75
UD
1950else
1951 elf=no
26f56c1c
UD
1952fi
1953
cd6ede75 1954
26f56c1c 1955# Check whether --with-selinux was given.
74a30a58 1956if test "${with_selinux+set}" = set; then
26f56c1c 1957 withval=$with_selinux; with_selinux=$withval
74a30a58
UD
1958else
1959 with_selinux=auto
26f56c1c
UD
1960fi
1961
74a30a58 1962
26f56c1c 1963# Check whether --with-xcoff was given.
5af3245a 1964if test "${with_xcoff+set}" = set; then
26f56c1c 1965 withval=$with_xcoff; xcoff=$withval
5af3245a
UD
1966else
1967 xcoff=no
26f56c1c
UD
1968fi
1969
5af3245a 1970
26f56c1c 1971# Check whether --with-cvs was given.
d67281a7 1972if test "${with_cvs+set}" = set; then
26f56c1c 1973 withval=$with_cvs; with_cvs=$withval
d67281a7
UD
1974else
1975 with_cvs=yes
26f56c1c
UD
1976fi
1977
6b3f2b3d
UD
1978if test "$with_cvs" = yes; then
1979 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1980 then
1981 with_cvs=no
1982 fi
4442d7e8 1983fi
d67281a7 1984
cd6ede75 1985
3a12e572 1986
26f56c1c 1987# Check whether --with-headers was given.
3c720987 1988if test "${with_headers+set}" = set; then
26f56c1c 1989 withval=$with_headers; sysheaders=$withval
3c720987
UD
1990else
1991 sysheaders=''
26f56c1c
UD
1992fi
1993
3c720987 1994
26f56c1c 1995# Check whether --enable-sanity-checks was given.
cd6ede75 1996if test "${enable_sanity_checks+set}" = set; then
26f56c1c 1997 enableval=$enable_sanity_checks; enable_sanity=$enableval
cd6ede75
UD
1998else
1999 enable_sanity=yes
26f56c1c
UD
2000fi
2001
cd6ede75 2002
7dbde9db 2003
26f56c1c 2004# Check whether --enable-check-abi was given.
7dbde9db 2005if test "${enable_check_abi+set}" = set; then
26f56c1c 2006 enableval=$enable_check_abi; enable_check_abi=$enableval
7dbde9db 2007else
fd54683c 2008 enable_check_abi=no
26f56c1c
UD
2009fi
2010
7dbde9db 2011
5c2a0669 2012static=yes
26f56c1c 2013# Check whether --enable-shared was given.
cd6ede75 2014if test "${enable_shared+set}" = set; then
26f56c1c 2015 enableval=$enable_shared; shared=$enableval
cd6ede75
UD
2016else
2017 shared=default
26f56c1c
UD
2018fi
2019
2020# Check whether --enable-profile was given.
cd6ede75 2021if test "${enable_profile+set}" = set; then
26f56c1c 2022 enableval=$enable_profile; profile=$enableval
cd6ede75 2023else
11bf311e 2024 profile=no
26f56c1c
UD
2025fi
2026
2027# Check whether --enable-omitfp was given.
cd6ede75 2028if test "${enable_omitfp+set}" = set; then
26f56c1c 2029 enableval=$enable_omitfp; omitfp=$enableval
cd6ede75
UD
2030else
2031 omitfp=no
26f56c1c
UD
2032fi
2033
2034# Check whether --enable-bounded was given.
cd6ede75 2035if test "${enable_bounded+set}" = set; then
26f56c1c 2036 enableval=$enable_bounded; bounded=$enableval
cd6ede75
UD
2037else
2038 bounded=no
26f56c1c
UD
2039fi
2040
2041# Check whether --enable-versioning was given.
650425ce 2042if test "${enable_versioning+set}" = set; then
26f56c1c 2043 enableval=$enable_versioning; enable_versioning=$enableval
650425ce
UD
2044else
2045 enable_versioning=yes
26f56c1c
UD
2046fi
2047
cd6ede75 2048
26f56c1c 2049# Check whether --enable-oldest-abi was given.
62ab42d6 2050if test "${enable_oldest_abi+set}" = set; then
26f56c1c 2051 enableval=$enable_oldest_abi; oldest_abi=$enableval
62ab42d6
UD
2052else
2053 oldest_abi=no
26f56c1c
UD
2054fi
2055
62ab42d6
UD
2056if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2057 oldest_abi=default
2058else
3a12e572 2059 cat >>confdefs.h <<_ACEOF
62ab42d6 2060#define GLIBC_OLDEST_ABI "$oldest_abi"
3a12e572 2061_ACEOF
62ab42d6
UD
2062
2063fi
2064
2065
26f56c1c 2066# Check whether --enable-stackguard-randomization was given.
35f1e827 2067if test "${enable_stackguard_randomization+set}" = set; then
26f56c1c 2068 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
35f1e827
UD
2069else
2070 enable_stackguard_randomize=no
26f56c1c
UD
2071fi
2072
35f1e827
UD
2073if test "$enable_stackguard_randomize" = yes; then
2074 cat >>confdefs.h <<\_ACEOF
2075#define ENABLE_STACKGUARD_RANDOMIZE 1
2076_ACEOF
2077
2078fi
2079
26f56c1c 2080# Check whether --enable-add-ons was given.
cd6ede75 2081if test "${enable_add_ons+set}" = set; then
26f56c1c 2082 enableval=$enable_add_ons;
cd6ede75 2083else
e0a3ed4f 2084 enable_add_ons=yes
26f56c1c 2085fi
cd6ede75 2086
61952351 2087
26f56c1c
UD
2088
2089# Check whether --with-tls was given.
8d4b5a8a 2090if test "${with_tls+set}" = set; then
26f56c1c 2091 withval=$with_tls; usetls=$withval
8d4b5a8a 2092else
619f9448 2093 usetls=yes
26f56c1c 2094fi
8d4b5a8a
UD
2095
2096
26f56c1c
UD
2097
2098# Check whether --with-__thread was given.
5b8f26b4 2099if test "${with___thread+set}" = set; then
26f56c1c 2100 withval=$with___thread; use__thread=$withval
5b8f26b4
RM
2101else
2102 use__thread=yes
26f56c1c 2103fi
5b8f26b4 2104
26f56c1c
UD
2105
2106# Check whether --enable-hidden-plt was given.
749a9a4f 2107if test "${enable_hidden_plt+set}" = set; then
26f56c1c 2108 enableval=$enable_hidden_plt; hidden=$enableval
749a9a4f
RM
2109else
2110 hidden=yes
26f56c1c
UD
2111fi
2112
749a9a4f 2113if test "x$hidden" = xno; then
3a12e572 2114 cat >>confdefs.h <<\_ACEOF
749a9a4f 2115#define NO_HIDDEN 1
3a12e572 2116_ACEOF
749a9a4f
RM
2117
2118fi
2119
26f56c1c 2120# Check whether --enable-bind-now was given.
4df8c11d 2121if test "${enable_bind_now+set}" = set; then
26f56c1c 2122 enableval=$enable_bind_now; bindnow=$enableval
4df8c11d
UD
2123else
2124 bindnow=no
26f56c1c 2125fi
4df8c11d
UD
2126
2127
26f56c1c
UD
2128
2129# Check whether --enable-static-nss was given.
cd6ede75 2130if test "${enable_static_nss+set}" = set; then
26f56c1c 2131 enableval=$enable_static_nss; static_nss=$enableval
cd6ede75
UD
2132else
2133 static_nss=no
26f56c1c
UD
2134fi
2135
834cef7c 2136if test x"$static_nss" = xyes || test x"$shared" = xno; then
3172f58f 2137 static_nss=yes
3a12e572 2138 cat >>confdefs.h <<\_ACEOF
cd6ede75 2139#define DO_STATIC_NSS 1
3a12e572 2140_ACEOF
cd6ede75
UD
2141
2142fi
2143
26f56c1c 2144# Check whether --enable-force-install was given.
73237de3 2145if test "${enable_force_install+set}" = set; then
26f56c1c 2146 enableval=$enable_force_install; force_install=$enableval
73237de3
UD
2147else
2148 force_install=yes
26f56c1c 2149fi
73237de3
UD
2150
2151
26f56c1c
UD
2152
2153# Check whether --enable-kernel was given.
958f238f 2154if test "${enable_kernel+set}" = set; then
26f56c1c
UD
2155 enableval=$enable_kernel; minimum_kernel=$enableval
2156fi
2157
654de60c
UD
2158if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2159 # Better nothing than this.
2160 minimum_kernel=""
78bba25c
UD
2161else
2162 if test "$minimum_kernel" = current; then
2163 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2164 fi
654de60c 2165fi
958f238f 2166
26f56c1c 2167# Check whether --enable-all-warnings was given.
6cc7d725 2168if test "${enable_all_warnings+set}" = set; then
26f56c1c
UD
2169 enableval=$enable_all_warnings; all_warnings=$enableval
2170fi
2171
958f238f 2172
2a068d20 2173
958f238f 2174# Make sure we can run config.sub.
26f56c1c
UD
2175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3a12e572
UD
2178 { (exit 1); exit 1; }; }
2179
26f56c1c
UD
2180{ echo "$as_me:$LINENO: checking build system type" >&5
2181echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3a12e572
UD
2182if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
26f56c1c
UD
2185 ac_build_alias=$build_alias
2186test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188test "x$ac_build_alias" = x &&
3a12e572
UD
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
26f56c1c
UD
2192ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3a12e572
UD
2195 { (exit 1); exit 1; }; }
2196
2197fi
26f56c1c
UD
2198{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199echo "${ECHO_T}$ac_cv_build" >&6; }
2200case $ac_cv_build in
2201*-*-*) ;;
2202*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2205esac
3a12e572 2206build=$ac_cv_build
26f56c1c
UD
2207ac_save_IFS=$IFS; IFS='-'
2208set x $ac_cv_build
2209shift
2210build_cpu=$1
2211build_vendor=$2
2212shift; shift
2213# Remember, the first character of IFS is used to create $*,
2214# except with old shells:
2215build_os=$*
2216IFS=$ac_save_IFS
2217case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2218
2219
2220{ echo "$as_me:$LINENO: checking host system type" >&5
2221echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3a12e572
UD
2222if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
26f56c1c
UD
2225 if test "x$host_alias" = x; then
2226 ac_cv_host=$ac_cv_build
2227else
2228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2230echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3a12e572 2231 { (exit 1); exit 1; }; }
26f56c1c 2232fi
3a12e572
UD
2233
2234fi
26f56c1c
UD
2235{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2236echo "${ECHO_T}$ac_cv_host" >&6; }
2237case $ac_cv_host in
2238*-*-*) ;;
2239*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2240echo "$as_me: error: invalid value of canonical host" >&2;}
2241 { (exit 1); exit 1; }; };;
2242esac
3a12e572 2243host=$ac_cv_host
26f56c1c
UD
2244ac_save_IFS=$IFS; IFS='-'
2245set x $ac_cv_host
2246shift
2247host_cpu=$1
2248host_vendor=$2
2249shift; shift
2250# Remember, the first character of IFS is used to create $*,
2251# except with old shells:
2252host_os=$*
2253IFS=$ac_save_IFS
2254case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
cd6ede75 2255
cd6ede75
UD
2256
2257
2258# The way shlib-versions is used to generate soversions.mk uses a
2259# fairly simplistic model for name recognition that can't distinguish
2260# i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2261# of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2262# tell. This doesn't get used much beyond that, so it's fairly safe.
2263case "$host_os" in
2264linux*)
2265 ;;
2266gnu*)
2267 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2268 ;;
2269esac
2270
2271# We keep the original values in `$config_*' and never modify them, so we
2272# can write them unchanged into config.make. Everything else uses
2273# $machine, $vendor, and $os, and changes them whenever convenient.
2274config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2275
0816838f
UD
2276# Don't allow vendor == "unknown"
2277test "$config_vendor" = unknown && config_vendor=
2278config_os="`echo $config_os | sed 's/^unknown-//'`"
2279
cd6ede75
UD
2280# Some configurations imply other options.
2281case "$host_os" in
cd6ede75
UD
2282# i586-linuxaout is mangled into i586-pc-linux-gnuaout
2283linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2284 ;;
ffa8d2a0 2285gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
cd6ede75
UD
2286 # These systems (almost) always use the ELF format.
2287 elf=yes
2288 ;;
5af3245a
UD
2289aix*)
2290 # These systems are always xcoff
2291 xcoff=yes
a711b01d 2292 elf=no
5af3245a 2293 ;;
cd6ede75
UD
2294esac
2295
8f73811b
RM
2296# The configure fragment of an add-on port can modify these to supplement
2297# or override the table in the case statement below. No fragment should
2298# ever change the config_* variables, however.
cd6ede75
UD
2299machine=$config_machine
2300vendor=$config_vendor
2301os=$config_os
b22d21b3 2302base_os=''
cd6ede75 2303
a808d541
UD
2304# config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2305# Unify this here.
2306if test "$machine" = rs6000; then
2307 machine="powerpc"
2308fi
2309
f4b07664
RM
2310# Braindead PowerPC box with absolutely no FPU.
2311case "$machine-$host_os" in
2312 powerpc*-*soft)
2313 with_fp=no
2314 ;;
2315esac
2316
2ceaa76a
RM
2317submachine=
2318
26f56c1c 2319# Check whether --with-cpu was given.
2ceaa76a 2320if test "${with_cpu+set}" = set; then
26f56c1c 2321 withval=$with_cpu; case "$withval" in
2ceaa76a
RM
2322 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2323echo "$as_me: error: --with-cpu requires an argument" >&2;}
2324 { (exit 1); exit 1; }; } ;;
2325 no) ;;
2326 *) submachine="$withval" ;;
2327 esac
2328
26f56c1c
UD
2329fi
2330
2ceaa76a 2331
8f73811b 2332
e0a3ed4f 2333# An add-on can set this when it wants to disable the sanity check below.
8f73811b
RM
2334libc_config_ok=no
2335
8f73811b
RM
2336subdirs="$subdirs "
2337
2338
e0a3ed4f
RM
2339case "$enable_add_ons" in
2340''|no) add_ons= ;;
2341yes|'*')
2342 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2343 sed 's@/[^/]*$@@' | sort | uniq`
2344 add_ons_automatic=yes
2345 ;;
2346*) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2347 add_ons_automatic=no ;;
2348esac
2349
2350configured_add_ons=
8f73811b
RM
2351add_ons_sfx=
2352add_ons_pfx=
2353if test x"$add_ons" != x; then
2354 for f in $add_ons; do
2355 # Some sanity checks
2356 case "$f" in
2357 crypt)
2358 { { echo "$as_me:$LINENO: error:
2359*** It seems that you're using an old \`crypt' add-on. crypt is now
2360*** part of glibc and using the old add-on will not work with this
2361*** release. Start again with fresh sources and without the old
2362*** \`crypt' add-on." >&5
2363echo "$as_me: error:
2364*** It seems that you're using an old \`crypt' add-on. crypt is now
2365*** part of glibc and using the old add-on will not work with this
2366*** release. Start again with fresh sources and without the old
2367*** \`crypt' add-on." >&2;}
2368 { (exit 1); exit 1; }; }
2369 ;;
2370 localedata)
2371 { { echo "$as_me:$LINENO: error:
2372*** It seems that you're using an old \`localedata' add-on. localedata
2373*** is now part of glibc and using the old add-on will not work with
2374*** this release. Start again with fresh sources and without the old
2375*** \`localedata' add-on." >&5
2376echo "$as_me: error:
2377*** It seems that you're using an old \`localedata' add-on. localedata
2378*** is now part of glibc and using the old add-on will not work with
2379*** this release. Start again with fresh sources and without the old
2380*** \`localedata' add-on." >&2;}
2381 { (exit 1); exit 1; }; }
2382 ;;
2383 esac
8f73811b
RM
2384 done
2385
9382fcee 2386 # Now source each add-on's configure fragment.
c80e931a
RM
2387 # The fragments can use $srcdir/$libc_add_on to find themselves,
2388 # and test $add_ons_automatic to see if they were explicitly requested.
2389 # A fragment can clear (or even change) $libc_add_on to affect
2390 # whether it goes into the list to be actually used in the build.
2391 use_add_ons=
9382fcee 2392 for libc_add_on in $add_ons; do
e0a3ed4f
RM
2393 # Test whether such a directory really exists.
2394 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2395 case "$libc_add_on" in
2396 /*)
2397 libc_add_on_srcdir=$libc_add_on
2398 ;;
2399 *)
2400 test -d "$srcdir/$libc_add_on" || {
2401 if test -d "$libc_add_on"; then
2402 libc_add_on="`pwd`/$libc_add_on"
2403 else
2404 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2405echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2406 { (exit 1); exit 1; }; }
2407 fi
2408 }
2409 libc_add_on_srcdir=$srcdir/$libc_add_on
2410 ;;
2411 esac
2412
2413 libc_add_on_frag=$libc_add_on_srcdir/configure
2414 libc_add_on_canonical=
2415 if test -r "$libc_add_on_frag"; then
2416 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2417echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2418 libc_add_on_canonical=unknown
2419 libc_add_on_subdirs=
2420 . "$libc_add_on_frag"
2421 test -z "$libc_add_on" || {
2422 configured_add_ons="$configured_add_ons $libc_add_on"
2423 if test "x$libc_add_on_canonical" = xunknown; then
2424 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2425echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2426 { (exit 1); exit 1; }; }
2427 fi
2428 for d in $libc_add_on_subdirs; do
2429 case "$libc_add_on" in
2430 /*) subdir_srcdir="$libc_add_on" ;;
2431 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2432 esac
2433 case "$d" in
2434 .)
2435 d="${libc_add_on_canonical:-$libc_add_on}"
2436 ;;
2437 /*)
2438 subdir_srcdir="$d"
2439 ;;
2440 *)
2441 subdir_srcdir="$subdir_srcdir/$d"
2442 ;;
2443 esac
2444 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2445 add_on_subdirs="$add_on_subdirs $d"
2446 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2447$d-srcdir = $subdir_srcdir"
2448 done
2449 }
8f73811b 2450 fi
619f9448 2451 if test -n "$libc_add_on"; then
e0a3ed4f
RM
2452 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2453 then
26f56c1c
UD
2454 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2455echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
e0a3ed4f
RM
2456 for frag in $frags; do
2457 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2458 echo $ECHO_N "$name $ECHO_C" >&6
2459 . "$frag"
2460 done
26f56c1c
UD
2461 { echo "$as_me:$LINENO: result: " >&5
2462echo "${ECHO_T}" >&6; }
e0a3ed4f 2463 fi
619f9448
RM
2464 use_add_ons="$use_add_ons $libc_add_on"
2465 add_ons_pfx="$add_ons_pfx $libc_add_on/"
e0a3ed4f
RM
2466 test -z "$libc_add_on_canonical" ||
2467 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
619f9448 2468 fi
8f73811b 2469 done
c80e931a
RM
2470 # Use echo to strip excess whitespace.
2471 add_ons="`echo $use_add_ons`"
8f73811b
RM
2472fi
2473
2474
2475
e0a3ed4f 2476
7efb9bd1
UD
2477###
2478### I put this here to prevent those annoying emails from people who cannot
2479### read and try to compile glibc on unsupported platforms. --drepper
2480###
2481### By using the undocumented --enable-hacker-mode option for configure
2482### one can skip this test to make the configuration not fail for unsupported
2483### platforms.
2484###
8f73811b 2485if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
7efb9bd1 2486 case "$machine-$host_os" in
f0d8cfd7 2487 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
7efb9bd1
UD
2488 ;;
2489 *)
2490 echo "*** The GNU C library is currently not available for this platform."
2491 echo "*** So far nobody cared to port it and if there is no volunteer it"
2492 echo "*** might never happen. So, if you have interest to see glibc on"
2493 echo "*** this platform visit"
2494 echo "*** http://www.gnu.org/software/libc/porting.html"
2495 echo "*** and join the group of porters"
2496 exit 1
2497 ;;
2498 esac
2499fi
2500
cd6ede75 2501# Expand the configuration machine name into a subdirectory by architecture
8f73811b
RM
2502# type and particular chip. If an add-on configure fragment already set
2503# base_machine, we don't change it.
2504test -n "$base_machine" || case "$machine" in
cd6ede75
UD
2505a29k | am29000) base_machine=a29k machine=a29k ;;
2506alpha*) base_machine=alpha machine=alpha/$machine ;;
60c96635
UD
2507c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2508c4[04]) base_machine=cx0 machine=cx0/c40 ;;
0b755dc4 2509i[34567]86) base_machine=i386 machine=i386/$machine ;;
9dfa9a5a 2510ia64) base_machine=ia64 machine=ia64 ;;
cd6ede75
UD
2511m88???) base_machine=m88k machine=m88k/$machine ;;
2512m88k) base_machine=m88k machine=m88k/m88100 ;;
a8a20be0
UD
2513powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2514powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
136d4332
UD
2515s390) base_machine=s390 machine=s390/s390-32 ;;
2516s390x) base_machine=s390 machine=s390/s390-64 ;;
0da2f50b
UD
2517sh3*) base_machine=sh machine=sh/sh3 ;;
2518sh4*) base_machine=sh machine=sh/sh4 ;;
ca34d7a7
UD
2519sparc | sparcv[67])
2520 base_machine=sparc machine=sparc/sparc32 ;;
2521sparcv8 | supersparc | hypersparc)
2522 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
ae6b8730
RH
2523sparcv8plus | sparcv8plusa | sparcv9)
2524 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
bb769ab6 2525sparcv8plusb | sparcv9b)
10c6e709 2526 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2d73656b
RM
2527sparcv9v)
2528 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
46ae8850
JJ
2529sparcv9v2)
2530 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
62d01985 2531sparc64)
ca34d7a7 2532 base_machine=sparc machine=sparc/sparc64 ;;
62d01985 2533sparc64b)
bb769ab6 2534 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2d73656b
RM
2535sparc64v)
2536 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
46ae8850
JJ
2537sparc64v2)
2538 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
3a2832a0 2539*) base_machine=$machine ;;
cd6ede75
UD
2540esac
2541
2542
dfd2257a 2543if test "$base_machine" = "i386"; then
3a12e572 2544 cat >>confdefs.h <<\_ACEOF
dfd2257a 2545#define USE_REGPARMS 1
3a12e572 2546_ACEOF
dfd2257a
UD
2547
2548fi
2549
cd6ede75
UD
2550# Compute the list of sysdep directories for this configuration.
2551# This can take a while to compute.
2552sysdep_dir=$srcdir/sysdeps
26f56c1c
UD
2553{ echo "$as_me:$LINENO: checking sysdep dirs" >&5
2554echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
cd6ede75
UD
2555# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2556os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2557
b22d21b3 2558test "x$base_os" != x || case "$os" in
cd6ede75
UD
2559gnu*)
2560 base_os=mach/hurd ;;
2561netbsd* | 386bsd* | freebsd* | bsdi*)
2562 base_os=unix/bsd/bsd4.4 ;;
2563osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2564 base_os=unix/bsd ;;
2565sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2566 base_os=unix/sysv ;;
9a97d1f7
UD
2567irix6*)
2568 base_os=unix/sysv/irix6/$os ;;
cd6ede75
UD
2569solaris[2-9]*)
2570 base_os=unix/sysv/sysv4 ;;
908c3d5b
UD
2571hpux*)
2572 base_os=unix/sysv/hpux/$os ;;
f0d8cfd7
UD
2573aix4.3*)
2574 base_os=unix/sysv/aix/aix4.3 ;;
cd6ede75
UD
2575none)
2576 base_os=standalone ;;
cd6ede75
UD
2577esac
2578
2579# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2580tail=$os
2581ostry=$os
2582while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2583 ostry="$ostry /$o"
2584 tail=$o
2585done
2586o=`echo $tail | sed 's/[0-9]*$//'`
2587if test $o != $tail; then
2588 ostry="$ostry /$o"
2589fi
2590# For linux-gnu, try linux-gnu, then linux.
2591o=`echo $tail | sed 's/-.*$//'`
2592if test $o != $tail; then
2593 ostry="$ostry /$o"
2594fi
2595
2596# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2597base=
2598tail=$base_os
2599while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2600 set $b
2601 base="$base /$1"
2602 tail="$2"
2603done
2604
ae6b8730 2605# For sparc/sparc32, try sparc/sparc32 and then sparc.
cd6ede75 2606mach=
2ceaa76a 2607tail=$machine${submachine:+/$submachine}
cd6ede75
UD
2608while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2609 set $m
2610 # Prepend the machine's FPU directory unless --without-fp.
2611 if test "$with_fp" = yes; then
2612 mach="$mach /$1/fpu"
f4b07664
RM
2613 else
2614 mach="$mach /$1/nofpu"
cd6ede75
UD
2615 fi
2616 mach="$mach /$1"
2617 tail="$2"
2618done
2619
2620
2621# Find what sysdep directories exist.
e0a3ed4f 2622sysnames_add_ons=
cd6ede75 2623sysnames=
4b69abad
RM
2624for b in $base ''; do
2625 for m0 in $mach ''; do
2626 for v in /$vendor ''; do
2627 test "$v" = / && continue
2628 for o in /$ostry ''; do
2629 test "$o" = / && continue
2630 for m in $mach ''; do
2631 for d in $add_ons_pfx ''; do
8f73811b 2632 for a in $add_ons_sfx ''; do
e0a3ed4f
RM
2633 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2634 try_srcdir="${srcdir}/"
2635 case "$d" in
2636 /*) try_srcdir= ;;
2637 esac
4b69abad 2638 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
8f73811b
RM
2639 test -n "$enable_debug_configure" &&
2640 echo "$0 DEBUG: try $try" >&2
e0a3ed4f 2641 if test -d "$try_srcdir$try"; then
8f73811b
RM
2642 sysnames="$sysnames $try"
2643 { test -n "$o" || test -n "$b"; } && os_used=t
2644 { test -n "$m" || test -n "$m0"; } && machine_used=t
4b69abad
RM
2645 case x${m0:-$m} in
2646 x*/$submachine) submachine_used=t ;;
2647 esac
e0a3ed4f
RM
2648 if test -n "$d"; then
2649 case "$sysnames_add_ons" in
2650 *" $d "*) ;;
2651 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2652 esac
2653 fi
8f73811b 2654 fi
cd6ede75 2655 fi
8f73811b 2656 done
cd6ede75
UD
2657 done
2658 done
2659 done
2660 done
2661 done
4b69abad 2662done
cd6ede75
UD
2663
2664if test -z "$os_used" && test "$os" != none; then
3a12e572
UD
2665 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2666echo "$as_me: error: Operating system $os is not supported." >&2;}
2667 { (exit 1); exit 1; }; }
cd6ede75
UD
2668fi
2669if test -z "$machine_used" && test "$machine" != none; then
3a12e572
UD
2670 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2671echo "$as_me: error: The $machine is not supported." >&2;}
2672 { (exit 1); exit 1; }; }
cd6ede75 2673fi
2ceaa76a
RM
2674if test -z "$submachine_used" && test -n "$submachine"; then
2675 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2676echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2677 { (exit 1); exit 1; }; }
2678fi
2679
cd6ede75
UD
2680
2681# We have now validated the configuration.
2682
2683
2684# If using ELF, look for an `elf' subdirectory of each machine directory.
2685# We prepend these rather than inserting them whereever the machine appears
2686# because things specified by the machine's ELF ABI should override
2687# OS-specific things, and should always be the same for any OS on the
2688# machine (otherwise what's the point of an ABI?).
2689if test "$elf" = yes; then
2690 elf_dirs=
2691 for d in $add_ons_pfx ''; do
cd6ede75 2692 for m in $mach; do
9c4c0024 2693 if test -d $srcdir/${d}sysdeps$m/elf; then
cd6ede75
UD
2694 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2695 fi
2696 done
2697 done
2698 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2699fi
2700
2701
2702# Expand the list of system names into a full list of directories
2703# from each element's parent name and Implies file (if present).
2704set $sysnames
2705names=
2706while test $# -gt 0; do
2707 name=$1
2708 shift
2709
2710 case " $names " in *" $name "*)
2711 # Already in the list.
2712 continue
2713 esac
2714
2715 # Report each name as we discover it, so there is no long pause in output.
3a12e572 2716 echo $ECHO_N "$name $ECHO_C" >&6
cd6ede75
UD
2717
2718 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2719
2720 case $name in
2721 /*) xsrcdir= ;;
2722 *) xsrcdir=$srcdir/ ;;
2723 esac
2724 test -n "$enable_debug_configure" &&
2725 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2726
2727 if test -f $xsrcdir$name/Implies; then
2728 # Collect more names from the `Implies' file (removing comments).
2729 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2730 implied=
2731 for x in $implied_candidate; do
636ccfc8 2732 found=no
cd6ede75
UD
2733 if test -d $xsrcdir$name_base/$x; then
2734 implied="$implied $name_base/$x";
636ccfc8
UD
2735 found=yes
2736 fi
2737 for d in $add_ons_pfx ''; do
2738 try="${d}sysdeps/$x"
2739 case $d in
2740 /*) try_srcdir= ;;
2741 *) try_srcdir=$srcdir/ ;;
2742 esac
2743 test -n "$enable_debug_configure" &&
2744 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2745 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2746 then
2747 implied="$implied $try"
2748 found=yes
e0a3ed4f
RM
2749 case "$sysnames_add_ons" in
2750 *" $d "*) ;;
2751 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2752 esac
636ccfc8
UD
2753 fi
2754 done
2755 if test $found = no; then
3a12e572
UD
2756 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2757echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
cd6ede75
UD
2758 fi
2759 done
2760 else
2761 implied=
2762 fi
2763
2764 # Add NAME to the list of names.
2765 names="$names $name"
2766
2767 # Find the parent of NAME, using the empty string if it has none.
2768 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2769
2770 # Add the names implied by NAME, and NAME's parent (if it has one), to
2771 # the list of names to be processed (the argument list). We prepend the
2772 # implied names to the list and append the parent. We want implied
2773 # directories to come before further directories inferred from the
2774 # configuration components; this ensures that for sysv4, unix/common
2775 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2776 # after sysv4).
2777 sysnames="`echo $implied $* $parent`"
2778 test -n "$sysnames" && set $sysnames
2779done
2780
2781# Add the default directories.
a3a4a74e 2782default_sysnames=sysdeps/generic
2de7874e 2783if test "$elf" = yes; then
a3a4a74e 2784 default_sysnames="sysdeps/generic/elf $default_sysnames"
2de7874e 2785fi
a3a4a74e 2786sysnames="$names $default_sysnames"
cd6ede75
UD
2787
2788# The other names were emitted during the scan.
26f56c1c
UD
2789{ echo "$as_me:$LINENO: result: $default_sysnames" >&5
2790echo "${ECHO_T}$default_sysnames" >&6; }
cd6ede75 2791
e0a3ed4f
RM
2792# Collect the list of add-ons that supply partial sysdeps trees.
2793sysdeps_add_ons=
2794for add_on in $add_ons; do
2795 case "$add_on" in
2796 /*) xsrcdir= ;;
2797 *) xsrcdir="$srcdir/" ;;
2798 esac
2799
2800 test -d "$xsrcdir$add_on/sysdeps" || {
2801 case "$configured_add_ons " in
2802 *" $add_on "*) ;;
2803 *|'')
2804 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2805echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2806 { (exit 1); exit 1; }; }
2807 ;;
2808 esac
2809 continue
2810 }
2811
2812 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2813 case "$sysnames_add_ons" in
2814 *" $add_on/ "*) ;;
2815 *|'')
2816 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2817echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2818 continue ;;
2819 esac
2820
2821 found=no
2822 for d in $sysnames; do
2823 case "$d" in
2824 $add_on/sysdeps/*) ;;
2825 *) continue ;;
2826 esac
2827 (cd "$xsrcdir$d" && for f in *[!~]; do
2828 case "$f" in
2829 sys|bits)
2830 for ff in $f/*.h; do
2831 test -d "$ff" || { test -e "$ff" && exit 88; }
2832 done
2833 ;;
2834 *)
2835 test -d "$f" || { test -e "$f" && exit 88; }
2836 ;;
2837 esac
2838 done)
2839 if test $? -eq 88; then
2840 found=yes
2841 break
2842 fi
2843 done
2844 if test $found = no; then
2845 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2846echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2847 fi
2848done
2849
2850
cd6ede75
UD
2851
2852### Locate tools.
2853
2854# Find a good install program. We prefer a C program (faster),
2855# so one script is as good as another. But avoid the broken or
2856# incompatible versions:
2857# SysV /etc/install, /usr/sbin/install
2858# SunOS /usr/etc/install
2859# IRIX /sbin/install
2860# AIX /bin/install
3a12e572 2861# AmigaOS /C/install, which installs bootblocks on floppy discs
5c2a0669 2862# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cd6ede75
UD
2863# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9382fcee 2865# OS/2's system install, which has a completely different semantic
cd6ede75 2866# ./install, which can be erroneously created by make from ./install.sh.
26f56c1c
UD
2867{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2868echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
cd6ede75 2869if test -z "$INSTALL"; then
3a12e572
UD
2870if test "${ac_cv_path_install+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 # Account for people who put trailing slashes in PATH elements.
2879case $as_dir/ in
2880 ./ | .// | /cC/* | \
2881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9382fcee 2882 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3a12e572
UD
2883 /usr/ucb/* ) ;;
2884 *)
2885 # OSF1 and SCO ODT 3.0 have their own names for install.
2886 # Don't use installbsd from OSF since it installs stuff as root
2887 # by default.
2888 for ac_prog in ginstall scoinst install; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 2890 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9382fcee
RM
2891 if test $ac_prog = install &&
2892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893 # AIX install. It has an incompatible calling convention.
2894 :
2895 elif test $ac_prog = install &&
2896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # program-specific install script used by HP pwplus--don't use.
2898 :
2899 else
2900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2901 break 3
2902 fi
2903 fi
cd6ede75 2904 done
3a12e572
UD
2905 done
2906 ;;
2907esac
2908done
26f56c1c 2909IFS=$as_save_IFS
3a12e572 2910
cd6ede75
UD
2911
2912fi
2913 if test "${ac_cv_path_install+set}" = set; then
3a12e572 2914 INSTALL=$ac_cv_path_install
cd6ede75 2915 else
26f56c1c
UD
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for INSTALL within a source directory, because that will
cd6ede75 2918 # break other packages using the cache if that directory is
26f56c1c 2919 # removed, or if the value is a relative name.
3a12e572 2920 INSTALL=$ac_install_sh
cd6ede75
UD
2921 fi
2922fi
26f56c1c
UD
2923{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2924echo "${ECHO_T}$INSTALL" >&6; }
cd6ede75
UD
2925
2926# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927# It thinks the first close brace ends the variable substitution.
2928test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929
3a12e572 2930test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5c2a0669 2931
cd6ede75
UD
2932test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2933
ed9c47d9 2934if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
cd6ede75 2935 # The makefiles need to use a different form to find it in $srcdir.
ed9c47d9 2936 INSTALL='\$(..)./scripts/install-sh -c'
cd6ede75 2937fi
26f56c1c
UD
2938{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2939echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3a12e572
UD
2940LN_S=$as_ln_s
2941if test "$LN_S" = "ln -s"; then
26f56c1c
UD
2942 { echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6; }
cd6ede75 2944else
26f56c1c
UD
2945 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2946echo "${ECHO_T}no, using $LN_S" >&6; }
cd6ede75
UD
2947fi
2948
63bda0c1 2949
4baa087a
RM
2950ac_ext=c
2951ac_cpp='$CPP $CPPFLAGS'
2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957set dummy ${ac_tool_prefix}gcc; ac_word=$2
26f56c1c
UD
2958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
2960if test "${ac_cv_prog_CC+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2962else
63bda0c1
UD
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 2965else
3a12e572
UD
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3a12e572
UD
2974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977done
2978done
26f56c1c 2979IFS=$as_save_IFS
3a12e572 2980
cd6ede75
UD
2981fi
2982fi
3a12e572 2983CC=$ac_cv_prog_CC
4bca4c17 2984if test -n "$CC"; then
26f56c1c
UD
2985 { echo "$as_me:$LINENO: result: $CC" >&5
2986echo "${ECHO_T}$CC" >&6; }
4bca4c17 2987else
26f56c1c
UD
2988 { echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6; }
4bca4c17
UD
2990fi
2991
26f56c1c 2992
ae828bc6 2993fi
4baa087a
RM
2994if test -z "$ac_cv_prog_CC"; then
2995 ac_ct_CC=$CC
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997set dummy gcc; ac_word=$2
26f56c1c
UD
2998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 3000if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3a12e572 3001 echo $ECHO_N "(cached) $ECHO_C" >&6
04be94a8 3002else
4baa087a
RM
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
04be94a8 3005else
3a12e572
UD
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 3013 ac_cv_prog_ac_ct_CC="gcc"
3a12e572
UD
3014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017done
3018done
26f56c1c 3019IFS=$as_save_IFS
3a12e572 3020
04be94a8
UD
3021fi
3022fi
4baa087a
RM
3023ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024if test -n "$ac_ct_CC"; then
26f56c1c
UD
3025 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3026echo "${ECHO_T}$ac_ct_CC" >&6; }
4bca4c17 3027else
26f56c1c
UD
3028 { echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6; }
4bca4c17
UD
3030fi
3031
26f56c1c
UD
3032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036yes:)
3037{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3038whose name does not start with the host triplet. If you think this
3039configuration is useful to you, please write to autoconf@gnu.org." >&5
3040echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3041whose name does not start with the host triplet. If you think this
3042configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3043ac_tool_warned=yes ;;
3044esac
3045 CC=$ac_ct_CC
3046 fi
63bda0c1 3047else
4baa087a 3048 CC="$ac_cv_prog_CC"
04be94a8 3049fi
cd6ede75 3050
4baa087a 3051if test -z "$CC"; then
26f56c1c
UD
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4baa087a 3054set dummy ${ac_tool_prefix}cc; ac_word=$2
26f56c1c
UD
3055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 3057if test "${ac_cv_prog_CC+set}" = set; then
3a12e572 3058 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 3059else
4baa087a
RM
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 3062else
3a12e572
UD
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3a12e572
UD
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075done
26f56c1c 3076IFS=$as_save_IFS
3a12e572 3077
cd6ede75
UD
3078fi
3079fi
4baa087a
RM
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
26f56c1c
UD
3082 { echo "$as_me:$LINENO: result: $CC" >&5
3083echo "${ECHO_T}$CC" >&6; }
4bca4c17 3084else
26f56c1c
UD
3085 { echo "$as_me:$LINENO: result: no" >&5
3086echo "${ECHO_T}no" >&6; }
4bca4c17
UD
3087fi
3088
cd6ede75 3089
26f56c1c 3090 fi
4baa087a
RM
3091fi
3092if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094set dummy cc; ac_word=$2
26f56c1c
UD
3095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 3097if test "${ac_cv_prog_CC+set}" = set; then
3a12e572 3098 echo $ECHO_N "(cached) $ECHO_C" >&6
aec103d3 3099else
4baa087a
RM
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
aec103d3 3102else
4baa087a 3103 ac_prog_rejected=no
3a12e572
UD
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3a12e572
UD
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120done
26f56c1c 3121IFS=$as_save_IFS
3a12e572 3122
4baa087a
RM
3123if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3a12e572 3133 fi
14519931 3134fi
3a12e572
UD
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
26f56c1c
UD
3139 { echo "$as_me:$LINENO: result: $CC" >&5
3140echo "${ECHO_T}$CC" >&6; }
cd6ede75 3141else
26f56c1c
UD
3142 { echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6; }
cd6ede75 3144fi
cd6ede75 3145
26f56c1c 3146
63bda0c1 3147fi
3a12e572
UD
3148if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
26f56c1c 3150 for ac_prog in cl.exe
4baa087a
RM
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26f56c1c
UD
3154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
3156if test "${ac_cv_prog_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3a12e572
UD
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173done
3174done
26f56c1c 3175IFS=$as_save_IFS
cd6ede75 3176
3a12e572
UD
3177fi
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
26f56c1c
UD
3181 { echo "$as_me:$LINENO: result: $CC" >&5
3182echo "${ECHO_T}$CC" >&6; }
3a12e572 3183else
26f56c1c
UD
3184 { echo "$as_me:$LINENO: result: no" >&5
3185echo "${ECHO_T}no" >&6; }
3a12e572 3186fi
cd6ede75 3187
26f56c1c 3188
4baa087a
RM
3189 test -n "$CC" && break
3190 done
3a12e572 3191fi
4baa087a 3192if test -z "$CC"; then
3a12e572 3193 ac_ct_CC=$CC
26f56c1c 3194 for ac_prog in cl.exe
4baa087a
RM
3195do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197set dummy $ac_prog; ac_word=$2
26f56c1c
UD
3198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
3200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 3202else
3a12e572
UD
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 3213 ac_cv_prog_ac_ct_CC="$ac_prog"
3a12e572
UD
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
26f56c1c 3219IFS=$as_save_IFS
3a12e572
UD
3220
3221fi
3222fi
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
26f56c1c
UD
3225 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3226echo "${ECHO_T}$ac_ct_CC" >&6; }
cd6ede75 3227else
26f56c1c
UD
3228 { echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6; }
cd6ede75 3230fi
4baa087a 3231
26f56c1c 3232
4baa087a
RM
3233 test -n "$ac_ct_CC" && break
3234done
cd6ede75 3235
26f56c1c
UD
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240yes:)
3241{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3242whose name does not start with the host triplet. If you think this
3243configuration is useful to you, please write to autoconf@gnu.org." >&5
3244echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3245whose name does not start with the host triplet. If you think this
3246configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3247ac_tool_warned=yes ;;
3248esac
3249 CC=$ac_ct_CC
3250 fi
cd6ede75
UD
3251fi
3252
cd6ede75 3253fi
3a12e572
UD
3254
3255
2abf9ff1
RM
3256test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3257See \`config.log' for more details." >&5
3258echo "$as_me: error: no acceptable C compiler found in \$PATH
3259See \`config.log' for more details." >&2;}
3a12e572
UD
3260 { (exit 1); exit 1; }; }
3261
3262# Provide some information about the compiler.
26f56c1c 3263echo "$as_me:$LINENO: checking for C compiler version" >&5
3a12e572 3264ac_compiler=`set X $ac_compile; echo $2`
26f56c1c
UD
3265{ (ac_try="$ac_compiler --version >&5"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compiler --version >&5") 2>&5
3a12e572
UD
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
26f56c1c
UD
3275{ (ac_try="$ac_compiler -v >&5"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compiler -v >&5") 2>&5
3a12e572
UD
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
26f56c1c
UD
3285{ (ac_try="$ac_compiler -V >&5"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compiler -V >&5") 2>&5
3a12e572
UD
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3295
3296EXEEXT=
26f56c1c
UD
3297{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3a12e572
UD
3299if test "${ac_cv_objext+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 3301else
3a12e572 3302 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h. */
3a12e572 3308
3a12e572
UD
3309int
3310main ()
3311{
3312
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.o conftest.obj
26f56c1c
UD
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>&5
3a12e572
UD
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; then
26f56c1c
UD
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3a12e572 3330 case $ac_file in
26f56c1c 3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3a12e572
UD
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335done
3336else
3337 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3341See \`config.log' for more details." >&5
3342echo "$as_me: error: cannot compute suffix of object files: cannot compile
3343See \`config.log' for more details." >&2;}
3a12e572
UD
3344 { (exit 1); exit 1; }; }
3345fi
3346
3347rm -f conftest.$ac_cv_objext conftest.$ac_ext
3348fi
26f56c1c
UD
3349{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3350echo "${ECHO_T}$ac_cv_objext" >&6; }
3a12e572
UD
3351OBJEXT=$ac_cv_objext
3352ac_objext=$OBJEXT
26f56c1c
UD
3353{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3a12e572
UD
3355if test "${ac_cv_c_compiler_gnu+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3a12e572 3364
3a12e572
UD
3365int
3366main ()
3367{
3368#ifndef __GNUC__
3369 choke me
3370#endif
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
26f56c1c
UD
3377if { (ac_try="$ac_compile"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3a12e572 3384 ac_status=$?
9382fcee
RM
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3a12e572 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
3a12e572
UD
3393 ac_compiler_gnu=yes
3394else
3395 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
26f56c1c 3398 ac_compiler_gnu=no
3a12e572 3399fi
26f56c1c
UD
3400
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
3402ac_cv_c_compiler_gnu=$ac_compiler_gnu
3403
3404fi
26f56c1c
UD
3405{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3406echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3a12e572
UD
3407GCC=`test $ac_compiler_gnu = yes && echo yes`
3408ac_test_CFLAGS=${CFLAGS+set}
3409ac_save_CFLAGS=$CFLAGS
26f56c1c
UD
3410{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3411echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3a12e572
UD
3412if test "${ac_cv_prog_cc_g+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
26f56c1c
UD
3415 ac_save_c_werror_flag=$ac_c_werror_flag
3416 ac_c_werror_flag=yes
3417 ac_cv_prog_cc_g=no
3418 CFLAGS="-g"
3419 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3a12e572 3425
3a12e572
UD
3426int
3427main ()
3428{
3429
3430 ;
3431 return 0;
3432}
3433_ACEOF
3434rm -f conftest.$ac_objext
26f56c1c
UD
3435if { (ac_try="$ac_compile"
3436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
3440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3a12e572 3442 ac_status=$?
9382fcee
RM
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3a12e572 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3a12e572
UD
3451 ac_cv_prog_cc_g=yes
3452else
3453 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
26f56c1c
UD
3456 CFLAGS=""
3457 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
26f56c1c
UD
3463
3464int
3465main ()
f4b07664 3466{
9382fcee 3467
f4b07664
RM
3468 ;
3469 return 0;
3470}
3471_ACEOF
26f56c1c
UD
3472rm -f conftest.$ac_objext
3473if { (ac_try="$ac_compile"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
f4b07664 3480 ac_status=$?
9382fcee
RM
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
f4b07664 3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3489 :
f4b07664
RM
3490else
3491 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
26f56c1c
UD
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3495 CFLAGS="-g"
3496 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
26f56c1c 3502
3a12e572
UD
3503int
3504main ()
3505{
26f56c1c 3506
3a12e572
UD
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
26f56c1c
UD
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3a12e572 3519 ac_status=$?
9382fcee
RM
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3a12e572 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 ac_cv_prog_cc_g=yes
5c2a0669 3529else
3a12e572 3530 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
26f56c1c 3533
3a12e572 3534fi
26f56c1c
UD
3535
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537fi
3538
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540fi
3541
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3544fi
3545{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3546echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3547if test "$ac_test_CFLAGS" = set; then
3548 CFLAGS=$ac_save_CFLAGS
3549elif test $ac_cv_prog_cc_g = yes; then
3550 if test "$GCC" = yes; then
3551 CFLAGS="-g -O2"
3552 else
3553 CFLAGS="-g"
3554 fi
3555else
3556 if test "$GCC" = yes; then
3557 CFLAGS="-O2"
3558 else
3559 CFLAGS=
3560 fi
3561fi
3562{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3563echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3564if test "${ac_cv_prog_cc_c89+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566else
3567 ac_cv_prog_cc_c89=no
3568ac_save_CC=$CC
3569cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
26f56c1c
UD
3575#include <stdarg.h>
3576#include <stdio.h>
3577#include <sys/types.h>
3578#include <sys/stat.h>
3579/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580struct buf { int x; };
3581FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582static char *e (p, i)
3583 char **p;
3584 int i;
3585{
3586 return p[i];
3587}
3588static char *f (char * (*g) (char **, int), char **p, ...)
3589{
3590 char *s;
3591 va_list v;
3592 va_start (v,p);
3593 s = g (p, va_arg (v,int));
3594 va_end (v);
3595 return s;
3596}
3597
3598/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3606
3607/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3609#define FOO(x) 'x'
3610int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3611
3612int test (int i, double x);
3613struct s1 {int (*f) (int a);};
3614struct s2 {int (*f) (double a);};
3615int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616int argc;
3617char **argv;
3a12e572
UD
3618int
3619main ()
3620{
26f56c1c 3621return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3a12e572
UD
3622 ;
3623 return 0;
3624}
3625_ACEOF
26f56c1c
UD
3626for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628do
3629 CC="$ac_save_CC $ac_arg"
3630 rm -f conftest.$ac_objext
3631if { (ac_try="$ac_compile"
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_compile") 2>conftest.er1
3a12e572 3638 ac_status=$?
9382fcee
RM
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3a12e572 3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3643 (exit $ac_status); } && {
3644 test -z "$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 } && test -s conftest.$ac_objext; then
3647 ac_cv_prog_cc_c89=$ac_arg
3a12e572
UD
3648else
3649 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
26f56c1c 3652
3a12e572 3653fi
26f56c1c
UD
3654
3655rm -f core conftest.err conftest.$ac_objext
3656 test "x$ac_cv_prog_cc_c89" != "xno" && break
3a12e572 3657done
26f56c1c
UD
3658rm -f conftest.$ac_ext
3659CC=$ac_save_CC
3660
3a12e572 3661fi
26f56c1c
UD
3662# AC_CACHE_VAL
3663case "x$ac_cv_prog_cc_c89" in
3664 x)
3665 { echo "$as_me:$LINENO: result: none needed" >&5
3666echo "${ECHO_T}none needed" >&6; } ;;
3667 xno)
3668 { echo "$as_me:$LINENO: result: unsupported" >&5
3669echo "${ECHO_T}unsupported" >&6; } ;;
3670 *)
3671 CC="$CC $ac_cv_prog_cc_c89"
3672 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3673echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3674esac
3a12e572 3675
2abf9ff1 3676
3a12e572
UD
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683if test $host != $build; then
3684 for ac_prog in gcc cc
3685do
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687set dummy $ac_prog; ac_word=$2
26f56c1c
UD
3688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
3690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 if test -n "$BUILD_CC"; then
3694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3695else
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
3703 ac_cv_prog_BUILD_CC="$ac_prog"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707done
3708done
26f56c1c 3709IFS=$as_save_IFS
3a12e572
UD
3710
3711fi
3712fi
3713BUILD_CC=$ac_cv_prog_BUILD_CC
3714if test -n "$BUILD_CC"; then
26f56c1c
UD
3715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3716echo "${ECHO_T}$BUILD_CC" >&6; }
3a12e572 3717else
26f56c1c
UD
3718 { echo "$as_me:$LINENO: result: no" >&5
3719echo "${ECHO_T}no" >&6; }
3a12e572
UD
3720fi
3721
26f56c1c 3722
3a12e572
UD
3723 test -n "$BUILD_CC" && break
3724done
3725
3726fi
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
26f56c1c
UD
3733{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3a12e572
UD
3735# On Suns, sometimes $CPP names a directory.
3736if test -n "$CPP" && test -d "$CPP"; then
3737 CPP=
3738fi
3739if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 do
3746 ac_preproc_ok=false
3747for ac_c_preproc_warn_flag in '' yes
3748do
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
2abf9ff1
RM
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3a12e572
UD
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761#ifdef __STDC__
3762# include <limits.h>
3763#else
3764# include <assert.h>
3765#endif
9382fcee 3766 Syntax error
3a12e572 3767_ACEOF
26f56c1c
UD
3768if { (ac_try="$ac_cpp conftest.$ac_ext"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3a12e572 3775 ac_status=$?
f4b07664 3776 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 }; then
cd6ede75
UD
3784 :
3785else
3a12e572 3786 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3a12e572
UD
3789 # Broken: fails on valid input.
3790continue
cd6ede75 3791fi
26f56c1c 3792
3a12e572
UD
3793rm -f conftest.err conftest.$ac_ext
3794
26f56c1c 3795 # OK, works on sane cases. Now check whether nonexistent headers
3a12e572
UD
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3a12e572
UD
3803#include <ac_nonexistent.h>
3804_ACEOF
26f56c1c
UD
3805if { (ac_try="$ac_cpp conftest.$ac_ext"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3a12e572 3812 ac_status=$?
f4b07664 3813 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3a12e572
UD
3821 # Broken: success on invalid input.
3822continue
3823else
3824 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3a12e572
UD
3827 # Passes both tests.
3828ac_preproc_ok=:
3829break
5c2a0669 3830fi
26f56c1c 3831
3a12e572
UD
3832rm -f conftest.err conftest.$ac_ext
3833
3834done
3835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836rm -f conftest.err conftest.$ac_ext
3837if $ac_preproc_ok; then
3838 break
3839fi
3840
3841 done
3842 ac_cv_prog_CPP=$CPP
3843
3844fi
3845 CPP=$ac_cv_prog_CPP
3846else
3847 ac_cv_prog_CPP=$CPP
3848fi
26f56c1c
UD
3849{ echo "$as_me:$LINENO: result: $CPP" >&5
3850echo "${ECHO_T}$CPP" >&6; }
3a12e572
UD
3851ac_preproc_ok=false
3852for ac_c_preproc_warn_flag in '' yes
3853do
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
2abf9ff1
RM
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3a12e572
UD
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866#ifdef __STDC__
3867# include <limits.h>
3868#else
3869# include <assert.h>
3870#endif
9382fcee 3871 Syntax error
3a12e572 3872_ACEOF
26f56c1c
UD
3873if { (ac_try="$ac_cpp conftest.$ac_ext"
3874case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3a12e572 3880 ac_status=$?
f4b07664 3881 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 }; then
3a12e572
UD
3889 :
3890else
3891 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3a12e572
UD
3894 # Broken: fails on valid input.
3895continue
3896fi
26f56c1c 3897
3a12e572
UD
3898rm -f conftest.err conftest.$ac_ext
3899
26f56c1c 3900 # OK, works on sane cases. Now check whether nonexistent headers
3a12e572
UD
3901 # can be detected and how.
3902 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h. */
3a12e572
UD
3908#include <ac_nonexistent.h>
3909_ACEOF
26f56c1c
UD
3910if { (ac_try="$ac_cpp conftest.$ac_ext"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3a12e572 3917 ac_status=$?
f4b07664 3918 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3a12e572
UD
3926 # Broken: success on invalid input.
3927continue
3928else
3929 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3a12e572
UD
3932 # Passes both tests.
3933ac_preproc_ok=:
3934break
cd6ede75 3935fi
26f56c1c 3936
3a12e572
UD
3937rm -f conftest.err conftest.$ac_ext
3938
3939done
3940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941rm -f conftest.err conftest.$ac_ext
3942if $ac_preproc_ok; then
3943 :
cd6ede75 3944else
2abf9ff1
RM
3945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946See \`config.log' for more details." >&5
3947echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948See \`config.log' for more details." >&2;}
3a12e572 3949 { (exit 1); exit 1; }; }
cd6ede75 3950fi
3a12e572
UD
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd6ede75 3957
925c3c5c 3958# We need the C++ compiler only for testing.
26f56c1c 3959ac_ext=cpp
925c3c5c
UD
3960ac_cpp='$CXXCPP $CPPFLAGS'
3961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26f56c1c
UD
3964if test -z "$CXX"; then
3965 if test -n "$CCC"; then
3966 CXX=$CCC
3967 else
3968 if test -n "$ac_tool_prefix"; then
3969 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
925c3c5c
UD
3970 do
3971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26f56c1c
UD
3973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
925c3c5c
UD
3975if test "${ac_cv_prog_CXX+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 if test -n "$CXX"; then
3979 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
925c3c5c
UD
3988 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993done
26f56c1c 3994IFS=$as_save_IFS
925c3c5c
UD
3995
3996fi
3997fi
3998CXX=$ac_cv_prog_CXX
3999if test -n "$CXX"; then
26f56c1c
UD
4000 { echo "$as_me:$LINENO: result: $CXX" >&5
4001echo "${ECHO_T}$CXX" >&6; }
925c3c5c 4002else
26f56c1c
UD
4003 { echo "$as_me:$LINENO: result: no" >&5
4004echo "${ECHO_T}no" >&6; }
925c3c5c
UD
4005fi
4006
26f56c1c 4007
925c3c5c
UD
4008 test -n "$CXX" && break
4009 done
4010fi
4011if test -z "$CXX"; then
4012 ac_ct_CXX=$CXX
26f56c1c 4013 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
925c3c5c
UD
4014do
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
925c3c5c
UD
4019if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 if test -n "$ac_ct_CXX"; then
4023 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
925c3c5c
UD
4032 ac_cv_prog_ac_ct_CXX="$ac_prog"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036done
4037done
26f56c1c 4038IFS=$as_save_IFS
925c3c5c
UD
4039
4040fi
4041fi
4042ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4043if test -n "$ac_ct_CXX"; then
26f56c1c
UD
4044 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4045echo "${ECHO_T}$ac_ct_CXX" >&6; }
925c3c5c 4046else
26f56c1c
UD
4047 { echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6; }
925c3c5c
UD
4049fi
4050
26f56c1c 4051
925c3c5c
UD
4052 test -n "$ac_ct_CXX" && break
4053done
925c3c5c 4054
26f56c1c
UD
4055 if test "x$ac_ct_CXX" = x; then
4056 CXX="g++"
4057 else
4058 case $cross_compiling:$ac_tool_warned in
4059yes:)
4060{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4061whose name does not start with the host triplet. If you think this
4062configuration is useful to you, please write to autoconf@gnu.org." >&5
4063echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4064whose name does not start with the host triplet. If you think this
4065configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4066ac_tool_warned=yes ;;
4067esac
4068 CXX=$ac_ct_CXX
4069 fi
925c3c5c
UD
4070fi
4071
26f56c1c
UD
4072 fi
4073fi
925c3c5c 4074# Provide some information about the compiler.
26f56c1c 4075echo "$as_me:$LINENO: checking for C++ compiler version" >&5
925c3c5c 4076ac_compiler=`set X $ac_compile; echo $2`
26f56c1c
UD
4077{ (ac_try="$ac_compiler --version >&5"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compiler --version >&5") 2>&5
925c3c5c
UD
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
26f56c1c
UD
4087{ (ac_try="$ac_compiler -v >&5"
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compiler -v >&5") 2>&5
925c3c5c
UD
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }
26f56c1c
UD
4097{ (ac_try="$ac_compiler -V >&5"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compiler -V >&5") 2>&5
925c3c5c
UD
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }
4107
26f56c1c
UD
4108{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4109echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
925c3c5c
UD
4110if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h. */
925c3c5c
UD
4119
4120int
4121main ()
4122{
4123#ifndef __GNUC__
4124 choke me
4125#endif
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext
26f56c1c
UD
4132if { (ac_try="$ac_compile"
4133case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
925c3c5c 4139 ac_status=$?
9382fcee
RM
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
925c3c5c 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
4144 (exit $ac_status); } && {
4145 test -z "$ac_cxx_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
925c3c5c
UD
4148 ac_compiler_gnu=yes
4149else
4150 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
26f56c1c 4153 ac_compiler_gnu=no
925c3c5c 4154fi
26f56c1c
UD
4155
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
925c3c5c
UD
4157ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4158
4159fi
26f56c1c
UD
4160{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4161echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
925c3c5c
UD
4162GXX=`test $ac_compiler_gnu = yes && echo yes`
4163ac_test_CXXFLAGS=${CXXFLAGS+set}
4164ac_save_CXXFLAGS=$CXXFLAGS
26f56c1c
UD
4165{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4166echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
925c3c5c
UD
4167if test "${ac_cv_prog_cxx_g+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
26f56c1c
UD
4170 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4171 ac_cxx_werror_flag=yes
4172 ac_cv_prog_cxx_g=no
4173 CXXFLAGS="-g"
4174 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
925c3c5c
UD
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext
26f56c1c
UD
4190if { (ac_try="$ac_compile"
4191case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
925c3c5c 4197 ac_status=$?
9382fcee
RM
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
925c3c5c 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
4202 (exit $ac_status); } && {
4203 test -z "$ac_cxx_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
925c3c5c
UD
4206 ac_cv_prog_cxx_g=yes
4207else
4208 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
26f56c1c
UD
4211 CXXFLAGS=""
4212 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
26f56c1c 4218
925c3c5c
UD
4219int
4220main ()
4221{
26f56c1c 4222
925c3c5c
UD
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227rm -f conftest.$ac_objext
26f56c1c
UD
4228if { (ac_try="$ac_compile"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
925c3c5c 4235 ac_status=$?
9382fcee
RM
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
925c3c5c 4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
4240 (exit $ac_status); } && {
4241 test -z "$ac_cxx_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
925c3c5c
UD
4244 :
4245else
4246 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
26f56c1c
UD
4249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4250 CXXFLAGS="-g"
4251 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
26f56c1c 4257
925c3c5c
UD
4258int
4259main ()
4260{
26f56c1c 4261
925c3c5c
UD
4262 ;
4263 return 0;
4264}
4265_ACEOF
4266rm -f conftest.$ac_objext
26f56c1c
UD
4267if { (ac_try="$ac_compile"
4268case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_compile") 2>conftest.er1
925c3c5c 4274 ac_status=$?
9382fcee
RM
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
925c3c5c 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
4279 (exit $ac_status); } && {
4280 test -z "$ac_cxx_werror_flag" ||
4281 test ! -s conftest.err
4282 } && test -s conftest.$ac_objext; then
4283 ac_cv_prog_cxx_g=yes
925c3c5c
UD
4284else
4285 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
26f56c1c 4288
925c3c5c 4289fi
26f56c1c
UD
4290
4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
925c3c5c
UD
4292fi
4293
26f56c1c
UD
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295fi
4296
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4299fi
4300{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4302if test "$ac_test_CXXFLAGS" = set; then
4303 CXXFLAGS=$ac_save_CXXFLAGS
4304elif test $ac_cv_prog_cxx_g = yes; then
4305 if test "$GXX" = yes; then
4306 CXXFLAGS="-g -O2"
4307 else
4308 CXXFLAGS="-g"
4309 fi
4310else
4311 if test "$GXX" = yes; then
4312 CXXFLAGS="-O2"
4313 else
4314 CXXFLAGS=
4315 fi
4316fi
925c3c5c
UD
4317ac_ext=c
4318ac_cpp='$CPP $CPPFLAGS'
4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
650425ce
UD
4323# Was a --with-binutils option given?
4324if test -n "$path_binutils"; then
4325 # Make absolute; ensure a single trailing slash.
4326 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
63bda0c1 4327 CC="$CC -B$path_binutils"
650425ce 4328fi
27a5bb33
UD
4329AS=`$CC -print-prog-name=as`
4330LD=`$CC -print-prog-name=ld`
5edb9387 4331AR=`$CC -print-prog-name=ar`
cd6ede75 4332
4baa087a
RM
4333OBJDUMP=`$CC -print-prog-name=objdump`
4334
4335
4336# ranlib has to be treated a bit differently since it might not exist at all.
4337ac_ranlib=`$CC -print-prog-name=ranlib`
4338if test "x$ac_ranlib" = xranlib; then
4339# This extra check has to happen since gcc simply echos the parameter in
4340# case it cannot find the value in its own directories.
4341if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26f56c1c
UD
4344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4346if test "${ac_cv_prog_RANLIB+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363done
4364done
26f56c1c 4365IFS=$as_save_IFS
4baa087a
RM
4366
4367fi
4368fi
4369RANLIB=$ac_cv_prog_RANLIB
4370if test -n "$RANLIB"; then
26f56c1c
UD
4371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4372echo "${ECHO_T}$RANLIB" >&6; }
4baa087a 4373else
26f56c1c
UD
4374 { echo "$as_me:$LINENO: result: no" >&5
4375echo "${ECHO_T}no" >&6; }
4baa087a
RM
4376fi
4377
26f56c1c 4378
4baa087a
RM
4379fi
4380if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383set dummy ranlib; ac_word=$2
26f56c1c
UD
4384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4386if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404done
26f56c1c 4405IFS=$as_save_IFS
4baa087a 4406
4baa087a
RM
4407fi
4408fi
4409ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410if test -n "$ac_ct_RANLIB"; then
26f56c1c
UD
4411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4baa087a 4413else
26f56c1c
UD
4414 { echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6; }
4baa087a
RM
4416fi
4417
26f56c1c
UD
4418 if test "x$ac_ct_RANLIB" = x; then
4419 RANLIB=":"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422yes:)
4423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4424whose name does not start with the host triplet. If you think this
4425configuration is useful to you, please write to autoconf@gnu.org." >&5
4426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4427whose name does not start with the host triplet. If you think this
4428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4429ac_tool_warned=yes ;;
4430esac
4431 RANLIB=$ac_ct_RANLIB
4432 fi
4baa087a
RM
4433else
4434 RANLIB="$ac_cv_prog_RANLIB"
4435fi
4436
4437else
4438 RANLIB=$ac_ranlib
4439fi
4440
4441
4442# Determine whether we are using GNU binutils.
26f56c1c
UD
4443{ echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4444echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4baa087a
RM
4445if test "${libc_cv_prog_as_gnu+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448 # Most GNU programs take a -v and spit out some text including
4449# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4450if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4451 libc_cv_prog_as_gnu=yes
4452else
4453 libc_cv_prog_as_gnu=no
4454fi
4455rm -fr contest*
4456fi
26f56c1c
UD
4457{ echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4458echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4baa087a
RM
4459rm -f a.out
4460gnu_as=$libc_cv_prog_as_gnu
4461
26f56c1c
UD
4462{ echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4463echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4baa087a
RM
4464if test "${libc_cv_prog_ld_gnu+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 # Most GNU programs take a -v and spit out some text including
4468# the word 'GNU'. Some try to read stdin, so give them /dev/null.
4469if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4470 libc_cv_prog_ld_gnu=yes
4471else
4472 libc_cv_prog_ld_gnu=no
4473fi
4474rm -fr contest*
4475fi
26f56c1c
UD
4476{ echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4477echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4baa087a
RM
4478gnu_ld=$libc_cv_prog_ld_gnu
4479
4480
4481# Accept binutils 2.13 or newer.
4482for ac_prog in $AS
4483do
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4488if test "${ac_cv_prog_AS+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 if test -n "$AS"; then
4492 ac_cv_prog_AS="$AS" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4501 ac_cv_prog_AS="$ac_prog"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506done
26f56c1c 4507IFS=$as_save_IFS
4baa087a
RM
4508
4509fi
4510fi
4511AS=$ac_cv_prog_AS
4512if test -n "$AS"; then
26f56c1c
UD
4513 { echo "$as_me:$LINENO: result: $AS" >&5
4514echo "${ECHO_T}$AS" >&6; }
4baa087a 4515else
26f56c1c
UD
4516 { echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6; }
4baa087a
RM
4518fi
4519
26f56c1c 4520
4baa087a
RM
4521 test -n "$AS" && break
4522done
4523
4524if test -z "$AS"; then
4525 ac_verc_fail=yes
4526else
4527 # Found it, now check the version.
26f56c1c
UD
4528 { echo "$as_me:$LINENO: checking version of $AS" >&5
4529echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4baa087a
RM
4530 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4531 case $ac_prog_version in
4532 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4533 2.1[3-9]*)
4534 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4535 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4536
4537 esac
26f56c1c
UD
4538 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4539echo "${ECHO_T}$ac_prog_version" >&6; }
4baa087a
RM
4540fi
4541if test $ac_verc_fail = yes; then
73588175 4542 AS=: critic_missing="$critic_missing as"
4baa087a
RM
4543fi
4544
4545for ac_prog in $LD
4546do
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4551if test "${ac_cv_prog_LD+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554 if test -n "$LD"; then
4555 ac_cv_prog_LD="$LD" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4564 ac_cv_prog_LD="$ac_prog"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568done
4569done
26f56c1c 4570IFS=$as_save_IFS
4baa087a
RM
4571
4572fi
4573fi
4574LD=$ac_cv_prog_LD
4575if test -n "$LD"; then
26f56c1c
UD
4576 { echo "$as_me:$LINENO: result: $LD" >&5
4577echo "${ECHO_T}$LD" >&6; }
4baa087a 4578else
26f56c1c
UD
4579 { echo "$as_me:$LINENO: result: no" >&5
4580echo "${ECHO_T}no" >&6; }
4baa087a
RM
4581fi
4582
26f56c1c 4583
4baa087a
RM
4584 test -n "$LD" && break
4585done
4586
4587if test -z "$LD"; then
4588 ac_verc_fail=yes
4589else
4590 # Found it, now check the version.
26f56c1c
UD
4591 { echo "$as_me:$LINENO: checking version of $LD" >&5
4592echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4baa087a
RM
4593 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4594 case $ac_prog_version in
4595 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4596 2.1[3-9]*)
4597 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4598 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4599
4600 esac
26f56c1c
UD
4601 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4602echo "${ECHO_T}$ac_prog_version" >&6; }
4baa087a
RM
4603fi
4604if test $ac_verc_fail = yes; then
73588175 4605 LD=: critic_missing="$critic_missing ld"
4baa087a
RM
4606fi
4607
4608
4609# We need the physical current working directory. We cannot use the
4610# "pwd -P" shell builtin since that's not portable. Instead we try to
4611# find a pwd binary. Note that assigning to the PWD environment
4612# variable might have some interesting side effects, so we don't do
4613# that.
4614# Extract the first word of "pwd", so it can be a program name with args.
4615set dummy pwd; ac_word=$2
26f56c1c
UD
4616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4618if test "${ac_cv_path_PWD_P+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 case $PWD_P in
4622 [\\/]* | ?:[\\/]*)
4623 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4624 ;;
4625 *)
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4633 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638done
26f56c1c 4639IFS=$as_save_IFS
4baa087a
RM
4640
4641 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4642 ;;
4643esac
4644fi
4645PWD_P=$ac_cv_path_PWD_P
4baa087a 4646if test -n "$PWD_P"; then
26f56c1c
UD
4647 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4648echo "${ECHO_T}$PWD_P" >&6; }
4baa087a 4649else
26f56c1c
UD
4650 { echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6; }
4baa087a
RM
4652fi
4653
26f56c1c 4654
4baa087a
RM
4655if test "$PWD_P" = no; then
4656 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4657echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4658 { (exit 1); exit 1; }; }
4659fi
4660
4661# These programs are version sensitive.
4662
4663for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4664do
4665 # Extract the first word of "$ac_prog", so it can be a program name with args.
4666set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4669if test "${ac_cv_prog_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672 if test -n "$CC"; then
4673 ac_cv_prog_CC="$CC" # Let the user override the test.
4674else
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4682 ac_cv_prog_CC="$ac_prog"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686done
4687done
26f56c1c 4688IFS=$as_save_IFS
4baa087a
RM
4689
4690fi
4691fi
4692CC=$ac_cv_prog_CC
4693if test -n "$CC"; then
26f56c1c
UD
4694 { echo "$as_me:$LINENO: result: $CC" >&5
4695echo "${ECHO_T}$CC" >&6; }
4baa087a 4696else
26f56c1c
UD
4697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
4baa087a
RM
4699fi
4700
26f56c1c 4701
4baa087a
RM
4702 test -n "$CC" && break
4703done
4704
4705if test -z "$CC"; then
4706 ac_verc_fail=yes
4707else
4708 # Found it, now check the version.
26f56c1c
UD
4709 { echo "$as_me:$LINENO: checking version of $CC" >&5
4710echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4baa087a
RM
4711 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4712 case $ac_prog_version in
4713 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3cc4a097 4714 3.4* | 4.[0-9]* )
4baa087a
RM
4715 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4716 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4717
4718 esac
26f56c1c
UD
4719 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4720echo "${ECHO_T}$ac_prog_version" >&6; }
4baa087a
RM
4721fi
4722if test $ac_verc_fail = yes; then
4723 critic_missing="$critic_missing gcc"
4724fi
4725
4726for ac_prog in gnumake gmake make
4727do
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a
RM
4732if test "${ac_cv_prog_MAKE+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 if test -n "$MAKE"; then
4736 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a
RM
4745 ac_cv_prog_MAKE="$ac_prog"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750done
26f56c1c 4751IFS=$as_save_IFS
4baa087a
RM
4752
4753fi
4754fi
4755MAKE=$ac_cv_prog_MAKE
4756if test -n "$MAKE"; then
26f56c1c
UD
4757 { echo "$as_me:$LINENO: result: $MAKE" >&5
4758echo "${ECHO_T}$MAKE" >&6; }
4baa087a 4759else
26f56c1c
UD
4760 { echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; }
4baa087a
RM
4762fi
4763
26f56c1c 4764
4baa087a
RM
4765 test -n "$MAKE" && break
4766done
4767
4768if test -z "$MAKE"; then
4769 ac_verc_fail=yes
4770else
4771 # Found it, now check the version.
26f56c1c
UD
4772 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4773echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4baa087a
RM
4774 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4775 case $ac_prog_version in
4776 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4777 3.79* | 3.[89]*)
4778 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4779 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4780
4781 esac
26f56c1c
UD
4782 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4783echo "${ECHO_T}$ac_prog_version" >&6; }
4baa087a
RM
4784fi
4785if test $ac_verc_fail = yes; then
4786 critic_missing="$critic_missing make"
4787fi
6e3d59bc 4788
cd6ede75 4789
4baa087a
RM
4790for ac_prog in gnumsgfmt gmsgfmt msgfmt
4791do
4792 # Extract the first word of "$ac_prog", so it can be a program name with args.
4793set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 4796if test "${ac_cv_prog_MSGFMT+set}" = set; then
3a12e572 4797 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4798else
4baa087a
RM
4799 if test -n "$MSGFMT"; then
4800 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
cd6ede75 4801else
3a12e572
UD
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4809 ac_cv_prog_MSGFMT="$ac_prog"
3a12e572
UD
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
26f56c1c 4815IFS=$as_save_IFS
3a12e572 4816
cd6ede75
UD
4817fi
4818fi
4baa087a
RM
4819MSGFMT=$ac_cv_prog_MSGFMT
4820if test -n "$MSGFMT"; then
26f56c1c
UD
4821 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4822echo "${ECHO_T}$MSGFMT" >&6; }
cd6ede75 4823else
26f56c1c
UD
4824 { echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6; }
cd6ede75
UD
4826fi
4827
26f56c1c 4828
4baa087a
RM
4829 test -n "$MSGFMT" && break
4830done
4831
4832if test -z "$MSGFMT"; then
4833 ac_verc_fail=yes
4834else
4835 # Found it, now check the version.
26f56c1c
UD
4836 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4837echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4baa087a
RM
4838 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4839 case $ac_prog_version in
4840 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4841 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4842 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4843 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4844
4845 esac
26f56c1c
UD
4846 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4847echo "${ECHO_T}$ac_prog_version" >&6; }
3a12e572 4848fi
4baa087a
RM
4849if test $ac_verc_fail = yes; then
4850 MSGFMT=: aux_missing="$aux_missing msgfmt"
4851fi
4852
4853for ac_prog in makeinfo
4854do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 4859if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3a12e572 4860 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4861else
4baa087a
RM
4862 if test -n "$MAKEINFO"; then
4863 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
cd6ede75 4864else
3a12e572
UD
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4872 ac_cv_prog_MAKEINFO="$ac_prog"
3a12e572
UD
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876done
4877done
26f56c1c 4878IFS=$as_save_IFS
3a12e572 4879
cd6ede75
UD
4880fi
4881fi
4baa087a
RM
4882MAKEINFO=$ac_cv_prog_MAKEINFO
4883if test -n "$MAKEINFO"; then
26f56c1c
UD
4884 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4885echo "${ECHO_T}$MAKEINFO" >&6; }
cd6ede75 4886else
26f56c1c
UD
4887 { echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6; }
cd6ede75
UD
4889fi
4890
26f56c1c 4891
4baa087a
RM
4892 test -n "$MAKEINFO" && break
4893done
5edb9387 4894
4baa087a
RM
4895if test -z "$MAKEINFO"; then
4896 ac_verc_fail=yes
5edb9387 4897else
4baa087a 4898 # Found it, now check the version.
26f56c1c
UD
4899 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4900echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4baa087a
RM
4901 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4902 case $ac_prog_version in
4903 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4904 4.*)
4905 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4906 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5edb9387 4907
4baa087a 4908 esac
26f56c1c
UD
4909 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4910echo "${ECHO_T}$ac_prog_version" >&6; }
5edb9387 4911fi
4baa087a
RM
4912if test $ac_verc_fail = yes; then
4913 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5edb9387 4914fi
cd6ede75 4915
4baa087a 4916for ac_prog in sed
c4d23330
RM
4917do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 4922if test "${ac_cv_prog_SED+set}" = set; then
c4d23330
RM
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
4baa087a
RM
4925 if test -n "$SED"; then
4926 ac_cv_prog_SED="$SED" # Let the user override the test.
c4d23330
RM
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4935 ac_cv_prog_SED="$ac_prog"
c4d23330
RM
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939done
4940done
26f56c1c 4941IFS=$as_save_IFS
c4d23330
RM
4942
4943fi
4944fi
4baa087a
RM
4945SED=$ac_cv_prog_SED
4946if test -n "$SED"; then
26f56c1c
UD
4947 { echo "$as_me:$LINENO: result: $SED" >&5
4948echo "${ECHO_T}$SED" >&6; }
c4d23330 4949else
26f56c1c
UD
4950 { echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6; }
c4d23330
RM
4952fi
4953
26f56c1c 4954
4baa087a 4955 test -n "$SED" && break
c4d23330
RM
4956done
4957
4baa087a 4958if test -z "$SED"; then
c4d23330
RM
4959 ac_verc_fail=yes
4960else
4961 # Found it, now check the version.
26f56c1c
UD
4962 { echo "$as_me:$LINENO: checking version of $SED" >&5
4963echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4baa087a 4964 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
c4d23330
RM
4965 case $ac_prog_version in
4966 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4baa087a 4967 3.0[2-9]*|3.[1-9]*|[4-9]*)
c4d23330
RM
4968 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4969 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4970
4971 esac
26f56c1c
UD
4972 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4973echo "${ECHO_T}$ac_prog_version" >&6; }
c4d23330
RM
4974fi
4975if test $ac_verc_fail = yes; then
4baa087a 4976 SED=: aux_missing="$aux_missing sed"
c4d23330
RM
4977fi
4978
4baa087a 4979
476e7d78 4980for ac_prog in autoconf
c4d23330
RM
4981do
4982 # Extract the first word of "$ac_prog", so it can be a program name with args.
4983set dummy $ac_prog; ac_word=$2
26f56c1c
UD
4984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4baa087a 4986if test "${ac_cv_prog_AUTOCONF+set}" = set; then
c4d23330
RM
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4baa087a
RM
4989 if test -n "$AUTOCONF"; then
4990 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
c4d23330
RM
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4baa087a 4999 ac_cv_prog_AUTOCONF="$ac_prog"
c4d23330
RM
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
26f56c1c 5005IFS=$as_save_IFS
c4d23330
RM
5006
5007fi
5008fi
4baa087a
RM
5009AUTOCONF=$ac_cv_prog_AUTOCONF
5010if test -n "$AUTOCONF"; then
26f56c1c
UD
5011 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5012echo "${ECHO_T}$AUTOCONF" >&6; }
c4d23330 5013else
26f56c1c
UD
5014 { echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6; }
c4d23330
RM
5016fi
5017
26f56c1c 5018
4baa087a 5019 test -n "$AUTOCONF" && break
c4d23330 5020done
4baa087a 5021test -n "$AUTOCONF" || AUTOCONF="no"
c4d23330 5022
476e7d78
RM
5023case "x$AUTOCONF" in
5024xno|x|x:) AUTOCONF=no ;;
5025*)
26f56c1c
UD
5026 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5027echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
4baa087a
RM
5028if test "${libc_cv_autoconf_works+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
c4d23330 5030else
476e7d78
RM
5031 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5032 libc_cv_autoconf_works=yes
5033 else
5034 libc_cv_autoconf_works=no
5035 fi
c4d23330 5036fi
26f56c1c
UD
5037{ echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5038echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
476e7d78
RM
5039 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5040 ;;
5041esac
5042if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5043 # If --without-cvs they probably won't change configure.in, so no complaints.
5044 aux_missing="$aux_missing autoconf"
c4d23330
RM
5045fi
5046
32a448ed
RM
5047test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5048*** These critical programs are missing or too old:$critic_missing
5049*** Check the INSTALL file for required versions." >&5
5050echo "$as_me: error:
5051*** These critical programs are missing or too old:$critic_missing
5052*** Check the INSTALL file for required versions." >&2;}
5053 { (exit 1); exit 1; }; }
5054
3a12e572 5055test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
9c6fffc0 5056*** These auxiliary programs are missing or incompatible versions:$aux_missing
ea9f119b 5057*** some features will be disabled.
3a12e572
UD
5058*** Check the INSTALL file for required versions." >&5
5059echo "$as_me: WARNING:
5060*** These auxiliary programs are missing or incompatible versions:$aux_missing
5061*** some features will be disabled.
5062*** Check the INSTALL file for required versions." >&2;}
ea9f119b 5063
3c720987
UD
5064# if using special system headers, find out the compiler's sekrit
5065# header directory and add that to the list. NOTE: Only does the right
5066# thing on a system that doesn't need fixincludes. (Not presently a problem.)
5067if test -n "$sysheaders"; then
67fbfa5c
RM
5068 SYSINCLUDES=-nostdinc
5069 for d in include include-fixed; do
22dca1ea 5070 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
67fbfa5c
RM
5071 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5072 done
5073 SYSINCLUDES="$SYSINCLUDES \
3d6ce23a 5074-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
ef226fec
RM
5075 if test -n "$CXX"; then
5076 cxxversion=`$CXX -dumpversion 2>&5` &&
5077 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5078 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5079 CXX_SYSINCLUDES="-isystem $cxxheaders \
5080-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5081 fi
3c720987
UD
5082fi
5083
5084
ef226fec 5085
f89ac85c 5086# check if ranlib is necessary
26f56c1c
UD
5087{ echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5088echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
3a12e572
UD
5089if test "${libc_cv_ranlib_necessary+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
f38931a9 5091else
f89ac85c
UD
5092 cat > conftest.c <<EOF
5093int a;
5094char b;
5095void c(void) {}
5096EOF
3217788f 5097$CC $CFLAGS $CPPFLAGS -c conftest.c
5bbfc1ea 5098$AR cr conftest.a conftest.o
f89ac85c
UD
5099cp conftest.a conftest2.a
5100$RANLIB conftest.a
5101if cmp -s conftest.a conftest2.a; then
5102 libc_cv_ranlib_necessary=no
f38931a9 5103else
f89ac85c 5104 libc_cv_ranlib_necessary=yes
f38931a9 5105fi
f89ac85c 5106rm -rf conftest*
f38931a9 5107fi
26f56c1c
UD
5108{ echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5109echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
f89ac85c
UD
5110if test "$libc_cv_ranlib_necessary" = no; then
5111 RANLIB=:
5112fi
f38931a9 5113
3911660e
UD
5114# Test if LD_LIBRARY_PATH contains the notation for the current directory
5115# since this would lead to problems installing/building glibc.
5116# LD_LIBRARY_PATH contains the current directory if one of the following
5117# is true:
5118# - one of the terminals (":" and ";") is the first or last sign
5119# - two terminals occur directly after each other
5120# - the path contains an element with a dot in it
26f56c1c
UD
5121{ echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5122echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
3911660e
UD
5123case ${LD_LIBRARY_PATH} in
5124 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 5125 ld_library_path_setting="contains current directory"
3911660e
UD
5126 ;;
5127 *)
5128 ld_library_path_setting="ok"
5129 ;;
5130esac
26f56c1c
UD
5131{ echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5132echo "${ECHO_T}$ld_library_path_setting" >&6; }
3911660e 5133if test "$ld_library_path_setting" != "ok"; then
3a12e572
UD
5134{ { echo "$as_me:$LINENO: error:
5135*** LD_LIBRARY_PATH shouldn't contain the current directory when
5136*** building glibc. Please change the environment variable
5137*** and run configure again." >&5
5138echo "$as_me: error:
63bda0c1
UD
5139*** LD_LIBRARY_PATH shouldn't contain the current directory when
5140*** building glibc. Please change the environment variable
3a12e572
UD
5141*** and run configure again." >&2;}
5142 { (exit 1); exit 1; }; }
3911660e
UD
5143fi
5144
26f56c1c
UD
5145{ echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5146echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
3a12e572
UD
5147if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
74bd2300
UD
5149else
5150 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5151 libc_cv_gcc_static_libgcc=
5152else
5153 libc_cv_gcc_static_libgcc=-static-libgcc
5154fi
5155fi
26f56c1c
UD
5156{ echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5157echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
74bd2300
UD
5158
5159
cd6ede75
UD
5160# Extract the first word of "bash", so it can be a program name with args.
5161set dummy bash; ac_word=$2
26f56c1c
UD
5162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164if test "${ac_cv_path_BASH_SHELL+set}" = set; then
3a12e572 5165 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 5166else
26f56c1c 5167 case $BASH_SHELL in
3a12e572 5168 [\\/]* | ?:[\\/]*)
26f56c1c 5169 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
cd6ede75
UD
5170 ;;
5171 *)
3a12e572
UD
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c
UD
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
3a12e572
UD
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
26f56c1c 5185IFS=$as_save_IFS
3a12e572 5186
26f56c1c 5187 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
cd6ede75
UD
5188 ;;
5189esac
5190fi
26f56c1c
UD
5191BASH_SHELL=$ac_cv_path_BASH_SHELL
5192if test -n "$BASH_SHELL"; then
5193 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5194echo "${ECHO_T}$BASH_SHELL" >&6; }
cd6ede75 5195else
26f56c1c
UD
5196 { echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6; }
cd6ede75
UD
5198fi
5199
26f56c1c
UD
5200
5201if test "$BASH_SHELL" != no &&
5202 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
6973fc01 5203 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
cd6ede75
UD
5204 libc_cv_have_bash2=yes
5205else
5206 libc_cv_have_bash2=no
5207fi
5208
5209
26f56c1c 5210if test "$BASH_SHELL" = no; then
cd6ede75
UD
5211 # Extract the first word of "ksh", so it can be a program name with args.
5212set dummy ksh; ac_word=$2
26f56c1c
UD
5213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
5215if test "${ac_cv_path_KSH+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 5217else
3a12e572
UD
5218 case $KSH in
5219 [\\/]* | ?:[\\/]*)
cd6ede75
UD
5220 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5221 ;;
5222 *)
3a12e572
UD
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
5230 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234done
5235done
26f56c1c 5236IFS=$as_save_IFS
3a12e572 5237
cd6ede75
UD
5238 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5239 ;;
5240esac
5241fi
3a12e572 5242KSH=$ac_cv_path_KSH
cd6ede75 5243if test -n "$KSH"; then
26f56c1c
UD
5244 { echo "$as_me:$LINENO: result: $KSH" >&5
5245echo "${ECHO_T}$KSH" >&6; }
cd6ede75 5246else
26f56c1c
UD
5247 { echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6; }
cd6ede75
UD
5249fi
5250
26f56c1c 5251
cd6ede75
UD
5252 if test "$KSH" = no; then
5253 libc_cv_have_ksh=no
5254 else
5255 libc_cv_have_ksh=yes
5256 fi
5257else
26f56c1c 5258 KSH="$BASH_SHELL"
3a12e572 5259
cd6ede75
UD
5260 libc_cv_have_ksh=yes
5261fi
5262
5263
a8c01776 5264for ac_prog in gawk mawk nawk awk
a2b08ee5 5265do
3a12e572 5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
a2b08ee5 5267set dummy $ac_prog; ac_word=$2
26f56c1c
UD
5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
5270if test "${ac_cv_prog_AWK+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5aa8ff62
UD
5272else
5273 if test -n "$AWK"; then
5274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5275else
3a12e572
UD
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
5283 ac_cv_prog_AWK="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287done
5288done
26f56c1c 5289IFS=$as_save_IFS
3a12e572 5290
5aa8ff62
UD
5291fi
5292fi
3a12e572 5293AWK=$ac_cv_prog_AWK
5aa8ff62 5294if test -n "$AWK"; then
26f56c1c
UD
5295 { echo "$as_me:$LINENO: result: $AWK" >&5
5296echo "${ECHO_T}$AWK" >&6; }
5aa8ff62 5297else
26f56c1c
UD
5298 { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
5aa8ff62
UD
5300fi
5301
26f56c1c 5302
3a12e572 5303 test -n "$AWK" && break
5aa8ff62
UD
5304done
5305
c0016081
UD
5306# Extract the first word of "perl", so it can be a program name with args.
5307set dummy perl; ac_word=$2
26f56c1c
UD
5308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
5310if test "${ac_cv_path_PERL+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
a2b08ee5 5312else
3a12e572
UD
5313 case $PERL in
5314 [\\/]* | ?:[\\/]*)
a2b08ee5
UD
5315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5316 ;;
5317 *)
3a12e572
UD
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
5325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
26f56c1c 5331IFS=$as_save_IFS
3a12e572 5332
c0016081 5333 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5
UD
5334 ;;
5335esac
5336fi
3a12e572 5337PERL=$ac_cv_path_PERL
a2b08ee5 5338if test -n "$PERL"; then
26f56c1c
UD
5339 { echo "$as_me:$LINENO: result: $PERL" >&5
5340echo "${ECHO_T}$PERL" >&6; }
a2b08ee5 5341else
26f56c1c
UD
5342 { echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6; }
a2b08ee5
UD
5344fi
5345
26f56c1c 5346
2fd5d029
RM
5347if test "$PERL" != no &&
5348 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5349 PERL=no
fc304e02 5350fi
c0016081
UD
5351# Extract the first word of "install-info", so it can be a program name with args.
5352set dummy install-info; ac_word=$2
26f56c1c
UD
5353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
5355if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
c0016081 5357else
3a12e572
UD
5358 case $INSTALL_INFO in
5359 [\\/]* | ?:[\\/]*)
c0016081
UD
5360 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5361 ;;
5362 *)
3a12e572 5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
5364as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5365for as_dir in $as_dummy
3a12e572
UD
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
5371 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376done
26f56c1c 5377IFS=$as_save_IFS
3a12e572 5378
c0016081
UD
5379 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5380 ;;
5381esac
5382fi
3a12e572 5383INSTALL_INFO=$ac_cv_path_INSTALL_INFO
c0016081 5384if test -n "$INSTALL_INFO"; then
26f56c1c
UD
5385 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5386echo "${ECHO_T}$INSTALL_INFO" >&6; }
c0016081 5387else
26f56c1c
UD
5388 { echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6; }
c0016081
UD
5390fi
5391
26f56c1c 5392
ae113383
UD
5393# Extract the first word of "bison", so it can be a program name with args.
5394set dummy bison; ac_word=$2
26f56c1c
UD
5395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3a12e572
UD
5397if test "${ac_cv_path_BISON+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
ae113383 5399else
3a12e572
UD
5400 case $BISON in
5401 [\\/]* | ?:[\\/]*)
ae113383
UD
5402 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5403 ;;
ae113383 5404 *)
3a12e572 5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
5406as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5407for as_dir in $as_dummy
3a12e572
UD
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
26f56c1c 5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3a12e572
UD
5413 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418done
26f56c1c 5419IFS=$as_save_IFS
3a12e572 5420
ae113383
UD
5421 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5422 ;;
5423esac
5424fi
3a12e572 5425BISON=$ac_cv_path_BISON
ae113383 5426if test -n "$BISON"; then
26f56c1c
UD
5427 { echo "$as_me:$LINENO: result: $BISON" >&5
5428echo "${ECHO_T}$BISON" >&6; }
ae113383 5429else
26f56c1c
UD
5430 { echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6; }
ae113383
UD
5432fi
5433
5434
26f56c1c
UD
5435
5436{ echo "$as_me:$LINENO: checking for signed size_t type" >&5
5437echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
3a12e572
UD
5438if test "${libc_cv_signed_size_t+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5440else
5441 echo '#include <stddef.h>
5442FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5443if eval "$ac_cpp conftest.c 2>/dev/null" \
5444| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5445 libc_cv_signed_size_t=no
5446else
5447 libc_cv_signed_size_t=yes
5448fi
5449rm -f conftest*
5450fi
26f56c1c
UD
5451{ echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5452echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
cd6ede75
UD
5453if test $libc_cv_signed_size_t = yes; then
5454 cat >> confdefs.h <<\EOF
5455#undef __SIZE_TYPE__
5456#define __SIZE_TYPE__ unsigned
5457EOF
5458fi
5459
f4b07664 5460
26f56c1c
UD
5461{ echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5462echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
3a12e572
UD
5463if test "${libc_cv_friendly_stddef+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 5465else
f4b07664 5466 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
5467/* confdefs.h. */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h. */
cd6ede75
UD
5472#define __need_size_t
5473#define __need_wchar_t
5474#include <stddef.h>
5475#define __need_NULL
5476#include <stddef.h>
3a12e572
UD
5477int
5478main ()
5479{
cd6ede75
UD
5480size_t size; wchar_t wchar;
5481#ifdef offsetof
5482#error stddef.h ignored __need_*
5483#endif
5484if (&size == NULL || &wchar == NULL) abort ();
3a12e572
UD
5485 ;
5486 return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext
26f56c1c
UD
5490if { (ac_try="$ac_compile"
5491case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
3a12e572 5497 ac_status=$?
9382fcee
RM
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
3a12e572 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
cd6ede75
UD
5506 libc_cv_friendly_stddef=yes
5507else
3a12e572 5508 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
26f56c1c 5511 libc_cv_friendly_stddef=no
cd6ede75 5512fi
26f56c1c
UD
5513
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd6ede75 5515fi
26f56c1c
UD
5516{ echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5517echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
cd6ede75
UD
5518if test $libc_cv_friendly_stddef = yes; then
5519 config_vars="$config_vars
5520override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5521fi
5522
26f56c1c
UD
5523{ echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5524echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
3a12e572
UD
5525if test "${libc_cv_need_minus_P+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5527else
5528 cat > conftest.S <<EOF
5529#include "confdefs.h"
5530/* Nothing whatsoever. */
5531EOF
3217788f 5532if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
61cea1c3
RM
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
cd6ede75
UD
5538 libc_cv_need_minus_P=no
5539else
5540 libc_cv_need_minus_P=yes
5541fi
5542rm -f conftest*
5543fi
26f56c1c
UD
5544{ echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5545echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
cd6ede75
UD
5546if test $libc_cv_need_minus_P = yes; then
5547 config_vars="$config_vars
5548asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5549fi
5550
26f56c1c
UD
5551{ echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5552echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
3a12e572
UD
5553if test "${libc_cv_dot_text+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
2293395f
UD
5555else
5556 cat > conftest.s <<EOF
5557.text
5558EOF
5559libc_cv_dot_text=
3217788f 5560if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
2293395f
UD
5566 libc_cv_dot_text=.text
5567fi
5568rm -f conftest*
5569fi
5570
5571if test -z "$libc_cv_dot_text"; then
26f56c1c
UD
5572 { echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6; }
2293395f 5574else
26f56c1c
UD
5575 { echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6; }
2293395f
UD
5577fi
5578
26f56c1c
UD
5579{ echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5580echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
3a12e572
UD
5581if test "${libc_cv_asm_global_directive+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5583else
5584 libc_cv_asm_global_directive=UNKNOWN
908c3d5b 5585for ac_globl in .globl .global .EXPORT; do
cd6ede75 5586 cat > conftest.s <<EOF
2293395f 5587 ${libc_cv_dot_text}
908c3d5b 5588 ${ac_globl} foo
cd6ede75
UD
5589foo:
5590EOF
3217788f 5591 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
cd6ede75
UD
5597 libc_cv_asm_global_directive=${ac_globl}
5598 fi
5599 rm -f conftest*
5600 test $libc_cv_asm_global_directive != UNKNOWN && break
5601done
5602fi
26f56c1c
UD
5603{ echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5604echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
cd6ede75 5605if test $libc_cv_asm_global_directive = UNKNOWN; then
3a12e572
UD
5606 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5607echo "$as_me: error: cannot determine asm global directive" >&2;}
5608 { (exit 1); exit 1; }; }
cd6ede75 5609else
3a12e572 5610 cat >>confdefs.h <<_ACEOF
cd6ede75 5611#define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
3a12e572 5612_ACEOF
cd6ede75
UD
5613
5614fi
5615
26f56c1c
UD
5616{ echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5617echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
3a12e572
UD
5618if test "${libc_cv_asm_set_directive+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5620else
5621 cat > conftest.s <<EOF
2293395f 5622${libc_cv_dot_text}
cd6ede75
UD
5623foo:
5624.set glibc_conftest_frobozz,foo
5625$libc_cv_asm_global_directive glibc_conftest_frobozz
5626EOF
5627# The alpha-dec-osf1 assembler gives only a warning for `.set'
5628# (but it doesn't work), so we must do a linking check to be sure.
5629cat > conftest1.c <<\EOF
5630extern int glibc_conftest_frobozz;
640f0119 5631void _start() { glibc_conftest_frobozz = 1; }
cd6ede75
UD
5632EOF
5633if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
640f0119 5634 -nostartfiles -nostdlib \
cd6ede75
UD
5635 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5636 libc_cv_asm_set_directive=yes
5637else
5638 libc_cv_asm_set_directive=no
5639fi
5640rm -f conftest*
5641fi
26f56c1c
UD
5642{ echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5643echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
cd6ede75 5644if test $libc_cv_asm_set_directive = yes; then
3a12e572 5645 cat >>confdefs.h <<\_ACEOF
cd6ede75 5646#define HAVE_ASM_SET_DIRECTIVE 1
3a12e572 5647_ACEOF
cd6ede75
UD
5648
5649fi
5650
26f56c1c
UD
5651{ echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5652echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
3a12e572
UD
5653if test "${libc_cv_asm_type_prefix+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
b88ac073
RM
5655else
5656 libc_cv_asm_type_prefix=no
5657for ac_try_prefix in '@' '%' '#'; do
5658 cat > conftest.s <<EOF
5659 ${libc_cv_dot_text}
5660 ${libc_cv_asm_global_directive} foo
5661 .type foo, ${ac_try_prefix}object
5662 .size foo, 1
5663foo:
5664 .byte 1
5665EOF
3217788f 5666 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
b88ac073
RM
5672 libc_cv_asm_type_prefix=${ac_try_prefix}
5673 fi
5674 rm -f conftest*
5675 test "x$libc_cv_asm_type_prefix" != xno && break
5676done
5677fi
26f56c1c
UD
5678{ echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5679echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
b88ac073 5680if test "x$libc_cv_asm_type_prefix" != xno; then
3a12e572 5681 cat >>confdefs.h <<_ACEOF
b88ac073 5682#define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
3a12e572 5683_ACEOF
b88ac073
RM
5684
5685fi
5686
26f56c1c
UD
5687{ echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5688echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
3a12e572
UD
5689if test "${libc_cv_asm_symver_directive+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5691else
5692 cat > conftest.s <<EOF
2293395f 5693${libc_cv_dot_text}
cd6ede75
UD
5694_sym:
5695.symver _sym,sym@VERS
5696EOF
3217788f 5697if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
cd6ede75
UD
5698 libc_cv_asm_symver_directive=yes
5699else
5700 libc_cv_asm_symver_directive=no
5701fi
5702rm -f conftest*
5703fi
26f56c1c
UD
5704{ echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5705echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5706{ echo "$as_me:$LINENO: checking for ld --version-script" >&5
5707echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
3a12e572
UD
5708if test "${libc_cv_ld_version_script_option+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5710else
5711 if test $libc_cv_asm_symver_directive = yes; then
5712 cat > conftest.s <<EOF
2293395f 5713${libc_cv_dot_text}
cd6ede75
UD
5714_sym:
5715.symver _sym,sym@VERS
5716EOF
5717 cat > conftest.map <<EOF
f43ce637 5718VERS_1 {
cd6ede75
UD
5719 global: sym;
5720};
f43ce637
UD
5721
5722VERS_2 {
5723 global: sym;
5724} VERS_1;
cd6ede75 5725EOF
3217788f
RM
5726 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5727 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5728 -o conftest.so conftest.o
5729 -nostartfiles -nostdlib
5730 -Wl,--version-script,conftest.map
3a12e572
UD
5731 1>&5'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; };
cd6ede75
UD
5737 then
5738 libc_cv_ld_version_script_option=yes
5739 else
5740 libc_cv_ld_version_script_option=no
5741 fi
5742 else
5743 libc_cv_ld_version_script_option=no
5744 fi
5745else
5746 libc_cv_ld_version_script_option=no
5747fi
5748rm -f conftest*
5749fi
26f56c1c
UD
5750{ echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5751echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
7499a22a
RM
5752if test $shared != no &&
5753 test $libc_cv_asm_symver_directive = yes &&
650425ce
UD
5754 test $libc_cv_ld_version_script_option = yes &&
5755 test $enable_versioning = yes; then
cd6ede75 5756 VERSIONING=yes
3a12e572 5757 cat >>confdefs.h <<\_ACEOF
cd6ede75 5758#define DO_VERSIONING 1
3a12e572 5759_ACEOF
cd6ede75
UD
5760
5761else
5762 VERSIONING=no
5763fi
5764
5765
22af13de 5766if test $elf = yes && test $shared != no && test $VERSIONING = no; then
f43ce637 5767 echo "\
f4017d20 5768*** WARNING: You should not compile GNU libc without versioning. Not using
f43ce637
UD
5769*** versioning will introduce incompatibilities so that old binaries
5770*** will not run anymore.
08a0d60a 5771*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
f43ce637 5772fi
cd6ede75 5773if test $elf = yes; then
26f56c1c
UD
5774 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5775echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
3a12e572
UD
5776if test "${libc_cv_asm_previous_directive+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5778else
5779 cat > conftest.s <<EOF
5780.section foo_section
5781.previous
5782EOF
3217788f 5783 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
cd6ede75
UD
5789 libc_cv_asm_previous_directive=yes
5790 else
5791 libc_cv_asm_previous_directive=no
5792 fi
5793 rm -f conftest*
5794fi
26f56c1c
UD
5795{ echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5796echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
cd6ede75 5797 if test $libc_cv_asm_previous_directive = yes; then
3a12e572 5798 cat >>confdefs.h <<\_ACEOF
cd6ede75 5799#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
3a12e572 5800_ACEOF
cd6ede75
UD
5801
5802 else
26f56c1c
UD
5803 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5804echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
3a12e572
UD
5805if test "${libc_cv_asm_popsection_directive+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5807else
5808 cat > conftest.s <<EOF
5809.pushsection foo_section
5810.popsection
5811EOF
3217788f 5812 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
cd6ede75
UD
5818 libc_cv_asm_popsection_directive=yes
5819 else
5820 libc_cv_asm_popsection_directive=no
5821 fi
5822 rm -f conftest*
5823fi
26f56c1c
UD
5824{ echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5825echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
cd6ede75 5826 if test $libc_cv_asm_popsection_directive = yes; then
3a12e572 5827 cat >>confdefs.h <<\_ACEOF
cd6ede75 5828#define HAVE_ASM_POPSECTION_DIRECTIVE 1
3a12e572 5829_ACEOF
cd6ede75
UD
5830
5831 fi
5832 fi
26f56c1c
UD
5833 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5834echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
3a12e572
UD
5835if test "${libc_cv_asm_protected_directive+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
2d499f55
UD
5837else
5838 cat > conftest.s <<EOF
5839.protected foo
5840foo:
5841.hidden bar
5842bar:
5843EOF
3217788f 5844 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
2d499f55
UD
5850 libc_cv_asm_protected_directive=yes
5851 else
11bf311e
UD
5852 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5853echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5854 { (exit 1); exit 1; }; }
2d499f55
UD
5855 fi
5856 rm -f conftest*
5857fi
26f56c1c
UD
5858{ echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5859echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
2d499f55 5860
0d01dace 5861 if test $libc_cv_asm_protected_directive = yes; then
26f56c1c
UD
5862 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5863echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
3a12e572
UD
5864if test "${libc_cv_visibility_attribute+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
0d01dace
UD
5866else
5867 cat > conftest.c <<EOF
5868 int foo __attribute__ ((visibility ("hidden"))) = 1;
5869 int bar __attribute__ ((visibility ("protected"))) = 1;
5870EOF
5871 libc_cv_visibility_attribute=no
61cea1c3
RM
5872 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
0d01dace
UD
5878 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5879 if grep '\.protected.*bar' conftest.s >/dev/null; then
5880 libc_cv_visibility_attribute=yes
5881 fi
5882 fi
5883 fi
5884 rm -f conftest.cs
0d01dace 5885
3a12e572 5886fi
26f56c1c
UD
5887{ echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5888echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
11bf311e
UD
5889 if test $libc_cv_visibility_attribute != yes; then
5890 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5891echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5892 { (exit 1); exit 1; }; }
0d01dace
UD
5893 fi
5894 fi
5895
37ba7d66 5896 if test $libc_cv_visibility_attribute = yes; then
26f56c1c
UD
5897 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5898echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
3a12e572
UD
5899if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
37ba7d66
UD
5901else
5902 cat > conftest.c <<EOF
5903 int foo (int x);
5904 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5905 int bar (int x) { return x; }
5906EOF
5907 libc_cv_broken_visibility_attribute=yes
61cea1c3
RM
5908 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
37ba7d66
UD
5914 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5915 libc_cv_broken_visibility_attribute=no
5916 fi
5917 fi
5918 rm -f conftest.c conftest.s
37ba7d66 5919
3a12e572 5920fi
26f56c1c
UD
5921{ echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5922echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
37ba7d66 5923 if test $libc_cv_broken_visibility_attribute = yes; then
11bf311e
UD
5924 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5925echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5926 { (exit 1); exit 1; }; }
37ba7d66
UD
5927 fi
5928 fi
5929
26f56c1c
UD
5930 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5931echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
3a12e572
UD
5932if test "${libc_cv_broken_alias_attribute+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
37ba7d66
UD
5934else
5935 cat > conftest.c <<EOF
5936 extern int foo (int x) __asm ("xyzzy");
5937 int bar (int x) { return x; }
48b8e846
UD
5938 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5939 extern int dfoo;
5940 extern __typeof (dfoo) dfoo __asm ("abccb");
5941 int dfoo = 1;
37ba7d66
UD
5942EOF
5943 libc_cv_broken_alias_attribute=yes
61cea1c3
RM
5944 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
48b8e846
UD
5950 if grep 'xyzzy' conftest.s >/dev/null &&
5951 grep 'abccb' conftest.s >/dev/null; then
37ba7d66
UD
5952 libc_cv_broken_alias_attribute=no
5953 fi
5954 fi
5955 rm -f conftest.c conftest.s
37ba7d66 5956
3a12e572 5957fi
26f56c1c
UD
5958{ echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5959echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
37ba7d66 5960 if test $libc_cv_broken_alias_attribute = yes; then
11bf311e
UD
5961 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5962echo "$as_me: error: working alias attribute support required" >&2;}
5963 { (exit 1); exit 1; }; }
37ba7d66
UD
5964 fi
5965
8e635611 5966 if test $libc_cv_visibility_attribute = yes; then
26f56c1c
UD
5967 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5968echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
3a12e572
UD
5969if test "${libc_cv_have_sdata_section+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
0d01dace
UD
5971else
5972 echo "int i;" > conftest.c
5973 libc_cv_have_sdata_section=no
dbc92dc6 5974 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
0d01dace
UD
5975 | grep '\.sdata' >/dev/null; then
5976 libc_cv_have_sdata_section=yes
5977 fi
5978 rm -f conftest.c conftest.so
0d01dace 5979
3a12e572 5980fi
26f56c1c
UD
5981{ echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5982echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
0d01dace 5983 if test $libc_cv_have_sdata_section = yes; then
3a12e572 5984 cat >>confdefs.h <<\_ACEOF
0d01dace 5985#define HAVE_SDATA_SECTION 1
3a12e572 5986_ACEOF
0d01dace
UD
5987
5988 fi
5989 fi
5990
26f56c1c
UD
5991 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5992echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
ce33ee7c 5993if test "${libc_cv_initfini_array+set}" = set; then
3a12e572 5994 echo $ECHO_N "(cached) $ECHO_C" >&6
2c617417
UD
5995else
5996 cat > conftest.c <<EOF
5997int _start (void) { return 0; }
5998int __start (void) { return 0; }
5999int foo (void) { return 1; }
6000int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6001EOF
3217788f 6002 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
3a12e572
UD
6003 -static -nostartfiles -nostdlib 1>&5'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }
2c617417
UD
6009 then
6010 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
ce33ee7c 6011 libc_cv_initfini_array=yes
2c617417 6012 else
ce33ee7c 6013 libc_cv_initfini_array=no
2c617417
UD
6014 fi
6015 else
ce33ee7c 6016 libc_cv_initfini_array=no
2c617417
UD
6017 fi
6018 rm -f conftest*
6019fi
26f56c1c
UD
6020{ echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6021echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
ce33ee7c
UD
6022 if test $libc_cv_initfini_array != yes; then
6023 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6024echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6025 { (exit 1); exit 1; }; }
2c617417
UD
6026 fi
6027
26f56c1c
UD
6028 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6029echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
c776b3d7
UD
6030if test "${libc_cv_cc_with_libunwind+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
c776b3d7 6033
cbdb12de
UD
6034 cat > conftest.c <<EOF
6035int main (void) { return 0; }
6036EOF
6037 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6038 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6039 libc_cv_cc_with_libunwind=yes
6040 else
6041 libc_cv_cc_with_libunwind=no
6042 fi
6043 rm -f conftest*
c776b3d7 6044fi
26f56c1c
UD
6045{ echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6046echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
c776b3d7
UD
6047
6048 if test $libc_cv_cc_with_libunwind = yes; then
6049 cat >>confdefs.h <<\_ACEOF
6050#define HAVE_CC_WITH_LIBUNWIND 1
6051_ACEOF
6052
6053 fi
6054
26f56c1c
UD
6055 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6056echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
3a12e572
UD
6057if test "${libc_cv_z_nodelete+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
2f54c82d
UD
6059else
6060 cat > conftest.c <<EOF
6061int _start (void) { return 42; }
6062EOF
3217788f 6063 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6064 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6065 -nostartfiles -nostdlib
3a12e572
UD
6066 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }
2f54c82d
UD
6072 then
6073 libc_cv_z_nodelete=yes
6074 else
11bf311e
UD
6075 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6076echo "$as_me: error: linker with -z nodelete support required" >&2;}
6077 { (exit 1); exit 1; }; }
2f54c82d
UD
6078 fi
6079 rm -f conftest*
6080fi
26f56c1c
UD
6081{ echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6082echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
2f54c82d 6083
26f56c1c
UD
6084 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6085echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
3a12e572
UD
6086if test "${libc_cv_z_nodlopen+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
2f54c82d
UD
6088else
6089 cat > conftest.c <<EOF
6090int _start (void) { return 42; }
6091EOF
3217788f 6092 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6093 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6094 -nostartfiles -nostdlib
3a12e572
UD
6095 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }
2f54c82d
UD
6101 then
6102 libc_cv_z_nodlopen=yes
6103 else
11bf311e
UD
6104 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6105echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6106 { (exit 1); exit 1; }; }
2f54c82d
UD
6107 fi
6108 rm -f conftest*
6109fi
26f56c1c
UD
6110{ echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6111echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
2f54c82d 6112
26f56c1c
UD
6113 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6114echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
3a12e572
UD
6115if test "${libc_cv_z_initfirst+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
5d916713
UD
6117else
6118 cat > conftest.c <<EOF
6119int _start (void) { return 42; }
6120EOF
3217788f 6121 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6122 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6123 -nostartfiles -nostdlib
3a12e572
UD
6124 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }
5d916713
UD
6130 then
6131 libc_cv_z_initfirst=yes
6132 else
11bf311e
UD
6133 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6134echo "$as_me: error: linker with -z initfirst support required" >&2;}
6135 { (exit 1); exit 1; }; }
5d916713
UD
6136 fi
6137 rm -f conftest*
6138fi
26f56c1c
UD
6139{ echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6140echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
5d916713 6141
11bf311e
UD
6142 case "$base_machine" in
6143 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
26f56c1c
UD
6144 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6145echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
ed20b3d9
UD
6146if test "${libc_cv_z_relro+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
54beacab
UD
6149 libc_cv_z_relro=no
6150 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
ed20b3d9
UD
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }
6156 then
54beacab
UD
6157 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }
6163 then
6164 libc_cv_z_relro=yes
6165 fi
ed20b3d9
UD
6166 fi
6167fi
26f56c1c
UD
6168{ echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6169echo "${ECHO_T}$libc_cv_z_relro" >&6; }
11bf311e
UD
6170 if test "$libc_cv_z_relro" = no; then
6171 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6172echo "$as_me: error: linker with -z relro support required" >&2;}
6173 { (exit 1); exit 1; }; }
6174 fi
6175 ;;
6176 *) ;;
6177 esac
ed20b3d9 6178
26f56c1c
UD
6179 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6180echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
3a12e572
UD
6181if test "${libc_cv_Bgroup+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
639c3248
UD
6183else
6184 cat > conftest.c <<EOF
6185int _start (void) { return 42; }
6186EOF
3217788f 6187 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6188 -fPIC -shared -o conftest.so conftest.c
3217788f 6189 -Wl,-Bgroup -nostdlib 1>&5'
3a12e572
UD
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }
639c3248
UD
6195 then
6196 libc_cv_Bgroup=yes
6197 else
6198 libc_cv_Bgroup=no
6199 fi
6200 rm -f conftest*
6201fi
26f56c1c
UD
6202{ echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6203echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
639c3248 6204
a711b01d 6205
26f56c1c
UD
6206 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6207echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
66b3d198
UD
6208if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211 cat > conftest.c <<EOF
6212int main (void) { return 0; }
6213EOF
6214 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
dbc92dc6 6215 -fPIC -shared -shared-libgcc -o conftest.so \
66b3d198
UD
6216 conftest.c -v 2>&1 >/dev/null \
6217 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6218 rm -f conftest*
6219fi
26f56c1c
UD
6220{ echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6221echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
66b3d198
UD
6222
6223
26f56c1c
UD
6224 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6225echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
78ec7d8c
UD
6226if test "${libc_cv_as_needed+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229 cat > conftest.c <<EOF
6230int main (void) { return 0; }
6231EOF
6232 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6233 -fPIC -shared -o conftest.so conftest.c
66b3d198
UD
6234 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6235 -nostdlib 1>&5'
78ec7d8c
UD
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }
6241 then
6242 libc_cv_as_needed=yes
6243 else
6244 libc_cv_as_needed=no
6245 fi
6246 rm -f conftest*
6247fi
26f56c1c
UD
6248{ echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6249echo "${ECHO_T}$libc_cv_as_needed" >&6; }
78ec7d8c
UD
6250
6251
35915ec8 6252 ASFLAGS_config=
26f56c1c
UD
6253 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6254echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
35915ec8
UD
6255if test "${libc_cv_as_noexecstack+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258 cat > conftest.c <<EOF
6259void foo (void) { }
6260EOF
6261 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6262 -S -o conftest.s conftest.c 1>&5'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } \
6268 && grep -q .note.GNU-stack conftest.s \
215a8745 6269 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
35915ec8
UD
6270 -c -o conftest.o conftest.s 1>&5'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }
6276 then
6277 libc_cv_as_noexecstack=yes
6278 else
6279 libc_cv_as_noexecstack=no
6280 fi
6281 rm -f conftest*
6282fi
26f56c1c
UD
6283{ echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6284echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
35915ec8
UD
6285 if test $libc_cv_as_noexecstack = yes; then
6286 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6287 fi
6288
2abf9ff1 6289
26f56c1c
UD
6290 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6291echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
3a12e572
UD
6292if test "${libc_cv_z_combreloc+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
a711b01d
UD
6294else
6295 cat > conftest.c <<EOF
d555194c
UD
6296extern int bar (int);
6297extern int mumble;
6298int foo (void) { return bar (mumble); }
a711b01d 6299EOF
3217788f 6300 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6301 -fPIC -shared -o conftest.so conftest.c
35cd3c97 6302 -nostdlib -nostartfiles
3a12e572
UD
6303 -Wl,-z,combreloc 1>&5'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }
a711b01d 6309 then
fdde8349
UD
6310 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6311 libc_cv_z_combreloc=yes
6312 else
6313 libc_cv_z_combreloc=no
a711b01d 6314 fi
fdde8349
UD
6315 else
6316 libc_cv_z_combreloc=no
a711b01d
UD
6317 fi
6318 rm -f conftest*
6319fi
26f56c1c
UD
6320{ echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6321echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
fdde8349 6322 if test "$libc_cv_z_combreloc" = yes; then
3a12e572 6323 cat >>confdefs.h <<\_ACEOF
fdde8349 6324#define HAVE_Z_COMBRELOC 1
3a12e572 6325_ACEOF
fdde8349
UD
6326
6327 fi
2abf9ff1
RM
6328
6329
26f56c1c
UD
6330 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6331echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
2abf9ff1
RM
6332if test "${libc_cv_z_execstack+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 cat > conftest.c <<EOF
6336int _start (void) { return 42; }
6337EOF
6338 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dbc92dc6 6339 -fPIC -shared -o conftest.so conftest.c
2abf9ff1
RM
6340 -Wl,-z,execstack -nostdlib
6341 1>&5'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }
6347 then
6348 libc_cv_z_execstack=yes
6349 else
6350 libc_cv_z_execstack=no
6351 fi
6352 rm -f conftest*
cd6ede75 6353fi
26f56c1c
UD
6354{ echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6355echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
cd6ede75 6356
0f124303 6357
26f56c1c
UD
6358 { echo "$as_me:$LINENO: checking for -fpie" >&5
6359echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
0f124303
UD
6360if test "${libc_cv_fpie+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 cat > conftest.c <<EOF
6364int foo;
49803108 6365main () { return 0;}
0f124303
UD
6366EOF
6367 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6368 -o conftest conftest.c 1>&5'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }
6374 then
6375 libc_cv_fpie=yes
6376 else
6377 libc_cv_fpie=no
6378 fi
6379 rm -f conftest*
6380fi
26f56c1c
UD
6381{ echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6382echo "${ECHO_T}$libc_cv_fpie" >&6; }
0f124303
UD
6383
6384
871b9158 6385
26f56c1c
UD
6386 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6387echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
871b9158
UD
6388if test "${libc_cv_hashstyle+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 cat > conftest.c <<EOF
6392int _start (void) { return 42; }
6393EOF
6394 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6395 -fPIC -shared -o conftest.so conftest.c
6396 -Wl,--hash-style=both -nostdlib 1>&5'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }
6402 then
6403 libc_cv_hashstyle=yes
6404 else
6405 libc_cv_hashstyle=no
6406 fi
6407 rm -f conftest*
6408fi
26f56c1c
UD
6409{ echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6410echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
871b9158 6411
2abf9ff1 6412fi
f13df7c7 6413
22dca1ea
UD
6414{ echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6415echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
18e2ac6d 6416if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
49803108
AJ
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419 cat > conftest.c <<EOF
6420int foo;
6421EOF
22dca1ea 6422if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
49803108
AJ
6423 conftest.c 1>&5'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }
6429then
18e2ac6d 6430 libc_cv_fno_toplevel_reorder=yes
49803108 6431else
18e2ac6d 6432 libc_cv_fno_toplevel_reorder=no
49803108
AJ
6433fi
6434rm -f conftest*
6435fi
26f56c1c
UD
6436{ echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6437echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
18e2ac6d 6438if test $libc_cv_fno_toplevel_reorder = yes; then
22dca1ea 6439 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
18e2ac6d 6440else
49803108
AJ
6441 fno_unit_at_a_time=-fno-unit-at-a-time
6442fi
6443
6444
26f56c1c
UD
6445{ echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6446echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
10ffcd52
UD
6447if test "${libc_cv_ssp+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 cat > conftest.c <<EOF
6451int foo;
6452main () { return 0;}
6453EOF
6454if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -fstack-protector
6455 -o conftest conftest.c 1>&5'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }
6461then
6462 libc_cv_ssp=yes
6463else
6464 libc_cv_ssp=no
6465fi
6466rm -f conftest*
6467fi
26f56c1c
UD
6468{ echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6469echo "${ECHO_T}$libc_cv_ssp" >&6; }
10ffcd52
UD
6470
6471
26f56c1c
UD
6472{ echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6473echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
965cba04
UD
6474if test "${libc_cv_gnu89_inline+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476else
6477 cat > conftest.c <<EOF
6478int foo;
6479#ifdef __GNUC_GNU_INLINE__
6480main () { return 0;}
6481#else
6482#error
6483#endif
6484EOF
371f84a4
JJ
6485if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6486 -o conftest.s conftest.c 1>&5'
965cba04
UD
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }
6492then
6493 libc_cv_gnu89_inline=yes
6494else
6495 libc_cv_gnu89_inline=no
6496fi
6497rm -f conftest*
6498fi
26f56c1c
UD
6499{ echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6500echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
965cba04
UD
6501if test $libc_cv_gnu89_inline = yes; then
6502 libc_cv_gnu89_inline=-fgnu89-inline
6503else
6504 libc_cv_gnu89_inline=
6505fi
6506
6507
cd6ede75 6508if test $elf != yes; then
26f56c1c
UD
6509 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6510echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
3a12e572
UD
6511if test "${libc_cv_have_initfini+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 6513else
3a12e572 6514 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
6515/* confdefs.h. */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h. */
cd6ede75 6520
3a12e572
UD
6521int
6522main ()
6523{
cd6ede75
UD
6524asm (".section .init");
6525 asm (".section .fini");
2293395f 6526 asm ("${libc_cv_dot_text}");
3a12e572
UD
6527 ;
6528 return 0;
6529}
6530_ACEOF
6531rm -f conftest.$ac_objext
26f56c1c
UD
6532if { (ac_try="$ac_compile"
6533case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
3a12e572 6539 ac_status=$?
9382fcee
RM
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
3a12e572 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
cd6ede75
UD
6548 libc_cv_have_initfini=yes
6549else
3a12e572 6550 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
26f56c1c 6553 libc_cv_have_initfini=no
cd6ede75 6554fi
26f56c1c
UD
6555
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cd6ede75 6557fi
26f56c1c
UD
6558{ echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6559echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
cd6ede75 6560 if test $libc_cv_have_initfini = yes; then
3a12e572 6561 cat >>confdefs.h <<\_ACEOF
cd6ede75 6562#define HAVE_INITFINI 1
3a12e572 6563_ACEOF
cd6ede75
UD
6564
6565 fi
6566fi
6567
8e635611 6568if test $elf = yes; then
26f56c1c
UD
6569 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6570echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
3a12e572
UD
6571if test "${libc_cv_have_section_quotes+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
e26dd47f
UD
6573else
6574 cat > conftest.c <<EOF
6575 static const int foo
6576 __attribute__ ((section ("bar"))) = 1;
6577EOF
6578 if ${CC-cc} -S conftest.c -o conftest.s; then
6579 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6580 libc_cv_have_section_quotes=yes
6581 else
6582 libc_cv_have_section_quotes=no
6583 fi
6584 else
6585 libc_cv_have_section_quotes=unknown
6586 fi
6587 rm -f conftest.cs
e26dd47f 6588
3a12e572 6589fi
26f56c1c
UD
6590{ echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6591echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
e26dd47f 6592 if test $libc_cv_have_section_quotes = yes; then
3a12e572 6593 cat >>confdefs.h <<\_ACEOF
e26dd47f 6594#define HAVE_SECTION_QUOTES 1
3a12e572 6595_ACEOF
e26dd47f
UD
6596
6597 fi
6598fi
6599
9a0a462c
UD
6600
6601
cd6ede75
UD
6602if test $elf = yes; then
6603 libc_cv_asm_underscores=no
6604else
9a0a462c 6605 if test $ac_cv_prog_cc_works = yes; then
26f56c1c
UD
6606 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6607echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
3a12e572
UD
6608if test "${libc_cv_asm_underscores+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 6610else
3a12e572 6611 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
cd6ede75 6617asm ("_glibc_foobar:");
3a12e572
UD
6618int
6619main ()
6620{
cd6ede75 6621glibc_foobar ();
3a12e572
UD
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
6627if { (ac_try="$ac_link"
6628case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631esac
6632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633 (eval "$ac_link") 2>conftest.er1
3a12e572 6634 ac_status=$?
9382fcee
RM
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
3a12e572 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest$ac_exeext &&
6643 $as_test_x conftest$ac_exeext; then
cd6ede75
UD
6644 libc_cv_asm_underscores=yes
6645else
3a12e572 6646 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6647sed 's/^/| /' conftest.$ac_ext >&5
6648
26f56c1c 6649 libc_cv_asm_underscores=no
cd6ede75 6650fi
26f56c1c
UD
6651
6652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382fcee 6653 conftest$ac_exeext conftest.$ac_ext
cd6ede75 6654fi
26f56c1c
UD
6655{ echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6656echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
9a0a462c 6657 else
26f56c1c
UD
6658 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6659echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
3a12e572
UD
6660if test "${libc_cv_asm_underscores+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
9a0a462c
UD
6662else
6663 cat > conftest.$ac_ext <<EOF
85dd1003 6664#line $LINENO "configure"
9a0a462c
UD
6665#include "confdefs.h"
6666void underscore_test(void) {
6667return; }
6668EOF
3a12e572
UD
6669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; then
9a0a462c
UD
6674 if grep _underscore_test conftest* >/dev/null; then
6675 rm -f conftest*
6676 libc_cv_asm_underscores=yes
6677 else
6678 rm -f conftest*
6679 libc_cv_asm_underscores=no
6680 fi
6681else
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6684 rm -f conftest*
6685 libc_cv_asm_underscores=no
6686fi
6687rm -f conftest*
6688fi
26f56c1c
UD
6689{ echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6690echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
9a0a462c 6691 fi
cd6ede75
UD
6692fi
6693if test $libc_cv_asm_underscores = no; then
3a12e572 6694 cat >>confdefs.h <<\_ACEOF
cd6ede75 6695#define NO_UNDERSCORES 1
3a12e572 6696_ACEOF
cd6ede75
UD
6697
6698fi
6699
6700if test $elf = yes; then
6701 libc_cv_weak_symbols=yes
9a97d1f7
UD
6702fi
6703
26f56c1c
UD
6704{ echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6705echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
3a12e572
UD
6706if test "${libc_cv_asm_weak_directive+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6708else
6709 cat > conftest.s <<EOF
2293395f 6710${libc_cv_dot_text}
cd6ede75
UD
6711${libc_cv_asm_global_directive} foo
6712foo:
6713.weak foo
6714.weak bar; bar = foo
6715EOF
3217788f 6716if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
9a97d1f7
UD
6722 libc_cv_asm_weak_directive=yes
6723else
6724 libc_cv_asm_weak_directive=no
6725fi
6726rm -f conftest*
cd6ede75 6727fi
26f56c1c
UD
6728{ echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6729echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
cd6ede75
UD
6730
6731if test $libc_cv_asm_weak_directive = no; then
26f56c1c
UD
6732 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6733echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
3a12e572
UD
6734if test "${libc_cv_asm_weakext_directive+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6736else
6737 cat > conftest.s <<EOF
2293395f 6738${libc_cv_dot_text}
cd6ede75
UD
6739${libc_cv_asm_global_directive} foo
6740foo:
9a97d1f7
UD
6741.weakext bar foo
6742.weakext baz
6743${libc_cv_asm_global_directive} baz
6744baz:
cd6ede75 6745EOF
3217788f 6746 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
cd6ede75
UD
6752 libc_cv_asm_weakext_directive=yes
6753 else
6754 libc_cv_asm_weakext_directive=no
6755 fi
6756 rm -f conftest*
6757fi
26f56c1c
UD
6758{ echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6759echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
cd6ede75 6760
9a97d1f7 6761fi # no .weak
cd6ede75
UD
6762
6763if test $libc_cv_asm_weak_directive = yes; then
3a12e572 6764 cat >>confdefs.h <<\_ACEOF
cd6ede75 6765#define HAVE_ASM_WEAK_DIRECTIVE 1
3a12e572 6766_ACEOF
cd6ede75
UD
6767
6768elif test $libc_cv_asm_weakext_directive = yes; then
3a12e572 6769 cat >>confdefs.h <<\_ACEOF
cd6ede75 6770#define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3a12e572 6771_ACEOF
cd6ede75
UD
6772
6773fi
6774
26f56c1c
UD
6775{ echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6776echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
50189569
AJ
6777if test "${libc_cv_asm_cfi_directives+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
ced368f7
UD
6780 case $machine in
6781 sparc/sparc64*) cfi_offset=2047;;
6782 *) cfi_offset=0;;
6783esac
6784cat > conftest.s <<EOF
50189569 6785 .text
d0868826 6786 .type func,%function
50189569
AJ
6787func:
6788 .cfi_startproc
f212e8dc 6789 .cfi_remember_state
ced368f7 6790 .cfi_rel_offset 1, $cfi_offset
50189569
AJ
6791 .cfi_endproc
6792EOF
6793if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 libc_cv_asm_cfi_directives=yes
6800else
6801 libc_cv_asm_cfi_directives=no
6802fi
6803rm -f conftest*
6804fi
26f56c1c
UD
6805{ echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6806echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
50189569
AJ
6807if test $libc_cv_asm_cfi_directives = yes; then
6808 cat >>confdefs.h <<\_ACEOF
6809#define HAVE_ASM_CFI_DIRECTIVES 1
6810_ACEOF
6811
6812fi
6813
26f56c1c
UD
6814{ echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6815echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
3a12e572
UD
6816if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6818else
6819 cat > conftest.c <<\EOF
6820_start () {}
6821int __eh_pc;
6822__throw () {}
6823EOF
3217788f 6824if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
cd6ede75 6825 -nostdlib -nostartfiles -Wl,--no-whole-archive
3a12e572
UD
6826 -o conftest conftest.c 1>&5'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
cd6ede75
UD
6832 libc_cv_ld_no_whole_archive=yes
6833else
6834 libc_cv_ld_no_whole_archive=no
6835fi
6836rm -f conftest*
6837fi
26f56c1c
UD
6838{ echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6839echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
b17277cf
UD
6840if test $libc_cv_ld_no_whole_archive = yes; then
6841 no_whole_archive=-Wl,--no-whole-archive
6842fi
cd6ede75 6843
26f56c1c
UD
6844{ echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6845echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
3a12e572
UD
6846if test "${libc_cv_gcc_exceptions+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6848else
6849 cat > conftest.c <<\EOF
6850_start () {}
6851int __eh_pc;
6852__throw () {}
6853EOF
3217788f 6854if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dff14448 6855 -nostdlib -nostartfiles -fexceptions
3a12e572
UD
6856 -o conftest conftest.c 1>&5'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
dff14448 6862 libc_cv_gcc_exceptions=yes
cd6ede75 6863else
dff14448 6864 libc_cv_gcc_exceptions=no
cd6ede75
UD
6865fi
6866rm -f conftest*
6867fi
26f56c1c
UD
6868{ echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6869echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
dff14448
UD
6870if test $libc_cv_gcc_exceptions = yes; then
6871 exceptions=-fexceptions
b17277cf 6872fi
cd6ede75 6873
ebcd12d4
UD
6874if test "$host_cpu" = powerpc ; then
6875# Check for a bug present in at least versions 2.8.x of GCC
6876# and versions 1.0.x of EGCS.
26f56c1c
UD
6877{ echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6878echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
3a12e572
UD
6879if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
ebcd12d4 6881else
3a12e572 6882 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
6883/* confdefs.h. */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h. */
ebcd12d4 6888int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3a12e572
UD
6889int
6890main ()
6891{
ebcd12d4 6892
3a12e572
UD
6893 ;
6894 return 0;
6895}
6896_ACEOF
6897rm -f conftest.$ac_objext
26f56c1c
UD
6898if { (ac_try="$ac_compile"
6899case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902esac
6903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
3a12e572 6905 ac_status=$?
9382fcee
RM
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
3a12e572 6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
ebcd12d4
UD
6914 libc_cv_c_asmcr0_bug='no'
6915else
3a12e572 6916 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
26f56c1c 6919 libc_cv_c_asmcr0_bug='yes'
ebcd12d4 6920fi
26f56c1c
UD
6921
6922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ebcd12d4 6923fi
26f56c1c
UD
6924{ echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6925echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
ebcd12d4 6926if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3a12e572 6927 cat >>confdefs.h <<\_ACEOF
ebcd12d4 6928#define BROKEN_PPC_ASM_CR0 1
3a12e572 6929_ACEOF
ebcd12d4
UD
6930
6931fi
6932fi
6933
26f56c1c
UD
6934{ echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6935echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
3a12e572
UD
6936if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
a8eab8b1
UD
6938else
6939 cat > conftest.c <<EOF
85dd1003 6940#line $LINENO "configure"
a8eab8b1
UD
6941int foo (int a)
6942{
6943 a = __builtin_expect (a, 10);
6944 return a == 10 ? 0 : 1;
6945}
6946EOF
3217788f 6947if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
3a12e572
UD
6948 -o conftest conftest.c -lgcc >&5'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
a8eab8b1
UD
6954 libc_cv_gcc_builtin_expect=yes
6955else
6956 libc_cv_gcc_builtin_expect=no
6957fi
6958rm -f conftest*
6959fi
26f56c1c
UD
6960{ echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6961echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
a8eab8b1 6962if test "$libc_cv_gcc_builtin_expect" = yes; then
3a12e572 6963 cat >>confdefs.h <<\_ACEOF
a8eab8b1 6964#define HAVE_BUILTIN_EXPECT 1
3a12e572 6965_ACEOF
a8eab8b1
UD
6966
6967fi
6968
26f56c1c
UD
6969{ echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6970echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
3a12e572
UD
6971if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
d555194c
UD
6973else
6974 cat > conftest.c <<\EOF
6975void zero (void *x)
6976{
a52d1562 6977 __builtin_memset (x, 0, 1000);
d555194c
UD
6978}
6979EOF
3a12e572
UD
6980if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; };
d555194c
UD
6986then
6987 libc_cv_gcc_builtin_memset=no
6988else
6989 libc_cv_gcc_builtin_memset=yes
6990fi
3a12e572 6991rm -f conftest*
d555194c 6992fi
26f56c1c
UD
6993{ echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6994echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
d555194c 6995if test "$libc_cv_gcc_builtin_memset" = yes ; then
3a12e572 6996 cat >>confdefs.h <<\_ACEOF
d555194c 6997#define HAVE_BUILTIN_MEMSET 1
3a12e572 6998_ACEOF
d555194c
UD
6999
7000fi
7001
26f56c1c
UD
7002{ echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7003echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
85dd1003
UD
7004if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 cat > conftest.c <<\EOF
7008extern char *strstr (const char *, const char *) __asm ("my_strstr");
7009char *foo (const char *a, const char *b)
7010{
7011 return __builtin_strstr (a, b);
7012}
7013EOF
7014if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; };
7020then
7021 libc_cv_gcc_builtin_redirection=yes
7022else
7023 libc_cv_gcc_builtin_redirection=no
7024fi
7025rm -f conftest*
7026fi
26f56c1c
UD
7027{ echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7028echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
85dd1003
UD
7029if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7030 cat >>confdefs.h <<\_ACEOF
7031#define HAVE_BUILTIN_REDIRECTION 1
7032_ACEOF
7033
7034fi
7035
5b8f26b4 7036if test "x$use__thread" != xno; then
26f56c1c
UD
7037 { echo "$as_me:$LINENO: checking for __thread" >&5
7038echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
3a12e572
UD
7039if test "${libc_cv_gcc___thread+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
739d440d 7041else
5bbfc1ea 7042 cat > conftest.c <<\EOF
fbb18522
RM
7043__thread int a = 42;
7044EOF
3217788f 7045 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
3a12e572
UD
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
5b8f26b4
RM
7051 libc_cv_gcc___thread=yes
7052 else
7053 libc_cv_gcc___thread=no
7054 fi
7055 rm -f conftest*
739d440d 7056fi
26f56c1c
UD
7057{ echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7058echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
5b8f26b4 7059 if test "$libc_cv_gcc___thread" = yes; then
3a12e572 7060 cat >>confdefs.h <<\_ACEOF
739d440d 7061#define HAVE___THREAD 1
3a12e572 7062_ACEOF
739d440d 7063
5b8f26b4 7064 fi
fbb18522
RM
7065else
7066 libc_cv_gcc___thread=no
739d440d
UD
7067fi
7068
9b21e6bc 7069if test "$libc_cv_gcc___thread" = yes; then
26f56c1c
UD
7070 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7071echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
3a12e572
UD
7072if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
9b21e6bc
RM
7074else
7075 cat > conftest.c <<\EOF
7076extern __thread int a __attribute__((tls_model ("initial-exec")));
7077EOF
3217788f 7078 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
3a12e572
UD
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
9b21e6bc
RM
7084 libc_cv_gcc_tls_model_attr=yes
7085 else
7086 libc_cv_gcc_tls_model_attr=no
7087 fi
7088 rm -f conftest*
7089fi
26f56c1c
UD
7090{ echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7091echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
9b21e6bc 7092 if test "$libc_cv_gcc_tls_model_attr" = yes; then
3a12e572 7093 cat >>confdefs.h <<\_ACEOF
9b21e6bc 7094#define HAVE_TLS_MODEL_ATTRIBUTE 1
3a12e572 7095_ACEOF
9b21e6bc
RM
7096
7097 fi
7098fi
739d440d 7099
26f56c1c
UD
7100{ echo "$as_me:$LINENO: checking for libgd" >&5
7101echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
6dab8688
UD
7102if test "$with_gd" != "no"; then
7103 old_CFLAGS="$CFLAGS"
7104 CFLAGS="$CFLAGS $libgd_include"
7105 old_LDFLAGS="$LDFLAGS"
7106 LDFLAGS="$LDFLAGS $libgd_ldflags"
7107 old_LIBS="$LIBS"
7108 LIBS="$LIBS -lgd -lpng -lz -lm"
3a12e572 7109 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
c8f3e6db 7115#include <gd.h>
3a12e572
UD
7116int
7117main ()
7118{
c8f3e6db 7119gdImagePng (0, 0)
3a12e572
UD
7120 ;
7121 return 0;
7122}
7123_ACEOF
7124rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7125if { (ac_try="$ac_link"
7126case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
7130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_link") 2>conftest.er1
3a12e572 7132 ac_status=$?
9382fcee
RM
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
3a12e572 7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest$ac_exeext &&
7141 $as_test_x conftest$ac_exeext; then
c8f3e6db
UD
7142 LIBGD=yes
7143else
3a12e572 7144 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
26f56c1c 7147 LIBGD=no
c8f3e6db 7148fi
26f56c1c
UD
7149
7150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382fcee 7151 conftest$ac_exeext conftest.$ac_ext
6dab8688
UD
7152 CFLAGS="$old_CFLAGS"
7153 LDFLAGS="$old_LDFLAGS"
7154 LIBS="$old_LIBS"
7155else
7156 LIBGD=no
7157fi
26f56c1c
UD
7158{ echo "$as_me:$LINENO: result: $LIBGD" >&5
7159echo "${ECHO_T}$LIBGD" >&6; }
3a12e572
UD
7160
7161
74a30a58
UD
7162# SELinux detection
7163if test x$with_selinux = xno ; then
7164 have_selinux=no;
7165else
7166 # See if we have the SELinux library
26f56c1c
UD
7167 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7168echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
74a30a58
UD
7169if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 ac_check_lib_save_LIBS=$LIBS
7173LIBS="-lselinux $LIBS"
7174cat >conftest.$ac_ext <<_ACEOF
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180
26f56c1c
UD
7181/* Override any GCC internal prototype to avoid an error.
7182 Use char because int might match the return type of a GCC
7183 builtin and then its argument prototype would still apply. */
74a30a58
UD
7184#ifdef __cplusplus
7185extern "C"
7186#endif
74a30a58
UD
7187char is_selinux_enabled ();
7188int
7189main ()
7190{
26f56c1c 7191return is_selinux_enabled ();
74a30a58
UD
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7197if { (ac_try="$ac_link"
7198case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_link") 2>conftest.er1
74a30a58
UD
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest$ac_exeext &&
7213 $as_test_x conftest$ac_exeext; then
74a30a58
UD
7214 ac_cv_lib_selinux_is_selinux_enabled=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
26f56c1c 7219 ac_cv_lib_selinux_is_selinux_enabled=no
74a30a58 7220fi
26f56c1c
UD
7221
7222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74a30a58
UD
7223 conftest$ac_exeext conftest.$ac_ext
7224LIBS=$ac_check_lib_save_LIBS
7225fi
26f56c1c
UD
7226{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7227echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
74a30a58
UD
7228if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7229 have_selinux=yes
7230else
7231 have_selinux=no
7232fi
7233
7234 # See if we have the SELinux header with the NSCD permissions in it.
7235 if test x$have_selinux = xyes ; then
26f56c1c
UD
7236 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7237echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
74a30a58
UD
7238 cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h. */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h. */
7244#include <selinux/av_permissions.h>
7245int
7246main ()
7247{
7248#ifdef NSCD__SHMEMHOST
7249 return 0;
7250 #else
7251 #error NSCD__SHMEMHOST not defined
7252 #endif
7253 ;
7254 return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext
26f56c1c
UD
7258if { (ac_try="$ac_compile"
7259case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262esac
7263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
74a30a58
UD
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
74a30a58
UD
7274 have_selinux=yes
7275else
7276 echo "$as_me: failed program was:" >&5
7277sed 's/^/| /' conftest.$ac_ext >&5
7278
26f56c1c 7279 have_selinux=no
74a30a58 7280fi
26f56c1c
UD
7281
7282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7284echo "${ECHO_T}$have_selinux" >&6; }
74a30a58
UD
7285 fi
7286
8f1913a9 7287 if test x$with_selinux = xyes ; then
74a30a58 7288 if test x$have_selinux = xno ; then
8f1913a9
UD
7289 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7290echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
74a30a58
UD
7291 { (exit 1); exit 1; }; }
7292 fi
7293 fi
7294fi
7295# Check if we're building with SELinux support.
7296if test "x$have_selinux" = xyes; then
7297
7298cat >>confdefs.h <<\_ACEOF
7299#define HAVE_SELINUX 1
7300_ACEOF
7301
b399a0c2
UD
7302
7303 # See if we have the libaudit library
26f56c1c
UD
7304 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7305echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
b2f97341 7306if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
b399a0c2
UD
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309 ac_check_lib_save_LIBS=$LIBS
7310LIBS="-laudit $LIBS"
7311cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h. */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h. */
7317
26f56c1c
UD
7318/* Override any GCC internal prototype to avoid an error.
7319 Use char because int might match the return type of a GCC
7320 builtin and then its argument prototype would still apply. */
b399a0c2
UD
7321#ifdef __cplusplus
7322extern "C"
7323#endif
b2f97341 7324char audit_log_user_avc_message ();
b399a0c2
UD
7325int
7326main ()
7327{
26f56c1c 7328return audit_log_user_avc_message ();
b399a0c2
UD
7329 ;
7330 return 0;
7331}
7332_ACEOF
7333rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7334if { (ac_try="$ac_link"
7335case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338esac
7339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_link") 2>conftest.er1
b399a0c2
UD
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest$ac_exeext &&
7350 $as_test_x conftest$ac_exeext; then
b2f97341 7351 ac_cv_lib_audit_audit_log_user_avc_message=yes
b399a0c2
UD
7352else
7353 echo "$as_me: failed program was:" >&5
7354sed 's/^/| /' conftest.$ac_ext >&5
7355
26f56c1c 7356 ac_cv_lib_audit_audit_log_user_avc_message=no
b399a0c2 7357fi
26f56c1c
UD
7358
7359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b399a0c2
UD
7360 conftest$ac_exeext conftest.$ac_ext
7361LIBS=$ac_check_lib_save_LIBS
7362fi
26f56c1c
UD
7363{ echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7364echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
b2f97341 7365if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
b399a0c2
UD
7366 have_libaudit=yes
7367else
7368 have_libaudit=no
7369fi
7370
7371 if test "x$have_libaudit" = xyes; then
7372
7373cat >>confdefs.h <<\_ACEOF
7374#define HAVE_LIBAUDIT 1
7375_ACEOF
7376
7377 fi
7378
1f063dca
UD
7379
7380 # See if we have the libcap library
26f56c1c
UD
7381 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7382echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
1f063dca
UD
7383if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 ac_check_lib_save_LIBS=$LIBS
7387LIBS="-lcap $LIBS"
7388cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h. */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h. */
7394
26f56c1c
UD
7395/* Override any GCC internal prototype to avoid an error.
7396 Use char because int might match the return type of a GCC
7397 builtin and then its argument prototype would still apply. */
1f063dca
UD
7398#ifdef __cplusplus
7399extern "C"
7400#endif
1f063dca
UD
7401char cap_init ();
7402int
7403main ()
7404{
26f56c1c 7405return cap_init ();
1f063dca
UD
7406 ;
7407 return 0;
7408}
7409_ACEOF
7410rm -f conftest.$ac_objext conftest$ac_exeext
26f56c1c
UD
7411if { (ac_try="$ac_link"
7412case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415esac
7416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_link") 2>conftest.er1
1f063dca
UD
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest$ac_exeext &&
7427 $as_test_x conftest$ac_exeext; then
1f063dca
UD
7428 ac_cv_lib_cap_cap_init=yes
7429else
7430 echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
26f56c1c 7433 ac_cv_lib_cap_cap_init=no
1f063dca 7434fi
26f56c1c
UD
7435
7436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1f063dca
UD
7437 conftest$ac_exeext conftest.$ac_ext
7438LIBS=$ac_check_lib_save_LIBS
7439fi
26f56c1c
UD
7440{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7441echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
1f063dca
UD
7442if test $ac_cv_lib_cap_cap_init = yes; then
7443 have_libcap=yes
7444else
7445 have_libcap=no
7446fi
7447
7448 if test "x$have_libcap" = xyes; then
7449
7450cat >>confdefs.h <<\_ACEOF
7451#define HAVE_LIBCAP 1
7452_ACEOF
7453
7454 fi
7455
74a30a58
UD
7456fi
7457
7458
3a12e572 7459
26f56c1c
UD
7460{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7461echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7462if test "${ac_cv_path_GREP+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 # Extract the first word of "grep ggrep" to use in msg output
7466if test -z "$GREP"; then
7467set dummy grep ggrep; ac_prog_name=$2
7468if test "${ac_cv_path_GREP+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 ac_path_GREP_found=false
7472# Loop through the user's path and test for each of PROGNAME-LIST
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7475do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_prog in grep ggrep; do
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7482 # Check for GNU ac_path_GREP and select it if it is found.
7483 # Check for GNU $ac_path_GREP
7484case `"$ac_path_GREP" --version 2>&1` in
7485*GNU*)
7486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7487*)
7488 ac_count=0
7489 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7490 while :
7491 do
7492 cat "conftest.in" "conftest.in" >"conftest.tmp"
7493 mv "conftest.tmp" "conftest.in"
7494 cp "conftest.in" "conftest.nl"
7495 echo 'GREP' >> "conftest.nl"
7496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7498 ac_count=`expr $ac_count + 1`
7499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7500 # Best one so far, save it but keep looking for a better one
7501 ac_cv_path_GREP="$ac_path_GREP"
7502 ac_path_GREP_max=$ac_count
7503 fi
7504 # 10*(2^10) chars as input seems more than enough
7505 test $ac_count -gt 10 && break
7506 done
7507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7508esac
7509
7510
7511 $ac_path_GREP_found && break 3
7512 done
7513done
7514
7515done
7516IFS=$as_save_IFS
7517
7518
7519fi
7520
7521GREP="$ac_cv_path_GREP"
7522if test -z "$GREP"; then
7523 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7524echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7525 { (exit 1); exit 1; }; }
7526fi
7527
7528else
7529 ac_cv_path_GREP=$GREP
7530fi
7531
7532
7533fi
7534{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7535echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7536 GREP="$ac_cv_path_GREP"
7537
7538
7539{ echo "$as_me:$LINENO: checking for egrep" >&5
7540echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7541if test "${ac_cv_path_EGREP+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7545 then ac_cv_path_EGREP="$GREP -E"
7546 else
7547 # Extract the first word of "egrep" to use in msg output
7548if test -z "$EGREP"; then
7549set dummy egrep; ac_prog_name=$2
7550if test "${ac_cv_path_EGREP+set}" = set; then
f4b07664
RM
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
26f56c1c
UD
7553 ac_path_EGREP_found=false
7554# Loop through the user's path and test for each of PROGNAME-LIST
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_prog in egrep; do
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7563 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7564 # Check for GNU ac_path_EGREP and select it if it is found.
7565 # Check for GNU $ac_path_EGREP
7566case `"$ac_path_EGREP" --version 2>&1` in
7567*GNU*)
7568 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7569*)
7570 ac_count=0
7571 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7572 while :
7573 do
7574 cat "conftest.in" "conftest.in" >"conftest.tmp"
7575 mv "conftest.tmp" "conftest.in"
7576 cp "conftest.in" "conftest.nl"
7577 echo 'EGREP' >> "conftest.nl"
7578 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7580 ac_count=`expr $ac_count + 1`
7581 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7582 # Best one so far, save it but keep looking for a better one
7583 ac_cv_path_EGREP="$ac_path_EGREP"
7584 ac_path_EGREP_max=$ac_count
f4b07664 7585 fi
26f56c1c
UD
7586 # 10*(2^10) chars as input seems more than enough
7587 test $ac_count -gt 10 && break
7588 done
7589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7590esac
7591
7592
7593 $ac_path_EGREP_found && break 3
7594 done
7595done
7596
7597done
7598IFS=$as_save_IFS
7599
7600
7601fi
7602
7603EGREP="$ac_cv_path_EGREP"
7604if test -z "$EGREP"; then
7605 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7606echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7607 { (exit 1); exit 1; }; }
f4b07664 7608fi
26f56c1c
UD
7609
7610else
7611 ac_cv_path_EGREP=$EGREP
7612fi
7613
7614
7615 fi
7616fi
7617{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7618echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7619 EGREP="$ac_cv_path_EGREP"
f4b07664
RM
7620
7621
26f56c1c
UD
7622{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7623echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3a12e572
UD
7624if test "${ac_cv_header_stdc+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
3a12e572
UD
7633#include <stdlib.h>
7634#include <stdarg.h>
7635#include <string.h>
7636#include <float.h>
7637
2abf9ff1
RM
7638int
7639main ()
7640{
7641
7642 ;
7643 return 0;
7644}
3a12e572 7645_ACEOF
2abf9ff1 7646rm -f conftest.$ac_objext
26f56c1c
UD
7647if { (ac_try="$ac_compile"
7648case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651esac
7652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
32a448ed 7654 ac_status=$?
9382fcee
RM
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
32a448ed 7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
3a12e572
UD
7663 ac_cv_header_stdc=yes
7664else
7665 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7666sed 's/^/| /' conftest.$ac_ext >&5
7667
26f56c1c 7668 ac_cv_header_stdc=no
3a12e572 7669fi
26f56c1c
UD
7670
7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8f3e6db 7672
3a12e572
UD
7673if test $ac_cv_header_stdc = yes; then
7674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7675 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7676/* confdefs.h. */
7677_ACEOF
7678cat confdefs.h >>conftest.$ac_ext
7679cat >>conftest.$ac_ext <<_ACEOF
7680/* end confdefs.h. */
3a12e572 7681#include <string.h>
3d558f4e 7682
3a12e572
UD
7683_ACEOF
7684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 7685 $EGREP "memchr" >/dev/null 2>&1; then
3a12e572 7686 :
8ed1e7d5 7687else
3a12e572
UD
7688 ac_cv_header_stdc=no
7689fi
7690rm -f conftest*
7691
7692fi
7693
7694if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7697/* confdefs.h. */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h. */
3a12e572
UD
7702#include <stdlib.h>
7703
7704_ACEOF
7705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 7706 $EGREP "free" >/dev/null 2>&1; then
3a12e572
UD
7707 :
7708else
7709 ac_cv_header_stdc=no
7710fi
7711rm -f conftest*
7712
7713fi
7714
7715if test $ac_cv_header_stdc = yes; then
7716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8ed1e7d5 7717 if test "$cross_compiling" = yes; then
3a12e572 7718 :
8ed1e7d5 7719else
3a12e572 7720 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7721/* confdefs.h. */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */
3a12e572 7726#include <ctype.h>
26f56c1c 7727#include <stdlib.h>
3a12e572
UD
7728#if ((' ' & 0x0FF) == 0x020)
7729# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7730# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7731#else
2abf9ff1 7732# define ISLOWER(c) \
9382fcee
RM
7733 (('a' <= (c) && (c) <= 'i') \
7734 || ('j' <= (c) && (c) <= 'r') \
7735 || ('s' <= (c) && (c) <= 'z'))
3a12e572
UD
7736# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7737#endif
7738
7739#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7740int
7741main ()
8ed1e7d5 7742{
3a12e572
UD
7743 int i;
7744 for (i = 0; i < 256; i++)
7745 if (XOR (islower (i), ISLOWER (i))
9382fcee 7746 || toupper (i) != TOUPPER (i))
26f56c1c
UD
7747 return 2;
7748 return 0;
8ed1e7d5 7749}
3a12e572
UD
7750_ACEOF
7751rm -f conftest$ac_exeext
26f56c1c
UD
7752if { (ac_try="$ac_link"
7753case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756esac
7757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>&5
3a12e572
UD
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26f56c1c
UD
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
3a12e572
UD
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 :
8ed1e7d5 7772else
3a12e572
UD
7773 echo "$as_me: program exited with status $ac_status" >&5
7774echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
3a12e572
UD
7777( exit $ac_status )
7778ac_cv_header_stdc=no
7779fi
26f56c1c 7780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8ed1e7d5 7781fi
26f56c1c
UD
7782
7783
8ed1e7d5 7784fi
3a12e572 7785fi
26f56c1c
UD
7786{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7787echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3a12e572
UD
7788if test $ac_cv_header_stdc = yes; then
7789
7790cat >>confdefs.h <<\_ACEOF
7791#define STDC_HEADERS 1
7792_ACEOF
7793
7794fi
7795
7796# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9382fcee 7807 inttypes.h stdint.h unistd.h
3a12e572
UD
7808do
7809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26f56c1c
UD
7810{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3a12e572
UD
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
3a12e572
UD
7821$ac_includes_default
7822
7823#include <$ac_header>
7824_ACEOF
7825rm -f conftest.$ac_objext
26f56c1c
UD
7826if { (ac_try="$ac_compile"
7827case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_compile") 2>conftest.er1
3a12e572 7833 ac_status=$?
9382fcee
RM
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
3a12e572 7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7838 (exit $ac_status); } && {
7839 test -z "$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest.$ac_objext; then
3a12e572
UD
7842 eval "$as_ac_Header=yes"
7843else
7844 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
26f56c1c 7847 eval "$as_ac_Header=no"
3a12e572 7848fi
26f56c1c
UD
7849
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572 7851fi
26f56c1c
UD
7852ac_res=`eval echo '${'$as_ac_Header'}'`
7853 { echo "$as_me:$LINENO: result: $ac_res" >&5
7854echo "${ECHO_T}$ac_res" >&6; }
3a12e572
UD
7855if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858_ACEOF
8ed1e7d5
GK
7859
7860fi
3a12e572
UD
7861
7862done
7863
7864
26f56c1c
UD
7865{ echo "$as_me:$LINENO: checking for long double" >&5
7866echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
3a12e572
UD
7867if test "${ac_cv_type_long_double+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
3a12e572 7876$ac_includes_default
26f56c1c 7877typedef long double ac__type_new_;
3a12e572
UD
7878int
7879main ()
7880{
26f56c1c 7881if ((ac__type_new_ *) 0)
3a12e572 7882 return 0;
26f56c1c 7883if (sizeof (ac__type_new_))
3a12e572
UD
7884 return 0;
7885 ;
7886 return 0;
7887}
7888_ACEOF
7889rm -f conftest.$ac_objext
26f56c1c
UD
7890if { (ac_try="$ac_compile"
7891case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894esac
7895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
3a12e572 7897 ac_status=$?
9382fcee
RM
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
3a12e572 7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
3a12e572
UD
7906 ac_cv_type_long_double=yes
7907else
7908 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7909sed 's/^/| /' conftest.$ac_ext >&5
7910
26f56c1c 7911 ac_cv_type_long_double=no
3a12e572 7912fi
26f56c1c
UD
7913
7914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572 7915fi
26f56c1c
UD
7916{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7917echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
3a12e572 7918
26f56c1c
UD
7919# The cast to long int works around a bug in the HP C Compiler
7920# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7921# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7922# This bug is HP SR number 8606223364.
7923{ echo "$as_me:$LINENO: checking size of long double" >&5
7924echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
3a12e572
UD
7925if test "${ac_cv_sizeof_long_double+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
3a12e572
UD
7928 if test "$cross_compiling" = yes; then
7929 # Depending upon the size, compute the lo and hi bounds.
7930cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h. */
3a12e572 7936$ac_includes_default
26f56c1c 7937 typedef long double ac__type_sizeof_;
3a12e572
UD
7938int
7939main ()
7940{
26f56c1c 7941static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
3a12e572
UD
7942test_array [0] = 0
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext
26f56c1c
UD
7949if { (ac_try="$ac_compile"
7950case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953esac
7954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
3a12e572 7956 ac_status=$?
9382fcee
RM
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
3a12e572 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
3a12e572
UD
7965 ac_lo=0 ac_mid=0
7966 while :; do
7967 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
7968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
3a12e572 7973$ac_includes_default
26f56c1c 7974 typedef long double ac__type_sizeof_;
3a12e572
UD
7975int
7976main ()
7977{
26f56c1c 7978static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
3a12e572
UD
7979test_array [0] = 0
7980
7981 ;
7982 return 0;
7983}
7984_ACEOF
7985rm -f conftest.$ac_objext
26f56c1c
UD
7986if { (ac_try="$ac_compile"
7987case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
3a12e572 7993 ac_status=$?
9382fcee
RM
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
3a12e572 7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
3a12e572
UD
8002 ac_hi=$ac_mid; break
8003else
8004 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
26f56c1c
UD
8007 ac_lo=`expr $ac_mid + 1`
8008 if test $ac_lo -le $ac_mid; then
8009 ac_lo= ac_hi=
8010 break
8011 fi
8012 ac_mid=`expr 2 '*' $ac_mid + 1`
3a12e572 8013fi
26f56c1c
UD
8014
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8016 done
8017else
8018 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
26f56c1c 8021 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8022/* confdefs.h. */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h. */
3a12e572 8027$ac_includes_default
26f56c1c 8028 typedef long double ac__type_sizeof_;
3a12e572
UD
8029int
8030main ()
8031{
26f56c1c 8032static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
3a12e572
UD
8033test_array [0] = 0
8034
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039rm -f conftest.$ac_objext
26f56c1c
UD
8040if { (ac_try="$ac_compile"
8041case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
3a12e572 8047 ac_status=$?
9382fcee
RM
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
3a12e572 8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
3a12e572
UD
8056 ac_hi=-1 ac_mid=-1
8057 while :; do
8058 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8059/* confdefs.h. */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h. */
3a12e572 8064$ac_includes_default
26f56c1c 8065 typedef long double ac__type_sizeof_;
3a12e572
UD
8066int
8067main ()
8068{
26f56c1c 8069static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
3a12e572
UD
8070test_array [0] = 0
8071
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext
26f56c1c
UD
8077if { (ac_try="$ac_compile"
8078case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
3a12e572 8084 ac_status=$?
9382fcee
RM
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
3a12e572 8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
3a12e572
UD
8093 ac_lo=$ac_mid; break
8094else
8095 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8096sed 's/^/| /' conftest.$ac_ext >&5
8097
26f56c1c
UD
8098 ac_hi=`expr '(' $ac_mid ')' - 1`
8099 if test $ac_mid -le $ac_hi; then
8100 ac_lo= ac_hi=
8101 break
8102 fi
8103 ac_mid=`expr 2 '*' $ac_mid`
3a12e572 8104fi
26f56c1c
UD
8105
8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8107 done
8108else
8109 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
26f56c1c 8112 ac_lo= ac_hi=
3a12e572 8113fi
26f56c1c
UD
8114
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572 8116fi
26f56c1c
UD
8117
8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8119# Binary search between lo and hi bounds.
8120while test "x$ac_lo" != "x$ac_hi"; do
8121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8122 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
3a12e572 8128$ac_includes_default
26f56c1c 8129 typedef long double ac__type_sizeof_;
3a12e572
UD
8130int
8131main ()
8132{
26f56c1c 8133static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
3a12e572
UD
8134test_array [0] = 0
8135
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext
26f56c1c
UD
8141if { (ac_try="$ac_compile"
8142case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
3a12e572 8148 ac_status=$?
9382fcee
RM
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
3a12e572 8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26f56c1c
UD
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
3a12e572
UD
8157 ac_hi=$ac_mid
8158else
8159 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8160sed 's/^/| /' conftest.$ac_ext >&5
8161
26f56c1c 8162 ac_lo=`expr '(' $ac_mid ')' + 1`
3a12e572 8163fi
26f56c1c
UD
8164
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8166done
8167case $ac_lo in
8168?*) ac_cv_sizeof_long_double=$ac_lo;;
26f56c1c
UD
8169'') if test "$ac_cv_type_long_double" = yes; then
8170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2abf9ff1 8171See \`config.log' for more details." >&5
26f56c1c 8172echo "$as_me: error: cannot compute sizeof (long double)
2abf9ff1 8173See \`config.log' for more details." >&2;}
26f56c1c
UD
8174 { (exit 77); exit 77; }; }
8175 else
8176 ac_cv_sizeof_long_double=0
8177 fi ;;
3a12e572 8178esac
3a12e572
UD
8179else
8180 cat >conftest.$ac_ext <<_ACEOF
2abf9ff1
RM
8181/* confdefs.h. */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h. */
3a12e572 8186$ac_includes_default
26f56c1c
UD
8187 typedef long double ac__type_sizeof_;
8188static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8189static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
3a12e572
UD
8190#include <stdio.h>
8191#include <stdlib.h>
3a12e572
UD
8192int
8193main ()
8194{
8195
8196 FILE *f = fopen ("conftest.val", "w");
8197 if (! f)
26f56c1c
UD
8198 return 1;
8199 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
3a12e572 8200 {
26f56c1c
UD
8201 long int i = longval ();
8202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8203 return 1;
3a12e572
UD
8204 fprintf (f, "%ld\n", i);
8205 }
8206 else
8207 {
26f56c1c
UD
8208 unsigned long int i = ulongval ();
8209 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8210 return 1;
3a12e572
UD
8211 fprintf (f, "%lu\n", i);
8212 }
26f56c1c 8213 return ferror (f) || fclose (f) != 0;
3a12e572
UD
8214
8215 ;
8216 return 0;
8217}
8218_ACEOF
8219rm -f conftest$ac_exeext
26f56c1c
UD
8220if { (ac_try="$ac_link"
8221case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_link") 2>&5
3a12e572
UD
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26f56c1c
UD
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
3a12e572
UD
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_sizeof_long_double=`cat conftest.val`
8240else
8241 echo "$as_me: program exited with status $ac_status" >&5
8242echo "$as_me: failed program was:" >&5
2abf9ff1
RM
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
3a12e572 8245( exit $ac_status )
26f56c1c
UD
8246if test "$ac_cv_type_long_double" = yes; then
8247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
2abf9ff1 8248See \`config.log' for more details." >&5
26f56c1c 8249echo "$as_me: error: cannot compute sizeof (long double)
2abf9ff1 8250See \`config.log' for more details." >&2;}
26f56c1c
UD
8251 { (exit 77); exit 77; }; }
8252 else
8253 ac_cv_sizeof_long_double=0
8254 fi
3a12e572 8255fi
26f56c1c 8256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
8257fi
8258rm -f conftest.val
3a12e572 8259fi
26f56c1c
UD
8260{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8261echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8262
8263
8264
3a12e572 8265cat >>confdefs.h <<_ACEOF
8ed1e7d5 8266#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3a12e572 8267_ACEOF
8ed1e7d5
GK
8268
8269
8270sizeof_long_double=$ac_cv_sizeof_long_double
8271
8272
cd6ede75
UD
8273### End of automated tests.
8274### Now run sysdeps configure fragments.
8275
cb343854 8276# They also can set these variables.
b43b13ac 8277use_ldconfig=no
cb343854 8278ldd_rewrite_script=no
77259608 8279libc_cv_sysconfdir=$sysconfdir
74bd2300 8280libc_cv_gcc_unwind_find_fde=no
e2fd3cbe 8281libc_cv_idn=no
cb343854 8282
cd6ede75
UD
8283# Iterate over all the sysdep directories we will use, running their
8284# configure fragments, and looking for a uname implementation.
8285uname=
8286for dir in $sysnames; do
8287 case $dir in
8288 /*) dest=$dir ;;
8289 *) dest=$srcdir/$dir ;;
8290 esac
8291 if test -r $dest/configure; then
26f56c1c
UD
8292 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8293echo "${ECHO_T}running configure fragment for $dir" >&6; }
cd6ede75
UD
8294 . $dest/configure
8295 fi
8296
8297 if test -z "$uname"; then
8298 if test -r $dest/uname.c ||
8299 test -r $dest/uname.S ||
8300 { test -r $dest/syscalls.list &&
8301 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8302 uname=$dir
8303 fi
8304 fi
8305done
8306
74bd2300 8307if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3a12e572 8308 cat >>confdefs.h <<\_ACEOF
74bd2300 8309#define EXPORT_UNWIND_FIND_FDE 1
3a12e572 8310_ACEOF
74bd2300
UD
8311
8312fi
8313
8314
cd6ede75
UD
8315# If we will use the generic uname implementation, we must figure out what
8316# it will say by examining the system, and write the results in config-name.h.
8317if test "$uname" = "sysdeps/generic"; then
8318
8319 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8320 if test $uname_sysname != $config_os; then
8321 config_release=`echo $config_os | sed s/$uname_sysname//`
8322 fi
8323
26f56c1c
UD
8324 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8325echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
3a12e572
UD
8326if test "${libc_cv_uname_release+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 8328else
3a12e572
UD
8329 if test -r /vmunix; then
8330 kernel_id=`strings /vmunix | grep UNIX`
8331 elif test -r /dynix; then
8332 kernel_id=`strings /dynix | grep DYNIX`
8333 else
8334 kernel_id=
8335 fi
8336
8337 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
cd6ede75
UD
8338 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8339 != x$config_release; then
8340 # The configuration release is a substring of the kernel release.
8341 libc_cv_uname_release=$kernel_release
8342 elif test x$config_release != x; then
8343 libc_cv_uname_release=$config_release
8344 elif test x$kernel_release != x; then
8345 libc_cv_uname_release=$kernel_release
8346 else
8347 libc_cv_uname_release=unknown
8348 fi
8349fi
26f56c1c
UD
8350{ echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8351echo "${ECHO_T}$libc_cv_uname_release" >&6; }
cd6ede75
UD
8352 uname_release="$libc_cv_uname_release"
8353
26f56c1c
UD
8354 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8355echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
3a12e572
UD
8356if test "${libc_cv_uname_version+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 8358else
3a12e572
UD
8359 if test -r /vmunix; then
8360 kernel_id=`strings /vmunix | grep UNIX`
8361 elif test -r /dynix; then
8362 kernel_id=`strings /dynix | grep DYNIX`
8363 else
8364 kernel_id=
8365 fi
8366
8367 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
cd6ede75
UD
8368 if test -n "$kernel_version"; then
8369 libc_cv_uname_version="$kernel_version"
8370 else
8371 libc_cv_uname_version=unknown
8372 fi
8373fi
26f56c1c
UD
8374{ echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8375echo "${ECHO_T}$libc_cv_uname_version" >&6; }
cd6ede75
UD
8376 uname_version="$libc_cv_uname_version"
8377
8378 config_uname=config-name.h:config-name.in
8379else
8380 # For non-generic uname, we don't need to create config-name.h at all.
8381 config_uname=
8382fi
8383
3a12e572 8384cat >>confdefs.h <<\_ACEOF
cd6ede75 8385#define USE_IN_LIBIO 1
3a12e572 8386_ACEOF
a8c01776 8387
cd6ede75 8388
a53bad16
UD
8389# Test for old glibc 2.0.x headers so that they can be removed properly
8390# Search only in includedir.
26f56c1c
UD
8391{ echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8392echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
011ce8ed 8393if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
a53bad16
UD
8394then
8395 old_glibc_headers=yes
8396else
8397 old_glibc_headers=no
8398fi
26f56c1c
UD
8399{ echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8400echo "${ECHO_T}$old_glibc_headers" >&6; }
a53bad16 8401if test ${old_glibc_headers} = yes; then
3a12e572
UD
8402 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8403echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8404 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8405echo "$as_me: WARNING: *** be removed." >&2;}
a53bad16 8406fi
26b4d766 8407
cd6ede75
UD
8408
8409
8410
8411
8412
8413
cb343854 8414
dff14448 8415
77259608 8416
3a12e572 8417
bcd5f356 8418
cd6ede75 8419if test $elf = yes; then
3a12e572 8420 cat >>confdefs.h <<\_ACEOF
cd6ede75 8421#define HAVE_ELF 1
3a12e572 8422_ACEOF
cd6ede75
UD
8423
8424fi
5af3245a 8425if test $xcoff = yes; then
3a12e572 8426 cat >>confdefs.h <<\_ACEOF
5af3245a 8427#define HAVE_XCOFF 1
3a12e572 8428_ACEOF
5af3245a
UD
8429
8430fi
cd6ede75
UD
8431
8432
650425ce 8433
cd6ede75 8434if test $shared = default; then
8e635611 8435 shared=$elf
a334319f
UD
8436fi
8437
26f56c1c
UD
8438{ echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8439echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
3a12e572
UD
8440if test "${pic_default+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
cc3fa755
UD
8442else
8443 pic_default=yes
8444cat > conftest.c <<EOF
9756dfe1 8445#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
8446# error PIC is default.
8447#endif
8448EOF
8449if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8450 pic_default=no
8451fi
8452rm -f conftest.*
8453fi
26f56c1c
UD
8454{ echo "$as_me:$LINENO: result: $pic_default" >&5
8455echo "${ECHO_T}$pic_default" >&6; }
cc3fa755
UD
8456
8457
2103c260 8458
2103c260 8459
2103c260 8460
cc3fa755 8461
cd6ede75
UD
8462
8463
8464
8465
8466
8467
cd6ede75
UD
8468if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8469 config_makefile=
8470else
8471 config_makefile=Makefile
8472fi
8473
ee74a442
UD
8474VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8475RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8476
cd6ede75
UD
8477
8478
26f56c1c 8479ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
f4b07664 8480
26f56c1c 8481ac_config_commands="$ac_config_commands default"
f4b07664 8482
3a12e572 8483cat >confcache <<\_ACEOF
cd6ede75
UD
8484# This file is a shell script that caches the results of configure
8485# tests run on this system so they can be shared between configure
3a12e572
UD
8486# scripts and configure runs, see configure's option --config-cache.
8487# It is not useful on other systems. If it contains results you don't
8488# want to keep, you may remove or edit it.
cd6ede75 8489#
3a12e572
UD
8490# config.status only pays attention to the cache file if you give it
8491# the --recheck option to rerun configure.
cd6ede75 8492#
f4b07664 8493# `ac_cv_env_foo' variables (set or unset) will be overridden when
3a12e572
UD
8494# loading this file, other *unset* `ac_cv_foo' will be assigned the
8495# following values.
8496
8497_ACEOF
8498
cd6ede75
UD
8499# The following way of writing the cache mishandles newlines in values,
8500# but we know of no workaround that is simple, portable, and efficient.
26f56c1c 8501# So, we kill variables containing newlines.
cd6ede75
UD
8502# Ultrix sh set writes to stderr and can't be redirected directly,
8503# and sets the high bit in the cache file unless we assign to the vars.
26f56c1c
UD
8504(
8505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8506 eval ac_val=\$$ac_var
8507 case $ac_val in #(
8508 *${as_nl}*)
8509 case $ac_var in #(
8510 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8511echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8512 esac
8513 case $ac_var in #(
8514 _ | IFS | as_nl) ;; #(
8515 *) $as_unset $ac_var ;;
8516 esac ;;
8517 esac
8518 done
8519
3a12e572 8520 (set) 2>&1 |
26f56c1c
UD
8521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8522 *${as_nl}ac_space=\ *)
3a12e572
UD
8523 # `set' does not quote correctly, so add quotes (double-quote
8524 # substitution turns \\\\ into \\, and sed turns \\ into \).
8525 sed -n \
9382fcee
RM
8526 "s/'/'\\\\''/g;
8527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26f56c1c 8528 ;; #(
3a12e572
UD
8529 *)
8530 # `set' quotes correctly as required by POSIX, so do not add quotes.
26f56c1c 8531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3a12e572 8532 ;;
26f56c1c
UD
8533 esac |
8534 sort
8535) |
3a12e572 8536 sed '
26f56c1c 8537 /^ac_cv_env_/b end
3a12e572 8538 t clear
26f56c1c 8539 :clear
3a12e572
UD
8540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8541 t end
26f56c1c
UD
8542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8543 :end' >>confcache
8544if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8545 if test -w "$cache_file"; then
8546 test "x$cache_file" != "x/dev/null" &&
8547 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8548echo "$as_me: updating cache $cache_file" >&6;}
3a12e572 8549 cat confcache >$cache_file
cd6ede75 8550 else
26f56c1c
UD
8551 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8552echo "$as_me: not updating unwritable cache $cache_file" >&6;}
cd6ede75
UD
8553 fi
8554fi
8555rm -f confcache
8556
cd6ede75
UD
8557test "x$prefix" = xNONE && prefix=$ac_default_prefix
8558# Let make expand exec_prefix.
8559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8560
cd6ede75
UD
8561DEFS=-DHAVE_CONFIG_H
8562
f4b07664
RM
8563ac_libobjs=
8564ac_ltlibobjs=
8565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8566 # 1. Remove the extension, and $U if already installed.
26f56c1c
UD
8567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8568 ac_i=`echo "$ac_i" | sed "$ac_script"`
8569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8570 # will be set to the directory where LIBOBJS objects are built.
8571 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8572 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
f4b07664
RM
8573done
8574LIBOBJS=$ac_libobjs
8575
8576LTLIBOBJS=$ac_ltlibobjs
8577
8578
cd6ede75 8579
3a12e572
UD
8580: ${CONFIG_STATUS=./config.status}
8581ac_clean_files_save=$ac_clean_files
8582ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8583{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8584echo "$as_me: creating $CONFIG_STATUS" >&6;}
8585cat >$CONFIG_STATUS <<_ACEOF
8586#! $SHELL
8587# Generated by $as_me.
cd6ede75 8588# Run this file to recreate the current configuration.
cd6ede75 8589# Compiler output produced by configure, useful for debugging
3a12e572 8590# configure, is in config.log if it exists.
cd6ede75 8591
3a12e572 8592debug=false
2abf9ff1
RM
8593ac_cs_recheck=false
8594ac_cs_silent=false
3a12e572
UD
8595SHELL=\${CONFIG_SHELL-$SHELL}
8596_ACEOF
8597
8598cat >>$CONFIG_STATUS <<\_ACEOF
3a12e572
UD
8599## --------------------- ##
8600## M4sh Initialization. ##
8601## --------------------- ##
8602
26f56c1c
UD
8603# Be more Bourne compatible
8604DUALCASE=1; export DUALCASE # for MKS sh
3a12e572
UD
8605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8606 emulate sh
8607 NULLCMD=:
f4b07664
RM
8608 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8609 # is contrary to our usage. Disable this feature.
8610 alias -g '${1+"$@"}'='"$@"'
26f56c1c
UD
8611 setopt NO_GLOB_SUBST
8612else
8613 case `(set -o) 2>/dev/null` in
8614 *posix*) set -o posix ;;
8615esac
8616
8617fi
8618
8619
8620
8621
8622# PATH needs CR
8623# Avoid depending upon Character Ranges.
8624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8627as_cr_digits='0123456789'
8628as_cr_alnum=$as_cr_Letters$as_cr_digits
8629
8630# The user is always right.
8631if test "${PATH_SEPARATOR+set}" != set; then
8632 echo "#! /bin/sh" >conf$$.sh
8633 echo "exit 0" >>conf$$.sh
8634 chmod +x conf$$.sh
8635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8636 PATH_SEPARATOR=';'
8637 else
8638 PATH_SEPARATOR=:
8639 fi
8640 rm -f conf$$.sh
3a12e572
UD
8641fi
8642
3a12e572 8643# Support unset when possible.
9382fcee 8644if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3a12e572
UD
8645 as_unset=unset
8646else
8647 as_unset=false
8648fi
8649
f4b07664 8650
26f56c1c
UD
8651# IFS
8652# We need space, tab and new line, in precisely that order. Quoting is
8653# there to prevent editors from complaining about space-tab.
8654# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8655# splitting by setting IFS to empty value.)
8656as_nl='
8657'
8658IFS=" "" $as_nl"
8659
8660# Find who we are. Look in the path if we contain no directory separator.
8661case $0 in
8662 *[\\/]* ) as_myself=$0 ;;
8663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8669done
8670IFS=$as_save_IFS
8671
8672 ;;
8673esac
8674# We did not find ourselves, most probably we were run as `sh COMMAND'
8675# in which case we are not to be found in the path.
8676if test "x$as_myself" = x; then
8677 as_myself=$0
8678fi
8679if test ! -f "$as_myself"; then
8680 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8681 { (exit 1); exit 1; }
8682fi
8683
f4b07664 8684# Work around bugs in pre-3.0 UWIN ksh.
26f56c1c
UD
8685for as_var in ENV MAIL MAILPATH
8686do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8687done
f4b07664
RM
8688PS1='$ '
8689PS2='> '
8690PS4='+ '
8691
8692# NLS nuisances.
2abf9ff1
RM
8693for as_var in \
8694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8696 LC_TELEPHONE LC_TIME
f4b07664 8697do
9382fcee 8698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
f4b07664
RM
8699 eval $as_var=C; export $as_var
8700 else
26f56c1c 8701 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
f4b07664
RM
8702 fi
8703done
8704
8705# Required to use basename.
26f56c1c
UD
8706if expr a : '\(a\)' >/dev/null 2>&1 &&
8707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f4b07664
RM
8708 as_expr=expr
8709else
8710 as_expr=false
8711fi
8712
26f56c1c 8713if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
f4b07664
RM
8714 as_basename=basename
8715else
8716 as_basename=false
8717fi
3a12e572
UD
8718
8719
8720# Name of the executable.
26f56c1c 8721as_me=`$as_basename -- "$0" ||
3a12e572
UD
8722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8723 X"$0" : 'X\(//\)$' \| \
26f56c1c 8724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3a12e572 8725echo X/"$0" |
26f56c1c
UD
8726 sed '/^.*\/\([^/][^/]*\)\/*$/{
8727 s//\1/
8728 q
8729 }
8730 /^X\/\(\/\/\)$/{
8731 s//\1/
8732 q
8733 }
8734 /^X\/\(\/\).*/{
8735 s//\1/
8736 q
8737 }
8738 s/.*/./; q'`
3a12e572 8739
26f56c1c
UD
8740# CDPATH.
8741$as_unset CDPATH
3a12e572
UD
8742
8743
3a12e572 8744
3a12e572
UD
8745 as_lineno_1=$LINENO
8746 as_lineno_2=$LINENO
3a12e572 8747 test "x$as_lineno_1" != "x$as_lineno_2" &&
26f56c1c 8748 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
cd6ede75 8749
3a12e572
UD
8750 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8751 # uniformly replaced by the line number. The first 'sed' inserts a
26f56c1c
UD
8752 # line-number line after each line using $LINENO; the second 'sed'
8753 # does the real work. The second script uses 'N' to pair each
8754 # line-number line with the line containing $LINENO, and appends
8755 # trailing '-' during substitution so that $LINENO is not a special
8756 # case at line end.
3a12e572 8757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26f56c1c
UD
8758 # scripts with optimization help from Paolo Bonzini. Blame Lee
8759 # E. McMahon (1931-1989) for sed's syntax. :-)
8760 sed -n '
8761 p
8762 /[$]LINENO/=
8763 ' <$as_myself |
3a12e572 8764 sed '
26f56c1c
UD
8765 s/[$]LINENO.*/&-/
8766 t lineno
8767 b
8768 :lineno
3a12e572 8769 N
26f56c1c
UD
8770 :loop
8771 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3a12e572 8772 t loop
26f56c1c 8773 s/-\n.*//
3a12e572 8774 ' >$as_me.lineno &&
26f56c1c
UD
8775 chmod +x "$as_me.lineno" ||
8776 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3a12e572
UD
8777 { (exit 1); exit 1; }; }
8778
8779 # Don't try to exec as it changes $[0], causing all sort of problems
8780 # (the dirname of $[0] is not the place where we might find the
26f56c1c
UD
8781 # original and so on. Autoconf is especially sensitive to this).
8782 . "./$as_me.lineno"
3a12e572
UD
8783 # Exit status is that of the last command.
8784 exit
8785}
cd6ede75 8786
cd6ede75 8787
26f56c1c
UD
8788if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8789 as_dirname=dirname
8790else
8791 as_dirname=false
8792fi
8793
8794ECHO_C= ECHO_N= ECHO_T=
8795case `echo -n x` in
8796-n*)
8797 case `echo 'x\c'` in
8798 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8799 *) ECHO_C='\c';;
8800 esac;;
8801*)
8802 ECHO_N='-n';;
3a12e572 8803esac
cd6ede75 8804
26f56c1c
UD
8805if expr a : '\(a\)' >/dev/null 2>&1 &&
8806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3a12e572
UD
8807 as_expr=expr
8808else
8809 as_expr=false
8810fi
cd6ede75 8811
3a12e572 8812rm -f conf$$ conf$$.exe conf$$.file
26f56c1c
UD
8813if test -d conf$$.dir; then
8814 rm -f conf$$.dir/conf$$.file
8815else
8816 rm -f conf$$.dir
8817 mkdir conf$$.dir
8818fi
3a12e572
UD
8819echo >conf$$.file
8820if ln -s conf$$.file conf$$ 2>/dev/null; then
26f56c1c
UD
8821 as_ln_s='ln -s'
8822 # ... but there are two gotchas:
8823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8825 # In both cases, we have to default to `cp -p'.
8826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3a12e572 8827 as_ln_s='cp -p'
3a12e572
UD
8828elif ln conf$$.file conf$$ 2>/dev/null; then
8829 as_ln_s=ln
8830else
8831 as_ln_s='cp -p'
cd6ede75 8832fi
26f56c1c
UD
8833rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8834rmdir conf$$.dir 2>/dev/null
cd6ede75 8835
f4b07664
RM
8836if mkdir -p . 2>/dev/null; then
8837 as_mkdir_p=:
8838else
9382fcee 8839 test -d ./-p && rmdir ./-p
f4b07664
RM
8840 as_mkdir_p=false
8841fi
8842
26f56c1c
UD
8843if test -x / >/dev/null 2>&1; then
8844 as_test_x='test -x'
8845else
8846 if ls -dL / >/dev/null 2>&1; then
8847 as_ls_L_option=L
8848 else
8849 as_ls_L_option=
8850 fi
8851 as_test_x='
8852 eval sh -c '\''
8853 if test -d "$1"; then
8854 test -d "$1/.";
8855 else
8856 case $1 in
8857 -*)set "./$1";;
8858 esac;
8859 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8860 ???[sx]*):;;*)false;;esac;fi
8861 '\'' sh
8862 '
8863fi
8864as_executable_p=$as_test_x
cd6ede75 8865
3a12e572 8866# Sed expression to map a string onto a valid CPP name.
9382fcee 8867as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
8868
8869# Sed expression to map a string onto a valid variable name.
9382fcee 8870as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3a12e572
UD
8871
8872
3a12e572
UD
8873exec 6>&1
8874
26f56c1c 8875# Save the log message, to keep $[0] and so on meaningful, and to
3a12e572 8876# report actual input values of CONFIG_FILES etc. instead of their
26f56c1c
UD
8877# values after options handling.
8878ac_log="
f4b07664 8879This file was extended by GNU C Library $as_me (see version.h), which was
26f56c1c 8880generated by GNU Autoconf 2.61. Invocation command line was
3a12e572
UD
8881
8882 CONFIG_FILES = $CONFIG_FILES
8883 CONFIG_HEADERS = $CONFIG_HEADERS
8884 CONFIG_LINKS = $CONFIG_LINKS
8885 CONFIG_COMMANDS = $CONFIG_COMMANDS
8886 $ $0 $@
8887
26f56c1c
UD
8888on `(hostname || uname -n) 2>/dev/null | sed 1q`
8889"
8890
3a12e572
UD
8891_ACEOF
8892
26f56c1c 8893cat >>$CONFIG_STATUS <<_ACEOF
3a12e572 8894# Files that config.status was made for.
26f56c1c
UD
8895config_files="$ac_config_files"
8896config_headers="$ac_config_headers"
8897config_commands="$ac_config_commands"
3a12e572 8898
26f56c1c 8899_ACEOF
3a12e572
UD
8900
8901cat >>$CONFIG_STATUS <<\_ACEOF
3a12e572
UD
8902ac_cs_usage="\
8903\`$as_me' instantiates files from templates according to the
8904current configuration.
8905
8906Usage: $0 [OPTIONS] [FILE]...
8907
8908 -h, --help print this help, then exit
26f56c1c 8909 -V, --version print version number and configuration settings, then exit
2abf9ff1 8910 -q, --quiet do not print progress messages
3a12e572
UD
8911 -d, --debug don't remove temporary files
8912 --recheck update $as_me by reconfiguring in the same conditions
8913 --file=FILE[:TEMPLATE]
9382fcee 8914 instantiate the configuration file FILE
3a12e572 8915 --header=FILE[:TEMPLATE]
9382fcee 8916 instantiate the configuration header FILE
3a12e572
UD
8917
8918Configuration files:
8919$config_files
8920
8921Configuration headers:
8922$config_headers
8923
3a12e572
UD
8924Configuration commands:
8925$config_commands
8926
8927Report bugs to <bug-autoconf@gnu.org>."
3a12e572 8928
26f56c1c 8929_ACEOF
3a12e572
UD
8930cat >>$CONFIG_STATUS <<_ACEOF
8931ac_cs_version="\\
f4b07664 8932GNU C Library config.status (see version.h)
26f56c1c
UD
8933configured by $0, generated by GNU Autoconf 2.61,
8934 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3a12e572 8935
26f56c1c 8936Copyright (C) 2006 Free Software Foundation, Inc.
3a12e572
UD
8937This config.status script is free software; the Free Software Foundation
8938gives unlimited permission to copy, distribute and modify it."
26f56c1c
UD
8939
8940ac_pwd='$ac_pwd'
8941srcdir='$srcdir'
8942INSTALL='$INSTALL'
3a12e572
UD
8943_ACEOF
8944
8945cat >>$CONFIG_STATUS <<\_ACEOF
8946# If no file are specified by the user, then we need to provide default
8947# value. By we need to know if files were specified by the user.
8948ac_need_defaults=:
8949while test $# != 0
8950do
8951 case $1 in
8952 --*=*)
26f56c1c
UD
8953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
f4b07664
RM
8955 ac_shift=:
8956 ;;
26f56c1c 8957 *)
f4b07664
RM
8958 ac_option=$1
8959 ac_optarg=$2
8960 ac_shift=shift
3a12e572 8961 ;;
cd6ede75
UD
8962 esac
8963
f4b07664 8964 case $ac_option in
3a12e572 8965 # Handling of the options.
2abf9ff1
RM
8966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8967 ac_cs_recheck=: ;;
26f56c1c
UD
8968 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8969 echo "$ac_cs_version"; exit ;;
8970 --debug | --debu | --deb | --de | --d | -d )
3a12e572
UD
8971 debug=: ;;
8972 --file | --fil | --fi | --f )
f4b07664
RM
8973 $ac_shift
8974 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3a12e572
UD
8975 ac_need_defaults=false;;
8976 --header | --heade | --head | --hea )
f4b07664
RM
8977 $ac_shift
8978 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3a12e572 8979 ac_need_defaults=false;;
26f56c1c
UD
8980 --he | --h)
8981 # Conflict between --help and --header
8982 { echo "$as_me: error: ambiguous option: $1
8983Try \`$0 --help' for more information." >&2
8984 { (exit 1); exit 1; }; };;
8985 --help | --hel | -h )
8986 echo "$ac_cs_usage"; exit ;;
2abf9ff1
RM
8987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8989 ac_cs_silent=: ;;
3a12e572
UD
8990
8991 # This is an error.
26f56c1c
UD
8992 -*) { echo "$as_me: error: unrecognized option: $1
8993Try \`$0 --help' for more information." >&2
3a12e572
UD
8994 { (exit 1); exit 1; }; } ;;
8995
26f56c1c
UD
8996 *) ac_config_targets="$ac_config_targets $1"
8997 ac_need_defaults=false ;;
cd6ede75 8998
3a12e572
UD
8999 esac
9000 shift
9001done
9002
2abf9ff1
RM
9003ac_configure_extra_args=
9004
9005if $ac_cs_silent; then
9006 exec 6>/dev/null
9007 ac_configure_extra_args="$ac_configure_extra_args --silent"
9008fi
9009
9010_ACEOF
9011cat >>$CONFIG_STATUS <<_ACEOF
9012if \$ac_cs_recheck; then
26f56c1c
UD
9013 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9014 CONFIG_SHELL=$SHELL
9015 export CONFIG_SHELL
9016 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2abf9ff1
RM
9017fi
9018
3a12e572 9019_ACEOF
26f56c1c
UD
9020cat >>$CONFIG_STATUS <<\_ACEOF
9021exec 5>>config.log
9022{
9023 echo
9024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9025## Running $as_me. ##
9026_ASBOX
9027 echo "$ac_log"
9028} >&5
3a12e572 9029
26f56c1c 9030_ACEOF
3a12e572
UD
9031cat >>$CONFIG_STATUS <<_ACEOF
9032#
26f56c1c 9033# INIT-COMMANDS
3a12e572 9034#
3a12e572
UD
9035config_vars='$config_vars'
9036
9037_ACEOF
9038
3a12e572 9039cat >>$CONFIG_STATUS <<\_ACEOF
26f56c1c
UD
9040
9041# Handling of arguments.
3a12e572
UD
9042for ac_config_target in $ac_config_targets
9043do
26f56c1c
UD
9044 case $ac_config_target in
9045 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9046 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9047 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9048 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9049 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9050
3a12e572
UD
9051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9052echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9053 { (exit 1); exit 1; }; };;
9054 esac
9055done
9056
26f56c1c 9057
3a12e572
UD
9058# If the user did not use the arguments to specify the items to instantiate,
9059# then the envvar interface is used. Set only those that are not.
9060# We use the long form for the default assignment because of an extremely
9061# bizarre bug on SunOS 4.1.3.
9062if $ac_need_defaults; then
9063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3a12e572
UD
9065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9066fi
9067
2abf9ff1 9068# Have a temporary directory for convenience. Make it in the build tree
26f56c1c 9069# simply because there is no reason against having it here, and in addition,
2abf9ff1 9070# creating and moving files from /tmp can sometimes cause problems.
26f56c1c
UD
9071# Hook for its removal unless debugging.
9072# Note that there is a small window in which the directory will not be cleaned:
9073# after its creation but before its name has been assigned to `$tmp'.
3a12e572
UD
9074$debug ||
9075{
26f56c1c
UD
9076 tmp=
9077 trap 'exit_status=$?
9078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9079' 0
3a12e572
UD
9080 trap '{ (exit 1); exit 1; }' 1 2 13 15
9081}
3a12e572 9082# Create a (secure) tmp directory for tmp files.
2abf9ff1 9083
3a12e572 9084{
26f56c1c 9085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3a12e572
UD
9086 test -n "$tmp" && test -d "$tmp"
9087} ||
9088{
26f56c1c
UD
9089 tmp=./conf$$-$RANDOM
9090 (umask 077 && mkdir "$tmp")
3a12e572
UD
9091} ||
9092{
2abf9ff1 9093 echo "$me: cannot create a temporary directory in ." >&2
3a12e572
UD
9094 { (exit 1); exit 1; }
9095}
9096
3a12e572 9097#
26f56c1c 9098# Set up the sed scripts for CONFIG_FILES section.
3a12e572
UD
9099#
9100
9101# No need to generate the scripts if there are no CONFIG_FILES.
9102# This happens for instance when ./config.status config.h
26f56c1c
UD
9103if test -n "$CONFIG_FILES"; then
9104
9105_ACEOF
9106
9107
9108
9109ac_delim='%!_!# '
9110for ac_last_try in false false false false false :; do
9111 cat >conf$$subs.sed <<_ACEOF
9112SHELL!$SHELL$ac_delim
9113PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9114PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9115PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9116PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9117PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9118PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9119exec_prefix!$exec_prefix$ac_delim
9120prefix!$prefix$ac_delim
9121program_transform_name!$program_transform_name$ac_delim
9122bindir!$bindir$ac_delim
9123sbindir!$sbindir$ac_delim
9124libexecdir!$libexecdir$ac_delim
9125datarootdir!$datarootdir$ac_delim
9126datadir!$datadir$ac_delim
9127sysconfdir!$sysconfdir$ac_delim
9128sharedstatedir!$sharedstatedir$ac_delim
9129localstatedir!$localstatedir$ac_delim
9130includedir!$includedir$ac_delim
9131oldincludedir!$oldincludedir$ac_delim
9132docdir!$docdir$ac_delim
9133infodir!$infodir$ac_delim
9134htmldir!$htmldir$ac_delim
9135dvidir!$dvidir$ac_delim
9136pdfdir!$pdfdir$ac_delim
9137psdir!$psdir$ac_delim
9138libdir!$libdir$ac_delim
9139localedir!$localedir$ac_delim
9140mandir!$mandir$ac_delim
9141DEFS!$DEFS$ac_delim
9142ECHO_C!$ECHO_C$ac_delim
9143ECHO_N!$ECHO_N$ac_delim
9144ECHO_T!$ECHO_T$ac_delim
9145LIBS!$LIBS$ac_delim
9146build_alias!$build_alias$ac_delim
9147host_alias!$host_alias$ac_delim
9148target_alias!$target_alias$ac_delim
9149with_fp!$with_fp$ac_delim
9150with_cvs!$with_cvs$ac_delim
9151enable_check_abi!$enable_check_abi$ac_delim
9152oldest_abi!$oldest_abi$ac_delim
9153bindnow!$bindnow$ac_delim
9154force_install!$force_install$ac_delim
9155all_warnings!$all_warnings$ac_delim
9156build!$build$ac_delim
9157build_cpu!$build_cpu$ac_delim
9158build_vendor!$build_vendor$ac_delim
9159build_os!$build_os$ac_delim
9160host!$host$ac_delim
9161host_cpu!$host_cpu$ac_delim
9162host_vendor!$host_vendor$ac_delim
9163host_os!$host_os$ac_delim
9164subdirs!$subdirs$ac_delim
9165add_ons!$add_ons$ac_delim
9166add_on_subdirs!$add_on_subdirs$ac_delim
9167base_machine!$base_machine$ac_delim
9168submachine!$submachine$ac_delim
9169sysnames!$sysnames$ac_delim
9170sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9171INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9172INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9173INSTALL_DATA!$INSTALL_DATA$ac_delim
9174LN_S!$LN_S$ac_delim
9175CC!$CC$ac_delim
9176CFLAGS!$CFLAGS$ac_delim
9177LDFLAGS!$LDFLAGS$ac_delim
9178CPPFLAGS!$CPPFLAGS$ac_delim
9179ac_ct_CC!$ac_ct_CC$ac_delim
9180OBJEXT!$OBJEXT$ac_delim
9181BUILD_CC!$BUILD_CC$ac_delim
9182cross_compiling!$cross_compiling$ac_delim
9183CPP!$CPP$ac_delim
9184CXX!$CXX$ac_delim
9185CXXFLAGS!$CXXFLAGS$ac_delim
9186ac_ct_CXX!$ac_ct_CXX$ac_delim
9187AR!$AR$ac_delim
9188OBJDUMP!$OBJDUMP$ac_delim
9189RANLIB!$RANLIB$ac_delim
9190MIG!$MIG$ac_delim
9191AS!$AS$ac_delim
9192LD!$LD$ac_delim
9193PWD_P!$PWD_P$ac_delim
9194MAKE!$MAKE$ac_delim
9195MSGFMT!$MSGFMT$ac_delim
9196MAKEINFO!$MAKEINFO$ac_delim
9197SED!$SED$ac_delim
9198AUTOCONF!$AUTOCONF$ac_delim
9199SYSINCLUDES!$SYSINCLUDES$ac_delim
9200CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9201libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9202BASH_SHELL!$BASH_SHELL$ac_delim
9203libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9204KSH!$KSH$ac_delim
9205libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9206AWK!$AWK$ac_delim
9207PERL!$PERL$ac_delim
9208INSTALL_INFO!$INSTALL_INFO$ac_delim
9209_ACEOF
9210
9211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9212 break
9213 elif $ac_last_try; then
9214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9215echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9216 { (exit 1); exit 1; }; }
9217 else
9218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
cd6ede75 9219 fi
26f56c1c
UD
9220done
9221
9222ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9223if test -n "$ac_eof"; then
9224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9225 ac_eof=`expr $ac_eof + 1`
9226fi
9227
9228cat >>$CONFIG_STATUS <<_ACEOF
9229cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9231_ACEOF
9232sed '
9233s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9234s/^/s,@/; s/!/@,|#_!!_#|/
9235:n
9236t n
9237s/'"$ac_delim"'$/,g/; t
9238s/$/\\/; p
9239N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9240' >>$CONFIG_STATUS <conf$$subs.sed
9241rm -f conf$$subs.sed
9242cat >>$CONFIG_STATUS <<_ACEOF
9243CEOF$ac_eof
9244_ACEOF
9245
9246
9247ac_delim='%!_!# '
9248for ac_last_try in false false false false false :; do
9249 cat >conf$$subs.sed <<_ACEOF
9250BISON!$BISON$ac_delim
9251VERSIONING!$VERSIONING$ac_delim
9252libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9253libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9254libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9255libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9256ASFLAGS_config!$ASFLAGS_config$ac_delim
9257libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9258libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9259libc_cv_fpie!$libc_cv_fpie$ac_delim
9260libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9261fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9262libc_cv_ssp!$libc_cv_ssp$ac_delim
9263libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9264libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9265no_whole_archive!$no_whole_archive$ac_delim
9266exceptions!$exceptions$ac_delim
9267LIBGD!$LIBGD$ac_delim
9268have_libaudit!$have_libaudit$ac_delim
9269have_libcap!$have_libcap$ac_delim
9270have_selinux!$have_selinux$ac_delim
9271GREP!$GREP$ac_delim
9272EGREP!$EGREP$ac_delim
9273sizeof_long_double!$sizeof_long_double$ac_delim
9274libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9275uname_sysname!$uname_sysname$ac_delim
9276uname_release!$uname_release$ac_delim
9277uname_version!$uname_version$ac_delim
9278old_glibc_headers!$old_glibc_headers$ac_delim
9279libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9280libc_cv_localedir!$libc_cv_localedir$ac_delim
9281libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9282libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9283libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9284use_ldconfig!$use_ldconfig$ac_delim
9285ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9286elf!$elf$ac_delim
9287xcoff!$xcoff$ac_delim
9288static!$static$ac_delim
9289shared!$shared$ac_delim
9290pic_default!$pic_default$ac_delim
9291profile!$profile$ac_delim
9292omitfp!$omitfp$ac_delim
9293bounded!$bounded$ac_delim
9294static_nss!$static_nss$ac_delim
9295nopic_initfini!$nopic_initfini$ac_delim
9296DEFINES!$DEFINES$ac_delim
9297mach_interface_list!$mach_interface_list$ac_delim
9298VERSION!$VERSION$ac_delim
9299RELEASE!$RELEASE$ac_delim
9300LIBOBJS!$LIBOBJS$ac_delim
9301LTLIBOBJS!$LTLIBOBJS$ac_delim
9302_ACEOF
9303
9304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
9305 break
9306 elif $ac_last_try; then
9307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9308echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9309 { (exit 1); exit 1; }; }
9310 else
9311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9312 fi
9313done
9314
9315ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9316if test -n "$ac_eof"; then
9317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9318 ac_eof=`expr $ac_eof + 1`
9319fi
cd6ede75 9320
26f56c1c
UD
9321cat >>$CONFIG_STATUS <<_ACEOF
9322cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9324_ACEOF
9325sed '
9326s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9327s/^/s,@/; s/!/@,|#_!!_#|/
9328:n
9329t n
9330s/'"$ac_delim"'$/,g/; t
9331s/$/\\/; p
9332N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9333' >>$CONFIG_STATUS <conf$$subs.sed
9334rm -f conf$$subs.sed
9335cat >>$CONFIG_STATUS <<_ACEOF
9336:end
9337s/|#_!!_#|//g
9338CEOF$ac_eof
3a12e572 9339_ACEOF
26f56c1c
UD
9340
9341
9342# VPATH may cause trouble with some makes, so we remove $(srcdir),
9343# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9344# trailing colons and then remove the whole line if VPATH becomes empty
9345# (actually we leave an empty line to preserve line numbers).
9346if test "x$srcdir" = x.; then
9347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9348s/:*\$(srcdir):*/:/
9349s/:*\${srcdir}:*/:/
9350s/:*@srcdir@:*/:/
9351s/^\([^=]*=[ ]*\):*/\1/
9352s/:*$//
9353s/^[^=]*=[ ]*$//
9354}'
9355fi
9356
3a12e572 9357cat >>$CONFIG_STATUS <<\_ACEOF
26f56c1c
UD
9358fi # test -n "$CONFIG_FILES"
9359
9360
9361for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9362do
9363 case $ac_tag in
9364 :[FHLC]) ac_mode=$ac_tag; continue;;
9365 esac
9366 case $ac_mode$ac_tag in
9367 :[FHL]*:*);;
9368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9369echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9370 { (exit 1); exit 1; }; };;
9371 :[FH]-) ac_tag=-:-;;
9372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
cd6ede75 9373 esac
26f56c1c
UD
9374 ac_save_IFS=$IFS
9375 IFS=:
9376 set x $ac_tag
9377 IFS=$ac_save_IFS
9378 shift
9379 ac_file=$1
9380 shift
9381
9382 case $ac_mode in
9383 :L) ac_source=$1;;
9384 :[FH])
9385 ac_file_inputs=
9386 for ac_f
9387 do
9388 case $ac_f in
9389 -) ac_f="$tmp/stdin";;
9390 *) # Look for the file first in the build tree, then in the source tree
9391 # (if the path is not absolute). The absolute path cannot be DOS-style,
9392 # because $ac_f cannot contain `:'.
9393 test -f "$ac_f" ||
9394 case $ac_f in
9395 [\\/$]*) false;;
9396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9397 esac ||
9398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9399echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9400 { (exit 1); exit 1; }; };;
9401 esac
9402 ac_file_inputs="$ac_file_inputs $ac_f"
9403 done
cd6ede75 9404
26f56c1c
UD
9405 # Let's still pretend it is `configure' which instantiates (i.e., don't
9406 # use $as_me), people would be surprised to read:
9407 # /* config.h. Generated by config.status. */
9408 configure_input="Generated from "`IFS=:
9409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9410 if test x"$ac_file" != x-; then
9411 configure_input="$ac_file. $configure_input"
9412 { echo "$as_me:$LINENO: creating $ac_file" >&5
9413echo "$as_me: creating $ac_file" >&6;}
9414 fi
9415
9416 case $ac_tag in
9417 *:-:* | *:-) cat >"$tmp/stdin";;
9418 esac
9419 ;;
9420 esac
9421
9422 ac_dir=`$as_dirname -- "$ac_file" ||
3a12e572 9423$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
9424 X"$ac_file" : 'X\(//\)[^/]' \| \
9425 X"$ac_file" : 'X\(//\)$' \| \
26f56c1c 9426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3a12e572 9427echo X"$ac_file" |
26f56c1c
UD
9428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9429 s//\1/
9430 q
9431 }
9432 /^X\(\/\/\)[^/].*/{
9433 s//\1/
9434 q
9435 }
9436 /^X\(\/\/\)$/{
9437 s//\1/
9438 q
9439 }
9440 /^X\(\/\).*/{
9441 s//\1/
9442 q
9443 }
9444 s/.*/./; q'`
9445 { as_dir="$ac_dir"
9446 case $as_dir in #(
9447 -*) as_dir=./$as_dir;;
9448 esac
9449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
f4b07664 9450 as_dirs=
26f56c1c
UD
9451 while :; do
9452 case $as_dir in #(
9453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9454 *) as_qdir=$as_dir;;
9455 esac
9456 as_dirs="'$as_qdir' $as_dirs"
9457 as_dir=`$as_dirname -- "$as_dir" ||
f4b07664 9458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
9459 X"$as_dir" : 'X\(//\)[^/]' \| \
9460 X"$as_dir" : 'X\(//\)$' \| \
26f56c1c 9461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
f4b07664 9462echo X"$as_dir" |
26f56c1c
UD
9463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9464 s//\1/
9465 q
9466 }
9467 /^X\(\/\/\)[^/].*/{
9468 s//\1/
9469 q
9470 }
9471 /^X\(\/\/\)$/{
9472 s//\1/
9473 q
9474 }
9475 /^X\(\/\).*/{
9476 s//\1/
9477 q
9478 }
9479 s/.*/./; q'`
9480 test -d "$as_dir" && break
f4b07664 9481 done
26f56c1c
UD
9482 test -z "$as_dirs" || eval "mkdir $as_dirs"
9483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9484echo "$as_me: error: cannot create directory $as_dir" >&2;}
f4b07664 9485 { (exit 1); exit 1; }; }; }
3a12e572
UD
9486 ac_builddir=.
9487
26f56c1c
UD
9488case "$ac_dir" in
9489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9490*)
3a12e572 9491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26f56c1c
UD
9492 # A ".." for each directory in $ac_dir_suffix.
9493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9494 case $ac_top_builddir_sub in
9495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9497 esac ;;
9498esac
9499ac_abs_top_builddir=$ac_pwd
9500ac_abs_builddir=$ac_pwd$ac_dir_suffix
9501# for backward compatibility:
9502ac_top_builddir=$ac_top_build_prefix
3a12e572
UD
9503
9504case $srcdir in
26f56c1c 9505 .) # We are building in place.
3a12e572 9506 ac_srcdir=.
26f56c1c
UD
9507 ac_top_srcdir=$ac_top_builddir_sub
9508 ac_abs_top_srcdir=$ac_pwd ;;
9509 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 9510 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
9511 ac_top_srcdir=$srcdir
9512 ac_abs_top_srcdir=$srcdir ;;
9513 *) # Relative name.
9514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9515 ac_top_srcdir=$ac_top_build_prefix$srcdir
9516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3a12e572 9517esac
26f56c1c 9518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9382fcee 9519
cd6ede75 9520
26f56c1c
UD
9521 case $ac_mode in
9522 :F)
9523 #
9524 # CONFIG_FILE
9525 #
3a12e572
UD
9526
9527 case $INSTALL in
9528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26f56c1c 9529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
cd6ede75 9530 esac
26f56c1c 9531_ACEOF
cd6ede75 9532
26f56c1c
UD
9533cat >>$CONFIG_STATUS <<\_ACEOF
9534# If the template does not know about datarootdir, expand it.
9535# FIXME: This hack should be removed a few years after 2.60.
9536ac_datarootdir_hack=; ac_datarootdir_seen=
9537
9538case `sed -n '/datarootdir/ {
9539 p
9540 q
9541}
9542/@datadir@/p
9543/@docdir@/p
9544/@infodir@/p
9545/@localedir@/p
9546/@mandir@/p
9547' $ac_file_inputs` in
9548*datarootdir*) ac_datarootdir_seen=yes;;
9549*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9550 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9551echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9552_ACEOF
9553cat >>$CONFIG_STATUS <<_ACEOF
9554 ac_datarootdir_hack='
9555 s&@datadir@&$datadir&g
9556 s&@docdir@&$docdir&g
9557 s&@infodir@&$infodir&g
9558 s&@localedir@&$localedir&g
9559 s&@mandir@&$mandir&g
9560 s&\\\${datarootdir}&$datarootdir&g' ;;
9561esac
3a12e572 9562_ACEOF
26f56c1c
UD
9563
9564# Neutralize VPATH when `$srcdir' = `.'.
9565# Shell code in configure.ac might set extrasub.
9566# FIXME: do we really want to maintain this feature?
3a12e572
UD
9567cat >>$CONFIG_STATUS <<_ACEOF
9568 sed "$ac_vpsub
9569$extrasub
9570_ACEOF
9571cat >>$CONFIG_STATUS <<\_ACEOF
9572:t
9573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26f56c1c
UD
9574s&@configure_input@&$configure_input&;t t
9575s&@top_builddir@&$ac_top_builddir_sub&;t t
9576s&@srcdir@&$ac_srcdir&;t t
9577s&@abs_srcdir@&$ac_abs_srcdir&;t t
9578s&@top_srcdir@&$ac_top_srcdir&;t t
9579s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9580s&@builddir@&$ac_builddir&;t t
9581s&@abs_builddir@&$ac_abs_builddir&;t t
9582s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9583s&@INSTALL@&$ac_INSTALL&;t t
9584$ac_datarootdir_hack
9585" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9586
9587test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9590 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9591which seems to be undefined. Please make sure it is defined." >&5
9592echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9593which seems to be undefined. Please make sure it is defined." >&2;}
9594
9595 rm -f "$tmp/stdin"
3a12e572 9596 case $ac_file in
26f56c1c
UD
9597 -) cat "$tmp/out"; rm -f "$tmp/out";;
9598 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
cd6ede75 9599 esac
26f56c1c
UD
9600 ;;
9601 :H)
9602 #
9603 # CONFIG_HEADER
9604 #
9605_ACEOF
9606
9607# Transform confdefs.h into a sed script `conftest.defines', that
9608# substitutes the proper values into config.h.in to produce config.h.
9609rm -f conftest.defines conftest.tail
9610# First, append a space to every undef/define line, to ease matching.
9611echo 's/$/ /' >conftest.defines
9612# Then, protect against being on the right side of a sed subst, or in
9613# an unquoted here document, in config.status. If some macros were
9614# called several times there might be several #defines for the same
9615# symbol, which is useless. But do not sort them, since the last
9616# AC_DEFINE must be honored.
9617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9618# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9619# NAME is the cpp macro being defined, VALUE is the value it is being given.
9620# PARAMS is the parameter list in the macro definition--in most cases, it's
9621# just an empty string.
9622ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9623ac_dB='\\)[ (].*,\\1define\\2'
9624ac_dC=' '
9625ac_dD=' ,'
9626
9627uniq confdefs.h |
9628 sed -n '
9629 t rset
9630 :rset
9631 s/^[ ]*#[ ]*define[ ][ ]*//
9632 t ok
9633 d
9634 :ok
9635 s/[\\&,]/\\&/g
9636 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9637 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9638 ' >>conftest.defines
9639
9640# Remove the space that was appended to ease matching.
9641# Then replace #undef with comments. This is necessary, for
cd6ede75
UD
9642# example, in the case of _POSIX_SOURCE, which is predefined and required
9643# on some systems where configure will not decide to define it.
26f56c1c
UD
9644# (The regexp can be short, since the line contains either #define or #undef.)
9645echo 's/ $//
9646s,^[ #]*u.*,/* & */,' >>conftest.defines
9647
9648# Break up conftest.defines:
9649ac_max_sed_lines=50
9650
9651# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9652# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9653# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9654# et cetera.
9655ac_in='$ac_file_inputs'
9656ac_out='"$tmp/out1"'
9657ac_nxt='"$tmp/out2"'
9658
9659while :
3a12e572 9660do
26f56c1c
UD
9661 # Write a here document:
9662 cat >>$CONFIG_STATUS <<_ACEOF
9663 # First, check the format of the line:
9664 cat >"\$tmp/defines.sed" <<\\CEOF
9665/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9666/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9667b
9668:def
9669_ACEOF
9670 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
3a12e572 9671 echo 'CEOF
26f56c1c
UD
9672 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9673 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9674 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9675 grep . conftest.tail >/dev/null || break
3a12e572
UD
9676 rm -f conftest.defines
9677 mv conftest.tail conftest.defines
9678done
26f56c1c 9679rm -f conftest.defines conftest.tail
3a12e572 9680
26f56c1c 9681echo "ac_result=$ac_in" >>$CONFIG_STATUS
3a12e572 9682cat >>$CONFIG_STATUS <<\_ACEOF
3a12e572 9683 if test x"$ac_file" != x-; then
26f56c1c
UD
9684 echo "/* $configure_input */" >"$tmp/config.h"
9685 cat "$ac_result" >>"$tmp/config.h"
9686 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
3a12e572
UD
9687 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9688echo "$as_me: $ac_file is unchanged" >&6;}
9689 else
f4b07664 9690 rm -f $ac_file
26f56c1c 9691 mv "$tmp/config.h" $ac_file
f4b07664
RM
9692 fi
9693 else
26f56c1c
UD
9694 echo "/* $configure_input */"
9695 cat "$ac_result"
f4b07664 9696 fi
26f56c1c
UD
9697 rm -f "$tmp/out12"
9698 ;;
9382fcee 9699
26f56c1c
UD
9700 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9701echo "$as_me: executing $ac_file commands" >&6;}
9702 ;;
9703 esac
3a12e572
UD
9704
9705
26f56c1c
UD
9706 case $ac_file$ac_mode in
9707 "default":C)
c0fb8a56
UD
9708case $CONFIG_FILES in *config.make*)
9709echo "$config_vars" >> config.make;;
9710esac
3a12e572 9711test -d bits || mkdir bits ;;
26f56c1c 9712
3a12e572 9713 esac
26f56c1c 9714done # for ac_tag
3a12e572 9715
3a12e572
UD
9716
9717{ (exit 0); exit 0; }
9718_ACEOF
cd6ede75 9719chmod +x $CONFIG_STATUS
3a12e572
UD
9720ac_clean_files=$ac_clean_files_save
9721
9722
9723# configure is writing to config.log, and then calls config.status.
9724# config.status does its own redirection, appending to config.log.
9725# Unfortunately, on DOS this fails, as config.log is still kept open
9726# by configure, so config.status won't be able to write to it; its
9727# output is simply discarded. So we exec the FD to /dev/null,
9728# effectively closing config.log, so it can be properly (re)opened and
9729# appended to by config.status. When coming back to configure, we
9730# need to make the FD available again.
9731if test "$no_create" != yes; then
9732 ac_cs_success=:
2abf9ff1
RM
9733 ac_config_status_args=
9734 test "$silent" = yes &&
9735 ac_config_status_args="$ac_config_status_args --quiet"
3a12e572 9736 exec 5>/dev/null
2abf9ff1 9737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3a12e572
UD
9738 exec 5>>config.log
9739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9740 # would make configure fail if this is the last instruction.
9741 $ac_cs_success || { (exit 1); exit 1; }
9742fi
cd6ede75 9743
3a12e572
UD
9744#
9745# CONFIG_SUBDIRS section.
9746#
cd6ede75
UD
9747if test "$no_recursion" != yes; then
9748
9749 # Remove --cache-file and --srcdir arguments so they do not pile up.
9750 ac_sub_configure_args=
9751 ac_prev=
26f56c1c
UD
9752 eval "set x $ac_configure_args"
9753 shift
9754 for ac_arg
9755 do
cd6ede75
UD
9756 if test -n "$ac_prev"; then
9757 ac_prev=
9758 continue
9759 fi
3a12e572 9760 case $ac_arg in
cd6ede75
UD
9761 -cache-file | --cache-file | --cache-fil | --cache-fi \
9762 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9763 ac_prev=cache_file ;;
9764 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3a12e572
UD
9765 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9766 | --c=*)
9767 ;;
9768 --config-cache | -C)
cd6ede75
UD
9769 ;;
9770 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9771 ac_prev=srcdir ;;
9772 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9773 ;;
3a12e572
UD
9774 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9775 ac_prev=prefix ;;
9776 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9777 ;;
26f56c1c
UD
9778 *)
9779 case $ac_arg in
9780 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9781 esac
9782 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
cd6ede75
UD
9783 esac
9784 done
9785
3a12e572
UD
9786 # Always prepend --prefix to ensure using the same prefix
9787 # in subdir configurations.
26f56c1c
UD
9788 ac_arg="--prefix=$prefix"
9789 case $ac_arg in
9790 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9791 esac
9792 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9793
9794 # Pass --silent
9795 if test "$silent" = yes; then
9796 ac_sub_configure_args="--silent $ac_sub_configure_args"
9797 fi
3a12e572
UD
9798
9799 ac_popdir=`pwd`
9800 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cd6ede75
UD
9801
9802 # Do not complain, so a configure script can configure whichever
9803 # parts of a large source tree are present.
26f56c1c
UD
9804 test -d "$srcdir/$ac_dir" || continue
9805
9806 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9807 echo "$as_me:$LINENO: $ac_msg" >&5
9808 echo "$ac_msg" >&6
9809 { as_dir="$ac_dir"
9810 case $as_dir in #(
9811 -*) as_dir=./$as_dir;;
9812 esac
9813 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
f4b07664 9814 as_dirs=
26f56c1c
UD
9815 while :; do
9816 case $as_dir in #(
9817 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9818 *) as_qdir=$as_dir;;
9819 esac
9820 as_dirs="'$as_qdir' $as_dirs"
9821 as_dir=`$as_dirname -- "$as_dir" ||
f4b07664 9822$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9382fcee
RM
9823 X"$as_dir" : 'X\(//\)[^/]' \| \
9824 X"$as_dir" : 'X\(//\)$' \| \
26f56c1c 9825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
f4b07664 9826echo X"$as_dir" |
26f56c1c
UD
9827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9828 s//\1/
9829 q
9830 }
9831 /^X\(\/\/\)[^/].*/{
9832 s//\1/
9833 q
9834 }
9835 /^X\(\/\/\)$/{
9836 s//\1/
9837 q
9838 }
9839 /^X\(\/\).*/{
9840 s//\1/
9841 q
9842 }
9843 s/.*/./; q'`
9844 test -d "$as_dir" && break
f4b07664 9845 done
26f56c1c
UD
9846 test -z "$as_dirs" || eval "mkdir $as_dirs"
9847 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9848echo "$as_me: error: cannot create directory $as_dir" >&2;}
f4b07664 9849 { (exit 1); exit 1; }; }; }
3a12e572 9850 ac_builddir=.
cd6ede75 9851
26f56c1c
UD
9852case "$ac_dir" in
9853.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9854*)
3a12e572 9855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26f56c1c
UD
9856 # A ".." for each directory in $ac_dir_suffix.
9857 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9858 case $ac_top_builddir_sub in
9859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9861 esac ;;
9862esac
9863ac_abs_top_builddir=$ac_pwd
9864ac_abs_builddir=$ac_pwd$ac_dir_suffix
9865# for backward compatibility:
9866ac_top_builddir=$ac_top_build_prefix
cd6ede75 9867
3a12e572 9868case $srcdir in
26f56c1c 9869 .) # We are building in place.
3a12e572 9870 ac_srcdir=.
26f56c1c
UD
9871 ac_top_srcdir=$ac_top_builddir_sub
9872 ac_abs_top_srcdir=$ac_pwd ;;
9873 [\\/]* | ?:[\\/]* ) # Absolute name.
3a12e572 9874 ac_srcdir=$srcdir$ac_dir_suffix;
26f56c1c
UD
9875 ac_top_srcdir=$srcdir
9876 ac_abs_top_srcdir=$srcdir ;;
9877 *) # Relative name.
9878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9879 ac_top_srcdir=$ac_top_build_prefix$srcdir
9880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9382fcee 9881esac
26f56c1c 9882ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3a12e572
UD
9883
9884
26f56c1c 9885 cd "$ac_dir"
cd6ede75
UD
9886
9887 # Check for guested configure; otherwise get Cygnus style configure.
26f56c1c
UD
9888 if test -f "$ac_srcdir/configure.gnu"; then
9889 ac_sub_configure=$ac_srcdir/configure.gnu
9890 elif test -f "$ac_srcdir/configure"; then
9891 ac_sub_configure=$ac_srcdir/configure
9892 elif test -f "$ac_srcdir/configure.in"; then
9893 # This should be Cygnus configure.
9894 ac_sub_configure=$ac_aux_dir/configure
cd6ede75 9895 else
3a12e572
UD
9896 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9897echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
cd6ede75
UD
9898 ac_sub_configure=
9899 fi
9900
9901 # The recursion is here.
9902 if test -n "$ac_sub_configure"; then
cd6ede75 9903 # Make the cache file name correct relative to the subdirectory.
3a12e572
UD
9904 case $cache_file in
9905 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26f56c1c
UD
9906 *) # Relative name.
9907 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
cd6ede75 9908 esac
cd6ede75 9909
26f56c1c
UD
9910 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9911echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
cd6ede75 9912 # The eval makes quoting arguments work.
26f56c1c
UD
9913 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9914 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9382fcee 9915 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
3a12e572
UD
9916echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9917 { (exit 1); exit 1; }; }
cd6ede75
UD
9918 fi
9919
26f56c1c 9920 cd "$ac_popdir"
cd6ede75
UD
9921 done
9922fi
9923