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