update from main archive 970304
[glibc.git] / configure
blob414403d84e9c6ddb8a7a20641c9a74e8f4618bca
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
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.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20 --with-fp if using floating-point hardware [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28 --with-elf if using the ELF object format"
29 ac_help="$ac_help
30 --enable-libio build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32 --disable-sanity-checks really do not use threads (should not be used
33 except in special situations) [default=yes]"
34 ac_help="$ac_help
35 --enable-shared build shared library [default=yes if GNU ld & ELF]"
36 ac_help="$ac_help
37 --enable-profile build profiled library [default=yes]"
38 ac_help="$ac_help
39 --enable-omitfp build undebuggable optimized library [default=no]"
40 ac_help="$ac_help
41 --enable-bounded build with runtime bounds checking [default=no]"
42 ac_help="$ac_help
43 --enable-add-ons=DIR... configure and build named extra directories"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
48 build=NONE
49 cache_file=./config.cache
50 exec_prefix=NONE
51 host=NONE
52 no_create=
53 nonopt=NONE
54 no_recursion=
55 prefix=NONE
56 program_prefix=NONE
57 program_suffix=NONE
58 program_transform_name=s,x,x,
59 silent=
60 site=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 # Maximum number of lines to put in a shell here document.
83 ac_max_here_lines=12
85 ac_prev=
86 for ac_option
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
92 ac_prev=
93 continue
96 case "$ac_option" in
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 *) ac_optarg= ;;
99 esac
101 # Accept the important Cygnus configure options, so we can diagnose typos.
103 case "$ac_option" in
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 ac_prev=bindir ;;
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
111 ac_prev=build ;;
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 ac_prev=datadir ;;
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 | --da=*)
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 case "$ac_option" in
145 *=*) ;;
146 *) ac_optarg=yes ;;
147 esac
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
161 with_gas=yes ;;
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
166 cat << EOF
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
169 Configuration:
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
177 [$ac_default_prefix]
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 [same as prefix]
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
184 [PREFIX/share]
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 [PREFIX/com]
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
200 cat << EOF
201 Host type:
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
216 exit 0 ;;
218 -host | --host | --hos | --ho)
219 ac_prev=host ;;
220 -host=* | --host=* | --hos=* | --ho=*)
221 host="$ac_optarg" ;;
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 ac_prev=infodir ;;
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
236 ac_prev=libdir ;;
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 ac_prev=mandir ;;
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
261 -nfp | --nfp | --nf)
262 # Obsolete; use --without-fp.
263 with_fp=no ;;
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c)
267 no_create=yes ;;
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 no_recursion=yes ;;
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 ac_prev=prefix ;;
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
320 silent=yes ;;
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 ac_prev=sbindir ;;
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 | --sbi=* | --sb=*)
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
331 | --sha | --sh)
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 | --sha=* | --sh=*)
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
340 ac_prev=site ;;
341 -site=* | --site=* | --sit=*)
342 site="$ac_optarg" ;;
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 ac_prev=srcdir ;;
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
357 ac_prev=target ;;
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 verbose=yes ;;
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.12"
366 exit 0 ;;
368 -with-* | --with-*)
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 case "$ac_option" in
376 *=*) ;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
390 --x)
391 # Obsolete; use --with-x.
392 with_x=yes ;;
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 nonopt="$ac_option"
421 esac
422 done
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
431 # 0 standard input
432 # 1 file creation
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
439 exec 6>/dev/null
440 else
441 exec 6>&1
443 exec 5>./config.log
445 echo "\
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
448 " 1>&5
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
452 ac_configure_args=
453 for ac_arg
455 case "$ac_arg" in
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 esac
464 done
466 # NLS nuisances.
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 echo > confdefs.h
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=features.h
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
489 ac_prog=$0
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 srcdir=$ac_confdir
493 if test ! -r $srcdir/$ac_unique_file; then
494 srcdir=..
496 else
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 else
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 else
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
519 . "$ac_site_file"
521 done
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
525 . $cache_file
526 else
527 echo "creating cache $cache_file"
528 > $cache_file
531 ac_ext=c
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='
542 ' ac_t=' '
543 else
544 ac_n=-n ac_c= ac_t=
546 else
547 ac_n= ac_c='\c' ac_t=
550 if test -r /vmunix; then
551 kernel_id=`strings /vmunix | grep UNIX`
552 elif test -r /dynix; then
553 kernel_id=`strings /dynix | grep DYNIX`
554 else
555 kernel_id=
561 # This will get text that should go into config.make.
562 config_vars=
564 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
565 # Check whether --with-gmp or --without-gmp was given.
566 if test "${with_gmp+set}" = set; then
567 withval="$with_gmp"
568 case "$with_gmp" in
569 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
570 ''|no) ;;
571 *) config_vars="$config_vars
572 gmp-srcdir = $withval" ;;
573 esac
577 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
578 # Check whether --with-gettext or --without-gettext was given.
579 if test "${with_gettext+set}" = set; then
580 withval="$with_gettext"
581 case "$with_gettext" in
582 yes)
583 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
584 ''|no) ;;
586 config_vars="$config_vars
587 gettext-srcdir = $withval" ;;
588 esac
593 # Check whether --with-fp or --without-fp was given.
594 if test "${with_fp+set}" = set; then
595 withval="$with_fp"
596 with_fp=$withval
597 else
598 with_fp=yes
601 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
602 if test "${with_gnu_binutils+set}" = set; then
603 withval="$with_gnu_binutils"
604 gnu_binutils=$withval
605 else
606 gnu_binutils=no
609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
610 if test "${with_gnu_ld+set}" = set; then
611 withval="$with_gnu_ld"
612 gnu_ld=$withval
613 else
614 gnu_ld=no
617 # Check whether --with-gnu-as or --without-gnu-as was given.
618 if test "${with_gnu_as+set}" = set; then
619 withval="$with_gnu_as"
620 gnu_as=$withval
621 else
622 gnu_as=no
625 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
626 # Check whether --with-elf or --without-elf was given.
627 if test "${with_elf+set}" = set; then
628 withval="$with_elf"
629 elf=$withval
630 else
631 elf=no
635 # Check whether --enable-libio or --disable-libio was given.
636 if test "${enable_libio+set}" = set; then
637 enableval="$enable_libio"
638 if test $enableval = yes; then
639 stdio=libio
640 else
641 stdio=stdio
643 else
644 stdio=default
648 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
649 if test "${enable_sanity_checks+set}" = set; then
650 enableval="$enable_sanity_checks"
651 enable_sanity=$enableval
652 else
653 enable_sanity=yes
657 # Check whether --enable-shared or --disable-shared was given.
658 if test "${enable_shared+set}" = set; then
659 enableval="$enable_shared"
660 shared=$enableval
661 else
662 shared=default
665 # Check whether --enable-profile or --disable-profile was given.
666 if test "${enable_profile+set}" = set; then
667 enableval="$enable_profile"
668 profile=$enableval
669 else
670 profile=yes
673 # Check whether --enable-omitfp or --disable-omitfp was given.
674 if test "${enable_omitfp+set}" = set; then
675 enableval="$enable_omitfp"
676 omitfp=$enableval
677 else
678 omitfp=no
681 # Check whether --enable-bounded or --disable-bounded was given.
682 if test "${enable_bounded+set}" = set; then
683 enableval="$enable_bounded"
684 bounded=$enableval
685 else
686 bounded=no
690 # Check whether --enable-add-ons or --disable-add-ons was given.
691 if test "${enable_add_ons+set}" = set; then
692 enableval="$enable_add_ons"
693 add_ons=`echo "$enableval" | sed 's/,/ /g'`
694 else
695 add_ons=
698 ac_aux_dir=
699 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
700 if test -f $ac_dir/install-sh; then
701 ac_aux_dir=$ac_dir
702 ac_install_sh="$ac_aux_dir/install-sh -c"
703 break
704 elif test -f $ac_dir/install.sh; then
705 ac_aux_dir=$ac_dir
706 ac_install_sh="$ac_aux_dir/install.sh -c"
707 break
709 done
710 if test -z "$ac_aux_dir"; then
711 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
713 ac_config_guess=$ac_aux_dir/config.guess
714 ac_config_sub=$ac_aux_dir/config.sub
715 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
717 subdirs="$add_ons"
719 add_ons_pfx=
720 if test x"$add_ons" != x; then
721 for f in $add_ons; do
722 add_ons_pfx="$add_ons_pfx $f/"
723 done
727 # Make sure we can run config.sub.
728 if $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
732 echo $ac_n "checking host system type""... $ac_c" 1>&6
733 echo "configure:734: checking host system type" >&5
735 host_alias=$host
736 case "$host_alias" in
737 NONE)
738 case $nonopt in
739 NONE)
740 if host_alias=`$ac_config_guess`; then :
741 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
742 fi ;;
743 *) host_alias=$nonopt ;;
744 esac ;;
745 esac
747 host=`$ac_config_sub $host_alias`
748 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$host" 1>&6
754 # The way shlib-versions is used to generate soversions.mk uses a
755 # fairly simplistic model for name recognition that can't distinguish
756 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
757 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
758 # tell. This doesn't get used much beyond that, so it's fairly safe.
759 case "$host_os" in
760 linux*)
762 gnu*)
763 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
765 esac
767 # We keep the original values in `$config_*' and never modify them, so we
768 # can write them unchanged into config.make. Everything else uses
769 # $machine, $vendor, and $os, and changes them whenever convenient.
770 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
772 # Some configurations imply other options.
773 case "$host_os" in
774 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
775 # These systems always use GNU tools.
776 gnu_ld=yes gnu_as=yes ;;
777 esac
778 case "$host_os" in
779 linux*ecoff*)
781 gnu* | linux* | sysv4* | solaris2*)
782 # These systems (almost) always use the ELF format.
783 elf=yes
785 esac
787 machine=$config_machine
788 vendor=$config_vendor
789 os=$config_os
791 # Expand the configuration machine name into a subdirectory by architecture
792 # type and particular chip.
793 case "$machine" in
794 a29k | am29000) base_machine=a29k machine=a29k ;;
795 alpha*) base_machine=alpha machine=alpha/$machine ;;
796 hppa*) base_machine=hppa machine=hppa/$machine ;;
797 i[3456]86) base_machine=i386 machine=i386/$machine ;;
798 m680?0) base_machine=m68k machine=m68k/$machine ;;
799 m68k) base_machine=m68k machine=m68k/m68020 ;;
800 m88???) base_machine=m88k machine=m88k/$machine ;;
801 m88k) base_machine=m88k machine=m88k/m88100 ;;
802 mips*) base_machine=mips machine=mips/$machine ;;
803 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
804 sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
805 supersparc) base_machine=sparc machine=sparc/sparc8 ;;
806 esac
809 # Compute the list of sysdep directories for this configuration.
810 # This can take a while to compute.
811 sysdep_dir=$srcdir/sysdeps
812 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
813 echo "configure:814: checking sysdep dirs" >&5
814 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
815 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
817 case "$os" in
818 gnu*)
819 base_os=mach/hurd ;;
820 netbsd* | 386bsd* | freebsd* | bsdi*)
821 base_os=unix/bsd/bsd4.4 ;;
822 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
823 base_os=unix/bsd ;;
824 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
825 base_os=unix/sysv ;;
826 solaris[2-9]*)
827 base_os=unix/sysv/sysv4 ;;
828 none)
829 base_os=standalone ;;
831 base_os='' ;;
832 esac
834 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
835 tail=$os
836 ostry=$os
837 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
838 ostry="$ostry /$o"
839 tail=$o
840 done
841 o=`echo $tail | sed 's/[0-9]*$//'`
842 if test $o != $tail; then
843 ostry="$ostry /$o"
845 # For linux-gnu, try linux-gnu, then linux.
846 o=`echo $tail | sed 's/-.*$//'`
847 if test $o != $tail; then
848 ostry="$ostry /$o"
851 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
852 base=
853 tail=$base_os
854 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
855 set $b
856 base="$base /$1"
857 tail="$2"
858 done
860 # For sparc/sparc9, try sparc/sparc9 and then sparc.
861 mach=
862 tail=$machine
863 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
864 set $m
865 # Prepend the machine's FPU directory unless --without-fp.
866 if test "$with_fp" = yes; then
867 mach="$mach /$1/fpu"
869 mach="$mach /$1"
870 tail="$2"
871 done
874 # Find what sysdep directories exist.
875 sysnames=
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
877 for d in $add_ons_pfx ''; do
878 for b in $base ''; do
879 for m0 in $mach ''; do
880 for v in /$vendor ''; do
881 for o in /$ostry ''; do
882 for m in $mach ''; do
883 if test "$m0$b$v$o$m"; then
884 try="${d}sysdeps$m0$b$v$o$m"
885 test -n "$enable_debug_configure" &&
886 echo "$0 DEBUG: try $try" >&2
887 case $try in
888 /*) dest=$try ;;
889 *) dest=$srcdir/$try ;;
890 esac
891 if test -d $dest; then
892 sysnames="$sysnames $try"
893 { test -n "$o" || test -n "$b"; } && os_used=t
894 { test -n "$m" || test -n "$m0"; } && machine_used=t
897 done
898 done
899 done
900 done
901 done
902 done
903 IFS="$ac_save_ifs"
905 if test -z "$os_used" && test "$os" != none; then
906 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
908 if test -z "$machine_used" && test "$machine" != none; then
909 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
912 # We have now validated the configuration.
915 # If using ELF, look for an `elf' subdirectory of each machine directory.
916 # We prepend these rather than inserting them whereever the machine appears
917 # because things specified by the machine's ELF ABI should override
918 # OS-specific things, and should always be the same for any OS on the
919 # machine (otherwise what's the point of an ABI?).
920 if test "$elf" = yes; then
921 elf_dirs=
922 for d in $add_ons_pfx ''; do
923 case $d in
924 /*) xsrcdir= ;;
925 *) xsrcdir=$srcdir/ ;;
926 esac
927 for m in $mach; do
928 if test -d $xsrcdir${d}sysdeps$m/elf; then
929 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
931 done
932 done
933 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
937 # Expand the list of system names into a full list of directories
938 # from each element's parent name and Implies file (if present).
939 set $sysnames
940 names=
941 while test $# -gt 0; do
942 name=$1
943 shift
945 case " $names " in *" $name "*)
946 # Already in the list.
947 continue
948 esac
950 # Report each name as we discover it, so there is no long pause in output.
951 echo $ac_n "$name $ac_c" >&6
953 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
955 case $name in
956 /*) xsrcdir= ;;
957 *) xsrcdir=$srcdir/ ;;
958 esac
959 test -n "$enable_debug_configure" &&
960 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
962 if test -f $xsrcdir$name/Implies; then
963 # Collect more names from the `Implies' file (removing comments).
964 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
965 implied=
966 for x in $implied_candidate; do
967 if test -d $xsrcdir$name_base/$x; then
968 implied="$implied $name_base/$x";
969 else
970 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
972 done
973 else
974 implied=
977 # Add NAME to the list of names.
978 names="$names $name"
980 # Find the parent of NAME, using the empty string if it has none.
981 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
983 # Add the names implied by NAME, and NAME's parent (if it has one), to
984 # the list of names to be processed (the argument list). We prepend the
985 # implied names to the list and append the parent. We want implied
986 # directories to come before further directories inferred from the
987 # configuration components; this ensures that for sysv4, unix/common
988 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
989 # after sysv4).
990 sysnames="`echo $implied $* $parent`"
991 test -n "$sysnames" && set $sysnames
992 done
994 # Add the default directories.
995 sysnames="$names sysdeps/generic sysdeps/stub"
997 # The other names were emitted during the scan.
998 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1001 ### Locate tools.
1003 # Find a good install program. We prefer a C program (faster),
1004 # so one script is as good as another. But avoid the broken or
1005 # incompatible versions:
1006 # SysV /etc/install, /usr/sbin/install
1007 # SunOS /usr/etc/install
1008 # IRIX /sbin/install
1009 # AIX /bin/install
1010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1012 # ./install, which can be erroneously created by make from ./install.sh.
1013 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1014 echo "configure:1015: checking for a BSD compatible install" >&5
1015 if test -z "$INSTALL"; then
1016 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1020 for ac_dir in $PATH; do
1021 # Account for people who put trailing slashes in PATH elements.
1022 case "$ac_dir/" in
1023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1025 # OSF1 and SCO ODT 3.0 have their own names for install.
1026 for ac_prog in ginstall installbsd scoinst install; do
1027 if test -f $ac_dir/$ac_prog; then
1028 if test $ac_prog = install &&
1029 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1030 # AIX install. It has an incompatible calling convention.
1031 # OSF/1 installbsd also uses dspmsg, but is usable.
1033 else
1034 ac_cv_path_install="$ac_dir/$ac_prog -c"
1035 break 2
1038 done
1040 esac
1041 done
1042 IFS="$ac_save_IFS"
1045 if test "${ac_cv_path_install+set}" = set; then
1046 INSTALL="$ac_cv_path_install"
1047 else
1048 # As a last resort, use the slow shell script. We don't cache a
1049 # path for INSTALL within a source directory, because that will
1050 # break other packages using the cache if that directory is
1051 # removed, or if the path is relative.
1052 INSTALL="$ac_install_sh"
1055 echo "$ac_t""$INSTALL" 1>&6
1057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1058 # It thinks the first close brace ends the variable substitution.
1059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1063 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1064 # The makefiles need to use a different form to find it in $srcdir.
1065 INSTALL='$(..)./install-sh -c'
1067 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1068 echo "configure:1069: checking whether ln -s works" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 rm -f conftestdata
1073 if ln -s X conftestdata 2>/dev/null
1074 then
1075 rm -f conftestdata
1076 ac_cv_prog_LN_S="ln -s"
1077 else
1078 ac_cv_prog_LN_S=ln
1081 LN_S="$ac_cv_prog_LN_S"
1082 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1083 echo "$ac_t""yes" 1>&6
1084 else
1085 echo "$ac_t""no" 1>&6
1088 for ac_prog in msgfmt gmsgfmt
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 if test -n "$MSGFMT"; then
1098 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1099 else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1101 for ac_dir in $PATH; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_MSGFMT="$ac_prog"
1105 break
1107 done
1108 IFS="$ac_save_ifs"
1111 MSGFMT="$ac_cv_prog_MSGFMT"
1112 if test -n "$MSGFMT"; then
1113 echo "$ac_t""$MSGFMT" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 test -n "$MSGFMT" && break
1119 done
1120 test -n "$MSGFMT" || MSGFMT=":"
1123 echo $ac_n "checking build system type""... $ac_c" 1>&6
1124 echo "configure:1125: checking build system type" >&5
1126 build_alias=$build
1127 case "$build_alias" in
1128 NONE)
1129 case $nonopt in
1130 NONE) build_alias=$host_alias ;;
1131 *) build_alias=$nonopt ;;
1132 esac ;;
1133 esac
1135 build=`$ac_config_sub $build_alias`
1136 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1137 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1138 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1139 echo "$ac_t""$build" 1>&6
1141 if test $host != $build; then
1142 ac_tool_prefix=${host_alias}-
1143 else
1144 ac_tool_prefix=
1147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 else
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1158 for ac_dir in $PATH; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1162 break
1164 done
1165 IFS="$ac_save_ifs"
1166 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1169 CC="$ac_cv_prog_CC"
1170 if test -n "$CC"; then
1171 echo "$ac_t""$CC" 1>&6
1172 else
1173 echo "$ac_t""no" 1>&6
1178 if test $host != $build; then
1179 # Extract the first word of "gcc cc", so it can be a program name with args.
1180 set dummy gcc cc; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 if test -n "$BUILD_CC"; then
1187 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1188 else
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1190 for ac_dir in $PATH; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_prog_BUILD_CC=""
1194 break
1196 done
1197 IFS="$ac_save_ifs"
1200 BUILD_CC="$ac_cv_prog_BUILD_CC"
1201 if test -n "$BUILD_CC"; then
1202 echo "$ac_t""$BUILD_CC" 1>&6
1203 else
1204 echo "$ac_t""no" 1>&6
1208 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1209 echo "configure:1210: checking how to run the C preprocessor" >&5
1210 # On Suns, sometimes $CPP names a directory.
1211 if test -n "$CPP" && test -d "$CPP"; then
1212 CPP=
1214 if test -z "$CPP"; then
1215 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 # This must be in double quotes, not single quotes, because CPP may get
1219 # substituted into the Makefile and "${CC-cc}" will confuse make.
1220 CPP="${CC-cc} -E"
1221 # On the NeXT, cc -E runs the code through the compiler's parser,
1222 # not just through cpp.
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1226 #include <assert.h>
1227 Syntax Error
1229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1230 { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1231 ac_err=`grep -v '^ *+' conftest.out`
1232 if test -z "$ac_err"; then
1234 else
1235 echo "$ac_err" >&5
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1238 rm -rf conftest*
1239 CPP="${CC-cc} -E -traditional-cpp"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 #include <assert.h>
1244 Syntax Error
1246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1247 { (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1248 ac_err=`grep -v '^ *+' conftest.out`
1249 if test -z "$ac_err"; then
1251 else
1252 echo "$ac_err" >&5
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1255 rm -rf conftest*
1256 CPP=/lib/cpp
1258 rm -f conftest*
1260 rm -f conftest*
1261 ac_cv_prog_CPP="$CPP"
1263 CPP="$ac_cv_prog_CPP"
1264 else
1265 ac_cv_prog_CPP="$CPP"
1267 echo "$ac_t""$CPP" 1>&6
1269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1270 set dummy ${ac_tool_prefix}ar; ac_word=$2
1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 echo "configure:1273: checking for $ac_word" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 if test -n "$AR"; then
1277 ac_cv_prog_AR="$AR" # Let the user override the test.
1278 else
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1280 for ac_dir in $PATH; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_AR="${ac_tool_prefix}ar"
1284 break
1286 done
1287 IFS="$ac_save_ifs"
1288 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1291 AR="$ac_cv_prog_AR"
1292 if test -n "$AR"; then
1293 echo "$ac_t""$AR" 1>&6
1294 else
1295 echo "$ac_t""no" 1>&6
1300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 if test -n "$RANLIB"; then
1308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1309 else
1310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1311 for ac_dir in $PATH; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1315 break
1317 done
1318 IFS="$ac_save_ifs"
1321 RANLIB="$ac_cv_prog_RANLIB"
1322 if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1324 else
1325 echo "$ac_t""no" 1>&6
1329 if test -z "$ac_cv_prog_RANLIB"; then
1330 if test -n "$ac_tool_prefix"; then
1331 # Extract the first word of "ranlib", so it can be a program name with args.
1332 set dummy ranlib; ac_word=$2
1333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1334 echo "configure:1335: checking for $ac_word" >&5
1335 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338 if test -n "$RANLIB"; then
1339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1340 else
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1342 for ac_dir in $PATH; do
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_RANLIB="ranlib"
1346 break
1348 done
1349 IFS="$ac_save_ifs"
1350 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1353 RANLIB="$ac_cv_prog_RANLIB"
1354 if test -n "$RANLIB"; then
1355 echo "$ac_t""$RANLIB" 1>&6
1356 else
1357 echo "$ac_t""no" 1>&6
1360 else
1361 RANLIB=":"
1366 # Extract the first word of "bash", so it can be a program name with args.
1367 set dummy bash; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373 case "$BASH" in
1375 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1379 for ac_dir in $PATH; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_path_BASH="$ac_dir/$ac_word"
1383 break
1385 done
1386 IFS="$ac_save_ifs"
1387 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1389 esac
1391 BASH="$ac_cv_path_BASH"
1392 if test -n "$BASH"; then
1393 echo "$ac_t""$BASH" 1>&6
1394 else
1395 echo "$ac_t""no" 1>&6
1398 if test "$BASH" != no &&
1399 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1400 libc_cv_have_bash2=yes
1401 else
1402 libc_cv_have_bash2=no
1406 if test "$BASH" = no; then
1407 # Extract the first word of "ksh", so it can be a program name with args.
1408 set dummy ksh; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 case "$KSH" in
1416 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1420 for ac_dir in $PATH; do
1421 test -z "$ac_dir" && ac_dir=.
1422 if test -f $ac_dir/$ac_word; then
1423 ac_cv_path_KSH="$ac_dir/$ac_word"
1424 break
1426 done
1427 IFS="$ac_save_ifs"
1428 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1430 esac
1432 KSH="$ac_cv_path_KSH"
1433 if test -n "$KSH"; then
1434 echo "$ac_t""$KSH" 1>&6
1435 else
1436 echo "$ac_t""no" 1>&6
1439 if test "$KSH" = no; then
1440 libc_cv_have_ksh=no
1441 else
1442 libc_cv_have_ksh=yes
1444 else
1445 KSH="$BASH"
1447 libc_cv_have_ksh=yes
1451 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1452 echo "configure:1453: checking for signed size_t type" >&5
1453 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 echo '#include <stddef.h>
1457 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1458 if eval "$ac_cpp conftest.c 2>/dev/null" \
1459 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1460 libc_cv_signed_size_t=no
1461 else
1462 libc_cv_signed_size_t=yes
1464 rm -f conftest*
1467 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1468 if test $libc_cv_signed_size_t = yes; then
1469 cat >> confdefs.h <<\EOF
1470 #undef __SIZE_TYPE__
1471 #define __SIZE_TYPE__ unsigned
1475 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1476 echo "configure:1477: checking for libc-friendly stddef.h" >&5
1477 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 #define __need_size_t
1484 #define __need_wchar_t
1485 #include <stddef.h>
1486 #define __need_NULL
1487 #include <stddef.h>
1488 int main() {
1489 size_t size; wchar_t wchar;
1490 #ifdef offsetof
1491 #error stddef.h ignored __need_*
1492 #endif
1493 if (&size == NULL || &wchar == NULL) abort ();
1494 ; return 0; }
1496 if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497 rm -rf conftest*
1498 libc_cv_friendly_stddef=yes
1499 else
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 rm -rf conftest*
1503 libc_cv_friendly_stddef=no
1505 rm -f conftest*
1508 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1509 if test $libc_cv_friendly_stddef = yes; then
1510 config_vars="$config_vars
1511 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1514 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether we need to use -P to assemble .S files" >&5
1516 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 cat > conftest.S <<EOF
1520 #include "confdefs.h"
1521 /* Nothing whatsoever. */
1523 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1524 libc_cv_need_minus_P=no
1525 else
1526 libc_cv_need_minus_P=yes
1528 rm -f conftest*
1531 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1532 if test $libc_cv_need_minus_P = yes; then
1533 config_vars="$config_vars
1534 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1537 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1538 echo "configure:1539: checking for assembler global-symbol directive" >&5
1539 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542 libc_cv_asm_global_directive=UNKNOWN
1543 for ac_globl in .globl .global; do
1544 cat > conftest.s <<EOF
1545 .text
1546 ${ac_globl} foo
1547 foo: .long 0
1549 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1550 libc_cv_asm_global_directive=${ac_globl}
1552 rm -f conftest*
1553 test $libc_cv_asm_global_directive != UNKNOWN && break
1554 done
1557 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1558 if test $libc_cv_asm_global_directive = UNKNOWN; then
1559 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1560 else
1561 cat >> confdefs.h <<EOF
1562 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1567 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1568 echo "configure:1569: checking for .set assembler directive" >&5
1569 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572 cat > conftest.s <<EOF
1573 .text
1574 foo: .long 0
1575 .set glibc_conftest_frobozz,foo
1576 $libc_cv_asm_global_directive glibc_conftest_frobozz
1578 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1579 # (but it doesn't work), so we must do a linking check to be sure.
1580 cat > conftest1.c <<\EOF
1581 extern int glibc_conftest_frobozz;
1582 main () { printf ("%d\n", glibc_conftest_frobozz); }
1584 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1585 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1586 libc_cv_asm_set_directive=yes
1587 else
1588 libc_cv_asm_set_directive=no
1590 rm -f conftest*
1593 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1594 if test $libc_cv_asm_set_directive = yes; then
1595 cat >> confdefs.h <<\EOF
1596 #define HAVE_ASM_SET_DIRECTIVE 1
1601 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1602 echo "configure:1603: checking for .symver assembler directive" >&5
1603 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606 cat > conftest.s <<EOF
1607 .text
1608 _sym: ret
1609 .symver _sym,sym@VERS
1611 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1612 libc_cv_asm_symver_directive=yes
1613 else
1614 libc_cv_asm_symver_directive=no
1616 rm -f conftest*
1619 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1620 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1621 echo "configure:1622: checking for ld --version-script" >&5
1622 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1624 else
1625 if test $libc_cv_asm_symver_directive = yes; then
1626 cat > conftest.s <<EOF
1627 .text
1628 _sym: ret
1629 .symver _sym,sym@VERS
1631 cat > conftest.map <<EOF
1632 VERS {
1633 global: sym;
1636 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1637 if { ac_try='${CC-cc} $CFLAGS --shared -o conftest.so conftest.o
1638 -Wl,--version-script,conftest.map'; { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
1639 then
1640 libc_cv_ld_version_script_option=yes
1641 else
1642 libc_cv_ld_version_script_option=no
1644 else
1645 libc_cv_ld_version_script_option=no
1647 else
1648 libc_cv_ld_version_script_option=no
1650 rm -f conftest*
1653 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
1654 if test $libc_cv_asm_symver_directive = yes &&
1655 test $libc_cv_ld_version_script_option = yes; then
1656 VERSIONING=yes
1657 cat >> confdefs.h <<\EOF
1658 #define DO_VERSIONING 1
1661 else
1662 VERSIONING=no
1666 if test $elf = yes; then
1667 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1668 echo "configure:1669: checking for .previous assembler directive" >&5
1669 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 cat > conftest.s <<EOF
1673 .section foo_section
1674 .previous
1676 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1677 libc_cv_asm_previous_directive=yes
1678 else
1679 libc_cv_asm_previous_directive=no
1681 rm -f conftest*
1684 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1685 if test $libc_cv_asm_previous_directive = yes; then
1686 cat >> confdefs.h <<\EOF
1687 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1690 else
1691 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1692 echo "configure:1693: checking for .popsection assembler directive" >&5
1693 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 cat > conftest.s <<EOF
1697 .pushsection foo_section
1698 .popsection
1700 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1701 libc_cv_asm_popsection_directive=yes
1702 else
1703 libc_cv_asm_popsection_directive=no
1705 rm -f conftest*
1708 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1709 if test $libc_cv_asm_popsection_directive = yes; then
1710 cat >> confdefs.h <<\EOF
1711 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1718 if test $elf != yes; then
1719 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1720 echo "configure:1721: checking for .init and .fini sections" >&5
1721 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1728 int main() {
1729 asm (".section .init");
1730 asm (".section .fini");
1731 asm (".text");
1732 ; return 0; }
1734 if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1735 rm -rf conftest*
1736 libc_cv_have_initfini=yes
1737 else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 libc_cv_have_initfini=no
1743 rm -f conftest*
1746 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1747 if test $libc_cv_have_initfini = yes; then
1748 cat >> confdefs.h <<\EOF
1749 #define HAVE_INITFINI 1
1755 if test $elf = yes; then
1756 libc_cv_asm_underscores=no
1757 else
1758 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1759 echo "configure:1760: checking for _ prefix on C symbol names" >&5
1760 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 asm ("_glibc_foobar:");
1767 int main() {
1768 glibc_foobar ();
1769 ; return 0; }
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1772 rm -rf conftest*
1773 libc_cv_asm_underscores=yes
1774 else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 libc_cv_asm_underscores=no
1780 rm -f conftest*
1783 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1785 if test $libc_cv_asm_underscores = no; then
1786 cat >> confdefs.h <<\EOF
1787 #define NO_UNDERSCORES 1
1792 if test $elf = yes; then
1793 libc_cv_weak_symbols=yes
1794 libc_cv_asm_weak_directive=yes
1795 libc_cv_asm_weakext_directive=no
1796 else
1797 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1798 echo "configure:1799: checking for assembler .weak directive" >&5
1799 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 cat > conftest.s <<EOF
1803 .text
1804 ${libc_cv_asm_global_directive} foo
1805 foo: .long 0
1806 .weak foo
1807 .weak bar; bar = foo
1809 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1810 libc_cv_asm_weak_directive=yes
1811 else
1812 libc_cv_asm_weak_directive=no
1814 rm -f conftest*
1817 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1819 if test $libc_cv_asm_weak_directive = no; then
1820 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1821 echo "configure:1822: checking for assembler .weakext directive" >&5
1822 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 cat > conftest.s <<EOF
1826 .text
1827 ${libc_cv_asm_global_directive} foo
1828 foo: .long 0
1829 .weakext foo
1830 .weakext foo, bar
1832 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1833 libc_cv_asm_weakext_directive=yes
1834 else
1835 libc_cv_asm_weakext_directive=no
1837 rm -f conftest*
1840 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1842 fi # no .weak
1843 fi # not ELF
1845 if test $libc_cv_asm_weak_directive = yes; then
1846 cat >> confdefs.h <<\EOF
1847 #define HAVE_ASM_WEAK_DIRECTIVE 1
1850 elif test $libc_cv_asm_weakext_directive = yes; then
1851 cat >> confdefs.h <<\EOF
1852 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1857 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1858 echo "configure:1859: checking for ld --no-whole-archive" >&5
1859 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 cat > conftest.c <<\EOF
1863 _start () {}
1864 int __eh_pc;
1865 __throw () {}
1867 if { ac_try='${CC-cc} $CFLAGS
1868 -nostdlib -nostartfiles -Wl,--no-whole-archive
1869 -o conftest conftest.c'; { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1870 libc_cv_ld_no_whole_archive=yes
1871 else
1872 libc_cv_ld_no_whole_archive=no
1874 rm -f conftest*
1877 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1879 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1880 echo "configure:1881: checking for gcc -fno-exceptions" >&5
1881 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 cat > conftest.c <<\EOF
1885 _start () {}
1886 int __eh_pc;
1887 __throw () {}
1889 if { ac_try='${CC-cc} $CFLAGS
1890 -nostdlib -nostartfiles -fno-exceptions
1891 -o conftest conftest.c'; { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1892 libc_cv_gcc_no_exceptions=yes
1893 else
1894 libc_cv_gcc_no_exceptions=no
1896 rm -f conftest*
1899 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1901 ### End of automated tests.
1902 ### Now run sysdeps configure fragments.
1904 # sysdeps configure fragments may set these with files to be linked below.
1905 libc_link_dests=
1906 libc_link_sources=
1908 # Iterate over all the sysdep directories we will use, running their
1909 # configure fragments, and looking for a uname implementation.
1910 uname=
1911 for dir in $sysnames; do
1912 case $dir in
1913 /*) dest=$dir ;;
1914 *) dest=$srcdir/$dir ;;
1915 esac
1916 if test -r $dest/configure; then
1917 echo "$ac_t""running configure fragment for $dest" 1>&6
1918 . $dest/configure
1921 if test -z "$uname"; then
1922 if test -r $sysdep_dir/$dir/uname.c ||
1923 test -r $sysdep_dir/$dir/uname.S ||
1924 { test -r $sysdep_dir/$dir/syscalls.list &&
1925 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1926 uname=$dir
1929 done
1933 # If we will use the generic uname implementation, we must figure out what
1934 # it will say by examining the system, and write the results in config-name.h.
1935 if test "$uname" = generic; then
1937 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1938 if test $uname_sysname != $config_os; then
1939 config_release=`echo $config_os | sed s/$uname_sysname//`
1942 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1943 echo "configure:1944: checking OS release for uname" >&5
1944 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1948 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1949 != x$config_release; then
1950 # The configuration release is a substring of the kernel release.
1951 libc_cv_uname_release=$kernel_release
1952 elif test x$config_release != x; then
1953 libc_cv_uname_release=$config_release
1954 elif test x$kernel_release != x; then
1955 libc_cv_uname_release=$kernel_release
1956 else
1957 libc_cv_uname_release=unknown
1961 echo "$ac_t""$libc_cv_uname_release" 1>&6
1962 uname_release="$libc_cv_uname_release"
1964 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1965 echo "configure:1966: checking OS version for uname" >&5
1966 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1968 else
1969 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1970 if test -n "$kernel_version"; then
1971 libc_cv_uname_version="$kernel_version"
1972 else
1973 libc_cv_uname_version=unknown
1977 echo "$ac_t""$libc_cv_uname_version" 1>&6
1978 uname_version="$libc_cv_uname_version"
1980 config_uname=config-name.h:config-name.in
1981 else
1982 # For non-generic uname, we don't need to create config-name.h at all.
1983 config_uname=
1986 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1987 echo "configure:1988: checking stdio selection" >&5
1989 case $stdio in
1990 libio) cat >> confdefs.h <<\EOF
1991 #define USE_IN_LIBIO 1
1994 default) stdio=stdio ;;
1995 esac
1996 echo "$ac_t""$stdio" 1>&6
2005 if test $gnu_ld = yes; then
2006 cat >> confdefs.h <<\EOF
2007 #define HAVE_GNU_LD 1
2011 if test $gnu_as = yes; then
2012 cat >> confdefs.h <<\EOF
2013 #define HAVE_GNU_AS 1
2017 if test $elf = yes; then
2018 cat >> confdefs.h <<\EOF
2019 #define HAVE_ELF 1
2025 if test $shared = default; then
2026 if test $gnu_ld = yes; then
2027 shared=$elf
2028 else
2029 # For now we do not assume shared libs are available. In future more
2030 # tests might become available.
2031 shared=no
2040 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2041 config_makefile=
2042 else
2043 config_makefile=Makefile
2046 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2049 trap '' 1 2 15
2050 cat > confcache <<\EOF
2051 # This file is a shell script that caches the results of configure
2052 # tests run on this system so they can be shared between configure
2053 # scripts and configure runs. It is not useful on other systems.
2054 # If it contains results you don't want to keep, you may remove or edit it.
2056 # By default, configure uses ./config.cache as the cache file,
2057 # creating it if it does not exist already. You can give configure
2058 # the --cache-file=FILE option to use a different cache file; that is
2059 # what configure does when it calls configure scripts in
2060 # subdirectories, so they share the cache.
2061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2062 # config.status only pays attention to the cache file if you give it the
2063 # --recheck option to rerun configure.
2066 # The following way of writing the cache mishandles newlines in values,
2067 # but we know of no workaround that is simple, portable, and efficient.
2068 # So, don't put newlines in cache variables' values.
2069 # Ultrix sh set writes to stderr and can't be redirected directly,
2070 # and sets the high bit in the cache file unless we assign to the vars.
2071 (set) 2>&1 |
2072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2073 *ac_space=\ *)
2074 # `set' does not quote correctly, so add quotes (double-quote substitution
2075 # turns \\\\ into \\, and sed turns \\ into \).
2076 sed -n \
2077 -e "s/'/'\\\\''/g" \
2078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2081 # `set' quotes correctly as required by POSIX, so do not add quotes.
2082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2084 esac >> confcache
2085 if cmp -s $cache_file confcache; then
2087 else
2088 if test -w $cache_file; then
2089 echo "updating cache $cache_file"
2090 cat confcache > $cache_file
2091 else
2092 echo "not updating unwritable cache $cache_file"
2095 rm -f confcache
2097 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2100 # Let make expand exec_prefix.
2101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2103 # Any assignment to VPATH causes Sun make to only execute
2104 # the first set of double-colon rules, so remove it if not needed.
2105 # If there is a colon in the path, we need to keep it.
2106 if test "x$srcdir" = x.; then
2107 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2110 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2112 DEFS=-DHAVE_CONFIG_H
2114 # Without the "./", some shells look in PATH for config.status.
2115 : ${CONFIG_STATUS=./config.status}
2117 echo creating $CONFIG_STATUS
2118 rm -f $CONFIG_STATUS
2119 cat > $CONFIG_STATUS <<EOF
2120 #! /bin/sh
2121 # Generated automatically by configure.
2122 # Run this file to recreate the current configuration.
2123 # This directory was configured as follows,
2124 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2126 # $0 $ac_configure_args
2128 # Compiler output produced by configure, useful for debugging
2129 # configure, is in ./config.log if it exists.
2131 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2132 for ac_option
2134 case "\$ac_option" in
2135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2136 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2137 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2138 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2139 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2140 exit 0 ;;
2141 -help | --help | --hel | --he | --h)
2142 echo "\$ac_cs_usage"; exit 0 ;;
2143 *) echo "\$ac_cs_usage"; exit 1 ;;
2144 esac
2145 done
2147 ac_given_srcdir=$srcdir
2148 ac_given_INSTALL="$INSTALL"
2150 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2152 cat >> $CONFIG_STATUS <<EOF
2154 # Protect against being on the right side of a sed subst in config.status.
2155 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2156 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2157 $ac_vpsub
2158 $extrasub
2159 s%@CFLAGS@%$CFLAGS%g
2160 s%@CPPFLAGS@%$CPPFLAGS%g
2161 s%@CXXFLAGS@%$CXXFLAGS%g
2162 s%@DEFS@%$DEFS%g
2163 s%@LDFLAGS@%$LDFLAGS%g
2164 s%@LIBS@%$LIBS%g
2165 s%@exec_prefix@%$exec_prefix%g
2166 s%@prefix@%$prefix%g
2167 s%@program_transform_name@%$program_transform_name%g
2168 s%@bindir@%$bindir%g
2169 s%@sbindir@%$sbindir%g
2170 s%@libexecdir@%$libexecdir%g
2171 s%@datadir@%$datadir%g
2172 s%@sysconfdir@%$sysconfdir%g
2173 s%@sharedstatedir@%$sharedstatedir%g
2174 s%@localstatedir@%$localstatedir%g
2175 s%@libdir@%$libdir%g
2176 s%@includedir@%$includedir%g
2177 s%@oldincludedir@%$oldincludedir%g
2178 s%@infodir@%$infodir%g
2179 s%@mandir@%$mandir%g
2180 s%@subdirs@%$subdirs%g
2181 s%@host@%$host%g
2182 s%@host_alias@%$host_alias%g
2183 s%@host_cpu@%$host_cpu%g
2184 s%@host_vendor@%$host_vendor%g
2185 s%@host_os@%$host_os%g
2186 s%@base_machine@%$base_machine%g
2187 s%@sysnames@%$sysnames%g
2188 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2189 s%@INSTALL_DATA@%$INSTALL_DATA%g
2190 s%@LN_S@%$LN_S%g
2191 s%@MSGFMT@%$MSGFMT%g
2192 s%@build@%$build%g
2193 s%@build_alias@%$build_alias%g
2194 s%@build_cpu@%$build_cpu%g
2195 s%@build_vendor@%$build_vendor%g
2196 s%@build_os@%$build_os%g
2197 s%@CC@%$CC%g
2198 s%@BUILD_CC@%$BUILD_CC%g
2199 s%@CPP@%$CPP%g
2200 s%@AR@%$AR%g
2201 s%@RANLIB@%$RANLIB%g
2202 s%@BASH@%$BASH%g
2203 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2204 s%@KSH@%$KSH%g
2205 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2206 s%@VERSIONING@%$VERSIONING%g
2207 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2208 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2209 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2210 s%@uname_sysname@%$uname_sysname%g
2211 s%@uname_release@%$uname_release%g
2212 s%@uname_version@%$uname_version%g
2213 s%@stdio@%$stdio%g
2214 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2215 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2216 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2217 s%@has_ldconfig@%$has_ldconfig%g
2218 s%@gnu_ld@%$gnu_ld%g
2219 s%@gnu_as@%$gnu_as%g
2220 s%@elf@%$elf%g
2221 s%@shared@%$shared%g
2222 s%@profile@%$profile%g
2223 s%@omitfp@%$omitfp%g
2224 s%@bounded@%$bounded%g
2225 s%@DEFINES@%$DEFINES%g
2226 s%@VERSION@%$VERSION%g
2228 CEOF
2231 cat >> $CONFIG_STATUS <<\EOF
2233 # Split the substitutions into bite-sized pieces for seds with
2234 # small command number limits, like on Digital OSF/1 and HP-UX.
2235 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2236 ac_file=1 # Number of current file.
2237 ac_beg=1 # First line for current file.
2238 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2239 ac_more_lines=:
2240 ac_sed_cmds=""
2241 while $ac_more_lines; do
2242 if test $ac_beg -gt 1; then
2243 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2244 else
2245 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2247 if test ! -s conftest.s$ac_file; then
2248 ac_more_lines=false
2249 rm -f conftest.s$ac_file
2250 else
2251 if test -z "$ac_sed_cmds"; then
2252 ac_sed_cmds="sed -f conftest.s$ac_file"
2253 else
2254 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2256 ac_file=`expr $ac_file + 1`
2257 ac_beg=$ac_end
2258 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2260 done
2261 if test -z "$ac_sed_cmds"; then
2262 ac_sed_cmds=cat
2266 cat >> $CONFIG_STATUS <<EOF
2268 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2270 cat >> $CONFIG_STATUS <<\EOF
2271 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2273 case "$ac_file" in
2274 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2275 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2276 *) ac_file_in="${ac_file}.in" ;;
2277 esac
2279 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2281 # Remove last slash and all that follows it. Not all systems have dirname.
2282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2284 # The file is in a subdirectory.
2285 test ! -d "$ac_dir" && mkdir "$ac_dir"
2286 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2287 # A "../" for each directory in $ac_dir_suffix.
2288 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2289 else
2290 ac_dir_suffix= ac_dots=
2293 case "$ac_given_srcdir" in
2294 .) srcdir=.
2295 if test -z "$ac_dots"; then top_srcdir=.
2296 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2297 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2298 *) # Relative path.
2299 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2300 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2301 esac
2303 case "$ac_given_INSTALL" in
2304 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2305 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2306 esac
2308 echo creating "$ac_file"
2309 rm -f "$ac_file"
2310 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2311 case "$ac_file" in
2312 *Makefile*) ac_comsub="1i\\
2313 # $configure_input" ;;
2314 *) ac_comsub= ;;
2315 esac
2317 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2318 sed -e "$ac_comsub
2319 s%@configure_input@%$configure_input%g
2320 s%@srcdir@%$srcdir%g
2321 s%@top_srcdir@%$top_srcdir%g
2322 s%@INSTALL@%$INSTALL%g
2323 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2324 fi; done
2325 rm -f conftest.s*
2327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2330 # ac_d sets the value in "#define NAME VALUE" lines.
2331 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2332 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2333 ac_dC='\3'
2334 ac_dD='%g'
2335 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2336 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2337 ac_uB='\([ ]\)%\1#\2define\3'
2338 ac_uC=' '
2339 ac_uD='\4%g'
2340 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2341 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2342 ac_eB='$%\1#\2define\3'
2343 ac_eC=' '
2344 ac_eD='%g'
2346 if test "${CONFIG_HEADERS+set}" != set; then
2348 cat >> $CONFIG_STATUS <<EOF
2349 CONFIG_HEADERS="config.h"
2351 cat >> $CONFIG_STATUS <<\EOF
2353 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2355 case "$ac_file" in
2356 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2357 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2358 *) ac_file_in="${ac_file}.in" ;;
2359 esac
2361 echo creating $ac_file
2363 rm -f conftest.frag conftest.in conftest.out
2364 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2365 cat $ac_file_inputs > conftest.in
2369 # Transform confdefs.h into a sed script conftest.vals that substitutes
2370 # the proper values into config.h.in to produce config.h. And first:
2371 # Protect against being on the right side of a sed subst in config.status.
2372 # Protect against being in an unquoted here document in config.status.
2373 rm -f conftest.vals
2374 cat > conftest.hdr <<\EOF
2375 s/[\\&%]/\\&/g
2376 s%[\\$`]%\\&%g
2377 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2378 s%ac_d%ac_u%gp
2379 s%ac_u%ac_e%gp
2381 sed -n -f conftest.hdr confdefs.h > conftest.vals
2382 rm -f conftest.hdr
2384 # This sed command replaces #undef with comments. This is necessary, for
2385 # example, in the case of _POSIX_SOURCE, which is predefined and required
2386 # on some systems where configure will not decide to define it.
2387 cat >> conftest.vals <<\EOF
2388 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2391 # Break up conftest.vals because some shells have a limit on
2392 # the size of here documents, and old seds have small limits too.
2394 rm -f conftest.tail
2395 while :
2397 ac_lines=`grep -c . conftest.vals`
2398 # grep -c gives empty output for an empty file on some AIX systems.
2399 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2400 # Write a limited-size here document to conftest.frag.
2401 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2402 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2403 echo 'CEOF
2404 sed -f conftest.frag conftest.in > conftest.out
2405 rm -f conftest.in
2406 mv conftest.out conftest.in
2407 ' >> $CONFIG_STATUS
2408 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2409 rm -f conftest.vals
2410 mv conftest.tail conftest.vals
2411 done
2412 rm -f conftest.vals
2414 cat >> $CONFIG_STATUS <<\EOF
2415 rm -f conftest.frag conftest.h
2416 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2417 cat conftest.in >> conftest.h
2418 rm -f conftest.in
2419 if cmp -s $ac_file conftest.h 2>/dev/null; then
2420 echo "$ac_file is unchanged"
2421 rm -f conftest.h
2422 else
2423 # Remove last slash and all that follows it. Not all systems have dirname.
2424 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2425 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2426 # The file is in a subdirectory.
2427 test ! -d "$ac_dir" && mkdir "$ac_dir"
2429 rm -f $ac_file
2430 mv conftest.h $ac_file
2432 fi; done
2436 cat >> $CONFIG_STATUS <<EOF
2437 ac_sources="`echo $libc_link_sources`"
2438 ac_dests="`echo $libc_link_dests`"
2441 cat >> $CONFIG_STATUS <<\EOF
2442 srcdir=$ac_given_srcdir
2443 while test -n "$ac_sources"; do
2444 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2445 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2447 echo "linking $srcdir/$ac_source to $ac_dest"
2449 if test ! -r $srcdir/$ac_source; then
2450 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2452 rm -f $ac_dest
2454 # Make relative symlinks.
2455 # Remove last slash and all that follows it. Not all systems have dirname.
2456 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2457 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2458 # The dest file is in a subdirectory.
2459 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2460 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2461 # A "../" for each directory in $ac_dest_dir_suffix.
2462 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2463 else
2464 ac_dest_dir_suffix= ac_dots=
2467 case "$srcdir" in
2468 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2469 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2470 esac
2472 # Make a symlink if possible; otherwise try a hard link.
2473 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2474 ln $srcdir/$ac_source $ac_dest; then :
2475 else
2476 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2478 done
2480 cat >> $CONFIG_STATUS <<EOF
2481 echo '$config_vars' >> config.make
2483 cat >> $CONFIG_STATUS <<\EOF
2485 exit 0
2487 chmod +x $CONFIG_STATUS
2488 rm -fr confdefs* $ac_clean_files
2489 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2491 if test "$no_recursion" != yes; then
2493 # Remove --cache-file and --srcdir arguments so they do not pile up.
2494 ac_sub_configure_args=
2495 ac_prev=
2496 for ac_arg in $ac_configure_args; do
2497 if test -n "$ac_prev"; then
2498 ac_prev=
2499 continue
2501 case "$ac_arg" in
2502 -cache-file | --cache-file | --cache-fil | --cache-fi \
2503 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2504 ac_prev=cache_file ;;
2505 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2506 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2509 ac_prev=srcdir ;;
2510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2512 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2513 esac
2514 done
2516 for ac_config_dir in $add_ons; do
2518 # Do not complain, so a configure script can configure whichever
2519 # parts of a large source tree are present.
2520 if test ! -d $srcdir/$ac_config_dir; then
2521 continue
2524 echo configuring in $ac_config_dir
2526 case "$srcdir" in
2527 .) ;;
2529 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2530 else
2531 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2534 esac
2536 ac_popdir=`pwd`
2537 cd $ac_config_dir
2539 # A "../" for each directory in /$ac_config_dir.
2540 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2542 case "$srcdir" in
2543 .) # No --srcdir option. We are building in place.
2544 ac_sub_srcdir=$srcdir ;;
2545 /*) # Absolute path.
2546 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2547 *) # Relative path.
2548 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2549 esac
2551 # Check for guested configure; otherwise get Cygnus style configure.
2552 if test -f $ac_sub_srcdir/configure; then
2553 ac_sub_configure=$ac_sub_srcdir/configure
2554 elif test -f $ac_sub_srcdir/configure.in; then
2555 ac_sub_configure=$ac_configure
2556 else
2557 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2558 ac_sub_configure=
2561 # The recursion is here.
2562 if test -n "$ac_sub_configure"; then
2564 # Make the cache file name correct relative to the subdirectory.
2565 case "$cache_file" in
2566 /*) ac_sub_cache_file=$cache_file ;;
2567 *) # Relative path.
2568 ac_sub_cache_file="$ac_dots$cache_file" ;;
2569 esac
2570 case "$ac_given_INSTALL" in
2571 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2572 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2573 esac
2575 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2576 # The eval makes quoting arguments work.
2577 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2578 then :
2579 else
2580 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2584 cd $ac_popdir
2585 done