3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.7
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-gettext=DIR find GNU gettext source code in DIR (not needed)"
20 --with-fp if using floating-point hardware"
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 --with-weak-symbols if weak symbols are available in as and ld"
32 --enable-libio build in GNU libio instead of GNU stdio"
34 --enable-shared build shared library [default=yes if GNU ld & ELF]"
36 --enable-profile build profiled library [default=yes]"
38 --enable-omitfp build undebuggable optimized library [default=no]"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
100 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
101 bindir
="$ac_optarg" ;;
103 -build |
--build |
--buil |
--bui |
--bu)
105 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
106 build
="$ac_optarg" ;;
108 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
109 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
110 ac_prev
=cache_file
;;
111 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
112 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
113 cache_file
="$ac_optarg" ;;
115 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
119 datadir
="$ac_optarg" ;;
121 -disable-* |
--disable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* |
--enable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
145 |
--exec |
--exe |
--ex)
146 ac_prev
=exec_prefix
;;
147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
149 |
--exec=* |
--exe=* |
--ex=*)
150 exec_prefix
="$ac_optarg" ;;
152 -gas |
--gas |
--ga |
--g)
153 # Obsolete; use --with-gas.
156 -help |
--help |
--hel |
--he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host |
--host |
--hos |
--ho)
213 -host=* |
--host=* |
--hos=* |
--ho=*)
216 -includedir |
--includedir |
--includedi |
--included |
--include \
217 |
--includ |
--inclu |
--incl |
--inc)
218 ac_prev
=includedir
;;
219 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
220 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
221 includedir
="$ac_optarg" ;;
223 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
225 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
226 infodir
="$ac_optarg" ;;
228 -libdir |
--libdir |
--libdi |
--libd)
230 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
231 libdir
="$ac_optarg" ;;
233 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
234 |
--libexe |
--libex |
--libe)
235 ac_prev
=libexecdir
;;
236 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
237 |
--libexe=* |
--libex=* |
--libe=*)
238 libexecdir
="$ac_optarg" ;;
240 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
241 |
--localstate |
--localstat |
--localsta |
--localst \
242 |
--locals |
--local |
--loca |
--loc |
--lo)
243 ac_prev
=localstatedir
;;
244 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
245 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
246 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
247 localstatedir
="$ac_optarg" ;;
249 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
251 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
252 mandir
="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
262 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
263 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
266 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
267 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
268 |
--oldin |
--oldi |
--old |
--ol |
--o)
269 ac_prev
=oldincludedir
;;
270 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
271 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
272 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
273 oldincludedir
="$ac_optarg" ;;
275 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
277 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
278 prefix
="$ac_optarg" ;;
280 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
281 |
--program-pre |
--program-pr |
--program-p)
282 ac_prev
=program_prefix
;;
283 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
284 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
285 program_prefix
="$ac_optarg" ;;
287 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
288 |
--program-suf |
--program-su |
--program-s)
289 ac_prev
=program_suffix
;;
290 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
291 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
292 program_suffix
="$ac_optarg" ;;
294 -program-transform-name |
--program-transform-name \
295 |
--program-transform-nam |
--program-transform-na \
296 |
--program-transform-n |
--program-transform- \
297 |
--program-transform |
--program-transfor \
298 |
--program-transfo |
--program-transf \
299 |
--program-trans |
--program-tran \
300 |
--progr-tra |
--program-tr |
--program-t)
301 ac_prev
=program_transform_name
;;
302 -program-transform-name=* |
--program-transform-name=* \
303 |
--program-transform-nam=* |
--program-transform-na=* \
304 |
--program-transform-n=* |
--program-transform-=* \
305 |
--program-transform=* |
--program-transfor=* \
306 |
--program-transfo=* |
--program-transf=* \
307 |
--program-trans=* |
--program-tran=* \
308 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
309 program_transform_name
="$ac_optarg" ;;
311 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
312 |
-silent |
--silent |
--silen |
--sile |
--sil)
315 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
317 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
319 sbindir
="$ac_optarg" ;;
321 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
322 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
323 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
325 ac_prev
=sharedstatedir
;;
326 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
327 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
328 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
330 sharedstatedir
="$ac_optarg" ;;
332 -site |
--site |
--sit)
334 -site=* |
--site=* |
--sit=*)
337 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
339 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
340 srcdir
="$ac_optarg" ;;
342 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
343 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
344 ac_prev
=sysconfdir
;;
345 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
346 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
347 sysconfdir
="$ac_optarg" ;;
349 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
351 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
352 target
="$ac_optarg" ;;
354 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
357 -version |
--version |
--versio |
--versi |
--vers)
358 echo "configure generated by autoconf version 2.7"
362 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* |
--without-*)
375 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
388 |
--x-incl |
--x-inc |
--x-in |
--x-i)
389 ac_prev
=x_includes
;;
390 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
391 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
392 x_includes
="$ac_optarg" ;;
394 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
395 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
396 ac_prev
=x_libraries
;;
397 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
398 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
399 x_libraries
="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE
; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 4 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
450 |
--no-cr |
--no-c) ;;
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
453 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
460 # Only set LANG and LC_ALL to C if already set.
461 # These must not be set unconditionally because not all systems understand
462 # e.g. LANG=C (notably SCO).
463 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
464 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file
=features.h
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
536 ac_n
= ac_c
='\c' ac_t
=
539 if test -r /vmunix
; then
540 kernel_id
=`strings /vmunix | grep UNIX`
541 elif test -r /dynix
; then
542 kernel_id
=`strings /dynix | grep DYNIX`
550 # This will get text that should go into config.make.
553 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
554 # Check whether --with-gmp or --without-gmp was given.
555 if test "${with_gmp+set}" = set; then
558 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
560 *) config_vars
="$config_vars
561 gmp-srcdir = $withval" ;;
566 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
567 # Check whether --with-gettext or --without-gettext was given.
568 if test "${with_gettext+set}" = set; then
569 withval
="$with_gettext"
570 case "$with_gettext" in
572 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
575 config_vars
="$config_vars
576 gettext-srcdir = $withval" ;;
582 # Check whether --with-fp or --without-fp was given.
583 if test "${with_fp+set}" = set; then
590 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
591 if test "${with_gnu_binutils+set}" = set; then
592 withval
="$with_gnu_binutils"
593 gnu_binutils
=$withval
598 # Check whether --with-gnu-ld or --without-gnu-ld was given.
599 if test "${with_gnu_ld+set}" = set; then
600 withval
="$with_gnu_ld"
606 # Check whether --with-gnu-as or --without-gnu-as was given.
607 if test "${with_gnu_as+set}" = set; then
608 withval
="$with_gnu_as"
614 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
615 # Check whether --with-elf or --without-elf was given.
616 if test "${with_elf+set}" = set; then
623 # Check whether --with-weak-symbols or --without-weak-symbols was given.
624 if test "${with_weak_symbols+set}" = set; then
625 withval
="$with_weak_symbols"
632 # Check whether --enable-libio or --disable-libio was given.
633 if test "${enable_libio+set}" = set; then
634 enableval
="$enable_libio"
635 if test $enableval = yes; then
645 # Check whether --enable-shared or --disable-shared was given.
646 if test "${enable_shared+set}" = set; then
647 enableval
="$enable_shared"
653 # Check whether --enable-profile or --disable-profile was given.
654 if test "${enable_profile+set}" = set; then
655 enableval
="$enable_profile"
661 # Check whether --enable-omitfp or --disable-omitfp was given.
662 if test "${enable_omitfp+set}" = set; then
663 enableval
="$enable_omitfp"
671 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
672 if test -f $ac_dir/install-sh
; then
674 ac_install_sh
="$ac_aux_dir/install-sh -c"
676 elif test -f $ac_dir/install.sh
; then
678 ac_install_sh
="$ac_aux_dir/install.sh -c"
682 if test -z "$ac_aux_dir"; then
683 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
685 ac_config_guess
=$ac_aux_dir/config.guess
686 ac_config_sub
=$ac_aux_dir/config.sub
687 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 echo $ac_n "checking host system type""... $ac_c" 1>&4
698 case "$host_alias" in
702 if host_alias
=`$ac_config_guess`; then :
703 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 *) host_alias
=$nonopt ;;
709 host=`$ac_config_sub $host_alias`
710 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
711 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
712 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$host" 1>&4
715 # We keep the original values in `$config_*' and never modify them, so we
716 # can write them unchanged into config.make. Everything else uses
717 # $machine, $vendor, and $os, and changes them whenever convenient.
718 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
720 # Some configurations imply other options.
722 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
723 # These systems always use GNU tools.
724 gnu_ld
=yes gnu_as
=yes
727 gnu
* | linux
* | sysv4
* | solaris2
*)
728 # These systems always use the ELF format.
732 # Compute the list of sysdep directories for this configuration.
733 sysdep_dir
=$srcdir/sysdeps
734 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
735 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&4
738 machine
=$config_machine
739 vendor
=$config_vendor
742 # Expand the configuration machine name into a subdirectory by architecture
743 # type and particular chip.
745 a29k | am29000
) machine
=a29k
;;
746 alpha
*) machine
=alpha
/$machine ;;
747 hppa
*) machine
=hppa
/$machine ;;
748 i
[345]86) machine
=i386
/$machine ;;
749 m680?
0) machine
=m68k
/$machine ;;
750 m68k
) machine
=m68k
/m68020
;;
751 m88???
) machine
=m88k
/$machine ;;
752 m88k
) machine
=m88k
/m88100
;;
753 mips
*) machine
=mips
/$machine ;;
754 mips64
*) machine
=mips
/mips64
/$machine ;;
755 sparc
[6789]) machine
=sparc
/$machine ;;
756 supersparc
) machine
=sparc
/sparc8
;;
759 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
760 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
765 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
766 base_os
=unix
/bsd
/bsd4.4
;;
767 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
769 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
772 base_os
=unix
/sysv
/sysv4
;;
774 base_os
=standalone
;;
779 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
782 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
786 o
=`echo $tail | sed 's/[0-9]*$//'`
787 if test $o != $tail; then
791 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
794 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
800 # For sparc/sparc9, try sparc/sparc9 and then sparc.
803 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
805 # Prepend the machine's FPU directory unless --without-fp.
806 if test "$with_fp" = yes; then
814 # Find what sysdep directories exist.
816 for b
in $base ''; do
817 for m0
in $mach ''; do
818 for v
in /$vendor ''; do
819 for o
in /$ostry ''; do
820 for m
in $mach ''; do
822 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
823 if test -d $sysdep_dir$try; then
824 sysnames
="$sysnames $try"
825 { test -n "$o" ||
test -n "$b"; } && os_used
=t
826 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
834 if test -z "$os_used" && test "$os" != none
; then
835 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
837 if test -z "$machine_used" && test "$machine" != none
; then
838 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
841 # We have now validated the configuration.
844 # If using ELF, look for an `elf' subdirectory of each machine directory.
845 # We prepend these rather than inserting them whereever the machine appears
846 # because things specified by the machine's ELF ABI should override
847 # OS-specific things, and should always be the same for any OS on the
848 # machine (otherwise what's the point of an ABI?).
849 if test "$elf" = yes; then
852 if test -d $sysdep_dir$m/elf
; then
853 elf_dirs
="$elf_dirs $m/elf"
856 sysnames
="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
860 # Remove the leading slashes.
861 sysnames
="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
864 # Expand the list of system names into a full list of directories
865 # from each element's parent name and Implies file (if present).
867 while test $# -gt 0; do
871 if test -f $sysdep_dir/$name/Implies
; then
872 # Collect more names from the `Implies' file (removing comments).
873 implied
="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
874 for x
in $implied; do
875 test -d $sysdep_dir/$x ||
echo "Warning: $name implies nonexistent $x">&2
881 # Add NAME to the list of names.
884 # Find the parent of NAME, using the empty string if it has none.
885 parent
="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
887 # Add the names implied by NAME, and NAME's parent (if it has one), to
888 # the list of names to be processed (the argument list). We prepend the
889 # implied names to the list and append the parent. We want implied
890 # directories to come before further directories inferred from the
891 # configuration components; this ensures that for sysv4, unix/common
892 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
894 sysnames
="`echo $implied $* $parent`"
895 test -n "$sysnames" && set $sysnames
898 # Add the default directories.
899 names
="$names generic stub"
901 # Now uniquize the list.
904 for name
in $names; do
905 if echo "$seen" | fgrep
-x $name >/dev
/null
; then
906 # Already in the list.
910 if test -z "$seen"; then
911 seen
="$name" sysnames
="$name"
915 sysnames
="$sysnames $name"
919 libc_cv_sysdirs
="$sysnames"
922 echo "$ac_t""$libc_cv_sysdirs" 1>&4
923 sysnames
="$libc_cv_sysdirs"
925 # Find a good install program. We prefer a C program (faster),
926 # so one script is as good as another. But avoid the broken or
927 # incompatible versions:
928 # SysV /etc/install, /usr/sbin/install
929 # SunOS /usr/etc/install
932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
934 # ./install, which can be erroneously created by make from ./install.sh.
935 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
936 if test -z "$INSTALL"; then
937 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&4
940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
941 for ac_dir
in $PATH; do
942 # Account for people who put trailing slashes in PATH elements.
944 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
946 # OSF1 and SCO ODT 3.0 have their own names for install.
947 for ac_prog
in ginstall installbsd scoinst
install; do
948 if test -f $ac_dir/$ac_prog; then
949 if test $ac_prog = install &&
950 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
951 # AIX install. It has an incompatible calling convention.
952 # OSF/1 installbsd also uses dspmsg, but is usable.
955 ac_cv_path_install
="$ac_dir/$ac_prog -c"
966 if test "${ac_cv_path_install+set}" = set; then
967 INSTALL
="$ac_cv_path_install"
969 # As a last resort, use the slow shell script. We don't cache a
970 # path for INSTALL within a source directory, because that will
971 # break other packages using the cache if that directory is
972 # removed, or if the path is relative.
973 INSTALL
="$ac_install_sh"
976 echo "$ac_t""$INSTALL" 1>&4
978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
979 # It thinks the first close brace ends the variable substitution.
980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
982 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
984 if test "$INSTALL" = "${srcdir}/install-sh"; then
985 # The makefiles need to use a different form to find it in $srcdir.
986 INSTALL
='$(..)./install-sh'
989 echo $ac_n "checking build system type""... $ac_c" 1>&4
992 case "$build_alias" in
995 NONE
) build_alias
=$host_alias ;;
996 *) build_alias
=$nonopt ;;
1000 build
=`$ac_config_sub $build_alias`
1001 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1002 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1003 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$build" 1>&4
1006 if test $host != $build; then
1007 ac_tool_prefix
=${host_alias}-
1012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1013 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1015 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&4
1018 if test -n "$CC"; then
1019 ac_cv_prog_CC
="$CC" # Let the user override the test.
1021 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1022 for ac_dir
in $PATH; do
1023 test -z "$ac_dir" && ac_dir
=.
1024 if test -f $ac_dir/$ac_word; then
1025 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1030 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&4
1037 echo "$ac_t""no" 1>&4
1042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1043 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1045 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&4
1048 if test -n "$AR"; then
1049 ac_cv_prog_AR
="$AR" # Let the user override the test.
1051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1052 for ac_dir
in $PATH; do
1053 test -z "$ac_dir" && ac_dir
=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1060 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1064 if test -n "$AR"; then
1065 echo "$ac_t""$AR" 1>&4
1067 echo "$ac_t""no" 1>&4
1072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1073 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1075 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&4
1078 if test -n "$RANLIB"; then
1079 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1082 for ac_dir
in $PATH; do
1083 test -z "$ac_dir" && ac_dir
=.
1084 if test -f $ac_dir/$ac_word; then
1085 ac_cv_prog_RANLIB
="${ac_tool_prefix}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
1100 if test -z "$ac_cv_prog_RANLIB"; then
1101 if test -n "$ac_tool_prefix"; then
1102 # Extract the first word of "ranlib", so it can be a program name with args.
1103 set dummy ranlib
; ac_word
=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1105 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&4
1108 if test -n "$RANLIB"; then
1109 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1112 for ac_dir
in $PATH; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_RANLIB
="ranlib"
1120 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1123 RANLIB
="$ac_cv_prog_RANLIB"
1124 if test -n "$RANLIB"; then
1125 echo "$ac_t""$RANLIB" 1>&4
1127 echo "$ac_t""no" 1>&4
1135 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1136 # On Suns, sometimes $CPP names a directory.
1137 if test -n "$CPP" && test -d "$CPP"; then
1140 if test -z "$CPP"; then
1141 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&4
1144 # This must be in double quotes, not single quotes, because CPP may get
1145 # substituted into the Makefile and "${CC-cc}" will confuse make.
1147 # On the NeXT, cc -E runs the code through the compiler's parser,
1148 # not just through cpp.
1149 cat > conftest.
$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1155 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1156 { (eval echo configure
:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1157 ac_err
=`grep -v '^ *+' conftest.out`
1158 if test -z "$ac_err"; then
1163 CPP
="${CC-cc} -E -traditional-cpp"
1164 cat > conftest.
$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1170 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1171 { (eval echo configure
:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1172 ac_err
=`grep -v '^ *+' conftest.out`
1173 if test -z "$ac_err"; then
1183 ac_cv_prog_CPP
="$CPP"
1185 CPP
="$ac_cv_prog_CPP"
1187 ac_cv_prog_CPP
="$CPP"
1189 echo "$ac_t""$CPP" 1>&4
1192 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1193 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&4
1196 echo '#include <stddef.h>
1197 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1198 if eval "$ac_cpp conftest.c 2>/dev/null" \
1199 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1200 libc_cv_signed_size_t
=no
1202 libc_cv_signed_size_t
=yes
1207 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1208 if test $libc_cv_signed_size_t = yes; then
1209 cat >> confdefs.h
<<\EOF
1210 #undef __SIZE_TYPE__
1211 #define __SIZE_TYPE__ unsigned
1215 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1216 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&4
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #define __need_size_t
1223 #define __need_wchar_t
1227 int main() { return 0; }
1229 size_t size; wchar_t wchar;
1231 #error stddef.h ignored __need_*
1233 if (&size == NULL || &wchar == NULL) abort ();
1236 if { (eval echo configure
:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1238 libc_cv_friendly_stddef
=yes
1241 libc_cv_friendly_stddef
=no
1247 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1248 if test $libc_cv_friendly_stddef = yes; then
1249 config_vars
="$config_vars
1250 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1253 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1254 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&4
1257 cat > conftest.S
<<EOF
1258 #include "confdefs.h"
1259 /* Nothing whatsoever. */
1261 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1262 libc_cv_need_minus_P
=no
1264 libc_cv_need_minus_P
=yes
1269 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1270 if test $libc_cv_need_minus_P = yes; then
1271 config_vars
="$config_vars
1272 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1275 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1276 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&4
1279 libc_cv_asm_global_directive
=UNKNOWN
1280 for ac_globl
in .globl .global
; do
1281 cat > conftest.s
<<EOF
1286 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1287 libc_cv_asm_global_directive
=${ac_globl}
1290 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1294 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1295 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1296 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1298 cat >> confdefs.h
<<EOF
1299 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1304 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1305 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&4
1308 cat > conftest.s
<<EOF
1311 .set glibc_conftest_frobozz,foo
1312 $libc_cv_asm_global_directive glibc_conftest_frobozz
1314 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1315 # (but it doesn't work), so we must do a linking check to be sure.
1316 cat > conftest1.c
<<\EOF
1317 extern int glibc_conftest_frobozz
;
1318 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1320 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1321 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1322 libc_cv_asm_set_directive
=yes
1324 libc_cv_asm_set_directive
=no
1329 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1330 if test $libc_cv_asm_set_directive = yes; then
1331 cat >> confdefs.h
<<\EOF
1332 #define HAVE_ASM_SET_DIRECTIVE 1
1337 if test $elf != yes; then
1338 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1339 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&4
1342 cat > conftest.
$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1346 int main() { return 0; }
1348 asm (".section .init");
1349 asm (".section .fini");
1352 if { (eval echo configure
:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354 libc_cv_have_initfini
=yes
1357 libc_cv_have_initfini
=no
1363 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1364 if test $libc_cv_have_initfini = yes; then
1365 cat >> confdefs.h
<<\EOF
1366 #define HAVE_INITFINI 1
1372 # sysdeps configure fragments may set these with files to be linked below.
1376 # Iterate over all the sysdep directories we will use, running their
1377 # configure fragments, and looking for a uname implementation.
1379 for dir
in $sysnames; do
1380 if test -r $sysdep_dir/$dir/configure
; then
1381 echo "$ac_t""running configure fragment for $dir" 1>&4
1382 .
$sysdep_dir/$dir/configure
1385 if test -z "$uname"; then
1386 if test -r $sysdep_dir/$dir/uname.c ||
1387 test -r $sysdep_dir/$dir/uname.S ||
1388 { test -r $sysdep_dir/$dir/syscalls.list
&&
1389 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
1397 # If we will use the generic uname implementation, we must figure out what
1398 # it will say by examining the system, and write the results in config-name.h.
1399 if test "$uname" = generic
; then
1401 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1402 if test $uname_sysname != $config_os; then
1403 config_release
=`echo $config_os | sed s/$uname_sysname//`
1406 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1407 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&4
1410 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1411 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1412 != x
$config_release; then
1413 # The configuration release is a substring of the kernel release.
1414 libc_cv_uname_release
=$kernel_release
1415 elif test x
$config_release != x
; then
1416 libc_cv_uname_release
=$config_release
1417 elif test x
$kernel_release != x
; then
1418 libc_cv_uname_release
=$kernel_release
1420 libc_cv_uname_release
=unknown
1424 echo "$ac_t""$libc_cv_uname_release" 1>&4
1425 uname_release
="$libc_cv_uname_release"
1427 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1428 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&4
1431 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1432 if test -n "$kernel_version"; then
1433 libc_cv_uname_version
="$kernel_version"
1435 libc_cv_uname_version
=unknown
1439 echo "$ac_t""$libc_cv_uname_version" 1>&4
1440 uname_version
="$libc_cv_uname_version"
1442 config_uname
=config-name.h
:config-name.
in
1444 # For non-generic uname, we don't need to create config-name.h at all.
1448 echo $ac_n "checking stdio selection""... $ac_c" 1>&4
1451 libio
) cat >> confdefs.h
<<\EOF
1452 #define USE_IN_LIBIO 1
1455 default
) stdio
=stdio
;;
1457 echo "$ac_t""$stdio" 1>&4
1460 if test $gnu_ld = yes; then
1461 cat >> confdefs.h
<<\EOF
1462 #define HAVE_GNU_LD 1
1466 if test $gnu_as = yes; then
1467 cat >> confdefs.h
<<\EOF
1468 #define HAVE_GNU_AS 1
1472 if test $elf = yes; then
1473 cat >> confdefs.h
<<\EOF
1478 if test $weak = yes; then
1479 cat >> confdefs.h
<<\EOF
1480 #define HAVE_WEAK_SYMBOLS 1
1486 if test $shared = default
; then
1487 if test $gnu_ld = yes; then
1494 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1497 config_makefile
=Makefile
1501 cat > confcache
<<\EOF
1502 # This file is a shell script that caches the results of configure
1503 # tests run on this system so they can be shared between configure
1504 # scripts and configure runs. It is not useful on other systems.
1505 # If it contains results you don't want to keep, you may remove or edit it.
1507 # By default, configure uses ./config.cache as the cache file,
1508 # creating it if it does not exist already. You can give configure
1509 # the --cache-file=FILE option to use a different cache file; that is
1510 # what configure does when it calls configure scripts in
1511 # subdirectories, so they share the cache.
1512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1513 # config.status only pays attention to the cache file if you give it the
1514 # --recheck option to rerun configure.
1517 # Ultrix sh set writes to stderr and can't be redirected directly,
1518 # and sets the high bit in the cache file unless we assign to the vars.
1520 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1522 if cmp -s $cache_file confcache
; then
1525 if test -w $cache_file; then
1526 echo "updating cache $cache_file"
1527 cat confcache
> $cache_file
1529 echo "not updating unwritable cache $cache_file"
1534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1536 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1537 # Let make expand exec_prefix.
1538 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1540 # Any assignment to VPATH causes Sun make to only execute
1541 # the first set of double-colon rules, so remove it if not needed.
1542 # If there is a colon in the path, we need to keep it.
1543 if test "x$srcdir" = x.
; then
1544 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1547 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1549 DEFS
=-DHAVE_CONFIG_H
1551 # Without the "./", some shells look in PATH for config.status.
1552 : ${CONFIG_STATUS=./config.status}
1554 echo creating
$CONFIG_STATUS
1555 rm -f $CONFIG_STATUS
1556 cat > $CONFIG_STATUS <<EOF
1558 # Generated automatically by configure.
1559 # Run this file to recreate the current configuration.
1560 # This directory was configured as follows,
1561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1563 # $0 $ac_configure_args
1565 # Compiler output produced by configure, useful for debugging
1566 # configure, is in ./config.log if it exists.
1568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1571 case "\$ac_option" in
1572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1576 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1578 -help | --help | --hel | --he | --h)
1579 echo "\$ac_cs_usage"; exit 0 ;;
1580 *) echo "\$ac_cs_usage"; exit 1 ;;
1584 ac_given_srcdir=$srcdir
1585 ac_given_INSTALL="$INSTALL"
1587 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1589 cat >> $CONFIG_STATUS <<EOF
1591 # Protect against being on the right side of a sed subst in config.status.
1592 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1593 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1596 s%@CFLAGS@%$CFLAGS%g
1597 s%@CPPFLAGS@%$CPPFLAGS%g
1598 s%@CXXFLAGS@%$CXXFLAGS%g
1600 s%@LDFLAGS@%$LDFLAGS%g
1602 s%@exec_prefix@%$exec_prefix%g
1603 s%@prefix@%$prefix%g
1604 s%@program_transform_name@%$program_transform_name%g
1605 s%@bindir@%$bindir%g
1606 s%@sbindir@%$sbindir%g
1607 s%@libexecdir@%$libexecdir%g
1608 s%@datadir@%$datadir%g
1609 s%@sysconfdir@%$sysconfdir%g
1610 s%@sharedstatedir@%$sharedstatedir%g
1611 s%@localstatedir@%$localstatedir%g
1612 s%@libdir@%$libdir%g
1613 s%@includedir@%$includedir%g
1614 s%@oldincludedir@%$oldincludedir%g
1615 s%@infodir@%$infodir%g
1616 s%@mandir@%$mandir%g
1618 s%@host_alias@%$host_alias%g
1619 s%@host_cpu@%$host_cpu%g
1620 s%@host_vendor@%$host_vendor%g
1621 s%@host_os@%$host_os%g
1622 s%@sysnames@%$sysnames%g
1623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1624 s%@INSTALL_DATA@%$INSTALL_DATA%g
1626 s%@build_alias@%$build_alias%g
1627 s%@build_cpu@%$build_cpu%g
1628 s%@build_vendor@%$build_vendor%g
1629 s%@build_os@%$build_os%g
1632 s%@RANLIB@%$RANLIB%g
1634 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1635 s%@uname_sysname@%$uname_sysname%g
1636 s%@uname_release@%$uname_release%g
1637 s%@uname_version@%$uname_version%g
1639 s%@gnu_ld@%$gnu_ld%g
1640 s%@gnu_as@%$gnu_as%g
1643 s%@shared@%$shared%g
1644 s%@profile@%$profile%g
1645 s%@omitfp@%$omitfp%g
1649 cat >> $CONFIG_STATUS <<EOF
1651 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1653 cat >> $CONFIG_STATUS <<\EOF
1654 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1655 # Support "outfile[:infile]", defaulting infile="outfile.in".
1657 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1658 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1659 *) ac_file_in
="${ac_file}.in" ;;
1662 # Adjust relative srcdir, etc. for subdirectories.
1664 # Remove last slash and all that follows it. Not all systems have dirname.
1665 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1666 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1667 # The file is in a subdirectory.
1668 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1669 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1670 # A "../" for each directory in $ac_dir_suffix.
1671 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1673 ac_dir_suffix
= ac_dots
=
1676 case "$ac_given_srcdir" in
1678 if test -z "$ac_dots"; then top_srcdir
=.
1679 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1680 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1682 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1683 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1686 case "$ac_given_INSTALL" in
1687 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1688 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1690 echo creating
"$ac_file"
1692 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1694 *Makefile
*) ac_comsub
="1i\\
1695 # $configure_input" ;;
1699 s%@configure_input@%$configure_input%g
1700 s%@srcdir@%$srcdir%g
1701 s%@top_srcdir@%$top_srcdir%g
1702 s%@INSTALL@%$INSTALL%g
1703 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1707 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1708 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1710 # ac_d sets the value in "#define NAME VALUE" lines.
1711 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1712 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1715 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1716 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1717 ac_uB
='\([ ]\)%\1#\2define\3'
1720 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1721 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1722 ac_eB
='$%\1#\2define\3'
1726 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
1727 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1728 # Support "outfile[:infile]", defaulting infile="outfile.in".
1730 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1731 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1732 *) ac_file_in
="${ac_file}.in" ;;
1735 echo creating
$ac_file
1737 rm -f conftest.frag conftest.
in conftest.out
1738 cp $ac_given_srcdir/$ac_file_in conftest.
in
1742 # Transform confdefs.h into a sed script conftest.vals that substitutes
1743 # the proper values into config.h.in to produce config.h. And first:
1744 # Protect against being on the right side of a sed subst in config.status.
1745 # Protect against being in an unquoted here document in config.status.
1747 cat > conftest.hdr
<<\EOF
1750 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1754 sed -n -f conftest.hdr confdefs.h > conftest.vals
1757 # This sed command replaces #undef with comments. This is necessary, for
1758 # example, in the case of _POSIX_SOURCE, which is predefined and required
1759 # on some systems where configure will not decide to define it.
1760 cat >> conftest.vals <<\EOF
1761 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1764 # Break up conftest.vals because some shells have a limit on
1765 # the size of here documents, and old seds have small limits too.
1766 # Maximum number of lines to put in a single here document.
1767 ac_max_here_lines=12
1772 ac_lines=`grep -c . conftest.vals
`
1773 # grep -c gives empty output for an empty file on some AIX systems.
1774 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1775 # Write a limited-size here document to conftest.frag.
1776 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1777 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1779 sed -f conftest.frag conftest.in > conftest.out
1781 mv conftest.out conftest.in
1783 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1785 mv conftest.tail conftest.vals
1789 cat >> $CONFIG_STATUS <<\EOF
1790 rm -f conftest.frag conftest.h
1791 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1792 cat conftest.in >> conftest.h
1794 if cmp -s $ac_file conftest.h 2>/dev/null; then
1795 echo "$ac_file is unchanged"
1799 mv conftest.h $ac_file
1805 cat >> $CONFIG_STATUS <<EOF
1806 ac_sources="`echo $libc_link_sources`"
1807 ac_dests="`echo $libc_link_dests`"
1810 cat >> $CONFIG_STATUS <<\EOF
1811 srcdir=$ac_given_srcdir
1812 while test -n "$ac_sources"; do
1813 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1814 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1816 echo "linking $srcdir/$ac_source to $ac_dest"
1818 if test ! -r $srcdir/$ac_source; then
1819 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1823 # Make relative symlinks.
1824 # Remove last slash and all that follows it. Not all systems have dirname.
1825 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1826 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1827 # The dest file is in a subdirectory.
1828 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1829 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
1830 # A "../" for each directory in $ac_dest_dir_suffix.
1831 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
1833 ac_dest_dir_suffix= ac_dots=
1837 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1838 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1841 # Make a symlink if possible; otherwise try a hard link.
1842 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1843 ln $srcdir/$ac_source $ac_dest; then :
1845 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1849 cat >> $CONFIG_STATUS <<EOF
1850 echo '$config_vars' >> config.make
1852 cat >> $CONFIG_STATUS <<\EOF
1856 chmod +x $CONFIG_STATUS
1857 rm -fr confdefs* $ac_clean_files
1858 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1