3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.10
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
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-gettext=DIR find GNU gettext source code in DIR (not needed)"
20 --with-fp if using floating-point hardware default=yes"
22 --with-gnu-binutils if using GNU binutils (as and ld)"
24 --with-gnu-ld if using GNU ld (in the binutils package)"
26 --with-gnu-as if using GNU as (in the binutils package)"
28 --with-elf if using the ELF object format"
30 --enable-libio build in GNU libio instead of GNU stdio"
32 --enable-shared build shared library [default=yes if GNU ld & ELF]"
34 --enable-profile build profiled library [default=yes]"
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.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
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.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
98 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
99 bindir
="$ac_optarg" ;;
101 -build |
--build |
--buil |
--bui |
--bu)
103 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
104 build
="$ac_optarg" ;;
106 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
107 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
108 ac_prev
=cache_file
;;
109 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
110 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
111 cache_file
="$ac_optarg" ;;
113 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
115 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
117 datadir
="$ac_optarg" ;;
119 -disable-* |
--disable-*)
120 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* |
--enable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
142 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
143 |
--exec |
--exe |
--ex)
144 ac_prev
=exec_prefix
;;
145 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
146 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
147 |
--exec=* |
--exe=* |
--ex=*)
148 exec_prefix
="$ac_optarg" ;;
150 -gas |
--gas |
--ga |
--g)
151 # Obsolete; use --with-gas.
154 -help |
--help |
--hel |
--he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host |
--host |
--hos |
--ho)
211 -host=* |
--host=* |
--hos=* |
--ho=*)
214 -includedir |
--includedir |
--includedi |
--included |
--include \
215 |
--includ |
--inclu |
--incl |
--inc)
216 ac_prev
=includedir
;;
217 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
218 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
219 includedir
="$ac_optarg" ;;
221 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
223 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
224 infodir
="$ac_optarg" ;;
226 -libdir |
--libdir |
--libdi |
--libd)
228 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
229 libdir
="$ac_optarg" ;;
231 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
232 |
--libexe |
--libex |
--libe)
233 ac_prev
=libexecdir
;;
234 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
235 |
--libexe=* |
--libex=* |
--libe=*)
236 libexecdir
="$ac_optarg" ;;
238 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
239 |
--localstate |
--localstat |
--localsta |
--localst \
240 |
--locals |
--local |
--loca |
--loc |
--lo)
241 ac_prev
=localstatedir
;;
242 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
243 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
244 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
245 localstatedir
="$ac_optarg" ;;
247 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
249 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
250 mandir
="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
260 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
261 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
264 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
265 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
266 |
--oldin |
--oldi |
--old |
--ol |
--o)
267 ac_prev
=oldincludedir
;;
268 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
269 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
270 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
271 oldincludedir
="$ac_optarg" ;;
273 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
275 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
276 prefix
="$ac_optarg" ;;
278 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
279 |
--program-pre |
--program-pr |
--program-p)
280 ac_prev
=program_prefix
;;
281 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
282 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
283 program_prefix
="$ac_optarg" ;;
285 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
286 |
--program-suf |
--program-su |
--program-s)
287 ac_prev
=program_suffix
;;
288 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
289 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
290 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
300 -program-transform-name=* |
--program-transform-name=* \
301 |
--program-transform-nam=* |
--program-transform-na=* \
302 |
--program-transform-n=* |
--program-transform-=* \
303 |
--program-transform=* |
--program-transfor=* \
304 |
--program-transfo=* |
--program-transf=* \
305 |
--program-trans=* |
--program-tran=* \
306 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
307 program_transform_name
="$ac_optarg" ;;
309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
310 |
-silent |
--silent |
--silen |
--sile |
--sil)
313 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
315 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
317 sbindir
="$ac_optarg" ;;
319 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
320 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
321 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
323 ac_prev
=sharedstatedir
;;
324 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
325 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
326 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
328 sharedstatedir
="$ac_optarg" ;;
330 -site |
--site |
--sit)
332 -site=* |
--site=* |
--sit=*)
335 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
337 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
338 srcdir
="$ac_optarg" ;;
340 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
341 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
342 ac_prev
=sysconfdir
;;
343 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
344 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
345 sysconfdir
="$ac_optarg" ;;
347 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
349 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
350 target
="$ac_optarg" ;;
352 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
355 -version |
--version |
--versio |
--versi |
--vers)
356 echo "configure generated by autoconf version 2.10"
360 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* |
--without-*)
373 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
386 |
--x-incl |
--x-inc |
--x-in |
--x-i)
387 ac_prev
=x_includes
;;
388 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
389 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
390 x_includes
="$ac_optarg" ;;
392 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
393 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
394 ac_prev
=x_libraries
;;
395 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
396 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
397 x_libraries
="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE
; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c) ;;
449 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
450 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
451 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
458 # Only set LANG and LC_ALL to C if already set.
459 # These must not be set unconditionally because not all systems understand
460 # e.g. LANG=C (notably SCO).
461 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
462 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=features.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
534 ac_n
= ac_c
='\c' ac_t
=
537 if test -r /vmunix
; then
538 kernel_id
=`strings /vmunix | grep UNIX`
539 elif test -r /dynix
; then
540 kernel_id
=`strings /dynix | grep DYNIX`
548 # This will get text that should go into config.make.
551 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
552 # Check whether --with-gmp or --without-gmp was given.
553 if test "${with_gmp+set}" = set; then
556 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
558 *) config_vars
="$config_vars
559 gmp-srcdir = $withval" ;;
564 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
565 # Check whether --with-gettext or --without-gettext was given.
566 if test "${with_gettext+set}" = set; then
567 withval
="$with_gettext"
568 case "$with_gettext" in
570 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
573 config_vars
="$config_vars
574 gettext-srcdir = $withval" ;;
580 # Check whether --with-fp or --without-fp was given.
581 if test "${with_fp+set}" = set; then
588 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
589 if test "${with_gnu_binutils+set}" = set; then
590 withval
="$with_gnu_binutils"
591 gnu_binutils
=$withval
596 # Check whether --with-gnu-ld or --without-gnu-ld was given.
597 if test "${with_gnu_ld+set}" = set; then
598 withval
="$with_gnu_ld"
604 # Check whether --with-gnu-as or --without-gnu-as was given.
605 if test "${with_gnu_as+set}" = set; then
606 withval
="$with_gnu_as"
612 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
622 # Check whether --enable-libio or --disable-libio was given.
623 if test "${enable_libio+set}" = set; then
624 enableval
="$enable_libio"
625 if test $enableval = yes; then
635 # Check whether --enable-shared or --disable-shared was given.
636 if test "${enable_shared+set}" = set; then
637 enableval
="$enable_shared"
643 # Check whether --enable-profile or --disable-profile was given.
644 if test "${enable_profile+set}" = set; then
645 enableval
="$enable_profile"
651 # Check whether --enable-omitfp or --disable-omitfp was given.
652 if test "${enable_omitfp+set}" = set; then
653 enableval
="$enable_omitfp"
661 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
662 if test -f $ac_dir/install-sh
; then
664 ac_install_sh
="$ac_aux_dir/install-sh -c"
666 elif test -f $ac_dir/install.sh
; then
668 ac_install_sh
="$ac_aux_dir/install.sh -c"
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
675 ac_config_guess
=$ac_aux_dir/config.guess
676 ac_config_sub
=$ac_aux_dir/config.sub
677 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
680 # Make sure we can run config.sub.
681 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
682 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
685 echo $ac_n "checking host system type""... $ac_c" 1>&6
688 case "$host_alias" in
692 if host_alias
=`$ac_config_guess`; then :
693 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
695 *) host_alias
=$nonopt ;;
699 host=`$ac_config_sub $host_alias`
700 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
701 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
702 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$host" 1>&6
705 # We keep the original values in `$config_*' and never modify them, so we
706 # can write them unchanged into config.make. Everything else uses
707 # $machine, $vendor, and $os, and changes them whenever convenient.
708 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
710 # Some configurations imply other options.
712 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
713 # These systems always use GNU tools.
714 gnu_ld
=yes gnu_as
=yes ;;
717 gnu
* | linux
* | sysv4
* | solaris2
*)
718 # These systems always use the ELF format.
719 if test "$host_cpu" != alpha
; then # Linux/Alpha is not fully ELF yet
725 machine
=$config_machine
726 vendor
=$config_vendor
729 # Expand the configuration machine name into a subdirectory by architecture
730 # type and particular chip.
732 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
733 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
734 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
735 i
[345]86) base_machine
=i386 machine
=i386
/$machine ;;
736 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
737 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
738 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
739 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
740 mips
*) base_machine
=mips machine
=mips
/$machine ;;
741 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
742 sparc
[6789]) base_machine
=sparc machine
=sparc
/$machine ;;
743 supersparc
) base_machine
=sparc machine
=sparc
/sparc8
;;
747 # Compute the list of sysdep directories for this configuration.
748 sysdep_dir
=$srcdir/sysdeps
749 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
750 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
754 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
759 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
760 base_os
=unix
/bsd
/bsd4.4
;;
761 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
763 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
766 base_os
=unix
/sysv
/sysv4
;;
768 base_os
=standalone
;;
773 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
776 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
780 o
=`echo $tail | sed 's/[0-9]*$//'`
781 if test $o != $tail; then
785 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
788 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
794 # For sparc/sparc9, try sparc/sparc9 and then sparc.
797 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
799 # Prepend the machine's FPU directory unless --without-fp.
800 if test "$with_fp" = yes; then
808 # Find what sysdep directories exist.
810 for b
in $base ''; do
811 for m0
in $mach ''; do
812 for v
in /$vendor ''; do
813 for o
in /$ostry ''; do
814 for m
in $mach ''; do
816 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
817 if test -d $sysdep_dir$try; then
818 sysnames
="$sysnames $try"
819 { test -n "$o" ||
test -n "$b"; } && os_used
=t
820 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
828 if test -z "$os_used" && test "$os" != none
; then
829 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
831 if test -z "$machine_used" && test "$machine" != none
; then
832 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
835 # We have now validated the configuration.
838 # If using ELF, look for an `elf' subdirectory of each machine directory.
839 # We prepend these rather than inserting them whereever the machine appears
840 # because things specified by the machine's ELF ABI should override
841 # OS-specific things, and should always be the same for any OS on the
842 # machine (otherwise what's the point of an ABI?).
843 if test "$elf" = yes; then
846 if test -d $sysdep_dir$m/elf
; then
847 elf_dirs
="$elf_dirs $m/elf"
850 sysnames
="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
854 # Remove the leading slashes.
855 sysnames
="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
858 # Expand the list of system names into a full list of directories
859 # from each element's parent name and Implies file (if present).
861 while test $# -gt 0; do
865 if test -f $sysdep_dir/$name/Implies
; then
866 # Collect more names from the `Implies' file (removing comments).
867 implied
="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
868 for x
in $implied; do
869 test -d $sysdep_dir/$x ||
echo "Warning: $name implies nonexistent $x">&2
875 # Add NAME to the list of names.
878 # Find the parent of NAME, using the empty string if it has none.
879 parent
="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
881 # Add the names implied by NAME, and NAME's parent (if it has one), to
882 # the list of names to be processed (the argument list). We prepend the
883 # implied names to the list and append the parent. We want implied
884 # directories to come before further directories inferred from the
885 # configuration components; this ensures that for sysv4, unix/common
886 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
888 sysnames
="`echo $implied $* $parent`"
889 test -n "$sysnames" && set $sysnames
892 # Add the default directories.
893 names
="$names generic stub"
895 # Now uniquize the list.
898 for name
in $names; do
899 if echo "$seen" | fgrep
-x $name >/dev
/null
; then
900 # Already in the list.
904 if test -z "$seen"; then
905 seen
="$name" sysnames
="$name"
909 sysnames
="$sysnames $name"
913 libc_cv_sysdirs
="$sysnames"
916 echo "$ac_t""$libc_cv_sysdirs" 1>&6
917 sysnames
="$libc_cv_sysdirs"
919 # Find a good install program. We prefer a C program (faster),
920 # so one script is as good as another. But avoid the broken or
921 # incompatible versions:
922 # SysV /etc/install, /usr/sbin/install
923 # SunOS /usr/etc/install
926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
928 # ./install, which can be erroneously created by make from ./install.sh.
929 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
930 if test -z "$INSTALL"; then
931 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
935 for ac_dir
in $PATH; do
936 # Account for people who put trailing slashes in PATH elements.
938 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
940 # OSF1 and SCO ODT 3.0 have their own names for install.
941 for ac_prog
in ginstall installbsd scoinst
install; do
942 if test -f $ac_dir/$ac_prog; then
943 if test $ac_prog = install &&
944 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
945 # AIX install. It has an incompatible calling convention.
946 # OSF/1 installbsd also uses dspmsg, but is usable.
949 ac_cv_path_install
="$ac_dir/$ac_prog -c"
960 if test "${ac_cv_path_install+set}" = set; then
961 INSTALL
="$ac_cv_path_install"
963 # As a last resort, use the slow shell script. We don't cache a
964 # path for INSTALL within a source directory, because that will
965 # break other packages using the cache if that directory is
966 # removed, or if the path is relative.
967 INSTALL
="$ac_install_sh"
970 echo "$ac_t""$INSTALL" 1>&6
972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
973 # It thinks the first close brace ends the variable substitution.
974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
976 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
978 if test "$INSTALL" = "${srcdir}/install-sh"; then
979 # The makefiles need to use a different form to find it in $srcdir.
980 INSTALL
='$(..)./install-sh'
982 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
983 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
987 if ln -s X conftestdata
2>/dev
/null
990 ac_cv_prog_LN_S
="ln -s"
995 LN_S
="$ac_cv_prog_LN_S"
996 if test "$ac_cv_prog_LN_S" = "ln -s"; then
997 echo "$ac_t""yes" 1>&6
999 echo "$ac_t""no" 1>&6
1002 for ac_prog
in msgfmt gmsgfmt
1004 # Extract the first word of "$ac_prog", so it can be a program name with args.
1005 set dummy
$ac_prog; ac_word
=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 if test -n "$MSGFMT"; then
1011 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1014 for ac_dir
in $PATH; do
1015 test -z "$ac_dir" && ac_dir
=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_MSGFMT
="$ac_prog"
1024 MSGFMT
="$ac_cv_prog_MSGFMT"
1025 if test -n "$MSGFMT"; then
1026 echo "$ac_t""$MSGFMT" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 test -n "$MSGFMT" && break
1033 test -n "$MSGFMT" || MSGFMT
=":"
1036 echo $ac_n "checking build system type""... $ac_c" 1>&6
1039 case "$build_alias" in
1042 NONE
) build_alias
=$host_alias ;;
1043 *) build_alias
=$nonopt ;;
1047 build
=`$ac_config_sub $build_alias`
1048 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1049 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1050 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1053 if test $host != $build; then
1054 ac_tool_prefix
=${host_alias}-
1059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1060 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1069 for ac_dir
in $PATH; do
1070 test -z "$ac_dir" && ac_dir
=.
1071 if test -f $ac_dir/$ac_word; then
1072 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1077 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1089 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1090 # On Suns, sometimes $CPP names a directory.
1091 if test -n "$CPP" && test -d "$CPP"; then
1094 if test -z "$CPP"; then
1095 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 # This must be in double quotes, not single quotes, because CPP may get
1099 # substituted into the Makefile and "${CC-cc}" will confuse make.
1101 # On the NeXT, cc -E runs the code through the compiler's parser,
1102 # not just through cpp.
1103 cat > conftest.
$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure
:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err
=`grep -v '^ *+' conftest.out`
1112 if test -z "$ac_err"; then
1117 CPP
="${CC-cc} -E -traditional-cpp"
1118 cat > conftest.
$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1125 { (eval echo configure
:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1126 ac_err
=`grep -v '^ *+' conftest.out`
1127 if test -z "$ac_err"; then
1137 ac_cv_prog_CPP
="$CPP"
1139 CPP
="$ac_cv_prog_CPP"
1141 ac_cv_prog_CPP
="$CPP"
1143 echo "$ac_t""$CPP" 1>&6
1145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1146 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$AR"; then
1152 ac_cv_prog_AR
="$AR" # Let the user override the test.
1154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1155 for ac_dir
in $PATH; do
1156 test -z "$ac_dir" && ac_dir
=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1163 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1167 if test -n "$AR"; then
1168 echo "$ac_t""$AR" 1>&6
1170 echo "$ac_t""no" 1>&6
1175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1176 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test -n "$RANLIB"; then
1182 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1185 for ac_dir
in $PATH; do
1186 test -z "$ac_dir" && ac_dir
=.
1187 if test -f $ac_dir/$ac_word; then
1188 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1195 RANLIB
="$ac_cv_prog_RANLIB"
1196 if test -n "$RANLIB"; then
1197 echo "$ac_t""$RANLIB" 1>&6
1199 echo "$ac_t""no" 1>&6
1203 if test -z "$ac_cv_prog_RANLIB"; then
1204 if test -n "$ac_tool_prefix"; then
1205 # Extract the first word of "ranlib", so it can be a program name with args.
1206 set dummy ranlib
; ac_word
=$2
1207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1208 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$RANLIB"; then
1212 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1215 for ac_dir
in $PATH; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_RANLIB
="ranlib"
1223 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1226 RANLIB
="$ac_cv_prog_RANLIB"
1227 if test -n "$RANLIB"; then
1228 echo "$ac_t""$RANLIB" 1>&6
1230 echo "$ac_t""no" 1>&6
1239 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1240 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 echo '#include <stddef.h>
1244 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1245 if eval "$ac_cpp conftest.c 2>/dev/null" \
1246 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1247 libc_cv_signed_size_t
=no
1249 libc_cv_signed_size_t
=yes
1254 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1255 if test $libc_cv_signed_size_t = yes; then
1256 cat >> confdefs.h
<<\EOF
1257 #undef __SIZE_TYPE__
1258 #define __SIZE_TYPE__ unsigned
1262 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1263 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.
$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #define __need_size_t
1270 #define __need_wchar_t
1274 int main() { return 0; }
1276 size_t size; wchar_t wchar;
1278 #error stddef.h ignored __need_*
1280 if (&size == NULL || &wchar == NULL) abort ();
1283 if { (eval echo configure
:1284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1285 libc_cv_friendly_stddef
=yes
1288 libc_cv_friendly_stddef
=no
1294 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1295 if test $libc_cv_friendly_stddef = yes; then
1296 config_vars
="$config_vars
1297 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1300 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1301 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.S
<<EOF
1305 #include "confdefs.h"
1306 /* Nothing whatsoever. */
1308 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1309 libc_cv_need_minus_P
=no
1311 libc_cv_need_minus_P
=yes
1316 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1317 if test $libc_cv_need_minus_P = yes; then
1318 config_vars
="$config_vars
1319 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1322 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1323 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 libc_cv_asm_global_directive
=UNKNOWN
1327 for ac_globl
in .globl .global
; do
1328 cat > conftest.s
<<EOF
1333 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1334 libc_cv_asm_global_directive
=${ac_globl}
1337 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1341 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1342 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1343 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1345 cat >> confdefs.h
<<EOF
1346 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1351 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1352 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.s
<<EOF
1358 .set glibc_conftest_frobozz,foo
1359 $libc_cv_asm_global_directive glibc_conftest_frobozz
1361 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1362 # (but it doesn't work), so we must do a linking check to be sure.
1363 cat > conftest1.c
<<\EOF
1364 extern int glibc_conftest_frobozz
;
1365 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1367 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1368 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1369 libc_cv_asm_set_directive
=yes
1371 libc_cv_asm_set_directive
=no
1376 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1377 if test $libc_cv_asm_set_directive = yes; then
1378 cat >> confdefs.h
<<\EOF
1379 #define HAVE_ASM_SET_DIRECTIVE 1
1384 if test $elf != yes; then
1385 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1386 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 cat > conftest.
$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1393 int main() { return 0; }
1395 asm (".section .init");
1396 asm (".section .fini");
1400 if { (eval echo configure
:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 libc_cv_have_initfini
=yes
1405 libc_cv_have_initfini
=no
1411 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1412 if test $libc_cv_have_initfini = yes; then
1413 cat >> confdefs.h
<<\EOF
1414 #define HAVE_INITFINI 1
1420 if test $elf = yes; then
1421 libc_cv_asm_underscores
=no
1423 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1424 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.
$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 asm ("_glibc_foobar:");
1431 int main() { return 0; }
1436 if { (eval echo configure
:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1438 libc_cv_asm_underscores
=yes
1441 libc_cv_asm_underscores
=no
1447 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1449 if test $libc_cv_asm_underscores = no
; then
1450 cat >> confdefs.h
<<\EOF
1451 #define NO_UNDERSCORES 1
1456 if test $elf = yes; then
1457 libc_cv_weak_symbols
=yes
1458 libc_cv_asm_weak_directive
=yes
1459 libc_cv_asm_weakext_directive
=no
1461 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1462 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.s
<<EOF
1467 ${libc_cv_asm_global_directive} foo
1470 .weak bar; bar = foo
1472 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1473 libc_cv_asm_weak_directive
=yes
1475 libc_cv_asm_weak_directive
=no
1480 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1482 if test $libc_cv_asm_weak_directive = no
; then
1483 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1484 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 cat > conftest.s
<<EOF
1489 ${libc_cv_asm_global_directive} foo
1494 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1495 libc_cv_asm_weakext_directive
=yes
1497 libc_cv_asm_weakext_directive
=no
1502 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1507 if test $libc_cv_asm_weak_directive = yes; then
1508 cat >> confdefs.h
<<\EOF
1509 #define HAVE_ASM_WEAK_DIRECTIVE 1
1512 elif test $libc_cv_asm_weakext_directive = yes; then
1513 cat >> confdefs.h
<<\EOF
1514 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1519 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1520 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.c
<<\EOF
1524 main
() { exit (0); }
1526 if ${CC-cc} $CFLAGS -Wl,--no-whole-archive \
1527 -o conftest conftest.c
2>/dev
/null
; then
1528 libc_cv_ld_no_whole_archive
=yes
1530 libc_cv_ld_no_whole_archive
=no
1535 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1537 ### End of automated tests.
1538 ### Now run sysdeps configure fragments.
1540 # sysdeps configure fragments may set these with files to be linked below.
1544 # Iterate over all the sysdep directories we will use, running their
1545 # configure fragments, and looking for a uname implementation.
1547 for dir
in $sysnames; do
1548 if test -r $sysdep_dir/$dir/configure
; then
1549 echo "$ac_t""running configure fragment for $dir" 1>&6
1550 .
$sysdep_dir/$dir/configure
1553 if test -z "$uname"; then
1554 if test -r $sysdep_dir/$dir/uname.c ||
1555 test -r $sysdep_dir/$dir/uname.S ||
1556 { test -r $sysdep_dir/$dir/syscalls.list
&&
1557 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
1565 # If we will use the generic uname implementation, we must figure out what
1566 # it will say by examining the system, and write the results in config-name.h.
1567 if test "$uname" = generic
; then
1569 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1570 if test $uname_sysname != $config_os; then
1571 config_release
=`echo $config_os | sed s/$uname_sysname//`
1574 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1575 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1579 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1580 != x
$config_release; then
1581 # The configuration release is a substring of the kernel release.
1582 libc_cv_uname_release
=$kernel_release
1583 elif test x
$config_release != x
; then
1584 libc_cv_uname_release
=$config_release
1585 elif test x
$kernel_release != x
; then
1586 libc_cv_uname_release
=$kernel_release
1588 libc_cv_uname_release
=unknown
1592 echo "$ac_t""$libc_cv_uname_release" 1>&6
1593 uname_release
="$libc_cv_uname_release"
1595 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1596 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1600 if test -n "$kernel_version"; then
1601 libc_cv_uname_version
="$kernel_version"
1603 libc_cv_uname_version
=unknown
1607 echo "$ac_t""$libc_cv_uname_version" 1>&6
1608 uname_version
="$libc_cv_uname_version"
1610 config_uname
=config-name.h
:config-name.
in
1612 # For non-generic uname, we don't need to create config-name.h at all.
1616 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1619 libio
) cat >> confdefs.h
<<\EOF
1620 #define USE_IN_LIBIO 1
1623 default
) stdio
=stdio
;;
1625 echo "$ac_t""$stdio" 1>&6
1628 if test $gnu_ld = yes; then
1629 cat >> confdefs.h
<<\EOF
1630 #define HAVE_GNU_LD 1
1634 if test $gnu_as = yes; then
1635 cat >> confdefs.h
<<\EOF
1636 #define HAVE_GNU_AS 1
1640 if test $elf = yes; then
1641 cat >> confdefs.h
<<\EOF
1648 if test $shared = default
; then
1649 if test $gnu_ld = yes; then
1656 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1659 config_makefile
=Makefile
1663 cat > confcache
<<\EOF
1664 # This file is a shell script that caches the results of configure
1665 # tests run on this system so they can be shared between configure
1666 # scripts and configure runs. It is not useful on other systems.
1667 # If it contains results you don't want to keep, you may remove or edit it.
1669 # By default, configure uses ./config.cache as the cache file,
1670 # creating it if it does not exist already. You can give configure
1671 # the --cache-file=FILE option to use a different cache file; that is
1672 # what configure does when it calls configure scripts in
1673 # subdirectories, so they share the cache.
1674 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1675 # config.status only pays attention to the cache file if you give it the
1676 # --recheck option to rerun configure.
1679 # Ultrix sh set writes to stderr and can't be redirected directly,
1680 # and sets the high bit in the cache file unless we assign to the vars.
1682 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1684 if cmp -s $cache_file confcache
; then
1687 if test -w $cache_file; then
1688 echo "updating cache $cache_file"
1689 cat confcache
> $cache_file
1691 echo "not updating unwritable cache $cache_file"
1696 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1698 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1699 # Let make expand exec_prefix.
1700 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1702 # Any assignment to VPATH causes Sun make to only execute
1703 # the first set of double-colon rules, so remove it if not needed.
1704 # If there is a colon in the path, we need to keep it.
1705 if test "x$srcdir" = x.
; then
1706 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1709 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1711 DEFS
=-DHAVE_CONFIG_H
1713 # Without the "./", some shells look in PATH for config.status.
1714 : ${CONFIG_STATUS=./config.status}
1716 echo creating
$CONFIG_STATUS
1717 rm -f $CONFIG_STATUS
1718 cat > $CONFIG_STATUS <<EOF
1720 # Generated automatically by configure.
1721 # Run this file to recreate the current configuration.
1722 # This directory was configured as follows,
1723 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1725 # $0 $ac_configure_args
1727 # Compiler output produced by configure, useful for debugging
1728 # configure, is in ./config.log if it exists.
1730 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1733 case "\$ac_option" in
1734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1735 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1736 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1737 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1738 echo "$CONFIG_STATUS generated by autoconf version 2.10"
1740 -help | --help | --hel | --he | --h)
1741 echo "\$ac_cs_usage"; exit 0 ;;
1742 *) echo "\$ac_cs_usage"; exit 1 ;;
1746 ac_given_srcdir=$srcdir
1747 ac_given_INSTALL="$INSTALL"
1749 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1751 cat >> $CONFIG_STATUS <<EOF
1753 # Protect against being on the right side of a sed subst in config.status.
1754 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1755 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1758 s%@CFLAGS@%$CFLAGS%g
1759 s%@CPPFLAGS@%$CPPFLAGS%g
1760 s%@CXXFLAGS@%$CXXFLAGS%g
1762 s%@LDFLAGS@%$LDFLAGS%g
1764 s%@exec_prefix@%$exec_prefix%g
1765 s%@prefix@%$prefix%g
1766 s%@program_transform_name@%$program_transform_name%g
1767 s%@bindir@%$bindir%g
1768 s%@sbindir@%$sbindir%g
1769 s%@libexecdir@%$libexecdir%g
1770 s%@datadir@%$datadir%g
1771 s%@sysconfdir@%$sysconfdir%g
1772 s%@sharedstatedir@%$sharedstatedir%g
1773 s%@localstatedir@%$localstatedir%g
1774 s%@libdir@%$libdir%g
1775 s%@includedir@%$includedir%g
1776 s%@oldincludedir@%$oldincludedir%g
1777 s%@infodir@%$infodir%g
1778 s%@mandir@%$mandir%g
1780 s%@host_alias@%$host_alias%g
1781 s%@host_cpu@%$host_cpu%g
1782 s%@host_vendor@%$host_vendor%g
1783 s%@host_os@%$host_os%g
1784 s%@base_machine@%$base_machine%g
1785 s%@sysnames@%$sysnames%g
1786 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1787 s%@INSTALL_DATA@%$INSTALL_DATA%g
1789 s%@MSGFMT@%$MSGFMT%g
1791 s%@build_alias@%$build_alias%g
1792 s%@build_cpu@%$build_cpu%g
1793 s%@build_vendor@%$build_vendor%g
1794 s%@build_os@%$build_os%g
1798 s%@RANLIB@%$RANLIB%g
1799 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1800 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
1801 s%@uname_sysname@%$uname_sysname%g
1802 s%@uname_release@%$uname_release%g
1803 s%@uname_version@%$uname_version%g
1805 s%@gnu_ld@%$gnu_ld%g
1806 s%@gnu_as@%$gnu_as%g
1808 s%@shared@%$shared%g
1809 s%@profile@%$profile%g
1810 s%@omitfp@%$omitfp%g
1814 cat >> $CONFIG_STATUS <<EOF
1816 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1818 cat >> $CONFIG_STATUS <<\EOF
1819 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1820 # Support "outfile[:infile]", defaulting infile="outfile.in".
1822 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1823 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1824 *) ac_file_in
="${ac_file}.in" ;;
1827 # Adjust relative srcdir, etc. for subdirectories.
1829 # Remove last slash and all that follows it. Not all systems have dirname.
1830 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1832 # The file is in a subdirectory.
1833 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1834 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1835 # A "../" for each directory in $ac_dir_suffix.
1836 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1838 ac_dir_suffix
= ac_dots
=
1841 case "$ac_given_srcdir" in
1843 if test -z "$ac_dots"; then top_srcdir
=.
1844 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1845 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1847 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1848 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1851 case "$ac_given_INSTALL" in
1852 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1853 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1855 echo creating
"$ac_file"
1857 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1859 *Makefile
*) ac_comsub
="1i\\
1860 # $configure_input" ;;
1864 s%@configure_input@%$configure_input%g
1865 s%@srcdir@%$srcdir%g
1866 s%@top_srcdir@%$top_srcdir%g
1867 s%@INSTALL@%$INSTALL%g
1868 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1872 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1873 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1875 # ac_d sets the value in "#define NAME VALUE" lines.
1876 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1877 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1880 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1881 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1882 ac_uB
='\([ ]\)%\1#\2define\3'
1885 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1886 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1887 ac_eB
='$%\1#\2define\3'
1891 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
1892 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1893 # Support "outfile[:infile]", defaulting infile="outfile.in".
1895 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1896 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1897 *) ac_file_in
="${ac_file}.in" ;;
1900 echo creating
$ac_file
1902 rm -f conftest.frag conftest.
in conftest.out
1903 cp $ac_given_srcdir/$ac_file_in conftest.
in
1907 # Transform confdefs.h into a sed script conftest.vals that substitutes
1908 # the proper values into config.h.in to produce config.h. And first:
1909 # Protect against being on the right side of a sed subst in config.status.
1910 # Protect against being in an unquoted here document in config.status.
1912 cat > conftest.hdr
<<\EOF
1915 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1919 sed -n -f conftest.hdr confdefs.h > conftest.vals
1922 # This sed command replaces #undef with comments. This is necessary, for
1923 # example, in the case of _POSIX_SOURCE, which is predefined and required
1924 # on some systems where configure will not decide to define it.
1925 cat >> conftest.vals <<\EOF
1926 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1929 # Break up conftest.vals because some shells have a limit on
1930 # the size of here documents, and old seds have small limits too.
1931 # Maximum number of lines to put in a single here document.
1932 ac_max_here_lines=12
1937 ac_lines=`grep -c . conftest.vals
`
1938 # grep -c gives empty output for an empty file on some AIX systems.
1939 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1940 # Write a limited-size here document to conftest.frag.
1941 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1942 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1944 sed -f conftest.frag conftest.in > conftest.out
1946 mv conftest.out conftest.in
1948 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1950 mv conftest.tail conftest.vals
1954 cat >> $CONFIG_STATUS <<\EOF
1955 rm -f conftest.frag conftest.h
1956 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1957 cat conftest.in >> conftest.h
1959 if cmp -s $ac_file conftest.h 2>/dev/null; then
1960 echo "$ac_file is unchanged"
1963 # Remove last slash and all that follows it. Not all systems have dirname.
1964 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1966 # The file is in a subdirectory.
1967 test ! -d "$ac_dir" && mkdir "$ac_dir"
1970 mv conftest.h $ac_file
1976 cat >> $CONFIG_STATUS <<EOF
1977 ac_sources="`echo $libc_link_sources`"
1978 ac_dests="`echo $libc_link_dests`"
1981 cat >> $CONFIG_STATUS <<\EOF
1982 srcdir=$ac_given_srcdir
1983 while test -n "$ac_sources"; do
1984 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1985 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1987 echo "linking $srcdir/$ac_source to $ac_dest"
1989 if test ! -r $srcdir/$ac_source; then
1990 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1994 # Make relative symlinks.
1995 # Remove last slash and all that follows it. Not all systems have dirname.
1996 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1997 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1998 # The dest file is in a subdirectory.
1999 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2000 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2001 # A "../" for each directory in $ac_dest_dir_suffix.
2002 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2004 ac_dest_dir_suffix= ac_dots=
2008 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2009 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2012 # Make a symlink if possible; otherwise try a hard link.
2013 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2014 ln $srcdir/$ac_source $ac_dest; then :
2016 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2020 cat >> $CONFIG_STATUS <<EOF
2021 echo '$config_vars' >> config.make
2023 cat >> $CONFIG_STATUS <<\EOF
2027 chmod +x $CONFIG_STATUS
2028 rm -fr confdefs* $ac_clean_files
2029 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1