(errlist.c rules): Do this in subdir stdio-common instead of stdio.
[glibc/pb-stable.git] / configure
blob724725bce29c7c5b199d878276fc584c8916149a
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.4.2
6 # Copyright (C) 1992, 1993, 1994 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-fp if using floating-point hardware"
19 ac_help="$ac_help
20 --with-gnu-binutils if using GNU binutils (as and ld)"
21 ac_help="$ac_help
22 --with-gnu-ld if using GNU ld (in the binutils package)"
23 ac_help="$ac_help
24 --with-gnu-as if using GNU as (in the binutils package)"
25 ac_help="$ac_help
26 --with-elf if using the ELF object format"
27 ac_help="$ac_help
28 --with-weak-symbols if weak symbols are available in as and ld"
29 ac_help="$ac_help
30 --enable-shared build shared library [default=yes if GNU ld & ELF]"
31 ac_help="$ac_help
32 --enable-profile build profiled library [default=yes]"
33 ac_help="$ac_help
34 --enable-omitfp build undebuggable optimized library [default=no]"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
71 subdirs=
73 ac_prev=
74 for ac_option
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
89 # Accept the important Cygnus configure options, so we can diagnose typos.
91 case "$ac_option" in
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
197 --enable and --with options recognized:$ac_help
199 exit 0 ;;
201 -host | --host | --hos | --ho)
202 ac_prev=host ;;
203 -host=* | --host=* | --hos=* | --ho=*)
204 host="$ac_optarg" ;;
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 ac_prev=infodir ;;
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
219 ac_prev=libdir ;;
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 ac_prev=mandir ;;
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
244 -nfp | --nfp | --nf)
245 # Obsolete; use --without-fp.
246 with_fp=no ;;
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 | --no-cr | --no-c)
250 no_create=yes ;;
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 no_recursion=yes ;;
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 ac_prev=prefix ;;
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
303 silent=yes ;;
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 ac_prev=sbindir ;;
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 | --sbi=* | --sb=*)
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
314 | --sha | --sh)
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 | --sha=* | --sh=*)
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
323 ac_prev=site ;;
324 -site=* | --site=* | --sit=*)
325 site="$ac_optarg" ;;
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 ac_prev=srcdir ;;
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
340 ac_prev=target ;;
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 verbose=yes ;;
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.4.2"
349 exit 0 ;;
351 -with-* | --with-*)
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 case "$ac_option" in
359 *=*) ;;
360 *) ac_optarg=yes ;;
361 esac
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
373 --x)
374 # Obsolete; use --with-x.
375 with_x=yes ;;
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 nonopt="$ac_option"
404 esac
405 done
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 4 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
422 exec 4>/dev/null
423 else
424 exec 4>&1
426 exec 5>./config.log
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
438 case "$ac_arg" in
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 esac
447 done
449 # NLS nuisances.
450 # Only set LANG and LC_ALL to C if already set.
451 # These must not be set unconditionally because not all systems understand
452 # e.g. LANG=C (notably SCO).
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=features.h
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
469 ac_prog=$0
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 srcdir=$ac_confdir
473 if test ! -r $srcdir/$ac_unique_file; then
474 srcdir=..
476 else
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 else
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 else
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
499 . "$ac_site_file"
501 done
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
505 . $cache_file
506 else
507 echo "creating cache $cache_file"
508 > $cache_file
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
514 $CPP $CPPFLAGS'
515 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
516 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
517 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
518 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='
524 ' ac_t=' '
525 else
526 ac_n=-n ac_c= ac_t=
528 else
529 ac_n= ac_c='\c' ac_t=
532 if test -r /vmunix; then
533 kernel_id=`strings /vmunix | grep UNIX`
534 elif test -r /dynix; then
535 kernel_id=`strings /dynix | grep DYNIX`
536 else
537 kernel_id=
543 # This will get text that should go into config.make.
544 config_vars=
546 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
547 # Check whether --with-gmp or --without-gmp was given.
548 if test "${with_gmp+set}" = set; then
549 withval="$with_gmp"
550 case "$with_gmp" in
551 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
552 ''|no) ;;
553 *) config_vars="$config_vars
554 gmp-srcdir = $withval" ;;
555 esac
560 # Check whether --with-fp or --without-fp was given.
561 if test "${with_fp+set}" = set; then
562 withval="$with_fp"
563 with_fp=$withval
564 else
565 with_fp=yes
568 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
569 if test "${with_gnu_binutils+set}" = set; then
570 withval="$with_gnu_binutils"
571 gnu_binutils=$withval
572 else
573 gnu_binutils=no
576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
577 if test "${with_gnu_ld+set}" = set; then
578 withval="$with_gnu_ld"
579 gnu_ld=$withval
580 else
581 gnu_ld=no
584 # Check whether --with-gnu-as or --without-gnu-as was given.
585 if test "${with_gnu_as+set}" = set; then
586 withval="$with_gnu_as"
587 gnu_as=$withval
588 else
589 gnu_as=no
592 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
593 # Check whether --with-elf or --without-elf was given.
594 if test "${with_elf+set}" = set; then
595 withval="$with_elf"
596 elf=$withval
597 else
598 elf=no
601 # Check whether --with-weak-symbols or --without-weak-symbols was given.
602 if test "${with_weak_symbols+set}" = set; then
603 withval="$with_weak_symbols"
604 weak=$withval
605 else
606 weak=no
610 # Check whether --enable-shared or --disable-shared was given.
611 if test "${enable_shared+set}" = set; then
612 enableval="$enable_shared"
613 shared=$enableval
614 else
615 shared=default
618 # Check whether --enable-profile or --disable-profile was given.
619 if test "${enable_profile+set}" = set; then
620 enableval="$enable_profile"
621 profile=$enableval
622 else
623 profile=yes
626 # Check whether --enable-omitfp or --disable-omitfp was given.
627 if test "${enable_omitfp+set}" = set; then
628 enableval="$enable_omitfp"
629 omitfp=$enableval
630 else
631 omitfp=no
635 ac_aux_dir=
636 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
637 if test -f $ac_dir/install-sh; then
638 ac_aux_dir=$ac_dir
639 ac_install_sh="$ac_aux_dir/install-sh -c"
640 break
641 elif test -f $ac_dir/install.sh; then
642 ac_aux_dir=$ac_dir
643 ac_install_sh="$ac_aux_dir/install.sh -c"
644 break
646 done
647 if test -z "$ac_aux_dir"; then
648 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
650 ac_config_guess=$ac_aux_dir/config.guess
651 ac_config_sub=$ac_aux_dir/config.sub
652 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
655 # Make sure we can run config.sub.
656 if $ac_config_sub sun4 >/dev/null 2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 echo $ac_n "checking host system type""... $ac_c" 1>&4
662 host_alias=$host
663 case "$host_alias" in
664 NONE)
665 case $nonopt in
666 NONE)
667 if host_alias=`$ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 fi ;;
670 *) host_alias=$nonopt ;;
671 esac ;;
672 esac
674 host=`$ac_config_sub $host_alias`
675 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
676 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
677 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&4
680 # We keep the original values in `$config_*' and never modify them, so we
681 # can write them unchanged into config.make. Everything else uses
682 # $machine, $vendor, and $os, and changes them whenever convenient.
683 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
685 # Some configurations imply other options.
686 case "$host_os" in
687 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
688 # These systems always use GNU tools.
689 gnu_ld=yes gnu_as=yes
690 esac
691 case "$host_os" in
692 gnu* | linux* | sysv4* | solaris2*)
693 # These systems always use the ELF format.
694 elf=yes
695 esac
697 # Compute the list of sysdep directories for this configuration.
698 sysdep_dir=$srcdir/sysdeps
699 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
700 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&4
702 else
703 machine=$config_machine
704 vendor=$config_vendor
705 os=$config_os
707 # Expand the configuration machine name into a subdirectory by architecture
708 # type and particular chip.
709 case "$machine" in
710 a29k | am29000) machine=a29k ;;
711 alpha*) machine=alpha/$machine ;;
712 hppa*) machine=hppa/$machine ;;
713 i[345]86) machine=i386/$machine ;;
714 m680?0) machine=m68k/$machine ;;
715 m68k) machine=m68k/m68020 ;;
716 m88???) machine=m88k/$machine ;;
717 m88k) machine=m88k/m88100 ;;
718 mips*) machine=mips/$machine ;;
719 mips64*) machine=mips/mips64/$machine ;;
720 sparc[6789]) machine=sparc/$machine ;;
721 supersparc) machine=sparc/sparc8 ;;
722 esac
724 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
725 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
727 case "$os" in
728 gnu*)
729 base_os=mach/hurd ;;
730 netbsd* | 386bsd* | freebsd* | bsdi*)
731 base_os=unix/bsd/bsd4.4 ;;
732 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
733 base_os=unix/bsd ;;
734 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
735 base_os=unix/sysv ;;
736 solaris[2-9]*)
737 base_os=unix/sysv/sysv4 ;;
738 none)
739 base_os=standalone ;;
741 base_os='' ;;
742 esac
744 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
745 tail=$os
746 ostry=$os
747 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
748 ostry="$ostry /$o"
749 tail=$o
750 done
751 o=`echo $tail | sed 's/[0-9]*$//'`
752 if test $o != $tail; then
753 ostry="$ostry /$o"
756 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
757 base=
758 tail=$base_os
759 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
760 set $b
761 base="$base /$1"
762 tail="$2"
763 done
765 # For sparc/sparc9, try sparc/sparc9 and then sparc.
766 mach=
767 tail=$machine
768 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
769 set $m
770 # Prepend the machine's FPU directory unless --without-fp.
771 if test "$with_fp" = yes; then
772 mach="$mach /$1/fpu"
774 mach="$mach /$1"
775 tail="$2"
776 done
779 # Find what sysdep directories exist.
780 sysnames=
781 for b in $base ''; do
782 for m0 in $mach ''; do
783 for v in /$vendor ''; do
784 for o in /$ostry ''; do
785 for m in $mach ''; do
786 try="$m0$b$v$o$m"
787 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
788 if test -d $sysdep_dir$try; then
789 sysnames="$sysnames $try"
790 { test -n "$o" || test -n "$b"; } && os_used=t
791 { test -n "$m" || test -n "$m0"; } && machine_used=t
793 done
794 done
795 done
796 done
797 done
799 if test -z "$os_used" && test "$os" != none; then
800 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
802 if test -z "$machine_used" && test "$machine" != none; then
803 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
806 # We have now validated the configuration.
809 # If using ELF, look for an `elf' subdirectory of each machine directory.
810 # We prepend these rather than inserting them whereever the machine appears
811 # because things specified by the machine's ELF ABI should override
812 # OS-specific things, and should always be the same for any OS on the
813 # machine (otherwise what's the point of an ABI?).
814 if test "$elf" = yes; then
815 elf_dirs=
816 for m in $mach; do
817 if test -d $sysdep_dir$m/elf; then
818 elf_dirs="$elf_dirs $m/elf"
820 done
821 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
825 # Remove the leading slashes.
826 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
829 # Expand the list of system names into a full list of directories
830 # from each element's parent name and Implies file (if present).
831 set $sysnames
832 while test $# -gt 0; do
833 name=$1
834 shift
836 if test -f $sysdep_dir/$name/Implies; then
837 # Collect more names from the `Implies' file (removing comments).
838 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
839 for x in $implied; do
840 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
841 done
842 else
843 implied=
846 # Add NAME to the list of names.
847 names="$names $name"
849 # Find the parent of NAME, using the empty string if it has none.
850 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
852 # Add the names implied by NAME, and NAME's parent (if it has one), to
853 # the list of names to be processed (the argument list). We prepend the
854 # implied names to the list and append the parent. We want implied
855 # directories to come before further directories inferred from the
856 # configuration components; this ensures that for sysv4, unix/common
857 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
858 # after sysv4).
859 sysnames="`echo $implied $* $parent`"
860 test -n "$sysnames" && set $sysnames
861 done
863 # Add the default directories.
864 names="$names generic stub"
866 # Now uniquize the list.
867 seen=
868 sysnames=
869 for name in $names; do
870 if echo "$seen" | fgrep -x $name >/dev/null; then
871 # Already in the list.
872 true;
873 else
874 # A new one.
875 if test -z "$seen"; then
876 seen="$name" sysnames="$name"
877 else
878 seen="$seen
879 $name"
880 sysnames="$sysnames $name"
883 done
884 libc_cv_sysdirs="$sysnames"
887 echo "$ac_t""$libc_cv_sysdirs" 1>&4
888 sysnames="$libc_cv_sysdirs"
890 # Find a good install program. We prefer a C program (faster),
891 # so one script is as good as another. But avoid the broken or
892 # incompatible versions:
893 # SysV /etc/install, /usr/sbin/install
894 # SunOS /usr/etc/install
895 # IRIX /sbin/install
896 # AIX /bin/install
897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
899 # ./install, which can be erroneously created by make from ./install.sh.
900 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
901 if test -z "$INSTALL"; then
902 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&4
904 else
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
906 for ac_dir in $PATH; do
907 # Account for people who put trailing slashes in PATH elements.
908 case "$ac_dir/" in
909 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
911 # OSF1 and SCO ODT 3.0 have their own names for install.
912 for ac_prog in ginstall installbsd scoinst install; do
913 if test -f $ac_dir/$ac_prog; then
914 if test $ac_prog = install &&
915 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
916 # AIX install. It has an incompatible calling convention.
917 # OSF/1 installbsd also uses dspmsg, but is usable.
919 else
920 ac_cv_path_install="$ac_dir/$ac_prog -c"
921 break 2
924 done
926 esac
927 done
928 IFS="$ac_save_ifs"
931 if test "${ac_cv_path_install+set}" = set; then
932 INSTALL="$ac_cv_path_install"
933 else
934 # As a last resort, use the slow shell script. We don't cache a
935 # path for INSTALL within a source directory, because that will
936 # break other packages using the cache if that directory is
937 # removed, or if the path is relative.
938 INSTALL="$ac_install_sh"
941 echo "$ac_t""$INSTALL" 1>&4
943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
944 # It thinks the first close brace ends the variable substitution.
945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
949 if test "$INSTALL" = "${srcdir}/install-sh"; then
950 # The makefiles need to use a different form to find it in $srcdir.
951 INSTALL='$(..)./install-sh'
954 echo $ac_n "checking build system type""... $ac_c" 1>&4
956 build_alias=$build
957 case "$build_alias" in
958 NONE)
959 case $nonopt in
960 NONE) build_alias=$host_alias ;;
961 *) build_alias=$nonopt ;;
962 esac ;;
963 esac
965 build=`$ac_config_sub $build_alias`
966 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
967 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
968 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
969 echo "$ac_t""$build" 1>&4
971 if test $host != $build; then
972 ac_tool_prefix=${host_alias}-
973 else
974 ac_tool_prefix=
977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&4
982 else
983 if test -n "$CC"; then
984 ac_cv_prog_CC="$CC" # Let the user override the test.
985 else
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
987 for ac_dir in gcc; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
991 break
993 done
994 IFS="$ac_save_ifs"
995 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
998 CC="$ac_cv_prog_CC"
999 if test -n "$CC"; then
1000 echo "$ac_t""$CC" 1>&4
1001 else
1002 echo "$ac_t""no" 1>&4
1007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1008 set dummy ${ac_tool_prefix}ar; ac_word=$2
1009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1010 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&4
1012 else
1013 if test -n "$AR"; then
1014 ac_cv_prog_AR="$AR" # Let the user override the test.
1015 else
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1017 for ac_dir in ar; do
1018 test -z "$ac_dir" && ac_dir=.
1019 if test -f $ac_dir/$ac_word; then
1020 ac_cv_prog_AR="${ac_tool_prefix}ar"
1021 break
1023 done
1024 IFS="$ac_save_ifs"
1025 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1028 AR="$ac_cv_prog_AR"
1029 if test -n "$AR"; then
1030 echo "$ac_t""$AR" 1>&4
1031 else
1032 echo "$ac_t""no" 1>&4
1037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1040 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&4
1042 else
1043 if test -n "$RANLIB"; then
1044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1045 else
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1047 for ac_dir in $PATH; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1051 break
1053 done
1054 IFS="$ac_save_ifs"
1057 RANLIB="$ac_cv_prog_RANLIB"
1058 if test -n "$RANLIB"; then
1059 echo "$ac_t""$RANLIB" 1>&4
1060 else
1061 echo "$ac_t""no" 1>&4
1065 if test -z "$ac_cv_prog_RANLIB"; then
1066 if test -n "$ac_tool_prefix"; then
1067 # Extract the first word of "ranlib", so it can be a program name with args.
1068 set dummy ranlib; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&4
1072 else
1073 if test -n "$RANLIB"; then
1074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1075 else
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1077 for ac_dir in :; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_RANLIB="ranlib"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1085 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1088 RANLIB="$ac_cv_prog_RANLIB"
1089 if test -n "$RANLIB"; then
1090 echo "$ac_t""$RANLIB" 1>&4
1091 else
1092 echo "$ac_t""no" 1>&4
1095 else
1096 RANLIB=":"
1100 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1101 # On Suns, sometimes $CPP names a directory.
1102 if test -n "$CPP" && test -d "$CPP"; then
1103 CPP=
1105 if test -z "$CPP"; then
1106 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&4
1108 else
1109 # This must be in double quotes, not single quotes, because CPP may get
1110 # substituted into the Makefile and "${CC-cc}" will confuse make.
1111 CPP="${CC-cc} -E"
1112 # On the NeXT, cc -E runs the code through the compiler's parser,
1113 # not just through cpp.
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1117 #include <assert.h>
1118 Syntax Error
1120 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1121 ac_err=`grep -v '^ *+' conftest.out`
1122 if test -z "$ac_err"; then
1124 else
1125 echo "$ac_err" >&5
1126 rm -rf conftest*
1127 CPP="${CC-cc} -E -traditional-cpp"
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1131 #include <assert.h>
1132 Syntax Error
1134 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1135 ac_err=`grep -v '^ *+' conftest.out`
1136 if test -z "$ac_err"; then
1138 else
1139 echo "$ac_err" >&5
1140 rm -rf conftest*
1141 CPP=/lib/cpp
1143 rm -f conftest*
1145 rm -f conftest*
1146 ac_cv_prog_CPP="$CPP"
1148 CPP="$ac_cv_prog_CPP"
1149 else
1150 ac_cv_prog_CPP="$CPP"
1152 echo "$ac_t""$CPP" 1>&4
1155 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1156 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&4
1158 else
1159 echo '#include <stddef.h>
1160 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1161 if eval "$ac_cpp conftest.c 2>/dev/null" \
1162 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1163 libc_cv_signed_size_t=no
1164 else
1165 libc_cv_signed_size_t=yes
1167 rm -f conftest*
1170 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1171 if test $libc_cv_signed_size_t = yes; then
1172 cat >> confdefs.h <<\EOF
1173 #undef __SIZE_TYPE__
1174 #define __SIZE_TYPE__ unsigned
1178 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1179 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&4
1181 else
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1185 #define __need_size_t
1186 #define __need_wchar_t
1187 #include <stddef.h>
1188 #define __need_NULL
1189 #include <stddef.h>
1190 int main() { return 0; }
1191 int t() {
1192 size_t size; wchar_t wchar;
1193 #ifdef offsetof
1194 #error stddef.h ignored __need_*
1195 #endif
1196 if (&size == NULL || &wchar == NULL) abort ();
1197 ; return 0; }
1199 if eval $ac_compile; then
1200 rm -rf conftest*
1201 libc_cv_friendly_stddef=yes
1202 else
1203 rm -rf conftest*
1204 libc_cv_friendly_stddef=no
1206 rm -f conftest*
1210 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1211 if test $libc_cv_friendly_stddef = yes; then
1212 config_vars="$config_vars
1213 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1216 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1217 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&4
1219 else
1220 cat > conftest.S <<EOF
1221 #include "confdefs.h"
1222 /* Nothing whatsoever. */
1224 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1225 libc_cv_need_minus_P=no
1226 else
1227 libc_cv_need_minus_P=yes
1229 rm -f conftest*
1232 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1233 if test $libc_cv_need_minus_P = yes; then
1234 config_vars="$config_vars
1235 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1238 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1239 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&4
1241 else
1242 libc_cv_asm_global_directive=UNKNOWN
1243 for ac_globl in .globl .global; do
1244 cat > conftest.s <<EOF
1245 .text
1246 ${ac_globl} foo
1247 foo: .long 0
1249 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1250 libc_cv_asm_global_directive=${ac_globl}
1252 rm -f conftest*
1253 test $libc_cv_asm_global_directive != UNKNOWN && break
1254 done
1257 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1258 if test $libc_cv_asm_global_directive = UNKNOWN; then
1259 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1260 else
1261 cat >> confdefs.h <<EOF
1262 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1267 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1268 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&4
1270 else
1271 cat > conftest.s <<EOF
1272 .text
1273 foo: .long 0
1274 .set glibc_conftest_frobozz,foo
1275 $libc_cv_asm_global_directive glibc_conftest_frobozz
1277 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1278 # (but it doesn't work), so we must do a linking check to be sure.
1279 cat > conftest1.c <<\EOF
1280 extern int glibc_conftest_frobozz;
1281 main () { printf ("%d\n", glibc_conftest_frobozz); }
1283 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1284 conftest.s conftest1.c 1>&5 2>&5; then
1285 libc_cv_asm_set_directive=yes
1286 else
1287 libc_cv_asm_set_directive=no
1289 rm -f conftest*
1292 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1293 if test $libc_cv_asm_set_directive = yes; then
1294 cat >> confdefs.h <<\EOF
1295 #define HAVE_ASM_SET_DIRECTIVE 1
1300 if test $elf != yes; then
1301 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1302 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&4
1304 else
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1309 int main() { return 0; }
1310 int t() {
1311 asm (".section .init");
1312 asm (".section .fini");
1313 ; return 0; }
1315 if eval $ac_compile; then
1316 rm -rf conftest*
1317 libc_cv_have_initfini=yes
1318 else
1319 rm -rf conftest*
1320 libc_cv_have_initfini=no
1322 rm -f conftest*
1326 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1327 if test $libc_cv_have_initfini = yes; then
1328 cat >> confdefs.h <<\EOF
1329 #define HAVE_INITFINI 1
1335 # sysdeps configure fragments may set these with files to be linked below.
1336 libc_link_dests=
1337 libc_link_sources=
1339 # Iterate over all the sysdep directories we will use, running their
1340 # configure fragments, and looking for a uname implementation.
1341 uname=
1342 for dir in $sysnames; do
1343 if test -r $sysdep_dir/$dir/configure; then
1344 echo "$ac_t""running configure fragment for $dir" 1>&4
1345 . $sysdep_dir/$dir/configure
1347 if test -z "$uname"; then
1348 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1349 && uname=$dir
1351 done
1355 # If we will use the generic uname implementation, we must figure out what
1356 # it will say by examining the system, and write the results in config-name.h.
1357 if test "$uname" = generic; then
1359 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1360 if test $uname_sysname != $config_os; then
1361 config_release=`echo $config_os | sed s/$uname_sysname//`
1364 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1365 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&4
1367 else
1368 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1369 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1370 != x$config_release; then
1371 # The configuration release is a substring of the kernel release.
1372 libc_cv_uname_release=$kernel_release
1373 elif test x$config_release != x; then
1374 libc_cv_uname_release=$config_release
1375 elif test x$kernel_release != x; then
1376 libc_cv_uname_release=$kernel_release
1377 else
1378 libc_cv_uname_release=unknown
1382 echo "$ac_t""$libc_cv_uname_release" 1>&4
1383 uname_release="$libc_cv_uname_release"
1385 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1386 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&4
1388 else
1389 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1390 if test -n "$kernel_version"; then
1391 libc_cv_uname_version="$kernel_version"
1392 else
1393 libc_cv_uname_version=unknown
1397 echo "$ac_t""$libc_cv_uname_version" 1>&4
1398 uname_version="$libc_cv_uname_version"
1400 config_uname=config-name.h:config-name.in
1401 else
1402 # For non-generic uname, we don't need to create config-name.h at all.
1403 config_uname=
1407 if test $gnu_ld = yes; then
1408 cat >> confdefs.h <<\EOF
1409 #define HAVE_GNU_LD 1
1413 if test $gnu_as = yes; then
1414 cat >> confdefs.h <<\EOF
1415 #define HAVE_GNU_AS 1
1419 if test $elf = yes; then
1420 cat >> confdefs.h <<\EOF
1421 #define HAVE_ELF 1
1425 if test $weak = yes; then
1426 cat >> confdefs.h <<\EOF
1427 #define HAVE_WEAK_SYMBOLS 1
1433 if test $shared = default; then
1434 if test $gnu_ld = yes; then
1435 shared=$elf
1442 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1443 config_makefile=
1444 else
1445 config_makefile=Makefile
1448 trap '' 1 2 15
1449 cat > confcache <<\EOF
1450 # This file is a shell script that caches the results of configure
1451 # tests run on this system so they can be shared between configure
1452 # scripts and configure runs. It is not useful on other systems.
1453 # If it contains results you don't want to keep, you may remove or edit it.
1455 # By default, configure uses ./config.cache as the cache file,
1456 # creating it if it does not exist already. You can give configure
1457 # the --cache-file=FILE option to use a different cache file; that is
1458 # what configure does when it calls configure scripts in
1459 # subdirectories, so they share the cache.
1460 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1461 # config.status only pays attention to the cache file if you give it the
1462 # --recheck option to rerun configure.
1465 # Ultrix sh set writes to stderr and can't be redirected directly,
1466 # and sets the high bit in the cache file unless we assign to the vars.
1467 (set) 2>&1 |
1468 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1469 >> confcache
1470 if cmp -s $cache_file confcache; then
1472 else
1473 if test -w $cache_file; then
1474 echo "updating cache $cache_file"
1475 cat confcache > $cache_file
1476 else
1477 echo "not updating unwritable cache $cache_file"
1480 rm -f confcache
1482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1485 # Let make expand exec_prefix.
1486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1488 # Any assignment to VPATH causes Sun make to only execute
1489 # the first set of double-colon rules, so remove it if not needed.
1490 # If there is a colon in the path, we need to keep it.
1491 if test "x$srcdir" = x.; then
1492 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1495 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1497 DEFS=-DHAVE_CONFIG_H
1499 # Without the "./", some shells look in PATH for config.status.
1500 : ${CONFIG_STATUS=./config.status}
1502 echo creating $CONFIG_STATUS
1503 rm -f $CONFIG_STATUS
1504 cat > $CONFIG_STATUS <<EOF
1505 #! /bin/sh
1506 # Generated automatically by configure.
1507 # Run this file to recreate the current configuration.
1508 # This directory was configured as follows,
1509 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1511 # $0 $ac_configure_args
1513 # Compiler output produced by configure, useful for debugging
1514 # configure, is in ./config.log if it exists.
1516 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1517 for ac_option
1519 case "\$ac_option" in
1520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1521 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1522 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1523 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1524 echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
1525 exit 0 ;;
1526 -help | --help | --hel | --he | --h)
1527 echo "\$ac_cs_usage"; exit 0 ;;
1528 *) echo "\$ac_cs_usage"; exit 1 ;;
1529 esac
1530 done
1532 ac_given_srcdir=$srcdir
1533 ac_given_INSTALL="$INSTALL"
1535 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1537 # Protect against being on the right side of a sed subst in config.status.
1538 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1539 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1540 $ac_vpsub
1541 $extrasub
1542 s%@CFLAGS@%$CFLAGS%g
1543 s%@CPPFLAGS@%$CPPFLAGS%g
1544 s%@CXXFLAGS@%$CXXFLAGS%g
1545 s%@DEFS@%$DEFS%g
1546 s%@LDFLAGS@%$LDFLAGS%g
1547 s%@LIBS@%$LIBS%g
1548 s%@exec_prefix@%$exec_prefix%g
1549 s%@prefix@%$prefix%g
1550 s%@program_transform_name@%$program_transform_name%g
1551 s%@bindir@%$bindir%g
1552 s%@sbindir@%$sbindir%g
1553 s%@libexecdir@%$libexecdir%g
1554 s%@datadir@%$datadir%g
1555 s%@sysconfdir@%$sysconfdir%g
1556 s%@sharedstatedir@%$sharedstatedir%g
1557 s%@localstatedir@%$localstatedir%g
1558 s%@libdir@%$libdir%g
1559 s%@includedir@%$includedir%g
1560 s%@oldincludedir@%$oldincludedir%g
1561 s%@infodir@%$infodir%g
1562 s%@mandir@%$mandir%g
1563 s%@host@%$host%g
1564 s%@host_alias@%$host_alias%g
1565 s%@host_cpu@%$host_cpu%g
1566 s%@host_vendor@%$host_vendor%g
1567 s%@host_os@%$host_os%g
1568 s%@sysnames@%$sysnames%g
1569 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1570 s%@INSTALL_DATA@%$INSTALL_DATA%g
1571 s%@build@%$build%g
1572 s%@build_alias@%$build_alias%g
1573 s%@build_cpu@%$build_cpu%g
1574 s%@build_vendor@%$build_vendor%g
1575 s%@build_os@%$build_os%g
1576 s%@CC@%$CC%g
1577 s%@AR@%$AR%g
1578 s%@RANLIB@%$RANLIB%g
1579 s%@CPP@%$CPP%g
1580 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1581 s%@uname_sysname@%$uname_sysname%g
1582 s%@uname_release@%$uname_release%g
1583 s%@uname_version@%$uname_version%g
1584 s%@gnu_ld@%$gnu_ld%g
1585 s%@gnu_as@%$gnu_as%g
1586 s%@elf@%$elf%g
1587 s%@weak@%$weak%g
1588 s%@shared@%$shared%g
1589 s%@profile@%$profile%g
1590 s%@omitfp@%$omitfp%g
1592 CEOF
1594 cat >> $CONFIG_STATUS <<EOF
1596 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1598 cat >> $CONFIG_STATUS <<\EOF
1599 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1600 # Support "outfile[:infile]", defaulting infile="outfile.in".
1601 case "$ac_file" in
1602 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1603 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1604 *) ac_file_in="${ac_file}.in" ;;
1605 esac
1607 # Adjust relative srcdir, etc. for subdirectories.
1609 # Remove last slash and all that follows it. Not all systems have dirname.
1610 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1612 # The file is in a subdirectory.
1613 test ! -d "$ac_dir" && mkdir "$ac_dir"
1614 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1615 # A "../" for each directory in $ac_dir_suffix.
1616 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1617 else
1618 ac_dir_suffix= ac_dots=
1621 case "$ac_given_srcdir" in
1622 .) srcdir=.
1623 if test -z "$ac_dots"; then top_srcdir=.
1624 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1625 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1626 *) # Relative path.
1627 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1628 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1629 esac
1631 case "$ac_given_INSTALL" in
1632 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1634 esac
1635 echo creating "$ac_file"
1636 rm -f "$ac_file"
1637 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1638 case "$ac_file" in
1639 *Makefile*) ac_comsub="1i\\
1640 # $configure_input" ;;
1641 *) ac_comsub= ;;
1642 esac
1643 sed -e "$ac_comsub
1644 s%@configure_input@%$configure_input%g
1645 s%@srcdir@%$srcdir%g
1646 s%@top_srcdir@%$top_srcdir%g
1647 s%@INSTALL@%$INSTALL%g
1648 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1649 fi; done
1650 rm -f conftest.subs
1652 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1653 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1655 # ac_d sets the value in "#define NAME VALUE" lines.
1656 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1657 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1658 ac_dC='\3'
1659 ac_dD='%g'
1660 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1661 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1662 ac_uB='\([ ]\)%\1#\2define\3'
1663 ac_uC=' '
1664 ac_uD='\4%g'
1665 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1666 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1667 ac_eB='$%\1#\2define\3'
1668 ac_eC=' '
1669 ac_eD='%g'
1671 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1672 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1673 # Support "outfile[:infile]", defaulting infile="outfile.in".
1674 case "$ac_file" in
1675 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1676 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1677 *) ac_file_in="${ac_file}.in" ;;
1678 esac
1680 echo creating $ac_file
1682 rm -f conftest.frag conftest.in conftest.out
1683 cp $ac_given_srcdir/$ac_file_in conftest.in
1687 # Transform confdefs.h into a sed script conftest.vals that substitutes
1688 # the proper values into config.h.in to produce config.h. And first:
1689 # Protect against being on the right side of a sed subst in config.status.
1690 # Protect against being in an unquoted here document in config.status.
1691 rm -f conftest.vals
1692 cat > conftest.hdr <<\EOF
1693 s/[\\&%]/\\&/g
1694 s%[\\$`]%\\&%g
1695 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1696 s%ac_d%ac_u%gp
1697 s%ac_u%ac_e%gp
1699 sed -n -f conftest.hdr confdefs.h > conftest.vals
1700 rm -f conftest.hdr
1702 # This sed command replaces #undef with comments. This is necessary, for
1703 # example, in the case of _POSIX_SOURCE, which is predefined and required
1704 # on some systems where configure will not decide to define it.
1705 cat >> conftest.vals <<\EOF
1706 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1709 # Break up conftest.vals because some shells have a limit on
1710 # the size of here documents, and old seds have small limits too.
1711 # Maximum number of lines to put in a single here document.
1712 ac_max_here_lines=12
1714 rm -f conftest.tail
1715 while :
1717 ac_lines=`grep -c . conftest.vals`
1718 # grep -c gives empty output for an empty file on some AIX systems.
1719 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1720 # Write a limited-size here document to conftest.frag.
1721 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1722 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1723 echo 'CEOF
1724 sed -f conftest.frag conftest.in > conftest.out
1725 rm -f conftest.in
1726 mv conftest.out conftest.in
1727 ' >> $CONFIG_STATUS
1728 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1729 rm -f conftest.vals
1730 mv conftest.tail conftest.vals
1731 done
1732 rm -f conftest.vals
1734 cat >> $CONFIG_STATUS <<\EOF
1735 rm -f conftest.frag conftest.h
1736 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1737 cat conftest.in >> conftest.h
1738 rm -f conftest.in
1739 if cmp -s $ac_file conftest.h 2>/dev/null; then
1740 echo "$ac_file is unchanged"
1741 rm -f conftest.h
1742 else
1743 rm -f $ac_file
1744 mv conftest.h $ac_file
1746 fi; done
1750 cat >> $CONFIG_STATUS <<EOF
1751 ac_sources="`echo $libc_link_sources`"
1752 ac_dests="`echo $libc_link_dests`"
1755 cat >> $CONFIG_STATUS <<\EOF
1756 srcdir=$ac_given_srcdir
1757 while test -n "$ac_sources"; do
1758 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1759 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1761 echo "linking $srcdir/$ac_source to $ac_dest"
1763 if test ! -r $srcdir/$ac_source; then
1764 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1766 rm -f $ac_dest
1768 # Make relative symlinks.
1769 # Remove last slash and all that follows it. Not all systems have dirname.
1770 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1771 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1772 # The dest file is in a subdirectory.
1773 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1774 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1775 # A "../" for each directory in $ac_dest_dir_suffix.
1776 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1777 else
1778 ac_dest_dir_suffix= ac_dots=
1781 case "$srcdir" in
1782 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1783 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1784 esac
1786 # Make a symlink if possible; otherwise try a hard link.
1787 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1788 ln $srcdir/$ac_source $ac_dest; then :
1789 else
1790 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1792 done
1794 cat >> $CONFIG_STATUS <<EOF
1795 echo '$config_vars' >> config.make
1797 cat >> $CONFIG_STATUS <<\EOF
1799 exit 0
1801 chmod +x $CONFIG_STATUS
1802 rm -fr confdefs* $ac_clean_files
1803 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1