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