Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / configure
blob0476b0049954194120e43ecaa711657e4fb70f60
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.4.2
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-fp if using floating-point hardware"
19 ac_help="$ac_help
20 --with-gnu-binutils if using GNU binutils (as and ld)"
21 ac_help="$ac_help
22 --with-gnu-ld if using GNU ld (in the binutils package)"
23 ac_help="$ac_help
24 --with-gnu-as if using GNU as (in the binutils package)"
25 ac_help="$ac_help
26 --with-elf if using the ELF object format"
27 ac_help="$ac_help
28 --with-weak-symbols if weak symbols are available in as and ld"
29 ac_help="$ac_help
30 --enable-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]"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 srcdir=
55 target=NONE
56 verbose=
57 x_includes=NONE
58 x_libraries=NONE
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
72 # Initialize some other variables.
73 subdirs=
75 ac_prev=
76 for ac_option
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
91 # Accept the important Cygnus configure options, so we can diagnose typos.
93 case "$ac_option" in
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
101 ac_prev=build ;;
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
187 cat << EOF
188 Host type:
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
199 --enable and --with options recognized:$ac_help
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.4.2"
351 exit 0 ;;
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 nonopt="$ac_option"
406 esac
407 done
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 4 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424 exec 4>/dev/null
425 else
426 exec 4>&1
428 exec 5>./config.log
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449 done
451 # NLS nuisances.
452 # Only set LANG and LC_ALL to C if already set.
453 # These must not be set unconditionally because not all systems understand
454 # e.g. LANG=C (notably SCO).
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 echo > confdefs.h
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file=features.h
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted=yes
470 # Try the directory containing this script, then its parent.
471 ac_prog=$0
472 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 srcdir=$ac_confdir
475 if test ! -r $srcdir/$ac_unique_file; then
476 srcdir=..
478 else
479 ac_srcdir_defaulted=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 else
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE; then
493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 else
495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
501 . "$ac_site_file"
503 done
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
507 . $cache_file
508 else
509 echo "creating cache $cache_file"
510 > $cache_file
513 ac_ext=c
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
516 $CPP $CPPFLAGS'
517 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
518 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
519 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
520 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526 ' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
530 else
531 ac_n= ac_c='\c' ac_t=
534 if test -r /vmunix; then
535 kernel_id=`strings /vmunix | grep UNIX`
536 elif test -r /dynix; then
537 kernel_id=`strings /dynix | grep DYNIX`
538 else
539 kernel_id=
545 # This will get text that should go into config.make.
546 config_vars=
548 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
549 # Check whether --with-gmp or --without-gmp was given.
550 if test "${with_gmp+set}" = set; then
551 withval="$with_gmp"
552 case "$with_gmp" in
553 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
554 ''|no) ;;
555 *) config_vars="$config_vars
556 gmp-srcdir = $withval" ;;
557 esac
562 # Check whether --with-fp or --without-fp was given.
563 if test "${with_fp+set}" = set; then
564 withval="$with_fp"
565 with_fp=$withval
566 else
567 with_fp=yes
570 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
571 if test "${with_gnu_binutils+set}" = set; then
572 withval="$with_gnu_binutils"
573 gnu_binutils=$withval
574 else
575 gnu_binutils=no
578 # Check whether --with-gnu-ld or --without-gnu-ld was given.
579 if test "${with_gnu_ld+set}" = set; then
580 withval="$with_gnu_ld"
581 gnu_ld=$withval
582 else
583 gnu_ld=no
586 # Check whether --with-gnu-as or --without-gnu-as was given.
587 if test "${with_gnu_as+set}" = set; then
588 withval="$with_gnu_as"
589 gnu_as=$withval
590 else
591 gnu_as=no
594 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
595 # Check whether --with-elf or --without-elf was given.
596 if test "${with_elf+set}" = set; then
597 withval="$with_elf"
598 elf=$withval
599 else
600 elf=no
603 # Check whether --with-weak-symbols or --without-weak-symbols was given.
604 if test "${with_weak_symbols+set}" = set; then
605 withval="$with_weak_symbols"
606 weak=$withval
607 else
608 weak=no
612 # Check whether --enable-libio or --disable-libio was given.
613 if test "${enable_libio+set}" = set; then
614 enableval="$enable_libio"
615 stdio=libio
616 else
617 stdio=stdio
621 # Check whether --enable-shared or --disable-shared was given.
622 if test "${enable_shared+set}" = set; then
623 enableval="$enable_shared"
624 shared=$enableval
625 else
626 shared=default
629 # Check whether --enable-profile or --disable-profile was given.
630 if test "${enable_profile+set}" = set; then
631 enableval="$enable_profile"
632 profile=$enableval
633 else
634 profile=yes
637 # Check whether --enable-omitfp or --disable-omitfp was given.
638 if test "${enable_omitfp+set}" = set; then
639 enableval="$enable_omitfp"
640 omitfp=$enableval
641 else
642 omitfp=no
646 echo $ac_n "checking stdio selection""... $ac_c" 1>&4
648 if test $stdio = libio; then
649 cat >> confdefs.h <<\EOF
650 #define USE_IN_LIBIO 1
654 echo "$ac_t""$stdio" 1>&4
656 ac_aux_dir=
657 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
658 if test -f $ac_dir/install-sh; then
659 ac_aux_dir=$ac_dir
660 ac_install_sh="$ac_aux_dir/install-sh -c"
661 break
662 elif test -f $ac_dir/install.sh; then
663 ac_aux_dir=$ac_dir
664 ac_install_sh="$ac_aux_dir/install.sh -c"
665 break
667 done
668 if test -z "$ac_aux_dir"; then
669 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
671 ac_config_guess=$ac_aux_dir/config.guess
672 ac_config_sub=$ac_aux_dir/config.sub
673 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
676 # Make sure we can run config.sub.
677 if $ac_config_sub sun4 >/dev/null 2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 echo $ac_n "checking host system type""... $ac_c" 1>&4
683 host_alias=$host
684 case "$host_alias" in
685 NONE)
686 case $nonopt in
687 NONE)
688 if host_alias=`$ac_config_guess`; then :
689 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
690 fi ;;
691 *) host_alias=$nonopt ;;
692 esac ;;
693 esac
695 host=`$ac_config_sub $host_alias`
696 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
697 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
698 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
699 echo "$ac_t""$host" 1>&4
701 # We keep the original values in `$config_*' and never modify them, so we
702 # can write them unchanged into config.make. Everything else uses
703 # $machine, $vendor, and $os, and changes them whenever convenient.
704 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
706 # Some configurations imply other options.
707 case "$host_os" in
708 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
709 # These systems always use GNU tools.
710 gnu_ld=yes gnu_as=yes
711 esac
712 case "$host_os" in
713 gnu* | linux* | sysv4* | solaris2*)
714 # These systems always use the ELF format.
715 elf=yes
716 esac
718 # Compute the list of sysdep directories for this configuration.
719 sysdep_dir=$srcdir/sysdeps
720 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
721 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&4
723 else
724 machine=$config_machine
725 vendor=$config_vendor
726 os=$config_os
728 # Expand the configuration machine name into a subdirectory by architecture
729 # type and particular chip.
730 case "$machine" in
731 a29k | am29000) machine=a29k ;;
732 alpha*) machine=alpha/$machine ;;
733 hppa*) machine=hppa/$machine ;;
734 i[345]86) machine=i386/$machine ;;
735 m680?0) machine=m68k/$machine ;;
736 m68k) machine=m68k/m68020 ;;
737 m88???) machine=m88k/$machine ;;
738 m88k) machine=m88k/m88100 ;;
739 mips*) machine=mips/$machine ;;
740 mips64*) machine=mips/mips64/$machine ;;
741 sparc[6789]) machine=sparc/$machine ;;
742 supersparc) machine=sparc/sparc8 ;;
743 esac
745 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
746 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
748 case "$os" in
749 gnu*)
750 base_os=mach/hurd ;;
751 netbsd* | 386bsd* | freebsd* | bsdi*)
752 base_os=unix/bsd/bsd4.4 ;;
753 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
754 base_os=unix/bsd ;;
755 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
756 base_os=unix/sysv ;;
757 solaris[2-9]*)
758 base_os=unix/sysv/sysv4 ;;
759 none)
760 base_os=standalone ;;
762 base_os='' ;;
763 esac
765 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
766 tail=$os
767 ostry=$os
768 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
769 ostry="$ostry /$o"
770 tail=$o
771 done
772 o=`echo $tail | sed 's/[0-9]*$//'`
773 if test $o != $tail; then
774 ostry="$ostry /$o"
777 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
778 base=
779 tail=$base_os
780 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
781 set $b
782 base="$base /$1"
783 tail="$2"
784 done
786 # For sparc/sparc9, try sparc/sparc9 and then sparc.
787 mach=
788 tail=$machine
789 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
790 set $m
791 # Prepend the machine's FPU directory unless --without-fp.
792 if test "$with_fp" = yes; then
793 mach="$mach /$1/fpu"
795 mach="$mach /$1"
796 tail="$2"
797 done
800 # Find what sysdep directories exist.
801 sysnames=
802 for b in $base ''; do
803 for m0 in $mach ''; do
804 for v in /$vendor ''; do
805 for o in /$ostry ''; do
806 for m in $mach ''; do
807 try="$m0$b$v$o$m"
808 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
809 if test -d $sysdep_dir$try; then
810 sysnames="$sysnames $try"
811 { test -n "$o" || test -n "$b"; } && os_used=t
812 { test -n "$m" || test -n "$m0"; } && machine_used=t
814 done
815 done
816 done
817 done
818 done
820 if test -z "$os_used" && test "$os" != none; then
821 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
823 if test -z "$machine_used" && test "$machine" != none; then
824 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
827 # We have now validated the configuration.
830 # If using ELF, look for an `elf' subdirectory of each machine directory.
831 # We prepend these rather than inserting them whereever the machine appears
832 # because things specified by the machine's ELF ABI should override
833 # OS-specific things, and should always be the same for any OS on the
834 # machine (otherwise what's the point of an ABI?).
835 if test "$elf" = yes; then
836 elf_dirs=
837 for m in $mach; do
838 if test -d $sysdep_dir$m/elf; then
839 elf_dirs="$elf_dirs $m/elf"
841 done
842 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
846 # Remove the leading slashes.
847 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
850 # Expand the list of system names into a full list of directories
851 # from each element's parent name and Implies file (if present).
852 set $sysnames
853 while test $# -gt 0; do
854 name=$1
855 shift
857 if test -f $sysdep_dir/$name/Implies; then
858 # Collect more names from the `Implies' file (removing comments).
859 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
860 for x in $implied; do
861 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
862 done
863 else
864 implied=
867 # Add NAME to the list of names.
868 names="$names $name"
870 # Find the parent of NAME, using the empty string if it has none.
871 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
873 # Add the names implied by NAME, and NAME's parent (if it has one), to
874 # the list of names to be processed (the argument list). We prepend the
875 # implied names to the list and append the parent. We want implied
876 # directories to come before further directories inferred from the
877 # configuration components; this ensures that for sysv4, unix/common
878 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
879 # after sysv4).
880 sysnames="`echo $implied $* $parent`"
881 test -n "$sysnames" && set $sysnames
882 done
884 # Add the default directories.
885 names="$names generic stub"
887 # Now uniquize the list.
888 seen=
889 sysnames=
890 for name in $names; do
891 if echo "$seen" | fgrep -x $name >/dev/null; then
892 # Already in the list.
893 true;
894 else
895 # A new one.
896 if test -z "$seen"; then
897 seen="$name" sysnames="$name"
898 else
899 seen="$seen
900 $name"
901 sysnames="$sysnames $name"
904 done
905 libc_cv_sysdirs="$sysnames"
908 echo "$ac_t""$libc_cv_sysdirs" 1>&4
909 sysnames="$libc_cv_sysdirs"
911 # Find a good install program. We prefer a C program (faster),
912 # so one script is as good as another. But avoid the broken or
913 # incompatible versions:
914 # SysV /etc/install, /usr/sbin/install
915 # SunOS /usr/etc/install
916 # IRIX /sbin/install
917 # AIX /bin/install
918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
920 # ./install, which can be erroneously created by make from ./install.sh.
921 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
922 if test -z "$INSTALL"; then
923 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&4
925 else
926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
927 for ac_dir in $PATH; do
928 # Account for people who put trailing slashes in PATH elements.
929 case "$ac_dir/" in
930 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
932 # OSF1 and SCO ODT 3.0 have their own names for install.
933 for ac_prog in ginstall installbsd scoinst install; do
934 if test -f $ac_dir/$ac_prog; then
935 if test $ac_prog = install &&
936 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
937 # AIX install. It has an incompatible calling convention.
938 # OSF/1 installbsd also uses dspmsg, but is usable.
940 else
941 ac_cv_path_install="$ac_dir/$ac_prog -c"
942 break 2
945 done
947 esac
948 done
949 IFS="$ac_save_ifs"
952 if test "${ac_cv_path_install+set}" = set; then
953 INSTALL="$ac_cv_path_install"
954 else
955 # As a last resort, use the slow shell script. We don't cache a
956 # path for INSTALL within a source directory, because that will
957 # break other packages using the cache if that directory is
958 # removed, or if the path is relative.
959 INSTALL="$ac_install_sh"
962 echo "$ac_t""$INSTALL" 1>&4
964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
965 # It thinks the first close brace ends the variable substitution.
966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
970 if test "$INSTALL" = "${srcdir}/install-sh"; then
971 # The makefiles need to use a different form to find it in $srcdir.
972 INSTALL='$(..)./install-sh'
975 echo $ac_n "checking build system type""... $ac_c" 1>&4
977 build_alias=$build
978 case "$build_alias" in
979 NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984 esac
986 build=`$ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&4
992 if test $host != $build; then
993 ac_tool_prefix=${host_alias}-
994 else
995 ac_tool_prefix=
998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&4
1003 else
1004 if test -n "$CC"; then
1005 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 else
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1008 for ac_dir in $PATH; do
1009 test -z "$ac_dir" && ac_dir=.
1010 if test -f $ac_dir/$ac_word; then
1011 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1012 break
1014 done
1015 IFS="$ac_save_ifs"
1016 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1019 CC="$ac_cv_prog_CC"
1020 if test -n "$CC"; then
1021 echo "$ac_t""$CC" 1>&4
1022 else
1023 echo "$ac_t""no" 1>&4
1028 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1029 set dummy ${ac_tool_prefix}ar; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1031 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&4
1033 else
1034 if test -n "$AR"; then
1035 ac_cv_prog_AR="$AR" # Let the user override the test.
1036 else
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1038 for ac_dir in $PATH; do
1039 test -z "$ac_dir" && ac_dir=.
1040 if test -f $ac_dir/$ac_word; then
1041 ac_cv_prog_AR="${ac_tool_prefix}ar"
1042 break
1044 done
1045 IFS="$ac_save_ifs"
1046 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1049 AR="$ac_cv_prog_AR"
1050 if test -n "$AR"; then
1051 echo "$ac_t""$AR" 1>&4
1052 else
1053 echo "$ac_t""no" 1>&4
1058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1061 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&4
1063 else
1064 if test -n "$RANLIB"; then
1065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1066 else
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1068 for ac_dir in $PATH; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1072 break
1074 done
1075 IFS="$ac_save_ifs"
1078 RANLIB="$ac_cv_prog_RANLIB"
1079 if test -n "$RANLIB"; then
1080 echo "$ac_t""$RANLIB" 1>&4
1081 else
1082 echo "$ac_t""no" 1>&4
1086 if test -z "$ac_cv_prog_RANLIB"; then
1087 if test -n "$ac_tool_prefix"; then
1088 # Extract the first word of "ranlib", so it can be a program name with args.
1089 set dummy ranlib; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&4
1093 else
1094 if test -n "$RANLIB"; then
1095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1096 else
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1098 for ac_dir in $PATH; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_prog_RANLIB="ranlib"
1102 break
1104 done
1105 IFS="$ac_save_ifs"
1106 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1109 RANLIB="$ac_cv_prog_RANLIB"
1110 if test -n "$RANLIB"; then
1111 echo "$ac_t""$RANLIB" 1>&4
1112 else
1113 echo "$ac_t""no" 1>&4
1116 else
1117 RANLIB=":"
1121 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1122 # On Suns, sometimes $CPP names a directory.
1123 if test -n "$CPP" && test -d "$CPP"; then
1124 CPP=
1126 if test -z "$CPP"; then
1127 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&4
1129 else
1130 # This must be in double quotes, not single quotes, because CPP may get
1131 # substituted into the Makefile and "${CC-cc}" will confuse make.
1132 CPP="${CC-cc} -E"
1133 # On the NeXT, cc -E runs the code through the compiler's parser,
1134 # not just through cpp.
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 #include <assert.h>
1139 Syntax Error
1141 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1142 ac_err=`grep -v '^ *+' conftest.out`
1143 if test -z "$ac_err"; then
1145 else
1146 echo "$ac_err" >&5
1147 rm -rf conftest*
1148 CPP="${CC-cc} -E -traditional-cpp"
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1152 #include <assert.h>
1153 Syntax Error
1155 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1156 ac_err=`grep -v '^ *+' conftest.out`
1157 if test -z "$ac_err"; then
1159 else
1160 echo "$ac_err" >&5
1161 rm -rf conftest*
1162 CPP=/lib/cpp
1164 rm -f conftest*
1166 rm -f conftest*
1167 ac_cv_prog_CPP="$CPP"
1169 CPP="$ac_cv_prog_CPP"
1170 else
1171 ac_cv_prog_CPP="$CPP"
1173 echo "$ac_t""$CPP" 1>&4
1176 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1177 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&4
1179 else
1180 echo '#include <stddef.h>
1181 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1182 if eval "$ac_cpp conftest.c 2>/dev/null" \
1183 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1184 libc_cv_signed_size_t=no
1185 else
1186 libc_cv_signed_size_t=yes
1188 rm -f conftest*
1191 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1192 if test $libc_cv_signed_size_t = yes; then
1193 cat >> confdefs.h <<\EOF
1194 #undef __SIZE_TYPE__
1195 #define __SIZE_TYPE__ unsigned
1199 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1200 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&4
1202 else
1203 cat > conftest.$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1206 #define __need_size_t
1207 #define __need_wchar_t
1208 #include <stddef.h>
1209 #define __need_NULL
1210 #include <stddef.h>
1211 int main() { return 0; }
1212 int t() {
1213 size_t size; wchar_t wchar;
1214 #ifdef offsetof
1215 #error stddef.h ignored __need_*
1216 #endif
1217 if (&size == NULL || &wchar == NULL) abort ();
1218 ; return 0; }
1220 if eval $ac_compile; then
1221 rm -rf conftest*
1222 libc_cv_friendly_stddef=yes
1223 else
1224 rm -rf conftest*
1225 libc_cv_friendly_stddef=no
1227 rm -f conftest*
1231 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1232 if test $libc_cv_friendly_stddef = yes; then
1233 config_vars="$config_vars
1234 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1237 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1238 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&4
1240 else
1241 cat > conftest.S <<EOF
1242 #include "confdefs.h"
1243 /* Nothing whatsoever. */
1245 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1246 libc_cv_need_minus_P=no
1247 else
1248 libc_cv_need_minus_P=yes
1250 rm -f conftest*
1253 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1254 if test $libc_cv_need_minus_P = yes; then
1255 config_vars="$config_vars
1256 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1259 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1260 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&4
1262 else
1263 libc_cv_asm_global_directive=UNKNOWN
1264 for ac_globl in .globl .global; do
1265 cat > conftest.s <<EOF
1266 .text
1267 ${ac_globl} foo
1268 foo: .long 0
1270 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1271 libc_cv_asm_global_directive=${ac_globl}
1273 rm -f conftest*
1274 test $libc_cv_asm_global_directive != UNKNOWN && break
1275 done
1278 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1279 if test $libc_cv_asm_global_directive = UNKNOWN; then
1280 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1281 else
1282 cat >> confdefs.h <<EOF
1283 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1288 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1289 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&4
1291 else
1292 cat > conftest.s <<EOF
1293 .text
1294 foo: .long 0
1295 .set glibc_conftest_frobozz,foo
1296 $libc_cv_asm_global_directive glibc_conftest_frobozz
1298 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1299 # (but it doesn't work), so we must do a linking check to be sure.
1300 cat > conftest1.c <<\EOF
1301 extern int glibc_conftest_frobozz;
1302 main () { printf ("%d\n", glibc_conftest_frobozz); }
1304 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1305 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1306 libc_cv_asm_set_directive=yes
1307 else
1308 libc_cv_asm_set_directive=no
1310 rm -f conftest*
1313 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1314 if test $libc_cv_asm_set_directive = yes; then
1315 cat >> confdefs.h <<\EOF
1316 #define HAVE_ASM_SET_DIRECTIVE 1
1321 if test $elf != yes; then
1322 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1323 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&4
1325 else
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1330 int main() { return 0; }
1331 int t() {
1332 asm (".section .init");
1333 asm (".section .fini");
1334 ; return 0; }
1336 if eval $ac_compile; then
1337 rm -rf conftest*
1338 libc_cv_have_initfini=yes
1339 else
1340 rm -rf conftest*
1341 libc_cv_have_initfini=no
1343 rm -f conftest*
1347 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1348 if test $libc_cv_have_initfini = yes; then
1349 cat >> confdefs.h <<\EOF
1350 #define HAVE_INITFINI 1
1356 # sysdeps configure fragments may set these with files to be linked below.
1357 libc_link_dests=
1358 libc_link_sources=
1360 # Iterate over all the sysdep directories we will use, running their
1361 # configure fragments, and looking for a uname implementation.
1362 uname=
1363 for dir in $sysnames; do
1364 if test -r $sysdep_dir/$dir/configure; then
1365 echo "$ac_t""running configure fragment for $dir" 1>&4
1366 . $sysdep_dir/$dir/configure
1368 if test -z "$uname"; then
1369 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1370 && uname=$dir
1372 done
1376 # If we will use the generic uname implementation, we must figure out what
1377 # it will say by examining the system, and write the results in config-name.h.
1378 if test "$uname" = generic; then
1380 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1381 if test $uname_sysname != $config_os; then
1382 config_release=`echo $config_os | sed s/$uname_sysname//`
1385 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1386 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&4
1388 else
1389 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1390 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1391 != x$config_release; then
1392 # The configuration release is a substring of the kernel release.
1393 libc_cv_uname_release=$kernel_release
1394 elif test x$config_release != x; then
1395 libc_cv_uname_release=$config_release
1396 elif test x$kernel_release != x; then
1397 libc_cv_uname_release=$kernel_release
1398 else
1399 libc_cv_uname_release=unknown
1403 echo "$ac_t""$libc_cv_uname_release" 1>&4
1404 uname_release="$libc_cv_uname_release"
1406 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1407 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&4
1409 else
1410 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1411 if test -n "$kernel_version"; then
1412 libc_cv_uname_version="$kernel_version"
1413 else
1414 libc_cv_uname_version=unknown
1418 echo "$ac_t""$libc_cv_uname_version" 1>&4
1419 uname_version="$libc_cv_uname_version"
1421 config_uname=config-name.h:config-name.in
1422 else
1423 # For non-generic uname, we don't need to create config-name.h at all.
1424 config_uname=
1428 if test $gnu_ld = yes; then
1429 cat >> confdefs.h <<\EOF
1430 #define HAVE_GNU_LD 1
1434 if test $gnu_as = yes; then
1435 cat >> confdefs.h <<\EOF
1436 #define HAVE_GNU_AS 1
1440 if test $elf = yes; then
1441 cat >> confdefs.h <<\EOF
1442 #define HAVE_ELF 1
1446 if test $weak = yes; then
1447 cat >> confdefs.h <<\EOF
1448 #define HAVE_WEAK_SYMBOLS 1
1454 if test $shared = default; then
1455 if test $gnu_ld = yes; then
1456 shared=$elf
1462 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1463 config_makefile=
1464 else
1465 config_makefile=Makefile
1468 trap '' 1 2 15
1469 cat > confcache <<\EOF
1470 # This file is a shell script that caches the results of configure
1471 # tests run on this system so they can be shared between configure
1472 # scripts and configure runs. It is not useful on other systems.
1473 # If it contains results you don't want to keep, you may remove or edit it.
1475 # By default, configure uses ./config.cache as the cache file,
1476 # creating it if it does not exist already. You can give configure
1477 # the --cache-file=FILE option to use a different cache file; that is
1478 # what configure does when it calls configure scripts in
1479 # subdirectories, so they share the cache.
1480 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1481 # config.status only pays attention to the cache file if you give it the
1482 # --recheck option to rerun configure.
1485 # Ultrix sh set writes to stderr and can't be redirected directly,
1486 # and sets the high bit in the cache file unless we assign to the vars.
1487 (set) 2>&1 |
1488 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1489 >> confcache
1490 if cmp -s $cache_file confcache; then
1492 else
1493 if test -w $cache_file; then
1494 echo "updating cache $cache_file"
1495 cat confcache > $cache_file
1496 else
1497 echo "not updating unwritable cache $cache_file"
1500 rm -f confcache
1502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1505 # Let make expand exec_prefix.
1506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1508 # Any assignment to VPATH causes Sun make to only execute
1509 # the first set of double-colon rules, so remove it if not needed.
1510 # If there is a colon in the path, we need to keep it.
1511 if test "x$srcdir" = x.; then
1512 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1515 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1517 DEFS=-DHAVE_CONFIG_H
1519 # Without the "./", some shells look in PATH for config.status.
1520 : ${CONFIG_STATUS=./config.status}
1522 echo creating $CONFIG_STATUS
1523 rm -f $CONFIG_STATUS
1524 cat > $CONFIG_STATUS <<EOF
1525 #! /bin/sh
1526 # Generated automatically by configure.
1527 # Run this file to recreate the current configuration.
1528 # This directory was configured as follows,
1529 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1531 # $0 $ac_configure_args
1533 # Compiler output produced by configure, useful for debugging
1534 # configure, is in ./config.log if it exists.
1536 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1537 for ac_option
1539 case "\$ac_option" in
1540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1541 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1542 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1543 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1544 echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
1545 exit 0 ;;
1546 -help | --help | --hel | --he | --h)
1547 echo "\$ac_cs_usage"; exit 0 ;;
1548 *) echo "\$ac_cs_usage"; exit 1 ;;
1549 esac
1550 done
1552 ac_given_srcdir=$srcdir
1553 ac_given_INSTALL="$INSTALL"
1555 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1557 # Protect against being on the right side of a sed subst in config.status.
1558 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1559 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1560 $ac_vpsub
1561 $extrasub
1562 s%@CFLAGS@%$CFLAGS%g
1563 s%@CPPFLAGS@%$CPPFLAGS%g
1564 s%@CXXFLAGS@%$CXXFLAGS%g
1565 s%@DEFS@%$DEFS%g
1566 s%@LDFLAGS@%$LDFLAGS%g
1567 s%@LIBS@%$LIBS%g
1568 s%@exec_prefix@%$exec_prefix%g
1569 s%@prefix@%$prefix%g
1570 s%@program_transform_name@%$program_transform_name%g
1571 s%@bindir@%$bindir%g
1572 s%@sbindir@%$sbindir%g
1573 s%@libexecdir@%$libexecdir%g
1574 s%@datadir@%$datadir%g
1575 s%@sysconfdir@%$sysconfdir%g
1576 s%@sharedstatedir@%$sharedstatedir%g
1577 s%@localstatedir@%$localstatedir%g
1578 s%@libdir@%$libdir%g
1579 s%@includedir@%$includedir%g
1580 s%@oldincludedir@%$oldincludedir%g
1581 s%@infodir@%$infodir%g
1582 s%@mandir@%$mandir%g
1583 s%@stdio@%$stdio%g
1584 s%@host@%$host%g
1585 s%@host_alias@%$host_alias%g
1586 s%@host_cpu@%$host_cpu%g
1587 s%@host_vendor@%$host_vendor%g
1588 s%@host_os@%$host_os%g
1589 s%@sysnames@%$sysnames%g
1590 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1591 s%@INSTALL_DATA@%$INSTALL_DATA%g
1592 s%@build@%$build%g
1593 s%@build_alias@%$build_alias%g
1594 s%@build_cpu@%$build_cpu%g
1595 s%@build_vendor@%$build_vendor%g
1596 s%@build_os@%$build_os%g
1597 s%@CC@%$CC%g
1598 s%@AR@%$AR%g
1599 s%@RANLIB@%$RANLIB%g
1600 s%@CPP@%$CPP%g
1601 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1602 s%@uname_sysname@%$uname_sysname%g
1603 s%@uname_release@%$uname_release%g
1604 s%@uname_version@%$uname_version%g
1605 s%@gnu_ld@%$gnu_ld%g
1606 s%@gnu_as@%$gnu_as%g
1607 s%@elf@%$elf%g
1608 s%@weak@%$weak%g
1609 s%@shared@%$shared%g
1610 s%@profile@%$profile%g
1611 s%@omitfp@%$omitfp%g
1613 CEOF
1615 cat >> $CONFIG_STATUS <<EOF
1617 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1619 cat >> $CONFIG_STATUS <<\EOF
1620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1621 # Support "outfile[:infile]", defaulting infile="outfile.in".
1622 case "$ac_file" in
1623 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1624 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1625 *) ac_file_in="${ac_file}.in" ;;
1626 esac
1628 # Adjust relative srcdir, etc. for subdirectories.
1630 # Remove last slash and all that follows it. Not all systems have dirname.
1631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1633 # The file is in a subdirectory.
1634 test ! -d "$ac_dir" && mkdir "$ac_dir"
1635 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1636 # A "../" for each directory in $ac_dir_suffix.
1637 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1638 else
1639 ac_dir_suffix= ac_dots=
1642 case "$ac_given_srcdir" in
1643 .) srcdir=.
1644 if test -z "$ac_dots"; then top_srcdir=.
1645 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1646 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1647 *) # Relative path.
1648 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1649 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1650 esac
1652 case "$ac_given_INSTALL" in
1653 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1654 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1655 esac
1656 echo creating "$ac_file"
1657 rm -f "$ac_file"
1658 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1659 case "$ac_file" in
1660 *Makefile*) ac_comsub="1i\\
1661 # $configure_input" ;;
1662 *) ac_comsub= ;;
1663 esac
1664 sed -e "$ac_comsub
1665 s%@configure_input@%$configure_input%g
1666 s%@srcdir@%$srcdir%g
1667 s%@top_srcdir@%$top_srcdir%g
1668 s%@INSTALL@%$INSTALL%g
1669 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1670 fi; done
1671 rm -f conftest.subs
1673 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1674 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1676 # ac_d sets the value in "#define NAME VALUE" lines.
1677 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1678 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1679 ac_dC='\3'
1680 ac_dD='%g'
1681 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1682 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1683 ac_uB='\([ ]\)%\1#\2define\3'
1684 ac_uC=' '
1685 ac_uD='\4%g'
1686 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1687 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1688 ac_eB='$%\1#\2define\3'
1689 ac_eC=' '
1690 ac_eD='%g'
1692 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1693 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1694 # Support "outfile[:infile]", defaulting infile="outfile.in".
1695 case "$ac_file" in
1696 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1697 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1698 *) ac_file_in="${ac_file}.in" ;;
1699 esac
1701 echo creating $ac_file
1703 rm -f conftest.frag conftest.in conftest.out
1704 cp $ac_given_srcdir/$ac_file_in conftest.in
1708 # Transform confdefs.h into a sed script conftest.vals that substitutes
1709 # the proper values into config.h.in to produce config.h. And first:
1710 # Protect against being on the right side of a sed subst in config.status.
1711 # Protect against being in an unquoted here document in config.status.
1712 rm -f conftest.vals
1713 cat > conftest.hdr <<\EOF
1714 s/[\\&%]/\\&/g
1715 s%[\\$`]%\\&%g
1716 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1717 s%ac_d%ac_u%gp
1718 s%ac_u%ac_e%gp
1720 sed -n -f conftest.hdr confdefs.h > conftest.vals
1721 rm -f conftest.hdr
1723 # This sed command replaces #undef with comments. This is necessary, for
1724 # example, in the case of _POSIX_SOURCE, which is predefined and required
1725 # on some systems where configure will not decide to define it.
1726 cat >> conftest.vals <<\EOF
1727 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1730 # Break up conftest.vals because some shells have a limit on
1731 # the size of here documents, and old seds have small limits too.
1732 # Maximum number of lines to put in a single here document.
1733 ac_max_here_lines=12
1735 rm -f conftest.tail
1736 while :
1738 ac_lines=`grep -c . conftest.vals`
1739 # grep -c gives empty output for an empty file on some AIX systems.
1740 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1741 # Write a limited-size here document to conftest.frag.
1742 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1743 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1744 echo 'CEOF
1745 sed -f conftest.frag conftest.in > conftest.out
1746 rm -f conftest.in
1747 mv conftest.out conftest.in
1748 ' >> $CONFIG_STATUS
1749 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1750 rm -f conftest.vals
1751 mv conftest.tail conftest.vals
1752 done
1753 rm -f conftest.vals
1755 cat >> $CONFIG_STATUS <<\EOF
1756 rm -f conftest.frag conftest.h
1757 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1758 cat conftest.in >> conftest.h
1759 rm -f conftest.in
1760 if cmp -s $ac_file conftest.h 2>/dev/null; then
1761 echo "$ac_file is unchanged"
1762 rm -f conftest.h
1763 else
1764 rm -f $ac_file
1765 mv conftest.h $ac_file
1767 fi; done
1771 cat >> $CONFIG_STATUS <<EOF
1772 ac_sources="`echo $libc_link_sources`"
1773 ac_dests="`echo $libc_link_dests`"
1776 cat >> $CONFIG_STATUS <<\EOF
1777 srcdir=$ac_given_srcdir
1778 while test -n "$ac_sources"; do
1779 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1780 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1782 echo "linking $srcdir/$ac_source to $ac_dest"
1784 if test ! -r $srcdir/$ac_source; then
1785 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1787 rm -f $ac_dest
1789 # Make relative symlinks.
1790 # Remove last slash and all that follows it. Not all systems have dirname.
1791 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1792 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1793 # The dest file is in a subdirectory.
1794 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1795 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1796 # A "../" for each directory in $ac_dest_dir_suffix.
1797 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1798 else
1799 ac_dest_dir_suffix= ac_dots=
1802 case "$srcdir" in
1803 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1804 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1805 esac
1807 # Make a symlink if possible; otherwise try a hard link.
1808 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1809 ln $srcdir/$ac_source $ac_dest; then :
1810 else
1811 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1813 done
1815 cat >> $CONFIG_STATUS <<EOF
1816 echo '$config_vars' >> config.make
1818 cat >> $CONFIG_STATUS <<\EOF
1820 exit 0
1822 chmod +x $CONFIG_STATUS
1823 rm -fr confdefs* $ac_clean_files
1824 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1