3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.14.1
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
30 --with-gd=DIR find libgd include dir and library with prefix DIR"
32 --with-gd-include=DIR find libgd include files in DIR"
34 --with-gd-lib=DIR find libgd library files in DIR"
36 --with-fp if using floating-point hardware [default=yes]"
38 --with-binutils=PATH specify location of binutils (as and ld)"
40 --with-elf if using the ELF object format"
42 --without-cvs if CVS should not be used"
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
48 --enable-libio build in GNU libio instead of GNU stdio"
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
55 --enable-profile build profiled library [default=yes]"
57 --enable-omitfp build undebuggable optimized library [default=no]"
59 --enable-bounded build with runtime bounds checking [default=no]"
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
64 --enable-add-ons[=DIR1,DIR2]...
65 configure and build add-ons in DIR1,DIR2,...
66 search for add-ons if no parameter given"
68 --enable-static-nss build static NSS modules [default=no]"
70 --disable-force-install don't force installation of files from this package,
71 even if they are older than the installed files"
73 --enable-kernel=VERSION compile for compatibility with kernel not older
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file
=.
/config.cache
89 program_transform_name
=s
,x
,x
,
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.
113 SHELL
=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
139 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
140 bindir
="$ac_optarg" ;;
142 -build |
--build |
--buil |
--bui |
--bu)
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)
156 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
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.
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.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
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
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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"
250 -host |
--host |
--hos |
--ho)
252 -host=* |
--host=* |
--hos=* |
--ho=*)
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)
264 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
265 infodir
="$ac_optarg" ;;
267 -libdir |
--libdir |
--libdi |
--libd)
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)
290 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
291 mandir
="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
301 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
302 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
354 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
356 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
358 sbindir
="$ac_optarg" ;;
360 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
361 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
362 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
364 ac_prev
=sharedstatedir
;;
365 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
366 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
367 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
369 sharedstatedir
="$ac_optarg" ;;
371 -site |
--site |
--sit)
373 -site=* |
--site=* |
--sit=*)
376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
391 target
="$ac_optarg" ;;
393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
396 -version |
--version |
--versio |
--versi |
--vers)
397 echo "configure generated by autoconf version 2.14.1"
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'`
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" ;;
423 # Obsolete; use --with-x.
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; }
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:
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
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
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" ;;
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.
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.
522 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
525 if test ! -r $srcdir/$ac_unique_file; then
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; }
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"
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"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
557 test -f "$cache_file" && .
$cache_file
559 echo "creating cache $cache_file"
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
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
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`
595 for ac_dir
in scripts
$srcdir/scripts
; do
596 if test -f $ac_dir/install-sh
; then
598 ac_install_sh
="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh
; then
602 ac_install_sh
="$ac_aux_dir/install.sh -c"
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
="$SHELL $ac_aux_dir/config.guess"
610 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
611 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
614 # This will get text that should go into config.make.
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
622 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
624 *) config_vars
="$config_vars
625 gmp-srcdir = $withval" ;;
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
636 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
639 config_vars
="$config_vars
640 gettext-srcdir = $withval" ;;
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
651 *) libgd_include
="-I$withval/include"
652 libgd_ldflags
="-L$withval/lib" ;;
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
662 *) libgd_include
="-I$withval" ;;
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
672 *) libgd_ldflags
="-L$withval" ;;
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
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
703 # Check whether --with-elf or --without-elf was given.
704 if test "${with_elf+set}" = set; then
711 # Check whether --with-cvs or --without-cvs was given.
712 if test "${with_cvs+set}" = set; then
721 # Check whether --with-headers or --without-headers was given.
722 if test "${with_headers+set}" = set; then
723 withval
="$with_headers"
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
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
753 # Check whether --enable-shared or --disable-shared was given.
754 if test "${enable_shared+set}" = set; then
755 enableval
="$enable_shared"
761 # Check whether --enable-profile or --disable-profile was given.
762 if test "${enable_profile+set}" = set; then
763 enableval
="$enable_profile"
769 # Check whether --enable-omitfp or --disable-omitfp was given.
770 if test "${enable_omitfp+set}" = set; then
771 enableval
="$enable_omitfp"
777 # Check whether --enable-bounded or --disable-bounded was given.
778 if test "${enable_bounded+set}" = set; then
779 enableval
="$enable_bounded"
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
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"
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'`;;
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/"
816 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
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
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
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.
856 if test "$minimum_kernel" = current
; then
857 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
862 echo $ac_n "checking host system type""... $ac_c" 1>&6
863 echo "configure:864: checking host system type" >&5
864 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
866 # Make sure we can run config.sub.
867 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
868 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
871 ac_cv_host_alias
=$host
872 case "$ac_cv_host_alias" in
876 if ac_cv_host_alias
=`$ac_config_guess`; then :
877 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
879 *) ac_cv_host_alias
=$nonopt ;;
883 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
884 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
888 echo $ac_n "(cached) $ac_c" 1>&6
891 echo "$ac_t""$ac_cv_host" 1>&6
894 host_alias
=$ac_cv_host_alias
895 host_cpu
=$ac_cv_host_cpu
896 host_vendor
=$ac_cv_host_vendor
897 host_os
=$ac_cv_host_os
903 # The way shlib-versions is used to generate soversions.mk uses a
904 # fairly simplistic model for name recognition that can't distinguish
905 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
906 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
907 # tell. This doesn't get used much beyond that, so it's fairly safe.
912 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
916 # We keep the original values in `$config_*' and never modify them, so we
917 # can write them unchanged into config.make. Everything else uses
918 # $machine, $vendor, and $os, and changes them whenever convenient.
919 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
921 # Some configurations imply other options.
923 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
924 # These systems always use GNU tools.
925 gnu_ld
=yes gnu_as
=yes ;;
928 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
929 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
931 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
932 # These systems (almost) always use the ELF format.
937 machine
=$config_machine
938 vendor
=$config_vendor
942 ### I put this here to prevent those annoying emails from people who cannot
943 ### read and try to compile glibc on unsupported platforms. --drepper
945 ### By using the undocumented --enable-hacker-mode option for configure
946 ### one can skip this test to make the configuration not fail for unsupported
949 if test -z "$enable_hacker_mode"; then
950 case "$machine-$host_os" in
951 *-linux* |
*-gnu* | arm
*-none*)
954 echo "*** The GNU C library is currently not available for this platform."
955 echo "*** So far nobody cared to port it and if there is no volunteer it"
956 echo "*** might never happen. So, if you have interest to see glibc on"
957 echo "*** this platform visit"
958 echo "*** http://www.gnu.org/software/libc/porting.html"
959 echo "*** and join the group of porters"
965 # Expand the configuration machine name into a subdirectory by architecture
966 # type and particular chip.
968 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
969 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
970 arm
*) base_machine
=arm machine
=arm
/$machine ;;
971 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
972 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
973 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
974 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
975 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
976 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
977 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
978 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
979 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
980 mips
*) base_machine
=mips
982 IP22
) machine
=mips
/mips3
;;
983 *) machine
=mips
/$machine ;;
986 base_machine
=sparc machine
=sparc
/sparc32
;;
987 sparcv8 | supersparc | hypersparc
)
988 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
989 sparcv8plus | sparcv8plusa | sparcv9
)
990 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
991 sparc64 | ultrasparc
)
992 base_machine
=sparc machine
=sparc
/sparc64
;;
996 if test "$base_machine" = "i386"; then
997 cat >> confdefs.h
<<\EOF
998 #define USE_REGPARMS 1
1003 # Compute the list of sysdep directories for this configuration.
1004 # This can take a while to compute.
1005 sysdep_dir
=$srcdir/sysdeps
1006 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1007 echo "configure:1008: checking sysdep dirs" >&5
1008 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1009 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1013 base_os
=mach
/hurd
;;
1014 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
1015 base_os
=unix
/bsd
/bsd4.4
;;
1016 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
1018 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
1019 base_os
=unix
/sysv
;;
1021 base_os
=unix
/sysv
/irix
6/$os ;;
1023 base_os
=unix
/sysv
/sysv4
;;
1025 base_os
=unix
/sysv
/hpux
/$os ;;
1027 base_os
=standalone
;;
1032 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1035 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1039 o
=`echo $tail | sed 's/[0-9]*$//'`
1040 if test $o != $tail; then
1043 # For linux-gnu, try linux-gnu, then linux.
1044 o
=`echo $tail | sed 's/-.*$//'`
1045 if test $o != $tail; then
1049 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1052 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1058 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1061 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1063 # Prepend the machine's FPU directory unless --without-fp.
1064 if test "$with_fp" = yes; then
1065 mach
="$mach /$1/fpu"
1072 # Find what sysdep directories exist.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1075 for d
in $add_ons_pfx ''; do
1076 for b
in $base ''; do
1077 for m0
in $mach ''; do
1078 for v
in /$vendor ''; do
1079 test "$v" = / && continue
1080 for o
in /$ostry ''; do
1081 test "$o" = / && continue
1082 for m
in $mach ''; do
1083 if test "$m0$b$v$o$m"; then
1084 try
="${d}sysdeps$m0$b$v$o$m"
1085 test -n "$enable_debug_configure" &&
1086 echo "$0 DEBUG: try $try" >&2
1087 if test -d $srcdir/$try; then
1088 sysnames
="$sysnames $try"
1089 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1090 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1101 if test -z "$os_used" && test "$os" != none
; then
1102 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1104 if test -z "$machine_used" && test "$machine" != none
; then
1105 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1108 # We have now validated the configuration.
1111 # If using ELF, look for an `elf' subdirectory of each machine directory.
1112 # We prepend these rather than inserting them whereever the machine appears
1113 # because things specified by the machine's ELF ABI should override
1114 # OS-specific things, and should always be the same for any OS on the
1115 # machine (otherwise what's the point of an ABI?).
1116 if test "$elf" = yes; then
1118 for d
in $add_ons_pfx ''; do
1120 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1121 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1125 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1129 # Expand the list of system names into a full list of directories
1130 # from each element's parent name and Implies file (if present).
1133 while test $# -gt 0; do
1137 case " $names " in *" $name "*)
1138 # Already in the list.
1142 # Report each name as we discover it, so there is no long pause in output.
1143 echo $ac_n "$name $ac_c" >&6
1145 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1149 *) xsrcdir
=$srcdir/ ;;
1151 test -n "$enable_debug_configure" &&
1152 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1154 if test -f $xsrcdir$name/Implies
; then
1155 # Collect more names from the `Implies' file (removing comments).
1156 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1158 for x
in $implied_candidate; do
1159 if test -d $xsrcdir$name_base/$x; then
1160 implied
="$implied $name_base/$x";
1162 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1169 # Add NAME to the list of names.
1170 names
="$names $name"
1172 # Find the parent of NAME, using the empty string if it has none.
1173 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1175 # Add the names implied by NAME, and NAME's parent (if it has one), to
1176 # the list of names to be processed (the argument list). We prepend the
1177 # implied names to the list and append the parent. We want implied
1178 # directories to come before further directories inferred from the
1179 # configuration components; this ensures that for sysv4, unix/common
1180 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1182 sysnames
="`echo $implied $* $parent`"
1183 test -n "$sysnames" && set $sysnames
1186 # Add the default directories.
1187 default_sysnames
=sysdeps
/generic
1188 if test "$elf" = yes; then
1189 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1191 sysnames
="$names $default_sysnames"
1193 # The other names were emitted during the scan.
1194 echo "$ac_t""$default_sysnames" 1>&6
1199 # Find a good install program. We prefer a C program (faster),
1200 # so one script is as good as another. But avoid the broken or
1201 # incompatible versions:
1202 # SysV /etc/install, /usr/sbin/install
1203 # SunOS /usr/etc/install
1204 # IRIX /sbin/install
1206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1209 # ./install, which can be erroneously created by make from ./install.sh.
1210 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1211 echo "configure:1212: checking for a BSD compatible install" >&5
1212 if test -z "$INSTALL"; then
1213 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1217 for ac_dir
in $PATH; do
1218 # Account for people who put trailing slashes in PATH elements.
1220 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1222 # OSF1 and SCO ODT 3.0 have their own names for install.
1223 # Don't use installbsd from OSF since it installs stuff as root
1225 for ac_prog
in ginstall scoinst
install; do
1226 if test -f $ac_dir/$ac_prog; then
1227 if test $ac_prog = install &&
1228 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1229 # AIX install. It has an incompatible calling convention.
1231 elif test $ac_prog = install &&
1232 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1233 # program-specific install script used by HP pwplus--don't use.
1236 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1247 if test "${ac_cv_path_install+set}" = set; then
1248 INSTALL
="$ac_cv_path_install"
1250 # As a last resort, use the slow shell script. We don't cache a
1251 # path for INSTALL within a source directory, because that will
1252 # break other packages using the cache if that directory is
1253 # removed, or if the path is relative.
1254 INSTALL
="$ac_install_sh"
1257 echo "$ac_t""$INSTALL" 1>&6
1259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1260 # It thinks the first close brace ends the variable substitution.
1261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1265 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1267 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1268 # The makefiles need to use a different form to find it in $srcdir.
1269 INSTALL
='\$(..)./scripts/install-sh -c'
1271 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether ln -s works" >&5
1273 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1277 if ln -s X conftestdata
2>/dev
/null
1280 ac_cv_prog_LN_S
="ln -s"
1285 LN_S
="$ac_cv_prog_LN_S"
1286 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1287 echo "$ac_t""yes" 1>&6
1289 echo "$ac_t""no" 1>&6
1293 # These programs are version sensitive.
1295 echo $ac_n "checking build system type""... $ac_c" 1>&6
1296 echo "configure:1297: checking build system type" >&5
1297 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1299 # Make sure we can run config.sub.
1300 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1301 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1304 ac_cv_build_alias
=$build
1305 case "$ac_cv_build_alias" in
1309 ac_cv_build_alias
=$host_alias ;;
1311 *) ac_cv_build_alias
=$nonopt ;;
1315 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1316 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo $ac_n "(cached) $ac_c" 1>&6
1323 echo "$ac_t""$ac_cv_build" 1>&6
1326 build_alias
=$ac_cv_build_alias
1327 build_cpu
=$ac_cv_build_cpu
1328 build_vendor
=$ac_cv_build_vendor
1329 build_os
=$ac_cv_build_os
1334 if test $host != $build; then
1335 ac_tool_prefix
=${host_alias}-
1340 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1342 # Extract the first word of "$ac_prog", so it can be a program name with args.
1343 set dummy
$ac_prog; ac_word
=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$CC"; then
1350 ac_cv_prog_CC
="$CC" # Let the user override the test.
1352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1354 for ac_dir
in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir
=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_CC
="$ac_prog"
1365 if test -n "$CC"; then
1366 echo "$ac_t""$CC" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 test -n "$CC" && break
1374 if test -z "$CC"; then
1377 # Found it, now check the version.
1378 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1379 echo "configure:1380: checking version of $CC" >&5
1380 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1381 case $ac_prog_version in
1382 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1383 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])
1384 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1385 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1388 echo "$ac_t""$ac_prog_version" 1>&6
1390 if test $ac_verc_fail = yes; then
1394 for ac_prog
in gnumake gmake
make
1396 # Extract the first word of "$ac_prog", so it can be a program name with args.
1397 set dummy
$ac_prog; ac_word
=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"\${ac_cv_prog_MAKE+set}\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$MAKE"; then
1404 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1406 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1408 for ac_dir
in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir
=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_MAKE
="$ac_prog"
1418 MAKE
="$ac_cv_prog_MAKE"
1419 if test -n "$MAKE"; then
1420 echo "$ac_t""$MAKE" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 test -n "$MAKE" && break
1428 if test -z "$MAKE"; then
1431 # Found it, now check the version.
1432 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1433 echo "configure:1434: checking version of $MAKE" >&5
1434 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1435 case $ac_prog_version in
1436 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1437 3.75 |
3.76.
[1-9]* |
3.7[789]* |
3.
[89]*)
1438 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1439 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1442 echo "$ac_t""$ac_prog_version" 1>&6
1444 if test $ac_verc_fail = yes; then
1449 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1451 # Extract the first word of "$ac_prog", so it can be a program name with args.
1452 set dummy
$ac_prog; ac_word
=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"\${ac_cv_prog_MSGFMT+set}\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 if test -n "$MSGFMT"; then
1459 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1461 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1463 for ac_dir
in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_MSGFMT
="$ac_prog"
1473 MSGFMT
="$ac_cv_prog_MSGFMT"
1474 if test -n "$MSGFMT"; then
1475 echo "$ac_t""$MSGFMT" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 test -n "$MSGFMT" && break
1483 if test -z "$MSGFMT"; then
1486 # Found it, now check the version.
1487 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1488 echo "configure:1489: checking version of $MSGFMT" >&5
1489 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1490 case $ac_prog_version in
1491 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1492 0.
[1-9][0-9].
* |
[1-9].
*)
1493 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1494 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1497 echo "$ac_t""$ac_prog_version" 1>&6
1499 if test $ac_verc_fail = yes; then
1500 MSGFMT
=: aux_missing
=t
1503 for ac_prog
in makeinfo
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy
$ac_prog; ac_word
=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if test -n "$MAKEINFO"; then
1513 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1515 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1517 for ac_dir
in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir
=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_MAKEINFO
="$ac_prog"
1527 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1528 if test -n "$MAKEINFO"; then
1529 echo "$ac_t""$MAKEINFO" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 test -n "$MAKEINFO" && break
1537 if test -z "$MAKEINFO"; then
1540 # Found it, now check the version.
1541 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1542 echo "configure:1543: checking version of $MAKEINFO" >&5
1543 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1544 case $ac_prog_version in
1545 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1546 3.1[1-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
1547 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1548 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1551 echo "$ac_t""$ac_prog_version" 1>&6
1553 if test $ac_verc_fail = yes; then
1554 MAKEINFO
=: aux_missing
=t
1558 if test -n "$critic_missing"; then
1559 { echo "configure: error:
1560 *** Some critical program is missing or too old.
1561 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1564 test -n "$aux_missing" && echo "configure: warning:
1565 *** An auxiliary program is missing or too old;
1566 *** some features will be disabled.
1567 *** Check the INSTALL file for required versions." 1>&2
1569 # glibcbug.in wants to know the compiler version.
1570 CCVERSION
=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1574 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1576 if eval "test \"\${ac_cv_prog_cc_works+set}\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1582 ac_cpp
='$CPP $CPPFLAGS'
1583 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1584 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1585 cross_compiling
=$ac_cv_prog_cc_cross
1587 cat > conftest.
$ac_ext << EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1594 if { (eval echo configure
:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1595 ac_cv_prog_cc_works
=yes
1596 # If we can't run a trivial program, we are probably using a cross compiler.
1597 if (.
/conftest
; exit) 2>/dev
/null
; then
1598 ac_cv_prog_cc_cross
=no
1600 ac_cv_prog_cc_cross
=yes
1603 echo "configure: failed program was:" >&5
1604 cat conftest.
$ac_ext >&5
1605 ac_cv_prog_cc_works
=no
1609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1610 ac_cpp
='$CPP $CPPFLAGS'
1611 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1612 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1613 cross_compiling
=$ac_cv_prog_cc_cross
1617 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1618 if test $ac_cv_prog_cc_works = no
; then
1620 ac_cv_prog_cc_cross
=yes
1624 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1626 if eval "test \"\${ac_cv_prog_cc_cross+set}\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1632 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1634 cross_compiling
=$ac_cv_prog_cc_cross
1636 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether we are using GNU C" >&5
1638 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 cat > conftest.c
<<EOF
1646 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1653 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1654 if test $ac_cv_prog_gcc != yes; then
1655 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1659 echo $ac_n "checking build system type""... $ac_c" 1>&6
1660 echo "configure:1661: checking build system type" >&5
1661 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1663 # Make sure we can run config.sub.
1664 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1665 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1668 ac_cv_build_alias
=$build
1669 case "$ac_cv_build_alias" in
1673 ac_cv_build_alias
=$host_alias ;;
1675 *) ac_cv_build_alias
=$nonopt ;;
1679 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1680 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 echo $ac_n "(cached) $ac_c" 1>&6
1687 echo "$ac_t""$ac_cv_build" 1>&6
1690 build_alias
=$ac_cv_build_alias
1691 build_cpu
=$ac_cv_build_cpu
1692 build_vendor
=$ac_cv_build_vendor
1693 build_os
=$ac_cv_build_os
1698 if test $host != $build; then
1699 for ac_prog
in gcc cc
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy
$ac_prog; ac_word
=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"\${ac_cv_prog_BUILD_CC+set}\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 if test -n "$BUILD_CC"; then
1709 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1713 for ac_dir
in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir
=.
1715 if test -f $ac_dir/$ac_word; then
1716 ac_cv_prog_BUILD_CC
="$ac_prog"
1723 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1724 if test -n "$BUILD_CC"; then
1725 echo "$ac_t""$BUILD_CC" 1>&6
1727 echo "$ac_t""no" 1>&6
1730 test -n "$BUILD_CC" && break
1735 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1736 echo "configure:1737: checking how to run the C preprocessor" >&5
1737 # On Suns, sometimes $CPP names a directory.
1738 if test -n "$CPP" && test -d "$CPP"; then
1741 if test -z "$CPP"; then
1742 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 # This must be in double quotes, not single quotes, because CPP may get
1746 # substituted into the Makefile and "${CC-cc}" will confuse make.
1748 # On the NeXT, cc -E runs the code through the compiler's parser,
1749 # not just through cpp.
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1757 { (eval echo configure
:1758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1759 if test -z "$ac_err"; then
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1766 CPP
="${CC-cc} -E -traditional-cpp"
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1773 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1774 { (eval echo configure
:1775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1775 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1776 if test -z "$ac_err"; then
1780 echo "configure: failed program was:" >&5
1781 cat conftest.
$ac_ext >&5
1783 CPP
="${CC-cc} -nologo -E"
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1790 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1791 { (eval echo configure
:1792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1792 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1793 if test -z "$ac_err"; then
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1807 ac_cv_prog_CPP
="$CPP"
1809 CPP
="$ac_cv_prog_CPP"
1811 ac_cv_prog_CPP
="$CPP"
1813 echo "$ac_t""$CPP" 1>&6
1815 # Was a --with-binutils option given?
1816 if test -n "$path_binutils"; then
1817 # Make absolute; ensure a single trailing slash.
1818 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1819 CC
="$CC -B$path_binutils"
1821 AS
=`$CC -print-prog-name=as`
1822 LD
=`$CC -print-prog-name=ld`
1823 AR
=`$CC -print-prog-name=ar`
1826 # ranlib has to be treated a bit differently since it might not exist at all.
1827 RANLIB
=`$CC -print-prog-name=ranlib`
1828 if test $RANLIB = ranlib
; then
1829 # This extra check has to happen since gcc simply echos the parameter in
1830 # case it cannot find the value in its own directories.
1831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1832 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1835 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 if test -n "$RANLIB"; then
1839 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 for ac_dir
in $ac_dummy; do
1844 test -z "$ac_dir" && ac_dir
=.
1845 if test -f $ac_dir/$ac_word; then
1846 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1853 RANLIB
="$ac_cv_prog_RANLIB"
1854 if test -n "$RANLIB"; then
1855 echo "$ac_t""$RANLIB" 1>&6
1857 echo "$ac_t""no" 1>&6
1861 if test -z "$ac_cv_prog_RANLIB"; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "ranlib", so it can be a program name with args.
1864 set dummy ranlib
; ac_word
=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$RANLIB"; then
1871 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1875 for ac_dir
in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir
=.
1877 if test -f $ac_dir/$ac_word; then
1878 ac_cv_prog_RANLIB
="ranlib"
1883 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1886 RANLIB
="$ac_cv_prog_RANLIB"
1887 if test -n "$RANLIB"; then
1888 echo "$ac_t""$RANLIB" 1>&6
1890 echo "$ac_t""no" 1>&6
1901 # Determine whether we are using GNU binutils.
1902 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether $AS is GNU as" >&5
1904 if eval "test \"\${libc_cv_prog_as_gnu+set}\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 # Most GNU programs take a -v and spit out some text including
1908 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1909 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1910 libc_cv_prog_as_gnu
=yes
1912 libc_cv_prog_as_gnu
=no
1917 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1919 gnu_as
=$libc_cv_prog_as_gnu
1921 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1922 echo "configure:1923: checking whether $LD is GNU ld" >&5
1923 if eval "test \"\${libc_cv_prog_ld_gnu+set}\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 # Most GNU programs take a -v and spit out some text including
1927 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1928 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1929 libc_cv_prog_ld_gnu
=yes
1931 libc_cv_prog_ld_gnu
=no
1936 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1937 gnu_ld
=$libc_cv_prog_ld_gnu
1939 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1940 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"\${ac_cv_prog_MIG+set}\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 if test -n "$MIG"; then
1947 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
1949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1951 for ac_dir
in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir
=.
1953 if test -f $ac_dir/$ac_word; then
1954 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
1959 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
1962 MIG
="$ac_cv_prog_MIG"
1963 if test -n "$MIG"; then
1964 echo "$ac_t""$MIG" 1>&6
1966 echo "$ac_t""no" 1>&6
1972 # if using special system headers, find out the compiler's sekrit
1973 # header directory and add that to the list. NOTE: Only does the right
1974 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1975 if test -n "$sysheaders"; then
1976 ccheaders
=`$CC -print-file-name=include`
1977 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1981 # check if ranlib is necessary
1982 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1983 echo "configure:1984: checking whether ranlib is necessary" >&5
1984 if eval "test \"\${libc_cv_ranlib_necessary+set}\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.c
<<EOF
1992 $CC $CFLAGS -c conftest.c
1993 $AR cr conftest.a conftest.c
1994 cp conftest.a conftest2.a
1996 if cmp -s conftest.a conftest2.a
; then
1997 libc_cv_ranlib_necessary
=no
1999 libc_cv_ranlib_necessary
=yes
2004 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2005 if test "$libc_cv_ranlib_necessary" = no
; then
2009 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2010 # since this would lead to problems installing/building glibc.
2011 # LD_LIBRARY_PATH contains the current directory if one of the following
2013 # - one of the terminals (":" and ";") is the first or last sign
2014 # - two terminals occur directly after each other
2015 # - the path contains an element with a dot in it
2016 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2017 echo "configure:2018: checking LD_LIBRARY_PATH variable" >&5
2018 case ${LD_LIBRARY_PATH} in
2019 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
2020 ld_library_path_setting
="contains current directory"
2023 ld_library_path_setting
="ok"
2026 echo "$ac_t""$ld_library_path_setting" 1>&6
2027 if test "$ld_library_path_setting" != "ok"; then
2028 { echo "configure: error:
2029 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2030 *** building glibc. Please change the environment variable
2031 *** and run configure again." 1>&2; exit 1; }
2034 # Extract the first word of "bash", so it can be a program name with args.
2035 set dummy bash
; ac_word
=$2
2036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_word" >&5
2038 if eval "test \"\${ac_cv_path_BASH+set}\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2043 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
2046 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
2049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2051 for ac_dir
in $ac_dummy; do
2052 test -z "$ac_dir" && ac_dir
=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_path_BASH
="$ac_dir/$ac_word"
2059 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2063 BASH
="$ac_cv_path_BASH"
2064 if test -n "$BASH"; then
2065 echo "$ac_t""$BASH" 1>&6
2067 echo "$ac_t""no" 1>&6
2070 if test "$BASH" != no
&&
2071 $BASH -c 'test "$BASH_VERSINFO" \
2072 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2073 libc_cv_have_bash2
=yes
2075 libc_cv_have_bash2
=no
2079 if test "$BASH" = no
; then
2080 # Extract the first word of "ksh", so it can be a program name with args.
2081 set dummy ksh
; ac_word
=$2
2082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_word" >&5
2084 if eval "test \"\${ac_cv_path_KSH+set}\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2089 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2092 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2097 for ac_dir
in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir
=.
2099 if test -f $ac_dir/$ac_word; then
2100 ac_cv_path_KSH
="$ac_dir/$ac_word"
2105 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2109 KSH
="$ac_cv_path_KSH"
2110 if test -n "$KSH"; then
2111 echo "$ac_t""$KSH" 1>&6
2113 echo "$ac_t""no" 1>&6
2116 if test "$KSH" = no
; then
2119 libc_cv_have_ksh
=yes
2124 libc_cv_have_ksh
=yes
2128 for ac_prog
in mawk gawk nawk
awk
2130 # Extract the first word of "$ac_prog", so it can be a program name with args.
2131 set dummy
$ac_prog; ac_word
=$2
2132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_word" >&5
2134 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 if test -n "$AWK"; then
2138 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2142 for ac_dir
in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir
=.
2144 if test -f $ac_dir/$ac_word; then
2145 ac_cv_prog_AWK
="$ac_prog"
2152 AWK
="$ac_cv_prog_AWK"
2153 if test -n "$AWK"; then
2154 echo "$ac_t""$AWK" 1>&6
2156 echo "$ac_t""no" 1>&6
2159 test -n "$AWK" && break
2162 # Extract the first word of "perl", so it can be a program name with args.
2163 set dummy perl
; ac_word
=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"\${ac_cv_path_PERL+set}\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2171 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2174 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2179 for ac_dir
in $ac_dummy; do
2180 test -z "$ac_dir" && ac_dir
=.
2181 if test -f $ac_dir/$ac_word; then
2182 ac_cv_path_PERL
="$ac_dir/$ac_word"
2187 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2191 PERL
="$ac_cv_path_PERL"
2192 if test -n "$PERL"; then
2193 echo "$ac_t""$PERL" 1>&6
2195 echo "$ac_t""no" 1>&6
2199 # Extract the first word of "install-info", so it can be a program name with args.
2200 set dummy install-info
; ac_word
=$2
2201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_word" >&5
2203 if eval "test \"\${ac_cv_path_INSTALL_INFO+set}\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 case "$INSTALL_INFO" in
2208 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2211 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2215 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2216 for ac_dir
in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir
=.
2218 if test -f $ac_dir/$ac_word; then
2219 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2224 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2228 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2229 if test -n "$INSTALL_INFO"; then
2230 echo "$ac_t""$INSTALL_INFO" 1>&6
2232 echo "$ac_t""no" 1>&6
2236 if test "$INSTALL_INFO" != "no"; then
2237 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2238 echo "configure:2239: checking for old Debian install-info" >&5
2239 if eval "test \"\${libc_cv_old_debian_install_info+set}\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2243 # There is a hard ^_ on the next line. I am open to better ideas.
2245 echo 'File: dir Node: Top This is the top of the INFO tree'
2246 echo '* Menu:') >conftest.d
/dir
2247 (echo 'INFO-DIR-SECTION i-d-s works'
2248 echo 'START-INFO-DIR-ENTRY'
2249 echo '* Prog: (prog). Program.'
2250 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2251 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2253 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2254 then libc_cv_old_debian_install_info
=no
2255 else libc_cv_old_debian_install_info
=yes
2257 else libc_cv_old_debian_install_info
=no testfailed
=t
2262 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2263 if test -n "$testfailed"
2264 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2266 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2270 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2271 echo "configure:2272: checking for signed size_t type" >&5
2272 if eval "test \"\${libc_cv_signed_size_t+set}\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 echo '#include <stddef.h>
2276 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2277 if eval "$ac_cpp conftest.c 2>/dev/null" \
2278 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2279 libc_cv_signed_size_t
=no
2281 libc_cv_signed_size_t
=yes
2286 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2287 if test $libc_cv_signed_size_t = yes; then
2288 cat >> confdefs.h
<<\EOF
2289 #undef __SIZE_TYPE__
2290 #define __SIZE_TYPE__ unsigned
2294 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2295 echo "configure:2296: checking for libc-friendly stddef.h" >&5
2296 if eval "test \"\${libc_cv_friendly_stddef+set}\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.
$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #define __need_size_t
2303 #define __need_wchar_t
2308 size_t size; wchar_t wchar;
2310 #error stddef.h ignored __need_*
2312 if (&size == NULL || &wchar == NULL) abort ();
2315 if { (eval echo configure
:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 libc_cv_friendly_stddef
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 libc_cv_friendly_stddef
=no
2327 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2328 if test $libc_cv_friendly_stddef = yes; then
2329 config_vars
="$config_vars
2330 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2333 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether we need to use -P to assemble .S files" >&5
2335 if eval "test \"\${libc_cv_need_minus_P+set}\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.S
<<EOF
2339 #include "confdefs.h"
2340 /* Nothing whatsoever. */
2342 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2343 libc_cv_need_minus_P
=no
2345 libc_cv_need_minus_P
=yes
2350 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2351 if test $libc_cv_need_minus_P = yes; then
2352 config_vars
="$config_vars
2353 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2356 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2357 echo "configure:2358: checking whether .text pseudo-op must be used" >&5
2358 if eval "test \"\${libc_cv_dot_text+set}\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 cat > conftest.s
<<EOF
2365 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2366 libc_cv_dot_text
=.text
2371 if test -z "$libc_cv_dot_text"; then
2372 echo "$ac_t""no" 1>&6
2374 echo "$ac_t""yes" 1>&6
2377 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2378 echo "configure:2379: checking for assembler global-symbol directive" >&5
2379 if eval "test \"\${libc_cv_asm_global_directive+set}\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 libc_cv_asm_global_directive
=UNKNOWN
2383 for ac_globl
in .globl .global .EXPORT
; do
2384 cat > conftest.s
<<EOF
2389 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2390 libc_cv_asm_global_directive
=${ac_globl}
2393 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2397 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2398 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2399 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2401 cat >> confdefs.h
<<EOF
2402 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2407 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2408 echo "configure:2409: checking for .set assembler directive" >&5
2409 if eval "test \"\${libc_cv_asm_set_directive+set}\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.s
<<EOF
2415 .set glibc_conftest_frobozz,foo
2416 $libc_cv_asm_global_directive glibc_conftest_frobozz
2418 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2419 # (but it doesn't work), so we must do a linking check to be sure.
2420 cat > conftest1.c
<<\EOF
2421 extern int glibc_conftest_frobozz
;
2422 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2424 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2425 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2426 libc_cv_asm_set_directive
=yes
2428 libc_cv_asm_set_directive
=no
2433 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2434 if test $libc_cv_asm_set_directive = yes; then
2435 cat >> confdefs.h
<<\EOF
2436 #define HAVE_ASM_SET_DIRECTIVE 1
2441 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2442 echo "configure:2443: checking for .symver assembler directive" >&5
2443 if eval "test \"\${libc_cv_asm_symver_directive+set}\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.s
<<EOF
2449 .symver _sym,sym@VERS
2451 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2452 libc_cv_asm_symver_directive
=yes
2454 libc_cv_asm_symver_directive
=no
2459 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2460 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2461 echo "configure:2462: checking for ld --version-script" >&5
2462 if eval "test \"\${libc_cv_ld_version_script_option+set}\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test $libc_cv_asm_symver_directive = yes; then
2466 cat > conftest.s
<<EOF
2469 .symver _sym,sym@VERS
2471 cat > conftest.map
<<EOF
2480 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2481 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2482 -nostartfiles -nostdlib
2483 -Wl,--version-script,conftest.map
2484 1>&5'; { (eval echo configure
:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2486 libc_cv_ld_version_script_option
=yes
2488 libc_cv_ld_version_script_option
=no
2491 libc_cv_ld_version_script_option
=no
2494 libc_cv_ld_version_script_option
=no
2499 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2500 if test $libc_cv_asm_symver_directive = yes &&
2501 test $libc_cv_ld_version_script_option = yes &&
2502 test $enable_versioning = yes; then
2504 cat >> confdefs.h
<<\EOF
2505 #define DO_VERSIONING 1
2513 if test $VERSIONING = no
; then
2515 *** WARNING: You should not compile GNU libc without versioning. Not using
2516 *** versioning will introduce incompatibilities so that old binaries
2517 *** will not run anymore.
2518 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2520 if test $elf = yes; then
2521 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2522 echo "configure:2523: checking for .previous assembler directive" >&5
2523 if eval "test \"\${libc_cv_asm_previous_directive+set}\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 cat > conftest.s
<<EOF
2527 .section foo_section
2530 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2531 libc_cv_asm_previous_directive
=yes
2533 libc_cv_asm_previous_directive
=no
2538 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2539 if test $libc_cv_asm_previous_directive = yes; then
2540 cat >> confdefs.h
<<\EOF
2541 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2545 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2546 echo "configure:2547: checking for .popsection assembler directive" >&5
2547 if eval "test \"\${libc_cv_asm_popsection_directive+set}\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.s
<<EOF
2551 .pushsection foo_section
2554 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2555 libc_cv_asm_popsection_directive
=yes
2557 libc_cv_asm_popsection_directive
=no
2562 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2563 if test $libc_cv_asm_popsection_directive = yes; then
2564 cat >> confdefs.h
<<\EOF
2565 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2572 if test $elf != yes; then
2573 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2574 echo "configure:2575: checking for .init and .fini sections" >&5
2575 if eval "test \"\${libc_cv_have_initfini+set}\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 asm (".section .init");
2584 asm (".section .fini");
2585 asm ("${libc_cv_dot_text}");
2588 if { (eval echo configure
:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2590 libc_cv_have_initfini
=yes
2592 echo "configure: failed program was:" >&5
2593 cat conftest.
$ac_ext >&5
2595 libc_cv_have_initfini
=no
2600 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2601 if test $libc_cv_have_initfini = yes; then
2602 cat >> confdefs.h
<<\EOF
2603 #define HAVE_INITFINI 1
2611 if test $elf = yes; then
2612 libc_cv_asm_underscores
=no
2614 if test $ac_cv_prog_cc_works = yes; then
2615 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2616 echo "configure:2617: checking for _ prefix on C symbol names" >&5
2617 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 asm ("_glibc_foobar:");
2628 if { (eval echo configure
:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2630 libc_cv_asm_underscores
=yes
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 libc_cv_asm_underscores
=no
2640 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2642 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2643 echo "configure:2644: checking for _ prefix on C symbol names" >&5
2644 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 void underscore_test(void) {
2653 if { (eval echo configure
:2654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2654 if grep _underscore_test conftest
* >/dev
/null
; then
2656 libc_cv_asm_underscores
=yes
2659 libc_cv_asm_underscores
=no
2662 echo "configure: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2665 libc_cv_asm_underscores
=no
2670 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2673 if test $libc_cv_asm_underscores = no
; then
2674 cat >> confdefs.h
<<\EOF
2675 #define NO_UNDERSCORES 1
2680 if test $elf = yes; then
2681 libc_cv_weak_symbols
=yes
2684 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2685 echo "configure:2686: checking for assembler .weak directive" >&5
2686 if eval "test \"\${libc_cv_asm_weak_directive+set}\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.s
<<EOF
2691 ${libc_cv_asm_global_directive} foo
2694 .weak bar; bar = foo
2696 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2697 libc_cv_asm_weak_directive
=yes
2699 libc_cv_asm_weak_directive
=no
2704 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2706 if test $libc_cv_asm_weak_directive = no
; then
2707 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2708 echo "configure:2709: checking for assembler .weakext directive" >&5
2709 if eval "test \"\${libc_cv_asm_weakext_directive+set}\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.s
<<EOF
2714 ${libc_cv_asm_global_directive} foo
2718 ${libc_cv_asm_global_directive} baz
2721 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2722 libc_cv_asm_weakext_directive
=yes
2724 libc_cv_asm_weakext_directive
=no
2729 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2733 if test $libc_cv_asm_weak_directive = yes; then
2734 cat >> confdefs.h
<<\EOF
2735 #define HAVE_ASM_WEAK_DIRECTIVE 1
2738 elif test $libc_cv_asm_weakext_directive = yes; then
2739 cat >> confdefs.h
<<\EOF
2740 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2745 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2746 echo "configure:2747: checking for ld --no-whole-archive" >&5
2747 if eval "test \"\${libc_cv_ld_no_whole_archive+set}\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.c
<<\EOF
2755 if { ac_try
='${CC-cc} $CFLAGS
2756 -nostdlib -nostartfiles -Wl,--no-whole-archive
2757 -o conftest conftest.c 1>&5'; { (eval echo configure
:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2758 libc_cv_ld_no_whole_archive
=yes
2760 libc_cv_ld_no_whole_archive
=no
2765 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2766 if test $libc_cv_ld_no_whole_archive = yes; then
2767 no_whole_archive
=-Wl,--no-whole-archive
2770 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2771 echo "configure:2772: checking for gcc -fexceptions" >&5
2772 if eval "test \"\${libc_cv_gcc_exceptions+set}\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.c
<<\EOF
2780 if { ac_try
='${CC-cc} $CFLAGS
2781 -nostdlib -nostartfiles -fexceptions
2782 -o conftest conftest.c 1>&5'; { (eval echo configure
:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2783 libc_cv_gcc_exceptions
=yes
2785 libc_cv_gcc_exceptions
=no
2790 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2791 if test $libc_cv_gcc_exceptions = yes; then
2792 exceptions
=-fexceptions
2795 if test "$base_machine" = alpha
; then
2796 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2797 echo "configure:2798: checking for function ..ng prefix" >&5
2798 if eval "test \"\${libc_cv_gcc_alpha_ng_prefix+set}\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.c
<<\EOF
2804 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2806 libc_cv_gcc_alpha_ng_prefix
=yes
2808 libc_cv_gcc_alpha_ng_prefix
=no
2813 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2814 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2815 cat >> confdefs.h
<<\EOF
2816 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2820 cat >> confdefs.h
<<\EOF
2821 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2827 if test "$host_cpu" = powerpc
; then
2828 # Check for a bug present in at least versions 2.8.x of GCC
2829 # and versions 1.0.x of EGCS.
2830 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2831 echo "configure:2832: checking whether clobbering cr0 causes problems" >&5
2832 if eval "test \"\${libc_cv_c_asmcr0_bug+set}\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2843 if { (eval echo configure
:2844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2845 libc_cv_c_asmcr0_bug
='no'
2847 echo "configure: failed program was:" >&5
2848 cat conftest.
$ac_ext >&5
2850 libc_cv_c_asmcr0_bug
='yes'
2855 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2856 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2857 cat >> confdefs.h
<<\EOF
2858 #define BROKEN_PPC_ASM_CR0 1
2864 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2865 echo "configure:2866: checking for DWARF2 unwind info support" >&5
2866 if eval "test \"\${libc_cv_gcc_dwarf2_unwind_info+set}\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.c
<<EOF
2870 #line 2871 "configure"
2871 static char __EH_FRAME_BEGIN__;
2874 #ifdef CHECK__register_frame
2875 __register_frame (__EH_FRAME_BEGIN__);
2876 __deregister_frame (__EH_FRAME_BEGIN__);
2878 #ifdef CHECK__register_frame_info
2879 __register_frame_info (__EH_FRAME_BEGIN__);
2880 __deregister_frame_info (__EH_FRAME_BEGIN__);
2885 /* FIXME: this is fragile. */
2895 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2896 -nostdlib -nostartfiles
2897 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2898 libc_cv_gcc_dwarf2_unwind_info
=static
2900 libc_cv_gcc_dwarf2_unwind_info
=no
2902 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2903 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2904 -nostdlib -nostartfiles
2905 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2906 libc_cv_gcc_dwarf2_unwind_info
=yes
2908 libc_cv_gcc_dwarf2_unwind_info
=no
2914 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2915 case $libc_cv_gcc_dwarf2_unwind_info in
2917 cat >> confdefs.h
<<\EOF
2918 #define HAVE_DWARF2_UNWIND_INFO 1
2923 cat >> confdefs.h
<<\EOF
2924 #define HAVE_DWARF2_UNWIND_INFO 1
2927 cat >> confdefs.h
<<\EOF
2928 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2934 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2935 echo "configure:2936: checking for __builtin_expect" >&5
2936 if eval "test \"\${libc_cv_gcc_builtin_expect+set}\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.c
<<EOF
2940 #line 2941 "configure"
2943 a = __builtin_expect (a, 10);
2944 return a == 10 ? 0 : 1;
2947 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2948 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2949 libc_cv_gcc_builtin_expect
=yes
2951 libc_cv_gcc_builtin_expect
=no
2956 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2957 if test "$libc_cv_gcc_builtin_expect" = yes; then
2958 cat >> confdefs.h
<<\EOF
2959 #define HAVE_BUILTIN_EXPECT 1
2964 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
2965 echo "configure:2966: checking for local label subtraction" >&5
2966 if eval "test \"\${libc_cv_gcc_subtract_local_labels+set}\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.c
<<EOF
2970 #line 2971 "configure"
2973 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2974 void *p = &&l1 + ar[a];
2982 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2983 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2984 libc_cv_gcc_subtract_local_labels
=yes
2986 libc_cv_gcc_subtract_local_labels
=no
2991 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2992 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2993 cat >> confdefs.h
<<\EOF
2994 #define HAVE_SUBTRACT_LOCAL_LABELS 1
2999 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3000 echo "configure:3001: checking for libgd" >&5
3001 old_CFLAGS
="$CFLAGS"
3002 CFLAGS
="$CFLAGS $libgd_include"
3003 old_LDFLAGS
="$LDFLAGS"
3004 LDFLAGS
="$LDFLAGS $libgd_ldflags"
3006 LIBS
="$LIBS -lgd -lpng -lz"
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3015 if { (eval echo configure
:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3019 echo "configure: failed program was:" >&5
3020 cat conftest.
$ac_ext >&5
3025 CFLAGS
="$old_CFLAGS"
3026 LDFLAGS
="$old_LDFLAGS"
3028 echo "$ac_t""$LIBGD" 1>&6
3031 ### End of automated tests.
3032 ### Now run sysdeps configure fragments.
3034 # sysdeps configure fragments may set these with files to be linked below.
3038 # They also can set these variables.
3039 ldd_rewrite_script
=no
3041 # Iterate over all the sysdep directories we will use, running their
3042 # configure fragments, and looking for a uname implementation.
3044 for dir
in $sysnames; do
3047 *) dest
=$srcdir/$dir ;;
3049 if test -r $dest/configure
; then
3050 echo "$ac_t""running configure fragment for $dest" 1>&6
3054 if test -z "$uname"; then
3055 if test -r $dest/uname.c ||
3056 test -r $dest/uname.S ||
3057 { test -r $dest/syscalls.list
&&
3058 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
3066 # If we will use the generic uname implementation, we must figure out what
3067 # it will say by examining the system, and write the results in config-name.h.
3068 if test "$uname" = "sysdeps/generic"; then
3070 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
3071 if test $uname_sysname != $config_os; then
3072 config_release
=`echo $config_os | sed s/$uname_sysname//`
3075 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3076 echo "configure:3077: checking OS release for uname" >&5
3077 if eval "test \"\${libc_cv_uname_release+set}\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3081 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
3082 != x
$config_release; then
3083 # The configuration release is a substring of the kernel release.
3084 libc_cv_uname_release
=$kernel_release
3085 elif test x
$config_release != x
; then
3086 libc_cv_uname_release
=$config_release
3087 elif test x
$kernel_release != x
; then
3088 libc_cv_uname_release
=$kernel_release
3090 libc_cv_uname_release
=unknown
3094 echo "$ac_t""$libc_cv_uname_release" 1>&6
3095 uname_release
="$libc_cv_uname_release"
3097 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3098 echo "configure:3099: checking OS version for uname" >&5
3099 if eval "test \"\${libc_cv_uname_version+set}\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3103 if test -n "$kernel_version"; then
3104 libc_cv_uname_version
="$kernel_version"
3106 libc_cv_uname_version
=unknown
3110 echo "$ac_t""$libc_cv_uname_version" 1>&6
3111 uname_version
="$libc_cv_uname_version"
3113 config_uname
=config-name.h
:config-name.
in
3115 # For non-generic uname, we don't need to create config-name.h at all.
3119 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3120 echo "configure:3121: checking stdio selection" >&5
3123 libio
) cat >> confdefs.h
<<\EOF
3124 #define USE_IN_LIBIO 1
3127 default
) stdio
=stdio
;;
3129 echo "$ac_t""$stdio" 1>&6
3131 # Test for old glibc 2.0.x headers so that they can be removed properly
3132 # Search only in includedir.
3133 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3134 echo "configure:3135: checking for old glibc 2.0.x headers" >&5
3135 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3137 old_glibc_headers
=yes
3139 old_glibc_headers
=no
3141 echo "$ac_t""$old_glibc_headers" 1>&6
3142 if test ${old_glibc_headers} = yes; then
3143 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3144 echo "configure: warning: *** be removed." 1>&2
3156 if test $gnu_ld = yes; then
3157 cat >> confdefs.h
<<\EOF
3158 #define HAVE_GNU_LD 1
3162 if test $gnu_as = yes; then
3163 cat >> confdefs.h
<<\EOF
3164 #define HAVE_GNU_AS 1
3168 if test $elf = yes; then
3169 cat >> confdefs.h
<<\EOF
3177 if test $shared = default
; then
3178 if test $gnu_ld = yes; then
3181 # For now we do not assume shared libs are available. In future more
3182 # tests might become available.
3187 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether -fPIC is default" >&5
3189 if eval "test \"\${pic_default+set}\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.c
<<EOF
3194 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3195 # error PIC is default.
3198 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3204 echo "$ac_t""$pic_default" 1>&6
3216 *door
*) linux_doors
=yes ;;
3217 *) linux_doors
=no
;;
3221 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3224 config_makefile
=Makefile
3227 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3228 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3232 echo '*** Do NOT install this release on any production system!'
3233 echo '*** It is known to be broken and will be so for quite some time.'
3234 echo '*** Use the latest released version instead.'
3237 cat > confcache
<<\EOF
3238 # This file is a shell script that caches the results of configure
3239 # tests run on this system so they can be shared between configure
3240 # scripts and configure runs. It is not useful on other systems.
3241 # If it contains results you don't want to keep, you may remove or edit it.
3243 # By default, configure uses ./config.cache as the cache file,
3244 # creating it if it does not exist already. You can give configure
3245 # the --cache-file=FILE option to use a different cache file; that is
3246 # what configure does when it calls configure scripts in
3247 # subdirectories, so they share the cache.
3248 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3249 # config.status only pays attention to the cache file if you give it the
3250 # --recheck option to rerun configure.
3253 # The following way of writing the cache mishandles newlines in values,
3254 # but we know of no workaround that is simple, portable, and efficient.
3255 # So, don't put newlines in cache variables' values.
3256 # Ultrix sh set writes to stderr and can't be redirected directly,
3257 # and sets the high bit in the cache file unless we assign to the vars.
3259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3261 # `set' does not quote correctly, so add quotes (double-quote substitution
3262 # turns \\\\ into \\, and sed turns \\ into \).
3264 -e "s/'/'\\\\''/g" \
3265 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3268 # `set' quotes correctly as required by POSIX, so do not add quotes.
3269 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3272 if cmp -s $cache_file confcache
; then
3275 if test -w $cache_file; then
3276 echo "updating cache $cache_file"
3277 cat confcache
> $cache_file
3279 echo "not updating unwritable cache $cache_file"
3284 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3286 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3287 # Let make expand exec_prefix.
3288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3290 # Any assignment to VPATH causes Sun make to only execute
3291 # the first set of double-colon rules, so remove it if not needed.
3292 # If there is a colon in the path, we need to keep it.
3293 if test "x$srcdir" = x.
; then
3294 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3297 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3299 DEFS
=-DHAVE_CONFIG_H
3301 # Without the "./", some shells look in PATH for config.status.
3302 : ${CONFIG_STATUS=./config.status}
3304 echo creating
$CONFIG_STATUS
3305 rm -f $CONFIG_STATUS
3306 cat > $CONFIG_STATUS <<EOF
3308 # Generated automatically by configure.
3309 # Run this file to recreate the current configuration.
3310 # This directory was configured as follows,
3311 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3313 # $0 $ac_configure_args
3315 # Compiler output produced by configure, useful for debugging
3316 # configure, is in ./config.log if it exists.
3318 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3321 case "\$ac_option" in
3322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3323 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3324 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3325 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3326 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
3328 -help | --help | --hel | --he | --h)
3329 echo "\$ac_cs_usage"; exit 0 ;;
3330 *) echo "\$ac_cs_usage"; exit 1 ;;
3334 ac_given_srcdir=$srcdir
3335 ac_given_INSTALL="$INSTALL"
3337 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3339 cat >> $CONFIG_STATUS <<EOF
3341 # Protect against being on the right side of a sed subst in config.status.
3342 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3343 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3347 s%@CFLAGS@%$CFLAGS%g
3348 s%@CPPFLAGS@%$CPPFLAGS%g
3349 s%@CXXFLAGS@%$CXXFLAGS%g
3350 s%@FFLAGS@%$FFLAGS%g
3352 s%@LDFLAGS@%$LDFLAGS%g
3354 s%@exec_prefix@%$exec_prefix%g
3355 s%@prefix@%$prefix%g
3356 s%@program_transform_name@%$program_transform_name%g
3357 s%@bindir@%$bindir%g
3358 s%@sbindir@%$sbindir%g
3359 s%@libexecdir@%$libexecdir%g
3360 s%@datadir@%$datadir%g
3361 s%@sysconfdir@%$sysconfdir%g
3362 s%@sharedstatedir@%$sharedstatedir%g
3363 s%@localstatedir@%$localstatedir%g
3364 s%@libdir@%$libdir%g
3365 s%@includedir@%$includedir%g
3366 s%@oldincludedir@%$oldincludedir%g
3367 s%@infodir@%$infodir%g
3368 s%@mandir@%$mandir%g
3369 s%@with_cvs@%$with_cvs%g
3370 s%@subdirs@%$subdirs%g
3371 s%@force_install@%$force_install%g
3373 s%@host_alias@%$host_alias%g
3374 s%@host_cpu@%$host_cpu%g
3375 s%@host_vendor@%$host_vendor%g
3376 s%@host_os@%$host_os%g
3377 s%@base_machine@%$base_machine%g
3378 s%@sysnames@%$sysnames%g
3379 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3380 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3381 s%@INSTALL_DATA@%$INSTALL_DATA%g
3384 s%@build_alias@%$build_alias%g
3385 s%@build_cpu@%$build_cpu%g
3386 s%@build_vendor@%$build_vendor%g
3387 s%@build_os@%$build_os%g
3390 s%@MSGFMT@%$MSGFMT%g
3391 s%@MAKEINFO@%$MAKEINFO%g
3392 s%@CCVERSION@%$CCVERSION%g
3393 s%@cross_linkable@%$cross_linkable%g
3394 s%@BUILD_CC@%$BUILD_CC%g
3395 s%@cross_compiling@%$cross_compiling%g
3398 s%@RANLIB@%$RANLIB%g
3400 s%@SYSINCLUDES@%$SYSINCLUDES%g
3402 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3404 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3407 s%@INSTALL_INFO@%$INSTALL_INFO%g
3408 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3409 s%@VERSIONING@%$VERSIONING%g
3410 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3411 s%@no_whole_archive@%$no_whole_archive%g
3412 s%@exceptions@%$exceptions%g
3414 s%@uname_sysname@%$uname_sysname%g
3415 s%@uname_release@%$uname_release%g
3416 s%@uname_version@%$uname_version%g
3418 s%@old_glibc_headers@%$old_glibc_headers%g
3419 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3420 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3421 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3422 s%@has_ldconfig@%$has_ldconfig%g
3423 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3424 s%@gnu_ld@%$gnu_ld%g
3425 s%@gnu_as@%$gnu_as%g
3427 s%@static@%$static%g
3428 s%@shared@%$shared%g
3429 s%@pic_default@%$pic_default%g
3430 s%@profile@%$profile%g
3431 s%@omitfp@%$omitfp%g
3432 s%@bounded@%$bounded%g
3433 s%@static_nss@%$static_nss%g
3434 s%@nopic_initfini@%$nopic_initfini%g
3435 s%@DEFINES@%$DEFINES%g
3436 s%@linux_doors@%$linux_doors%g
3437 s%@VERSION@%$VERSION%g
3438 s%@RELEASE@%$RELEASE%g
3443 cat >> $CONFIG_STATUS <<\EOF
3445 # Split the substitutions into bite-sized pieces for seds with
3446 # small command number limits, like on Digital OSF/1 and HP-UX.
3447 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3448 ac_file
=1 # Number of current file.
3449 ac_beg
=1 # First line for current file.
3450 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3453 while $ac_more_lines; do
3454 if test $ac_beg -gt 1; then
3455 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3457 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3459 if test ! -s conftest.s
$ac_file; then
3461 rm -f conftest.s
$ac_file
3463 if test -z "$ac_sed_cmds"; then
3464 ac_sed_cmds
="sed -f conftest.s$ac_file"
3466 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3468 ac_file
=`expr $ac_file + 1`
3470 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3473 if test -z "$ac_sed_cmds"; then
3478 cat >> $CONFIG_STATUS <<EOF
3480 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3482 cat >> $CONFIG_STATUS <<\EOF
3483 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3486 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3487 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3488 *) ac_file_in
="${ac_file}.in" ;;
3491 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3493 # Remove last slash and all that follows it. Not all systems have dirname.
3494 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3495 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3496 # The file is in a subdirectory.
3497 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3498 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3499 # A "../" for each directory in $ac_dir_suffix.
3500 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3502 ac_dir_suffix
= ac_dots
=
3505 case "$ac_given_srcdir" in
3507 if test -z "$ac_dots"; then top_srcdir
=.
3508 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3509 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3511 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3512 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3515 case "$ac_given_INSTALL" in
3516 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3517 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3520 echo creating
"$ac_file"
3522 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3524 *Makefile
*) ac_comsub
="1i\\
3525 # $configure_input" ;;
3529 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3531 s%@configure_input@%$configure_input%g
3532 s%@srcdir@%$srcdir%g
3533 s%@top_srcdir@%$top_srcdir%g
3534 s%@INSTALL@%$INSTALL%g
3535 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3539 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3540 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3542 # ac_d sets the value in "#define NAME VALUE" lines.
3543 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3544 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3547 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3548 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3549 ac_uB
='\([ ]\)%\1#\2define\3'
3552 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3553 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3554 ac_eB
='$%\1#\2define\3'
3558 if test "${CONFIG_HEADERS+set}" != set; then
3560 cat >> $CONFIG_STATUS <<EOF
3561 CONFIG_HEADERS="config.h"
3563 cat >> $CONFIG_STATUS <<\EOF
3565 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3568 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3569 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3570 *) ac_file_in
="${ac_file}.in" ;;
3573 echo creating
$ac_file
3575 rm -f conftest.frag conftest.
in conftest.out
3576 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3577 cat $ac_file_inputs > conftest.
in
3581 # Transform confdefs.h into a sed script conftest.vals that substitutes
3582 # the proper values into config.h.in to produce config.h. And first:
3583 # Protect against being on the right side of a sed subst in config.status.
3584 # Protect against being in an unquoted here document in config.status.
3586 cat > conftest.hdr
<<\EOF
3589 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3593 sed -n -f conftest.hdr confdefs.h > conftest.vals
3596 # This sed command replaces #undef with comments. This is necessary, for
3597 # example, in the case of _POSIX_SOURCE, which is predefined and required
3598 # on some systems where configure will not decide to define it.
3599 cat >> conftest.vals <<\EOF
3600 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3603 # Break up conftest.vals because some shells have a limit on
3604 # the size of here documents, and old seds have small limits too.
3609 ac_lines=`grep -c . conftest.vals
`
3610 # grep -c gives empty output for an empty file on some AIX systems.
3611 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3612 # Write a limited-size here document to conftest.frag.
3613 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3614 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3616 sed -f conftest.frag conftest.in > conftest.out
3618 mv conftest.out conftest.in
3620 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3622 mv conftest.tail conftest.vals
3626 cat >> $CONFIG_STATUS <<\EOF
3627 rm -f conftest.frag conftest.h
3628 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3629 cat conftest.in >> conftest.h
3631 if cmp -s $ac_file conftest.h 2>/dev/null; then
3632 echo "$ac_file is unchanged"
3635 # Remove last slash and all that follows it. Not all systems have dirname.
3636 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3637 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3638 # The file is in a subdirectory.
3639 test ! -d "$ac_dir" && mkdir "$ac_dir"
3642 mv conftest.h $ac_file
3648 cat >> $CONFIG_STATUS <<EOF
3649 ac_sources="`echo $libc_link_sources`"
3650 ac_dests="`echo $libc_link_dests`"
3653 cat >> $CONFIG_STATUS <<\EOF
3654 srcdir=$ac_given_srcdir
3655 while test -n "$ac_sources"; do
3656 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3657 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3659 echo "linking $srcdir/$ac_source to $ac_dest"
3661 if test ! -r $srcdir/$ac_source; then
3662 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3666 # Make relative symlinks.
3667 # Remove last slash and all that follows it. Not all systems have dirname.
3668 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3669 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3670 # The dest file is in a subdirectory.
3671 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3672 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3673 # A "../" for each directory in $ac_dest_dir_suffix.
3674 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3676 ac_dest_dir_suffix= ac_dots=
3680 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3681 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3684 # Make a symlink if possible; otherwise try a hard link.
3685 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3686 ln $srcdir/$ac_source $ac_dest; then :
3688 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3692 cat >> $CONFIG_STATUS <<EOF
3693 config_vars='$config_vars'
3695 cat >> $CONFIG_STATUS <<\EOF
3697 case $CONFIG_FILES in *config.make*)
3698 echo "$config_vars" >> config.make;;
3700 test -d bits || mkdir bits
3703 chmod +x $CONFIG_STATUS
3704 rm -fr confdefs* $ac_clean_files
3705 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
3707 if test "$no_recursion" != yes; then
3709 # Remove --cache-file and --srcdir arguments so they do not pile up.
3710 ac_sub_configure_args=
3712 for ac_arg in $ac_configure_args; do
3713 if test -n "$ac_prev"; then
3718 -cache-file | --cache-file | --cache-fil | --cache-fi \
3719 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3720 ac_prev=cache_file ;;
3721 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3722 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3724 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3726 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3728 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3732 for ac_config_dir in $add_ons; do
3734 # Do not complain, so a configure script can configure whichever
3735 # parts of a large source tree are present.
3736 if test ! -d $srcdir/$ac_config_dir; then
3740 echo configuring in $ac_config_dir
3745 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3747 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3755 # A "../" for each directory in /$ac_config_dir.
3756 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3759 .) # No --srcdir option. We are building in place.
3760 ac_sub_srcdir=$srcdir ;;
3761 /*) # Absolute path.
3762 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3764 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3767 # Check for guested configure; otherwise get Cygnus style configure.
3768 if test -f $ac_sub_srcdir/configure; then
3769 ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
3770 elif test -f $ac_sub_srcdir/configure.in; then
3771 ac_sub_configure=$ac_configure
3773 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3777 # The recursion is here.
3778 if test -n "$ac_sub_configure"; then
3780 # Make the cache file name correct relative to the subdirectory.
3781 case "$cache_file" in
3782 /*) ac_sub_cache_file=$cache_file ;;
3784 ac_sub_cache_file="$ac_dots$cache_file" ;;
3786 case "$ac_given_INSTALL" in
3787 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3788 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3791 echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3792 # The eval makes quoting arguments work.
3793 if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3796 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }