Update.
[glibc.git] / configure
blob30aa4d530f65eb0bf1f52379a492a48ab4dcf4bb
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.14.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-shared build shared library [default=yes if GNU ld & ELF]"
48 ac_help="$ac_help
49 --enable-profile build profiled library [default=yes]"
50 ac_help="$ac_help
51 --enable-omitfp build undebuggable optimized library [default=no]"
52 ac_help="$ac_help
53 --enable-bounded build with runtime bounds checking [default=no]"
54 ac_help="$ac_help
55 --disable-versioning do not include versioning information in the
56 library objects [default=yes if supported]"
57 ac_help="$ac_help
58 --enable-add-ons[=DIR1,DIR2]...
59 configure and build add-ons in DIR1,DIR2,...
60 search for add-ons if no parameter given"
61 ac_help="$ac_help
62 --enable-static-nss build static NSS modules [default=no]"
63 ac_help="$ac_help
64 --disable-force-install don't force installation of files from this package,
65 even if they are older than the installed files"
66 ac_help="$ac_help
67 --enable-kernel=VERSION compile for compatibility with kernel not older
68 than VERSION"
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
73 build=NONE
74 cache_file=./config.cache
75 exec_prefix=NONE
76 host=NONE
77 no_create=
78 nonopt=NONE
79 no_recursion=
80 prefix=NONE
81 program_prefix=NONE
82 program_suffix=NONE
83 program_transform_name=s,x,x,
84 silent=
85 site=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 ac_max_here_lines=12
111 ac_prev=
112 for ac_option
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
118 ac_prev=
119 continue
122 case "$ac_option" in
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 *) ac_optarg= ;;
125 esac
127 # Accept the important Cygnus configure options, so we can diagnose typos.
129 case "$ac_option" in
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 ac_prev=bindir ;;
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
137 ac_prev=build ;;
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 ac_prev=datadir ;;
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 | --da=*)
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 case "$ac_option" in
171 *=*) ;;
172 *) ac_optarg=yes ;;
173 esac
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
187 with_gas=yes ;;
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
192 cat << EOF
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
195 Configuration:
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
203 [$ac_default_prefix]
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 [same as prefix]
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
210 [PREFIX/share]
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 [PREFIX/com]
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
226 cat << EOF
227 Host type:
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
242 exit 0 ;;
244 -host | --host | --hos | --ho)
245 ac_prev=host ;;
246 -host=* | --host=* | --hos=* | --ho=*)
247 host="$ac_optarg" ;;
249 -includedir | --includedir | --includedi | --included | --include \
250 | --includ | --inclu | --incl | --inc)
251 ac_prev=includedir ;;
252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253 | --includ=* | --inclu=* | --incl=* | --inc=*)
254 includedir="$ac_optarg" ;;
256 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 ac_prev=infodir ;;
258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259 infodir="$ac_optarg" ;;
261 -libdir | --libdir | --libdi | --libd)
262 ac_prev=libdir ;;
263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
264 libdir="$ac_optarg" ;;
266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267 | --libexe | --libex | --libe)
268 ac_prev=libexecdir ;;
269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270 | --libexe=* | --libex=* | --libe=*)
271 libexecdir="$ac_optarg" ;;
273 -localstatedir | --localstatedir | --localstatedi | --localstated \
274 | --localstate | --localstat | --localsta | --localst \
275 | --locals | --local | --loca | --loc | --lo)
276 ac_prev=localstatedir ;;
277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280 localstatedir="$ac_optarg" ;;
282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 ac_prev=mandir ;;
284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285 mandir="$ac_optarg" ;;
287 -nfp | --nfp | --nf)
288 # Obsolete; use --without-fp.
289 with_fp=no ;;
291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 | --no-cr | --no-c)
293 no_create=yes ;;
295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 no_recursion=yes ;;
299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301 | --oldin | --oldi | --old | --ol | --o)
302 ac_prev=oldincludedir ;;
303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306 oldincludedir="$ac_optarg" ;;
308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 ac_prev=prefix ;;
310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311 prefix="$ac_optarg" ;;
313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
314 | --program-pre | --program-pr | --program-p)
315 ac_prev=program_prefix ;;
316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318 program_prefix="$ac_optarg" ;;
320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
321 | --program-suf | --program-su | --program-s)
322 ac_prev=program_suffix ;;
323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325 program_suffix="$ac_optarg" ;;
327 -program-transform-name | --program-transform-name \
328 | --program-transform-nam | --program-transform-na \
329 | --program-transform-n | --program-transform- \
330 | --program-transform | --program-transfor \
331 | --program-transfo | --program-transf \
332 | --program-trans | --program-tran \
333 | --progr-tra | --program-tr | --program-t)
334 ac_prev=program_transform_name ;;
335 -program-transform-name=* | --program-transform-name=* \
336 | --program-transform-nam=* | --program-transform-na=* \
337 | --program-transform-n=* | --program-transform-=* \
338 | --program-transform=* | --program-transfor=* \
339 | --program-transfo=* | --program-transf=* \
340 | --program-trans=* | --program-tran=* \
341 | --progr-tra=* | --program-tr=* | --program-t=*)
342 program_transform_name="$ac_optarg" ;;
344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345 | -silent | --silent | --silen | --sile | --sil)
346 silent=yes ;;
348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 ac_prev=sbindir ;;
350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 | --sbi=* | --sb=*)
352 sbindir="$ac_optarg" ;;
354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356 | --sharedst | --shareds | --shared | --share | --shar \
357 | --sha | --sh)
358 ac_prev=sharedstatedir ;;
359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 | --sha=* | --sh=*)
363 sharedstatedir="$ac_optarg" ;;
365 -site | --site | --sit)
366 ac_prev=site ;;
367 -site=* | --site=* | --sit=*)
368 site="$ac_optarg" ;;
370 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 ac_prev=srcdir ;;
372 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
373 srcdir="$ac_optarg" ;;
375 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
376 | --syscon | --sysco | --sysc | --sys | --sy)
377 ac_prev=sysconfdir ;;
378 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
379 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
380 sysconfdir="$ac_optarg" ;;
382 -target | --target | --targe | --targ | --tar | --ta | --t)
383 ac_prev=target ;;
384 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
385 target="$ac_optarg" ;;
387 -v | -verbose | --verbose | --verbos | --verbo | --verb)
388 verbose=yes ;;
390 -version | --version | --versio | --versi | --vers)
391 echo "configure generated by autoconf version 2.14.1"
392 exit 0 ;;
394 -with-* | --with-*)
395 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 case "$ac_option" in
402 *=*) ;;
403 *) ac_optarg=yes ;;
404 esac
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* | --without-*)
408 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
416 --x)
417 # Obsolete; use --with-x.
418 with_x=yes ;;
420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
421 | --x-incl | --x-inc | --x-in | --x-i)
422 ac_prev=x_includes ;;
423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
425 x_includes="$ac_optarg" ;;
427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
429 ac_prev=x_libraries ;;
430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
432 x_libraries="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 nonopt="$ac_option"
447 esac
448 done
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
457 # 0 standard input
458 # 1 file creation
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
465 exec 6>/dev/null
466 else
467 exec 6>&1
469 exec 5>./config.log
471 echo "\
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
474 " 1>&5
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
478 ac_configure_args=
479 for ac_arg
481 case "$ac_arg" in
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c) ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489 esac
490 done
492 # NLS nuisances.
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 echo > confdefs.h
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file=include/features.h
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted=yes
514 # Try the directory containing this script, then its parent.
515 ac_prog=$0
516 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 srcdir=$ac_confdir
519 if test ! -r $srcdir/$ac_unique_file; then
520 srcdir=..
522 else
523 ac_srcdir_defaulted=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 else
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE; then
537 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 else
539 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 for ac_site_file in $CONFIG_SITE; do
543 if test -r "$ac_site_file"; then
544 echo "loading site script $ac_site_file"
545 . "$ac_site_file"
547 done
549 if test -r "$cache_file"; then
550 echo "loading cache $cache_file"
551 test -f "$cache_file" && . $cache_file
552 else
553 echo "creating cache $cache_file"
554 > $cache_file
557 ac_ext=c
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CPP $CPPFLAGS'
560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cc_cross
564 ac_exeext=
565 ac_objext=o
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
569 ac_n= ac_c='
570 ' ac_t=' '
571 else
572 ac_n=-n ac_c= ac_t=
574 else
575 ac_n= ac_c='\c' ac_t=
578 if test -r /vmunix; then
579 kernel_id=`strings /vmunix | grep UNIX`
580 elif test -r /dynix; then
581 kernel_id=`strings /dynix | grep DYNIX`
582 else
583 kernel_id=
588 ac_aux_dir=
589 for ac_dir in scripts $srcdir/scripts; do
590 if test -f $ac_dir/install-sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install-sh -c"
593 break
594 elif test -f $ac_dir/install.sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install.sh -c"
597 break
599 done
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
603 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
604 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
605 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
608 # This will get text that should go into config.make.
609 config_vars=
611 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
612 # Check whether --with-gmp or --without-gmp was given.
613 if test "${with_gmp+set}" = set; then
614 withval="$with_gmp"
615 case "$with_gmp" in
616 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
617 ''|no) ;;
618 *) config_vars="$config_vars
619 gmp-srcdir = $withval" ;;
620 esac
624 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
625 # Check whether --with-gettext or --without-gettext was given.
626 if test "${with_gettext+set}" = set; then
627 withval="$with_gettext"
628 case "$with_gettext" in
629 yes)
630 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
631 ''|no) ;;
633 config_vars="$config_vars
634 gettext-srcdir = $withval" ;;
635 esac
640 # Check whether --with-fp or --without-fp was given.
641 if test "${with_fp+set}" = set; then
642 withval="$with_fp"
643 with_fp=$withval
644 else
645 with_fp=yes
648 # Check whether --with-binutils or --without-binutils was given.
649 if test "${with_binutils+set}" = set; then
650 withval="$with_binutils"
651 path_binutils=$withval
652 else
653 path_binutils=''
656 # Check whether --with-elf or --without-elf was given.
657 if test "${with_elf+set}" = set; then
658 withval="$with_elf"
659 elf=$withval
660 else
661 elf=no
664 # Check whether --with-cvs or --without-cvs was given.
665 if test "${with_cvs+set}" = set; then
666 withval="$with_cvs"
667 with_cvs=$withval
668 else
669 with_cvs=yes
674 # Check whether --with-headers or --without-headers was given.
675 if test "${with_headers+set}" = set; then
676 withval="$with_headers"
677 sysheaders=$withval
678 else
679 sysheaders=''
683 # Check whether --enable-libio or --disable-libio was given.
684 if test "${enable_libio+set}" = set; then
685 enableval="$enable_libio"
686 if test $enableval = yes; then
687 stdio=libio
688 else
689 stdio=stdio
691 else
692 stdio=default
696 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
697 if test "${enable_sanity_checks+set}" = set; then
698 enableval="$enable_sanity_checks"
699 enable_sanity=$enableval
700 else
701 enable_sanity=yes
705 static=yes
706 # Check whether --enable-shared or --disable-shared was given.
707 if test "${enable_shared+set}" = set; then
708 enableval="$enable_shared"
709 shared=$enableval
710 else
711 shared=default
714 # Check whether --enable-profile or --disable-profile was given.
715 if test "${enable_profile+set}" = set; then
716 enableval="$enable_profile"
717 profile=$enableval
718 else
719 profile=yes
722 # Check whether --enable-omitfp or --disable-omitfp was given.
723 if test "${enable_omitfp+set}" = set; then
724 enableval="$enable_omitfp"
725 omitfp=$enableval
726 else
727 omitfp=no
730 # Check whether --enable-bounded or --disable-bounded was given.
731 if test "${enable_bounded+set}" = set; then
732 enableval="$enable_bounded"
733 bounded=$enableval
734 else
735 bounded=no
738 # Check whether --enable-versioning or --disable-versioning was given.
739 if test "${enable_versioning+set}" = set; then
740 enableval="$enable_versioning"
741 enable_versioning=$enableval
742 else
743 enable_versioning=yes
747 # Check whether --enable-add-ons or --disable-add-ons was given.
748 if test "${enable_add_ons+set}" = set; then
749 enableval="$enable_add_ons"
750 case "$enableval" in
751 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
752 test "$add_ons" = "*" && add_ons= ;;
753 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
754 esac
755 else
756 add_ons=
760 subdirs="$add_ons"
762 add_ons_pfx=
763 if test x"$add_ons" != x; then
764 for f in $add_ons; do
765 # Test whether such a subdir really exists.
766 if test -d $srcdir/$f; then
767 add_ons_pfx="$add_ons_pfx $f/"
768 else
769 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
771 done
774 # Check whether --enable-static-nss or --disable-static-nss was given.
775 if test "${enable_static_nss+set}" = set; then
776 enableval="$enable_static_nss"
777 static_nss=$enableval
778 else
779 static_nss=no
782 if test x"$static_nss" = xyes; then
783 cat >> confdefs.h <<\EOF
784 #define DO_STATIC_NSS 1
789 # Check whether --enable-force-install or --disable-force-install was given.
790 if test "${enable_force_install+set}" = set; then
791 enableval="$enable_force_install"
792 force_install=$enableval
793 else
794 force_install=yes
799 # Check whether --enable-kernel or --disable-kernel was given.
800 if test "${enable_kernel+set}" = set; then
801 enableval="$enable_kernel"
802 minimum_kernel=$enableval
807 echo $ac_n "checking host system type""... $ac_c" 1>&6
808 echo "configure:809: checking host system type" >&5
809 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
811 # Make sure we can run config.sub.
812 if $ac_config_sub sun4 >/dev/null 2>&1; then :
813 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
816 ac_cv_host_alias=$host
817 case "$ac_cv_host_alias" in
818 NONE)
819 case $nonopt in
820 NONE)
821 if ac_cv_host_alias=`$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 *) ac_cv_host_alias=$nonopt ;;
825 esac ;;
826 esac
828 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
829 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 else
833 echo $ac_n "(cached) $ac_c" 1>&6
836 echo "$ac_t""$ac_cv_host" 1>&6
838 host=$ac_cv_host
839 host_alias=$ac_cv_host_alias
840 host_cpu=$ac_cv_host_cpu
841 host_vendor=$ac_cv_host_vendor
842 host_os=$ac_cv_host_os
848 # The way shlib-versions is used to generate soversions.mk uses a
849 # fairly simplistic model for name recognition that can't distinguish
850 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
851 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
852 # tell. This doesn't get used much beyond that, so it's fairly safe.
853 case "$host_os" in
854 linux*)
856 gnu*)
857 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
859 esac
861 # We keep the original values in `$config_*' and never modify them, so we
862 # can write them unchanged into config.make. Everything else uses
863 # $machine, $vendor, and $os, and changes them whenever convenient.
864 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
866 # Some configurations imply other options.
867 case "$host_os" in
868 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
869 # These systems always use GNU tools.
870 gnu_ld=yes gnu_as=yes ;;
871 esac
872 case "$host_os" in
873 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
874 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
876 gnu* | linux* | sysv4* | solaris2* | irix6*)
877 # These systems (almost) always use the ELF format.
878 elf=yes
880 esac
882 machine=$config_machine
883 vendor=$config_vendor
884 os=$config_os
887 ### I put this here to prevent those annoying emails from people who cannot
888 ### read and try to compile glibc on unsupported platforms. --drepper
890 ### By using the undocumented --enable-hacker-mode option for configure
891 ### one can skip this test to make the configuration not fail for unsupported
892 ### platforms.
894 if test -z "$enable_hacker_mode"; then
895 case "$machine-$host_os" in
896 *-linux* | *-gnu* | arm*-none*)
899 echo "*** The GNU C library is currently not available for this platform."
900 echo "*** So far nobody cared to port it and if there is no volunteer it"
901 echo "*** might never happen. So, if you have interest to see glibc on"
902 echo "*** this platform visit"
903 echo "*** http://www.gnu.org/software/libc/porting.html"
904 echo "*** and join the group of porters"
905 exit 1
907 esac
910 # Expand the configuration machine name into a subdirectory by architecture
911 # type and particular chip.
912 case "$machine" in
913 a29k | am29000) base_machine=a29k machine=a29k ;;
914 alpha*) base_machine=alpha machine=alpha/$machine ;;
915 arm*) base_machine=arm machine=arm/$machine ;;
916 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
917 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
918 hppa*) base_machine=hppa machine=hppa/$machine ;;
919 i[3456]86) base_machine=i386 machine=i386/$machine ;;
920 m680?0) base_machine=m68k machine=m68k/$machine ;;
921 m68k) base_machine=m68k machine=m68k/m68020 ;;
922 m88???) base_machine=m88k machine=m88k/$machine ;;
923 m88k) base_machine=m88k machine=m88k/m88100 ;;
924 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
925 mips*) base_machine=mips
926 case "`uname -m`" in
927 IP22) machine=mips/mips3 ;;
928 *) machine=mips/$machine ;;
929 esac ;;
930 sparc | sparcv[67])
931 base_machine=sparc machine=sparc/sparc32 ;;
932 sparcv8 | supersparc | hypersparc)
933 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
934 sparcv8plus | sparcv8plusa | sparcv9)
935 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
936 sparc64 | ultrasparc)
937 base_machine=sparc machine=sparc/sparc64 ;;
938 esac
941 if test "$base_machine" = "i386"; then
942 cat >> confdefs.h <<\EOF
943 #define USE_REGPARMS 1
948 # Compute the list of sysdep directories for this configuration.
949 # This can take a while to compute.
950 sysdep_dir=$srcdir/sysdeps
951 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
952 echo "configure:953: checking sysdep dirs" >&5
953 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
954 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
956 case "$os" in
957 gnu*)
958 base_os=mach/hurd ;;
959 netbsd* | 386bsd* | freebsd* | bsdi*)
960 base_os=unix/bsd/bsd4.4 ;;
961 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
962 base_os=unix/bsd ;;
963 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
964 base_os=unix/sysv ;;
965 irix6*)
966 base_os=unix/sysv/irix6/$os ;;
967 solaris[2-9]*)
968 base_os=unix/sysv/sysv4 ;;
969 hpux*)
970 base_os=unix/sysv/hpux/$os ;;
971 none)
972 base_os=standalone ;;
974 base_os='' ;;
975 esac
977 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
978 tail=$os
979 ostry=$os
980 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
981 ostry="$ostry /$o"
982 tail=$o
983 done
984 o=`echo $tail | sed 's/[0-9]*$//'`
985 if test $o != $tail; then
986 ostry="$ostry /$o"
988 # For linux-gnu, try linux-gnu, then linux.
989 o=`echo $tail | sed 's/-.*$//'`
990 if test $o != $tail; then
991 ostry="$ostry /$o"
994 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
995 base=
996 tail=$base_os
997 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
998 set $b
999 base="$base /$1"
1000 tail="$2"
1001 done
1003 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1004 mach=
1005 tail=$machine
1006 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1007 set $m
1008 # Prepend the machine's FPU directory unless --without-fp.
1009 if test "$with_fp" = yes; then
1010 mach="$mach /$1/fpu"
1012 mach="$mach /$1"
1013 tail="$2"
1014 done
1017 # Find what sysdep directories exist.
1018 sysnames=
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1020 for d in $add_ons_pfx ''; do
1021 for b in $base ''; do
1022 for m0 in $mach ''; do
1023 for v in /$vendor ''; do
1024 test "$v" = / && continue
1025 for o in /$ostry ''; do
1026 test "$o" = / && continue
1027 for m in $mach ''; do
1028 if test "$m0$b$v$o$m"; then
1029 try="${d}sysdeps$m0$b$v$o$m"
1030 test -n "$enable_debug_configure" &&
1031 echo "$0 DEBUG: try $try" >&2
1032 if test -d $srcdir/$try; then
1033 sysnames="$sysnames $try"
1034 { test -n "$o" || test -n "$b"; } && os_used=t
1035 { test -n "$m" || test -n "$m0"; } && machine_used=t
1038 done
1039 done
1040 done
1041 done
1042 done
1043 done
1044 IFS="$ac_save_ifs"
1046 if test -z "$os_used" && test "$os" != none; then
1047 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1049 if test -z "$machine_used" && test "$machine" != none; then
1050 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1053 # We have now validated the configuration.
1056 # If using ELF, look for an `elf' subdirectory of each machine directory.
1057 # We prepend these rather than inserting them whereever the machine appears
1058 # because things specified by the machine's ELF ABI should override
1059 # OS-specific things, and should always be the same for any OS on the
1060 # machine (otherwise what's the point of an ABI?).
1061 if test "$elf" = yes; then
1062 elf_dirs=
1063 for d in $add_ons_pfx ''; do
1064 for m in $mach; do
1065 if test -d $srcdir/${d}sysdeps$m/elf; then
1066 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1068 done
1069 done
1070 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1074 # Expand the list of system names into a full list of directories
1075 # from each element's parent name and Implies file (if present).
1076 set $sysnames
1077 names=
1078 while test $# -gt 0; do
1079 name=$1
1080 shift
1082 case " $names " in *" $name "*)
1083 # Already in the list.
1084 continue
1085 esac
1087 # Report each name as we discover it, so there is no long pause in output.
1088 echo $ac_n "$name $ac_c" >&6
1090 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1092 case $name in
1093 /*) xsrcdir= ;;
1094 *) xsrcdir=$srcdir/ ;;
1095 esac
1096 test -n "$enable_debug_configure" &&
1097 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1099 if test -f $xsrcdir$name/Implies; then
1100 # Collect more names from the `Implies' file (removing comments).
1101 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1102 implied=
1103 for x in $implied_candidate; do
1104 if test -d $xsrcdir$name_base/$x; then
1105 implied="$implied $name_base/$x";
1106 else
1107 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1109 done
1110 else
1111 implied=
1114 # Add NAME to the list of names.
1115 names="$names $name"
1117 # Find the parent of NAME, using the empty string if it has none.
1118 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1120 # Add the names implied by NAME, and NAME's parent (if it has one), to
1121 # the list of names to be processed (the argument list). We prepend the
1122 # implied names to the list and append the parent. We want implied
1123 # directories to come before further directories inferred from the
1124 # configuration components; this ensures that for sysv4, unix/common
1125 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1126 # after sysv4).
1127 sysnames="`echo $implied $* $parent`"
1128 test -n "$sysnames" && set $sysnames
1129 done
1131 # Add the default directories.
1132 default_sysnames=sysdeps/generic
1133 if test "$elf" = yes; then
1134 default_sysnames="sysdeps/generic/elf $default_sysnames"
1136 sysnames="$names $default_sysnames"
1138 # The other names were emitted during the scan.
1139 echo "$ac_t""$default_sysnames" 1>&6
1142 ### Locate tools.
1144 # Find a good install program. We prefer a C program (faster),
1145 # so one script is as good as another. But avoid the broken or
1146 # incompatible versions:
1147 # SysV /etc/install, /usr/sbin/install
1148 # SunOS /usr/etc/install
1149 # IRIX /sbin/install
1150 # AIX /bin/install
1151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1154 # ./install, which can be erroneously created by make from ./install.sh.
1155 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1156 echo "configure:1157: checking for a BSD compatible install" >&5
1157 if test -z "$INSTALL"; then
1158 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1160 else
1161 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1162 for ac_dir in $PATH; do
1163 # Account for people who put trailing slashes in PATH elements.
1164 case "$ac_dir/" in
1165 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1167 # OSF1 and SCO ODT 3.0 have their own names for install.
1168 # Don't use installbsd from OSF since it installs stuff as root
1169 # by default.
1170 for ac_prog in ginstall scoinst install; do
1171 if test -f $ac_dir/$ac_prog; then
1172 if test $ac_prog = install &&
1173 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1174 # AIX install. It has an incompatible calling convention.
1176 elif test $ac_prog = install &&
1177 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1178 # program-specific install script used by HP pwplus--don't use.
1180 else
1181 ac_cv_path_install="$ac_dir/$ac_prog -c"
1182 break 2
1185 done
1187 esac
1188 done
1189 IFS="$ac_save_IFS"
1192 if test "${ac_cv_path_install+set}" = set; then
1193 INSTALL="$ac_cv_path_install"
1194 else
1195 # As a last resort, use the slow shell script. We don't cache a
1196 # path for INSTALL within a source directory, because that will
1197 # break other packages using the cache if that directory is
1198 # removed, or if the path is relative.
1199 INSTALL="$ac_install_sh"
1202 echo "$ac_t""$INSTALL" 1>&6
1204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1205 # It thinks the first close brace ends the variable substitution.
1206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1212 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1213 # The makefiles need to use a different form to find it in $srcdir.
1214 INSTALL='\$(..)./scripts/install-sh -c'
1216 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ln -s works" >&5
1218 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221 rm -f conftestdata
1222 if ln -s X conftestdata 2>/dev/null
1223 then
1224 rm -f conftestdata
1225 ac_cv_prog_LN_S="ln -s"
1226 else
1227 ac_cv_prog_LN_S=ln
1230 LN_S="$ac_cv_prog_LN_S"
1231 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1232 echo "$ac_t""yes" 1>&6
1233 else
1234 echo "$ac_t""no" 1>&6
1238 # These programs are version sensitive.
1240 echo $ac_n "checking build system type""... $ac_c" 1>&6
1241 echo "configure:1242: checking build system type" >&5
1242 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1244 # Make sure we can run config.sub.
1245 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1246 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1249 ac_cv_build_alias=$build
1250 case "$ac_cv_build_alias" in
1251 NONE)
1252 case $nonopt in
1253 NONE)
1254 ac_cv_build_alias=$host_alias ;;
1256 *) ac_cv_build_alias=$nonopt ;;
1257 esac ;;
1258 esac
1260 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1261 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1262 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1263 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1264 else
1265 echo $ac_n "(cached) $ac_c" 1>&6
1268 echo "$ac_t""$ac_cv_build" 1>&6
1270 build=$ac_cv_build
1271 build_alias=$ac_cv_build_alias
1272 build_cpu=$ac_cv_build_cpu
1273 build_vendor=$ac_cv_build_vendor
1274 build_os=$ac_cv_build_os
1279 if test $host != $build; then
1280 ac_tool_prefix=${host_alias}-
1281 else
1282 ac_tool_prefix=
1285 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1287 # Extract the first word of "$ac_prog", so it can be a program name with args.
1288 set dummy $ac_prog; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC="$CC" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_CC="$ac_prog"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 CC="$ac_cv_prog_CC"
1310 if test -n "$CC"; then
1311 echo "$ac_t""$CC" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1316 test -n "$CC" && break
1317 done
1319 if test -z "$CC"; then
1320 ac_verc_fail=yes
1321 else
1322 # Found it, now check the version.
1323 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1324 echo "configure:1325: checking version of $CC" >&5
1325 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1326 case $ac_prog_version in
1327 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1328 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9].*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9])
1329 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1330 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1332 esac
1333 echo "$ac_t""$ac_prog_version" 1>&6
1335 if test $ac_verc_fail = yes; then
1336 critic_missing=t
1339 for ac_prog in gnumake gmake make
1341 # Extract the first word of "$ac_prog", so it can be a program name with args.
1342 set dummy $ac_prog; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"\${ac_cv_prog_MAKE+set}\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 if test -n "$MAKE"; then
1349 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1350 else
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 ac_dummy="$PATH"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_MAKE="$ac_prog"
1357 break
1359 done
1360 IFS="$ac_save_ifs"
1363 MAKE="$ac_cv_prog_MAKE"
1364 if test -n "$MAKE"; then
1365 echo "$ac_t""$MAKE" 1>&6
1366 else
1367 echo "$ac_t""no" 1>&6
1370 test -n "$MAKE" && break
1371 done
1373 if test -z "$MAKE"; then
1374 ac_verc_fail=yes
1375 else
1376 # Found it, now check the version.
1377 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1378 echo "configure:1379: checking version of $MAKE" >&5
1379 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1380 case $ac_prog_version in
1381 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1382 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1383 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1384 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1386 esac
1387 echo "$ac_t""$ac_prog_version" 1>&6
1389 if test $ac_verc_fail = yes; then
1390 critic_missing=t
1394 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1396 # Extract the first word of "$ac_prog", so it can be a program name with args.
1397 set dummy $ac_prog; ac_word=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"\${ac_cv_prog_MSGFMT+set}\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 if test -n "$MSGFMT"; then
1404 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1405 else
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1407 ac_dummy="$PATH"
1408 for ac_dir in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_MSGFMT="$ac_prog"
1412 break
1414 done
1415 IFS="$ac_save_ifs"
1418 MSGFMT="$ac_cv_prog_MSGFMT"
1419 if test -n "$MSGFMT"; then
1420 echo "$ac_t""$MSGFMT" 1>&6
1421 else
1422 echo "$ac_t""no" 1>&6
1425 test -n "$MSGFMT" && break
1426 done
1428 if test -z "$MSGFMT"; then
1429 ac_verc_fail=yes
1430 else
1431 # Found it, now check the version.
1432 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1433 echo "configure:1434: checking version of $MSGFMT" >&5
1434 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1435 case $ac_prog_version in
1436 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1437 0.[1-9][0-9].* | [1-9].*)
1438 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1439 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1441 esac
1442 echo "$ac_t""$ac_prog_version" 1>&6
1444 if test $ac_verc_fail = yes; then
1445 MSGFMT=: aux_missing=t
1448 for ac_prog in makeinfo
1450 # Extract the first word of "$ac_prog", so it can be a program name with args.
1451 set dummy $ac_prog; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1456 else
1457 if test -n "$MAKEINFO"; then
1458 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1459 else
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1461 ac_dummy="$PATH"
1462 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_MAKEINFO="$ac_prog"
1466 break
1468 done
1469 IFS="$ac_save_ifs"
1472 MAKEINFO="$ac_cv_prog_MAKEINFO"
1473 if test -n "$MAKEINFO"; then
1474 echo "$ac_t""$MAKEINFO" 1>&6
1475 else
1476 echo "$ac_t""no" 1>&6
1479 test -n "$MAKEINFO" && break
1480 done
1482 if test -z "$MAKEINFO"; then
1483 ac_verc_fail=yes
1484 else
1485 # Found it, now check the version.
1486 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1487 echo "configure:1488: checking version of $MAKEINFO" >&5
1488 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1489 case $ac_prog_version in
1490 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1491 3.1[1-9] | 3.[2-9][0-9] | 1.6[89] | 1.7[0-9])
1492 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1493 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1495 esac
1496 echo "$ac_t""$ac_prog_version" 1>&6
1498 if test $ac_verc_fail = yes; then
1499 MAKEINFO=: aux_missing=t
1503 if test -n "$critic_missing"; then
1504 { echo "configure: error:
1505 *** Some critical program is missing or too old.
1506 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1509 test -n "$aux_missing" && echo "configure: warning:
1510 *** An auxiliary program is missing or too old;
1511 *** some features will be disabled.
1512 *** Check the INSTALL file for required versions." 1>&2
1515 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1516 echo "configure:1517: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1517 if eval "test \"\${ac_cv_prog_cc_works+set}\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1521 ac_ext=c
1522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1523 ac_cpp='$CPP $CPPFLAGS'
1524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1526 cross_compiling=$ac_cv_prog_cc_cross
1528 cat > conftest.$ac_ext << EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1533 main(){return(0);}
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536 ac_cv_prog_cc_works=yes
1537 # If we can't run a trivial program, we are probably using a cross compiler.
1538 if (./conftest; exit) 2>/dev/null; then
1539 ac_cv_prog_cc_cross=no
1540 else
1541 ac_cv_prog_cc_cross=yes
1543 else
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 ac_cv_prog_cc_works=no
1548 rm -fr conftest*
1549 ac_ext=c
1550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1554 cross_compiling=$ac_cv_prog_cc_cross
1558 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1559 if test $ac_cv_prog_cc_works = no; then
1560 cross_linkable=no
1561 ac_cv_prog_cc_cross=yes
1562 else
1563 cross_linkable=yes
1565 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567 if eval "test \"\${ac_cv_prog_cc_cross+set}\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1569 else
1573 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1575 cross_compiling=$ac_cv_prog_cc_cross
1577 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether we are using GNU C" >&5
1579 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 cat > conftest.c <<EOF
1583 #ifdef __GNUC__
1584 yes;
1585 #endif
1587 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1588 ac_cv_prog_gcc=yes
1589 else
1590 ac_cv_prog_gcc=no
1594 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1595 if test $ac_cv_prog_gcc != yes; then
1596 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1600 echo $ac_n "checking build system type""... $ac_c" 1>&6
1601 echo "configure:1602: checking build system type" >&5
1602 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1604 # Make sure we can run config.sub.
1605 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1609 ac_cv_build_alias=$build
1610 case "$ac_cv_build_alias" in
1611 NONE)
1612 case $nonopt in
1613 NONE)
1614 ac_cv_build_alias=$host_alias ;;
1616 *) ac_cv_build_alias=$nonopt ;;
1617 esac ;;
1618 esac
1620 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1621 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624 else
1625 echo $ac_n "(cached) $ac_c" 1>&6
1628 echo "$ac_t""$ac_cv_build" 1>&6
1630 build=$ac_cv_build
1631 build_alias=$ac_cv_build_alias
1632 build_cpu=$ac_cv_build_cpu
1633 build_vendor=$ac_cv_build_vendor
1634 build_os=$ac_cv_build_os
1639 if test $host != $build; then
1640 for ac_prog in gcc cc
1642 # Extract the first word of "$ac_prog", so it can be a program name with args.
1643 set dummy $ac_prog; ac_word=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1646 if eval "test \"\${ac_cv_prog_BUILD_CC+set}\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1648 else
1649 if test -n "$BUILD_CC"; then
1650 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1651 else
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1653 ac_dummy="$PATH"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_BUILD_CC="$ac_prog"
1658 break
1660 done
1661 IFS="$ac_save_ifs"
1664 BUILD_CC="$ac_cv_prog_BUILD_CC"
1665 if test -n "$BUILD_CC"; then
1666 echo "$ac_t""$BUILD_CC" 1>&6
1667 else
1668 echo "$ac_t""no" 1>&6
1671 test -n "$BUILD_CC" && break
1672 done
1676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1677 echo "configure:1678: checking how to run the C preprocessor" >&5
1678 # On Suns, sometimes $CPP names a directory.
1679 if test -n "$CPP" && test -d "$CPP"; then
1680 CPP=
1682 if test -z "$CPP"; then
1683 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 # This must be in double quotes, not single quotes, because CPP may get
1687 # substituted into the Makefile and "${CC-cc}" will confuse make.
1688 CPP="${CC-cc} -E"
1689 # On the NeXT, cc -E runs the code through the compiler's parser,
1690 # not just through cpp.
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 #include <assert.h>
1695 Syntax Error
1697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698 { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1700 if test -z "$ac_err"; then
1702 else
1703 echo "$ac_err" >&5
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 CPP="${CC-cc} -E -traditional-cpp"
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 #include <assert.h>
1712 Syntax Error
1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1719 else
1720 echo "$ac_err" >&5
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 rm -rf conftest*
1724 CPP="${CC-cc} -nologo -E"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 #include <assert.h>
1729 Syntax Error
1731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1732 { (eval echo configure:1733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1734 if test -z "$ac_err"; then
1736 else
1737 echo "$ac_err" >&5
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 CPP=/lib/cpp
1743 rm -f conftest*
1745 rm -f conftest*
1747 rm -f conftest*
1748 ac_cv_prog_CPP="$CPP"
1750 CPP="$ac_cv_prog_CPP"
1751 else
1752 ac_cv_prog_CPP="$CPP"
1754 echo "$ac_t""$CPP" 1>&6
1756 # Was a --with-binutils option given?
1757 if test -n "$path_binutils"; then
1758 # Make absolute; ensure a single trailing slash.
1759 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1760 CC="$CC -B$path_binutils"
1762 AS=`$CC -print-prog-name=as`
1763 LD=`$CC -print-prog-name=ld`
1764 AR=`$CC -print-prog-name=ar`
1767 # ranlib has to be treated a bit differently since it might not exist at all.
1768 RANLIB=`$CC -print-prog-name=ranlib`
1769 if test $RANLIB = ranlib; then
1770 # This extra check has to happen since gcc simply echos the parameter in
1771 # case it cannot find the value in its own directories.
1772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}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 \"\${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=":"
1783 ac_dummy="$PATH"
1784 for ac_dir in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir=.
1786 if test -f $ac_dir/$ac_word; then
1787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1788 break
1790 done
1791 IFS="$ac_save_ifs"
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
1802 if test -z "$ac_cv_prog_RANLIB"; then
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "ranlib", so it can be a program name with args.
1805 set dummy ranlib; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 if test -n "$RANLIB"; then
1812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1813 else
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 ac_dummy="$PATH"
1816 for ac_dir in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_prog_RANLIB="ranlib"
1820 break
1822 done
1823 IFS="$ac_save_ifs"
1824 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1827 RANLIB="$ac_cv_prog_RANLIB"
1828 if test -n "$RANLIB"; then
1829 echo "$ac_t""$RANLIB" 1>&6
1830 else
1831 echo "$ac_t""no" 1>&6
1834 else
1835 RANLIB=":"
1842 # Determine whether we are using GNU binutils.
1843 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether $AS is GNU as" >&5
1845 if eval "test \"\${libc_cv_prog_as_gnu+set}\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 # Most GNU programs take a -v and spit out some text including
1849 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1850 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1851 libc_cv_prog_as_gnu=yes
1852 else
1853 libc_cv_prog_as_gnu=no
1855 rm -fr contest*
1858 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1859 rm -f a.out
1860 gnu_as=$libc_cv_prog_as_gnu
1862 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1863 echo "configure:1864: checking whether $LD is GNU ld" >&5
1864 if eval "test \"\${libc_cv_prog_ld_gnu+set}\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 # Most GNU programs take a -v and spit out some text including
1868 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1869 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1870 libc_cv_prog_ld_gnu=yes
1871 else
1872 libc_cv_prog_ld_gnu=no
1874 rm -fr contest*
1877 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1878 gnu_ld=$libc_cv_prog_ld_gnu
1880 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}mig; ac_word=$2
1882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_word" >&5
1884 if eval "test \"\${ac_cv_prog_MIG+set}\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 if test -n "$MIG"; then
1888 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1889 else
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1891 ac_dummy="$PATH"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1895 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1896 break
1898 done
1899 IFS="$ac_save_ifs"
1900 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1903 MIG="$ac_cv_prog_MIG"
1904 if test -n "$MIG"; then
1905 echo "$ac_t""$MIG" 1>&6
1906 else
1907 echo "$ac_t""no" 1>&6
1913 # if using special system headers, find out the compiler's sekrit
1914 # header directory and add that to the list. NOTE: Only does the right
1915 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1916 if test -n "$sysheaders"; then
1917 ccheaders=`$CC -print-file-name=include`
1918 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1922 # check if ranlib is necessary
1923 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1924 echo "configure:1925: checking whether ranlib is necessary" >&5
1925 if eval "test \"\${libc_cv_ranlib_necessary+set}\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927 else
1928 cat > conftest.c <<EOF
1929 int a;
1930 char b;
1931 void c(void) {}
1933 $CC $CFLAGS -c conftest.c
1934 $AR cr conftest.a conftest.c
1935 cp conftest.a conftest2.a
1936 $RANLIB conftest.a
1937 if cmp -s conftest.a conftest2.a; then
1938 libc_cv_ranlib_necessary=no
1939 else
1940 libc_cv_ranlib_necessary=yes
1942 rm -rf conftest*
1945 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1946 if test "$libc_cv_ranlib_necessary" = no; then
1947 RANLIB=:
1950 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1951 # since this would lead to problems installing/building glibc.
1952 # LD_LIBRARY_PATH contains the current directory if one of the following
1953 # is true:
1954 # - one of the terminals (":" and ";") is the first or last sign
1955 # - two terminals occur directly after each other
1956 # - the path contains an element with a dot in it
1957 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1958 echo "configure:1959: checking LD_LIBRARY_PATH variable" >&5
1959 case ${LD_LIBRARY_PATH} in
1960 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1961 ld_library_path_setting="contains current directory"
1964 ld_library_path_setting="ok"
1966 esac
1967 echo "$ac_t""$ld_library_path_setting" 1>&6
1968 if test "$ld_library_path_setting" != "ok"; then
1969 { echo "configure: error:
1970 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1971 *** building glibc. Please change the environment variable
1972 *** and run configure again." 1>&2; exit 1; }
1975 # Extract the first word of "bash", so it can be a program name with args.
1976 set dummy bash; ac_word=$2
1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_word" >&5
1979 if eval "test \"\${ac_cv_path_BASH+set}\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1981 else
1982 case "$BASH" in
1984 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1986 ?:/*)
1987 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 ac_dummy="$PATH"
1992 for ac_dir in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_path_BASH="$ac_dir/$ac_word"
1996 break
1998 done
1999 IFS="$ac_save_ifs"
2000 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2002 esac
2004 BASH="$ac_cv_path_BASH"
2005 if test -n "$BASH"; then
2006 echo "$ac_t""$BASH" 1>&6
2007 else
2008 echo "$ac_t""no" 1>&6
2011 if test "$BASH" != no &&
2012 $BASH -c 'test "$BASH_VERSINFO" \
2013 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2014 libc_cv_have_bash2=yes
2015 else
2016 libc_cv_have_bash2=no
2020 if test "$BASH" = no; then
2021 # Extract the first word of "ksh", so it can be a program name with args.
2022 set dummy ksh; ac_word=$2
2023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_word" >&5
2025 if eval "test \"\${ac_cv_path_KSH+set}\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 case "$KSH" in
2030 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2032 ?:/*)
2033 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2037 ac_dummy="$PATH"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_path_KSH="$ac_dir/$ac_word"
2042 break
2044 done
2045 IFS="$ac_save_ifs"
2046 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2048 esac
2050 KSH="$ac_cv_path_KSH"
2051 if test -n "$KSH"; then
2052 echo "$ac_t""$KSH" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2057 if test "$KSH" = no; then
2058 libc_cv_have_ksh=no
2059 else
2060 libc_cv_have_ksh=yes
2062 else
2063 KSH="$BASH"
2065 libc_cv_have_ksh=yes
2069 for ac_prog in mawk gawk nawk awk
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 if test -n "$AWK"; then
2079 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2080 else
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 ac_dummy="$PATH"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_prog_AWK="$ac_prog"
2087 break
2089 done
2090 IFS="$ac_save_ifs"
2093 AWK="$ac_cv_prog_AWK"
2094 if test -n "$AWK"; then
2095 echo "$ac_t""$AWK" 1>&6
2096 else
2097 echo "$ac_t""no" 1>&6
2100 test -n "$AWK" && break
2101 done
2103 # Extract the first word of "perl", so it can be a program name with args.
2104 set dummy perl; ac_word=$2
2105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_word" >&5
2107 if eval "test \"\${ac_cv_path_PERL+set}\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109 else
2110 case "$PERL" in
2112 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2114 ?:/*)
2115 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119 ac_dummy="$PATH"
2120 for ac_dir in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_path_PERL="$ac_dir/$ac_word"
2124 break
2126 done
2127 IFS="$ac_save_ifs"
2128 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2130 esac
2132 PERL="$ac_cv_path_PERL"
2133 if test -n "$PERL"; then
2134 echo "$ac_t""$PERL" 1>&6
2135 else
2136 echo "$ac_t""no" 1>&6
2140 # Extract the first word of "install-info", so it can be a program name with args.
2141 set dummy install-info; ac_word=$2
2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_word" >&5
2144 if eval "test \"\${ac_cv_path_INSTALL_INFO+set}\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147 case "$INSTALL_INFO" in
2149 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2151 ?:/*)
2152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2156 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2157 for ac_dir in $ac_dummy; do
2158 test -z "$ac_dir" && ac_dir=.
2159 if test -f $ac_dir/$ac_word; then
2160 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2161 break
2163 done
2164 IFS="$ac_save_ifs"
2165 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2167 esac
2169 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2170 if test -n "$INSTALL_INFO"; then
2171 echo "$ac_t""$INSTALL_INFO" 1>&6
2172 else
2173 echo "$ac_t""no" 1>&6
2177 if test "$INSTALL_INFO" != "no"; then
2178 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2179 echo "configure:2180: checking for old Debian install-info" >&5
2180 if eval "test \"\${libc_cv_old_debian_install_info+set}\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 mkdir conftest.d
2184 # There is a hard ^_ on the next line. I am open to better ideas.
2185 (echo '\x1f'
2186 echo 'File: dir Node: Top This is the top of the INFO tree'
2187 echo '* Menu:') >conftest.d/dir
2188 (echo 'INFO-DIR-SECTION i-d-s works'
2189 echo 'START-INFO-DIR-ENTRY'
2190 echo '* Prog: (prog). Program.'
2191 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2192 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2193 then
2194 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2195 then libc_cv_old_debian_install_info=no
2196 else libc_cv_old_debian_install_info=yes
2198 else libc_cv_old_debian_install_info=no testfailed=t
2200 rm -fr conftest.d
2203 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2204 if test -n "$testfailed"
2205 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2207 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2211 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2212 echo "configure:2213: checking for signed size_t type" >&5
2213 if eval "test \"\${libc_cv_signed_size_t+set}\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 echo '#include <stddef.h>
2217 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2218 if eval "$ac_cpp conftest.c 2>/dev/null" \
2219 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2220 libc_cv_signed_size_t=no
2221 else
2222 libc_cv_signed_size_t=yes
2224 rm -f conftest*
2227 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2228 if test $libc_cv_signed_size_t = yes; then
2229 cat >> confdefs.h <<\EOF
2230 #undef __SIZE_TYPE__
2231 #define __SIZE_TYPE__ unsigned
2235 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2236 echo "configure:2237: checking for libc-friendly stddef.h" >&5
2237 if eval "test \"\${libc_cv_friendly_stddef+set}\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #define __need_size_t
2244 #define __need_wchar_t
2245 #include <stddef.h>
2246 #define __need_NULL
2247 #include <stddef.h>
2248 int main() {
2249 size_t size; wchar_t wchar;
2250 #ifdef offsetof
2251 #error stddef.h ignored __need_*
2252 #endif
2253 if (&size == NULL || &wchar == NULL) abort ();
2254 ; return 0; }
2256 if { (eval echo configure:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2257 rm -rf conftest*
2258 libc_cv_friendly_stddef=yes
2259 else
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 rm -rf conftest*
2263 libc_cv_friendly_stddef=no
2265 rm -f conftest*
2268 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2269 if test $libc_cv_friendly_stddef = yes; then
2270 config_vars="$config_vars
2271 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2274 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether we need to use -P to assemble .S files" >&5
2276 if eval "test \"\${libc_cv_need_minus_P+set}\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2278 else
2279 cat > conftest.S <<EOF
2280 #include "confdefs.h"
2281 /* Nothing whatsoever. */
2283 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2284 libc_cv_need_minus_P=no
2285 else
2286 libc_cv_need_minus_P=yes
2288 rm -f conftest*
2291 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2292 if test $libc_cv_need_minus_P = yes; then
2293 config_vars="$config_vars
2294 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2297 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2298 echo "configure:2299: checking for assembler global-symbol directive" >&5
2299 if eval "test \"\${libc_cv_asm_global_directive+set}\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 libc_cv_asm_global_directive=UNKNOWN
2303 for ac_globl in .globl .global .EXPORT; do
2304 cat > conftest.s <<EOF
2305 .text
2306 ${ac_globl} foo
2307 foo:
2309 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2310 libc_cv_asm_global_directive=${ac_globl}
2312 rm -f conftest*
2313 test $libc_cv_asm_global_directive != UNKNOWN && break
2314 done
2317 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2318 if test $libc_cv_asm_global_directive = UNKNOWN; then
2319 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2320 else
2321 cat >> confdefs.h <<EOF
2322 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2327 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2328 echo "configure:2329: checking for .set assembler directive" >&5
2329 if eval "test \"\${libc_cv_asm_set_directive+set}\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 cat > conftest.s <<EOF
2333 .text
2334 foo:
2335 .set glibc_conftest_frobozz,foo
2336 $libc_cv_asm_global_directive glibc_conftest_frobozz
2338 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2339 # (but it doesn't work), so we must do a linking check to be sure.
2340 cat > conftest1.c <<\EOF
2341 extern int glibc_conftest_frobozz;
2342 main () { printf ("%d\n", glibc_conftest_frobozz); }
2344 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2345 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2346 libc_cv_asm_set_directive=yes
2347 else
2348 libc_cv_asm_set_directive=no
2350 rm -f conftest*
2353 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2354 if test $libc_cv_asm_set_directive = yes; then
2355 cat >> confdefs.h <<\EOF
2356 #define HAVE_ASM_SET_DIRECTIVE 1
2361 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2362 echo "configure:2363: checking for .symver assembler directive" >&5
2363 if eval "test \"\${libc_cv_asm_symver_directive+set}\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2365 else
2366 cat > conftest.s <<EOF
2367 .text
2368 _sym:
2369 .symver _sym,sym@VERS
2371 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2372 libc_cv_asm_symver_directive=yes
2373 else
2374 libc_cv_asm_symver_directive=no
2376 rm -f conftest*
2379 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2380 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2381 echo "configure:2382: checking for ld --version-script" >&5
2382 if eval "test \"\${libc_cv_ld_version_script_option+set}\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 if test $libc_cv_asm_symver_directive = yes; then
2386 cat > conftest.s <<EOF
2387 .text
2388 _sym:
2389 .symver _sym,sym@VERS
2391 cat > conftest.map <<EOF
2392 VERS_1 {
2393 global: sym;
2396 VERS_2 {
2397 global: sym;
2398 } VERS_1;
2400 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2401 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2402 -nostartfiles -nostdlib
2403 -Wl,--version-script,conftest.map
2404 1>&5'; { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2405 then
2406 libc_cv_ld_version_script_option=yes
2407 else
2408 libc_cv_ld_version_script_option=no
2410 else
2411 libc_cv_ld_version_script_option=no
2413 else
2414 libc_cv_ld_version_script_option=no
2416 rm -f conftest*
2419 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2420 if test $libc_cv_asm_symver_directive = yes &&
2421 test $libc_cv_ld_version_script_option = yes &&
2422 test $enable_versioning = yes; then
2423 VERSIONING=yes
2424 cat >> confdefs.h <<\EOF
2425 #define DO_VERSIONING 1
2428 else
2429 VERSIONING=no
2433 if test $VERSIONING = no; then
2434 echo "\
2435 *** WARNING: You should not compile GNU libc without versioning. Not using
2436 *** versioning will introduce incompatibilities so that old binaries
2437 *** will not run anymore.
2438 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2440 if test $elf = yes; then
2441 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2442 echo "configure:2443: checking for .previous assembler directive" >&5
2443 if eval "test \"\${libc_cv_asm_previous_directive+set}\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2445 else
2446 cat > conftest.s <<EOF
2447 .section foo_section
2448 .previous
2450 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2451 libc_cv_asm_previous_directive=yes
2452 else
2453 libc_cv_asm_previous_directive=no
2455 rm -f conftest*
2458 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2459 if test $libc_cv_asm_previous_directive = yes; then
2460 cat >> confdefs.h <<\EOF
2461 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2464 else
2465 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2466 echo "configure:2467: checking for .popsection assembler directive" >&5
2467 if eval "test \"\${libc_cv_asm_popsection_directive+set}\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.s <<EOF
2471 .pushsection foo_section
2472 .popsection
2474 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2475 libc_cv_asm_popsection_directive=yes
2476 else
2477 libc_cv_asm_popsection_directive=no
2479 rm -f conftest*
2482 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2483 if test $libc_cv_asm_popsection_directive = yes; then
2484 cat >> confdefs.h <<\EOF
2485 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2492 if test $elf != yes; then
2493 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2494 echo "configure:2495: checking for .init and .fini sections" >&5
2495 if eval "test \"\${libc_cv_have_initfini+set}\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2497 else
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2502 int main() {
2503 asm (".section .init");
2504 asm (".section .fini");
2505 asm (".text");
2506 ; return 0; }
2508 if { (eval echo configure:2509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2509 rm -rf conftest*
2510 libc_cv_have_initfini=yes
2511 else
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 rm -rf conftest*
2515 libc_cv_have_initfini=no
2517 rm -f conftest*
2520 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2521 if test $libc_cv_have_initfini = yes; then
2522 cat >> confdefs.h <<\EOF
2523 #define HAVE_INITFINI 1
2531 if test $elf = yes; then
2532 libc_cv_asm_underscores=no
2533 else
2534 if test $ac_cv_prog_cc_works = yes; then
2535 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2536 echo "configure:2537: checking for _ prefix on C symbol names" >&5
2537 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 cat > conftest.$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 asm ("_glibc_foobar:");
2544 int main() {
2545 glibc_foobar ();
2546 ; return 0; }
2548 if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2549 rm -rf conftest*
2550 libc_cv_asm_underscores=yes
2551 else
2552 echo "configure: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2554 rm -rf conftest*
2555 libc_cv_asm_underscores=no
2557 rm -f conftest*
2560 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2561 else
2562 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2563 echo "configure:2564: checking for _ prefix on C symbol names" >&5
2564 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 void underscore_test(void) {
2571 return; }
2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2574 if grep _underscore_test conftest* >/dev/null; then
2575 rm -f conftest*
2576 libc_cv_asm_underscores=yes
2577 else
2578 rm -f conftest*
2579 libc_cv_asm_underscores=no
2581 else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -f conftest*
2585 libc_cv_asm_underscores=no
2587 rm -f conftest*
2590 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2593 if test $libc_cv_asm_underscores = no; then
2594 cat >> confdefs.h <<\EOF
2595 #define NO_UNDERSCORES 1
2600 if test $elf = yes; then
2601 libc_cv_weak_symbols=yes
2604 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2605 echo "configure:2606: checking for assembler .weak directive" >&5
2606 if eval "test \"\${libc_cv_asm_weak_directive+set}\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608 else
2609 cat > conftest.s <<EOF
2610 .text
2611 ${libc_cv_asm_global_directive} foo
2612 foo:
2613 .weak foo
2614 .weak bar; bar = foo
2616 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2617 libc_cv_asm_weak_directive=yes
2618 else
2619 libc_cv_asm_weak_directive=no
2621 rm -f conftest*
2624 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2626 if test $libc_cv_asm_weak_directive = no; then
2627 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2628 echo "configure:2629: checking for assembler .weakext directive" >&5
2629 if eval "test \"\${libc_cv_asm_weakext_directive+set}\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 cat > conftest.s <<EOF
2633 .text
2634 ${libc_cv_asm_global_directive} foo
2635 foo:
2636 .weakext bar foo
2637 .weakext baz
2638 ${libc_cv_asm_global_directive} baz
2639 baz:
2641 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2642 libc_cv_asm_weakext_directive=yes
2643 else
2644 libc_cv_asm_weakext_directive=no
2646 rm -f conftest*
2649 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2651 fi # no .weak
2653 if test $libc_cv_asm_weak_directive = yes; then
2654 cat >> confdefs.h <<\EOF
2655 #define HAVE_ASM_WEAK_DIRECTIVE 1
2658 elif test $libc_cv_asm_weakext_directive = yes; then
2659 cat >> confdefs.h <<\EOF
2660 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2665 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2666 echo "configure:2667: checking for ld --no-whole-archive" >&5
2667 if eval "test \"\${libc_cv_ld_no_whole_archive+set}\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670 cat > conftest.c <<\EOF
2671 _start () {}
2672 int __eh_pc;
2673 __throw () {}
2675 if { ac_try='${CC-cc} $CFLAGS
2676 -nostdlib -nostartfiles -Wl,--no-whole-archive
2677 -o conftest conftest.c 1>&5'; { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2678 libc_cv_ld_no_whole_archive=yes
2679 else
2680 libc_cv_ld_no_whole_archive=no
2682 rm -f conftest*
2685 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2686 if test $libc_cv_ld_no_whole_archive = yes; then
2687 no_whole_archive=-Wl,--no-whole-archive
2690 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2691 echo "configure:2692: checking for gcc -fexceptions" >&5
2692 if eval "test \"\${libc_cv_gcc_exceptions+set}\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695 cat > conftest.c <<\EOF
2696 _start () {}
2697 int __eh_pc;
2698 __throw () {}
2700 if { ac_try='${CC-cc} $CFLAGS
2701 -nostdlib -nostartfiles -fexceptions
2702 -o conftest conftest.c 1>&5'; { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2703 libc_cv_gcc_exceptions=yes
2704 else
2705 libc_cv_gcc_exceptions=no
2707 rm -f conftest*
2710 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2711 if test $libc_cv_gcc_exceptions = yes; then
2712 exceptions=-fexceptions
2715 if test "$base_machine" = alpha ; then
2716 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2717 echo "configure:2718: checking for function ..ng prefix" >&5
2718 if eval "test \"\${libc_cv_gcc_alpha_ng_prefix+set}\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 cat > conftest.c <<\EOF
2722 foo () { }
2724 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2725 then
2726 libc_cv_gcc_alpha_ng_prefix=yes
2727 else
2728 libc_cv_gcc_alpha_ng_prefix=no
2730 rm -f conftest*
2733 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2734 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2735 cat >> confdefs.h <<\EOF
2736 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2739 else
2740 cat >> confdefs.h <<\EOF
2741 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2747 if test "$host_cpu" = powerpc ; then
2748 # Check for a bug present in at least versions 2.8.x of GCC
2749 # and versions 1.0.x of EGCS.
2750 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether clobbering cr0 causes problems" >&5
2752 if eval "test \"\${libc_cv_c_asmcr0_bug+set}\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754 else
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2759 int main() {
2761 ; return 0; }
2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 rm -rf conftest*
2765 libc_cv_c_asmcr0_bug='no'
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 libc_cv_c_asmcr0_bug='yes'
2772 rm -f conftest*
2775 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2776 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2777 cat >> confdefs.h <<\EOF
2778 #define BROKEN_PPC_ASM_CR0 1
2784 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2785 echo "configure:2786: checking for DWARF2 unwind info support" >&5
2786 if eval "test \"\${libc_cv_gcc_dwarf2_unwind_info+set}\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 cat > conftest.c <<EOF
2790 #line 2791 "configure"
2791 static char __EH_FRAME_BEGIN__;
2792 _start ()
2794 #ifdef CHECK__register_frame
2795 __register_frame (__EH_FRAME_BEGIN__);
2796 __deregister_frame (__EH_FRAME_BEGIN__);
2797 #endif
2798 #ifdef CHECK__register_frame_info
2799 __register_frame_info (__EH_FRAME_BEGIN__);
2800 __deregister_frame_info (__EH_FRAME_BEGIN__);
2801 #endif
2803 int __eh_pc;
2804 __throw () {}
2805 /* FIXME: this is fragile. */
2806 malloc () {}
2807 strcmp () {}
2808 strlen () {}
2809 memcpy () {}
2810 memset () {}
2811 free () {}
2812 abort () {}
2813 __bzero () {}
2815 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2816 -nostdlib -nostartfiles
2817 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2818 libc_cv_gcc_dwarf2_unwind_info=static
2819 else
2820 libc_cv_gcc_dwarf2_unwind_info=no
2822 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2823 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2824 -nostdlib -nostartfiles
2825 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2826 libc_cv_gcc_dwarf2_unwind_info=yes
2827 else
2828 libc_cv_gcc_dwarf2_unwind_info=no
2831 rm -f conftest*
2834 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2835 case $libc_cv_gcc_dwarf2_unwind_info in
2836 yes)
2837 cat >> confdefs.h <<\EOF
2838 #define HAVE_DWARF2_UNWIND_INFO 1
2842 static)
2843 cat >> confdefs.h <<\EOF
2844 #define HAVE_DWARF2_UNWIND_INFO 1
2847 cat >> confdefs.h <<\EOF
2848 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2852 esac
2854 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2855 echo "configure:2856: checking for __builtin_expect" >&5
2856 if eval "test \"\${libc_cv_gcc_builtin_expect+set}\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 cat > conftest.c <<EOF
2860 #line 2861 "configure"
2861 int foo (int a)
2863 a = __builtin_expect (a, 10);
2864 return a == 10 ? 0 : 1;
2867 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2868 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2869 libc_cv_gcc_builtin_expect=yes
2870 else
2871 libc_cv_gcc_builtin_expect=no
2873 rm -f conftest*
2876 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2877 if test "$libc_cv_gcc_builtin_expect" = yes; then
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_BUILTIN_EXPECT 1
2884 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
2885 echo "configure:2886: checking for local label subtraction" >&5
2886 if eval "test \"\${libc_cv_gcc_subtract_local_labels+set}\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2888 else
2889 cat > conftest.c <<EOF
2890 #line 2891 "configure"
2891 int foo (int a)
2893 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2894 void *p = &&l1 + ar[a];
2895 goto *p;
2897 return 1;
2899 return 2;
2902 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2903 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2904 libc_cv_gcc_subtract_local_labels=yes
2905 else
2906 libc_cv_gcc_subtract_local_labels=no
2908 rm -f conftest*
2911 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2912 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2913 cat >> confdefs.h <<\EOF
2914 #define HAVE_SUBTRACT_LOCAL_LABELS 1
2920 ### End of automated tests.
2921 ### Now run sysdeps configure fragments.
2923 # sysdeps configure fragments may set these with files to be linked below.
2924 libc_link_dests=
2925 libc_link_sources=
2927 # They also can set these variables.
2928 ldd_rewrite_script=no
2930 # Iterate over all the sysdep directories we will use, running their
2931 # configure fragments, and looking for a uname implementation.
2932 uname=
2933 for dir in $sysnames; do
2934 case $dir in
2935 /*) dest=$dir ;;
2936 *) dest=$srcdir/$dir ;;
2937 esac
2938 if test -r $dest/configure; then
2939 echo "$ac_t""running configure fragment for $dest" 1>&6
2940 . $dest/configure
2943 if test -z "$uname"; then
2944 if test -r $dest/uname.c ||
2945 test -r $dest/uname.S ||
2946 { test -r $dest/syscalls.list &&
2947 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2948 uname=$dir
2951 done
2955 # If we will use the generic uname implementation, we must figure out what
2956 # it will say by examining the system, and write the results in config-name.h.
2957 if test "$uname" = "sysdeps/generic"; then
2959 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2960 if test $uname_sysname != $config_os; then
2961 config_release=`echo $config_os | sed s/$uname_sysname//`
2964 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2965 echo "configure:2966: checking OS release for uname" >&5
2966 if eval "test \"\${libc_cv_uname_release+set}\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2968 else
2969 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2970 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2971 != x$config_release; then
2972 # The configuration release is a substring of the kernel release.
2973 libc_cv_uname_release=$kernel_release
2974 elif test x$config_release != x; then
2975 libc_cv_uname_release=$config_release
2976 elif test x$kernel_release != x; then
2977 libc_cv_uname_release=$kernel_release
2978 else
2979 libc_cv_uname_release=unknown
2983 echo "$ac_t""$libc_cv_uname_release" 1>&6
2984 uname_release="$libc_cv_uname_release"
2986 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2987 echo "configure:2988: checking OS version for uname" >&5
2988 if eval "test \"\${libc_cv_uname_version+set}\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2992 if test -n "$kernel_version"; then
2993 libc_cv_uname_version="$kernel_version"
2994 else
2995 libc_cv_uname_version=unknown
2999 echo "$ac_t""$libc_cv_uname_version" 1>&6
3000 uname_version="$libc_cv_uname_version"
3002 config_uname=config-name.h:config-name.in
3003 else
3004 # For non-generic uname, we don't need to create config-name.h at all.
3005 config_uname=
3008 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3009 echo "configure:3010: checking stdio selection" >&5
3011 case $stdio in
3012 libio) cat >> confdefs.h <<\EOF
3013 #define USE_IN_LIBIO 1
3016 default) stdio=stdio ;;
3017 esac
3018 echo "$ac_t""$stdio" 1>&6
3020 # Test for old glibc 2.0.x headers so that they can be removed properly
3021 # Search only in includedir.
3022 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3023 echo "configure:3024: checking for old glibc 2.0.x headers" >&5
3024 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3025 then
3026 old_glibc_headers=yes
3027 else
3028 old_glibc_headers=no
3030 echo "$ac_t""$old_glibc_headers" 1>&6
3031 if test ${old_glibc_headers} = yes; then
3032 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3033 echo "configure: warning: *** be removed." 1>&2
3045 if test $gnu_ld = yes; then
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_GNU_LD 1
3051 if test $gnu_as = yes; then
3052 cat >> confdefs.h <<\EOF
3053 #define HAVE_GNU_AS 1
3057 if test $elf = yes; then
3058 cat >> confdefs.h <<\EOF
3059 #define HAVE_ELF 1
3066 if test $shared = default; then
3067 if test $gnu_ld = yes; then
3068 shared=$elf
3069 else
3070 # For now we do not assume shared libs are available. In future more
3071 # tests might become available.
3072 shared=no
3076 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3077 echo "configure:3078: checking whether -fPIC is default" >&5
3078 if eval "test \"\${pic_default+set}\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3080 else
3081 pic_default=yes
3082 cat > conftest.c <<EOF
3083 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3084 # error PIC is default.
3085 #endif
3087 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3088 pic_default=no
3090 rm -f conftest.*
3093 echo "$ac_t""$pic_default" 1>&6
3104 case "$add_ons" in
3105 *door*) linux_doors=yes ;;
3106 *) linux_doors=no ;;
3107 esac
3110 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3111 config_makefile=
3112 else
3113 config_makefile=Makefile
3116 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3117 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3121 echo '*** Do NOT install this release on any production system!'
3122 echo '*** It is known to be broken and will be so for quite some time.'
3123 echo '*** Use the latest released version instead.'
3125 trap '' 1 2 15
3126 cat > confcache <<\EOF
3127 # This file is a shell script that caches the results of configure
3128 # tests run on this system so they can be shared between configure
3129 # scripts and configure runs. It is not useful on other systems.
3130 # If it contains results you don't want to keep, you may remove or edit it.
3132 # By default, configure uses ./config.cache as the cache file,
3133 # creating it if it does not exist already. You can give configure
3134 # the --cache-file=FILE option to use a different cache file; that is
3135 # what configure does when it calls configure scripts in
3136 # subdirectories, so they share the cache.
3137 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3138 # config.status only pays attention to the cache file if you give it the
3139 # --recheck option to rerun configure.
3142 # The following way of writing the cache mishandles newlines in values,
3143 # but we know of no workaround that is simple, portable, and efficient.
3144 # So, don't put newlines in cache variables' values.
3145 # Ultrix sh set writes to stderr and can't be redirected directly,
3146 # and sets the high bit in the cache file unless we assign to the vars.
3147 (set) 2>&1 |
3148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3149 *ac_space=\ *)
3150 # `set' does not quote correctly, so add quotes (double-quote substitution
3151 # turns \\\\ into \\, and sed turns \\ into \).
3152 sed -n \
3153 -e "s/'/'\\\\''/g" \
3154 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3157 # `set' quotes correctly as required by POSIX, so do not add quotes.
3158 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3160 esac >> confcache
3161 if cmp -s $cache_file confcache; then
3163 else
3164 if test -w $cache_file; then
3165 echo "updating cache $cache_file"
3166 cat confcache > $cache_file
3167 else
3168 echo "not updating unwritable cache $cache_file"
3171 rm -f confcache
3173 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3175 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3176 # Let make expand exec_prefix.
3177 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3179 # Any assignment to VPATH causes Sun make to only execute
3180 # the first set of double-colon rules, so remove it if not needed.
3181 # If there is a colon in the path, we need to keep it.
3182 if test "x$srcdir" = x.; then
3183 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3186 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3188 DEFS=-DHAVE_CONFIG_H
3190 # Without the "./", some shells look in PATH for config.status.
3191 : ${CONFIG_STATUS=./config.status}
3193 echo creating $CONFIG_STATUS
3194 rm -f $CONFIG_STATUS
3195 cat > $CONFIG_STATUS <<EOF
3196 #! /bin/sh
3197 # Generated automatically by configure.
3198 # Run this file to recreate the current configuration.
3199 # This directory was configured as follows,
3200 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3202 # $0 $ac_configure_args
3204 # Compiler output produced by configure, useful for debugging
3205 # configure, is in ./config.log if it exists.
3207 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3208 for ac_option
3210 case "\$ac_option" in
3211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3212 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3213 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3214 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3215 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
3216 exit 0 ;;
3217 -help | --help | --hel | --he | --h)
3218 echo "\$ac_cs_usage"; exit 0 ;;
3219 *) echo "\$ac_cs_usage"; exit 1 ;;
3220 esac
3221 done
3223 ac_given_srcdir=$srcdir
3224 ac_given_INSTALL="$INSTALL"
3226 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3228 cat >> $CONFIG_STATUS <<EOF
3230 # Protect against being on the right side of a sed subst in config.status.
3231 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3232 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3233 $ac_vpsub
3234 $extrasub
3235 s%@SHELL@%$SHELL%g
3236 s%@CFLAGS@%$CFLAGS%g
3237 s%@CPPFLAGS@%$CPPFLAGS%g
3238 s%@CXXFLAGS@%$CXXFLAGS%g
3239 s%@FFLAGS@%$FFLAGS%g
3240 s%@DEFS@%$DEFS%g
3241 s%@LDFLAGS@%$LDFLAGS%g
3242 s%@LIBS@%$LIBS%g
3243 s%@exec_prefix@%$exec_prefix%g
3244 s%@prefix@%$prefix%g
3245 s%@program_transform_name@%$program_transform_name%g
3246 s%@bindir@%$bindir%g
3247 s%@sbindir@%$sbindir%g
3248 s%@libexecdir@%$libexecdir%g
3249 s%@datadir@%$datadir%g
3250 s%@sysconfdir@%$sysconfdir%g
3251 s%@sharedstatedir@%$sharedstatedir%g
3252 s%@localstatedir@%$localstatedir%g
3253 s%@libdir@%$libdir%g
3254 s%@includedir@%$includedir%g
3255 s%@oldincludedir@%$oldincludedir%g
3256 s%@infodir@%$infodir%g
3257 s%@mandir@%$mandir%g
3258 s%@with_cvs@%$with_cvs%g
3259 s%@subdirs@%$subdirs%g
3260 s%@force_install@%$force_install%g
3261 s%@host@%$host%g
3262 s%@host_alias@%$host_alias%g
3263 s%@host_cpu@%$host_cpu%g
3264 s%@host_vendor@%$host_vendor%g
3265 s%@host_os@%$host_os%g
3266 s%@base_machine@%$base_machine%g
3267 s%@sysnames@%$sysnames%g
3268 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3269 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3270 s%@INSTALL_DATA@%$INSTALL_DATA%g
3271 s%@LN_S@%$LN_S%g
3272 s%@build@%$build%g
3273 s%@build_alias@%$build_alias%g
3274 s%@build_cpu@%$build_cpu%g
3275 s%@build_vendor@%$build_vendor%g
3276 s%@build_os@%$build_os%g
3277 s%@CC@%$CC%g
3278 s%@MAKE@%$MAKE%g
3279 s%@MSGFMT@%$MSGFMT%g
3280 s%@MAKEINFO@%$MAKEINFO%g
3281 s%@cross_linkable@%$cross_linkable%g
3282 s%@BUILD_CC@%$BUILD_CC%g
3283 s%@cross_compiling@%$cross_compiling%g
3284 s%@CPP@%$CPP%g
3285 s%@AR@%$AR%g
3286 s%@RANLIB@%$RANLIB%g
3287 s%@MIG@%$MIG%g
3288 s%@SYSINCLUDES@%$SYSINCLUDES%g
3289 s%@BASH@%$BASH%g
3290 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3291 s%@KSH@%$KSH%g
3292 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3293 s%@AWK@%$AWK%g
3294 s%@PERL@%$PERL%g
3295 s%@INSTALL_INFO@%$INSTALL_INFO%g
3296 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3297 s%@VERSIONING@%$VERSIONING%g
3298 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3299 s%@no_whole_archive@%$no_whole_archive%g
3300 s%@exceptions@%$exceptions%g
3301 s%@uname_sysname@%$uname_sysname%g
3302 s%@uname_release@%$uname_release%g
3303 s%@uname_version@%$uname_version%g
3304 s%@stdio@%$stdio%g
3305 s%@old_glibc_headers@%$old_glibc_headers%g
3306 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3307 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3308 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3309 s%@has_ldconfig@%$has_ldconfig%g
3310 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3311 s%@gnu_ld@%$gnu_ld%g
3312 s%@gnu_as@%$gnu_as%g
3313 s%@elf@%$elf%g
3314 s%@static@%$static%g
3315 s%@shared@%$shared%g
3316 s%@pic_default@%$pic_default%g
3317 s%@profile@%$profile%g
3318 s%@omitfp@%$omitfp%g
3319 s%@bounded@%$bounded%g
3320 s%@static_nss@%$static_nss%g
3321 s%@nopic_initfini@%$nopic_initfini%g
3322 s%@DEFINES@%$DEFINES%g
3323 s%@linux_doors@%$linux_doors%g
3324 s%@VERSION@%$VERSION%g
3325 s%@RELEASE@%$RELEASE%g
3327 CEOF
3330 cat >> $CONFIG_STATUS <<\EOF
3332 # Split the substitutions into bite-sized pieces for seds with
3333 # small command number limits, like on Digital OSF/1 and HP-UX.
3334 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3335 ac_file=1 # Number of current file.
3336 ac_beg=1 # First line for current file.
3337 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3338 ac_more_lines=:
3339 ac_sed_cmds=""
3340 while $ac_more_lines; do
3341 if test $ac_beg -gt 1; then
3342 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3343 else
3344 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3346 if test ! -s conftest.s$ac_file; then
3347 ac_more_lines=false
3348 rm -f conftest.s$ac_file
3349 else
3350 if test -z "$ac_sed_cmds"; then
3351 ac_sed_cmds="sed -f conftest.s$ac_file"
3352 else
3353 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3355 ac_file=`expr $ac_file + 1`
3356 ac_beg=$ac_end
3357 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3359 done
3360 if test -z "$ac_sed_cmds"; then
3361 ac_sed_cmds=cat
3365 cat >> $CONFIG_STATUS <<EOF
3367 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3369 cat >> $CONFIG_STATUS <<\EOF
3370 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3372 case "$ac_file" in
3373 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3374 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3375 *) ac_file_in="${ac_file}.in" ;;
3376 esac
3378 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3380 # Remove last slash and all that follows it. Not all systems have dirname.
3381 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3382 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3383 # The file is in a subdirectory.
3384 test ! -d "$ac_dir" && mkdir "$ac_dir"
3385 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3386 # A "../" for each directory in $ac_dir_suffix.
3387 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3388 else
3389 ac_dir_suffix= ac_dots=
3392 case "$ac_given_srcdir" in
3393 .) srcdir=.
3394 if test -z "$ac_dots"; then top_srcdir=.
3395 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3396 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3397 *) # Relative path.
3398 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3399 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3400 esac
3402 case "$ac_given_INSTALL" in
3403 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3404 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3405 esac
3407 echo creating "$ac_file"
3408 rm -f "$ac_file"
3409 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3410 case "$ac_file" in
3411 *Makefile*) ac_comsub="1i\\
3412 # $configure_input" ;;
3413 *) ac_comsub= ;;
3414 esac
3416 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3417 sed -e "$ac_comsub
3418 s%@configure_input@%$configure_input%g
3419 s%@srcdir@%$srcdir%g
3420 s%@top_srcdir@%$top_srcdir%g
3421 s%@INSTALL@%$INSTALL%g
3422 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3423 fi; done
3424 rm -f conftest.s*
3426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3429 # ac_d sets the value in "#define NAME VALUE" lines.
3430 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3431 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3432 ac_dC='\3'
3433 ac_dD='%g'
3434 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3435 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3436 ac_uB='\([ ]\)%\1#\2define\3'
3437 ac_uC=' '
3438 ac_uD='\4%g'
3439 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3440 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3441 ac_eB='$%\1#\2define\3'
3442 ac_eC=' '
3443 ac_eD='%g'
3445 if test "${CONFIG_HEADERS+set}" != set; then
3447 cat >> $CONFIG_STATUS <<EOF
3448 CONFIG_HEADERS="config.h"
3450 cat >> $CONFIG_STATUS <<\EOF
3452 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3454 case "$ac_file" in
3455 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3456 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3457 *) ac_file_in="${ac_file}.in" ;;
3458 esac
3460 echo creating $ac_file
3462 rm -f conftest.frag conftest.in conftest.out
3463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3464 cat $ac_file_inputs > conftest.in
3468 # Transform confdefs.h into a sed script conftest.vals that substitutes
3469 # the proper values into config.h.in to produce config.h. And first:
3470 # Protect against being on the right side of a sed subst in config.status.
3471 # Protect against being in an unquoted here document in config.status.
3472 rm -f conftest.vals
3473 cat > conftest.hdr <<\EOF
3474 s/[\\&%]/\\&/g
3475 s%[\\$`]%\\&%g
3476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3477 s%ac_d%ac_u%gp
3478 s%ac_u%ac_e%gp
3480 sed -n -f conftest.hdr confdefs.h > conftest.vals
3481 rm -f conftest.hdr
3483 # This sed command replaces #undef with comments. This is necessary, for
3484 # example, in the case of _POSIX_SOURCE, which is predefined and required
3485 # on some systems where configure will not decide to define it.
3486 cat >> conftest.vals <<\EOF
3487 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3490 # Break up conftest.vals because some shells have a limit on
3491 # the size of here documents, and old seds have small limits too.
3493 rm -f conftest.tail
3494 while :
3496 ac_lines=`grep -c . conftest.vals`
3497 # grep -c gives empty output for an empty file on some AIX systems.
3498 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3499 # Write a limited-size here document to conftest.frag.
3500 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3501 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3502 echo 'CEOF
3503 sed -f conftest.frag conftest.in > conftest.out
3504 rm -f conftest.in
3505 mv conftest.out conftest.in
3506 ' >> $CONFIG_STATUS
3507 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3508 rm -f conftest.vals
3509 mv conftest.tail conftest.vals
3510 done
3511 rm -f conftest.vals
3513 cat >> $CONFIG_STATUS <<\EOF
3514 rm -f conftest.frag conftest.h
3515 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3516 cat conftest.in >> conftest.h
3517 rm -f conftest.in
3518 if cmp -s $ac_file conftest.h 2>/dev/null; then
3519 echo "$ac_file is unchanged"
3520 rm -f conftest.h
3521 else
3522 # Remove last slash and all that follows it. Not all systems have dirname.
3523 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3525 # The file is in a subdirectory.
3526 test ! -d "$ac_dir" && mkdir "$ac_dir"
3528 rm -f $ac_file
3529 mv conftest.h $ac_file
3531 fi; done
3535 cat >> $CONFIG_STATUS <<EOF
3536 ac_sources="`echo $libc_link_sources`"
3537 ac_dests="`echo $libc_link_dests`"
3540 cat >> $CONFIG_STATUS <<\EOF
3541 srcdir=$ac_given_srcdir
3542 while test -n "$ac_sources"; do
3543 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3544 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3546 echo "linking $srcdir/$ac_source to $ac_dest"
3548 if test ! -r $srcdir/$ac_source; then
3549 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3551 rm -f $ac_dest
3553 # Make relative symlinks.
3554 # Remove last slash and all that follows it. Not all systems have dirname.
3555 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3556 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3557 # The dest file is in a subdirectory.
3558 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3559 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3560 # A "../" for each directory in $ac_dest_dir_suffix.
3561 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3562 else
3563 ac_dest_dir_suffix= ac_dots=
3566 case "$srcdir" in
3567 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3568 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3569 esac
3571 # Make a symlink if possible; otherwise try a hard link.
3572 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3573 ln $srcdir/$ac_source $ac_dest; then :
3574 else
3575 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3577 done
3579 cat >> $CONFIG_STATUS <<EOF
3580 config_vars='$config_vars'
3582 cat >> $CONFIG_STATUS <<\EOF
3584 case $CONFIG_FILES in *config.make*)
3585 echo "$config_vars" >> config.make;;
3586 esac
3587 test -d bits || mkdir bits
3588 exit 0
3590 chmod +x $CONFIG_STATUS
3591 rm -fr confdefs* $ac_clean_files
3592 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
3594 if test "$no_recursion" != yes; then
3596 # Remove --cache-file and --srcdir arguments so they do not pile up.
3597 ac_sub_configure_args=
3598 ac_prev=
3599 for ac_arg in $ac_configure_args; do
3600 if test -n "$ac_prev"; then
3601 ac_prev=
3602 continue
3604 case "$ac_arg" in
3605 -cache-file | --cache-file | --cache-fil | --cache-fi \
3606 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3607 ac_prev=cache_file ;;
3608 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3609 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3611 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3612 ac_prev=srcdir ;;
3613 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3615 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3616 esac
3617 done
3619 for ac_config_dir in $add_ons; do
3621 # Do not complain, so a configure script can configure whichever
3622 # parts of a large source tree are present.
3623 if test ! -d $srcdir/$ac_config_dir; then
3624 continue
3627 echo configuring in $ac_config_dir
3629 case "$srcdir" in
3630 .) ;;
3632 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3633 else
3634 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3637 esac
3639 ac_popdir=`pwd`
3640 cd $ac_config_dir
3642 # A "../" for each directory in /$ac_config_dir.
3643 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3645 case "$srcdir" in
3646 .) # No --srcdir option. We are building in place.
3647 ac_sub_srcdir=$srcdir ;;
3648 /*) # Absolute path.
3649 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3650 *) # Relative path.
3651 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3652 esac
3654 # Check for guested configure; otherwise get Cygnus style configure.
3655 if test -f $ac_sub_srcdir/configure; then
3656 ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
3657 elif test -f $ac_sub_srcdir/configure.in; then
3658 ac_sub_configure=$ac_configure
3659 else
3660 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3661 ac_sub_configure=
3664 # The recursion is here.
3665 if test -n "$ac_sub_configure"; then
3667 # Make the cache file name correct relative to the subdirectory.
3668 case "$cache_file" in
3669 /*) ac_sub_cache_file=$cache_file ;;
3670 *) # Relative path.
3671 ac_sub_cache_file="$ac_dots$cache_file" ;;
3672 esac
3673 case "$ac_given_INSTALL" in
3674 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3675 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3676 esac
3678 echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3679 # The eval makes quoting arguments work.
3680 if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3681 then :
3682 else
3683 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3687 cd $ac_popdir
3688 done