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