]> sourceware.org Git - newlib-cygwin.git/blob - newlib/doc/configure
* libm/common/s_fdim.c: New file.
[newlib-cygwin.git] / newlib / doc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-target-optspace optimize for space"
18 ac_help="$ac_help
19 --enable-malloc-debugging indicate malloc debugging requested"
20 ac_help="$ac_help
21 --enable-newlib-mb enable multibyte support"
22 ac_help="$ac_help
23 --enable-newlib-multithread enable support for multiple threads"
24 ac_help="$ac_help
25 --disable-newlib-io-float disable printf/scanf family float support"
26 ac_help="$ac_help
27 --enable-maintainer-mode enable make rules and dependencies not useful
28 (and sometimes confusing) to the casual installer"
29
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 sitefile=
47 srcdir=
48 target=NONE
49 verbose=
50 x_includes=NONE
51 x_libraries=NONE
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
64
65 # Initialize some other variables.
66 subdirs=
67 MFLAGS= MAKEFLAGS=
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
70 ac_max_here_lines=12
71
72 ac_prev=
73 for ac_option
74 do
75
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
79 ac_prev=
80 continue
81 fi
82
83 case "$ac_option" in
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 *) ac_optarg= ;;
86 esac
87
88 # Accept the important Cygnus configure options, so we can diagnose typos.
89
90 case "$ac_option" in
91
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 ac_prev=bindir ;;
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
96
97 -build | --build | --buil | --bui | --bu)
98 ac_prev=build ;;
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
101
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
108
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 ac_prev=datadir ;;
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 | --da=*)
113 datadir="$ac_optarg" ;;
114
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
123
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 case "$ac_option" in
132 *=*) ;;
133 *) ac_optarg=yes ;;
134 esac
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
136
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
145
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
148 with_gas=yes ;;
149
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
153 cat << EOF
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
156 Configuration:
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --site-file=FILE use FILE as the site file
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187 EOF
188 cat << EOF
189 Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
200 EOF
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
269
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -site-file | --site-file | --site-fil | --site-fi | --site-f)
333 ac_prev=sitefile ;;
334 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
335 sitefile="$ac_optarg" ;;
336
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 ac_prev=srcdir ;;
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
341
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" ;;
348
349 -target | --target | --targe | --targ | --tar | --ta | --t)
350 ac_prev=target ;;
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
353
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 verbose=yes ;;
356
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
359 exit 0 ;;
360
361 -with-* | --with-*)
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; }
366 fi
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "with_${ac_package}='$ac_optarg'" ;;
373
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; }
379 fi
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
382
383 --x)
384 # Obsolete; use --with-x.
385 with_x=yes ;;
386
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" ;;
393
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" ;;
400
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 ;;
403
404 *)
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
407 fi
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; }
410 fi
411 nonopt="$ac_option"
412 ;;
413
414 esac
415 done
416
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432 exec 6>/dev/null
433 else
434 exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448 case "$ac_arg" in
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" ;;
456 esac
457 done
458
459 # NLS nuisances.
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
473
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=makedoc.c
477
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
482 ac_prog=$0
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 srcdir=$ac_confdir
486 if test ! -r $srcdir/$ac_unique_file; then
487 srcdir=..
488 fi
489 else
490 ac_srcdir_defaulted=no
491 fi
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 else
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 fi
498 fi
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$sitefile"; then
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 else
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 fi
509 fi
510 else
511 CONFIG_SITE="$sitefile"
512 fi
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
517 fi
518 done
519
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
526 fi
527
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
534
535 ac_exeext=
536 ac_objext=o
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541 ' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
544 fi
545 else
546 ac_n= ac_c='\c' ac_t=
547 fi
548
549
550
551 ac_aux_dir=
552 for ac_dir in ../.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
554 ac_aux_dir=$ac_dir
555 ac_install_sh="$ac_aux_dir/install-sh -c"
556 break
557 elif test -f $ac_dir/install.sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install.sh -c"
560 break
561 fi
562 done
563 if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
565 fi
566 ac_config_guess=$ac_aux_dir/config.guess
567 ac_config_sub=$ac_aux_dir/config.sub
568 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569
570
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
576 # IRIX /sbin/install
577 # AIX /bin/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587 else
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
591 case "$ac_dir/" in
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
593 *)
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
596 # by default.
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
602 :
603 else
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
605 break 2
606 fi
607 fi
608 done
609 ;;
610 esac
611 done
612 IFS="$ac_save_IFS"
613
614 fi
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
617 else
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
623 fi
624 fi
625 echo "$ac_t""$INSTALL" 1>&6
626
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
630
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
632
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
634
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
637 # Just in case
638 sleep 1
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
644 # directory).
645 if (
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
648 # -L didn't work.
649 set X `ls -t $srcdir/configure conftestfile`
650 fi
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
653
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
660 fi
661
662 test "$2" = conftestfile
663 )
664 then
665 # Ok.
666 :
667 else
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
670 fi
671 rm -f conftest*
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
675 else
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
679 EOF_SED
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681 rm -f conftestsed
682 fi
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
688
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
691
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 cat > conftestmake <<\EOF
699 all:
700 @echo 'ac_maketemp="${MAKE}"'
701 EOF
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
706 else
707 eval ac_cv_prog_make_${ac_make}_set=no
708 fi
709 rm -f conftestmake
710 fi
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
713 SET_MAKE=
714 else
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
717 fi
718
719 if test $host != $build; then
720 ac_tool_prefix=${host_alias}-
721 else
722 ac_tool_prefix=
723 fi
724
725 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
726 echo "configure:727: checking for Cygwin environment" >&5
727 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 cat > conftest.$ac_ext <<EOF
731 #line 732 "configure"
732 #include "confdefs.h"
733
734 int main() {
735
736 #ifndef __CYGWIN__
737 #define __CYGWIN__ __CYGWIN32__
738 #endif
739 return __CYGWIN__;
740 ; return 0; }
741 EOF
742 if { (eval echo configure:743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
743 rm -rf conftest*
744 ac_cv_cygwin=yes
745 else
746 echo "configure: failed program was:" >&5
747 cat conftest.$ac_ext >&5
748 rm -rf conftest*
749 ac_cv_cygwin=no
750 fi
751 rm -f conftest*
752 rm -f conftest*
753 fi
754
755 echo "$ac_t""$ac_cv_cygwin" 1>&6
756 CYGWIN=
757 test "$ac_cv_cygwin" = yes && CYGWIN=yes
758 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
759 echo "configure:760: checking for mingw32 environment" >&5
760 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
762 else
763 cat > conftest.$ac_ext <<EOF
764 #line 765 "configure"
765 #include "confdefs.h"
766
767 int main() {
768 return __MINGW32__;
769 ; return 0; }
770 EOF
771 if { (eval echo configure:772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
772 rm -rf conftest*
773 ac_cv_mingw32=yes
774 else
775 echo "configure: failed program was:" >&5
776 cat conftest.$ac_ext >&5
777 rm -rf conftest*
778 ac_cv_mingw32=no
779 fi
780 rm -f conftest*
781 rm -f conftest*
782 fi
783
784 echo "$ac_t""$ac_cv_mingw32" 1>&6
785 MINGW32=
786 test "$ac_cv_mingw32" = yes && MINGW32=yes
787
788 # Check whether --enable-multilib or --disable-multilib was given.
789 if test "${enable_multilib+set}" = set; then
790 enableval="$enable_multilib"
791 case "${enableval}" in
792 yes) multilib=yes ;;
793 no) multilib=no ;;
794 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
795 esac
796 else
797 multilib=yes
798 fi
799
800 # Check whether --enable-target-optspace or --disable-target-optspace was given.
801 if test "${enable_target_optspace+set}" = set; then
802 enableval="$enable_target_optspace"
803 case "${enableval}" in
804 yes) target_optspace=yes ;;
805 no) target_optspace=no ;;
806 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
807 esac
808 else
809 target_optspace=
810 fi
811
812 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
813 if test "${enable_malloc_debugging+set}" = set; then
814 enableval="$enable_malloc_debugging"
815 case "${enableval}" in
816 yes) malloc_debugging=yes ;;
817 no) malloc_debugging=no ;;
818 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
819 esac
820 else
821 malloc_debugging=
822 fi
823
824 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
825 if test "${enable_newlib_mb+set}" = set; then
826 enableval="$enable_newlib_mb"
827 case "${enableval}" in
828 yes) newlib_mb=yes ;;
829 no) newlib_mb=no ;;
830 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
831 esac
832 else
833 newlib_mb=no
834 fi
835
836 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
837 if test "${enable_newlib_multithread+set}" = set; then
838 enableval="$enable_newlib_multithread"
839 case "${enableval}" in
840 yes) newlib_multithread=yes ;;
841 no) newlib_multithread=no ;;
842 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
843 esac
844 else
845 newlib_multithread=yes
846 fi
847
848 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
849 if test "${enable_newlib_io_float+set}" = set; then
850 enableval="$enable_newlib_io_float"
851 case "${enableval}" in
852 yes) newlib_io_float=yes ;;
853 no) newlib_io_float=no ;;
854 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
855 esac
856 else
857 newlib_io_float=yes
858 fi
859
860
861
862 test -z "${with_target_subdir}" && with_target_subdir=.
863
864 if test "${srcdir}" = "."; then
865 if test "${with_target_subdir}" != "."; then
866 newlib_basedir="${srcdir}/${with_multisrctop}../.."
867 else
868 newlib_basedir="${srcdir}/${with_multisrctop}.."
869 fi
870 else
871 newlib_basedir="${srcdir}/.."
872 fi
873
874
875
876 # Do some error checking and defaulting for the host and target type.
877 # The inputs are:
878 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
879 #
880 # The rules are:
881 # 1. You are not allowed to specify --host, --target, and nonopt at the
882 # same time.
883 # 2. Host defaults to nonopt.
884 # 3. If nonopt is not specified, then host defaults to the current host,
885 # as determined by config.guess.
886 # 4. Target and build default to nonopt.
887 # 5. If nonopt is not specified, then target and build default to host.
888
889 # The aliases save the names the user supplied, while $host etc.
890 # will get canonicalized.
891 case $host---$target---$nonopt in
892 NONE---*---* | *---NONE---* | *---*---NONE) ;;
893 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
894 esac
895
896
897 # Make sure we can run config.sub.
898 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
900 fi
901
902 echo $ac_n "checking host system type""... $ac_c" 1>&6
903 echo "configure:904: checking host system type" >&5
904
905 host_alias=$host
906 case "$host_alias" in
907 NONE)
908 case $nonopt in
909 NONE)
910 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
912 fi ;;
913 *) host_alias=$nonopt ;;
914 esac ;;
915 esac
916
917 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
918 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$host" 1>&6
922
923 echo $ac_n "checking target system type""... $ac_c" 1>&6
924 echo "configure:925: checking target system type" >&5
925
926 target_alias=$target
927 case "$target_alias" in
928 NONE)
929 case $nonopt in
930 NONE) target_alias=$host_alias ;;
931 *) target_alias=$nonopt ;;
932 esac ;;
933 esac
934
935 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
936 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
937 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
938 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
939 echo "$ac_t""$target" 1>&6
940
941 echo $ac_n "checking build system type""... $ac_c" 1>&6
942 echo "configure:943: checking build system type" >&5
943
944 build_alias=$build
945 case "$build_alias" in
946 NONE)
947 case $nonopt in
948 NONE) build_alias=$host_alias ;;
949 *) build_alias=$nonopt ;;
950 esac ;;
951 esac
952
953 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
954 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
955 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
956 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
957 echo "$ac_t""$build" 1>&6
958
959 test "$host_alias" != "$target_alias" &&
960 test "$program_prefix$program_suffix$program_transform_name" = \
961 NONENONEs,x,x, &&
962 program_prefix=${target_alias}-
963
964
965
966 PACKAGE=newlib
967
968 VERSION=1.10.0
969
970 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
971 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
972 fi
973 cat >> confdefs.h <<EOF
974 #define PACKAGE "$PACKAGE"
975 EOF
976
977 cat >> confdefs.h <<EOF
978 #define VERSION "$VERSION"
979 EOF
980
981
982
983 missing_dir=`cd $ac_aux_dir && pwd`
984 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
985 echo "configure:986: checking for working aclocal" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
990 ACLOCAL=aclocal
991 echo "$ac_t""found" 1>&6
992 else
993 ACLOCAL="$missing_dir/missing aclocal"
994 echo "$ac_t""missing" 1>&6
995 fi
996
997 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
998 echo "configure:999: checking for working autoconf" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf. Sigh.
1002 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1003 AUTOCONF=autoconf
1004 echo "$ac_t""found" 1>&6
1005 else
1006 AUTOCONF="$missing_dir/missing autoconf"
1007 echo "$ac_t""missing" 1>&6
1008 fi
1009
1010 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working automake" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf. Sigh.
1015 if (automake --version) < /dev/null > /dev/null 2>&1; then
1016 AUTOMAKE=automake
1017 echo "$ac_t""found" 1>&6
1018 else
1019 AUTOMAKE="$missing_dir/missing automake"
1020 echo "$ac_t""missing" 1>&6
1021 fi
1022
1023 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working autoheader" >&5
1025 # Run test in a subshell; some versions of sh will print an error if
1026 # an executable is not found, even if stderr is redirected.
1027 # Redirect stdin to placate older versions of autoconf. Sigh.
1028 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1029 AUTOHEADER=autoheader
1030 echo "$ac_t""found" 1>&6
1031 else
1032 AUTOHEADER="$missing_dir/missing autoheader"
1033 echo "$ac_t""missing" 1>&6
1034 fi
1035
1036 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1037 echo "configure:1038: checking for working makeinfo" >&5
1038 # Run test in a subshell; some versions of sh will print an error if
1039 # an executable is not found, even if stderr is redirected.
1040 # Redirect stdin to placate older versions of autoconf. Sigh.
1041 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1042 MAKEINFO=makeinfo
1043 echo "$ac_t""found" 1>&6
1044 else
1045 MAKEINFO="$missing_dir/missing makeinfo"
1046 echo "$ac_t""missing" 1>&6
1047 fi
1048
1049
1050
1051 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1052 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1053 # are probably using a cross compiler, which will not be able to fully
1054 # link an executable. This should really be fixed in autoconf
1055 # itself.
1056
1057
1058
1059 # Extract the first word of "gcc", so it can be a program name with args.
1060 set dummy gcc; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1065 else
1066 if test -n "$CC"; then
1067 ac_cv_prog_CC="$CC" # Let the user override the test.
1068 else
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 ac_dummy="$PATH"
1071 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 if test -f $ac_dir/$ac_word; then
1074 ac_cv_prog_CC="gcc"
1075 break
1076 fi
1077 done
1078 IFS="$ac_save_ifs"
1079 fi
1080 fi
1081 CC="$ac_cv_prog_CC"
1082 if test -n "$CC"; then
1083 echo "$ac_t""$CC" 1>&6
1084 else
1085 echo "$ac_t""no" 1>&6
1086 fi
1087
1088 if test -z "$CC"; then
1089 # Extract the first word of "cc", so it can be a program name with args.
1090 set dummy cc; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096 if test -n "$CC"; then
1097 ac_cv_prog_CC="$CC" # Let the user override the test.
1098 else
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 ac_prog_rejected=no
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1106 ac_prog_rejected=yes
1107 continue
1108 fi
1109 ac_cv_prog_CC="cc"
1110 break
1111 fi
1112 done
1113 IFS="$ac_save_ifs"
1114 if test $ac_prog_rejected = yes; then
1115 # We found a bogon in the path, so make sure we never use it.
1116 set dummy $ac_cv_prog_CC
1117 shift
1118 if test $# -gt 0; then
1119 # We chose a different compiler from the bogus one.
1120 # However, it has the same basename, so the bogon will be chosen
1121 # first if we set CC to just the basename; use the full file name.
1122 shift
1123 set dummy "$ac_dir/$ac_word" "$@"
1124 shift
1125 ac_cv_prog_CC="$@"
1126 fi
1127 fi
1128 fi
1129 fi
1130 CC="$ac_cv_prog_CC"
1131 if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1133 else
1134 echo "$ac_t""no" 1>&6
1135 fi
1136
1137 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1138 fi
1139
1140 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether we are using GNU C" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 cat > conftest.c <<EOF
1146 #ifdef __GNUC__
1147 yes;
1148 #endif
1149 EOF
1150 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1151 ac_cv_prog_gcc=yes
1152 else
1153 ac_cv_prog_gcc=no
1154 fi
1155 fi
1156
1157 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1158
1159 if test $ac_cv_prog_gcc = yes; then
1160 GCC=yes
1161 ac_test_CFLAGS="${CFLAGS+set}"
1162 ac_save_CFLAGS="$CFLAGS"
1163 CFLAGS=
1164 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether ${CC-cc} accepts -g" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 echo 'void f(){}' > conftest.c
1170 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1171 ac_cv_prog_cc_g=yes
1172 else
1173 ac_cv_prog_cc_g=no
1174 fi
1175 rm -f conftest*
1176
1177 fi
1178
1179 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1180 if test "$ac_test_CFLAGS" = set; then
1181 CFLAGS="$ac_save_CFLAGS"
1182 elif test $ac_cv_prog_cc_g = yes; then
1183 CFLAGS="-g -O2"
1184 else
1185 CFLAGS="-O2"
1186 fi
1187 else
1188 GCC=
1189 test "${CFLAGS+set}" = set || CFLAGS="-g"
1190 fi
1191
1192
1193 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1194 set dummy ${ac_tool_prefix}as; ac_word=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200 if test -n "$AS"; then
1201 ac_cv_prog_AS="$AS" # Let the user override the test.
1202 else
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1204 ac_dummy="$PATH"
1205 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 if test -f $ac_dir/$ac_word; then
1208 ac_cv_prog_AS="${ac_tool_prefix}as"
1209 break
1210 fi
1211 done
1212 IFS="$ac_save_ifs"
1213 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1214 fi
1215 fi
1216 AS="$ac_cv_prog_AS"
1217 if test -n "$AS"; then
1218 echo "$ac_t""$AS" 1>&6
1219 else
1220 echo "$ac_t""no" 1>&6
1221 fi
1222
1223
1224
1225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1226 set dummy ${ac_tool_prefix}ar; ac_word=$2
1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 if test -n "$AR"; then
1233 ac_cv_prog_AR="$AR" # Let the user override the test.
1234 else
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 ac_dummy="$PATH"
1237 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_AR="${ac_tool_prefix}ar"
1241 break
1242 fi
1243 done
1244 IFS="$ac_save_ifs"
1245 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1246 fi
1247 fi
1248 AR="$ac_cv_prog_AR"
1249 if test -n "$AR"; then
1250 echo "$ac_t""$AR" 1>&6
1251 else
1252 echo "$ac_t""no" 1>&6
1253 fi
1254
1255
1256
1257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 if test -n "$RANLIB"; then
1265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1266 else
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1273 break
1274 fi
1275 done
1276 IFS="$ac_save_ifs"
1277 fi
1278 fi
1279 RANLIB="$ac_cv_prog_RANLIB"
1280 if test -n "$RANLIB"; then
1281 echo "$ac_t""$RANLIB" 1>&6
1282 else
1283 echo "$ac_t""no" 1>&6
1284 fi
1285
1286
1287 if test -z "$ac_cv_prog_RANLIB"; then
1288 if test -n "$ac_tool_prefix"; then
1289 # Extract the first word of "ranlib", so it can be a program name with args.
1290 set dummy ranlib; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1295 else
1296 if test -n "$RANLIB"; then
1297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1298 else
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1300 ac_dummy="$PATH"
1301 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 if test -f $ac_dir/$ac_word; then
1304 ac_cv_prog_RANLIB="ranlib"
1305 break
1306 fi
1307 done
1308 IFS="$ac_save_ifs"
1309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1310 fi
1311 fi
1312 RANLIB="$ac_cv_prog_RANLIB"
1313 if test -n "$RANLIB"; then
1314 echo "$ac_t""$RANLIB" 1>&6
1315 else
1316 echo "$ac_t""no" 1>&6
1317 fi
1318
1319 else
1320 RANLIB=":"
1321 fi
1322 fi
1323
1324
1325 # Find a good install program. We prefer a C program (faster),
1326 # so one script is as good as another. But avoid the broken or
1327 # incompatible versions:
1328 # SysV /etc/install, /usr/sbin/install
1329 # SunOS /usr/etc/install
1330 # IRIX /sbin/install
1331 # AIX /bin/install
1332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1335 # ./install, which can be erroneously created by make from ./install.sh.
1336 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1337 echo "configure:1338: checking for a BSD compatible install" >&5
1338 if test -z "$INSTALL"; then
1339 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1343 for ac_dir in $PATH; do
1344 # Account for people who put trailing slashes in PATH elements.
1345 case "$ac_dir/" in
1346 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1347 *)
1348 # OSF1 and SCO ODT 3.0 have their own names for install.
1349 # Don't use installbsd from OSF since it installs stuff as root
1350 # by default.
1351 for ac_prog in ginstall scoinst install; do
1352 if test -f $ac_dir/$ac_prog; then
1353 if test $ac_prog = install &&
1354 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1355 # AIX install. It has an incompatible calling convention.
1356 :
1357 else
1358 ac_cv_path_install="$ac_dir/$ac_prog -c"
1359 break 2
1360 fi
1361 fi
1362 done
1363 ;;
1364 esac
1365 done
1366 IFS="$ac_save_IFS"
1367
1368 fi
1369 if test "${ac_cv_path_install+set}" = set; then
1370 INSTALL="$ac_cv_path_install"
1371 else
1372 # As a last resort, use the slow shell script. We don't cache a
1373 # path for INSTALL within a source directory, because that will
1374 # break other packages using the cache if that directory is
1375 # removed, or if the path is relative.
1376 INSTALL="$ac_install_sh"
1377 fi
1378 fi
1379 echo "$ac_t""$INSTALL" 1>&6
1380
1381 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1382 # It thinks the first close brace ends the variable substitution.
1383 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1384
1385 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1386
1387 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1388
1389
1390 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1391 echo "configure:1392: checking whether to enable maintainer-specific portions of Makefiles" >&5
1392 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1393 if test "${enable_maintainer_mode+set}" = set; then
1394 enableval="$enable_maintainer_mode"
1395 USE_MAINTAINER_MODE=$enableval
1396 else
1397 USE_MAINTAINER_MODE=no
1398 fi
1399
1400 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1401
1402
1403 if test $USE_MAINTAINER_MODE = yes; then
1404 MAINTAINER_MODE_TRUE=
1405 MAINTAINER_MODE_FALSE='#'
1406 else
1407 MAINTAINER_MODE_TRUE='#'
1408 MAINTAINER_MODE_FALSE=
1409 fi
1410 MAINT=$MAINTAINER_MODE_TRUE
1411
1412
1413
1414 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1415 # at least currently, we never actually build a program, so we never
1416 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1417 # fails, because we are probably configuring with a cross compiler
1418 # which can't create executables. So we include AC_EXEEXT to keep
1419 # automake happy, but we don't execute it, since we don't care about
1420 # the result.
1421 if false; then
1422
1423
1424 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1425 echo "configure:1426: checking for executable suffix" >&5
1426 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1430 ac_cv_exeext=.exe
1431 else
1432 rm -f conftest*
1433 echo 'int main () { return 0; }' > conftest.$ac_ext
1434 ac_cv_exeext=
1435 if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1436 for file in conftest.*; do
1437 case $file in
1438 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1439 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1440 esac
1441 done
1442 else
1443 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1444 fi
1445 rm -f conftest*
1446 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1447 fi
1448 fi
1449
1450 EXEEXT=""
1451 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1452 echo "$ac_t""${ac_cv_exeext}" 1>&6
1453 ac_exeext=$EXEEXT
1454
1455 fi
1456
1457 . ${newlib_basedir}/configure.host
1458
1459 newlib_cflags="${newlib_cflags} -fno-builtin"
1460
1461 NEWLIB_CFLAGS=${newlib_cflags}
1462
1463
1464 LDFLAGS=${ldflags}
1465
1466
1467
1468
1469 if test x${use_libtool} = xyes; then
1470 USE_LIBTOOL_TRUE=
1471 USE_LIBTOOL_FALSE='#'
1472 else
1473 USE_LIBTOOL_TRUE='#'
1474 USE_LIBTOOL_FALSE=
1475 fi
1476
1477 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1478 # use oext, which is set in configure.host based on the target platform.
1479 OBJEXT=${oext}
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 # Put a plausible default for CC_FOR_BUILD in Makefile.
1491 if test -z "$CC_FOR_BUILD"; then
1492 if test "x$cross_compiling" = "xno"; then
1493 CC_FOR_BUILD='$(CC)'
1494 else
1495 CC_FOR_BUILD=gcc
1496 fi
1497 fi
1498
1499
1500 # Also set EXEEXT_FOR_BUILD.
1501 if test "x$cross_compiling" = "xno"; then
1502 EXEEXT_FOR_BUILD='$(EXEEXT)'
1503 else
1504 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
1505 echo "configure:1506: checking for build system executable suffix" >&5
1506 if eval "test \"`echo '$''{'newlib_cv_build_exeext'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 cat > ac_c_test.c << 'EOF'
1510 int main() {
1511 /* Nothing needed here */
1512 }
1513 EOF
1514 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
1515 newlib_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
1516 rm -f ac_c_test*
1517 test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no
1518 fi
1519
1520 echo "$ac_t""$newlib_cv_build_exeext" 1>&6
1521 EXEEXT_FOR_BUILD=""
1522 test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext}
1523 fi
1524
1525
1526 trap '' 1 2 15
1527 cat > confcache <<\EOF
1528 # This file is a shell script that caches the results of configure
1529 # tests run on this system so they can be shared between configure
1530 # scripts and configure runs. It is not useful on other systems.
1531 # If it contains results you don't want to keep, you may remove or edit it.
1532 #
1533 # By default, configure uses ./config.cache as the cache file,
1534 # creating it if it does not exist already. You can give configure
1535 # the --cache-file=FILE option to use a different cache file; that is
1536 # what configure does when it calls configure scripts in
1537 # subdirectories, so they share the cache.
1538 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1539 # config.status only pays attention to the cache file if you give it the
1540 # --recheck option to rerun configure.
1541 #
1542 EOF
1543 # The following way of writing the cache mishandles newlines in values,
1544 # but we know of no workaround that is simple, portable, and efficient.
1545 # So, don't put newlines in cache variables' values.
1546 # Ultrix sh set writes to stderr and can't be redirected directly,
1547 # and sets the high bit in the cache file unless we assign to the vars.
1548 (set) 2>&1 |
1549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1550 *ac_space=\ *)
1551 # `set' does not quote correctly, so add quotes (double-quote substitution
1552 # turns \\\\ into \\, and sed turns \\ into \).
1553 sed -n \
1554 -e "s/'/'\\\\''/g" \
1555 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1556 ;;
1557 *)
1558 # `set' quotes correctly as required by POSIX, so do not add quotes.
1559 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1560 ;;
1561 esac >> confcache
1562 if cmp -s $cache_file confcache; then
1563 :
1564 else
1565 if test -w $cache_file; then
1566 echo "updating cache $cache_file"
1567 cat confcache > $cache_file
1568 else
1569 echo "not updating unwritable cache $cache_file"
1570 fi
1571 fi
1572 rm -f confcache
1573
1574 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1575
1576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1577 # Let make expand exec_prefix.
1578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1579
1580 # Any assignment to VPATH causes Sun make to only execute
1581 # the first set of double-colon rules, so remove it if not needed.
1582 # If there is a colon in the path, we need to keep it.
1583 if test "x$srcdir" = x.; then
1584 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1585 fi
1586
1587 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1588
1589 # Transform confdefs.h into DEFS.
1590 # Protect against shell expansion while executing Makefile rules.
1591 # Protect against Makefile macro expansion.
1592 cat > conftest.defs <<\EOF
1593 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1594 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1595 s%\[%\\&%g
1596 s%\]%\\&%g
1597 s%\$%$$%g
1598 EOF
1599 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1600 rm -f conftest.defs
1601
1602
1603 # Without the "./", some shells look in PATH for config.status.
1604 : ${CONFIG_STATUS=./config.status}
1605
1606 echo creating $CONFIG_STATUS
1607 rm -f $CONFIG_STATUS
1608 cat > $CONFIG_STATUS <<EOF
1609 #! /bin/sh
1610 # Generated automatically by configure.
1611 # Run this file to recreate the current configuration.
1612 # This directory was configured as follows,
1613 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1614 #
1615 # $0 $ac_configure_args
1616 #
1617 # Compiler output produced by configure, useful for debugging
1618 # configure, is in ./config.log if it exists.
1619
1620 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1621 for ac_option
1622 do
1623 case "\$ac_option" in
1624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1625 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1626 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1627 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1628 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1629 exit 0 ;;
1630 -help | --help | --hel | --he | --h)
1631 echo "\$ac_cs_usage"; exit 0 ;;
1632 *) echo "\$ac_cs_usage"; exit 1 ;;
1633 esac
1634 done
1635
1636 ac_given_srcdir=$srcdir
1637 ac_given_INSTALL="$INSTALL"
1638
1639 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1640 EOF
1641 cat >> $CONFIG_STATUS <<EOF
1642
1643 # Protect against being on the right side of a sed subst in config.status.
1644 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1645 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1646 $ac_vpsub
1647 $extrasub
1648 s%@SHELL@%$SHELL%g
1649 s%@CFLAGS@%$CFLAGS%g
1650 s%@CPPFLAGS@%$CPPFLAGS%g
1651 s%@CXXFLAGS@%$CXXFLAGS%g
1652 s%@FFLAGS@%$FFLAGS%g
1653 s%@DEFS@%$DEFS%g
1654 s%@LDFLAGS@%$LDFLAGS%g
1655 s%@LIBS@%$LIBS%g
1656 s%@exec_prefix@%$exec_prefix%g
1657 s%@prefix@%$prefix%g
1658 s%@program_transform_name@%$program_transform_name%g
1659 s%@bindir@%$bindir%g
1660 s%@sbindir@%$sbindir%g
1661 s%@libexecdir@%$libexecdir%g
1662 s%@datadir@%$datadir%g
1663 s%@sysconfdir@%$sysconfdir%g
1664 s%@sharedstatedir@%$sharedstatedir%g
1665 s%@localstatedir@%$localstatedir%g
1666 s%@libdir@%$libdir%g
1667 s%@includedir@%$includedir%g
1668 s%@oldincludedir@%$oldincludedir%g
1669 s%@infodir@%$infodir%g
1670 s%@mandir@%$mandir%g
1671 s%@newlib_basedir@%$newlib_basedir%g
1672 s%@host@%$host%g
1673 s%@host_alias@%$host_alias%g
1674 s%@host_cpu@%$host_cpu%g
1675 s%@host_vendor@%$host_vendor%g
1676 s%@host_os@%$host_os%g
1677 s%@target@%$target%g
1678 s%@target_alias@%$target_alias%g
1679 s%@target_cpu@%$target_cpu%g
1680 s%@target_vendor@%$target_vendor%g
1681 s%@target_os@%$target_os%g
1682 s%@build@%$build%g
1683 s%@build_alias@%$build_alias%g
1684 s%@build_cpu@%$build_cpu%g
1685 s%@build_vendor@%$build_vendor%g
1686 s%@build_os@%$build_os%g
1687 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1688 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1689 s%@INSTALL_DATA@%$INSTALL_DATA%g
1690 s%@PACKAGE@%$PACKAGE%g
1691 s%@VERSION@%$VERSION%g
1692 s%@ACLOCAL@%$ACLOCAL%g
1693 s%@AUTOCONF@%$AUTOCONF%g
1694 s%@AUTOMAKE@%$AUTOMAKE%g
1695 s%@AUTOHEADER@%$AUTOHEADER%g
1696 s%@MAKEINFO@%$MAKEINFO%g
1697 s%@SET_MAKE@%$SET_MAKE%g
1698 s%@CC@%$CC%g
1699 s%@AS@%$AS%g
1700 s%@AR@%$AR%g
1701 s%@RANLIB@%$RANLIB%g
1702 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1703 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1704 s%@MAINT@%$MAINT%g
1705 s%@EXEEXT@%$EXEEXT%g
1706 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1707 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1708 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1709 s%@OBJEXT@%$OBJEXT%g
1710 s%@oext@%$oext%g
1711 s%@aext@%$aext%g
1712 s%@libm_machine_dir@%$libm_machine_dir%g
1713 s%@machine_dir@%$machine_dir%g
1714 s%@sys_dir@%$sys_dir%g
1715 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1716 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
1717
1718 CEOF
1719 EOF
1720
1721 cat >> $CONFIG_STATUS <<\EOF
1722
1723 # Split the substitutions into bite-sized pieces for seds with
1724 # small command number limits, like on Digital OSF/1 and HP-UX.
1725 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
1726 ac_file=1 # Number of current file.
1727 ac_beg=1 # First line for current file.
1728 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1729 ac_more_lines=:
1730 ac_sed_cmds=""
1731 while $ac_more_lines; do
1732 if test $ac_beg -gt 1; then
1733 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1734 else
1735 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1736 fi
1737 if test ! -s conftest.s$ac_file; then
1738 ac_more_lines=false
1739 rm -f conftest.s$ac_file
1740 else
1741 if test -z "$ac_sed_cmds"; then
1742 ac_sed_cmds="sed -f conftest.s$ac_file"
1743 else
1744 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1745 fi
1746 ac_file=`expr $ac_file + 1`
1747 ac_beg=$ac_end
1748 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1749 fi
1750 done
1751 if test -z "$ac_sed_cmds"; then
1752 ac_sed_cmds=cat
1753 fi
1754 EOF
1755
1756 cat >> $CONFIG_STATUS <<EOF
1757
1758 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1759 EOF
1760 cat >> $CONFIG_STATUS <<\EOF
1761 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1763 case "$ac_file" in
1764 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1765 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1766 *) ac_file_in="${ac_file}.in" ;;
1767 esac
1768
1769 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1770
1771 # Remove last slash and all that follows it. Not all systems have dirname.
1772 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1774 # The file is in a subdirectory.
1775 test ! -d "$ac_dir" && mkdir "$ac_dir"
1776 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1777 # A "../" for each directory in $ac_dir_suffix.
1778 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1779 else
1780 ac_dir_suffix= ac_dots=
1781 fi
1782
1783 case "$ac_given_srcdir" in
1784 .) srcdir=.
1785 if test -z "$ac_dots"; then top_srcdir=.
1786 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1787 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1788 *) # Relative path.
1789 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1790 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1791 esac
1792
1793 case "$ac_given_INSTALL" in
1794 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1795 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1796 esac
1797
1798 echo creating "$ac_file"
1799 rm -f "$ac_file"
1800 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1801 case "$ac_file" in
1802 *Makefile*) ac_comsub="1i\\
1803 # $configure_input" ;;
1804 *) ac_comsub= ;;
1805 esac
1806
1807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1808 sed -e "$ac_comsub
1809 s%@configure_input@%$configure_input%g
1810 s%@srcdir@%$srcdir%g
1811 s%@top_srcdir@%$top_srcdir%g
1812 s%@INSTALL@%$INSTALL%g
1813 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1814 fi; done
1815 rm -f conftest.s*
1816
1817 EOF
1818 cat >> $CONFIG_STATUS <<EOF
1819
1820 EOF
1821 cat >> $CONFIG_STATUS <<\EOF
1822
1823 exit 0
1824 EOF
1825 chmod +x $CONFIG_STATUS
1826 rm -fr confdefs* $ac_clean_files
1827 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1828
This page took 0.13932 seconds and 5 git commands to generate.