3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.11.2
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
20 --with-fp if using floating-point hardware [default=yes]"
22 --with-gnu-binutils if using GNU binutils (as and ld)"
24 --with-gnu-ld if using GNU ld (in the binutils package)"
26 --with-gnu-as if using GNU as (in the binutils package)"
28 --with-elf if using the ELF object format"
30 --enable-libio build in GNU libio instead of GNU stdio"
32 --enable-new-malloc use the new malloc implementation. This is the
33 default for Linux, others use the old malloc."
35 --disable-sanity-checks really do not use threads (should not be used
36 except in special situations) [default=yes]"
38 --enable-shared build shared library [default=yes if GNU ld & ELF]"
40 --enable-profile build profiled library [default=yes]"
42 --enable-omitfp build undebuggable optimized library [default=no]"
44 --enable-add-ons=DIR... configure and build named extra directories"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
108 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
109 bindir
="$ac_optarg" ;;
111 -build |
--build |
--buil |
--bui |
--bu)
113 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
114 build
="$ac_optarg" ;;
116 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
117 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
118 ac_prev
=cache_file
;;
119 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
120 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
121 cache_file
="$ac_optarg" ;;
123 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
125 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
127 datadir
="$ac_optarg" ;;
129 -disable-* |
--disable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* |
--enable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
152 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
153 |
--exec |
--exe |
--ex)
154 ac_prev
=exec_prefix
;;
155 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
156 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
157 |
--exec=* |
--exe=* |
--ex=*)
158 exec_prefix
="$ac_optarg" ;;
160 -gas |
--gas |
--ga |
--g)
161 # Obsolete; use --with-gas.
164 -help |
--help |
--hel |
--he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
219 -host |
--host |
--hos |
--ho)
221 -host=* |
--host=* |
--hos=* |
--ho=*)
224 -includedir |
--includedir |
--includedi |
--included |
--include \
225 |
--includ |
--inclu |
--incl |
--inc)
226 ac_prev
=includedir
;;
227 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
228 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
229 includedir
="$ac_optarg" ;;
231 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
233 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
234 infodir
="$ac_optarg" ;;
236 -libdir |
--libdir |
--libdi |
--libd)
238 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
239 libdir
="$ac_optarg" ;;
241 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
242 |
--libexe |
--libex |
--libe)
243 ac_prev
=libexecdir
;;
244 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
245 |
--libexe=* |
--libex=* |
--libe=*)
246 libexecdir
="$ac_optarg" ;;
248 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
249 |
--localstate |
--localstat |
--localsta |
--localst \
250 |
--locals |
--local |
--loca |
--loc |
--lo)
251 ac_prev
=localstatedir
;;
252 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
253 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
254 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
255 localstatedir
="$ac_optarg" ;;
257 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
259 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
260 mandir
="$ac_optarg" ;;
263 # Obsolete; use --without-fp.
266 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
270 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
271 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
274 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
275 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
276 |
--oldin |
--oldi |
--old |
--ol |
--o)
277 ac_prev
=oldincludedir
;;
278 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
279 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
280 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
281 oldincludedir
="$ac_optarg" ;;
283 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
285 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
286 prefix
="$ac_optarg" ;;
288 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
289 |
--program-pre |
--program-pr |
--program-p)
290 ac_prev
=program_prefix
;;
291 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
292 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
293 program_prefix
="$ac_optarg" ;;
295 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
296 |
--program-suf |
--program-su |
--program-s)
297 ac_prev
=program_suffix
;;
298 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
299 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
300 program_suffix
="$ac_optarg" ;;
302 -program-transform-name |
--program-transform-name \
303 |
--program-transform-nam |
--program-transform-na \
304 |
--program-transform-n |
--program-transform- \
305 |
--program-transform |
--program-transfor \
306 |
--program-transfo |
--program-transf \
307 |
--program-trans |
--program-tran \
308 |
--progr-tra |
--program-tr |
--program-t)
309 ac_prev
=program_transform_name
;;
310 -program-transform-name=* |
--program-transform-name=* \
311 |
--program-transform-nam=* |
--program-transform-na=* \
312 |
--program-transform-n=* |
--program-transform-=* \
313 |
--program-transform=* |
--program-transfor=* \
314 |
--program-transfo=* |
--program-transf=* \
315 |
--program-trans=* |
--program-tran=* \
316 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
317 program_transform_name
="$ac_optarg" ;;
319 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
320 |
-silent |
--silent |
--silen |
--sile |
--sil)
323 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
325 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
327 sbindir
="$ac_optarg" ;;
329 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
330 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
331 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
333 ac_prev
=sharedstatedir
;;
334 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
335 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
336 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
338 sharedstatedir
="$ac_optarg" ;;
340 -site |
--site |
--sit)
342 -site=* |
--site=* |
--sit=*)
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.11.2"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file
=features.h
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE
; then
512 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
514 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file
in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
528 echo "creating cache $cache_file"
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp
='$CPP $CPPFLAGS'
535 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling
=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
548 ac_n
= ac_c
='\c' ac_t
=
551 if test -r /vmunix
; then
552 kernel_id
=`strings /vmunix | grep UNIX`
553 elif test -r /dynix
; then
554 kernel_id
=`strings /dynix | grep DYNIX`
562 # This will get text that should go into config.make.
565 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
566 # Check whether --with-gmp or --without-gmp was given.
567 if test "${with_gmp+set}" = set; then
570 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
572 *) config_vars
="$config_vars
573 gmp-srcdir = $withval" ;;
578 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
579 # Check whether --with-gettext or --without-gettext was given.
580 if test "${with_gettext+set}" = set; then
581 withval
="$with_gettext"
582 case "$with_gettext" in
584 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
587 config_vars
="$config_vars
588 gettext-srcdir = $withval" ;;
594 # Check whether --with-fp or --without-fp was given.
595 if test "${with_fp+set}" = set; then
602 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
603 if test "${with_gnu_binutils+set}" = set; then
604 withval
="$with_gnu_binutils"
605 gnu_binutils
=$withval
610 # Check whether --with-gnu-ld or --without-gnu-ld was given.
611 if test "${with_gnu_ld+set}" = set; then
612 withval
="$with_gnu_ld"
618 # Check whether --with-gnu-as or --without-gnu-as was given.
619 if test "${with_gnu_as+set}" = set; then
620 withval
="$with_gnu_as"
626 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
627 # Check whether --with-elf or --without-elf was given.
628 if test "${with_elf+set}" = set; then
636 # Check whether --enable-libio or --disable-libio was given.
637 if test "${enable_libio+set}" = set; then
638 enableval
="$enable_libio"
639 if test $enableval = yes; then
649 # Check whether --enable-new-malloc or --disable-new-malloc was given.
650 if test "${enable_new_malloc+set}" = set; then
651 enableval
="$enable_new_malloc"
652 if test $enableval = yes; then
662 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
663 if test "${enable_sanity_checks+set}" = set; then
664 enableval
="$enable_sanity_checks"
665 enable_sanity
=$enableval
671 # Check whether --enable-shared or --disable-shared was given.
672 if test "${enable_shared+set}" = set; then
673 enableval
="$enable_shared"
679 # Check whether --enable-profile or --disable-profile was given.
680 if test "${enable_profile+set}" = set; then
681 enableval
="$enable_profile"
687 # Check whether --enable-omitfp or --disable-omitfp was given.
688 if test "${enable_omitfp+set}" = set; then
689 enableval
="$enable_omitfp"
696 # Check whether --enable-add-ons or --disable-add-ons was given.
697 if test "${enable_add_ons+set}" = set; then
698 enableval
="$enable_add_ons"
699 add_ons
=`echo "$enableval" | sed 's/,/ /g'`
705 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
706 if test -f $ac_dir/install-sh
; then
708 ac_install_sh
="$ac_aux_dir/install-sh -c"
710 elif test -f $ac_dir/install.sh
; then
712 ac_install_sh
="$ac_aux_dir/install.sh -c"
716 if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
719 ac_config_guess
=$ac_aux_dir/config.guess
720 ac_config_sub
=$ac_aux_dir/config.sub
721 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
726 if test x
"$add_ons" != x
; then
727 for f
in $add_ons; do
728 add_ons_pfx
="$add_ons_pfx $f/"
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 echo $ac_n "checking host system type""... $ac_c" 1>&6
739 echo "configure:740: checking host system type" >&5
742 case "$host_alias" in
746 if host_alias
=`$ac_config_guess`; then :
747 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
749 *) host_alias
=$nonopt ;;
753 host=`$ac_config_sub $host_alias`
754 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
757 echo "$ac_t""$host" 1>&6
760 # The way shlib-versions is used to generate soversions.mk uses a
761 # fairly simplistic model for name recognition that can't distinguish
762 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
763 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
764 # tell. This doesn't get used much beyond that, so it's fairly safe.
769 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
773 # We keep the original values in `$config_*' and never modify them, so we
774 # can write them unchanged into config.make. Everything else uses
775 # $machine, $vendor, and $os, and changes them whenever convenient.
776 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
778 # Some configurations imply other options.
780 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
781 # These systems always use GNU tools.
782 gnu_ld
=yes gnu_as
=yes ;;
787 gnu
* | linux
* | sysv4
* | solaris2
*)
788 # These systems (almost) always use the ELF format.
793 machine
=$config_machine
794 vendor
=$config_vendor
797 # Expand the configuration machine name into a subdirectory by architecture
798 # type and particular chip.
800 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
801 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
802 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
803 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
804 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
805 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
806 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
807 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
808 mips
*) base_machine
=mips machine
=mips
/$machine ;;
809 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
810 sparc
[6789]) base_machine
=sparc machine
=sparc
/$machine ;;
811 supersparc
) base_machine
=sparc machine
=sparc
/sparc8
;;
815 # Compute the list of sysdep directories for this configuration.
816 # This can take a while to compute.
817 sysdep_dir
=$srcdir/sysdeps
818 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
819 echo "configure:820: checking sysdep dirs" >&5
820 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
821 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
826 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
827 base_os
=unix
/bsd
/bsd4.4
;;
828 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
830 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
833 base_os
=unix
/sysv
/sysv4
;;
835 base_os
=standalone
;;
840 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
843 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
847 o
=`echo $tail | sed 's/[0-9]*$//'`
848 if test $o != $tail; then
851 # For linux-gnu, try linux-gnu, then linux.
852 o
=`echo $tail | sed 's/-.*$//'`
853 if test $o != $tail; then
857 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
860 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
866 # For sparc/sparc9, try sparc/sparc9 and then sparc.
869 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
871 # Prepend the machine's FPU directory unless --without-fp.
872 if test "$with_fp" = yes; then
880 # Find what sysdep directories exist.
882 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
883 for d
in $add_ons_pfx ''; do
884 for b
in $base ''; do
885 for m0
in $mach ''; do
886 for v
in /$vendor ''; do
887 for o
in /$ostry ''; do
888 for m
in $mach ''; do
889 if test "$m0$b$v$o$m"; then
890 try
="${d}sysdeps$m0$b$v$o$m"
891 test -n "$enable_debug_configure" &&
892 echo "$0 DEBUG: try $try" >&2
895 *) dest
=$srcdir/$try ;;
897 if test -d $dest; then
898 sysnames
="$sysnames $try"
899 { test -n "$o" ||
test -n "$b"; } && os_used
=t
900 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
911 if test -z "$os_used" && test "$os" != none
; then
912 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
914 if test -z "$machine_used" && test "$machine" != none
; then
915 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
918 # We have now validated the configuration.
921 # If using ELF, look for an `elf' subdirectory of each machine directory.
922 # We prepend these rather than inserting them whereever the machine appears
923 # because things specified by the machine's ELF ABI should override
924 # OS-specific things, and should always be the same for any OS on the
925 # machine (otherwise what's the point of an ABI?).
926 if test "$elf" = yes; then
928 for d
in $add_ons_pfx ''; do
931 *) xsrcdir
=$srcdir/ ;;
934 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
935 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
939 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
943 # Expand the list of system names into a full list of directories
944 # from each element's parent name and Implies file (if present).
947 while test $# -gt 0; do
951 case " $names " in *" $name "*)
952 # Already in the list.
956 # Report each name as we discover it, so there is no long pause in output.
957 echo $ac_n "$name $ac_c" >&6
959 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
963 *) xsrcdir
=$srcdir/ ;;
965 test -n "$enable_debug_configure" &&
966 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
968 if test -f $xsrcdir$name/Implies
; then
969 # Collect more names from the `Implies' file (removing comments).
970 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
972 for x
in $implied_candidate; do
973 if test -d $xsrcdir$name_base/$x; then
974 implied
="$implied $name_base/$x";
976 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
983 # Add NAME to the list of names.
986 # Find the parent of NAME, using the empty string if it has none.
987 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
989 # Add the names implied by NAME, and NAME's parent (if it has one), to
990 # the list of names to be processed (the argument list). We prepend the
991 # implied names to the list and append the parent. We want implied
992 # directories to come before further directories inferred from the
993 # configuration components; this ensures that for sysv4, unix/common
994 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
996 sysnames
="`echo $implied $* $parent`"
997 test -n "$sysnames" && set $sysnames
1000 # Add the default directories.
1001 sysnames
="$names sysdeps/generic sysdeps/stub"
1003 # The other names were emitted during the scan.
1004 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1009 # Find a good install program. We prefer a C program (faster),
1010 # so one script is as good as another. But avoid the broken or
1011 # incompatible versions:
1012 # SysV /etc/install, /usr/sbin/install
1013 # SunOS /usr/etc/install
1014 # IRIX /sbin/install
1016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1018 # ./install, which can be erroneously created by make from ./install.sh.
1019 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1020 echo "configure:1021: checking for a BSD compatible install" >&5
1021 if test -z "$INSTALL"; then
1022 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1026 for ac_dir
in $PATH; do
1027 # Account for people who put trailing slashes in PATH elements.
1029 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1031 # OSF1 and SCO ODT 3.0 have their own names for install.
1032 for ac_prog
in ginstall installbsd scoinst
install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1037 # OSF/1 installbsd also uses dspmsg, but is usable.
1040 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL
="$ac_cv_path_install"
1054 # As a last resort, use the slow shell script. We don't cache a
1055 # path for INSTALL within a source directory, because that will
1056 # break other packages using the cache if that directory is
1057 # removed, or if the path is relative.
1058 INSTALL
="$ac_install_sh"
1061 echo "$ac_t""$INSTALL" 1>&6
1063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1064 # It thinks the first close brace ends the variable substitution.
1065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1067 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1069 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1070 # The makefiles need to use a different form to find it in $srcdir.
1071 INSTALL
='$(..)./install-sh -c'
1073 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether ln -s works" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1079 if ln -s X conftestdata
2>/dev
/null
1082 ac_cv_prog_LN_S
="ln -s"
1087 LN_S
="$ac_cv_prog_LN_S"
1088 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1089 echo "$ac_t""yes" 1>&6
1091 echo "$ac_t""no" 1>&6
1094 for ac_prog
in msgfmt gmsgfmt
1096 # Extract the first word of "$ac_prog", so it can be a program name with args.
1097 set dummy
$ac_prog; ac_word
=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$MSGFMT"; then
1104 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1107 for ac_dir
in $PATH; do
1108 test -z "$ac_dir" && ac_dir
=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_MSGFMT
="$ac_prog"
1117 MSGFMT
="$ac_cv_prog_MSGFMT"
1118 if test -n "$MSGFMT"; then
1119 echo "$ac_t""$MSGFMT" 1>&6
1121 echo "$ac_t""no" 1>&6
1124 test -n "$MSGFMT" && break
1126 test -n "$MSGFMT" || MSGFMT
=":"
1129 echo $ac_n "checking build system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking build system type" >&5
1133 case "$build_alias" in
1136 NONE
) build_alias
=$host_alias ;;
1137 *) build_alias
=$nonopt ;;
1141 build
=`$ac_config_sub $build_alias`
1142 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$build" 1>&6
1147 if test $host != $build; then
1148 ac_tool_prefix
=${host_alias}-
1153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1154 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC
="$CC" # Let the user override the test.
1163 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1164 for ac_dir
in $PATH; do
1165 test -z "$ac_dir" && ac_dir
=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1172 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1179 echo "$ac_t""no" 1>&6
1184 if test $host != $build; then
1185 # Extract the first word of "gcc cc", so it can be a program name with args.
1186 set dummy gcc cc
; ac_word
=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$BUILD_CC"; then
1193 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1196 for ac_dir
in $PATH; do
1197 test -z "$ac_dir" && ac_dir
=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_BUILD_CC
=""
1206 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1207 if test -n "$BUILD_CC"; then
1208 echo "$ac_t""$BUILD_CC" 1>&6
1210 echo "$ac_t""no" 1>&6
1214 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1215 echo "configure:1216: checking how to run the C preprocessor" >&5
1216 # On Suns, sometimes $CPP names a directory.
1217 if test -n "$CPP" && test -d "$CPP"; then
1220 if test -z "$CPP"; then
1221 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 # This must be in double quotes, not single quotes, because CPP may get
1225 # substituted into the Makefile and "${CC-cc}" will confuse make.
1227 # On the NeXT, cc -E runs the code through the compiler's parser,
1228 # not just through cpp.
1229 cat > conftest.
$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1235 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1236 { (eval echo configure
:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1237 ac_err
=`grep -v '^ *+' conftest.out`
1238 if test -z "$ac_err"; then
1242 echo "configure: failed program was:" >&5
1243 cat conftest.
$ac_ext >&5
1245 CPP
="${CC-cc} -E -traditional-cpp"
1246 cat > conftest.
$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1253 { (eval echo configure
:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1254 ac_err
=`grep -v '^ *+' conftest.out`
1255 if test -z "$ac_err"; then
1259 echo "configure: failed program was:" >&5
1260 cat conftest.
$ac_ext >&5
1267 ac_cv_prog_CPP
="$CPP"
1269 CPP
="$ac_cv_prog_CPP"
1271 ac_cv_prog_CPP
="$CPP"
1273 echo "$ac_t""$CPP" 1>&6
1275 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1276 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$AR"; then
1283 ac_cv_prog_AR
="$AR" # Let the user override the test.
1285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1286 for ac_dir
in $PATH; do
1287 test -z "$ac_dir" && ac_dir
=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1294 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1298 if test -n "$AR"; then
1299 echo "$ac_t""$AR" 1>&6
1301 echo "$ac_t""no" 1>&6
1306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1307 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 if test -n "$RANLIB"; then
1314 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1317 for ac_dir
in $PATH; do
1318 test -z "$ac_dir" && ac_dir
=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1327 RANLIB
="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1331 echo "$ac_t""no" 1>&6
1335 if test -z "$ac_cv_prog_RANLIB"; then
1336 if test -n "$ac_tool_prefix"; then
1337 # Extract the first word of "ranlib", so it can be a program name with args.
1338 set dummy ranlib
; ac_word
=$2
1339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_word" >&5
1341 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 if test -n "$RANLIB"; then
1345 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1347 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1348 for ac_dir
in $PATH; do
1349 test -z "$ac_dir" && ac_dir
=.
1350 if test -f $ac_dir/$ac_word; then
1351 ac_cv_prog_RANLIB
="ranlib"
1356 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1359 RANLIB
="$ac_cv_prog_RANLIB"
1360 if test -n "$RANLIB"; then
1361 echo "$ac_t""$RANLIB" 1>&6
1363 echo "$ac_t""no" 1>&6
1372 # Extract the first word of "bash", so it can be a program name with args.
1373 set dummy bash
; ac_word
=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1385 for ac_dir
in $PATH; do
1386 test -z "$ac_dir" && ac_dir
=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_path_BASH
="$ac_dir/$ac_word"
1393 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1397 BASH
="$ac_cv_path_BASH"
1398 if test -n "$BASH"; then
1399 echo "$ac_t""$BASH" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 if test "$BASH" != no
&&
1405 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1406 libc_cv_have_bash2
=yes
1408 libc_cv_have_bash2
=no
1412 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1413 echo "configure:1414: checking for signed size_t type" >&5
1414 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 echo '#include <stddef.h>
1418 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1419 if eval "$ac_cpp conftest.c 2>/dev/null" \
1420 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1421 libc_cv_signed_size_t
=no
1423 libc_cv_signed_size_t
=yes
1428 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1429 if test $libc_cv_signed_size_t = yes; then
1430 cat >> confdefs.h
<<\EOF
1431 #undef __SIZE_TYPE__
1432 #define __SIZE_TYPE__ unsigned
1436 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1437 echo "configure:1438: checking for libc-friendly stddef.h" >&5
1438 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #define __need_size_t
1445 #define __need_wchar_t
1450 size_t size; wchar_t wchar;
1452 #error stddef.h ignored __need_*
1454 if (&size == NULL || &wchar == NULL) abort ();
1457 if { (eval echo configure
:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1459 libc_cv_friendly_stddef
=yes
1461 echo "configure: failed program was:" >&5
1462 cat conftest.
$ac_ext >&5
1464 libc_cv_friendly_stddef
=no
1469 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1470 if test $libc_cv_friendly_stddef = yes; then
1471 config_vars
="$config_vars
1472 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1475 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether we need to use -P to assemble .S files" >&5
1477 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.S
<<EOF
1481 #include "confdefs.h"
1482 /* Nothing whatsoever. */
1484 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1485 libc_cv_need_minus_P
=no
1487 libc_cv_need_minus_P
=yes
1492 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1493 if test $libc_cv_need_minus_P = yes; then
1494 config_vars
="$config_vars
1495 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1498 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1499 echo "configure:1500: checking for assembler global-symbol directive" >&5
1500 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 libc_cv_asm_global_directive
=UNKNOWN
1504 for ac_globl
in .globl .global
; do
1505 cat > conftest.s
<<EOF
1510 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1511 libc_cv_asm_global_directive
=${ac_globl}
1514 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1518 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1519 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1520 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1522 cat >> confdefs.h
<<EOF
1523 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1528 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1529 echo "configure:1530: checking for .set assembler directive" >&5
1530 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.s
<<EOF
1536 .set glibc_conftest_frobozz,foo
1537 $libc_cv_asm_global_directive glibc_conftest_frobozz
1539 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1540 # (but it doesn't work), so we must do a linking check to be sure.
1541 cat > conftest1.c
<<\EOF
1542 extern int glibc_conftest_frobozz
;
1543 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1545 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1546 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1547 libc_cv_asm_set_directive
=yes
1549 libc_cv_asm_set_directive
=no
1554 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1555 if test $libc_cv_asm_set_directive = yes; then
1556 cat >> confdefs.h
<<\EOF
1557 #define HAVE_ASM_SET_DIRECTIVE 1
1562 if test $elf != yes; then
1563 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1564 echo "configure:1565: checking for .init and .fini sections" >&5
1565 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1573 asm (".section .init");
1574 asm (".section .fini");
1578 if { (eval echo configure
:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1580 libc_cv_have_initfini
=yes
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 libc_cv_have_initfini
=no
1590 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1591 if test $libc_cv_have_initfini = yes; then
1592 cat >> confdefs.h
<<\EOF
1593 #define HAVE_INITFINI 1
1599 if test $elf = yes; then
1600 libc_cv_asm_underscores
=no
1602 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1603 echo "configure:1604: checking for _ prefix on C symbol names" >&5
1604 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 asm ("_glibc_foobar:");
1615 if { (eval echo configure
:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1617 libc_cv_asm_underscores
=yes
1619 echo "configure: failed program was:" >&5
1620 cat conftest.
$ac_ext >&5
1622 libc_cv_asm_underscores
=no
1627 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1629 if test $libc_cv_asm_underscores = no
; then
1630 cat >> confdefs.h
<<\EOF
1631 #define NO_UNDERSCORES 1
1636 if test $elf = yes; then
1637 libc_cv_weak_symbols
=yes
1638 libc_cv_asm_weak_directive
=yes
1639 libc_cv_asm_weakext_directive
=no
1641 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1642 echo "configure:1643: checking for assembler .weak directive" >&5
1643 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.s
<<EOF
1648 ${libc_cv_asm_global_directive} foo
1651 .weak bar; bar = foo
1653 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1654 libc_cv_asm_weak_directive
=yes
1656 libc_cv_asm_weak_directive
=no
1661 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1663 if test $libc_cv_asm_weak_directive = no
; then
1664 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1665 echo "configure:1666: checking for assembler .weakext directive" >&5
1666 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.s
<<EOF
1671 ${libc_cv_asm_global_directive} foo
1676 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1677 libc_cv_asm_weakext_directive
=yes
1679 libc_cv_asm_weakext_directive
=no
1684 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1689 if test $libc_cv_asm_weak_directive = yes; then
1690 cat >> confdefs.h
<<\EOF
1691 #define HAVE_ASM_WEAK_DIRECTIVE 1
1694 elif test $libc_cv_asm_weakext_directive = yes; then
1695 cat >> confdefs.h
<<\EOF
1696 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1701 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1702 echo "configure:1703: checking for ld --no-whole-archive" >&5
1703 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.c
<<\EOF
1711 if { ac_try
='${CC-cc} $CFLAGS
1712 -nostdlib -nostartfiles -Wl,--no-whole-archive
1713 -o conftest conftest.c'; { (eval echo configure
:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1714 libc_cv_ld_no_whole_archive
=yes
1716 libc_cv_ld_no_whole_archive
=no
1721 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1723 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1724 echo "configure:1725: checking for gcc -fno-exceptions" >&5
1725 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.c
<<\EOF
1733 if { ac_try
='${CC-cc} $CFLAGS
1734 -nostdlib -nostartfiles -fno-exceptions
1735 -o conftest conftest.c'; { (eval echo configure
:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1736 libc_cv_gcc_no_exceptions
=yes
1738 libc_cv_gcc_no_exceptions
=no
1743 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1745 ### End of automated tests.
1746 ### Now run sysdeps configure fragments.
1748 # sysdeps configure fragments may set these with files to be linked below.
1752 # Iterate over all the sysdep directories we will use, running their
1753 # configure fragments, and looking for a uname implementation.
1755 for dir
in $sysnames; do
1758 *) dest
=$srcdir/$dir ;;
1760 if test -r $dest/configure
; then
1761 echo "$ac_t""running configure fragment for $dest" 1>&6
1765 if test -z "$uname"; then
1766 if test -r $sysdep_dir/$dir/uname.c ||
1767 test -r $sysdep_dir/$dir/uname.S ||
1768 { test -r $sysdep_dir/$dir/syscalls.list
&&
1769 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
1777 # If we will use the generic uname implementation, we must figure out what
1778 # it will say by examining the system, and write the results in config-name.h.
1779 if test "$uname" = generic
; then
1781 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1782 if test $uname_sysname != $config_os; then
1783 config_release
=`echo $config_os | sed s/$uname_sysname//`
1786 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1787 echo "configure:1788: checking OS release for uname" >&5
1788 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1792 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1793 != x
$config_release; then
1794 # The configuration release is a substring of the kernel release.
1795 libc_cv_uname_release
=$kernel_release
1796 elif test x
$config_release != x
; then
1797 libc_cv_uname_release
=$config_release
1798 elif test x
$kernel_release != x
; then
1799 libc_cv_uname_release
=$kernel_release
1801 libc_cv_uname_release
=unknown
1805 echo "$ac_t""$libc_cv_uname_release" 1>&6
1806 uname_release
="$libc_cv_uname_release"
1808 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1809 echo "configure:1810: checking OS version for uname" >&5
1810 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1814 if test -n "$kernel_version"; then
1815 libc_cv_uname_version
="$kernel_version"
1817 libc_cv_uname_version
=unknown
1821 echo "$ac_t""$libc_cv_uname_version" 1>&6
1822 uname_version
="$libc_cv_uname_version"
1824 config_uname
=config-name.h
:config-name.
in
1826 # For non-generic uname, we don't need to create config-name.h at all.
1830 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1831 echo "configure:1832: checking stdio selection" >&5
1834 libio
) cat >> confdefs.h
<<\EOF
1835 #define USE_IN_LIBIO 1
1838 default
) stdio
=stdio
;;
1840 echo "$ac_t""$stdio" 1>&6
1842 echo $ac_n "checking malloc selection""... $ac_c" 1>&6
1843 echo "configure:1844: checking malloc selection" >&5
1846 new-malloc
) USE_NEW_MALLOC
=-DUSE_NEW_MALLOC ;;
1847 default
) malloc
=malloc
;;
1850 echo "$ac_t""$malloc" 1>&6
1857 if test $gnu_ld = yes; then
1858 cat >> confdefs.h
<<\EOF
1859 #define HAVE_GNU_LD 1
1863 if test $gnu_as = yes; then
1864 cat >> confdefs.h
<<\EOF
1865 #define HAVE_GNU_AS 1
1869 if test $elf = yes; then
1870 cat >> confdefs.h
<<\EOF
1877 if test $shared = default
; then
1878 if test $gnu_ld = yes; then
1881 # For now we do not assume shared libs are available. In future more
1882 # tests might become available.
1891 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1894 config_makefile
=Makefile
1897 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
1901 cat > confcache
<<\EOF
1902 # This file is a shell script that caches the results of configure
1903 # tests run on this system so they can be shared between configure
1904 # scripts and configure runs. It is not useful on other systems.
1905 # If it contains results you don't want to keep, you may remove or edit it.
1907 # By default, configure uses ./config.cache as the cache file,
1908 # creating it if it does not exist already. You can give configure
1909 # the --cache-file=FILE option to use a different cache file; that is
1910 # what configure does when it calls configure scripts in
1911 # subdirectories, so they share the cache.
1912 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1913 # config.status only pays attention to the cache file if you give it the
1914 # --recheck option to rerun configure.
1917 # The following way of writing the cache mishandles newlines in values,
1918 # but we know of no workaround that is simple, portable, and efficient.
1919 # So, don't put newlines in cache variables' values.
1920 # Ultrix sh set writes to stderr and can't be redirected directly,
1921 # and sets the high bit in the cache file unless we assign to the vars.
1923 case `(ac_space=' '; set) 2>&1` in
1925 # `set' does not quote correctly, so add quotes (double-quote substitution
1926 # turns \\\\ into \\, and sed turns \\ into \).
1928 -e "s/'/'\\\\''/g" \
1929 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1932 # `set' quotes correctly as required by POSIX, so do not add quotes.
1933 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1936 if cmp -s $cache_file confcache
; then
1939 if test -w $cache_file; then
1940 echo "updating cache $cache_file"
1941 cat confcache
> $cache_file
1943 echo "not updating unwritable cache $cache_file"
1948 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1950 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1951 # Let make expand exec_prefix.
1952 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1954 # Any assignment to VPATH causes Sun make to only execute
1955 # the first set of double-colon rules, so remove it if not needed.
1956 # If there is a colon in the path, we need to keep it.
1957 if test "x$srcdir" = x.
; then
1958 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1961 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1963 DEFS
=-DHAVE_CONFIG_H
1965 # Without the "./", some shells look in PATH for config.status.
1966 : ${CONFIG_STATUS=./config.status}
1968 echo creating
$CONFIG_STATUS
1969 rm -f $CONFIG_STATUS
1970 cat > $CONFIG_STATUS <<EOF
1972 # Generated automatically by configure.
1973 # Run this file to recreate the current configuration.
1974 # This directory was configured as follows,
1975 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1977 # $0 $ac_configure_args
1979 # Compiler output produced by configure, useful for debugging
1980 # configure, is in ./config.log if it exists.
1982 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1985 case "\$ac_option" in
1986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1987 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1988 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1989 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1990 echo "$CONFIG_STATUS generated by autoconf version 2.11.2"
1992 -help | --help | --hel | --he | --h)
1993 echo "\$ac_cs_usage"; exit 0 ;;
1994 *) echo "\$ac_cs_usage"; exit 1 ;;
1998 ac_given_srcdir=$srcdir
1999 ac_given_INSTALL="$INSTALL"
2001 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2003 cat >> $CONFIG_STATUS <<EOF
2005 # Protect against being on the right side of a sed subst in config.status.
2006 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2007 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2010 s%@CFLAGS@%$CFLAGS%g
2011 s%@CPPFLAGS@%$CPPFLAGS%g
2012 s%@CXXFLAGS@%$CXXFLAGS%g
2014 s%@LDFLAGS@%$LDFLAGS%g
2016 s%@exec_prefix@%$exec_prefix%g
2017 s%@prefix@%$prefix%g
2018 s%@program_transform_name@%$program_transform_name%g
2019 s%@bindir@%$bindir%g
2020 s%@sbindir@%$sbindir%g
2021 s%@libexecdir@%$libexecdir%g
2022 s%@datadir@%$datadir%g
2023 s%@sysconfdir@%$sysconfdir%g
2024 s%@sharedstatedir@%$sharedstatedir%g
2025 s%@localstatedir@%$localstatedir%g
2026 s%@libdir@%$libdir%g
2027 s%@includedir@%$includedir%g
2028 s%@oldincludedir@%$oldincludedir%g
2029 s%@infodir@%$infodir%g
2030 s%@mandir@%$mandir%g
2031 s%@subdirs@%$subdirs%g
2033 s%@host_alias@%$host_alias%g
2034 s%@host_cpu@%$host_cpu%g
2035 s%@host_vendor@%$host_vendor%g
2036 s%@host_os@%$host_os%g
2037 s%@base_machine@%$base_machine%g
2038 s%@sysnames@%$sysnames%g
2039 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2040 s%@INSTALL_DATA@%$INSTALL_DATA%g
2042 s%@MSGFMT@%$MSGFMT%g
2044 s%@build_alias@%$build_alias%g
2045 s%@build_cpu@%$build_cpu%g
2046 s%@build_vendor@%$build_vendor%g
2047 s%@build_os@%$build_os%g
2049 s%@BUILD_CC@%$BUILD_CC%g
2052 s%@RANLIB@%$RANLIB%g
2054 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2055 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2056 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2057 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2058 s%@uname_sysname@%$uname_sysname%g
2059 s%@uname_release@%$uname_release%g
2060 s%@uname_version@%$uname_version%g
2062 s%@malloc@%$malloc%g
2063 s%@USE_NEW_MALLOC@%$USE_NEW_MALLOC%g
2064 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2065 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2066 s%@gnu_ld@%$gnu_ld%g
2067 s%@gnu_as@%$gnu_as%g
2069 s%@shared@%$shared%g
2070 s%@profile@%$profile%g
2071 s%@omitfp@%$omitfp%g
2072 s%@DEFINES@%$DEFINES%g
2073 s%@VERSION@%$VERSION%g
2078 cat >> $CONFIG_STATUS <<\EOF
2080 # Split the substitutions into bite-sized pieces for seds with
2081 # small command number limits, like on Digital OSF/1 and HP-UX.
2082 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2083 ac_file
=1 # Number of current file.
2084 ac_beg
=1 # First line for current file.
2085 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2088 while $ac_more_lines; do
2089 if test $ac_beg -gt 1; then
2090 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2092 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2094 if test ! -s conftest.s
$ac_file; then
2096 rm -f conftest.s
$ac_file
2098 if test -z "$ac_sed_cmds"; then
2099 ac_sed_cmds
="sed -f conftest.s$ac_file"
2101 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2103 ac_file
=`expr $ac_file + 1`
2105 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2108 if test -z "$ac_sed_cmds"; then
2113 cat >> $CONFIG_STATUS <<EOF
2115 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2117 cat >> $CONFIG_STATUS <<\EOF
2118 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2121 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2122 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2123 *) ac_file_in
="${ac_file}.in" ;;
2126 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2128 # Remove last slash and all that follows it. Not all systems have dirname.
2129 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2130 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2131 # The file is in a subdirectory.
2132 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2133 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2134 # A "../" for each directory in $ac_dir_suffix.
2135 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2137 ac_dir_suffix
= ac_dots
=
2140 case "$ac_given_srcdir" in
2142 if test -z "$ac_dots"; then top_srcdir
=.
2143 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2144 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2146 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2147 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2150 case "$ac_given_INSTALL" in
2151 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2152 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2155 echo creating
"$ac_file"
2157 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2159 *Makefile
*) ac_comsub
="1i\\
2160 # $configure_input" ;;
2164 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2166 s%@configure_input@%$configure_input%g
2167 s%@srcdir@%$srcdir%g
2168 s%@top_srcdir@%$top_srcdir%g
2169 s%@INSTALL@%$INSTALL%g
2170 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2177 # ac_d sets the value in "#define NAME VALUE" lines.
2178 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2179 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2182 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2183 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2184 ac_uB
='\([ ]\)%\1#\2define\3'
2187 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2188 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2189 ac_eB
='$%\1#\2define\3'
2193 if test "${CONFIG_HEADERS+set}" != set; then
2195 cat >> $CONFIG_STATUS <<EOF
2196 CONFIG_HEADERS="config.h"
2198 cat >> $CONFIG_STATUS <<\EOF
2200 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2203 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2204 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2205 *) ac_file_in
="${ac_file}.in" ;;
2208 echo creating
$ac_file
2210 rm -f conftest.frag conftest.
in conftest.out
2211 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2212 cat $ac_file_inputs > conftest.
in
2216 # Transform confdefs.h into a sed script conftest.vals that substitutes
2217 # the proper values into config.h.in to produce config.h. And first:
2218 # Protect against being on the right side of a sed subst in config.status.
2219 # Protect against being in an unquoted here document in config.status.
2221 cat > conftest.hdr
<<\EOF
2224 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2228 sed -n -f conftest.hdr confdefs.h > conftest.vals
2231 # This sed command replaces #undef with comments. This is necessary, for
2232 # example, in the case of _POSIX_SOURCE, which is predefined and required
2233 # on some systems where configure will not decide to define it.
2234 cat >> conftest.vals <<\EOF
2235 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2238 # Break up conftest.vals because some shells have a limit on
2239 # the size of here documents, and old seds have small limits too.
2244 ac_lines=`grep -c . conftest.vals
`
2245 # grep -c gives empty output for an empty file on some AIX systems.
2246 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2247 # Write a limited-size here document to conftest.frag.
2248 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2249 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2251 sed -f conftest.frag conftest.in > conftest.out
2253 mv conftest.out conftest.in
2255 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2257 mv conftest.tail conftest.vals
2261 cat >> $CONFIG_STATUS <<\EOF
2262 rm -f conftest.frag conftest.h
2263 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2264 cat conftest.in >> conftest.h
2266 if cmp -s $ac_file conftest.h 2>/dev/null; then
2267 echo "$ac_file is unchanged"
2270 # Remove last slash and all that follows it. Not all systems have dirname.
2271 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2272 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2273 # The file is in a subdirectory.
2274 test ! -d "$ac_dir" && mkdir "$ac_dir"
2277 mv conftest.h $ac_file
2283 cat >> $CONFIG_STATUS <<EOF
2284 ac_sources="`echo $libc_link_sources`"
2285 ac_dests="`echo $libc_link_dests`"
2288 cat >> $CONFIG_STATUS <<\EOF
2289 srcdir=$ac_given_srcdir
2290 while test -n "$ac_sources"; do
2291 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2292 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2294 echo "linking $srcdir/$ac_source to $ac_dest"
2296 if test ! -r $srcdir/$ac_source; then
2297 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2301 # Make relative symlinks.
2302 # Remove last slash and all that follows it. Not all systems have dirname.
2303 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2304 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2305 # The dest file is in a subdirectory.
2306 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2307 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2308 # A "../" for each directory in $ac_dest_dir_suffix.
2309 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2311 ac_dest_dir_suffix= ac_dots=
2315 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2316 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2319 # Make a symlink if possible; otherwise try a hard link.
2320 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2321 ln $srcdir/$ac_source $ac_dest; then :
2323 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2327 cat >> $CONFIG_STATUS <<EOF
2328 echo '$config_vars' >> config.make
2330 cat >> $CONFIG_STATUS <<\EOF
2334 chmod +x $CONFIG_STATUS
2335 rm -fr confdefs* $ac_clean_files
2336 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2338 if test "$no_recursion" != yes; then
2340 # Remove --cache-file and --srcdir arguments so they do not pile up.
2341 ac_sub_configure_args=
2343 for ac_arg in $ac_configure_args; do
2344 if test -n "$ac_prev"; then
2349 -cache-file | --cache-file | --cache-fil | --cache-fi \
2350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2351 ac_prev=cache_file ;;
2352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2359 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2363 for ac_config_dir in $add_ons; do
2365 # Do not complain, so a configure script can configure whichever
2366 # parts of a large source tree are present.
2367 if test ! -d $srcdir/$ac_config_dir; then
2371 echo configuring in $ac_config_dir
2376 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2378 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2386 # A "../" for each directory in /$ac_config_dir.
2387 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2390 .) # No --srcdir option. We are building in place.
2391 ac_sub_srcdir=$srcdir ;;
2392 /*) # Absolute path.
2393 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2395 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2398 # Check for guested configure; otherwise get Cygnus style configure.
2399 if test -f $ac_sub_srcdir/configure; then
2400 ac_sub_configure=$ac_sub_srcdir/configure
2401 elif test -f $ac_sub_srcdir/configure.in; then
2402 ac_sub_configure=$ac_configure
2404 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2408 # The recursion is here.
2409 if test -n "$ac_sub_configure"; then
2411 # Make the cache file name correct relative to the subdirectory.
2412 case "$cache_file" in
2413 /*) ac_sub_cache_file=$cache_file ;;
2415 ac_sub_cache_file="$ac_dots$cache_file" ;;
2417 case "$ac_given_INSTALL" in
2418 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2419 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2422 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2423 # The eval makes quoting arguments work.
2424 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2427 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }