Change types of inet_neta and inet_addr.
[glibc.git] / configure
blobcb951e7649799cf45b25d13e2032a87854315f06
1 #! /bin/sh
3 # From configure.in CVSid
8 # Guess values for system-dependent variables and create Makefiles.
9 # Generated automatically using autoconf version 2.12
10 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
15 # Defaults:
16 ac_help=
17 ac_default_prefix=/usr/local
18 # Any additions from configure.in:
19 ac_help="$ac_help
20 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
21 ac_help="$ac_help
22 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
23 ac_help="$ac_help
24 --with-fp if using floating-point hardware [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-binutils if using GNU binutils (as and ld)"
27 ac_help="$ac_help
28 --with-gnu-ld if using GNU ld (in the binutils package)"
29 ac_help="$ac_help
30 --with-gnu-as if using GNU as (in the binutils package)"
31 ac_help="$ac_help
32 --with-elf if using the ELF object format"
33 ac_help="$ac_help
34 --enable-libio build in GNU libio instead of GNU stdio"
35 ac_help="$ac_help
36 --disable-sanity-checks really do not use threads (should not be used
37 except in special situations) [default=yes]"
38 ac_help="$ac_help
39 --enable-shared build shared library [default=yes if GNU ld & ELF]"
40 ac_help="$ac_help
41 --enable-profile build profiled library [default=yes]"
42 ac_help="$ac_help
43 --enable-omitfp build undebuggable optimized library [default=no]"
44 ac_help="$ac_help
45 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
46 search for add-ons if no parameter given"
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
51 build=NONE
52 cache_file=./config.cache
53 exec_prefix=NONE
54 host=NONE
55 no_create=
56 nonopt=NONE
57 no_recursion=
58 prefix=NONE
59 program_prefix=NONE
60 program_suffix=NONE
61 program_transform_name=s,x,x,
62 silent=
63 site=
64 srcdir=
65 target=NONE
66 verbose=
67 x_includes=NONE
68 x_libraries=NONE
69 bindir='${exec_prefix}/bin'
70 sbindir='${exec_prefix}/sbin'
71 libexecdir='${exec_prefix}/libexec'
72 datadir='${prefix}/share'
73 sysconfdir='${prefix}/etc'
74 sharedstatedir='${prefix}/com'
75 localstatedir='${prefix}/var'
76 libdir='${exec_prefix}/lib'
77 includedir='${prefix}/include'
78 oldincludedir='/usr/include'
79 infodir='${prefix}/info'
80 mandir='${prefix}/man'
82 # Initialize some other variables.
83 subdirs=
84 MFLAGS= MAKEFLAGS=
85 # Maximum number of lines to put in a shell here document.
86 ac_max_here_lines=12
88 ac_prev=
89 for ac_option
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
95 ac_prev=
96 continue
99 case "$ac_option" in
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 *) ac_optarg= ;;
102 esac
104 # Accept the important Cygnus configure options, so we can diagnose typos.
106 case "$ac_option" in
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 ac_prev=bindir ;;
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
114 ac_prev=build ;;
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 ac_prev=datadir ;;
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 | --da=*)
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 case "$ac_option" in
148 *=*) ;;
149 *) ac_optarg=yes ;;
150 esac
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
164 with_gas=yes ;;
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
169 cat << EOF
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
172 Configuration:
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
180 [$ac_default_prefix]
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 [same as prefix]
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
187 [PREFIX/share]
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 [PREFIX/com]
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
203 cat << EOF
204 Host type:
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
219 exit 0 ;;
221 -host | --host | --hos | --ho)
222 ac_prev=host ;;
223 -host=* | --host=* | --hos=* | --ho=*)
224 host="$ac_optarg" ;;
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 ac_prev=infodir ;;
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
239 ac_prev=libdir ;;
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 ac_prev=mandir ;;
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
264 -nfp | --nfp | --nf)
265 # Obsolete; use --without-fp.
266 with_fp=no ;;
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 | --no-cr | --no-c)
270 no_create=yes ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 no_recursion=yes ;;
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 ac_prev=prefix ;;
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
323 silent=yes ;;
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 ac_prev=sbindir ;;
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 | --sbi=* | --sb=*)
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
334 | --sha | --sh)
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 | --sha=* | --sh=*)
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
343 ac_prev=site ;;
344 -site=* | --site=* | --sit=*)
345 site="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.12"
369 exit 0 ;;
371 -with-* | --with-*)
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 nonopt="$ac_option"
424 esac
425 done
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
434 # 0 standard input
435 # 1 file creation
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
442 exec 6>/dev/null
443 else
444 exec 6>&1
446 exec 5>./config.log
448 echo "\
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
451 " 1>&5
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
455 ac_configure_args=
456 for ac_arg
458 case "$ac_arg" in
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 esac
467 done
469 # NLS nuisances.
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 echo > confdefs.h
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=features.h
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
492 ac_prog=$0
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 srcdir=$ac_confdir
496 if test ! -r $srcdir/$ac_unique_file; then
497 srcdir=..
499 else
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 else
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 else
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
522 . "$ac_site_file"
524 done
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529 else
530 echo "creating cache $cache_file"
531 > $cache_file
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='
545 ' ac_t=' '
546 else
547 ac_n=-n ac_c= ac_t=
549 else
550 ac_n= ac_c='\c' ac_t=
556 # This will get text that should go into config.make.
557 config_vars=
559 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
560 # Check whether --with-gmp or --without-gmp was given.
561 if test "${with_gmp+set}" = set; then
562 withval="$with_gmp"
563 case "$with_gmp" in
564 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
565 ''|no) ;;
566 *) config_vars="$config_vars
567 gmp-srcdir = $withval" ;;
568 esac
572 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
573 # Check whether --with-gettext or --without-gettext was given.
574 if test "${with_gettext+set}" = set; then
575 withval="$with_gettext"
576 case "$with_gettext" in
577 yes)
578 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
579 ''|no) ;;
581 config_vars="$config_vars
582 gettext-srcdir = $withval" ;;
583 esac
588 # Check whether --with-fp or --without-fp was given.
589 if test "${with_fp+set}" = set; then
590 withval="$with_fp"
591 with_fp=$withval
592 else
593 with_fp=yes
596 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
597 if test "${with_gnu_binutils+set}" = set; then
598 withval="$with_gnu_binutils"
599 gnu_binutils=$withval
600 else
601 gnu_binutils=no
604 # Check whether --with-gnu-ld or --without-gnu-ld was given.
605 if test "${with_gnu_ld+set}" = set; then
606 withval="$with_gnu_ld"
607 gnu_ld=$withval
608 else
609 gnu_ld=no
612 # Check whether --with-gnu-as or --without-gnu-as was given.
613 if test "${with_gnu_as+set}" = set; then
614 withval="$with_gnu_as"
615 gnu_as=$withval
616 else
617 gnu_as=no
620 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
621 # Check whether --with-elf or --without-elf was given.
622 if test "${with_elf+set}" = set; then
623 withval="$with_elf"
624 elf=$withval
625 else
626 elf=no
630 # Check whether --enable-libio or --disable-libio was given.
631 if test "${enable_libio+set}" = set; then
632 enableval="$enable_libio"
633 if test $enableval = yes; then
634 stdio=libio
635 else
636 stdio=stdio
638 else
639 stdio=default
643 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
644 if test "${enable_sanity_checks+set}" = set; then
645 enableval="$enable_sanity_checks"
646 enable_sanity=$enableval
647 else
648 enable_sanity=yes
652 # Check whether --enable-shared or --disable-shared was given.
653 if test "${enable_shared+set}" = set; then
654 enableval="$enable_shared"
655 shared=$enableval
656 else
657 shared=default
660 # Check whether --enable-profile or --disable-profile was given.
661 if test "${enable_profile+set}" = set; then
662 enableval="$enable_profile"
663 profile=$enableval
664 else
665 profile=yes
668 # Check whether --enable-omitfp or --disable-omitfp was given.
669 if test "${enable_omitfp+set}" = set; then
670 enableval="$enable_omitfp"
671 omitfp=$enableval
672 else
673 omitfp=no
677 if test $omitfp = yes; then
678 echo "*** Not all versions of GCC compile code correctly when the"
679 echo "*** -fomit-frame-pointer version is used. You are on your own"
680 echo "*** if you use it."
683 # Check whether --enable-add-ons or --disable-add-ons was given.
684 if test "${enable_add_ons+set}" = set; then
685 enableval="$enable_add_ons"
686 case "$enableval" in
687 yes) add_ons=`echo $srcdir/*/configure | \
688 sed -e "s!$srcdir/!!g" -e 's!/configure!!g'`;;
689 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
690 esac
691 else
692 add_ons=
695 ac_aux_dir=
696 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
697 if test -f $ac_dir/install-sh; then
698 ac_aux_dir=$ac_dir
699 ac_install_sh="$ac_aux_dir/install-sh -c"
700 break
701 elif test -f $ac_dir/install.sh; then
702 ac_aux_dir=$ac_dir
703 ac_install_sh="$ac_aux_dir/install.sh -c"
704 break
706 done
707 if test -z "$ac_aux_dir"; then
708 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
710 ac_config_guess=$ac_aux_dir/config.guess
711 ac_config_sub=$ac_aux_dir/config.sub
712 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
714 subdirs="$add_ons"
716 add_ons_pfx=
717 if test x"$add_ons" != x; then
718 for f in $add_ons; do
719 # Test whether such a subdir really exists.
720 if test -d $srcdir/$f; then
721 add_ons_pfx="$add_ons_pfx $f/"
722 else
723 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
725 done
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 echo $ac_n "checking host system type""... $ac_c" 1>&6
735 echo "configure:736: checking host system type" >&5
737 host_alias=$host
738 case "$host_alias" in
739 NONE)
740 case $nonopt in
741 NONE)
742 if host_alias=`$ac_config_guess`; then :
743 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
744 fi ;;
745 *) host_alias=$nonopt ;;
746 esac ;;
747 esac
749 host=`$ac_config_sub $host_alias`
750 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
753 echo "$ac_t""$host" 1>&6
756 # The way shlib-versions is used to generate soversions.mk uses a
757 # fairly simplistic model for name recognition that can't distinguish
758 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
759 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
760 # tell. This doesn't get used much beyond that, so it's fairly safe.
761 case "$host_os" in
762 linux*)
764 gnu*)
765 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
767 esac
769 ### I put this here to prevent those annoying emails from people who cannot
770 ### read and try to compile glibc on unsupported platforms. --drepper
772 ### By using the undocumented --enable-hacker-mode option for configure
773 ### one can skip this test to make the configuration not fail for unsupported
774 ### platforms.
776 if test -z "$enable_hacker_mode"; then
777 case "$host_os" in
778 linux* | gnu*)
781 echo "*** The GNU C library is currently not available for this platform."
782 echo "*** So far nobody cared to port it and if there is no volunteer it"
783 echo "*** might never happen. So, if you have interest to see glibc on"
784 echo "*** this platform visit"
785 echo "*** http://www.gnu.org/software/libc/porting.html"
786 echo "*** and join the group of porters"
787 exit 1
789 esac
793 # We keep the original values in `$config_*' and never modify them, so we
794 # can write them unchanged into config.make. Everything else uses
795 # $machine, $vendor, and $os, and changes them whenever convenient.
796 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
798 # Some configurations imply other options.
799 case "$host_os" in
800 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
801 # These systems always use GNU tools.
802 gnu_ld=yes gnu_as=yes ;;
803 esac
804 case "$host_os" in
805 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
806 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
808 gnu* | linux* | sysv4* | solaris2*)
809 # These systems (almost) always use the ELF format.
810 elf=yes
812 esac
814 machine=$config_machine
815 vendor=$config_vendor
816 os=$config_os
818 # Expand the configuration machine name into a subdirectory by architecture
819 # type and particular chip.
820 case "$machine" in
821 a29k | am29000) base_machine=a29k machine=a29k ;;
822 alpha*) base_machine=alpha machine=alpha/$machine ;;
823 hppa*) base_machine=hppa machine=hppa/$machine ;;
824 i[3456]86) base_machine=i386 machine=i386/$machine ;;
825 m680?0) base_machine=m68k machine=m68k/$machine ;;
826 m68k) base_machine=m68k machine=m68k/m68020 ;;
827 m88???) base_machine=m88k machine=m88k/$machine ;;
828 m88k) base_machine=m88k machine=m88k/m88100 ;;
829 mips*) base_machine=mips machine=mips/$machine ;;
830 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
831 sparc | sparcv[67])
832 base_machine=sparc machine=sparc/sparc32 ;;
833 sparcv8 | supersparc | hypersparc)
834 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
835 sparc64) base_machine=sparc machine=sparc/sparc64 ;;
836 esac
839 # Compute the list of sysdep directories for this configuration.
840 # This can take a while to compute.
841 sysdep_dir=$srcdir/sysdeps
842 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
843 echo "configure:844: checking sysdep dirs" >&5
844 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
845 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
847 case "$os" in
848 gnu*)
849 base_os=mach/hurd ;;
850 netbsd* | 386bsd* | freebsd* | bsdi*)
851 base_os=unix/bsd/bsd4.4 ;;
852 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
853 base_os=unix/bsd ;;
854 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
855 base_os=unix/sysv ;;
856 solaris[2-9]*)
857 base_os=unix/sysv/sysv4 ;;
858 none)
859 base_os=standalone ;;
861 base_os='' ;;
862 esac
864 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
865 tail=$os
866 ostry=$os
867 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
868 ostry="$ostry /$o"
869 tail=$o
870 done
871 o=`echo $tail | sed 's/[0-9]*$//'`
872 if test $o != $tail; then
873 ostry="$ostry /$o"
875 # For linux-gnu, try linux-gnu, then linux.
876 o=`echo $tail | sed 's/-.*$//'`
877 if test $o != $tail; then
878 ostry="$ostry /$o"
881 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
882 base=
883 tail=$base_os
884 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
885 set $b
886 base="$base /$1"
887 tail="$2"
888 done
890 # For sparc/sparcv9, try sparc/sparcv9 and then sparc.
891 mach=
892 tail=$machine
893 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
894 set $m
895 # Prepend the machine's FPU directory unless --without-fp.
896 if test "$with_fp" = yes; then
897 mach="$mach /$1/fpu"
899 mach="$mach /$1"
900 tail="$2"
901 done
904 # Find what sysdep directories exist.
905 sysnames=
906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
907 for d in $add_ons_pfx ''; do
908 for b in $base ''; do
909 for m0 in $mach ''; do
910 for v in /$vendor ''; do
911 for o in /$ostry ''; do
912 for m in $mach ''; do
913 if test "$m0$b$v$o$m"; then
914 try="${d}sysdeps$m0$b$v$o$m"
915 test -n "$enable_debug_configure" &&
916 echo "$0 DEBUG: try $try" >&2
917 case $try in
918 /*) dest=$try ;;
919 *) dest=$srcdir/$try ;;
920 esac
921 if test -d $dest; then
922 sysnames="$sysnames $try"
923 { test -n "$o" || test -n "$b"; } && os_used=t
924 { test -n "$m" || test -n "$m0"; } && machine_used=t
927 done
928 done
929 done
930 done
931 done
932 done
933 IFS="$ac_save_ifs"
935 if test -z "$os_used" && test "$os" != none; then
936 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
938 if test -z "$machine_used" && test "$machine" != none; then
939 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
942 # We have now validated the configuration.
945 # If using ELF, look for an `elf' subdirectory of each machine directory.
946 # We prepend these rather than inserting them whereever the machine appears
947 # because things specified by the machine's ELF ABI should override
948 # OS-specific things, and should always be the same for any OS on the
949 # machine (otherwise what's the point of an ABI?).
950 if test "$elf" = yes; then
951 elf_dirs=
952 for d in $add_ons_pfx ''; do
953 case $d in
954 /*) xsrcdir= ;;
955 *) xsrcdir=$srcdir/ ;;
956 esac
957 for m in $mach; do
958 if test -d $xsrcdir${d}sysdeps$m/elf; then
959 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
961 done
962 done
963 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
967 # Expand the list of system names into a full list of directories
968 # from each element's parent name and Implies file (if present).
969 set $sysnames
970 names=
971 while test $# -gt 0; do
972 name=$1
973 shift
975 case " $names " in *" $name "*)
976 # Already in the list.
977 continue
978 esac
980 # Report each name as we discover it, so there is no long pause in output.
981 echo $ac_n "$name $ac_c" >&6
983 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
985 case $name in
986 /*) xsrcdir= ;;
987 *) xsrcdir=$srcdir/ ;;
988 esac
989 test -n "$enable_debug_configure" &&
990 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
992 if test -f $xsrcdir$name/Implies; then
993 # Collect more names from the `Implies' file (removing comments).
994 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
995 implied=
996 for x in $implied_candidate; do
997 if test -d $xsrcdir$name_base/$x; then
998 implied="$implied $name_base/$x";
999 else
1000 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1002 done
1003 else
1004 implied=
1007 # Add NAME to the list of names.
1008 names="$names $name"
1010 # Find the parent of NAME, using the empty string if it has none.
1011 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1013 # Add the names implied by NAME, and NAME's parent (if it has one), to
1014 # the list of names to be processed (the argument list). We prepend the
1015 # implied names to the list and append the parent. We want implied
1016 # directories to come before further directories inferred from the
1017 # configuration components; this ensures that for sysv4, unix/common
1018 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1019 # after sysv4).
1020 sysnames="`echo $implied $* $parent`"
1021 test -n "$sysnames" && set $sysnames
1022 done
1024 # Add the default directories.
1025 sysnames="$names sysdeps/generic sysdeps/stub"
1027 # The other names were emitted during the scan.
1028 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1031 ### Locate tools.
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1039 # AIX /bin/install
1040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1042 # ./install, which can be erroneously created by make from ./install.sh.
1043 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1044 echo "configure:1045: checking for a BSD compatible install" >&5
1045 if test -z "$INSTALL"; then
1046 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1048 else
1049 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1050 for ac_dir in $PATH; do
1051 # Account for people who put trailing slashes in PATH elements.
1052 case "$ac_dir/" in
1053 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1055 # OSF1 and SCO ODT 3.0 have their own names for install.
1056 for ac_prog in ginstall installbsd scoinst install; do
1057 if test -f $ac_dir/$ac_prog; then
1058 if test $ac_prog = install &&
1059 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # AIX install. It has an incompatible calling convention.
1061 # OSF/1 installbsd also uses dspmsg, but is usable.
1063 else
1064 ac_cv_path_install="$ac_dir/$ac_prog -c"
1065 break 2
1068 done
1070 esac
1071 done
1072 IFS="$ac_save_IFS"
1075 if test "${ac_cv_path_install+set}" = set; then
1076 INSTALL="$ac_cv_path_install"
1077 else
1078 # As a last resort, use the slow shell script. We don't cache a
1079 # path for INSTALL within a source directory, because that will
1080 # break other packages using the cache if that directory is
1081 # removed, or if the path is relative.
1082 INSTALL="$ac_install_sh"
1085 echo "$ac_t""$INSTALL" 1>&6
1087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1088 # It thinks the first close brace ends the variable substitution.
1089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1093 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1094 # The makefiles need to use a different form to find it in $srcdir.
1095 INSTALL='\$(..)./install-sh -c'
1097 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether ln -s works" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 rm -f conftestdata
1103 if ln -s X conftestdata 2>/dev/null
1104 then
1105 rm -f conftestdata
1106 ac_cv_prog_LN_S="ln -s"
1107 else
1108 ac_cv_prog_LN_S=ln
1111 LN_S="$ac_cv_prog_LN_S"
1112 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1113 echo "$ac_t""yes" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 for ac_prog in msgfmt gmsgfmt
1120 # Extract the first word of "$ac_prog", so it can be a program name with args.
1121 set dummy $ac_prog; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127 if test -n "$MSGFMT"; then
1128 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1129 else
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1131 for ac_dir in $PATH; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_MSGFMT="$ac_prog"
1135 break
1137 done
1138 IFS="$ac_save_ifs"
1141 MSGFMT="$ac_cv_prog_MSGFMT"
1142 if test -n "$MSGFMT"; then
1143 echo "$ac_t""$MSGFMT" 1>&6
1144 else
1145 echo "$ac_t""no" 1>&6
1148 test -n "$MSGFMT" && break
1149 done
1150 test -n "$MSGFMT" || MSGFMT=":"
1153 # Extract the first word of "gcc", so it can be a program name with args.
1154 set dummy gcc; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC="$CC" # Let the user override the test.
1162 else
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1164 for ac_dir in $PATH; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_CC="gcc"
1168 break
1170 done
1171 IFS="$ac_save_ifs"
1174 CC="$ac_cv_prog_CC"
1175 if test -n "$CC"; then
1176 echo "$ac_t""$CC" 1>&6
1177 else
1178 echo "$ac_t""no" 1>&6
1181 if test -z "$CC"; then
1182 # Extract the first word of "cc", so it can be a program name with args.
1183 set dummy cc; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189 if test -n "$CC"; then
1190 ac_cv_prog_CC="$CC" # Let the user override the test.
1191 else
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1193 ac_prog_rejected=no
1194 for ac_dir in $PATH; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1197 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1198 ac_prog_rejected=yes
1199 continue
1201 ac_cv_prog_CC="cc"
1202 break
1204 done
1205 IFS="$ac_save_ifs"
1206 if test $ac_prog_rejected = yes; then
1207 # We found a bogon in the path, so make sure we never use it.
1208 set dummy $ac_cv_prog_CC
1209 shift
1210 if test $# -gt 0; then
1211 # We chose a different compiler from the bogus one.
1212 # However, it has the same basename, so the bogon will be chosen
1213 # first if we set CC to just the basename; use the full file name.
1214 shift
1215 set dummy "$ac_dir/$ac_word" "$@"
1216 shift
1217 ac_cv_prog_CC="$@"
1222 CC="$ac_cv_prog_CC"
1223 if test -n "$CC"; then
1224 echo "$ac_t""$CC" 1>&6
1225 else
1226 echo "$ac_t""no" 1>&6
1229 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1232 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1235 ac_ext=c
1236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1239 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1240 cross_compiling=$ac_cv_prog_cc_cross
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 main(){return(0);}
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1248 ac_cv_prog_cc_works=yes
1249 # If we can't run a trivial program, we are probably using a cross compiler.
1250 if (./conftest; exit) 2>/dev/null; then
1251 ac_cv_prog_cc_cross=no
1252 else
1253 ac_cv_prog_cc_cross=yes
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 ac_cv_prog_cc_works=no
1260 rm -fr conftest*
1262 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1263 if test $ac_cv_prog_cc_works = no; then
1264 cross_linkable=no
1265 ac_cv_prog_cc_cross=yes
1266 else
1267 cross_linkable=yes
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1271 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1273 cross_compiling=$ac_cv_prog_cc_cross
1275 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether we are using GNU C" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 cat > conftest.c <<EOF
1281 #ifdef __GNUC__
1282 yes;
1283 #endif
1285 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1286 ac_cv_prog_gcc=yes
1287 else
1288 ac_cv_prog_gcc=no
1292 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1294 if test $ac_cv_prog_gcc = yes; then
1295 GCC=yes
1297 cat > conftest.c <<EOF
1298 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1299 yes;
1300 #endif
1302 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1303 if test -z "$CFLAGS"; then
1304 CFLAGS="-g -O2"
1306 else
1307 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1309 else
1310 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1313 echo $ac_n "checking build system type""... $ac_c" 1>&6
1314 echo "configure:1315: checking build system type" >&5
1316 build_alias=$build
1317 case "$build_alias" in
1318 NONE)
1319 case $nonopt in
1320 NONE) build_alias=$host_alias ;;
1321 *) build_alias=$nonopt ;;
1322 esac ;;
1323 esac
1325 build=`$ac_config_sub $build_alias`
1326 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1329 echo "$ac_t""$build" 1>&6
1331 if test $host != $build; then
1332 for ac_prog in gcc cc
1334 # Extract the first word of "$ac_prog", so it can be a program name with args.
1335 set dummy $ac_prog; ac_word=$2
1336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_word" >&5
1338 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341 if test -n "$BUILD_CC"; then
1342 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1343 else
1344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1345 for ac_dir in $PATH; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_BUILD_CC="$ac_prog"
1349 break
1351 done
1352 IFS="$ac_save_ifs"
1355 BUILD_CC="$ac_cv_prog_BUILD_CC"
1356 if test -n "$BUILD_CC"; then
1357 echo "$ac_t""$BUILD_CC" 1>&6
1358 else
1359 echo "$ac_t""no" 1>&6
1362 test -n "$BUILD_CC" && break
1363 done
1367 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1368 echo "configure:1369: checking how to run the C preprocessor" >&5
1369 # On Suns, sometimes $CPP names a directory.
1370 if test -n "$CPP" && test -d "$CPP"; then
1371 CPP=
1373 if test -z "$CPP"; then
1374 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 # This must be in double quotes, not single quotes, because CPP may get
1378 # substituted into the Makefile and "${CC-cc}" will confuse make.
1379 CPP="${CC-cc} -E"
1380 # On the NeXT, cc -E runs the code through the compiler's parser,
1381 # not just through cpp.
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <assert.h>
1386 Syntax Error
1388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1389 { (eval echo configure:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1390 ac_err=`grep -v '^ *+' conftest.out`
1391 if test -z "$ac_err"; then
1393 else
1394 echo "$ac_err" >&5
1395 echo "configure: failed program was:" >&5
1396 cat conftest.$ac_ext >&5
1397 rm -rf conftest*
1398 CPP="${CC-cc} -E -traditional-cpp"
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 #include <assert.h>
1403 Syntax Error
1405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err=`grep -v '^ *+' conftest.out`
1408 if test -z "$ac_err"; then
1410 else
1411 echo "$ac_err" >&5
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 rm -rf conftest*
1415 CPP=/lib/cpp
1417 rm -f conftest*
1419 rm -f conftest*
1420 ac_cv_prog_CPP="$CPP"
1422 CPP="$ac_cv_prog_CPP"
1423 else
1424 ac_cv_prog_CPP="$CPP"
1426 echo "$ac_t""$CPP" 1>&6
1428 if test $host != $build; then
1429 ac_tool_prefix=${host_alias}-
1430 else
1431 ac_tool_prefix=
1434 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}ar; ac_word=$2
1436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_word" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 if test -n "$AR"; then
1442 ac_cv_prog_AR="$AR" # Let the user override the test.
1443 else
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1445 for ac_dir in $PATH; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1449 break
1451 done
1452 IFS="$ac_save_ifs"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1456 AR="$ac_cv_prog_AR"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1459 else
1460 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 else
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1476 for ac_dir in $PATH; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1480 break
1482 done
1483 IFS="$ac_save_ifs"
1486 RANLIB="$ac_cv_prog_RANLIB"
1487 if test -n "$RANLIB"; then
1488 echo "$ac_t""$RANLIB" 1>&6
1489 else
1490 echo "$ac_t""no" 1>&6
1494 if test -z "$ac_cv_prog_RANLIB"; then
1495 if test -n "$ac_tool_prefix"; then
1496 # Extract the first word of "ranlib", so it can be a program name with args.
1497 set dummy ranlib; ac_word=$2
1498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1499 echo "configure:1500: checking for $ac_word" >&5
1500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 if test -n "$RANLIB"; then
1504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1505 else
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1507 for ac_dir in $PATH; do
1508 test -z "$ac_dir" && ac_dir=.
1509 if test -f $ac_dir/$ac_word; then
1510 ac_cv_prog_RANLIB="ranlib"
1511 break
1513 done
1514 IFS="$ac_save_ifs"
1515 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1518 RANLIB="$ac_cv_prog_RANLIB"
1519 if test -n "$RANLIB"; then
1520 echo "$ac_t""$RANLIB" 1>&6
1521 else
1522 echo "$ac_t""no" 1>&6
1525 else
1526 RANLIB=":"
1531 # Extract the first word of "bash", so it can be a program name with args.
1532 set dummy bash; ac_word=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1535 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538 case "$BASH" in
1540 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1544 for ac_dir in $PATH; do
1545 test -z "$ac_dir" && ac_dir=.
1546 if test -f $ac_dir/$ac_word; then
1547 ac_cv_path_BASH="$ac_dir/$ac_word"
1548 break
1550 done
1551 IFS="$ac_save_ifs"
1552 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1554 esac
1556 BASH="$ac_cv_path_BASH"
1557 if test -n "$BASH"; then
1558 echo "$ac_t""$BASH" 1>&6
1559 else
1560 echo "$ac_t""no" 1>&6
1563 if test "$BASH" != no &&
1564 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1565 libc_cv_have_bash2=yes
1566 else
1567 libc_cv_have_bash2=no
1571 if test "$BASH" = no; then
1572 # Extract the first word of "ksh", so it can be a program name with args.
1573 set dummy ksh; ac_word=$2
1574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1575 echo "configure:1576: checking for $ac_word" >&5
1576 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1578 else
1579 case "$KSH" in
1581 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1585 for ac_dir in $PATH; do
1586 test -z "$ac_dir" && ac_dir=.
1587 if test -f $ac_dir/$ac_word; then
1588 ac_cv_path_KSH="$ac_dir/$ac_word"
1589 break
1591 done
1592 IFS="$ac_save_ifs"
1593 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1595 esac
1597 KSH="$ac_cv_path_KSH"
1598 if test -n "$KSH"; then
1599 echo "$ac_t""$KSH" 1>&6
1600 else
1601 echo "$ac_t""no" 1>&6
1604 if test "$KSH" = no; then
1605 libc_cv_have_ksh=no
1606 else
1607 libc_cv_have_ksh=yes
1609 else
1610 KSH="$BASH"
1612 libc_cv_have_ksh=yes
1616 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1617 echo "configure:1618: checking for signed size_t type" >&5
1618 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 echo '#include <stddef.h>
1622 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1623 if eval "$ac_cpp conftest.c 2>/dev/null" \
1624 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1625 libc_cv_signed_size_t=no
1626 else
1627 libc_cv_signed_size_t=yes
1629 rm -f conftest*
1632 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1633 if test $libc_cv_signed_size_t = yes; then
1634 cat >> confdefs.h <<\EOF
1635 #undef __SIZE_TYPE__
1636 #define __SIZE_TYPE__ unsigned
1640 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1641 echo "configure:1642: checking for libc-friendly stddef.h" >&5
1642 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 #define __need_size_t
1649 #define __need_wchar_t
1650 #include <stddef.h>
1651 #define __need_NULL
1652 #include <stddef.h>
1653 int main() {
1654 size_t size; wchar_t wchar;
1655 #ifdef offsetof
1656 #error stddef.h ignored __need_*
1657 #endif
1658 if (&size == NULL || &wchar == NULL) abort ();
1659 ; return 0; }
1661 if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 rm -rf conftest*
1663 libc_cv_friendly_stddef=yes
1664 else
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -rf conftest*
1668 libc_cv_friendly_stddef=no
1670 rm -f conftest*
1673 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1674 if test $libc_cv_friendly_stddef = yes; then
1675 config_vars="$config_vars
1676 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1679 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether we need to use -P to assemble .S files" >&5
1681 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 cat > conftest.S <<EOF
1685 #include "confdefs.h"
1686 /* Nothing whatsoever. */
1688 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1689 libc_cv_need_minus_P=no
1690 else
1691 libc_cv_need_minus_P=yes
1693 rm -f conftest*
1696 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1697 if test $libc_cv_need_minus_P = yes; then
1698 config_vars="$config_vars
1699 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1702 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1703 # be told to read stdin. This causes the compiler to hang when fed an
1704 # .s file.
1705 if test $ac_cv_prog_gcc = yes; then
1706 case `${CC-cc} -v 2>&1` in
1707 *2.7*)
1708 # We must check this even if -pipe is not given here, because the user
1709 # might do `make CFLAGS=-pipe'.
1710 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1711 echo "configure:1712: checking for gcc 2.7.x -pipe bug" >&5
1712 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 cp /dev/null conftest.s
1716 cat >conftest1.s <<EOF
1717 .nosuchdirective
1719 if ${CC-cc} -pipe -c conftest.s <conftest1.s 2>/dev/null; then
1720 libc_cv_gcc_pipe_bug=no
1721 else
1722 libc_cv_gcc_pipe_bug=yes
1724 rm -f conftest*
1727 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1728 if test $libc_cv_gcc_pipe_bug = yes; then
1729 makeCC="${CC-cc} -B\$(common-objpfx)"
1730 makeCFLAGS=$CFLAGS
1731 CFLAGS=`echo $CFLAGS |sed 's/-pipe//'`
1732 fi;;
1733 *) libc_cv_gcc_pipe_bug=no;;
1734 esac
1735 else
1736 libc_cv_gcc_pipe_bug=no
1740 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1741 echo "configure:1742: checking for assembler global-symbol directive" >&5
1742 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 libc_cv_asm_global_directive=UNKNOWN
1746 for ac_globl in .globl .global; do
1747 cat > conftest.s <<EOF
1748 .text
1749 ${ac_globl} foo
1750 foo:
1752 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1753 libc_cv_asm_global_directive=${ac_globl}
1755 rm -f conftest*
1756 test $libc_cv_asm_global_directive != UNKNOWN && break
1757 done
1760 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1761 if test $libc_cv_asm_global_directive = UNKNOWN; then
1762 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1763 else
1764 cat >> confdefs.h <<EOF
1765 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1770 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1771 echo "configure:1772: checking for .set assembler directive" >&5
1772 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1774 else
1775 cat > conftest.s <<EOF
1776 .text
1777 foo: .long 0
1778 .set glibc_conftest_frobozz,foo
1779 $libc_cv_asm_global_directive glibc_conftest_frobozz
1781 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1782 # (but it doesn't work), so we must do a linking check to be sure.
1783 cat > conftest1.c <<\EOF
1784 extern int glibc_conftest_frobozz;
1785 main () { printf ("%d\n", glibc_conftest_frobozz); }
1787 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1788 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1789 libc_cv_asm_set_directive=yes
1790 else
1791 libc_cv_asm_set_directive=no
1793 rm -f conftest*
1796 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1797 if test $libc_cv_asm_set_directive = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define HAVE_ASM_SET_DIRECTIVE 1
1804 if test $elf = yes; then
1805 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1806 echo "configure:1807: checking for .previous assembler directive" >&5
1807 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 cat > conftest.s <<EOF
1811 .section foo_section
1812 .previous
1814 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1815 libc_cv_asm_previous_directive=yes
1816 else
1817 libc_cv_asm_previous_directive=no
1819 rm -f conftest*
1822 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1823 if test $libc_cv_asm_previous_directive = yes; then
1824 cat >> confdefs.h <<\EOF
1825 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1828 else
1829 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1830 echo "configure:1831: checking for .popsection assembler directive" >&5
1831 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 cat > conftest.s <<EOF
1835 .pushsection foo_section
1836 .popsection
1838 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1839 libc_cv_asm_popsection_directive=yes
1840 else
1841 libc_cv_asm_popsection_directive=no
1843 rm -f conftest*
1846 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1847 if test $libc_cv_asm_popsection_directive = yes; then
1848 cat >> confdefs.h <<\EOF
1849 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1856 if test $elf != yes; then
1857 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1858 echo "configure:1859: checking for .init and .fini sections" >&5
1859 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1866 int main() {
1867 asm (".section .init");
1868 asm (".section .fini");
1869 asm (".text");
1870 ; return 0; }
1872 if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 rm -rf conftest*
1874 libc_cv_have_initfini=yes
1875 else
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 rm -rf conftest*
1879 libc_cv_have_initfini=no
1881 rm -f conftest*
1884 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1885 if test $libc_cv_have_initfini = yes; then
1886 cat >> confdefs.h <<\EOF
1887 #define HAVE_INITFINI 1
1895 if test $elf = yes; then
1896 libc_cv_asm_underscores=no
1897 else
1898 if test $ac_cv_prog_cc_works = yes; then
1899 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1900 echo "configure:1901: checking for _ prefix on C symbol names" >&5
1901 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 asm ("_glibc_foobar:");
1908 int main() {
1909 glibc_foobar ();
1910 ; return 0; }
1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1913 rm -rf conftest*
1914 libc_cv_asm_underscores=yes
1915 else
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 rm -rf conftest*
1919 libc_cv_asm_underscores=no
1921 rm -f conftest*
1924 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1925 else
1926 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1927 echo "configure:1928: checking for _ prefix on C symbol names" >&5
1928 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1930 else
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 void underscore_test(void) {
1935 return; }
1937 if { (eval echo configure:1938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1938 if grep _underscore_test conftest* >/dev/null; then
1939 rm -f conftest*
1940 libc_cv_asm_underscores=yes
1941 else
1942 rm -f conftest*
1943 libc_cv_asm_underscores=no
1945 else
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1948 rm -f conftest*
1949 libc_cv_asm_underscores=no
1951 rm -f conftest*
1954 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1957 if test $libc_cv_asm_underscores = no; then
1958 cat >> confdefs.h <<\EOF
1959 #define NO_UNDERSCORES 1
1964 if test $elf = yes; then
1965 libc_cv_weak_symbols=yes
1966 libc_cv_asm_weak_directive=yes
1967 libc_cv_asm_weakext_directive=no
1968 else
1969 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1970 echo "configure:1971: checking for assembler .weak directive" >&5
1971 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 cat > conftest.s <<EOF
1975 .text
1976 ${libc_cv_asm_global_directive} foo
1977 foo:
1978 .weak foo
1979 .weak bar; bar = foo
1981 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1982 libc_cv_asm_weak_directive=yes
1983 else
1984 libc_cv_asm_weak_directive=no
1986 rm -f conftest*
1989 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1991 if test $libc_cv_asm_weak_directive = no; then
1992 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1993 echo "configure:1994: checking for assembler .weakext directive" >&5
1994 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.s <<EOF
1998 .text
1999 ${libc_cv_asm_global_directive} foo
2000 foo:
2001 .weakext foo
2002 .weakext foo, bar
2004 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2005 libc_cv_asm_weakext_directive=yes
2006 else
2007 libc_cv_asm_weakext_directive=no
2009 rm -f conftest*
2012 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2014 fi # no .weak
2015 fi # not ELF
2017 if test $libc_cv_asm_weak_directive = yes; then
2018 cat >> confdefs.h <<\EOF
2019 #define HAVE_ASM_WEAK_DIRECTIVE 1
2022 elif test $libc_cv_asm_weakext_directive = yes; then
2023 cat >> confdefs.h <<\EOF
2024 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2029 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2030 echo "configure:2031: checking for ld --no-whole-archive" >&5
2031 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 cat > conftest.c <<\EOF
2035 _start () {}
2036 int __eh_pc;
2037 __throw () {}
2039 if { ac_try='${CC-cc} $CFLAGS
2040 -nostdlib -nostartfiles -Wl,--no-whole-archive
2041 -o conftest conftest.c 1>&5'; { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2042 libc_cv_ld_no_whole_archive=yes
2043 else
2044 libc_cv_ld_no_whole_archive=no
2046 rm -f conftest*
2049 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2051 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2052 echo "configure:2053: checking for gcc -fno-exceptions" >&5
2053 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056 cat > conftest.c <<\EOF
2057 _start () {}
2058 int __eh_pc;
2059 __throw () {}
2061 if { ac_try='${CC-cc} $CFLAGS
2062 -nostdlib -nostartfiles -fno-exceptions
2063 -o conftest conftest.c 1>&5'; { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2064 libc_cv_gcc_no_exceptions=yes
2065 else
2066 libc_cv_gcc_no_exceptions=no
2068 rm -f conftest*
2071 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2073 if test "$base_machine" = alpha ; then
2074 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2075 echo "configure:2076: checking for function ..ng prefix" >&5
2076 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079 cat > conftest.c <<\EOF
2080 foo () { }
2082 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep '$foo..ng' > /dev/null'; { (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2083 then
2084 libc_cv_gcc_alpha_ng_prefix=yes
2085 else
2086 libc_cv_gcc_alpha_ng_prefix=no
2088 rm -f conftest*
2091 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2092 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2093 cat >> confdefs.h <<\EOF
2094 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2097 else
2098 cat >> confdefs.h <<\EOF
2099 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2105 ### End of automated tests.
2106 ### Now run sysdeps configure fragments.
2108 # sysdeps configure fragments may set these with files to be linked below.
2109 libc_link_dests=
2110 libc_link_sources=
2112 # Iterate over all the sysdep directories we will use, running their
2113 # configure fragments, and looking for a uname implementation.
2114 uname=
2115 for dir in $sysnames; do
2116 case $dir in
2117 /*) dest=$dir ;;
2118 *) dest=$srcdir/$dir ;;
2119 esac
2120 if test -r $dest/configure; then
2121 echo "$ac_t""running configure fragment for $dest" 1>&6
2122 . $dest/configure
2125 if test -z "$uname"; then
2126 if test -r $sysdep_dir/$dir/uname.c ||
2127 test -r $sysdep_dir/$dir/uname.S ||
2128 { test -r $sysdep_dir/$dir/syscalls.list &&
2129 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
2130 uname=$dir
2133 done
2137 # If we will use the generic uname implementation, we must figure out what
2138 # it will say by examining the system, and write the results in config-name.h.
2139 if test "$uname" = generic; then
2141 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2142 if test $uname_sysname != $config_os; then
2143 config_release=`echo $config_os | sed s/$uname_sysname//`
2146 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2147 echo "configure:2148: checking OS release for uname" >&5
2148 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2152 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2153 != x$config_release; then
2154 # The configuration release is a substring of the kernel release.
2155 libc_cv_uname_release=$kernel_release
2156 elif test x$config_release != x; then
2157 libc_cv_uname_release=$config_release
2158 elif test x$kernel_release != x; then
2159 libc_cv_uname_release=$kernel_release
2160 else
2161 libc_cv_uname_release=unknown
2165 echo "$ac_t""$libc_cv_uname_release" 1>&6
2166 uname_release="$libc_cv_uname_release"
2168 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2169 echo "configure:2170: checking OS version for uname" >&5
2170 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2174 if test -n "$kernel_version"; then
2175 libc_cv_uname_version="$kernel_version"
2176 else
2177 libc_cv_uname_version=unknown
2181 echo "$ac_t""$libc_cv_uname_version" 1>&6
2182 uname_version="$libc_cv_uname_version"
2184 config_uname=config-name.h:config-name.in
2185 else
2186 # For non-generic uname, we don't need to create config-name.h at all.
2187 config_uname=
2190 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2191 echo "configure:2192: checking stdio selection" >&5
2193 case $stdio in
2194 libio) cat >> confdefs.h <<\EOF
2195 #define USE_IN_LIBIO 1
2198 default) stdio=stdio ;;
2199 esac
2200 echo "$ac_t""$stdio" 1>&6
2209 if test $gnu_ld = yes; then
2210 cat >> confdefs.h <<\EOF
2211 #define HAVE_GNU_LD 1
2215 if test $gnu_as = yes; then
2216 cat >> confdefs.h <<\EOF
2217 #define HAVE_GNU_AS 1
2221 if test $elf = yes; then
2222 cat >> confdefs.h <<\EOF
2223 #define HAVE_ELF 1
2229 if test $shared = default; then
2230 if test $gnu_ld = yes; then
2231 shared=$elf
2232 else
2233 # For now we do not assume shared libs are available. In future more
2234 # tests might become available.
2235 shared=no
2243 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2244 config_makefile=
2245 else
2246 config_makefile=Makefile
2249 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2252 if test $libc_cv_gcc_pipe_bug = yes; then
2253 realCC=$CC
2254 CC=$makeCC
2255 CFLAGS=$makeCFLAGS
2257 if test -r /vmunix; then
2258 kernel_id=`strings /vmunix | grep UNIX`
2259 elif test -r /dynix; then
2260 kernel_id=`strings /dynix | grep DYNIX`
2261 else
2262 kernel_id=
2267 trap '' 1 2 15
2268 cat > confcache <<\EOF
2269 # This file is a shell script that caches the results of configure
2270 # tests run on this system so they can be shared between configure
2271 # scripts and configure runs. It is not useful on other systems.
2272 # If it contains results you don't want to keep, you may remove or edit it.
2274 # By default, configure uses ./config.cache as the cache file,
2275 # creating it if it does not exist already. You can give configure
2276 # the --cache-file=FILE option to use a different cache file; that is
2277 # what configure does when it calls configure scripts in
2278 # subdirectories, so they share the cache.
2279 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2280 # config.status only pays attention to the cache file if you give it the
2281 # --recheck option to rerun configure.
2284 # The following way of writing the cache mishandles newlines in values,
2285 # but we know of no workaround that is simple, portable, and efficient.
2286 # So, don't put newlines in cache variables' values.
2287 # Ultrix sh set writes to stderr and can't be redirected directly,
2288 # and sets the high bit in the cache file unless we assign to the vars.
2289 (set) 2>&1 |
2290 case `(ac_space=' '; set) 2>&1` in
2291 *ac_space=\ *)
2292 # `set' does not quote correctly, so add quotes (double-quote substitution
2293 # turns \\\\ into \\, and sed turns \\ into \).
2294 sed -n \
2295 -e "s/'/'\\\\''/g" \
2296 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2299 # `set' quotes correctly as required by POSIX, so do not add quotes.
2300 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2302 esac >> confcache
2303 if cmp -s $cache_file confcache; then
2305 else
2306 if test -w $cache_file; then
2307 echo "updating cache $cache_file"
2308 cat confcache > $cache_file
2309 else
2310 echo "not updating unwritable cache $cache_file"
2313 rm -f confcache
2315 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2318 # Let make expand exec_prefix.
2319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2321 # Any assignment to VPATH causes Sun make to only execute
2322 # the first set of double-colon rules, so remove it if not needed.
2323 # If there is a colon in the path, we need to keep it.
2324 if test "x$srcdir" = x.; then
2325 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2328 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2330 DEFS=-DHAVE_CONFIG_H
2332 # Without the "./", some shells look in PATH for config.status.
2333 : ${CONFIG_STATUS=./config.status}
2335 echo creating $CONFIG_STATUS
2336 rm -f $CONFIG_STATUS
2337 cat > $CONFIG_STATUS <<EOF
2338 #! /bin/sh
2339 # Generated automatically by configure.
2340 # Run this file to recreate the current configuration.
2341 # This directory was configured as follows,
2342 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2344 # $0 $ac_configure_args
2346 # Compiler output produced by configure, useful for debugging
2347 # configure, is in ./config.log if it exists.
2349 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2350 for ac_option
2352 case "\$ac_option" in
2353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2354 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2355 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2356 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2357 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2358 exit 0 ;;
2359 -help | --help | --hel | --he | --h)
2360 echo "\$ac_cs_usage"; exit 0 ;;
2361 *) echo "\$ac_cs_usage"; exit 1 ;;
2362 esac
2363 done
2365 ac_given_srcdir=$srcdir
2366 ac_given_INSTALL="$INSTALL"
2368 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2370 cat >> $CONFIG_STATUS <<EOF
2372 # Protect against being on the right side of a sed subst in config.status.
2373 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2374 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2375 $ac_vpsub
2376 $extrasub
2377 s%@CFLAGS@%$CFLAGS%g
2378 s%@CPPFLAGS@%$CPPFLAGS%g
2379 s%@CXXFLAGS@%$CXXFLAGS%g
2380 s%@DEFS@%$DEFS%g
2381 s%@LDFLAGS@%$LDFLAGS%g
2382 s%@LIBS@%$LIBS%g
2383 s%@exec_prefix@%$exec_prefix%g
2384 s%@prefix@%$prefix%g
2385 s%@program_transform_name@%$program_transform_name%g
2386 s%@bindir@%$bindir%g
2387 s%@sbindir@%$sbindir%g
2388 s%@libexecdir@%$libexecdir%g
2389 s%@datadir@%$datadir%g
2390 s%@sysconfdir@%$sysconfdir%g
2391 s%@sharedstatedir@%$sharedstatedir%g
2392 s%@localstatedir@%$localstatedir%g
2393 s%@libdir@%$libdir%g
2394 s%@includedir@%$includedir%g
2395 s%@oldincludedir@%$oldincludedir%g
2396 s%@infodir@%$infodir%g
2397 s%@mandir@%$mandir%g
2398 s%@subdirs@%$subdirs%g
2399 s%@host@%$host%g
2400 s%@host_alias@%$host_alias%g
2401 s%@host_cpu@%$host_cpu%g
2402 s%@host_vendor@%$host_vendor%g
2403 s%@host_os@%$host_os%g
2404 s%@base_machine@%$base_machine%g
2405 s%@sysnames@%$sysnames%g
2406 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2407 s%@INSTALL_DATA@%$INSTALL_DATA%g
2408 s%@LN_S@%$LN_S%g
2409 s%@MSGFMT@%$MSGFMT%g
2410 s%@CC@%$CC%g
2411 s%@cross_linkable@%$cross_linkable%g
2412 s%@build@%$build%g
2413 s%@build_alias@%$build_alias%g
2414 s%@build_cpu@%$build_cpu%g
2415 s%@build_vendor@%$build_vendor%g
2416 s%@build_os@%$build_os%g
2417 s%@BUILD_CC@%$BUILD_CC%g
2418 s%@cross_compiling@%$cross_compiling%g
2419 s%@CPP@%$CPP%g
2420 s%@AR@%$AR%g
2421 s%@RANLIB@%$RANLIB%g
2422 s%@BASH@%$BASH%g
2423 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2424 s%@KSH@%$KSH%g
2425 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2426 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2427 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2428 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2429 s%@uname_sysname@%$uname_sysname%g
2430 s%@uname_release@%$uname_release%g
2431 s%@uname_version@%$uname_version%g
2432 s%@stdio@%$stdio%g
2433 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2434 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2435 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2436 s%@has_ldconfig@%$has_ldconfig%g
2437 s%@gnu_ld@%$gnu_ld%g
2438 s%@gnu_as@%$gnu_as%g
2439 s%@elf@%$elf%g
2440 s%@shared@%$shared%g
2441 s%@profile@%$profile%g
2442 s%@omitfp@%$omitfp%g
2443 s%@DEFINES@%$DEFINES%g
2444 s%@VERSION@%$VERSION%g
2446 CEOF
2449 cat >> $CONFIG_STATUS <<\EOF
2451 # Split the substitutions into bite-sized pieces for seds with
2452 # small command number limits, like on Digital OSF/1 and HP-UX.
2453 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2454 ac_file=1 # Number of current file.
2455 ac_beg=1 # First line for current file.
2456 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2457 ac_more_lines=:
2458 ac_sed_cmds=""
2459 while $ac_more_lines; do
2460 if test $ac_beg -gt 1; then
2461 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2462 else
2463 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2465 if test ! -s conftest.s$ac_file; then
2466 ac_more_lines=false
2467 rm -f conftest.s$ac_file
2468 else
2469 if test -z "$ac_sed_cmds"; then
2470 ac_sed_cmds="sed -f conftest.s$ac_file"
2471 else
2472 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2474 ac_file=`expr $ac_file + 1`
2475 ac_beg=$ac_end
2476 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2478 done
2479 if test -z "$ac_sed_cmds"; then
2480 ac_sed_cmds=cat
2484 cat >> $CONFIG_STATUS <<EOF
2486 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2488 cat >> $CONFIG_STATUS <<\EOF
2489 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2491 case "$ac_file" in
2492 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2493 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2494 *) ac_file_in="${ac_file}.in" ;;
2495 esac
2497 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2499 # Remove last slash and all that follows it. Not all systems have dirname.
2500 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2502 # The file is in a subdirectory.
2503 test ! -d "$ac_dir" && mkdir "$ac_dir"
2504 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2505 # A "../" for each directory in $ac_dir_suffix.
2506 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2507 else
2508 ac_dir_suffix= ac_dots=
2511 case "$ac_given_srcdir" in
2512 .) srcdir=.
2513 if test -z "$ac_dots"; then top_srcdir=.
2514 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2515 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2516 *) # Relative path.
2517 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2518 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2519 esac
2521 case "$ac_given_INSTALL" in
2522 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2523 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2524 esac
2526 echo creating "$ac_file"
2527 rm -f "$ac_file"
2528 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2529 case "$ac_file" in
2530 *Makefile*) ac_comsub="1i\\
2531 # $configure_input" ;;
2532 *) ac_comsub= ;;
2533 esac
2535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2536 sed -e "$ac_comsub
2537 s%@configure_input@%$configure_input%g
2538 s%@srcdir@%$srcdir%g
2539 s%@top_srcdir@%$top_srcdir%g
2540 s%@INSTALL@%$INSTALL%g
2541 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2542 fi; done
2543 rm -f conftest.s*
2545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2548 # ac_d sets the value in "#define NAME VALUE" lines.
2549 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2550 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2551 ac_dC='\3'
2552 ac_dD='%g'
2553 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2554 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2555 ac_uB='\([ ]\)%\1#\2define\3'
2556 ac_uC=' '
2557 ac_uD='\4%g'
2558 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2559 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2560 ac_eB='$%\1#\2define\3'
2561 ac_eC=' '
2562 ac_eD='%g'
2564 if test "${CONFIG_HEADERS+set}" != set; then
2566 cat >> $CONFIG_STATUS <<EOF
2567 CONFIG_HEADERS="config.h"
2569 cat >> $CONFIG_STATUS <<\EOF
2571 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2573 case "$ac_file" in
2574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2576 *) ac_file_in="${ac_file}.in" ;;
2577 esac
2579 echo creating $ac_file
2581 rm -f conftest.frag conftest.in conftest.out
2582 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2583 cat $ac_file_inputs > conftest.in
2587 # Transform confdefs.h into a sed script conftest.vals that substitutes
2588 # the proper values into config.h.in to produce config.h. And first:
2589 # Protect against being on the right side of a sed subst in config.status.
2590 # Protect against being in an unquoted here document in config.status.
2591 rm -f conftest.vals
2592 cat > conftest.hdr <<\EOF
2593 s/[\\&%]/\\&/g
2594 s%[\\$`]%\\&%g
2595 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2596 s%ac_d%ac_u%gp
2597 s%ac_u%ac_e%gp
2599 sed -n -f conftest.hdr confdefs.h > conftest.vals
2600 rm -f conftest.hdr
2602 # This sed command replaces #undef with comments. This is necessary, for
2603 # example, in the case of _POSIX_SOURCE, which is predefined and required
2604 # on some systems where configure will not decide to define it.
2605 cat >> conftest.vals <<\EOF
2606 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2609 # Break up conftest.vals because some shells have a limit on
2610 # the size of here documents, and old seds have small limits too.
2612 rm -f conftest.tail
2613 while :
2615 ac_lines=`grep -c . conftest.vals`
2616 # grep -c gives empty output for an empty file on some AIX systems.
2617 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2618 # Write a limited-size here document to conftest.frag.
2619 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2620 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2621 echo 'CEOF
2622 sed -f conftest.frag conftest.in > conftest.out
2623 rm -f conftest.in
2624 mv conftest.out conftest.in
2625 ' >> $CONFIG_STATUS
2626 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2627 rm -f conftest.vals
2628 mv conftest.tail conftest.vals
2629 done
2630 rm -f conftest.vals
2632 cat >> $CONFIG_STATUS <<\EOF
2633 rm -f conftest.frag conftest.h
2634 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2635 cat conftest.in >> conftest.h
2636 rm -f conftest.in
2637 if cmp -s $ac_file conftest.h 2>/dev/null; then
2638 echo "$ac_file is unchanged"
2639 rm -f conftest.h
2640 else
2641 # Remove last slash and all that follows it. Not all systems have dirname.
2642 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2643 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2644 # The file is in a subdirectory.
2645 test ! -d "$ac_dir" && mkdir "$ac_dir"
2647 rm -f $ac_file
2648 mv conftest.h $ac_file
2650 fi; done
2654 cat >> $CONFIG_STATUS <<EOF
2655 ac_sources="`echo $libc_link_sources`"
2656 ac_dests="`echo $libc_link_dests`"
2659 cat >> $CONFIG_STATUS <<\EOF
2660 srcdir=$ac_given_srcdir
2661 while test -n "$ac_sources"; do
2662 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2663 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2665 echo "linking $srcdir/$ac_source to $ac_dest"
2667 if test ! -r $srcdir/$ac_source; then
2668 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2670 rm -f $ac_dest
2672 # Make relative symlinks.
2673 # Remove last slash and all that follows it. Not all systems have dirname.
2674 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2675 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2676 # The dest file is in a subdirectory.
2677 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2678 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2679 # A "../" for each directory in $ac_dest_dir_suffix.
2680 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2681 else
2682 ac_dest_dir_suffix= ac_dots=
2685 case "$srcdir" in
2686 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2687 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2688 esac
2690 # Make a symlink if possible; otherwise try a hard link.
2691 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2692 ln $srcdir/$ac_source $ac_dest; then :
2693 else
2694 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2696 done
2698 cat >> $CONFIG_STATUS <<EOF
2699 realCC=$realCC
2700 echo '$config_vars' >> config.make
2702 cat >> $CONFIG_STATUS <<\EOF
2704 if test "$realCC"; then
2705 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs` >specsT
2706 mv specsT specs
2709 exit 0
2711 chmod +x $CONFIG_STATUS
2712 rm -fr confdefs* $ac_clean_files
2713 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2715 if test "$no_recursion" != yes; then
2717 # Remove --cache-file and --srcdir arguments so they do not pile up.
2718 ac_sub_configure_args=
2719 ac_prev=
2720 for ac_arg in $ac_configure_args; do
2721 if test -n "$ac_prev"; then
2722 ac_prev=
2723 continue
2725 case "$ac_arg" in
2726 -cache-file | --cache-file | --cache-fil | --cache-fi \
2727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2728 ac_prev=cache_file ;;
2729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2732 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2733 ac_prev=srcdir ;;
2734 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2736 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2737 esac
2738 done
2740 for ac_config_dir in $add_ons; do
2742 # Do not complain, so a configure script can configure whichever
2743 # parts of a large source tree are present.
2744 if test ! -d $srcdir/$ac_config_dir; then
2745 continue
2748 echo configuring in $ac_config_dir
2750 case "$srcdir" in
2751 .) ;;
2753 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2754 else
2755 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2758 esac
2760 ac_popdir=`pwd`
2761 cd $ac_config_dir
2763 # A "../" for each directory in /$ac_config_dir.
2764 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2766 case "$srcdir" in
2767 .) # No --srcdir option. We are building in place.
2768 ac_sub_srcdir=$srcdir ;;
2769 /*) # Absolute path.
2770 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2771 *) # Relative path.
2772 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2773 esac
2775 # Check for guested configure; otherwise get Cygnus style configure.
2776 if test -f $ac_sub_srcdir/configure; then
2777 ac_sub_configure=$ac_sub_srcdir/configure
2778 elif test -f $ac_sub_srcdir/configure.in; then
2779 ac_sub_configure=$ac_configure
2780 else
2781 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2782 ac_sub_configure=
2785 # The recursion is here.
2786 if test -n "$ac_sub_configure"; then
2788 # Make the cache file name correct relative to the subdirectory.
2789 case "$cache_file" in
2790 /*) ac_sub_cache_file=$cache_file ;;
2791 *) # Relative path.
2792 ac_sub_cache_file="$ac_dots$cache_file" ;;
2793 esac
2794 case "$ac_given_INSTALL" in
2795 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2796 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2797 esac
2799 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2800 # The eval makes quoting arguments work.
2801 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2802 then :
2803 else
2804 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2808 cd $ac_popdir
2809 done