(_getopt_internal): Don't recognize an option name as ambiguous if it's a prefix...
[glibc.git] / configure
blobb5ef8720664f495298d8efc5ec8f2d2b28825389
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30 --with-gd-include=DIR find libgd include files in DIR"
31 ac_help="$ac_help
32 --with-gd-lib=DIR find libgd library files in DIR"
33 ac_help="$ac_help
34 --with-fp if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36 --with-binutils=PATH specify location of binutils (as and ld)"
37 ac_help="$ac_help
38 --with-elf if using the ELF object format"
39 ac_help="$ac_help
40 --without-cvs if CVS should not be used"
41 ac_help="$ac_help
42 --with-headers=PATH location of system headers to use
43 [e.g. /usr/src/linux/include]
44 [default=compiler default]"
45 ac_help="$ac_help
46 --enable-libio build in GNU libio instead of GNU stdio"
47 ac_help="$ac_help
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
50 ac_help="$ac_help
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
52 ac_help="$ac_help
53 --enable-profile build profiled library [default=yes]"
54 ac_help="$ac_help
55 --enable-omitfp build undebuggable optimized library [default=no]"
56 ac_help="$ac_help
57 --enable-bounded build with runtime bounds checking [default=no]"
58 ac_help="$ac_help
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
61 ac_help="$ac_help
62 --enable-add-ons[=DIR1,DIR2]...
63 configure and build add-ons in DIR1,DIR2,...
64 search for add-ons if no parameter given"
65 ac_help="$ac_help
66 --enable-static-nss build static NSS modules [default=no]"
67 ac_help="$ac_help
68 --disable-force-install don't force installation of files from this package,
69 even if they are older than the installed files"
70 ac_help="$ac_help
71 --enable-kernel=VERSION compile for compatibility with kernel not older
72 than VERSION"
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
77 build=NONE
78 cache_file=./config.cache
79 exec_prefix=NONE
80 host=NONE
81 no_create=
82 nonopt=NONE
83 no_recursion=
84 prefix=NONE
85 program_prefix=NONE
86 program_suffix=NONE
87 program_transform_name=s,x,x,
88 silent=
89 site=
90 srcdir=
91 target=NONE
92 verbose=
93 x_includes=NONE
94 x_libraries=NONE
95 bindir='${exec_prefix}/bin'
96 sbindir='${exec_prefix}/sbin'
97 libexecdir='${exec_prefix}/libexec'
98 datadir='${prefix}/share'
99 sysconfdir='${prefix}/etc'
100 sharedstatedir='${prefix}/com'
101 localstatedir='${prefix}/var'
102 libdir='${exec_prefix}/lib'
103 includedir='${prefix}/include'
104 oldincludedir='/usr/include'
105 infodir='${prefix}/info'
106 mandir='${prefix}/man'
108 # Initialize some other variables.
109 subdirs=
110 MFLAGS= MAKEFLAGS=
111 SHELL=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
113 ac_max_here_lines=12
115 ac_prev=
116 for ac_option
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
122 ac_prev=
123 continue
126 case "$ac_option" in
127 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 *) ac_optarg= ;;
129 esac
131 # Accept the important Cygnus configure options, so we can diagnose typos.
133 case "$ac_option" in
135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
136 ac_prev=bindir ;;
137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138 bindir="$ac_optarg" ;;
140 -build | --build | --buil | --bui | --bu)
141 ac_prev=build ;;
142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143 build="$ac_optarg" ;;
145 -cache-file | --cache-file | --cache-fil | --cache-fi \
146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147 ac_prev=cache_file ;;
148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150 cache_file="$ac_optarg" ;;
152 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
153 ac_prev=datadir ;;
154 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
155 | --da=*)
156 datadir="$ac_optarg" ;;
158 -disable-* | --disable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* | --enable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 case "$ac_option" in
175 *=*) ;;
176 *) ac_optarg=yes ;;
177 esac
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182 | --exec | --exe | --ex)
183 ac_prev=exec_prefix ;;
184 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186 | --exec=* | --exe=* | --ex=*)
187 exec_prefix="$ac_optarg" ;;
189 -gas | --gas | --ga | --g)
190 # Obsolete; use --with-gas.
191 with_gas=yes ;;
193 -help | --help | --hel | --he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
196 cat << EOF
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
199 Configuration:
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
207 [$ac_default_prefix]
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 [same as prefix]
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
214 [PREFIX/share]
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 [PREFIX/com]
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
230 cat << EOF
231 Host type:
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
246 exit 0 ;;
248 -host | --host | --hos | --ho)
249 ac_prev=host ;;
250 -host=* | --host=* | --hos=* | --ho=*)
251 host="$ac_optarg" ;;
253 -includedir | --includedir | --includedi | --included | --include \
254 | --includ | --inclu | --incl | --inc)
255 ac_prev=includedir ;;
256 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257 | --includ=* | --inclu=* | --incl=* | --inc=*)
258 includedir="$ac_optarg" ;;
260 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 ac_prev=infodir ;;
262 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263 infodir="$ac_optarg" ;;
265 -libdir | --libdir | --libdi | --libd)
266 ac_prev=libdir ;;
267 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 libdir="$ac_optarg" ;;
270 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271 | --libexe | --libex | --libe)
272 ac_prev=libexecdir ;;
273 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274 | --libexe=* | --libex=* | --libe=*)
275 libexecdir="$ac_optarg" ;;
277 -localstatedir | --localstatedir | --localstatedi | --localstated \
278 | --localstate | --localstat | --localsta | --localst \
279 | --locals | --local | --loca | --loc | --lo)
280 ac_prev=localstatedir ;;
281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284 localstatedir="$ac_optarg" ;;
286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 ac_prev=mandir ;;
288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289 mandir="$ac_optarg" ;;
291 -nfp | --nfp | --nf)
292 # Obsolete; use --without-fp.
293 with_fp=no ;;
295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 | --no-cr | --no-c)
297 no_create=yes ;;
299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 no_recursion=yes ;;
303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305 | --oldin | --oldi | --old | --ol | --o)
306 ac_prev=oldincludedir ;;
307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310 oldincludedir="$ac_optarg" ;;
312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 ac_prev=prefix ;;
314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 prefix="$ac_optarg" ;;
317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
318 | --program-pre | --program-pr | --program-p)
319 ac_prev=program_prefix ;;
320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322 program_prefix="$ac_optarg" ;;
324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
325 | --program-suf | --program-su | --program-s)
326 ac_prev=program_suffix ;;
327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329 program_suffix="$ac_optarg" ;;
331 -program-transform-name | --program-transform-name \
332 | --program-transform-nam | --program-transform-na \
333 | --program-transform-n | --program-transform- \
334 | --program-transform | --program-transfor \
335 | --program-transfo | --program-transf \
336 | --program-trans | --program-tran \
337 | --progr-tra | --program-tr | --program-t)
338 ac_prev=program_transform_name ;;
339 -program-transform-name=* | --program-transform-name=* \
340 | --program-transform-nam=* | --program-transform-na=* \
341 | --program-transform-n=* | --program-transform-=* \
342 | --program-transform=* | --program-transfor=* \
343 | --program-transfo=* | --program-transf=* \
344 | --program-trans=* | --program-tran=* \
345 | --progr-tra=* | --program-tr=* | --program-t=*)
346 program_transform_name="$ac_optarg" ;;
348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349 | -silent | --silent | --silen | --sile | --sil)
350 silent=yes ;;
352 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 ac_prev=sbindir ;;
354 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 | --sbi=* | --sb=*)
356 sbindir="$ac_optarg" ;;
358 -sharedstatedir | --sharedstatedir | --sharedstatedi \
359 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360 | --sharedst | --shareds | --shared | --share | --shar \
361 | --sha | --sh)
362 ac_prev=sharedstatedir ;;
363 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 | --sha=* | --sh=*)
367 sharedstatedir="$ac_optarg" ;;
369 -site | --site | --sit)
370 ac_prev=site ;;
371 -site=* | --site=* | --sit=*)
372 site="$ac_optarg" ;;
374 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 ac_prev=srcdir ;;
376 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 srcdir="$ac_optarg" ;;
379 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380 | --syscon | --sysco | --sysc | --sys | --sy)
381 ac_prev=sysconfdir ;;
382 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384 sysconfdir="$ac_optarg" ;;
386 -target | --target | --targe | --targ | --tar | --ta | --t)
387 ac_prev=target ;;
388 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389 target="$ac_optarg" ;;
391 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 verbose=yes ;;
394 -version | --version | --versio | --versi | --vers)
395 echo "configure generated by autoconf version 2.13"
396 exit 0 ;;
398 -with-* | --with-*)
399 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 case "$ac_option" in
406 *=*) ;;
407 *) ac_optarg=yes ;;
408 esac
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* | --without-*)
412 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
420 --x)
421 # Obsolete; use --with-x.
422 with_x=yes ;;
424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425 | --x-incl | --x-inc | --x-in | --x-i)
426 ac_prev=x_includes ;;
427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429 x_includes="$ac_optarg" ;;
431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433 ac_prev=x_libraries ;;
434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436 x_libraries="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 nonopt="$ac_option"
451 esac
452 done
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
461 # 0 standard input
462 # 1 file creation
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
469 exec 6>/dev/null
470 else
471 exec 6>&1
473 exec 5>./config.log
475 echo "\
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
478 " 1>&5
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
482 ac_configure_args=
483 for ac_arg
485 case "$ac_arg" in
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c) ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493 esac
494 done
496 # NLS nuisances.
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 echo > confdefs.h
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=include/features.h
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted=yes
518 # Try the directory containing this script, then its parent.
519 ac_prog=$0
520 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 srcdir=$ac_confdir
523 if test ! -r $srcdir/$ac_unique_file; then
524 srcdir=..
526 else
527 ac_srcdir_defaulted=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 else
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 else
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 for ac_site_file in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
549 . "$ac_site_file"
551 done
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
555 . $cache_file
556 else
557 echo "creating cache $cache_file"
558 > $cache_file
561 ac_ext=c
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp='$CPP $CPPFLAGS'
564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling=$ac_cv_prog_cc_cross
568 ac_exeext=
569 ac_objext=o
570 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573 ac_n= ac_c='
574 ' ac_t=' '
575 else
576 ac_n=-n ac_c= ac_t=
578 else
579 ac_n= ac_c='\c' ac_t=
582 if test -r /vmunix; then
583 kernel_id=`strings /vmunix | grep UNIX`
584 elif test -r /dynix; then
585 kernel_id=`strings /dynix | grep DYNIX`
586 else
587 kernel_id=
592 ac_aux_dir=
593 for ac_dir in scripts $srcdir/scripts; do
594 if test -f $ac_dir/install-sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install-sh -c"
597 break
598 elif test -f $ac_dir/install.sh; then
599 ac_aux_dir=$ac_dir
600 ac_install_sh="$ac_aux_dir/install.sh -c"
601 break
603 done
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612 # This will get text that should go into config.make.
613 config_vars=
615 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
616 # Check whether --with-gmp or --without-gmp was given.
617 if test "${with_gmp+set}" = set; then
618 withval="$with_gmp"
619 case "$with_gmp" in
620 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
621 ''|no) ;;
622 *) config_vars="$config_vars
623 gmp-srcdir = $withval" ;;
624 esac
628 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
629 # Check whether --with-gd or --without-gd was given.
630 if test "${with_gd+set}" = set; then
631 withval="$with_gd"
632 case "$with_gd" in
633 yes|''|no) ;;
634 *) libgd_include="-I$withval/include"
635 libgd_ldflags="-L$withval/lib" ;;
636 esac
640 # Check whether --with-gd-include or --without-gd-include was given.
641 if test "${with_gd_include+set}" = set; then
642 withval="$with_gd_include"
643 case "$with_gd_include" in
644 ''|no) ;;
645 *) libgd_include="-I$withval" ;;
646 esac
650 # Check whether --with-gd-lib or --without-gd-lib was given.
651 if test "${with_gd_lib+set}" = set; then
652 withval="$with_gd_lib"
653 case "$with_gd_lib" in
654 ''|no) ;;
655 *) libgd_ldflags="-L$withval" ;;
656 esac
661 if test -n "$libgd_include"; then
662 config_vars="$config_vars
663 CFLAGS-memusagestat.c = $libgd_include"
665 if test -n "$libgd_ldflags"; then
666 config_vars="$config_vars
667 libgd-LDFLAGS = $libgd_ldflags"
670 # Check whether --with-fp or --without-fp was given.
671 if test "${with_fp+set}" = set; then
672 withval="$with_fp"
673 with_fp=$withval
674 else
675 with_fp=yes
678 # Check whether --with-binutils or --without-binutils was given.
679 if test "${with_binutils+set}" = set; then
680 withval="$with_binutils"
681 path_binutils=$withval
682 else
683 path_binutils=''
686 # Check whether --with-elf or --without-elf was given.
687 if test "${with_elf+set}" = set; then
688 withval="$with_elf"
689 elf=$withval
690 else
691 elf=no
694 # Check whether --with-cvs or --without-cvs was given.
695 if test "${with_cvs+set}" = set; then
696 withval="$with_cvs"
697 with_cvs=$withval
698 else
699 with_cvs=yes
704 # Check whether --with-headers or --without-headers was given.
705 if test "${with_headers+set}" = set; then
706 withval="$with_headers"
707 sysheaders=$withval
708 else
709 sysheaders=''
713 # Check whether --enable-libio or --disable-libio was given.
714 if test "${enable_libio+set}" = set; then
715 enableval="$enable_libio"
716 if test $enableval = yes; then
717 stdio=libio
718 else
719 stdio=stdio
721 else
722 stdio=default
726 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
727 if test "${enable_sanity_checks+set}" = set; then
728 enableval="$enable_sanity_checks"
729 enable_sanity=$enableval
730 else
731 enable_sanity=yes
735 static=yes
736 # Check whether --enable-shared or --disable-shared was given.
737 if test "${enable_shared+set}" = set; then
738 enableval="$enable_shared"
739 shared=$enableval
740 else
741 shared=default
744 # Check whether --enable-profile or --disable-profile was given.
745 if test "${enable_profile+set}" = set; then
746 enableval="$enable_profile"
747 profile=$enableval
748 else
749 profile=yes
752 # Check whether --enable-omitfp or --disable-omitfp was given.
753 if test "${enable_omitfp+set}" = set; then
754 enableval="$enable_omitfp"
755 omitfp=$enableval
756 else
757 omitfp=no
760 # Check whether --enable-bounded or --disable-bounded was given.
761 if test "${enable_bounded+set}" = set; then
762 enableval="$enable_bounded"
763 bounded=$enableval
764 else
765 bounded=no
768 # Check whether --enable-versioning or --disable-versioning was given.
769 if test "${enable_versioning+set}" = set; then
770 enableval="$enable_versioning"
771 enable_versioning=$enableval
772 else
773 enable_versioning=yes
777 # Check whether --enable-add-ons or --disable-add-ons was given.
778 if test "${enable_add_ons+set}" = set; then
779 enableval="$enable_add_ons"
780 case "$enableval" in
781 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
782 test "$add_ons" = "*" && add_ons= ;;
783 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
784 esac
785 else
786 add_ons=
790 subdirs="$add_ons"
792 add_ons_pfx=
793 if test x"$add_ons" != x; then
794 for f in $add_ons; do
795 # Test whether such a subdir really exists.
796 if test -d $srcdir/$f; then
797 add_ons_pfx="$add_ons_pfx $f/"
798 else
799 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
801 done
804 # Check whether --enable-static-nss or --disable-static-nss was given.
805 if test "${enable_static_nss+set}" = set; then
806 enableval="$enable_static_nss"
807 static_nss=$enableval
808 else
809 static_nss=no
812 if test x"$static_nss" = xyes; then
813 cat >> confdefs.h <<\EOF
814 #define DO_STATIC_NSS 1
819 # Check whether --enable-force-install or --disable-force-install was given.
820 if test "${enable_force_install+set}" = set; then
821 enableval="$enable_force_install"
822 force_install=$enableval
823 else
824 force_install=yes
829 # Check whether --enable-kernel or --disable-kernel was given.
830 if test "${enable_kernel+set}" = set; then
831 enableval="$enable_kernel"
832 minimum_kernel=$enableval
835 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
836 # Better nothing than this.
837 minimum_kernel=""
838 else
839 if test "$minimum_kernel" = current; then
840 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
845 # Make sure we can run config.sub.
846 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
847 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
850 echo $ac_n "checking host system type""... $ac_c" 1>&6
851 echo "configure:852: checking host system type" >&5
853 host_alias=$host
854 case "$host_alias" in
855 NONE)
856 case $nonopt in
857 NONE)
858 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
859 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
860 fi ;;
861 *) host_alias=$nonopt ;;
862 esac ;;
863 esac
865 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
866 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
867 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
868 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
869 echo "$ac_t""$host" 1>&6
872 # The way shlib-versions is used to generate soversions.mk uses a
873 # fairly simplistic model for name recognition that can't distinguish
874 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
875 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
876 # tell. This doesn't get used much beyond that, so it's fairly safe.
877 case "$host_os" in
878 linux*)
880 gnu*)
881 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
883 esac
885 # We keep the original values in `$config_*' and never modify them, so we
886 # can write them unchanged into config.make. Everything else uses
887 # $machine, $vendor, and $os, and changes them whenever convenient.
888 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
890 # Don't allow vendor == "unknown"
891 test "$config_vendor" = unknown && config_vendor=
892 config_os="`echo $config_os | sed 's/^unknown-//'`"
894 # Some configurations imply other options.
895 case "$host_os" in
896 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
897 # These systems always use GNU tools.
898 gnu_ld=yes gnu_as=yes ;;
899 esac
900 case "$host_os" in
901 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
902 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
904 gnu* | linux* | sysv4* | solaris2* | irix6*)
905 # These systems (almost) always use the ELF format.
906 elf=yes
908 esac
910 machine=$config_machine
911 vendor=$config_vendor
912 os=$config_os
914 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
915 # Unify this here.
916 if test "$machine" = rs6000; then
917 machine="powerpc"
921 ### I put this here to prevent those annoying emails from people who cannot
922 ### read and try to compile glibc on unsupported platforms. --drepper
924 ### By using the undocumented --enable-hacker-mode option for configure
925 ### one can skip this test to make the configuration not fail for unsupported
926 ### platforms.
928 if test -z "$enable_hacker_mode"; then
929 case "$machine-$host_os" in
930 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
933 echo "*** The GNU C library is currently not available for this platform."
934 echo "*** So far nobody cared to port it and if there is no volunteer it"
935 echo "*** might never happen. So, if you have interest to see glibc on"
936 echo "*** this platform visit"
937 echo "*** http://www.gnu.org/software/libc/porting.html"
938 echo "*** and join the group of porters"
939 exit 1
941 esac
944 # Expand the configuration machine name into a subdirectory by architecture
945 # type and particular chip.
946 case "$machine" in
947 a29k | am29000) base_machine=a29k machine=a29k ;;
948 alpha*) base_machine=alpha machine=alpha/$machine ;;
949 arm*) base_machine=arm machine=arm/$machine ;;
950 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
951 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
952 hppa*) base_machine=hppa machine=hppa/$machine ;;
953 i[3456]86) base_machine=i386 machine=i386/$machine ;;
954 ia64) base_machine=ia64 machine=ia64 ;;
955 m680?0) base_machine=m68k machine=m68k/$machine ;;
956 m68k) base_machine=m68k machine=m68k/m68020 ;;
957 m88???) base_machine=m88k machine=m88k/$machine ;;
958 m88k) base_machine=m88k machine=m88k/m88100 ;;
959 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
960 mips*) base_machine=mips
961 case "`uname -m`" in
962 IP22) machine=mips/mips3 ;;
963 *) machine=mips/$machine ;;
964 esac ;;
965 sh3*) base_machine=sh machine=sh/sh3 ;;
966 sh4*) base_machine=sh machine=sh/sh4 ;;
967 sparc | sparcv[67])
968 base_machine=sparc machine=sparc/sparc32 ;;
969 sparcv8 | supersparc | hypersparc)
970 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
971 sparcv8plus | sparcv8plusa | sparcv9)
972 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
973 sparc64 | ultrasparc)
974 base_machine=sparc machine=sparc/sparc64 ;;
975 esac
978 if test "$base_machine" = "i386"; then
979 cat >> confdefs.h <<\EOF
980 #define USE_REGPARMS 1
985 # Compute the list of sysdep directories for this configuration.
986 # This can take a while to compute.
987 sysdep_dir=$srcdir/sysdeps
988 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
989 echo "configure:990: checking sysdep dirs" >&5
990 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
991 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
993 case "$os" in
994 gnu*)
995 base_os=mach/hurd ;;
996 netbsd* | 386bsd* | freebsd* | bsdi*)
997 base_os=unix/bsd/bsd4.4 ;;
998 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
999 base_os=unix/bsd ;;
1000 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1001 base_os=unix/sysv ;;
1002 irix6*)
1003 base_os=unix/sysv/irix6/$os ;;
1004 solaris[2-9]*)
1005 base_os=unix/sysv/sysv4 ;;
1006 hpux*)
1007 base_os=unix/sysv/hpux/$os ;;
1008 aix4.3*)
1009 base_os=unix/sysv/aix/aix4.3 ;;
1010 none)
1011 base_os=standalone ;;
1013 base_os='' ;;
1014 esac
1016 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1017 tail=$os
1018 ostry=$os
1019 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1020 ostry="$ostry /$o"
1021 tail=$o
1022 done
1023 o=`echo $tail | sed 's/[0-9]*$//'`
1024 if test $o != $tail; then
1025 ostry="$ostry /$o"
1027 # For linux-gnu, try linux-gnu, then linux.
1028 o=`echo $tail | sed 's/-.*$//'`
1029 if test $o != $tail; then
1030 ostry="$ostry /$o"
1033 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1034 base=
1035 tail=$base_os
1036 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1037 set $b
1038 base="$base /$1"
1039 tail="$2"
1040 done
1042 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1043 mach=
1044 tail=$machine
1045 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1046 set $m
1047 # Prepend the machine's FPU directory unless --without-fp.
1048 if test "$with_fp" = yes; then
1049 mach="$mach /$1/fpu"
1051 mach="$mach /$1"
1052 tail="$2"
1053 done
1056 # Find what sysdep directories exist.
1057 sysnames=
1058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1059 for d in $add_ons_pfx ''; do
1060 for b in $base ''; do
1061 for m0 in $mach ''; do
1062 for v in /$vendor ''; do
1063 test "$v" = / && continue
1064 for o in /$ostry ''; do
1065 test "$o" = / && continue
1066 for m in $mach ''; do
1067 if test "$m0$b$v$o$m"; then
1068 try="${d}sysdeps$m0$b$v$o$m"
1069 test -n "$enable_debug_configure" &&
1070 echo "$0 DEBUG: try $try" >&2
1071 if test -d $srcdir/$try; then
1072 sysnames="$sysnames $try"
1073 { test -n "$o" || test -n "$b"; } && os_used=t
1074 { test -n "$m" || test -n "$m0"; } && machine_used=t
1077 done
1078 done
1079 done
1080 done
1081 done
1082 done
1083 IFS="$ac_save_ifs"
1085 if test -z "$os_used" && test "$os" != none; then
1086 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1088 if test -z "$machine_used" && test "$machine" != none; then
1089 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1092 # We have now validated the configuration.
1095 # If using ELF, look for an `elf' subdirectory of each machine directory.
1096 # We prepend these rather than inserting them whereever the machine appears
1097 # because things specified by the machine's ELF ABI should override
1098 # OS-specific things, and should always be the same for any OS on the
1099 # machine (otherwise what's the point of an ABI?).
1100 if test "$elf" = yes; then
1101 elf_dirs=
1102 for d in $add_ons_pfx ''; do
1103 for m in $mach; do
1104 if test -d $srcdir/${d}sysdeps$m/elf; then
1105 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1107 done
1108 done
1109 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1113 # Expand the list of system names into a full list of directories
1114 # from each element's parent name and Implies file (if present).
1115 set $sysnames
1116 names=
1117 while test $# -gt 0; do
1118 name=$1
1119 shift
1121 case " $names " in *" $name "*)
1122 # Already in the list.
1123 continue
1124 esac
1126 # Report each name as we discover it, so there is no long pause in output.
1127 echo $ac_n "$name $ac_c" >&6
1129 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1131 case $name in
1132 /*) xsrcdir= ;;
1133 *) xsrcdir=$srcdir/ ;;
1134 esac
1135 test -n "$enable_debug_configure" &&
1136 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1138 if test -f $xsrcdir$name/Implies; then
1139 # Collect more names from the `Implies' file (removing comments).
1140 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1141 implied=
1142 for x in $implied_candidate; do
1143 if test -d $xsrcdir$name_base/$x; then
1144 implied="$implied $name_base/$x";
1145 else
1146 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1148 done
1149 else
1150 implied=
1153 # Add NAME to the list of names.
1154 names="$names $name"
1156 # Find the parent of NAME, using the empty string if it has none.
1157 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1159 # Add the names implied by NAME, and NAME's parent (if it has one), to
1160 # the list of names to be processed (the argument list). We prepend the
1161 # implied names to the list and append the parent. We want implied
1162 # directories to come before further directories inferred from the
1163 # configuration components; this ensures that for sysv4, unix/common
1164 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1165 # after sysv4).
1166 sysnames="`echo $implied $* $parent`"
1167 test -n "$sysnames" && set $sysnames
1168 done
1170 # Add the default directories.
1171 default_sysnames=sysdeps/generic
1172 if test "$elf" = yes; then
1173 default_sysnames="sysdeps/generic/elf $default_sysnames"
1175 sysnames="$names $default_sysnames"
1177 # The other names were emitted during the scan.
1178 echo "$ac_t""$default_sysnames" 1>&6
1181 ### Locate tools.
1183 # Find a good install program. We prefer a C program (faster),
1184 # so one script is as good as another. But avoid the broken or
1185 # incompatible versions:
1186 # SysV /etc/install, /usr/sbin/install
1187 # SunOS /usr/etc/install
1188 # IRIX /sbin/install
1189 # AIX /bin/install
1190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1193 # ./install, which can be erroneously created by make from ./install.sh.
1194 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1195 echo "configure:1196: checking for a BSD compatible install" >&5
1196 if test -z "$INSTALL"; then
1197 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1201 for ac_dir in $PATH; do
1202 # Account for people who put trailing slashes in PATH elements.
1203 case "$ac_dir/" in
1204 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1206 # OSF1 and SCO ODT 3.0 have their own names for install.
1207 # Don't use installbsd from OSF since it installs stuff as root
1208 # by default.
1209 for ac_prog in ginstall scoinst install; do
1210 if test -f $ac_dir/$ac_prog; then
1211 if test $ac_prog = install &&
1212 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1213 # AIX install. It has an incompatible calling convention.
1215 else
1216 ac_cv_path_install="$ac_dir/$ac_prog -c"
1217 break 2
1220 done
1222 esac
1223 done
1224 IFS="$ac_save_IFS"
1227 if test "${ac_cv_path_install+set}" = set; then
1228 INSTALL="$ac_cv_path_install"
1229 else
1230 # As a last resort, use the slow shell script. We don't cache a
1231 # path for INSTALL within a source directory, because that will
1232 # break other packages using the cache if that directory is
1233 # removed, or if the path is relative.
1234 INSTALL="$ac_install_sh"
1237 echo "$ac_t""$INSTALL" 1>&6
1239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1240 # It thinks the first close brace ends the variable substitution.
1241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1247 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1248 # The makefiles need to use a different form to find it in $srcdir.
1249 INSTALL='\$(..)./scripts/install-sh -c'
1251 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ln -s works" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 rm -f conftestdata
1257 if ln -s X conftestdata 2>/dev/null
1258 then
1259 rm -f conftestdata
1260 ac_cv_prog_LN_S="ln -s"
1261 else
1262 ac_cv_prog_LN_S=ln
1265 LN_S="$ac_cv_prog_LN_S"
1266 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1267 echo "$ac_t""yes" 1>&6
1268 else
1269 echo "$ac_t""no" 1>&6
1273 # We need the physical current working directory. We cannot use the
1274 # "pwd -P" shell builtin since that's not portable. Instead we try to
1275 # find a pwd binary. Note that assigning to the PWD environment
1276 # variable might have some interesting side effects, so we don't do
1277 # that.
1278 # Extract the first word of "pwd", so it can be a program name with args.
1279 set dummy pwd; ac_word=$2
1280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281 echo "configure:1282: checking for $ac_word" >&5
1282 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 case "$PWD_P" in
1287 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1289 ?:/*)
1290 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 ac_dummy="$PATH"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1299 break
1301 done
1302 IFS="$ac_save_ifs"
1303 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1305 esac
1307 PWD_P="$ac_cv_path_PWD_P"
1308 if test -n "$PWD_P"; then
1309 echo "$ac_t""$PWD_P" 1>&6
1310 else
1311 echo "$ac_t""no" 1>&6
1314 if test "$PWD_P" = no; then
1315 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1318 # These programs are version sensitive.
1319 echo $ac_n "checking build system type""... $ac_c" 1>&6
1320 echo "configure:1321: checking build system type" >&5
1322 build_alias=$build
1323 case "$build_alias" in
1324 NONE)
1325 case $nonopt in
1326 NONE) build_alias=$host_alias ;;
1327 *) build_alias=$nonopt ;;
1328 esac ;;
1329 esac
1331 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1332 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335 echo "$ac_t""$build" 1>&6
1337 if test $host != $build; then
1338 ac_tool_prefix=${host_alias}-
1339 else
1340 ac_tool_prefix=
1343 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1345 # Extract the first word of "$ac_prog", so it can be a program name with args.
1346 set dummy $ac_prog; ac_word=$2
1347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_word" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1354 else
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1356 ac_dummy="$PATH"
1357 for ac_dir in $ac_dummy; do
1358 test -z "$ac_dir" && ac_dir=.
1359 if test -f $ac_dir/$ac_word; then
1360 ac_cv_prog_CC="$ac_prog"
1361 break
1363 done
1364 IFS="$ac_save_ifs"
1367 CC="$ac_cv_prog_CC"
1368 if test -n "$CC"; then
1369 echo "$ac_t""$CC" 1>&6
1370 else
1371 echo "$ac_t""no" 1>&6
1374 test -n "$CC" && break
1375 done
1377 if test -z "$CC"; then
1378 ac_verc_fail=yes
1379 else
1380 # Found it, now check the version.
1381 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1382 echo "configure:1383: checking version of $CC" >&5
1383 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1384 case $ac_prog_version in
1385 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1386 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1387 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1388 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1390 esac
1391 echo "$ac_t""$ac_prog_version" 1>&6
1393 if test $ac_verc_fail = yes; then
1394 critic_missing=t
1397 for ac_prog in gnumake gmake make
1399 # Extract the first word of "$ac_prog", so it can be a program name with args.
1400 set dummy $ac_prog; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 if test -n "$MAKE"; then
1407 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1408 else
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 ac_dummy="$PATH"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_MAKE="$ac_prog"
1415 break
1417 done
1418 IFS="$ac_save_ifs"
1421 MAKE="$ac_cv_prog_MAKE"
1422 if test -n "$MAKE"; then
1423 echo "$ac_t""$MAKE" 1>&6
1424 else
1425 echo "$ac_t""no" 1>&6
1428 test -n "$MAKE" && break
1429 done
1431 if test -z "$MAKE"; then
1432 ac_verc_fail=yes
1433 else
1434 # Found it, now check the version.
1435 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1436 echo "configure:1437: checking version of $MAKE" >&5
1437 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1438 case $ac_prog_version in
1439 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1440 3.79* | 3.[89]*)
1441 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1442 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1444 esac
1445 echo "$ac_t""$ac_prog_version" 1>&6
1447 if test $ac_verc_fail = yes; then
1448 critic_missing=t
1452 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1454 # Extract the first word of "$ac_prog", so it can be a program name with args.
1455 set dummy $ac_prog; ac_word=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 if test -n "$MSGFMT"; then
1462 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1463 else
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 ac_dummy="$PATH"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_MSGFMT="$ac_prog"
1470 break
1472 done
1473 IFS="$ac_save_ifs"
1476 MSGFMT="$ac_cv_prog_MSGFMT"
1477 if test -n "$MSGFMT"; then
1478 echo "$ac_t""$MSGFMT" 1>&6
1479 else
1480 echo "$ac_t""no" 1>&6
1483 test -n "$MSGFMT" && break
1484 done
1486 if test -z "$MSGFMT"; then
1487 ac_verc_fail=yes
1488 else
1489 # Found it, now check the version.
1490 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1491 echo "configure:1492: checking version of $MSGFMT" >&5
1492 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1493 case $ac_prog_version in
1494 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1495 0.[1-9][0-9].* | [1-9].*)
1496 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1497 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1499 esac
1500 echo "$ac_t""$ac_prog_version" 1>&6
1502 if test $ac_verc_fail = yes; then
1503 MSGFMT=: aux_missing=t
1506 for ac_prog in makeinfo
1508 # Extract the first word of "$ac_prog", so it can be a program name with args.
1509 set dummy $ac_prog; ac_word=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 if test -n "$MAKEINFO"; then
1516 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1517 else
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1519 ac_dummy="$PATH"
1520 for ac_dir in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_MAKEINFO="$ac_prog"
1524 break
1526 done
1527 IFS="$ac_save_ifs"
1530 MAKEINFO="$ac_cv_prog_MAKEINFO"
1531 if test -n "$MAKEINFO"; then
1532 echo "$ac_t""$MAKEINFO" 1>&6
1533 else
1534 echo "$ac_t""no" 1>&6
1537 test -n "$MAKEINFO" && break
1538 done
1540 if test -z "$MAKEINFO"; then
1541 ac_verc_fail=yes
1542 else
1543 # Found it, now check the version.
1544 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1545 echo "configure:1546: checking version of $MAKEINFO" >&5
1546 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1547 case $ac_prog_version in
1548 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1549 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
1550 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1551 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1553 esac
1554 echo "$ac_t""$ac_prog_version" 1>&6
1556 if test $ac_verc_fail = yes; then
1557 MAKEINFO=: aux_missing=t
1560 for ac_prog in gsed sed
1562 # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy $ac_prog; ac_word=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5
1566 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568 else
1569 if test -n "$SED"; then
1570 ac_cv_prog_SED="$SED" # Let the user override the test.
1571 else
1572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1573 ac_dummy="$PATH"
1574 for ac_dir in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir=.
1576 if test -f $ac_dir/$ac_word; then
1577 ac_cv_prog_SED="$ac_prog"
1578 break
1580 done
1581 IFS="$ac_save_ifs"
1584 SED="$ac_cv_prog_SED"
1585 if test -n "$SED"; then
1586 echo "$ac_t""$SED" 1>&6
1587 else
1588 echo "$ac_t""no" 1>&6
1591 test -n "$SED" && break
1592 done
1594 if test -z "$SED"; then
1595 ac_verc_fail=yes
1596 else
1597 # Found it, now check the version.
1598 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1599 echo "configure:1600: checking version of $SED" >&5
1600 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1601 case $ac_prog_version in
1602 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1603 3.0[2-9]*|3.[1-9]*|[4-9]*)
1604 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1605 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1607 esac
1608 echo "$ac_t""$ac_prog_version" 1>&6
1610 if test $ac_verc_fail = yes; then
1611 SED=: aux_missing=t
1615 if test -n "$critic_missing"; then
1616 { echo "configure: error:
1617 *** Some critical program is missing or too old.
1618 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1621 test -n "$aux_missing" && echo "configure: warning:
1622 *** An auxiliary program is missing or too old;
1623 *** some features will be disabled.
1624 *** Check the INSTALL file for required versions." 1>&2
1626 # glibcbug.in wants to know the compiler version.
1627 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1631 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1633 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1637 ac_ext=c
1638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1639 ac_cpp='$CPP $CPPFLAGS'
1640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1642 cross_compiling=$ac_cv_prog_cc_cross
1644 cat > conftest.$ac_ext << EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1649 main(){return(0);}
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1652 ac_cv_prog_cc_works=yes
1653 # If we can't run a trivial program, we are probably using a cross compiler.
1654 if (./conftest; exit) 2>/dev/null; then
1655 ac_cv_prog_cc_cross=no
1656 else
1657 ac_cv_prog_cc_cross=yes
1659 else
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 ac_cv_prog_cc_works=no
1664 rm -fr conftest*
1665 ac_ext=c
1666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1667 ac_cpp='$CPP $CPPFLAGS'
1668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1670 cross_compiling=$ac_cv_prog_cc_cross
1674 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1675 if test $ac_cv_prog_cc_works = no; then
1676 cross_linkable=no
1677 ac_cv_prog_cc_cross=yes
1678 else
1679 cross_linkable=yes
1681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1682 echo "configure:1683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1691 cross_compiling=$ac_cv_prog_cc_cross
1693 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether we are using GNU C" >&5
1695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1697 else
1698 cat > conftest.c <<EOF
1699 #ifdef __GNUC__
1700 yes;
1701 #endif
1703 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1704 ac_cv_prog_gcc=yes
1705 else
1706 ac_cv_prog_gcc=no
1710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1711 if test $ac_cv_prog_gcc != yes; then
1712 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1715 echo $ac_n "checking build system type""... $ac_c" 1>&6
1716 echo "configure:1717: checking build system type" >&5
1718 build_alias=$build
1719 case "$build_alias" in
1720 NONE)
1721 case $nonopt in
1722 NONE) build_alias=$host_alias ;;
1723 *) build_alias=$nonopt ;;
1724 esac ;;
1725 esac
1727 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1728 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731 echo "$ac_t""$build" 1>&6
1733 if test $host != $build; then
1734 for ac_prog in gcc cc
1736 # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy $ac_prog; ac_word=$2
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1739 echo "configure:1740: checking for $ac_word" >&5
1740 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742 else
1743 if test -n "$BUILD_CC"; then
1744 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1745 else
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1747 ac_dummy="$PATH"
1748 for ac_dir in $ac_dummy; do
1749 test -z "$ac_dir" && ac_dir=.
1750 if test -f $ac_dir/$ac_word; then
1751 ac_cv_prog_BUILD_CC="$ac_prog"
1752 break
1754 done
1755 IFS="$ac_save_ifs"
1758 BUILD_CC="$ac_cv_prog_BUILD_CC"
1759 if test -n "$BUILD_CC"; then
1760 echo "$ac_t""$BUILD_CC" 1>&6
1761 else
1762 echo "$ac_t""no" 1>&6
1765 test -n "$BUILD_CC" && break
1766 done
1770 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1771 echo "configure:1772: checking how to run the C preprocessor" >&5
1772 # On Suns, sometimes $CPP names a directory.
1773 if test -n "$CPP" && test -d "$CPP"; then
1774 CPP=
1776 if test -z "$CPP"; then
1777 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 # This must be in double quotes, not single quotes, because CPP may get
1781 # substituted into the Makefile and "${CC-cc}" will confuse make.
1782 CPP="${CC-cc} -E"
1783 # On the NeXT, cc -E runs the code through the compiler's parser,
1784 # not just through cpp.
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 #include <assert.h>
1789 Syntax Error
1791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792 { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1794 if test -z "$ac_err"; then
1796 else
1797 echo "$ac_err" >&5
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 rm -rf conftest*
1801 CPP="${CC-cc} -E -traditional-cpp"
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1805 #include <assert.h>
1806 Syntax Error
1808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1811 if test -z "$ac_err"; then
1813 else
1814 echo "$ac_err" >&5
1815 echo "configure: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 rm -rf conftest*
1818 CPP="${CC-cc} -nologo -E"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #include <assert.h>
1823 Syntax Error
1825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1826 { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1828 if test -z "$ac_err"; then
1830 else
1831 echo "$ac_err" >&5
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 rm -rf conftest*
1835 CPP=/lib/cpp
1837 rm -f conftest*
1839 rm -f conftest*
1841 rm -f conftest*
1842 ac_cv_prog_CPP="$CPP"
1844 CPP="$ac_cv_prog_CPP"
1845 else
1846 ac_cv_prog_CPP="$CPP"
1848 echo "$ac_t""$CPP" 1>&6
1850 # Was a --with-binutils option given?
1851 if test -n "$path_binutils"; then
1852 # Make absolute; ensure a single trailing slash.
1853 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1854 CC="$CC -B$path_binutils"
1856 AS=`$CC -print-prog-name=as`
1857 LD=`$CC -print-prog-name=ld`
1858 AR=`$CC -print-prog-name=ar`
1861 # ranlib has to be treated a bit differently since it might not exist at all.
1862 RANLIB=`$CC -print-prog-name=ranlib`
1863 if test $RANLIB = ranlib; then
1864 # This extra check has to happen since gcc simply echos the parameter in
1865 # case it cannot find the value in its own directories.
1866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873 if test -n "$RANLIB"; then
1874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1875 else
1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1877 ac_dummy="$PATH"
1878 for ac_dir in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir=.
1880 if test -f $ac_dir/$ac_word; then
1881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1882 break
1884 done
1885 IFS="$ac_save_ifs"
1888 RANLIB="$ac_cv_prog_RANLIB"
1889 if test -n "$RANLIB"; then
1890 echo "$ac_t""$RANLIB" 1>&6
1891 else
1892 echo "$ac_t""no" 1>&6
1896 if test -z "$ac_cv_prog_RANLIB"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "ranlib", so it can be a program name with args.
1899 set dummy ranlib; ac_word=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1904 else
1905 if test -n "$RANLIB"; then
1906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1907 else
1908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1909 ac_dummy="$PATH"
1910 for ac_dir in $ac_dummy; do
1911 test -z "$ac_dir" && ac_dir=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_prog_RANLIB="ranlib"
1914 break
1916 done
1917 IFS="$ac_save_ifs"
1918 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1921 RANLIB="$ac_cv_prog_RANLIB"
1922 if test -n "$RANLIB"; then
1923 echo "$ac_t""$RANLIB" 1>&6
1924 else
1925 echo "$ac_t""no" 1>&6
1928 else
1929 RANLIB=":"
1936 # Determine whether we are using GNU binutils.
1937 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether $AS is GNU as" >&5
1939 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 # Most GNU programs take a -v and spit out some text including
1943 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1944 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1945 libc_cv_prog_as_gnu=yes
1946 else
1947 libc_cv_prog_as_gnu=no
1949 rm -fr contest*
1952 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1953 rm -f a.out
1954 gnu_as=$libc_cv_prog_as_gnu
1956 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether $LD is GNU ld" >&5
1958 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960 else
1961 # Most GNU programs take a -v and spit out some text including
1962 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1963 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1964 libc_cv_prog_ld_gnu=yes
1965 else
1966 libc_cv_prog_ld_gnu=no
1968 rm -fr contest*
1971 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1972 gnu_ld=$libc_cv_prog_ld_gnu
1974 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1975 set dummy ${ac_tool_prefix}mig; ac_word=$2
1976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_word" >&5
1978 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 if test -n "$MIG"; then
1982 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1983 else
1984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1985 ac_dummy="$PATH"
1986 for ac_dir in $ac_dummy; do
1987 test -z "$ac_dir" && ac_dir=.
1988 if test -f $ac_dir/$ac_word; then
1989 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1990 break
1992 done
1993 IFS="$ac_save_ifs"
1994 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1997 MIG="$ac_cv_prog_MIG"
1998 if test -n "$MIG"; then
1999 echo "$ac_t""$MIG" 1>&6
2000 else
2001 echo "$ac_t""no" 1>&6
2007 # if using special system headers, find out the compiler's sekrit
2008 # header directory and add that to the list. NOTE: Only does the right
2009 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2010 if test -n "$sysheaders"; then
2011 ccheaders=`$CC -print-file-name=include`
2012 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2016 # check if ranlib is necessary
2017 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ranlib is necessary" >&5
2019 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 cat > conftest.c <<EOF
2023 int a;
2024 char b;
2025 void c(void) {}
2027 $CC $CFLAGS -c conftest.c
2028 $AR cr conftest.a conftest.c
2029 cp conftest.a conftest2.a
2030 $RANLIB conftest.a
2031 if cmp -s conftest.a conftest2.a; then
2032 libc_cv_ranlib_necessary=no
2033 else
2034 libc_cv_ranlib_necessary=yes
2036 rm -rf conftest*
2039 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2040 if test "$libc_cv_ranlib_necessary" = no; then
2041 RANLIB=:
2044 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2045 # since this would lead to problems installing/building glibc.
2046 # LD_LIBRARY_PATH contains the current directory if one of the following
2047 # is true:
2048 # - one of the terminals (":" and ";") is the first or last sign
2049 # - two terminals occur directly after each other
2050 # - the path contains an element with a dot in it
2051 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2052 echo "configure:2053: checking LD_LIBRARY_PATH variable" >&5
2053 case ${LD_LIBRARY_PATH} in
2054 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2055 ld_library_path_setting="contains current directory"
2058 ld_library_path_setting="ok"
2060 esac
2061 echo "$ac_t""$ld_library_path_setting" 1>&6
2062 if test "$ld_library_path_setting" != "ok"; then
2063 { echo "configure: error:
2064 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2065 *** building glibc. Please change the environment variable
2066 *** and run configure again." 1>&2; exit 1; }
2069 # Extract the first word of "bash", so it can be a program name with args.
2070 set dummy bash; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 case "$BASH" in
2078 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2080 ?:/*)
2081 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2085 ac_dummy="$PATH"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_path_BASH="$ac_dir/$ac_word"
2090 break
2092 done
2093 IFS="$ac_save_ifs"
2094 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2096 esac
2098 BASH="$ac_cv_path_BASH"
2099 if test -n "$BASH"; then
2100 echo "$ac_t""$BASH" 1>&6
2101 else
2102 echo "$ac_t""no" 1>&6
2105 if test "$BASH" != no &&
2106 $BASH -c 'test "$BASH_VERSINFO" \
2107 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2108 libc_cv_have_bash2=yes
2109 else
2110 libc_cv_have_bash2=no
2114 if test "$BASH" = no; then
2115 # Extract the first word of "ksh", so it can be a program name with args.
2116 set dummy ksh; ac_word=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5
2119 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 case "$KSH" in
2124 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2126 ?:/*)
2127 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2131 ac_dummy="$PATH"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_path_KSH="$ac_dir/$ac_word"
2136 break
2138 done
2139 IFS="$ac_save_ifs"
2140 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2142 esac
2144 KSH="$ac_cv_path_KSH"
2145 if test -n "$KSH"; then
2146 echo "$ac_t""$KSH" 1>&6
2147 else
2148 echo "$ac_t""no" 1>&6
2151 if test "$KSH" = no; then
2152 libc_cv_have_ksh=no
2153 else
2154 libc_cv_have_ksh=yes
2156 else
2157 KSH="$BASH"
2159 libc_cv_have_ksh=yes
2163 for ac_prog in gawk mawk nawk awk
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174 else
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2176 ac_dummy="$PATH"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_AWK="$ac_prog"
2181 break
2183 done
2184 IFS="$ac_save_ifs"
2187 AWK="$ac_cv_prog_AWK"
2188 if test -n "$AWK"; then
2189 echo "$ac_t""$AWK" 1>&6
2190 else
2191 echo "$ac_t""no" 1>&6
2194 test -n "$AWK" && break
2195 done
2197 # Extract the first word of "perl", so it can be a program name with args.
2198 set dummy perl; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 case "$PERL" in
2206 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2208 ?:/*)
2209 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2213 ac_dummy="$PATH"
2214 for ac_dir in $ac_dummy; do
2215 test -z "$ac_dir" && ac_dir=.
2216 if test -f $ac_dir/$ac_word; then
2217 ac_cv_path_PERL="$ac_dir/$ac_word"
2218 break
2220 done
2221 IFS="$ac_save_ifs"
2222 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2224 esac
2226 PERL="$ac_cv_path_PERL"
2227 if test -n "$PERL"; then
2228 echo "$ac_t""$PERL" 1>&6
2229 else
2230 echo "$ac_t""no" 1>&6
2233 if test "$PERL" != no &&
2234 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2235 PERL=no
2237 # Extract the first word of "install-info", so it can be a program name with args.
2238 set dummy install-info; ac_word=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244 case "$INSTALL_INFO" in
2246 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2248 ?:/*)
2249 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2253 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2254 for ac_dir in $ac_dummy; do
2255 test -z "$ac_dir" && ac_dir=.
2256 if test -f $ac_dir/$ac_word; then
2257 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2258 break
2260 done
2261 IFS="$ac_save_ifs"
2262 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2264 esac
2266 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2267 if test -n "$INSTALL_INFO"; then
2268 echo "$ac_t""$INSTALL_INFO" 1>&6
2269 else
2270 echo "$ac_t""no" 1>&6
2273 if test "$INSTALL_INFO" != "no"; then
2274 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2275 echo "configure:2276: checking for old Debian install-info" >&5
2276 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2278 else
2279 mkdir conftest.d
2280 # There is a hard ^_ on the next line. I am open to better ideas.
2281 (echo '\x1f'
2282 echo 'File: dir Node: Top This is the top of the INFO tree'
2283 echo '* Menu:') >conftest.d/dir
2284 (echo 'INFO-DIR-SECTION i-d-s works'
2285 echo 'START-INFO-DIR-ENTRY'
2286 echo '* Prog: (prog). Program.'
2287 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2288 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2289 then
2290 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2291 then libc_cv_old_debian_install_info=no
2292 else libc_cv_old_debian_install_info=yes
2294 else libc_cv_old_debian_install_info=no testfailed=t
2296 rm -fr conftest.d
2299 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2300 if test -n "$testfailed"
2301 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2303 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2307 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2308 echo "configure:2309: checking for signed size_t type" >&5
2309 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311 else
2312 echo '#include <stddef.h>
2313 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2314 if eval "$ac_cpp conftest.c 2>/dev/null" \
2315 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2316 libc_cv_signed_size_t=no
2317 else
2318 libc_cv_signed_size_t=yes
2320 rm -f conftest*
2323 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2324 if test $libc_cv_signed_size_t = yes; then
2325 cat >> confdefs.h <<\EOF
2326 #undef __SIZE_TYPE__
2327 #define __SIZE_TYPE__ unsigned
2331 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2332 echo "configure:2333: checking for libc-friendly stddef.h" >&5
2333 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #define __need_size_t
2340 #define __need_wchar_t
2341 #include <stddef.h>
2342 #define __need_NULL
2343 #include <stddef.h>
2344 int main() {
2345 size_t size; wchar_t wchar;
2346 #ifdef offsetof
2347 #error stddef.h ignored __need_*
2348 #endif
2349 if (&size == NULL || &wchar == NULL) abort ();
2350 ; return 0; }
2352 if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 rm -rf conftest*
2354 libc_cv_friendly_stddef=yes
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 libc_cv_friendly_stddef=no
2361 rm -f conftest*
2364 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2365 if test $libc_cv_friendly_stddef = yes; then
2366 config_vars="$config_vars
2367 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2370 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2371 echo "configure:2372: checking whether we need to use -P to assemble .S files" >&5
2372 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375 cat > conftest.S <<EOF
2376 #include "confdefs.h"
2377 /* Nothing whatsoever. */
2379 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2380 libc_cv_need_minus_P=no
2381 else
2382 libc_cv_need_minus_P=yes
2384 rm -f conftest*
2387 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2388 if test $libc_cv_need_minus_P = yes; then
2389 config_vars="$config_vars
2390 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2393 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2394 echo "configure:2395: checking whether .text pseudo-op must be used" >&5
2395 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398 cat > conftest.s <<EOF
2399 .text
2401 libc_cv_dot_text=
2402 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2403 libc_cv_dot_text=.text
2405 rm -f conftest*
2408 if test -z "$libc_cv_dot_text"; then
2409 echo "$ac_t""no" 1>&6
2410 else
2411 echo "$ac_t""yes" 1>&6
2414 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2415 echo "configure:2416: checking for assembler global-symbol directive" >&5
2416 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419 libc_cv_asm_global_directive=UNKNOWN
2420 for ac_globl in .globl .global .EXPORT; do
2421 cat > conftest.s <<EOF
2422 ${libc_cv_dot_text}
2423 ${ac_globl} foo
2424 foo:
2426 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2427 libc_cv_asm_global_directive=${ac_globl}
2429 rm -f conftest*
2430 test $libc_cv_asm_global_directive != UNKNOWN && break
2431 done
2434 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2435 if test $libc_cv_asm_global_directive = UNKNOWN; then
2436 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2437 else
2438 cat >> confdefs.h <<EOF
2439 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2444 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2445 echo "configure:2446: checking for .set assembler directive" >&5
2446 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449 cat > conftest.s <<EOF
2450 ${libc_cv_dot_text}
2451 foo:
2452 .set glibc_conftest_frobozz,foo
2453 $libc_cv_asm_global_directive glibc_conftest_frobozz
2455 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2456 # (but it doesn't work), so we must do a linking check to be sure.
2457 cat > conftest1.c <<\EOF
2458 extern int glibc_conftest_frobozz;
2459 main () { printf ("%d\n", glibc_conftest_frobozz); }
2461 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2462 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2463 libc_cv_asm_set_directive=yes
2464 else
2465 libc_cv_asm_set_directive=no
2467 rm -f conftest*
2470 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2471 if test $libc_cv_asm_set_directive = yes; then
2472 cat >> confdefs.h <<\EOF
2473 #define HAVE_ASM_SET_DIRECTIVE 1
2478 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2479 echo "configure:2480: checking for .symver assembler directive" >&5
2480 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 cat > conftest.s <<EOF
2484 ${libc_cv_dot_text}
2485 _sym:
2486 .symver _sym,sym@VERS
2488 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2489 libc_cv_asm_symver_directive=yes
2490 else
2491 libc_cv_asm_symver_directive=no
2493 rm -f conftest*
2496 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2497 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2498 echo "configure:2499: checking for ld --version-script" >&5
2499 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2501 else
2502 if test $libc_cv_asm_symver_directive = yes; then
2503 cat > conftest.s <<EOF
2504 ${libc_cv_dot_text}
2505 _sym:
2506 .symver _sym,sym@VERS
2508 cat > conftest.map <<EOF
2509 VERS_1 {
2510 global: sym;
2513 VERS_2 {
2514 global: sym;
2515 } VERS_1;
2517 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2518 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2519 -nostartfiles -nostdlib
2520 -Wl,--version-script,conftest.map
2521 1>&5'; { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2522 then
2523 libc_cv_ld_version_script_option=yes
2524 else
2525 libc_cv_ld_version_script_option=no
2527 else
2528 libc_cv_ld_version_script_option=no
2530 else
2531 libc_cv_ld_version_script_option=no
2533 rm -f conftest*
2536 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2537 if test $shared != no &&
2538 test $libc_cv_asm_symver_directive = yes &&
2539 test $libc_cv_ld_version_script_option = yes &&
2540 test $enable_versioning = yes; then
2541 VERSIONING=yes
2542 cat >> confdefs.h <<\EOF
2543 #define DO_VERSIONING 1
2546 else
2547 VERSIONING=no
2551 if test $shared != no && test $VERSIONING = no; then
2552 echo "\
2553 *** WARNING: You should not compile GNU libc without versioning. Not using
2554 *** versioning will introduce incompatibilities so that old binaries
2555 *** will not run anymore.
2556 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2558 if test $elf = yes; then
2559 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2560 echo "configure:2561: checking for .previous assembler directive" >&5
2561 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 cat > conftest.s <<EOF
2565 .section foo_section
2566 .previous
2568 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2569 libc_cv_asm_previous_directive=yes
2570 else
2571 libc_cv_asm_previous_directive=no
2573 rm -f conftest*
2576 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2577 if test $libc_cv_asm_previous_directive = yes; then
2578 cat >> confdefs.h <<\EOF
2579 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2582 else
2583 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2584 echo "configure:2585: checking for .popsection assembler directive" >&5
2585 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2587 else
2588 cat > conftest.s <<EOF
2589 .pushsection foo_section
2590 .popsection
2592 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2593 libc_cv_asm_popsection_directive=yes
2594 else
2595 libc_cv_asm_popsection_directive=no
2597 rm -f conftest*
2600 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2601 if test $libc_cv_asm_popsection_directive = yes; then
2602 cat >> confdefs.h <<\EOF
2603 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2608 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2609 echo "configure:2610: checking for .protected and .hidden assembler directive" >&5
2610 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2612 else
2613 cat > conftest.s <<EOF
2614 .protected foo
2615 foo:
2616 .hidden bar
2617 bar:
2619 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2620 libc_cv_asm_protected_directive=yes
2621 else
2622 libc_cv_asm_protected_directive=no
2624 rm -f conftest*
2627 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2630 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2631 echo "configure:2632: checking for -z nodelete option" >&5
2632 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2634 else
2635 cat > conftest.c <<EOF
2636 int _start (void) { return 42; }
2638 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2639 then
2640 libc_cv_z_nodelete=yes
2641 else
2642 libc_cv_z_nodelete=no
2644 rm -f conftest*
2647 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2650 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2651 echo "configure:2652: checking for -z nodlopen option" >&5
2652 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 cat > conftest.c <<EOF
2656 int _start (void) { return 42; }
2658 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2659 then
2660 libc_cv_z_nodlopen=yes
2661 else
2662 libc_cv_z_nodlopen=no
2664 rm -f conftest*
2667 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2671 if test $elf != yes; then
2672 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2673 echo "configure:2674: checking for .init and .fini sections" >&5
2674 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2681 int main() {
2682 asm (".section .init");
2683 asm (".section .fini");
2684 asm ("${libc_cv_dot_text}");
2685 ; return 0; }
2687 if { (eval echo configure:2688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2688 rm -rf conftest*
2689 libc_cv_have_initfini=yes
2690 else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 libc_cv_have_initfini=no
2696 rm -f conftest*
2699 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2700 if test $libc_cv_have_initfini = yes; then
2701 cat >> confdefs.h <<\EOF
2702 #define HAVE_INITFINI 1
2708 if test $elf = yes -a $gnu_ld = yes; then
2709 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2710 echo "configure:2711: checking whether cc puts quotes around section names" >&5
2711 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 cat > conftest.c <<EOF
2715 static const int foo
2716 __attribute__ ((section ("bar"))) = 1;
2718 if ${CC-cc} -S conftest.c -o conftest.s; then
2719 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2720 libc_cv_have_section_quotes=yes
2721 else
2722 libc_cv_have_section_quotes=no
2724 else
2725 libc_cv_have_section_quotes=unknown
2727 rm -f conftest.cs
2731 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2732 if test $libc_cv_have_section_quotes = yes; then
2733 cat >> confdefs.h <<\EOF
2734 #define HAVE_SECTION_QUOTES 1
2742 if test $elf = yes; then
2743 libc_cv_asm_underscores=no
2744 else
2745 if test $ac_cv_prog_cc_works = yes; then
2746 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2747 echo "configure:2748: checking for _ prefix on C symbol names" >&5
2748 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 asm ("_glibc_foobar:");
2755 int main() {
2756 glibc_foobar ();
2757 ; return 0; }
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2760 rm -rf conftest*
2761 libc_cv_asm_underscores=yes
2762 else
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 rm -rf conftest*
2766 libc_cv_asm_underscores=no
2768 rm -f conftest*
2771 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2772 else
2773 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2774 echo "configure:2775: checking for _ prefix on C symbol names" >&5
2775 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 void underscore_test(void) {
2782 return; }
2784 if { (eval echo configure:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 if grep _underscore_test conftest* >/dev/null; then
2786 rm -f conftest*
2787 libc_cv_asm_underscores=yes
2788 else
2789 rm -f conftest*
2790 libc_cv_asm_underscores=no
2792 else
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -f conftest*
2796 libc_cv_asm_underscores=no
2798 rm -f conftest*
2801 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2804 if test $libc_cv_asm_underscores = no; then
2805 cat >> confdefs.h <<\EOF
2806 #define NO_UNDERSCORES 1
2811 if test $elf = yes; then
2812 libc_cv_weak_symbols=yes
2815 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2816 echo "configure:2817: checking for assembler .weak directive" >&5
2817 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820 cat > conftest.s <<EOF
2821 ${libc_cv_dot_text}
2822 ${libc_cv_asm_global_directive} foo
2823 foo:
2824 .weak foo
2825 .weak bar; bar = foo
2827 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2828 libc_cv_asm_weak_directive=yes
2829 else
2830 libc_cv_asm_weak_directive=no
2832 rm -f conftest*
2835 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2837 if test $libc_cv_asm_weak_directive = no; then
2838 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2839 echo "configure:2840: checking for assembler .weakext directive" >&5
2840 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2842 else
2843 cat > conftest.s <<EOF
2844 ${libc_cv_dot_text}
2845 ${libc_cv_asm_global_directive} foo
2846 foo:
2847 .weakext bar foo
2848 .weakext baz
2849 ${libc_cv_asm_global_directive} baz
2850 baz:
2852 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2853 libc_cv_asm_weakext_directive=yes
2854 else
2855 libc_cv_asm_weakext_directive=no
2857 rm -f conftest*
2860 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2862 fi # no .weak
2864 if test $libc_cv_asm_weak_directive = yes; then
2865 cat >> confdefs.h <<\EOF
2866 #define HAVE_ASM_WEAK_DIRECTIVE 1
2869 elif test $libc_cv_asm_weakext_directive = yes; then
2870 cat >> confdefs.h <<\EOF
2871 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2876 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2877 echo "configure:2878: checking for ld --no-whole-archive" >&5
2878 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880 else
2881 cat > conftest.c <<\EOF
2882 _start () {}
2883 int __eh_pc;
2884 __throw () {}
2886 if { ac_try='${CC-cc} $CFLAGS
2887 -nostdlib -nostartfiles -Wl,--no-whole-archive
2888 -o conftest conftest.c 1>&5'; { (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2889 libc_cv_ld_no_whole_archive=yes
2890 else
2891 libc_cv_ld_no_whole_archive=no
2893 rm -f conftest*
2896 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2897 if test $libc_cv_ld_no_whole_archive = yes; then
2898 no_whole_archive=-Wl,--no-whole-archive
2901 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2902 echo "configure:2903: checking for gcc -fexceptions" >&5
2903 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2905 else
2906 cat > conftest.c <<\EOF
2907 _start () {}
2908 int __eh_pc;
2909 __throw () {}
2911 if { ac_try='${CC-cc} $CFLAGS
2912 -nostdlib -nostartfiles -fexceptions
2913 -o conftest conftest.c 1>&5'; { (eval echo configure:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2914 libc_cv_gcc_exceptions=yes
2915 else
2916 libc_cv_gcc_exceptions=no
2918 rm -f conftest*
2921 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2922 if test $libc_cv_gcc_exceptions = yes; then
2923 exceptions=-fexceptions
2926 if test "$base_machine" = alpha ; then
2927 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2928 echo "configure:2929: checking for function ..ng prefix" >&5
2929 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2931 else
2932 cat > conftest.c <<\EOF
2933 foo () { }
2935 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2936 then
2937 libc_cv_gcc_alpha_ng_prefix=yes
2938 else
2939 libc_cv_gcc_alpha_ng_prefix=no
2941 rm -f conftest*
2944 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2945 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2946 cat >> confdefs.h <<\EOF
2947 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2950 else
2951 cat >> confdefs.h <<\EOF
2952 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2958 if test "$host_cpu" = powerpc ; then
2959 # Check for a bug present in at least versions 2.8.x of GCC
2960 # and versions 1.0.x of EGCS.
2961 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether clobbering cr0 causes problems" >&5
2963 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2970 int main() {
2972 ; return 0; }
2974 if { (eval echo configure:2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2975 rm -rf conftest*
2976 libc_cv_c_asmcr0_bug='no'
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -rf conftest*
2981 libc_cv_c_asmcr0_bug='yes'
2983 rm -f conftest*
2986 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2987 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2988 cat >> confdefs.h <<\EOF
2989 #define BROKEN_PPC_ASM_CR0 1
2995 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2996 echo "configure:2997: checking for DWARF2 unwind info support" >&5
2997 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
2999 else
3000 cat > conftest.c <<EOF
3001 #line 3002 "configure"
3002 static char __EH_FRAME_BEGIN__;
3003 _start ()
3005 #ifdef CHECK__register_frame
3006 __register_frame (__EH_FRAME_BEGIN__);
3007 __deregister_frame (__EH_FRAME_BEGIN__);
3008 #endif
3009 #ifdef CHECK__register_frame_info
3010 __register_frame_info (__EH_FRAME_BEGIN__);
3011 __deregister_frame_info (__EH_FRAME_BEGIN__);
3012 #endif
3014 int __eh_pc;
3015 __throw () {}
3016 /* FIXME: this is fragile. */
3017 malloc () {}
3018 strcmp () {}
3019 strlen () {}
3020 memcpy () {}
3021 memset () {}
3022 free () {}
3023 abort () {}
3024 __bzero () {}
3026 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3027 -nostdlib -nostartfiles
3028 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3029 libc_cv_gcc_dwarf2_unwind_info=static
3030 else
3031 libc_cv_gcc_dwarf2_unwind_info=no
3033 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3034 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3035 -nostdlib -nostartfiles
3036 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3037 libc_cv_gcc_dwarf2_unwind_info=yes
3038 else
3039 libc_cv_gcc_dwarf2_unwind_info=no
3042 rm -f conftest*
3045 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3046 case $libc_cv_gcc_dwarf2_unwind_info in
3047 yes)
3048 cat >> confdefs.h <<\EOF
3049 #define HAVE_DWARF2_UNWIND_INFO 1
3053 static)
3054 cat >> confdefs.h <<\EOF
3055 #define HAVE_DWARF2_UNWIND_INFO 1
3058 cat >> confdefs.h <<\EOF
3059 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3063 esac
3065 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3066 echo "configure:3067: checking for __builtin_expect" >&5
3067 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3069 else
3070 cat > conftest.c <<EOF
3071 #line 3072 "configure"
3072 int foo (int a)
3074 a = __builtin_expect (a, 10);
3075 return a == 10 ? 0 : 1;
3078 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3079 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3080 libc_cv_gcc_builtin_expect=yes
3081 else
3082 libc_cv_gcc_builtin_expect=no
3084 rm -f conftest*
3087 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3088 if test "$libc_cv_gcc_builtin_expect" = yes; then
3089 cat >> confdefs.h <<\EOF
3090 #define HAVE_BUILTIN_EXPECT 1
3095 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3096 echo "configure:3097: checking for local label subtraction" >&5
3097 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 cat > conftest.c <<EOF
3101 #line 3102 "configure"
3102 int foo (int a)
3104 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3105 void *p = &&l1 + ar[a];
3106 goto *p;
3108 return 1;
3110 return 2;
3113 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3114 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3115 libc_cv_gcc_subtract_local_labels=yes
3116 else
3117 libc_cv_gcc_subtract_local_labels=no
3119 rm -f conftest*
3122 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3123 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3130 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3131 echo "configure:3132: checking for libgd" >&5
3132 old_CFLAGS="$CFLAGS"
3133 CFLAGS="$CFLAGS $libgd_include"
3134 old_LDFLAGS="$LDFLAGS"
3135 LDFLAGS="$LDFLAGS $libgd_ldflags"
3136 old_LIBS="$LIBS"
3137 LIBS="$LIBS -lgd -lpng -lz -lm"
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 #include <gd.h>
3142 int main() {
3143 gdImagePng (0, 0)
3144 ; return 0; }
3146 if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3147 rm -rf conftest*
3148 LIBGD=yes
3149 else
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 rm -rf conftest*
3153 LIBGD=no
3155 rm -f conftest*
3156 CFLAGS="$old_CFLAGS"
3157 LDFLAGS="$old_LDFLAGS"
3158 LIBS="$old_LIBS"
3159 echo "$ac_t""$LIBGD" 1>&6
3162 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3163 echo "configure:3164: checking size of long double" >&5
3164 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3166 else
3167 if test "$cross_compiling" = yes; then
3168 ac_cv_sizeof_long_double=0
3169 else
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 #include <stdio.h>
3174 main()
3176 FILE *f=fopen("conftestval", "w");
3177 if (!f) exit(1);
3178 fprintf(f, "%d\n", sizeof(long double));
3179 exit(0);
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3183 then
3184 ac_cv_sizeof_long_double=`cat conftestval`
3185 else
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 rm -fr conftest*
3189 ac_cv_sizeof_long_double=0
3191 rm -fr conftest*
3195 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3196 cat >> confdefs.h <<EOF
3197 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3201 sizeof_long_double=$ac_cv_sizeof_long_double
3204 ### End of automated tests.
3205 ### Now run sysdeps configure fragments.
3207 # sysdeps configure fragments may set these with files to be linked below.
3208 libc_link_dests=
3209 libc_link_sources=
3211 # They also can set these variables.
3212 use_ldconfig=no
3213 ldd_rewrite_script=no
3215 # Iterate over all the sysdep directories we will use, running their
3216 # configure fragments, and looking for a uname implementation.
3217 uname=
3218 for dir in $sysnames; do
3219 case $dir in
3220 /*) dest=$dir ;;
3221 *) dest=$srcdir/$dir ;;
3222 esac
3223 if test -r $dest/configure; then
3224 echo "$ac_t""running configure fragment for $dest" 1>&6
3225 . $dest/configure
3228 if test -z "$uname"; then
3229 if test -r $dest/uname.c ||
3230 test -r $dest/uname.S ||
3231 { test -r $dest/syscalls.list &&
3232 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3233 uname=$dir
3236 done
3240 # If we will use the generic uname implementation, we must figure out what
3241 # it will say by examining the system, and write the results in config-name.h.
3242 if test "$uname" = "sysdeps/generic"; then
3244 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3245 if test $uname_sysname != $config_os; then
3246 config_release=`echo $config_os | sed s/$uname_sysname//`
3249 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3250 echo "configure:3251: checking OS release for uname" >&5
3251 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3253 else
3254 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3255 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3256 != x$config_release; then
3257 # The configuration release is a substring of the kernel release.
3258 libc_cv_uname_release=$kernel_release
3259 elif test x$config_release != x; then
3260 libc_cv_uname_release=$config_release
3261 elif test x$kernel_release != x; then
3262 libc_cv_uname_release=$kernel_release
3263 else
3264 libc_cv_uname_release=unknown
3268 echo "$ac_t""$libc_cv_uname_release" 1>&6
3269 uname_release="$libc_cv_uname_release"
3271 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3272 echo "configure:3273: checking OS version for uname" >&5
3273 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3275 else
3276 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3277 if test -n "$kernel_version"; then
3278 libc_cv_uname_version="$kernel_version"
3279 else
3280 libc_cv_uname_version=unknown
3284 echo "$ac_t""$libc_cv_uname_version" 1>&6
3285 uname_version="$libc_cv_uname_version"
3287 config_uname=config-name.h:config-name.in
3288 else
3289 # For non-generic uname, we don't need to create config-name.h at all.
3290 config_uname=
3293 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3294 echo "configure:3295: checking stdio selection" >&5
3296 case $stdio in
3297 libio) cat >> confdefs.h <<\EOF
3298 #define USE_IN_LIBIO 1
3301 default) stdio=stdio ;;
3302 esac
3303 echo "$ac_t""$stdio" 1>&6
3305 # Test for old glibc 2.0.x headers so that they can be removed properly
3306 # Search only in includedir.
3307 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3308 echo "configure:3309: checking for old glibc 2.0.x headers" >&5
3309 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3310 then
3311 old_glibc_headers=yes
3312 else
3313 old_glibc_headers=no
3315 echo "$ac_t""$old_glibc_headers" 1>&6
3316 if test ${old_glibc_headers} = yes; then
3317 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3318 echo "configure: warning: *** be removed." 1>&2
3331 if test $gnu_ld = yes; then
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_GNU_LD 1
3337 if test $gnu_as = yes; then
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_GNU_AS 1
3343 if test $elf = yes; then
3344 cat >> confdefs.h <<\EOF
3345 #define HAVE_ELF 1
3352 if test $shared = default; then
3353 if test $gnu_ld = yes; then
3354 shared=$elf
3355 else
3356 # For now we do not assume shared libs are available. In future more
3357 # tests might become available.
3358 shared=no
3362 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3363 echo "configure:3364: checking whether -fPIC is default" >&5
3364 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367 pic_default=yes
3368 cat > conftest.c <<EOF
3369 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3370 # error PIC is default.
3371 #endif
3373 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3374 pic_default=no
3376 rm -f conftest.*
3379 echo "$ac_t""$pic_default" 1>&6
3390 case "$add_ons" in
3391 *door*) linux_doors=yes ;;
3392 *) linux_doors=no ;;
3393 esac
3396 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3397 config_makefile=
3398 else
3399 config_makefile=Makefile
3402 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3403 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3407 echo '*** Do NOT install this release on any production system!'
3408 echo '*** We are in early testing stages.'
3410 trap '' 1 2 15
3411 cat > confcache <<\EOF
3412 # This file is a shell script that caches the results of configure
3413 # tests run on this system so they can be shared between configure
3414 # scripts and configure runs. It is not useful on other systems.
3415 # If it contains results you don't want to keep, you may remove or edit it.
3417 # By default, configure uses ./config.cache as the cache file,
3418 # creating it if it does not exist already. You can give configure
3419 # the --cache-file=FILE option to use a different cache file; that is
3420 # what configure does when it calls configure scripts in
3421 # subdirectories, so they share the cache.
3422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3423 # config.status only pays attention to the cache file if you give it the
3424 # --recheck option to rerun configure.
3427 # The following way of writing the cache mishandles newlines in values,
3428 # but we know of no workaround that is simple, portable, and efficient.
3429 # So, don't put newlines in cache variables' values.
3430 # Ultrix sh set writes to stderr and can't be redirected directly,
3431 # and sets the high bit in the cache file unless we assign to the vars.
3432 (set) 2>&1 |
3433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3434 *ac_space=\ *)
3435 # `set' does not quote correctly, so add quotes (double-quote substitution
3436 # turns \\\\ into \\, and sed turns \\ into \).
3437 sed -n \
3438 -e "s/'/'\\\\''/g" \
3439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3442 # `set' quotes correctly as required by POSIX, so do not add quotes.
3443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3445 esac >> confcache
3446 if cmp -s $cache_file confcache; then
3448 else
3449 if test -w $cache_file; then
3450 echo "updating cache $cache_file"
3451 cat confcache > $cache_file
3452 else
3453 echo "not updating unwritable cache $cache_file"
3456 rm -f confcache
3458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3461 # Let make expand exec_prefix.
3462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3464 # Any assignment to VPATH causes Sun make to only execute
3465 # the first set of double-colon rules, so remove it if not needed.
3466 # If there is a colon in the path, we need to keep it.
3467 if test "x$srcdir" = x.; then
3468 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3473 DEFS=-DHAVE_CONFIG_H
3475 # Without the "./", some shells look in PATH for config.status.
3476 : ${CONFIG_STATUS=./config.status}
3478 echo creating $CONFIG_STATUS
3479 rm -f $CONFIG_STATUS
3480 cat > $CONFIG_STATUS <<EOF
3481 #! /bin/sh
3482 # Generated automatically by configure.
3483 # Run this file to recreate the current configuration.
3484 # This directory was configured as follows,
3485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3487 # $0 $ac_configure_args
3489 # Compiler output produced by configure, useful for debugging
3490 # configure, is in ./config.log if it exists.
3492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3493 for ac_option
3495 case "\$ac_option" in
3496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3501 exit 0 ;;
3502 -help | --help | --hel | --he | --h)
3503 echo "\$ac_cs_usage"; exit 0 ;;
3504 *) echo "\$ac_cs_usage"; exit 1 ;;
3505 esac
3506 done
3508 ac_given_srcdir=$srcdir
3509 ac_given_INSTALL="$INSTALL"
3511 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3513 cat >> $CONFIG_STATUS <<EOF
3515 # Protect against being on the right side of a sed subst in config.status.
3516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3518 $ac_vpsub
3519 $extrasub
3520 s%@SHELL@%$SHELL%g
3521 s%@CFLAGS@%$CFLAGS%g
3522 s%@CPPFLAGS@%$CPPFLAGS%g
3523 s%@CXXFLAGS@%$CXXFLAGS%g
3524 s%@FFLAGS@%$FFLAGS%g
3525 s%@DEFS@%$DEFS%g
3526 s%@LDFLAGS@%$LDFLAGS%g
3527 s%@LIBS@%$LIBS%g
3528 s%@exec_prefix@%$exec_prefix%g
3529 s%@prefix@%$prefix%g
3530 s%@program_transform_name@%$program_transform_name%g
3531 s%@bindir@%$bindir%g
3532 s%@sbindir@%$sbindir%g
3533 s%@libexecdir@%$libexecdir%g
3534 s%@datadir@%$datadir%g
3535 s%@sysconfdir@%$sysconfdir%g
3536 s%@sharedstatedir@%$sharedstatedir%g
3537 s%@localstatedir@%$localstatedir%g
3538 s%@libdir@%$libdir%g
3539 s%@includedir@%$includedir%g
3540 s%@oldincludedir@%$oldincludedir%g
3541 s%@infodir@%$infodir%g
3542 s%@mandir@%$mandir%g
3543 s%@with_cvs@%$with_cvs%g
3544 s%@subdirs@%$subdirs%g
3545 s%@force_install@%$force_install%g
3546 s%@host@%$host%g
3547 s%@host_alias@%$host_alias%g
3548 s%@host_cpu@%$host_cpu%g
3549 s%@host_vendor@%$host_vendor%g
3550 s%@host_os@%$host_os%g
3551 s%@base_machine@%$base_machine%g
3552 s%@sysnames@%$sysnames%g
3553 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3554 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3555 s%@INSTALL_DATA@%$INSTALL_DATA%g
3556 s%@LN_S@%$LN_S%g
3557 s%@PWD_P@%$PWD_P%g
3558 s%@build@%$build%g
3559 s%@build_alias@%$build_alias%g
3560 s%@build_cpu@%$build_cpu%g
3561 s%@build_vendor@%$build_vendor%g
3562 s%@build_os@%$build_os%g
3563 s%@CC@%$CC%g
3564 s%@MAKE@%$MAKE%g
3565 s%@MSGFMT@%$MSGFMT%g
3566 s%@MAKEINFO@%$MAKEINFO%g
3567 s%@SED@%$SED%g
3568 s%@CCVERSION@%$CCVERSION%g
3569 s%@cross_linkable@%$cross_linkable%g
3570 s%@BUILD_CC@%$BUILD_CC%g
3571 s%@cross_compiling@%$cross_compiling%g
3572 s%@CPP@%$CPP%g
3573 s%@AR@%$AR%g
3574 s%@RANLIB@%$RANLIB%g
3575 s%@MIG@%$MIG%g
3576 s%@SYSINCLUDES@%$SYSINCLUDES%g
3577 s%@BASH@%$BASH%g
3578 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3579 s%@KSH@%$KSH%g
3580 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3581 s%@AWK@%$AWK%g
3582 s%@PERL@%$PERL%g
3583 s%@INSTALL_INFO@%$INSTALL_INFO%g
3584 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3585 s%@VERSIONING@%$VERSIONING%g
3586 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3587 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3588 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3589 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3590 s%@no_whole_archive@%$no_whole_archive%g
3591 s%@exceptions@%$exceptions%g
3592 s%@LIBGD@%$LIBGD%g
3593 s%@sizeof_long_double@%$sizeof_long_double%g
3594 s%@uname_sysname@%$uname_sysname%g
3595 s%@uname_release@%$uname_release%g
3596 s%@uname_version@%$uname_version%g
3597 s%@stdio@%$stdio%g
3598 s%@old_glibc_headers@%$old_glibc_headers%g
3599 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3600 s%@libc_cv_localedir@%$libc_cv_localedir%g
3601 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3602 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3603 s%@use_ldconfig@%$use_ldconfig%g
3604 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3605 s%@gnu_ld@%$gnu_ld%g
3606 s%@gnu_as@%$gnu_as%g
3607 s%@elf@%$elf%g
3608 s%@static@%$static%g
3609 s%@shared@%$shared%g
3610 s%@pic_default@%$pic_default%g
3611 s%@profile@%$profile%g
3612 s%@omitfp@%$omitfp%g
3613 s%@bounded@%$bounded%g
3614 s%@static_nss@%$static_nss%g
3615 s%@nopic_initfini@%$nopic_initfini%g
3616 s%@DEFINES@%$DEFINES%g
3617 s%@linux_doors@%$linux_doors%g
3618 s%@VERSION@%$VERSION%g
3619 s%@RELEASE@%$RELEASE%g
3621 CEOF
3624 cat >> $CONFIG_STATUS <<\EOF
3626 # Split the substitutions into bite-sized pieces for seds with
3627 # small command number limits, like on Digital OSF/1 and HP-UX.
3628 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3629 ac_file=1 # Number of current file.
3630 ac_beg=1 # First line for current file.
3631 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3632 ac_more_lines=:
3633 ac_sed_cmds=""
3634 while $ac_more_lines; do
3635 if test $ac_beg -gt 1; then
3636 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3637 else
3638 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3640 if test ! -s conftest.s$ac_file; then
3641 ac_more_lines=false
3642 rm -f conftest.s$ac_file
3643 else
3644 if test -z "$ac_sed_cmds"; then
3645 ac_sed_cmds="sed -f conftest.s$ac_file"
3646 else
3647 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3649 ac_file=`expr $ac_file + 1`
3650 ac_beg=$ac_end
3651 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3653 done
3654 if test -z "$ac_sed_cmds"; then
3655 ac_sed_cmds=cat
3659 cat >> $CONFIG_STATUS <<EOF
3661 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3663 cat >> $CONFIG_STATUS <<\EOF
3664 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3666 case "$ac_file" in
3667 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3668 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3669 *) ac_file_in="${ac_file}.in" ;;
3670 esac
3672 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3674 # Remove last slash and all that follows it. Not all systems have dirname.
3675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3677 # The file is in a subdirectory.
3678 test ! -d "$ac_dir" && mkdir "$ac_dir"
3679 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3680 # A "../" for each directory in $ac_dir_suffix.
3681 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3682 else
3683 ac_dir_suffix= ac_dots=
3686 case "$ac_given_srcdir" in
3687 .) srcdir=.
3688 if test -z "$ac_dots"; then top_srcdir=.
3689 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3690 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3691 *) # Relative path.
3692 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3693 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3694 esac
3696 case "$ac_given_INSTALL" in
3697 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3698 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3699 esac
3701 echo creating "$ac_file"
3702 rm -f "$ac_file"
3703 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3704 case "$ac_file" in
3705 *Makefile*) ac_comsub="1i\\
3706 # $configure_input" ;;
3707 *) ac_comsub= ;;
3708 esac
3710 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3711 sed -e "$ac_comsub
3712 s%@configure_input@%$configure_input%g
3713 s%@srcdir@%$srcdir%g
3714 s%@top_srcdir@%$top_srcdir%g
3715 s%@INSTALL@%$INSTALL%g
3716 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3717 fi; done
3718 rm -f conftest.s*
3720 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3721 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3723 # ac_d sets the value in "#define NAME VALUE" lines.
3724 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3725 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3726 ac_dC='\3'
3727 ac_dD='%g'
3728 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3729 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3730 ac_uB='\([ ]\)%\1#\2define\3'
3731 ac_uC=' '
3732 ac_uD='\4%g'
3733 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3734 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3735 ac_eB='$%\1#\2define\3'
3736 ac_eC=' '
3737 ac_eD='%g'
3739 if test "${CONFIG_HEADERS+set}" != set; then
3741 cat >> $CONFIG_STATUS <<EOF
3742 CONFIG_HEADERS="config.h"
3744 cat >> $CONFIG_STATUS <<\EOF
3746 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3748 case "$ac_file" in
3749 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3750 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3751 *) ac_file_in="${ac_file}.in" ;;
3752 esac
3754 echo creating $ac_file
3756 rm -f conftest.frag conftest.in conftest.out
3757 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3758 cat $ac_file_inputs > conftest.in
3762 # Transform confdefs.h into a sed script conftest.vals that substitutes
3763 # the proper values into config.h.in to produce config.h. And first:
3764 # Protect against being on the right side of a sed subst in config.status.
3765 # Protect against being in an unquoted here document in config.status.
3766 rm -f conftest.vals
3767 cat > conftest.hdr <<\EOF
3768 s/[\\&%]/\\&/g
3769 s%[\\$`]%\\&%g
3770 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3771 s%ac_d%ac_u%gp
3772 s%ac_u%ac_e%gp
3774 sed -n -f conftest.hdr confdefs.h > conftest.vals
3775 rm -f conftest.hdr
3777 # This sed command replaces #undef with comments. This is necessary, for
3778 # example, in the case of _POSIX_SOURCE, which is predefined and required
3779 # on some systems where configure will not decide to define it.
3780 cat >> conftest.vals <<\EOF
3781 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3784 # Break up conftest.vals because some shells have a limit on
3785 # the size of here documents, and old seds have small limits too.
3787 rm -f conftest.tail
3788 while :
3790 ac_lines=`grep -c . conftest.vals`
3791 # grep -c gives empty output for an empty file on some AIX systems.
3792 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3793 # Write a limited-size here document to conftest.frag.
3794 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3795 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3796 echo 'CEOF
3797 sed -f conftest.frag conftest.in > conftest.out
3798 rm -f conftest.in
3799 mv conftest.out conftest.in
3800 ' >> $CONFIG_STATUS
3801 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3802 rm -f conftest.vals
3803 mv conftest.tail conftest.vals
3804 done
3805 rm -f conftest.vals
3807 cat >> $CONFIG_STATUS <<\EOF
3808 rm -f conftest.frag conftest.h
3809 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3810 cat conftest.in >> conftest.h
3811 rm -f conftest.in
3812 if cmp -s $ac_file conftest.h 2>/dev/null; then
3813 echo "$ac_file is unchanged"
3814 rm -f conftest.h
3815 else
3816 # Remove last slash and all that follows it. Not all systems have dirname.
3817 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3818 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3819 # The file is in a subdirectory.
3820 test ! -d "$ac_dir" && mkdir "$ac_dir"
3822 rm -f $ac_file
3823 mv conftest.h $ac_file
3825 fi; done
3829 cat >> $CONFIG_STATUS <<EOF
3830 ac_sources="`echo $libc_link_sources`"
3831 ac_dests="`echo $libc_link_dests`"
3834 cat >> $CONFIG_STATUS <<\EOF
3835 srcdir=$ac_given_srcdir
3836 while test -n "$ac_sources"; do
3837 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3838 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3840 echo "linking $srcdir/$ac_source to $ac_dest"
3842 if test ! -r $srcdir/$ac_source; then
3843 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3845 rm -f $ac_dest
3847 # Make relative symlinks.
3848 # Remove last slash and all that follows it. Not all systems have dirname.
3849 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3850 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3851 # The dest file is in a subdirectory.
3852 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3853 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3854 # A "../" for each directory in $ac_dest_dir_suffix.
3855 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3856 else
3857 ac_dest_dir_suffix= ac_dots=
3860 case "$srcdir" in
3861 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3862 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3863 esac
3865 # Make a symlink if possible; otherwise try a hard link.
3866 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3867 ln $srcdir/$ac_source $ac_dest; then :
3868 else
3869 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3871 done
3873 cat >> $CONFIG_STATUS <<EOF
3874 config_vars='$config_vars'
3876 cat >> $CONFIG_STATUS <<\EOF
3878 case $CONFIG_FILES in *config.make*)
3879 echo "$config_vars" >> config.make;;
3880 esac
3881 test -d bits || mkdir bits
3882 exit 0
3884 chmod +x $CONFIG_STATUS
3885 rm -fr confdefs* $ac_clean_files
3886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3888 if test "$no_recursion" != yes; then
3890 # Remove --cache-file and --srcdir arguments so they do not pile up.
3891 ac_sub_configure_args=
3892 ac_prev=
3893 for ac_arg in $ac_configure_args; do
3894 if test -n "$ac_prev"; then
3895 ac_prev=
3896 continue
3898 case "$ac_arg" in
3899 -cache-file | --cache-file | --cache-fil | --cache-fi \
3900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3901 ac_prev=cache_file ;;
3902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3905 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3906 ac_prev=srcdir ;;
3907 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3909 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3910 esac
3911 done
3913 for ac_config_dir in $add_ons; do
3915 # Do not complain, so a configure script can configure whichever
3916 # parts of a large source tree are present.
3917 if test ! -d $srcdir/$ac_config_dir; then
3918 continue
3921 echo configuring in $ac_config_dir
3923 case "$srcdir" in
3924 .) ;;
3926 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3927 else
3928 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3931 esac
3933 ac_popdir=`pwd`
3934 cd $ac_config_dir
3936 # A "../" for each directory in /$ac_config_dir.
3937 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3939 case "$srcdir" in
3940 .) # No --srcdir option. We are building in place.
3941 ac_sub_srcdir=$srcdir ;;
3942 /*) # Absolute path.
3943 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3944 *) # Relative path.
3945 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3946 esac
3948 # Check for guested configure; otherwise get Cygnus style configure.
3949 if test -f $ac_sub_srcdir/configure; then
3950 ac_sub_configure=$ac_sub_srcdir/configure
3951 elif test -f $ac_sub_srcdir/configure.in; then
3952 ac_sub_configure=$ac_configure
3953 else
3954 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3955 ac_sub_configure=
3958 # The recursion is here.
3959 if test -n "$ac_sub_configure"; then
3961 # Make the cache file name correct relative to the subdirectory.
3962 case "$cache_file" in
3963 /*) ac_sub_cache_file=$cache_file ;;
3964 *) # Relative path.
3965 ac_sub_cache_file="$ac_dots$cache_file" ;;
3966 esac
3967 case "$ac_given_INSTALL" in
3968 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3969 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3970 esac
3972 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3973 # The eval makes quoting arguments work.
3974 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3975 then :
3976 else
3977 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3981 cd $ac_popdir
3982 done