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.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
18 --with-fp if using floating-point hardware"
20 --with-gnu-binutils if using GNU binutils (as and ld)"
22 --with-gnu-ld if using GNU ld (in the binutils package)"
24 --with-gnu-as if using GNU as (in the binutils package)"
26 --with-elf if using the ELF object format"
28 --with-weak-symbols if weak symbols are available in as and ld"
30 --enable-shared build shared library [default=yes if GNU ld & ELF]"
32 --enable-profile build profiled library [default=yes]"
34 --enable-omitfp build undebuggable optimized library [default=no]"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
197 --enable and --with options recognized:$ac_help
201 -host |
--host |
--hos |
--ho)
203 -host=* |
--host=* |
--hos=* |
--ho=*)
206 -includedir |
--includedir |
--includedi |
--included |
--include \
207 |
--includ |
--inclu |
--incl |
--inc)
208 ac_prev
=includedir
;;
209 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
210 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
211 includedir
="$ac_optarg" ;;
213 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
215 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
216 infodir
="$ac_optarg" ;;
218 -libdir |
--libdir |
--libdi |
--libd)
220 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
221 libdir
="$ac_optarg" ;;
223 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
224 |
--libexe |
--libex |
--libe)
225 ac_prev
=libexecdir
;;
226 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
227 |
--libexe=* |
--libex=* |
--libe=*)
228 libexecdir
="$ac_optarg" ;;
230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
231 |
--localstate |
--localstat |
--localsta |
--localst \
232 |
--locals |
--local |
--loca |
--loc |
--lo)
233 ac_prev
=localstatedir
;;
234 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
235 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
236 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
237 localstatedir
="$ac_optarg" ;;
239 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
241 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
242 mandir
="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
252 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
253 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
256 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
257 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
258 |
--oldin |
--oldi |
--old |
--ol |
--o)
259 ac_prev
=oldincludedir
;;
260 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
261 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
262 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
263 oldincludedir
="$ac_optarg" ;;
265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
268 prefix
="$ac_optarg" ;;
270 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
271 |
--program-pre |
--program-pr |
--program-p)
272 ac_prev
=program_prefix
;;
273 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
274 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
275 program_prefix
="$ac_optarg" ;;
277 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
278 |
--program-suf |
--program-su |
--program-s)
279 ac_prev
=program_suffix
;;
280 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
281 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
282 program_suffix
="$ac_optarg" ;;
284 -program-transform-name |
--program-transform-name \
285 |
--program-transform-nam |
--program-transform-na \
286 |
--program-transform-n |
--program-transform- \
287 |
--program-transform |
--program-transfor \
288 |
--program-transfo |
--program-transf \
289 |
--program-trans |
--program-tran \
290 |
--progr-tra |
--program-tr |
--program-t)
291 ac_prev
=program_transform_name
;;
292 -program-transform-name=* |
--program-transform-name=* \
293 |
--program-transform-nam=* |
--program-transform-na=* \
294 |
--program-transform-n=* |
--program-transform-=* \
295 |
--program-transform=* |
--program-transfor=* \
296 |
--program-transfo=* |
--program-transf=* \
297 |
--program-trans=* |
--program-tran=* \
298 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
299 program_transform_name
="$ac_optarg" ;;
301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
302 |
-silent |
--silent |
--silen |
--sile |
--sil)
305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
309 sbindir
="$ac_optarg" ;;
311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
315 ac_prev
=sharedstatedir
;;
316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
320 sharedstatedir
="$ac_optarg" ;;
322 -site |
--site |
--sit)
324 -site=* |
--site=* |
--sit=*)
327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
330 srcdir
="$ac_optarg" ;;
332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
334 ac_prev
=sysconfdir
;;
335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
337 sysconfdir
="$ac_optarg" ;;
339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
342 target
="$ac_optarg" ;;
344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
347 -version |
--version |
--versio |
--versi |
--vers)
348 echo "configure generated by autoconf version 2.4.2"
352 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* |
--without-*)
365 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
379 ac_prev
=x_includes
;;
380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
382 x_includes
="$ac_optarg" ;;
384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
386 ac_prev
=x_libraries
;;
387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
389 x_libraries
="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE
; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 4 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
440 |
--no-cr |
--no-c) ;;
441 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
442 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
443 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
450 # Only set LANG and LC_ALL to C if already set.
451 # These must not be set unconditionally because not all systems understand
452 # e.g. LANG=C (notably SCO).
453 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
454 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest
* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file
=features.h
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted
=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted
=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE
; then
491 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file
in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
515 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
516 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
517 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
518 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
520 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
529 ac_n
= ac_c
='\c' ac_t
=
532 if test -r /vmunix
; then
533 kernel_id
=`strings /vmunix | grep UNIX`
534 elif test -r /dynix
; then
535 kernel_id
=`strings /dynix | grep DYNIX`
543 # This will get text that should go into config.make.
546 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
547 # Check whether --with-gmp or --without-gmp was given.
548 if test "${with_gmp+set}" = set; then
551 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
553 *) config_vars
="$config_vars
554 gmp-srcdir = $withval" ;;
560 # Check whether --with-fp or --without-fp was given.
561 if test "${with_fp+set}" = set; then
568 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
569 if test "${with_gnu_binutils+set}" = set; then
570 withval
="$with_gnu_binutils"
571 gnu_binutils
=$withval
576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
577 if test "${with_gnu_ld+set}" = set; then
578 withval
="$with_gnu_ld"
584 # Check whether --with-gnu-as or --without-gnu-as was given.
585 if test "${with_gnu_as+set}" = set; then
586 withval
="$with_gnu_as"
592 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
593 # Check whether --with-elf or --without-elf was given.
594 if test "${with_elf+set}" = set; then
601 # Check whether --with-weak-symbols or --without-weak-symbols was given.
602 if test "${with_weak_symbols+set}" = set; then
603 withval
="$with_weak_symbols"
610 # Check whether --enable-shared or --disable-shared was given.
611 if test "${enable_shared+set}" = set; then
612 enableval
="$enable_shared"
618 # Check whether --enable-profile or --disable-profile was given.
619 if test "${enable_profile+set}" = set; then
620 enableval
="$enable_profile"
626 # Check whether --enable-omitfp or --disable-omitfp was given.
627 if test "${enable_omitfp+set}" = set; then
628 enableval
="$enable_omitfp"
636 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
637 if test -f $ac_dir/install-sh
; then
639 ac_install_sh
="$ac_aux_dir/install-sh -c"
641 elif test -f $ac_dir/install.sh
; then
643 ac_install_sh
="$ac_aux_dir/install.sh -c"
647 if test -z "$ac_aux_dir"; then
648 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
650 ac_config_guess
=$ac_aux_dir/config.guess
651 ac_config_sub
=$ac_aux_dir/config.sub
652 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
655 # Make sure we can run config.sub.
656 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 echo $ac_n "checking host system type""... $ac_c" 1>&4
663 case "$host_alias" in
667 if host_alias
=`$ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) host_alias
=$nonopt ;;
674 host=`$ac_config_sub $host_alias`
675 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
676 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
677 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&4
680 # We keep the original values in `$config_*' and never modify them, so we
681 # can write them unchanged into config.make. Everything else uses
682 # $machine, $vendor, and $os, and changes them whenever convenient.
683 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
685 # Some configurations imply other options.
687 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
688 # These systems always use GNU tools.
689 gnu_ld
=yes gnu_as
=yes
692 gnu
* | linux
* | sysv4
* | solaris2
*)
693 # These systems always use the ELF format.
697 # Compute the list of sysdep directories for this configuration.
698 sysdep_dir
=$srcdir/sysdeps
699 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
700 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&4
703 machine
=$config_machine
704 vendor
=$config_vendor
707 # Expand the configuration machine name into a subdirectory by architecture
708 # type and particular chip.
711 machine
=i386
/$machine ;;
713 machine
=sparc
/$machine ;;
715 machine
=m68k
/m68020
;;
717 machine
=m68k
/$machine ;;
719 machine
=m88k
/m88100
;;
721 machine
=m88k
/$machine ;;
723 machine
=mips
/mips64
/$machine ;;
725 machine
=mips
/$machine ;;
728 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
729 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
734 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
735 base_os
=unix
/bsd
/bsd4.4
;;
736 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
738 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
741 base_os
=unix
/sysv
/sysv4
;;
743 base_os
=standalone
;;
748 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
751 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
755 o
=`echo $tail | sed 's/[0-9]*$//'`
756 if test $o != $tail; then
760 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
763 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
769 # For sparc/sparc9, try sparc/sparc9 and then sparc.
772 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
774 # Prepend the machine's FPU directory unless --without-fp.
775 if test "$with_fp" = yes; then
783 # Find what sysdep directories exist.
785 for b
in $base ''; do
786 for m0
in $mach ''; do
787 for v
in /$vendor ''; do
788 for o
in /$ostry ''; do
789 for m
in $mach ''; do
791 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
792 if test -d $sysdep_dir$try; then
793 sysnames
="$sysnames $try"
794 { test -n "$o" ||
test -n "$b"; } && os_used
=t
795 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
803 if test -z "$os_used" && test "$os" != none
; then
804 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
806 if test -z "$machine_used" && test "$machine" != none
; then
807 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
810 # We have now validated the configuration.
813 # If using ELF, look for an `elf' subdirectory of each machine directory.
814 # We prepend these rather than inserting them whereever the machine appears
815 # because things specified by the machine's ELF ABI should override
816 # OS-specific things, and should always be the same for any OS on the
817 # machine (otherwise what's the point of an ABI?).
818 if test "$elf" = yes; then
821 if test -d $sysdep_dir$m/elf
; then
822 elf_dirs
="$elf_dirs $m/elf"
825 sysnames
="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
829 # Remove the leading slashes.
830 sysnames
="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
833 # Expand the list of system names into a full list of directories
834 # from each element's parent name and Implies file (if present).
836 while test $# -gt 0; do
840 if test -f $sysdep_dir/$name/Implies
; then
841 # Collect more names from the `Implies' file (removing comments).
842 implied
="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
843 for x
in $implied; do
844 test -d $sysdep_dir/$x ||
echo "Warning: $name implies nonexistent $x">&2
850 # Add NAME to the list of names.
853 # Find the parent of NAME, using the empty string if it has none.
854 parent
="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
856 # Add the names implied by NAME, and NAME's parent (if it has one), to
857 # the list of names to be processed (the argument list). We prepend the
858 # implied names to the list and append the parent. We want implied
859 # directories to come before further directories inferred from the
860 # configuration components; this ensures that for sysv4, unix/common
861 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
863 sysnames
="`echo $implied $* $parent`"
864 test -n "$sysnames" && set $sysnames
867 # Add the default directories.
868 names
="$names generic stub"
870 # Now uniquize the list.
873 for name
in $names; do
874 if echo "$seen" | fgrep
-x $name >/dev
/null
; then
875 # Already in the list.
879 if test -z "$seen"; then
880 seen
="$name" sysnames
="$name"
884 sysnames
="$sysnames $name"
888 libc_cv_sysdirs
="$sysnames"
891 echo "$ac_t""$libc_cv_sysdirs" 1>&4
892 sysnames
="$libc_cv_sysdirs"
894 # Find a good install program. We prefer a C program (faster),
895 # so one script is as good as another. But avoid the broken or
896 # incompatible versions:
897 # SysV /etc/install, /usr/sbin/install
898 # SunOS /usr/etc/install
901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
903 # ./install, which can be erroneously created by make from ./install.sh.
904 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
905 if test -z "$INSTALL"; then
906 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&4
909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
910 for ac_dir
in $PATH; do
911 # Account for people who put trailing slashes in PATH elements.
913 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
915 # OSF1 and SCO ODT 3.0 have their own names for install.
916 for ac_prog
in ginstall installbsd scoinst
install; do
917 if test -f $ac_dir/$ac_prog; then
918 if test $ac_prog = install &&
919 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
920 # AIX install. It has an incompatible calling convention.
921 # OSF/1 installbsd also uses dspmsg, but is usable.
924 ac_cv_path_install
="$ac_dir/$ac_prog -c"
935 if test "${ac_cv_path_install+set}" = set; then
936 INSTALL
="$ac_cv_path_install"
938 # As a last resort, use the slow shell script. We don't cache a
939 # path for INSTALL within a source directory, because that will
940 # break other packages using the cache if that directory is
941 # removed, or if the path is relative.
942 INSTALL
="$ac_install_sh"
945 echo "$ac_t""$INSTALL" 1>&4
947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
948 # It thinks the first close brace ends the variable substitution.
949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
951 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
953 if test "$INSTALL" = "${srcdir}/install-sh"; then
954 # The makefiles need to use a different form to find it in $srcdir.
955 INSTALL
='$(..)./install-sh'
958 echo $ac_n "checking build system type""... $ac_c" 1>&4
961 case "$build_alias" in
964 NONE
) build_alias
=$host_alias ;;
965 *) build_alias
=$nonopt ;;
969 build
=`$ac_config_sub $build_alias`
970 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
971 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
972 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$build" 1>&4
975 if test $host != $build; then
976 ac_tool_prefix
=${host_alias}-
981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
982 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&4
987 if test -n "$CC"; then
988 ac_cv_prog_CC
="$CC" # Let the user override the test.
990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
991 for ac_dir
in gcc
; do
992 test -z "$ac_dir" && ac_dir
=.
993 if test -f $ac_dir/$ac_word; then
994 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
999 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1003 if test -n "$CC"; then
1004 echo "$ac_t""$CC" 1>&4
1006 echo "$ac_t""no" 1>&4
1011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1012 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1014 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&4
1017 if test -n "$AR"; then
1018 ac_cv_prog_AR
="$AR" # Let the user override the test.
1020 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1021 for ac_dir
in ar; do
1022 test -z "$ac_dir" && ac_dir
=.
1023 if test -f $ac_dir/$ac_word; then
1024 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1029 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1033 if test -n "$AR"; then
1034 echo "$ac_t""$AR" 1>&4
1036 echo "$ac_t""no" 1>&4
1041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1042 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1044 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&4
1047 if test -n "$RANLIB"; then
1048 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1050 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1051 for ac_dir
in $PATH; do
1052 test -z "$ac_dir" && ac_dir
=.
1053 if test -f $ac_dir/$ac_word; then
1054 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1061 RANLIB
="$ac_cv_prog_RANLIB"
1062 if test -n "$RANLIB"; then
1063 echo "$ac_t""$RANLIB" 1>&4
1065 echo "$ac_t""no" 1>&4
1069 if test -z "$ac_cv_prog_RANLIB"; then
1070 if test -n "$ac_tool_prefix"; then
1071 # Extract the first word of "ranlib", so it can be a program name with args.
1072 set dummy ranlib
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1074 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&4
1077 if test -n "$RANLIB"; then
1078 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1080 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_RANLIB
="ranlib"
1089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1092 RANLIB
="$ac_cv_prog_RANLIB"
1093 if test -n "$RANLIB"; then
1094 echo "$ac_t""$RANLIB" 1>&4
1096 echo "$ac_t""no" 1>&4
1104 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1105 # On Suns, sometimes $CPP names a directory.
1106 if test -n "$CPP" && test -d "$CPP"; then
1109 if test -z "$CPP"; then
1110 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&4
1113 # This must be in double quotes, not single quotes, because CPP may get
1114 # substituted into the Makefile and "${CC-cc}" will confuse make.
1116 # On the NeXT, cc -E runs the code through the compiler's parser,
1117 # not just through cpp.
1118 cat > conftest.
$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1124 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1125 ac_err
=`grep -v '^ *+' conftest.out`
1126 if test -z "$ac_err"; then
1131 CPP
="${CC-cc} -E -traditional-cpp"
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1138 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1139 ac_err
=`grep -v '^ *+' conftest.out`
1140 if test -z "$ac_err"; then
1150 ac_cv_prog_CPP
="$CPP"
1152 CPP
="$ac_cv_prog_CPP"
1154 ac_cv_prog_CPP
="$CPP"
1156 echo "$ac_t""$CPP" 1>&4
1159 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1160 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&4
1163 echo '#include <stddef.h>
1164 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1165 if eval "$ac_cpp conftest.c 2>/dev/null" \
1166 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1167 libc_cv_signed_size_t
=no
1169 libc_cv_signed_size_t
=yes
1174 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1175 if test $libc_cv_signed_size_t = yes; then
1176 cat >> confdefs.h
<<\EOF
1177 #undef __SIZE_TYPE__
1178 #define __SIZE_TYPE__ unsigned
1182 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1183 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&4
1186 cat > conftest.
$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 #define __need_size_t
1190 #define __need_wchar_t
1194 int main() { return 0; }
1196 size_t size; wchar_t wchar;
1198 #error stddef.h ignored __need_*
1200 if (&size == NULL || &wchar == NULL) abort ();
1203 if eval $ac_compile; then
1205 libc_cv_friendly_stddef
=yes
1208 libc_cv_friendly_stddef
=no
1214 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1215 if test $libc_cv_friendly_stddef = yes; then
1216 config_vars
="$config_vars
1217 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1220 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1221 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&4
1224 cat > conftest.S
<<EOF
1225 #include "confdefs.h"
1226 /* Nothing whatsoever. */
1228 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1229 libc_cv_need_minus_P
=no
1231 libc_cv_need_minus_P
=yes
1236 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1237 if test $libc_cv_need_minus_P = yes; then
1238 config_vars
="$config_vars
1239 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1242 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1243 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&4
1246 libc_cv_asm_global_directive
=UNKNOWN
1247 for ac_globl
in .globl .global
; do
1248 cat > conftest.s
<<EOF
1253 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1254 libc_cv_asm_global_directive
=${ac_globl}
1257 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1261 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1262 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1263 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1265 cat >> confdefs.h
<<EOF
1266 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1271 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1272 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&4
1275 cat > conftest.s
<<EOF
1278 .set glibc_conftest_frobozz,foo
1279 $libc_cv_asm_global_directive glibc_conftest_frobozz
1281 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1282 # (but it doesn't work), so we must do a linking check to be sure.
1283 cat > conftest1.c
<<\EOF
1284 extern int glibc_conftest_frobozz
;
1285 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1287 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1288 conftest.s conftest1.c
1>&5 2>&5; then
1289 libc_cv_asm_set_directive
=yes
1291 libc_cv_asm_set_directive
=no
1296 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1297 if test $libc_cv_asm_set_directive = yes; then
1298 cat >> confdefs.h
<<\EOF
1299 #define HAVE_ASM_SET_DIRECTIVE 1
1304 if test $elf != yes; then
1305 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1306 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&4
1309 cat > conftest.
$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1313 int main() { return 0; }
1315 asm (".section .init");
1316 asm (".section .fini");
1319 if eval $ac_compile; then
1321 libc_cv_have_initfini
=yes
1324 libc_cv_have_initfini
=no
1330 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1331 if test $libc_cv_have_initfini = yes; then
1332 cat >> confdefs.h
<<\EOF
1333 #define HAVE_INITFINI 1
1339 # sysdeps configure fragments may set these with files to be linked below.
1343 # Iterate over all the sysdep directories we will use, running their
1344 # configure fragments, and looking for a uname implementation.
1346 for dir
in $sysnames; do
1347 if test -r $sysdep_dir/$dir/configure
; then
1348 echo "$ac_t""running configure fragment for $dir" 1>&4
1349 .
$sysdep_dir/$dir/configure
1351 if test -z "$uname"; then
1352 { test -r $sysdep_dir/$dir/uname.c ||
test -r $sysdep_dir/$dir/uname.S
; } \
1359 # If we will use the generic uname implementation, we must figure out what
1360 # it will say by examining the system, and write the results in config-name.h.
1361 if test "$uname" = generic
; then
1363 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1364 if test $uname_sysname != $config_os; then
1365 config_release
=`echo $config_os | sed s/$uname_sysname//`
1368 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1369 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&4
1372 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1373 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1374 != x
$config_release; then
1375 # The configuration release is a substring of the kernel release.
1376 libc_cv_uname_release
=$kernel_release
1377 elif test x
$config_release != x
; then
1378 libc_cv_uname_release
=$config_release
1379 elif test x
$kernel_release != x
; then
1380 libc_cv_uname_release
=$kernel_release
1382 libc_cv_uname_release
=unknown
1386 echo "$ac_t""$libc_cv_uname_release" 1>&4
1387 uname_release
="$libc_cv_uname_release"
1389 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1390 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&4
1393 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1394 if test -n "$kernel_version"; then
1395 libc_cv_uname_version
="$kernel_version"
1397 libc_cv_uname_version
=unknown
1401 echo "$ac_t""$libc_cv_uname_version" 1>&4
1402 uname_version
="$libc_cv_uname_version"
1404 config_uname
=config-name.h
:config-name.
in
1406 # For non-generic uname, we don't need to create config-name.h at all.
1411 if test $gnu_ld = yes; then
1412 cat >> confdefs.h
<<\EOF
1413 #define HAVE_GNU_LD 1
1417 if test $gnu_as = yes; then
1418 cat >> confdefs.h
<<\EOF
1419 #define HAVE_GNU_AS 1
1423 if test $elf = yes; then
1424 cat >> confdefs.h
<<\EOF
1429 if test $weak = yes; then
1430 cat >> confdefs.h
<<\EOF
1431 #define HAVE_WEAK_SYMBOLS 1
1437 if test $shared = default
; then
1438 if test $gnu_ld = yes; then
1446 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1449 config_makefile
=Makefile
1453 cat > confcache
<<\EOF
1454 # This file is a shell script that caches the results of configure
1455 # tests run on this system so they can be shared between configure
1456 # scripts and configure runs. It is not useful on other systems.
1457 # If it contains results you don't want to keep, you may remove or edit it.
1459 # By default, configure uses ./config.cache as the cache file,
1460 # creating it if it does not exist already. You can give configure
1461 # the --cache-file=FILE option to use a different cache file; that is
1462 # what configure does when it calls configure scripts in
1463 # subdirectories, so they share the cache.
1464 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1465 # config.status only pays attention to the cache file if you give it the
1466 # --recheck option to rerun configure.
1469 # Ultrix sh set writes to stderr and can't be redirected directly,
1470 # and sets the high bit in the cache file unless we assign to the vars.
1472 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1474 if cmp -s $cache_file confcache
; then
1477 if test -w $cache_file; then
1478 echo "updating cache $cache_file"
1479 cat confcache
> $cache_file
1481 echo "not updating unwritable cache $cache_file"
1486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1488 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1489 # Let make expand exec_prefix.
1490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1492 # Any assignment to VPATH causes Sun make to only execute
1493 # the first set of double-colon rules, so remove it if not needed.
1494 # If there is a colon in the path, we need to keep it.
1495 if test "x$srcdir" = x.
; then
1496 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1499 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1501 DEFS
=-DHAVE_CONFIG_H
1503 # Without the "./", some shells look in PATH for config.status.
1504 : ${CONFIG_STATUS=./config.status}
1506 echo creating
$CONFIG_STATUS
1507 rm -f $CONFIG_STATUS
1508 cat > $CONFIG_STATUS <<EOF
1510 # Generated automatically by configure.
1511 # Run this file to recreate the current configuration.
1512 # This directory was configured as follows,
1513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1515 # $0 $ac_configure_args
1517 # Compiler output produced by configure, useful for debugging
1518 # configure, is in ./config.log if it exists.
1520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1523 case "\$ac_option" in
1524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1525 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1526 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1527 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1528 echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
1530 -help | --help | --hel | --he | --h)
1531 echo "\$ac_cs_usage"; exit 0 ;;
1532 *) echo "\$ac_cs_usage"; exit 1 ;;
1536 ac_given_srcdir=$srcdir
1537 ac_given_INSTALL="$INSTALL"
1539 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1541 # Protect against being on the right side of a sed subst in config.status.
1542 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1543 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1546 s%@CFLAGS@%$CFLAGS%g
1547 s%@CPPFLAGS@%$CPPFLAGS%g
1548 s%@CXXFLAGS@%$CXXFLAGS%g
1550 s%@LDFLAGS@%$LDFLAGS%g
1552 s%@exec_prefix@%$exec_prefix%g
1553 s%@prefix@%$prefix%g
1554 s%@program_transform_name@%$program_transform_name%g
1555 s%@bindir@%$bindir%g
1556 s%@sbindir@%$sbindir%g
1557 s%@libexecdir@%$libexecdir%g
1558 s%@datadir@%$datadir%g
1559 s%@sysconfdir@%$sysconfdir%g
1560 s%@sharedstatedir@%$sharedstatedir%g
1561 s%@localstatedir@%$localstatedir%g
1562 s%@libdir@%$libdir%g
1563 s%@includedir@%$includedir%g
1564 s%@oldincludedir@%$oldincludedir%g
1565 s%@infodir@%$infodir%g
1566 s%@mandir@%$mandir%g
1568 s%@host_alias@%$host_alias%g
1569 s%@host_cpu@%$host_cpu%g
1570 s%@host_vendor@%$host_vendor%g
1571 s%@host_os@%$host_os%g
1572 s%@sysnames@%$sysnames%g
1573 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1574 s%@INSTALL_DATA@%$INSTALL_DATA%g
1576 s%@build_alias@%$build_alias%g
1577 s%@build_cpu@%$build_cpu%g
1578 s%@build_vendor@%$build_vendor%g
1579 s%@build_os@%$build_os%g
1582 s%@RANLIB@%$RANLIB%g
1584 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1585 s%@uname_sysname@%$uname_sysname%g
1586 s%@uname_release@%$uname_release%g
1587 s%@uname_version@%$uname_version%g
1588 s%@gnu_ld@%$gnu_ld%g
1589 s%@gnu_as@%$gnu_as%g
1592 s%@shared@%$shared%g
1593 s%@profile@%$profile%g
1594 s%@omitfp@%$omitfp%g
1598 cat >> $CONFIG_STATUS <<EOF
1600 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1602 cat >> $CONFIG_STATUS <<\EOF
1603 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1604 # Support "outfile[:infile]", defaulting infile="outfile.in".
1606 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1607 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1608 *) ac_file_in
="${ac_file}.in" ;;
1611 # Adjust relative srcdir, etc. for subdirectories.
1613 # Remove last slash and all that follows it. Not all systems have dirname.
1614 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1615 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1616 # The file is in a subdirectory.
1617 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1618 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1619 # A "../" for each directory in $ac_dir_suffix.
1620 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1622 ac_dir_suffix
= ac_dots
=
1625 case "$ac_given_srcdir" in
1627 if test -z "$ac_dots"; then top_srcdir
=.
1628 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1629 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1631 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1632 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1635 case "$ac_given_INSTALL" in
1636 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1637 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1639 echo creating
"$ac_file"
1641 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1643 *Makefile
*) ac_comsub
="1i\\
1644 # $configure_input" ;;
1648 s%@configure_input@%$configure_input%g
1649 s%@srcdir@%$srcdir%g
1650 s%@top_srcdir@%$top_srcdir%g
1651 s%@INSTALL@%$INSTALL%g
1652 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1656 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1657 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1659 # ac_d sets the value in "#define NAME VALUE" lines.
1660 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1661 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1664 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1665 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1666 ac_uB
='\([ ]\)%\1#\2define\3'
1669 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1670 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1671 ac_eB
='$%\1#\2define\3'
1675 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
1676 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1677 # Support "outfile[:infile]", defaulting infile="outfile.in".
1679 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1680 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1681 *) ac_file_in
="${ac_file}.in" ;;
1684 echo creating
$ac_file
1686 rm -f conftest.frag conftest.
in conftest.out
1687 cp $ac_given_srcdir/$ac_file_in conftest.
in
1691 # Transform confdefs.h into a sed script conftest.vals that substitutes
1692 # the proper values into config.h.in to produce config.h. And first:
1693 # Protect against being on the right side of a sed subst in config.status.
1694 # Protect against being in an unquoted here document in config.status.
1696 cat > conftest.hdr
<<\EOF
1699 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1703 sed -n -f conftest.hdr confdefs.h > conftest.vals
1706 # This sed command replaces #undef with comments. This is necessary, for
1707 # example, in the case of _POSIX_SOURCE, which is predefined and required
1708 # on some systems where configure will not decide to define it.
1709 cat >> conftest.vals <<\EOF
1710 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1713 # Break up conftest.vals because some shells have a limit on
1714 # the size of here documents, and old seds have small limits too.
1715 # Maximum number of lines to put in a single here document.
1716 ac_max_here_lines=12
1721 ac_lines=`grep -c . conftest.vals
`
1722 # grep -c gives empty output for an empty file on some AIX systems.
1723 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1724 # Write a limited-size here document to conftest.frag.
1725 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1726 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1728 sed -f conftest.frag conftest.in > conftest.out
1730 mv conftest.out conftest.in
1732 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1734 mv conftest.tail conftest.vals
1738 cat >> $CONFIG_STATUS <<\EOF
1739 rm -f conftest.frag conftest.h
1740 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1741 cat conftest.in >> conftest.h
1743 if cmp -s $ac_file conftest.h 2>/dev/null; then
1744 echo "$ac_file is unchanged"
1748 mv conftest.h $ac_file
1754 cat >> $CONFIG_STATUS <<EOF
1755 ac_sources="`echo $libc_link_sources`"
1756 ac_dests="`echo $libc_link_dests`"
1759 cat >> $CONFIG_STATUS <<\EOF
1760 srcdir=$ac_given_srcdir
1761 while test -n "$ac_sources"; do
1762 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1763 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1765 echo "linking $srcdir/$ac_source to $ac_dest"
1767 if test ! -r $srcdir/$ac_source; then
1768 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1772 # Make relative symlinks.
1773 # Remove last slash and all that follows it. Not all systems have dirname.
1774 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1775 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1776 # The dest file is in a subdirectory.
1777 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1778 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
1779 # A "../" for each directory in $ac_dest_dir_suffix.
1780 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
1782 ac_dest_dir_suffix= ac_dots=
1786 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1787 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1790 # Make a symlink if possible; otherwise try a hard link.
1791 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1792 ln $srcdir/$ac_source $ac_dest; then :
1794 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1798 cat >> $CONFIG_STATUS <<EOF
1799 echo '$config_vars' >> config.make
1801 cat >> $CONFIG_STATUS <<\EOF
1805 chmod +x $CONFIG_STATUS
1806 rm -fr confdefs* $ac_clean_files
1807 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1