Update.
[glibc.git] / configure
blob24a2774ff35f2394da5633fab0ebb54e139e9c1a
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-gettext=DIR find GNU gettext source code in DIR (not needed)"
29 ac_help="$ac_help
30 --with-gd=DIR find libgd include dir and library with prefix DIR"
31 ac_help="$ac_help
32 --with-gd-include=DIR find libgd include files in DIR"
33 ac_help="$ac_help
34 --with-gd-lib=DIR find libgd library files in DIR"
35 ac_help="$ac_help
36 --with-fp if using floating-point hardware [default=yes]"
37 ac_help="$ac_help
38 --with-binutils=PATH specify location of binutils (as and ld)"
39 ac_help="$ac_help
40 --with-elf if using the ELF object format"
41 ac_help="$ac_help
42 --without-cvs if CVS should not be used"
43 ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
47 ac_help="$ac_help
48 --enable-libio build in GNU libio instead of GNU stdio"
49 ac_help="$ac_help
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
52 ac_help="$ac_help
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
54 ac_help="$ac_help
55 --enable-profile build profiled library [default=yes]"
56 ac_help="$ac_help
57 --enable-omitfp build undebuggable optimized library [default=no]"
58 ac_help="$ac_help
59 --enable-bounded build with runtime bounds checking [default=no]"
60 ac_help="$ac_help
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
63 ac_help="$ac_help
64 --enable-add-ons[=DIR1,DIR2]...
65 configure and build add-ons in DIR1,DIR2,...
66 search for add-ons if no parameter given"
67 ac_help="$ac_help
68 --enable-static-nss build static NSS modules [default=no]"
69 ac_help="$ac_help
70 --disable-force-install don't force installation of files from this package,
71 even if they are older than the installed files"
72 ac_help="$ac_help
73 --enable-kernel=VERSION compile for compatibility with kernel not older
74 than VERSION"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
79 build=NONE
80 cache_file=./config.cache
81 exec_prefix=NONE
82 host=NONE
83 no_create=
84 nonopt=NONE
85 no_recursion=
86 prefix=NONE
87 program_prefix=NONE
88 program_suffix=NONE
89 program_transform_name=s,x,x,
90 silent=
91 site=
92 srcdir=
93 target=NONE
94 verbose=
95 x_includes=NONE
96 x_libraries=NONE
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
111 subdirs=
112 MFLAGS= MAKEFLAGS=
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
115 ac_max_here_lines=12
117 ac_prev=
118 for ac_option
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
124 ac_prev=
125 continue
128 case "$ac_option" in
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 *) ac_optarg= ;;
131 esac
133 # Accept the important Cygnus configure options, so we can diagnose typos.
135 case "$ac_option" in
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 ac_prev=bindir ;;
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
143 ac_prev=build ;;
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 ac_prev=datadir ;;
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 | --da=*)
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 case "$ac_option" in
177 *=*) ;;
178 *) ac_optarg=yes ;;
179 esac
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
193 with_gas=yes ;;
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
198 cat << EOF
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
201 Configuration:
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
209 [$ac_default_prefix]
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 [same as prefix]
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
216 [PREFIX/share]
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 [PREFIX/com]
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
232 cat << EOF
233 Host type:
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
248 exit 0 ;;
250 -host | --host | --hos | --ho)
251 ac_prev=host ;;
252 -host=* | --host=* | --hos=* | --ho=*)
253 host="$ac_optarg" ;;
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 ac_prev=infodir ;;
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
268 ac_prev=libdir ;;
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 ac_prev=mandir ;;
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
293 -nfp | --nfp | --nf)
294 # Obsolete; use --without-fp.
295 with_fp=no ;;
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 | --no-cr | --no-c)
299 no_create=yes ;;
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 no_recursion=yes ;;
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 ac_prev=prefix ;;
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
352 silent=yes ;;
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 ac_prev=sbindir ;;
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 | --sbi=* | --sb=*)
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
363 | --sha | --sh)
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 | --sha=* | --sh=*)
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
372 ac_prev=site ;;
373 -site=* | --site=* | --sit=*)
374 site="$ac_optarg" ;;
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
398 exit 0 ;;
400 -with-* | --with-*)
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 nonopt="$ac_option"
453 esac
454 done
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
463 # 0 standard input
464 # 1 file creation
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
471 exec 6>/dev/null
472 else
473 exec 6>&1
475 exec 5>./config.log
477 echo "\
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
480 " 1>&5
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
484 ac_configure_args=
485 for ac_arg
487 case "$ac_arg" in
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 esac
496 done
498 # NLS nuisances.
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 echo > confdefs.h
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/features.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
528 else
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 else
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
551 . "$ac_site_file"
553 done
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
557 . $cache_file
558 else
559 echo "creating cache $cache_file"
560 > $cache_file
563 ac_ext=c
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
570 ac_exeext=
571 ac_objext=o
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575 ac_n= ac_c='
576 ' ac_t=' '
577 else
578 ac_n=-n ac_c= ac_t=
580 else
581 ac_n= ac_c='\c' ac_t=
584 if test -r /vmunix; then
585 kernel_id=`strings /vmunix | grep UNIX`
586 elif test -r /dynix; then
587 kernel_id=`strings /dynix | grep DYNIX`
588 else
589 kernel_id=
594 ac_aux_dir=
595 for ac_dir in scripts $srcdir/scripts; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
605 done
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # This will get text that should go into config.make.
615 config_vars=
617 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
618 # Check whether --with-gmp or --without-gmp was given.
619 if test "${with_gmp+set}" = set; then
620 withval="$with_gmp"
621 case "$with_gmp" in
622 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
623 ''|no) ;;
624 *) config_vars="$config_vars
625 gmp-srcdir = $withval" ;;
626 esac
630 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
631 # Check whether --with-gettext or --without-gettext was given.
632 if test "${with_gettext+set}" = set; then
633 withval="$with_gettext"
634 case "$with_gettext" in
635 yes)
636 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
637 ''|no) ;;
639 config_vars="$config_vars
640 gettext-srcdir = $withval" ;;
641 esac
645 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
646 # Check whether --with-gd or --without-gd was given.
647 if test "${with_gd+set}" = set; then
648 withval="$with_gd"
649 case "$with_gd" in
650 yes|''|no) ;;
651 *) libgd_include="-I$withval/include"
652 libgd_ldflags="-L$withval/lib" ;;
653 esac
657 # Check whether --with-gd-include or --without-gd-include was given.
658 if test "${with_gd_include+set}" = set; then
659 withval="$with_gd_include"
660 case "$with_gd_include" in
661 ''|no) ;;
662 *) libgd_include="-I$withval" ;;
663 esac
667 # Check whether --with-gd-lib or --without-gd-lib was given.
668 if test "${with_gd_lib+set}" = set; then
669 withval="$with_gd_lib"
670 case "$with_gd_lib" in
671 ''|no) ;;
672 *) libgd_ldflags="-L$withval" ;;
673 esac
678 if test -n "$libgd_include"; then
679 config_vars="$config_vars
680 CFLAGS-memprofstat.c = $libgd_include"
682 if test -n "$libgd_ldflags"; then
683 config_vars="$config_vars
684 libgd-LDFLAGS = $libgd_ldflags"
687 # Check whether --with-fp or --without-fp was given.
688 if test "${with_fp+set}" = set; then
689 withval="$with_fp"
690 with_fp=$withval
691 else
692 with_fp=yes
695 # Check whether --with-binutils or --without-binutils was given.
696 if test "${with_binutils+set}" = set; then
697 withval="$with_binutils"
698 path_binutils=$withval
699 else
700 path_binutils=''
703 # Check whether --with-elf or --without-elf was given.
704 if test "${with_elf+set}" = set; then
705 withval="$with_elf"
706 elf=$withval
707 else
708 elf=no
711 # Check whether --with-cvs or --without-cvs was given.
712 if test "${with_cvs+set}" = set; then
713 withval="$with_cvs"
714 with_cvs=$withval
715 else
716 with_cvs=yes
721 # Check whether --with-headers or --without-headers was given.
722 if test "${with_headers+set}" = set; then
723 withval="$with_headers"
724 sysheaders=$withval
725 else
726 sysheaders=''
730 # Check whether --enable-libio or --disable-libio was given.
731 if test "${enable_libio+set}" = set; then
732 enableval="$enable_libio"
733 if test $enableval = yes; then
734 stdio=libio
735 else
736 stdio=stdio
738 else
739 stdio=default
743 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
744 if test "${enable_sanity_checks+set}" = set; then
745 enableval="$enable_sanity_checks"
746 enable_sanity=$enableval
747 else
748 enable_sanity=yes
752 static=yes
753 # Check whether --enable-shared or --disable-shared was given.
754 if test "${enable_shared+set}" = set; then
755 enableval="$enable_shared"
756 shared=$enableval
757 else
758 shared=default
761 # Check whether --enable-profile or --disable-profile was given.
762 if test "${enable_profile+set}" = set; then
763 enableval="$enable_profile"
764 profile=$enableval
765 else
766 profile=yes
769 # Check whether --enable-omitfp or --disable-omitfp was given.
770 if test "${enable_omitfp+set}" = set; then
771 enableval="$enable_omitfp"
772 omitfp=$enableval
773 else
774 omitfp=no
777 # Check whether --enable-bounded or --disable-bounded was given.
778 if test "${enable_bounded+set}" = set; then
779 enableval="$enable_bounded"
780 bounded=$enableval
781 else
782 bounded=no
785 # Check whether --enable-versioning or --disable-versioning was given.
786 if test "${enable_versioning+set}" = set; then
787 enableval="$enable_versioning"
788 enable_versioning=$enableval
789 else
790 enable_versioning=yes
794 # Check whether --enable-add-ons or --disable-add-ons was given.
795 if test "${enable_add_ons+set}" = set; then
796 enableval="$enable_add_ons"
797 case "$enableval" in
798 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
799 test "$add_ons" = "*" && add_ons= ;;
800 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
801 esac
802 else
803 add_ons=
807 subdirs="$add_ons"
809 add_ons_pfx=
810 if test x"$add_ons" != x; then
811 for f in $add_ons; do
812 # Test whether such a subdir really exists.
813 if test -d $srcdir/$f; then
814 add_ons_pfx="$add_ons_pfx $f/"
815 else
816 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
818 done
821 # Check whether --enable-static-nss or --disable-static-nss was given.
822 if test "${enable_static_nss+set}" = set; then
823 enableval="$enable_static_nss"
824 static_nss=$enableval
825 else
826 static_nss=no
829 if test x"$static_nss" = xyes; then
830 cat >> confdefs.h <<\EOF
831 #define DO_STATIC_NSS 1
836 # Check whether --enable-force-install or --disable-force-install was given.
837 if test "${enable_force_install+set}" = set; then
838 enableval="$enable_force_install"
839 force_install=$enableval
840 else
841 force_install=yes
846 # Check whether --enable-kernel or --disable-kernel was given.
847 if test "${enable_kernel+set}" = set; then
848 enableval="$enable_kernel"
849 minimum_kernel=$enableval
852 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
853 # Better nothing than this.
854 minimum_kernel=""
855 else
856 if test "$minimum_kernel" = current; then
857 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
862 # Make sure we can run config.sub.
863 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
864 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
867 echo $ac_n "checking host system type""... $ac_c" 1>&6
868 echo "configure:869: checking host system type" >&5
870 host_alias=$host
871 case "$host_alias" in
872 NONE)
873 case $nonopt in
874 NONE)
875 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
876 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877 fi ;;
878 *) host_alias=$nonopt ;;
879 esac ;;
880 esac
882 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
883 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
884 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
885 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886 echo "$ac_t""$host" 1>&6
889 # The way shlib-versions is used to generate soversions.mk uses a
890 # fairly simplistic model for name recognition that can't distinguish
891 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
892 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
893 # tell. This doesn't get used much beyond that, so it's fairly safe.
894 case "$host_os" in
895 linux*)
897 gnu*)
898 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
900 esac
902 # We keep the original values in `$config_*' and never modify them, so we
903 # can write them unchanged into config.make. Everything else uses
904 # $machine, $vendor, and $os, and changes them whenever convenient.
905 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
907 # Some configurations imply other options.
908 case "$host_os" in
909 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
910 # These systems always use GNU tools.
911 gnu_ld=yes gnu_as=yes ;;
912 esac
913 case "$host_os" in
914 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
915 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
917 gnu* | linux* | sysv4* | solaris2* | irix6*)
918 # These systems (almost) always use the ELF format.
919 elf=yes
921 esac
923 machine=$config_machine
924 vendor=$config_vendor
925 os=$config_os
927 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
928 # Unify this here.
929 if test "$machine" = rs6000; then
930 machine="powerpc"
934 ### I put this here to prevent those annoying emails from people who cannot
935 ### read and try to compile glibc on unsupported platforms. --drepper
937 ### By using the undocumented --enable-hacker-mode option for configure
938 ### one can skip this test to make the configuration not fail for unsupported
939 ### platforms.
941 if test -z "$enable_hacker_mode"; then
942 case "$machine-$host_os" in
943 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
946 echo "*** The GNU C library is currently not available for this platform."
947 echo "*** So far nobody cared to port it and if there is no volunteer it"
948 echo "*** might never happen. So, if you have interest to see glibc on"
949 echo "*** this platform visit"
950 echo "*** http://www.gnu.org/software/libc/porting.html"
951 echo "*** and join the group of porters"
952 exit 1
954 esac
957 # Expand the configuration machine name into a subdirectory by architecture
958 # type and particular chip.
959 case "$machine" in
960 a29k | am29000) base_machine=a29k machine=a29k ;;
961 alpha*) base_machine=alpha machine=alpha/$machine ;;
962 arm*) base_machine=arm machine=arm/$machine ;;
963 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
964 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
965 hppa*) base_machine=hppa machine=hppa/$machine ;;
966 i[3456]86) base_machine=i386 machine=i386/$machine ;;
967 ia64) base_machine=ia64 machine=ia64 ;;
968 m680?0) base_machine=m68k machine=m68k/$machine ;;
969 m68k) base_machine=m68k machine=m68k/m68020 ;;
970 m88???) base_machine=m88k machine=m88k/$machine ;;
971 m88k) base_machine=m88k machine=m88k/m88100 ;;
972 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
973 mips*) base_machine=mips
974 case "`uname -m`" in
975 IP22) machine=mips/mips3 ;;
976 *) machine=mips/$machine ;;
977 esac ;;
978 sh3*) base_machine=sh machine=sh/sh3 ;;
979 sh4*) base_machine=sh machine=sh/sh4 ;;
980 sparc | sparcv[67])
981 base_machine=sparc machine=sparc/sparc32 ;;
982 sparcv8 | supersparc | hypersparc)
983 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
984 sparcv8plus | sparcv8plusa | sparcv9)
985 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
986 sparc64 | ultrasparc)
987 base_machine=sparc machine=sparc/sparc64 ;;
988 esac
991 if test "$base_machine" = "i386"; then
992 cat >> confdefs.h <<\EOF
993 #define USE_REGPARMS 1
998 # Compute the list of sysdep directories for this configuration.
999 # This can take a while to compute.
1000 sysdep_dir=$srcdir/sysdeps
1001 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1002 echo "configure:1003: checking sysdep dirs" >&5
1003 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1004 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1006 case "$os" in
1007 gnu*)
1008 base_os=mach/hurd ;;
1009 netbsd* | 386bsd* | freebsd* | bsdi*)
1010 base_os=unix/bsd/bsd4.4 ;;
1011 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1012 base_os=unix/bsd ;;
1013 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1014 base_os=unix/sysv ;;
1015 irix6*)
1016 base_os=unix/sysv/irix6/$os ;;
1017 solaris[2-9]*)
1018 base_os=unix/sysv/sysv4 ;;
1019 hpux*)
1020 base_os=unix/sysv/hpux/$os ;;
1021 aix4.3*)
1022 base_os=unix/sysv/aix/aix4.3 ;;
1023 none)
1024 base_os=standalone ;;
1026 base_os='' ;;
1027 esac
1029 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1030 tail=$os
1031 ostry=$os
1032 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1033 ostry="$ostry /$o"
1034 tail=$o
1035 done
1036 o=`echo $tail | sed 's/[0-9]*$//'`
1037 if test $o != $tail; then
1038 ostry="$ostry /$o"
1040 # For linux-gnu, try linux-gnu, then linux.
1041 o=`echo $tail | sed 's/-.*$//'`
1042 if test $o != $tail; then
1043 ostry="$ostry /$o"
1046 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1047 base=
1048 tail=$base_os
1049 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1050 set $b
1051 base="$base /$1"
1052 tail="$2"
1053 done
1055 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1056 mach=
1057 tail=$machine
1058 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1059 set $m
1060 # Prepend the machine's FPU directory unless --without-fp.
1061 if test "$with_fp" = yes; then
1062 mach="$mach /$1/fpu"
1064 mach="$mach /$1"
1065 tail="$2"
1066 done
1069 # Find what sysdep directories exist.
1070 sysnames=
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1072 for d in $add_ons_pfx ''; do
1073 for b in $base ''; do
1074 for m0 in $mach ''; do
1075 for v in /$vendor ''; do
1076 test "$v" = / && continue
1077 for o in /$ostry ''; do
1078 test "$o" = / && continue
1079 for m in $mach ''; do
1080 if test "$m0$b$v$o$m"; then
1081 try="${d}sysdeps$m0$b$v$o$m"
1082 test -n "$enable_debug_configure" &&
1083 echo "$0 DEBUG: try $try" >&2
1084 if test -d $srcdir/$try; then
1085 sysnames="$sysnames $try"
1086 { test -n "$o" || test -n "$b"; } && os_used=t
1087 { test -n "$m" || test -n "$m0"; } && machine_used=t
1090 done
1091 done
1092 done
1093 done
1094 done
1095 done
1096 IFS="$ac_save_ifs"
1098 if test -z "$os_used" && test "$os" != none; then
1099 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1101 if test -z "$machine_used" && test "$machine" != none; then
1102 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1105 # We have now validated the configuration.
1108 # If using ELF, look for an `elf' subdirectory of each machine directory.
1109 # We prepend these rather than inserting them whereever the machine appears
1110 # because things specified by the machine's ELF ABI should override
1111 # OS-specific things, and should always be the same for any OS on the
1112 # machine (otherwise what's the point of an ABI?).
1113 if test "$elf" = yes; then
1114 elf_dirs=
1115 for d in $add_ons_pfx ''; do
1116 for m in $mach; do
1117 if test -d $srcdir/${d}sysdeps$m/elf; then
1118 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1120 done
1121 done
1122 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1126 # Expand the list of system names into a full list of directories
1127 # from each element's parent name and Implies file (if present).
1128 set $sysnames
1129 names=
1130 while test $# -gt 0; do
1131 name=$1
1132 shift
1134 case " $names " in *" $name "*)
1135 # Already in the list.
1136 continue
1137 esac
1139 # Report each name as we discover it, so there is no long pause in output.
1140 echo $ac_n "$name $ac_c" >&6
1142 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1144 case $name in
1145 /*) xsrcdir= ;;
1146 *) xsrcdir=$srcdir/ ;;
1147 esac
1148 test -n "$enable_debug_configure" &&
1149 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1151 if test -f $xsrcdir$name/Implies; then
1152 # Collect more names from the `Implies' file (removing comments).
1153 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1154 implied=
1155 for x in $implied_candidate; do
1156 if test -d $xsrcdir$name_base/$x; then
1157 implied="$implied $name_base/$x";
1158 else
1159 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1161 done
1162 else
1163 implied=
1166 # Add NAME to the list of names.
1167 names="$names $name"
1169 # Find the parent of NAME, using the empty string if it has none.
1170 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1172 # Add the names implied by NAME, and NAME's parent (if it has one), to
1173 # the list of names to be processed (the argument list). We prepend the
1174 # implied names to the list and append the parent. We want implied
1175 # directories to come before further directories inferred from the
1176 # configuration components; this ensures that for sysv4, unix/common
1177 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1178 # after sysv4).
1179 sysnames="`echo $implied $* $parent`"
1180 test -n "$sysnames" && set $sysnames
1181 done
1183 # Add the default directories.
1184 default_sysnames=sysdeps/generic
1185 if test "$elf" = yes; then
1186 default_sysnames="sysdeps/generic/elf $default_sysnames"
1188 sysnames="$names $default_sysnames"
1190 # The other names were emitted during the scan.
1191 echo "$ac_t""$default_sysnames" 1>&6
1194 ### Locate tools.
1196 # Find a good install program. We prefer a C program (faster),
1197 # so one script is as good as another. But avoid the broken or
1198 # incompatible versions:
1199 # SysV /etc/install, /usr/sbin/install
1200 # SunOS /usr/etc/install
1201 # IRIX /sbin/install
1202 # AIX /bin/install
1203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1206 # ./install, which can be erroneously created by make from ./install.sh.
1207 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1208 echo "configure:1209: checking for a BSD compatible install" >&5
1209 if test -z "$INSTALL"; then
1210 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1214 for ac_dir in $PATH; do
1215 # Account for people who put trailing slashes in PATH elements.
1216 case "$ac_dir/" in
1217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1219 # OSF1 and SCO ODT 3.0 have their own names for install.
1220 # Don't use installbsd from OSF since it installs stuff as root
1221 # by default.
1222 for ac_prog in ginstall scoinst install; do
1223 if test -f $ac_dir/$ac_prog; then
1224 if test $ac_prog = install &&
1225 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1226 # AIX install. It has an incompatible calling convention.
1228 else
1229 ac_cv_path_install="$ac_dir/$ac_prog -c"
1230 break 2
1233 done
1235 esac
1236 done
1237 IFS="$ac_save_IFS"
1240 if test "${ac_cv_path_install+set}" = set; then
1241 INSTALL="$ac_cv_path_install"
1242 else
1243 # As a last resort, use the slow shell script. We don't cache a
1244 # path for INSTALL within a source directory, because that will
1245 # break other packages using the cache if that directory is
1246 # removed, or if the path is relative.
1247 INSTALL="$ac_install_sh"
1250 echo "$ac_t""$INSTALL" 1>&6
1252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1253 # It thinks the first close brace ends the variable substitution.
1254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1260 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1261 # The makefiles need to use a different form to find it in $srcdir.
1262 INSTALL='\$(..)./scripts/install-sh -c'
1264 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ln -s works" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 rm -f conftestdata
1270 if ln -s X conftestdata 2>/dev/null
1271 then
1272 rm -f conftestdata
1273 ac_cv_prog_LN_S="ln -s"
1274 else
1275 ac_cv_prog_LN_S=ln
1278 LN_S="$ac_cv_prog_LN_S"
1279 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1280 echo "$ac_t""yes" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1286 # These programs are version sensitive.
1287 echo $ac_n "checking build system type""... $ac_c" 1>&6
1288 echo "configure:1289: checking build system type" >&5
1290 build_alias=$build
1291 case "$build_alias" in
1292 NONE)
1293 case $nonopt in
1294 NONE) build_alias=$host_alias ;;
1295 *) build_alias=$nonopt ;;
1296 esac ;;
1297 esac
1299 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1300 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1301 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1302 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1303 echo "$ac_t""$build" 1>&6
1305 if test $host != $build; then
1306 ac_tool_prefix=${host_alias}-
1307 else
1308 ac_tool_prefix=
1311 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1313 # Extract the first word of "$ac_prog", so it can be a program name with args.
1314 set dummy $ac_prog; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1319 else
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1322 else
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 ac_dummy="$PATH"
1325 for ac_dir in $ac_dummy; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_CC="$ac_prog"
1329 break
1331 done
1332 IFS="$ac_save_ifs"
1335 CC="$ac_cv_prog_CC"
1336 if test -n "$CC"; then
1337 echo "$ac_t""$CC" 1>&6
1338 else
1339 echo "$ac_t""no" 1>&6
1342 test -n "$CC" && break
1343 done
1345 if test -z "$CC"; then
1346 ac_verc_fail=yes
1347 else
1348 # Found it, now check the version.
1349 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1350 echo "configure:1351: checking version of $CC" >&5
1351 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1352 case $ac_prog_version in
1353 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1354 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-*)
1355 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1356 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1358 esac
1359 echo "$ac_t""$ac_prog_version" 1>&6
1361 if test $ac_verc_fail = yes; then
1362 critic_missing=t
1365 for ac_prog in gnumake gmake make
1367 # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy $ac_prog; ac_word=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 if test -n "$MAKE"; then
1375 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1376 else
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_MAKE="$ac_prog"
1383 break
1385 done
1386 IFS="$ac_save_ifs"
1389 MAKE="$ac_cv_prog_MAKE"
1390 if test -n "$MAKE"; then
1391 echo "$ac_t""$MAKE" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1396 test -n "$MAKE" && break
1397 done
1399 if test -z "$MAKE"; then
1400 ac_verc_fail=yes
1401 else
1402 # Found it, now check the version.
1403 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1404 echo "configure:1405: checking version of $MAKE" >&5
1405 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1406 case $ac_prog_version in
1407 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1408 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1409 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1410 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1412 esac
1413 echo "$ac_t""$ac_prog_version" 1>&6
1415 if test $ac_verc_fail = yes; then
1416 critic_missing=t
1420 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1422 # Extract the first word of "$ac_prog", so it can be a program name with args.
1423 set dummy $ac_prog; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$MSGFMT"; then
1430 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_MSGFMT="$ac_prog"
1438 break
1440 done
1441 IFS="$ac_save_ifs"
1444 MSGFMT="$ac_cv_prog_MSGFMT"
1445 if test -n "$MSGFMT"; then
1446 echo "$ac_t""$MSGFMT" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 test -n "$MSGFMT" && break
1452 done
1454 if test -z "$MSGFMT"; then
1455 ac_verc_fail=yes
1456 else
1457 # Found it, now check the version.
1458 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1459 echo "configure:1460: checking version of $MSGFMT" >&5
1460 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1461 case $ac_prog_version in
1462 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1463 0.[1-9][0-9].* | [1-9].*)
1464 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1465 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1467 esac
1468 echo "$ac_t""$ac_prog_version" 1>&6
1470 if test $ac_verc_fail = yes; then
1471 MSGFMT=: aux_missing=t
1474 for ac_prog in makeinfo
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy $ac_prog; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 if test -n "$MAKEINFO"; then
1484 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1485 else
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="$PATH"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_MAKEINFO="$ac_prog"
1492 break
1494 done
1495 IFS="$ac_save_ifs"
1498 MAKEINFO="$ac_cv_prog_MAKEINFO"
1499 if test -n "$MAKEINFO"; then
1500 echo "$ac_t""$MAKEINFO" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1505 test -n "$MAKEINFO" && break
1506 done
1508 if test -z "$MAKEINFO"; then
1509 ac_verc_fail=yes
1510 else
1511 # Found it, now check the version.
1512 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1513 echo "configure:1514: checking version of $MAKEINFO" >&5
1514 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1515 case $ac_prog_version in
1516 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1517 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
1518 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1519 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1521 esac
1522 echo "$ac_t""$ac_prog_version" 1>&6
1524 if test $ac_verc_fail = yes; then
1525 MAKEINFO=: aux_missing=t
1528 for ac_prog in gsed sed
1530 # Extract the first word of "$ac_prog", so it can be a program name with args.
1531 set dummy $ac_prog; ac_word=$2
1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_word" >&5
1534 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537 if test -n "$SED"; then
1538 ac_cv_prog_SED="$SED" # Let the user override the test.
1539 else
1540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1541 ac_dummy="$PATH"
1542 for ac_dir in $ac_dummy; do
1543 test -z "$ac_dir" && ac_dir=.
1544 if test -f $ac_dir/$ac_word; then
1545 ac_cv_prog_SED="$ac_prog"
1546 break
1548 done
1549 IFS="$ac_save_ifs"
1552 SED="$ac_cv_prog_SED"
1553 if test -n "$SED"; then
1554 echo "$ac_t""$SED" 1>&6
1555 else
1556 echo "$ac_t""no" 1>&6
1559 test -n "$SED" && break
1560 done
1562 if test -z "$SED"; then
1563 ac_verc_fail=yes
1564 else
1565 # Found it, now check the version.
1566 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1567 echo "configure:1568: checking version of $SED" >&5
1568 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1569 case $ac_prog_version in
1570 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1571 3.0[2-9]|3.[1-9]*|[4-9]*)
1572 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1573 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1575 esac
1576 echo "$ac_t""$ac_prog_version" 1>&6
1578 if test $ac_verc_fail = yes; then
1579 SED=: aux_missing=t
1583 if test -n "$critic_missing"; then
1584 { echo "configure: error:
1585 *** Some critical program is missing or too old.
1586 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1589 test -n "$aux_missing" && echo "configure: warning:
1590 *** An auxiliary program is missing or too old;
1591 *** some features will be disabled.
1592 *** Check the INSTALL file for required versions." 1>&2
1594 # glibcbug.in wants to know the compiler version.
1595 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1599 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1601 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1605 ac_ext=c
1606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1607 ac_cpp='$CPP $CPPFLAGS'
1608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1610 cross_compiling=$ac_cv_prog_cc_cross
1612 cat > conftest.$ac_ext << EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1617 main(){return(0);}
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620 ac_cv_prog_cc_works=yes
1621 # If we can't run a trivial program, we are probably using a cross compiler.
1622 if (./conftest; exit) 2>/dev/null; then
1623 ac_cv_prog_cc_cross=no
1624 else
1625 ac_cv_prog_cc_cross=yes
1627 else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 ac_cv_prog_cc_works=no
1632 rm -fr conftest*
1633 ac_ext=c
1634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1638 cross_compiling=$ac_cv_prog_cc_cross
1642 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1643 if test $ac_cv_prog_cc_works = no; then
1644 cross_linkable=no
1645 ac_cv_prog_cc_cross=yes
1646 else
1647 cross_linkable=yes
1649 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1650 echo "configure:1651: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1651 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653 else
1657 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1659 cross_compiling=$ac_cv_prog_cc_cross
1661 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1662 echo "configure:1663: checking whether we are using GNU C" >&5
1663 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665 else
1666 cat > conftest.c <<EOF
1667 #ifdef __GNUC__
1668 yes;
1669 #endif
1671 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1672 ac_cv_prog_gcc=yes
1673 else
1674 ac_cv_prog_gcc=no
1678 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1679 if test $ac_cv_prog_gcc != yes; then
1680 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1683 echo $ac_n "checking build system type""... $ac_c" 1>&6
1684 echo "configure:1685: checking build system type" >&5
1686 build_alias=$build
1687 case "$build_alias" in
1688 NONE)
1689 case $nonopt in
1690 NONE) build_alias=$host_alias ;;
1691 *) build_alias=$nonopt ;;
1692 esac ;;
1693 esac
1695 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1696 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1697 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1698 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 echo "$ac_t""$build" 1>&6
1701 if test $host != $build; then
1702 for ac_prog in gcc cc
1704 # Extract the first word of "$ac_prog", so it can be a program name with args.
1705 set dummy $ac_prog; ac_word=$2
1706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_word" >&5
1708 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 if test -n "$BUILD_CC"; then
1712 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1713 else
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1715 ac_dummy="$PATH"
1716 for ac_dir in $ac_dummy; do
1717 test -z "$ac_dir" && ac_dir=.
1718 if test -f $ac_dir/$ac_word; then
1719 ac_cv_prog_BUILD_CC="$ac_prog"
1720 break
1722 done
1723 IFS="$ac_save_ifs"
1726 BUILD_CC="$ac_cv_prog_BUILD_CC"
1727 if test -n "$BUILD_CC"; then
1728 echo "$ac_t""$BUILD_CC" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1733 test -n "$BUILD_CC" && break
1734 done
1738 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1739 echo "configure:1740: checking how to run the C preprocessor" >&5
1740 # On Suns, sometimes $CPP names a directory.
1741 if test -n "$CPP" && test -d "$CPP"; then
1742 CPP=
1744 if test -z "$CPP"; then
1745 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 # This must be in double quotes, not single quotes, because CPP may get
1749 # substituted into the Makefile and "${CC-cc}" will confuse make.
1750 CPP="${CC-cc} -E"
1751 # On the NeXT, cc -E runs the code through the compiler's parser,
1752 # not just through cpp.
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #include <assert.h>
1757 Syntax Error
1759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1760 { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1762 if test -z "$ac_err"; then
1764 else
1765 echo "$ac_err" >&5
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 rm -rf conftest*
1769 CPP="${CC-cc} -E -traditional-cpp"
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 #include <assert.h>
1774 Syntax Error
1776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779 if test -z "$ac_err"; then
1781 else
1782 echo "$ac_err" >&5
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1785 rm -rf conftest*
1786 CPP="${CC-cc} -nologo -E"
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1790 #include <assert.h>
1791 Syntax Error
1793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1794 { (eval echo configure:1795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1796 if test -z "$ac_err"; then
1798 else
1799 echo "$ac_err" >&5
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 rm -rf conftest*
1803 CPP=/lib/cpp
1805 rm -f conftest*
1807 rm -f conftest*
1809 rm -f conftest*
1810 ac_cv_prog_CPP="$CPP"
1812 CPP="$ac_cv_prog_CPP"
1813 else
1814 ac_cv_prog_CPP="$CPP"
1816 echo "$ac_t""$CPP" 1>&6
1818 # Was a --with-binutils option given?
1819 if test -n "$path_binutils"; then
1820 # Make absolute; ensure a single trailing slash.
1821 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1822 CC="$CC -B$path_binutils"
1824 AS=`$CC -print-prog-name=as`
1825 LD=`$CC -print-prog-name=ld`
1826 AR=`$CC -print-prog-name=ar`
1829 # ranlib has to be treated a bit differently since it might not exist at all.
1830 RANLIB=`$CC -print-prog-name=ranlib`
1831 if test $RANLIB = ranlib; then
1832 # This extra check has to happen since gcc simply echos the parameter in
1833 # case it cannot find the value in its own directories.
1834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 if test -n "$RANLIB"; then
1842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1843 else
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 ac_dummy="$PATH"
1846 for ac_dir in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir=.
1848 if test -f $ac_dir/$ac_word; then
1849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1850 break
1852 done
1853 IFS="$ac_save_ifs"
1856 RANLIB="$ac_cv_prog_RANLIB"
1857 if test -n "$RANLIB"; then
1858 echo "$ac_t""$RANLIB" 1>&6
1859 else
1860 echo "$ac_t""no" 1>&6
1864 if test -z "$ac_cv_prog_RANLIB"; then
1865 if test -n "$ac_tool_prefix"; then
1866 # Extract the first word of "ranlib", so it can be a program name with args.
1867 set dummy 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="ranlib"
1882 break
1884 done
1885 IFS="$ac_save_ifs"
1886 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1889 RANLIB="$ac_cv_prog_RANLIB"
1890 if test -n "$RANLIB"; then
1891 echo "$ac_t""$RANLIB" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1896 else
1897 RANLIB=":"
1904 # Determine whether we are using GNU binutils.
1905 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether $AS is GNU as" >&5
1907 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910 # Most GNU programs take a -v and spit out some text including
1911 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1912 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1913 libc_cv_prog_as_gnu=yes
1914 else
1915 libc_cv_prog_as_gnu=no
1917 rm -fr contest*
1920 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1921 rm -f a.out
1922 gnu_as=$libc_cv_prog_as_gnu
1924 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether $LD is GNU ld" >&5
1926 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1928 else
1929 # Most GNU programs take a -v and spit out some text including
1930 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1931 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1932 libc_cv_prog_ld_gnu=yes
1933 else
1934 libc_cv_prog_ld_gnu=no
1936 rm -fr contest*
1939 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1940 gnu_ld=$libc_cv_prog_ld_gnu
1942 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}mig; ac_word=$2
1944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1945 echo "configure:1946: checking for $ac_word" >&5
1946 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949 if test -n "$MIG"; then
1950 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1951 else
1952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1953 ac_dummy="$PATH"
1954 for ac_dir in $ac_dummy; do
1955 test -z "$ac_dir" && ac_dir=.
1956 if test -f $ac_dir/$ac_word; then
1957 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1958 break
1960 done
1961 IFS="$ac_save_ifs"
1962 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1965 MIG="$ac_cv_prog_MIG"
1966 if test -n "$MIG"; then
1967 echo "$ac_t""$MIG" 1>&6
1968 else
1969 echo "$ac_t""no" 1>&6
1975 # if using special system headers, find out the compiler's sekrit
1976 # header directory and add that to the list. NOTE: Only does the right
1977 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1978 if test -n "$sysheaders"; then
1979 ccheaders=`$CC -print-file-name=include`
1980 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1984 # check if ranlib is necessary
1985 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1986 echo "configure:1987: checking whether ranlib is necessary" >&5
1987 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990 cat > conftest.c <<EOF
1991 int a;
1992 char b;
1993 void c(void) {}
1995 $CC $CFLAGS -c conftest.c
1996 $AR cr conftest.a conftest.c
1997 cp conftest.a conftest2.a
1998 $RANLIB conftest.a
1999 if cmp -s conftest.a conftest2.a; then
2000 libc_cv_ranlib_necessary=no
2001 else
2002 libc_cv_ranlib_necessary=yes
2004 rm -rf conftest*
2007 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2008 if test "$libc_cv_ranlib_necessary" = no; then
2009 RANLIB=:
2012 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2013 # since this would lead to problems installing/building glibc.
2014 # LD_LIBRARY_PATH contains the current directory if one of the following
2015 # is true:
2016 # - one of the terminals (":" and ";") is the first or last sign
2017 # - two terminals occur directly after each other
2018 # - the path contains an element with a dot in it
2019 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2020 echo "configure:2021: checking LD_LIBRARY_PATH variable" >&5
2021 case ${LD_LIBRARY_PATH} in
2022 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2023 ld_library_path_setting="contains current directory"
2026 ld_library_path_setting="ok"
2028 esac
2029 echo "$ac_t""$ld_library_path_setting" 1>&6
2030 if test "$ld_library_path_setting" != "ok"; then
2031 { echo "configure: error:
2032 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2033 *** building glibc. Please change the environment variable
2034 *** and run configure again." 1>&2; exit 1; }
2037 # Extract the first word of "bash", so it can be a program name with args.
2038 set dummy bash; ac_word=$2
2039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2040 echo "configure:2041: checking for $ac_word" >&5
2041 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043 else
2044 case "$BASH" in
2046 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2048 ?:/*)
2049 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2053 ac_dummy="$PATH"
2054 for ac_dir in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir=.
2056 if test -f $ac_dir/$ac_word; then
2057 ac_cv_path_BASH="$ac_dir/$ac_word"
2058 break
2060 done
2061 IFS="$ac_save_ifs"
2062 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2064 esac
2066 BASH="$ac_cv_path_BASH"
2067 if test -n "$BASH"; then
2068 echo "$ac_t""$BASH" 1>&6
2069 else
2070 echo "$ac_t""no" 1>&6
2073 if test "$BASH" != no &&
2074 $BASH -c 'test "$BASH_VERSINFO" \
2075 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2076 libc_cv_have_bash2=yes
2077 else
2078 libc_cv_have_bash2=no
2082 if test "$BASH" = no; then
2083 # Extract the first word of "ksh", so it can be a program name with args.
2084 set dummy ksh; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 case "$KSH" in
2092 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2094 ?:/*)
2095 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 ac_dummy="$PATH"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/$ac_word; then
2103 ac_cv_path_KSH="$ac_dir/$ac_word"
2104 break
2106 done
2107 IFS="$ac_save_ifs"
2108 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2110 esac
2112 KSH="$ac_cv_path_KSH"
2113 if test -n "$KSH"; then
2114 echo "$ac_t""$KSH" 1>&6
2115 else
2116 echo "$ac_t""no" 1>&6
2119 if test "$KSH" = no; then
2120 libc_cv_have_ksh=no
2121 else
2122 libc_cv_have_ksh=yes
2124 else
2125 KSH="$BASH"
2127 libc_cv_have_ksh=yes
2131 for ac_prog in gawk mawk nawk awk
2133 # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 if test -n "$AWK"; then
2141 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2142 else
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_AWK="$ac_prog"
2149 break
2151 done
2152 IFS="$ac_save_ifs"
2155 AWK="$ac_cv_prog_AWK"
2156 if test -n "$AWK"; then
2157 echo "$ac_t""$AWK" 1>&6
2158 else
2159 echo "$ac_t""no" 1>&6
2162 test -n "$AWK" && break
2163 done
2165 # Extract the first word of "perl", so it can be a program name with args.
2166 set dummy perl; 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_path_PERL'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 case "$PERL" in
2174 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2176 ?:/*)
2177 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2181 ac_dummy="$PATH"
2182 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 if test -f $ac_dir/$ac_word; then
2185 ac_cv_path_PERL="$ac_dir/$ac_word"
2186 break
2188 done
2189 IFS="$ac_save_ifs"
2190 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2192 esac
2194 PERL="$ac_cv_path_PERL"
2195 if test -n "$PERL"; then
2196 echo "$ac_t""$PERL" 1>&6
2197 else
2198 echo "$ac_t""no" 1>&6
2201 if test "$PERL" != no &&
2202 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2203 PERL=no
2205 # Extract the first word of "install-info", so it can be a program name with args.
2206 set dummy install-info; ac_word=$2
2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_word" >&5
2209 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212 case "$INSTALL_INFO" in
2214 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2216 ?:/*)
2217 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2221 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2222 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 if test -f $ac_dir/$ac_word; then
2225 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2226 break
2228 done
2229 IFS="$ac_save_ifs"
2230 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2232 esac
2234 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2235 if test -n "$INSTALL_INFO"; then
2236 echo "$ac_t""$INSTALL_INFO" 1>&6
2237 else
2238 echo "$ac_t""no" 1>&6
2241 if test "$INSTALL_INFO" != "no"; then
2242 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2243 echo "configure:2244: checking for old Debian install-info" >&5
2244 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 mkdir conftest.d
2248 # There is a hard ^_ on the next line. I am open to better ideas.
2249 (echo '\x1f'
2250 echo 'File: dir Node: Top This is the top of the INFO tree'
2251 echo '* Menu:') >conftest.d/dir
2252 (echo 'INFO-DIR-SECTION i-d-s works'
2253 echo 'START-INFO-DIR-ENTRY'
2254 echo '* Prog: (prog). Program.'
2255 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2256 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2257 then
2258 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2259 then libc_cv_old_debian_install_info=no
2260 else libc_cv_old_debian_install_info=yes
2262 else libc_cv_old_debian_install_info=no testfailed=t
2264 rm -fr conftest.d
2267 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2268 if test -n "$testfailed"
2269 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2271 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2275 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2276 echo "configure:2277: checking for signed size_t type" >&5
2277 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 echo '#include <stddef.h>
2281 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2282 if eval "$ac_cpp conftest.c 2>/dev/null" \
2283 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2284 libc_cv_signed_size_t=no
2285 else
2286 libc_cv_signed_size_t=yes
2288 rm -f conftest*
2291 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2292 if test $libc_cv_signed_size_t = yes; then
2293 cat >> confdefs.h <<\EOF
2294 #undef __SIZE_TYPE__
2295 #define __SIZE_TYPE__ unsigned
2299 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2300 echo "configure:2301: checking for libc-friendly stddef.h" >&5
2301 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303 else
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #define __need_size_t
2308 #define __need_wchar_t
2309 #include <stddef.h>
2310 #define __need_NULL
2311 #include <stddef.h>
2312 int main() {
2313 size_t size; wchar_t wchar;
2314 #ifdef offsetof
2315 #error stddef.h ignored __need_*
2316 #endif
2317 if (&size == NULL || &wchar == NULL) abort ();
2318 ; return 0; }
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 rm -rf conftest*
2322 libc_cv_friendly_stddef=yes
2323 else
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 rm -rf conftest*
2327 libc_cv_friendly_stddef=no
2329 rm -f conftest*
2332 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2333 if test $libc_cv_friendly_stddef = yes; then
2334 config_vars="$config_vars
2335 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2338 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether we need to use -P to assemble .S files" >&5
2340 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 cat > conftest.S <<EOF
2344 #include "confdefs.h"
2345 /* Nothing whatsoever. */
2347 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2348 libc_cv_need_minus_P=no
2349 else
2350 libc_cv_need_minus_P=yes
2352 rm -f conftest*
2355 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2356 if test $libc_cv_need_minus_P = yes; then
2357 config_vars="$config_vars
2358 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2361 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2362 echo "configure:2363: checking whether .text pseudo-op must be used" >&5
2363 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2365 else
2366 cat > conftest.s <<EOF
2367 .text
2369 libc_cv_dot_text=
2370 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2371 libc_cv_dot_text=.text
2373 rm -f conftest*
2376 if test -z "$libc_cv_dot_text"; then
2377 echo "$ac_t""no" 1>&6
2378 else
2379 echo "$ac_t""yes" 1>&6
2382 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2383 echo "configure:2384: checking for assembler global-symbol directive" >&5
2384 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 libc_cv_asm_global_directive=UNKNOWN
2388 for ac_globl in .globl .global .EXPORT; do
2389 cat > conftest.s <<EOF
2390 ${libc_cv_dot_text}
2391 ${ac_globl} foo
2392 foo:
2394 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2395 libc_cv_asm_global_directive=${ac_globl}
2397 rm -f conftest*
2398 test $libc_cv_asm_global_directive != UNKNOWN && break
2399 done
2402 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2403 if test $libc_cv_asm_global_directive = UNKNOWN; then
2404 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2405 else
2406 cat >> confdefs.h <<EOF
2407 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2412 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2413 echo "configure:2414: checking for .set assembler directive" >&5
2414 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2416 else
2417 cat > conftest.s <<EOF
2418 ${libc_cv_dot_text}
2419 foo:
2420 .set glibc_conftest_frobozz,foo
2421 $libc_cv_asm_global_directive glibc_conftest_frobozz
2423 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2424 # (but it doesn't work), so we must do a linking check to be sure.
2425 cat > conftest1.c <<\EOF
2426 extern int glibc_conftest_frobozz;
2427 main () { printf ("%d\n", glibc_conftest_frobozz); }
2429 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2430 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2431 libc_cv_asm_set_directive=yes
2432 else
2433 libc_cv_asm_set_directive=no
2435 rm -f conftest*
2438 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2439 if test $libc_cv_asm_set_directive = yes; then
2440 cat >> confdefs.h <<\EOF
2441 #define HAVE_ASM_SET_DIRECTIVE 1
2446 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2447 echo "configure:2448: checking for .symver assembler directive" >&5
2448 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2450 else
2451 cat > conftest.s <<EOF
2452 ${libc_cv_dot_text}
2453 _sym:
2454 .symver _sym,sym@VERS
2456 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2457 libc_cv_asm_symver_directive=yes
2458 else
2459 libc_cv_asm_symver_directive=no
2461 rm -f conftest*
2464 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2465 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2466 echo "configure:2467: checking for ld --version-script" >&5
2467 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 if test $libc_cv_asm_symver_directive = yes; then
2471 cat > conftest.s <<EOF
2472 ${libc_cv_dot_text}
2473 _sym:
2474 .symver _sym,sym@VERS
2476 cat > conftest.map <<EOF
2477 VERS_1 {
2478 global: sym;
2481 VERS_2 {
2482 global: sym;
2483 } VERS_1;
2485 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2486 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2487 -nostartfiles -nostdlib
2488 -Wl,--version-script,conftest.map
2489 1>&5'; { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2490 then
2491 libc_cv_ld_version_script_option=yes
2492 else
2493 libc_cv_ld_version_script_option=no
2495 else
2496 libc_cv_ld_version_script_option=no
2498 else
2499 libc_cv_ld_version_script_option=no
2501 rm -f conftest*
2504 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2505 if test $shared != no &&
2506 test $libc_cv_asm_symver_directive = yes &&
2507 test $libc_cv_ld_version_script_option = yes &&
2508 test $enable_versioning = yes; then
2509 VERSIONING=yes
2510 cat >> confdefs.h <<\EOF
2511 #define DO_VERSIONING 1
2514 else
2515 VERSIONING=no
2519 if test $shared != no && test $VERSIONING = no; then
2520 echo "\
2521 *** WARNING: You should not compile GNU libc without versioning. Not using
2522 *** versioning will introduce incompatibilities so that old binaries
2523 *** will not run anymore.
2524 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2526 if test $elf = yes; then
2527 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2528 echo "configure:2529: checking for .previous assembler directive" >&5
2529 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532 cat > conftest.s <<EOF
2533 .section foo_section
2534 .previous
2536 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2537 libc_cv_asm_previous_directive=yes
2538 else
2539 libc_cv_asm_previous_directive=no
2541 rm -f conftest*
2544 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2545 if test $libc_cv_asm_previous_directive = yes; then
2546 cat >> confdefs.h <<\EOF
2547 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2550 else
2551 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2552 echo "configure:2553: checking for .popsection assembler directive" >&5
2553 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556 cat > conftest.s <<EOF
2557 .pushsection foo_section
2558 .popsection
2560 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2561 libc_cv_asm_popsection_directive=yes
2562 else
2563 libc_cv_asm_popsection_directive=no
2565 rm -f conftest*
2568 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2569 if test $libc_cv_asm_popsection_directive = yes; then
2570 cat >> confdefs.h <<\EOF
2571 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2576 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2577 echo "configure:2578: checking for .protected and .hidden assembler directive" >&5
2578 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581 cat > conftest.s <<EOF
2582 .protected foo
2583 foo:
2584 .hidden bar
2585 bar:
2587 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2588 libc_cv_asm_protected_directive=yes
2589 else
2590 libc_cv_asm_protected_directive=no
2592 rm -f conftest*
2595 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2599 if test $elf != yes; then
2600 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2601 echo "configure:2602: checking for .init and .fini sections" >&5
2602 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2609 int main() {
2610 asm (".section .init");
2611 asm (".section .fini");
2612 asm ("${libc_cv_dot_text}");
2613 ; return 0; }
2615 if { (eval echo configure:2616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2616 rm -rf conftest*
2617 libc_cv_have_initfini=yes
2618 else
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 rm -rf conftest*
2622 libc_cv_have_initfini=no
2624 rm -f conftest*
2627 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2628 if test $libc_cv_have_initfini = yes; then
2629 cat >> confdefs.h <<\EOF
2630 #define HAVE_INITFINI 1
2636 if test $elf = yes -a $gnu_ld = yes; then
2637 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2638 echo "configure:2639: checking whether cc puts quotes around section names" >&5
2639 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2641 else
2642 cat > conftest.c <<EOF
2643 static const int foo
2644 __attribute__ ((section ("bar"))) = 1;
2646 if ${CC-cc} -S conftest.c -o conftest.s; then
2647 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2648 libc_cv_have_section_quotes=yes
2649 else
2650 libc_cv_have_section_quotes=no
2652 else
2653 libc_cv_have_section_quotes=unknown
2655 rm -f conftest.cs
2659 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2660 if test $libc_cv_have_section_quotes = yes; then
2661 cat >> confdefs.h <<\EOF
2662 #define HAVE_SECTION_QUOTES 1
2670 if test $elf = yes; then
2671 libc_cv_asm_underscores=no
2672 else
2673 if test $ac_cv_prog_cc_works = yes; then
2674 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2675 echo "configure:2676: checking for _ prefix on C symbol names" >&5
2676 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2678 else
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 asm ("_glibc_foobar:");
2683 int main() {
2684 glibc_foobar ();
2685 ; return 0; }
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 rm -rf conftest*
2689 libc_cv_asm_underscores=yes
2690 else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 libc_cv_asm_underscores=no
2696 rm -f conftest*
2699 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2700 else
2701 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2702 echo "configure:2703: checking for _ prefix on C symbol names" >&5
2703 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2705 else
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 void underscore_test(void) {
2710 return; }
2712 if { (eval echo configure:2713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2713 if grep _underscore_test conftest* >/dev/null; then
2714 rm -f conftest*
2715 libc_cv_asm_underscores=yes
2716 else
2717 rm -f conftest*
2718 libc_cv_asm_underscores=no
2720 else
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -f conftest*
2724 libc_cv_asm_underscores=no
2726 rm -f conftest*
2729 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2732 if test $libc_cv_asm_underscores = no; then
2733 cat >> confdefs.h <<\EOF
2734 #define NO_UNDERSCORES 1
2739 if test $elf = yes; then
2740 libc_cv_weak_symbols=yes
2743 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2744 echo "configure:2745: checking for assembler .weak directive" >&5
2745 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748 cat > conftest.s <<EOF
2749 ${libc_cv_dot_text}
2750 ${libc_cv_asm_global_directive} foo
2751 foo:
2752 .weak foo
2753 .weak bar; bar = foo
2755 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2756 libc_cv_asm_weak_directive=yes
2757 else
2758 libc_cv_asm_weak_directive=no
2760 rm -f conftest*
2763 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2765 if test $libc_cv_asm_weak_directive = no; then
2766 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2767 echo "configure:2768: checking for assembler .weakext directive" >&5
2768 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 cat > conftest.s <<EOF
2772 ${libc_cv_dot_text}
2773 ${libc_cv_asm_global_directive} foo
2774 foo:
2775 .weakext bar foo
2776 .weakext baz
2777 ${libc_cv_asm_global_directive} baz
2778 baz:
2780 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2781 libc_cv_asm_weakext_directive=yes
2782 else
2783 libc_cv_asm_weakext_directive=no
2785 rm -f conftest*
2788 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2790 fi # no .weak
2792 if test $libc_cv_asm_weak_directive = yes; then
2793 cat >> confdefs.h <<\EOF
2794 #define HAVE_ASM_WEAK_DIRECTIVE 1
2797 elif test $libc_cv_asm_weakext_directive = yes; then
2798 cat >> confdefs.h <<\EOF
2799 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2804 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2805 echo "configure:2806: checking for ld --no-whole-archive" >&5
2806 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 cat > conftest.c <<\EOF
2810 _start () {}
2811 int __eh_pc;
2812 __throw () {}
2814 if { ac_try='${CC-cc} $CFLAGS
2815 -nostdlib -nostartfiles -Wl,--no-whole-archive
2816 -o conftest conftest.c 1>&5'; { (eval echo configure:2817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2817 libc_cv_ld_no_whole_archive=yes
2818 else
2819 libc_cv_ld_no_whole_archive=no
2821 rm -f conftest*
2824 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2825 if test $libc_cv_ld_no_whole_archive = yes; then
2826 no_whole_archive=-Wl,--no-whole-archive
2829 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2830 echo "configure:2831: checking for gcc -fexceptions" >&5
2831 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2834 cat > conftest.c <<\EOF
2835 _start () {}
2836 int __eh_pc;
2837 __throw () {}
2839 if { ac_try='${CC-cc} $CFLAGS
2840 -nostdlib -nostartfiles -fexceptions
2841 -o conftest conftest.c 1>&5'; { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2842 libc_cv_gcc_exceptions=yes
2843 else
2844 libc_cv_gcc_exceptions=no
2846 rm -f conftest*
2849 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2850 if test $libc_cv_gcc_exceptions = yes; then
2851 exceptions=-fexceptions
2854 if test "$base_machine" = alpha ; then
2855 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2856 echo "configure:2857: checking for function ..ng prefix" >&5
2857 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2859 else
2860 cat > conftest.c <<\EOF
2861 foo () { }
2863 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2864 then
2865 libc_cv_gcc_alpha_ng_prefix=yes
2866 else
2867 libc_cv_gcc_alpha_ng_prefix=no
2869 rm -f conftest*
2872 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2873 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2874 cat >> confdefs.h <<\EOF
2875 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2878 else
2879 cat >> confdefs.h <<\EOF
2880 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2886 if test "$host_cpu" = powerpc ; then
2887 # Check for a bug present in at least versions 2.8.x of GCC
2888 # and versions 1.0.x of EGCS.
2889 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2890 echo "configure:2891: checking whether clobbering cr0 causes problems" >&5
2891 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2893 else
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2898 int main() {
2900 ; return 0; }
2902 if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 rm -rf conftest*
2904 libc_cv_c_asmcr0_bug='no'
2905 else
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2908 rm -rf conftest*
2909 libc_cv_c_asmcr0_bug='yes'
2911 rm -f conftest*
2914 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2915 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2916 cat >> confdefs.h <<\EOF
2917 #define BROKEN_PPC_ASM_CR0 1
2923 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2924 echo "configure:2925: checking for DWARF2 unwind info support" >&5
2925 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2927 else
2928 cat > conftest.c <<EOF
2929 #line 2930 "configure"
2930 static char __EH_FRAME_BEGIN__;
2931 _start ()
2933 #ifdef CHECK__register_frame
2934 __register_frame (__EH_FRAME_BEGIN__);
2935 __deregister_frame (__EH_FRAME_BEGIN__);
2936 #endif
2937 #ifdef CHECK__register_frame_info
2938 __register_frame_info (__EH_FRAME_BEGIN__);
2939 __deregister_frame_info (__EH_FRAME_BEGIN__);
2940 #endif
2942 int __eh_pc;
2943 __throw () {}
2944 /* FIXME: this is fragile. */
2945 malloc () {}
2946 strcmp () {}
2947 strlen () {}
2948 memcpy () {}
2949 memset () {}
2950 free () {}
2951 abort () {}
2952 __bzero () {}
2954 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2955 -nostdlib -nostartfiles
2956 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2957 libc_cv_gcc_dwarf2_unwind_info=static
2958 else
2959 libc_cv_gcc_dwarf2_unwind_info=no
2961 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2962 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2963 -nostdlib -nostartfiles
2964 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2965 libc_cv_gcc_dwarf2_unwind_info=yes
2966 else
2967 libc_cv_gcc_dwarf2_unwind_info=no
2970 rm -f conftest*
2973 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2974 case $libc_cv_gcc_dwarf2_unwind_info in
2975 yes)
2976 cat >> confdefs.h <<\EOF
2977 #define HAVE_DWARF2_UNWIND_INFO 1
2981 static)
2982 cat >> confdefs.h <<\EOF
2983 #define HAVE_DWARF2_UNWIND_INFO 1
2986 cat >> confdefs.h <<\EOF
2987 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2991 esac
2993 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2994 echo "configure:2995: checking for __builtin_expect" >&5
2995 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998 cat > conftest.c <<EOF
2999 #line 3000 "configure"
3000 int foo (int a)
3002 a = __builtin_expect (a, 10);
3003 return a == 10 ? 0 : 1;
3006 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3007 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3008 libc_cv_gcc_builtin_expect=yes
3009 else
3010 libc_cv_gcc_builtin_expect=no
3012 rm -f conftest*
3015 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3016 if test "$libc_cv_gcc_builtin_expect" = yes; then
3017 cat >> confdefs.h <<\EOF
3018 #define HAVE_BUILTIN_EXPECT 1
3023 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3024 echo "configure:3025: checking for local label subtraction" >&5
3025 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3027 else
3028 cat > conftest.c <<EOF
3029 #line 3030 "configure"
3030 int foo (int a)
3032 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3033 void *p = &&l1 + ar[a];
3034 goto *p;
3036 return 1;
3038 return 2;
3041 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3042 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3043 libc_cv_gcc_subtract_local_labels=yes
3044 else
3045 libc_cv_gcc_subtract_local_labels=no
3047 rm -f conftest*
3050 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3051 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3052 cat >> confdefs.h <<\EOF
3053 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3058 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3059 echo "configure:3060: checking for libgd" >&5
3060 old_CFLAGS="$CFLAGS"
3061 CFLAGS="$CFLAGS $libgd_include"
3062 old_LDFLAGS="$LDFLAGS"
3063 LDFLAGS="$LDFLAGS $libgd_ldflags"
3064 old_LIBS="$LIBS"
3065 LIBS="$LIBS -lgd -lpng -lz"
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <gd.h>
3070 int main() {
3071 gdImagePng (0, 0)
3072 ; return 0; }
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3075 rm -rf conftest*
3076 LIBGD=yes
3077 else
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 rm -rf conftest*
3081 LIBGD=no
3083 rm -f conftest*
3084 CFLAGS="$old_CFLAGS"
3085 LDFLAGS="$old_LDFLAGS"
3086 LIBS="$old_LIBS"
3087 echo "$ac_t""$LIBGD" 1>&6
3090 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3091 echo "configure:3092: checking size of long double" >&5
3092 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3094 else
3095 if test "$cross_compiling" = yes; then
3096 ac_cv_sizeof_long_double=0
3097 else
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <stdio.h>
3102 main()
3104 FILE *f=fopen("conftestval", "w");
3105 if (!f) exit(1);
3106 fprintf(f, "%d\n", sizeof(long double));
3107 exit(0);
3110 if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3111 then
3112 ac_cv_sizeof_long_double=`cat conftestval`
3113 else
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 rm -fr conftest*
3117 ac_cv_sizeof_long_double=0
3119 rm -fr conftest*
3123 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3124 cat >> confdefs.h <<EOF
3125 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3129 sizeof_long_double=$ac_cv_sizeof_long_double
3132 ### End of automated tests.
3133 ### Now run sysdeps configure fragments.
3135 # sysdeps configure fragments may set these with files to be linked below.
3136 libc_link_dests=
3137 libc_link_sources=
3139 # They also can set these variables.
3140 use_ldconfig=no
3141 ldd_rewrite_script=no
3143 # Iterate over all the sysdep directories we will use, running their
3144 # configure fragments, and looking for a uname implementation.
3145 uname=
3146 for dir in $sysnames; do
3147 case $dir in
3148 /*) dest=$dir ;;
3149 *) dest=$srcdir/$dir ;;
3150 esac
3151 if test -r $dest/configure; then
3152 echo "$ac_t""running configure fragment for $dest" 1>&6
3153 . $dest/configure
3156 if test -z "$uname"; then
3157 if test -r $dest/uname.c ||
3158 test -r $dest/uname.S ||
3159 { test -r $dest/syscalls.list &&
3160 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3161 uname=$dir
3164 done
3168 # If we will use the generic uname implementation, we must figure out what
3169 # it will say by examining the system, and write the results in config-name.h.
3170 if test "$uname" = "sysdeps/generic"; then
3172 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3173 if test $uname_sysname != $config_os; then
3174 config_release=`echo $config_os | sed s/$uname_sysname//`
3177 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3178 echo "configure:3179: checking OS release for uname" >&5
3179 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3181 else
3182 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3183 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3184 != x$config_release; then
3185 # The configuration release is a substring of the kernel release.
3186 libc_cv_uname_release=$kernel_release
3187 elif test x$config_release != x; then
3188 libc_cv_uname_release=$config_release
3189 elif test x$kernel_release != x; then
3190 libc_cv_uname_release=$kernel_release
3191 else
3192 libc_cv_uname_release=unknown
3196 echo "$ac_t""$libc_cv_uname_release" 1>&6
3197 uname_release="$libc_cv_uname_release"
3199 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3200 echo "configure:3201: checking OS version for uname" >&5
3201 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3203 else
3204 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3205 if test -n "$kernel_version"; then
3206 libc_cv_uname_version="$kernel_version"
3207 else
3208 libc_cv_uname_version=unknown
3212 echo "$ac_t""$libc_cv_uname_version" 1>&6
3213 uname_version="$libc_cv_uname_version"
3215 config_uname=config-name.h:config-name.in
3216 else
3217 # For non-generic uname, we don't need to create config-name.h at all.
3218 config_uname=
3221 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3222 echo "configure:3223: checking stdio selection" >&5
3224 case $stdio in
3225 libio) cat >> confdefs.h <<\EOF
3226 #define USE_IN_LIBIO 1
3229 default) stdio=stdio ;;
3230 esac
3231 echo "$ac_t""$stdio" 1>&6
3233 # Test for old glibc 2.0.x headers so that they can be removed properly
3234 # Search only in includedir.
3235 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3236 echo "configure:3237: checking for old glibc 2.0.x headers" >&5
3237 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3238 then
3239 old_glibc_headers=yes
3240 else
3241 old_glibc_headers=no
3243 echo "$ac_t""$old_glibc_headers" 1>&6
3244 if test ${old_glibc_headers} = yes; then
3245 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3246 echo "configure: warning: *** be removed." 1>&2
3259 if test $gnu_ld = yes; then
3260 cat >> confdefs.h <<\EOF
3261 #define HAVE_GNU_LD 1
3265 if test $gnu_as = yes; then
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_GNU_AS 1
3271 if test $elf = yes; then
3272 cat >> confdefs.h <<\EOF
3273 #define HAVE_ELF 1
3280 if test $shared = default; then
3281 if test $gnu_ld = yes; then
3282 shared=$elf
3283 else
3284 # For now we do not assume shared libs are available. In future more
3285 # tests might become available.
3286 shared=no
3290 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3291 echo "configure:3292: checking whether -fPIC is default" >&5
3292 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295 pic_default=yes
3296 cat > conftest.c <<EOF
3297 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3298 # error PIC is default.
3299 #endif
3301 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3302 pic_default=no
3304 rm -f conftest.*
3307 echo "$ac_t""$pic_default" 1>&6
3318 case "$add_ons" in
3319 *door*) linux_doors=yes ;;
3320 *) linux_doors=no ;;
3321 esac
3324 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3325 config_makefile=
3326 else
3327 config_makefile=Makefile
3330 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3331 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3335 echo '*** Do NOT install this release on any production system!'
3336 echo '*** It is known to be broken and will be so for quite some time.'
3337 echo '*** Use the latest released version instead.'
3339 trap '' 1 2 15
3340 cat > confcache <<\EOF
3341 # This file is a shell script that caches the results of configure
3342 # tests run on this system so they can be shared between configure
3343 # scripts and configure runs. It is not useful on other systems.
3344 # If it contains results you don't want to keep, you may remove or edit it.
3346 # By default, configure uses ./config.cache as the cache file,
3347 # creating it if it does not exist already. You can give configure
3348 # the --cache-file=FILE option to use a different cache file; that is
3349 # what configure does when it calls configure scripts in
3350 # subdirectories, so they share the cache.
3351 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3352 # config.status only pays attention to the cache file if you give it the
3353 # --recheck option to rerun configure.
3356 # The following way of writing the cache mishandles newlines in values,
3357 # but we know of no workaround that is simple, portable, and efficient.
3358 # So, don't put newlines in cache variables' values.
3359 # Ultrix sh set writes to stderr and can't be redirected directly,
3360 # and sets the high bit in the cache file unless we assign to the vars.
3361 (set) 2>&1 |
3362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3363 *ac_space=\ *)
3364 # `set' does not quote correctly, so add quotes (double-quote substitution
3365 # turns \\\\ into \\, and sed turns \\ into \).
3366 sed -n \
3367 -e "s/'/'\\\\''/g" \
3368 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3371 # `set' quotes correctly as required by POSIX, so do not add quotes.
3372 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3374 esac >> confcache
3375 if cmp -s $cache_file confcache; then
3377 else
3378 if test -w $cache_file; then
3379 echo "updating cache $cache_file"
3380 cat confcache > $cache_file
3381 else
3382 echo "not updating unwritable cache $cache_file"
3385 rm -f confcache
3387 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3390 # Let make expand exec_prefix.
3391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3393 # Any assignment to VPATH causes Sun make to only execute
3394 # the first set of double-colon rules, so remove it if not needed.
3395 # If there is a colon in the path, we need to keep it.
3396 if test "x$srcdir" = x.; then
3397 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3400 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3402 DEFS=-DHAVE_CONFIG_H
3404 # Without the "./", some shells look in PATH for config.status.
3405 : ${CONFIG_STATUS=./config.status}
3407 echo creating $CONFIG_STATUS
3408 rm -f $CONFIG_STATUS
3409 cat > $CONFIG_STATUS <<EOF
3410 #! /bin/sh
3411 # Generated automatically by configure.
3412 # Run this file to recreate the current configuration.
3413 # This directory was configured as follows,
3414 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3416 # $0 $ac_configure_args
3418 # Compiler output produced by configure, useful for debugging
3419 # configure, is in ./config.log if it exists.
3421 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3422 for ac_option
3424 case "\$ac_option" in
3425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3426 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3427 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3428 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3429 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3430 exit 0 ;;
3431 -help | --help | --hel | --he | --h)
3432 echo "\$ac_cs_usage"; exit 0 ;;
3433 *) echo "\$ac_cs_usage"; exit 1 ;;
3434 esac
3435 done
3437 ac_given_srcdir=$srcdir
3438 ac_given_INSTALL="$INSTALL"
3440 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3442 cat >> $CONFIG_STATUS <<EOF
3444 # Protect against being on the right side of a sed subst in config.status.
3445 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3446 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3447 $ac_vpsub
3448 $extrasub
3449 s%@SHELL@%$SHELL%g
3450 s%@CFLAGS@%$CFLAGS%g
3451 s%@CPPFLAGS@%$CPPFLAGS%g
3452 s%@CXXFLAGS@%$CXXFLAGS%g
3453 s%@FFLAGS@%$FFLAGS%g
3454 s%@DEFS@%$DEFS%g
3455 s%@LDFLAGS@%$LDFLAGS%g
3456 s%@LIBS@%$LIBS%g
3457 s%@exec_prefix@%$exec_prefix%g
3458 s%@prefix@%$prefix%g
3459 s%@program_transform_name@%$program_transform_name%g
3460 s%@bindir@%$bindir%g
3461 s%@sbindir@%$sbindir%g
3462 s%@libexecdir@%$libexecdir%g
3463 s%@datadir@%$datadir%g
3464 s%@sysconfdir@%$sysconfdir%g
3465 s%@sharedstatedir@%$sharedstatedir%g
3466 s%@localstatedir@%$localstatedir%g
3467 s%@libdir@%$libdir%g
3468 s%@includedir@%$includedir%g
3469 s%@oldincludedir@%$oldincludedir%g
3470 s%@infodir@%$infodir%g
3471 s%@mandir@%$mandir%g
3472 s%@with_cvs@%$with_cvs%g
3473 s%@subdirs@%$subdirs%g
3474 s%@force_install@%$force_install%g
3475 s%@host@%$host%g
3476 s%@host_alias@%$host_alias%g
3477 s%@host_cpu@%$host_cpu%g
3478 s%@host_vendor@%$host_vendor%g
3479 s%@host_os@%$host_os%g
3480 s%@base_machine@%$base_machine%g
3481 s%@sysnames@%$sysnames%g
3482 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3483 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3484 s%@INSTALL_DATA@%$INSTALL_DATA%g
3485 s%@LN_S@%$LN_S%g
3486 s%@build@%$build%g
3487 s%@build_alias@%$build_alias%g
3488 s%@build_cpu@%$build_cpu%g
3489 s%@build_vendor@%$build_vendor%g
3490 s%@build_os@%$build_os%g
3491 s%@CC@%$CC%g
3492 s%@MAKE@%$MAKE%g
3493 s%@MSGFMT@%$MSGFMT%g
3494 s%@MAKEINFO@%$MAKEINFO%g
3495 s%@SED@%$SED%g
3496 s%@CCVERSION@%$CCVERSION%g
3497 s%@cross_linkable@%$cross_linkable%g
3498 s%@BUILD_CC@%$BUILD_CC%g
3499 s%@cross_compiling@%$cross_compiling%g
3500 s%@CPP@%$CPP%g
3501 s%@AR@%$AR%g
3502 s%@RANLIB@%$RANLIB%g
3503 s%@MIG@%$MIG%g
3504 s%@SYSINCLUDES@%$SYSINCLUDES%g
3505 s%@BASH@%$BASH%g
3506 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3507 s%@KSH@%$KSH%g
3508 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3509 s%@AWK@%$AWK%g
3510 s%@PERL@%$PERL%g
3511 s%@INSTALL_INFO@%$INSTALL_INFO%g
3512 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3513 s%@VERSIONING@%$VERSIONING%g
3514 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3515 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3516 s%@no_whole_archive@%$no_whole_archive%g
3517 s%@exceptions@%$exceptions%g
3518 s%@LIBGD@%$LIBGD%g
3519 s%@sizeof_long_double@%$sizeof_long_double%g
3520 s%@uname_sysname@%$uname_sysname%g
3521 s%@uname_release@%$uname_release%g
3522 s%@uname_version@%$uname_version%g
3523 s%@stdio@%$stdio%g
3524 s%@old_glibc_headers@%$old_glibc_headers%g
3525 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3526 s%@libc_cv_localedir@%$libc_cv_localedir%g
3527 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3528 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3529 s%@use_ldconfig@%$use_ldconfig%g
3530 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3531 s%@gnu_ld@%$gnu_ld%g
3532 s%@gnu_as@%$gnu_as%g
3533 s%@elf@%$elf%g
3534 s%@static@%$static%g
3535 s%@shared@%$shared%g
3536 s%@pic_default@%$pic_default%g
3537 s%@profile@%$profile%g
3538 s%@omitfp@%$omitfp%g
3539 s%@bounded@%$bounded%g
3540 s%@static_nss@%$static_nss%g
3541 s%@nopic_initfini@%$nopic_initfini%g
3542 s%@DEFINES@%$DEFINES%g
3543 s%@linux_doors@%$linux_doors%g
3544 s%@VERSION@%$VERSION%g
3545 s%@RELEASE@%$RELEASE%g
3547 CEOF
3550 cat >> $CONFIG_STATUS <<\EOF
3552 # Split the substitutions into bite-sized pieces for seds with
3553 # small command number limits, like on Digital OSF/1 and HP-UX.
3554 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3555 ac_file=1 # Number of current file.
3556 ac_beg=1 # First line for current file.
3557 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3558 ac_more_lines=:
3559 ac_sed_cmds=""
3560 while $ac_more_lines; do
3561 if test $ac_beg -gt 1; then
3562 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3563 else
3564 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3566 if test ! -s conftest.s$ac_file; then
3567 ac_more_lines=false
3568 rm -f conftest.s$ac_file
3569 else
3570 if test -z "$ac_sed_cmds"; then
3571 ac_sed_cmds="sed -f conftest.s$ac_file"
3572 else
3573 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3575 ac_file=`expr $ac_file + 1`
3576 ac_beg=$ac_end
3577 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3579 done
3580 if test -z "$ac_sed_cmds"; then
3581 ac_sed_cmds=cat
3585 cat >> $CONFIG_STATUS <<EOF
3587 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3589 cat >> $CONFIG_STATUS <<\EOF
3590 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3592 case "$ac_file" in
3593 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3594 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3595 *) ac_file_in="${ac_file}.in" ;;
3596 esac
3598 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3600 # Remove last slash and all that follows it. Not all systems have dirname.
3601 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3602 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3603 # The file is in a subdirectory.
3604 test ! -d "$ac_dir" && mkdir "$ac_dir"
3605 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3606 # A "../" for each directory in $ac_dir_suffix.
3607 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3608 else
3609 ac_dir_suffix= ac_dots=
3612 case "$ac_given_srcdir" in
3613 .) srcdir=.
3614 if test -z "$ac_dots"; then top_srcdir=.
3615 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3616 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3617 *) # Relative path.
3618 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3619 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3620 esac
3622 case "$ac_given_INSTALL" in
3623 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3624 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3625 esac
3627 echo creating "$ac_file"
3628 rm -f "$ac_file"
3629 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3630 case "$ac_file" in
3631 *Makefile*) ac_comsub="1i\\
3632 # $configure_input" ;;
3633 *) ac_comsub= ;;
3634 esac
3636 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3637 sed -e "$ac_comsub
3638 s%@configure_input@%$configure_input%g
3639 s%@srcdir@%$srcdir%g
3640 s%@top_srcdir@%$top_srcdir%g
3641 s%@INSTALL@%$INSTALL%g
3642 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3643 fi; done
3644 rm -f conftest.s*
3646 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3647 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3649 # ac_d sets the value in "#define NAME VALUE" lines.
3650 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3651 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3652 ac_dC='\3'
3653 ac_dD='%g'
3654 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3655 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3656 ac_uB='\([ ]\)%\1#\2define\3'
3657 ac_uC=' '
3658 ac_uD='\4%g'
3659 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3660 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3661 ac_eB='$%\1#\2define\3'
3662 ac_eC=' '
3663 ac_eD='%g'
3665 if test "${CONFIG_HEADERS+set}" != set; then
3667 cat >> $CONFIG_STATUS <<EOF
3668 CONFIG_HEADERS="config.h"
3670 cat >> $CONFIG_STATUS <<\EOF
3672 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3674 case "$ac_file" in
3675 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3676 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3677 *) ac_file_in="${ac_file}.in" ;;
3678 esac
3680 echo creating $ac_file
3682 rm -f conftest.frag conftest.in conftest.out
3683 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3684 cat $ac_file_inputs > conftest.in
3688 # Transform confdefs.h into a sed script conftest.vals that substitutes
3689 # the proper values into config.h.in to produce config.h. And first:
3690 # Protect against being on the right side of a sed subst in config.status.
3691 # Protect against being in an unquoted here document in config.status.
3692 rm -f conftest.vals
3693 cat > conftest.hdr <<\EOF
3694 s/[\\&%]/\\&/g
3695 s%[\\$`]%\\&%g
3696 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3697 s%ac_d%ac_u%gp
3698 s%ac_u%ac_e%gp
3700 sed -n -f conftest.hdr confdefs.h > conftest.vals
3701 rm -f conftest.hdr
3703 # This sed command replaces #undef with comments. This is necessary, for
3704 # example, in the case of _POSIX_SOURCE, which is predefined and required
3705 # on some systems where configure will not decide to define it.
3706 cat >> conftest.vals <<\EOF
3707 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3710 # Break up conftest.vals because some shells have a limit on
3711 # the size of here documents, and old seds have small limits too.
3713 rm -f conftest.tail
3714 while :
3716 ac_lines=`grep -c . conftest.vals`
3717 # grep -c gives empty output for an empty file on some AIX systems.
3718 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3719 # Write a limited-size here document to conftest.frag.
3720 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3721 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3722 echo 'CEOF
3723 sed -f conftest.frag conftest.in > conftest.out
3724 rm -f conftest.in
3725 mv conftest.out conftest.in
3726 ' >> $CONFIG_STATUS
3727 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3728 rm -f conftest.vals
3729 mv conftest.tail conftest.vals
3730 done
3731 rm -f conftest.vals
3733 cat >> $CONFIG_STATUS <<\EOF
3734 rm -f conftest.frag conftest.h
3735 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3736 cat conftest.in >> conftest.h
3737 rm -f conftest.in
3738 if cmp -s $ac_file conftest.h 2>/dev/null; then
3739 echo "$ac_file is unchanged"
3740 rm -f conftest.h
3741 else
3742 # Remove last slash and all that follows it. Not all systems have dirname.
3743 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3744 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3745 # The file is in a subdirectory.
3746 test ! -d "$ac_dir" && mkdir "$ac_dir"
3748 rm -f $ac_file
3749 mv conftest.h $ac_file
3751 fi; done
3755 cat >> $CONFIG_STATUS <<EOF
3756 ac_sources="`echo $libc_link_sources`"
3757 ac_dests="`echo $libc_link_dests`"
3760 cat >> $CONFIG_STATUS <<\EOF
3761 srcdir=$ac_given_srcdir
3762 while test -n "$ac_sources"; do
3763 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3764 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3766 echo "linking $srcdir/$ac_source to $ac_dest"
3768 if test ! -r $srcdir/$ac_source; then
3769 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3771 rm -f $ac_dest
3773 # Make relative symlinks.
3774 # Remove last slash and all that follows it. Not all systems have dirname.
3775 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3776 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3777 # The dest file is in a subdirectory.
3778 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3779 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3780 # A "../" for each directory in $ac_dest_dir_suffix.
3781 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3782 else
3783 ac_dest_dir_suffix= ac_dots=
3786 case "$srcdir" in
3787 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3788 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3789 esac
3791 # Make a symlink if possible; otherwise try a hard link.
3792 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3793 ln $srcdir/$ac_source $ac_dest; then :
3794 else
3795 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3797 done
3799 cat >> $CONFIG_STATUS <<EOF
3800 config_vars='$config_vars'
3802 cat >> $CONFIG_STATUS <<\EOF
3804 case $CONFIG_FILES in *config.make*)
3805 echo "$config_vars" >> config.make;;
3806 esac
3807 test -d bits || mkdir bits
3808 exit 0
3810 chmod +x $CONFIG_STATUS
3811 rm -fr confdefs* $ac_clean_files
3812 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3814 if test "$no_recursion" != yes; then
3816 # Remove --cache-file and --srcdir arguments so they do not pile up.
3817 ac_sub_configure_args=
3818 ac_prev=
3819 for ac_arg in $ac_configure_args; do
3820 if test -n "$ac_prev"; then
3821 ac_prev=
3822 continue
3824 case "$ac_arg" in
3825 -cache-file | --cache-file | --cache-fil | --cache-fi \
3826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3827 ac_prev=cache_file ;;
3828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3831 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3832 ac_prev=srcdir ;;
3833 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3835 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3836 esac
3837 done
3839 for ac_config_dir in $add_ons; do
3841 # Do not complain, so a configure script can configure whichever
3842 # parts of a large source tree are present.
3843 if test ! -d $srcdir/$ac_config_dir; then
3844 continue
3847 echo configuring in $ac_config_dir
3849 case "$srcdir" in
3850 .) ;;
3852 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3853 else
3854 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3857 esac
3859 ac_popdir=`pwd`
3860 cd $ac_config_dir
3862 # A "../" for each directory in /$ac_config_dir.
3863 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3865 case "$srcdir" in
3866 .) # No --srcdir option. We are building in place.
3867 ac_sub_srcdir=$srcdir ;;
3868 /*) # Absolute path.
3869 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3870 *) # Relative path.
3871 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3872 esac
3874 # Check for guested configure; otherwise get Cygnus style configure.
3875 if test -f $ac_sub_srcdir/configure; then
3876 ac_sub_configure=$ac_sub_srcdir/configure
3877 elif test -f $ac_sub_srcdir/configure.in; then
3878 ac_sub_configure=$ac_configure
3879 else
3880 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3881 ac_sub_configure=
3884 # The recursion is here.
3885 if test -n "$ac_sub_configure"; then
3887 # Make the cache file name correct relative to the subdirectory.
3888 case "$cache_file" in
3889 /*) ac_sub_cache_file=$cache_file ;;
3890 *) # Relative path.
3891 ac_sub_cache_file="$ac_dots$cache_file" ;;
3892 esac
3893 case "$ac_given_INSTALL" in
3894 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3895 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3896 esac
3898 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3899 # The eval makes quoting arguments work.
3900 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3901 then :
3902 else
3903 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3907 cd $ac_popdir
3908 done