update from main archive 961127
[glibc.git] / configure
blob4d2a9680a613e3bf4b4627c06eabe67357a42fdf
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20 --with-fp if using floating-point hardware default=yes"
21 ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28 --with-elf if using the ELF object format"
29 ac_help="$ac_help
30 --enable-libio build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32 --enable-shared build shared library [default=yes if GNU ld & ELF]"
33 ac_help="$ac_help
34 --enable-profile build profiled library [default=yes]"
35 ac_help="$ac_help
36 --enable-omitfp build undebuggable optimized library [default=no]"
37 ac_help="$ac_help
38 --enable-add-ons=DIR... configure and build named extra directories"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
75 subdirs=
76 MFLAGS= MAKEFLAGS=
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
80 ac_prev=
81 for ac_option
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
96 # Accept the important Cygnus configure options, so we can diagnose typos.
98 case "$ac_option" in
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
195 cat << EOF
196 Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
211 exit 0 ;;
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.12"
361 exit 0 ;;
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 nonopt="$ac_option"
416 esac
417 done
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434 exec 6>/dev/null
435 else
436 exec 6>&1
438 exec 5>./config.log
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459 done
461 # NLS nuisances.
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=features.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
491 else
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
516 done
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521 else
522 echo "creating cache $cache_file"
523 > $cache_file
526 ac_ext=c
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='
537 ' ac_t=' '
538 else
539 ac_n=-n ac_c= ac_t=
541 else
542 ac_n= ac_c='\c' ac_t=
545 if test -r /vmunix; then
546 kernel_id=`strings /vmunix | grep UNIX`
547 elif test -r /dynix; then
548 kernel_id=`strings /dynix | grep DYNIX`
549 else
550 kernel_id=
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-shared or --disable-shared was given.
644 if test "${enable_shared+set}" = set; then
645 enableval="$enable_shared"
646 shared=$enableval
647 else
648 shared=default
651 # Check whether --enable-profile or --disable-profile was given.
652 if test "${enable_profile+set}" = set; then
653 enableval="$enable_profile"
654 profile=$enableval
655 else
656 profile=yes
659 # Check whether --enable-omitfp or --disable-omitfp was given.
660 if test "${enable_omitfp+set}" = set; then
661 enableval="$enable_omitfp"
662 omitfp=$enableval
663 else
664 omitfp=no
668 # Check whether --enable-add-ons or --disable-add-ons was given.
669 if test "${enable_add_ons+set}" = set; then
670 enableval="$enable_add_ons"
671 add_ons=`echo "$enableval" | sed 's/,/ /g'`
672 else
673 add_ons=
676 ac_aux_dir=
677 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
678 if test -f $ac_dir/install-sh; then
679 ac_aux_dir=$ac_dir
680 ac_install_sh="$ac_aux_dir/install-sh -c"
681 break
682 elif test -f $ac_dir/install.sh; then
683 ac_aux_dir=$ac_dir
684 ac_install_sh="$ac_aux_dir/install.sh -c"
685 break
687 done
688 if test -z "$ac_aux_dir"; then
689 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
691 ac_config_guess=$ac_aux_dir/config.guess
692 ac_config_sub=$ac_aux_dir/config.sub
693 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
695 subdirs="$add_ons"
697 add_ons_pfx=
698 if test x"$add_ons" != x; then
699 for f in $add_ons; do
700 add_ons_pfx="$add_ons_pfx $f/"
701 done
705 # Make sure we can run config.sub.
706 if $ac_config_sub sun4 >/dev/null 2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
710 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5
713 host_alias=$host
714 case "$host_alias" in
715 NONE)
716 case $nonopt in
717 NONE)
718 if host_alias=`$ac_config_guess`; then :
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
720 fi ;;
721 *) host_alias=$nonopt ;;
722 esac ;;
723 esac
725 host=`$ac_config_sub $host_alias`
726 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$host" 1>&6
732 # The way shlib-versions is used to generate soversions.mk uses a
733 # fairly simplistic model for name recognition that can't distinguish
734 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
735 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
736 # tell. This doesn't get used much beyond that, so it's fairly safe.
737 case "$host_os" in
738 linux*)
740 gnu*)
741 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
743 esac
745 # We keep the original values in `$config_*' and never modify them, so we
746 # can write them unchanged into config.make. Everything else uses
747 # $machine, $vendor, and $os, and changes them whenever convenient.
748 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
750 # Some configurations imply other options.
751 case "$host_os" in
752 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
753 # These systems always use GNU tools.
754 gnu_ld=yes gnu_as=yes ;;
755 esac
756 case "$host_os" in
757 linux*ecoff*)
759 gnu* | linux* | sysv4* | solaris2*)
760 # These systems (almost) always use the ELF format.
761 elf=yes
763 esac
765 machine=$config_machine
766 vendor=$config_vendor
767 os=$config_os
769 # Expand the configuration machine name into a subdirectory by architecture
770 # type and particular chip.
771 case "$machine" in
772 a29k | am29000) base_machine=a29k machine=a29k ;;
773 alpha*) base_machine=alpha machine=alpha/$machine ;;
774 hppa*) base_machine=hppa machine=hppa/$machine ;;
775 i[3456]86) base_machine=i386 machine=i386/$machine ;;
776 m680?0) base_machine=m68k machine=m68k/$machine ;;
777 m68k) base_machine=m68k machine=m68k/m68020 ;;
778 m88???) base_machine=m88k machine=m88k/$machine ;;
779 m88k) base_machine=m88k machine=m88k/m88100 ;;
780 mips*) base_machine=mips machine=mips/$machine ;;
781 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
782 sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
783 supersparc) base_machine=sparc machine=sparc/sparc8 ;;
784 esac
787 # Compute the list of sysdep directories for this configuration.
788 # This can take a while to compute.
789 sysdep_dir=$srcdir/sysdeps
790 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
791 echo "configure:792: checking sysdep dirs" >&5
792 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
793 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
795 case "$os" in
796 gnu*)
797 base_os=mach/hurd ;;
798 netbsd* | 386bsd* | freebsd* | bsdi*)
799 base_os=unix/bsd/bsd4.4 ;;
800 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
801 base_os=unix/bsd ;;
802 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
803 base_os=unix/sysv ;;
804 solaris[2-9]*)
805 base_os=unix/sysv/sysv4 ;;
806 none)
807 base_os=standalone ;;
809 base_os='' ;;
810 esac
812 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
813 tail=$os
814 ostry=$os
815 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
816 ostry="$ostry /$o"
817 tail=$o
818 done
819 o=`echo $tail | sed 's/[0-9]*$//'`
820 if test $o != $tail; then
821 ostry="$ostry /$o"
823 # For linux-gnu, try linux-gnu, then linux.
824 o=`echo $tail | sed 's/-.*$//'`
825 if test $o != $tail; then
826 ostry="$ostry /$o"
829 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
830 base=
831 tail=$base_os
832 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
833 set $b
834 base="$base /$1"
835 tail="$2"
836 done
838 # For sparc/sparc9, try sparc/sparc9 and then sparc.
839 mach=
840 tail=$machine
841 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
842 set $m
843 # Prepend the machine's FPU directory unless --without-fp.
844 if test "$with_fp" = yes; then
845 mach="$mach /$1/fpu"
847 mach="$mach /$1"
848 tail="$2"
849 done
852 # Find what sysdep directories exist.
853 sysnames=
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
855 for d in $add_ons_pfx ''; do
856 for b in $base ''; do
857 for m0 in $mach ''; do
858 for v in /$vendor ''; do
859 for o in /$ostry ''; do
860 for m in $mach ''; do
861 if test "$m0$b$v$o$m"; then
862 try="${d}sysdeps$m0$b$v$o$m"
863 test -n "$enable_debug_configure" &&
864 echo "$0 DEBUG: try $try" >&2
865 case $try in
866 /*) dest=$try ;;
867 *) dest=$srcdir/$try ;;
868 esac
869 if test -d $dest; then
870 sysnames="$sysnames $try"
871 { test -n "$o" || test -n "$b"; } && os_used=t
872 { test -n "$m" || test -n "$m0"; } && machine_used=t
875 done
876 done
877 done
878 done
879 done
880 done
881 IFS="$ac_save_ifs"
883 if test -z "$os_used" && test "$os" != none; then
884 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
886 if test -z "$machine_used" && test "$machine" != none; then
887 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
890 # We have now validated the configuration.
893 # If using ELF, look for an `elf' subdirectory of each machine directory.
894 # We prepend these rather than inserting them whereever the machine appears
895 # because things specified by the machine's ELF ABI should override
896 # OS-specific things, and should always be the same for any OS on the
897 # machine (otherwise what's the point of an ABI?).
898 if test "$elf" = yes; then
899 elf_dirs=
900 for d in $add_ons_pfx ''; do
901 case $d in
902 /*) xsrcdir= ;;
903 *) xsrcdir=$srcdir/ ;;
904 esac
905 for m in $mach; do
906 if test -d $xsrcdir${d}sysdeps$m/elf; then
907 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
909 done
910 done
911 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
915 # Expand the list of system names into a full list of directories
916 # from each element's parent name and Implies file (if present).
917 set $sysnames
918 names=
919 while test $# -gt 0; do
920 name=$1
921 shift
923 case " $names " in *" $name "*)
924 # Already in the list.
925 continue
926 esac
928 # Report each name as we discover it, so there is no long pause in output.
929 echo $ac_n "$name $ac_c" >&6
931 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
933 case $name in
934 /*) xsrcdir= ;;
935 *) xsrcdir=$srcdir/ ;;
936 esac
937 test -n "$enable_debug_configure" &&
938 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
940 if test -f $xsrcdir$name/Implies; then
941 # Collect more names from the `Implies' file (removing comments).
942 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
943 implied=
944 for x in $implied_candidate; do
945 if test -d $xsrcdir$name_base/$x; then
946 implied="$implied $name_base/$x";
947 else
948 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
950 done
951 else
952 implied=
955 # Add NAME to the list of names.
956 names="$names $name"
958 # Find the parent of NAME, using the empty string if it has none.
959 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
961 # Add the names implied by NAME, and NAME's parent (if it has one), to
962 # the list of names to be processed (the argument list). We prepend the
963 # implied names to the list and append the parent. We want implied
964 # directories to come before further directories inferred from the
965 # configuration components; this ensures that for sysv4, unix/common
966 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
967 # after sysv4).
968 sysnames="`echo $implied $* $parent`"
969 test -n "$sysnames" && set $sysnames
970 done
972 # Add the default directories.
973 sysnames="$names sysdeps/generic sysdeps/stub"
975 # The other names were emitted during the scan.
976 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
979 ### Locate tools.
981 # Find a good install program. We prefer a C program (faster),
982 # so one script is as good as another. But avoid the broken or
983 # incompatible versions:
984 # SysV /etc/install, /usr/sbin/install
985 # SunOS /usr/etc/install
986 # IRIX /sbin/install
987 # AIX /bin/install
988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
990 # ./install, which can be erroneously created by make from ./install.sh.
991 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
992 echo "configure:993: checking for a BSD compatible install" >&5
993 if test -z "$INSTALL"; then
994 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
998 for ac_dir in $PATH; do
999 # Account for people who put trailing slashes in PATH elements.
1000 case "$ac_dir/" in
1001 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1003 # OSF1 and SCO ODT 3.0 have their own names for install.
1004 for ac_prog in ginstall installbsd scoinst install; do
1005 if test -f $ac_dir/$ac_prog; then
1006 if test $ac_prog = install &&
1007 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1008 # AIX install. It has an incompatible calling convention.
1009 # OSF/1 installbsd also uses dspmsg, but is usable.
1011 else
1012 ac_cv_path_install="$ac_dir/$ac_prog -c"
1013 break 2
1016 done
1018 esac
1019 done
1020 IFS="$ac_save_IFS"
1023 if test "${ac_cv_path_install+set}" = set; then
1024 INSTALL="$ac_cv_path_install"
1025 else
1026 # As a last resort, use the slow shell script. We don't cache a
1027 # path for INSTALL within a source directory, because that will
1028 # break other packages using the cache if that directory is
1029 # removed, or if the path is relative.
1030 INSTALL="$ac_install_sh"
1033 echo "$ac_t""$INSTALL" 1>&6
1035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1036 # It thinks the first close brace ends the variable substitution.
1037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1041 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1042 # The makefiles need to use a different form to find it in $srcdir.
1043 INSTALL='$(..)./install-sh -c'
1045 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether ln -s works" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050 rm -f conftestdata
1051 if ln -s X conftestdata 2>/dev/null
1052 then
1053 rm -f conftestdata
1054 ac_cv_prog_LN_S="ln -s"
1055 else
1056 ac_cv_prog_LN_S=ln
1059 LN_S="$ac_cv_prog_LN_S"
1060 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1061 echo "$ac_t""yes" 1>&6
1062 else
1063 echo "$ac_t""no" 1>&6
1066 for ac_prog in msgfmt gmsgfmt
1068 # Extract the first word of "$ac_prog", so it can be a program name with args.
1069 set dummy $ac_prog; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 if test -n "$MSGFMT"; then
1076 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1077 else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1079 for ac_dir in $PATH; do
1080 test -z "$ac_dir" && ac_dir=.
1081 if test -f $ac_dir/$ac_word; then
1082 ac_cv_prog_MSGFMT="$ac_prog"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1089 MSGFMT="$ac_cv_prog_MSGFMT"
1090 if test -n "$MSGFMT"; then
1091 echo "$ac_t""$MSGFMT" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1096 test -n "$MSGFMT" && break
1097 done
1098 test -n "$MSGFMT" || MSGFMT=":"
1101 echo $ac_n "checking build system type""... $ac_c" 1>&6
1102 echo "configure:1103: checking build system type" >&5
1104 build_alias=$build
1105 case "$build_alias" in
1106 NONE)
1107 case $nonopt in
1108 NONE) build_alias=$host_alias ;;
1109 *) build_alias=$nonopt ;;
1110 esac ;;
1111 esac
1113 build=`$ac_config_sub $build_alias`
1114 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1115 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1116 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 echo "$ac_t""$build" 1>&6
1119 if test $host != $build; then
1120 ac_tool_prefix=${host_alias}-
1121 else
1122 ac_tool_prefix=
1125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 if test -n "$CC"; then
1133 ac_cv_prog_CC="$CC" # Let the user override the test.
1134 else
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1136 for ac_dir in $PATH; do
1137 test -z "$ac_dir" && ac_dir=.
1138 if test -f $ac_dir/$ac_word; then
1139 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1140 break
1142 done
1143 IFS="$ac_save_ifs"
1144 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1147 CC="$ac_cv_prog_CC"
1148 if test -n "$CC"; then
1149 echo "$ac_t""$CC" 1>&6
1150 else
1151 echo "$ac_t""no" 1>&6
1156 if test $host != $build; then
1157 # Extract the first word of "gcc cc", so it can be a program name with args.
1158 set dummy gcc cc; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 if test -n "$BUILD_CC"; then
1165 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1166 else
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1168 for ac_dir in $PATH; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_BUILD_CC=""
1172 break
1174 done
1175 IFS="$ac_save_ifs"
1178 BUILD_CC="$ac_cv_prog_BUILD_CC"
1179 if test -n "$BUILD_CC"; then
1180 echo "$ac_t""$BUILD_CC" 1>&6
1181 else
1182 echo "$ac_t""no" 1>&6
1186 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1187 echo "configure:1188: checking how to run the C preprocessor" >&5
1188 # On Suns, sometimes $CPP names a directory.
1189 if test -n "$CPP" && test -d "$CPP"; then
1190 CPP=
1192 if test -z "$CPP"; then
1193 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 # This must be in double quotes, not single quotes, because CPP may get
1197 # substituted into the Makefile and "${CC-cc}" will confuse make.
1198 CPP="${CC-cc} -E"
1199 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp.
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <assert.h>
1205 Syntax Error
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out`
1210 if test -z "$ac_err"; then
1212 else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1216 rm -rf conftest*
1217 CPP="${CC-cc} -E -traditional-cpp"
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1221 #include <assert.h>
1222 Syntax Error
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out`
1227 if test -z "$ac_err"; then
1229 else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1233 rm -rf conftest*
1234 CPP=/lib/cpp
1236 rm -f conftest*
1238 rm -f conftest*
1239 ac_cv_prog_CPP="$CPP"
1241 CPP="$ac_cv_prog_CPP"
1242 else
1243 ac_cv_prog_CPP="$CPP"
1245 echo "$ac_t""$CPP" 1>&6
1247 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1248 set dummy ${ac_tool_prefix}ar; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 if test -n "$AR"; then
1255 ac_cv_prog_AR="$AR" # Let the user override the test.
1256 else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in $PATH; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_AR="${ac_tool_prefix}ar"
1262 break
1264 done
1265 IFS="$ac_save_ifs"
1266 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1269 AR="$ac_cv_prog_AR"
1270 if test -n "$AR"; then
1271 echo "$ac_t""$AR" 1>&6
1272 else
1273 echo "$ac_t""no" 1>&6
1278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281 echo "configure:1282: checking for $ac_word" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 if test -n "$RANLIB"; then
1286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1287 else
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1289 for ac_dir in $PATH; do
1290 test -z "$ac_dir" && ac_dir=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1293 break
1295 done
1296 IFS="$ac_save_ifs"
1299 RANLIB="$ac_cv_prog_RANLIB"
1300 if test -n "$RANLIB"; then
1301 echo "$ac_t""$RANLIB" 1>&6
1302 else
1303 echo "$ac_t""no" 1>&6
1307 if test -z "$ac_cv_prog_RANLIB"; then
1308 if test -n "$ac_tool_prefix"; then
1309 # Extract the first word of "ranlib", so it can be a program name with args.
1310 set dummy ranlib; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316 if test -n "$RANLIB"; then
1317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1318 else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1320 for ac_dir in $PATH; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f $ac_dir/$ac_word; then
1323 ac_cv_prog_RANLIB="ranlib"
1324 break
1326 done
1327 IFS="$ac_save_ifs"
1328 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1331 RANLIB="$ac_cv_prog_RANLIB"
1332 if test -n "$RANLIB"; then
1333 echo "$ac_t""$RANLIB" 1>&6
1334 else
1335 echo "$ac_t""no" 1>&6
1338 else
1339 RANLIB=":"
1344 # Extract the first word of "bash", so it can be a program name with args.
1345 set dummy bash; ac_word=$2
1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1347 echo "configure:1348: checking for $ac_word" >&5
1348 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 case "$BASH" in
1353 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1357 for ac_dir in $PATH; do
1358 test -z "$ac_dir" && ac_dir=.
1359 if test -f $ac_dir/$ac_word; then
1360 ac_cv_path_BASH="$ac_dir/$ac_word"
1361 break
1363 done
1364 IFS="$ac_save_ifs"
1365 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1367 esac
1369 BASH="$ac_cv_path_BASH"
1370 if test -n "$BASH"; then
1371 echo "$ac_t""$BASH" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1376 if test "$BASH" != no && $BASH -c 'test "$BASH_VERSINFO" -ge 2'; then
1377 libc_cv_have_bash2=yes
1378 else
1379 libc_cv_have_bash2=no
1383 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1384 echo "configure:1385: checking for signed size_t type" >&5
1385 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388 echo '#include <stddef.h>
1389 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1390 if eval "$ac_cpp conftest.c 2>/dev/null" \
1391 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1392 libc_cv_signed_size_t=no
1393 else
1394 libc_cv_signed_size_t=yes
1396 rm -f conftest*
1399 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1400 if test $libc_cv_signed_size_t = yes; then
1401 cat >> confdefs.h <<\EOF
1402 #undef __SIZE_TYPE__
1403 #define __SIZE_TYPE__ unsigned
1407 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1408 echo "configure:1409: checking for libc-friendly stddef.h" >&5
1409 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #define __need_size_t
1416 #define __need_wchar_t
1417 #include <stddef.h>
1418 #define __need_NULL
1419 #include <stddef.h>
1420 int main() {
1421 size_t size; wchar_t wchar;
1422 #ifdef offsetof
1423 #error stddef.h ignored __need_*
1424 #endif
1425 if (&size == NULL || &wchar == NULL) abort ();
1426 ; return 0; }
1428 if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1429 rm -rf conftest*
1430 libc_cv_friendly_stddef=yes
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 libc_cv_friendly_stddef=no
1437 rm -f conftest*
1440 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1441 if test $libc_cv_friendly_stddef = yes; then
1442 config_vars="$config_vars
1443 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1446 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1447 echo "configure:1448: checking whether we need to use -P to assemble .S files" >&5
1448 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451 cat > conftest.S <<EOF
1452 #include "confdefs.h"
1453 /* Nothing whatsoever. */
1455 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1456 libc_cv_need_minus_P=no
1457 else
1458 libc_cv_need_minus_P=yes
1460 rm -f conftest*
1463 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1464 if test $libc_cv_need_minus_P = yes; then
1465 config_vars="$config_vars
1466 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1469 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1470 echo "configure:1471: checking for assembler global-symbol directive" >&5
1471 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1473 else
1474 libc_cv_asm_global_directive=UNKNOWN
1475 for ac_globl in .globl .global; do
1476 cat > conftest.s <<EOF
1477 .text
1478 ${ac_globl} foo
1479 foo: .long 0
1481 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1482 libc_cv_asm_global_directive=${ac_globl}
1484 rm -f conftest*
1485 test $libc_cv_asm_global_directive != UNKNOWN && break
1486 done
1489 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1490 if test $libc_cv_asm_global_directive = UNKNOWN; then
1491 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1492 else
1493 cat >> confdefs.h <<EOF
1494 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1499 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1500 echo "configure:1501: checking for .set assembler directive" >&5
1501 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 cat > conftest.s <<EOF
1505 .text
1506 foo: .long 0
1507 .set glibc_conftest_frobozz,foo
1508 $libc_cv_asm_global_directive glibc_conftest_frobozz
1510 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1511 # (but it doesn't work), so we must do a linking check to be sure.
1512 cat > conftest1.c <<\EOF
1513 extern int glibc_conftest_frobozz;
1514 main () { printf ("%d\n", glibc_conftest_frobozz); }
1516 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1517 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1518 libc_cv_asm_set_directive=yes
1519 else
1520 libc_cv_asm_set_directive=no
1522 rm -f conftest*
1525 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1526 if test $libc_cv_asm_set_directive = yes; then
1527 cat >> confdefs.h <<\EOF
1528 #define HAVE_ASM_SET_DIRECTIVE 1
1533 if test $elf != yes; then
1534 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1535 echo "configure:1536: checking for .init and .fini sections" >&5
1536 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1543 int main() {
1544 asm (".section .init");
1545 asm (".section .fini");
1546 asm (".text");
1547 ; return 0; }
1549 if { (eval echo configure:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 rm -rf conftest*
1551 libc_cv_have_initfini=yes
1552 else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 rm -rf conftest*
1556 libc_cv_have_initfini=no
1558 rm -f conftest*
1561 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1562 if test $libc_cv_have_initfini = yes; then
1563 cat >> confdefs.h <<\EOF
1564 #define HAVE_INITFINI 1
1570 if test $elf = yes; then
1571 libc_cv_asm_underscores=no
1572 else
1573 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1574 echo "configure:1575: checking for _ prefix on C symbol names" >&5
1575 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 asm ("_glibc_foobar:");
1582 int main() {
1583 glibc_foobar ();
1584 ; return 0; }
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1587 rm -rf conftest*
1588 libc_cv_asm_underscores=yes
1589 else
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1592 rm -rf conftest*
1593 libc_cv_asm_underscores=no
1595 rm -f conftest*
1598 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1600 if test $libc_cv_asm_underscores = no; then
1601 cat >> confdefs.h <<\EOF
1602 #define NO_UNDERSCORES 1
1607 if test $elf = yes; then
1608 libc_cv_weak_symbols=yes
1609 libc_cv_asm_weak_directive=yes
1610 libc_cv_asm_weakext_directive=no
1611 else
1612 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1613 echo "configure:1614: checking for assembler .weak directive" >&5
1614 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.s <<EOF
1618 .text
1619 ${libc_cv_asm_global_directive} foo
1620 foo: .long 0
1621 .weak foo
1622 .weak bar; bar = foo
1624 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1625 libc_cv_asm_weak_directive=yes
1626 else
1627 libc_cv_asm_weak_directive=no
1629 rm -f conftest*
1632 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1634 if test $libc_cv_asm_weak_directive = no; then
1635 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1636 echo "configure:1637: checking for assembler .weakext directive" >&5
1637 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1639 else
1640 cat > conftest.s <<EOF
1641 .text
1642 ${libc_cv_asm_global_directive} foo
1643 foo: .long 0
1644 .weakext foo
1645 .weakext foo, bar
1647 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1648 libc_cv_asm_weakext_directive=yes
1649 else
1650 libc_cv_asm_weakext_directive=no
1652 rm -f conftest*
1655 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1657 fi # no .weak
1658 fi # not ELF
1660 if test $libc_cv_asm_weak_directive = yes; then
1661 cat >> confdefs.h <<\EOF
1662 #define HAVE_ASM_WEAK_DIRECTIVE 1
1665 elif test $libc_cv_asm_weakext_directive = yes; then
1666 cat >> confdefs.h <<\EOF
1667 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1672 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1673 echo "configure:1674: checking for ld --no-whole-archive" >&5
1674 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 cat > conftest.c <<\EOF
1678 _start () {}
1679 int __eh_pc;
1680 __throw () {}
1682 if { ac_try='${CC-cc} $CFLAGS
1683 -nostdlib -nostartfiles -Wl,--no-whole-archive
1684 -o conftest conftest.c'; { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1685 libc_cv_ld_no_whole_archive=yes
1686 else
1687 libc_cv_ld_no_whole_archive=no
1689 rm -f conftest*
1692 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1694 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1695 echo "configure:1696: checking for gcc -fno-exceptions" >&5
1696 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699 cat > conftest.c <<\EOF
1700 _start () {}
1701 int __eh_pc;
1702 __throw () {}
1704 if { ac_try='${CC-cc} $CFLAGS
1705 -nostdlib -nostartfiles -fno-exceptions
1706 -o conftest conftest.c'; { (eval echo configure:1707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1707 libc_cv_gcc_no_exceptions=yes
1708 else
1709 libc_cv_gcc_no_exceptions=no
1711 rm -f conftest*
1714 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1716 ### End of automated tests.
1717 ### Now run sysdeps configure fragments.
1719 # sysdeps configure fragments may set these with files to be linked below.
1720 libc_link_dests=
1721 libc_link_sources=
1723 # Iterate over all the sysdep directories we will use, running their
1724 # configure fragments, and looking for a uname implementation.
1725 uname=
1726 for dir in $sysnames; do
1727 case $dir in
1728 /*) dest=$dir ;;
1729 *) dest=$srcdir/$dir ;;
1730 esac
1731 if test -r $dest/configure; then
1732 echo "$ac_t""running configure fragment for $dest" 1>&6
1733 . $dest/configure
1736 if test -z "$uname"; then
1737 if test -r $sysdep_dir/$dir/uname.c ||
1738 test -r $sysdep_dir/$dir/uname.S ||
1739 { test -r $sysdep_dir/$dir/syscalls.list &&
1740 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1741 uname=$dir
1744 done
1748 # If we will use the generic uname implementation, we must figure out what
1749 # it will say by examining the system, and write the results in config-name.h.
1750 if test "$uname" = generic; then
1752 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1753 if test $uname_sysname != $config_os; then
1754 config_release=`echo $config_os | sed s/$uname_sysname//`
1757 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1758 echo "configure:1759: checking OS release for uname" >&5
1759 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1763 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1764 != x$config_release; then
1765 # The configuration release is a substring of the kernel release.
1766 libc_cv_uname_release=$kernel_release
1767 elif test x$config_release != x; then
1768 libc_cv_uname_release=$config_release
1769 elif test x$kernel_release != x; then
1770 libc_cv_uname_release=$kernel_release
1771 else
1772 libc_cv_uname_release=unknown
1776 echo "$ac_t""$libc_cv_uname_release" 1>&6
1777 uname_release="$libc_cv_uname_release"
1779 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1780 echo "configure:1781: checking OS version for uname" >&5
1781 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1785 if test -n "$kernel_version"; then
1786 libc_cv_uname_version="$kernel_version"
1787 else
1788 libc_cv_uname_version=unknown
1792 echo "$ac_t""$libc_cv_uname_version" 1>&6
1793 uname_version="$libc_cv_uname_version"
1795 config_uname=config-name.h:config-name.in
1796 else
1797 # For non-generic uname, we don't need to create config-name.h at all.
1798 config_uname=
1801 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1802 echo "configure:1803: checking stdio selection" >&5
1804 case $stdio in
1805 libio) cat >> confdefs.h <<\EOF
1806 #define USE_IN_LIBIO 1
1809 default) stdio=stdio ;;
1810 esac
1811 echo "$ac_t""$stdio" 1>&6
1817 if test $gnu_ld = yes; then
1818 cat >> confdefs.h <<\EOF
1819 #define HAVE_GNU_LD 1
1823 if test $gnu_as = yes; then
1824 cat >> confdefs.h <<\EOF
1825 #define HAVE_GNU_AS 1
1829 if test $elf = yes; then
1830 cat >> confdefs.h <<\EOF
1831 #define HAVE_ELF 1
1837 if test $shared = default; then
1838 if test $gnu_ld = yes; then
1839 shared=$elf
1847 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1848 config_makefile=
1849 else
1850 config_makefile=Makefile
1853 trap '' 1 2 15
1854 cat > confcache <<\EOF
1855 # This file is a shell script that caches the results of configure
1856 # tests run on this system so they can be shared between configure
1857 # scripts and configure runs. It is not useful on other systems.
1858 # If it contains results you don't want to keep, you may remove or edit it.
1860 # By default, configure uses ./config.cache as the cache file,
1861 # creating it if it does not exist already. You can give configure
1862 # the --cache-file=FILE option to use a different cache file; that is
1863 # what configure does when it calls configure scripts in
1864 # subdirectories, so they share the cache.
1865 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1866 # config.status only pays attention to the cache file if you give it the
1867 # --recheck option to rerun configure.
1870 # The following way of writing the cache mishandles newlines in values,
1871 # but we know of no workaround that is simple, portable, and efficient.
1872 # So, don't put newlines in cache variables' values.
1873 # Ultrix sh set writes to stderr and can't be redirected directly,
1874 # and sets the high bit in the cache file unless we assign to the vars.
1875 (set) 2>&1 |
1876 case `(ac_space=' '; set) 2>&1` in
1877 *ac_space=\ *)
1878 # `set' does not quote correctly, so add quotes (double-quote substitution
1879 # turns \\\\ into \\, and sed turns \\ into \).
1880 sed -n \
1881 -e "s/'/'\\\\''/g" \
1882 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1885 # `set' quotes correctly as required by POSIX, so do not add quotes.
1886 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1888 esac >> confcache
1889 if cmp -s $cache_file confcache; then
1891 else
1892 if test -w $cache_file; then
1893 echo "updating cache $cache_file"
1894 cat confcache > $cache_file
1895 else
1896 echo "not updating unwritable cache $cache_file"
1899 rm -f confcache
1901 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1904 # Let make expand exec_prefix.
1905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1907 # Any assignment to VPATH causes Sun make to only execute
1908 # the first set of double-colon rules, so remove it if not needed.
1909 # If there is a colon in the path, we need to keep it.
1910 if test "x$srcdir" = x.; then
1911 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1914 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1916 DEFS=-DHAVE_CONFIG_H
1918 # Without the "./", some shells look in PATH for config.status.
1919 : ${CONFIG_STATUS=./config.status}
1921 echo creating $CONFIG_STATUS
1922 rm -f $CONFIG_STATUS
1923 cat > $CONFIG_STATUS <<EOF
1924 #! /bin/sh
1925 # Generated automatically by configure.
1926 # Run this file to recreate the current configuration.
1927 # This directory was configured as follows,
1928 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1930 # $0 $ac_configure_args
1932 # Compiler output produced by configure, useful for debugging
1933 # configure, is in ./config.log if it exists.
1935 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1936 for ac_option
1938 case "\$ac_option" in
1939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1940 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1941 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1942 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1943 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1944 exit 0 ;;
1945 -help | --help | --hel | --he | --h)
1946 echo "\$ac_cs_usage"; exit 0 ;;
1947 *) echo "\$ac_cs_usage"; exit 1 ;;
1948 esac
1949 done
1951 ac_given_srcdir=$srcdir
1952 ac_given_INSTALL="$INSTALL"
1954 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1956 cat >> $CONFIG_STATUS <<EOF
1958 # Protect against being on the right side of a sed subst in config.status.
1959 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1960 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1961 $ac_vpsub
1962 $extrasub
1963 s%@CFLAGS@%$CFLAGS%g
1964 s%@CPPFLAGS@%$CPPFLAGS%g
1965 s%@CXXFLAGS@%$CXXFLAGS%g
1966 s%@DEFS@%$DEFS%g
1967 s%@LDFLAGS@%$LDFLAGS%g
1968 s%@LIBS@%$LIBS%g
1969 s%@exec_prefix@%$exec_prefix%g
1970 s%@prefix@%$prefix%g
1971 s%@program_transform_name@%$program_transform_name%g
1972 s%@bindir@%$bindir%g
1973 s%@sbindir@%$sbindir%g
1974 s%@libexecdir@%$libexecdir%g
1975 s%@datadir@%$datadir%g
1976 s%@sysconfdir@%$sysconfdir%g
1977 s%@sharedstatedir@%$sharedstatedir%g
1978 s%@localstatedir@%$localstatedir%g
1979 s%@libdir@%$libdir%g
1980 s%@includedir@%$includedir%g
1981 s%@oldincludedir@%$oldincludedir%g
1982 s%@infodir@%$infodir%g
1983 s%@mandir@%$mandir%g
1984 s%@subdirs@%$subdirs%g
1985 s%@host@%$host%g
1986 s%@host_alias@%$host_alias%g
1987 s%@host_cpu@%$host_cpu%g
1988 s%@host_vendor@%$host_vendor%g
1989 s%@host_os@%$host_os%g
1990 s%@base_machine@%$base_machine%g
1991 s%@sysnames@%$sysnames%g
1992 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1993 s%@INSTALL_DATA@%$INSTALL_DATA%g
1994 s%@LN_S@%$LN_S%g
1995 s%@MSGFMT@%$MSGFMT%g
1996 s%@build@%$build%g
1997 s%@build_alias@%$build_alias%g
1998 s%@build_cpu@%$build_cpu%g
1999 s%@build_vendor@%$build_vendor%g
2000 s%@build_os@%$build_os%g
2001 s%@CC@%$CC%g
2002 s%@BUILD_CC@%$BUILD_CC%g
2003 s%@CPP@%$CPP%g
2004 s%@AR@%$AR%g
2005 s%@RANLIB@%$RANLIB%g
2006 s%@BASH@%$BASH%g
2007 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2008 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2009 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2010 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2011 s%@uname_sysname@%$uname_sysname%g
2012 s%@uname_release@%$uname_release%g
2013 s%@uname_version@%$uname_version%g
2014 s%@stdio@%$stdio%g
2015 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2016 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2017 s%@gnu_ld@%$gnu_ld%g
2018 s%@gnu_as@%$gnu_as%g
2019 s%@elf@%$elf%g
2020 s%@shared@%$shared%g
2021 s%@profile@%$profile%g
2022 s%@omitfp@%$omitfp%g
2023 s%@DEFINES@%$DEFINES%g
2025 CEOF
2028 cat >> $CONFIG_STATUS <<\EOF
2030 # Split the substitutions into bite-sized pieces for seds with
2031 # small command number limits, like on Digital OSF/1 and HP-UX.
2032 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2033 ac_file=1 # Number of current file.
2034 ac_beg=1 # First line for current file.
2035 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2036 ac_more_lines=:
2037 ac_sed_cmds=""
2038 while $ac_more_lines; do
2039 if test $ac_beg -gt 1; then
2040 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2041 else
2042 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2044 if test ! -s conftest.s$ac_file; then
2045 ac_more_lines=false
2046 rm -f conftest.s$ac_file
2047 else
2048 if test -z "$ac_sed_cmds"; then
2049 ac_sed_cmds="sed -f conftest.s$ac_file"
2050 else
2051 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2053 ac_file=`expr $ac_file + 1`
2054 ac_beg=$ac_end
2055 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2057 done
2058 if test -z "$ac_sed_cmds"; then
2059 ac_sed_cmds=cat
2063 cat >> $CONFIG_STATUS <<EOF
2065 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
2067 cat >> $CONFIG_STATUS <<\EOF
2068 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2070 case "$ac_file" in
2071 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2072 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2073 *) ac_file_in="${ac_file}.in" ;;
2074 esac
2076 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2078 # Remove last slash and all that follows it. Not all systems have dirname.
2079 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2080 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2081 # The file is in a subdirectory.
2082 test ! -d "$ac_dir" && mkdir "$ac_dir"
2083 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2084 # A "../" for each directory in $ac_dir_suffix.
2085 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2086 else
2087 ac_dir_suffix= ac_dots=
2090 case "$ac_given_srcdir" in
2091 .) srcdir=.
2092 if test -z "$ac_dots"; then top_srcdir=.
2093 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2094 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2095 *) # Relative path.
2096 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2097 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2098 esac
2100 case "$ac_given_INSTALL" in
2101 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2102 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2103 esac
2105 echo creating "$ac_file"
2106 rm -f "$ac_file"
2107 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2108 case "$ac_file" in
2109 *Makefile*) ac_comsub="1i\\
2110 # $configure_input" ;;
2111 *) ac_comsub= ;;
2112 esac
2114 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2115 sed -e "$ac_comsub
2116 s%@configure_input@%$configure_input%g
2117 s%@srcdir@%$srcdir%g
2118 s%@top_srcdir@%$top_srcdir%g
2119 s%@INSTALL@%$INSTALL%g
2120 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2121 fi; done
2122 rm -f conftest.s*
2124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2127 # ac_d sets the value in "#define NAME VALUE" lines.
2128 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2129 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2130 ac_dC='\3'
2131 ac_dD='%g'
2132 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2133 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2134 ac_uB='\([ ]\)%\1#\2define\3'
2135 ac_uC=' '
2136 ac_uD='\4%g'
2137 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2138 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2139 ac_eB='$%\1#\2define\3'
2140 ac_eC=' '
2141 ac_eD='%g'
2143 if test "${CONFIG_HEADERS+set}" != set; then
2145 cat >> $CONFIG_STATUS <<EOF
2146 CONFIG_HEADERS="config.h"
2148 cat >> $CONFIG_STATUS <<\EOF
2150 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2152 case "$ac_file" in
2153 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2154 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2155 *) ac_file_in="${ac_file}.in" ;;
2156 esac
2158 echo creating $ac_file
2160 rm -f conftest.frag conftest.in conftest.out
2161 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2162 cat $ac_file_inputs > conftest.in
2166 # Transform confdefs.h into a sed script conftest.vals that substitutes
2167 # the proper values into config.h.in to produce config.h. And first:
2168 # Protect against being on the right side of a sed subst in config.status.
2169 # Protect against being in an unquoted here document in config.status.
2170 rm -f conftest.vals
2171 cat > conftest.hdr <<\EOF
2172 s/[\\&%]/\\&/g
2173 s%[\\$`]%\\&%g
2174 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2175 s%ac_d%ac_u%gp
2176 s%ac_u%ac_e%gp
2178 sed -n -f conftest.hdr confdefs.h > conftest.vals
2179 rm -f conftest.hdr
2181 # This sed command replaces #undef with comments. This is necessary, for
2182 # example, in the case of _POSIX_SOURCE, which is predefined and required
2183 # on some systems where configure will not decide to define it.
2184 cat >> conftest.vals <<\EOF
2185 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2188 # Break up conftest.vals because some shells have a limit on
2189 # the size of here documents, and old seds have small limits too.
2191 rm -f conftest.tail
2192 while :
2194 ac_lines=`grep -c . conftest.vals`
2195 # grep -c gives empty output for an empty file on some AIX systems.
2196 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2197 # Write a limited-size here document to conftest.frag.
2198 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2199 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2200 echo 'CEOF
2201 sed -f conftest.frag conftest.in > conftest.out
2202 rm -f conftest.in
2203 mv conftest.out conftest.in
2204 ' >> $CONFIG_STATUS
2205 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2206 rm -f conftest.vals
2207 mv conftest.tail conftest.vals
2208 done
2209 rm -f conftest.vals
2211 cat >> $CONFIG_STATUS <<\EOF
2212 rm -f conftest.frag conftest.h
2213 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2214 cat conftest.in >> conftest.h
2215 rm -f conftest.in
2216 if cmp -s $ac_file conftest.h 2>/dev/null; then
2217 echo "$ac_file is unchanged"
2218 rm -f conftest.h
2219 else
2220 # Remove last slash and all that follows it. Not all systems have dirname.
2221 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2222 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2223 # The file is in a subdirectory.
2224 test ! -d "$ac_dir" && mkdir "$ac_dir"
2226 rm -f $ac_file
2227 mv conftest.h $ac_file
2229 fi; done
2233 cat >> $CONFIG_STATUS <<EOF
2234 ac_sources="`echo $libc_link_sources`"
2235 ac_dests="`echo $libc_link_dests`"
2238 cat >> $CONFIG_STATUS <<\EOF
2239 srcdir=$ac_given_srcdir
2240 while test -n "$ac_sources"; do
2241 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2242 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2244 echo "linking $srcdir/$ac_source to $ac_dest"
2246 if test ! -r $srcdir/$ac_source; then
2247 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2249 rm -f $ac_dest
2251 # Make relative symlinks.
2252 # Remove last slash and all that follows it. Not all systems have dirname.
2253 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2254 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2255 # The dest file is in a subdirectory.
2256 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2257 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2258 # A "../" for each directory in $ac_dest_dir_suffix.
2259 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2260 else
2261 ac_dest_dir_suffix= ac_dots=
2264 case "$srcdir" in
2265 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2266 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2267 esac
2269 # Make a symlink if possible; otherwise try a hard link.
2270 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2271 ln $srcdir/$ac_source $ac_dest; then :
2272 else
2273 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2275 done
2277 cat >> $CONFIG_STATUS <<EOF
2278 echo '$config_vars' >> config.make
2280 cat >> $CONFIG_STATUS <<\EOF
2282 exit 0
2284 chmod +x $CONFIG_STATUS
2285 rm -fr confdefs* $ac_clean_files
2286 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2288 if test "$no_recursion" != yes; then
2290 # Remove --cache-file and --srcdir arguments so they do not pile up.
2291 ac_sub_configure_args=
2292 ac_prev=
2293 for ac_arg in $ac_configure_args; do
2294 if test -n "$ac_prev"; then
2295 ac_prev=
2296 continue
2298 case "$ac_arg" in
2299 -cache-file | --cache-file | --cache-fil | --cache-fi \
2300 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2301 ac_prev=cache_file ;;
2302 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2303 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2306 ac_prev=srcdir ;;
2307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2309 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2310 esac
2311 done
2313 for ac_config_dir in $add_ons; do
2315 # Do not complain, so a configure script can configure whichever
2316 # parts of a large source tree are present.
2317 if test ! -d $srcdir/$ac_config_dir; then
2318 continue
2321 echo configuring in $ac_config_dir
2323 case "$srcdir" in
2324 .) ;;
2326 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2327 else
2328 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2331 esac
2333 ac_popdir=`pwd`
2334 cd $ac_config_dir
2336 # A "../" for each directory in /$ac_config_dir.
2337 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2339 case "$srcdir" in
2340 .) # No --srcdir option. We are building in place.
2341 ac_sub_srcdir=$srcdir ;;
2342 /*) # Absolute path.
2343 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2344 *) # Relative path.
2345 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2346 esac
2348 # Check for guested configure; otherwise get Cygnus style configure.
2349 if test -f $ac_sub_srcdir/configure; then
2350 ac_sub_configure=$ac_sub_srcdir/configure
2351 elif test -f $ac_sub_srcdir/configure.in; then
2352 ac_sub_configure=$ac_configure
2353 else
2354 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2355 ac_sub_configure=
2358 # The recursion is here.
2359 if test -n "$ac_sub_configure"; then
2361 # Make the cache file name correct relative to the subdirectory.
2362 case "$cache_file" in
2363 /*) ac_sub_cache_file=$cache_file ;;
2364 *) # Relative path.
2365 ac_sub_cache_file="$ac_dots$cache_file" ;;
2366 esac
2367 case "$ac_given_INSTALL" in
2368 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2369 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2370 esac
2372 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2373 # The eval makes quoting arguments work.
2374 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2375 then :
2376 else
2377 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2381 cd $ac_popdir
2382 done