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=DIR... configure and build named extra directories"
54 --enable-static-nss build static NSS modules [default=no]"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.12"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=include/features.h
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
561 if test -r /vmunix; then
562 kernel_id=`strings /vmunix | grep UNIX`
563 elif test -r /dynix; then
564 kernel_id=`strings /dynix | grep DYNIX`
572 # This will get text that should go into config.make.
575 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
576 # Check whether --with-gmp or --without-gmp was given.
577 if test "${with_gmp+set}" = set; then
580 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
582 *) config_vars="$config_vars
583 gmp-srcdir = $withval" ;;
588 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
589 # Check whether --with-gettext or --without-gettext was given.
590 if test "${with_gettext+set}" = set; then
591 withval="$with_gettext"
592 case "$with_gettext" in
594 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
597 config_vars="$config_vars
598 gettext-srcdir = $withval" ;;
604 # Check whether --with-fp or --without-fp was given.
605 if test "${with_fp+set}" = set; then
612 # Check whether --with-binutils or --without-binutils was given.
613 if test "${with_binutils+set}" = set; then
614 withval="$with_binutils"
615 path_binutils=$withval
620 # Check whether --with-elf or --without-elf was given.
621 if test "${with_elf+set}" = set; then
629 # Check whether --enable-libio or --disable-libio was given.
630 if test "${enable_libio+set}" = set; then
631 enableval="$enable_libio"
632 if test $enableval = yes; then
642 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
643 if test "${enable_sanity_checks+set}" = set; then
644 enableval="$enable_sanity_checks"
645 enable_sanity=$enableval
651 # Check whether --enable-static or --disable-static was given.
652 if test "${enable_static+set}" = set; then
653 enableval="$enable_static"
659 # Check whether --enable-shared or --disable-shared was given.
660 if test "${enable_shared+set}" = set; then
661 enableval="$enable_shared"
667 # Check whether --enable-profile or --disable-profile was given.
668 if test "${enable_profile+set}" = set; then
669 enableval="$enable_profile"
675 # Check whether --enable-omitfp or --disable-omitfp was given.
676 if test "${enable_omitfp+set}" = set; then
677 enableval="$enable_omitfp"
683 # Check whether --enable-bounded or --disable-bounded was given.
684 if test "${enable_bounded+set}" = set; then
685 enableval="$enable_bounded"
691 # Check whether --enable-versioning or --disable-versioning was given.
692 if test "${enable_versioning+set}" = set; then
693 enableval="$enable_versioning"
694 enable_versioning=$enableval
696 enable_versioning=yes
700 # Check whether --enable-add-ons or --disable-add-ons was given.
701 if test "${enable_add_ons+set}" = set; then
702 enableval="$enable_add_ons"
703 add_ons=`echo "$enableval" | sed 's/,/ /g'`
709 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
710 if test -f $ac_dir/install-sh; then
712 ac_install_sh="$ac_aux_dir/install-sh -c"
714 elif test -f $ac_dir/install.sh; then
716 ac_install_sh="$ac_aux_dir/install.sh -c"
720 if test -z "$ac_aux_dir"; then
721 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
723 ac_config_guess=$ac_aux_dir/config.guess
724 ac_config_sub=$ac_aux_dir/config.sub
725 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
730 if test x"$add_ons" != x; then
731 for f in $add_ons; do
732 # Test whether such a subdir really exists.
733 if test -d $srcdir/$f; then
734 add_ons_pfx="$add_ons_pfx $f/"
736 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
741 # Check whether --enable-static-nss or --disable-static-nss was given.
742 if test "${enable_static_nss+set}" = set; then
743 enableval="$enable_static_nss"
744 static_nss=$enableval
749 if test x"$static_nss" = xyes; then
750 cat >> confdefs.h <<\EOF
751 #define DO_STATIC_NSS 1
757 # Make sure we can run config.sub.
758 if $ac_config_sub sun4 >/dev/null 2>&1; then :
759 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
762 echo $ac_n "checking host system type""... $ac_c" 1>&6
763 echo "configure:764: checking host system type" >&5
766 case "$host_alias" in
770 if host_alias=`$ac_config_guess`; then :
771 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
773 *) host_alias=$nonopt ;;
777 host=`$ac_config_sub $host_alias`
778 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$host" 1>&6
784 # The way shlib-versions is used to generate soversions.mk uses a
785 # fairly simplistic model for name recognition that can't distinguish
786 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
787 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
788 # tell. This doesn't get used much beyond that, so it's fairly safe.
793 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
798 ### I put this here to prevent those annoying emails from people who cannot
799 ### read and try to compile glibc on unsupported platforms. --drepper
801 ### By using the undocumented --enable-hacker-mode option for configure
802 ### one can skip this test to make the configuration not fail for unsupported
805 if test -z "$enable_hacker_mode"; then
810 echo "*** The GNU C library is currently not available for this platform."
811 echo "*** So far nobody cared to port it and if there is no volunteer it"
812 echo "*** might never happen. So, if you have interest to see glibc on"
813 echo "*** this platform visit"
814 echo "*** http://www.gnu.ai.mit.edu/software/libc/porting.html"
815 echo "*** and join the group of porters"
821 # We keep the original values in `$config_*' and never modify them, so we
822 # can write them unchanged into config.make. Everything else uses
823 # $machine, $vendor, and $os, and changes them whenever convenient.
824 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
826 # Some configurations imply other options.
828 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
829 # These systems always use GNU tools.
830 gnu_ld=yes gnu_as=yes ;;
833 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
834 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
836 gnu* | linux* | sysv4* | solaris2*)
837 # These systems (almost) always use the ELF format.
842 machine=$config_machine
843 vendor=$config_vendor
846 # Expand the configuration machine name into a subdirectory by architecture
847 # type and particular chip.
849 a29k | am29000) base_machine=a29k machine=a29k ;;
850 alpha*) base_machine=alpha machine=alpha/$machine ;;
851 arm*) base_machine=arm machine=arm/$machine ;;
852 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
853 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
854 hppa*) base_machine=hppa machine=hppa/$machine ;;
855 i[3456]86) base_machine=i386 machine=i386/$machine ;;
856 m680?0) base_machine=m68k machine=m68k/$machine ;;
857 m68k) base_machine=m68k machine=m68k/m68020 ;;
858 m88???) base_machine=m88k machine=m88k/$machine ;;
859 m88k) base_machine=m88k machine=m88k/m88100 ;;
860 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
861 mips*) base_machine=mips machine=mips/$machine ;;
863 base_machine=sparc machine=sparc/sparc32 ;;
864 sparcv8 | supersparc | hypersparc)
865 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
866 sparc64 | ultrasparc)
867 base_machine=sparc machine=sparc/sparc64 ;;
871 if test "$base_machine" = "i386"; then
872 cat >> confdefs.h <<\EOF
873 #define USE_REGPARMS 1
878 # Compute the list of sysdep directories for this configuration.
879 # This can take a while to compute.
880 sysdep_dir=$srcdir/sysdeps
881 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
882 echo "configure:883: checking sysdep dirs" >&5
883 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
884 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
889 netbsd* | 386bsd* | freebsd* | bsdi*)
890 base_os=unix/bsd/bsd4.4 ;;
891 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
893 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
896 base_os=unix/sysv/sysv4 ;;
898 base_os=standalone ;;
903 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
906 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
910 o=`echo $tail | sed 's/[0-9]*$//'`
911 if test $o != $tail; then
914 # For linux-gnu, try linux-gnu, then linux.
915 o=`echo $tail | sed 's/-.*$//'`
916 if test $o != $tail; then
920 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
923 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
929 # For sparc/sparc9, try sparc/sparc9 and then sparc.
932 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
934 # Prepend the machine's FPU directory unless --without-fp.
935 if test "$with_fp" = yes; then
943 # Find what sysdep directories exist.
945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
946 for d in $add_ons_pfx ''; do
947 for b in $base ''; do
948 for m0 in $mach ''; do
949 for v in /$vendor ''; do
950 for o in /$ostry ''; do
951 for m in $mach ''; do
952 if test "$m0$b$v$o$m"; then
953 try="${d}sysdeps$m0$b$v$o$m"
954 test -n "$enable_debug_configure" &&
955 echo "$0 DEBUG: try $try" >&2
958 *) dest=$srcdir/$try ;;
960 if test -d $dest; then
961 sysnames="$sysnames $try"
962 { test -n "$o" || test -n "$b"; } && os_used=t
963 { test -n "$m" || test -n "$m0"; } && machine_used=t
974 if test -z "$os_used" && test "$os" != none; then
975 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
977 if test -z "$machine_used" && test "$machine" != none; then
978 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
981 # We have now validated the configuration.
984 # If using ELF, look for an `elf' subdirectory of each machine directory.
985 # We prepend these rather than inserting them whereever the machine appears
986 # because things specified by the machine's ELF ABI should override
987 # OS-specific things, and should always be the same for any OS on the
988 # machine (otherwise what's the point of an ABI?).
989 if test "$elf" = yes; then
991 for d in $add_ons_pfx ''; do
994 *) xsrcdir=$srcdir/ ;;
997 if test -d $xsrcdir${d}sysdeps$m/elf; then
998 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1002 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1006 # Expand the list of system names into a full list of directories
1007 # from each element's parent name and Implies file (if present).
1010 while test $# -gt 0; do
1014 case " $names " in *" $name "*)
1015 # Already in the list.
1019 # Report each name as we discover it, so there is no long pause in output.
1020 echo $ac_n "$name $ac_c" >&6
1022 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1026 *) xsrcdir=$srcdir/ ;;
1028 test -n "$enable_debug_configure" &&
1029 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1031 if test -f $xsrcdir$name/Implies; then
1032 # Collect more names from the `Implies' file (removing comments).
1033 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1035 for x in $implied_candidate; do
1036 if test -d $xsrcdir$name_base/$x; then
1037 implied="$implied $name_base/$x";
1039 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1046 # Add NAME to the list of names.
1047 names="$names $name"
1049 # Find the parent of NAME, using the empty string if it has none.
1050 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1052 # Add the names implied by NAME, and NAME's parent (if it has one), to
1053 # the list of names to be processed (the argument list). We prepend the
1054 # implied names to the list and append the parent. We want implied
1055 # directories to come before further directories inferred from the
1056 # configuration components; this ensures that for sysv4, unix/common
1057 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1059 sysnames="`echo $implied $* $parent`"
1060 test -n "$sysnames" && set $sysnames
1063 # Add the default directories.
1064 sysnames="$names sysdeps/generic"
1066 # The other names were emitted during the scan.
1067 echo "$ac_t""sysdeps/generic" 1>&6
1072 # Find a good install program. We prefer a C program (faster),
1073 # so one script is as good as another. But avoid the broken or
1074 # incompatible versions:
1075 # SysV /etc/install, /usr/sbin/install
1076 # SunOS /usr/etc/install
1077 # IRIX /sbin/install
1079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1081 # ./install, which can be erroneously created by make from ./install.sh.
1082 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1083 echo "configure:1084: checking for a BSD compatible install" >&5
1084 if test -z "$INSTALL"; then
1085 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1089 for ac_dir in $PATH; do
1090 # Account for people who put trailing slashes in PATH elements.
1092 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1094 # OSF1 and SCO ODT 3.0 have their own names for install.
1095 for ac_prog in ginstall installbsd scoinst install; do
1096 if test -f $ac_dir/$ac_prog; then
1097 if test $ac_prog = install &&
1098 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1099 # AIX install. It has an incompatible calling convention.
1100 # OSF/1 installbsd also uses dspmsg, but is usable.
1103 ac_cv_path_install="$ac_dir/$ac_prog -c"
1114 if test "${ac_cv_path_install+set}" = set; then
1115 INSTALL="$ac_cv_path_install"
1117 # As a last resort, use the slow shell script. We don't cache a
1118 # path for INSTALL within a source directory, because that will
1119 # break other packages using the cache if that directory is
1120 # removed, or if the path is relative.
1121 INSTALL="$ac_install_sh"
1124 echo "$ac_t""$INSTALL" 1>&6
1126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1127 # It thinks the first close brace ends the variable substitution.
1128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1132 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1133 # The makefiles need to use a different form to find it in $srcdir.
1134 INSTALL='\$(..)./install-sh -c'
1136 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether ln -s works" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1142 if ln -s X conftestdata 2>/dev/null
1145 ac_cv_prog_LN_S="ln -s"
1150 LN_S="$ac_cv_prog_LN_S"
1151 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1152 echo "$ac_t""yes" 1>&6
1154 echo "$ac_t""no" 1>&6
1157 for ac_prog in msgfmt gmsgfmt
1159 # Extract the first word of "$ac_prog", so it can be a program name with args.
1160 set dummy $ac_prog; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$MSGFMT"; then
1167 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1170 for ac_dir in $PATH; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_MSGFMT="$ac_prog"
1180 MSGFMT="$ac_cv_prog_MSGFMT"
1181 if test -n "$MSGFMT"; then
1182 echo "$ac_t""$MSGFMT" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 test -n "$MSGFMT" && break
1189 test -n "$MSGFMT" || MSGFMT=":"
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1203 for ac_dir in $PATH; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1214 if test -n "$CC"; then
1215 echo "$ac_t""$CC" 1>&6
1217 echo "$ac_t""no" 1>&6
1220 if test -z "$CC"; then
1221 # Extract the first word of "cc", so it can be a program name with args.
1222 set dummy cc; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$CC"; then
1229 ac_cv_prog_CC="$CC" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1233 for ac_dir in $PATH; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1237 ac_prog_rejected=yes
1245 if test $ac_prog_rejected = yes; then
1246 # We found a bogon in the path, so make sure we never use it.
1247 set dummy $ac_cv_prog_CC
1249 if test $# -gt 0; then
1250 # We chose a different compiler from the bogus one.
1251 # However, it has the same basename, so the bogon will be chosen
1252 # first if we set CC to just the basename; use the full file name.
1254 set dummy "$ac_dir/$ac_word" "$@"
1262 if test -n "$CC"; then
1263 echo "$ac_t""$CC" 1>&6
1265 echo "$ac_t""no" 1>&6
1268 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1271 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1278 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1279 cross_compiling=$ac_cv_prog_cc_cross
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1287 ac_cv_prog_cc_works=yes
1288 # If we can't run a trivial program, we are probably using a cross compiler.
1289 if (./conftest; exit) 2>/dev/null; then
1290 ac_cv_prog_cc_cross=no
1292 ac_cv_prog_cc_cross=yes
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 ac_cv_prog_cc_works=no
1301 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1302 if test $ac_cv_prog_cc_works = no; then
1304 ac_cv_prog_cc_cross=yes
1308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1310 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1312 cross_compiling=$ac_cv_prog_cc_cross
1314 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether we are using GNU C" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.c <<EOF
1324 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1331 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1333 if test $ac_cv_prog_gcc = yes; then
1336 cat > conftest.c <<EOF
1337 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1341 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1342 if test -z "$CFLAGS"; then
1346 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1349 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1352 echo $ac_n "checking build system type""... $ac_c" 1>&6
1353 echo "configure:1354: checking build system type" >&5
1356 case "$build_alias" in
1359 NONE) build_alias=$host_alias ;;
1360 *) build_alias=$nonopt ;;
1364 build=`$ac_config_sub $build_alias`
1365 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$ac_t""$build" 1>&6
1370 if test $host != $build; then
1371 for ac_prog in gcc cc
1373 # Extract the first word of "$ac_prog", so it can be a program name with args.
1374 set dummy $ac_prog; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test -n "$BUILD_CC"; then
1381 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1384 for ac_dir in $PATH; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1387 ac_cv_prog_BUILD_CC="$ac_prog"
1394 BUILD_CC="$ac_cv_prog_BUILD_CC"
1395 if test -n "$BUILD_CC"; then
1396 echo "$ac_t""$BUILD_CC" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 test -n "$BUILD_CC" && break
1406 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1407 echo "configure:1408: checking how to run the C preprocessor" >&5
1408 # On Suns, sometimes $CPP names a directory.
1409 if test -n "$CPP" && test -d "$CPP"; then
1412 if test -z "$CPP"; then
1413 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 # This must be in double quotes, not single quotes, because CPP may get
1417 # substituted into the Makefile and "${CC-cc}" will confuse make.
1419 # On the NeXT, cc -E runs the code through the compiler's parser,
1420 # not just through cpp.
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1428 { (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1429 ac_err=`grep -v '^ *+' conftest.out`
1430 if test -z "$ac_err"; then
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 CPP="${CC-cc} -E -traditional-cpp"
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1445 { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1446 ac_err=`grep -v '^ *+' conftest.out`
1447 if test -z "$ac_err"; then
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1459 ac_cv_prog_CPP="$CPP"
1461 CPP="$ac_cv_prog_CPP"
1463 ac_cv_prog_CPP="$CPP"
1465 echo "$ac_t""$CPP" 1>&6
1467 # Was a --with-binutils option given?
1468 if test -n "$path_binutils"; then
1469 # Make absolute; ensure a single trailing slash.
1470 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1471 CC="$CC -B$with_binutils"
1473 AS=`$CC -print-file-name=as`
1474 LD=`$CC -print-file-name=ld`
1476 # Determine whether we are using GNU binutils.
1477 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1478 echo "configure:1479: checking whether $AS is GNU as" >&5
1479 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 # Most GNU programs take a -v and spit out some text including
1483 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1484 if $AS -v </dev/null 2>&1 | grep -q GNU; then
1485 libc_cv_prog_as_gnu=yes
1487 libc_cv_prog_as_gnu=no
1491 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1493 gnu_as=$libc_cv_prog_as_gnu
1495 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1496 echo "configure:1497: checking whether $LD is GNU ld" >&5
1497 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 # Most GNU programs take a -v and spit out some text including
1501 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1502 if $LD -v </dev/null 2>&1 | grep -q GNU; then
1503 libc_cv_prog_ld_gnu=yes
1505 libc_cv_prog_ld_gnu=no
1509 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1510 gnu_ld=$libc_cv_prog_ld_gnu
1511 if test $host != $build; then
1512 ac_tool_prefix=${host_alias}-
1517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}ar; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$AR"; then
1525 ac_cv_prog_AR="$AR" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1528 for ac_dir in $PATH; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f $ac_dir/$ac_word; then
1531 ac_cv_prog_AR="${ac_tool_prefix}ar"
1536 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1540 if test -n "$AR"; then
1541 echo "$ac_t""$AR" 1>&6
1543 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 if test -n "$RANLIB"; then
1556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1559 for ac_dir in $PATH; do
1560 test -z "$ac_dir" && ac_dir=.
1561 if test -f $ac_dir/$ac_word; then
1562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1569 RANLIB="$ac_cv_prog_RANLIB"
1570 if test -n "$RANLIB"; then
1571 echo "$ac_t""$RANLIB" 1>&6
1573 echo "$ac_t""no" 1>&6
1577 if test -z "$ac_cv_prog_RANLIB"; then
1578 if test -n "$ac_tool_prefix"; then
1579 # Extract the first word of "ranlib", so it can be a program name with args.
1580 set dummy ranlib; ac_word=$2
1581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1582 echo "configure:1583: checking for $ac_word" >&5
1583 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 if test -n "$RANLIB"; then
1587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1590 for ac_dir in $PATH; do
1591 test -z "$ac_dir" && ac_dir=.
1592 if test -f $ac_dir/$ac_word; then
1593 ac_cv_prog_RANLIB="ranlib"
1598 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1601 RANLIB="$ac_cv_prog_RANLIB"
1602 if test -n "$RANLIB"; then
1603 echo "$ac_t""$RANLIB" 1>&6
1605 echo "$ac_t""no" 1>&6
1614 # Extract the first word of "bash", so it can be a program name with args.
1615 set dummy bash; ac_word=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5
1618 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1623 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1627 for ac_dir in $PATH; do
1628 test -z "$ac_dir" && ac_dir=.
1629 if test -f $ac_dir/$ac_word; then
1630 ac_cv_path_BASH="$ac_dir/$ac_word"
1635 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1639 BASH="$ac_cv_path_BASH"
1640 if test -n "$BASH"; then
1641 echo "$ac_t""$BASH" 1>&6
1643 echo "$ac_t""no" 1>&6
1646 if test "$BASH" != no &&
1647 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1648 libc_cv_have_bash2=yes
1650 libc_cv_have_bash2=no
1654 if test "$BASH" = no; then
1655 # Extract the first word of "ksh", so it can be a program name with args.
1656 set dummy ksh; 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_KSH'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1664 ac_cv_path_KSH="$KSH" # 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_KSH="$ac_dir/$ac_word"
1676 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1680 KSH="$ac_cv_path_KSH"
1681 if test -n "$KSH"; then
1682 echo "$ac_t""$KSH" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 if test "$KSH" = no; then
1690 libc_cv_have_ksh=yes
1695 libc_cv_have_ksh=yes
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1714 for ac_dir in $PATH; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_path_PERL="$ac_dir/$ac_word"
1725 PERL="$ac_cv_path_PERL"
1726 if test -n "$PERL"; then
1727 echo "$ac_t""$PERL" 1>&6
1729 echo "$ac_t""no" 1>&6
1732 test -n "$PERL" && break
1734 test -n "$PERL" || PERL="no"
1738 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1739 echo "configure:1740: checking for signed size_t type" >&5
1740 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 echo '#include <stddef.h>
1744 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1745 if eval "$ac_cpp conftest.c 2>/dev/null" \
1746 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1747 libc_cv_signed_size_t=no
1749 libc_cv_signed_size_t=yes
1754 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1755 if test $libc_cv_signed_size_t = yes; then
1756 cat >> confdefs.h <<\EOF
1757 #undef __SIZE_TYPE__
1758 #define __SIZE_TYPE__ unsigned
1762 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1763 echo "configure:1764: checking for libc-friendly stddef.h" >&5
1764 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 #define __need_size_t
1771 #define __need_wchar_t
1776 size_t size; wchar_t wchar;
1778 #error stddef.h ignored __need_*
1780 if (&size == NULL || &wchar == NULL) abort ();
1783 if { (eval echo configure:1784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1785 libc_cv_friendly_stddef=yes
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 libc_cv_friendly_stddef=no
1795 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1796 if test $libc_cv_friendly_stddef = yes; then
1797 config_vars="$config_vars
1798 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1801 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether we need to use -P to assemble .S files" >&5
1803 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.S <<EOF
1807 #include "confdefs.h"
1808 /* Nothing whatsoever. */
1810 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1811 libc_cv_need_minus_P=no
1813 libc_cv_need_minus_P=yes
1818 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1819 if test $libc_cv_need_minus_P = yes; then
1820 config_vars="$config_vars
1821 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1824 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1825 echo "configure:1826: checking for assembler global-symbol directive" >&5
1826 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 libc_cv_asm_global_directive=UNKNOWN
1830 for ac_globl in .globl .global; do
1831 cat > conftest.s <<EOF
1836 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1837 libc_cv_asm_global_directive=${ac_globl}
1840 test $libc_cv_asm_global_directive != UNKNOWN && break
1844 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1845 if test $libc_cv_asm_global_directive = UNKNOWN; then
1846 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1848 cat >> confdefs.h <<EOF
1849 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1854 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1855 echo "configure:1856: checking for .set assembler directive" >&5
1856 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.s <<EOF
1862 .set glibc_conftest_frobozz,foo
1863 $libc_cv_asm_global_directive glibc_conftest_frobozz
1865 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1866 # (but it doesn't work), so we must do a linking check to be sure.
1867 cat > conftest1.c <<\EOF
1868 extern int glibc_conftest_frobozz;
1869 main () { printf ("%d\n", glibc_conftest_frobozz); }
1871 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1872 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1873 libc_cv_asm_set_directive=yes
1875 libc_cv_asm_set_directive=no
1880 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1881 if test $libc_cv_asm_set_directive = yes; then
1882 cat >> confdefs.h <<\EOF
1883 #define HAVE_ASM_SET_DIRECTIVE 1
1888 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1889 echo "configure:1890: checking for .symver assembler directive" >&5
1890 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 cat > conftest.s <<EOF
1896 .symver _sym,sym@VERS
1898 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1899 libc_cv_asm_symver_directive=yes
1901 libc_cv_asm_symver_directive=no
1906 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1907 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1908 echo "configure:1909: checking for ld --version-script" >&5
1909 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 if test $libc_cv_asm_symver_directive = yes; then
1913 cat > conftest.s <<EOF
1916 .symver _sym,sym@VERS
1918 cat > conftest.map <<EOF
1923 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1924 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
1925 -nostartfiles -nostdlib
1926 -Wl,--version-script,conftest.map
1927 1>&5'; { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
1929 libc_cv_ld_version_script_option=yes
1931 libc_cv_ld_version_script_option=no
1934 libc_cv_ld_version_script_option=no
1937 libc_cv_ld_version_script_option=no
1942 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
1943 if test $libc_cv_asm_symver_directive = yes &&
1944 test $libc_cv_ld_version_script_option = yes &&
1945 test $enable_versioning = yes; then
1947 cat >> confdefs.h <<\EOF
1948 #define DO_VERSIONING 1
1956 if test $elf = yes; then
1957 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1958 echo "configure:1959: checking for .previous assembler directive" >&5
1959 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.s <<EOF
1963 .section foo_section
1966 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1967 libc_cv_asm_previous_directive=yes
1969 libc_cv_asm_previous_directive=no
1974 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1975 if test $libc_cv_asm_previous_directive = yes; then
1976 cat >> confdefs.h <<\EOF
1977 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1981 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1982 echo "configure:1983: checking for .popsection assembler directive" >&5
1983 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.s <<EOF
1987 .pushsection foo_section
1990 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1991 libc_cv_asm_popsection_directive=yes
1993 libc_cv_asm_popsection_directive=no
1998 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1999 if test $libc_cv_asm_popsection_directive = yes; then
2000 cat >> confdefs.h <<\EOF
2001 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2008 if test $elf != yes; then
2009 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2010 echo "configure:2011: checking for .init and .fini sections" >&5
2011 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2019 asm (".section .init");
2020 asm (".section .fini");
2024 if { (eval echo configure:2025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2026 libc_cv_have_initfini=yes
2028 echo "configure: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 libc_cv_have_initfini=no
2036 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2037 if test $libc_cv_have_initfini = yes; then
2038 cat >> confdefs.h <<\EOF
2039 #define HAVE_INITFINI 1
2047 if test $elf = yes; then
2048 libc_cv_asm_underscores=no
2050 if test $ac_cv_prog_cc_works = yes; then
2051 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2052 echo "configure:2053: checking for _ prefix on C symbol names" >&5
2053 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 asm ("_glibc_foobar:");
2064 if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2066 libc_cv_asm_underscores=yes
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 libc_cv_asm_underscores=no
2076 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2078 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2079 echo "configure:2080: checking for _ prefix on C symbol names" >&5
2080 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 void underscore_test(void) {
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 if grep _underscore_test conftest* >/dev/null; then
2092 libc_cv_asm_underscores=yes
2095 libc_cv_asm_underscores=no
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 libc_cv_asm_underscores=no
2106 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2109 if test $libc_cv_asm_underscores = no; then
2110 cat >> confdefs.h <<\EOF
2111 #define NO_UNDERSCORES 1
2116 if test $elf = yes; then
2117 libc_cv_weak_symbols=yes
2118 libc_cv_asm_weak_directive=yes
2119 libc_cv_asm_weakext_directive=no
2121 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2122 echo "configure:2123: checking for assembler .weak directive" >&5
2123 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.s <<EOF
2128 ${libc_cv_asm_global_directive} foo
2131 .weak bar; bar = foo
2133 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2134 libc_cv_asm_weak_directive=yes
2136 libc_cv_asm_weak_directive=no
2141 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2143 if test $libc_cv_asm_weak_directive = no; then
2144 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2145 echo "configure:2146: checking for assembler .weakext directive" >&5
2146 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.s <<EOF
2151 ${libc_cv_asm_global_directive} foo
2156 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2157 libc_cv_asm_weakext_directive=yes
2159 libc_cv_asm_weakext_directive=no
2164 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2169 if test $libc_cv_asm_weak_directive = yes; then
2170 cat >> confdefs.h <<\EOF
2171 #define HAVE_ASM_WEAK_DIRECTIVE 1
2174 elif test $libc_cv_asm_weakext_directive = yes; then
2175 cat >> confdefs.h <<\EOF
2176 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2181 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2182 echo "configure:2183: checking for ld --no-whole-archive" >&5
2183 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.c <<\EOF
2191 if { ac_try='${CC-cc} $CFLAGS
2192 -nostdlib -nostartfiles -Wl,--no-whole-archive
2193 -o conftest conftest.c 1>&5'; { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2194 libc_cv_ld_no_whole_archive=yes
2196 libc_cv_ld_no_whole_archive=no
2201 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2203 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2204 echo "configure:2205: checking for gcc -fno-exceptions" >&5
2205 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.c <<\EOF
2213 if { ac_try='${CC-cc} $CFLAGS
2214 -nostdlib -nostartfiles -fno-exceptions
2215 -o conftest conftest.c 1>&5'; { (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2216 libc_cv_gcc_no_exceptions=yes
2218 libc_cv_gcc_no_exceptions=no
2223 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2225 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2226 echo "configure:2227: checking for DWARF2 unwind info support" >&5
2227 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.c <<EOF
2231 #line 2232 "configure"
2232 static char __EH_FRAME_BEGIN__;
2235 __register_frame (__EH_FRAME_BEGIN__);
2236 __deregister_frame (__EH_FRAME_BEGIN__);
2240 /* FIXME: this is fragile. */
2250 if { ac_try='${CC-cc} $CFLAGS
2251 -nostdlib -nostartfiles
2252 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2253 libc_cv_gcc_dwarf2_unwind_info=yes
2255 libc_cv_gcc_dwarf2_unwind_info=no
2260 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2261 if test $libc_cv_gcc_dwarf2_unwind_info = yes; then
2262 cat >> confdefs.h <<\EOF
2263 #define HAVE_DWARF2_UNWIND_INFO 1
2268 ### End of automated tests.
2269 ### Now run sysdeps configure fragments.
2271 # sysdeps configure fragments may set these with files to be linked below.
2275 # Iterate over all the sysdep directories we will use, running their
2276 # configure fragments, and looking for a uname implementation.
2278 for dir in $sysnames; do
2281 *) dest=$srcdir/$dir ;;
2283 if test -r $dest/configure; then
2284 echo "$ac_t""running configure fragment for $dest" 1>&6
2288 if test -z "$uname"; then
2289 if test -r $dest/uname.c ||
2290 test -r $dest/uname.S ||
2291 { test -r $dest/syscalls.list &&
2292 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2300 # If we will use the generic uname implementation, we must figure out what
2301 # it will say by examining the system, and write the results in config-name.h.
2302 if test "$uname" = "sysdeps/generic"; then
2304 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2305 if test $uname_sysname != $config_os; then
2306 config_release=`echo $config_os | sed s/$uname_sysname//`
2309 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2310 echo "configure:2311: checking OS release for uname" >&5
2311 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2315 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2316 != x$config_release; then
2317 # The configuration release is a substring of the kernel release.
2318 libc_cv_uname_release=$kernel_release
2319 elif test x$config_release != x; then
2320 libc_cv_uname_release=$config_release
2321 elif test x$kernel_release != x; then
2322 libc_cv_uname_release=$kernel_release
2324 libc_cv_uname_release=unknown
2328 echo "$ac_t""$libc_cv_uname_release" 1>&6
2329 uname_release="$libc_cv_uname_release"
2331 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2332 echo "configure:2333: checking OS version for uname" >&5
2333 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2337 if test -n "$kernel_version"; then
2338 libc_cv_uname_version="$kernel_version"
2340 libc_cv_uname_version=unknown
2344 echo "$ac_t""$libc_cv_uname_version" 1>&6
2345 uname_version="$libc_cv_uname_version"
2347 config_uname=config-name.h:config-name.in
2349 # For non-generic uname, we don't need to create config-name.h at all.
2353 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2354 echo "configure:2355: checking stdio selection" >&5
2357 libio) cat >> confdefs.h <<\EOF
2358 #define USE_IN_LIBIO 1
2361 default) stdio=stdio ;;
2363 echo "$ac_t""$stdio" 1>&6
2365 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2366 echo "configure:2367: checking ldap selection" >&5
2375 echo "$ac_t""$ldap" 1>&6
2384 if test $gnu_ld = yes; then
2385 cat >> confdefs.h <<\EOF
2386 #define HAVE_GNU_LD 1
2390 if test $gnu_as = yes; then
2391 cat >> confdefs.h <<\EOF
2392 #define HAVE_GNU_AS 1
2396 if test $elf = yes; then
2397 cat >> confdefs.h <<\EOF
2405 if test $shared = default; then
2406 if test $gnu_ld = yes; then
2409 # For now we do not assume shared libs are available. In future more
2410 # tests might become available.
2422 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2425 config_makefile=Makefile
2428 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2432 cat > confcache <<\EOF
2433 # This file is a shell script that caches the results of configure
2434 # tests run on this system so they can be shared between configure
2435 # scripts and configure runs. It is not useful on other systems.
2436 # If it contains results you don't want to keep, you may remove or edit it.
2438 # By default, configure uses ./config.cache as the cache file,
2439 # creating it if it does not exist already. You can give configure
2440 # the --cache-file=FILE option to use a different cache file; that is
2441 # what configure does when it calls configure scripts in
2442 # subdirectories, so they share the cache.
2443 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2444 # config.status only pays attention to the cache file if you give it the
2445 # --recheck option to rerun configure.
2448 # The following way of writing the cache mishandles newlines in values,
2449 # but we know of no workaround that is simple, portable, and efficient.
2450 # So, don't put newlines in cache variables' values.
2451 # Ultrix sh set writes to stderr and can't be redirected directly,
2452 # and sets the high bit in the cache file unless we assign to the vars.
2454 case `(ac_space=' '; set) 2>&1` in
2456 # `set' does not quote correctly, so add quotes (double-quote substitution
2457 # turns \\\\ into \\, and sed turns \\ into \).
2459 -e "s/'/'\\\\''/g" \
2460 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2463 # `set' quotes correctly as required by POSIX, so do not add quotes.
2464 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2467 if cmp -s $cache_file confcache; then
2470 if test -w $cache_file; then
2471 echo "updating cache $cache_file"
2472 cat confcache > $cache_file
2474 echo "not updating unwritable cache $cache_file"
2479 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2481 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2482 # Let make expand exec_prefix.
2483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2485 # Any assignment to VPATH causes Sun make to only execute
2486 # the first set of double-colon rules, so remove it if not needed.
2487 # If there is a colon in the path, we need to keep it.
2488 if test "x$srcdir" = x.; then
2489 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2492 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2494 DEFS=-DHAVE_CONFIG_H
2496 # Without the "./", some shells look in PATH for config.status.
2497 : ${CONFIG_STATUS=./config.status}
2499 echo creating $CONFIG_STATUS
2500 rm -f $CONFIG_STATUS
2501 cat > $CONFIG_STATUS <<EOF
2503 # Generated automatically by configure.
2504 # Run this file to recreate the current configuration.
2505 # This directory was configured as follows,
2506 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2508 # $0 $ac_configure_args
2510 # Compiler output produced by configure, useful for debugging
2511 # configure, is in ./config.log if it exists.
2513 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2516 case "\$ac_option" in
2517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2518 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2519 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2520 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2521 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2523 -help | --help | --hel | --he | --h)
2524 echo "\$ac_cs_usage"; exit 0 ;;
2525 *) echo "\$ac_cs_usage"; exit 1 ;;
2529 ac_given_srcdir=$srcdir
2530 ac_given_INSTALL="$INSTALL"
2532 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2534 cat >> $CONFIG_STATUS <<EOF
2536 # Protect against being on the right side of a sed subst in config.status.
2537 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2538 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2541 s%@CFLAGS@%$CFLAGS%g
2542 s%@CPPFLAGS@%$CPPFLAGS%g
2543 s%@CXXFLAGS@%$CXXFLAGS%g
2545 s%@LDFLAGS@%$LDFLAGS%g
2547 s%@exec_prefix@%$exec_prefix%g
2548 s%@prefix@%$prefix%g
2549 s%@program_transform_name@%$program_transform_name%g
2550 s%@bindir@%$bindir%g
2551 s%@sbindir@%$sbindir%g
2552 s%@libexecdir@%$libexecdir%g
2553 s%@datadir@%$datadir%g
2554 s%@sysconfdir@%$sysconfdir%g
2555 s%@sharedstatedir@%$sharedstatedir%g
2556 s%@localstatedir@%$localstatedir%g
2557 s%@libdir@%$libdir%g
2558 s%@includedir@%$includedir%g
2559 s%@oldincludedir@%$oldincludedir%g
2560 s%@infodir@%$infodir%g
2561 s%@mandir@%$mandir%g
2562 s%@subdirs@%$subdirs%g
2564 s%@host_alias@%$host_alias%g
2565 s%@host_cpu@%$host_cpu%g
2566 s%@host_vendor@%$host_vendor%g
2567 s%@host_os@%$host_os%g
2568 s%@base_machine@%$base_machine%g
2569 s%@sysnames@%$sysnames%g
2570 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2571 s%@INSTALL_DATA@%$INSTALL_DATA%g
2573 s%@MSGFMT@%$MSGFMT%g
2575 s%@cross_linkable@%$cross_linkable%g
2577 s%@build_alias@%$build_alias%g
2578 s%@build_cpu@%$build_cpu%g
2579 s%@build_vendor@%$build_vendor%g
2580 s%@build_os@%$build_os%g
2581 s%@BUILD_CC@%$BUILD_CC%g
2582 s%@cross_compiling@%$cross_compiling%g
2585 s%@RANLIB@%$RANLIB%g
2587 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2589 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2591 s%@VERSIONING@%$VERSIONING%g
2592 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2593 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2594 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2595 s%@uname_sysname@%$uname_sysname%g
2596 s%@uname_release@%$uname_release%g
2597 s%@uname_version@%$uname_version%g
2600 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2601 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2602 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2603 s%@has_ldconfig@%$has_ldconfig%g
2604 s%@gnu_ld@%$gnu_ld%g
2605 s%@gnu_as@%$gnu_as%g
2607 s%@static@%$static%g
2608 s%@shared@%$shared%g
2609 s%@profile@%$profile%g
2610 s%@omitfp@%$omitfp%g
2611 s%@bounded@%$bounded%g
2612 s%@static_nss@%$static_nss%g
2613 s%@nopic_initfini@%$nopic_initfini%g
2614 s%@DEFINES@%$DEFINES%g
2615 s%@VERSION@%$VERSION%g
2620 cat >> $CONFIG_STATUS <<\EOF
2622 # Split the substitutions into bite-sized pieces for seds with
2623 # small command number limits, like on Digital OSF/1 and HP-UX.
2624 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2625 ac_file=1 # Number of current file.
2626 ac_beg=1 # First line for current file.
2627 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2630 while $ac_more_lines; do
2631 if test $ac_beg -gt 1; then
2632 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2634 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2636 if test ! -s conftest.s$ac_file; then
2638 rm -f conftest.s$ac_file
2640 if test -z "$ac_sed_cmds"; then
2641 ac_sed_cmds="sed -f conftest.s$ac_file"
2643 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2645 ac_file=`expr $ac_file + 1`
2647 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2650 if test -z "$ac_sed_cmds"; then
2655 cat >> $CONFIG_STATUS <<EOF
2657 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2659 cat >> $CONFIG_STATUS <<\EOF
2660 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2663 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2664 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2665 *) ac_file_in="${ac_file}.in" ;;
2668 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2670 # Remove last slash and all that follows it. Not all systems have dirname.
2671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2673 # The file is in a subdirectory.
2674 test ! -d "$ac_dir" && mkdir "$ac_dir"
2675 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2676 # A "../" for each directory in $ac_dir_suffix.
2677 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2679 ac_dir_suffix= ac_dots=
2682 case "$ac_given_srcdir" in
2684 if test -z "$ac_dots"; then top_srcdir=.
2685 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2686 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2688 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2689 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2692 case "$ac_given_INSTALL" in
2693 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2694 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2697 echo creating "$ac_file"
2699 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2701 *Makefile*) ac_comsub="1i\\
2702 # $configure_input" ;;
2706 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2708 s%@configure_input@%$configure_input%g
2709 s%@srcdir@%$srcdir%g
2710 s%@top_srcdir@%$top_srcdir%g
2711 s%@INSTALL@%$INSTALL%g
2712 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2716 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2717 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2719 # ac_d sets the value in "#define NAME VALUE" lines.
2720 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2721 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2724 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2725 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2726 ac_uB='\([ ]\)%\1#\2define\3'
2729 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2730 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2731 ac_eB='$%\1#\2define\3'
2735 if test "${CONFIG_HEADERS+set}" != set; then
2737 cat >> $CONFIG_STATUS <<EOF
2738 CONFIG_HEADERS="config.h"
2740 cat >> $CONFIG_STATUS <<\EOF
2742 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2745 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2746 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2747 *) ac_file_in="${ac_file}.in" ;;
2750 echo creating $ac_file
2752 rm -f conftest.frag conftest.in conftest.out
2753 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2754 cat $ac_file_inputs > conftest.in
2758 # Transform confdefs.h into a sed script conftest.vals that substitutes
2759 # the proper values into config.h.in to produce config.h. And first:
2760 # Protect against being on the right side of a sed subst in config.status.
2761 # Protect against being in an unquoted here document in config.status.
2763 cat > conftest.hdr <<\EOF
2766 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2770 sed -n -f conftest.hdr confdefs.h > conftest.vals
2773 # This sed command replaces #undef with comments. This is necessary, for
2774 # example, in the case of _POSIX_SOURCE, which is predefined and required
2775 # on some systems where configure will not decide to define it.
2776 cat >> conftest.vals <<\EOF
2777 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2780 # Break up conftest.vals because some shells have a limit on
2781 # the size of here documents, and old seds have small limits too.
2786 ac_lines=`grep -c . conftest.vals`
2787 # grep -c gives empty output for an empty file on some AIX systems.
2788 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2789 # Write a limited-size here document to conftest.frag.
2790 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2791 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2793 sed -f conftest.frag conftest.in > conftest.out
2795 mv conftest.out conftest.in
2797 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2799 mv conftest.tail conftest.vals
2803 cat >> $CONFIG_STATUS <<\EOF
2804 rm -f conftest.frag conftest.h
2805 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2806 cat conftest.in >> conftest.h
2808 if cmp -s $ac_file conftest.h 2>/dev/null; then
2809 echo "$ac_file is unchanged"
2812 # Remove last slash and all that follows it. Not all systems have dirname.
2813 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2814 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2815 # The file is in a subdirectory.
2816 test ! -d "$ac_dir" && mkdir "$ac_dir"
2819 mv conftest.h $ac_file
2825 cat >> $CONFIG_STATUS <<EOF
2826 ac_sources="`echo $libc_link_sources`"
2827 ac_dests="`echo $libc_link_dests`"
2830 cat >> $CONFIG_STATUS <<\EOF
2831 srcdir=$ac_given_srcdir
2832 while test -n "$ac_sources"; do
2833 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2834 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2836 echo "linking $srcdir/$ac_source to $ac_dest"
2838 if test ! -r $srcdir/$ac_source; then
2839 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2843 # Make relative symlinks.
2844 # Remove last slash and all that follows it. Not all systems have dirname.
2845 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2846 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2847 # The dest file is in a subdirectory.
2848 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2849 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2850 # A "../" for each directory in $ac_dest_dir_suffix.
2851 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2853 ac_dest_dir_suffix= ac_dots=
2857 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2858 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2861 # Make a symlink if possible; otherwise try a hard link.
2862 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2863 ln $srcdir/$ac_source $ac_dest; then :
2865 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2869 cat >> $CONFIG_STATUS <<EOF
2870 echo '$config_vars' >> config.make; test -d bits || mkdir bits
2872 cat >> $CONFIG_STATUS <<\EOF
2876 chmod +x $CONFIG_STATUS
2877 rm -fr confdefs* $ac_clean_files
2878 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2880 if test "$no_recursion" != yes; then
2882 # Remove --cache-file and --srcdir arguments so they do not pile up.
2883 ac_sub_configure_args=
2885 for ac_arg in $ac_configure_args; do
2886 if test -n "$ac_prev"; then
2891 -cache-file | --cache-file | --cache-fil | --cache-fi \
2892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2893 ac_prev=cache_file ;;
2894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2897 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2899 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2901 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2905 for ac_config_dir in $add_ons; do
2907 # Do not complain, so a configure script can configure whichever
2908 # parts of a large source tree are present.
2909 if test ! -d $srcdir/$ac_config_dir; then
2913 echo configuring in $ac_config_dir
2918 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2920 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2928 # A "../" for each directory in /$ac_config_dir.
2929 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2932 .) # No --srcdir option. We are building in place.
2933 ac_sub_srcdir=$srcdir ;;
2934 /*) # Absolute path.
2935 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2937 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2940 # Check for guested configure; otherwise get Cygnus style configure.
2941 if test -f $ac_sub_srcdir/configure; then
2942 ac_sub_configure=$ac_sub_srcdir/configure
2943 elif test -f $ac_sub_srcdir/configure.in; then
2944 ac_sub_configure=$ac_configure
2946 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2950 # The recursion is here.
2951 if test -n "$ac_sub_configure"; then
2953 # Make the cache file name correct relative to the subdirectory.
2954 case "$cache_file" in
2955 /*) ac_sub_cache_file=$cache_file ;;
2957 ac_sub_cache_file="$ac_dots$cache_file" ;;
2959 case "$ac_given_INSTALL" in
2960 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2961 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2964 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2965 # The eval makes quoting arguments work.
2966 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2969 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }