Update.
[glibc/history.git] / configure
blob7b17bae77dcc5af9b79a950595051c65fba70845
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.12.1
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
29 ac_help="$ac_help
30 --with-fp if using floating-point hardware [default=yes]"
31 ac_help="$ac_help
32 --with-binutils=PATH specify location of binutils (as and ld)"
33 ac_help="$ac_help
34 --with-elf if using the ELF object format"
35 ac_help="$ac_help
36 --without-cvs if CVS should not be used"
37 ac_help="$ac_help
38 --with-headers=PATH location of system headers to use
39 [e.g. /usr/src/linux/include]
40 [default=compiler default]"
41 ac_help="$ac_help
42 --enable-libio build in GNU libio instead of GNU stdio"
43 ac_help="$ac_help
44 --disable-sanity-checks really do not use threads (should not be used
45 except in special situations) [default=yes]"
46 ac_help="$ac_help
47 --enable-static build static library [default=yes]"
48 ac_help="$ac_help
49 --enable-shared build shared library [default=yes if GNU ld & ELF]"
50 ac_help="$ac_help
51 --enable-profile build profiled library [default=yes]"
52 ac_help="$ac_help
53 --enable-omitfp build undebuggable optimized library [default=no]"
54 ac_help="$ac_help
55 --enable-bounded build with runtime bounds checking [default=no]"
56 ac_help="$ac_help
57 --disable-versioning do not include versioning information in the
58 library objects [default=yes if supported]"
59 ac_help="$ac_help
60 --enable-add-ons[=DIR1,DIR2]...
61 configure and build add-ons in DIR1,DIR2,...
62 search for add-ons if no parameter given"
63 ac_help="$ac_help
64 --enable-static-nss build static NSS modules [default=no]"
65 ac_help="$ac_help
66 --disable-force-install don't force installation of files from this package,
67 even if they are older than the installed files"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.12.1"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=include/features.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567 ' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
571 else
572 ac_n= ac_c='\c' ac_t=
575 if test -r /vmunix; then
576 kernel_id=`strings /vmunix | grep UNIX`
577 elif test -r /dynix; then
578 kernel_id=`strings /dynix | grep DYNIX`
579 else
580 kernel_id=
585 ac_aux_dir=
586 for ac_dir in scripts $srcdir/scripts; do
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
596 done
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
605 # This will get text that should go into config.make.
606 config_vars=
608 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
609 # Check whether --with-gmp or --without-gmp was given.
610 if test "${with_gmp+set}" = set; then
611 withval="$with_gmp"
612 case "$with_gmp" in
613 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
614 ''|no) ;;
615 *) config_vars="$config_vars
616 gmp-srcdir = $withval" ;;
617 esac
621 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
622 # Check whether --with-gettext or --without-gettext was given.
623 if test "${with_gettext+set}" = set; then
624 withval="$with_gettext"
625 case "$with_gettext" in
626 yes)
627 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
628 ''|no) ;;
630 config_vars="$config_vars
631 gettext-srcdir = $withval" ;;
632 esac
637 # Check whether --with-fp or --without-fp was given.
638 if test "${with_fp+set}" = set; then
639 withval="$with_fp"
640 with_fp=$withval
641 else
642 with_fp=yes
645 # Check whether --with-binutils or --without-binutils was given.
646 if test "${with_binutils+set}" = set; then
647 withval="$with_binutils"
648 path_binutils=$withval
649 else
650 path_binutils=''
653 # Check whether --with-elf or --without-elf was given.
654 if test "${with_elf+set}" = set; then
655 withval="$with_elf"
656 elf=$withval
657 else
658 elf=no
661 # Check whether --with-cvs or --without-cvs was given.
662 if test "${with_cvs+set}" = set; then
663 withval="$with_cvs"
664 with_cvs=$withval
665 else
666 with_cvs=yes
671 # Check whether --with-headers or --without-headers was given.
672 if test "${with_headers+set}" = set; then
673 withval="$with_headers"
674 sysheaders=$withval
675 else
676 sysheaders=''
680 # Check whether --enable-libio or --disable-libio was given.
681 if test "${enable_libio+set}" = set; then
682 enableval="$enable_libio"
683 if test $enableval = yes; then
684 stdio=libio
685 else
686 stdio=stdio
688 else
689 stdio=default
693 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
694 if test "${enable_sanity_checks+set}" = set; then
695 enableval="$enable_sanity_checks"
696 enable_sanity=$enableval
697 else
698 enable_sanity=yes
702 # Check whether --enable-static or --disable-static was given.
703 if test "${enable_static+set}" = set; then
704 enableval="$enable_static"
705 static=$enableval
706 else
707 static=yes
710 # Check whether --enable-shared or --disable-shared was given.
711 if test "${enable_shared+set}" = set; then
712 enableval="$enable_shared"
713 shared=$enableval
714 else
715 shared=default
718 # Check whether --enable-profile or --disable-profile was given.
719 if test "${enable_profile+set}" = set; then
720 enableval="$enable_profile"
721 profile=$enableval
722 else
723 profile=yes
726 # Check whether --enable-omitfp or --disable-omitfp was given.
727 if test "${enable_omitfp+set}" = set; then
728 enableval="$enable_omitfp"
729 omitfp=$enableval
730 else
731 omitfp=no
734 # Check whether --enable-bounded or --disable-bounded was given.
735 if test "${enable_bounded+set}" = set; then
736 enableval="$enable_bounded"
737 bounded=$enableval
738 else
739 bounded=no
742 # Check whether --enable-versioning or --disable-versioning was given.
743 if test "${enable_versioning+set}" = set; then
744 enableval="$enable_versioning"
745 enable_versioning=$enableval
746 else
747 enable_versioning=yes
751 # Check whether --enable-add-ons or --disable-add-ons was given.
752 if test "${enable_add_ons+set}" = set; then
753 enableval="$enable_add_ons"
754 case "$enableval" in
755 yes) if test "$srcdir" = "."; then
756 add_ons=`echo */configure | sed -e 's!/configure!!g'`
757 else
758 add_ons=`echo $srcdir/*/configure | \
759 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
760 fi;;
761 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
762 esac
763 else
764 add_ons=
768 subdirs="$add_ons"
770 add_ons_pfx=
771 if test x"$add_ons" != x; then
772 for f in $add_ons; do
773 # Test whether such a subdir really exists.
774 if test -d $srcdir/$f; then
775 add_ons_pfx="$add_ons_pfx $f/"
776 else
777 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
779 done
782 # Check whether --enable-static-nss or --disable-static-nss was given.
783 if test "${enable_static_nss+set}" = set; then
784 enableval="$enable_static_nss"
785 static_nss=$enableval
786 else
787 static_nss=no
790 if test x"$static_nss" = xyes; then
791 cat >> confdefs.h <<\EOF
792 #define DO_STATIC_NSS 1
797 # Check whether --enable-force-install or --disable-force-install was given.
798 if test "${enable_force_install+set}" = set; then
799 enableval="$enable_force_install"
800 force_install=$enableval
801 else
802 force_install=yes
808 # Make sure we can run config.sub.
809 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
810 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
813 echo $ac_n "checking host system type""... $ac_c" 1>&6
814 echo "configure:815: checking host system type" >&5
816 host_alias=$host
817 case "$host_alias" in
818 NONE)
819 case $nonopt in
820 NONE)
821 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
823 fi ;;
824 *) host_alias=$nonopt ;;
825 esac ;;
826 esac
828 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
829 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 echo "$ac_t""$host" 1>&6
835 # The way shlib-versions is used to generate soversions.mk uses a
836 # fairly simplistic model for name recognition that can't distinguish
837 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
838 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
839 # tell. This doesn't get used much beyond that, so it's fairly safe.
840 case "$host_os" in
841 linux*)
843 gnu*)
844 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
846 esac
848 # We keep the original values in `$config_*' and never modify them, so we
849 # can write them unchanged into config.make. Everything else uses
850 # $machine, $vendor, and $os, and changes them whenever convenient.
851 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
853 # Some configurations imply other options.
854 case "$host_os" in
855 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
856 # These systems always use GNU tools.
857 gnu_ld=yes gnu_as=yes ;;
858 esac
859 case "$host_os" in
860 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
861 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
863 gnu* | linux* | sysv4* | solaris2* | irix6*)
864 # These systems (almost) always use the ELF format.
865 elf=yes
867 esac
869 machine=$config_machine
870 vendor=$config_vendor
871 os=$config_os
874 ### I put this here to prevent those annoying emails from people who cannot
875 ### read and try to compile glibc on unsupported platforms. --drepper
877 ### By using the undocumented --enable-hacker-mode option for configure
878 ### one can skip this test to make the configuration not fail for unsupported
879 ### platforms.
881 if test -z "$enable_hacker_mode"; then
882 case "$machine-$host_os" in
883 *-linux* | *-gnu* | arm*-none*)
886 echo "*** The GNU C library is currently not available for this platform."
887 echo "*** So far nobody cared to port it and if there is no volunteer it"
888 echo "*** might never happen. So, if you have interest to see glibc on"
889 echo "*** this platform visit"
890 echo "*** http://www.gnu.org/software/libc/porting.html"
891 echo "*** and join the group of porters"
892 exit 1
894 esac
897 # Expand the configuration machine name into a subdirectory by architecture
898 # type and particular chip.
899 case "$machine" in
900 a29k | am29000) base_machine=a29k machine=a29k ;;
901 alpha*) base_machine=alpha machine=alpha/$machine ;;
902 arm*) base_machine=arm machine=arm/$machine ;;
903 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
904 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
905 hppa*) base_machine=hppa machine=hppa/$machine ;;
906 i[3456]86) base_machine=i386 machine=i386/$machine ;;
907 m680?0) base_machine=m68k machine=m68k/$machine ;;
908 m68k) base_machine=m68k machine=m68k/m68020 ;;
909 m88???) base_machine=m88k machine=m88k/$machine ;;
910 m88k) base_machine=m88k machine=m88k/m88100 ;;
911 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
912 mips*) base_machine=mips
913 case "`uname -m`" in
914 IP22) machine=mips/mips3 ;;
915 *) machine=mips/$machine ,,
916 esac ;;
917 sparc | sparcv[67])
918 base_machine=sparc machine=sparc/sparc32 ;;
919 sparcv8 | supersparc | hypersparc)
920 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
921 sparc64 | ultrasparc)
922 base_machine=sparc machine=sparc/sparc64 ;;
923 esac
926 if test "$base_machine" = "i386"; then
927 cat >> confdefs.h <<\EOF
928 #define USE_REGPARMS 1
933 # Compute the list of sysdep directories for this configuration.
934 # This can take a while to compute.
935 sysdep_dir=$srcdir/sysdeps
936 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
937 echo "configure:938: checking sysdep dirs" >&5
938 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
939 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
941 case "$os" in
942 gnu*)
943 base_os=mach/hurd ;;
944 netbsd* | 386bsd* | freebsd* | bsdi*)
945 base_os=unix/bsd/bsd4.4 ;;
946 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
947 base_os=unix/bsd ;;
948 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
949 base_os=unix/sysv ;;
950 irix6*)
951 base_os=unix/sysv/irix6/$os ;;
952 solaris[2-9]*)
953 base_os=unix/sysv/sysv4 ;;
954 none)
955 base_os=standalone ;;
957 base_os='' ;;
958 esac
960 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
961 tail=$os
962 ostry=$os
963 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
964 ostry="$ostry /$o"
965 tail=$o
966 done
967 o=`echo $tail | sed 's/[0-9]*$//'`
968 if test $o != $tail; then
969 ostry="$ostry /$o"
971 # For linux-gnu, try linux-gnu, then linux.
972 o=`echo $tail | sed 's/-.*$//'`
973 if test $o != $tail; then
974 ostry="$ostry /$o"
977 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
978 base=
979 tail=$base_os
980 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
981 set $b
982 base="$base /$1"
983 tail="$2"
984 done
986 # For sparc/sparc9, try sparc/sparc9 and then sparc.
987 mach=
988 tail=$machine
989 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
990 set $m
991 # Prepend the machine's FPU directory unless --without-fp.
992 if test "$with_fp" = yes; then
993 mach="$mach /$1/fpu"
995 mach="$mach /$1"
996 tail="$2"
997 done
1000 # Find what sysdep directories exist.
1001 sysnames=
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1003 for d in $add_ons_pfx ''; do
1004 for b in $base ''; do
1005 for m0 in $mach ''; do
1006 for v in /$vendor ''; do
1007 test "$v" = / && continue
1008 for o in /$ostry ''; do
1009 test "$o" = / && continue
1010 for m in $mach ''; do
1011 if test "$m0$b$v$o$m"; then
1012 try="${d}sysdeps$m0$b$v$o$m"
1013 test -n "$enable_debug_configure" &&
1014 echo "$0 DEBUG: try $try" >&2
1015 case $try in
1016 /*) dest=$try ;;
1017 *) dest=$srcdir/$try ;;
1018 esac
1019 if test -d $dest; then
1020 sysnames="$sysnames $try"
1021 { test -n "$o" || test -n "$b"; } && os_used=t
1022 { test -n "$m" || test -n "$m0"; } && machine_used=t
1025 done
1026 done
1027 done
1028 done
1029 done
1030 done
1031 IFS="$ac_save_ifs"
1033 if test -z "$os_used" && test "$os" != none; then
1034 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1036 if test -z "$machine_used" && test "$machine" != none; then
1037 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1040 # We have now validated the configuration.
1043 # If using ELF, look for an `elf' subdirectory of each machine directory.
1044 # We prepend these rather than inserting them whereever the machine appears
1045 # because things specified by the machine's ELF ABI should override
1046 # OS-specific things, and should always be the same for any OS on the
1047 # machine (otherwise what's the point of an ABI?).
1048 if test "$elf" = yes; then
1049 elf_dirs=
1050 for d in $add_ons_pfx ''; do
1051 case $d in
1052 /*) xsrcdir= ;;
1053 *) xsrcdir=$srcdir/ ;;
1054 esac
1055 for m in $mach; do
1056 if test -d $xsrcdir${d}sysdeps$m/elf; then
1057 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1059 done
1060 done
1061 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1065 # Expand the list of system names into a full list of directories
1066 # from each element's parent name and Implies file (if present).
1067 set $sysnames
1068 names=
1069 while test $# -gt 0; do
1070 name=$1
1071 shift
1073 case " $names " in *" $name "*)
1074 # Already in the list.
1075 continue
1076 esac
1078 # Report each name as we discover it, so there is no long pause in output.
1079 echo $ac_n "$name $ac_c" >&6
1081 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1083 case $name in
1084 /*) xsrcdir= ;;
1085 *) xsrcdir=$srcdir/ ;;
1086 esac
1087 test -n "$enable_debug_configure" &&
1088 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1090 if test -f $xsrcdir$name/Implies; then
1091 # Collect more names from the `Implies' file (removing comments).
1092 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1093 implied=
1094 for x in $implied_candidate; do
1095 if test -d $xsrcdir$name_base/$x; then
1096 implied="$implied $name_base/$x";
1097 else
1098 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1100 done
1101 else
1102 implied=
1105 # Add NAME to the list of names.
1106 names="$names $name"
1108 # Find the parent of NAME, using the empty string if it has none.
1109 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1111 # Add the names implied by NAME, and NAME's parent (if it has one), to
1112 # the list of names to be processed (the argument list). We prepend the
1113 # implied names to the list and append the parent. We want implied
1114 # directories to come before further directories inferred from the
1115 # configuration components; this ensures that for sysv4, unix/common
1116 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1117 # after sysv4).
1118 sysnames="`echo $implied $* $parent`"
1119 test -n "$sysnames" && set $sysnames
1120 done
1122 # Add the default directories.
1123 default_sysnames=sysdeps/generic
1124 if test "$elf" = yes; then
1125 default_sysnames="sysdeps/generic/elf $default_sysnames"
1127 sysnames="$names $default_sysnames"
1129 # The other names were emitted during the scan.
1130 echo "$ac_t""$default_sysnames" 1>&6
1133 ### Locate tools.
1135 # Find a good install program. We prefer a C program (faster),
1136 # so one script is as good as another. But avoid the broken or
1137 # incompatible versions:
1138 # SysV /etc/install, /usr/sbin/install
1139 # SunOS /usr/etc/install
1140 # IRIX /sbin/install
1141 # AIX /bin/install
1142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1145 # ./install, which can be erroneously created by make from ./install.sh.
1146 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1147 echo "configure:1148: checking for a BSD compatible install" >&5
1148 if test -z "$INSTALL"; then
1149 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1153 for ac_dir in $PATH; do
1154 # Account for people who put trailing slashes in PATH elements.
1155 case "$ac_dir/" in
1156 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1158 # OSF1 and SCO ODT 3.0 have their own names for install.
1159 # Don't use installbsd from OSF since it installs stuff as root
1160 # by default.
1161 for ac_prog in ginstall scoinst install; do
1162 if test -f $ac_dir/$ac_prog; then
1163 if test $ac_prog = install &&
1164 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1165 # AIX install. It has an incompatible calling convention.
1167 else
1168 ac_cv_path_install="$ac_dir/$ac_prog -c"
1169 break 2
1172 done
1174 esac
1175 done
1176 IFS="$ac_save_IFS"
1179 if test "${ac_cv_path_install+set}" = set; then
1180 INSTALL="$ac_cv_path_install"
1181 else
1182 # As a last resort, use the slow shell script. We don't cache a
1183 # path for INSTALL within a source directory, because that will
1184 # break other packages using the cache if that directory is
1185 # removed, or if the path is relative.
1186 INSTALL="$ac_install_sh"
1189 echo "$ac_t""$INSTALL" 1>&6
1191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1192 # It thinks the first close brace ends the variable substitution.
1193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1197 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1198 # The makefiles need to use a different form to find it in $srcdir.
1199 INSTALL='\$(..)./install-sh -c'
1201 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether ln -s works" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 rm -f conftestdata
1207 if ln -s X conftestdata 2>/dev/null
1208 then
1209 rm -f conftestdata
1210 ac_cv_prog_LN_S="ln -s"
1211 else
1212 ac_cv_prog_LN_S=ln
1215 LN_S="$ac_cv_prog_LN_S"
1216 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1217 echo "$ac_t""yes" 1>&6
1218 else
1219 echo "$ac_t""no" 1>&6
1223 # These programs are version sensitive.
1224 echo $ac_n "checking build system type""... $ac_c" 1>&6
1225 echo "configure:1226: checking build system type" >&5
1227 build_alias=$build
1228 case "$build_alias" in
1229 NONE)
1230 case $nonopt in
1231 NONE) build_alias=$host_alias ;;
1232 *) build_alias=$nonopt ;;
1233 esac ;;
1234 esac
1236 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1237 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1238 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1239 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1240 echo "$ac_t""$build" 1>&6
1242 if test $host != $build; then
1243 ac_tool_prefix=${host_alias}-
1244 else
1245 ac_tool_prefix=
1248 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1250 # Extract the first word of "$ac_prog", so it can be a program name with args.
1251 set dummy $ac_prog; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257 if test -n "$CC"; then
1258 ac_cv_prog_CC="$CC" # Let the user override the test.
1259 else
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1261 for ac_dir in $PATH; do
1262 test -z "$ac_dir" && ac_dir=.
1263 if test -f $ac_dir/$ac_word; then
1264 ac_cv_prog_CC="$ac_prog"
1265 break
1267 done
1268 IFS="$ac_save_ifs"
1271 CC="$ac_cv_prog_CC"
1272 if test -n "$CC"; then
1273 echo "$ac_t""$CC" 1>&6
1274 else
1275 echo "$ac_t""no" 1>&6
1278 test -n "$CC" && break
1279 done
1281 if test -z "$CC"; then
1282 ac_verc_fail=yes
1283 else
1284 # Found it, now check the version.
1285 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1286 echo "configure:1287: checking version of $CC" >&5
1287 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcstp-]*[0-9.]*\).*$/\1/p'`
1288 case $ac_prog_version in
1289 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1290 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|pgcc-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]*)
1291 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1292 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1294 esac
1295 echo "$ac_t""$ac_prog_version" 1>&6
1297 if test $ac_verc_fail = yes; then
1298 critic_missing=t
1301 for ac_prog in make gmake
1303 # Extract the first word of "$ac_prog", so it can be a program name with args.
1304 set dummy $ac_prog; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 if test -n "$MAKE"; then
1311 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1312 else
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1314 for ac_dir in $PATH; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_MAKE="$ac_prog"
1318 break
1320 done
1321 IFS="$ac_save_ifs"
1324 MAKE="$ac_cv_prog_MAKE"
1325 if test -n "$MAKE"; then
1326 echo "$ac_t""$MAKE" 1>&6
1327 else
1328 echo "$ac_t""no" 1>&6
1331 test -n "$MAKE" && break
1332 done
1334 if test -z "$MAKE"; then
1335 ac_verc_fail=yes
1336 else
1337 # Found it, now check the version.
1338 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1339 echo "configure:1340: checking version of $MAKE" >&5
1340 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1341 case $ac_prog_version in
1342 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1343 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1344 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1345 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1347 esac
1348 echo "$ac_t""$ac_prog_version" 1>&6
1350 if test $ac_verc_fail = yes; then
1351 critic_missing=t
1355 for ac_prog in msgfmt gmsgfmt
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358 set dummy $ac_prog; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 if test -n "$MSGFMT"; then
1365 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1366 else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1368 for ac_dir in $PATH; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_MSGFMT="$ac_prog"
1372 break
1374 done
1375 IFS="$ac_save_ifs"
1378 MSGFMT="$ac_cv_prog_MSGFMT"
1379 if test -n "$MSGFMT"; then
1380 echo "$ac_t""$MSGFMT" 1>&6
1381 else
1382 echo "$ac_t""no" 1>&6
1385 test -n "$MSGFMT" && break
1386 done
1388 if test -z "$MSGFMT"; then
1389 ac_verc_fail=yes
1390 else
1391 # Found it, now check the version.
1392 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1393 echo "configure:1394: checking version of $MSGFMT" >&5
1394 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1395 case $ac_prog_version in
1396 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1397 0.[1-9][0-9].* | [1-9].*)
1398 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1399 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1401 esac
1402 echo "$ac_t""$ac_prog_version" 1>&6
1404 if test $ac_verc_fail = yes; then
1405 MSGFMT=: aux_missing=t
1408 for ac_prog in makeinfo
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy $ac_prog; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 if test -n "$MAKEINFO"; then
1418 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1419 else
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1421 for ac_dir in $PATH; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_prog_MAKEINFO="$ac_prog"
1425 break
1427 done
1428 IFS="$ac_save_ifs"
1431 MAKEINFO="$ac_cv_prog_MAKEINFO"
1432 if test -n "$MAKEINFO"; then
1433 echo "$ac_t""$MAKEINFO" 1>&6
1434 else
1435 echo "$ac_t""no" 1>&6
1438 test -n "$MAKEINFO" && break
1439 done
1441 if test -z "$MAKEINFO"; then
1442 ac_verc_fail=yes
1443 else
1444 # Found it, now check the version.
1445 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1446 echo "configure:1447: checking version of $MAKEINFO" >&5
1447 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1448 case $ac_prog_version in
1449 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1450 3.1[1-9] | 3.[2-9][0-9])
1451 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1452 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1454 esac
1455 echo "$ac_t""$ac_prog_version" 1>&6
1457 if test $ac_verc_fail = yes; then
1458 MAKEINFO=: aux_missing=t
1462 if test -n "$critic_missing"; then
1463 { echo "configure: error:
1464 *** Some critical program is missing or too old.
1465 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1468 test -n "$aux_missing" && echo "configure: warning:
1469 *** An auxiliary program is missing or too old;
1470 *** some features will be disabled.
1471 *** Check the INSTALL file for required versions." 1>&2
1474 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1476 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1480 ac_ext=c
1481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1484 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1485 cross_compiling=$ac_cv_prog_cc_cross
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490 main(){return(0);}
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1493 ac_cv_prog_cc_works=yes
1494 # If we can't run a trivial program, we are probably using a cross compiler.
1495 if (./conftest; exit) 2>/dev/null; then
1496 ac_cv_prog_cc_cross=no
1497 else
1498 ac_cv_prog_cc_cross=yes
1500 else
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1503 ac_cv_prog_cc_works=no
1505 rm -fr conftest*
1509 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1510 if test $ac_cv_prog_cc_works = no; then
1511 cross_linkable=no
1512 ac_cv_prog_cc_cross=yes
1513 else
1514 cross_linkable=yes
1516 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1524 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1526 cross_compiling=$ac_cv_prog_cc_cross
1528 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1529 echo "configure:1530: checking whether we are using GNU C" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1532 else
1533 cat > conftest.c <<EOF
1534 #ifdef __GNUC__
1535 yes;
1536 #endif
1538 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1539 ac_cv_prog_gcc=yes
1540 else
1541 ac_cv_prog_gcc=no
1545 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1546 if test $ac_cv_prog_gcc != yes; then
1547 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1550 echo $ac_n "checking build system type""... $ac_c" 1>&6
1551 echo "configure:1552: checking build system type" >&5
1553 build_alias=$build
1554 case "$build_alias" in
1555 NONE)
1556 case $nonopt in
1557 NONE) build_alias=$host_alias ;;
1558 *) build_alias=$nonopt ;;
1559 esac ;;
1560 esac
1562 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1563 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 echo "$ac_t""$build" 1>&6
1568 if test $host != $build; then
1569 for ac_prog in gcc cc
1571 # Extract the first word of "$ac_prog", so it can be a program name with args.
1572 set dummy $ac_prog; ac_word=$2
1573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1574 echo "configure:1575: checking for $ac_word" >&5
1575 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 if test -n "$BUILD_CC"; then
1579 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1580 else
1581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1582 for ac_dir in $PATH; do
1583 test -z "$ac_dir" && ac_dir=.
1584 if test -f $ac_dir/$ac_word; then
1585 ac_cv_prog_BUILD_CC="$ac_prog"
1586 break
1588 done
1589 IFS="$ac_save_ifs"
1592 BUILD_CC="$ac_cv_prog_BUILD_CC"
1593 if test -n "$BUILD_CC"; then
1594 echo "$ac_t""$BUILD_CC" 1>&6
1595 else
1596 echo "$ac_t""no" 1>&6
1599 test -n "$BUILD_CC" && break
1600 done
1604 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1605 echo "configure:1606: checking how to run the C preprocessor" >&5
1606 # On Suns, sometimes $CPP names a directory.
1607 if test -n "$CPP" && test -d "$CPP"; then
1608 CPP=
1610 if test -z "$CPP"; then
1611 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614 # This must be in double quotes, not single quotes, because CPP may get
1615 # substituted into the Makefile and "${CC-cc}" will confuse make.
1616 CPP="${CC-cc} -E"
1617 # On the NeXT, cc -E runs the code through the compiler's parser,
1618 # not just through cpp.
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1622 #include <assert.h>
1623 Syntax Error
1625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err=`grep -v '^ *+' conftest.out`
1628 if test -z "$ac_err"; then
1630 else
1631 echo "$ac_err" >&5
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1634 rm -rf conftest*
1635 CPP="${CC-cc} -E -traditional-cpp"
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 #include <assert.h>
1640 Syntax Error
1642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643 { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644 ac_err=`grep -v '^ *+' conftest.out`
1645 if test -z "$ac_err"; then
1647 else
1648 echo "$ac_err" >&5
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 rm -rf conftest*
1652 CPP=/lib/cpp
1654 rm -f conftest*
1656 rm -f conftest*
1657 ac_cv_prog_CPP="$CPP"
1659 CPP="$ac_cv_prog_CPP"
1660 else
1661 ac_cv_prog_CPP="$CPP"
1663 echo "$ac_t""$CPP" 1>&6
1665 # Was a --with-binutils option given?
1666 if test -n "$path_binutils"; then
1667 # Make absolute; ensure a single trailing slash.
1668 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1669 CC="$CC -B$path_binutils"
1671 AS=`$CC -print-prog-name=as`
1672 LD=`$CC -print-prog-name=ld`
1674 # Determine whether we are using GNU binutils.
1675 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1676 echo "configure:1677: checking whether $AS is GNU as" >&5
1677 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680 # Most GNU programs take a -v and spit out some text including
1681 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1682 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1683 libc_cv_prog_as_gnu=yes
1684 else
1685 libc_cv_prog_as_gnu=no
1689 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1690 rm -f a.out
1691 gnu_as=$libc_cv_prog_as_gnu
1693 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether $LD is GNU ld" >&5
1695 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1697 else
1698 # Most GNU programs take a -v and spit out some text including
1699 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1700 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1701 libc_cv_prog_ld_gnu=yes
1702 else
1703 libc_cv_prog_ld_gnu=no
1707 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1708 gnu_ld=$libc_cv_prog_ld_gnu
1710 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}ar; ac_word=$2
1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_word" >&5
1714 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717 if test -n "$AR"; then
1718 ac_cv_prog_AR="$AR" # Let the user override the test.
1719 else
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1721 for ac_dir in $PATH; do
1722 test -z "$ac_dir" && ac_dir=.
1723 if test -f $ac_dir/$ac_word; then
1724 ac_cv_prog_AR="${ac_tool_prefix}ar"
1725 break
1727 done
1728 IFS="$ac_save_ifs"
1729 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1732 AR="$ac_cv_prog_AR"
1733 if test -n "$AR"; then
1734 echo "$ac_t""$AR" 1>&6
1735 else
1736 echo "$ac_t""no" 1>&6
1741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1742 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 if test -n "$RANLIB"; then
1749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1750 else
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1752 for ac_dir in $PATH; do
1753 test -z "$ac_dir" && ac_dir=.
1754 if test -f $ac_dir/$ac_word; then
1755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1756 break
1758 done
1759 IFS="$ac_save_ifs"
1762 RANLIB="$ac_cv_prog_RANLIB"
1763 if test -n "$RANLIB"; then
1764 echo "$ac_t""$RANLIB" 1>&6
1765 else
1766 echo "$ac_t""no" 1>&6
1770 if test -z "$ac_cv_prog_RANLIB"; then
1771 if test -n "$ac_tool_prefix"; then
1772 # Extract the first word of "ranlib", so it can be a program name with args.
1773 set dummy ranlib; ac_word=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 if test -n "$RANLIB"; then
1780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1781 else
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1783 for ac_dir in $PATH; do
1784 test -z "$ac_dir" && ac_dir=.
1785 if test -f $ac_dir/$ac_word; then
1786 ac_cv_prog_RANLIB="ranlib"
1787 break
1789 done
1790 IFS="$ac_save_ifs"
1791 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1794 RANLIB="$ac_cv_prog_RANLIB"
1795 if test -n "$RANLIB"; then
1796 echo "$ac_t""$RANLIB" 1>&6
1797 else
1798 echo "$ac_t""no" 1>&6
1801 else
1802 RANLIB=":"
1806 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}mig; ac_word=$2
1808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_word" >&5
1810 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 if test -n "$MIG"; then
1814 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1815 else
1816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1817 for ac_dir in $PATH; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1821 break
1823 done
1824 IFS="$ac_save_ifs"
1825 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1828 MIG="$ac_cv_prog_MIG"
1829 if test -n "$MIG"; then
1830 echo "$ac_t""$MIG" 1>&6
1831 else
1832 echo "$ac_t""no" 1>&6
1838 # if using special system headers, find out the compiler's sekrit
1839 # header directory and add that to the list. NOTE: Only does the right
1840 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1841 if test -n "$sysheaders"; then
1842 ccheaders=`$CC -print-file-name=include`
1843 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1847 # check if ranlib is necessary
1848 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1849 echo "configure:1850: checking whether ranlib is necessary" >&5
1850 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 cat > conftest.c <<EOF
1854 int a;
1855 char b;
1856 void c(void) {}
1858 $CC $CFLAGS -c conftest.c
1859 $AR cr conftest.a conftest.c
1860 cp conftest.a conftest2.a
1861 $RANLIB conftest.a
1862 if cmp -s conftest.a conftest2.a; then
1863 libc_cv_ranlib_necessary=no
1864 else
1865 libc_cv_ranlib_necessary=yes
1867 rm -rf conftest*
1870 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1871 if test "$libc_cv_ranlib_necessary" = no; then
1872 RANLIB=:
1875 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1876 # since this would lead to problems installing/building glibc.
1877 # LD_LIBRARY_PATH contains the current directory if one of the following
1878 # is true:
1879 # - one of the terminals (":" and ";") is the first or last sign
1880 # - two terminals occur directly after each other
1881 # - the path contains an element with a dot in it
1882 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1883 echo "configure:1884: checking LD_LIBRARY_PATH variable" >&5
1884 case ${LD_LIBRARY_PATH} in
1885 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1886 ld_library_path_setting="contains current directory"
1889 ld_library_path_setting="ok"
1891 esac
1892 echo "$ac_t""$ld_library_path_setting" 1>&6
1893 if test "$ld_library_path_setting" != "ok"; then
1894 { echo "configure: error:
1895 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1896 *** building glibc. Please change the environment variable
1897 *** and run configure again." 1>&2; exit 1; }
1900 # Extract the first word of "bash", so it can be a program name with args.
1901 set dummy bash; ac_word=$2
1902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $ac_word" >&5
1904 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907 case "$BASH" in
1909 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1911 ?:/*)
1912 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1916 for ac_dir in $PATH; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_path_BASH="$ac_dir/$ac_word"
1920 break
1922 done
1923 IFS="$ac_save_ifs"
1924 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1926 esac
1928 BASH="$ac_cv_path_BASH"
1929 if test -n "$BASH"; then
1930 echo "$ac_t""$BASH" 1>&6
1931 else
1932 echo "$ac_t""no" 1>&6
1935 if test "$BASH" != no &&
1936 $BASH -c 'test "$BASH_VERSINFO" \
1937 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1938 libc_cv_have_bash2=yes
1939 else
1940 libc_cv_have_bash2=no
1944 if test "$BASH" = no; then
1945 # Extract the first word of "ksh", so it can be a program name with args.
1946 set dummy ksh; ac_word=$2
1947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1948 echo "configure:1949: checking for $ac_word" >&5
1949 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1951 else
1952 case "$KSH" in
1954 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1956 ?:/*)
1957 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1961 for ac_dir in $PATH; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_path_KSH="$ac_dir/$ac_word"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1971 esac
1973 KSH="$ac_cv_path_KSH"
1974 if test -n "$KSH"; then
1975 echo "$ac_t""$KSH" 1>&6
1976 else
1977 echo "$ac_t""no" 1>&6
1980 if test "$KSH" = no; then
1981 libc_cv_have_ksh=no
1982 else
1983 libc_cv_have_ksh=yes
1985 else
1986 KSH="$BASH"
1988 libc_cv_have_ksh=yes
1992 for ac_prog in mawk gawk nawk awk
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_word" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 if test -n "$AWK"; then
2002 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2003 else
2004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2005 for ac_dir in $PATH; do
2006 test -z "$ac_dir" && ac_dir=.
2007 if test -f $ac_dir/$ac_word; then
2008 ac_cv_prog_AWK="$ac_prog"
2009 break
2011 done
2012 IFS="$ac_save_ifs"
2015 AWK="$ac_cv_prog_AWK"
2016 if test -n "$AWK"; then
2017 echo "$ac_t""$AWK" 1>&6
2018 else
2019 echo "$ac_t""no" 1>&6
2022 test -n "$AWK" && break
2023 done
2025 for ac_prog in perl
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 case "$PERL" in
2036 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2038 ?:/*)
2039 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2043 for ac_dir in $PATH; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_path_PERL="$ac_dir/$ac_word"
2047 break
2049 done
2050 IFS="$ac_save_ifs"
2052 esac
2054 PERL="$ac_cv_path_PERL"
2055 if test -n "$PERL"; then
2056 echo "$ac_t""$PERL" 1>&6
2057 else
2058 echo "$ac_t""no" 1>&6
2061 test -n "$PERL" && break
2062 done
2063 test -n "$PERL" || PERL="no"
2067 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2068 echo "configure:2069: checking for signed size_t type" >&5
2069 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 echo '#include <stddef.h>
2073 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2074 if eval "$ac_cpp conftest.c 2>/dev/null" \
2075 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2076 libc_cv_signed_size_t=no
2077 else
2078 libc_cv_signed_size_t=yes
2080 rm -f conftest*
2083 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2084 if test $libc_cv_signed_size_t = yes; then
2085 cat >> confdefs.h <<\EOF
2086 #undef __SIZE_TYPE__
2087 #define __SIZE_TYPE__ unsigned
2091 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2092 echo "configure:2093: checking for libc-friendly stddef.h" >&5
2093 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #define __need_size_t
2100 #define __need_wchar_t
2101 #include <stddef.h>
2102 #define __need_NULL
2103 #include <stddef.h>
2104 int main() {
2105 size_t size; wchar_t wchar;
2106 #ifdef offsetof
2107 #error stddef.h ignored __need_*
2108 #endif
2109 if (&size == NULL || &wchar == NULL) abort ();
2110 ; return 0; }
2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2113 rm -rf conftest*
2114 libc_cv_friendly_stddef=yes
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 libc_cv_friendly_stddef=no
2121 rm -f conftest*
2124 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2125 if test $libc_cv_friendly_stddef = yes; then
2126 config_vars="$config_vars
2127 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2130 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2131 echo "configure:2132: checking whether we need to use -P to assemble .S files" >&5
2132 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135 cat > conftest.S <<EOF
2136 #include "confdefs.h"
2137 /* Nothing whatsoever. */
2139 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2140 libc_cv_need_minus_P=no
2141 else
2142 libc_cv_need_minus_P=yes
2144 rm -f conftest*
2147 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2148 if test $libc_cv_need_minus_P = yes; then
2149 config_vars="$config_vars
2150 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2153 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2154 echo "configure:2155: checking for assembler global-symbol directive" >&5
2155 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158 libc_cv_asm_global_directive=UNKNOWN
2159 for ac_globl in .globl .global; do
2160 cat > conftest.s <<EOF
2161 .text
2162 ${ac_globl} foo
2163 foo:
2165 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2166 libc_cv_asm_global_directive=${ac_globl}
2168 rm -f conftest*
2169 test $libc_cv_asm_global_directive != UNKNOWN && break
2170 done
2173 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2174 if test $libc_cv_asm_global_directive = UNKNOWN; then
2175 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2176 else
2177 cat >> confdefs.h <<EOF
2178 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2183 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2184 echo "configure:2185: checking for .set assembler directive" >&5
2185 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 cat > conftest.s <<EOF
2189 .text
2190 foo:
2191 .set glibc_conftest_frobozz,foo
2192 $libc_cv_asm_global_directive glibc_conftest_frobozz
2194 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2195 # (but it doesn't work), so we must do a linking check to be sure.
2196 cat > conftest1.c <<\EOF
2197 extern int glibc_conftest_frobozz;
2198 main () { printf ("%d\n", glibc_conftest_frobozz); }
2200 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2201 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2202 libc_cv_asm_set_directive=yes
2203 else
2204 libc_cv_asm_set_directive=no
2206 rm -f conftest*
2209 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2210 if test $libc_cv_asm_set_directive = yes; then
2211 cat >> confdefs.h <<\EOF
2212 #define HAVE_ASM_SET_DIRECTIVE 1
2217 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2218 echo "configure:2219: checking for .symver assembler directive" >&5
2219 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222 cat > conftest.s <<EOF
2223 .text
2224 _sym:
2225 .symver _sym,sym@VERS
2227 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2228 libc_cv_asm_symver_directive=yes
2229 else
2230 libc_cv_asm_symver_directive=no
2232 rm -f conftest*
2235 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2236 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2237 echo "configure:2238: checking for ld --version-script" >&5
2238 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241 if test $libc_cv_asm_symver_directive = yes; then
2242 cat > conftest.s <<EOF
2243 .text
2244 _sym:
2245 .symver _sym,sym@VERS
2247 cat > conftest.map <<EOF
2248 VERS_1 {
2249 global: sym;
2252 VERS_2 {
2253 global: sym;
2254 } VERS_1;
2256 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2257 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2258 -nostartfiles -nostdlib
2259 -Wl,--version-script,conftest.map
2260 1>&5'; { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2261 then
2262 libc_cv_ld_version_script_option=yes
2263 else
2264 libc_cv_ld_version_script_option=no
2266 else
2267 libc_cv_ld_version_script_option=no
2269 else
2270 libc_cv_ld_version_script_option=no
2272 rm -f conftest*
2275 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2276 if test $libc_cv_asm_symver_directive = yes &&
2277 test $libc_cv_ld_version_script_option = yes &&
2278 test $enable_versioning = yes; then
2279 VERSIONING=yes
2280 cat >> confdefs.h <<\EOF
2281 #define DO_VERSIONING 1
2284 else
2285 VERSIONING=no
2289 if test $VERSIONING = no; then
2290 echo "\
2291 *** WARNING: You should not compile GNU libc without versioning. Not using
2292 *** versioning will introduce incompatibilities so that old binaries
2293 *** will not run anymore.
2294 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2296 if test $elf = yes; then
2297 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2298 echo "configure:2299: checking for .previous assembler directive" >&5
2299 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 cat > conftest.s <<EOF
2303 .section foo_section
2304 .previous
2306 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2307 libc_cv_asm_previous_directive=yes
2308 else
2309 libc_cv_asm_previous_directive=no
2311 rm -f conftest*
2314 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2315 if test $libc_cv_asm_previous_directive = yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2320 else
2321 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2322 echo "configure:2323: checking for .popsection assembler directive" >&5
2323 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 cat > conftest.s <<EOF
2327 .pushsection foo_section
2328 .popsection
2330 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2331 libc_cv_asm_popsection_directive=yes
2332 else
2333 libc_cv_asm_popsection_directive=no
2335 rm -f conftest*
2338 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2339 if test $libc_cv_asm_popsection_directive = yes; then
2340 cat >> confdefs.h <<\EOF
2341 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2348 if test $elf != yes; then
2349 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2350 echo "configure:2351: checking for .init and .fini sections" >&5
2351 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2358 int main() {
2359 asm (".section .init");
2360 asm (".section .fini");
2361 asm (".text");
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2365 rm -rf conftest*
2366 libc_cv_have_initfini=yes
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 libc_cv_have_initfini=no
2373 rm -f conftest*
2376 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2377 if test $libc_cv_have_initfini = yes; then
2378 cat >> confdefs.h <<\EOF
2379 #define HAVE_INITFINI 1
2387 if test $elf = yes; then
2388 libc_cv_asm_underscores=no
2389 else
2390 if test $ac_cv_prog_cc_works = yes; then
2391 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2392 echo "configure:2393: checking for _ prefix on C symbol names" >&5
2393 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 asm ("_glibc_foobar:");
2400 int main() {
2401 glibc_foobar ();
2402 ; return 0; }
2404 if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2405 rm -rf conftest*
2406 libc_cv_asm_underscores=yes
2407 else
2408 echo "configure: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 rm -rf conftest*
2411 libc_cv_asm_underscores=no
2413 rm -f conftest*
2416 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2417 else
2418 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2419 echo "configure:2420: checking for _ prefix on C symbol names" >&5
2420 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 void underscore_test(void) {
2427 return; }
2429 if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 if grep _underscore_test conftest* >/dev/null; then
2431 rm -f conftest*
2432 libc_cv_asm_underscores=yes
2433 else
2434 rm -f conftest*
2435 libc_cv_asm_underscores=no
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -f conftest*
2441 libc_cv_asm_underscores=no
2443 rm -f conftest*
2446 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2449 if test $libc_cv_asm_underscores = no; then
2450 cat >> confdefs.h <<\EOF
2451 #define NO_UNDERSCORES 1
2456 if test $elf = yes; then
2457 libc_cv_weak_symbols=yes
2460 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2461 echo "configure:2462: checking for assembler .weak directive" >&5
2462 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.s <<EOF
2466 .text
2467 ${libc_cv_asm_global_directive} foo
2468 foo:
2469 .weak foo
2470 .weak bar; bar = foo
2472 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2473 libc_cv_asm_weak_directive=yes
2474 else
2475 libc_cv_asm_weak_directive=no
2477 rm -f conftest*
2480 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2482 if test $libc_cv_asm_weak_directive = no; then
2483 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2484 echo "configure:2485: checking for assembler .weakext directive" >&5
2485 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 cat > conftest.s <<EOF
2489 .text
2490 ${libc_cv_asm_global_directive} foo
2491 foo:
2492 .weakext bar foo
2493 .weakext baz
2494 ${libc_cv_asm_global_directive} baz
2495 baz:
2497 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2498 libc_cv_asm_weakext_directive=yes
2499 else
2500 libc_cv_asm_weakext_directive=no
2502 rm -f conftest*
2505 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2507 fi # no .weak
2509 if test $libc_cv_asm_weak_directive = yes; then
2510 cat >> confdefs.h <<\EOF
2511 #define HAVE_ASM_WEAK_DIRECTIVE 1
2514 elif test $libc_cv_asm_weakext_directive = yes; then
2515 cat >> confdefs.h <<\EOF
2516 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2521 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2522 echo "configure:2523: checking for ld --no-whole-archive" >&5
2523 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2525 else
2526 cat > conftest.c <<\EOF
2527 _start () {}
2528 int __eh_pc;
2529 __throw () {}
2531 if { ac_try='${CC-cc} $CFLAGS
2532 -nostdlib -nostartfiles -Wl,--no-whole-archive
2533 -o conftest conftest.c 1>&5'; { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2534 libc_cv_ld_no_whole_archive=yes
2535 else
2536 libc_cv_ld_no_whole_archive=no
2538 rm -f conftest*
2541 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2542 if test $libc_cv_ld_no_whole_archive = yes; then
2543 no_whole_archive=-Wl,--no-whole-archive
2546 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2547 echo "configure:2548: checking for gcc -fexceptions" >&5
2548 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551 cat > conftest.c <<\EOF
2552 _start () {}
2553 int __eh_pc;
2554 __throw () {}
2556 if { ac_try='${CC-cc} $CFLAGS
2557 -nostdlib -nostartfiles -fexceptions
2558 -o conftest conftest.c 1>&5'; { (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2559 libc_cv_gcc_exceptions=yes
2560 else
2561 libc_cv_gcc_exceptions=no
2563 rm -f conftest*
2566 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2567 if test $libc_cv_gcc_exceptions = yes; then
2568 exceptions=-fexceptions
2571 if test "$base_machine" = alpha ; then
2572 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2573 echo "configure:2574: checking for function ..ng prefix" >&5
2574 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577 cat > conftest.c <<\EOF
2578 foo () { }
2580 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2581 then
2582 libc_cv_gcc_alpha_ng_prefix=yes
2583 else
2584 libc_cv_gcc_alpha_ng_prefix=no
2586 rm -f conftest*
2589 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2590 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2591 cat >> confdefs.h <<\EOF
2592 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2595 else
2596 cat >> confdefs.h <<\EOF
2597 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2603 if test "$host_cpu" = powerpc ; then
2604 # Check for a bug present in at least versions 2.8.x of GCC
2605 # and versions 1.0.x of EGCS.
2606 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2607 echo "configure:2608: checking whether clobbering cr0 causes problems" >&5
2608 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2610 else
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2615 int main() {
2617 ; return 0; }
2619 if { (eval echo configure:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2620 rm -rf conftest*
2621 libc_cv_c_asmcr0_bug='no'
2622 else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 libc_cv_c_asmcr0_bug='yes'
2628 rm -f conftest*
2631 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2632 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2633 cat >> confdefs.h <<\EOF
2634 #define BROKEN_PPC_ASM_CR0 1
2640 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2641 echo "configure:2642: checking for DWARF2 unwind info support" >&5
2642 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2644 else
2645 cat > conftest.c <<EOF
2646 #line 2647 "configure"
2647 static char __EH_FRAME_BEGIN__;
2648 _start ()
2650 #ifdef CHECK__register_frame
2651 __register_frame (__EH_FRAME_BEGIN__);
2652 __deregister_frame (__EH_FRAME_BEGIN__);
2653 #endif
2654 #ifdef CHECK__register_frame_info
2655 __register_frame_info (__EH_FRAME_BEGIN__);
2656 __deregister_frame_info (__EH_FRAME_BEGIN__);
2657 #endif
2659 int __eh_pc;
2660 __throw () {}
2661 /* FIXME: this is fragile. */
2662 malloc () {}
2663 strcmp () {}
2664 strlen () {}
2665 memcpy () {}
2666 memset () {}
2667 free () {}
2668 abort () {}
2669 __bzero () {}
2671 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2672 -nostdlib -nostartfiles
2673 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2674 libc_cv_gcc_dwarf2_unwind_info=static
2675 else
2676 libc_cv_gcc_dwarf2_unwind_info=no
2678 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2679 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2680 -nostdlib -nostartfiles
2681 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2682 libc_cv_gcc_dwarf2_unwind_info=yes
2683 else
2684 libc_cv_gcc_dwarf2_unwind_info=no
2687 rm -f conftest*
2690 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2691 case $libc_cv_gcc_dwarf2_unwind_info in
2692 yes)
2693 cat >> confdefs.h <<\EOF
2694 #define HAVE_DWARF2_UNWIND_INFO 1
2698 static)
2699 cat >> confdefs.h <<\EOF
2700 #define HAVE_DWARF2_UNWIND_INFO 1
2703 cat >> confdefs.h <<\EOF
2704 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2708 esac
2710 ### End of automated tests.
2711 ### Now run sysdeps configure fragments.
2713 # sysdeps configure fragments may set these with files to be linked below.
2714 libc_link_dests=
2715 libc_link_sources=
2717 # They also can set these variables.
2718 ldd_rewrite_script=no
2720 # Iterate over all the sysdep directories we will use, running their
2721 # configure fragments, and looking for a uname implementation.
2722 uname=
2723 for dir in $sysnames; do
2724 case $dir in
2725 /*) dest=$dir ;;
2726 *) dest=$srcdir/$dir ;;
2727 esac
2728 if test -r $dest/configure; then
2729 echo "$ac_t""running configure fragment for $dest" 1>&6
2730 . $dest/configure
2733 if test -z "$uname"; then
2734 if test -r $dest/uname.c ||
2735 test -r $dest/uname.S ||
2736 { test -r $dest/syscalls.list &&
2737 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2738 uname=$dir
2741 done
2745 # If we will use the generic uname implementation, we must figure out what
2746 # it will say by examining the system, and write the results in config-name.h.
2747 if test "$uname" = "sysdeps/generic"; then
2749 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2750 if test $uname_sysname != $config_os; then
2751 config_release=`echo $config_os | sed s/$uname_sysname//`
2754 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2755 echo "configure:2756: checking OS release for uname" >&5
2756 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758 else
2759 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2760 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2761 != x$config_release; then
2762 # The configuration release is a substring of the kernel release.
2763 libc_cv_uname_release=$kernel_release
2764 elif test x$config_release != x; then
2765 libc_cv_uname_release=$config_release
2766 elif test x$kernel_release != x; then
2767 libc_cv_uname_release=$kernel_release
2768 else
2769 libc_cv_uname_release=unknown
2773 echo "$ac_t""$libc_cv_uname_release" 1>&6
2774 uname_release="$libc_cv_uname_release"
2776 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2777 echo "configure:2778: checking OS version for uname" >&5
2778 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2780 else
2781 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2782 if test -n "$kernel_version"; then
2783 libc_cv_uname_version="$kernel_version"
2784 else
2785 libc_cv_uname_version=unknown
2789 echo "$ac_t""$libc_cv_uname_version" 1>&6
2790 uname_version="$libc_cv_uname_version"
2792 config_uname=config-name.h:config-name.in
2793 else
2794 # For non-generic uname, we don't need to create config-name.h at all.
2795 config_uname=
2798 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2799 echo "configure:2800: checking stdio selection" >&5
2801 case $stdio in
2802 libio) cat >> confdefs.h <<\EOF
2803 #define USE_IN_LIBIO 1
2806 default) stdio=stdio ;;
2807 esac
2808 echo "$ac_t""$stdio" 1>&6
2810 # Test for old glibc 2.0.x headers so that they can be removed properly
2811 # Search only in includedir.
2812 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2813 echo "configure:2814: checking for old glibc 2.0.x headers" >&5
2814 if eval test -e "${includedir}/elfclass.h" -a -e "${includedir}/fcntlbits.h"
2815 then
2816 old_glibc_headers=yes
2817 else
2818 old_glibc_headers=no
2820 echo "$ac_t""$old_glibc_headers" 1>&6
2821 if test ${old_glibc_headers} = yes; then
2822 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2823 echo "configure: warning: *** be removed." 1>&2
2835 if test $gnu_ld = yes; then
2836 cat >> confdefs.h <<\EOF
2837 #define HAVE_GNU_LD 1
2841 if test $gnu_as = yes; then
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_GNU_AS 1
2847 if test $elf = yes; then
2848 cat >> confdefs.h <<\EOF
2849 #define HAVE_ELF 1
2856 if test $shared = default; then
2857 if test $gnu_ld = yes; then
2858 shared=$elf
2859 else
2860 # For now we do not assume shared libs are available. In future more
2861 # tests might become available.
2862 shared=no
2866 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2867 echo "configure:2868: checking whether -fPIC is default" >&5
2868 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 pic_default=yes
2872 cat > conftest.c <<EOF
2873 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2874 # error PIC is default.
2875 #endif
2877 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2878 pic_default=no
2880 rm -f conftest.*
2883 echo "$ac_t""$pic_default" 1>&6
2894 case "$add_ons" in
2895 *door*) linux_doors=yes ;;
2896 *) linux_doors=no ;;
2897 esac
2900 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2901 config_makefile=
2902 else
2903 config_makefile=Makefile
2906 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
2907 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
2911 trap '' 1 2 15
2912 cat > confcache <<\EOF
2913 # This file is a shell script that caches the results of configure
2914 # tests run on this system so they can be shared between configure
2915 # scripts and configure runs. It is not useful on other systems.
2916 # If it contains results you don't want to keep, you may remove or edit it.
2918 # By default, configure uses ./config.cache as the cache file,
2919 # creating it if it does not exist already. You can give configure
2920 # the --cache-file=FILE option to use a different cache file; that is
2921 # what configure does when it calls configure scripts in
2922 # subdirectories, so they share the cache.
2923 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2924 # config.status only pays attention to the cache file if you give it the
2925 # --recheck option to rerun configure.
2928 # The following way of writing the cache mishandles newlines in values,
2929 # but we know of no workaround that is simple, portable, and efficient.
2930 # So, don't put newlines in cache variables' values.
2931 # Ultrix sh set writes to stderr and can't be redirected directly,
2932 # and sets the high bit in the cache file unless we assign to the vars.
2933 (set) 2>&1 |
2934 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2935 *ac_space=\ *)
2936 # `set' does not quote correctly, so add quotes (double-quote substitution
2937 # turns \\\\ into \\, and sed turns \\ into \).
2938 sed -n \
2939 -e "s/'/'\\\\''/g" \
2940 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2943 # `set' quotes correctly as required by POSIX, so do not add quotes.
2944 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2946 esac >> confcache
2947 if cmp -s $cache_file confcache; then
2949 else
2950 if test -w $cache_file; then
2951 echo "updating cache $cache_file"
2952 cat confcache > $cache_file
2953 else
2954 echo "not updating unwritable cache $cache_file"
2957 rm -f confcache
2959 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2962 # Let make expand exec_prefix.
2963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2965 # Any assignment to VPATH causes Sun make to only execute
2966 # the first set of double-colon rules, so remove it if not needed.
2967 # If there is a colon in the path, we need to keep it.
2968 if test "x$srcdir" = x.; then
2969 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2972 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2974 DEFS=-DHAVE_CONFIG_H
2976 # Without the "./", some shells look in PATH for config.status.
2977 : ${CONFIG_STATUS=./config.status}
2979 echo creating $CONFIG_STATUS
2980 rm -f $CONFIG_STATUS
2981 cat > $CONFIG_STATUS <<EOF
2982 #! /bin/sh
2983 # Generated automatically by configure.
2984 # Run this file to recreate the current configuration.
2985 # This directory was configured as follows,
2986 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2988 # $0 $ac_configure_args
2990 # Compiler output produced by configure, useful for debugging
2991 # configure, is in ./config.log if it exists.
2993 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2994 for ac_option
2996 case "\$ac_option" in
2997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2998 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2999 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3000 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3001 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3002 exit 0 ;;
3003 -help | --help | --hel | --he | --h)
3004 echo "\$ac_cs_usage"; exit 0 ;;
3005 *) echo "\$ac_cs_usage"; exit 1 ;;
3006 esac
3007 done
3009 ac_given_srcdir=$srcdir
3010 ac_given_INSTALL="$INSTALL"
3012 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3014 cat >> $CONFIG_STATUS <<EOF
3016 # Protect against being on the right side of a sed subst in config.status.
3017 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3018 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3019 $ac_vpsub
3020 $extrasub
3021 s%@SHELL@%$SHELL%g
3022 s%@CFLAGS@%$CFLAGS%g
3023 s%@CPPFLAGS@%$CPPFLAGS%g
3024 s%@CXXFLAGS@%$CXXFLAGS%g
3025 s%@DEFS@%$DEFS%g
3026 s%@LDFLAGS@%$LDFLAGS%g
3027 s%@LIBS@%$LIBS%g
3028 s%@exec_prefix@%$exec_prefix%g
3029 s%@prefix@%$prefix%g
3030 s%@program_transform_name@%$program_transform_name%g
3031 s%@bindir@%$bindir%g
3032 s%@sbindir@%$sbindir%g
3033 s%@libexecdir@%$libexecdir%g
3034 s%@datadir@%$datadir%g
3035 s%@sysconfdir@%$sysconfdir%g
3036 s%@sharedstatedir@%$sharedstatedir%g
3037 s%@localstatedir@%$localstatedir%g
3038 s%@libdir@%$libdir%g
3039 s%@includedir@%$includedir%g
3040 s%@oldincludedir@%$oldincludedir%g
3041 s%@infodir@%$infodir%g
3042 s%@mandir@%$mandir%g
3043 s%@with_cvs@%$with_cvs%g
3044 s%@subdirs@%$subdirs%g
3045 s%@force_install@%$force_install%g
3046 s%@host@%$host%g
3047 s%@host_alias@%$host_alias%g
3048 s%@host_cpu@%$host_cpu%g
3049 s%@host_vendor@%$host_vendor%g
3050 s%@host_os@%$host_os%g
3051 s%@base_machine@%$base_machine%g
3052 s%@sysnames@%$sysnames%g
3053 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3054 s%@INSTALL_DATA@%$INSTALL_DATA%g
3055 s%@LN_S@%$LN_S%g
3056 s%@build@%$build%g
3057 s%@build_alias@%$build_alias%g
3058 s%@build_cpu@%$build_cpu%g
3059 s%@build_vendor@%$build_vendor%g
3060 s%@build_os@%$build_os%g
3061 s%@CC@%$CC%g
3062 s%@MAKE@%$MAKE%g
3063 s%@MSGFMT@%$MSGFMT%g
3064 s%@MAKEINFO@%$MAKEINFO%g
3065 s%@cross_linkable@%$cross_linkable%g
3066 s%@BUILD_CC@%$BUILD_CC%g
3067 s%@cross_compiling@%$cross_compiling%g
3068 s%@CPP@%$CPP%g
3069 s%@AR@%$AR%g
3070 s%@RANLIB@%$RANLIB%g
3071 s%@MIG@%$MIG%g
3072 s%@SYSINCLUDES@%$SYSINCLUDES%g
3073 s%@BASH@%$BASH%g
3074 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3075 s%@KSH@%$KSH%g
3076 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3077 s%@AWK@%$AWK%g
3078 s%@PERL@%$PERL%g
3079 s%@VERSIONING@%$VERSIONING%g
3080 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3081 s%@no_whole_archive@%$no_whole_archive%g
3082 s%@exceptions@%$exceptions%g
3083 s%@uname_sysname@%$uname_sysname%g
3084 s%@uname_release@%$uname_release%g
3085 s%@uname_version@%$uname_version%g
3086 s%@stdio@%$stdio%g
3087 s%@old_glibc_headers@%$old_glibc_headers%g
3088 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3089 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3090 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3091 s%@has_ldconfig@%$has_ldconfig%g
3092 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3093 s%@gnu_ld@%$gnu_ld%g
3094 s%@gnu_as@%$gnu_as%g
3095 s%@elf@%$elf%g
3096 s%@static@%$static%g
3097 s%@shared@%$shared%g
3098 s%@pic_default@%$pic_default%g
3099 s%@profile@%$profile%g
3100 s%@omitfp@%$omitfp%g
3101 s%@bounded@%$bounded%g
3102 s%@static_nss@%$static_nss%g
3103 s%@nopic_initfini@%$nopic_initfini%g
3104 s%@DEFINES@%$DEFINES%g
3105 s%@linux_doors@%$linux_doors%g
3106 s%@VERSION@%$VERSION%g
3107 s%@RELEASE@%$RELEASE%g
3109 CEOF
3112 cat >> $CONFIG_STATUS <<\EOF
3114 # Split the substitutions into bite-sized pieces for seds with
3115 # small command number limits, like on Digital OSF/1 and HP-UX.
3116 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3117 ac_file=1 # Number of current file.
3118 ac_beg=1 # First line for current file.
3119 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3120 ac_more_lines=:
3121 ac_sed_cmds=""
3122 while $ac_more_lines; do
3123 if test $ac_beg -gt 1; then
3124 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3125 else
3126 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3128 if test ! -s conftest.s$ac_file; then
3129 ac_more_lines=false
3130 rm -f conftest.s$ac_file
3131 else
3132 if test -z "$ac_sed_cmds"; then
3133 ac_sed_cmds="sed -f conftest.s$ac_file"
3134 else
3135 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3137 ac_file=`expr $ac_file + 1`
3138 ac_beg=$ac_end
3139 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3141 done
3142 if test -z "$ac_sed_cmds"; then
3143 ac_sed_cmds=cat
3147 cat >> $CONFIG_STATUS <<EOF
3149 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3151 cat >> $CONFIG_STATUS <<\EOF
3152 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3154 case "$ac_file" in
3155 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3156 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3157 *) ac_file_in="${ac_file}.in" ;;
3158 esac
3160 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3162 # Remove last slash and all that follows it. Not all systems have dirname.
3163 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3165 # The file is in a subdirectory.
3166 test ! -d "$ac_dir" && mkdir "$ac_dir"
3167 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3168 # A "../" for each directory in $ac_dir_suffix.
3169 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3170 else
3171 ac_dir_suffix= ac_dots=
3174 case "$ac_given_srcdir" in
3175 .) srcdir=.
3176 if test -z "$ac_dots"; then top_srcdir=.
3177 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3178 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3179 *) # Relative path.
3180 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3181 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3182 esac
3184 case "$ac_given_INSTALL" in
3185 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3186 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3187 esac
3189 echo creating "$ac_file"
3190 rm -f "$ac_file"
3191 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3192 case "$ac_file" in
3193 *Makefile*) ac_comsub="1i\\
3194 # $configure_input" ;;
3195 *) ac_comsub= ;;
3196 esac
3198 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3199 sed -e "$ac_comsub
3200 s%@configure_input@%$configure_input%g
3201 s%@srcdir@%$srcdir%g
3202 s%@top_srcdir@%$top_srcdir%g
3203 s%@INSTALL@%$INSTALL%g
3204 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3205 fi; done
3206 rm -f conftest.s*
3208 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3209 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3211 # ac_d sets the value in "#define NAME VALUE" lines.
3212 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3213 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3214 ac_dC='\3'
3215 ac_dD='%g'
3216 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3217 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3218 ac_uB='\([ ]\)%\1#\2define\3'
3219 ac_uC=' '
3220 ac_uD='\4%g'
3221 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3222 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3223 ac_eB='$%\1#\2define\3'
3224 ac_eC=' '
3225 ac_eD='%g'
3227 if test "${CONFIG_HEADERS+set}" != set; then
3229 cat >> $CONFIG_STATUS <<EOF
3230 CONFIG_HEADERS="config.h"
3232 cat >> $CONFIG_STATUS <<\EOF
3234 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3235 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3236 case "$ac_file" in
3237 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3238 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3239 *) ac_file_in="${ac_file}.in" ;;
3240 esac
3242 echo creating $ac_file
3244 rm -f conftest.frag conftest.in conftest.out
3245 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3246 cat $ac_file_inputs > conftest.in
3250 # Transform confdefs.h into a sed script conftest.vals that substitutes
3251 # the proper values into config.h.in to produce config.h. And first:
3252 # Protect against being on the right side of a sed subst in config.status.
3253 # Protect against being in an unquoted here document in config.status.
3254 rm -f conftest.vals
3255 cat > conftest.hdr <<\EOF
3256 s/[\\&%]/\\&/g
3257 s%[\\$`]%\\&%g
3258 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3259 s%ac_d%ac_u%gp
3260 s%ac_u%ac_e%gp
3262 sed -n -f conftest.hdr confdefs.h > conftest.vals
3263 rm -f conftest.hdr
3265 # This sed command replaces #undef with comments. This is necessary, for
3266 # example, in the case of _POSIX_SOURCE, which is predefined and required
3267 # on some systems where configure will not decide to define it.
3268 cat >> conftest.vals <<\EOF
3269 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3272 # Break up conftest.vals because some shells have a limit on
3273 # the size of here documents, and old seds have small limits too.
3275 rm -f conftest.tail
3276 while :
3278 ac_lines=`grep -c . conftest.vals`
3279 # grep -c gives empty output for an empty file on some AIX systems.
3280 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3281 # Write a limited-size here document to conftest.frag.
3282 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3283 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3284 echo 'CEOF
3285 sed -f conftest.frag conftest.in > conftest.out
3286 rm -f conftest.in
3287 mv conftest.out conftest.in
3288 ' >> $CONFIG_STATUS
3289 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3290 rm -f conftest.vals
3291 mv conftest.tail conftest.vals
3292 done
3293 rm -f conftest.vals
3295 cat >> $CONFIG_STATUS <<\EOF
3296 rm -f conftest.frag conftest.h
3297 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3298 cat conftest.in >> conftest.h
3299 rm -f conftest.in
3300 if cmp -s $ac_file conftest.h 2>/dev/null; then
3301 echo "$ac_file is unchanged"
3302 rm -f conftest.h
3303 else
3304 # Remove last slash and all that follows it. Not all systems have dirname.
3305 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3307 # The file is in a subdirectory.
3308 test ! -d "$ac_dir" && mkdir "$ac_dir"
3310 rm -f $ac_file
3311 mv conftest.h $ac_file
3313 fi; done
3317 cat >> $CONFIG_STATUS <<EOF
3318 ac_sources="`echo $libc_link_sources`"
3319 ac_dests="`echo $libc_link_dests`"
3322 cat >> $CONFIG_STATUS <<\EOF
3323 srcdir=$ac_given_srcdir
3324 while test -n "$ac_sources"; do
3325 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3326 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3328 echo "linking $srcdir/$ac_source to $ac_dest"
3330 if test ! -r $srcdir/$ac_source; then
3331 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3333 rm -f $ac_dest
3335 # Make relative symlinks.
3336 # Remove last slash and all that follows it. Not all systems have dirname.
3337 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3338 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3339 # The dest file is in a subdirectory.
3340 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3341 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3342 # A "../" for each directory in $ac_dest_dir_suffix.
3343 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3344 else
3345 ac_dest_dir_suffix= ac_dots=
3348 case "$srcdir" in
3349 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3350 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3351 esac
3353 # Make a symlink if possible; otherwise try a hard link.
3354 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3355 ln $srcdir/$ac_source $ac_dest; then :
3356 else
3357 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3359 done
3361 cat >> $CONFIG_STATUS <<EOF
3362 config_vars='$config_vars'
3364 cat >> $CONFIG_STATUS <<\EOF
3366 case $CONFIG_FILES in *config.make*)
3367 echo "$config_vars" >> config.make;;
3368 esac
3369 test -d bits || mkdir bits
3370 exit 0
3372 chmod +x $CONFIG_STATUS
3373 rm -fr confdefs* $ac_clean_files
3374 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3376 if test "$no_recursion" != yes; then
3378 # Remove --cache-file and --srcdir arguments so they do not pile up.
3379 ac_sub_configure_args=
3380 ac_prev=
3381 for ac_arg in $ac_configure_args; do
3382 if test -n "$ac_prev"; then
3383 ac_prev=
3384 continue
3386 case "$ac_arg" in
3387 -cache-file | --cache-file | --cache-fil | --cache-fi \
3388 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3389 ac_prev=cache_file ;;
3390 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3391 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3394 ac_prev=srcdir ;;
3395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3397 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3398 esac
3399 done
3401 for ac_config_dir in $add_ons; do
3403 # Do not complain, so a configure script can configure whichever
3404 # parts of a large source tree are present.
3405 if test ! -d $srcdir/$ac_config_dir; then
3406 continue
3409 echo configuring in $ac_config_dir
3411 case "$srcdir" in
3412 .) ;;
3414 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3415 else
3416 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3419 esac
3421 ac_popdir=`pwd`
3422 cd $ac_config_dir
3424 # A "../" for each directory in /$ac_config_dir.
3425 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3427 case "$srcdir" in
3428 .) # No --srcdir option. We are building in place.
3429 ac_sub_srcdir=$srcdir ;;
3430 /*) # Absolute path.
3431 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3432 *) # Relative path.
3433 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3434 esac
3436 # Check for guested configure; otherwise get Cygnus style configure.
3437 if test -f $ac_sub_srcdir/configure; then
3438 ac_sub_configure=$ac_sub_srcdir/configure
3439 elif test -f $ac_sub_srcdir/configure.in; then
3440 ac_sub_configure=$ac_configure
3441 else
3442 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3443 ac_sub_configure=
3446 # The recursion is here.
3447 if test -n "$ac_sub_configure"; then
3449 # Make the cache file name correct relative to the subdirectory.
3450 case "$cache_file" in
3451 /*) ac_sub_cache_file=$cache_file ;;
3452 *) # Relative path.
3453 ac_sub_cache_file="$ac_dots$cache_file" ;;
3454 esac
3455 case "$ac_given_INSTALL" in
3456 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3457 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3458 esac
3460 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3461 # The eval makes quoting arguments work.
3462 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3463 then :
3464 else
3465 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3469 cd $ac_popdir
3470 done