Update.
[glibc.git] / configure
blob893ffb157e02b6b6c045afa5e29c7365a136cc94
1 #! /bin/sh
3 # From configure.in CVSid
12 # Guess values for system-dependent variables and create Makefiles.
13 # Generated automatically using autoconf version 2.12
14 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
19 # Defaults:
20 ac_help=
21 ac_default_prefix=/usr/local
22 # Any additions from configure.in:
23 ac_help="$ac_help
24 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
25 ac_help="$ac_help
26 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
27 ac_help="$ac_help
28 --with-fp if using floating-point hardware [default=yes]"
29 ac_help="$ac_help
30 --with-binutils=PATH specify location of binutils (as and ld)"
31 ac_help="$ac_help
32 --with-elf if using the ELF object format"
33 ac_help="$ac_help
34 --without-cvs if CVS should not be used"
35 ac_help="$ac_help
36 --enable-libio build in GNU libio instead of GNU stdio"
37 ac_help="$ac_help
38 --disable-sanity-checks really do not use threads (should not be used
39 except in special situations) [default=yes]"
40 ac_help="$ac_help
41 --enable-static build static library [default=yes]"
42 ac_help="$ac_help
43 --enable-shared build shared library [default=yes if GNU ld & ELF]"
44 ac_help="$ac_help
45 --enable-profile build profiled library [default=yes]"
46 ac_help="$ac_help
47 --enable-omitfp build undebuggable optimized library [default=no]"
48 ac_help="$ac_help
49 --enable-bounded build with runtime bounds checking [default=no]"
50 ac_help="$ac_help
51 --disable-versioning do not include versioning information in the
52 library objects [default=yes if supported]"
53 ac_help="$ac_help
54 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
55 search for add-ons if no parameter given"
56 ac_help="$ac_help
57 --enable-static-nss build static NSS modules [default=no]"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
62 build=NONE
63 cache_file=./config.cache
64 exec_prefix=NONE
65 host=NONE
66 no_create=
67 nonopt=NONE
68 no_recursion=
69 prefix=NONE
70 program_prefix=NONE
71 program_suffix=NONE
72 program_transform_name=s,x,x,
73 silent=
74 site=
75 srcdir=
76 target=NONE
77 verbose=
78 x_includes=NONE
79 x_libraries=NONE
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${exec_prefix}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
93 # Initialize some other variables.
94 subdirs=
95 MFLAGS= MAKEFLAGS=
96 # Maximum number of lines to put in a shell here document.
97 ac_max_here_lines=12
99 ac_prev=
100 for ac_option
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
106 ac_prev=
107 continue
110 case "$ac_option" in
111 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 *) ac_optarg= ;;
113 esac
115 # Accept the important Cygnus configure options, so we can diagnose typos.
117 case "$ac_option" in
119 -bindir | --bindir | --bindi | --bind | --bin | --bi)
120 ac_prev=bindir ;;
121 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122 bindir="$ac_optarg" ;;
124 -build | --build | --buil | --bui | --bu)
125 ac_prev=build ;;
126 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127 build="$ac_optarg" ;;
129 -cache-file | --cache-file | --cache-fil | --cache-fi \
130 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131 ac_prev=cache_file ;;
132 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134 cache_file="$ac_optarg" ;;
136 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137 ac_prev=datadir ;;
138 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139 | --da=*)
140 datadir="$ac_optarg" ;;
142 -disable-* | --disable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* | --enable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 case "$ac_option" in
159 *=*) ;;
160 *) ac_optarg=yes ;;
161 esac
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166 | --exec | --exe | --ex)
167 ac_prev=exec_prefix ;;
168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170 | --exec=* | --exe=* | --ex=*)
171 exec_prefix="$ac_optarg" ;;
173 -gas | --gas | --ga | --g)
174 # Obsolete; use --with-gas.
175 with_gas=yes ;;
177 -help | --help | --hel | --he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
180 cat << EOF
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
183 Configuration:
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
191 [$ac_default_prefix]
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 [same as prefix]
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
198 [PREFIX/share]
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 [PREFIX/com]
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
214 cat << EOF
215 Host type:
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
230 exit 0 ;;
232 -host | --host | --hos | --ho)
233 ac_prev=host ;;
234 -host=* | --host=* | --hos=* | --ho=*)
235 host="$ac_optarg" ;;
237 -includedir | --includedir | --includedi | --included | --include \
238 | --includ | --inclu | --incl | --inc)
239 ac_prev=includedir ;;
240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241 | --includ=* | --inclu=* | --incl=* | --inc=*)
242 includedir="$ac_optarg" ;;
244 -infodir | --infodir | --infodi | --infod | --info | --inf)
245 ac_prev=infodir ;;
246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247 infodir="$ac_optarg" ;;
249 -libdir | --libdir | --libdi | --libd)
250 ac_prev=libdir ;;
251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
252 libdir="$ac_optarg" ;;
254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255 | --libexe | --libex | --libe)
256 ac_prev=libexecdir ;;
257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258 | --libexe=* | --libex=* | --libe=*)
259 libexecdir="$ac_optarg" ;;
261 -localstatedir | --localstatedir | --localstatedi | --localstated \
262 | --localstate | --localstat | --localsta | --localst \
263 | --locals | --local | --loca | --loc | --lo)
264 ac_prev=localstatedir ;;
265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268 localstatedir="$ac_optarg" ;;
270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271 ac_prev=mandir ;;
272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273 mandir="$ac_optarg" ;;
275 -nfp | --nfp | --nf)
276 # Obsolete; use --without-fp.
277 with_fp=no ;;
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 | --no-cr | --no-c)
281 no_create=yes ;;
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285 no_recursion=yes ;;
287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289 | --oldin | --oldi | --old | --ol | --o)
290 ac_prev=oldincludedir ;;
291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294 oldincludedir="$ac_optarg" ;;
296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297 ac_prev=prefix ;;
298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299 prefix="$ac_optarg" ;;
301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
302 | --program-pre | --program-pr | --program-p)
303 ac_prev=program_prefix ;;
304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306 program_prefix="$ac_optarg" ;;
308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
309 | --program-suf | --program-su | --program-s)
310 ac_prev=program_suffix ;;
311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313 program_suffix="$ac_optarg" ;;
315 -program-transform-name | --program-transform-name \
316 | --program-transform-nam | --program-transform-na \
317 | --program-transform-n | --program-transform- \
318 | --program-transform | --program-transfor \
319 | --program-transfo | --program-transf \
320 | --program-trans | --program-tran \
321 | --progr-tra | --program-tr | --program-t)
322 ac_prev=program_transform_name ;;
323 -program-transform-name=* | --program-transform-name=* \
324 | --program-transform-nam=* | --program-transform-na=* \
325 | --program-transform-n=* | --program-transform-=* \
326 | --program-transform=* | --program-transfor=* \
327 | --program-transfo=* | --program-transf=* \
328 | --program-trans=* | --program-tran=* \
329 | --progr-tra=* | --program-tr=* | --program-t=*)
330 program_transform_name="$ac_optarg" ;;
332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333 | -silent | --silent | --silen | --sile | --sil)
334 silent=yes ;;
336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337 ac_prev=sbindir ;;
338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339 | --sbi=* | --sb=*)
340 sbindir="$ac_optarg" ;;
342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344 | --sharedst | --shareds | --shared | --share | --shar \
345 | --sha | --sh)
346 ac_prev=sharedstatedir ;;
347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350 | --sha=* | --sh=*)
351 sharedstatedir="$ac_optarg" ;;
353 -site | --site | --sit)
354 ac_prev=site ;;
355 -site=* | --site=* | --sit=*)
356 site="$ac_optarg" ;;
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359 ac_prev=srcdir ;;
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
370 -target | --target | --targe | --targ | --tar | --ta | --t)
371 ac_prev=target ;;
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 verbose=yes ;;
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.12"
380 exit 0 ;;
382 -with-* | --with-*)
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 case "$ac_option" in
390 *=*) ;;
391 *) ac_optarg=yes ;;
392 esac
393 eval "with_${ac_package}='$ac_optarg'" ;;
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
404 --x)
405 # Obsolete; use --with-x.
406 with_x=yes ;;
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 nonopt="$ac_option"
435 esac
436 done
438 if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444 # File descriptor usage:
445 # 0 standard input
446 # 1 file creation
447 # 2 errors and warnings
448 # 3 some systems may open it to /dev/tty
449 # 4 used on the Kubota Titan
450 # 6 checking for... messages and results
451 # 5 compiler messages saved in config.log
452 if test "$silent" = yes; then
453 exec 6>/dev/null
454 else
455 exec 6>&1
457 exec 5>./config.log
459 echo "\
460 This file contains any messages produced by compilers while
461 running configure, to aid debugging if configure makes a mistake.
462 " 1>&5
464 # Strip out --no-create and --no-recursion so they do not pile up.
465 # Also quote any args containing shell metacharacters.
466 ac_configure_args=
467 for ac_arg
469 case "$ac_arg" in
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477 esac
478 done
480 # NLS nuisances.
481 # Only set these to C if already set. These must not be set unconditionally
482 # because not all systems understand e.g. LANG=C (notably SCO).
483 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484 # Non-C LC_CTYPE values break the ctype check.
485 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
491 rm -rf conftest* confdefs.h
492 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 echo > confdefs.h
495 # A filename unique to this package, relative to the directory that
496 # configure is in, which we can look for to find out if srcdir is correct.
497 ac_unique_file=include/features.h
499 # Find the source files, if location was not specified.
500 if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
503 ac_prog=$0
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506 srcdir=$ac_confdir
507 if test ! -r $srcdir/$ac_unique_file; then
508 srcdir=..
510 else
511 ac_srcdir_defaulted=no
513 if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 else
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522 # Prefer explicitly selected file to automatically selected ones.
523 if test -z "$CONFIG_SITE"; then
524 if test "x$prefix" != xNONE; then
525 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
526 else
527 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 for ac_site_file in $CONFIG_SITE; do
531 if test -r "$ac_site_file"; then
532 echo "loading site script $ac_site_file"
533 . "$ac_site_file"
535 done
537 if test -r "$cache_file"; then
538 echo "loading cache $cache_file"
539 . $cache_file
540 else
541 echo "creating cache $cache_file"
542 > $cache_file
545 ac_ext=c
546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547 ac_cpp='$CPP $CPPFLAGS'
548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555 ac_n= ac_c='
556 ' ac_t=' '
557 else
558 ac_n=-n ac_c= ac_t=
560 else
561 ac_n= ac_c='\c' ac_t=
567 # This will get text that should go into config.make.
568 config_vars=
570 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
571 # Check whether --with-gmp or --without-gmp was given.
572 if test "${with_gmp+set}" = set; then
573 withval="$with_gmp"
574 case "$with_gmp" in
575 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
576 ''|no) ;;
577 *) config_vars="$config_vars
578 gmp-srcdir = $withval" ;;
579 esac
583 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
584 # Check whether --with-gettext or --without-gettext was given.
585 if test "${with_gettext+set}" = set; then
586 withval="$with_gettext"
587 case "$with_gettext" in
588 yes)
589 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
590 ''|no) ;;
592 config_vars="$config_vars
593 gettext-srcdir = $withval" ;;
594 esac
599 # Check whether --with-fp or --without-fp was given.
600 if test "${with_fp+set}" = set; then
601 withval="$with_fp"
602 with_fp=$withval
603 else
604 with_fp=yes
607 # Check whether --with-binutils or --without-binutils was given.
608 if test "${with_binutils+set}" = set; then
609 withval="$with_binutils"
610 path_binutils=$withval
611 else
612 path_binutils=''
615 # Check whether --with-elf or --without-elf was given.
616 if test "${with_elf+set}" = set; then
617 withval="$with_elf"
618 elf=$withval
619 else
620 elf=no
623 # Check whether --with-cvs or --without-cvs was given.
624 if test "${with_cvs+set}" = set; then
625 withval="$with_cvs"
626 with_cvs=$withval
627 else
628 with_cvs=yes
633 # Check whether --enable-libio or --disable-libio was given.
634 if test "${enable_libio+set}" = set; then
635 enableval="$enable_libio"
636 if test $enableval = yes; then
637 stdio=libio
638 else
639 stdio=stdio
641 else
642 stdio=default
646 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
647 if test "${enable_sanity_checks+set}" = set; then
648 enableval="$enable_sanity_checks"
649 enable_sanity=$enableval
650 else
651 enable_sanity=yes
655 # Check whether --enable-static or --disable-static was given.
656 if test "${enable_static+set}" = set; then
657 enableval="$enable_static"
658 static=$enableval
659 else
660 static=yes
663 # Check whether --enable-shared or --disable-shared was given.
664 if test "${enable_shared+set}" = set; then
665 enableval="$enable_shared"
666 shared=$enableval
667 else
668 shared=default
671 # Check whether --enable-profile or --disable-profile was given.
672 if test "${enable_profile+set}" = set; then
673 enableval="$enable_profile"
674 profile=$enableval
675 else
676 profile=yes
679 # Check whether --enable-omitfp or --disable-omitfp was given.
680 if test "${enable_omitfp+set}" = set; then
681 enableval="$enable_omitfp"
682 omitfp=$enableval
683 else
684 omitfp=no
687 # Check whether --enable-bounded or --disable-bounded was given.
688 if test "${enable_bounded+set}" = set; then
689 enableval="$enable_bounded"
690 bounded=$enableval
691 else
692 bounded=no
695 # Check whether --enable-versioning or --disable-versioning was given.
696 if test "${enable_versioning+set}" = set; then
697 enableval="$enable_versioning"
698 enable_versioning=$enableval
699 else
700 enable_versioning=yes
704 # Check whether --enable-add-ons or --disable-add-ons was given.
705 if test "${enable_add_ons+set}" = set; then
706 enableval="$enable_add_ons"
707 case "$enableval" in
708 yes) if test "$srcdir" = "."; then
709 add_ons=`echo */configure | sed -e 's!/configure!!g'`
710 else
711 add_ons=`echo $srcdir/*/configure | \
712 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
713 fi;;
714 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
715 esac
716 else
717 add_ons=
721 ac_aux_dir=
722 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
723 if test -f $ac_dir/install-sh; then
724 ac_aux_dir=$ac_dir
725 ac_install_sh="$ac_aux_dir/install-sh -c"
726 break
727 elif test -f $ac_dir/install.sh; then
728 ac_aux_dir=$ac_dir
729 ac_install_sh="$ac_aux_dir/install.sh -c"
730 break
732 done
733 if test -z "$ac_aux_dir"; then
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
736 ac_config_guess=$ac_aux_dir/config.guess
737 ac_config_sub=$ac_aux_dir/config.sub
738 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
740 subdirs="$add_ons"
742 add_ons_pfx=
743 if test x"$add_ons" != x; then
744 for f in $add_ons; do
745 # Test whether such a subdir really exists.
746 if test -d $srcdir/$f; then
747 add_ons_pfx="$add_ons_pfx $f/"
748 else
749 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
751 done
754 # Check whether --enable-static-nss or --disable-static-nss was given.
755 if test "${enable_static_nss+set}" = set; then
756 enableval="$enable_static_nss"
757 static_nss=$enableval
758 else
759 static_nss=no
762 if test x"$static_nss" = xyes; then
763 cat >> confdefs.h <<\EOF
764 #define DO_STATIC_NSS 1
770 # Make sure we can run config.sub.
771 if $ac_config_sub sun4 >/dev/null 2>&1; then :
772 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
775 echo $ac_n "checking host system type""... $ac_c" 1>&6
776 echo "configure:777: checking host system type" >&5
778 host_alias=$host
779 case "$host_alias" in
780 NONE)
781 case $nonopt in
782 NONE)
783 if host_alias=`$ac_config_guess`; then :
784 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
785 fi ;;
786 *) host_alias=$nonopt ;;
787 esac ;;
788 esac
790 host=`$ac_config_sub $host_alias`
791 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
792 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
793 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo "$ac_t""$host" 1>&6
797 # The way shlib-versions is used to generate soversions.mk uses a
798 # fairly simplistic model for name recognition that can't distinguish
799 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
800 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
801 # tell. This doesn't get used much beyond that, so it's fairly safe.
802 case "$host_os" in
803 linux*)
805 gnu*)
806 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
808 esac
811 ### I put this here to prevent those annoying emails from people who cannot
812 ### read and try to compile glibc on unsupported platforms. --drepper
814 ### By using the undocumented --enable-hacker-mode option for configure
815 ### one can skip this test to make the configuration not fail for unsupported
816 ### platforms.
818 if test -z "$enable_hacker_mode"; then
819 case "$machine-$host_os" in
820 *-linux* | *-gnu* | arm*-none*)
823 echo "*** The GNU C library is currently not available for this platform."
824 echo "*** So far nobody cared to port it and if there is no volunteer it"
825 echo "*** might never happen. So, if you have interest to see glibc on"
826 echo "*** this platform visit"
827 echo "*** http://www.gnu.org/software/libc/porting.html"
828 echo "*** and join the group of porters"
829 exit 1
831 esac
834 # We keep the original values in `$config_*' and never modify them, so we
835 # can write them unchanged into config.make. Everything else uses
836 # $machine, $vendor, and $os, and changes them whenever convenient.
837 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
839 # Some configurations imply other options.
840 case "$host_os" in
841 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
842 # These systems always use GNU tools.
843 gnu_ld=yes gnu_as=yes ;;
844 esac
845 case "$host_os" in
846 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
847 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
849 gnu* | linux* | sysv4* | solaris2*)
850 # These systems (almost) always use the ELF format.
851 elf=yes
853 esac
855 machine=$config_machine
856 vendor=$config_vendor
857 os=$config_os
859 # Expand the configuration machine name into a subdirectory by architecture
860 # type and particular chip.
861 case "$machine" in
862 a29k | am29000) base_machine=a29k machine=a29k ;;
863 alpha*) base_machine=alpha machine=alpha/$machine ;;
864 arm*) base_machine=arm machine=arm/$machine ;;
865 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
866 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
867 hppa*) base_machine=hppa machine=hppa/$machine ;;
868 i[3456]86) base_machine=i386 machine=i386/$machine ;;
869 m680?0) base_machine=m68k machine=m68k/$machine ;;
870 m68k) base_machine=m68k machine=m68k/m68020 ;;
871 m88???) base_machine=m88k machine=m88k/$machine ;;
872 m88k) base_machine=m88k machine=m88k/m88100 ;;
873 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
874 mips*) base_machine=mips machine=mips/$machine ;;
875 sparc | sparcv[67])
876 base_machine=sparc machine=sparc/sparc32 ;;
877 sparcv8 | supersparc | hypersparc)
878 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
879 sparc64 | ultrasparc)
880 base_machine=sparc machine=sparc/sparc64 ;;
881 esac
884 if test "$base_machine" = "i386"; then
885 cat >> confdefs.h <<\EOF
886 #define USE_REGPARMS 1
891 # Compute the list of sysdep directories for this configuration.
892 # This can take a while to compute.
893 sysdep_dir=$srcdir/sysdeps
894 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
895 echo "configure:896: checking sysdep dirs" >&5
896 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
897 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
899 case "$os" in
900 gnu*)
901 base_os=mach/hurd ;;
902 netbsd* | 386bsd* | freebsd* | bsdi*)
903 base_os=unix/bsd/bsd4.4 ;;
904 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
905 base_os=unix/bsd ;;
906 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
907 base_os=unix/sysv ;;
908 solaris[2-9]*)
909 base_os=unix/sysv/sysv4 ;;
910 none)
911 base_os=standalone ;;
913 base_os='' ;;
914 esac
916 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
917 tail=$os
918 ostry=$os
919 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
920 ostry="$ostry /$o"
921 tail=$o
922 done
923 o=`echo $tail | sed 's/[0-9]*$//'`
924 if test $o != $tail; then
925 ostry="$ostry /$o"
927 # For linux-gnu, try linux-gnu, then linux.
928 o=`echo $tail | sed 's/-.*$//'`
929 if test $o != $tail; then
930 ostry="$ostry /$o"
933 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
934 base=
935 tail=$base_os
936 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
937 set $b
938 base="$base /$1"
939 tail="$2"
940 done
942 # For sparc/sparc9, try sparc/sparc9 and then sparc.
943 mach=
944 tail=$machine
945 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
946 set $m
947 # Prepend the machine's FPU directory unless --without-fp.
948 if test "$with_fp" = yes; then
949 mach="$mach /$1/fpu"
951 mach="$mach /$1"
952 tail="$2"
953 done
956 # Find what sysdep directories exist.
957 sysnames=
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
959 for d in $add_ons_pfx ''; do
960 for b in $base ''; do
961 for m0 in $mach ''; do
962 for v in /$vendor ''; do
963 for o in /$ostry ''; do
964 for m in $mach ''; do
965 if test "$m0$b$v$o$m"; then
966 try="${d}sysdeps$m0$b$v$o$m"
967 test -n "$enable_debug_configure" &&
968 echo "$0 DEBUG: try $try" >&2
969 case $try in
970 /*) dest=$try ;;
971 *) dest=$srcdir/$try ;;
972 esac
973 if test -d $dest; then
974 sysnames="$sysnames $try"
975 { test -n "$o" || test -n "$b"; } && os_used=t
976 { test -n "$m" || test -n "$m0"; } && machine_used=t
979 done
980 done
981 done
982 done
983 done
984 done
985 IFS="$ac_save_ifs"
987 if test -z "$os_used" && test "$os" != none; then
988 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
990 if test -z "$machine_used" && test "$machine" != none; then
991 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
994 # We have now validated the configuration.
997 # If using ELF, look for an `elf' subdirectory of each machine directory.
998 # We prepend these rather than inserting them whereever the machine appears
999 # because things specified by the machine's ELF ABI should override
1000 # OS-specific things, and should always be the same for any OS on the
1001 # machine (otherwise what's the point of an ABI?).
1002 if test "$elf" = yes; then
1003 elf_dirs=
1004 for d in $add_ons_pfx ''; do
1005 case $d in
1006 /*) xsrcdir= ;;
1007 *) xsrcdir=$srcdir/ ;;
1008 esac
1009 for m in $mach; do
1010 if test -d $xsrcdir${d}sysdeps$m/elf; then
1011 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1013 done
1014 done
1015 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1019 # Expand the list of system names into a full list of directories
1020 # from each element's parent name and Implies file (if present).
1021 set $sysnames
1022 names=
1023 while test $# -gt 0; do
1024 name=$1
1025 shift
1027 case " $names " in *" $name "*)
1028 # Already in the list.
1029 continue
1030 esac
1032 # Report each name as we discover it, so there is no long pause in output.
1033 echo $ac_n "$name $ac_c" >&6
1035 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1037 case $name in
1038 /*) xsrcdir= ;;
1039 *) xsrcdir=$srcdir/ ;;
1040 esac
1041 test -n "$enable_debug_configure" &&
1042 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1044 if test -f $xsrcdir$name/Implies; then
1045 # Collect more names from the `Implies' file (removing comments).
1046 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1047 implied=
1048 for x in $implied_candidate; do
1049 if test -d $xsrcdir$name_base/$x; then
1050 implied="$implied $name_base/$x";
1051 else
1052 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1054 done
1055 else
1056 implied=
1059 # Add NAME to the list of names.
1060 names="$names $name"
1062 # Find the parent of NAME, using the empty string if it has none.
1063 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1065 # Add the names implied by NAME, and NAME's parent (if it has one), to
1066 # the list of names to be processed (the argument list). We prepend the
1067 # implied names to the list and append the parent. We want implied
1068 # directories to come before further directories inferred from the
1069 # configuration components; this ensures that for sysv4, unix/common
1070 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1071 # after sysv4).
1072 sysnames="`echo $implied $* $parent`"
1073 test -n "$sysnames" && set $sysnames
1074 done
1076 # Add the default directories.
1077 sysnames="$names sysdeps/generic"
1079 # The other names were emitted during the scan.
1080 echo "$ac_t""sysdeps/generic" 1>&6
1083 ### Locate tools.
1085 # Find a good install program. We prefer a C program (faster),
1086 # so one script is as good as another. But avoid the broken or
1087 # incompatible versions:
1088 # SysV /etc/install, /usr/sbin/install
1089 # SunOS /usr/etc/install
1090 # IRIX /sbin/install
1091 # AIX /bin/install
1092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1094 # ./install, which can be erroneously created by make from ./install.sh.
1095 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1096 echo "configure:1097: checking for a BSD compatible install" >&5
1097 if test -z "$INSTALL"; then
1098 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1100 else
1101 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1102 for ac_dir in $PATH; do
1103 # Account for people who put trailing slashes in PATH elements.
1104 case "$ac_dir/" in
1105 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1107 # OSF1 and SCO ODT 3.0 have their own names for install.
1108 for ac_prog in ginstall installbsd scoinst install; do
1109 if test -f $ac_dir/$ac_prog; then
1110 if test $ac_prog = install &&
1111 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1112 # AIX install. It has an incompatible calling convention.
1113 # OSF/1 installbsd also uses dspmsg, but is usable.
1115 else
1116 ac_cv_path_install="$ac_dir/$ac_prog -c"
1117 break 2
1120 done
1122 esac
1123 done
1124 IFS="$ac_save_IFS"
1127 if test "${ac_cv_path_install+set}" = set; then
1128 INSTALL="$ac_cv_path_install"
1129 else
1130 # As a last resort, use the slow shell script. We don't cache a
1131 # path for INSTALL within a source directory, because that will
1132 # break other packages using the cache if that directory is
1133 # removed, or if the path is relative.
1134 INSTALL="$ac_install_sh"
1137 echo "$ac_t""$INSTALL" 1>&6
1139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1140 # It thinks the first close brace ends the variable substitution.
1141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1145 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1146 # The makefiles need to use a different form to find it in $srcdir.
1147 INSTALL='\$(..)./install-sh -c'
1149 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether ln -s works" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 rm -f conftestdata
1155 if ln -s X conftestdata 2>/dev/null
1156 then
1157 rm -f conftestdata
1158 ac_cv_prog_LN_S="ln -s"
1159 else
1160 ac_cv_prog_LN_S=ln
1163 LN_S="$ac_cv_prog_LN_S"
1164 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1165 echo "$ac_t""yes" 1>&6
1166 else
1167 echo "$ac_t""no" 1>&6
1170 for ac_prog in msgfmt gmsgfmt
1172 # Extract the first word of "$ac_prog", so it can be a program name with args.
1173 set dummy $ac_prog; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 if test -n "$MSGFMT"; then
1180 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1181 else
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1183 for ac_dir in $PATH; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_MSGFMT="$ac_prog"
1187 break
1189 done
1190 IFS="$ac_save_ifs"
1193 MSGFMT="$ac_cv_prog_MSGFMT"
1194 if test -n "$MSGFMT"; then
1195 echo "$ac_t""$MSGFMT" 1>&6
1196 else
1197 echo "$ac_t""no" 1>&6
1200 test -n "$MSGFMT" && break
1201 done
1202 test -n "$MSGFMT" || MSGFMT=":"
1204 # Extract the first word of "makeinfo", so it can be a program name with args.
1205 set dummy makeinfo; ac_word=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211 if test -n "$MAKEINFO"; then
1212 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1213 else
1214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1215 for ac_dir in $PATH; do
1216 test -z "$ac_dir" && ac_dir=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_MAKEINFO="makeinfo"
1219 break
1221 done
1222 IFS="$ac_save_ifs"
1225 MAKEINFO="$ac_cv_prog_MAKEINFO"
1226 if test -n "$MAKEINFO"; then
1227 echo "$ac_t""$MAKEINFO" 1>&6
1228 else
1229 echo "$ac_t""no" 1>&6
1232 if test "$MAKEINFO"; then
1233 if $MAKEINFO --version | grep 'texinfo 3\.[1-9][1-9]' >/dev/null 2>&1
1234 then : # Makeinfo 3.11 or greater, works.
1235 else
1236 echo "configure: warning:
1237 *** makeinfo is too old (need version 3.11 or better).
1238 *** You should install the needed version and re-configure since otherwise
1239 *** you won't get the info pages installed." 1>&2
1240 MAKEINFO=
1244 # Extract the first word of "gcc", so it can be a program name with args.
1245 set dummy gcc; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1253 else
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1255 for ac_dir in $PATH; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_CC="gcc"
1259 break
1261 done
1262 IFS="$ac_save_ifs"
1265 CC="$ac_cv_prog_CC"
1266 if test -n "$CC"; then
1267 echo "$ac_t""$CC" 1>&6
1268 else
1269 echo "$ac_t""no" 1>&6
1272 if test -z "$CC"; then
1273 # Extract the first word of "cc", so it can be a program name with args.
1274 set dummy cc; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1282 else
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1284 ac_prog_rejected=no
1285 for ac_dir in $PATH; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1289 ac_prog_rejected=yes
1290 continue
1292 ac_cv_prog_CC="cc"
1293 break
1295 done
1296 IFS="$ac_save_ifs"
1297 if test $ac_prog_rejected = yes; then
1298 # We found a bogon in the path, so make sure we never use it.
1299 set dummy $ac_cv_prog_CC
1300 shift
1301 if test $# -gt 0; then
1302 # We chose a different compiler from the bogus one.
1303 # However, it has the same basename, so the bogon will be chosen
1304 # first if we set CC to just the basename; use the full file name.
1305 shift
1306 set dummy "$ac_dir/$ac_word" "$@"
1307 shift
1308 ac_cv_prog_CC="$@"
1313 CC="$ac_cv_prog_CC"
1314 if test -n "$CC"; then
1315 echo "$ac_t""$CC" 1>&6
1316 else
1317 echo "$ac_t""no" 1>&6
1320 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1323 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1326 ac_ext=c
1327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1330 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1331 cross_compiling=$ac_cv_prog_cc_cross
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 main(){return(0);}
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1339 ac_cv_prog_cc_works=yes
1340 # If we can't run a trivial program, we are probably using a cross compiler.
1341 if (./conftest; exit) 2>/dev/null; then
1342 ac_cv_prog_cc_cross=no
1343 else
1344 ac_cv_prog_cc_cross=yes
1346 else
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1349 ac_cv_prog_cc_works=no
1351 rm -fr conftest*
1353 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1354 if test $ac_cv_prog_cc_works = no; then
1355 cross_linkable=no
1356 ac_cv_prog_cc_cross=yes
1357 else
1358 cross_linkable=yes
1360 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1361 echo "configure:1362: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1362 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1364 cross_compiling=$ac_cv_prog_cc_cross
1366 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether we are using GNU C" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 cat > conftest.c <<EOF
1372 #ifdef __GNUC__
1373 yes;
1374 #endif
1376 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1377 ac_cv_prog_gcc=yes
1378 else
1379 ac_cv_prog_gcc=no
1383 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1385 if test $ac_cv_prog_gcc = yes; then
1386 GCC=yes
1388 cat > conftest.c <<EOF
1389 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1390 yes;
1391 #endif
1393 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1394 if test -z "$CFLAGS"; then
1395 CFLAGS="-g -O2"
1397 else
1398 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1400 else
1401 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1404 echo $ac_n "checking build system type""... $ac_c" 1>&6
1405 echo "configure:1406: checking build system type" >&5
1407 build_alias=$build
1408 case "$build_alias" in
1409 NONE)
1410 case $nonopt in
1411 NONE) build_alias=$host_alias ;;
1412 *) build_alias=$nonopt ;;
1413 esac ;;
1414 esac
1416 build=`$ac_config_sub $build_alias`
1417 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 echo "$ac_t""$build" 1>&6
1422 if test $host != $build; then
1423 for ac_prog in gcc cc
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 if test -n "$BUILD_CC"; then
1433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1434 else
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1436 for ac_dir in $PATH; do
1437 test -z "$ac_dir" && ac_dir=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_BUILD_CC="$ac_prog"
1440 break
1442 done
1443 IFS="$ac_save_ifs"
1446 BUILD_CC="$ac_cv_prog_BUILD_CC"
1447 if test -n "$BUILD_CC"; then
1448 echo "$ac_t""$BUILD_CC" 1>&6
1449 else
1450 echo "$ac_t""no" 1>&6
1453 test -n "$BUILD_CC" && break
1454 done
1458 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1459 echo "configure:1460: checking how to run the C preprocessor" >&5
1460 # On Suns, sometimes $CPP names a directory.
1461 if test -n "$CPP" && test -d "$CPP"; then
1462 CPP=
1464 if test -z "$CPP"; then
1465 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 # This must be in double quotes, not single quotes, because CPP may get
1469 # substituted into the Makefile and "${CC-cc}" will confuse make.
1470 CPP="${CC-cc} -E"
1471 # On the NeXT, cc -E runs the code through the compiler's parser,
1472 # not just through cpp.
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <assert.h>
1477 Syntax Error
1479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1480 { (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1481 ac_err=`grep -v '^ *+' conftest.out`
1482 if test -z "$ac_err"; then
1484 else
1485 echo "$ac_err" >&5
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 CPP="${CC-cc} -E -traditional-cpp"
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <assert.h>
1494 Syntax Error
1496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1497 { (eval echo configure:1498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1498 ac_err=`grep -v '^ *+' conftest.out`
1499 if test -z "$ac_err"; then
1501 else
1502 echo "$ac_err" >&5
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 CPP=/lib/cpp
1508 rm -f conftest*
1510 rm -f conftest*
1511 ac_cv_prog_CPP="$CPP"
1513 CPP="$ac_cv_prog_CPP"
1514 else
1515 ac_cv_prog_CPP="$CPP"
1517 echo "$ac_t""$CPP" 1>&6
1519 # Was a --with-binutils option given?
1520 if test -n "$path_binutils"; then
1521 # Make absolute; ensure a single trailing slash.
1522 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1523 CC="$CC -B$with_binutils"
1525 AS=`$CC -print-file-name=as`
1526 LD=`$CC -print-file-name=ld`
1528 # Determine whether we are using GNU binutils.
1529 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether $AS is GNU as" >&5
1531 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 # Most GNU programs take a -v and spit out some text including
1535 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1536 if $AS -v </dev/null 2>&1 | grep -q GNU; then
1537 libc_cv_prog_as_gnu=yes
1538 else
1539 libc_cv_prog_as_gnu=no
1543 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1544 rm -f a.out
1545 gnu_as=$libc_cv_prog_as_gnu
1547 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1548 echo "configure:1549: checking whether $LD is GNU ld" >&5
1549 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552 # Most GNU programs take a -v and spit out some text including
1553 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1554 if $LD -v </dev/null 2>&1 | grep -q GNU; then
1555 libc_cv_prog_ld_gnu=yes
1556 else
1557 libc_cv_prog_ld_gnu=no
1561 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1562 gnu_ld=$libc_cv_prog_ld_gnu
1563 if test $host != $build; then
1564 ac_tool_prefix=${host_alias}-
1565 else
1566 ac_tool_prefix=
1569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1570 set dummy ${ac_tool_prefix}ar; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576 if test -n "$AR"; then
1577 ac_cv_prog_AR="$AR" # Let the user override the test.
1578 else
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1580 for ac_dir in $PATH; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_AR="${ac_tool_prefix}ar"
1584 break
1586 done
1587 IFS="$ac_save_ifs"
1588 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1591 AR="$ac_cv_prog_AR"
1592 if test -n "$AR"; then
1593 echo "$ac_t""$AR" 1>&6
1594 else
1595 echo "$ac_t""no" 1>&6
1600 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1601 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606 else
1607 if test -n "$RANLIB"; then
1608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1609 else
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1611 for ac_dir in $PATH; do
1612 test -z "$ac_dir" && ac_dir=.
1613 if test -f $ac_dir/$ac_word; then
1614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1615 break
1617 done
1618 IFS="$ac_save_ifs"
1621 RANLIB="$ac_cv_prog_RANLIB"
1622 if test -n "$RANLIB"; then
1623 echo "$ac_t""$RANLIB" 1>&6
1624 else
1625 echo "$ac_t""no" 1>&6
1629 if test -z "$ac_cv_prog_RANLIB"; then
1630 if test -n "$ac_tool_prefix"; then
1631 # Extract the first word of "ranlib", so it can be a program name with args.
1632 set dummy ranlib; ac_word=$2
1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1634 echo "configure:1635: checking for $ac_word" >&5
1635 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 if test -n "$RANLIB"; then
1639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1640 else
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1642 for ac_dir in $PATH; do
1643 test -z "$ac_dir" && ac_dir=.
1644 if test -f $ac_dir/$ac_word; then
1645 ac_cv_prog_RANLIB="ranlib"
1646 break
1648 done
1649 IFS="$ac_save_ifs"
1650 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1653 RANLIB="$ac_cv_prog_RANLIB"
1654 if test -n "$RANLIB"; then
1655 echo "$ac_t""$RANLIB" 1>&6
1656 else
1657 echo "$ac_t""no" 1>&6
1660 else
1661 RANLIB=":"
1666 # Extract the first word of "bash", so it can be a program name with args.
1667 set dummy bash; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673 case "$BASH" in
1675 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1679 for ac_dir in $PATH; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 ac_cv_path_BASH="$ac_dir/$ac_word"
1683 break
1685 done
1686 IFS="$ac_save_ifs"
1687 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1689 esac
1691 BASH="$ac_cv_path_BASH"
1692 if test -n "$BASH"; then
1693 echo "$ac_t""$BASH" 1>&6
1694 else
1695 echo "$ac_t""no" 1>&6
1698 if test "$BASH" != no &&
1699 $BASH -c 'test "$BASH_VERSINFO" \
1700 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1701 libc_cv_have_bash2=yes
1702 else
1703 libc_cv_have_bash2=no
1707 if test "$BASH" = no; then
1708 # Extract the first word of "ksh", so it can be a program name with args.
1709 set dummy ksh; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 case "$KSH" in
1717 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1721 for ac_dir in $PATH; do
1722 test -z "$ac_dir" && ac_dir=.
1723 if test -f $ac_dir/$ac_word; then
1724 ac_cv_path_KSH="$ac_dir/$ac_word"
1725 break
1727 done
1728 IFS="$ac_save_ifs"
1729 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1731 esac
1733 KSH="$ac_cv_path_KSH"
1734 if test -n "$KSH"; then
1735 echo "$ac_t""$KSH" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1740 if test "$KSH" = no; then
1741 libc_cv_have_ksh=no
1742 else
1743 libc_cv_have_ksh=yes
1745 else
1746 KSH="$BASH"
1748 libc_cv_have_ksh=yes
1752 for ac_prog in perl
1754 # Extract the first word of "$ac_prog", so it can be a program name with args.
1755 set dummy $ac_prog; ac_word=$2
1756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_word" >&5
1758 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 case "$PERL" in
1763 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1767 for ac_dir in $PATH; do
1768 test -z "$ac_dir" && ac_dir=.
1769 if test -f $ac_dir/$ac_word; then
1770 ac_cv_path_PERL="$ac_dir/$ac_word"
1771 break
1773 done
1774 IFS="$ac_save_ifs"
1776 esac
1778 PERL="$ac_cv_path_PERL"
1779 if test -n "$PERL"; then
1780 echo "$ac_t""$PERL" 1>&6
1781 else
1782 echo "$ac_t""no" 1>&6
1785 test -n "$PERL" && break
1786 done
1787 test -n "$PERL" || PERL="no"
1791 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1792 echo "configure:1793: checking for signed size_t type" >&5
1793 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 echo '#include <stddef.h>
1797 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1798 if eval "$ac_cpp conftest.c 2>/dev/null" \
1799 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1800 libc_cv_signed_size_t=no
1801 else
1802 libc_cv_signed_size_t=yes
1804 rm -f conftest*
1807 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1808 if test $libc_cv_signed_size_t = yes; then
1809 cat >> confdefs.h <<\EOF
1810 #undef __SIZE_TYPE__
1811 #define __SIZE_TYPE__ unsigned
1815 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1816 echo "configure:1817: checking for libc-friendly stddef.h" >&5
1817 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #define __need_size_t
1824 #define __need_wchar_t
1825 #include <stddef.h>
1826 #define __need_NULL
1827 #include <stddef.h>
1828 int main() {
1829 size_t size; wchar_t wchar;
1830 #ifdef offsetof
1831 #error stddef.h ignored __need_*
1832 #endif
1833 if (&size == NULL || &wchar == NULL) abort ();
1834 ; return 0; }
1836 if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1837 rm -rf conftest*
1838 libc_cv_friendly_stddef=yes
1839 else
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 rm -rf conftest*
1843 libc_cv_friendly_stddef=no
1845 rm -f conftest*
1848 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1849 if test $libc_cv_friendly_stddef = yes; then
1850 config_vars="$config_vars
1851 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1854 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether we need to use -P to assemble .S files" >&5
1856 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 cat > conftest.S <<EOF
1860 #include "confdefs.h"
1861 /* Nothing whatsoever. */
1863 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1864 libc_cv_need_minus_P=no
1865 else
1866 libc_cv_need_minus_P=yes
1868 rm -f conftest*
1871 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1872 if test $libc_cv_need_minus_P = yes; then
1873 config_vars="$config_vars
1874 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1877 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1878 # be told to read stdin. This causes the compiler to hang when fed an
1879 # .s file.
1880 if test $ac_cv_prog_gcc = yes; then
1881 case `${CC-cc} -v 2>&1` in
1882 *2.7*)
1883 # We must check this even if -pipe is not given here, because the user
1884 # might do `make CFLAGS=-pipe'.
1885 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1886 echo "configure:1887: checking for gcc 2.7.x -pipe bug" >&5
1887 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 cp /dev/null conftest.s
1891 cat >conftest1.s <<EOF
1892 .nosuchdirective
1894 if ${CC-cc} -pipe -c conftest.s <conftest1.s 2>/dev/null; then
1895 libc_cv_gcc_pipe_bug=no
1896 else
1897 libc_cv_gcc_pipe_bug=yes
1899 rm -f conftest*
1902 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1903 if test $libc_cv_gcc_pipe_bug = yes; then
1904 makeCC="${CC-cc} -B\$(common-objpfx)"
1905 makeCFLAGS=$CFLAGS
1906 CFLAGS=`echo $CFLAGS |sed 's/-pipe//'`
1907 fi;;
1908 *) libc_cv_gcc_pipe_bug=no;;
1909 esac
1910 else
1911 libc_cv_gcc_pipe_bug=no
1914 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1915 echo "configure:1916: checking for assembler global-symbol directive" >&5
1916 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 libc_cv_asm_global_directive=UNKNOWN
1920 for ac_globl in .globl .global; do
1921 cat > conftest.s <<EOF
1922 .text
1923 ${ac_globl} foo
1924 foo:
1926 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1927 libc_cv_asm_global_directive=${ac_globl}
1929 rm -f conftest*
1930 test $libc_cv_asm_global_directive != UNKNOWN && break
1931 done
1934 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1935 if test $libc_cv_asm_global_directive = UNKNOWN; then
1936 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1937 else
1938 cat >> confdefs.h <<EOF
1939 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1944 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1945 echo "configure:1946: checking for .set assembler directive" >&5
1946 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949 cat > conftest.s <<EOF
1950 .text
1951 foo:
1952 .set glibc_conftest_frobozz,foo
1953 $libc_cv_asm_global_directive glibc_conftest_frobozz
1955 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1956 # (but it doesn't work), so we must do a linking check to be sure.
1957 cat > conftest1.c <<\EOF
1958 extern int glibc_conftest_frobozz;
1959 main () { printf ("%d\n", glibc_conftest_frobozz); }
1961 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1962 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1963 libc_cv_asm_set_directive=yes
1964 else
1965 libc_cv_asm_set_directive=no
1967 rm -f conftest*
1970 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1971 if test $libc_cv_asm_set_directive = yes; then
1972 cat >> confdefs.h <<\EOF
1973 #define HAVE_ASM_SET_DIRECTIVE 1
1978 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1979 echo "configure:1980: checking for .symver assembler directive" >&5
1980 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983 cat > conftest.s <<EOF
1984 .text
1985 _sym:
1986 .symver _sym,sym@VERS
1988 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1989 libc_cv_asm_symver_directive=yes
1990 else
1991 libc_cv_asm_symver_directive=no
1993 rm -f conftest*
1996 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1997 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1998 echo "configure:1999: checking for ld --version-script" >&5
1999 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 if test $libc_cv_asm_symver_directive = yes; then
2003 cat > conftest.s <<EOF
2004 .text
2005 _sym:
2006 .symver _sym,sym@VERS
2008 cat > conftest.map <<EOF
2009 VERS_1 {
2010 global: sym;
2013 VERS_2 {
2014 global: sym;
2015 } VERS_1;
2017 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2018 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2019 -nostartfiles -nostdlib
2020 -Wl,--version-script,conftest.map
2021 1>&5'; { (eval echo configure:2022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2022 then
2023 libc_cv_ld_version_script_option=yes
2024 else
2025 libc_cv_ld_version_script_option=no
2027 else
2028 libc_cv_ld_version_script_option=no
2030 else
2031 libc_cv_ld_version_script_option=no
2033 rm -f conftest*
2036 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2037 if test $libc_cv_asm_symver_directive = yes &&
2038 test $libc_cv_ld_version_script_option = yes &&
2039 test $enable_versioning = yes; then
2040 VERSIONING=yes
2041 cat >> confdefs.h <<\EOF
2042 #define DO_VERSIONING 1
2045 else
2046 VERSIONING=no
2050 if test $VERSIONING = no; then
2051 echo "\
2052 *** WARNING: You should not compile GNU libc without versioning. Not using
2053 *** versioning will introduce incompatibilities so that old binaries
2054 *** will not run anymore.
2055 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2057 if test $elf = yes; then
2058 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2059 echo "configure:2060: checking for .previous assembler directive" >&5
2060 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 cat > conftest.s <<EOF
2064 .section foo_section
2065 .previous
2067 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2068 libc_cv_asm_previous_directive=yes
2069 else
2070 libc_cv_asm_previous_directive=no
2072 rm -f conftest*
2075 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2076 if test $libc_cv_asm_previous_directive = yes; then
2077 cat >> confdefs.h <<\EOF
2078 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2081 else
2082 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2083 echo "configure:2084: checking for .popsection assembler directive" >&5
2084 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 cat > conftest.s <<EOF
2088 .pushsection foo_section
2089 .popsection
2091 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2092 libc_cv_asm_popsection_directive=yes
2093 else
2094 libc_cv_asm_popsection_directive=no
2096 rm -f conftest*
2099 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2100 if test $libc_cv_asm_popsection_directive = yes; then
2101 cat >> confdefs.h <<\EOF
2102 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2109 if test $elf != yes; then
2110 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2111 echo "configure:2112: checking for .init and .fini sections" >&5
2112 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2119 int main() {
2120 asm (".section .init");
2121 asm (".section .fini");
2122 asm (".text");
2123 ; return 0; }
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126 rm -rf conftest*
2127 libc_cv_have_initfini=yes
2128 else
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2131 rm -rf conftest*
2132 libc_cv_have_initfini=no
2134 rm -f conftest*
2137 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2138 if test $libc_cv_have_initfini = yes; then
2139 cat >> confdefs.h <<\EOF
2140 #define HAVE_INITFINI 1
2148 if test $elf = yes; then
2149 libc_cv_asm_underscores=no
2150 else
2151 if test $ac_cv_prog_cc_works = yes; then
2152 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2153 echo "configure:2154: checking for _ prefix on C symbol names" >&5
2154 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2160 asm ("_glibc_foobar:");
2161 int main() {
2162 glibc_foobar ();
2163 ; return 0; }
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2166 rm -rf conftest*
2167 libc_cv_asm_underscores=yes
2168 else
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 rm -rf conftest*
2172 libc_cv_asm_underscores=no
2174 rm -f conftest*
2177 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2178 else
2179 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2180 echo "configure:2181: checking for _ prefix on C symbol names" >&5
2181 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 void underscore_test(void) {
2188 return; }
2190 if { (eval echo configure:2191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2191 if grep _underscore_test conftest* >/dev/null; then
2192 rm -f conftest*
2193 libc_cv_asm_underscores=yes
2194 else
2195 rm -f conftest*
2196 libc_cv_asm_underscores=no
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -f conftest*
2202 libc_cv_asm_underscores=no
2204 rm -f conftest*
2207 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2210 if test $libc_cv_asm_underscores = no; then
2211 cat >> confdefs.h <<\EOF
2212 #define NO_UNDERSCORES 1
2217 if test $elf = yes; then
2218 libc_cv_weak_symbols=yes
2219 libc_cv_asm_weak_directive=yes
2220 libc_cv_asm_weakext_directive=no
2221 else
2222 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2223 echo "configure:2224: checking for assembler .weak directive" >&5
2224 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 cat > conftest.s <<EOF
2228 .text
2229 ${libc_cv_asm_global_directive} foo
2230 foo:
2231 .weak foo
2232 .weak bar; bar = foo
2234 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2235 libc_cv_asm_weak_directive=yes
2236 else
2237 libc_cv_asm_weak_directive=no
2239 rm -f conftest*
2242 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2244 if test $libc_cv_asm_weak_directive = no; then
2245 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2246 echo "configure:2247: checking for assembler .weakext directive" >&5
2247 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 cat > conftest.s <<EOF
2251 .text
2252 ${libc_cv_asm_global_directive} foo
2253 foo:
2254 .weakext foo
2255 .weakext foo, bar
2257 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2258 libc_cv_asm_weakext_directive=yes
2259 else
2260 libc_cv_asm_weakext_directive=no
2262 rm -f conftest*
2265 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2267 fi # no .weak
2268 fi # not ELF
2270 if test $libc_cv_asm_weak_directive = yes; then
2271 cat >> confdefs.h <<\EOF
2272 #define HAVE_ASM_WEAK_DIRECTIVE 1
2275 elif test $libc_cv_asm_weakext_directive = yes; then
2276 cat >> confdefs.h <<\EOF
2277 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2282 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2283 echo "configure:2284: checking for ld --no-whole-archive" >&5
2284 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2286 else
2287 cat > conftest.c <<\EOF
2288 _start () {}
2289 int __eh_pc;
2290 __throw () {}
2292 if { ac_try='${CC-cc} $CFLAGS
2293 -nostdlib -nostartfiles -Wl,--no-whole-archive
2294 -o conftest conftest.c 1>&5'; { (eval echo configure:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2295 libc_cv_ld_no_whole_archive=yes
2296 else
2297 libc_cv_ld_no_whole_archive=no
2299 rm -f conftest*
2302 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2304 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2305 echo "configure:2306: checking for gcc -fno-exceptions" >&5
2306 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 cat > conftest.c <<\EOF
2310 _start () {}
2311 int __eh_pc;
2312 __throw () {}
2314 if { ac_try='${CC-cc} $CFLAGS
2315 -nostdlib -nostartfiles -fno-exceptions
2316 -o conftest conftest.c 1>&5'; { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2317 libc_cv_gcc_no_exceptions=yes
2318 else
2319 libc_cv_gcc_no_exceptions=no
2321 rm -f conftest*
2324 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2326 if test "$base_machine" = alpha ; then
2327 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2328 echo "configure:2329: checking for function ..ng prefix" >&5
2329 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 cat > conftest.c <<\EOF
2333 foo () { }
2335 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2336 then
2337 libc_cv_gcc_alpha_ng_prefix=yes
2338 else
2339 libc_cv_gcc_alpha_ng_prefix=no
2341 rm -f conftest*
2344 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2345 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2346 cat >> confdefs.h <<\EOF
2347 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2350 else
2351 cat >> confdefs.h <<\EOF
2352 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2358 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2359 echo "configure:2360: checking for DWARF2 unwind info support" >&5
2360 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 cat > conftest.c <<EOF
2364 #line 2365 "configure"
2365 static char __EH_FRAME_BEGIN__;
2366 _start ()
2368 #ifdef CHECK__register_frame
2369 __register_frame (__EH_FRAME_BEGIN__);
2370 __deregister_frame (__EH_FRAME_BEGIN__);
2371 #endif
2372 #ifdef CHECK__register_frame_info
2373 __register_frame_info (__EH_FRAME_BEGIN__);
2374 __deregister_frame_info (__EH_FRAME_BEGIN__);
2375 #endif
2377 int __eh_pc;
2378 __throw () {}
2379 /* FIXME: this is fragile. */
2380 malloc () {}
2381 strcmp () {}
2382 strlen () {}
2383 memcpy () {}
2384 memset () {}
2385 free () {}
2386 abort () {}
2387 __bzero () {}
2389 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2390 -nostdlib -nostartfiles
2391 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2392 libc_cv_gcc_dwarf2_unwind_info=static
2393 else
2394 libc_cv_gcc_dwarf2_unwind_info=no
2396 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2397 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2398 -nostdlib -nostartfiles
2399 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2400 libc_cv_gcc_dwarf2_unwind_info=yes
2401 else
2402 libc_cv_gcc_dwarf2_unwind_info=no
2405 rm -f conftest*
2408 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2409 case $libc_cv_gcc_dwarf2_unwind_info in
2410 yes)
2411 cat >> confdefs.h <<\EOF
2412 #define HAVE_DWARF2_UNWIND_INFO 1
2416 static)
2417 cat >> confdefs.h <<\EOF
2418 #define HAVE_DWARF2_UNWIND_INFO 1
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2426 esac
2428 ### End of automated tests.
2429 ### Now run sysdeps configure fragments.
2431 # sysdeps configure fragments may set these with files to be linked below.
2432 libc_link_dests=
2433 libc_link_sources=
2435 # Iterate over all the sysdep directories we will use, running their
2436 # configure fragments, and looking for a uname implementation.
2437 uname=
2438 for dir in $sysnames; do
2439 case $dir in
2440 /*) dest=$dir ;;
2441 *) dest=$srcdir/$dir ;;
2442 esac
2443 if test -r $dest/configure; then
2444 echo "$ac_t""running configure fragment for $dest" 1>&6
2445 . $dest/configure
2448 if test -z "$uname"; then
2449 if test -r $dest/uname.c ||
2450 test -r $dest/uname.S ||
2451 { test -r $dest/syscalls.list &&
2452 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2453 uname=$dir
2456 done
2460 # If we will use the generic uname implementation, we must figure out what
2461 # it will say by examining the system, and write the results in config-name.h.
2462 if test "$uname" = "sysdeps/generic"; then
2464 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2465 if test $uname_sysname != $config_os; then
2466 config_release=`echo $config_os | sed s/$uname_sysname//`
2469 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2470 echo "configure:2471: checking OS release for uname" >&5
2471 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2475 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2476 != x$config_release; then
2477 # The configuration release is a substring of the kernel release.
2478 libc_cv_uname_release=$kernel_release
2479 elif test x$config_release != x; then
2480 libc_cv_uname_release=$config_release
2481 elif test x$kernel_release != x; then
2482 libc_cv_uname_release=$kernel_release
2483 else
2484 libc_cv_uname_release=unknown
2488 echo "$ac_t""$libc_cv_uname_release" 1>&6
2489 uname_release="$libc_cv_uname_release"
2491 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2492 echo "configure:2493: checking OS version for uname" >&5
2493 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2497 if test -n "$kernel_version"; then
2498 libc_cv_uname_version="$kernel_version"
2499 else
2500 libc_cv_uname_version=unknown
2504 echo "$ac_t""$libc_cv_uname_version" 1>&6
2505 uname_version="$libc_cv_uname_version"
2507 config_uname=config-name.h:config-name.in
2508 else
2509 # For non-generic uname, we don't need to create config-name.h at all.
2510 config_uname=
2513 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2514 echo "configure:2515: checking stdio selection" >&5
2516 case $stdio in
2517 libio) cat >> confdefs.h <<\EOF
2518 #define USE_IN_LIBIO 1
2521 default) stdio=stdio ;;
2522 esac
2523 echo "$ac_t""$stdio" 1>&6
2525 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2526 echo "configure:2527: checking ldap selection" >&5
2528 case $add_ons in
2529 *ldap*)
2530 ldap=yes
2531 LDAP=ldap ;;
2532 *) ldap=no
2533 LDAP= ;;
2534 esac
2535 echo "$ac_t""$ldap" 1>&6
2544 if test $gnu_ld = yes; then
2545 cat >> confdefs.h <<\EOF
2546 #define HAVE_GNU_LD 1
2550 if test $gnu_as = yes; then
2551 cat >> confdefs.h <<\EOF
2552 #define HAVE_GNU_AS 1
2556 if test $elf = yes; then
2557 cat >> confdefs.h <<\EOF
2558 #define HAVE_ELF 1
2565 if test $shared = default; then
2566 if test $gnu_ld = yes; then
2567 shared=$elf
2568 else
2569 # For now we do not assume shared libs are available. In future more
2570 # tests might become available.
2571 shared=no
2575 if test $static = no && test $shared = yes; then
2576 case "$host_os" in
2577 linux* | gnu*)
2578 { echo "configure: error:
2579 *** You must compile with support for the static library since the shared
2580 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2584 esac
2587 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2588 echo "configure:2589: checking whether -fPIC is default" >&5
2589 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 pic_default=yes
2593 cat > conftest.c <<EOF
2594 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2595 # error PIC is default.
2596 #endif
2598 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2599 pic_default=no
2601 rm -f conftest.*
2604 echo "$ac_t""$pic_default" 1>&6
2615 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2616 config_makefile=
2617 else
2618 config_makefile=Makefile
2621 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2624 if test $libc_cv_gcc_pipe_bug = yes; then
2625 realCC=$CC
2626 CC=$makeCC
2627 CFLAGS=$makeCFLAGS
2629 if test -r /vmunix; then
2630 kernel_id=`strings /vmunix | grep UNIX`
2631 elif test -r /dynix; then
2632 kernel_id=`strings /dynix | grep DYNIX`
2633 else
2634 kernel_id=
2639 trap '' 1 2 15
2640 cat > confcache <<\EOF
2641 # This file is a shell script that caches the results of configure
2642 # tests run on this system so they can be shared between configure
2643 # scripts and configure runs. It is not useful on other systems.
2644 # If it contains results you don't want to keep, you may remove or edit it.
2646 # By default, configure uses ./config.cache as the cache file,
2647 # creating it if it does not exist already. You can give configure
2648 # the --cache-file=FILE option to use a different cache file; that is
2649 # what configure does when it calls configure scripts in
2650 # subdirectories, so they share the cache.
2651 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2652 # config.status only pays attention to the cache file if you give it the
2653 # --recheck option to rerun configure.
2656 # The following way of writing the cache mishandles newlines in values,
2657 # but we know of no workaround that is simple, portable, and efficient.
2658 # So, don't put newlines in cache variables' values.
2659 # Ultrix sh set writes to stderr and can't be redirected directly,
2660 # and sets the high bit in the cache file unless we assign to the vars.
2661 (set) 2>&1 |
2662 case `(ac_space=' '; set) 2>&1` in
2663 *ac_space=\ *)
2664 # `set' does not quote correctly, so add quotes (double-quote substitution
2665 # turns \\\\ into \\, and sed turns \\ into \).
2666 sed -n \
2667 -e "s/'/'\\\\''/g" \
2668 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2671 # `set' quotes correctly as required by POSIX, so do not add quotes.
2672 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2674 esac >> confcache
2675 if cmp -s $cache_file confcache; then
2677 else
2678 if test -w $cache_file; then
2679 echo "updating cache $cache_file"
2680 cat confcache > $cache_file
2681 else
2682 echo "not updating unwritable cache $cache_file"
2685 rm -f confcache
2687 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2690 # Let make expand exec_prefix.
2691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2693 # Any assignment to VPATH causes Sun make to only execute
2694 # the first set of double-colon rules, so remove it if not needed.
2695 # If there is a colon in the path, we need to keep it.
2696 if test "x$srcdir" = x.; then
2697 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2700 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2702 DEFS=-DHAVE_CONFIG_H
2704 # Without the "./", some shells look in PATH for config.status.
2705 : ${CONFIG_STATUS=./config.status}
2707 echo creating $CONFIG_STATUS
2708 rm -f $CONFIG_STATUS
2709 cat > $CONFIG_STATUS <<EOF
2710 #! /bin/sh
2711 # Generated automatically by configure.
2712 # Run this file to recreate the current configuration.
2713 # This directory was configured as follows,
2714 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2716 # $0 $ac_configure_args
2718 # Compiler output produced by configure, useful for debugging
2719 # configure, is in ./config.log if it exists.
2721 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2722 for ac_option
2724 case "\$ac_option" in
2725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2726 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2727 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2728 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2729 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2730 exit 0 ;;
2731 -help | --help | --hel | --he | --h)
2732 echo "\$ac_cs_usage"; exit 0 ;;
2733 *) echo "\$ac_cs_usage"; exit 1 ;;
2734 esac
2735 done
2737 ac_given_srcdir=$srcdir
2738 ac_given_INSTALL="$INSTALL"
2740 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2742 cat >> $CONFIG_STATUS <<EOF
2744 # Protect against being on the right side of a sed subst in config.status.
2745 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2746 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2747 $ac_vpsub
2748 $extrasub
2749 s%@CFLAGS@%$CFLAGS%g
2750 s%@CPPFLAGS@%$CPPFLAGS%g
2751 s%@CXXFLAGS@%$CXXFLAGS%g
2752 s%@DEFS@%$DEFS%g
2753 s%@LDFLAGS@%$LDFLAGS%g
2754 s%@LIBS@%$LIBS%g
2755 s%@exec_prefix@%$exec_prefix%g
2756 s%@prefix@%$prefix%g
2757 s%@program_transform_name@%$program_transform_name%g
2758 s%@bindir@%$bindir%g
2759 s%@sbindir@%$sbindir%g
2760 s%@libexecdir@%$libexecdir%g
2761 s%@datadir@%$datadir%g
2762 s%@sysconfdir@%$sysconfdir%g
2763 s%@sharedstatedir@%$sharedstatedir%g
2764 s%@localstatedir@%$localstatedir%g
2765 s%@libdir@%$libdir%g
2766 s%@includedir@%$includedir%g
2767 s%@oldincludedir@%$oldincludedir%g
2768 s%@infodir@%$infodir%g
2769 s%@mandir@%$mandir%g
2770 s%@with_cvs@%$with_cvs%g
2771 s%@subdirs@%$subdirs%g
2772 s%@host@%$host%g
2773 s%@host_alias@%$host_alias%g
2774 s%@host_cpu@%$host_cpu%g
2775 s%@host_vendor@%$host_vendor%g
2776 s%@host_os@%$host_os%g
2777 s%@base_machine@%$base_machine%g
2778 s%@sysnames@%$sysnames%g
2779 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2780 s%@INSTALL_DATA@%$INSTALL_DATA%g
2781 s%@LN_S@%$LN_S%g
2782 s%@MSGFMT@%$MSGFMT%g
2783 s%@MAKEINFO@%$MAKEINFO%g
2784 s%@CC@%$CC%g
2785 s%@cross_linkable@%$cross_linkable%g
2786 s%@build@%$build%g
2787 s%@build_alias@%$build_alias%g
2788 s%@build_cpu@%$build_cpu%g
2789 s%@build_vendor@%$build_vendor%g
2790 s%@build_os@%$build_os%g
2791 s%@BUILD_CC@%$BUILD_CC%g
2792 s%@cross_compiling@%$cross_compiling%g
2793 s%@CPP@%$CPP%g
2794 s%@AR@%$AR%g
2795 s%@RANLIB@%$RANLIB%g
2796 s%@BASH@%$BASH%g
2797 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2798 s%@KSH@%$KSH%g
2799 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2800 s%@PERL@%$PERL%g
2801 s%@VERSIONING@%$VERSIONING%g
2802 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2803 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2804 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2805 s%@uname_sysname@%$uname_sysname%g
2806 s%@uname_release@%$uname_release%g
2807 s%@uname_version@%$uname_version%g
2808 s%@stdio@%$stdio%g
2809 s%@LDAP@%$LDAP%g
2810 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2811 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2812 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2813 s%@has_ldconfig@%$has_ldconfig%g
2814 s%@gnu_ld@%$gnu_ld%g
2815 s%@gnu_as@%$gnu_as%g
2816 s%@elf@%$elf%g
2817 s%@static@%$static%g
2818 s%@shared@%$shared%g
2819 s%@pic_default@%$pic_default%g
2820 s%@profile@%$profile%g
2821 s%@omitfp@%$omitfp%g
2822 s%@bounded@%$bounded%g
2823 s%@static_nss@%$static_nss%g
2824 s%@nopic_initfini@%$nopic_initfini%g
2825 s%@DEFINES@%$DEFINES%g
2826 s%@VERSION@%$VERSION%g
2828 CEOF
2831 cat >> $CONFIG_STATUS <<\EOF
2833 # Split the substitutions into bite-sized pieces for seds with
2834 # small command number limits, like on Digital OSF/1 and HP-UX.
2835 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2836 ac_file=1 # Number of current file.
2837 ac_beg=1 # First line for current file.
2838 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2839 ac_more_lines=:
2840 ac_sed_cmds=""
2841 while $ac_more_lines; do
2842 if test $ac_beg -gt 1; then
2843 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2844 else
2845 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2847 if test ! -s conftest.s$ac_file; then
2848 ac_more_lines=false
2849 rm -f conftest.s$ac_file
2850 else
2851 if test -z "$ac_sed_cmds"; then
2852 ac_sed_cmds="sed -f conftest.s$ac_file"
2853 else
2854 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2856 ac_file=`expr $ac_file + 1`
2857 ac_beg=$ac_end
2858 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2860 done
2861 if test -z "$ac_sed_cmds"; then
2862 ac_sed_cmds=cat
2866 cat >> $CONFIG_STATUS <<EOF
2868 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2870 cat >> $CONFIG_STATUS <<\EOF
2871 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2873 case "$ac_file" in
2874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2876 *) ac_file_in="${ac_file}.in" ;;
2877 esac
2879 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2881 # Remove last slash and all that follows it. Not all systems have dirname.
2882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2884 # The file is in a subdirectory.
2885 test ! -d "$ac_dir" && mkdir "$ac_dir"
2886 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2887 # A "../" for each directory in $ac_dir_suffix.
2888 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2889 else
2890 ac_dir_suffix= ac_dots=
2893 case "$ac_given_srcdir" in
2894 .) srcdir=.
2895 if test -z "$ac_dots"; then top_srcdir=.
2896 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2897 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2898 *) # Relative path.
2899 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2900 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2901 esac
2903 case "$ac_given_INSTALL" in
2904 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2905 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2906 esac
2908 echo creating "$ac_file"
2909 rm -f "$ac_file"
2910 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2911 case "$ac_file" in
2912 *Makefile*) ac_comsub="1i\\
2913 # $configure_input" ;;
2914 *) ac_comsub= ;;
2915 esac
2917 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2918 sed -e "$ac_comsub
2919 s%@configure_input@%$configure_input%g
2920 s%@srcdir@%$srcdir%g
2921 s%@top_srcdir@%$top_srcdir%g
2922 s%@INSTALL@%$INSTALL%g
2923 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2924 fi; done
2925 rm -f conftest.s*
2927 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2928 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2930 # ac_d sets the value in "#define NAME VALUE" lines.
2931 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2932 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2933 ac_dC='\3'
2934 ac_dD='%g'
2935 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2936 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2937 ac_uB='\([ ]\)%\1#\2define\3'
2938 ac_uC=' '
2939 ac_uD='\4%g'
2940 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2941 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2942 ac_eB='$%\1#\2define\3'
2943 ac_eC=' '
2944 ac_eD='%g'
2946 if test "${CONFIG_HEADERS+set}" != set; then
2948 cat >> $CONFIG_STATUS <<EOF
2949 CONFIG_HEADERS="config.h"
2951 cat >> $CONFIG_STATUS <<\EOF
2953 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2955 case "$ac_file" in
2956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2958 *) ac_file_in="${ac_file}.in" ;;
2959 esac
2961 echo creating $ac_file
2963 rm -f conftest.frag conftest.in conftest.out
2964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2965 cat $ac_file_inputs > conftest.in
2969 # Transform confdefs.h into a sed script conftest.vals that substitutes
2970 # the proper values into config.h.in to produce config.h. And first:
2971 # Protect against being on the right side of a sed subst in config.status.
2972 # Protect against being in an unquoted here document in config.status.
2973 rm -f conftest.vals
2974 cat > conftest.hdr <<\EOF
2975 s/[\\&%]/\\&/g
2976 s%[\\$`]%\\&%g
2977 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2978 s%ac_d%ac_u%gp
2979 s%ac_u%ac_e%gp
2981 sed -n -f conftest.hdr confdefs.h > conftest.vals
2982 rm -f conftest.hdr
2984 # This sed command replaces #undef with comments. This is necessary, for
2985 # example, in the case of _POSIX_SOURCE, which is predefined and required
2986 # on some systems where configure will not decide to define it.
2987 cat >> conftest.vals <<\EOF
2988 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2991 # Break up conftest.vals because some shells have a limit on
2992 # the size of here documents, and old seds have small limits too.
2994 rm -f conftest.tail
2995 while :
2997 ac_lines=`grep -c . conftest.vals`
2998 # grep -c gives empty output for an empty file on some AIX systems.
2999 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3000 # Write a limited-size here document to conftest.frag.
3001 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3002 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3003 echo 'CEOF
3004 sed -f conftest.frag conftest.in > conftest.out
3005 rm -f conftest.in
3006 mv conftest.out conftest.in
3007 ' >> $CONFIG_STATUS
3008 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3009 rm -f conftest.vals
3010 mv conftest.tail conftest.vals
3011 done
3012 rm -f conftest.vals
3014 cat >> $CONFIG_STATUS <<\EOF
3015 rm -f conftest.frag conftest.h
3016 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3017 cat conftest.in >> conftest.h
3018 rm -f conftest.in
3019 if cmp -s $ac_file conftest.h 2>/dev/null; then
3020 echo "$ac_file is unchanged"
3021 rm -f conftest.h
3022 else
3023 # Remove last slash and all that follows it. Not all systems have dirname.
3024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3026 # The file is in a subdirectory.
3027 test ! -d "$ac_dir" && mkdir "$ac_dir"
3029 rm -f $ac_file
3030 mv conftest.h $ac_file
3032 fi; done
3036 cat >> $CONFIG_STATUS <<EOF
3037 ac_sources="`echo $libc_link_sources`"
3038 ac_dests="`echo $libc_link_dests`"
3041 cat >> $CONFIG_STATUS <<\EOF
3042 srcdir=$ac_given_srcdir
3043 while test -n "$ac_sources"; do
3044 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3045 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3047 echo "linking $srcdir/$ac_source to $ac_dest"
3049 if test ! -r $srcdir/$ac_source; then
3050 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3052 rm -f $ac_dest
3054 # Make relative symlinks.
3055 # Remove last slash and all that follows it. Not all systems have dirname.
3056 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3057 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3058 # The dest file is in a subdirectory.
3059 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3060 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3061 # A "../" for each directory in $ac_dest_dir_suffix.
3062 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3063 else
3064 ac_dest_dir_suffix= ac_dots=
3067 case "$srcdir" in
3068 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3069 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3070 esac
3072 # Make a symlink if possible; otherwise try a hard link.
3073 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3074 ln $srcdir/$ac_source $ac_dest; then :
3075 else
3076 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3078 done
3080 cat >> $CONFIG_STATUS <<EOF
3081 realCC=$realCC
3082 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3084 cat >> $CONFIG_STATUS <<\EOF
3086 if test "$realCC"; then
3087 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs` >specsT
3088 mv specsT specs
3091 exit 0
3093 chmod +x $CONFIG_STATUS
3094 rm -fr confdefs* $ac_clean_files
3095 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3097 if test "$no_recursion" != yes; then
3099 # Remove --cache-file and --srcdir arguments so they do not pile up.
3100 ac_sub_configure_args=
3101 ac_prev=
3102 for ac_arg in $ac_configure_args; do
3103 if test -n "$ac_prev"; then
3104 ac_prev=
3105 continue
3107 case "$ac_arg" in
3108 -cache-file | --cache-file | --cache-fil | --cache-fi \
3109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3110 ac_prev=cache_file ;;
3111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3115 ac_prev=srcdir ;;
3116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3118 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3119 esac
3120 done
3122 for ac_config_dir in $add_ons; do
3124 # Do not complain, so a configure script can configure whichever
3125 # parts of a large source tree are present.
3126 if test ! -d $srcdir/$ac_config_dir; then
3127 continue
3130 echo configuring in $ac_config_dir
3132 case "$srcdir" in
3133 .) ;;
3135 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3136 else
3137 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3140 esac
3142 ac_popdir=`pwd`
3143 cd $ac_config_dir
3145 # A "../" for each directory in /$ac_config_dir.
3146 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3148 case "$srcdir" in
3149 .) # No --srcdir option. We are building in place.
3150 ac_sub_srcdir=$srcdir ;;
3151 /*) # Absolute path.
3152 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3153 *) # Relative path.
3154 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3155 esac
3157 # Check for guested configure; otherwise get Cygnus style configure.
3158 if test -f $ac_sub_srcdir/configure; then
3159 ac_sub_configure=$ac_sub_srcdir/configure
3160 elif test -f $ac_sub_srcdir/configure.in; then
3161 ac_sub_configure=$ac_configure
3162 else
3163 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3164 ac_sub_configure=
3167 # The recursion is here.
3168 if test -n "$ac_sub_configure"; then
3170 # Make the cache file name correct relative to the subdirectory.
3171 case "$cache_file" in
3172 /*) ac_sub_cache_file=$cache_file ;;
3173 *) # Relative path.
3174 ac_sub_cache_file="$ac_dots$cache_file" ;;
3175 esac
3176 case "$ac_given_INSTALL" in
3177 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3178 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3179 esac
3181 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3182 # The eval makes quoting arguments work.
3183 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3184 then :
3185 else
3186 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3190 cd $ac_popdir
3191 done