]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
* Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
[thirdparty/glibc.git] / configure
CommitLineData
cd6ede75
UD
1#! /bin/sh
2
3# From configure.in CVSid
4
5
6
7
650425ce
UD
8
9
10
11
63bda0c1
UD
12
13
cd6ede75 14# Guess values for system-dependent variables and create Makefiles.
a808d541 15# Generated automatically using autoconf version 2.13
cd6ede75
UD
16# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
17#
18# This configure script is free software; the Free Software Foundation
19# gives unlimited permission to copy, distribute and modify it.
20
21# Defaults:
22ac_help=
23ac_default_prefix=/usr/local
24# Any additions from configure.in:
25ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27ac_help="$ac_help
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
c8f3e6db
UD
29ac_help="$ac_help
30 --with-gd=DIR find libgd include dir and library with prefix DIR"
e41db95b
UD
31ac_help="$ac_help
32 --with-gd-include=DIR find libgd include files in DIR"
33ac_help="$ac_help
34 --with-gd-lib=DIR find libgd library files in DIR"
cd6ede75
UD
35ac_help="$ac_help
36 --with-fp if using floating-point hardware [default=yes]"
37ac_help="$ac_help
a5a0310d 38 --with-binutils=PATH specify location of binutils (as and ld)"
cd6ede75
UD
39ac_help="$ac_help
40 --with-elf if using the ELF object format"
d67281a7
UD
41ac_help="$ac_help
42 --without-cvs if CVS should not be used"
3c720987
UD
43ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
cd6ede75
UD
47ac_help="$ac_help
48 --enable-libio build in GNU libio instead of GNU stdio"
49ac_help="$ac_help
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
52ac_help="$ac_help
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
54ac_help="$ac_help
55 --enable-profile build profiled library [default=yes]"
56ac_help="$ac_help
57 --enable-omitfp build undebuggable optimized library [default=no]"
58ac_help="$ac_help
59 --enable-bounded build with runtime bounds checking [default=no]"
650425ce
UD
60ac_help="$ac_help
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
cd6ede75 63ac_help="$ac_help
73237de3
UD
64 --enable-add-ons[=DIR1,DIR2]...
65 configure and build add-ons in DIR1,DIR2,...
66 search for add-ons if no parameter given"
cd6ede75
UD
67ac_help="$ac_help
68 --enable-static-nss build static NSS modules [default=no]"
73237de3 69ac_help="$ac_help
310b3460 70 --disable-force-install don't force installation of files from this package,
73237de3 71 even if they are older than the installed files"
958f238f 72ac_help="$ac_help
4a307a98 73 --enable-kernel=VERSION compile for compatibility with kernel not older
958f238f 74 than VERSION"
cd6ede75
UD
75
76# Initialize some variables set by options.
77# The variables have the same names as the options, with
78# dashes changed to underlines.
79build=NONE
80cache_file=./config.cache
81exec_prefix=NONE
82host=NONE
83no_create=
84nonopt=NONE
85no_recursion=
86prefix=NONE
87program_prefix=NONE
88program_suffix=NONE
89program_transform_name=s,x,x,
90silent=
91site=
92srcdir=
93target=NONE
94verbose=
95x_includes=NONE
96x_libraries=NONE
97bindir='${exec_prefix}/bin'
98sbindir='${exec_prefix}/sbin'
99libexecdir='${exec_prefix}/libexec'
100datadir='${prefix}/share'
101sysconfdir='${prefix}/etc'
102sharedstatedir='${prefix}/com'
103localstatedir='${prefix}/var'
104libdir='${exec_prefix}/lib'
105includedir='${prefix}/include'
106oldincludedir='/usr/include'
107infodir='${prefix}/info'
108mandir='${prefix}/man'
109
110# Initialize some other variables.
111subdirs=
112MFLAGS= MAKEFLAGS=
5c2a0669 113SHELL=${CONFIG_SHELL-/bin/sh}
cd6ede75
UD
114# Maximum number of lines to put in a shell here document.
115ac_max_here_lines=12
116
117ac_prev=
118for ac_option
119do
120
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
124 ac_prev=
125 continue
126 fi
127
128 case "$ac_option" in
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 *) ac_optarg= ;;
131 esac
132
133 # Accept the important Cygnus configure options, so we can diagnose typos.
134
135 case "$ac_option" in
136
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 ac_prev=bindir ;;
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
141
142 -build | --build | --buil | --bui | --bu)
143 ac_prev=build ;;
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
146
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
153
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 ac_prev=datadir ;;
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 | --da=*)
158 datadir="$ac_optarg" ;;
159
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
168
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 fi
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 case "$ac_option" in
177 *=*) ;;
178 *) ac_optarg=yes ;;
179 esac
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
181
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
190
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
193 with_gas=yes ;;
194
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
198 cat << EOF
199Usage: configure [options] [host]
200Options: [defaults in brackets after descriptions]
201Configuration:
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
209 [$ac_default_prefix]
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 [same as prefix]
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
216 [PREFIX/share]
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 [PREFIX/com]
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
231EOF
232 cat << EOF
233Host type:
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
244EOF
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
247 fi
248 exit 0 ;;
249
250 -host | --host | --hos | --ho)
251 ac_prev=host ;;
252 -host=* | --host=* | --hos=* | --ho=*)
253 host="$ac_optarg" ;;
254
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
261
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 ac_prev=infodir ;;
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
266
267 -libdir | --libdir | --libdi | --libd)
268 ac_prev=libdir ;;
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
271
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
278
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
287
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 ac_prev=mandir ;;
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
292
293 -nfp | --nfp | --nf)
294 # Obsolete; use --without-fp.
295 with_fp=no ;;
296
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 | --no-cr | --no-c)
299 no_create=yes ;;
300
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 no_recursion=yes ;;
304
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
313
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 ac_prev=prefix ;;
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
318
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
325
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
332
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
349
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
352 silent=yes ;;
353
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 ac_prev=sbindir ;;
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 | --sbi=* | --sb=*)
358 sbindir="$ac_optarg" ;;
359
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
363 | --sha | --sh)
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 | --sha=* | --sh=*)
369 sharedstatedir="$ac_optarg" ;;
370
371 -site | --site | --sit)
372 ac_prev=site ;;
373 -site=* | --site=* | --sit=*)
374 site="$ac_optarg" ;;
375
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
380
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
387
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
392
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
395
396 -version | --version | --versio | --versi | --vers)
a808d541 397 echo "configure generated by autoconf version 2.13"
cd6ede75
UD
398 exit 0 ;;
399
400 -with-* | --with-*)
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 fi
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
412
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 fi
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
421
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
425
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
432
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
439
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 ;;
442
443 *)
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 fi
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 fi
450 nonopt="$ac_option"
451 ;;
452
453 esac
454done
455
456if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458fi
459
460trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461
462# File descriptor usage:
463# 0 standard input
464# 1 file creation
465# 2 errors and warnings
466# 3 some systems may open it to /dev/tty
467# 4 used on the Kubota Titan
468# 6 checking for... messages and results
469# 5 compiler messages saved in config.log
470if test "$silent" = yes; then
471 exec 6>/dev/null
472else
473 exec 6>&1
474fi
475exec 5>./config.log
476
477echo "\
478This file contains any messages produced by compilers while
479running configure, to aid debugging if configure makes a mistake.
480" 1>&5
481
482# Strip out --no-create and --no-recursion so they do not pile up.
483# Also quote any args containing shell metacharacters.
484ac_configure_args=
485for ac_arg
486do
487 case "$ac_arg" in
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 esac
496done
497
498# NLS nuisances.
499# Only set these to C if already set. These must not be set unconditionally
500# because not all systems understand e.g. LANG=C (notably SCO).
501# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502# Non-C LC_CTYPE values break the ctype check.
503if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507
508# confdefs.h avoids OS command line length limits that DEFS can exceed.
509rm -rf conftest* confdefs.h
510# AIX cpp loses on an empty file, so make sure it contains at least a newline.
511echo > confdefs.h
512
513# A filename unique to this package, relative to the directory that
514# configure is in, which we can look for to find out if srcdir is correct.
515ac_unique_file=include/features.h
516
517# Find the source files, if location was not specified.
518if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
527 fi
528else
529 ac_srcdir_defaulted=no
530fi
531if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 fi
537fi
538srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539
540# Prefer explicitly selected file to automatically selected ones.
541if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 else
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 fi
547fi
548for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
551 . "$ac_site_file"
552 fi
553done
554
555if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
a808d541 557 . $cache_file
cd6ede75
UD
558else
559 echo "creating cache $cache_file"
560 > $cache_file
561fi
562
563ac_ext=c
564# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565ac_cpp='$CPP $CPPFLAGS'
566ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5c2a0669 567ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cd6ede75
UD
568cross_compiling=$ac_cv_prog_cc_cross
569
5c2a0669
UD
570ac_exeext=
571ac_objext=o
cd6ede75
UD
572if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575 ac_n= ac_c='
576' ac_t=' '
577 else
578 ac_n=-n ac_c= ac_t=
579 fi
580else
581 ac_n= ac_c='\c' ac_t=
582fi
583
63bda0c1
UD
584 if test -r /vmunix; then
585 kernel_id=`strings /vmunix | grep UNIX`
586 elif test -r /dynix; then
587 kernel_id=`strings /dynix | grep DYNIX`
588 else
589 kernel_id=
590 fi
591
cd6ede75
UD
592
593
444518fe
UD
594ac_aux_dir=
595for ac_dir in scripts $srcdir/scripts; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
604 fi
605done
606if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
608fi
a808d541
UD
609ac_config_guess=$ac_aux_dir/config.guess
610ac_config_sub=$ac_aux_dir/config.sub
611ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
444518fe 612
cd6ede75
UD
613
614# This will get text that should go into config.make.
615config_vars=
616
617# Check for a --with-gmp argument and set gmp-srcdir in config.make.
618# Check whether --with-gmp or --without-gmp was given.
619if test "${with_gmp+set}" = set; then
620 withval="$with_gmp"
621 case "$with_gmp" in
622yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
623''|no) ;;
624*) config_vars="$config_vars
625gmp-srcdir = $withval" ;;
626esac
627
628fi
629
630# Check for a --with-gettext argument and set gettext-srcdir in config.make.
631# Check whether --with-gettext or --without-gettext was given.
632if test "${with_gettext+set}" = set; then
633 withval="$with_gettext"
634 case "$with_gettext" in
635yes)
636 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
637''|no) ;;
638*)
639 config_vars="$config_vars
640gettext-srcdir = $withval" ;;
641esac
642
643fi
644
c8f3e6db
UD
645# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
646# Check whether --with-gd or --without-gd was given.
647if test "${with_gd+set}" = set; then
648 withval="$with_gd"
649 case "$with_gd" in
e41db95b
UD
650yes|''|no) ;;
651*) libgd_include="-I$withval/include"
c8f3e6db
UD
652 libgd_ldflags="-L$withval/lib" ;;
653esac
654
655fi
656
e41db95b
UD
657# Check whether --with-gd-include or --without-gd-include was given.
658if test "${with_gd_include+set}" = set; then
659 withval="$with_gd_include"
660 case "$with_gd_include" in
661''|no) ;;
662*) libgd_include="-I$withval" ;;
663esac
664
665fi
666
667# Check whether --with-gd-lib or --without-gd-lib was given.
668if test "${with_gd_lib+set}" = set; then
669 withval="$with_gd_lib"
670 case "$with_gd_lib" in
671''|no) ;;
672*) libgd_ldflags="-L$withval" ;;
673esac
674
675fi
676
677
678if test -n "$libgd_include"; then
679 config_vars="$config_vars
680CFLAGS-memprofstat.c = $libgd_include"
681fi
682if test -n "$libgd_ldflags"; then
683 config_vars="$config_vars
684libgd-LDFLAGS = $libgd_ldflags"
685fi
cd6ede75
UD
686
687# Check whether --with-fp or --without-fp was given.
688if test "${with_fp+set}" = set; then
689 withval="$with_fp"
690 with_fp=$withval
691else
692 with_fp=yes
693fi
694
650425ce
UD
695# Check whether --with-binutils or --without-binutils was given.
696if test "${with_binutils+set}" = set; then
697 withval="$with_binutils"
a5a0310d
UD
698 path_binutils=$withval
699else
650425ce 700 path_binutils=''
cd6ede75
UD
701fi
702
cd6ede75
UD
703# Check whether --with-elf or --without-elf was given.
704if test "${with_elf+set}" = set; then
705 withval="$with_elf"
706 elf=$withval
707else
708 elf=no
709fi
710
d67281a7
UD
711# Check whether --with-cvs or --without-cvs was given.
712if test "${with_cvs+set}" = set; then
713 withval="$with_cvs"
714 with_cvs=$withval
715else
716 with_cvs=yes
717fi
718
719
cd6ede75 720
3c720987
UD
721# Check whether --with-headers or --without-headers was given.
722if test "${with_headers+set}" = set; then
723 withval="$with_headers"
724 sysheaders=$withval
725else
726 sysheaders=''
727fi
728
729
cd6ede75
UD
730# Check whether --enable-libio or --disable-libio was given.
731if test "${enable_libio+set}" = set; then
732 enableval="$enable_libio"
733 if test $enableval = yes; then
734 stdio=libio
735 else
736 stdio=stdio
737 fi
738else
739 stdio=default
740fi
741
742
743# Check whether --enable-sanity-checks or --disable-sanity-checks was given.
744if test "${enable_sanity_checks+set}" = set; then
745 enableval="$enable_sanity_checks"
746 enable_sanity=$enableval
747else
748 enable_sanity=yes
749fi
750
751
5c2a0669 752static=yes
cd6ede75
UD
753# Check whether --enable-shared or --disable-shared was given.
754if test "${enable_shared+set}" = set; then
755 enableval="$enable_shared"
756 shared=$enableval
757else
758 shared=default
759fi
760
761# Check whether --enable-profile or --disable-profile was given.
762if test "${enable_profile+set}" = set; then
763 enableval="$enable_profile"
764 profile=$enableval
765else
766 profile=yes
767fi
768
769# Check whether --enable-omitfp or --disable-omitfp was given.
770if test "${enable_omitfp+set}" = set; then
771 enableval="$enable_omitfp"
772 omitfp=$enableval
773else
774 omitfp=no
775fi
776
777# Check whether --enable-bounded or --disable-bounded was given.
778if test "${enable_bounded+set}" = set; then
779 enableval="$enable_bounded"
780 bounded=$enableval
781else
782 bounded=no
783fi
784
650425ce
UD
785# Check whether --enable-versioning or --disable-versioning was given.
786if test "${enable_versioning+set}" = set; then
787 enableval="$enable_versioning"
788 enable_versioning=$enableval
789else
790 enable_versioning=yes
791fi
792
cd6ede75
UD
793
794# Check whether --enable-add-ons or --disable-add-ons was given.
795if test "${enable_add_ons+set}" = set; then
796 enableval="$enable_add_ons"
61952351 797 case "$enableval" in
9c4c0024
UD
798 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
799 test "$add_ons" = "*" && add_ons= ;;
61952351
UD
800 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
801 esac
cd6ede75
UD
802else
803 add_ons=
804fi
805
61952351 806
cd6ede75
UD
807subdirs="$add_ons"
808
809add_ons_pfx=
810if test x"$add_ons" != x; then
811 for f in $add_ons; do
af6f3906
UD
812 # Test whether such a subdir really exists.
813 if test -d $srcdir/$f; then
814 add_ons_pfx="$add_ons_pfx $f/"
815 else
816 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
817 fi
cd6ede75
UD
818 done
819fi
820
821# Check whether --enable-static-nss or --disable-static-nss was given.
822if test "${enable_static_nss+set}" = set; then
823 enableval="$enable_static_nss"
824 static_nss=$enableval
825else
826 static_nss=no
827fi
828
829if test x"$static_nss" = xyes; then
830 cat >> confdefs.h <<\EOF
831#define DO_STATIC_NSS 1
832EOF
833
834fi
835
73237de3
UD
836# Check whether --enable-force-install or --disable-force-install was given.
837if test "${enable_force_install+set}" = set; then
838 enableval="$enable_force_install"
839 force_install=$enableval
840else
841 force_install=yes
842fi
843
844
845
958f238f
UD
846# Check whether --enable-kernel or --disable-kernel was given.
847if test "${enable_kernel+set}" = set; then
848 enableval="$enable_kernel"
849 minimum_kernel=$enableval
cd6ede75
UD
850fi
851
654de60c
UD
852if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
853 # Better nothing than this.
854 minimum_kernel=""
78bba25c
UD
855else
856 if test "$minimum_kernel" = current; then
857 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
858 fi
654de60c 859fi
958f238f
UD
860
861
958f238f 862# Make sure we can run config.sub.
a808d541
UD
863if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
864else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
958f238f
UD
865fi
866
a808d541
UD
867echo $ac_n "checking host system type""... $ac_c" 1>&6
868echo "configure:869: checking host system type" >&5
958f238f 869
a808d541
UD
870host_alias=$host
871case "$host_alias" in
872NONE)
873 case $nonopt in
874 NONE)
875 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
876 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877 fi ;;
878 *) host_alias=$nonopt ;;
879 esac ;;
880esac
cd6ede75 881
a808d541
UD
882host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
883host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
884host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
885host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886echo "$ac_t""$host" 1>&6
cd6ede75
UD
887
888
889# The way shlib-versions is used to generate soversions.mk uses a
890# fairly simplistic model for name recognition that can't distinguish
891# i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
892# of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
893# tell. This doesn't get used much beyond that, so it's fairly safe.
894case "$host_os" in
895linux*)
896 ;;
897gnu*)
898 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
899 ;;
900esac
901
902# We keep the original values in `$config_*' and never modify them, so we
903# can write them unchanged into config.make. Everything else uses
904# $machine, $vendor, and $os, and changes them whenever convenient.
905config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
906
907# Some configurations imply other options.
908case "$host_os" in
909gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
910 # These systems always use GNU tools.
911 gnu_ld=yes gnu_as=yes ;;
912esac
913case "$host_os" in
914# i586-linuxaout is mangled into i586-pc-linux-gnuaout
915linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
916 ;;
9a97d1f7 917gnu* | linux* | sysv4* | solaris2* | irix6*)
cd6ede75
UD
918 # These systems (almost) always use the ELF format.
919 elf=yes
920 ;;
921esac
922
923machine=$config_machine
924vendor=$config_vendor
925os=$config_os
926
a808d541
UD
927# config.guess on some IBM machines says `rs6000' instead of `powerpc'.
928# Unify this here.
929if test "$machine" = rs6000; then
930 machine="powerpc"
931fi
932
7efb9bd1
UD
933###
934### I put this here to prevent those annoying emails from people who cannot
935### read and try to compile glibc on unsupported platforms. --drepper
936###
937### By using the undocumented --enable-hacker-mode option for configure
938### one can skip this test to make the configuration not fail for unsupported
939### platforms.
940###
941if test -z "$enable_hacker_mode"; then
942 case "$machine-$host_os" in
f0d8cfd7 943 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
7efb9bd1
UD
944 ;;
945 *)
946 echo "*** The GNU C library is currently not available for this platform."
947 echo "*** So far nobody cared to port it and if there is no volunteer it"
948 echo "*** might never happen. So, if you have interest to see glibc on"
949 echo "*** this platform visit"
950 echo "*** http://www.gnu.org/software/libc/porting.html"
951 echo "*** and join the group of porters"
952 exit 1
953 ;;
954 esac
955fi
956
cd6ede75
UD
957# Expand the configuration machine name into a subdirectory by architecture
958# type and particular chip.
959case "$machine" in
960a29k | am29000) base_machine=a29k machine=a29k ;;
961alpha*) base_machine=alpha machine=alpha/$machine ;;
962arm*) base_machine=arm machine=arm/$machine ;;
60c96635
UD
963c3[012]) base_machine=cx0 machine=cx0/c30 ;;
964c4[04]) base_machine=cx0 machine=cx0/c40 ;;
cd6ede75
UD
965hppa*) base_machine=hppa machine=hppa/$machine ;;
966i[3456]86) base_machine=i386 machine=i386/$machine ;;
9dfa9a5a 967ia64) base_machine=ia64 machine=ia64 ;;
cd6ede75
UD
968m680?0) base_machine=m68k machine=m68k/$machine ;;
969m68k) base_machine=m68k machine=m68k/m68020 ;;
970m88???) base_machine=m88k machine=m88k/$machine ;;
971m88k) base_machine=m88k machine=m88k/m88100 ;;
972mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
9a97d1f7
UD
973mips*) base_machine=mips
974 case "`uname -m`" in
975 IP22) machine=mips/mips3 ;;
e66b6eca 976 *) machine=mips/$machine ;;
9a97d1f7 977 esac ;;
ca34d7a7
UD
978sparc | sparcv[67])
979 base_machine=sparc machine=sparc/sparc32 ;;
980sparcv8 | supersparc | hypersparc)
981 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
ae6b8730
RH
982sparcv8plus | sparcv8plusa | sparcv9)
983 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
ca34d7a7
UD
984sparc64 | ultrasparc)
985 base_machine=sparc machine=sparc/sparc64 ;;
cd6ede75
UD
986esac
987
988
dfd2257a
UD
989if test "$base_machine" = "i386"; then
990 cat >> confdefs.h <<\EOF
991#define USE_REGPARMS 1
992EOF
993
994fi
995
cd6ede75
UD
996# Compute the list of sysdep directories for this configuration.
997# This can take a while to compute.
998sysdep_dir=$srcdir/sysdeps
999echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
9dfa9a5a 1000echo "configure:1001: checking sysdep dirs" >&5
cd6ede75
UD
1001# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1002os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1003
1004case "$os" in
1005gnu*)
1006 base_os=mach/hurd ;;
1007netbsd* | 386bsd* | freebsd* | bsdi*)
1008 base_os=unix/bsd/bsd4.4 ;;
1009osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1010 base_os=unix/bsd ;;
1011sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1012 base_os=unix/sysv ;;
9a97d1f7
UD
1013irix6*)
1014 base_os=unix/sysv/irix6/$os ;;
cd6ede75
UD
1015solaris[2-9]*)
1016 base_os=unix/sysv/sysv4 ;;
908c3d5b
UD
1017hpux*)
1018 base_os=unix/sysv/hpux/$os ;;
f0d8cfd7
UD
1019aix4.3*)
1020 base_os=unix/sysv/aix/aix4.3 ;;
cd6ede75
UD
1021none)
1022 base_os=standalone ;;
1023*)
1024 base_os='' ;;
1025esac
1026
1027# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1028tail=$os
1029ostry=$os
1030while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1031 ostry="$ostry /$o"
1032 tail=$o
1033done
1034o=`echo $tail | sed 's/[0-9]*$//'`
1035if test $o != $tail; then
1036 ostry="$ostry /$o"
1037fi
1038# For linux-gnu, try linux-gnu, then linux.
1039o=`echo $tail | sed 's/-.*$//'`
1040if test $o != $tail; then
1041 ostry="$ostry /$o"
1042fi
1043
1044# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1045base=
1046tail=$base_os
1047while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1048 set $b
1049 base="$base /$1"
1050 tail="$2"
1051done
1052
ae6b8730 1053# For sparc/sparc32, try sparc/sparc32 and then sparc.
cd6ede75
UD
1054mach=
1055tail=$machine
1056while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1057 set $m
1058 # Prepend the machine's FPU directory unless --without-fp.
1059 if test "$with_fp" = yes; then
1060 mach="$mach /$1/fpu"
1061 fi
1062 mach="$mach /$1"
1063 tail="$2"
1064done
1065
1066
1067# Find what sysdep directories exist.
1068sysnames=
1069IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1070for d in $add_ons_pfx ''; do
1071 for b in $base ''; do
1072 for m0 in $mach ''; do
1073 for v in /$vendor ''; do
ae828bc6 1074 test "$v" = / && continue
cd6ede75 1075 for o in /$ostry ''; do
ae828bc6 1076 test "$o" = / && continue
cd6ede75
UD
1077 for m in $mach ''; do
1078 if test "$m0$b$v$o$m"; then
1079 try="${d}sysdeps$m0$b$v$o$m"
1080 test -n "$enable_debug_configure" &&
1081 echo "$0 DEBUG: try $try" >&2
9c4c0024 1082 if test -d $srcdir/$try; then
cd6ede75
UD
1083 sysnames="$sysnames $try"
1084 { test -n "$o" || test -n "$b"; } && os_used=t
1085 { test -n "$m" || test -n "$m0"; } && machine_used=t
1086 fi
1087 fi
1088 done
1089 done
1090 done
1091 done
1092 done
1093done
1094IFS="$ac_save_ifs"
1095
1096if test -z "$os_used" && test "$os" != none; then
1097 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1098fi
1099if test -z "$machine_used" && test "$machine" != none; then
1100 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1101fi
1102
1103# We have now validated the configuration.
1104
1105
1106# If using ELF, look for an `elf' subdirectory of each machine directory.
1107# We prepend these rather than inserting them whereever the machine appears
1108# because things specified by the machine's ELF ABI should override
1109# OS-specific things, and should always be the same for any OS on the
1110# machine (otherwise what's the point of an ABI?).
1111if test "$elf" = yes; then
1112 elf_dirs=
1113 for d in $add_ons_pfx ''; do
cd6ede75 1114 for m in $mach; do
9c4c0024 1115 if test -d $srcdir/${d}sysdeps$m/elf; then
cd6ede75
UD
1116 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1117 fi
1118 done
1119 done
1120 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1121fi
1122
1123
1124# Expand the list of system names into a full list of directories
1125# from each element's parent name and Implies file (if present).
1126set $sysnames
1127names=
1128while test $# -gt 0; do
1129 name=$1
1130 shift
1131
1132 case " $names " in *" $name "*)
1133 # Already in the list.
1134 continue
1135 esac
1136
1137 # Report each name as we discover it, so there is no long pause in output.
1138 echo $ac_n "$name $ac_c" >&6
1139
1140 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1141
1142 case $name in
1143 /*) xsrcdir= ;;
1144 *) xsrcdir=$srcdir/ ;;
1145 esac
1146 test -n "$enable_debug_configure" &&
1147 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1148
1149 if test -f $xsrcdir$name/Implies; then
1150 # Collect more names from the `Implies' file (removing comments).
1151 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1152 implied=
1153 for x in $implied_candidate; do
1154 if test -d $xsrcdir$name_base/$x; then
1155 implied="$implied $name_base/$x";
1156 else
1157 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1158 fi
1159 done
1160 else
1161 implied=
1162 fi
1163
1164 # Add NAME to the list of names.
1165 names="$names $name"
1166
1167 # Find the parent of NAME, using the empty string if it has none.
1168 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1169
1170 # Add the names implied by NAME, and NAME's parent (if it has one), to
1171 # the list of names to be processed (the argument list). We prepend the
1172 # implied names to the list and append the parent. We want implied
1173 # directories to come before further directories inferred from the
1174 # configuration components; this ensures that for sysv4, unix/common
1175 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1176 # after sysv4).
1177 sysnames="`echo $implied $* $parent`"
1178 test -n "$sysnames" && set $sysnames
1179done
1180
1181# Add the default directories.
a3a4a74e 1182default_sysnames=sysdeps/generic
2de7874e 1183if test "$elf" = yes; then
a3a4a74e 1184 default_sysnames="sysdeps/generic/elf $default_sysnames"
2de7874e 1185fi
a3a4a74e 1186sysnames="$names $default_sysnames"
cd6ede75
UD
1187
1188# The other names were emitted during the scan.
a3a4a74e 1189echo "$ac_t""$default_sysnames" 1>&6
cd6ede75
UD
1190
1191
1192### Locate tools.
1193
1194# Find a good install program. We prefer a C program (faster),
1195# so one script is as good as another. But avoid the broken or
1196# incompatible versions:
1197# SysV /etc/install, /usr/sbin/install
1198# SunOS /usr/etc/install
1199# IRIX /sbin/install
1200# AIX /bin/install
5c2a0669 1201# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cd6ede75
UD
1202# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1203# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1204# ./install, which can be erroneously created by make from ./install.sh.
1205echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9dfa9a5a 1206echo "configure:1207: checking for a BSD compatible install" >&5
cd6ede75 1207if test -z "$INSTALL"; then
a808d541 1208if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
cd6ede75
UD
1209 echo $ac_n "(cached) $ac_c" 1>&6
1210else
5c2a0669 1211 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
cd6ede75
UD
1212 for ac_dir in $PATH; do
1213 # Account for people who put trailing slashes in PATH elements.
1214 case "$ac_dir/" in
1215 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1216 *)
1217 # OSF1 and SCO ODT 3.0 have their own names for install.
5c2a0669
UD
1218 # Don't use installbsd from OSF since it installs stuff as root
1219 # by default.
1220 for ac_prog in ginstall scoinst install; do
cd6ede75
UD
1221 if test -f $ac_dir/$ac_prog; then
1222 if test $ac_prog = install &&
1223 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1224 # AIX install. It has an incompatible calling convention.
cd6ede75
UD
1225 :
1226 else
1227 ac_cv_path_install="$ac_dir/$ac_prog -c"
1228 break 2
1229 fi
1230 fi
1231 done
1232 ;;
1233 esac
1234 done
1235 IFS="$ac_save_IFS"
1236
1237fi
1238 if test "${ac_cv_path_install+set}" = set; then
1239 INSTALL="$ac_cv_path_install"
1240 else
1241 # As a last resort, use the slow shell script. We don't cache a
1242 # path for INSTALL within a source directory, because that will
1243 # break other packages using the cache if that directory is
1244 # removed, or if the path is relative.
1245 INSTALL="$ac_install_sh"
1246 fi
1247fi
1248echo "$ac_t""$INSTALL" 1>&6
1249
1250# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1251# It thinks the first close brace ends the variable substitution.
1252test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1253
a808d541 1254test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5c2a0669 1255
cd6ede75
UD
1256test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1257
ed9c47d9 1258if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
cd6ede75 1259 # The makefiles need to use a different form to find it in $srcdir.
ed9c47d9 1260 INSTALL='\$(..)./scripts/install-sh -c'
cd6ede75
UD
1261fi
1262echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9dfa9a5a 1263echo "configure:1264: checking whether ln -s works" >&5
a808d541 1264if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
cd6ede75
UD
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266else
1267 rm -f conftestdata
1268if ln -s X conftestdata 2>/dev/null
1269then
1270 rm -f conftestdata
1271 ac_cv_prog_LN_S="ln -s"
1272else
1273 ac_cv_prog_LN_S=ln
1274fi
1275fi
1276LN_S="$ac_cv_prog_LN_S"
1277if test "$ac_cv_prog_LN_S" = "ln -s"; then
1278 echo "$ac_t""yes" 1>&6
1279else
1280 echo "$ac_t""no" 1>&6
1281fi
1282
63bda0c1
UD
1283
1284# These programs are version sensitive.
4bca4c17 1285echo $ac_n "checking build system type""... $ac_c" 1>&6
9dfa9a5a 1286echo "configure:1287: checking build system type" >&5
a808d541
UD
1287
1288build_alias=$build
1289case "$build_alias" in
1290NONE)
1291 case $nonopt in
1292 NONE) build_alias=$host_alias ;;
1293 *) build_alias=$nonopt ;;
1294 esac ;;
1295esac
4bca4c17 1296
a808d541
UD
1297build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1298build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1299build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1300build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1301echo "$ac_t""$build" 1>&6
4bca4c17
UD
1302
1303if test $host != $build; then
1304 ac_tool_prefix=${host_alias}-
1305else
1306 ac_tool_prefix=
1307fi
1308
1309for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1310do
1311# Extract the first word of "$ac_prog", so it can be a program name with args.
1312set dummy $ac_prog; ac_word=$2
1313echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1314echo "configure:1315: checking for $ac_word" >&5
a808d541 1315if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
cd6ede75
UD
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
63bda0c1
UD
1318 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 1320else
5c2a0669
UD
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1322 ac_dummy="$PATH"
1323 for ac_dir in $ac_dummy; do
4bca4c17
UD
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_CC="$ac_prog"
1327 break
1328 fi
cd6ede75
UD
1329 done
1330 IFS="$ac_save_ifs"
1331fi
1332fi
4bca4c17
UD
1333CC="$ac_cv_prog_CC"
1334if test -n "$CC"; then
1335 echo "$ac_t""$CC" 1>&6
1336else
cd6ede75 1337 echo "$ac_t""no" 1>&6
4bca4c17
UD
1338fi
1339
1340test -n "$CC" && break
1341done
1342
1343if test -z "$CC"; then
1344 ac_verc_fail=yes
63bda0c1 1345else
4bca4c17
UD
1346 # Found it, now check the version.
1347 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
9dfa9a5a
UD
1348echo "configure:1349: checking version of $CC" >&5
1349 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4bca4c17
UD
1350 case $ac_prog_version in
1351 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9dfa9a5a 1352 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
4bca4c17
UD
1353 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1354 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1355
63bda0c1 1356 esac
4bca4c17
UD
1357 echo "$ac_t""$ac_prog_version" 1>&6
1358fi
1359if test $ac_verc_fail = yes; then
1360 critic_missing=t
ae828bc6
UD
1361fi
1362
22e65f8f 1363for ac_prog in gnumake gmake make
4bca4c17
UD
1364do
1365# Extract the first word of "$ac_prog", so it can be a program name with args.
1366set dummy $ac_prog; ac_word=$2
1367echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1368echo "configure:1369: checking for $ac_word" >&5
a808d541 1369if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
04be94a8
UD
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371else
63bda0c1
UD
1372 if test -n "$MAKE"; then
1373 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
04be94a8 1374else
5c2a0669
UD
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 ac_dummy="$PATH"
1377 for ac_dir in $ac_dummy; do
4bca4c17
UD
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_MAKE="$ac_prog"
1381 break
1382 fi
04be94a8
UD
1383 done
1384 IFS="$ac_save_ifs"
1385fi
1386fi
4bca4c17
UD
1387MAKE="$ac_cv_prog_MAKE"
1388if test -n "$MAKE"; then
1389 echo "$ac_t""$MAKE" 1>&6
1390else
04be94a8 1391 echo "$ac_t""no" 1>&6
4bca4c17
UD
1392fi
1393
1394test -n "$MAKE" && break
1395done
1396
1397if test -z "$MAKE"; then
1398 ac_verc_fail=yes
63bda0c1 1399else
4bca4c17
UD
1400 # Found it, now check the version.
1401 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
9dfa9a5a 1402echo "configure:1403: checking version of $MAKE" >&5
8fc1e2ca 1403 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4bca4c17
UD
1404 case $ac_prog_version in
1405 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7e7a548e 1406 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
4bca4c17
UD
1407 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1408 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1409
63bda0c1 1410 esac
4bca4c17
UD
1411 echo "$ac_t""$ac_prog_version" 1>&6
1412fi
1413if test $ac_verc_fail = yes; then
1414 critic_missing=t
04be94a8 1415fi
cd6ede75 1416
63bda0c1 1417
22e65f8f 1418for ac_prog in gnumsgfmt gmsgfmt msgfmt
4bca4c17
UD
1419do
1420# Extract the first word of "$ac_prog", so it can be a program name with args.
1421set dummy $ac_prog; ac_word=$2
1422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1423echo "configure:1424: checking for $ac_word" >&5
a808d541 1424if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
cd6ede75
UD
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426else
63bda0c1
UD
1427 if test -n "$MSGFMT"; then
1428 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
cd6ede75 1429else
5c2a0669
UD
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1431 ac_dummy="$PATH"
1432 for ac_dir in $ac_dummy; do
4bca4c17
UD
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_MSGFMT="$ac_prog"
1436 break
1437 fi
cd6ede75
UD
1438 done
1439 IFS="$ac_save_ifs"
1440fi
1441fi
4bca4c17
UD
1442MSGFMT="$ac_cv_prog_MSGFMT"
1443if test -n "$MSGFMT"; then
1444 echo "$ac_t""$MSGFMT" 1>&6
1445else
cd6ede75 1446 echo "$ac_t""no" 1>&6
4bca4c17
UD
1447fi
1448
1449test -n "$MSGFMT" && break
1450done
1451
1452if test -z "$MSGFMT"; then
1453 ac_verc_fail=yes
63bda0c1 1454else
4bca4c17
UD
1455 # Found it, now check the version.
1456 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
9dfa9a5a 1457echo "configure:1458: checking version of $MSGFMT" >&5
bdd421cc 1458 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4bca4c17
UD
1459 case $ac_prog_version in
1460 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
bdd421cc 1461 0.[1-9][0-9].* | [1-9].*)
4bca4c17
UD
1462 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1463 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1464
63bda0c1 1465 esac
4bca4c17
UD
1466 echo "$ac_t""$ac_prog_version" 1>&6
1467fi
1468if test $ac_verc_fail = yes; then
1469 MSGFMT=: aux_missing=t
cd6ede75
UD
1470fi
1471
4bca4c17
UD
1472for ac_prog in makeinfo
1473do
1474# Extract the first word of "$ac_prog", so it can be a program name with args.
1475set dummy $ac_prog; ac_word=$2
1476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1477echo "configure:1478: checking for $ac_word" >&5
a808d541 1478if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
cd6ede75
UD
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480else
63bda0c1
UD
1481 if test -n "$MAKEINFO"; then
1482 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
cd6ede75 1483else
5c2a0669
UD
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 ac_dummy="$PATH"
1486 for ac_dir in $ac_dummy; do
4bca4c17
UD
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_MAKEINFO="$ac_prog"
1490 break
1491 fi
cd6ede75
UD
1492 done
1493 IFS="$ac_save_ifs"
cd6ede75
UD
1494fi
1495fi
4bca4c17
UD
1496MAKEINFO="$ac_cv_prog_MAKEINFO"
1497if test -n "$MAKEINFO"; then
1498 echo "$ac_t""$MAKEINFO" 1>&6
1499else
cd6ede75 1500 echo "$ac_t""no" 1>&6
4bca4c17
UD
1501fi
1502
1503test -n "$MAKEINFO" && break
1504done
1505
1506if test -z "$MAKEINFO"; then
1507 ac_verc_fail=yes
63bda0c1 1508else
4bca4c17
UD
1509 # Found it, now check the version.
1510 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
9dfa9a5a 1511echo "configure:1512: checking version of $MAKEINFO" >&5
be1d9d95 1512 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4bca4c17
UD
1513 case $ac_prog_version in
1514 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
43fc8f18 1515 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
4bca4c17
UD
1516 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1517 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1518
63bda0c1 1519 esac
4bca4c17
UD
1520 echo "$ac_t""$ac_prog_version" 1>&6
1521fi
1522if test $ac_verc_fail = yes; then
1523 MAKEINFO=: aux_missing=t
cd6ede75
UD
1524fi
1525
aec103d3
UD
1526for ac_prog in gsed sed
1527do
1528# Extract the first word of "$ac_prog", so it can be a program name with args.
1529set dummy $ac_prog; ac_word=$2
1530echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1531echo "configure:1532: checking for $ac_word" >&5
a808d541 1532if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
aec103d3
UD
1533 echo $ac_n "(cached) $ac_c" 1>&6
1534else
1535 if test -n "$SED"; then
1536 ac_cv_prog_SED="$SED" # Let the user override the test.
1537else
1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1539 ac_dummy="$PATH"
1540 for ac_dir in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir=.
1542 if test -f $ac_dir/$ac_word; then
1543 ac_cv_prog_SED="$ac_prog"
1544 break
1545 fi
1546 done
1547 IFS="$ac_save_ifs"
1548fi
1549fi
1550SED="$ac_cv_prog_SED"
1551if test -n "$SED"; then
1552 echo "$ac_t""$SED" 1>&6
1553else
1554 echo "$ac_t""no" 1>&6
1555fi
1556
1557test -n "$SED" && break
1558done
1559
1560if test -z "$SED"; then
1561 ac_verc_fail=yes
1562else
1563 # Found it, now check the version.
1564 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
9dfa9a5a 1565echo "configure:1566: checking version of $SED" >&5
aec103d3
UD
1566 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1567 case $ac_prog_version in
1568 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
e5aa91c3 1569 3.0[2-9]|3.[1-9]*|[4-9]*)
aec103d3
UD
1570 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1571 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1572
1573 esac
1574 echo "$ac_t""$ac_prog_version" 1>&6
1575fi
1576if test $ac_verc_fail = yes; then
1577 SED=: aux_missing=t
1578fi
1579
cd6ede75 1580
4bca4c17
UD
1581if test -n "$critic_missing"; then
1582{ echo "configure: error:
63bda0c1
UD
1583*** Some critical program is missing or too old.
1584*** Check the INSTALL file for required versions." 1>&2; exit 1; }
4bca4c17 1585fi
63bda0c1 1586
4bca4c17 1587test -n "$aux_missing" && echo "configure: warning:
63bda0c1
UD
1588*** An auxiliary program is missing or too old;
1589*** some features will be disabled.
1590*** Check the INSTALL file for required versions." 1>&2
cd6ede75 1591
beefeafb
AS
1592# glibcbug.in wants to know the compiler version.
1593CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1594
1595
63bda0c1
UD
1596
1597echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9dfa9a5a 1598echo "configure:1599: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a808d541 1599if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
63bda0c1
UD
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601else
1602
cd6ede75
UD
1603ac_ext=c
1604# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1605ac_cpp='$CPP $CPPFLAGS'
1606ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5c2a0669 1607ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cd6ede75
UD
1608cross_compiling=$ac_cv_prog_cc_cross
1609
5c2a0669
UD
1610cat > conftest.$ac_ext << EOF
1611
9dfa9a5a 1612#line 1613 "configure"
cd6ede75 1613#include "confdefs.h"
5c2a0669 1614
cd6ede75
UD
1615main(){return(0);}
1616EOF
9dfa9a5a 1617if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd6ede75
UD
1618 ac_cv_prog_cc_works=yes
1619 # If we can't run a trivial program, we are probably using a cross compiler.
1620 if (./conftest; exit) 2>/dev/null; then
1621 ac_cv_prog_cc_cross=no
1622 else
1623 ac_cv_prog_cc_cross=yes
1624 fi
1625else
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1628 ac_cv_prog_cc_works=no
1629fi
1630rm -fr conftest*
5c2a0669
UD
1631ac_ext=c
1632# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1635ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1636cross_compiling=$ac_cv_prog_cc_cross
cd6ede75 1637
63bda0c1
UD
1638fi
1639
cd6ede75
UD
1640echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1641if test $ac_cv_prog_cc_works = no; then
1642 cross_linkable=no
1643 ac_cv_prog_cc_cross=yes
1644else
1645 cross_linkable=yes
1646fi
1647echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9dfa9a5a 1648echo "configure:1649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a808d541 1649if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
63bda0c1
UD
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651else
1652 :
1653fi
1654
cd6ede75
UD
1655echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1656
1657cross_compiling=$ac_cv_prog_cc_cross
1658
1659echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9dfa9a5a 1660echo "configure:1661: checking whether we are using GNU C" >&5
a808d541 1661if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
cd6ede75
UD
1662 echo $ac_n "(cached) $ac_c" 1>&6
1663else
1664 cat > conftest.c <<EOF
1665#ifdef __GNUC__
1666 yes;
1667#endif
1668EOF
9dfa9a5a 1669if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
cd6ede75
UD
1670 ac_cv_prog_gcc=yes
1671else
1672 ac_cv_prog_gcc=no
1673fi
1674fi
1675
1676echo "$ac_t""$ac_cv_prog_gcc" 1>&6
63bda0c1 1677if test $ac_cv_prog_gcc != yes; then
cd6ede75
UD
1678 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1679fi
1680
1681echo $ac_n "checking build system type""... $ac_c" 1>&6
9dfa9a5a 1682echo "configure:1683: checking build system type" >&5
a808d541
UD
1683
1684build_alias=$build
1685case "$build_alias" in
1686NONE)
1687 case $nonopt in
1688 NONE) build_alias=$host_alias ;;
1689 *) build_alias=$nonopt ;;
1690 esac ;;
1691esac
cd6ede75 1692
a808d541
UD
1693build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1694build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697echo "$ac_t""$build" 1>&6
cd6ede75
UD
1698
1699if test $host != $build; then
1700 for ac_prog in gcc cc
1701do
1702# Extract the first word of "$ac_prog", so it can be a program name with args.
1703set dummy $ac_prog; ac_word=$2
1704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1705echo "configure:1706: checking for $ac_word" >&5
a808d541 1706if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
cd6ede75
UD
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708else
1709 if test -n "$BUILD_CC"; then
1710 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1711else
5c2a0669
UD
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1713 ac_dummy="$PATH"
1714 for ac_dir in $ac_dummy; do
cd6ede75
UD
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_BUILD_CC="$ac_prog"
1718 break
1719 fi
1720 done
1721 IFS="$ac_save_ifs"
1722fi
1723fi
1724BUILD_CC="$ac_cv_prog_BUILD_CC"
1725if test -n "$BUILD_CC"; then
1726 echo "$ac_t""$BUILD_CC" 1>&6
1727else
1728 echo "$ac_t""no" 1>&6
1729fi
1730
1731test -n "$BUILD_CC" && break
1732done
1733
1734fi
1735
1736echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9dfa9a5a 1737echo "configure:1738: checking how to run the C preprocessor" >&5
cd6ede75
UD
1738# On Suns, sometimes $CPP names a directory.
1739if test -n "$CPP" && test -d "$CPP"; then
1740 CPP=
1741fi
1742if test -z "$CPP"; then
a808d541 1743if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
cd6ede75
UD
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746 # This must be in double quotes, not single quotes, because CPP may get
1747 # substituted into the Makefile and "${CC-cc}" will confuse make.
1748 CPP="${CC-cc} -E"
1749 # On the NeXT, cc -E runs the code through the compiler's parser,
1750 # not just through cpp.
1751 cat > conftest.$ac_ext <<EOF
9dfa9a5a 1752#line 1753 "configure"
cd6ede75
UD
1753#include "confdefs.h"
1754#include <assert.h>
1755Syntax Error
1756EOF
1757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9dfa9a5a 1758{ (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c2a0669 1759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
cd6ede75
UD
1760if test -z "$ac_err"; then
1761 :
1762else
1763 echo "$ac_err" >&5
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 rm -rf conftest*
1767 CPP="${CC-cc} -E -traditional-cpp"
1768 cat > conftest.$ac_ext <<EOF
9dfa9a5a 1769#line 1770 "configure"
cd6ede75
UD
1770#include "confdefs.h"
1771#include <assert.h>
1772Syntax Error
1773EOF
1774ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9dfa9a5a 1775{ (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c2a0669
UD
1776ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1777if test -z "$ac_err"; then
1778 :
1779else
1780 echo "$ac_err" >&5
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 rm -rf conftest*
1784 CPP="${CC-cc} -nologo -E"
1785 cat > conftest.$ac_ext <<EOF
9dfa9a5a 1786#line 1787 "configure"
5c2a0669
UD
1787#include "confdefs.h"
1788#include <assert.h>
1789Syntax Error
1790EOF
1791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9dfa9a5a 1792{ (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5c2a0669 1793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
cd6ede75
UD
1794if test -z "$ac_err"; then
1795 :
1796else
1797 echo "$ac_err" >&5
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 rm -rf conftest*
1801 CPP=/lib/cpp
1802fi
1803rm -f conftest*
1804fi
5c2a0669
UD
1805rm -f conftest*
1806fi
cd6ede75
UD
1807rm -f conftest*
1808 ac_cv_prog_CPP="$CPP"
1809fi
1810 CPP="$ac_cv_prog_CPP"
1811else
1812 ac_cv_prog_CPP="$CPP"
1813fi
1814echo "$ac_t""$CPP" 1>&6
1815
650425ce
UD
1816# Was a --with-binutils option given?
1817if test -n "$path_binutils"; then
1818 # Make absolute; ensure a single trailing slash.
1819 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
63bda0c1 1820 CC="$CC -B$path_binutils"
650425ce 1821fi
27a5bb33
UD
1822AS=`$CC -print-prog-name=as`
1823LD=`$CC -print-prog-name=ld`
5edb9387 1824AR=`$CC -print-prog-name=ar`
cd6ede75
UD
1825
1826
5edb9387
UD
1827# ranlib has to be treated a bit differently since it might not exist at all.
1828RANLIB=`$CC -print-prog-name=ranlib`
1829if test $RANLIB = ranlib; then
1830# This extra check has to happen since gcc simply echos the parameter in
1831# case it cannot find the value in its own directories.
cd6ede75
UD
1832# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1834echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1835echo "configure:1836: checking for $ac_word" >&5
a808d541 1836if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
cd6ede75
UD
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838else
1839 if test -n "$RANLIB"; then
1840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1841else
5c2a0669
UD
1842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1843 ac_dummy="$PATH"
1844 for ac_dir in $ac_dummy; do
cd6ede75
UD
1845 test -z "$ac_dir" && ac_dir=.
1846 if test -f $ac_dir/$ac_word; then
1847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1848 break
1849 fi
1850 done
1851 IFS="$ac_save_ifs"
1852fi
1853fi
1854RANLIB="$ac_cv_prog_RANLIB"
1855if test -n "$RANLIB"; then
1856 echo "$ac_t""$RANLIB" 1>&6
1857else
1858 echo "$ac_t""no" 1>&6
1859fi
1860
1861
1862if test -z "$ac_cv_prog_RANLIB"; then
1863if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "ranlib", so it can be a program name with args.
1865set dummy ranlib; ac_word=$2
1866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1867echo "configure:1868: checking for $ac_word" >&5
a808d541 1868if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
cd6ede75
UD
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871 if test -n "$RANLIB"; then
1872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1873else
5c2a0669
UD
1874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1875 ac_dummy="$PATH"
1876 for ac_dir in $ac_dummy; do
cd6ede75
UD
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 ac_cv_prog_RANLIB="ranlib"
1880 break
1881 fi
1882 done
1883 IFS="$ac_save_ifs"
1884 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1885fi
1886fi
1887RANLIB="$ac_cv_prog_RANLIB"
1888if test -n "$RANLIB"; then
1889 echo "$ac_t""$RANLIB" 1>&6
1890else
1891 echo "$ac_t""no" 1>&6
1892fi
1893
1894else
1895 RANLIB=":"
1896fi
1897fi
1898
5edb9387
UD
1899fi
1900
1901
1902# Determine whether we are using GNU binutils.
1903echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
9dfa9a5a 1904echo "configure:1905: checking whether $AS is GNU as" >&5
a808d541 1905if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
5edb9387
UD
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907else
1908 # Most GNU programs take a -v and spit out some text including
1909# the word 'GNU'. Some try to read stdin, so give them /dev/null.
1910if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1911 libc_cv_prog_as_gnu=yes
1912else
1913 libc_cv_prog_as_gnu=no
1914fi
1915rm -fr contest*
1916fi
1917
1918echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1919rm -f a.out
1920gnu_as=$libc_cv_prog_as_gnu
1921
1922echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
9dfa9a5a 1923echo "configure:1924: checking whether $LD is GNU ld" >&5
a808d541 1924if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
5edb9387
UD
1925 echo $ac_n "(cached) $ac_c" 1>&6
1926else
1927 # Most GNU programs take a -v and spit out some text including
1928# the word 'GNU'. Some try to read stdin, so give them /dev/null.
1929if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1930 libc_cv_prog_ld_gnu=yes
1931else
1932 libc_cv_prog_ld_gnu=no
1933fi
1934rm -fr contest*
1935fi
1936
1937echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1938gnu_ld=$libc_cv_prog_ld_gnu
1939
4bca4c17
UD
1940# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1941set dummy ${ac_tool_prefix}mig; ac_word=$2
1942echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 1943echo "configure:1944: checking for $ac_word" >&5
a808d541 1944if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
4bca4c17
UD
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 if test -n "$MIG"; then
1948 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1949else
5c2a0669
UD
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 ac_dummy="$PATH"
1952 for ac_dir in $ac_dummy; do
4bca4c17
UD
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1956 break
1957 fi
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1961fi
1962fi
1963MIG="$ac_cv_prog_MIG"
1964if test -n "$MIG"; then
1965 echo "$ac_t""$MIG" 1>&6
1966else
1967 echo "$ac_t""no" 1>&6
1968fi
1969
1970
1971
cd6ede75 1972
3c720987
UD
1973# if using special system headers, find out the compiler's sekrit
1974# header directory and add that to the list. NOTE: Only does the right
1975# thing on a system that doesn't need fixincludes. (Not presently a problem.)
1976if test -n "$sysheaders"; then
1977 ccheaders=`$CC -print-file-name=include`
1978 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1979fi
1980
1981
f89ac85c
UD
1982# check if ranlib is necessary
1983echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
9dfa9a5a 1984echo "configure:1985: checking whether ranlib is necessary" >&5
a808d541 1985if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
f38931a9
UD
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987else
f89ac85c
UD
1988 cat > conftest.c <<EOF
1989int a;
1990char b;
1991void c(void) {}
1992EOF
1993$CC $CFLAGS -c conftest.c
1994$AR cr conftest.a conftest.c
1995cp conftest.a conftest2.a
1996$RANLIB conftest.a
1997if cmp -s conftest.a conftest2.a; then
1998 libc_cv_ranlib_necessary=no
f38931a9 1999else
f89ac85c 2000 libc_cv_ranlib_necessary=yes
f38931a9 2001fi
f89ac85c 2002rm -rf conftest*
f38931a9
UD
2003fi
2004
f89ac85c
UD
2005echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2006if test "$libc_cv_ranlib_necessary" = no; then
2007 RANLIB=:
2008fi
f38931a9 2009
3911660e
UD
2010# Test if LD_LIBRARY_PATH contains the notation for the current directory
2011# since this would lead to problems installing/building glibc.
2012# LD_LIBRARY_PATH contains the current directory if one of the following
2013# is true:
2014# - one of the terminals (":" and ";") is the first or last sign
2015# - two terminals occur directly after each other
2016# - the path contains an element with a dot in it
2017echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
9dfa9a5a 2018echo "configure:2019: checking LD_LIBRARY_PATH variable" >&5
3911660e
UD
2019case ${LD_LIBRARY_PATH} in
2020 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 2021 ld_library_path_setting="contains current directory"
3911660e
UD
2022 ;;
2023 *)
2024 ld_library_path_setting="ok"
2025 ;;
2026esac
2027echo "$ac_t""$ld_library_path_setting" 1>&6
2028if test "$ld_library_path_setting" != "ok"; then
63bda0c1
UD
2029{ echo "configure: error:
2030*** LD_LIBRARY_PATH shouldn't contain the current directory when
2031*** building glibc. Please change the environment variable
2032*** and run configure again." 1>&2; exit 1; }
3911660e
UD
2033fi
2034
cd6ede75
UD
2035# Extract the first word of "bash", so it can be a program name with args.
2036set dummy bash; ac_word=$2
2037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 2038echo "configure:2039: checking for $ac_word" >&5
a808d541 2039if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
cd6ede75
UD
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041else
2042 case "$BASH" in
2043 /*)
2044 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2045 ;;
5c2a0669
UD
2046 ?:/*)
2047 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2048 ;;
cd6ede75 2049 *)
5c2a0669
UD
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2051 ac_dummy="$PATH"
2052 for ac_dir in $ac_dummy; do
cd6ede75
UD
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2055 ac_cv_path_BASH="$ac_dir/$ac_word"
2056 break
2057 fi
2058 done
2059 IFS="$ac_save_ifs"
2060 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2061 ;;
2062esac
2063fi
2064BASH="$ac_cv_path_BASH"
2065if test -n "$BASH"; then
2066 echo "$ac_t""$BASH" 1>&6
2067else
2068 echo "$ac_t""no" 1>&6
2069fi
2070
2071if test "$BASH" != no &&
f43ce637 2072 $BASH -c 'test "$BASH_VERSINFO" \
6973fc01 2073 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
cd6ede75
UD
2074 libc_cv_have_bash2=yes
2075else
2076 libc_cv_have_bash2=no
2077fi
2078
2079
2080if test "$BASH" = no; then
2081 # Extract the first word of "ksh", so it can be a program name with args.
2082set dummy ksh; ac_word=$2
2083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 2084echo "configure:2085: checking for $ac_word" >&5
a808d541 2085if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
cd6ede75
UD
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 case "$KSH" in
2089 /*)
2090 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2091 ;;
5c2a0669
UD
2092 ?:/*)
2093 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2094 ;;
cd6ede75 2095 *)
5c2a0669
UD
2096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 ac_dummy="$PATH"
2098 for ac_dir in $ac_dummy; do
cd6ede75
UD
2099 test -z "$ac_dir" && ac_dir=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_KSH="$ac_dir/$ac_word"
2102 break
2103 fi
2104 done
2105 IFS="$ac_save_ifs"
2106 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2107 ;;
2108esac
2109fi
2110KSH="$ac_cv_path_KSH"
2111if test -n "$KSH"; then
2112 echo "$ac_t""$KSH" 1>&6
2113else
2114 echo "$ac_t""no" 1>&6
2115fi
2116
2117 if test "$KSH" = no; then
2118 libc_cv_have_ksh=no
2119 else
2120 libc_cv_have_ksh=yes
2121 fi
2122else
2123 KSH="$BASH"
2124
2125 libc_cv_have_ksh=yes
2126fi
2127
2128
8ed1e7d5 2129for ac_prog in gawk mawk nawk awk
a2b08ee5
UD
2130do
2131# Extract the first word of "$ac_prog", so it can be a program name with args.
2132set dummy $ac_prog; ac_word=$2
2133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 2134echo "configure:2135: checking for $ac_word" >&5
a808d541 2135if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
5aa8ff62
UD
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137else
2138 if test -n "$AWK"; then
2139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2140else
5c2a0669
UD
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2142 ac_dummy="$PATH"
2143 for ac_dir in $ac_dummy; do
5aa8ff62
UD
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_prog_AWK="$ac_prog"
2147 break
2148 fi
2149 done
2150 IFS="$ac_save_ifs"
2151fi
2152fi
2153AWK="$ac_cv_prog_AWK"
2154if test -n "$AWK"; then
2155 echo "$ac_t""$AWK" 1>&6
2156else
2157 echo "$ac_t""no" 1>&6
2158fi
2159
2160test -n "$AWK" && break
2161done
2162
c0016081
UD
2163# Extract the first word of "perl", so it can be a program name with args.
2164set dummy perl; ac_word=$2
5aa8ff62 2165echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 2166echo "configure:2167: checking for $ac_word" >&5
a808d541 2167if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
a2b08ee5
UD
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169else
2170 case "$PERL" in
2171 /*)
2172 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2173 ;;
5c2a0669
UD
2174 ?:/*)
2175 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2176 ;;
a2b08ee5 2177 *)
5c2a0669
UD
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2179 ac_dummy="$PATH"
2180 for ac_dir in $ac_dummy; do
a2b08ee5
UD
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_path_PERL="$ac_dir/$ac_word"
2184 break
2185 fi
2186 done
2187 IFS="$ac_save_ifs"
c0016081 2188 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5
UD
2189 ;;
2190esac
2191fi
2192PERL="$ac_cv_path_PERL"
2193if test -n "$PERL"; then
2194 echo "$ac_t""$PERL" 1>&6
2195else
2196 echo "$ac_t""no" 1>&6
2197fi
2198
2fd5d029
RM
2199if test "$PERL" != no &&
2200 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2201 PERL=no
fc304e02 2202fi
c0016081
UD
2203# Extract the first word of "install-info", so it can be a program name with args.
2204set dummy install-info; ac_word=$2
2205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9dfa9a5a 2206echo "configure:2207: checking for $ac_word" >&5
a808d541 2207if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
c0016081
UD
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210 case "$INSTALL_INFO" in
2211 /*)
2212 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2213 ;;
5c2a0669
UD
2214 ?:/*)
2215 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2216 ;;
c0016081 2217 *)
5c2a0669 2218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9f2a9248 2219 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5c2a0669 2220 for ac_dir in $ac_dummy; do
c0016081
UD
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/$ac_word; then
2223 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2224 break
2225 fi
2226 done
2227 IFS="$ac_save_ifs"
2228 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2229 ;;
2230esac
2231fi
2232INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2233if test -n "$INSTALL_INFO"; then
2234 echo "$ac_t""$INSTALL_INFO" 1>&6
2235else
2236 echo "$ac_t""no" 1>&6
2237fi
2238
c0016081
UD
2239if test "$INSTALL_INFO" != "no"; then
2240echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
9dfa9a5a 2241echo "configure:2242: checking for old Debian install-info" >&5
a808d541 2242if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
c0016081
UD
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244else
2245 mkdir conftest.d
2246 # There is a hard ^_ on the next line. I am open to better ideas.
2247 (echo '\1f'
2248 echo 'File: dir Node: Top This is the top of the INFO tree'
2249 echo '* Menu:') >conftest.d/dir
2250 (echo 'INFO-DIR-SECTION i-d-s works'
2251 echo 'START-INFO-DIR-ENTRY'
2252 echo '* Prog: (prog). Program.'
2253 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2254 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
d8cceb4f 2255 then
c0016081
UD
2256 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2257 then libc_cv_old_debian_install_info=no
2258 else libc_cv_old_debian_install_info=yes
2259 fi
2260 else libc_cv_old_debian_install_info=no testfailed=t
2261 fi
2262 rm -fr conftest.d
2263fi
2264
2265echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2266if test -n "$testfailed"
2267then echo "configure: warning: install-info errored out, check config.log" 1>&2
2268fi
2269OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2270fi
a2b08ee5
UD
2271
2272
cd6ede75 2273echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
9dfa9a5a 2274echo "configure:2275: checking for signed size_t type" >&5
a808d541 2275if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
cd6ede75
UD
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 echo '#include <stddef.h>
2279FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2280if eval "$ac_cpp conftest.c 2>/dev/null" \
2281| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2282 libc_cv_signed_size_t=no
2283else
2284 libc_cv_signed_size_t=yes
2285fi
2286rm -f conftest*
2287fi
2288
2289echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2290if test $libc_cv_signed_size_t = yes; then
2291 cat >> confdefs.h <<\EOF
2292#undef __SIZE_TYPE__
2293#define __SIZE_TYPE__ unsigned
2294EOF
2295fi
2296
2297echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
9dfa9a5a 2298echo "configure:2299: checking for libc-friendly stddef.h" >&5
a808d541 2299if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
cd6ede75
UD
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301else
2302 cat > conftest.$ac_ext <<EOF
9dfa9a5a 2303#line 2304 "configure"
cd6ede75
UD
2304#include "confdefs.h"
2305#define __need_size_t
2306#define __need_wchar_t
2307#include <stddef.h>
2308#define __need_NULL
2309#include <stddef.h>
2310int main() {
2311size_t size; wchar_t wchar;
2312#ifdef offsetof
2313#error stddef.h ignored __need_*
2314#endif
2315if (&size == NULL || &wchar == NULL) abort ();
2316; return 0; }
2317EOF
9dfa9a5a 2318if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6ede75
UD
2319 rm -rf conftest*
2320 libc_cv_friendly_stddef=yes
2321else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -rf conftest*
2325 libc_cv_friendly_stddef=no
2326fi
2327rm -f conftest*
2328fi
2329
2330echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2331if test $libc_cv_friendly_stddef = yes; then
2332 config_vars="$config_vars
2333override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2334fi
2335
2336echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
9dfa9a5a 2337echo "configure:2338: checking whether we need to use -P to assemble .S files" >&5
a808d541 2338if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
cd6ede75
UD
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340else
2341 cat > conftest.S <<EOF
2342#include "confdefs.h"
2343/* Nothing whatsoever. */
2344EOF
2345if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2346 libc_cv_need_minus_P=no
2347else
2348 libc_cv_need_minus_P=yes
2349fi
2350rm -f conftest*
2351fi
2352
2353echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2354if test $libc_cv_need_minus_P = yes; then
2355 config_vars="$config_vars
2356asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2357fi
2358
2293395f 2359echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
9dfa9a5a 2360echo "configure:2361: checking whether .text pseudo-op must be used" >&5
a808d541 2361if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2293395f
UD
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363else
2364 cat > conftest.s <<EOF
2365.text
2366EOF
2367libc_cv_dot_text=
2368if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2369 libc_cv_dot_text=.text
2370fi
2371rm -f conftest*
2372fi
2373
2374if test -z "$libc_cv_dot_text"; then
2375 echo "$ac_t""no" 1>&6
2376else
2377 echo "$ac_t""yes" 1>&6
2378fi
2379
cd6ede75 2380echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
9dfa9a5a 2381echo "configure:2382: checking for assembler global-symbol directive" >&5
a808d541 2382if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
cd6ede75
UD
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384else
2385 libc_cv_asm_global_directive=UNKNOWN
908c3d5b 2386for ac_globl in .globl .global .EXPORT; do
cd6ede75 2387 cat > conftest.s <<EOF
2293395f 2388 ${libc_cv_dot_text}
908c3d5b 2389 ${ac_globl} foo
cd6ede75
UD
2390foo:
2391EOF
2392 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2393 libc_cv_asm_global_directive=${ac_globl}
2394 fi
2395 rm -f conftest*
2396 test $libc_cv_asm_global_directive != UNKNOWN && break
2397done
2398fi
2399
2400echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2401if test $libc_cv_asm_global_directive = UNKNOWN; then
2402 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2403else
2404 cat >> confdefs.h <<EOF
2405#define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2406EOF
2407
2408fi
2409
2410echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
9dfa9a5a 2411echo "configure:2412: checking for .set assembler directive" >&5
a808d541 2412if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
cd6ede75
UD
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414else
2415 cat > conftest.s <<EOF
2293395f 2416${libc_cv_dot_text}
cd6ede75
UD
2417foo:
2418.set glibc_conftest_frobozz,foo
2419$libc_cv_asm_global_directive glibc_conftest_frobozz
2420EOF
2421# The alpha-dec-osf1 assembler gives only a warning for `.set'
2422# (but it doesn't work), so we must do a linking check to be sure.
2423cat > conftest1.c <<\EOF
2424extern int glibc_conftest_frobozz;
2425main () { printf ("%d\n", glibc_conftest_frobozz); }
2426EOF
2427if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2428 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2429 libc_cv_asm_set_directive=yes
2430else
2431 libc_cv_asm_set_directive=no
2432fi
2433rm -f conftest*
2434fi
2435
2436echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2437if test $libc_cv_asm_set_directive = yes; then
2438 cat >> confdefs.h <<\EOF
2439#define HAVE_ASM_SET_DIRECTIVE 1
2440EOF
2441
2442fi
2443
2444echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
9dfa9a5a 2445echo "configure:2446: checking for .symver assembler directive" >&5
a808d541 2446if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
cd6ede75
UD
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448else
2449 cat > conftest.s <<EOF
2293395f 2450${libc_cv_dot_text}
cd6ede75
UD
2451_sym:
2452.symver _sym,sym@VERS
2453EOF
2454if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2455 libc_cv_asm_symver_directive=yes
2456else
2457 libc_cv_asm_symver_directive=no
2458fi
2459rm -f conftest*
2460fi
2461
2462echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2463echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
9dfa9a5a 2464echo "configure:2465: checking for ld --version-script" >&5
a808d541 2465if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
cd6ede75
UD
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467else
2468 if test $libc_cv_asm_symver_directive = yes; then
2469 cat > conftest.s <<EOF
2293395f 2470${libc_cv_dot_text}
cd6ede75
UD
2471_sym:
2472.symver _sym,sym@VERS
2473EOF
2474 cat > conftest.map <<EOF
f43ce637 2475VERS_1 {
cd6ede75
UD
2476 global: sym;
2477};
f43ce637
UD
2478
2479VERS_2 {
2480 global: sym;
2481} VERS_1;
cd6ede75
UD
2482EOF
2483 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2484 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2485 -nostartfiles -nostdlib
2486 -Wl,--version-script,conftest.map
9dfa9a5a 2487 1>&5'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
cd6ede75
UD
2488 then
2489 libc_cv_ld_version_script_option=yes
2490 else
2491 libc_cv_ld_version_script_option=no
2492 fi
2493 else
2494 libc_cv_ld_version_script_option=no
2495 fi
2496else
2497 libc_cv_ld_version_script_option=no
2498fi
2499rm -f conftest*
2500fi
2501
2502echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2503if test $libc_cv_asm_symver_directive = yes &&
650425ce
UD
2504 test $libc_cv_ld_version_script_option = yes &&
2505 test $enable_versioning = yes; then
cd6ede75
UD
2506 VERSIONING=yes
2507 cat >> confdefs.h <<\EOF
2508#define DO_VERSIONING 1
2509EOF
2510
2511else
2512 VERSIONING=no
2513fi
2514
2515
f43ce637
UD
2516if test $VERSIONING = no; then
2517 echo "\
f4017d20 2518*** WARNING: You should not compile GNU libc without versioning. Not using
f43ce637
UD
2519*** versioning will introduce incompatibilities so that old binaries
2520*** will not run anymore.
08a0d60a 2521*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
f43ce637 2522fi
cd6ede75
UD
2523if test $elf = yes; then
2524 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
9dfa9a5a 2525echo "configure:2526: checking for .previous assembler directive" >&5
a808d541 2526if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
cd6ede75
UD
2527 echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529 cat > conftest.s <<EOF
2530.section foo_section
2531.previous
2532EOF
9dfa9a5a 2533 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
cd6ede75
UD
2534 libc_cv_asm_previous_directive=yes
2535 else
2536 libc_cv_asm_previous_directive=no
2537 fi
2538 rm -f conftest*
2539fi
2540
2541echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2542 if test $libc_cv_asm_previous_directive = yes; then
2543 cat >> confdefs.h <<\EOF
2544#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2545EOF
2546
2547 else
2548 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
9dfa9a5a 2549echo "configure:2550: checking for .popsection assembler directive" >&5
a808d541 2550if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
cd6ede75
UD
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 cat > conftest.s <<EOF
2554.pushsection foo_section
2555.popsection
2556EOF
9dfa9a5a 2557 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
cd6ede75
UD
2558 libc_cv_asm_popsection_directive=yes
2559 else
2560 libc_cv_asm_popsection_directive=no
2561 fi
2562 rm -f conftest*
2563fi
2564
2565echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2566 if test $libc_cv_asm_popsection_directive = yes; then
2567 cat >> confdefs.h <<\EOF
2568#define HAVE_ASM_POPSECTION_DIRECTIVE 1
2569EOF
2570
2571 fi
2572 fi
2573fi
2574
2575if test $elf != yes; then
2576 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
9dfa9a5a 2577echo "configure:2578: checking for .init and .fini sections" >&5
a808d541 2578if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
cd6ede75
UD
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580else
2581 cat > conftest.$ac_ext <<EOF
9dfa9a5a 2582#line 2583 "configure"
cd6ede75
UD
2583#include "confdefs.h"
2584
2585int main() {
2586asm (".section .init");
2587 asm (".section .fini");
2293395f 2588 asm ("${libc_cv_dot_text}");
cd6ede75
UD
2589; return 0; }
2590EOF
9dfa9a5a 2591if { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6ede75
UD
2592 rm -rf conftest*
2593 libc_cv_have_initfini=yes
2594else
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 rm -rf conftest*
2598 libc_cv_have_initfini=no
2599fi
2600rm -f conftest*
2601fi
2602
2603echo "$ac_t""$libc_cv_have_initfini" 1>&6
2604 if test $libc_cv_have_initfini = yes; then
2605 cat >> confdefs.h <<\EOF
2606#define HAVE_INITFINI 1
2607EOF
2608
2609 fi
2610fi
2611
9a0a462c
UD
2612
2613
cd6ede75
UD
2614if test $elf = yes; then
2615 libc_cv_asm_underscores=no
2616else
9a0a462c
UD
2617 if test $ac_cv_prog_cc_works = yes; then
2618 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
9dfa9a5a 2619echo "configure:2620: checking for _ prefix on C symbol names" >&5
a808d541 2620if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
cd6ede75
UD
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622else
2623 cat > conftest.$ac_ext <<EOF
9dfa9a5a 2624#line 2625 "configure"
cd6ede75
UD
2625#include "confdefs.h"
2626asm ("_glibc_foobar:");
2627int main() {
2628glibc_foobar ();
2629; return 0; }
2630EOF
9dfa9a5a 2631if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cd6ede75
UD
2632 rm -rf conftest*
2633 libc_cv_asm_underscores=yes
2634else
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 rm -rf conftest*
2638 libc_cv_asm_underscores=no
2639fi
2640rm -f conftest*
2641fi
2642
2643echo "$ac_t""$libc_cv_asm_underscores" 1>&6
9a0a462c
UD
2644 else
2645 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
9dfa9a5a 2646echo "configure:2647: checking for _ prefix on C symbol names" >&5
a808d541 2647if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
9a0a462c
UD
2648 echo $ac_n "(cached) $ac_c" 1>&6
2649else
2650 cat > conftest.$ac_ext <<EOF
9dfa9a5a 2651#line 2652 "configure"
9a0a462c
UD
2652#include "confdefs.h"
2653void underscore_test(void) {
2654return; }
2655EOF
9dfa9a5a 2656if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9a0a462c
UD
2657 if grep _underscore_test conftest* >/dev/null; then
2658 rm -f conftest*
2659 libc_cv_asm_underscores=yes
2660 else
2661 rm -f conftest*
2662 libc_cv_asm_underscores=no
2663 fi
2664else
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2667 rm -f conftest*
2668 libc_cv_asm_underscores=no
2669fi
2670rm -f conftest*
2671fi
2672
2673echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2674 fi
cd6ede75
UD
2675fi
2676if test $libc_cv_asm_underscores = no; then
2677 cat >> confdefs.h <<\EOF
2678#define NO_UNDERSCORES 1
2679EOF
2680
2681fi
2682
2683if test $elf = yes; then
2684 libc_cv_weak_symbols=yes
9a97d1f7
UD
2685fi
2686
2687echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
9dfa9a5a 2688echo "configure:2689: checking for assembler .weak directive" >&5
a808d541 2689if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
cd6ede75
UD
2690 echo $ac_n "(cached) $ac_c" 1>&6
2691else
2692 cat > conftest.s <<EOF
2293395f 2693${libc_cv_dot_text}
cd6ede75
UD
2694${libc_cv_asm_global_directive} foo
2695foo:
2696.weak foo
2697.weak bar; bar = foo
2698EOF
9a97d1f7
UD
2699if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2700 libc_cv_asm_weak_directive=yes
2701else
2702 libc_cv_asm_weak_directive=no
2703fi
2704rm -f conftest*
cd6ede75
UD
2705fi
2706
2707echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2708
2709if test $libc_cv_asm_weak_directive = no; then
2710 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
9dfa9a5a 2711echo "configure:2712: checking for assembler .weakext directive" >&5
a808d541 2712if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
cd6ede75
UD
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714else
2715 cat > conftest.s <<EOF
2293395f 2716${libc_cv_dot_text}
cd6ede75
UD
2717${libc_cv_asm_global_directive} foo
2718foo:
9a97d1f7
UD
2719.weakext bar foo
2720.weakext baz
2721${libc_cv_asm_global_directive} baz
2722baz:
cd6ede75
UD
2723EOF
2724 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2725 libc_cv_asm_weakext_directive=yes
2726 else
2727 libc_cv_asm_weakext_directive=no
2728 fi
2729 rm -f conftest*
2730fi
2731
2732echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2733
9a97d1f7 2734fi # no .weak
cd6ede75
UD
2735
2736if test $libc_cv_asm_weak_directive = yes; then
2737 cat >> confdefs.h <<\EOF
2738#define HAVE_ASM_WEAK_DIRECTIVE 1
2739EOF
2740
2741elif test $libc_cv_asm_weakext_directive = yes; then
2742 cat >> confdefs.h <<\EOF
2743#define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2744EOF
2745
2746fi
2747
2748echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
9dfa9a5a 2749echo "configure:2750: checking for ld --no-whole-archive" >&5
a808d541 2750if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
cd6ede75
UD
2751 echo $ac_n "(cached) $ac_c" 1>&6
2752else
2753 cat > conftest.c <<\EOF
2754_start () {}
2755int __eh_pc;
2756__throw () {}
2757EOF
2758if { ac_try='${CC-cc} $CFLAGS
2759 -nostdlib -nostartfiles -Wl,--no-whole-archive
9dfa9a5a 2760 -o conftest conftest.c 1>&5'; { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
cd6ede75
UD
2761 libc_cv_ld_no_whole_archive=yes
2762else
2763 libc_cv_ld_no_whole_archive=no
2764fi
2765rm -f conftest*
2766fi
2767
2768echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
b17277cf
UD
2769if test $libc_cv_ld_no_whole_archive = yes; then
2770 no_whole_archive=-Wl,--no-whole-archive
2771fi
cd6ede75 2772
dff14448 2773echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
9dfa9a5a 2774echo "configure:2775: checking for gcc -fexceptions" >&5
a808d541 2775if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
cd6ede75
UD
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777else
2778 cat > conftest.c <<\EOF
2779_start () {}
2780int __eh_pc;
2781__throw () {}
2782EOF
2783if { ac_try='${CC-cc} $CFLAGS
dff14448 2784 -nostdlib -nostartfiles -fexceptions
9dfa9a5a 2785 -o conftest conftest.c 1>&5'; { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
dff14448 2786 libc_cv_gcc_exceptions=yes
cd6ede75 2787else
dff14448 2788 libc_cv_gcc_exceptions=no
cd6ede75
UD
2789fi
2790rm -f conftest*
2791fi
2792
dff14448
UD
2793echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2794if test $libc_cv_gcc_exceptions = yes; then
2795 exceptions=-fexceptions
b17277cf 2796fi
cd6ede75 2797
d71b808a
UD
2798if test "$base_machine" = alpha ; then
2799echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
9dfa9a5a 2800echo "configure:2801: checking for function ..ng prefix" >&5
a808d541 2801if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
d71b808a
UD
2802 echo $ac_n "(cached) $ac_c" 1>&6
2803else
2804 cat > conftest.c <<\EOF
2805foo () { }
2806EOF
9dfa9a5a 2807if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
d71b808a
UD
2808then
2809 libc_cv_gcc_alpha_ng_prefix=yes
2810else
2811 libc_cv_gcc_alpha_ng_prefix=no
2812fi
2813rm -f conftest*
2814fi
2815
2816echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2817if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2818 cat >> confdefs.h <<\EOF
2819#define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2820EOF
2821
2822else
2823 cat >> confdefs.h <<\EOF
2824#define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2825EOF
2826
2827fi
2828fi
2829
ebcd12d4
UD
2830if test "$host_cpu" = powerpc ; then
2831# Check for a bug present in at least versions 2.8.x of GCC
2832# and versions 1.0.x of EGCS.
2833echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
9dfa9a5a 2834echo "configure:2835: checking whether clobbering cr0 causes problems" >&5
a808d541 2835if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
ebcd12d4
UD
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837else
2838 cat > conftest.$ac_ext <<EOF
9dfa9a5a 2839#line 2840 "configure"
ebcd12d4
UD
2840#include "confdefs.h"
2841int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2842int main() {
2843
2844; return 0; }
2845EOF
9dfa9a5a 2846if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ebcd12d4
UD
2847 rm -rf conftest*
2848 libc_cv_c_asmcr0_bug='no'
2849else
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852 rm -rf conftest*
2853 libc_cv_c_asmcr0_bug='yes'
2854fi
2855rm -f conftest*
2856fi
2857
2858echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2859if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2860 cat >> confdefs.h <<\EOF
2861#define BROKEN_PPC_ASM_CR0 1
2862EOF
2863
2864fi
2865fi
2866
650425ce 2867echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
9dfa9a5a 2868echo "configure:2869: checking for DWARF2 unwind info support" >&5
a808d541 2869if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
650425ce
UD
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871else
2872 cat > conftest.c <<EOF
9dfa9a5a 2873#line 2874 "configure"
650425ce
UD
2874static char __EH_FRAME_BEGIN__;
2875_start ()
2876{
9756dfe1 2877#ifdef CHECK__register_frame
650425ce
UD
2878 __register_frame (__EH_FRAME_BEGIN__);
2879 __deregister_frame (__EH_FRAME_BEGIN__);
9756dfe1
UD
2880#endif
2881#ifdef CHECK__register_frame_info
2882 __register_frame_info (__EH_FRAME_BEGIN__);
2883 __deregister_frame_info (__EH_FRAME_BEGIN__);
2884#endif
650425ce
UD
2885}
2886int __eh_pc;
2887__throw () {}
2888/* FIXME: this is fragile. */
2889malloc () {}
2890strcmp () {}
2891strlen () {}
2892memcpy () {}
2893memset () {}
2894free () {}
2895abort () {}
dfd2257a 2896__bzero () {}
650425ce 2897EOF
9756dfe1 2898if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
650425ce 2899 -nostdlib -nostartfiles
9dfa9a5a 2900 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
9756dfe1 2901 libc_cv_gcc_dwarf2_unwind_info=static
650425ce
UD
2902else
2903 libc_cv_gcc_dwarf2_unwind_info=no
2904fi
9756dfe1
UD
2905if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2906 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2907 -nostdlib -nostartfiles
9dfa9a5a 2908 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
9756dfe1
UD
2909 libc_cv_gcc_dwarf2_unwind_info=yes
2910 else
2911 libc_cv_gcc_dwarf2_unwind_info=no
2912 fi
2913fi
650425ce
UD
2914rm -f conftest*
2915fi
2916
2917echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
9756dfe1
UD
2918case $libc_cv_gcc_dwarf2_unwind_info in
2919yes)
650425ce
UD
2920 cat >> confdefs.h <<\EOF
2921#define HAVE_DWARF2_UNWIND_INFO 1
2922EOF
2923
9756dfe1
UD
2924 ;;
2925static)
2926 cat >> confdefs.h <<\EOF
2927#define HAVE_DWARF2_UNWIND_INFO 1
2928EOF
2929
2930 cat >> confdefs.h <<\EOF
2931#define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2932EOF
2933
2934 ;;
2935esac
650425ce 2936
a8eab8b1 2937echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
9dfa9a5a 2938echo "configure:2939: checking for __builtin_expect" >&5
a808d541 2939if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
a8eab8b1
UD
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941else
2942 cat > conftest.c <<EOF
9dfa9a5a 2943#line 2944 "configure"
a8eab8b1
UD
2944int foo (int a)
2945{
2946 a = __builtin_expect (a, 10);
2947 return a == 10 ? 0 : 1;
2948}
2949EOF
2950if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
9dfa9a5a 2951 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
a8eab8b1
UD
2952 libc_cv_gcc_builtin_expect=yes
2953else
2954 libc_cv_gcc_builtin_expect=no
2955fi
2956rm -f conftest*
2957fi
2958
2959echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2960if test "$libc_cv_gcc_builtin_expect" = yes; then
2961 cat >> confdefs.h <<\EOF
2962#define HAVE_BUILTIN_EXPECT 1
2963EOF
2964
2965fi
2966
3d558f4e 2967echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
9dfa9a5a 2968echo "configure:2969: checking for local label subtraction" >&5
a808d541 2969if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3d558f4e
UD
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971else
2972 cat > conftest.c <<EOF
9dfa9a5a 2973#line 2974 "configure"
3d558f4e
UD
2974int foo (int a)
2975{
2976 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2977 void *p = &&l1 + ar[a];
2978 goto *p;
2979 l1:
2980 return 1;
2981 l2:
2982 return 2;
2983}
2984EOF
2985if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
9dfa9a5a 2986 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3d558f4e
UD
2987 libc_cv_gcc_subtract_local_labels=yes
2988else
2989 libc_cv_gcc_subtract_local_labels=no
2990fi
2991rm -f conftest*
2992fi
2993
2994echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2995if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2996 cat >> confdefs.h <<\EOF
2997#define HAVE_SUBTRACT_LOCAL_LABELS 1
2998EOF
2999
3000fi
3001
c8f3e6db 3002echo $ac_n "checking for libgd""... $ac_c" 1>&6
9dfa9a5a 3003echo "configure:3004: checking for libgd" >&5
c8f3e6db
UD
3004old_CFLAGS="$CFLAGS"
3005CFLAGS="$CFLAGS $libgd_include"
3006old_LDFLAGS="$LDFLAGS"
3007LDFLAGS="$LDFLAGS $libgd_ldflags"
3008old_LIBS="$LIBS"
3009LIBS="$LIBS -lgd -lpng -lz"
3010cat > conftest.$ac_ext <<EOF
9dfa9a5a 3011#line 3012 "configure"
c8f3e6db
UD
3012#include "confdefs.h"
3013#include <gd.h>
3014int main() {
3015gdImagePng (0, 0)
3016; return 0; }
3017EOF
9dfa9a5a 3018if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c8f3e6db
UD
3019 rm -rf conftest*
3020 LIBGD=yes
3021else
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 rm -rf conftest*
3025 LIBGD=no
3026fi
3027rm -f conftest*
3028CFLAGS="$old_CFLAGS"
3029LDFLAGS="$old_LDFLAGS"
3030LIBS="$old_LIBS"
3031echo "$ac_t""$LIBGD" 1>&6
3032
3d558f4e 3033
8ed1e7d5 3034echo $ac_n "checking size of long double""... $ac_c" 1>&6
9dfa9a5a 3035echo "configure:3036: checking size of long double" >&5
8ed1e7d5
GK
3036if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3038else
3039 if test "$cross_compiling" = yes; then
3040 ac_cv_sizeof_long_double=0
3041else
3042 cat > conftest.$ac_ext <<EOF
9dfa9a5a 3043#line 3044 "configure"
8ed1e7d5
GK
3044#include "confdefs.h"
3045#include <stdio.h>
3046main()
3047{
3048 FILE *f=fopen("conftestval", "w");
3049 if (!f) exit(1);
3050 fprintf(f, "%d\n", sizeof(long double));
3051 exit(0);
3052}
3053EOF
9dfa9a5a 3054if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8ed1e7d5
GK
3055then
3056 ac_cv_sizeof_long_double=`cat conftestval`
3057else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 rm -fr conftest*
3061 ac_cv_sizeof_long_double=0
3062fi
3063rm -fr conftest*
3064fi
3065
3066fi
3067echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3068cat >> confdefs.h <<EOF
3069#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3070EOF
3071
3072
3073sizeof_long_double=$ac_cv_sizeof_long_double
3074
3075
cd6ede75
UD
3076### End of automated tests.
3077### Now run sysdeps configure fragments.
3078
3079# sysdeps configure fragments may set these with files to be linked below.
3080libc_link_dests=
3081libc_link_sources=
3082
cb343854 3083# They also can set these variables.
b43b13ac 3084use_ldconfig=no
cb343854
UD
3085ldd_rewrite_script=no
3086
cd6ede75
UD
3087# Iterate over all the sysdep directories we will use, running their
3088# configure fragments, and looking for a uname implementation.
3089uname=
3090for dir in $sysnames; do
3091 case $dir in
3092 /*) dest=$dir ;;
3093 *) dest=$srcdir/$dir ;;
3094 esac
3095 if test -r $dest/configure; then
3096 echo "$ac_t""running configure fragment for $dest" 1>&6
3097 . $dest/configure
3098 fi
3099
3100 if test -z "$uname"; then
3101 if test -r $dest/uname.c ||
3102 test -r $dest/uname.S ||
3103 { test -r $dest/syscalls.list &&
3104 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3105 uname=$dir
3106 fi
3107 fi
3108done
3109
3110
3111
3112# If we will use the generic uname implementation, we must figure out what
3113# it will say by examining the system, and write the results in config-name.h.
3114if test "$uname" = "sysdeps/generic"; then
3115
3116 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3117 if test $uname_sysname != $config_os; then
3118 config_release=`echo $config_os | sed s/$uname_sysname//`
3119 fi
3120
3121 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
9dfa9a5a 3122echo "configure:3123: checking OS release for uname" >&5
a808d541 3123if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
cd6ede75
UD
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125else
3126 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3127 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3128 != x$config_release; then
3129 # The configuration release is a substring of the kernel release.
3130 libc_cv_uname_release=$kernel_release
3131 elif test x$config_release != x; then
3132 libc_cv_uname_release=$config_release
3133 elif test x$kernel_release != x; then
3134 libc_cv_uname_release=$kernel_release
3135 else
3136 libc_cv_uname_release=unknown
3137 fi
3138fi
3139
3140echo "$ac_t""$libc_cv_uname_release" 1>&6
3141 uname_release="$libc_cv_uname_release"
3142
3143 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
9dfa9a5a 3144echo "configure:3145: checking OS version for uname" >&5
a808d541 3145if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
cd6ede75
UD
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147else
3148 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3149 if test -n "$kernel_version"; then
3150 libc_cv_uname_version="$kernel_version"
3151 else
3152 libc_cv_uname_version=unknown
3153 fi
3154fi
3155
3156echo "$ac_t""$libc_cv_uname_version" 1>&6
3157 uname_version="$libc_cv_uname_version"
3158
3159 config_uname=config-name.h:config-name.in
3160else
3161 # For non-generic uname, we don't need to create config-name.h at all.
3162 config_uname=
3163fi
3164
3165echo $ac_n "checking stdio selection""... $ac_c" 1>&6
9dfa9a5a 3166echo "configure:3167: checking stdio selection" >&5
cd6ede75
UD
3167
3168case $stdio in
3169libio) cat >> confdefs.h <<\EOF
3170#define USE_IN_LIBIO 1
3171EOF
3172 ;;
3173default) stdio=stdio ;;
3174esac
3175echo "$ac_t""$stdio" 1>&6
3176
a53bad16
UD
3177# Test for old glibc 2.0.x headers so that they can be removed properly
3178# Search only in includedir.
3179echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
9dfa9a5a 3180echo "configure:3181: checking for old glibc 2.0.x headers" >&5
011ce8ed 3181if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
a53bad16
UD
3182then
3183 old_glibc_headers=yes
3184else
3185 old_glibc_headers=no
3186fi
3187echo "$ac_t""$old_glibc_headers" 1>&6
3188if test ${old_glibc_headers} = yes; then
3189 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3190 echo "configure: warning: *** be removed." 1>&2
3191fi
26b4d766 3192
cd6ede75
UD
3193
3194
3195
3196
3197
3198
cb343854 3199
dff14448 3200
e5aa91c3 3201
cd6ede75
UD
3202
3203if test $gnu_ld = yes; then
3204 cat >> confdefs.h <<\EOF
3205#define HAVE_GNU_LD 1
3206EOF
3207
3208fi
3209if test $gnu_as = yes; then
3210 cat >> confdefs.h <<\EOF
3211#define HAVE_GNU_AS 1
3212EOF
3213
3214fi
3215if test $elf = yes; then
3216 cat >> confdefs.h <<\EOF
3217#define HAVE_ELF 1
3218EOF
3219
3220fi
3221
3222
650425ce 3223
cd6ede75
UD
3224if test $shared = default; then
3225 if test $gnu_ld = yes; then
3226 shared=$elf
3227 else
3228 # For now we do not assume shared libs are available. In future more
3229 # tests might become available.
3230 shared=no
3231 fi
3232fi
3233
cc3fa755 3234echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
9dfa9a5a 3235echo "configure:3236: checking whether -fPIC is default" >&5
a808d541 3236if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
cc3fa755
UD
3237 echo $ac_n "(cached) $ac_c" 1>&6
3238else
3239 pic_default=yes
3240cat > conftest.c <<EOF
9756dfe1 3241#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
3242# error PIC is default.
3243#endif
3244EOF
3245if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3246 pic_default=no
3247fi
3248rm -f conftest.*
3249fi
3250
3251echo "$ac_t""$pic_default" 1>&6
3252
3253
3254
cd6ede75
UD
3255
3256
3257
3258
3259
3260
3261
7cabd57c
UD
3262case "$add_ons" in
3263 *door*) linux_doors=yes ;;
3264 *) linux_doors=no ;;
3265esac
3266
3267
cd6ede75
UD
3268if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3269 config_makefile=
3270else
3271 config_makefile=Makefile
3272fi
3273
ee74a442
UD
3274VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3275RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3276
cd6ede75
UD
3277
3278
0013b2b1
UD
3279echo '*** Do NOT install this release on any production system!'
3280echo '*** It is known to be broken and will be so for quite some time.'
3281echo '*** Use the latest released version instead.'
3282
cd6ede75
UD
3283trap '' 1 2 15
3284cat > confcache <<\EOF
3285# This file is a shell script that caches the results of configure
3286# tests run on this system so they can be shared between configure
3287# scripts and configure runs. It is not useful on other systems.
3288# If it contains results you don't want to keep, you may remove or edit it.
3289#
3290# By default, configure uses ./config.cache as the cache file,
3291# creating it if it does not exist already. You can give configure
3292# the --cache-file=FILE option to use a different cache file; that is
3293# what configure does when it calls configure scripts in
3294# subdirectories, so they share the cache.
3295# Giving --cache-file=/dev/null disables caching, for debugging configure.
3296# config.status only pays attention to the cache file if you give it the
3297# --recheck option to rerun configure.
3298#
3299EOF
3300# The following way of writing the cache mishandles newlines in values,
3301# but we know of no workaround that is simple, portable, and efficient.
3302# So, don't put newlines in cache variables' values.
3303# Ultrix sh set writes to stderr and can't be redirected directly,
3304# and sets the high bit in the cache file unless we assign to the vars.
3305(set) 2>&1 |
5c2a0669 3306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
cd6ede75
UD
3307 *ac_space=\ *)
3308 # `set' does not quote correctly, so add quotes (double-quote substitution
3309 # turns \\\\ into \\, and sed turns \\ into \).
3310 sed -n \
3311 -e "s/'/'\\\\''/g" \
3312 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3313 ;;
3314 *)
3315 # `set' quotes correctly as required by POSIX, so do not add quotes.
3316 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3317 ;;
3318 esac >> confcache
3319if cmp -s $cache_file confcache; then
3320 :
3321else
3322 if test -w $cache_file; then
3323 echo "updating cache $cache_file"
3324 cat confcache > $cache_file
3325 else
3326 echo "not updating unwritable cache $cache_file"
3327 fi
3328fi
3329rm -f confcache
3330
3331trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3332
3333test "x$prefix" = xNONE && prefix=$ac_default_prefix
3334# Let make expand exec_prefix.
3335test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3336
3337# Any assignment to VPATH causes Sun make to only execute
3338# the first set of double-colon rules, so remove it if not needed.
3339# If there is a colon in the path, we need to keep it.
3340if test "x$srcdir" = x.; then
3341 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3342fi
3343
3344trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3345
3346DEFS=-DHAVE_CONFIG_H
3347
3348# Without the "./", some shells look in PATH for config.status.
3349: ${CONFIG_STATUS=./config.status}
3350
3351echo creating $CONFIG_STATUS
3352rm -f $CONFIG_STATUS
3353cat > $CONFIG_STATUS <<EOF
3354#! /bin/sh
3355# Generated automatically by configure.
3356# Run this file to recreate the current configuration.
3357# This directory was configured as follows,
3358# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3359#
3360# $0 $ac_configure_args
3361#
3362# Compiler output produced by configure, useful for debugging
3363# configure, is in ./config.log if it exists.
3364
3365ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3366for ac_option
3367do
3368 case "\$ac_option" in
3369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3370 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3371 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3372 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a808d541 3373 echo "$CONFIG_STATUS generated by autoconf version 2.13"
cd6ede75
UD
3374 exit 0 ;;
3375 -help | --help | --hel | --he | --h)
3376 echo "\$ac_cs_usage"; exit 0 ;;
3377 *) echo "\$ac_cs_usage"; exit 1 ;;
3378 esac
3379done
3380
3381ac_given_srcdir=$srcdir
3382ac_given_INSTALL="$INSTALL"
3383
3384trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3385EOF
3386cat >> $CONFIG_STATUS <<EOF
3387
3388# Protect against being on the right side of a sed subst in config.status.
3389sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3390 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3391$ac_vpsub
3392$extrasub
5c2a0669 3393s%@SHELL@%$SHELL%g
cd6ede75
UD
3394s%@CFLAGS@%$CFLAGS%g
3395s%@CPPFLAGS@%$CPPFLAGS%g
3396s%@CXXFLAGS@%$CXXFLAGS%g
5c2a0669 3397s%@FFLAGS@%$FFLAGS%g
cd6ede75
UD
3398s%@DEFS@%$DEFS%g
3399s%@LDFLAGS@%$LDFLAGS%g
3400s%@LIBS@%$LIBS%g
3401s%@exec_prefix@%$exec_prefix%g
3402s%@prefix@%$prefix%g
3403s%@program_transform_name@%$program_transform_name%g
3404s%@bindir@%$bindir%g
3405s%@sbindir@%$sbindir%g
3406s%@libexecdir@%$libexecdir%g
3407s%@datadir@%$datadir%g
3408s%@sysconfdir@%$sysconfdir%g
3409s%@sharedstatedir@%$sharedstatedir%g
3410s%@localstatedir@%$localstatedir%g
3411s%@libdir@%$libdir%g
3412s%@includedir@%$includedir%g
3413s%@oldincludedir@%$oldincludedir%g
3414s%@infodir@%$infodir%g
3415s%@mandir@%$mandir%g
d67281a7 3416s%@with_cvs@%$with_cvs%g
cd6ede75 3417s%@subdirs@%$subdirs%g
73237de3 3418s%@force_install@%$force_install%g
cd6ede75
UD
3419s%@host@%$host%g
3420s%@host_alias@%$host_alias%g
3421s%@host_cpu@%$host_cpu%g
3422s%@host_vendor@%$host_vendor%g
3423s%@host_os@%$host_os%g
3424s%@base_machine@%$base_machine%g
3425s%@sysnames@%$sysnames%g
3426s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5c2a0669 3427s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
cd6ede75
UD
3428s%@INSTALL_DATA@%$INSTALL_DATA%g
3429s%@LN_S@%$LN_S%g
cd6ede75
UD
3430s%@build@%$build%g
3431s%@build_alias@%$build_alias%g
3432s%@build_cpu@%$build_cpu%g
3433s%@build_vendor@%$build_vendor%g
3434s%@build_os@%$build_os%g
4bca4c17
UD
3435s%@CC@%$CC%g
3436s%@MAKE@%$MAKE%g
3437s%@MSGFMT@%$MSGFMT%g
3438s%@MAKEINFO@%$MAKEINFO%g
aec103d3 3439s%@SED@%$SED%g
beefeafb 3440s%@CCVERSION@%$CCVERSION%g
4bca4c17 3441s%@cross_linkable@%$cross_linkable%g
cd6ede75
UD
3442s%@BUILD_CC@%$BUILD_CC%g
3443s%@cross_compiling@%$cross_compiling%g
3444s%@CPP@%$CPP%g
3445s%@AR@%$AR%g
3446s%@RANLIB@%$RANLIB%g
4bca4c17 3447s%@MIG@%$MIG%g
3c720987 3448s%@SYSINCLUDES@%$SYSINCLUDES%g
cd6ede75
UD
3449s%@BASH@%$BASH%g
3450s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3451s%@KSH@%$KSH%g
3452s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
5aa8ff62 3453s%@AWK@%$AWK%g
a2b08ee5 3454s%@PERL@%$PERL%g
c0016081
UD
3455s%@INSTALL_INFO@%$INSTALL_INFO%g
3456s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
cd6ede75
UD
3457s%@VERSIONING@%$VERSIONING%g
3458s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
b17277cf 3459s%@no_whole_archive@%$no_whole_archive%g
dff14448 3460s%@exceptions@%$exceptions%g
c8f3e6db 3461s%@LIBGD@%$LIBGD%g
8ed1e7d5 3462s%@sizeof_long_double@%$sizeof_long_double%g
cd6ede75
UD
3463s%@uname_sysname@%$uname_sysname%g
3464s%@uname_release@%$uname_release%g
3465s%@uname_version@%$uname_version%g
3466s%@stdio@%$stdio%g
dff14448 3467s%@old_glibc_headers@%$old_glibc_headers%g
cd6ede75 3468s%@libc_cv_slibdir@%$libc_cv_slibdir%g
a1d84548 3469s%@libc_cv_localedir@%$libc_cv_localedir%g
cd6ede75
UD
3470s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3471s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
b43b13ac 3472s%@use_ldconfig@%$use_ldconfig%g
cb343854 3473s%@ldd_rewrite_script@%$ldd_rewrite_script%g
cd6ede75
UD
3474s%@gnu_ld@%$gnu_ld%g
3475s%@gnu_as@%$gnu_as%g
3476s%@elf@%$elf%g
650425ce 3477s%@static@%$static%g
cd6ede75 3478s%@shared@%$shared%g
cc3fa755 3479s%@pic_default@%$pic_default%g
cd6ede75
UD
3480s%@profile@%$profile%g
3481s%@omitfp@%$omitfp%g
3482s%@bounded@%$bounded%g
3483s%@static_nss@%$static_nss%g
3484s%@nopic_initfini@%$nopic_initfini%g
3485s%@DEFINES@%$DEFINES%g
7cabd57c 3486s%@linux_doors@%$linux_doors%g
cd6ede75 3487s%@VERSION@%$VERSION%g
ee74a442 3488s%@RELEASE@%$RELEASE%g
cd6ede75
UD
3489
3490CEOF
3491EOF
3492
3493cat >> $CONFIG_STATUS <<\EOF
3494
3495# Split the substitutions into bite-sized pieces for seds with
3496# small command number limits, like on Digital OSF/1 and HP-UX.
3497ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3498ac_file=1 # Number of current file.
3499ac_beg=1 # First line for current file.
3500ac_end=$ac_max_sed_cmds # Line after last line for current file.
3501ac_more_lines=:
3502ac_sed_cmds=""
3503while $ac_more_lines; do
3504 if test $ac_beg -gt 1; then
3505 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3506 else
3507 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3508 fi
3509 if test ! -s conftest.s$ac_file; then
3510 ac_more_lines=false
3511 rm -f conftest.s$ac_file
3512 else
3513 if test -z "$ac_sed_cmds"; then
3514 ac_sed_cmds="sed -f conftest.s$ac_file"
3515 else
3516 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3517 fi
3518 ac_file=`expr $ac_file + 1`
3519 ac_beg=$ac_end
3520 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3521 fi
3522done
3523if test -z "$ac_sed_cmds"; then
3524 ac_sed_cmds=cat
3525fi
3526EOF
3527
3528cat >> $CONFIG_STATUS <<EOF
3529
3530CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3531EOF
3532cat >> $CONFIG_STATUS <<\EOF
3533for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3534 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3535 case "$ac_file" in
3536 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3537 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3538 *) ac_file_in="${ac_file}.in" ;;
3539 esac
3540
3541 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3542
3543 # Remove last slash and all that follows it. Not all systems have dirname.
3544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3546 # The file is in a subdirectory.
3547 test ! -d "$ac_dir" && mkdir "$ac_dir"
3548 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3549 # A "../" for each directory in $ac_dir_suffix.
3550 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3551 else
3552 ac_dir_suffix= ac_dots=
3553 fi
3554
3555 case "$ac_given_srcdir" in
3556 .) srcdir=.
3557 if test -z "$ac_dots"; then top_srcdir=.
3558 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3559 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3560 *) # Relative path.
3561 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3562 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3563 esac
3564
3565 case "$ac_given_INSTALL" in
3566 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3567 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3568 esac
3569
3570 echo creating "$ac_file"
3571 rm -f "$ac_file"
3572 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3573 case "$ac_file" in
3574 *Makefile*) ac_comsub="1i\\
3575# $configure_input" ;;
3576 *) ac_comsub= ;;
3577 esac
3578
3579 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3580 sed -e "$ac_comsub
3581s%@configure_input@%$configure_input%g
3582s%@srcdir@%$srcdir%g
3583s%@top_srcdir@%$top_srcdir%g
3584s%@INSTALL@%$INSTALL%g
3585" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3586fi; done
3587rm -f conftest.s*
3588
3589# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3590# NAME is the cpp macro being defined and VALUE is the value it is being given.
3591#
3592# ac_d sets the value in "#define NAME VALUE" lines.
3593ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3594ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3595ac_dC='\3'
3596ac_dD='%g'
3597# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3598ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3599ac_uB='\([ ]\)%\1#\2define\3'
3600ac_uC=' '
3601ac_uD='\4%g'
3602# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3603ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3604ac_eB='$%\1#\2define\3'
3605ac_eC=' '
3606ac_eD='%g'
3607
3608if test "${CONFIG_HEADERS+set}" != set; then
3609EOF
3610cat >> $CONFIG_STATUS <<EOF
3611 CONFIG_HEADERS="config.h"
3612EOF
3613cat >> $CONFIG_STATUS <<\EOF
3614fi
3615for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3616 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3617 case "$ac_file" in
3618 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3619 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3620 *) ac_file_in="${ac_file}.in" ;;
3621 esac
3622
3623 echo creating $ac_file
3624
3625 rm -f conftest.frag conftest.in conftest.out
3626 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3627 cat $ac_file_inputs > conftest.in
3628
3629EOF
3630
3631# Transform confdefs.h into a sed script conftest.vals that substitutes
3632# the proper values into config.h.in to produce config.h. And first:
3633# Protect against being on the right side of a sed subst in config.status.
3634# Protect against being in an unquoted here document in config.status.
3635rm -f conftest.vals
3636cat > conftest.hdr <<\EOF
3637s/[\\&%]/\\&/g
3638s%[\\$`]%\\&%g
3639s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3640s%ac_d%ac_u%gp
3641s%ac_u%ac_e%gp
3642EOF
3643sed -n -f conftest.hdr confdefs.h > conftest.vals
3644rm -f conftest.hdr
3645
3646# This sed command replaces #undef with comments. This is necessary, for
3647# example, in the case of _POSIX_SOURCE, which is predefined and required
3648# on some systems where configure will not decide to define it.
3649cat >> conftest.vals <<\EOF
3650s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3651EOF
3652
3653# Break up conftest.vals because some shells have a limit on
3654# the size of here documents, and old seds have small limits too.
3655
3656rm -f conftest.tail
3657while :
3658do
3659 ac_lines=`grep -c . conftest.vals`
3660 # grep -c gives empty output for an empty file on some AIX systems.
3661 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3662 # Write a limited-size here document to conftest.frag.
3663 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3664 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3665 echo 'CEOF
3666 sed -f conftest.frag conftest.in > conftest.out
3667 rm -f conftest.in
3668 mv conftest.out conftest.in
3669' >> $CONFIG_STATUS
3670 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3671 rm -f conftest.vals
3672 mv conftest.tail conftest.vals
3673done
3674rm -f conftest.vals
3675
3676cat >> $CONFIG_STATUS <<\EOF
3677 rm -f conftest.frag conftest.h
3678 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3679 cat conftest.in >> conftest.h
3680 rm -f conftest.in
3681 if cmp -s $ac_file conftest.h 2>/dev/null; then
3682 echo "$ac_file is unchanged"
3683 rm -f conftest.h
3684 else
3685 # Remove last slash and all that follows it. Not all systems have dirname.
3686 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3687 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3688 # The file is in a subdirectory.
3689 test ! -d "$ac_dir" && mkdir "$ac_dir"
3690 fi
3691 rm -f $ac_file
3692 mv conftest.h $ac_file
3693 fi
3694fi; done
3695
3696EOF
3697
3698cat >> $CONFIG_STATUS <<EOF
3699ac_sources="`echo $libc_link_sources`"
3700ac_dests="`echo $libc_link_dests`"
3701EOF
3702
3703cat >> $CONFIG_STATUS <<\EOF
3704srcdir=$ac_given_srcdir
3705while test -n "$ac_sources"; do
3706 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3707 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3708
3709 echo "linking $srcdir/$ac_source to $ac_dest"
3710
3711 if test ! -r $srcdir/$ac_source; then
3712 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3713 fi
3714 rm -f $ac_dest
3715
3716 # Make relative symlinks.
3717 # Remove last slash and all that follows it. Not all systems have dirname.
3718 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3719 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3720 # The dest file is in a subdirectory.
3721 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3722 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3723 # A "../" for each directory in $ac_dest_dir_suffix.
3724 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3725 else
3726 ac_dest_dir_suffix= ac_dots=
3727 fi
3728
3729 case "$srcdir" in
3730 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3731 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3732 esac
3733
3734 # Make a symlink if possible; otherwise try a hard link.
3735 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3736 ln $srcdir/$ac_source $ac_dest; then :
3737 else
3738 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3739 fi
3740done
3741EOF
3742cat >> $CONFIG_STATUS <<EOF
c0fb8a56 3743config_vars='$config_vars'
cd6ede75
UD
3744EOF
3745cat >> $CONFIG_STATUS <<\EOF
3746
c0fb8a56
UD
3747case $CONFIG_FILES in *config.make*)
3748echo "$config_vars" >> config.make;;
3749esac
3750test -d bits || mkdir bits
cd6ede75
UD
3751exit 0
3752EOF
3753chmod +x $CONFIG_STATUS
3754rm -fr confdefs* $ac_clean_files
a808d541 3755test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
cd6ede75
UD
3756
3757if test "$no_recursion" != yes; then
3758
3759 # Remove --cache-file and --srcdir arguments so they do not pile up.
3760 ac_sub_configure_args=
3761 ac_prev=
3762 for ac_arg in $ac_configure_args; do
3763 if test -n "$ac_prev"; then
3764 ac_prev=
3765 continue
3766 fi
3767 case "$ac_arg" in
3768 -cache-file | --cache-file | --cache-fil | --cache-fi \
3769 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3770 ac_prev=cache_file ;;
3771 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3772 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3773 ;;
3774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3775 ac_prev=srcdir ;;
3776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3777 ;;
3778 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3779 esac
3780 done
3781
3782 for ac_config_dir in $add_ons; do
3783
3784 # Do not complain, so a configure script can configure whichever
3785 # parts of a large source tree are present.
3786 if test ! -d $srcdir/$ac_config_dir; then
3787 continue
3788 fi
3789
3790 echo configuring in $ac_config_dir
3791
3792 case "$srcdir" in
3793 .) ;;
3794 *)
3795 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3796 else
3797 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3798 fi
3799 ;;
3800 esac
3801
3802 ac_popdir=`pwd`
3803 cd $ac_config_dir
3804
3805 # A "../" for each directory in /$ac_config_dir.
3806 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3807
3808 case "$srcdir" in
3809 .) # No --srcdir option. We are building in place.
3810 ac_sub_srcdir=$srcdir ;;
3811 /*) # Absolute path.
3812 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3813 *) # Relative path.
3814 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3815 esac
3816
3817 # Check for guested configure; otherwise get Cygnus style configure.
3818 if test -f $ac_sub_srcdir/configure; then
a808d541 3819 ac_sub_configure=$ac_sub_srcdir/configure
cd6ede75
UD
3820 elif test -f $ac_sub_srcdir/configure.in; then
3821 ac_sub_configure=$ac_configure
3822 else
3823 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3824 ac_sub_configure=
3825 fi
3826
3827 # The recursion is here.
3828 if test -n "$ac_sub_configure"; then
3829
3830 # Make the cache file name correct relative to the subdirectory.
3831 case "$cache_file" in
3832 /*) ac_sub_cache_file=$cache_file ;;
3833 *) # Relative path.
3834 ac_sub_cache_file="$ac_dots$cache_file" ;;
3835 esac
3836 case "$ac_given_INSTALL" in
3837 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3838 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3839 esac
3840
a808d541 3841 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
cd6ede75 3842 # The eval makes quoting arguments work.
a808d541 3843 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
cd6ede75
UD
3844 then :
3845 else
3846 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3847 fi
3848 fi
3849
3850 cd $ac_popdir
3851 done
3852fi
3853