initial import
[glibc.git] / configure
blob9a36433099088507e2d4c2040a3eef9d7f63aa81
1 #! /bin/sh
3 # From configure.in Id: configure.in,v 1.72 1995/01/30 07:26:57 roland Exp roland
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.1.1
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-gnu-binutils if using GNU binutils (as and ld)"
19 ac_help="$ac_help
20 --with-gnu-ld if using GNU ld (in the binutils package)"
21 ac_help="$ac_help
22 --with-gnu-as if using GNU as (in the binutils package)"
23 ac_help="$ac_help
24 --with-elf if using the ELF object format"
25 ac_help="$ac_help
26 --with-weak-symbols if weak symbols are available in as and ld"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
50 # Initialize some other variables.
51 subdirs=
53 ac_prev=
54 for ac_option
57 # If the previous option needs an argument, assign it.
58 if test -n "$ac_prev"; then
59 eval "$ac_prev=\$ac_option"
60 ac_prev=
61 continue
64 case "$ac_option" in
65 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
66 *) ac_optarg= ;;
67 esac
69 # Accept the important Cygnus configure options, so we can diagnose typos.
71 case "$ac_option" in
73 -build | --build | --buil | --bui | --bu | --b)
74 ac_prev=build ;;
75 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
76 build="$ac_optarg" ;;
78 -cache-file | --cache-file | --cache-fil | --cache-fi \
79 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
80 ac_prev=cache_file ;;
81 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
82 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83 cache_file="$ac_optarg" ;;
85 -disable-* | --disable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92 eval "enable_${ac_feature}=no" ;;
94 -enable-* | --enable-*)
95 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
96 # Reject names that are not valid shell variable names.
97 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
98 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
100 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
101 case "$ac_option" in
102 *=*) ;;
103 *) ac_optarg=yes ;;
104 esac
105 eval "enable_${ac_feature}='$ac_optarg'" ;;
107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
109 | --exec | --exe | --ex)
110 ac_prev=exec_prefix ;;
111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
113 | --exec=* | --exe=* | --ex=*)
114 exec_prefix="$ac_optarg" ;;
116 -gas | --gas | --ga | --g)
117 # Obsolete; use --with-gas.
118 with_gas=yes ;;
120 -help | --help | --hel | --he)
121 # Omit some internal or obsolete options to make the list less imposing.
122 # This message is too long to be a string in the A/UX 3.1 sh.
123 cat << EOF
124 Usage: configure [options] [host]
125 Options: [defaults in brackets after descriptions]
126 Configuration:
127 --cache-file=FILE cache test results in FILE
128 --help print this message
129 --no-create do not create output files
130 --quiet, --silent do not print \`checking...' messages
131 --version print the version of autoconf that created configure
132 Directory and file names:
133 --prefix=PREFIX install architecture-independent files in PREFIX
134 [$ac_default_prefix]
135 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
136 [same as prefix]
137 --srcdir=DIR find the sources in DIR [configure dir or ..]
138 --program-prefix=PREFIX prepend PREFIX to installed program names
139 --program-suffix=SUFFIX append SUFFIX to installed program names
140 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
141 Host type:
142 --build=BUILD configure for building on BUILD [BUILD=HOST]
143 --host=HOST configure for HOST [guessed]
144 --target=TARGET configure for TARGET [TARGET=HOST]
145 Features and packages:
146 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
147 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
148 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
149 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
150 --x-includes=DIR X include files are in DIR
151 --x-libraries=DIR X library files are in DIR
152 --enable and --with options recognized:$ac_help
154 exit 0 ;;
156 -host | --host | --hos | --ho)
157 ac_prev=host ;;
158 -host=* | --host=* | --hos=* | --ho=*)
159 host="$ac_optarg" ;;
161 -nfp | --nfp | --nf)
162 # Obsolete; use --without-fp.
163 with_fp=no ;;
165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
166 | --no-cr | --no-c)
167 no_create=yes ;;
169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
171 no_recursion=yes ;;
173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
174 ac_prev=prefix ;;
175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
176 prefix="$ac_optarg" ;;
178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
179 | --program-pre | --program-pr | --program-p)
180 ac_prev=program_prefix ;;
181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
183 program_prefix="$ac_optarg" ;;
185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
186 | --program-suf | --program-su | --program-s)
187 ac_prev=program_suffix ;;
188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
190 program_suffix="$ac_optarg" ;;
192 -program-transform-name | --program-transform-name \
193 | --program-transform-nam | --program-transform-na \
194 | --program-transform-n | --program-transform- \
195 | --program-transform | --program-transfor \
196 | --program-transfo | --program-transf \
197 | --program-trans | --program-tran \
198 | --progr-tra | --program-tr | --program-t)
199 ac_prev=program_transform_name ;;
200 -program-transform-name=* | --program-transform-name=* \
201 | --program-transform-nam=* | --program-transform-na=* \
202 | --program-transform-n=* | --program-transform-=* \
203 | --program-transform=* | --program-transfor=* \
204 | --program-transfo=* | --program-transf=* \
205 | --program-trans=* | --program-tran=* \
206 | --progr-tra=* | --program-tr=* | --program-t=*)
207 program_transform_name="$ac_optarg" ;;
209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
210 | -silent | --silent | --silen | --sile | --sil)
211 silent=yes ;;
213 -site | --site | --sit)
214 ac_prev=site ;;
215 -site=* | --site=* | --sit=*)
216 site="$ac_optarg" ;;
218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
219 ac_prev=srcdir ;;
220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
221 srcdir="$ac_optarg" ;;
223 -target | --target | --targe | --targ | --tar | --ta | --t)
224 ac_prev=target ;;
225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
226 target="$ac_optarg" ;;
228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
229 verbose=yes ;;
231 -version | --version | --versio | --versi | --vers)
232 echo "configure generated by autoconf version 2.1.1"
233 exit 0 ;;
235 -with-* | --with-*)
236 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
241 ac_package=`echo $ac_package| sed 's/-/_/g'`
242 case "$ac_option" in
243 *=*) ;;
244 *) ac_optarg=yes ;;
245 esac
246 eval "with_${ac_package}='$ac_optarg'" ;;
248 -without-* | --without-*)
249 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
250 # Reject names that are not valid shell variable names.
251 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
252 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
254 ac_package=`echo $ac_package| sed 's/-/_/g'`
255 eval "with_${ac_package}=no" ;;
257 --x)
258 # Obsolete; use --with-x.
259 with_x=yes ;;
261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
262 | --x-incl | --x-inc | --x-in | --x-i)
263 ac_prev=x_includes ;;
264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
266 x_includes="$ac_optarg" ;;
268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
270 ac_prev=x_libraries ;;
271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
273 x_libraries="$ac_optarg" ;;
275 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
279 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
280 echo "configure: warning: $ac_option: invalid host type" 1>&2
282 if test "x$nonopt" != xNONE; then
283 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
285 nonopt="$ac_option"
288 esac
289 done
291 if test -n "$ac_prev"; then
292 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
295 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
297 # File descriptor usage:
298 # 0 standard input
299 # 1 file creation
300 # 2 errors and warnings
301 # 3 some systems may open it to /dev/tty
302 # 4 used on the Kubota Titan
303 # 4 checking for... messages and results
304 # 5 compiler messages saved in config.log
305 if test "$silent" = yes; then
306 exec 4>/dev/null
307 else
308 exec 4>&1
310 exec 5>./config.log
312 echo "\
313 This file contains any messages produced by compilers while
314 running configure, to aid debugging if configure makes a mistake.
315 " 1>&5
317 # Strip out --no-create and --no-recursion so they do not pile up.
318 # Also quote any args containing shell metacharacters.
319 ac_configure_args=
320 for ac_arg
322 case "$ac_arg" in
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 | --no-cr | --no-c) ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
328 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
329 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
330 esac
331 done
333 # NLS nuisances.
334 # Only set LANG and LC_ALL to C if already set.
335 # These must not be set unconditionally because not all systems understand
336 # e.g. LANG=C (notably SCO).
337 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
338 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
341 rm -rf conftest* confdefs.h
342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
343 echo > confdefs.h
345 # A filename unique to this package, relative to the directory that
346 # configure is in, which we can look for to find out if srcdir is correct.
347 ac_unique_file=features.h
349 # Find the source files, if location was not specified.
350 if test -z "$srcdir"; then
351 ac_srcdir_defaulted=yes
352 # Try the directory containing this script, then its parent.
353 ac_prog=$0
354 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
355 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
356 srcdir=$ac_confdir
357 if test ! -r $srcdir/$ac_unique_file; then
358 srcdir=..
360 else
361 ac_srcdir_defaulted=no
363 if test ! -r $srcdir/$ac_unique_file; then
364 if test "$ac_srcdir_defaulted" = yes; then
365 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
366 else
367 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
370 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
372 # Prefer explicitly selected file to automatically selected ones.
373 if test -z "$CONFIG_SITE"; then
374 if test "x$prefix" != xNONE; then
375 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
376 else
377 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
380 for ac_site_file in $CONFIG_SITE; do
381 if test -r "$ac_site_file"; then
382 echo "loading site script $ac_site_file"
383 . "$ac_site_file"
385 done
387 if test -r "$cache_file"; then
388 echo "loading cache $cache_file"
389 . $cache_file
390 else
391 echo "creating cache $cache_file"
392 > $cache_file
395 ac_ext=c
396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
397 ac_cpp='$CPP $CPPFLAGS'
398 ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
399 ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
401 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
402 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
403 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
404 ac_n= ac_c='
405 ' ac_t=' '
406 else
407 ac_n=-n ac_c= ac_t=
409 else
410 ac_n= ac_c='\c' ac_t=
413 if test -r /vmunix; then
414 kernel_id=`strings /vmunix | grep UNIX`
415 elif test -r /dynix; then
416 kernel_id=`strings /dynix | grep DYNIX`
417 else
418 kernel_id=
424 # This will get text that should go into config.make.
425 config_vars=
427 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
428 # Check whether --with-gmp or --without-gmp was given.
429 withval="$with_gmp"
430 if test -n "$withval"; then
431 case "$with_gmp" in
432 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
433 ''|no) ;;
434 *) config_vars="$config_vars
435 gmp-srcdir = $withval" ;;
436 esac
441 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
442 withval="$with_gnu_binutils"
443 if test -n "$withval"; then
444 gnu_binutils=yes
445 else
446 gnu_binutils=no
449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
450 withval="$with_gnu_ld"
451 if test -n "$withval"; then
452 gnu_ld=yes
453 else
454 gnu_ld=no
457 # Check whether --with-gnu-as or --without-gnu-as was given.
458 withval="$with_gnu_as"
459 if test -n "$withval"; then
460 gnu_as=yes
461 else
462 gnu_as=no
465 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
466 # Check whether --with-elf or --without-elf was given.
467 withval="$with_elf"
468 if test -n "$withval"; then
469 elf=yes
470 else
471 elf=no
474 # Check whether --with-weak-symbols or --without-weak-symbols was given.
475 withval="$with_weak_symbols"
476 if test -n "$withval"; then
477 weak=yes
478 else
479 weak=no
483 ac_aux_dir=
484 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
485 if test -f $ac_dir/install-sh; then
486 ac_aux_dir=$ac_dir
487 ac_install_sh="$ac_aux_dir/install-sh -c"
488 break
489 elif test -f $ac_dir/install.sh; then
490 ac_aux_dir=$ac_dir
491 ac_install_sh="$ac_aux_dir/install.sh -c"
492 break
494 done
495 if test -z "$ac_aux_dir"; then
496 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
498 ac_config_guess=$ac_aux_dir/config.guess
499 ac_config_sub=$ac_aux_dir/config.sub
500 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
503 # Make sure we can run config.sub.
504 if $ac_config_sub sun4 >/dev/null 2>&1; then :
505 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
508 echo $ac_n "checking host system type""... $ac_c" 1>&4
510 host_alias=$host
511 case "$host_alias" in
512 NONE)
513 case $nonopt in
514 NONE)
515 if host_alias=`$ac_config_guess`; then :
516 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
517 fi ;;
518 *) host_alias=$nonopt ;;
519 esac ;;
520 esac
522 host=`$ac_config_sub $host_alias`
523 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
524 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
525 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
526 echo "$ac_t""$host" 1>&4
528 # We keep the original values in `$config_*' and never modify them, so we
529 # can write them unchanged into config.make. Everything else uses
530 # $machine, $vendor, and $os, and changes them whenever convenient.
531 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
533 sysdep_dir=$srcdir/sysdeps
534 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
535 if eval "test \"`echo '${'libc_cv_sysdirs'+set}'`\" = set"; then
536 echo $ac_n "(cached) $ac_c" 1>&4
537 else
538 machine=$config_machine
539 vendor=$config_vendor
540 os=$config_os
542 # Expand the configuration machine name into a subdirectory by architecture
543 # type and particular chip.
544 case "$machine" in
545 i[345]86)
546 machine=i386/$machine ;;
547 sparc[6789])
548 machine=sparc/$machine ;;
549 m68k)
550 machine=m68k/m68020 ;;
551 m680?0)
552 machine=m68k/$machine ;;
553 m88k)
554 machine=m88k/m88100 ;;
555 m88???)
556 machine=m88k/$machine ;;
557 mips64*)
558 machine=mips/mips64/$machine ;;
559 mips*)
560 machine=mips/$machine ;;
561 esac
563 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
564 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
566 case "$os" in
567 gnu*)
568 base_os=mach/hurd ;;
569 netbsd* | 386bsd*)
570 base_os=unix/bsd/bsd4.4 ;;
571 osf1* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
572 base_os=unix/bsd ;;
573 linux* | sysv* | isc* | esix* | sco* | minix* | irix4*)
574 base_os=unix/sysv ;;
575 solaris[2-9]*)
576 base_os=unix/sysv/sysv4 ;;
577 none)
578 base_os=standalone ;;
580 base_os='' ;;
581 esac
583 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
584 tail=$os
585 ostry=$os
586 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
587 ostry="$ostry /$o"
588 tail=$o
589 done
590 o=`echo $tail | sed 's/[0-9]*$//'`
591 if test $o != $tail; then
592 ostry="$ostry /$o"
595 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
596 base=
597 tail=$base_os
598 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
599 set $b
600 base="$base /$1"
601 tail="$2"
602 done
604 # For sparc/sparc9, try sparc/sparc9 and then sparc.
605 mach=
606 tail=$machine
607 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
608 set $m
609 mach="$mach /$1"
610 tail="$2"
611 done
614 # Find what sysdep directories exist.
615 sysnames=
616 for b in $base ''; do
617 for m0 in $mach ''; do
618 for v in /$vendor ''; do
619 for o in /$ostry ''; do
620 for m in $mach ''; do
621 try="$m0$b$v$o$m"
622 if test -d $sysdep_dir$try; then
623 sysnames="$sysnames $try"
624 { test -n "$o" || test -n "$b"; } && os_used=t
625 { test -n "$m" || test -n "$m0"; } && machine_used=t
627 done
628 done
629 done
630 done
631 done
633 if test -z "$os_used" && test "$os" != none; then
634 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
636 if test -z "$machine_used" && test "$machine" != none; then
637 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
640 # We have now validated the configuration.
642 # Remove the leading slashes.
643 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
645 # Prepend the machine's FPU directory unless --without-fp.
646 if test "$with_fp" = no; then
647 fpu_dirs=
648 for m in $mach; do
649 if test -d $sysdep_dir$m/fpu; then
650 fpu_dirs="$fpu_dirs $m/fpu"
652 done
653 sysnames="`echo $fpu_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
656 # Expand the list of system names into a full list of directories
657 # from each element's parent name and Implies file (if present).
658 set $sysnames
659 while test $# -gt 0; do
660 name=$1
661 shift
663 if test -f $sysdep_dir/$name/Implies; then
664 # Collect more names from the `Implies' file (removing comments).
665 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
666 for x in $implied; do
667 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
668 done
669 else
670 implied=
673 # Add NAME to the list of names.
674 names="$names $name"
676 # Find the parent of NAME, using the empty string if it has none.
677 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
679 # Add the names implied by NAME, and NAME's parent (if it has one), to
680 # the list of names to be processed (the argument list). We prepend the
681 # implied names to the list and append the parent. We want implied
682 # directories to come before further directories inferred from the
683 # configuration components; this ensures that for sysv4, unix/common
684 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
685 # after sysv4).
686 sysnames="`echo $implied $* $parent`"
687 test -n "$sysnames" && set $sysnames
688 done
690 # Add the default directories.
691 names="$names generic stub"
693 # Now uniquize the list.
694 seen=
695 sysnames=
696 for name in $names; do
697 if echo "$seen" | fgrep -x $name >/dev/null; then
698 # Already in the list.
699 true;
700 else
701 # A new one.
702 if test -z "$seen"; then
703 seen="$name" sysnames="$name"
704 else
705 seen="$seen
706 $name"
707 sysnames="$sysnames $name"
710 done
711 libc_cv_sysdirs="$sysnames"
714 sysnames="$libc_cv_sysdirs"
715 echo "$ac_t""${sysnames}" 1>&4
717 case "$host_os" in
718 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
719 gnu_ld=yes gnu_as=yes
720 esac
721 case "$host_os" in
722 gnu*elf* | linux*elf* | sysv4* | solaris2*)
723 elf=yes
724 esac
726 # Find a good install program. We prefer a C program (faster),
727 # so one script is as good as another. But avoid the broken or
728 # incompatible versions:
729 # SysV /etc/install, /usr/sbin/install
730 # SunOS /usr/etc/install
731 # IRIX /sbin/install
732 # AIX /bin/install
733 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
734 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
735 # ./install, which can be erroneously created by make from ./install.sh.
736 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
737 if test -z "$INSTALL"; then
738 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&4
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742 for ac_dir in $PATH; do
743 # Account for people who put trailing slashes in PATH elements.
744 case "$ac_dir/" in
745 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
747 # OSF1 and SCO ODT 3.0 have their own names for install.
748 for ac_prog in ginstall installbsd scoinst install; do
749 if test -f $ac_dir/$ac_prog; then
750 if test $ac_prog = install &&
751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
752 # AIX install. It has an incompatible calling convention.
753 # OSF/1 installbsd also uses dspmsg, but is usable.
755 else
756 ac_cv_path_install="$ac_dir/$ac_prog -c"
757 break 2
760 done
762 esac
763 done
764 IFS="$ac_save_ifs"
765 # As a last resort, use the slow shell script.
766 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
768 INSTALL="$ac_cv_path_install"
770 echo "$ac_t""$INSTALL" 1>&4
772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
773 # It thinks the first close brace ends the variable substitution.
774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
778 if test "$INSTALL" = "${srcdir}/install-sh"; then
779 # The makefiles need to use a different form to find it in $srcdir.
780 INSTALL='$(..)./install-sh'
783 echo $ac_n "checking build system type""... $ac_c" 1>&4
785 build_alias=$build
786 case "$build_alias" in
787 NONE)
788 case $nonopt in
789 NONE) build_alias=$host_alias ;;
790 *) build_alias=$nonopt ;;
791 esac ;;
792 esac
794 build=`$ac_config_sub $build_alias`
795 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
796 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
797 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
798 echo "$ac_t""$build" 1>&4
800 if test $host != $build; then
801 ac_tool_prefix=${host_alias}-
802 else
803 ac_tool_prefix=
806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
809 if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&4
811 else
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
814 else
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 for ac_dir in $PATH; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
820 break
822 done
823 IFS="$ac_save_ifs"
824 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
827 CC="$ac_cv_prog_CC"
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&4
830 else
831 echo "$ac_t""no" 1>&4
836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
837 set dummy ${ac_tool_prefix}ar; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
839 if eval "test \"`echo '${'ac_cv_prog_AR'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&4
841 else
842 if test -n "$AR"; then
843 ac_cv_prog_AR="$AR" # Let the user override the test.
844 else
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
846 for ac_dir in $PATH; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_AR="${ac_tool_prefix}ar"
850 break
852 done
853 IFS="$ac_save_ifs"
854 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
857 AR="$ac_cv_prog_AR"
858 if test -n "$AR"; then
859 echo "$ac_t""$AR" 1>&4
860 else
861 echo "$ac_t""no" 1>&4
866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
869 if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&4
871 else
872 if test -n "$RANLIB"; then
873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
874 else
875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
876 for ac_dir in $PATH; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
880 break
882 done
883 IFS="$ac_save_ifs"
886 RANLIB="$ac_cv_prog_RANLIB"
887 if test -n "$RANLIB"; then
888 echo "$ac_t""$RANLIB" 1>&4
889 else
890 echo "$ac_t""no" 1>&4
894 if test -z "$ac_cv_prog_RANLIB"; then
895 if test -n "$ac_tool_prefix"; then
896 # Extract the first word of "ranlib", so it can be a program name with args.
897 set dummy ranlib; ac_word=$2
898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
899 if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&4
901 else
902 if test -n "$RANLIB"; then
903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
904 else
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
906 for ac_dir in $PATH; do
907 test -z "$ac_dir" && ac_dir=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_prog_RANLIB="ranlib"
910 break
912 done
913 IFS="$ac_save_ifs"
914 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
917 RANLIB="$ac_cv_prog_RANLIB"
918 if test -n "$RANLIB"; then
919 echo "$ac_t""$RANLIB" 1>&4
920 else
921 echo "$ac_t""no" 1>&4
924 else
925 RANLIB=":"
929 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
930 # On Suns, sometimes $CPP names a directory.
931 if test -n "$CPP" && test -d "$CPP"; then
932 CPP=
934 if test -z "$CPP"; then
935 if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&4
937 else
938 # This must be in double quotes, not single quotes, because CPP may get
939 # substituted into the Makefile and "${CC-cc}" will confuse make.
940 CPP="${CC-cc} -E"
941 # On the NeXT, cc -E runs the code through the compiler's parser,
942 # not just through cpp.
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
946 #include <assert.h>
947 Syntax Error
949 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 ac_err=`grep -v '^ *+' conftest.out`
951 if test -z "$ac_err"; then
953 else
954 echo "$ac_err" >&5
955 rm -rf conftest*
956 CPP="${CC-cc} -E -traditional-cpp"
957 cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960 #include <assert.h>
961 Syntax Error
963 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
964 ac_err=`grep -v '^ *+' conftest.out`
965 if test -z "$ac_err"; then
967 else
968 echo "$ac_err" >&5
969 rm -rf conftest*
970 CPP=/lib/cpp
972 rm -f conftest*
974 rm -f conftest*
975 ac_cv_prog_CPP="$CPP"
978 CPP="$ac_cv_prog_CPP"
979 echo "$ac_t""$CPP" 1>&4
982 echo $ac_n "checking signed size_t type""... $ac_c" 1>&4
983 if eval "test \"`echo '${'libc_cv_signed_size_t'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&4
985 else
986 echo '#include <stddef.h>
987 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
988 if eval "$ac_cpp conftest.c 2>/dev/null" \
989 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
990 libc_cv_signed_size_t=no
991 else
992 libc_cv_signed_size_t=yes
994 rm -f conftest*
997 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
998 if test $libc_cv_signed_size_t = yes; then
999 cat >> confdefs.h <<\EOF
1000 #undef __SIZE_TYPE__
1001 #define __SIZE_TYPE__ unsigned
1005 echo $ac_n "checking libc-friendly stddef.h""... $ac_c" 1>&4
1006 if eval "test \"`echo '${'libc_cv_friendly_stddef'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&4
1008 else
1009 cat > conftest.$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1012 #define __need_size_t
1013 #define __need_wchar_t
1014 #include <stddef.h>
1015 #define __need_NULL
1016 #include <stddef.h>
1017 int main() { return 0; }
1018 int t() {
1019 size_t size; wchar_t wchar;
1020 #ifdef offsetof
1021 #error stddef.h ignored __need_*
1022 #endif
1023 if (&size == NULL || &wchar == NULL) abort ();
1024 ; return 0; }
1026 if eval $ac_compile; then
1027 rm -rf conftest*
1028 libc_cv_friendly_stddef=yes
1029 else
1030 rm -rf conftest*
1031 libc_cv_friendly_stddef=no
1033 rm -f conftest*
1037 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1038 if test $libc_cv_friendly_stddef = yes; then
1039 config_vars="$config_vars
1040 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1043 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1044 if eval "test \"`echo '${'libc_cv_need_minus_P'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&4
1046 else
1047 cat > conftest.S <<EOF
1048 #include "confdefs.h"
1049 /* Nothing whatsoever. */
1051 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1052 libc_cv_need_minus_P=no
1053 else
1054 libc_cv_need_minus_P=yes
1056 rm -f conftest*
1059 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1060 if test $libc_cv_need_minus_P = yes; then
1061 config_vars="$config_vars
1062 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1065 # sysdeps configure fragments may set these with files to be linked below.
1066 libc_link_dests=
1067 libc_link_sources=
1069 # Iterate over all the sysdep directories we will use, running their
1070 # configure fragments, and looking for a uname implementation.
1071 uname=
1072 for dir in $sysnames; do
1073 if test -r $sysdep_dir/$dir/configure; then
1074 echo "$ac_t""running configure fragment for $dir" 1>&4
1075 . $sysdep_dir/$dir/configure
1077 if test -z "$uname"; then
1078 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1079 && uname=$dir
1081 done
1085 # If we will use the generic uname implementation, we must figure out what
1086 # it will say by examining the system, and write the results in config-name.h.
1087 if test "$uname" = generic; then
1089 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1090 if test $uname_sysname != $config_os; then
1091 config_release=`echo $config_os | sed s/$uname_sysname//`
1094 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1095 if eval "test \"`echo '${'libc_cv_uname_release'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&4
1097 else
1098 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1099 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1100 != x$config_release; then
1101 # The configuration release is a substring of the kernel release.
1102 libc_cv_uname_release=$kernel_release
1103 elif test x$config_release != x; then
1104 libc_cv_uname_release=$config_release
1105 elif test x$kernel_release != x; then
1106 libc_cv_uname_release=$kernel_release
1107 else
1108 libc_cv_uname_release=unknown
1112 echo "$ac_t""$libc_cv_uname_release" 1>&4
1113 uname_release="$libc_cv_uname_release"
1115 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1116 if eval "test \"`echo '${'libc_cv_uname_version'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&4
1118 else
1119 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1120 if test -n "$kernel_version"; then
1121 libc_cv_uname_version="$kernel_version"
1122 else
1123 libc_cv_uname_version=unknown
1127 echo "$ac_t""$libc_cv_uname_version" 1>&4
1128 uname_version="$libc_cv_uname_version"
1130 config_uname=config-name.h:config-name.in
1131 else
1132 # For non-generic uname, we don't need to create config-name.h at all.
1133 config_uname=
1137 if test $gnu_ld = yes; then
1138 cat >> confdefs.h <<\EOF
1139 #define HAVE_GNU_LD 1
1143 if test $gnu_as = yes; then
1144 cat >> confdefs.h <<\EOF
1145 #define HAVE_GNU_AS 1
1149 if test $elf = yes; then
1150 cat >> confdefs.h <<\EOF
1151 #define HAVE_ELF 1
1155 if test $weak = yes; then
1156 cat >> confdefs.h <<\EOF
1157 #define HAVE_WEAK_SYMBOLS 1
1163 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1164 config_makefile=
1165 else
1166 config_makefile=Makefile
1169 trap '' 1 2 15
1170 if test -w $cache_file; then
1171 echo "updating cache $cache_file"
1172 cat > $cache_file <<\EOF
1173 # This file is a shell script that caches the results of configure
1174 # tests run on this system so they can be shared between configure
1175 # scripts and configure runs. It is not useful on other systems.
1176 # If it contains results you don't want to keep, you may remove or edit it.
1178 # By default, configure uses ./config.cache as the cache file,
1179 # creating it if it does not exist already. You can give configure
1180 # the --cache-file=FILE option to use a different cache file; that is
1181 # what configure does when it calls configure scripts in
1182 # subdirectories, so they share the cache.
1183 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1184 # config.status only pays attention to the cache file if you give it the
1185 # --recheck option to rerun configure.
1188 # Ultrix sh set writes to stderr and can't be redirected directly,
1189 # and sets the high bit in the cache file unless we assign to the vars.
1190 (set) 2>&1 |
1191 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1192 >> $cache_file
1193 else
1194 echo "not updating unwritable cache $cache_file"
1197 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1200 # Let make expand exec_prefix.
1201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1203 # Any assignment to VPATH causes Sun make to only execute
1204 # the first set of double-colon rules, so remove it if not needed.
1205 # If there is a colon in the path, we need to keep it.
1206 if test "x$srcdir" = x.; then
1207 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1210 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1212 DEFS=-DHAVE_CONFIG_H
1214 # Without the "./", some shells look in PATH for config.status.
1215 : ${CONFIG_STATUS=./config.status}
1217 echo creating $CONFIG_STATUS
1218 rm -f $CONFIG_STATUS
1219 cat > $CONFIG_STATUS <<EOF
1220 #! /bin/sh
1221 # Generated automatically by configure.
1222 # Run this file to recreate the current configuration.
1223 # This directory was configured as follows,
1224 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1226 # $0 $ac_configure_args
1228 # Compiler output produced by configure, useful for debugging
1229 # configure, is in ./config.log if it exists.
1231 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1232 for ac_option
1234 case "\$ac_option" in
1235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1236 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1237 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1238 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1239 echo "$CONFIG_STATUS generated by autoconf version 2.1.1"
1240 exit 0 ;;
1241 -help | --help | --hel | --he | --h)
1242 echo "\$ac_cs_usage"; exit 0 ;;
1243 *) echo "\$ac_cs_usage"; exit 1 ;;
1244 esac
1245 done
1247 ac_given_srcdir=$srcdir
1248 ac_given_INSTALL="$INSTALL"
1250 trap 'rm -fr `echo config.make ${config_makefile} ${config_uname} config.h | tr : " "` conftest*; exit 1' 1 2 15
1252 # Protect against being on the right side of a sed subst in config.status.
1253 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1254 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1255 $ac_vpsub
1256 $extrasub
1257 s%@CFLAGS@%$CFLAGS%g
1258 s%@CPPFLAGS@%$CPPFLAGS%g
1259 s%@CXXFLAGS@%$CXXFLAGS%g
1260 s%@DEFS@%$DEFS%g
1261 s%@LDFLAGS@%$LDFLAGS%g
1262 s%@LIBS@%$LIBS%g
1263 s%@exec_prefix@%$exec_prefix%g
1264 s%@prefix@%$prefix%g
1265 s%@program_transform_name@%$program_transform_name%g
1266 s%@host@%$host%g
1267 s%@host_alias@%$host_alias%g
1268 s%@host_cpu@%$host_cpu%g
1269 s%@host_vendor@%$host_vendor%g
1270 s%@host_os@%$host_os%g
1271 s%@sysnames@%$sysnames%g
1272 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1273 s%@INSTALL_DATA@%$INSTALL_DATA%g
1274 s%@build@%$build%g
1275 s%@build_alias@%$build_alias%g
1276 s%@build_cpu@%$build_cpu%g
1277 s%@build_vendor@%$build_vendor%g
1278 s%@build_os@%$build_os%g
1279 s%@CC@%$CC%g
1280 s%@AR@%$AR%g
1281 s%@RANLIB@%$RANLIB%g
1282 s%@CPP@%$CPP%g
1283 s%@uname_sysname@%$uname_sysname%g
1284 s%@uname_release@%$uname_release%g
1285 s%@uname_version@%$uname_version%g
1286 s%@gnu_ld@%$gnu_ld%g
1287 s%@gnu_as@%$gnu_as%g
1288 s%@elf@%$elf%g
1289 s%@weak@%$weak%g
1291 CEOF
1293 cat >> $CONFIG_STATUS <<EOF
1295 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1297 cat >> $CONFIG_STATUS <<\EOF
1298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1299 # Support "outfile[:infile]", defaulting infile="outfile.in".
1300 case "$ac_file" in
1301 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1303 *) ac_file_in="${ac_file}.in" ;;
1304 esac
1306 # Adjust relative srcdir, etc. for subdirectories.
1308 # Remove last slash and all that follows it. Not all systems have dirname.
1309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1311 # The file is in a subdirectory.
1312 test ! -d "$ac_dir" && mkdir "$ac_dir"
1313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1314 # A "../" for each directory in $ac_dir_suffix.
1315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1316 else
1317 ac_dir_suffix= ac_dots=
1320 case "$ac_given_srcdir" in
1321 .) srcdir=.
1322 if test -z "$ac_dots"; then top_srcdir=.
1323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1325 *) # Relative path.
1326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1328 esac
1330 case "$ac_given_INSTALL" in
1331 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1332 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1333 esac
1334 echo creating "$ac_file"
1335 rm -f "$ac_file"
1336 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1337 case "$ac_file" in
1338 *Makefile*) ac_comsub="1i\\
1339 # $configure_input" ;;
1340 *) ac_comsub= ;;
1341 esac
1342 sed -e "$ac_comsub
1343 s%@configure_input@%$configure_input%g
1344 s%@srcdir@%$srcdir%g
1345 s%@top_srcdir@%$top_srcdir%g
1346 s%@INSTALL@%$INSTALL%g
1347 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1348 fi; done
1349 rm -f conftest.subs
1351 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1352 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1354 # ac_d sets the value in "#define NAME VALUE" lines.
1355 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1356 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1357 ac_dC='\3'
1358 ac_dD='%g'
1359 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1360 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1361 ac_uB='\([ ]\)%\1#\2define\3'
1362 ac_uC=' '
1363 ac_uD='\4%g'
1364 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1365 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1366 ac_eB='$%\1#\2define\3'
1367 ac_eC=' '
1368 ac_eD='%g'
1370 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1371 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1372 # Support "outfile[:infile]", defaulting infile="outfile.in".
1373 case "$ac_file" in
1374 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1375 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1376 *) ac_file_in="${ac_file}.in" ;;
1377 esac
1379 echo creating $ac_file
1381 rm -f conftest.frag conftest.in conftest.out
1382 cp $ac_given_srcdir/$ac_file_in conftest.in
1386 # Transform confdefs.h into a sed script conftest.vals that substitutes
1387 # the proper values into config.h.in to produce config.h. And first:
1388 # Protect against being on the right side of a sed subst in config.status.
1389 # Protect against being in an unquoted here document in config.status.
1390 rm -f conftest.vals
1391 cat > conftest.hdr <<\EOF
1392 s/[\\&%]/\\&/g
1393 s%[\\$`]%\\&%g
1394 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1395 s%ac_d%ac_u%gp
1396 s%ac_u%ac_e%gp
1398 sed -n -f conftest.hdr confdefs.h > conftest.vals
1399 rm -f conftest.hdr
1401 # This sed command replaces #undef with comments. This is necessary, for
1402 # example, in the case of _POSIX_SOURCE, which is predefined and required
1403 # on some systems where configure will not decide to define it.
1404 cat >> conftest.vals <<\EOF
1405 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1408 # Break up conftest.vals because some shells have a limit on
1409 # the size of here documents, and old seds have small limits too.
1410 # Maximum number of lines to put in a single here document.
1411 ac_max_here_lines=12
1413 rm -f conftest.tail
1414 while :
1416 ac_lines=`grep -c . conftest.vals`
1417 # grep -c gives empty output for an empty file on some AIX systems.
1418 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1419 # Write a limited-size here document to conftest.frag.
1420 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1421 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1422 echo 'CEOF
1423 sed -f conftest.frag conftest.in > conftest.out
1424 rm -f conftest.in
1425 mv conftest.out conftest.in
1426 ' >> $CONFIG_STATUS
1427 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1428 rm -f conftest.vals
1429 mv conftest.tail conftest.vals
1430 done
1431 rm -f conftest.vals
1433 cat >> $CONFIG_STATUS <<\EOF
1434 rm -f conftest.frag conftest.h
1435 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1436 cat conftest.in >> conftest.h
1437 rm -f conftest.in
1438 if cmp -s $ac_file conftest.h 2>/dev/null; then
1439 echo "$ac_file is unchanged"
1440 rm -f conftest.h
1441 else
1442 rm -f $ac_file
1443 mv conftest.h $ac_file
1445 fi; done
1449 cat >> $CONFIG_STATUS <<EOF
1450 ac_sources="`echo $libc_link_sources`"
1451 ac_dests="`echo $libc_link_dests`"
1454 cat >> $CONFIG_STATUS <<\EOF
1455 srcdir=$ac_given_srcdir
1456 while test -n "$ac_sources"; do
1457 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1458 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1460 echo "linking $srcdir/$ac_source to $ac_dest"
1462 if test ! -r $srcdir/$ac_source; then
1463 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1465 rm -f $ac_dest
1467 # Make relative symlinks.
1468 # Remove last slash and all that follows it. Not all systems have dirname.
1469 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1470 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1471 # The dest file is in a subdirectory.
1472 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1473 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1474 # A "../" for each directory in $ac_dest_dir_suffix.
1475 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1476 else
1477 ac_dest_dir_suffix= ac_dots=
1480 case "$srcdir" in
1481 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1482 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1483 esac
1485 # Make a symlink if possible; otherwise try a hard link.
1486 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1487 ln $srcdir/$ac_source $ac_dest; then :
1488 else
1489 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1491 done
1493 cat >> $CONFIG_STATUS <<EOF
1494 echo '$config_vars' >> config.make
1496 cat >> $CONFIG_STATUS <<\EOF
1498 exit 0
1500 chmod +x $CONFIG_STATUS
1501 rm -fr confdefs* $ac_clean_files
1502 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1