3 # From configure.in CVSid
12 # Guess values for system-dependent variables and create Makefiles.
13 # Generated automatically using autoconf version 2.12
14 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
21 ac_default_prefix
=/usr
/local
22 # Any additions from configure.in:
24 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
26 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
28 --with-fp if using floating-point hardware [default=yes]"
30 --with-binutils=PATH specify location of binutils (as and ld)"
32 --with-elf if using the ELF object format"
34 --enable-libio build in GNU libio instead of GNU stdio"
36 --disable-sanity-checks really do not use threads (should not be used
37 except in special situations) [default=yes]"
39 --enable-static build static library [default=yes]"
41 --enable-shared build shared library [default=yes if GNU ld & ELF]"
43 --enable-profile build profiled library [default=yes]"
45 --enable-omitfp build undebuggable optimized library [default=no]"
47 --enable-bounded build with runtime bounds checking [default=no]"
49 --disable-versioning do not include versioning information in the
50 library objects [default=yes if supported]"
52 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
53 search for add-ons if no parameter given"
55 --enable-static-nss build static NSS modules [default=no]"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file
=.
/config.cache
70 program_transform_name
=s
,x
,x
,
78 bindir
='${exec_prefix}/bin'
79 sbindir
='${exec_prefix}/sbin'
80 libexecdir
='${exec_prefix}/libexec'
81 datadir
='${prefix}/share'
82 sysconfdir
='${prefix}/etc'
83 sharedstatedir
='${prefix}/com'
84 localstatedir
='${prefix}/var'
85 libdir
='${exec_prefix}/lib'
86 includedir
='${prefix}/include'
87 oldincludedir
='/usr/include'
88 infodir
='${prefix}/info'
89 mandir
='${prefix}/man'
91 # Initialize some other variables.
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
119 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
120 bindir
="$ac_optarg" ;;
122 -build |
--build |
--buil |
--bui |
--bu)
124 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
125 build
="$ac_optarg" ;;
127 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
128 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
129 ac_prev
=cache_file
;;
130 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
131 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
132 cache_file
="$ac_optarg" ;;
134 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
138 datadir
="$ac_optarg" ;;
140 -disable-* |
--disable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* |
--enable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
164 |
--exec |
--exe |
--ex)
165 ac_prev
=exec_prefix
;;
166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
168 |
--exec=* |
--exe=* |
--ex=*)
169 exec_prefix
="$ac_optarg" ;;
171 -gas |
--gas |
--ga |
--g)
172 # Obsolete; use --with-gas.
175 -help |
--help |
--hel |
--he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host |
--host |
--hos |
--ho)
232 -host=* |
--host=* |
--hos=* |
--ho=*)
235 -includedir |
--includedir |
--includedi |
--included |
--include \
236 |
--includ |
--inclu |
--incl |
--inc)
237 ac_prev
=includedir
;;
238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
240 includedir
="$ac_optarg" ;;
242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
245 infodir
="$ac_optarg" ;;
247 -libdir |
--libdir |
--libdi |
--libd)
249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
250 libdir
="$ac_optarg" ;;
252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
253 |
--libexe |
--libex |
--libe)
254 ac_prev
=libexecdir
;;
255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
256 |
--libexe=* |
--libex=* |
--libe=*)
257 libexecdir
="$ac_optarg" ;;
259 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
260 |
--localstate |
--localstat |
--localsta |
--localst \
261 |
--locals |
--local |
--loca |
--loc |
--lo)
262 ac_prev
=localstatedir
;;
263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
265 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
266 localstatedir
="$ac_optarg" ;;
268 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
270 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
271 mandir
="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
281 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
282 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
285 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
286 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
287 |
--oldin |
--oldi |
--old |
--ol |
--o)
288 ac_prev
=oldincludedir
;;
289 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
290 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
291 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
292 oldincludedir
="$ac_optarg" ;;
294 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
296 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
297 prefix
="$ac_optarg" ;;
299 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
300 |
--program-pre |
--program-pr |
--program-p)
301 ac_prev
=program_prefix
;;
302 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
303 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
304 program_prefix
="$ac_optarg" ;;
306 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
307 |
--program-suf |
--program-su |
--program-s)
308 ac_prev
=program_suffix
;;
309 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
310 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
311 program_suffix
="$ac_optarg" ;;
313 -program-transform-name |
--program-transform-name \
314 |
--program-transform-nam |
--program-transform-na \
315 |
--program-transform-n |
--program-transform- \
316 |
--program-transform |
--program-transfor \
317 |
--program-transfo |
--program-transf \
318 |
--program-trans |
--program-tran \
319 |
--progr-tra |
--program-tr |
--program-t)
320 ac_prev
=program_transform_name
;;
321 -program-transform-name=* |
--program-transform-name=* \
322 |
--program-transform-nam=* |
--program-transform-na=* \
323 |
--program-transform-n=* |
--program-transform-=* \
324 |
--program-transform=* |
--program-transfor=* \
325 |
--program-transfo=* |
--program-transf=* \
326 |
--program-trans=* |
--program-tran=* \
327 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
328 program_transform_name
="$ac_optarg" ;;
330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
331 |
-silent |
--silent |
--silen |
--sile |
--sil)
334 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
336 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
338 sbindir
="$ac_optarg" ;;
340 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
341 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
342 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
344 ac_prev
=sharedstatedir
;;
345 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
346 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
347 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
349 sharedstatedir
="$ac_optarg" ;;
351 -site |
--site |
--sit)
353 -site=* |
--site=* |
--sit=*)
356 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
358 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
359 srcdir
="$ac_optarg" ;;
361 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
362 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
363 ac_prev
=sysconfdir
;;
364 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
365 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
366 sysconfdir
="$ac_optarg" ;;
368 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
370 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
371 target
="$ac_optarg" ;;
373 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
376 -version |
--version |
--versio |
--versi |
--vers)
377 echo "configure generated by autoconf version 2.12"
381 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* |
--without-*)
394 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
407 |
--x-incl |
--x-inc |
--x-in |
--x-i)
408 ac_prev
=x_includes
;;
409 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
410 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
411 x_includes
="$ac_optarg" ;;
413 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
414 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
415 ac_prev
=x_libraries
;;
416 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
417 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
418 x_libraries
="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE
; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c) ;;
470 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
471 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
472 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest
* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file
=include
/features.h
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted
=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted
=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE
; then
523 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file
in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp
='$CPP $CPPFLAGS'
546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling
=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
559 ac_n
= ac_c
='\c' ac_t
=
565 # This will get text that should go into config.make.
568 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
569 # Check whether --with-gmp or --without-gmp was given.
570 if test "${with_gmp+set}" = set; then
573 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
575 *) config_vars
="$config_vars
576 gmp-srcdir = $withval" ;;
581 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
582 # Check whether --with-gettext or --without-gettext was given.
583 if test "${with_gettext+set}" = set; then
584 withval
="$with_gettext"
585 case "$with_gettext" in
587 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
590 config_vars
="$config_vars
591 gettext-srcdir = $withval" ;;
597 # Check whether --with-fp or --without-fp was given.
598 if test "${with_fp+set}" = set; then
605 # Check whether --with-binutils or --without-binutils was given.
606 if test "${with_binutils+set}" = set; then
607 withval
="$with_binutils"
608 path_binutils
=$withval
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
622 # Check whether --enable-libio or --disable-libio was given.
623 if test "${enable_libio+set}" = set; then
624 enableval
="$enable_libio"
625 if test $enableval = yes; then
635 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
636 if test "${enable_sanity_checks+set}" = set; then
637 enableval
="$enable_sanity_checks"
638 enable_sanity
=$enableval
644 # Check whether --enable-static or --disable-static was given.
645 if test "${enable_static+set}" = set; then
646 enableval
="$enable_static"
652 # Check whether --enable-shared or --disable-shared was given.
653 if test "${enable_shared+set}" = set; then
654 enableval
="$enable_shared"
660 # Check whether --enable-profile or --disable-profile was given.
661 if test "${enable_profile+set}" = set; then
662 enableval
="$enable_profile"
668 # Check whether --enable-omitfp or --disable-omitfp was given.
669 if test "${enable_omitfp+set}" = set; then
670 enableval
="$enable_omitfp"
676 # Check whether --enable-bounded or --disable-bounded was given.
677 if test "${enable_bounded+set}" = set; then
678 enableval
="$enable_bounded"
684 # Check whether --enable-versioning or --disable-versioning was given.
685 if test "${enable_versioning+set}" = set; then
686 enableval
="$enable_versioning"
687 enable_versioning
=$enableval
689 enable_versioning
=yes
693 # Check whether --enable-add-ons or --disable-add-ons was given.
694 if test "${enable_add_ons+set}" = set; then
695 enableval
="$enable_add_ons"
697 yes) if test "$srcdir" = "."; then
698 add_ons
=`echo */configure | sed -e 's!/configure!!g'`
700 add_ons
=`echo $srcdir/*/configure | \
701 sed -e "s!^$srcdir/!!g" -e 's!/configure!!g'`
703 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
711 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
712 if test -f $ac_dir/install-sh
; then
714 ac_install_sh
="$ac_aux_dir/install-sh -c"
716 elif test -f $ac_dir/install.sh
; then
718 ac_install_sh
="$ac_aux_dir/install.sh -c"
722 if test -z "$ac_aux_dir"; then
723 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
725 ac_config_guess
=$ac_aux_dir/config.guess
726 ac_config_sub
=$ac_aux_dir/config.sub
727 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
732 if test x
"$add_ons" != x
; then
733 for f
in $add_ons; do
734 # Test whether such a subdir really exists.
735 if test -d $srcdir/$f; then
736 add_ons_pfx
="$add_ons_pfx $f/"
738 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
743 # Check whether --enable-static-nss or --disable-static-nss was given.
744 if test "${enable_static_nss+set}" = set; then
745 enableval
="$enable_static_nss"
746 static_nss
=$enableval
751 if test x
"$static_nss" = xyes
; then
752 cat >> confdefs.h
<<\EOF
753 #define DO_STATIC_NSS 1
759 # Make sure we can run config.sub.
760 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
761 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
764 echo $ac_n "checking host system type""... $ac_c" 1>&6
765 echo "configure:766: checking host system type" >&5
768 case "$host_alias" in
772 if host_alias
=`$ac_config_guess`; then :
773 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
775 *) host_alias
=$nonopt ;;
779 host=`$ac_config_sub $host_alias`
780 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
783 echo "$ac_t""$host" 1>&6
786 # The way shlib-versions is used to generate soversions.mk uses a
787 # fairly simplistic model for name recognition that can't distinguish
788 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
789 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
790 # tell. This doesn't get used much beyond that, so it's fairly safe.
795 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
800 ### I put this here to prevent those annoying emails from people who cannot
801 ### read and try to compile glibc on unsupported platforms. --drepper
803 ### By using the undocumented --enable-hacker-mode option for configure
804 ### one can skip this test to make the configuration not fail for unsupported
807 if test -z "$enable_hacker_mode"; then
812 echo "*** The GNU C library is currently not available for this platform."
813 echo "*** So far nobody cared to port it and if there is no volunteer it"
814 echo "*** might never happen. So, if you have interest to see glibc on"
815 echo "*** this platform visit"
816 echo "*** http://www.gnu.org/software/libc/porting.html"
817 echo "*** and join the group of porters"
823 # We keep the original values in `$config_*' and never modify them, so we
824 # can write them unchanged into config.make. Everything else uses
825 # $machine, $vendor, and $os, and changes them whenever convenient.
826 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
828 # Some configurations imply other options.
830 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
831 # These systems always use GNU tools.
832 gnu_ld
=yes gnu_as
=yes ;;
835 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
836 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
838 gnu
* | linux
* | sysv4
* | solaris2
*)
839 # These systems (almost) always use the ELF format.
844 machine
=$config_machine
845 vendor
=$config_vendor
848 # Expand the configuration machine name into a subdirectory by architecture
849 # type and particular chip.
851 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
852 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
853 arm
*) base_machine
=arm machine
=arm
/$machine ;;
854 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
855 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
856 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
857 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
858 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
859 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
860 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
861 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
862 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
863 mips
*) base_machine
=mips machine
=mips
/$machine ;;
865 base_machine
=sparc machine
=sparc
/sparc32
;;
866 sparcv8 | supersparc | hypersparc
)
867 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
868 sparc64 | ultrasparc
)
869 base_machine
=sparc machine
=sparc
/sparc64
;;
873 if test "$base_machine" = "i386"; then
874 cat >> confdefs.h
<<\EOF
875 #define USE_REGPARMS 1
880 # Compute the list of sysdep directories for this configuration.
881 # This can take a while to compute.
882 sysdep_dir
=$srcdir/sysdeps
883 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
884 echo "configure:885: checking sysdep dirs" >&5
885 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
886 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
891 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
892 base_os
=unix
/bsd
/bsd4.4
;;
893 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
895 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
898 base_os
=unix
/sysv
/sysv4
;;
900 base_os
=standalone
;;
905 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
908 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
912 o
=`echo $tail | sed 's/[0-9]*$//'`
913 if test $o != $tail; then
916 # For linux-gnu, try linux-gnu, then linux.
917 o
=`echo $tail | sed 's/-.*$//'`
918 if test $o != $tail; then
922 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
925 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
931 # For sparc/sparc9, try sparc/sparc9 and then sparc.
934 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
936 # Prepend the machine's FPU directory unless --without-fp.
937 if test "$with_fp" = yes; then
945 # Find what sysdep directories exist.
947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
948 for d
in $add_ons_pfx ''; do
949 for b
in $base ''; do
950 for m0
in $mach ''; do
951 for v
in /$vendor ''; do
952 for o
in /$ostry ''; do
953 for m
in $mach ''; do
954 if test "$m0$b$v$o$m"; then
955 try
="${d}sysdeps$m0$b$v$o$m"
956 test -n "$enable_debug_configure" &&
957 echo "$0 DEBUG: try $try" >&2
960 *) dest
=$srcdir/$try ;;
962 if test -d $dest; then
963 sysnames
="$sysnames $try"
964 { test -n "$o" ||
test -n "$b"; } && os_used
=t
965 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
976 if test -z "$os_used" && test "$os" != none
; then
977 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
979 if test -z "$machine_used" && test "$machine" != none
; then
980 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
983 # We have now validated the configuration.
986 # If using ELF, look for an `elf' subdirectory of each machine directory.
987 # We prepend these rather than inserting them whereever the machine appears
988 # because things specified by the machine's ELF ABI should override
989 # OS-specific things, and should always be the same for any OS on the
990 # machine (otherwise what's the point of an ABI?).
991 if test "$elf" = yes; then
993 for d
in $add_ons_pfx ''; do
996 *) xsrcdir
=$srcdir/ ;;
999 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
1000 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1004 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1008 # Expand the list of system names into a full list of directories
1009 # from each element's parent name and Implies file (if present).
1012 while test $# -gt 0; do
1016 case " $names " in *" $name "*)
1017 # Already in the list.
1021 # Report each name as we discover it, so there is no long pause in output.
1022 echo $ac_n "$name $ac_c" >&6
1024 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1028 *) xsrcdir
=$srcdir/ ;;
1030 test -n "$enable_debug_configure" &&
1031 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1033 if test -f $xsrcdir$name/Implies
; then
1034 # Collect more names from the `Implies' file (removing comments).
1035 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1037 for x
in $implied_candidate; do
1038 if test -d $xsrcdir$name_base/$x; then
1039 implied
="$implied $name_base/$x";
1041 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1048 # Add NAME to the list of names.
1049 names
="$names $name"
1051 # Find the parent of NAME, using the empty string if it has none.
1052 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1054 # Add the names implied by NAME, and NAME's parent (if it has one), to
1055 # the list of names to be processed (the argument list). We prepend the
1056 # implied names to the list and append the parent. We want implied
1057 # directories to come before further directories inferred from the
1058 # configuration components; this ensures that for sysv4, unix/common
1059 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1061 sysnames
="`echo $implied $* $parent`"
1062 test -n "$sysnames" && set $sysnames
1065 # Add the default directories.
1066 sysnames
="$names sysdeps/generic"
1068 # The other names were emitted during the scan.
1069 echo "$ac_t""sysdeps/generic" 1>&6
1074 # Find a good install program. We prefer a C program (faster),
1075 # so one script is as good as another. But avoid the broken or
1076 # incompatible versions:
1077 # SysV /etc/install, /usr/sbin/install
1078 # SunOS /usr/etc/install
1079 # IRIX /sbin/install
1081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1083 # ./install, which can be erroneously created by make from ./install.sh.
1084 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1085 echo "configure:1086: checking for a BSD compatible install" >&5
1086 if test -z "$INSTALL"; then
1087 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1091 for ac_dir
in $PATH; do
1092 # Account for people who put trailing slashes in PATH elements.
1094 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1096 # OSF1 and SCO ODT 3.0 have their own names for install.
1097 for ac_prog
in ginstall installbsd scoinst
install; do
1098 if test -f $ac_dir/$ac_prog; then
1099 if test $ac_prog = install &&
1100 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1101 # AIX install. It has an incompatible calling convention.
1102 # OSF/1 installbsd also uses dspmsg, but is usable.
1105 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1116 if test "${ac_cv_path_install+set}" = set; then
1117 INSTALL
="$ac_cv_path_install"
1119 # As a last resort, use the slow shell script. We don't cache a
1120 # path for INSTALL within a source directory, because that will
1121 # break other packages using the cache if that directory is
1122 # removed, or if the path is relative.
1123 INSTALL
="$ac_install_sh"
1126 echo "$ac_t""$INSTALL" 1>&6
1128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1129 # It thinks the first close brace ends the variable substitution.
1130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1132 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1134 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1135 # The makefiles need to use a different form to find it in $srcdir.
1136 INSTALL
='\$(..)./install-sh -c'
1138 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1139 echo "configure:1140: checking whether ln -s works" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1144 if ln -s X conftestdata
2>/dev
/null
1147 ac_cv_prog_LN_S
="ln -s"
1152 LN_S
="$ac_cv_prog_LN_S"
1153 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1154 echo "$ac_t""yes" 1>&6
1156 echo "$ac_t""no" 1>&6
1159 for ac_prog
in msgfmt gmsgfmt
1161 # Extract the first word of "$ac_prog", so it can be a program name with args.
1162 set dummy
$ac_prog; ac_word
=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -n "$MSGFMT"; then
1169 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1172 for ac_dir
in $PATH; do
1173 test -z "$ac_dir" && ac_dir
=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_MSGFMT
="$ac_prog"
1182 MSGFMT
="$ac_cv_prog_MSGFMT"
1183 if test -n "$MSGFMT"; then
1184 echo "$ac_t""$MSGFMT" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -n "$MSGFMT" && break
1191 test -n "$MSGFMT" || MSGFMT
=":"
1193 # Extract the first word of "makeinfo", so it can be a program name with args.
1194 set dummy makeinfo
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$MAKEINFO"; then
1201 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1204 for ac_dir
in $PATH; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_MAKEINFO
="makeinfo"
1214 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1215 if test -n "$MAKEINFO"; then
1216 echo "$ac_t""$MAKEINFO" 1>&6
1218 echo "$ac_t""no" 1>&6
1221 if test "$MAKEINFO"; then
1222 if $MAKEINFO --version |
grep 'texinfo 3\.[1-9][1-9]' >/dev
/null
2>&1
1223 then : # Makeinfo 3.11 or greater, works.
1225 echo "configure: warning:
1226 *** makeinfo is too old (need version 3.11 or better).
1227 *** You should install the needed version and re-configure since otherwise
1228 *** you won't get the info pages installed." 1>&2
1233 # Extract the first word of "gcc", so it can be a program name with args.
1234 set dummy gcc
; ac_word
=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC
="$CC" # Let the user override the test.
1243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1244 for ac_dir
in $PATH; do
1245 test -z "$ac_dir" && ac_dir
=.
1246 if test -f $ac_dir/$ac_word; then
1255 if test -n "$CC"; then
1256 echo "$ac_t""$CC" 1>&6
1258 echo "$ac_t""no" 1>&6
1261 if test -z "$CC"; then
1262 # Extract the first word of "cc", so it can be a program name with args.
1263 set dummy cc
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$CC"; then
1270 ac_cv_prog_CC
="$CC" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1274 for ac_dir
in $PATH; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1277 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1278 ac_prog_rejected
=yes
1286 if test $ac_prog_rejected = yes; then
1287 # We found a bogon in the path, so make sure we never use it.
1288 set dummy
$ac_cv_prog_CC
1290 if test $# -gt 0; then
1291 # We chose a different compiler from the bogus one.
1292 # However, it has the same basename, so the bogon will be chosen
1293 # first if we set CC to just the basename; use the full file name.
1295 set dummy
"$ac_dir/$ac_word" "$@"
1303 if test -n "$CC"; then
1304 echo "$ac_t""$CC" 1>&6
1306 echo "$ac_t""no" 1>&6
1309 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1312 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1317 ac_cpp
='$CPP $CPPFLAGS'
1318 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1319 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1320 cross_compiling
=$ac_cv_prog_cc_cross
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if { (eval echo configure
:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1328 ac_cv_prog_cc_works
=yes
1329 # If we can't run a trivial program, we are probably using a cross compiler.
1330 if (.
/conftest
; exit) 2>/dev
/null
; then
1331 ac_cv_prog_cc_cross
=no
1333 ac_cv_prog_cc_cross
=yes
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1338 ac_cv_prog_cc_works
=no
1342 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1343 if test $ac_cv_prog_cc_works = no
; then
1345 ac_cv_prog_cc_cross
=yes
1349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1353 cross_compiling
=$ac_cv_prog_cc_cross
1355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.c
<<EOF
1365 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1372 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1374 if test $ac_cv_prog_gcc = yes; then
1377 cat > conftest.c
<<EOF
1378 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1382 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1383 if test -z "$CFLAGS"; then
1387 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1390 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1393 echo $ac_n "checking build system type""... $ac_c" 1>&6
1394 echo "configure:1395: checking build system type" >&5
1397 case "$build_alias" in
1400 NONE
) build_alias
=$host_alias ;;
1401 *) build_alias
=$nonopt ;;
1405 build
=`$ac_config_sub $build_alias`
1406 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1407 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1408 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$ac_t""$build" 1>&6
1411 if test $host != $build; then
1412 for ac_prog
in gcc cc
1414 # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy
$ac_prog; ac_word
=$2
1416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_word" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 if test -n "$BUILD_CC"; then
1422 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1424 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1425 for ac_dir
in $PATH; do
1426 test -z "$ac_dir" && ac_dir
=.
1427 if test -f $ac_dir/$ac_word; then
1428 ac_cv_prog_BUILD_CC
="$ac_prog"
1435 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1436 if test -n "$BUILD_CC"; then
1437 echo "$ac_t""$BUILD_CC" 1>&6
1439 echo "$ac_t""no" 1>&6
1442 test -n "$BUILD_CC" && break
1447 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1448 echo "configure:1449: checking how to run the C preprocessor" >&5
1449 # On Suns, sometimes $CPP names a directory.
1450 if test -n "$CPP" && test -d "$CPP"; then
1453 if test -z "$CPP"; then
1454 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 # This must be in double quotes, not single quotes, because CPP may get
1458 # substituted into the Makefile and "${CC-cc}" will confuse make.
1460 # On the NeXT, cc -E runs the code through the compiler's parser,
1461 # not just through cpp.
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1469 { (eval echo configure
:1470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470 ac_err
=`grep -v '^ *+' conftest.out`
1471 if test -z "$ac_err"; then
1475 echo "configure: failed program was:" >&5
1476 cat conftest.
$ac_ext >&5
1478 CPP
="${CC-cc} -E -traditional-cpp"
1479 cat > conftest.
$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1485 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1486 { (eval echo configure
:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1487 ac_err
=`grep -v '^ *+' conftest.out`
1488 if test -z "$ac_err"; then
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1500 ac_cv_prog_CPP
="$CPP"
1502 CPP
="$ac_cv_prog_CPP"
1504 ac_cv_prog_CPP
="$CPP"
1506 echo "$ac_t""$CPP" 1>&6
1508 # Was a --with-binutils option given?
1509 if test -n "$path_binutils"; then
1510 # Make absolute; ensure a single trailing slash.
1511 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1512 CC
="$CC -B$with_binutils"
1514 AS
=`$CC -print-file-name=as`
1515 LD
=`$CC -print-file-name=ld`
1517 # Determine whether we are using GNU binutils.
1518 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether $AS is GNU as" >&5
1520 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 # Most GNU programs take a -v and spit out some text including
1524 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1525 if $AS -v </dev
/null
2>&1 |
grep -q GNU
; then
1526 libc_cv_prog_as_gnu
=yes
1528 libc_cv_prog_as_gnu
=no
1532 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1534 gnu_as
=$libc_cv_prog_as_gnu
1536 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether $LD is GNU ld" >&5
1538 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 # Most GNU programs take a -v and spit out some text including
1542 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1543 if $LD -v </dev
/null
2>&1 |
grep -q GNU
; then
1544 libc_cv_prog_ld_gnu
=yes
1546 libc_cv_prog_ld_gnu
=no
1550 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1551 gnu_ld
=$libc_cv_prog_ld_gnu
1552 if test $host != $build; then
1553 ac_tool_prefix
=${host_alias}-
1558 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1559 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test -n "$AR"; then
1566 ac_cv_prog_AR
="$AR" # Let the user override the test.
1568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1569 for ac_dir
in $PATH; do
1570 test -z "$ac_dir" && ac_dir
=.
1571 if test -f $ac_dir/$ac_word; then
1572 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1577 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1581 if test -n "$AR"; then
1582 echo "$ac_t""$AR" 1>&6
1584 echo "$ac_t""no" 1>&6
1589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1590 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 if test -n "$RANLIB"; then
1597 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1600 for ac_dir
in $PATH; do
1601 test -z "$ac_dir" && ac_dir
=.
1602 if test -f $ac_dir/$ac_word; then
1603 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1610 RANLIB
="$ac_cv_prog_RANLIB"
1611 if test -n "$RANLIB"; then
1612 echo "$ac_t""$RANLIB" 1>&6
1614 echo "$ac_t""no" 1>&6
1618 if test -z "$ac_cv_prog_RANLIB"; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "ranlib", so it can be a program name with args.
1621 set dummy ranlib
; ac_word
=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$RANLIB"; then
1628 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1631 for ac_dir
in $PATH; do
1632 test -z "$ac_dir" && ac_dir
=.
1633 if test -f $ac_dir/$ac_word; then
1634 ac_cv_prog_RANLIB
="ranlib"
1639 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1642 RANLIB
="$ac_cv_prog_RANLIB"
1643 if test -n "$RANLIB"; then
1644 echo "$ac_t""$RANLIB" 1>&6
1646 echo "$ac_t""no" 1>&6
1655 # Extract the first word of "bash", so it can be a program name with args.
1656 set dummy bash
; ac_word
=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1664 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1668 for ac_dir
in $PATH; do
1669 test -z "$ac_dir" && ac_dir
=.
1670 if test -f $ac_dir/$ac_word; then
1671 ac_cv_path_BASH
="$ac_dir/$ac_word"
1676 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1680 BASH
="$ac_cv_path_BASH"
1681 if test -n "$BASH"; then
1682 echo "$ac_t""$BASH" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 if test "$BASH" != no
&&
1688 $BASH -c 'test "$BASH_VERSINFO" \
1689 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1690 libc_cv_have_bash2
=yes
1692 libc_cv_have_bash2
=no
1696 if test "$BASH" = no
; then
1697 # Extract the first word of "ksh", so it can be a program name with args.
1698 set dummy ksh
; ac_word
=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1706 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1710 for ac_dir
in $PATH; do
1711 test -z "$ac_dir" && ac_dir
=.
1712 if test -f $ac_dir/$ac_word; then
1713 ac_cv_path_KSH
="$ac_dir/$ac_word"
1718 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1722 KSH
="$ac_cv_path_KSH"
1723 if test -n "$KSH"; then
1724 echo "$ac_t""$KSH" 1>&6
1726 echo "$ac_t""no" 1>&6
1729 if test "$KSH" = no
; then
1732 libc_cv_have_ksh
=yes
1737 libc_cv_have_ksh
=yes
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy
$ac_prog; ac_word
=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1752 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1755 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1756 for ac_dir
in $PATH; do
1757 test -z "$ac_dir" && ac_dir
=.
1758 if test -f $ac_dir/$ac_word; then
1759 ac_cv_path_PERL
="$ac_dir/$ac_word"
1767 PERL
="$ac_cv_path_PERL"
1768 if test -n "$PERL"; then
1769 echo "$ac_t""$PERL" 1>&6
1771 echo "$ac_t""no" 1>&6
1774 test -n "$PERL" && break
1776 test -n "$PERL" || PERL
="no"
1780 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1781 echo "configure:1782: checking for signed size_t type" >&5
1782 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 echo '#include <stddef.h>
1786 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1787 if eval "$ac_cpp conftest.c 2>/dev/null" \
1788 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1789 libc_cv_signed_size_t
=no
1791 libc_cv_signed_size_t
=yes
1796 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1797 if test $libc_cv_signed_size_t = yes; then
1798 cat >> confdefs.h
<<\EOF
1799 #undef __SIZE_TYPE__
1800 #define __SIZE_TYPE__ unsigned
1804 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1805 echo "configure:1806: checking for libc-friendly stddef.h" >&5
1806 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.
$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 #define __need_size_t
1813 #define __need_wchar_t
1818 size_t size; wchar_t wchar;
1820 #error stddef.h ignored __need_*
1822 if (&size == NULL || &wchar == NULL) abort ();
1825 if { (eval echo configure
:1826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1827 libc_cv_friendly_stddef
=yes
1829 echo "configure: failed program was:" >&5
1830 cat conftest.
$ac_ext >&5
1832 libc_cv_friendly_stddef
=no
1837 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1838 if test $libc_cv_friendly_stddef = yes; then
1839 config_vars
="$config_vars
1840 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1843 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether we need to use -P to assemble .S files" >&5
1845 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.S
<<EOF
1849 #include "confdefs.h"
1850 /* Nothing whatsoever. */
1852 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1853 libc_cv_need_minus_P
=no
1855 libc_cv_need_minus_P
=yes
1860 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1861 if test $libc_cv_need_minus_P = yes; then
1862 config_vars
="$config_vars
1863 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1866 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1867 # be told to read stdin. This causes the compiler to hang when fed an
1869 if test $ac_cv_prog_gcc = yes; then
1870 case `${CC-cc} -v 2>&1` in
1872 # We must check this even if -pipe is not given here, because the user
1873 # might do `make CFLAGS=-pipe'.
1874 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1875 echo "configure:1876: checking for gcc 2.7.x -pipe bug" >&5
1876 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cp /dev
/null conftest.s
1880 cat >conftest1.s
<<EOF
1883 if ${CC-cc} -pipe -c conftest.s
<conftest1.s
2>/dev
/null
; then
1884 libc_cv_gcc_pipe_bug
=no
1886 libc_cv_gcc_pipe_bug
=yes
1891 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1892 if test $libc_cv_gcc_pipe_bug = yes; then
1893 makeCC
="${CC-cc} -B\$(common-objpfx)"
1895 CFLAGS
=`echo $CFLAGS |sed 's/-pipe//'`
1897 *) libc_cv_gcc_pipe_bug
=no
;;
1900 libc_cv_gcc_pipe_bug
=no
1903 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1904 echo "configure:1905: checking for assembler global-symbol directive" >&5
1905 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 libc_cv_asm_global_directive
=UNKNOWN
1909 for ac_globl
in .globl .global
; do
1910 cat > conftest.s
<<EOF
1915 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1916 libc_cv_asm_global_directive
=${ac_globl}
1919 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1923 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1924 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1925 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1927 cat >> confdefs.h
<<EOF
1928 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1933 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1934 echo "configure:1935: checking for .set assembler directive" >&5
1935 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.s
<<EOF
1941 .set glibc_conftest_frobozz,foo
1942 $libc_cv_asm_global_directive glibc_conftest_frobozz
1944 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1945 # (but it doesn't work), so we must do a linking check to be sure.
1946 cat > conftest1.c
<<\EOF
1947 extern int glibc_conftest_frobozz
;
1948 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1950 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1951 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1952 libc_cv_asm_set_directive
=yes
1954 libc_cv_asm_set_directive
=no
1959 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1960 if test $libc_cv_asm_set_directive = yes; then
1961 cat >> confdefs.h
<<\EOF
1962 #define HAVE_ASM_SET_DIRECTIVE 1
1967 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1968 echo "configure:1969: checking for .symver assembler directive" >&5
1969 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.s
<<EOF
1975 .symver _sym,sym@VERS
1977 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
1978 libc_cv_asm_symver_directive
=yes
1980 libc_cv_asm_symver_directive
=no
1985 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1986 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1987 echo "configure:1988: checking for ld --version-script" >&5
1988 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 if test $libc_cv_asm_symver_directive = yes; then
1992 cat > conftest.s
<<EOF
1995 .symver _sym,sym@VERS
1997 cat > conftest.map
<<EOF
2006 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2007 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2008 -nostartfiles -nostdlib
2009 -Wl,--version-script,conftest.map
2010 1>&5'; { (eval echo configure
:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2012 libc_cv_ld_version_script_option
=yes
2014 libc_cv_ld_version_script_option
=no
2017 libc_cv_ld_version_script_option
=no
2020 libc_cv_ld_version_script_option
=no
2025 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2026 if test $libc_cv_asm_symver_directive = yes &&
2027 test $libc_cv_ld_version_script_option = yes &&
2028 test $enable_versioning = yes; then
2030 cat >> confdefs.h
<<\EOF
2031 #define DO_VERSIONING 1
2039 if test $VERSIONING = no
; then
2041 *** WARNING: You should not compile GNU libc without versioning. Not using
2042 *** versioning will introduce incompatibilities so that old binaries
2043 *** will not run anymore.
2044 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2046 if test $elf = yes; then
2047 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2048 echo "configure:2049: checking for .previous assembler directive" >&5
2049 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.s
<<EOF
2053 .section foo_section
2056 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2057 libc_cv_asm_previous_directive
=yes
2059 libc_cv_asm_previous_directive
=no
2064 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2065 if test $libc_cv_asm_previous_directive = yes; then
2066 cat >> confdefs.h
<<\EOF
2067 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2071 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2072 echo "configure:2073: checking for .popsection assembler directive" >&5
2073 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.s
<<EOF
2077 .pushsection foo_section
2080 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2081 libc_cv_asm_popsection_directive
=yes
2083 libc_cv_asm_popsection_directive
=no
2088 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2089 if test $libc_cv_asm_popsection_directive = yes; then
2090 cat >> confdefs.h
<<\EOF
2091 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2098 if test $elf != yes; then
2099 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2100 echo "configure:2101: checking for .init and .fini sections" >&5
2101 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 cat > conftest.
$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2109 asm (".section .init");
2110 asm (".section .fini");
2114 if { (eval echo configure
:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 libc_cv_have_initfini
=yes
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 libc_cv_have_initfini
=no
2126 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2127 if test $libc_cv_have_initfini = yes; then
2128 cat >> confdefs.h
<<\EOF
2129 #define HAVE_INITFINI 1
2137 if test $elf = yes; then
2138 libc_cv_asm_underscores
=no
2140 if test $ac_cv_prog_cc_works = yes; then
2141 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2142 echo "configure:2143: checking for _ prefix on C symbol names" >&5
2143 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 asm ("_glibc_foobar:");
2154 if { (eval echo configure
:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2156 libc_cv_asm_underscores
=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2161 libc_cv_asm_underscores
=no
2166 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2168 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2169 echo "configure:2170: checking for _ prefix on C symbol names" >&5
2170 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 void underscore_test(void) {
2179 if { (eval echo configure
:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2180 if grep _underscore_test conftest
* >/dev
/null
; then
2182 libc_cv_asm_underscores
=yes
2185 libc_cv_asm_underscores
=no
2188 echo "configure: failed program was:" >&5
2189 cat conftest.
$ac_ext >&5
2191 libc_cv_asm_underscores
=no
2196 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2199 if test $libc_cv_asm_underscores = no
; then
2200 cat >> confdefs.h
<<\EOF
2201 #define NO_UNDERSCORES 1
2206 if test $elf = yes; then
2207 libc_cv_weak_symbols
=yes
2208 libc_cv_asm_weak_directive
=yes
2209 libc_cv_asm_weakext_directive
=no
2211 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2212 echo "configure:2213: checking for assembler .weak directive" >&5
2213 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.s
<<EOF
2218 ${libc_cv_asm_global_directive} foo
2221 .weak bar; bar = foo
2223 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2224 libc_cv_asm_weak_directive
=yes
2226 libc_cv_asm_weak_directive
=no
2231 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2233 if test $libc_cv_asm_weak_directive = no
; then
2234 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2235 echo "configure:2236: checking for assembler .weakext directive" >&5
2236 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 cat > conftest.s
<<EOF
2241 ${libc_cv_asm_global_directive} foo
2246 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2247 libc_cv_asm_weakext_directive
=yes
2249 libc_cv_asm_weakext_directive
=no
2254 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2259 if test $libc_cv_asm_weak_directive = yes; then
2260 cat >> confdefs.h
<<\EOF
2261 #define HAVE_ASM_WEAK_DIRECTIVE 1
2264 elif test $libc_cv_asm_weakext_directive = yes; then
2265 cat >> confdefs.h
<<\EOF
2266 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2271 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2272 echo "configure:2273: checking for ld --no-whole-archive" >&5
2273 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.c
<<\EOF
2281 if { ac_try
='${CC-cc} $CFLAGS
2282 -nostdlib -nostartfiles -Wl,--no-whole-archive
2283 -o conftest conftest.c 1>&5'; { (eval echo configure
:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2284 libc_cv_ld_no_whole_archive
=yes
2286 libc_cv_ld_no_whole_archive
=no
2291 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2293 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2294 echo "configure:2295: checking for gcc -fno-exceptions" >&5
2295 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.c
<<\EOF
2303 if { ac_try
='${CC-cc} $CFLAGS
2304 -nostdlib -nostartfiles -fno-exceptions
2305 -o conftest conftest.c 1>&5'; { (eval echo configure
:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2306 libc_cv_gcc_no_exceptions
=yes
2308 libc_cv_gcc_no_exceptions
=no
2313 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2315 if test "$base_machine" = alpha
; then
2316 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2317 echo "configure:2318: checking for function ..ng prefix" >&5
2318 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.c
<<\EOF
2324 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2326 libc_cv_gcc_alpha_ng_prefix
=yes
2328 libc_cv_gcc_alpha_ng_prefix
=no
2333 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2334 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2335 cat >> confdefs.h
<<\EOF
2336 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2340 cat >> confdefs.h
<<\EOF
2341 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2347 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2348 echo "configure:2349: checking for DWARF2 unwind info support" >&5
2349 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.c
<<EOF
2353 #line 2354 "configure"
2354 static char __EH_FRAME_BEGIN__;
2357 #ifdef CHECK__register_frame
2358 __register_frame (__EH_FRAME_BEGIN__);
2359 __deregister_frame (__EH_FRAME_BEGIN__);
2361 #ifdef CHECK__register_frame_info
2362 __register_frame_info (__EH_FRAME_BEGIN__);
2363 __deregister_frame_info (__EH_FRAME_BEGIN__);
2368 /* FIXME: this is fragile. */
2378 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2379 -nostdlib -nostartfiles
2380 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2381 libc_cv_gcc_dwarf2_unwind_info
=static
2383 libc_cv_gcc_dwarf2_unwind_info
=no
2385 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2386 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2387 -nostdlib -nostartfiles
2388 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2389 libc_cv_gcc_dwarf2_unwind_info
=yes
2391 libc_cv_gcc_dwarf2_unwind_info
=no
2397 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2398 case $libc_cv_gcc_dwarf2_unwind_info in
2400 cat >> confdefs.h
<<\EOF
2401 #define HAVE_DWARF2_UNWIND_INFO 1
2406 cat >> confdefs.h
<<\EOF
2407 #define HAVE_DWARF2_UNWIND_INFO 1
2410 cat >> confdefs.h
<<\EOF
2411 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2417 ### End of automated tests.
2418 ### Now run sysdeps configure fragments.
2420 # sysdeps configure fragments may set these with files to be linked below.
2424 # Iterate over all the sysdep directories we will use, running their
2425 # configure fragments, and looking for a uname implementation.
2427 for dir
in $sysnames; do
2430 *) dest
=$srcdir/$dir ;;
2432 if test -r $dest/configure
; then
2433 echo "$ac_t""running configure fragment for $dest" 1>&6
2437 if test -z "$uname"; then
2438 if test -r $dest/uname.c ||
2439 test -r $dest/uname.S ||
2440 { test -r $dest/syscalls.list
&&
2441 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
2449 # If we will use the generic uname implementation, we must figure out what
2450 # it will say by examining the system, and write the results in config-name.h.
2451 if test "$uname" = "sysdeps/generic"; then
2453 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2454 if test $uname_sysname != $config_os; then
2455 config_release
=`echo $config_os | sed s/$uname_sysname//`
2458 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2459 echo "configure:2460: checking OS release for uname" >&5
2460 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2464 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2465 != x
$config_release; then
2466 # The configuration release is a substring of the kernel release.
2467 libc_cv_uname_release
=$kernel_release
2468 elif test x
$config_release != x
; then
2469 libc_cv_uname_release
=$config_release
2470 elif test x
$kernel_release != x
; then
2471 libc_cv_uname_release
=$kernel_release
2473 libc_cv_uname_release
=unknown
2477 echo "$ac_t""$libc_cv_uname_release" 1>&6
2478 uname_release
="$libc_cv_uname_release"
2480 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2481 echo "configure:2482: checking OS version for uname" >&5
2482 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2486 if test -n "$kernel_version"; then
2487 libc_cv_uname_version
="$kernel_version"
2489 libc_cv_uname_version
=unknown
2493 echo "$ac_t""$libc_cv_uname_version" 1>&6
2494 uname_version
="$libc_cv_uname_version"
2496 config_uname
=config-name.h
:config-name.
in
2498 # For non-generic uname, we don't need to create config-name.h at all.
2502 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2503 echo "configure:2504: checking stdio selection" >&5
2506 libio
) cat >> confdefs.h
<<\EOF
2507 #define USE_IN_LIBIO 1
2510 default
) stdio
=stdio
;;
2512 echo "$ac_t""$stdio" 1>&6
2514 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2515 echo "configure:2516: checking ldap selection" >&5
2524 echo "$ac_t""$ldap" 1>&6
2533 if test $gnu_ld = yes; then
2534 cat >> confdefs.h
<<\EOF
2535 #define HAVE_GNU_LD 1
2539 if test $gnu_as = yes; then
2540 cat >> confdefs.h
<<\EOF
2541 #define HAVE_GNU_AS 1
2545 if test $elf = yes; then
2546 cat >> confdefs.h
<<\EOF
2554 if test $shared = default
; then
2555 if test $gnu_ld = yes; then
2558 # For now we do not assume shared libs are available. In future more
2559 # tests might become available.
2564 if test $static = no
&& test $shared = yes; then
2567 { echo "configure: error:
2568 *** You must compile with support for the static library since the shared
2569 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2576 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2577 echo "configure:2578: checking whether -fPIC is default" >&5
2578 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.c
<<EOF
2583 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2584 # error PIC is default.
2587 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2593 echo "$ac_t""$pic_default" 1>&6
2604 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2607 config_makefile
=Makefile
2610 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2613 if test $libc_cv_gcc_pipe_bug = yes; then
2618 if test -r /vmunix
; then
2619 kernel_id
=`strings /vmunix | grep UNIX`
2620 elif test -r /dynix
; then
2621 kernel_id
=`strings /dynix | grep DYNIX`
2629 cat > confcache
<<\EOF
2630 # This file is a shell script that caches the results of configure
2631 # tests run on this system so they can be shared between configure
2632 # scripts and configure runs. It is not useful on other systems.
2633 # If it contains results you don't want to keep, you may remove or edit it.
2635 # By default, configure uses ./config.cache as the cache file,
2636 # creating it if it does not exist already. You can give configure
2637 # the --cache-file=FILE option to use a different cache file; that is
2638 # what configure does when it calls configure scripts in
2639 # subdirectories, so they share the cache.
2640 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2641 # config.status only pays attention to the cache file if you give it the
2642 # --recheck option to rerun configure.
2645 # The following way of writing the cache mishandles newlines in values,
2646 # but we know of no workaround that is simple, portable, and efficient.
2647 # So, don't put newlines in cache variables' values.
2648 # Ultrix sh set writes to stderr and can't be redirected directly,
2649 # and sets the high bit in the cache file unless we assign to the vars.
2651 case `(ac_space=' '; set) 2>&1` in
2653 # `set' does not quote correctly, so add quotes (double-quote substitution
2654 # turns \\\\ into \\, and sed turns \\ into \).
2656 -e "s/'/'\\\\''/g" \
2657 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2660 # `set' quotes correctly as required by POSIX, so do not add quotes.
2661 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2664 if cmp -s $cache_file confcache
; then
2667 if test -w $cache_file; then
2668 echo "updating cache $cache_file"
2669 cat confcache
> $cache_file
2671 echo "not updating unwritable cache $cache_file"
2676 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2678 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2679 # Let make expand exec_prefix.
2680 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2682 # Any assignment to VPATH causes Sun make to only execute
2683 # the first set of double-colon rules, so remove it if not needed.
2684 # If there is a colon in the path, we need to keep it.
2685 if test "x$srcdir" = x.
; then
2686 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2689 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2691 DEFS
=-DHAVE_CONFIG_H
2693 # Without the "./", some shells look in PATH for config.status.
2694 : ${CONFIG_STATUS=./config.status}
2696 echo creating
$CONFIG_STATUS
2697 rm -f $CONFIG_STATUS
2698 cat > $CONFIG_STATUS <<EOF
2700 # Generated automatically by configure.
2701 # Run this file to recreate the current configuration.
2702 # This directory was configured as follows,
2703 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2705 # $0 $ac_configure_args
2707 # Compiler output produced by configure, useful for debugging
2708 # configure, is in ./config.log if it exists.
2710 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2713 case "\$ac_option" in
2714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2715 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2716 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2717 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2718 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2720 -help | --help | --hel | --he | --h)
2721 echo "\$ac_cs_usage"; exit 0 ;;
2722 *) echo "\$ac_cs_usage"; exit 1 ;;
2726 ac_given_srcdir=$srcdir
2727 ac_given_INSTALL="$INSTALL"
2729 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2731 cat >> $CONFIG_STATUS <<EOF
2733 # Protect against being on the right side of a sed subst in config.status.
2734 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2735 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2738 s%@CFLAGS@%$CFLAGS%g
2739 s%@CPPFLAGS@%$CPPFLAGS%g
2740 s%@CXXFLAGS@%$CXXFLAGS%g
2742 s%@LDFLAGS@%$LDFLAGS%g
2744 s%@exec_prefix@%$exec_prefix%g
2745 s%@prefix@%$prefix%g
2746 s%@program_transform_name@%$program_transform_name%g
2747 s%@bindir@%$bindir%g
2748 s%@sbindir@%$sbindir%g
2749 s%@libexecdir@%$libexecdir%g
2750 s%@datadir@%$datadir%g
2751 s%@sysconfdir@%$sysconfdir%g
2752 s%@sharedstatedir@%$sharedstatedir%g
2753 s%@localstatedir@%$localstatedir%g
2754 s%@libdir@%$libdir%g
2755 s%@includedir@%$includedir%g
2756 s%@oldincludedir@%$oldincludedir%g
2757 s%@infodir@%$infodir%g
2758 s%@mandir@%$mandir%g
2759 s%@subdirs@%$subdirs%g
2761 s%@host_alias@%$host_alias%g
2762 s%@host_cpu@%$host_cpu%g
2763 s%@host_vendor@%$host_vendor%g
2764 s%@host_os@%$host_os%g
2765 s%@base_machine@%$base_machine%g
2766 s%@sysnames@%$sysnames%g
2767 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2768 s%@INSTALL_DATA@%$INSTALL_DATA%g
2770 s%@MSGFMT@%$MSGFMT%g
2771 s%@MAKEINFO@%$MAKEINFO%g
2773 s%@cross_linkable@%$cross_linkable%g
2775 s%@build_alias@%$build_alias%g
2776 s%@build_cpu@%$build_cpu%g
2777 s%@build_vendor@%$build_vendor%g
2778 s%@build_os@%$build_os%g
2779 s%@BUILD_CC@%$BUILD_CC%g
2780 s%@cross_compiling@%$cross_compiling%g
2783 s%@RANLIB@%$RANLIB%g
2785 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2787 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2789 s%@VERSIONING@%$VERSIONING%g
2790 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2791 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2792 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2793 s%@uname_sysname@%$uname_sysname%g
2794 s%@uname_release@%$uname_release%g
2795 s%@uname_version@%$uname_version%g
2798 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2799 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2800 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2801 s%@has_ldconfig@%$has_ldconfig%g
2802 s%@gnu_ld@%$gnu_ld%g
2803 s%@gnu_as@%$gnu_as%g
2805 s%@static@%$static%g
2806 s%@shared@%$shared%g
2807 s%@pic_default@%$pic_default%g
2808 s%@profile@%$profile%g
2809 s%@omitfp@%$omitfp%g
2810 s%@bounded@%$bounded%g
2811 s%@static_nss@%$static_nss%g
2812 s%@nopic_initfini@%$nopic_initfini%g
2813 s%@DEFINES@%$DEFINES%g
2814 s%@VERSION@%$VERSION%g
2819 cat >> $CONFIG_STATUS <<\EOF
2821 # Split the substitutions into bite-sized pieces for seds with
2822 # small command number limits, like on Digital OSF/1 and HP-UX.
2823 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2824 ac_file
=1 # Number of current file.
2825 ac_beg
=1 # First line for current file.
2826 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2829 while $ac_more_lines; do
2830 if test $ac_beg -gt 1; then
2831 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2833 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2835 if test ! -s conftest.s
$ac_file; then
2837 rm -f conftest.s
$ac_file
2839 if test -z "$ac_sed_cmds"; then
2840 ac_sed_cmds
="sed -f conftest.s$ac_file"
2842 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2844 ac_file
=`expr $ac_file + 1`
2846 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2849 if test -z "$ac_sed_cmds"; then
2854 cat >> $CONFIG_STATUS <<EOF
2856 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2858 cat >> $CONFIG_STATUS <<\EOF
2859 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2862 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2863 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2864 *) ac_file_in
="${ac_file}.in" ;;
2867 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2869 # Remove last slash and all that follows it. Not all systems have dirname.
2870 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2871 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2872 # The file is in a subdirectory.
2873 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2874 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2875 # A "../" for each directory in $ac_dir_suffix.
2876 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2878 ac_dir_suffix
= ac_dots
=
2881 case "$ac_given_srcdir" in
2883 if test -z "$ac_dots"; then top_srcdir
=.
2884 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2885 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2887 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2888 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2891 case "$ac_given_INSTALL" in
2892 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2893 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2896 echo creating
"$ac_file"
2898 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2900 *Makefile
*) ac_comsub
="1i\\
2901 # $configure_input" ;;
2905 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2907 s%@configure_input@%$configure_input%g
2908 s%@srcdir@%$srcdir%g
2909 s%@top_srcdir@%$top_srcdir%g
2910 s%@INSTALL@%$INSTALL%g
2911 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2918 # ac_d sets the value in "#define NAME VALUE" lines.
2919 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2920 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2923 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2924 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2925 ac_uB
='\([ ]\)%\1#\2define\3'
2928 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2929 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2930 ac_eB
='$%\1#\2define\3'
2934 if test "${CONFIG_HEADERS+set}" != set; then
2936 cat >> $CONFIG_STATUS <<EOF
2937 CONFIG_HEADERS="config.h"
2939 cat >> $CONFIG_STATUS <<\EOF
2941 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2944 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2945 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2946 *) ac_file_in
="${ac_file}.in" ;;
2949 echo creating
$ac_file
2951 rm -f conftest.frag conftest.
in conftest.out
2952 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2953 cat $ac_file_inputs > conftest.
in
2957 # Transform confdefs.h into a sed script conftest.vals that substitutes
2958 # the proper values into config.h.in to produce config.h. And first:
2959 # Protect against being on the right side of a sed subst in config.status.
2960 # Protect against being in an unquoted here document in config.status.
2962 cat > conftest.hdr
<<\EOF
2965 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2969 sed -n -f conftest.hdr confdefs.h > conftest.vals
2972 # This sed command replaces #undef with comments. This is necessary, for
2973 # example, in the case of _POSIX_SOURCE, which is predefined and required
2974 # on some systems where configure will not decide to define it.
2975 cat >> conftest.vals <<\EOF
2976 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2979 # Break up conftest.vals because some shells have a limit on
2980 # the size of here documents, and old seds have small limits too.
2985 ac_lines=`grep -c . conftest.vals
`
2986 # grep -c gives empty output for an empty file on some AIX systems.
2987 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2988 # Write a limited-size here document to conftest.frag.
2989 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2990 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2992 sed -f conftest.frag conftest.in > conftest.out
2994 mv conftest.out conftest.in
2996 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2998 mv conftest.tail conftest.vals
3002 cat >> $CONFIG_STATUS <<\EOF
3003 rm -f conftest.frag conftest.h
3004 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3005 cat conftest.in >> conftest.h
3007 if cmp -s $ac_file conftest.h 2>/dev/null; then
3008 echo "$ac_file is unchanged"
3011 # Remove last slash and all that follows it. Not all systems have dirname.
3012 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3014 # The file is in a subdirectory.
3015 test ! -d "$ac_dir" && mkdir "$ac_dir"
3018 mv conftest.h $ac_file
3024 cat >> $CONFIG_STATUS <<EOF
3025 ac_sources="`echo $libc_link_sources`"
3026 ac_dests="`echo $libc_link_dests`"
3029 cat >> $CONFIG_STATUS <<\EOF
3030 srcdir=$ac_given_srcdir
3031 while test -n "$ac_sources"; do
3032 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3033 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3035 echo "linking $srcdir/$ac_source to $ac_dest"
3037 if test ! -r $srcdir/$ac_source; then
3038 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3042 # Make relative symlinks.
3043 # Remove last slash and all that follows it. Not all systems have dirname.
3044 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3045 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3046 # The dest file is in a subdirectory.
3047 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3048 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3049 # A "../" for each directory in $ac_dest_dir_suffix.
3050 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3052 ac_dest_dir_suffix= ac_dots=
3056 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3057 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3060 # Make a symlink if possible; otherwise try a hard link.
3061 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3062 ln $srcdir/$ac_source $ac_dest; then :
3064 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3068 cat >> $CONFIG_STATUS <<EOF
3070 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3072 cat >> $CONFIG_STATUS <<\EOF
3074 if test "$realCC"; then
3075 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs
` >specsT
3081 chmod +x $CONFIG_STATUS
3082 rm -fr confdefs* $ac_clean_files
3083 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3085 if test "$no_recursion" != yes; then
3087 # Remove --cache-file and --srcdir arguments so they do not pile up.
3088 ac_sub_configure_args=
3090 for ac_arg in $ac_configure_args; do
3091 if test -n "$ac_prev"; then
3096 -cache-file | --cache-file | --cache-fil | --cache-fi \
3097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3098 ac_prev=cache_file ;;
3099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3106 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3110 for ac_config_dir in $add_ons; do
3112 # Do not complain, so a configure script can configure whichever
3113 # parts of a large source tree are present.
3114 if test ! -d $srcdir/$ac_config_dir; then
3118 echo configuring in $ac_config_dir
3123 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3125 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3133 # A "../" for each directory in /$ac_config_dir.
3134 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3137 .) # No --srcdir option. We are building in place.
3138 ac_sub_srcdir=$srcdir ;;
3139 /*) # Absolute path.
3140 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3142 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3145 # Check for guested configure; otherwise get Cygnus style configure.
3146 if test -f $ac_sub_srcdir/configure; then
3147 ac_sub_configure=$ac_sub_srcdir/configure
3148 elif test -f $ac_sub_srcdir/configure.in; then
3149 ac_sub_configure=$ac_configure
3151 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3155 # The recursion is here.
3156 if test -n "$ac_sub_configure"; then
3158 # Make the cache file name correct relative to the subdirectory.
3159 case "$cache_file" in
3160 /*) ac_sub_cache_file=$cache_file ;;
3162 ac_sub_cache_file="$ac_dots$cache_file" ;;
3164 case "$ac_given_INSTALL" in
3165 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3166 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3169 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3170 # The eval makes quoting arguments work.
3171 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3174 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }