]> sourceware.org Git - glibc.git/blob - configure
1380a4904e83765c26272d550bc8e25e3e02ae17
[glibc.git] / configure
1 #! /bin/sh
2
3 # From configure.in CVSid
4
5
6
7
8 # Guess values for system-dependent variables and create Makefiles.
9 # Generated automatically using autoconf version 2.12
10 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14
15 # Defaults:
16 ac_help=
17 ac_default_prefix=/usr/local
18 # Any additions from configure.in:
19 ac_help="$ac_help
20 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
21 ac_help="$ac_help
22 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
23 ac_help="$ac_help
24 --with-fp if using floating-point hardware [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-binutils if using GNU binutils (as and ld)"
27 ac_help="$ac_help
28 --with-gnu-ld if using GNU ld (in the binutils package)"
29 ac_help="$ac_help
30 --with-gnu-as if using GNU as (in the binutils package)"
31 ac_help="$ac_help
32 --with-elf if using the ELF object format"
33 ac_help="$ac_help
34 --enable-libio build in GNU libio instead of GNU stdio"
35 ac_help="$ac_help
36 --disable-sanity-checks really do not use threads (should not be used
37 except in special situations) [default=yes]"
38 ac_help="$ac_help
39 --enable-shared build shared library [default=yes if GNU ld & ELF]"
40 ac_help="$ac_help
41 --enable-profile build profiled library [default=yes]"
42 ac_help="$ac_help
43 --enable-omitfp build undebuggable optimized library [default=no]"
44 ac_help="$ac_help
45 --enable-bounded build with runtime bounds checking [default=no]"
46 ac_help="$ac_help
47 --enable-add-ons=DIR... configure and build named extra directories"
48 ac_help="$ac_help
49 --enable-static-nss build static NSS modules [default=no]"
50
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
54 build=NONE
55 cache_file=./config.cache
56 exec_prefix=NONE
57 host=NONE
58 no_create=
59 nonopt=NONE
60 no_recursion=
61 prefix=NONE
62 program_prefix=NONE
63 program_suffix=NONE
64 program_transform_name=s,x,x,
65 silent=
66 site=
67 srcdir=
68 target=NONE
69 verbose=
70 x_includes=NONE
71 x_libraries=NONE
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
84
85 # Initialize some other variables.
86 subdirs=
87 MFLAGS= MAKEFLAGS=
88 # Maximum number of lines to put in a shell here document.
89 ac_max_here_lines=12
90
91 ac_prev=
92 for ac_option
93 do
94
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
98 ac_prev=
99 continue
100 fi
101
102 case "$ac_option" in
103 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 *) ac_optarg= ;;
105 esac
106
107 # Accept the important Cygnus configure options, so we can diagnose typos.
108
109 case "$ac_option" in
110
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 ac_prev=bindir ;;
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir="$ac_optarg" ;;
115
116 -build | --build | --buil | --bui | --bu)
117 ac_prev=build ;;
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build="$ac_optarg" ;;
120
121 -cache-file | --cache-file | --cache-fil | --cache-fi \
122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123 ac_prev=cache_file ;;
124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126 cache_file="$ac_optarg" ;;
127
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 ac_prev=datadir ;;
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 | --da=*)
132 datadir="$ac_optarg" ;;
133
134 -disable-* | --disable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 fi
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
142
143 -enable-* | --enable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 fi
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 case "$ac_option" in
151 *=*) ;;
152 *) ac_optarg=yes ;;
153 esac
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
155
156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158 | --exec | --exe | --ex)
159 ac_prev=exec_prefix ;;
160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162 | --exec=* | --exe=* | --ex=*)
163 exec_prefix="$ac_optarg" ;;
164
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
167 with_gas=yes ;;
168
169 -help | --help | --hel | --he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
172 cat << EOF
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
175 Configuration:
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
183 [$ac_default_prefix]
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 [same as prefix]
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
190 [PREFIX/share]
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 [PREFIX/com]
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
205 EOF
206 cat << EOF
207 Host type:
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
218 EOF
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
221 fi
222 exit 0 ;;
223
224 -host | --host | --hos | --ho)
225 ac_prev=host ;;
226 -host=* | --host=* | --hos=* | --ho=*)
227 host="$ac_optarg" ;;
228
229 -includedir | --includedir | --includedi | --included | --include \
230 | --includ | --inclu | --incl | --inc)
231 ac_prev=includedir ;;
232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233 | --includ=* | --inclu=* | --incl=* | --inc=*)
234 includedir="$ac_optarg" ;;
235
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
237 ac_prev=infodir ;;
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir="$ac_optarg" ;;
240
241 -libdir | --libdir | --libdi | --libd)
242 ac_prev=libdir ;;
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir="$ac_optarg" ;;
245
246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247 | --libexe | --libex | --libe)
248 ac_prev=libexecdir ;;
249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250 | --libexe=* | --libex=* | --libe=*)
251 libexecdir="$ac_optarg" ;;
252
253 -localstatedir | --localstatedir | --localstatedi | --localstated \
254 | --localstate | --localstat | --localsta | --localst \
255 | --locals | --local | --loca | --loc | --lo)
256 ac_prev=localstatedir ;;
257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260 localstatedir="$ac_optarg" ;;
261
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263 ac_prev=mandir ;;
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir="$ac_optarg" ;;
266
267 -nfp | --nfp | --nf)
268 # Obsolete; use --without-fp.
269 with_fp=no ;;
270
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 | --no-cr | --no-c)
273 no_create=yes ;;
274
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277 no_recursion=yes ;;
278
279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281 | --oldin | --oldi | --old | --ol | --o)
282 ac_prev=oldincludedir ;;
283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286 oldincludedir="$ac_optarg" ;;
287
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289 ac_prev=prefix ;;
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix="$ac_optarg" ;;
292
293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
294 | --program-pre | --program-pr | --program-p)
295 ac_prev=program_prefix ;;
296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298 program_prefix="$ac_optarg" ;;
299
300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
301 | --program-suf | --program-su | --program-s)
302 ac_prev=program_suffix ;;
303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305 program_suffix="$ac_optarg" ;;
306
307 -program-transform-name | --program-transform-name \
308 | --program-transform-nam | --program-transform-na \
309 | --program-transform-n | --program-transform- \
310 | --program-transform | --program-transfor \
311 | --program-transfo | --program-transf \
312 | --program-trans | --program-tran \
313 | --progr-tra | --program-tr | --program-t)
314 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
323
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
326 silent=yes ;;
327
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329 ac_prev=sbindir ;;
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331 | --sbi=* | --sb=*)
332 sbindir="$ac_optarg" ;;
333
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
337 | --sha | --sh)
338 ac_prev=sharedstatedir ;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342 | --sha=* | --sh=*)
343 sharedstatedir="$ac_optarg" ;;
344
345 -site | --site | --sit)
346 ac_prev=site ;;
347 -site=* | --site=* | --sit=*)
348 site="$ac_optarg" ;;
349
350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 ac_prev=srcdir ;;
352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
353 srcdir="$ac_optarg" ;;
354
355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
356 | --syscon | --sysco | --sysc | --sys | --sy)
357 ac_prev=sysconfdir ;;
358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
360 sysconfdir="$ac_optarg" ;;
361
362 -target | --target | --targe | --targ | --tar | --ta | --t)
363 ac_prev=target ;;
364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
365 target="$ac_optarg" ;;
366
367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
368 verbose=yes ;;
369
370 -version | --version | --versio | --versi | --vers)
371 echo "configure generated by autoconf version 2.12"
372 exit 0 ;;
373
374 -with-* | --with-*)
375 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 fi
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 case "$ac_option" in
382 *=*) ;;
383 *) ac_optarg=yes ;;
384 esac
385 eval "with_${ac_package}='$ac_optarg'" ;;
386
387 -without-* | --without-*)
388 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 fi
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}=no" ;;
395
396 --x)
397 # Obsolete; use --with-x.
398 with_x=yes ;;
399
400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
401 | --x-incl | --x-inc | --x-in | --x-i)
402 ac_prev=x_includes ;;
403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
405 x_includes="$ac_optarg" ;;
406
407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
409 ac_prev=x_libraries ;;
410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
412 x_libraries="$ac_optarg" ;;
413
414 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 ;;
416
417 *)
418 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
419 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 fi
421 if test "x$nonopt" != xNONE; then
422 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 fi
424 nonopt="$ac_option"
425 ;;
426
427 esac
428 done
429
430 if test -n "$ac_prev"; then
431 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432 fi
433
434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435
436 # File descriptor usage:
437 # 0 standard input
438 # 1 file creation
439 # 2 errors and warnings
440 # 3 some systems may open it to /dev/tty
441 # 4 used on the Kubota Titan
442 # 6 checking for... messages and results
443 # 5 compiler messages saved in config.log
444 if test "$silent" = yes; then
445 exec 6>/dev/null
446 else
447 exec 6>&1
448 fi
449 exec 5>./config.log
450
451 echo "\
452 This file contains any messages produced by compilers while
453 running configure, to aid debugging if configure makes a mistake.
454 " 1>&5
455
456 # Strip out --no-create and --no-recursion so they do not pile up.
457 # Also quote any args containing shell metacharacters.
458 ac_configure_args=
459 for ac_arg
460 do
461 case "$ac_arg" in
462 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
463 | --no-cr | --no-c) ;;
464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
467 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
468 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469 esac
470 done
471
472 # NLS nuisances.
473 # Only set these to C if already set. These must not be set unconditionally
474 # because not all systems understand e.g. LANG=C (notably SCO).
475 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
476 # Non-C LC_CTYPE values break the ctype check.
477 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
478 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
479 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
480 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481
482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
483 rm -rf conftest* confdefs.h
484 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
485 echo > confdefs.h
486
487 # A filename unique to this package, relative to the directory that
488 # configure is in, which we can look for to find out if srcdir is correct.
489 ac_unique_file=include/features.h
490
491 # Find the source files, if location was not specified.
492 if test -z "$srcdir"; then
493 ac_srcdir_defaulted=yes
494 # Try the directory containing this script, then its parent.
495 ac_prog=$0
496 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 srcdir=$ac_confdir
499 if test ! -r $srcdir/$ac_unique_file; then
500 srcdir=..
501 fi
502 else
503 ac_srcdir_defaulted=no
504 fi
505 if test ! -r $srcdir/$ac_unique_file; then
506 if test "$ac_srcdir_defaulted" = yes; then
507 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 else
509 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 fi
511 fi
512 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513
514 # Prefer explicitly selected file to automatically selected ones.
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518 else
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 fi
521 fi
522 for ac_site_file in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
525 . "$ac_site_file"
526 fi
527 done
528
529 if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
531 . $cache_file
532 else
533 echo "creating cache $cache_file"
534 > $cache_file
535 fi
536
537 ac_ext=c
538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp='$CPP $CPPFLAGS'
540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling=$ac_cv_prog_cc_cross
543
544 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
546 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='
548 ' ac_t=' '
549 else
550 ac_n=-n ac_c= ac_t=
551 fi
552 else
553 ac_n= ac_c='\c' ac_t=
554 fi
555
556 if test -r /vmunix; then
557 kernel_id=`strings /vmunix | grep UNIX`
558 elif test -r /dynix; then
559 kernel_id=`strings /dynix | grep DYNIX`
560 else
561 kernel_id=
562 fi
563
564
565
566
567 # This will get text that should go into config.make.
568 config_vars=
569
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
580
581 fi
582
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) ;;
591 *)
592 config_vars="$config_vars
593 gettext-srcdir = $withval" ;;
594 esac
595
596 fi
597
598
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
605 fi
606
607 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
608 if test "${with_gnu_binutils+set}" = set; then
609 withval="$with_gnu_binutils"
610 gnu_binutils=$withval
611 else
612 gnu_binutils=no
613 fi
614
615 # Check whether --with-gnu-ld or --without-gnu-ld was given.
616 if test "${with_gnu_ld+set}" = set; then
617 withval="$with_gnu_ld"
618 gnu_ld=$withval
619 else
620 gnu_ld=no
621 fi
622
623 # Check whether --with-gnu-as or --without-gnu-as was given.
624 if test "${with_gnu_as+set}" = set; then
625 withval="$with_gnu_as"
626 gnu_as=$withval
627 else
628 gnu_as=no
629 fi
630
631 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
632 # Check whether --with-elf or --without-elf was given.
633 if test "${with_elf+set}" = set; then
634 withval="$with_elf"
635 elf=$withval
636 else
637 elf=no
638 fi
639
640
641 # Check whether --enable-libio or --disable-libio was given.
642 if test "${enable_libio+set}" = set; then
643 enableval="$enable_libio"
644 if test $enableval = yes; then
645 stdio=libio
646 else
647 stdio=stdio
648 fi
649 else
650 stdio=default
651 fi
652
653
654 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
655 if test "${enable_sanity_checks+set}" = set; then
656 enableval="$enable_sanity_checks"
657 enable_sanity=$enableval
658 else
659 enable_sanity=yes
660 fi
661
662
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
669 fi
670
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
677 fi
678
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
685 fi
686
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
693 fi
694
695
696 # Check whether --enable-add-ons or --disable-add-ons was given.
697 if test "${enable_add_ons+set}" = set; then
698 enableval="$enable_add_ons"
699 add_ons=`echo "$enableval" | sed 's/,/ /g'`
700 else
701 add_ons=
702 fi
703
704 ac_aux_dir=
705 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
706 if test -f $ac_dir/install-sh; then
707 ac_aux_dir=$ac_dir
708 ac_install_sh="$ac_aux_dir/install-sh -c"
709 break
710 elif test -f $ac_dir/install.sh; then
711 ac_aux_dir=$ac_dir
712 ac_install_sh="$ac_aux_dir/install.sh -c"
713 break
714 fi
715 done
716 if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
718 fi
719 ac_config_guess=$ac_aux_dir/config.guess
720 ac_config_sub=$ac_aux_dir/config.sub
721 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
722
723 subdirs="$add_ons"
724
725 add_ons_pfx=
726 if test x"$add_ons" != x; then
727 for f in $add_ons; do
728 add_ons_pfx="$add_ons_pfx $f/"
729 done
730 fi
731
732 # Check whether --enable-static-nss or --disable-static-nss was given.
733 if test "${enable_static_nss+set}" = set; then
734 enableval="$enable_static_nss"
735 static_nss=$enableval
736 else
737 static_nss=no
738 fi
739
740 if test x"$static_nss" = xyes; then
741 cat >> confdefs.h <<\EOF
742 #define DO_STATIC_NSS 1
743 EOF
744
745 fi
746
747
748 # Make sure we can run config.sub.
749 if $ac_config_sub sun4 >/dev/null 2>&1; then :
750 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
751 fi
752
753 echo $ac_n "checking host system type""... $ac_c" 1>&6
754 echo "configure:755: checking host system type" >&5
755
756 host_alias=$host
757 case "$host_alias" in
758 NONE)
759 case $nonopt in
760 NONE)
761 if host_alias=`$ac_config_guess`; then :
762 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
763 fi ;;
764 *) host_alias=$nonopt ;;
765 esac ;;
766 esac
767
768 host=`$ac_config_sub $host_alias`
769 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772 echo "$ac_t""$host" 1>&6
773
774
775 # The way shlib-versions is used to generate soversions.mk uses a
776 # fairly simplistic model for name recognition that can't distinguish
777 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
778 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
779 # tell. This doesn't get used much beyond that, so it's fairly safe.
780 case "$host_os" in
781 linux*)
782 ;;
783 gnu*)
784 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
785 ;;
786 esac
787
788 # We keep the original values in `$config_*' and never modify them, so we
789 # can write them unchanged into config.make. Everything else uses
790 # $machine, $vendor, and $os, and changes them whenever convenient.
791 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
792
793 # Some configurations imply other options.
794 case "$host_os" in
795 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
796 # These systems always use GNU tools.
797 gnu_ld=yes gnu_as=yes ;;
798 esac
799 case "$host_os" in
800 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
801 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
802 ;;
803 gnu* | linux* | sysv4* | solaris2*)
804 # These systems (almost) always use the ELF format.
805 elf=yes
806 ;;
807 esac
808
809 machine=$config_machine
810 vendor=$config_vendor
811 os=$config_os
812
813 # Expand the configuration machine name into a subdirectory by architecture
814 # type and particular chip.
815 case "$machine" in
816 a29k | am29000) base_machine=a29k machine=a29k ;;
817 alpha*) base_machine=alpha machine=alpha/$machine ;;
818 arm*) base_machine=arm machine=arm/$machine ;;
819 hppa*) base_machine=hppa machine=hppa/$machine ;;
820 i[3456]86) base_machine=i386 machine=i386/$machine ;;
821 m680?0) base_machine=m68k machine=m68k/$machine ;;
822 m68k) base_machine=m68k machine=m68k/m68020 ;;
823 m88???) base_machine=m88k machine=m88k/$machine ;;
824 m88k) base_machine=m88k machine=m88k/m88100 ;;
825 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
826 mips*) base_machine=mips machine=mips/$machine ;;
827 sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
828 supersparc) base_machine=sparc machine=sparc/sparc8 ;;
829 sparc64) base_machine=sparc64 machine=sparc64/$machine ;;
830 esac
831
832
833 # Compute the list of sysdep directories for this configuration.
834 # This can take a while to compute.
835 sysdep_dir=$srcdir/sysdeps
836 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
837 echo "configure:838: checking sysdep dirs" >&5
838 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
839 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
840
841 case "$os" in
842 gnu*)
843 base_os=mach/hurd ;;
844 netbsd* | 386bsd* | freebsd* | bsdi*)
845 base_os=unix/bsd/bsd4.4 ;;
846 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
847 base_os=unix/bsd ;;
848 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
849 base_os=unix/sysv ;;
850 solaris[2-9]*)
851 base_os=unix/sysv/sysv4 ;;
852 none)
853 base_os=standalone ;;
854 *)
855 base_os='' ;;
856 esac
857
858 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
859 tail=$os
860 ostry=$os
861 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
862 ostry="$ostry /$o"
863 tail=$o
864 done
865 o=`echo $tail | sed 's/[0-9]*$//'`
866 if test $o != $tail; then
867 ostry="$ostry /$o"
868 fi
869 # For linux-gnu, try linux-gnu, then linux.
870 o=`echo $tail | sed 's/-.*$//'`
871 if test $o != $tail; then
872 ostry="$ostry /$o"
873 fi
874
875 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
876 base=
877 tail=$base_os
878 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
879 set $b
880 base="$base /$1"
881 tail="$2"
882 done
883
884 # For sparc/sparc9, try sparc/sparc9 and then sparc.
885 mach=
886 tail=$machine
887 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
888 set $m
889 # Prepend the machine's FPU directory unless --without-fp.
890 if test "$with_fp" = yes; then
891 mach="$mach /$1/fpu"
892 fi
893 mach="$mach /$1"
894 tail="$2"
895 done
896
897
898 # Find what sysdep directories exist.
899 sysnames=
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
901 for d in $add_ons_pfx ''; do
902 for b in $base ''; do
903 for m0 in $mach ''; do
904 for v in /$vendor ''; do
905 for o in /$ostry ''; do
906 for m in $mach ''; do
907 if test "$m0$b$v$o$m"; then
908 try="${d}sysdeps$m0$b$v$o$m"
909 test -n "$enable_debug_configure" &&
910 echo "$0 DEBUG: try $try" >&2
911 case $try in
912 /*) dest=$try ;;
913 *) dest=$srcdir/$try ;;
914 esac
915 if test -d $dest; then
916 sysnames="$sysnames $try"
917 { test -n "$o" || test -n "$b"; } && os_used=t
918 { test -n "$m" || test -n "$m0"; } && machine_used=t
919 fi
920 fi
921 done
922 done
923 done
924 done
925 done
926 done
927 IFS="$ac_save_ifs"
928
929 if test -z "$os_used" && test "$os" != none; then
930 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
931 fi
932 if test -z "$machine_used" && test "$machine" != none; then
933 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
934 fi
935
936 # We have now validated the configuration.
937
938
939 # If using ELF, look for an `elf' subdirectory of each machine directory.
940 # We prepend these rather than inserting them whereever the machine appears
941 # because things specified by the machine's ELF ABI should override
942 # OS-specific things, and should always be the same for any OS on the
943 # machine (otherwise what's the point of an ABI?).
944 if test "$elf" = yes; then
945 elf_dirs=
946 for d in $add_ons_pfx ''; do
947 case $d in
948 /*) xsrcdir= ;;
949 *) xsrcdir=$srcdir/ ;;
950 esac
951 for m in $mach; do
952 if test -d $xsrcdir${d}sysdeps$m/elf; then
953 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
954 fi
955 done
956 done
957 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
958 fi
959
960
961 # Expand the list of system names into a full list of directories
962 # from each element's parent name and Implies file (if present).
963 set $sysnames
964 names=
965 while test $# -gt 0; do
966 name=$1
967 shift
968
969 case " $names " in *" $name "*)
970 # Already in the list.
971 continue
972 esac
973
974 # Report each name as we discover it, so there is no long pause in output.
975 echo $ac_n "$name $ac_c" >&6
976
977 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
978
979 case $name in
980 /*) xsrcdir= ;;
981 *) xsrcdir=$srcdir/ ;;
982 esac
983 test -n "$enable_debug_configure" &&
984 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
985
986 if test -f $xsrcdir$name/Implies; then
987 # Collect more names from the `Implies' file (removing comments).
988 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
989 implied=
990 for x in $implied_candidate; do
991 if test -d $xsrcdir$name_base/$x; then
992 implied="$implied $name_base/$x";
993 else
994 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
995 fi
996 done
997 else
998 implied=
999 fi
1000
1001 # Add NAME to the list of names.
1002 names="$names $name"
1003
1004 # Find the parent of NAME, using the empty string if it has none.
1005 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1006
1007 # Add the names implied by NAME, and NAME's parent (if it has one), to
1008 # the list of names to be processed (the argument list). We prepend the
1009 # implied names to the list and append the parent. We want implied
1010 # directories to come before further directories inferred from the
1011 # configuration components; this ensures that for sysv4, unix/common
1012 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1013 # after sysv4).
1014 sysnames="`echo $implied $* $parent`"
1015 test -n "$sysnames" && set $sysnames
1016 done
1017
1018 # Add the default directories.
1019 sysnames="$names sysdeps/generic sysdeps/stub"
1020
1021 # The other names were emitted during the scan.
1022 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1023
1024
1025 ### Locate tools.
1026
1027 # Find a good install program. We prefer a C program (faster),
1028 # so one script is as good as another. But avoid the broken or
1029 # incompatible versions:
1030 # SysV /etc/install, /usr/sbin/install
1031 # SunOS /usr/etc/install
1032 # IRIX /sbin/install
1033 # AIX /bin/install
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1046 case "$ac_dir/" in
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1048 *)
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 for ac_prog in ginstall installbsd scoinst install; do
1051 if test -f $ac_dir/$ac_prog; then
1052 if test $ac_prog = install &&
1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # AIX install. It has an incompatible calling convention.
1055 # OSF/1 installbsd also uses dspmsg, but is usable.
1056 :
1057 else
1058 ac_cv_path_install="$ac_dir/$ac_prog -c"
1059 break 2
1060 fi
1061 fi
1062 done
1063 ;;
1064 esac
1065 done
1066 IFS="$ac_save_IFS"
1067
1068 fi
1069 if test "${ac_cv_path_install+set}" = set; then
1070 INSTALL="$ac_cv_path_install"
1071 else
1072 # As a last resort, use the slow shell script. We don't cache a
1073 # path for INSTALL within a source directory, because that will
1074 # break other packages using the cache if that directory is
1075 # removed, or if the path is relative.
1076 INSTALL="$ac_install_sh"
1077 fi
1078 fi
1079 echo "$ac_t""$INSTALL" 1>&6
1080
1081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1082 # It thinks the first close brace ends the variable substitution.
1083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1084
1085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1086
1087 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1088 # The makefiles need to use a different form to find it in $srcdir.
1089 INSTALL='$(..)./install-sh -c'
1090 fi
1091 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ln -s works" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 rm -f conftestdata
1097 if ln -s X conftestdata 2>/dev/null
1098 then
1099 rm -f conftestdata
1100 ac_cv_prog_LN_S="ln -s"
1101 else
1102 ac_cv_prog_LN_S=ln
1103 fi
1104 fi
1105 LN_S="$ac_cv_prog_LN_S"
1106 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1107 echo "$ac_t""yes" 1>&6
1108 else
1109 echo "$ac_t""no" 1>&6
1110 fi
1111
1112 for ac_prog in msgfmt gmsgfmt
1113 do
1114 # Extract the first word of "$ac_prog", so it can be a program name with args.
1115 set dummy $ac_prog; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121 if test -n "$MSGFMT"; then
1122 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1123 else
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1125 for ac_dir in $PATH; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_MSGFMT="$ac_prog"
1129 break
1130 fi
1131 done
1132 IFS="$ac_save_ifs"
1133 fi
1134 fi
1135 MSGFMT="$ac_cv_prog_MSGFMT"
1136 if test -n "$MSGFMT"; then
1137 echo "$ac_t""$MSGFMT" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1140 fi
1141
1142 test -n "$MSGFMT" && break
1143 done
1144 test -n "$MSGFMT" || MSGFMT=":"
1145
1146
1147 # Extract the first word of "gcc", so it can be a program name with args.
1148 set dummy gcc; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 else
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1158 for ac_dir in $PATH; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_CC="gcc"
1162 break
1163 fi
1164 done
1165 IFS="$ac_save_ifs"
1166 fi
1167 fi
1168 CC="$ac_cv_prog_CC"
1169 if test -n "$CC"; then
1170 echo "$ac_t""$CC" 1>&6
1171 else
1172 echo "$ac_t""no" 1>&6
1173 fi
1174
1175 if test -z "$CC"; then
1176 # Extract the first word of "cc", so it can be a program name with args.
1177 set dummy cc; ac_word=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 if test -n "$CC"; then
1184 ac_cv_prog_CC="$CC" # Let the user override the test.
1185 else
1186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1187 ac_prog_rejected=no
1188 for ac_dir in $PATH; do
1189 test -z "$ac_dir" && ac_dir=.
1190 if test -f $ac_dir/$ac_word; then
1191 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1192 ac_prog_rejected=yes
1193 continue
1194 fi
1195 ac_cv_prog_CC="cc"
1196 break
1197 fi
1198 done
1199 IFS="$ac_save_ifs"
1200 if test $ac_prog_rejected = yes; then
1201 # We found a bogon in the path, so make sure we never use it.
1202 set dummy $ac_cv_prog_CC
1203 shift
1204 if test $# -gt 0; then
1205 # We chose a different compiler from the bogus one.
1206 # However, it has the same basename, so the bogon will be chosen
1207 # first if we set CC to just the basename; use the full file name.
1208 shift
1209 set dummy "$ac_dir/$ac_word" "$@"
1210 shift
1211 ac_cv_prog_CC="$@"
1212 fi
1213 fi
1214 fi
1215 fi
1216 CC="$ac_cv_prog_CC"
1217 if test -n "$CC"; then
1218 echo "$ac_t""$CC" 1>&6
1219 else
1220 echo "$ac_t""no" 1>&6
1221 fi
1222
1223 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1224 fi
1225
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1228
1229 ac_ext=c
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cc_cross
1235
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1239 main(){return(0);}
1240 EOF
1241 if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1242 ac_cv_prog_cc_works=yes
1243 # If we can't run a trivial program, we are probably using a cross compiler.
1244 if (./conftest; exit) 2>/dev/null; then
1245 ac_cv_prog_cc_cross=no
1246 else
1247 ac_cv_prog_cc_cross=yes
1248 fi
1249 else
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1252 ac_cv_prog_cc_works=no
1253 fi
1254 rm -fr conftest*
1255
1256 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1257 if test $ac_cv_prog_cc_works = no; then
1258 cross_linkable=no
1259 ac_cv_prog_cc_cross=yes
1260 else
1261 cross_linkable=yes
1262 fi
1263 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1264 echo "configure:1265: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1265 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1266
1267 cross_compiling=$ac_cv_prog_cc_cross
1268
1269 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether we are using GNU C" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274 cat > conftest.c <<EOF
1275 #ifdef __GNUC__
1276 yes;
1277 #endif
1278 EOF
1279 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1280 ac_cv_prog_gcc=yes
1281 else
1282 ac_cv_prog_gcc=no
1283 fi
1284 fi
1285
1286 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1287
1288 if test $ac_cv_prog_gcc = yes; then
1289 GCC=yes
1290
1291 cat > conftest.c <<EOF
1292 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1293 yes;
1294 #endif
1295 EOF
1296 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1297 if test -z "$CFLAGS"; then
1298 CFLAGS="-g -O2"
1299 fi
1300 else
1301 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1302 fi
1303 else
1304 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1305 fi
1306
1307 echo $ac_n "checking build system type""... $ac_c" 1>&6
1308 echo "configure:1309: checking build system type" >&5
1309
1310 build_alias=$build
1311 case "$build_alias" in
1312 NONE)
1313 case $nonopt in
1314 NONE) build_alias=$host_alias ;;
1315 *) build_alias=$nonopt ;;
1316 esac ;;
1317 esac
1318
1319 build=`$ac_config_sub $build_alias`
1320 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323 echo "$ac_t""$build" 1>&6
1324
1325 if test $host != $build; then
1326 for ac_prog in gcc cc
1327 do
1328 # Extract the first word of "$ac_prog", so it can be a program name with args.
1329 set dummy $ac_prog; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335 if test -n "$BUILD_CC"; then
1336 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1337 else
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1339 for ac_dir in $PATH; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_BUILD_CC="$ac_prog"
1343 break
1344 fi
1345 done
1346 IFS="$ac_save_ifs"
1347 fi
1348 fi
1349 BUILD_CC="$ac_cv_prog_BUILD_CC"
1350 if test -n "$BUILD_CC"; then
1351 echo "$ac_t""$BUILD_CC" 1>&6
1352 else
1353 echo "$ac_t""no" 1>&6
1354 fi
1355
1356 test -n "$BUILD_CC" && break
1357 done
1358
1359 fi
1360
1361 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1362 echo "configure:1363: checking how to run the C preprocessor" >&5
1363 # On Suns, sometimes $CPP names a directory.
1364 if test -n "$CPP" && test -d "$CPP"; then
1365 CPP=
1366 fi
1367 if test -z "$CPP"; then
1368 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 # This must be in double quotes, not single quotes, because CPP may get
1372 # substituted into the Makefile and "${CC-cc}" will confuse make.
1373 CPP="${CC-cc} -E"
1374 # On the NeXT, cc -E runs the code through the compiler's parser,
1375 # not just through cpp.
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 #include <assert.h>
1380 Syntax Error
1381 EOF
1382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383 { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1384 ac_err=`grep -v '^ *+' conftest.out`
1385 if test -z "$ac_err"; then
1386 :
1387 else
1388 echo "$ac_err" >&5
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 CPP="${CC-cc} -E -traditional-cpp"
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 #include <assert.h>
1397 Syntax Error
1398 EOF
1399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1400 { (eval echo configure:1401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1401 ac_err=`grep -v '^ *+' conftest.out`
1402 if test -z "$ac_err"; then
1403 :
1404 else
1405 echo "$ac_err" >&5
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1408 rm -rf conftest*
1409 CPP=/lib/cpp
1410 fi
1411 rm -f conftest*
1412 fi
1413 rm -f conftest*
1414 ac_cv_prog_CPP="$CPP"
1415 fi
1416 CPP="$ac_cv_prog_CPP"
1417 else
1418 ac_cv_prog_CPP="$CPP"
1419 fi
1420 echo "$ac_t""$CPP" 1>&6
1421
1422 if test $host != $build; then
1423 ac_tool_prefix=${host_alias}-
1424 else
1425 ac_tool_prefix=
1426 fi
1427
1428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}ar; ac_word=$2
1430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1431 echo "configure:1432: checking for $ac_word" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1434 else
1435 if test -n "$AR"; then
1436 ac_cv_prog_AR="$AR" # Let the user override the test.
1437 else
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1439 for ac_dir in $PATH; do
1440 test -z "$ac_dir" && ac_dir=.
1441 if test -f $ac_dir/$ac_word; then
1442 ac_cv_prog_AR="${ac_tool_prefix}ar"
1443 break
1444 fi
1445 done
1446 IFS="$ac_save_ifs"
1447 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1448 fi
1449 fi
1450 AR="$ac_cv_prog_AR"
1451 if test -n "$AR"; then
1452 echo "$ac_t""$AR" 1>&6
1453 else
1454 echo "$ac_t""no" 1>&6
1455 fi
1456
1457
1458
1459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1462 echo "configure:1463: checking for $ac_word" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465 else
1466 if test -n "$RANLIB"; then
1467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1468 else
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1470 for ac_dir in $PATH; do
1471 test -z "$ac_dir" && ac_dir=.
1472 if test -f $ac_dir/$ac_word; then
1473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1474 break
1475 fi
1476 done
1477 IFS="$ac_save_ifs"
1478 fi
1479 fi
1480 RANLIB="$ac_cv_prog_RANLIB"
1481 if test -n "$RANLIB"; then
1482 echo "$ac_t""$RANLIB" 1>&6
1483 else
1484 echo "$ac_t""no" 1>&6
1485 fi
1486
1487
1488 if test -z "$ac_cv_prog_RANLIB"; then
1489 if test -n "$ac_tool_prefix"; then
1490 # Extract the first word of "ranlib", so it can be a program name with args.
1491 set dummy ranlib; ac_word=$2
1492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1493 echo "configure:1494: checking for $ac_word" >&5
1494 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 if test -n "$RANLIB"; then
1498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1499 else
1500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1501 for ac_dir in $PATH; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/$ac_word; then
1504 ac_cv_prog_RANLIB="ranlib"
1505 break
1506 fi
1507 done
1508 IFS="$ac_save_ifs"
1509 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1510 fi
1511 fi
1512 RANLIB="$ac_cv_prog_RANLIB"
1513 if test -n "$RANLIB"; then
1514 echo "$ac_t""$RANLIB" 1>&6
1515 else
1516 echo "$ac_t""no" 1>&6
1517 fi
1518
1519 else
1520 RANLIB=":"
1521 fi
1522 fi
1523
1524
1525 # Extract the first word of "bash", so it can be a program name with args.
1526 set dummy bash; ac_word=$2
1527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_word" >&5
1529 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532 case "$BASH" in
1533 /*)
1534 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1535 ;;
1536 *)
1537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1538 for ac_dir in $PATH; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_path_BASH="$ac_dir/$ac_word"
1542 break
1543 fi
1544 done
1545 IFS="$ac_save_ifs"
1546 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1547 ;;
1548 esac
1549 fi
1550 BASH="$ac_cv_path_BASH"
1551 if test -n "$BASH"; then
1552 echo "$ac_t""$BASH" 1>&6
1553 else
1554 echo "$ac_t""no" 1>&6
1555 fi
1556
1557 if test "$BASH" != no &&
1558 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1559 libc_cv_have_bash2=yes
1560 else
1561 libc_cv_have_bash2=no
1562 fi
1563
1564
1565 if test "$BASH" = no; then
1566 # Extract the first word of "ksh", so it can be a program name with args.
1567 set dummy ksh; ac_word=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 case "$KSH" in
1574 /*)
1575 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1576 ;;
1577 *)
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1579 for ac_dir in $PATH; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_path_KSH="$ac_dir/$ac_word"
1583 break
1584 fi
1585 done
1586 IFS="$ac_save_ifs"
1587 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1588 ;;
1589 esac
1590 fi
1591 KSH="$ac_cv_path_KSH"
1592 if test -n "$KSH"; then
1593 echo "$ac_t""$KSH" 1>&6
1594 else
1595 echo "$ac_t""no" 1>&6
1596 fi
1597
1598 if test "$KSH" = no; then
1599 libc_cv_have_ksh=no
1600 else
1601 libc_cv_have_ksh=yes
1602 fi
1603 else
1604 KSH="$BASH"
1605
1606 libc_cv_have_ksh=yes
1607 fi
1608
1609
1610 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1611 echo "configure:1612: checking for signed size_t type" >&5
1612 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1614 else
1615 echo '#include <stddef.h>
1616 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1617 if eval "$ac_cpp conftest.c 2>/dev/null" \
1618 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1619 libc_cv_signed_size_t=no
1620 else
1621 libc_cv_signed_size_t=yes
1622 fi
1623 rm -f conftest*
1624 fi
1625
1626 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1627 if test $libc_cv_signed_size_t = yes; then
1628 cat >> confdefs.h <<\EOF
1629 #undef __SIZE_TYPE__
1630 #define __SIZE_TYPE__ unsigned
1631 EOF
1632 fi
1633
1634 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1635 echo "configure:1636: checking for libc-friendly stddef.h" >&5
1636 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #define __need_size_t
1643 #define __need_wchar_t
1644 #include <stddef.h>
1645 #define __need_NULL
1646 #include <stddef.h>
1647 int main() {
1648 size_t size; wchar_t wchar;
1649 #ifdef offsetof
1650 #error stddef.h ignored __need_*
1651 #endif
1652 if (&size == NULL || &wchar == NULL) abort ();
1653 ; return 0; }
1654 EOF
1655 if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1656 rm -rf conftest*
1657 libc_cv_friendly_stddef=yes
1658 else
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 rm -rf conftest*
1662 libc_cv_friendly_stddef=no
1663 fi
1664 rm -f conftest*
1665 fi
1666
1667 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1668 if test $libc_cv_friendly_stddef = yes; then
1669 config_vars="$config_vars
1670 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1671 fi
1672
1673 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether we need to use -P to assemble .S files" >&5
1675 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677 else
1678 cat > conftest.S <<EOF
1679 #include "confdefs.h"
1680 /* Nothing whatsoever. */
1681 EOF
1682 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1683 libc_cv_need_minus_P=no
1684 else
1685 libc_cv_need_minus_P=yes
1686 fi
1687 rm -f conftest*
1688 fi
1689
1690 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1691 if test $libc_cv_need_minus_P = yes; then
1692 config_vars="$config_vars
1693 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1694 fi
1695
1696 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1697 echo "configure:1698: checking for assembler global-symbol directive" >&5
1698 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701 libc_cv_asm_global_directive=UNKNOWN
1702 for ac_globl in .globl .global; do
1703 cat > conftest.s <<EOF
1704 .text
1705 ${ac_globl} foo
1706 foo:
1707 EOF
1708 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1709 libc_cv_asm_global_directive=${ac_globl}
1710 fi
1711 rm -f conftest*
1712 test $libc_cv_asm_global_directive != UNKNOWN && break
1713 done
1714 fi
1715
1716 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1717 if test $libc_cv_asm_global_directive = UNKNOWN; then
1718 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1719 else
1720 cat >> confdefs.h <<EOF
1721 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1722 EOF
1723
1724 fi
1725
1726 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1727 echo "configure:1728: checking for .set assembler directive" >&5
1728 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1730 else
1731 cat > conftest.s <<EOF
1732 .text
1733 foo:
1734 .set glibc_conftest_frobozz,foo
1735 $libc_cv_asm_global_directive glibc_conftest_frobozz
1736 EOF
1737 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1738 # (but it doesn't work), so we must do a linking check to be sure.
1739 cat > conftest1.c <<\EOF
1740 extern int glibc_conftest_frobozz;
1741 main () { printf ("%d\n", glibc_conftest_frobozz); }
1742 EOF
1743 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1744 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1745 libc_cv_asm_set_directive=yes
1746 else
1747 libc_cv_asm_set_directive=no
1748 fi
1749 rm -f conftest*
1750 fi
1751
1752 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1753 if test $libc_cv_asm_set_directive = yes; then
1754 cat >> confdefs.h <<\EOF
1755 #define HAVE_ASM_SET_DIRECTIVE 1
1756 EOF
1757
1758 fi
1759
1760 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1761 echo "configure:1762: checking for .symver assembler directive" >&5
1762 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765 cat > conftest.s <<EOF
1766 .text
1767 _sym:
1768 .symver _sym,sym@VERS
1769 EOF
1770 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1771 libc_cv_asm_symver_directive=yes
1772 else
1773 libc_cv_asm_symver_directive=no
1774 fi
1775 rm -f conftest*
1776 fi
1777
1778 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1779 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1780 echo "configure:1781: checking for ld --version-script" >&5
1781 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 if test $libc_cv_asm_symver_directive = yes; then
1785 cat > conftest.s <<EOF
1786 .text
1787 _sym:
1788 .symver _sym,sym@VERS
1789 EOF
1790 cat > conftest.map <<EOF
1791 VERS {
1792 global: sym;
1793 };
1794 EOF
1795 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1796 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
1797 -nostartfiles -nostdlib
1798 -Wl,--version-script,conftest.map
1799 1>&5'; { (eval echo configure:1800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
1800 then
1801 libc_cv_ld_version_script_option=yes
1802 else
1803 libc_cv_ld_version_script_option=no
1804 fi
1805 else
1806 libc_cv_ld_version_script_option=no
1807 fi
1808 else
1809 libc_cv_ld_version_script_option=no
1810 fi
1811 rm -f conftest*
1812 fi
1813
1814 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
1815 if test $libc_cv_asm_symver_directive = yes &&
1816 test $libc_cv_ld_version_script_option = yes; then
1817 VERSIONING=yes
1818 cat >> confdefs.h <<\EOF
1819 #define DO_VERSIONING 1
1820 EOF
1821
1822 else
1823 VERSIONING=no
1824 fi
1825
1826
1827 if test $elf = yes; then
1828 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1829 echo "configure:1830: checking for .previous assembler directive" >&5
1830 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833 cat > conftest.s <<EOF
1834 .section foo_section
1835 .previous
1836 EOF
1837 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1838 libc_cv_asm_previous_directive=yes
1839 else
1840 libc_cv_asm_previous_directive=no
1841 fi
1842 rm -f conftest*
1843 fi
1844
1845 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1846 if test $libc_cv_asm_previous_directive = yes; then
1847 cat >> confdefs.h <<\EOF
1848 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1849 EOF
1850
1851 else
1852 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1853 echo "configure:1854: checking for .popsection assembler directive" >&5
1854 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 cat > conftest.s <<EOF
1858 .pushsection foo_section
1859 .popsection
1860 EOF
1861 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1862 libc_cv_asm_popsection_directive=yes
1863 else
1864 libc_cv_asm_popsection_directive=no
1865 fi
1866 rm -f conftest*
1867 fi
1868
1869 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1870 if test $libc_cv_asm_popsection_directive = yes; then
1871 cat >> confdefs.h <<\EOF
1872 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1873 EOF
1874
1875 fi
1876 fi
1877 fi
1878
1879 if test $elf != yes; then
1880 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1881 echo "configure:1882: checking for .init and .fini sections" >&5
1882 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888
1889 int main() {
1890 asm (".section .init");
1891 asm (".section .fini");
1892 asm (".text");
1893 ; return 0; }
1894 EOF
1895 if { (eval echo configure:1896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1896 rm -rf conftest*
1897 libc_cv_have_initfini=yes
1898 else
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 rm -rf conftest*
1902 libc_cv_have_initfini=no
1903 fi
1904 rm -f conftest*
1905 fi
1906
1907 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1908 if test $libc_cv_have_initfini = yes; then
1909 cat >> confdefs.h <<\EOF
1910 #define HAVE_INITFINI 1
1911 EOF
1912
1913 fi
1914 fi
1915
1916 if test $elf = yes; then
1917 libc_cv_asm_underscores=no
1918 else
1919 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1920 echo "configure:1921: checking for _ prefix on C symbol names" >&5
1921 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 asm ("_glibc_foobar:");
1928 int main() {
1929 glibc_foobar ();
1930 ; return 0; }
1931 EOF
1932 if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1933 rm -rf conftest*
1934 libc_cv_asm_underscores=yes
1935 else
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 rm -rf conftest*
1939 libc_cv_asm_underscores=no
1940 fi
1941 rm -f conftest*
1942 fi
1943
1944 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1945 fi
1946 if test $libc_cv_asm_underscores = no; then
1947 cat >> confdefs.h <<\EOF
1948 #define NO_UNDERSCORES 1
1949 EOF
1950
1951 fi
1952
1953 if test $elf = yes; then
1954 libc_cv_weak_symbols=yes
1955 libc_cv_asm_weak_directive=yes
1956 libc_cv_asm_weakext_directive=no
1957 else
1958 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1959 echo "configure:1960: checking for assembler .weak directive" >&5
1960 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962 else
1963 cat > conftest.s <<EOF
1964 .text
1965 ${libc_cv_asm_global_directive} foo
1966 foo:
1967 .weak foo
1968 .weak bar; bar = foo
1969 EOF
1970 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1971 libc_cv_asm_weak_directive=yes
1972 else
1973 libc_cv_asm_weak_directive=no
1974 fi
1975 rm -f conftest*
1976 fi
1977
1978 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1979
1980 if test $libc_cv_asm_weak_directive = no; then
1981 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1982 echo "configure:1983: checking for assembler .weakext directive" >&5
1983 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 cat > conftest.s <<EOF
1987 .text
1988 ${libc_cv_asm_global_directive} foo
1989 foo:
1990 .weakext foo
1991 .weakext foo, bar
1992 EOF
1993 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1994 libc_cv_asm_weakext_directive=yes
1995 else
1996 libc_cv_asm_weakext_directive=no
1997 fi
1998 rm -f conftest*
1999 fi
2000
2001 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2002
2003 fi # no .weak
2004 fi # not ELF
2005
2006 if test $libc_cv_asm_weak_directive = yes; then
2007 cat >> confdefs.h <<\EOF
2008 #define HAVE_ASM_WEAK_DIRECTIVE 1
2009 EOF
2010
2011 elif test $libc_cv_asm_weakext_directive = yes; then
2012 cat >> confdefs.h <<\EOF
2013 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2014 EOF
2015
2016 fi
2017
2018 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2019 echo "configure:2020: checking for ld --no-whole-archive" >&5
2020 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 cat > conftest.c <<\EOF
2024 _start () {}
2025 int __eh_pc;
2026 __throw () {}
2027 EOF
2028 if { ac_try='${CC-cc} $CFLAGS
2029 -nostdlib -nostartfiles -Wl,--no-whole-archive
2030 -o conftest conftest.c 1>&5'; { (eval echo configure:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2031 libc_cv_ld_no_whole_archive=yes
2032 else
2033 libc_cv_ld_no_whole_archive=no
2034 fi
2035 rm -f conftest*
2036 fi
2037
2038 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2039
2040 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2041 echo "configure:2042: checking for gcc -fno-exceptions" >&5
2042 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 cat > conftest.c <<\EOF
2046 _start () {}
2047 int __eh_pc;
2048 __throw () {}
2049 EOF
2050 if { ac_try='${CC-cc} $CFLAGS
2051 -nostdlib -nostartfiles -fno-exceptions
2052 -o conftest conftest.c 1>&5'; { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2053 libc_cv_gcc_no_exceptions=yes
2054 else
2055 libc_cv_gcc_no_exceptions=no
2056 fi
2057 rm -f conftest*
2058 fi
2059
2060 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2061
2062 ### End of automated tests.
2063 ### Now run sysdeps configure fragments.
2064
2065 # sysdeps configure fragments may set these with files to be linked below.
2066 libc_link_dests=
2067 libc_link_sources=
2068
2069 # Iterate over all the sysdep directories we will use, running their
2070 # configure fragments, and looking for a uname implementation.
2071 uname=
2072 for dir in $sysnames; do
2073 case $dir in
2074 /*) dest=$dir ;;
2075 *) dest=$srcdir/$dir ;;
2076 esac
2077 if test -r $dest/configure; then
2078 echo "$ac_t""running configure fragment for $dest" 1>&6
2079 . $dest/configure
2080 fi
2081
2082 if test -z "$uname"; then
2083 if test -r $dest/uname.c ||
2084 test -r $dest/uname.S ||
2085 { test -r $dest/syscalls.list &&
2086 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2087 uname=$dir
2088 fi
2089 fi
2090 done
2091
2092
2093
2094 # If we will use the generic uname implementation, we must figure out what
2095 # it will say by examining the system, and write the results in config-name.h.
2096 if test "$uname" = "sysdeps/generic"; then
2097
2098 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2099 if test $uname_sysname != $config_os; then
2100 config_release=`echo $config_os | sed s/$uname_sysname//`
2101 fi
2102
2103 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2104 echo "configure:2105: checking OS release for uname" >&5
2105 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2109 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2110 != x$config_release; then
2111 # The configuration release is a substring of the kernel release.
2112 libc_cv_uname_release=$kernel_release
2113 elif test x$config_release != x; then
2114 libc_cv_uname_release=$config_release
2115 elif test x$kernel_release != x; then
2116 libc_cv_uname_release=$kernel_release
2117 else
2118 libc_cv_uname_release=unknown
2119 fi
2120 fi
2121
2122 echo "$ac_t""$libc_cv_uname_release" 1>&6
2123 uname_release="$libc_cv_uname_release"
2124
2125 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2126 echo "configure:2127: checking OS version for uname" >&5
2127 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2131 if test -n "$kernel_version"; then
2132 libc_cv_uname_version="$kernel_version"
2133 else
2134 libc_cv_uname_version=unknown
2135 fi
2136 fi
2137
2138 echo "$ac_t""$libc_cv_uname_version" 1>&6
2139 uname_version="$libc_cv_uname_version"
2140
2141 config_uname=config-name.h:config-name.in
2142 else
2143 # For non-generic uname, we don't need to create config-name.h at all.
2144 config_uname=
2145 fi
2146
2147 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2148 echo "configure:2149: checking stdio selection" >&5
2149
2150 case $stdio in
2151 libio) cat >> confdefs.h <<\EOF
2152 #define USE_IN_LIBIO 1
2153 EOF
2154 ;;
2155 default) stdio=stdio ;;
2156 esac
2157 echo "$ac_t""$stdio" 1>&6
2158
2159
2160
2161
2162
2163
2164
2165
2166 if test $gnu_ld = yes; then
2167 cat >> confdefs.h <<\EOF
2168 #define HAVE_GNU_LD 1
2169 EOF
2170
2171 fi
2172 if test $gnu_as = yes; then
2173 cat >> confdefs.h <<\EOF
2174 #define HAVE_GNU_AS 1
2175 EOF
2176
2177 fi
2178 if test $elf = yes; then
2179 cat >> confdefs.h <<\EOF
2180 #define HAVE_ELF 1
2181 EOF
2182
2183 fi
2184
2185
2186 if test $shared = default; then
2187 if test $gnu_ld = yes; then
2188 shared=$elf
2189 else
2190 # For now we do not assume shared libs are available. In future more
2191 # tests might become available.
2192 shared=no
2193 fi
2194 fi
2195
2196
2197
2198
2199
2200
2201
2202
2203 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2204 config_makefile=
2205 else
2206 config_makefile=Makefile
2207 fi
2208
2209 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2210
2211
2212 trap '' 1 2 15
2213 cat > confcache <<\EOF
2214 # This file is a shell script that caches the results of configure
2215 # tests run on this system so they can be shared between configure
2216 # scripts and configure runs. It is not useful on other systems.
2217 # If it contains results you don't want to keep, you may remove or edit it.
2218 #
2219 # By default, configure uses ./config.cache as the cache file,
2220 # creating it if it does not exist already. You can give configure
2221 # the --cache-file=FILE option to use a different cache file; that is
2222 # what configure does when it calls configure scripts in
2223 # subdirectories, so they share the cache.
2224 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2225 # config.status only pays attention to the cache file if you give it the
2226 # --recheck option to rerun configure.
2227 #
2228 EOF
2229 # The following way of writing the cache mishandles newlines in values,
2230 # but we know of no workaround that is simple, portable, and efficient.
2231 # So, don't put newlines in cache variables' values.
2232 # Ultrix sh set writes to stderr and can't be redirected directly,
2233 # and sets the high bit in the cache file unless we assign to the vars.
2234 (set) 2>&1 |
2235 case `(ac_space=' '; set) 2>&1` in
2236 *ac_space=\ *)
2237 # `set' does not quote correctly, so add quotes (double-quote substitution
2238 # turns \\\\ into \\, and sed turns \\ into \).
2239 sed -n \
2240 -e "s/'/'\\\\''/g" \
2241 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2242 ;;
2243 *)
2244 # `set' quotes correctly as required by POSIX, so do not add quotes.
2245 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2246 ;;
2247 esac >> confcache
2248 if cmp -s $cache_file confcache; then
2249 :
2250 else
2251 if test -w $cache_file; then
2252 echo "updating cache $cache_file"
2253 cat confcache > $cache_file
2254 else
2255 echo "not updating unwritable cache $cache_file"
2256 fi
2257 fi
2258 rm -f confcache
2259
2260 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2261
2262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2263 # Let make expand exec_prefix.
2264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2265
2266 # Any assignment to VPATH causes Sun make to only execute
2267 # the first set of double-colon rules, so remove it if not needed.
2268 # If there is a colon in the path, we need to keep it.
2269 if test "x$srcdir" = x.; then
2270 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2271 fi
2272
2273 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2274
2275 DEFS=-DHAVE_CONFIG_H
2276
2277 # Without the "./", some shells look in PATH for config.status.
2278 : ${CONFIG_STATUS=./config.status}
2279
2280 echo creating $CONFIG_STATUS
2281 rm -f $CONFIG_STATUS
2282 cat > $CONFIG_STATUS <<EOF
2283 #! /bin/sh
2284 # Generated automatically by configure.
2285 # Run this file to recreate the current configuration.
2286 # This directory was configured as follows,
2287 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2288 #
2289 # $0 $ac_configure_args
2290 #
2291 # Compiler output produced by configure, useful for debugging
2292 # configure, is in ./config.log if it exists.
2293
2294 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2295 for ac_option
2296 do
2297 case "\$ac_option" in
2298 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2299 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2300 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2301 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2302 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2303 exit 0 ;;
2304 -help | --help | --hel | --he | --h)
2305 echo "\$ac_cs_usage"; exit 0 ;;
2306 *) echo "\$ac_cs_usage"; exit 1 ;;
2307 esac
2308 done
2309
2310 ac_given_srcdir=$srcdir
2311 ac_given_INSTALL="$INSTALL"
2312
2313 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2314 EOF
2315 cat >> $CONFIG_STATUS <<EOF
2316
2317 # Protect against being on the right side of a sed subst in config.status.
2318 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2319 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2320 $ac_vpsub
2321 $extrasub
2322 s%@CFLAGS@%$CFLAGS%g
2323 s%@CPPFLAGS@%$CPPFLAGS%g
2324 s%@CXXFLAGS@%$CXXFLAGS%g
2325 s%@DEFS@%$DEFS%g
2326 s%@LDFLAGS@%$LDFLAGS%g
2327 s%@LIBS@%$LIBS%g
2328 s%@exec_prefix@%$exec_prefix%g
2329 s%@prefix@%$prefix%g
2330 s%@program_transform_name@%$program_transform_name%g
2331 s%@bindir@%$bindir%g
2332 s%@sbindir@%$sbindir%g
2333 s%@libexecdir@%$libexecdir%g
2334 s%@datadir@%$datadir%g
2335 s%@sysconfdir@%$sysconfdir%g
2336 s%@sharedstatedir@%$sharedstatedir%g
2337 s%@localstatedir@%$localstatedir%g
2338 s%@libdir@%$libdir%g
2339 s%@includedir@%$includedir%g
2340 s%@oldincludedir@%$oldincludedir%g
2341 s%@infodir@%$infodir%g
2342 s%@mandir@%$mandir%g
2343 s%@subdirs@%$subdirs%g
2344 s%@host@%$host%g
2345 s%@host_alias@%$host_alias%g
2346 s%@host_cpu@%$host_cpu%g
2347 s%@host_vendor@%$host_vendor%g
2348 s%@host_os@%$host_os%g
2349 s%@base_machine@%$base_machine%g
2350 s%@sysnames@%$sysnames%g
2351 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2352 s%@INSTALL_DATA@%$INSTALL_DATA%g
2353 s%@LN_S@%$LN_S%g
2354 s%@MSGFMT@%$MSGFMT%g
2355 s%@CC@%$CC%g
2356 s%@cross_linkable@%$cross_linkable%g
2357 s%@build@%$build%g
2358 s%@build_alias@%$build_alias%g
2359 s%@build_cpu@%$build_cpu%g
2360 s%@build_vendor@%$build_vendor%g
2361 s%@build_os@%$build_os%g
2362 s%@BUILD_CC@%$BUILD_CC%g
2363 s%@cross_compiling@%$cross_compiling%g
2364 s%@CPP@%$CPP%g
2365 s%@AR@%$AR%g
2366 s%@RANLIB@%$RANLIB%g
2367 s%@BASH@%$BASH%g
2368 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2369 s%@KSH@%$KSH%g
2370 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2371 s%@VERSIONING@%$VERSIONING%g
2372 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2373 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2374 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2375 s%@uname_sysname@%$uname_sysname%g
2376 s%@uname_release@%$uname_release%g
2377 s%@uname_version@%$uname_version%g
2378 s%@stdio@%$stdio%g
2379 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2380 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2381 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2382 s%@has_ldconfig@%$has_ldconfig%g
2383 s%@gnu_ld@%$gnu_ld%g
2384 s%@gnu_as@%$gnu_as%g
2385 s%@elf@%$elf%g
2386 s%@shared@%$shared%g
2387 s%@profile@%$profile%g
2388 s%@omitfp@%$omitfp%g
2389 s%@bounded@%$bounded%g
2390 s%@static_nss@%$static_nss%g
2391 s%@nopic_initfini@%$nopic_initfini%g
2392 s%@DEFINES@%$DEFINES%g
2393 s%@VERSION@%$VERSION%g
2394
2395 CEOF
2396 EOF
2397
2398 cat >> $CONFIG_STATUS <<\EOF
2399
2400 # Split the substitutions into bite-sized pieces for seds with
2401 # small command number limits, like on Digital OSF/1 and HP-UX.
2402 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2403 ac_file=1 # Number of current file.
2404 ac_beg=1 # First line for current file.
2405 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2406 ac_more_lines=:
2407 ac_sed_cmds=""
2408 while $ac_more_lines; do
2409 if test $ac_beg -gt 1; then
2410 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2411 else
2412 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2413 fi
2414 if test ! -s conftest.s$ac_file; then
2415 ac_more_lines=false
2416 rm -f conftest.s$ac_file
2417 else
2418 if test -z "$ac_sed_cmds"; then
2419 ac_sed_cmds="sed -f conftest.s$ac_file"
2420 else
2421 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2422 fi
2423 ac_file=`expr $ac_file + 1`
2424 ac_beg=$ac_end
2425 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2426 fi
2427 done
2428 if test -z "$ac_sed_cmds"; then
2429 ac_sed_cmds=cat
2430 fi
2431 EOF
2432
2433 cat >> $CONFIG_STATUS <<EOF
2434
2435 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2436 EOF
2437 cat >> $CONFIG_STATUS <<\EOF
2438 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2440 case "$ac_file" in
2441 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2442 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2443 *) ac_file_in="${ac_file}.in" ;;
2444 esac
2445
2446 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2447
2448 # Remove last slash and all that follows it. Not all systems have dirname.
2449 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2450 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2451 # The file is in a subdirectory.
2452 test ! -d "$ac_dir" && mkdir "$ac_dir"
2453 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2454 # A "../" for each directory in $ac_dir_suffix.
2455 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2456 else
2457 ac_dir_suffix= ac_dots=
2458 fi
2459
2460 case "$ac_given_srcdir" in
2461 .) srcdir=.
2462 if test -z "$ac_dots"; then top_srcdir=.
2463 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2464 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2465 *) # Relative path.
2466 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2467 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2468 esac
2469
2470 case "$ac_given_INSTALL" in
2471 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2472 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2473 esac
2474
2475 echo creating "$ac_file"
2476 rm -f "$ac_file"
2477 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2478 case "$ac_file" in
2479 *Makefile*) ac_comsub="1i\\
2480 # $configure_input" ;;
2481 *) ac_comsub= ;;
2482 esac
2483
2484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2485 sed -e "$ac_comsub
2486 s%@configure_input@%$configure_input%g
2487 s%@srcdir@%$srcdir%g
2488 s%@top_srcdir@%$top_srcdir%g
2489 s%@INSTALL@%$INSTALL%g
2490 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2491 fi; done
2492 rm -f conftest.s*
2493
2494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2496 #
2497 # ac_d sets the value in "#define NAME VALUE" lines.
2498 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2499 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2500 ac_dC='\3'
2501 ac_dD='%g'
2502 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2503 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2504 ac_uB='\([ ]\)%\1#\2define\3'
2505 ac_uC=' '
2506 ac_uD='\4%g'
2507 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2508 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2509 ac_eB='$%\1#\2define\3'
2510 ac_eC=' '
2511 ac_eD='%g'
2512
2513 if test "${CONFIG_HEADERS+set}" != set; then
2514 EOF
2515 cat >> $CONFIG_STATUS <<EOF
2516 CONFIG_HEADERS="config.h"
2517 EOF
2518 cat >> $CONFIG_STATUS <<\EOF
2519 fi
2520 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2522 case "$ac_file" in
2523 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2524 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2525 *) ac_file_in="${ac_file}.in" ;;
2526 esac
2527
2528 echo creating $ac_file
2529
2530 rm -f conftest.frag conftest.in conftest.out
2531 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2532 cat $ac_file_inputs > conftest.in
2533
2534 EOF
2535
2536 # Transform confdefs.h into a sed script conftest.vals that substitutes
2537 # the proper values into config.h.in to produce config.h. And first:
2538 # Protect against being on the right side of a sed subst in config.status.
2539 # Protect against being in an unquoted here document in config.status.
2540 rm -f conftest.vals
2541 cat > conftest.hdr <<\EOF
2542 s/[\\&%]/\\&/g
2543 s%[\\$`]%\\&%g
2544 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2545 s%ac_d%ac_u%gp
2546 s%ac_u%ac_e%gp
2547 EOF
2548 sed -n -f conftest.hdr confdefs.h > conftest.vals
2549 rm -f conftest.hdr
2550
2551 # This sed command replaces #undef with comments. This is necessary, for
2552 # example, in the case of _POSIX_SOURCE, which is predefined and required
2553 # on some systems where configure will not decide to define it.
2554 cat >> conftest.vals <<\EOF
2555 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2556 EOF
2557
2558 # Break up conftest.vals because some shells have a limit on
2559 # the size of here documents, and old seds have small limits too.
2560
2561 rm -f conftest.tail
2562 while :
2563 do
2564 ac_lines=`grep -c . conftest.vals`
2565 # grep -c gives empty output for an empty file on some AIX systems.
2566 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2567 # Write a limited-size here document to conftest.frag.
2568 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2569 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2570 echo 'CEOF
2571 sed -f conftest.frag conftest.in > conftest.out
2572 rm -f conftest.in
2573 mv conftest.out conftest.in
2574 ' >> $CONFIG_STATUS
2575 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2576 rm -f conftest.vals
2577 mv conftest.tail conftest.vals
2578 done
2579 rm -f conftest.vals
2580
2581 cat >> $CONFIG_STATUS <<\EOF
2582 rm -f conftest.frag conftest.h
2583 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2584 cat conftest.in >> conftest.h
2585 rm -f conftest.in
2586 if cmp -s $ac_file conftest.h 2>/dev/null; then
2587 echo "$ac_file is unchanged"
2588 rm -f conftest.h
2589 else
2590 # Remove last slash and all that follows it. Not all systems have dirname.
2591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2593 # The file is in a subdirectory.
2594 test ! -d "$ac_dir" && mkdir "$ac_dir"
2595 fi
2596 rm -f $ac_file
2597 mv conftest.h $ac_file
2598 fi
2599 fi; done
2600
2601 EOF
2602
2603 cat >> $CONFIG_STATUS <<EOF
2604 ac_sources="`echo $libc_link_sources`"
2605 ac_dests="`echo $libc_link_dests`"
2606 EOF
2607
2608 cat >> $CONFIG_STATUS <<\EOF
2609 srcdir=$ac_given_srcdir
2610 while test -n "$ac_sources"; do
2611 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2612 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2613
2614 echo "linking $srcdir/$ac_source to $ac_dest"
2615
2616 if test ! -r $srcdir/$ac_source; then
2617 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2618 fi
2619 rm -f $ac_dest
2620
2621 # Make relative symlinks.
2622 # Remove last slash and all that follows it. Not all systems have dirname.
2623 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2624 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2625 # The dest file is in a subdirectory.
2626 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2627 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2628 # A "../" for each directory in $ac_dest_dir_suffix.
2629 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2630 else
2631 ac_dest_dir_suffix= ac_dots=
2632 fi
2633
2634 case "$srcdir" in
2635 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2636 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2637 esac
2638
2639 # Make a symlink if possible; otherwise try a hard link.
2640 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2641 ln $srcdir/$ac_source $ac_dest; then :
2642 else
2643 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2644 fi
2645 done
2646 EOF
2647 cat >> $CONFIG_STATUS <<EOF
2648 echo '$config_vars' >> config.make; test -d bits || mkdir bits
2649 EOF
2650 cat >> $CONFIG_STATUS <<\EOF
2651
2652 exit 0
2653 EOF
2654 chmod +x $CONFIG_STATUS
2655 rm -fr confdefs* $ac_clean_files
2656 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2657
2658 if test "$no_recursion" != yes; then
2659
2660 # Remove --cache-file and --srcdir arguments so they do not pile up.
2661 ac_sub_configure_args=
2662 ac_prev=
2663 for ac_arg in $ac_configure_args; do
2664 if test -n "$ac_prev"; then
2665 ac_prev=
2666 continue
2667 fi
2668 case "$ac_arg" in
2669 -cache-file | --cache-file | --cache-fil | --cache-fi \
2670 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2671 ac_prev=cache_file ;;
2672 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2673 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2674 ;;
2675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2676 ac_prev=srcdir ;;
2677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2678 ;;
2679 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2680 esac
2681 done
2682
2683 for ac_config_dir in $add_ons; do
2684
2685 # Do not complain, so a configure script can configure whichever
2686 # parts of a large source tree are present.
2687 if test ! -d $srcdir/$ac_config_dir; then
2688 continue
2689 fi
2690
2691 echo configuring in $ac_config_dir
2692
2693 case "$srcdir" in
2694 .) ;;
2695 *)
2696 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2697 else
2698 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2699 fi
2700 ;;
2701 esac
2702
2703 ac_popdir=`pwd`
2704 cd $ac_config_dir
2705
2706 # A "../" for each directory in /$ac_config_dir.
2707 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2708
2709 case "$srcdir" in
2710 .) # No --srcdir option. We are building in place.
2711 ac_sub_srcdir=$srcdir ;;
2712 /*) # Absolute path.
2713 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2714 *) # Relative path.
2715 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2716 esac
2717
2718 # Check for guested configure; otherwise get Cygnus style configure.
2719 if test -f $ac_sub_srcdir/configure; then
2720 ac_sub_configure=$ac_sub_srcdir/configure
2721 elif test -f $ac_sub_srcdir/configure.in; then
2722 ac_sub_configure=$ac_configure
2723 else
2724 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2725 ac_sub_configure=
2726 fi
2727
2728 # The recursion is here.
2729 if test -n "$ac_sub_configure"; then
2730
2731 # Make the cache file name correct relative to the subdirectory.
2732 case "$cache_file" in
2733 /*) ac_sub_cache_file=$cache_file ;;
2734 *) # Relative path.
2735 ac_sub_cache_file="$ac_dots$cache_file" ;;
2736 esac
2737 case "$ac_given_INSTALL" in
2738 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2739 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2740 esac
2741
2742 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2743 # The eval makes quoting arguments work.
2744 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2745 then :
2746 else
2747 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2748 fi
2749 fi
2750
2751 cd $ac_popdir
2752 done
2753 fi
2754
This page took 0.184088 seconds and 4 git commands to generate.