update from main archive 961113
[glibc/history.git] / configure
blob14ca8e2c8e495940e9ae148b6c6438a3d1b222e6
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.10.3
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=
78 ac_prev=
79 for ac_option
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
94 # Accept the important Cygnus configure options, so we can diagnose typos.
96 case "$ac_option" in
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
170 [$ac_default_prefix]
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 [same as prefix]
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
177 [PREFIX/share]
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 [PREFIX/com]
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
193 cat << EOF
194 Host type:
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
209 exit 0 ;;
211 -host | --host | --hos | --ho)
212 ac_prev=host ;;
213 -host=* | --host=* | --hos=* | --ho=*)
214 host="$ac_optarg" ;;
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 ac_prev=infodir ;;
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
229 ac_prev=libdir ;;
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 ac_prev=mandir ;;
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
254 -nfp | --nfp | --nf)
255 # Obsolete; use --without-fp.
256 with_fp=no ;;
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 | --no-cr | --no-c)
260 no_create=yes ;;
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 no_recursion=yes ;;
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 ac_prev=prefix ;;
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
313 silent=yes ;;
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 ac_prev=sbindir ;;
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 | --sbi=* | --sb=*)
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
324 | --sha | --sh)
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 | --sha=* | --sh=*)
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
333 ac_prev=site ;;
334 -site=* | --site=* | --sit=*)
335 site="$ac_optarg" ;;
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 ac_prev=srcdir ;;
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
350 ac_prev=target ;;
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 verbose=yes ;;
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.10.3"
359 exit 0 ;;
361 -with-* | --with-*)
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
383 --x)
384 # Obsolete; use --with-x.
385 with_x=yes ;;
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 nonopt="$ac_option"
414 esac
415 done
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432 exec 6>/dev/null
433 else
434 exec 6>&1
436 exec 5>./config.log
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
448 case "$ac_arg" in
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 esac
457 done
459 # NLS nuisances.
460 # Only set LANG and LC_ALL to C if already set.
461 # These must not be set unconditionally because not all systems understand
462 # e.g. LANG=C (notably SCO).
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=features.h
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
486 else
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
511 done
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516 else
517 echo "creating cache $cache_file"
518 > $cache_file
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='
531 ' ac_t=' '
532 else
533 ac_n=-n ac_c= ac_t=
535 else
536 ac_n= ac_c='\c' ac_t=
539 if test -r /vmunix; then
540 kernel_id=`strings /vmunix | grep UNIX`
541 elif test -r /dynix; then
542 kernel_id=`strings /dynix | grep DYNIX`
543 else
544 kernel_id=
550 # This will get text that should go into config.make.
551 config_vars=
553 # We need a variable with the absolute path to the toplevel build directory.
554 top_absdir=`cd $srcdir; pwd`
557 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
558 # Check whether --with-gmp or --without-gmp was given.
559 if test "${with_gmp+set}" = set; then
560 withval="$with_gmp"
561 case "$with_gmp" in
562 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
563 ''|no) ;;
564 *) config_vars="$config_vars
565 gmp-srcdir = $withval" ;;
566 esac
570 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
571 # Check whether --with-gettext or --without-gettext was given.
572 if test "${with_gettext+set}" = set; then
573 withval="$with_gettext"
574 case "$with_gettext" in
575 yes)
576 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
577 ''|no) ;;
579 config_vars="$config_vars
580 gettext-srcdir = $withval" ;;
581 esac
586 # Check whether --with-fp or --without-fp was given.
587 if test "${with_fp+set}" = set; then
588 withval="$with_fp"
589 with_fp=$withval
590 else
591 with_fp=yes
594 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
595 if test "${with_gnu_binutils+set}" = set; then
596 withval="$with_gnu_binutils"
597 gnu_binutils=$withval
598 else
599 gnu_binutils=no
602 # Check whether --with-gnu-ld or --without-gnu-ld was given.
603 if test "${with_gnu_ld+set}" = set; then
604 withval="$with_gnu_ld"
605 gnu_ld=$withval
606 else
607 gnu_ld=no
610 # Check whether --with-gnu-as or --without-gnu-as was given.
611 if test "${with_gnu_as+set}" = set; then
612 withval="$with_gnu_as"
613 gnu_as=$withval
614 else
615 gnu_as=no
618 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
619 # Check whether --with-elf or --without-elf was given.
620 if test "${with_elf+set}" = set; then
621 withval="$with_elf"
622 elf=$withval
623 else
624 elf=no
628 # Check whether --enable-libio or --disable-libio was given.
629 if test "${enable_libio+set}" = set; then
630 enableval="$enable_libio"
631 if test $enableval = yes; then
632 stdio=libio
633 else
634 stdio=stdio
636 else
637 stdio=default
641 # Check whether --enable-shared or --disable-shared was given.
642 if test "${enable_shared+set}" = set; then
643 enableval="$enable_shared"
644 shared=$enableval
645 else
646 shared=default
649 # Check whether --enable-profile or --disable-profile was given.
650 if test "${enable_profile+set}" = set; then
651 enableval="$enable_profile"
652 profile=$enableval
653 else
654 profile=yes
657 # Check whether --enable-omitfp or --disable-omitfp was given.
658 if test "${enable_omitfp+set}" = set; then
659 enableval="$enable_omitfp"
660 omitfp=$enableval
661 else
662 omitfp=no
666 # Check whether --enable-add-ons or --disable-add-ons was given.
667 if test "${enable_add_ons+set}" = set; then
668 enableval="$enable_add_ons"
669 add_ons=`echo "$enableval" | sed 's/,/ /g'`
670 else
671 add_ons=
674 ac_aux_dir=
675 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
676 if test -f $ac_dir/install-sh; then
677 ac_aux_dir=$ac_dir
678 ac_install_sh="$ac_aux_dir/install-sh -c"
679 break
680 elif test -f $ac_dir/install.sh; then
681 ac_aux_dir=$ac_dir
682 ac_install_sh="$ac_aux_dir/install.sh -c"
683 break
685 done
686 if test -z "$ac_aux_dir"; then
687 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
689 ac_config_guess=$ac_aux_dir/config.guess
690 ac_config_sub=$ac_aux_dir/config.sub
691 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
693 subdirs="$add_ons"
695 add_ons_pfx=
696 if test x"$add_ons" != x; then
697 for f in $add_ons; do
698 add_ons_pfx="$add_ons_pfx $f/"
699 done
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 echo $ac_n "checking host system type""... $ac_c" 1>&6
709 echo "configure:710: checking host system type" >&5
711 host_alias=$host
712 case "$host_alias" in
713 NONE)
714 case $nonopt in
715 NONE)
716 if host_alias=`$ac_config_guess`; then :
717 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
718 fi ;;
719 *) host_alias=$nonopt ;;
720 esac ;;
721 esac
723 host=`$ac_config_sub $host_alias`
724 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$host" 1>&6
729 # We keep the original values in `$config_*' and never modify them, so we
730 # can write them unchanged into config.make. Everything else uses
731 # $machine, $vendor, and $os, and changes them whenever convenient.
732 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
734 # Some configurations imply other options.
735 case "$host_os" in
736 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
737 # These systems always use GNU tools.
738 gnu_ld=yes gnu_as=yes ;;
739 esac
740 case "$host_os" in
741 linux*ecoff*)
743 gnu* | linux* | sysv4* | solaris2*)
744 # These systems (almost) always use the ELF format.
745 elf=yes
747 esac
749 machine=$config_machine
750 vendor=$config_vendor
751 os=$config_os
753 # Expand the configuration machine name into a subdirectory by architecture
754 # type and particular chip.
755 case "$machine" in
756 a29k | am29000) base_machine=a29k machine=a29k ;;
757 alpha*) base_machine=alpha machine=alpha/$machine ;;
758 hppa*) base_machine=hppa machine=hppa/$machine ;;
759 i[3456]86) base_machine=i386 machine=i386/$machine ;;
760 m680?0) base_machine=m68k machine=m68k/$machine ;;
761 m68k) base_machine=m68k machine=m68k/m68020 ;;
762 m88???) base_machine=m88k machine=m88k/$machine ;;
763 m88k) base_machine=m88k machine=m88k/m88100 ;;
764 mips*) base_machine=mips machine=mips/$machine ;;
765 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
766 sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
767 supersparc) base_machine=sparc machine=sparc/sparc8 ;;
768 esac
771 # Compute the list of sysdep directories for this configuration.
772 # This can take a while to compute.
773 sysdep_dir=$srcdir/sysdeps
774 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
775 echo "configure:776: checking sysdep dirs" >&5
776 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
777 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
779 case "$os" in
780 gnu*)
781 base_os=mach/hurd ;;
782 netbsd* | 386bsd* | freebsd* | bsdi*)
783 base_os=unix/bsd/bsd4.4 ;;
784 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
785 base_os=unix/bsd ;;
786 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
787 base_os=unix/sysv ;;
788 solaris[2-9]*)
789 base_os=unix/sysv/sysv4 ;;
790 none)
791 base_os=standalone ;;
793 base_os='' ;;
794 esac
796 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
797 tail=$os
798 ostry=$os
799 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
800 ostry="$ostry /$o"
801 tail=$o
802 done
803 o=`echo $tail | sed 's/[0-9]*$//'`
804 if test $o != $tail; then
805 ostry="$ostry /$o"
807 # For linux-gnu, try linux-gnu, then linux.
808 o=`echo $tail | sed 's/-.*$//'`
809 if test $o != $tail; then
810 ostry="$ostry /$o"
813 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
814 base=
815 tail=$base_os
816 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
817 set $b
818 base="$base /$1"
819 tail="$2"
820 done
822 # For sparc/sparc9, try sparc/sparc9 and then sparc.
823 mach=
824 tail=$machine
825 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
826 set $m
827 # Prepend the machine's FPU directory unless --without-fp.
828 if test "$with_fp" = yes; then
829 mach="$mach /$1/fpu"
831 mach="$mach /$1"
832 tail="$2"
833 done
836 # Find what sysdep directories exist.
837 sysnames=
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
839 for d in $add_ons_pfx ''; do
840 for b in $base ''; do
841 for m0 in $mach ''; do
842 for v in /$vendor ''; do
843 for o in /$ostry ''; do
844 for m in $mach ''; do
845 if test "$m0$b$v$o$m"; then
846 try="${d}sysdeps$m0$b$v$o$m"
847 test -n "$enable_debug_configure" &&
848 echo "$0 DEBUG: try $try" >&2
849 case $try in
850 /*) dest=$try ;;
851 *) dest=$srcdir/$try ;;
852 esac
853 if test -d $dest; then
854 sysnames="$sysnames $try"
855 { test -n "$o" || test -n "$b"; } && os_used=t
856 { test -n "$m" || test -n "$m0"; } && machine_used=t
859 done
860 done
861 done
862 done
863 done
864 done
865 IFS="$ac_save_ifs"
867 if test -z "$os_used" && test "$os" != none; then
868 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
870 if test -z "$machine_used" && test "$machine" != none; then
871 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
874 # We have now validated the configuration.
877 # If using ELF, look for an `elf' subdirectory of each machine directory.
878 # We prepend these rather than inserting them whereever the machine appears
879 # because things specified by the machine's ELF ABI should override
880 # OS-specific things, and should always be the same for any OS on the
881 # machine (otherwise what's the point of an ABI?).
882 if test "$elf" = yes; then
883 elf_dirs=
884 for d in $add_ons_pfx ''; do
885 case $d in
886 /*) xsrcdir= ;;
887 *) xsrcdir=$srcdir/ ;;
888 esac
889 for m in $mach; do
890 if test -d $xsrcdir${d}sysdeps$m/elf; then
891 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
893 done
894 done
895 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
899 # Expand the list of system names into a full list of directories
900 # from each element's parent name and Implies file (if present).
901 set $sysnames
902 names=
903 while test $# -gt 0; do
904 name=$1
905 shift
907 case " $names " in *" $name "*)
908 # Already in the list.
909 continue
910 esac
912 # Report each name as we discover it, so there is no long pause in output.
913 echo $ac_n "$name $ac_c" >&6
915 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
917 case $name in
918 /*) xsrcdir= ;;
919 *) xsrcdir=$srcdir/ ;;
920 esac
921 test -n "$enable_debug_configure" &&
922 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
924 if test -f $xsrcdir$name/Implies; then
925 # Collect more names from the `Implies' file (removing comments).
926 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
927 implied=
928 for x in $implied_candidate; do
929 if test -d $xsrcdir$name_base/$x; then
930 implied="$implied $name_base/$x";
931 else
932 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
934 done
935 else
936 implied=
939 # Add NAME to the list of names.
940 names="$names $name"
942 # Find the parent of NAME, using the empty string if it has none.
943 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
945 # Add the names implied by NAME, and NAME's parent (if it has one), to
946 # the list of names to be processed (the argument list). We prepend the
947 # implied names to the list and append the parent. We want implied
948 # directories to come before further directories inferred from the
949 # configuration components; this ensures that for sysv4, unix/common
950 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
951 # after sysv4).
952 sysnames="`echo $implied $* $parent`"
953 test -n "$sysnames" && set $sysnames
954 done
956 # Add the default directories.
957 sysnames="$names sysdeps/generic sysdeps/stub"
959 # The other names were emitted during the scan.
960 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
963 ### Locate tools.
965 # Find a good install program. We prefer a C program (faster),
966 # so one script is as good as another. But avoid the broken or
967 # incompatible versions:
968 # SysV /etc/install, /usr/sbin/install
969 # SunOS /usr/etc/install
970 # IRIX /sbin/install
971 # AIX /bin/install
972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
974 # ./install, which can be erroneously created by make from ./install.sh.
975 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
976 echo "configure:977: checking for a BSD compatible install" >&5
977 if test -z "$INSTALL"; then
978 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
982 for ac_dir in $PATH; do
983 # Account for people who put trailing slashes in PATH elements.
984 case "$ac_dir/" in
985 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
987 # OSF1 and SCO ODT 3.0 have their own names for install.
988 for ac_prog in ginstall installbsd scoinst install; do
989 if test -f $ac_dir/$ac_prog; then
990 if test $ac_prog = install &&
991 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
992 # AIX install. It has an incompatible calling convention.
993 # OSF/1 installbsd also uses dspmsg, but is usable.
995 else
996 ac_cv_path_install="$ac_dir/$ac_prog -c"
997 break 2
1000 done
1002 esac
1003 done
1004 IFS="$ac_save_ifs"
1007 if test "${ac_cv_path_install+set}" = set; then
1008 INSTALL="$ac_cv_path_install"
1009 else
1010 # As a last resort, use the slow shell script. We don't cache a
1011 # path for INSTALL within a source directory, because that will
1012 # break other packages using the cache if that directory is
1013 # removed, or if the path is relative.
1014 INSTALL="$ac_install_sh"
1017 echo "$ac_t""$INSTALL" 1>&6
1019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1020 # It thinks the first close brace ends the variable substitution.
1021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1025 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1026 # The makefiles need to use a different form to find it in $srcdir.
1027 INSTALL="$top_absdir/install-sh -c"
1029 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether ln -s works" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 rm -f conftestdata
1035 if ln -s X conftestdata 2>/dev/null
1036 then
1037 rm -f conftestdata
1038 ac_cv_prog_LN_S="ln -s"
1039 else
1040 ac_cv_prog_LN_S=ln
1043 LN_S="$ac_cv_prog_LN_S"
1044 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1045 echo "$ac_t""yes" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 for ac_prog in msgfmt gmsgfmt
1052 # Extract the first word of "$ac_prog", so it can be a program name with args.
1053 set dummy $ac_prog; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 if test -n "$MSGFMT"; then
1060 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1061 else
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1063 for ac_dir in $PATH; do
1064 test -z "$ac_dir" && ac_dir=.
1065 if test -f $ac_dir/$ac_word; then
1066 ac_cv_prog_MSGFMT="$ac_prog"
1067 break
1069 done
1070 IFS="$ac_save_ifs"
1073 MSGFMT="$ac_cv_prog_MSGFMT"
1074 if test -n "$MSGFMT"; then
1075 echo "$ac_t""$MSGFMT" 1>&6
1076 else
1077 echo "$ac_t""no" 1>&6
1080 test -n "$MSGFMT" && break
1081 done
1082 test -n "$MSGFMT" || MSGFMT=":"
1085 echo $ac_n "checking build system type""... $ac_c" 1>&6
1086 echo "configure:1087: checking build system type" >&5
1088 build_alias=$build
1089 case "$build_alias" in
1090 NONE)
1091 case $nonopt in
1092 NONE) build_alias=$host_alias ;;
1093 *) build_alias=$nonopt ;;
1094 esac ;;
1095 esac
1097 build=`$ac_config_sub $build_alias`
1098 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 echo "$ac_t""$build" 1>&6
1103 if test $host != $build; then
1104 ac_tool_prefix=${host_alias}-
1105 else
1106 ac_tool_prefix=
1109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1110 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1120 for ac_dir in $PATH; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1124 break
1126 done
1127 IFS="$ac_save_ifs"
1128 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1131 CC="$ac_cv_prog_CC"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1140 if test $host != $build; then
1141 # Extract the first word of "gcc cc", so it can be a program name with args.
1142 set dummy gcc cc; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 if test -n "$BUILD_CC"; then
1149 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1150 else
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1152 for ac_dir in $PATH; do
1153 test -z "$ac_dir" && ac_dir=.
1154 if test -f $ac_dir/$ac_word; then
1155 ac_cv_prog_BUILD_CC=""
1156 break
1158 done
1159 IFS="$ac_save_ifs"
1162 BUILD_CC="$ac_cv_prog_BUILD_CC"
1163 if test -n "$BUILD_CC"; then
1164 echo "$ac_t""$BUILD_CC" 1>&6
1165 else
1166 echo "$ac_t""no" 1>&6
1170 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1171 echo "configure:1172: checking how to run the C preprocessor" >&5
1172 # On Suns, sometimes $CPP names a directory.
1173 if test -n "$CPP" && test -d "$CPP"; then
1174 CPP=
1176 if test -z "$CPP"; then
1177 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 # This must be in double quotes, not single quotes, because CPP may get
1181 # substituted into the Makefile and "${CC-cc}" will confuse make.
1182 CPP="${CC-cc} -E"
1183 # On the NeXT, cc -E runs the code through the compiler's parser,
1184 # not just through cpp.
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 #include <assert.h>
1189 Syntax Error
1191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192 { (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193 ac_err=`grep -v '^ *+' conftest.out`
1194 if test -z "$ac_err"; then
1196 else
1197 echo "$ac_err" >&5
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 rm -rf conftest*
1201 CPP="${CC-cc} -E -traditional-cpp"
1202 cat > conftest.$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1205 #include <assert.h>
1206 Syntax Error
1208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1209 { (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1210 ac_err=`grep -v '^ *+' conftest.out`
1211 if test -z "$ac_err"; then
1213 else
1214 echo "$ac_err" >&5
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1217 rm -rf conftest*
1218 CPP=/lib/cpp
1220 rm -f conftest*
1222 rm -f conftest*
1223 ac_cv_prog_CPP="$CPP"
1225 CPP="$ac_cv_prog_CPP"
1226 else
1227 ac_cv_prog_CPP="$CPP"
1229 echo "$ac_t""$CPP" 1>&6
1231 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}ar; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$AR"; then
1239 ac_cv_prog_AR="$AR" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1242 for ac_dir in $PATH; do
1243 test -z "$ac_dir" && ac_dir=.
1244 if test -f $ac_dir/$ac_word; then
1245 ac_cv_prog_AR="${ac_tool_prefix}ar"
1246 break
1248 done
1249 IFS="$ac_save_ifs"
1250 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1253 AR="$ac_cv_prog_AR"
1254 if test -n "$AR"; then
1255 echo "$ac_t""$AR" 1>&6
1256 else
1257 echo "$ac_t""no" 1>&6
1262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1271 else
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1273 for ac_dir in $PATH; do
1274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1277 break
1279 done
1280 IFS="$ac_save_ifs"
1283 RANLIB="$ac_cv_prog_RANLIB"
1284 if test -n "$RANLIB"; then
1285 echo "$ac_t""$RANLIB" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1291 if test -z "$ac_cv_prog_RANLIB"; then
1292 if test -n "$ac_tool_prefix"; then
1293 # Extract the first word of "ranlib", so it can be a program name with args.
1294 set dummy ranlib; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$RANLIB"; then
1301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1304 for ac_dir in $PATH; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_RANLIB="ranlib"
1308 break
1310 done
1311 IFS="$ac_save_ifs"
1312 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1315 RANLIB="$ac_cv_prog_RANLIB"
1316 if test -n "$RANLIB"; then
1317 echo "$ac_t""$RANLIB" 1>&6
1318 else
1319 echo "$ac_t""no" 1>&6
1322 else
1323 RANLIB=":"
1328 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1329 echo "configure:1330: checking for signed size_t type" >&5
1330 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 echo '#include <stddef.h>
1334 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1335 if eval "$ac_cpp conftest.c 2>/dev/null" \
1336 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1337 libc_cv_signed_size_t=no
1338 else
1339 libc_cv_signed_size_t=yes
1341 rm -f conftest*
1344 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1345 if test $libc_cv_signed_size_t = yes; then
1346 cat >> confdefs.h <<\EOF
1347 #undef __SIZE_TYPE__
1348 #define __SIZE_TYPE__ unsigned
1352 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1353 echo "configure:1354: checking for libc-friendly stddef.h" >&5
1354 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 #define __need_size_t
1361 #define __need_wchar_t
1362 #include <stddef.h>
1363 #define __need_NULL
1364 #include <stddef.h>
1365 int main() {
1366 size_t size; wchar_t wchar;
1367 #ifdef offsetof
1368 #error stddef.h ignored __need_*
1369 #endif
1370 if (&size == NULL || &wchar == NULL) abort ();
1371 ; return 0; }
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 rm -rf conftest*
1375 libc_cv_friendly_stddef=yes
1376 else
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -rf conftest*
1380 libc_cv_friendly_stddef=no
1382 rm -f conftest*
1386 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1387 if test $libc_cv_friendly_stddef = yes; then
1388 config_vars="$config_vars
1389 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1392 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1393 echo "configure:1394: checking whether we need to use -P to assemble .S files" >&5
1394 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397 cat > conftest.S <<EOF
1398 #include "confdefs.h"
1399 /* Nothing whatsoever. */
1401 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1402 libc_cv_need_minus_P=no
1403 else
1404 libc_cv_need_minus_P=yes
1406 rm -f conftest*
1409 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1410 if test $libc_cv_need_minus_P = yes; then
1411 config_vars="$config_vars
1412 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1415 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1416 echo "configure:1417: checking for assembler global-symbol directive" >&5
1417 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420 libc_cv_asm_global_directive=UNKNOWN
1421 for ac_globl in .globl .global; do
1422 cat > conftest.s <<EOF
1423 .text
1424 ${ac_globl} foo
1425 foo: .long 0
1427 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1428 libc_cv_asm_global_directive=${ac_globl}
1430 rm -f conftest*
1431 test $libc_cv_asm_global_directive != UNKNOWN && break
1432 done
1435 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1436 if test $libc_cv_asm_global_directive = UNKNOWN; then
1437 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1438 else
1439 cat >> confdefs.h <<EOF
1440 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1445 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1446 echo "configure:1447: checking for .set assembler directive" >&5
1447 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450 cat > conftest.s <<EOF
1451 .text
1452 foo: .long 0
1453 .set glibc_conftest_frobozz,foo
1454 $libc_cv_asm_global_directive glibc_conftest_frobozz
1456 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1457 # (but it doesn't work), so we must do a linking check to be sure.
1458 cat > conftest1.c <<\EOF
1459 extern int glibc_conftest_frobozz;
1460 main () { printf ("%d\n", glibc_conftest_frobozz); }
1462 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1463 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1464 libc_cv_asm_set_directive=yes
1465 else
1466 libc_cv_asm_set_directive=no
1468 rm -f conftest*
1471 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1472 if test $libc_cv_asm_set_directive = yes; then
1473 cat >> confdefs.h <<\EOF
1474 #define HAVE_ASM_SET_DIRECTIVE 1
1479 if test $elf != yes; then
1480 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1481 echo "configure:1482: checking for .init and .fini sections" >&5
1482 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1489 int main() {
1490 asm (".section .init");
1491 asm (".section .fini");
1492 asm (".text");
1493 ; return 0; }
1495 if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1496 rm -rf conftest*
1497 libc_cv_have_initfini=yes
1498 else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 libc_cv_have_initfini=no
1504 rm -f conftest*
1508 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1509 if test $libc_cv_have_initfini = yes; then
1510 cat >> confdefs.h <<\EOF
1511 #define HAVE_INITFINI 1
1517 if test $elf = yes; then
1518 libc_cv_asm_underscores=no
1519 else
1520 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1521 echo "configure:1522: checking for _ prefix on C symbol names" >&5
1522 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 asm ("_glibc_foobar:");
1529 int main() {
1530 glibc_foobar ();
1531 ; return 0; }
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1534 rm -rf conftest*
1535 libc_cv_asm_underscores=yes
1536 else
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 rm -rf conftest*
1540 libc_cv_asm_underscores=no
1542 rm -f conftest*
1546 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1548 if test $libc_cv_asm_underscores = no; then
1549 cat >> confdefs.h <<\EOF
1550 #define NO_UNDERSCORES 1
1555 if test $elf = yes; then
1556 libc_cv_weak_symbols=yes
1557 libc_cv_asm_weak_directive=yes
1558 libc_cv_asm_weakext_directive=no
1559 else
1560 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1561 echo "configure:1562: checking for assembler .weak directive" >&5
1562 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 cat > conftest.s <<EOF
1566 .text
1567 ${libc_cv_asm_global_directive} foo
1568 foo: .long 0
1569 .weak foo
1570 .weak bar; bar = foo
1572 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1573 libc_cv_asm_weak_directive=yes
1574 else
1575 libc_cv_asm_weak_directive=no
1577 rm -f conftest*
1580 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1582 if test $libc_cv_asm_weak_directive = no; then
1583 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1584 echo "configure:1585: checking for assembler .weakext directive" >&5
1585 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 cat > conftest.s <<EOF
1589 .text
1590 ${libc_cv_asm_global_directive} foo
1591 foo: .long 0
1592 .weakext foo
1593 .weakext foo, bar
1595 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1596 libc_cv_asm_weakext_directive=yes
1597 else
1598 libc_cv_asm_weakext_directive=no
1600 rm -f conftest*
1603 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1605 fi # no .weak
1606 fi # not ELF
1608 if test $libc_cv_asm_weak_directive = yes; then
1609 cat >> confdefs.h <<\EOF
1610 #define HAVE_ASM_WEAK_DIRECTIVE 1
1613 elif test $libc_cv_asm_weakext_directive = yes; then
1614 cat >> confdefs.h <<\EOF
1615 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1620 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1621 echo "configure:1622: checking for ld --no-whole-archive" >&5
1622 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1624 else
1625 cat > conftest.c <<\EOF
1626 _start () {}
1627 int __eh_pc;
1628 __throw () {}
1630 if { ac_try='${CC-cc} $CFLAGS
1631 -nostdlib -nostartfiles -Wl,--no-whole-archive
1632 -o conftest conftest.c'; { (eval echo configure:1633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1633 libc_cv_ld_no_whole_archive=yes
1634 else
1635 libc_cv_ld_no_whole_archive=no
1637 rm -f conftest*
1640 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1642 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1643 echo "configure:1644: checking for gcc -fno-exceptions" >&5
1644 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1646 else
1647 cat > conftest.c <<\EOF
1648 _start () {}
1649 int __eh_pc;
1650 __throw () {}
1652 if { ac_try='${CC-cc} $CFLAGS
1653 -nostdlib -nostartfiles -fno-exceptions
1654 -o conftest conftest.c'; { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1655 libc_cv_gcc_no_exceptions=yes
1656 else
1657 libc_cv_gcc_no_exceptions=no
1659 rm -f conftest*
1662 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1664 ### End of automated tests.
1665 ### Now run sysdeps configure fragments.
1667 # sysdeps configure fragments may set these with files to be linked below.
1668 libc_link_dests=
1669 libc_link_sources=
1671 # Iterate over all the sysdep directories we will use, running their
1672 # configure fragments, and looking for a uname implementation.
1673 uname=
1674 for dir in $sysnames; do
1675 case $dir in
1676 /*) dest=$dir ;;
1677 *) dest=$srcdir/$dir ;;
1678 esac
1679 if test -r $dest/configure; then
1680 echo "$ac_t""running configure fragment for $dest" 1>&6
1681 . $dest/configure
1684 if test -z "$uname"; then
1685 if test -r $sysdep_dir/$dir/uname.c ||
1686 test -r $sysdep_dir/$dir/uname.S ||
1687 { test -r $sysdep_dir/$dir/syscalls.list &&
1688 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1689 uname=$dir
1692 done
1696 # If we will use the generic uname implementation, we must figure out what
1697 # it will say by examining the system, and write the results in config-name.h.
1698 if test "$uname" = generic; then
1700 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1701 if test $uname_sysname != $config_os; then
1702 config_release=`echo $config_os | sed s/$uname_sysname//`
1705 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1706 echo "configure:1707: checking OS release for uname" >&5
1707 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1711 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1712 != x$config_release; then
1713 # The configuration release is a substring of the kernel release.
1714 libc_cv_uname_release=$kernel_release
1715 elif test x$config_release != x; then
1716 libc_cv_uname_release=$config_release
1717 elif test x$kernel_release != x; then
1718 libc_cv_uname_release=$kernel_release
1719 else
1720 libc_cv_uname_release=unknown
1724 echo "$ac_t""$libc_cv_uname_release" 1>&6
1725 uname_release="$libc_cv_uname_release"
1727 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1728 echo "configure:1729: checking OS version for uname" >&5
1729 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1731 else
1732 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1733 if test -n "$kernel_version"; then
1734 libc_cv_uname_version="$kernel_version"
1735 else
1736 libc_cv_uname_version=unknown
1740 echo "$ac_t""$libc_cv_uname_version" 1>&6
1741 uname_version="$libc_cv_uname_version"
1743 config_uname=config-name.h:config-name.in
1744 else
1745 # For non-generic uname, we don't need to create config-name.h at all.
1746 config_uname=
1749 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1750 echo "configure:1751: checking stdio selection" >&5
1752 case $stdio in
1753 libio) cat >> confdefs.h <<\EOF
1754 #define USE_IN_LIBIO 1
1757 default) stdio=stdio ;;
1758 esac
1759 echo "$ac_t""$stdio" 1>&6
1762 if test $gnu_ld = yes; then
1763 cat >> confdefs.h <<\EOF
1764 #define HAVE_GNU_LD 1
1768 if test $gnu_as = yes; then
1769 cat >> confdefs.h <<\EOF
1770 #define HAVE_GNU_AS 1
1774 if test $elf = yes; then
1775 cat >> confdefs.h <<\EOF
1776 #define HAVE_ELF 1
1782 if test $shared = default; then
1783 if test $gnu_ld = yes; then
1784 shared=$elf
1792 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1793 config_makefile=
1794 else
1795 config_makefile=Makefile
1798 trap '' 1 2 15
1799 cat > confcache <<\EOF
1800 # This file is a shell script that caches the results of configure
1801 # tests run on this system so they can be shared between configure
1802 # scripts and configure runs. It is not useful on other systems.
1803 # If it contains results you don't want to keep, you may remove or edit it.
1805 # By default, configure uses ./config.cache as the cache file,
1806 # creating it if it does not exist already. You can give configure
1807 # the --cache-file=FILE option to use a different cache file; that is
1808 # what configure does when it calls configure scripts in
1809 # subdirectories, so they share the cache.
1810 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1811 # config.status only pays attention to the cache file if you give it the
1812 # --recheck option to rerun configure.
1815 # Ultrix sh set writes to stderr and can't be redirected directly,
1816 # and sets the high bit in the cache file unless we assign to the vars.
1817 # HP-UX 10.01 sh prints single quotes around any value that contains spaces.
1818 (set) 2>&1 |
1819 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)='*\([^']*\)'*/\1=\${\1='\2'}/p"\
1820 >> confcache
1821 if cmp -s $cache_file confcache; then
1823 else
1824 if test -w $cache_file; then
1825 echo "updating cache $cache_file"
1826 cat confcache > $cache_file
1827 else
1828 echo "not updating unwritable cache $cache_file"
1831 rm -f confcache
1833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1836 # Let make expand exec_prefix.
1837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1839 # Any assignment to VPATH causes Sun make to only execute
1840 # the first set of double-colon rules, so remove it if not needed.
1841 # If there is a colon in the path, we need to keep it.
1842 if test "x$srcdir" = x.; then
1843 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1846 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1848 DEFS=-DHAVE_CONFIG_H
1850 # Without the "./", some shells look in PATH for config.status.
1851 : ${CONFIG_STATUS=./config.status}
1853 echo creating $CONFIG_STATUS
1854 rm -f $CONFIG_STATUS
1855 cat > $CONFIG_STATUS <<EOF
1856 #! /bin/sh
1857 # Generated automatically by configure.
1858 # Run this file to recreate the current configuration.
1859 # This directory was configured as follows,
1860 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1862 # $0 $ac_configure_args
1864 # Compiler output produced by configure, useful for debugging
1865 # configure, is in ./config.log if it exists.
1867 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1868 for ac_option
1870 case "\$ac_option" in
1871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1872 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1873 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1874 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1875 echo "$CONFIG_STATUS generated by autoconf version 2.10.3"
1876 exit 0 ;;
1877 -help | --help | --hel | --he | --h)
1878 echo "\$ac_cs_usage"; exit 0 ;;
1879 *) echo "\$ac_cs_usage"; exit 1 ;;
1880 esac
1881 done
1883 ac_given_srcdir=$srcdir
1884 ac_given_INSTALL="$INSTALL"
1886 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1888 cat >> $CONFIG_STATUS <<EOF
1890 # Protect against being on the right side of a sed subst in config.status.
1891 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1892 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1893 $ac_vpsub
1894 $extrasub
1895 s%@CFLAGS@%$CFLAGS%g
1896 s%@CPPFLAGS@%$CPPFLAGS%g
1897 s%@CXXFLAGS@%$CXXFLAGS%g
1898 s%@DEFS@%$DEFS%g
1899 s%@LDFLAGS@%$LDFLAGS%g
1900 s%@LIBS@%$LIBS%g
1901 s%@exec_prefix@%$exec_prefix%g
1902 s%@prefix@%$prefix%g
1903 s%@program_transform_name@%$program_transform_name%g
1904 s%@bindir@%$bindir%g
1905 s%@sbindir@%$sbindir%g
1906 s%@libexecdir@%$libexecdir%g
1907 s%@datadir@%$datadir%g
1908 s%@sysconfdir@%$sysconfdir%g
1909 s%@sharedstatedir@%$sharedstatedir%g
1910 s%@localstatedir@%$localstatedir%g
1911 s%@libdir@%$libdir%g
1912 s%@includedir@%$includedir%g
1913 s%@oldincludedir@%$oldincludedir%g
1914 s%@infodir@%$infodir%g
1915 s%@mandir@%$mandir%g
1916 s%@top_absdir@%$top_absdir%g
1917 s%@subdirs@%$subdirs%g
1918 s%@host@%$host%g
1919 s%@host_alias@%$host_alias%g
1920 s%@host_cpu@%$host_cpu%g
1921 s%@host_vendor@%$host_vendor%g
1922 s%@host_os@%$host_os%g
1923 s%@base_machine@%$base_machine%g
1924 s%@sysnames@%$sysnames%g
1925 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1926 s%@INSTALL_DATA@%$INSTALL_DATA%g
1927 s%@LN_S@%$LN_S%g
1928 s%@MSGFMT@%$MSGFMT%g
1929 s%@build@%$build%g
1930 s%@build_alias@%$build_alias%g
1931 s%@build_cpu@%$build_cpu%g
1932 s%@build_vendor@%$build_vendor%g
1933 s%@build_os@%$build_os%g
1934 s%@CC@%$CC%g
1935 s%@BUILD_CC@%$BUILD_CC%g
1936 s%@CPP@%$CPP%g
1937 s%@AR@%$AR%g
1938 s%@RANLIB@%$RANLIB%g
1939 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1940 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
1941 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
1942 s%@uname_sysname@%$uname_sysname%g
1943 s%@uname_release@%$uname_release%g
1944 s%@uname_version@%$uname_version%g
1945 s%@stdio@%$stdio%g
1946 s%@gnu_ld@%$gnu_ld%g
1947 s%@gnu_as@%$gnu_as%g
1948 s%@elf@%$elf%g
1949 s%@shared@%$shared%g
1950 s%@profile@%$profile%g
1951 s%@omitfp@%$omitfp%g
1952 s%@DEFINES@%$DEFINES%g
1954 CEOF
1957 cat >> $CONFIG_STATUS <<\EOF
1959 # Split the substitutions into bite-sized pieces for seds with
1960 # small command number limits, like on Digital OSF/1 and HP-UX.
1961 ac_file=1 # Number of current file.
1962 ac_inc=90 # Lines per file.
1963 ac_beg=1 # First line for current file.
1964 ac_end=$ac_inc # Line after last line for current file.
1965 ac_more_lines=:
1966 ac_sed_cmds=""
1967 while $ac_more_lines; do
1968 if test $ac_beg -gt 1; then
1969 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1970 else
1971 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1973 if test ! -s conftest.s$ac_file; then
1974 ac_more_lines=false
1975 rm -f conftest.s$ac_file
1976 else
1977 if test -z "$ac_sed_cmds"; then
1978 ac_sed_cmds="sed -f conftest.s$ac_file"
1979 else
1980 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1982 ac_file=`expr $ac_file + 1`
1983 ac_beg=$ac_end
1984 ac_end=`expr $ac_end + $ac_inc`
1986 done
1987 if test -z "$ac_sed_cmds"; then
1988 ac_sed_cmds=cat
1992 cat >> $CONFIG_STATUS <<EOF
1994 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1996 cat >> $CONFIG_STATUS <<\EOF
1997 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1998 # Support "outfile[:infile]", defaulting infile="outfile.in".
1999 case "$ac_file" in
2000 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2001 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2002 *) ac_file_in="${ac_file}.in" ;;
2003 esac
2005 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2007 # Remove last slash and all that follows it. Not all systems have dirname.
2008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2010 # The file is in a subdirectory.
2011 test ! -d "$ac_dir" && mkdir "$ac_dir"
2012 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2013 # A "../" for each directory in $ac_dir_suffix.
2014 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2015 else
2016 ac_dir_suffix= ac_dots=
2019 case "$ac_given_srcdir" in
2020 .) srcdir=.
2021 if test -z "$ac_dots"; then top_srcdir=.
2022 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2023 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2024 *) # Relative path.
2025 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2026 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2027 esac
2029 case "$ac_given_INSTALL" in
2030 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2031 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2032 esac
2034 echo creating "$ac_file"
2035 rm -f "$ac_file"
2036 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2037 case "$ac_file" in
2038 *Makefile*) ac_comsub="1i\\
2039 # $configure_input" ;;
2040 *) ac_comsub= ;;
2041 esac
2042 sed -e "$ac_comsub
2043 s%@configure_input@%$configure_input%g
2044 s%@srcdir@%$srcdir%g
2045 s%@top_srcdir@%$top_srcdir%g
2046 s%@INSTALL@%$INSTALL%g
2047 " $ac_given_srcdir/$ac_file_in | eval "$ac_sed_cmds" > $ac_file
2048 fi; done
2049 rm -f conftest.s*
2051 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2052 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2054 # ac_d sets the value in "#define NAME VALUE" lines.
2055 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2056 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2057 ac_dC='\3'
2058 ac_dD='%g'
2059 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2060 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2061 ac_uB='\([ ]\)%\1#\2define\3'
2062 ac_uC=' '
2063 ac_uD='\4%g'
2064 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2065 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2066 ac_eB='$%\1#\2define\3'
2067 ac_eC=' '
2068 ac_eD='%g'
2070 if test -z "$CONFIG_HEADERS"; then
2072 cat >> $CONFIG_STATUS <<EOF
2073 CONFIG_HEADERS="config.h"
2075 cat >> $CONFIG_STATUS <<\EOF
2077 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2078 # Support "outfile[:infile]", defaulting infile="outfile.in".
2079 case "$ac_file" in
2080 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2081 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2082 *) ac_file_in="${ac_file}.in" ;;
2083 esac
2085 echo creating $ac_file
2087 rm -f conftest.frag conftest.in conftest.out
2088 cp $ac_given_srcdir/$ac_file_in conftest.in
2092 # Transform confdefs.h into a sed script conftest.vals that substitutes
2093 # the proper values into config.h.in to produce config.h. And first:
2094 # Protect against being on the right side of a sed subst in config.status.
2095 # Protect against being in an unquoted here document in config.status.
2096 rm -f conftest.vals
2097 cat > conftest.hdr <<\EOF
2098 s/[\\&%]/\\&/g
2099 s%[\\$`]%\\&%g
2100 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2101 s%ac_d%ac_u%gp
2102 s%ac_u%ac_e%gp
2104 sed -n -f conftest.hdr confdefs.h > conftest.vals
2105 rm -f conftest.hdr
2107 # This sed command replaces #undef with comments. This is necessary, for
2108 # example, in the case of _POSIX_SOURCE, which is predefined and required
2109 # on some systems where configure will not decide to define it.
2110 cat >> conftest.vals <<\EOF
2111 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2114 # Break up conftest.vals because some shells have a limit on
2115 # the size of here documents, and old seds have small limits too.
2116 # Maximum number of lines to put in a single here document.
2117 ac_max_here_lines=12
2119 rm -f conftest.tail
2120 while :
2122 ac_lines=`grep -c . conftest.vals`
2123 # grep -c gives empty output for an empty file on some AIX systems.
2124 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2125 # Write a limited-size here document to conftest.frag.
2126 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2127 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2128 echo 'CEOF
2129 sed -f conftest.frag conftest.in > conftest.out
2130 rm -f conftest.in
2131 mv conftest.out conftest.in
2132 ' >> $CONFIG_STATUS
2133 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2134 rm -f conftest.vals
2135 mv conftest.tail conftest.vals
2136 done
2137 rm -f conftest.vals
2139 cat >> $CONFIG_STATUS <<\EOF
2140 rm -f conftest.frag conftest.h
2141 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2142 cat conftest.in >> conftest.h
2143 rm -f conftest.in
2144 if cmp -s $ac_file conftest.h 2>/dev/null; then
2145 echo "$ac_file is unchanged"
2146 rm -f conftest.h
2147 else
2148 # Remove last slash and all that follows it. Not all systems have dirname.
2149 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2150 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2151 # The file is in a subdirectory.
2152 test ! -d "$ac_dir" && mkdir "$ac_dir"
2154 rm -f $ac_file
2155 mv conftest.h $ac_file
2157 fi; done
2161 cat >> $CONFIG_STATUS <<EOF
2162 ac_sources="`echo $libc_link_sources`"
2163 ac_dests="`echo $libc_link_dests`"
2166 cat >> $CONFIG_STATUS <<\EOF
2167 srcdir=$ac_given_srcdir
2168 while test -n "$ac_sources"; do
2169 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2170 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2172 echo "linking $srcdir/$ac_source to $ac_dest"
2174 if test ! -r $srcdir/$ac_source; then
2175 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2177 rm -f $ac_dest
2179 # Make relative symlinks.
2180 # Remove last slash and all that follows it. Not all systems have dirname.
2181 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2182 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2183 # The dest file is in a subdirectory.
2184 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2185 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2186 # A "../" for each directory in $ac_dest_dir_suffix.
2187 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2188 else
2189 ac_dest_dir_suffix= ac_dots=
2192 case "$srcdir" in
2193 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2194 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2195 esac
2197 # Make a symlink if possible; otherwise try a hard link.
2198 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2199 ln $srcdir/$ac_source $ac_dest; then :
2200 else
2201 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2203 done
2205 cat >> $CONFIG_STATUS <<EOF
2206 echo '$config_vars' >> config.make
2208 cat >> $CONFIG_STATUS <<\EOF
2210 exit 0
2212 chmod +x $CONFIG_STATUS
2213 rm -fr confdefs* $ac_clean_files
2214 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2216 if test "$no_recursion" != yes; then
2218 # Remove --cache-file and --srcdir arguments so they do not pile up.
2219 ac_sub_configure_args=
2220 ac_prev=
2221 for ac_arg in $ac_configure_args; do
2222 if test -n "$ac_prev"; then
2223 ac_prev=
2224 continue
2226 case "$ac_arg" in
2227 -cache-file | --cache-file | --cache-fil | --cache-fi \
2228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2229 ac_prev=cache_file ;;
2230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2234 ac_prev=srcdir ;;
2235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2237 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2238 esac
2239 done
2241 for ac_config_dir in $add_ons; do
2243 # Do not complain, so a configure script can configure whichever
2244 # parts of a large source tree are present.
2245 if test ! -d $srcdir/$ac_config_dir; then
2246 continue
2249 echo configuring in $ac_config_dir
2251 case "$srcdir" in
2252 .) ;;
2254 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2255 else
2256 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2259 esac
2261 ac_popdir=`pwd`
2262 cd $ac_config_dir
2264 # A "../" for each directory in /$ac_config_dir.
2265 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2267 case "$srcdir" in
2268 .) # No --srcdir option. We are building in place.
2269 ac_sub_srcdir=$srcdir ;;
2270 /*) # Absolute path.
2271 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2272 *) # Relative path.
2273 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2274 esac
2276 # Check for guested configure; otherwise get Cygnus style configure.
2277 if test -f $ac_sub_srcdir/configure; then
2278 ac_sub_configure=$ac_sub_srcdir/configure
2279 elif test -f $ac_sub_srcdir/configure.in; then
2280 ac_sub_configure=$ac_configure
2281 else
2282 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2283 ac_sub_configure=
2286 # The recursion is here.
2287 if test -n "$ac_sub_configure"; then
2289 # Make the cache file name correct relative to the subdirectory.
2290 case "$cache_file" in
2291 /*) ac_sub_cache_file=$cache_file ;;
2292 *) # Relative path.
2293 ac_sub_cache_file="$ac_dots$cache_file" ;;
2294 esac
2295 case "$ac_given_INSTALL" in
2296 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2297 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2298 esac
2300 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2301 # The eval makes quoting arguments work.
2302 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2303 then :
2304 else
2305 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2309 cd $ac_popdir
2310 done