1 diff -urN ../newlib-1.11.0.orig/libgloss/configure ./libgloss/configure
2 --- ../newlib-1.11.0.orig/libgloss/configure Tue Nov 25 09:05:13 2003
3 +++ ./libgloss/configure Mon Nov 24 20:12:14 2003
9 + configdirs="${configdirs}"
12 configdirs="${configdirs} mips testsuite"
15 # Extract the first word of "gcc", so it can be a program name with args.
16 set dummy gcc; ac_word=$2
17 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
18 -echo "configure:822: checking for $ac_word" >&5
19 +echo "configure:825: checking for $ac_word" >&5
20 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
21 echo $ac_n "(cached) $ac_c" 1>&6
24 # Extract the first word of "cc", so it can be a program name with args.
25 set dummy cc; ac_word=$2
26 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
27 -echo "configure:852: checking for $ac_word" >&5
28 +echo "configure:855: checking for $ac_word" >&5
29 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
30 echo $ac_n "(cached) $ac_c" 1>&6
35 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
36 -echo "configure:901: checking whether we are using GNU C" >&5
37 +echo "configure:904: checking whether we are using GNU C" >&5
38 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
39 echo $ac_n "(cached) $ac_c" 1>&6
45 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
46 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
51 ac_save_CFLAGS="$CFLAGS"
53 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
54 -echo "configure:925: checking whether ${CC-cc} accepts -g" >&5
55 +echo "configure:928: checking whether ${CC-cc} accepts -g" >&5
56 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
57 echo $ac_n "(cached) $ac_c" 1>&6
60 # Extract the first word of "ar", so it can be a program name with args.
61 set dummy ar; ac_word=$2
62 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
63 -echo "configure:957: checking for $ac_word" >&5
64 +echo "configure:960: checking for $ac_word" >&5
65 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
66 echo $ac_n "(cached) $ac_c" 1>&6
69 # Extract the first word of "ranlib", so it can be a program name with args.
70 set dummy ranlib; ac_word=$2
71 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
72 -echo "configure:991: checking for $ac_word" >&5
73 +echo "configure:994: checking for $ac_word" >&5
74 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
75 echo $ac_n "(cached) $ac_c" 1>&6
77 diff -urN ../newlib-1.11.0.orig/libgloss/configure.in ./libgloss/configure.in
78 --- ../newlib-1.11.0.orig/libgloss/configure.in Tue Nov 25 09:05:13 2003
79 +++ ./libgloss/configure.in Mon Nov 24 20:12:14 2003
85 + configdirs="${configdirs}"
88 configdirs="${configdirs} mips testsuite"
90 diff -urN ../newlib-1.11.0.orig/newlib/configure.host ./newlib/configure.host
91 --- ../newlib-1.11.0.orig/newlib/configure.host Tue Nov 25 09:05:13 2003
92 +++ ./newlib/configure.host Tue Nov 25 08:30:02 2003
104 newlib_cflags="${newlib_cflags}"
107 + mips*-unknown-elf*)
108 + newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL"
109 + syscall_dir=syscalls
113 # We need every symbol 32-bit aligned, so the invalid
114 diff -urN ../newlib-1.11.0.orig/newlib/libc/include/paths.h ./newlib/libc/include/paths.h
115 --- ../newlib-1.11.0.orig/newlib/libc/include/paths.h Thu Feb 17 14:39:46 2000
116 +++ ./newlib/libc/include/paths.h Tue Nov 25 09:48:09 2003
119 #define _PATH_DEV "/dev/"
120 #define _PATH_BSHELL "/bin/sh"
121 +#define _PATH_DEVNULL "/dev/null"
123 #endif /* _PATHS_H_ */
124 diff -urN ../newlib-1.11.0.orig/newlib/libc/include/stdlib.h ./newlib/libc/include/stdlib.h
125 --- ../newlib-1.11.0.orig/newlib/libc/include/stdlib.h Fri Dec 6 13:58:50 2002
126 +++ ./newlib/libc/include/stdlib.h Tue Nov 25 09:50:46 2003
127 @@ -158,10 +158,12 @@
128 _VOID _EXFUN(cfree,(_PTR));
130 char * _EXFUN(realpath,(const char *, char *));
132 void _EXFUN(unsetenv,(const char *__string));
133 void _EXFUN(_unsetenv_r,(struct _reent *, const char *__string));
134 int _EXFUN(random,(_VOID));
135 long _EXFUN(srandom,(unsigned __seed));
137 char * _EXFUN(ptsname, (int));
138 int _EXFUN(grantpt, (int));
139 int _EXFUN(unlockpt,(int));
140 diff -urN ../newlib-1.11.0.orig/newlib/libc/include/sys/signal.h ./newlib/libc/include/sys/signal.h
141 --- ../newlib-1.11.0.orig/newlib/libc/include/sys/signal.h Wed Jul 24 14:18:07 2002
142 +++ ./newlib/libc/include/sys/signal.h Tue Nov 25 09:56:00 2003
144 int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
147 +int _EXFUN(kill, (int, int));
149 /* protos for functions found in winsup sources for CYGWIN */
150 #if defined(__CYGWIN__) || defined(__rtems__)
153 <sys/types.h> always defines pid_t to be int. If that ever
154 changes, then we will need to do something else, perhaps along the
155 lines of <machine/types.h>. */
156 -int _EXFUN(kill, (int, int));
157 int _EXFUN(killpg, (pid_t, int));
158 int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
159 int _EXFUN(sigaddset, (sigset_t *, const int));
160 diff -urN ../newlib-1.11.0.orig/newlib/libc/include/sys/stat.h ./newlib/libc/include/sys/stat.h
161 --- ../newlib-1.11.0.orig/newlib/libc/include/sys/stat.h Sat Feb 23 15:46:28 2002
162 +++ ./newlib/libc/include/sys/stat.h Tue Nov 25 09:41:35 2003
164 int _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
165 mode_t _EXFUN(umask,( mode_t __mask ));
167 -#if defined(__rtems__) || defined(__CYGWIN__)
168 +#if defined(__rtems__) || defined(__CYGWIN__) || 1
169 int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
170 int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
172 diff -urN ../newlib-1.11.0.orig/newlib/libc/include/sys/unistd.h ./newlib/libc/include/sys/unistd.h
173 --- ../newlib-1.11.0.orig/newlib/libc/include/sys/unistd.h Sun Aug 18 02:08:39 2002
174 +++ ./newlib/libc/include/sys/unistd.h Tue Nov 25 09:46:58 2003
177 char * _EXFUN(mktemp, (char *));
178 int _EXFUN(sync, (void));
180 int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));
181 int _EXFUN(symlink, (const char *__name1, const char *__name2));
186 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/Makefile.am ./newlib/libc/sys/mipsunknown/Makefile.am
187 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/Makefile.am Wed Dec 31 19:00:00 1969
188 +++ ./newlib/libc/sys/mipsunknown/Makefile.am Mon Nov 24 21:04:11 2003
190 +## Process this file with automake to generate Makefile.in
192 +AUTOMAKE_OPTIONS = cygnus
194 +INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
196 +noinst_LIBRARIES = lib.a
198 +lib_a_SOURCES = syscalls.c
202 +ACLOCAL_AMFLAGS = -I ../../..
203 +CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
204 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/Makefile.in ./newlib/libc/sys/mipsunknown/Makefile.in
205 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/Makefile.in Wed Dec 31 19:00:00 1969
206 +++ ./newlib/libc/sys/mipsunknown/Makefile.in Mon Nov 24 21:04:22 2003
208 +# Makefile.in generated automatically by automake 1.4 from Makefile.am
210 +# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
211 +# This Makefile.in is free software; the Free Software Foundation
212 +# gives unlimited permission to copy and/or distribute it,
213 +# with or without modifications, as long as this notice is preserved.
215 +# This program is distributed in the hope that it will be useful,
216 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
217 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
218 +# PARTICULAR PURPOSE.
224 +top_srcdir = @top_srcdir@
227 +exec_prefix = @exec_prefix@
231 +libexecdir = @libexecdir@
233 +sysconfdir = @sysconfdir@
234 +sharedstatedir = @sharedstatedir@
235 +localstatedir = @localstatedir@
239 +includedir = @includedir@
240 +oldincludedir = /usr/include
244 +pkgdatadir = $(datadir)/@PACKAGE@
245 +pkglibdir = $(libdir)/@PACKAGE@
246 +pkgincludedir = $(includedir)/@PACKAGE@
251 +AUTOCONF = @AUTOCONF@
252 +AUTOMAKE = @AUTOMAKE@
253 +AUTOHEADER = @AUTOHEADER@
256 +INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
257 +INSTALL_DATA = @INSTALL_DATA@
258 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
259 +transform = @program_transform_name@
264 +NORMAL_UNINSTALL = :
267 +build_alias = @build_alias@
268 +build_triplet = @build@
269 +host_alias = @host_alias@
270 +host_triplet = @host@
271 +target_alias = @target_alias@
272 +target_triplet = @target@
280 +MAKEINFO = @MAKEINFO@
281 +NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
287 +libm_machine_dir = @libm_machine_dir@
288 +machine_dir = @machine_dir@
289 +newlib_basedir = @newlib_basedir@
293 +AUTOMAKE_OPTIONS = cygnus
295 +INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
297 +noinst_LIBRARIES = lib.a
299 +lib_a_SOURCES = syscalls.c
301 +ACLOCAL_AMFLAGS = -I ../../..
302 +CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
303 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
304 +mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
305 +CONFIG_CLEAN_FILES =
306 +LIBRARIES = $(noinst_LIBRARIES)
309 +DEFS = @DEFS@ -I. -I$(srcdir)
310 +CPPFLAGS = @CPPFLAGS@
313 +lib_a_OBJECTS = syscalls.o
315 +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
317 +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
318 +DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in
321 +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
325 +SOURCES = $(lib_a_SOURCES)
326 +OBJECTS = $(lib_a_OBJECTS)
330 +.SUFFIXES: .S .c .o .s
331 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
332 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
334 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
335 + cd $(top_builddir) \
336 + && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
338 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in \
339 + ../../../acinclude.m4 ../../../aclocal.m4 \
340 + ../../../libtool.m4
341 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
343 +config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
344 + $(SHELL) ./config.status --recheck
345 +$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
346 + cd $(srcdir) && $(AUTOCONF)
348 +mostlyclean-noinstLIBRARIES:
350 +clean-noinstLIBRARIES:
351 + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
353 +distclean-noinstLIBRARIES:
355 +maintainer-clean-noinstLIBRARIES:
366 +mostlyclean-compile:
367 + -rm -f *.o core *.core
374 +maintainer-clean-compile:
376 +lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
378 + $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
383 +ID: $(HEADERS) $(SOURCES) $(LISP)
384 + list='$(SOURCES) $(HEADERS)'; \
385 + unique=`for i in $$list; do echo $$i; done | \
386 + awk ' { files[$$0] = 1; } \
387 + END { for (i in files) print i; }'`; \
388 + here=`pwd` && cd $(srcdir) \
389 + && mkid -f$$here/ID $$unique $(LISP)
391 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
394 + list='$(SOURCES) $(HEADERS)'; \
395 + unique=`for i in $$list; do echo $$i; done | \
396 + awk ' { files[$$0] = 1; } \
397 + END { for (i in files) print i; }'`; \
398 + test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
399 + || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
408 +maintainer-clean-tags:
410 +distdir = $(PACKAGE)-$(VERSION)
411 +top_distdir = $(distdir)
413 +# This target untars the dist file and tries a VPATH configuration. Then
414 +# it guarantees that the distribution is self-contained by making another
418 + GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
419 + mkdir $(distdir)/=build
420 + mkdir $(distdir)/=inst
421 + dc_install_base=`cd $(distdir)/=inst && pwd`; \
422 + cd $(distdir)/=build \
423 + && ../configure --srcdir=.. --prefix=$$dc_install_base \
424 + && $(MAKE) $(AM_MAKEFLAGS) \
425 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
426 + && $(MAKE) $(AM_MAKEFLAGS) check \
427 + && $(MAKE) $(AM_MAKEFLAGS) install \
428 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
429 + && $(MAKE) $(AM_MAKEFLAGS) dist
431 + @banner="$(distdir).tar.gz is ready for distribution"; \
432 + dashes=`echo "$$banner" | sed s/./=/g`; \
437 + -chmod -R a+r $(distdir)
438 + GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
441 + -chmod -R a+r $(distdir)
442 + GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
444 +distdir: $(DISTFILES)
447 + -chmod 777 $(distdir)
448 + @for file in $(DISTFILES); do \
449 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
450 + if test -d $$d/$$file; then \
451 + cp -pr $$/$$file $(distdir)/$$file; \
453 + test -f $(distdir)/$$file \
454 + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
455 + || cp -p $$d/$$file $(distdir)/$$file || :; \
465 +installcheck: installcheck-am
467 +install-info: install-info-am
469 +install-exec: install-exec-am
472 +install-data: install-data-am
475 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
478 +uninstall: uninstall-am
479 +all-am: Makefile $(LIBRARIES)
480 +all-redirect: all-am
482 + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
486 +mostlyclean-generic:
491 + -rm -f Makefile $(CONFIG_CLEAN_FILES)
492 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
494 +maintainer-clean-generic:
495 +mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
496 + mostlyclean-tags mostlyclean-generic
498 +mostlyclean: mostlyclean-am
500 +clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
505 +distclean-am: distclean-noinstLIBRARIES distclean-compile \
506 + distclean-tags distclean-generic clean-am
508 +distclean: distclean-am
509 + -rm -f config.status
511 +maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
512 + maintainer-clean-compile maintainer-clean-tags \
513 + maintainer-clean-generic distclean-am
514 + @echo "This command is intended for maintainers to use;"
515 + @echo "it deletes files that may require special tools to rebuild."
517 +maintainer-clean: maintainer-clean-am
518 + -rm -f config.status
520 +.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
521 +clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
522 +mostlyclean-compile distclean-compile clean-compile \
523 +maintainer-clean-compile tags mostlyclean-tags distclean-tags \
524 +clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
525 +check-am installcheck-am installcheck install-info-am install-info \
526 +install-exec-am install-exec install-data-am install-data install-am \
527 +install uninstall-am uninstall all-redirect all-am all installdirs \
528 +mostlyclean-generic distclean-generic clean-generic \
529 +maintainer-clean-generic clean mostlyclean distclean maintainer-clean
534 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
535 +# Otherwise a system limit (for SysV at least) may be exceeded.
537 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/aclocal.m4 ./newlib/libc/sys/mipsunknown/aclocal.m4
538 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/aclocal.m4 Wed Dec 31 19:00:00 1969
539 +++ ./newlib/libc/sys/mipsunknown/aclocal.m4 Mon Nov 24 20:40:47 2003
541 +dnl aclocal.m4 generated automatically by aclocal 1.4
543 +dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
544 +dnl This file is free software; the Free Software Foundation
545 +dnl gives unlimited permission to copy and/or distribute it,
546 +dnl with or without modifications, as long as this notice is preserved.
548 +dnl This program is distributed in the hope that it will be useful,
549 +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
550 +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
551 +dnl PARTICULAR PURPOSE.
553 +dnl This provides configure definitions used by all the newlib
554 +dnl configure.in files.
556 +dnl Basic newlib configury. This calls basic introductory stuff,
557 +dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs
558 +dnl configure.host. The only argument is the relative path to the top
559 +dnl newlib directory.
561 +AC_DEFUN(NEWLIB_CONFIGURE,
563 +dnl Default to --enable-multilib
564 +AC_ARG_ENABLE(multilib,
565 +[ --enable-multilib build many library versions (default)],
566 +[case "${enableval}" in
567 + yes) multilib=yes ;;
569 + *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
570 + esac], [multilib=yes])dnl
572 +dnl Support --enable-target-optspace
573 +AC_ARG_ENABLE(target-optspace,
574 +[ --enable-target-optspace optimize for space],
575 +[case "${enableval}" in
576 + yes) target_optspace=yes ;;
577 + no) target_optspace=no ;;
578 + *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
579 + esac], [target_optspace=])dnl
581 +dnl Support --enable-malloc-debugging - currently only supported for Cygwin
582 +AC_ARG_ENABLE(malloc-debugging,
583 +[ --enable-malloc-debugging indicate malloc debugging requested],
584 +[case "${enableval}" in
585 + yes) malloc_debugging=yes ;;
586 + no) malloc_debugging=no ;;
587 + *) AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;;
588 + esac], [malloc_debugging=])dnl
590 +dnl Support --enable-newlib-mb
591 +AC_ARG_ENABLE(newlib-mb,
592 +[ --enable-newlib-mb enable multibyte support],
593 +[case "${enableval}" in
594 + yes) newlib_mb=yes ;;
595 + no) newlib_mb=no ;;
596 + *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;;
597 + esac], [newlib_mb=])dnl
599 +dnl Support --enable-newlib-multithread
600 +AC_ARG_ENABLE(newlib-multithread,
601 +[ --enable-newlib-multithread enable support for multiple threads],
602 +[case "${enableval}" in
603 + yes) newlib_multithread=yes ;;
604 + no) newlib_multithread=no ;;
605 + *) AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;;
606 + esac], [newlib_multithread=yes])dnl
608 +dnl Support --enable-newlib-elix-level
609 +AC_ARG_ENABLE(newlib-elix-level,
610 +[ --enable-newlib-elix-level supply desired elix library level (1-4)],
611 +[case "${enableval}" in
612 + 0) newlib_elix_level=0 ;;
613 + 1) newlib_elix_level=1 ;;
614 + 2) newlib_elix_level=2 ;;
615 + 3) newlib_elix_level=3 ;;
616 + 4) newlib_elix_level=4 ;;
617 + *) AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;;
618 + esac], [newlib_elix_level=0])dnl
620 +dnl Support --disable-newlib-io-float
621 +AC_ARG_ENABLE(newlib-io-float,
622 +[ --disable-newlib-io-float disable printf/scanf family float support],
623 +[case "${enableval}" in
624 + yes) newlib_io_float=yes ;;
625 + no) newlib_io_float=no ;;
626 + *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;;
627 + esac], [newlib_io_float=yes])dnl
630 +dnl We may get other options which we don't document:
631 +dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
633 +test -z "[$]{with_target_subdir}" && with_target_subdir=.
635 +if test "[$]{srcdir}" = "."; then
636 + if test "[$]{with_target_subdir}" != "."; then
637 + newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
639 + newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
642 + newlib_basedir="[$]{srcdir}/$1"
644 +AC_SUBST(newlib_basedir)
648 +AM_INIT_AUTOMAKE(newlib, 1.11.0)
650 +# FIXME: We temporarily define our own version of AC_PROG_CC. This is
651 +# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
652 +# are probably using a cross compiler, which will not be able to fully
653 +# link an executable. This should really be fixed in autoconf
656 +AC_DEFUN(LIB_AC_PROG_CC,
657 +[AC_BEFORE([$0], [AC_PROG_CPP])dnl
658 +AC_CHECK_PROG(CC, gcc, gcc)
659 +if test -z "$CC"; then
660 + AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
661 + test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
666 +if test $ac_cv_prog_gcc = yes; then
668 +dnl Check whether -g works, even if CFLAGS is set, in case the package
669 +dnl plays around with CFLAGS (such as to build both debugging and
670 +dnl normal versions of a library), tasteless as that idea is.
671 + ac_test_CFLAGS="${CFLAGS+set}"
672 + ac_save_CFLAGS="$CFLAGS"
675 + if test "$ac_test_CFLAGS" = set; then
676 + CFLAGS="$ac_save_CFLAGS"
677 + elif test $ac_cv_prog_cc_g = yes; then
684 + test "${CFLAGS+set}" = set || CFLAGS="-g"
690 +AC_CHECK_TOOL(AS, as)
691 +AC_CHECK_TOOL(AR, ar)
692 +AC_CHECK_TOOL(RANLIB, ranlib, :)
698 +# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
699 +# at least currently, we never actually build a program, so we never
700 +# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
701 +# fails, because we are probably configuring with a cross compiler
702 +# which can't create executables. So we include AC_EXEEXT to keep
703 +# automake happy, but we don't execute it, since we don't care about
709 +. [$]{newlib_basedir}/configure.host
711 +newlib_cflags="[$]{newlib_cflags} -fno-builtin"
713 +NEWLIB_CFLAGS=${newlib_cflags}
714 +AC_SUBST(NEWLIB_CFLAGS)
719 +AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0)
720 +AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1)
721 +AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2)
722 +AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3)
723 +AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4)
725 +AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
727 +# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
728 +# use oext, which is set in configure.host based on the target platform.
735 +AC_SUBST(libm_machine_dir)
736 +AC_SUBST(machine_dir)
740 +# Do all the work for Automake. This macro actually does too much --
741 +# some checks are only needed if your package does certain things.
742 +# But this isn't really a big deal.
747 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
749 +AC_DEFUN(AM_INIT_AUTOMAKE,
750 +[AC_REQUIRE([AC_PROG_INSTALL])
755 +dnl test to see if srcdir already configured
756 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
757 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
760 +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
761 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
762 +AC_REQUIRE([AM_SANITY_CHECK])
763 +AC_REQUIRE([AC_ARG_PROGRAM])
764 +dnl FIXME This is truly gross.
765 +missing_dir=`cd $ac_aux_dir && pwd`
766 +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
767 +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
768 +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
769 +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
770 +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
771 +AC_REQUIRE([AC_PROG_MAKE_SET])])
774 +# Check to make sure that the build environment is sane.
777 +AC_DEFUN(AM_SANITY_CHECK,
778 +[AC_MSG_CHECKING([whether build environment is sane])
781 +echo timestamp > conftestfile
782 +# Do `set' in a subshell so we don't clobber the current shell's
783 +# arguments. Must try -L first in case configure is actually a
784 +# symlink; some systems play weird games with the mod time of symlinks
785 +# (eg FreeBSD returns the mod time of the symlink's containing
788 + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
789 + if test "[$]*" = "X"; then
791 + set X `ls -t $srcdir/configure conftestfile`
793 + if test "[$]*" != "X $srcdir/configure conftestfile" \
794 + && test "[$]*" != "X conftestfile $srcdir/configure"; then
796 + # If neither matched, then we have a broken ls. This can happen
797 + # if, for instance, CONFIG_SHELL is bash and it inherits a
798 + # broken ls alias from the environment. This has actually
799 + # happened. Such a system could not be considered "sane".
800 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
801 +alias in your environment])
804 + test "[$]2" = conftestfile
810 + AC_MSG_ERROR([newly created file is older than distributed files!
811 +Check your system clock])
814 +AC_MSG_RESULT(yes)])
816 +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
817 +dnl The program must properly implement --version.
818 +AC_DEFUN(AM_MISSING_PROG,
819 +[AC_MSG_CHECKING(for working $2)
820 +# Run test in a subshell; some versions of sh will print an error if
821 +# an executable is not found, even if stderr is redirected.
822 +# Redirect stdin to placate older versions of autoconf. Sigh.
823 +if ($2 --version) < /dev/null > /dev/null 2>&1; then
825 + AC_MSG_RESULT(found)
828 + AC_MSG_RESULT(missing)
832 +# Add --enable-maintainer-mode option to configure.
837 +AC_DEFUN(AM_MAINTAINER_MODE,
838 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
839 + dnl maintainer-mode is disabled by default
840 + AC_ARG_ENABLE(maintainer-mode,
841 +[ --enable-maintainer-mode enable make rules and dependencies not useful
842 + (and sometimes confusing) to the casual installer],
843 + USE_MAINTAINER_MODE=$enableval,
844 + USE_MAINTAINER_MODE=no)
845 + AC_MSG_RESULT($USE_MAINTAINER_MODE)
846 + AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
847 + MAINT=$MAINTAINER_MODE_TRUE
852 +# Define a conditional.
854 +AC_DEFUN(AM_CONDITIONAL,
865 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/configure ./newlib/libc/sys/mipsunknown/configure
866 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/configure Wed Dec 31 19:00:00 1969
867 +++ ./newlib/libc/sys/mipsunknown/configure Mon Nov 24 20:43:05 2003
871 +# Guess values for system-dependent variables and create Makefiles.
872 +# Generated automatically using autoconf version 2.13
873 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
875 +# This configure script is free software; the Free Software Foundation
876 +# gives unlimited permission to copy, distribute and modify it.
880 +ac_default_prefix=/usr/local
881 +# Any additions from configure.in:
883 + --enable-multilib build many library versions (default)"
885 + --enable-target-optspace optimize for space"
887 + --enable-malloc-debugging indicate malloc debugging requested"
889 + --enable-newlib-mb enable multibyte support"
891 + --enable-newlib-multithread enable support for multiple threads"
893 + --enable-newlib-elix-level supply desired elix library level (1-4)"
895 + --disable-newlib-io-float disable printf/scanf family float support"
897 + --enable-maintainer-mode enable make rules and dependencies not useful
898 + (and sometimes confusing) to the casual installer"
900 +# Initialize some variables set by options.
901 +# The variables have the same names as the options, with
902 +# dashes changed to underlines.
904 +cache_file=./config.cache
913 +program_transform_name=s,x,x,
922 +bindir='${exec_prefix}/bin'
923 +sbindir='${exec_prefix}/sbin'
924 +libexecdir='${exec_prefix}/libexec'
925 +datadir='${prefix}/share'
926 +sysconfdir='${prefix}/etc'
927 +sharedstatedir='${prefix}/com'
928 +localstatedir='${prefix}/var'
929 +libdir='${exec_prefix}/lib'
930 +includedir='${prefix}/include'
931 +oldincludedir='/usr/include'
932 +infodir='${prefix}/info'
933 +mandir='${prefix}/man'
935 +# Initialize some other variables.
938 +SHELL=${CONFIG_SHELL-/bin/sh}
939 +# Maximum number of lines to put in a shell here document.
940 +ac_max_here_lines=12
946 + # If the previous option needs an argument, assign it.
947 + if test -n "$ac_prev"; then
948 + eval "$ac_prev=\$ac_option"
953 + case "$ac_option" in
954 + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
958 + # Accept the important Cygnus configure options, so we can diagnose typos.
960 + case "$ac_option" in
962 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 + bindir="$ac_optarg" ;;
967 + -build | --build | --buil | --bui | --bu)
969 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 + build="$ac_optarg" ;;
972 + -cache-file | --cache-file | --cache-fil | --cache-fi \
973 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 + ac_prev=cache_file ;;
975 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 + cache_file="$ac_optarg" ;;
979 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
981 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
983 + datadir="$ac_optarg" ;;
985 + -disable-* | --disable-*)
986 + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
987 + # Reject names that are not valid shell variable names.
988 + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
989 + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
991 + ac_feature=`echo $ac_feature| sed 's/-/_/g'`
992 + eval "enable_${ac_feature}=no" ;;
994 + -enable-* | --enable-*)
995 + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
996 + # Reject names that are not valid shell variable names.
997 + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
998 + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1000 + ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1001 + case "$ac_option" in
1003 + *) ac_optarg=yes ;;
1005 + eval "enable_${ac_feature}='$ac_optarg'" ;;
1007 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 + | --exec | --exe | --ex)
1010 + ac_prev=exec_prefix ;;
1011 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 + | --exec=* | --exe=* | --ex=*)
1014 + exec_prefix="$ac_optarg" ;;
1016 + -gas | --gas | --ga | --g)
1017 + # Obsolete; use --with-gas.
1020 + -help | --help | --hel | --he)
1021 + # Omit some internal or obsolete options to make the list less imposing.
1022 + # This message is too long to be a string in the A/UX 3.1 sh.
1024 +Usage: configure [options] [host]
1025 +Options: [defaults in brackets after descriptions]
1027 + --cache-file=FILE cache test results in FILE
1028 + --help print this message
1029 + --no-create do not create output files
1030 + --quiet, --silent do not print \`checking...' messages
1031 + --site-file=FILE use FILE as the site file
1032 + --version print the version of autoconf that created configure
1033 +Directory and file names:
1034 + --prefix=PREFIX install architecture-independent files in PREFIX
1035 + [$ac_default_prefix]
1036 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1038 + --bindir=DIR user executables in DIR [EPREFIX/bin]
1039 + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
1040 + --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
1041 + --datadir=DIR read-only architecture-independent data in DIR
1043 + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
1044 + --sharedstatedir=DIR modifiable architecture-independent data in DIR
1046 + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
1047 + --libdir=DIR object code libraries in DIR [EPREFIX/lib]
1048 + --includedir=DIR C header files in DIR [PREFIX/include]
1049 + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
1050 + --infodir=DIR info documentation in DIR [PREFIX/info]
1051 + --mandir=DIR man documentation in DIR [PREFIX/man]
1052 + --srcdir=DIR find the sources in DIR [configure dir or ..]
1053 + --program-prefix=PREFIX prepend PREFIX to installed program names
1054 + --program-suffix=SUFFIX append SUFFIX to installed program names
1055 + --program-transform-name=PROGRAM
1056 + run sed PROGRAM on installed program names
1060 + --build=BUILD configure for building on BUILD [BUILD=HOST]
1061 + --host=HOST configure for HOST [guessed]
1062 + --target=TARGET configure for TARGET [TARGET=HOST]
1063 +Features and packages:
1064 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1065 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1066 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1067 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1068 + --x-includes=DIR X include files are in DIR
1069 + --x-libraries=DIR X library files are in DIR
1071 + if test -n "$ac_help"; then
1072 + echo "--enable and --with options recognized:$ac_help"
1076 + -host | --host | --hos | --ho)
1078 + -host=* | --host=* | --hos=* | --ho=*)
1079 + host="$ac_optarg" ;;
1081 + -includedir | --includedir | --includedi | --included | --include \
1082 + | --includ | --inclu | --incl | --inc)
1083 + ac_prev=includedir ;;
1084 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 + | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 + includedir="$ac_optarg" ;;
1088 + -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 + ac_prev=infodir ;;
1090 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 + infodir="$ac_optarg" ;;
1093 + -libdir | --libdir | --libdi | --libd)
1095 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 + libdir="$ac_optarg" ;;
1098 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 + | --libexe | --libex | --libe)
1100 + ac_prev=libexecdir ;;
1101 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 + | --libexe=* | --libex=* | --libe=*)
1103 + libexecdir="$ac_optarg" ;;
1105 + -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 + | --localstate | --localstat | --localsta | --localst \
1107 + | --locals | --local | --loca | --loc | --lo)
1108 + ac_prev=localstatedir ;;
1109 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1111 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1112 + localstatedir="$ac_optarg" ;;
1114 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 + mandir="$ac_optarg" ;;
1119 + -nfp | --nfp | --nf)
1120 + # Obsolete; use --without-fp.
1123 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 + | --no-cr | --no-c)
1127 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 + no_recursion=yes ;;
1131 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 + | --oldin | --oldi | --old | --ol | --o)
1134 + ac_prev=oldincludedir ;;
1135 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 + oldincludedir="$ac_optarg" ;;
1140 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 + prefix="$ac_optarg" ;;
1145 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 + | --program-pre | --program-pr | --program-p)
1147 + ac_prev=program_prefix ;;
1148 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 + program_prefix="$ac_optarg" ;;
1152 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 + | --program-suf | --program-su | --program-s)
1154 + ac_prev=program_suffix ;;
1155 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 + program_suffix="$ac_optarg" ;;
1159 + -program-transform-name | --program-transform-name \
1160 + | --program-transform-nam | --program-transform-na \
1161 + | --program-transform-n | --program-transform- \
1162 + | --program-transform | --program-transfor \
1163 + | --program-transfo | --program-transf \
1164 + | --program-trans | --program-tran \
1165 + | --progr-tra | --program-tr | --program-t)
1166 + ac_prev=program_transform_name ;;
1167 + -program-transform-name=* | --program-transform-name=* \
1168 + | --program-transform-nam=* | --program-transform-na=* \
1169 + | --program-transform-n=* | --program-transform-=* \
1170 + | --program-transform=* | --program-transfor=* \
1171 + | --program-transfo=* | --program-transf=* \
1172 + | --program-trans=* | --program-tran=* \
1173 + | --progr-tra=* | --program-tr=* | --program-t=*)
1174 + program_transform_name="$ac_optarg" ;;
1176 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 + | -silent | --silent | --silen | --sile | --sil)
1180 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 + ac_prev=sbindir ;;
1182 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 + | --sbi=* | --sb=*)
1184 + sbindir="$ac_optarg" ;;
1186 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 + | --sharedst | --shareds | --shared | --share | --shar \
1190 + ac_prev=sharedstatedir ;;
1191 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 + | --sha=* | --sh=*)
1195 + sharedstatedir="$ac_optarg" ;;
1197 + -site | --site | --sit)
1199 + -site=* | --site=* | --sit=*)
1200 + site="$ac_optarg" ;;
1202 + -site-file | --site-file | --site-fil | --site-fi | --site-f)
1203 + ac_prev=sitefile ;;
1204 + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
1205 + sitefile="$ac_optarg" ;;
1207 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 + srcdir="$ac_optarg" ;;
1212 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 + | --syscon | --sysco | --sysc | --sys | --sy)
1214 + ac_prev=sysconfdir ;;
1215 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 + sysconfdir="$ac_optarg" ;;
1219 + -target | --target | --targe | --targ | --tar | --ta | --t)
1221 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 + target="$ac_optarg" ;;
1224 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 + -version | --version | --versio | --versi | --vers)
1228 + echo "configure generated by autoconf version 2.13"
1231 + -with-* | --with-*)
1232 + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
1233 + # Reject names that are not valid shell variable names.
1234 + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
1235 + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1237 + ac_package=`echo $ac_package| sed 's/-/_/g'`
1238 + case "$ac_option" in
1240 + *) ac_optarg=yes ;;
1242 + eval "with_${ac_package}='$ac_optarg'" ;;
1244 + -without-* | --without-*)
1245 + ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1246 + # Reject names that are not valid shell variable names.
1247 + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1248 + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1250 + ac_package=`echo $ac_package| sed 's/-/_/g'`
1251 + eval "with_${ac_package}=no" ;;
1254 + # Obsolete; use --with-x.
1257 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 + | --x-incl | --x-inc | --x-in | --x-i)
1259 + ac_prev=x_includes ;;
1260 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 + x_includes="$ac_optarg" ;;
1264 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 + ac_prev=x_libraries ;;
1267 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 + x_libraries="$ac_optarg" ;;
1271 + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1275 + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1276 + echo "configure: warning: $ac_option: invalid host type" 1>&2
1278 + if test "x$nonopt" != xNONE; then
1279 + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1281 + nonopt="$ac_option"
1287 +if test -n "$ac_prev"; then
1288 + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1291 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1293 +# File descriptor usage:
1296 +# 2 errors and warnings
1297 +# 3 some systems may open it to /dev/tty
1298 +# 4 used on the Kubota Titan
1299 +# 6 checking for... messages and results
1300 +# 5 compiler messages saved in config.log
1301 +if test "$silent" = yes; then
1306 +exec 5>./config.log
1309 +This file contains any messages produced by compilers while
1310 +running configure, to aid debugging if configure makes a mistake.
1313 +# Strip out --no-create and --no-recursion so they do not pile up.
1314 +# Also quote any args containing shell metacharacters.
1319 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1320 + | --no-cr | --no-c) ;;
1321 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1322 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1323 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1324 + ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325 + *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1330 +# Only set these to C if already set. These must not be set unconditionally
1331 +# because not all systems understand e.g. LANG=C (notably SCO).
1332 +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1333 +# Non-C LC_CTYPE values break the ctype check.
1334 +if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1335 +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1336 +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1337 +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1339 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1340 +rm -rf conftest* confdefs.h
1341 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 +# A filename unique to this package, relative to the directory that
1345 +# configure is in, which we can look for to find out if srcdir is correct.
1346 +ac_unique_file=syscalls.c
1348 +# Find the source files, if location was not specified.
1349 +if test -z "$srcdir"; then
1350 + ac_srcdir_defaulted=yes
1351 + # Try the directory containing this script, then its parent.
1353 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1354 + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1355 + srcdir=$ac_confdir
1356 + if test ! -r $srcdir/$ac_unique_file; then
1360 + ac_srcdir_defaulted=no
1362 +if test ! -r $srcdir/$ac_unique_file; then
1363 + if test "$ac_srcdir_defaulted" = yes; then
1364 + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1366 + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1369 +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1371 +# Prefer explicitly selected file to automatically selected ones.
1372 +if test -z "$sitefile"; then
1373 + if test -z "$CONFIG_SITE"; then
1374 + if test "x$prefix" != xNONE; then
1375 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 + CONFIG_SITE="$sitefile"
1383 +for ac_site_file in $CONFIG_SITE; do
1384 + if test -r "$ac_site_file"; then
1385 + echo "loading site script $ac_site_file"
1390 +if test -r "$cache_file"; then
1391 + echo "loading cache $cache_file"
1394 + echo "creating cache $cache_file"
1399 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1400 +ac_cpp='$CPP $CPPFLAGS'
1401 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1402 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1403 +cross_compiling=$ac_cv_prog_cc_cross
1407 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1408 + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1409 + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1413 + ac_n=-n ac_c= ac_t=
1416 + ac_n= ac_c='\c' ac_t=
1422 +for ac_dir in ../../../.. $srcdir/../../../..; do
1423 + if test -f $ac_dir/install-sh; then
1424 + ac_aux_dir=$ac_dir
1425 + ac_install_sh="$ac_aux_dir/install-sh -c"
1427 + elif test -f $ac_dir/install.sh; then
1428 + ac_aux_dir=$ac_dir
1429 + ac_install_sh="$ac_aux_dir/install.sh -c"
1433 +if test -z "$ac_aux_dir"; then
1434 + { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
1436 +ac_config_guess=$ac_aux_dir/config.guess
1437 +ac_config_sub=$ac_aux_dir/config.sub
1438 +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1441 +# Find a good install program. We prefer a C program (faster),
1442 +# so one script is as good as another. But avoid the broken or
1443 +# incompatible versions:
1444 +# SysV /etc/install, /usr/sbin/install
1445 +# SunOS /usr/etc/install
1446 +# IRIX /sbin/install
1448 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1449 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1450 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1451 +# ./install, which can be erroneously created by make from ./install.sh.
1452 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1453 +echo "configure:586: checking for a BSD compatible install" >&5
1454 +if test -z "$INSTALL"; then
1455 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1456 + echo $ac_n "(cached) $ac_c" 1>&6
1458 + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1459 + for ac_dir in $PATH; do
1460 + # Account for people who put trailing slashes in PATH elements.
1461 + case "$ac_dir/" in
1462 + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1464 + # OSF1 and SCO ODT 3.0 have their own names for install.
1465 + # Don't use installbsd from OSF since it installs stuff as root
1467 + for ac_prog in ginstall scoinst install; do
1468 + if test -f $ac_dir/$ac_prog; then
1469 + if test $ac_prog = install &&
1470 + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1471 + # AIX install. It has an incompatible calling convention.
1474 + ac_cv_path_install="$ac_dir/$ac_prog -c"
1482 + IFS="$ac_save_IFS"
1485 + if test "${ac_cv_path_install+set}" = set; then
1486 + INSTALL="$ac_cv_path_install"
1488 + # As a last resort, use the slow shell script. We don't cache a
1489 + # path for INSTALL within a source directory, because that will
1490 + # break other packages using the cache if that directory is
1491 + # removed, or if the path is relative.
1492 + INSTALL="$ac_install_sh"
1495 +echo "$ac_t""$INSTALL" 1>&6
1497 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498 +# It thinks the first close brace ends the variable substitution.
1499 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1503 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505 +echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 +echo "configure:639: checking whether build environment is sane" >&5
1509 +echo timestamp > conftestfile
1510 +# Do `set' in a subshell so we don't clobber the current shell's
1511 +# arguments. Must try -L first in case configure is actually a
1512 +# symlink; some systems play weird games with the mod time of symlinks
1513 +# (eg FreeBSD returns the mod time of the symlink's containing
1516 + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 + if test "$*" = "X"; then
1519 + set X `ls -t $srcdir/configure conftestfile`
1521 + if test "$*" != "X $srcdir/configure conftestfile" \
1522 + && test "$*" != "X conftestfile $srcdir/configure"; then
1524 + # If neither matched, then we have a broken ls. This can happen
1525 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 + # broken ls alias from the environment. This has actually
1527 + # happened. Such a system could not be considered "sane".
1528 + { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 +alias in your environment" 1>&2; exit 1; }
1532 + test "$2" = conftestfile
1538 + { echo "configure: error: newly created file is older than distributed files!
1539 +Check your system clock" 1>&2; exit 1; }
1542 +echo "$ac_t""yes" 1>&6
1543 +if test "$program_transform_name" = s,x,x,; then
1544 + program_transform_name=
1546 + # Double any \ or $. echo might interpret backslashes.
1547 + cat <<\EOF_SED > conftestsed
1548 +s,\\,\\\\,g; s,\$,$$,g
1550 + program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1553 +test "$program_prefix" != NONE &&
1554 + program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 +# Use a double $ so make ignores it.
1556 +test "$program_suffix" != NONE &&
1557 + program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1559 +# sed with no file args requires a program.
1560 +test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1562 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 +echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 + echo $ac_n "(cached) $ac_c" 1>&6
1568 + cat > conftestmake <<\EOF
1570 + @echo 'ac_maketemp="${MAKE}"'
1572 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 +if test -n "$ac_maketemp"; then
1575 + eval ac_cv_prog_make_${ac_make}_set=yes
1577 + eval ac_cv_prog_make_${ac_make}_set=no
1581 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 + echo "$ac_t""yes" 1>&6
1585 + echo "$ac_t""no" 1>&6
1586 + SET_MAKE="MAKE=${MAKE-make}"
1589 +if test $host != $build; then
1590 + ac_tool_prefix=${host_alias}-
1595 +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1596 +echo "configure:729: checking for Cygwin environment" >&5
1597 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1598 + echo $ac_n "(cached) $ac_c" 1>&6
1600 + cat > conftest.$ac_ext <<EOF
1601 +#line 734 "configure"
1602 +#include "confdefs.h"
1607 +#define __CYGWIN__ __CYGWIN32__
1612 +if { (eval echo configure:745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 + echo "configure: failed program was:" >&5
1617 + cat conftest.$ac_ext >&5
1625 +echo "$ac_t""$ac_cv_cygwin" 1>&6
1627 +test "$ac_cv_cygwin" = yes && CYGWIN=yes
1628 +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1629 +echo "configure:762: checking for mingw32 environment" >&5
1630 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1631 + echo $ac_n "(cached) $ac_c" 1>&6
1633 + cat > conftest.$ac_ext <<EOF
1634 +#line 767 "configure"
1635 +#include "confdefs.h"
1638 +return __MINGW32__;
1641 +if { (eval echo configure:774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1645 + echo "configure: failed program was:" >&5
1646 + cat conftest.$ac_ext >&5
1654 +echo "$ac_t""$ac_cv_mingw32" 1>&6
1656 +test "$ac_cv_mingw32" = yes && MINGW32=yes
1658 +# Check whether --enable-multilib or --disable-multilib was given.
1659 +if test "${enable_multilib+set}" = set; then
1660 + enableval="$enable_multilib"
1661 + case "${enableval}" in
1662 + yes) multilib=yes ;;
1663 + no) multilib=no ;;
1664 + *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1670 +# Check whether --enable-target-optspace or --disable-target-optspace was given.
1671 +if test "${enable_target_optspace+set}" = set; then
1672 + enableval="$enable_target_optspace"
1673 + case "${enableval}" in
1674 + yes) target_optspace=yes ;;
1675 + no) target_optspace=no ;;
1676 + *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
1682 +# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1683 +if test "${enable_malloc_debugging+set}" = set; then
1684 + enableval="$enable_malloc_debugging"
1685 + case "${enableval}" in
1686 + yes) malloc_debugging=yes ;;
1687 + no) malloc_debugging=no ;;
1688 + *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
1694 +# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
1695 +if test "${enable_newlib_mb+set}" = set; then
1696 + enableval="$enable_newlib_mb"
1697 + case "${enableval}" in
1698 + yes) newlib_mb=yes ;;
1699 + no) newlib_mb=no ;;
1700 + *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
1706 +# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1707 +if test "${enable_newlib_multithread+set}" = set; then
1708 + enableval="$enable_newlib_multithread"
1709 + case "${enableval}" in
1710 + yes) newlib_multithread=yes ;;
1711 + no) newlib_multithread=no ;;
1712 + *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
1715 + newlib_multithread=yes
1718 +# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1719 +if test "${enable_newlib_elix_level+set}" = set; then
1720 + enableval="$enable_newlib_elix_level"
1721 + case "${enableval}" in
1722 + 0) newlib_elix_level=0 ;;
1723 + 1) newlib_elix_level=1 ;;
1724 + 2) newlib_elix_level=2 ;;
1725 + 3) newlib_elix_level=3 ;;
1726 + 4) newlib_elix_level=4 ;;
1727 + *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
1730 + newlib_elix_level=0
1733 +# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1734 +if test "${enable_newlib_io_float+set}" = set; then
1735 + enableval="$enable_newlib_io_float"
1736 + case "${enableval}" in
1737 + yes) newlib_io_float=yes ;;
1738 + no) newlib_io_float=no ;;
1739 + *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
1742 + newlib_io_float=yes
1747 +test -z "${with_target_subdir}" && with_target_subdir=.
1749 +if test "${srcdir}" = "."; then
1750 + if test "${with_target_subdir}" != "."; then
1751 + newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
1753 + newlib_basedir="${srcdir}/${with_multisrctop}../../.."
1756 + newlib_basedir="${srcdir}/../../.."
1761 +# Do some error checking and defaulting for the host and target type.
1763 +# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1766 +# 1. You are not allowed to specify --host, --target, and nonopt at the
1768 +# 2. Host defaults to nonopt.
1769 +# 3. If nonopt is not specified, then host defaults to the current host,
1770 +# as determined by config.guess.
1771 +# 4. Target and build default to nonopt.
1772 +# 5. If nonopt is not specified, then target and build default to host.
1774 +# The aliases save the names the user supplied, while $host etc.
1775 +# will get canonicalized.
1776 +case $host---$target---$nonopt in
1777 +NONE---*---* | *---NONE---* | *---*---NONE) ;;
1778 +*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1782 +# Make sure we can run config.sub.
1783 +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1784 +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1787 +echo $ac_n "checking host system type""... $ac_c" 1>&6
1788 +echo "configure:921: checking host system type" >&5
1791 +case "$host_alias" in
1795 + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1796 + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1798 + *) host_alias=$nonopt ;;
1802 +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1803 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1804 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1805 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1806 +echo "$ac_t""$host" 1>&6
1808 +echo $ac_n "checking target system type""... $ac_c" 1>&6
1809 +echo "configure:942: checking target system type" >&5
1811 +target_alias=$target
1812 +case "$target_alias" in
1815 + NONE) target_alias=$host_alias ;;
1816 + *) target_alias=$nonopt ;;
1820 +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1821 +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1822 +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1823 +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1824 +echo "$ac_t""$target" 1>&6
1826 +echo $ac_n "checking build system type""... $ac_c" 1>&6
1827 +echo "configure:960: checking build system type" >&5
1830 +case "$build_alias" in
1833 + NONE) build_alias=$host_alias ;;
1834 + *) build_alias=$nonopt ;;
1838 +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1839 +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1840 +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1841 +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1842 +echo "$ac_t""$build" 1>&6
1844 +test "$host_alias" != "$target_alias" &&
1845 + test "$program_prefix$program_suffix$program_transform_name" = \
1847 + program_prefix=${target_alias}-
1855 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1856 + { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1858 +cat >> confdefs.h <<EOF
1859 +#define PACKAGE "$PACKAGE"
1862 +cat >> confdefs.h <<EOF
1863 +#define VERSION "$VERSION"
1868 +missing_dir=`cd $ac_aux_dir && pwd`
1869 +echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1870 +echo "configure:1003: checking for working aclocal" >&5
1871 +# Run test in a subshell; some versions of sh will print an error if
1872 +# an executable is not found, even if stderr is redirected.
1873 +# Redirect stdin to placate older versions of autoconf. Sigh.
1874 +if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1876 + echo "$ac_t""found" 1>&6
1878 + ACLOCAL="$missing_dir/missing aclocal"
1879 + echo "$ac_t""missing" 1>&6
1882 +echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1883 +echo "configure:1016: checking for working autoconf" >&5
1884 +# Run test in a subshell; some versions of sh will print an error if
1885 +# an executable is not found, even if stderr is redirected.
1886 +# Redirect stdin to placate older versions of autoconf. Sigh.
1887 +if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1889 + echo "$ac_t""found" 1>&6
1891 + AUTOCONF="$missing_dir/missing autoconf"
1892 + echo "$ac_t""missing" 1>&6
1895 +echo $ac_n "checking for working automake""... $ac_c" 1>&6
1896 +echo "configure:1029: checking for working automake" >&5
1897 +# Run test in a subshell; some versions of sh will print an error if
1898 +# an executable is not found, even if stderr is redirected.
1899 +# Redirect stdin to placate older versions of autoconf. Sigh.
1900 +if (automake --version) < /dev/null > /dev/null 2>&1; then
1902 + echo "$ac_t""found" 1>&6
1904 + AUTOMAKE="$missing_dir/missing automake"
1905 + echo "$ac_t""missing" 1>&6
1908 +echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1909 +echo "configure:1042: checking for working autoheader" >&5
1910 +# Run test in a subshell; some versions of sh will print an error if
1911 +# an executable is not found, even if stderr is redirected.
1912 +# Redirect stdin to placate older versions of autoconf. Sigh.
1913 +if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1914 + AUTOHEADER=autoheader
1915 + echo "$ac_t""found" 1>&6
1917 + AUTOHEADER="$missing_dir/missing autoheader"
1918 + echo "$ac_t""missing" 1>&6
1921 +echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1922 +echo "configure:1055: checking for working makeinfo" >&5
1923 +# Run test in a subshell; some versions of sh will print an error if
1924 +# an executable is not found, even if stderr is redirected.
1925 +# Redirect stdin to placate older versions of autoconf. Sigh.
1926 +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1928 + echo "$ac_t""found" 1>&6
1930 + MAKEINFO="$missing_dir/missing makeinfo"
1931 + echo "$ac_t""missing" 1>&6
1936 +# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1937 +# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1938 +# are probably using a cross compiler, which will not be able to fully
1939 +# link an executable. This should really be fixed in autoconf
1944 +# Extract the first word of "gcc", so it can be a program name with args.
1945 +set dummy gcc; ac_word=$2
1946 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1947 +echo "configure:1080: checking for $ac_word" >&5
1948 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1949 + echo $ac_n "(cached) $ac_c" 1>&6
1951 + if test -n "$CC"; then
1952 + ac_cv_prog_CC="$CC" # Let the user override the test.
1954 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1956 + for ac_dir in $ac_dummy; do
1957 + test -z "$ac_dir" && ac_dir=.
1958 + if test -f $ac_dir/$ac_word; then
1959 + ac_cv_prog_CC="gcc"
1963 + IFS="$ac_save_ifs"
1966 +CC="$ac_cv_prog_CC"
1967 +if test -n "$CC"; then
1968 + echo "$ac_t""$CC" 1>&6
1970 + echo "$ac_t""no" 1>&6
1973 +if test -z "$CC"; then
1974 + # Extract the first word of "cc", so it can be a program name with args.
1975 +set dummy cc; ac_word=$2
1976 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1977 +echo "configure:1110: checking for $ac_word" >&5
1978 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1979 + echo $ac_n "(cached) $ac_c" 1>&6
1981 + if test -n "$CC"; then
1982 + ac_cv_prog_CC="$CC" # Let the user override the test.
1984 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1985 + ac_prog_rejected=no
1987 + for ac_dir in $ac_dummy; do
1988 + test -z "$ac_dir" && ac_dir=.
1989 + if test -f $ac_dir/$ac_word; then
1990 + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1991 + ac_prog_rejected=yes
1994 + ac_cv_prog_CC="cc"
1998 + IFS="$ac_save_ifs"
1999 +if test $ac_prog_rejected = yes; then
2000 + # We found a bogon in the path, so make sure we never use it.
2001 + set dummy $ac_cv_prog_CC
2003 + if test $# -gt 0; then
2004 + # We chose a different compiler from the bogus one.
2005 + # However, it has the same basename, so the bogon will be chosen
2006 + # first if we set CC to just the basename; use the full file name.
2008 + set dummy "$ac_dir/$ac_word" "$@"
2010 + ac_cv_prog_CC="$@"
2015 +CC="$ac_cv_prog_CC"
2016 +if test -n "$CC"; then
2017 + echo "$ac_t""$CC" 1>&6
2019 + echo "$ac_t""no" 1>&6
2022 + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2025 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2026 +echo "configure:1159: checking whether we are using GNU C" >&5
2027 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2028 + echo $ac_n "(cached) $ac_c" 1>&6
2030 + cat > conftest.c <<EOF
2035 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2036 + ac_cv_prog_gcc=yes
2042 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2044 +if test $ac_cv_prog_gcc = yes; then
2046 + ac_test_CFLAGS="${CFLAGS+set}"
2047 + ac_save_CFLAGS="$CFLAGS"
2049 + echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2050 +echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
2051 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2052 + echo $ac_n "(cached) $ac_c" 1>&6
2054 + echo 'void f(){}' > conftest.c
2055 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2056 + ac_cv_prog_cc_g=yes
2058 + ac_cv_prog_cc_g=no
2064 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2065 + if test "$ac_test_CFLAGS" = set; then
2066 + CFLAGS="$ac_save_CFLAGS"
2067 + elif test $ac_cv_prog_cc_g = yes; then
2074 + test "${CFLAGS+set}" = set || CFLAGS="-g"
2078 +# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2079 +set dummy ${ac_tool_prefix}as; ac_word=$2
2080 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 +echo "configure:1214: checking for $ac_word" >&5
2082 +if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2083 + echo $ac_n "(cached) $ac_c" 1>&6
2085 + if test -n "$AS"; then
2086 + ac_cv_prog_AS="$AS" # Let the user override the test.
2088 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2090 + for ac_dir in $ac_dummy; do
2091 + test -z "$ac_dir" && ac_dir=.
2092 + if test -f $ac_dir/$ac_word; then
2093 + ac_cv_prog_AS="${ac_tool_prefix}as"
2097 + IFS="$ac_save_ifs"
2098 + test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
2101 +AS="$ac_cv_prog_AS"
2102 +if test -n "$AS"; then
2103 + echo "$ac_t""$AS" 1>&6
2105 + echo "$ac_t""no" 1>&6
2110 +# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2111 +set dummy ${ac_tool_prefix}ar; ac_word=$2
2112 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2113 +echo "configure:1246: checking for $ac_word" >&5
2114 +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2115 + echo $ac_n "(cached) $ac_c" 1>&6
2117 + if test -n "$AR"; then
2118 + ac_cv_prog_AR="$AR" # Let the user override the test.
2120 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2122 + for ac_dir in $ac_dummy; do
2123 + test -z "$ac_dir" && ac_dir=.
2124 + if test -f $ac_dir/$ac_word; then
2125 + ac_cv_prog_AR="${ac_tool_prefix}ar"
2129 + IFS="$ac_save_ifs"
2130 + test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2133 +AR="$ac_cv_prog_AR"
2134 +if test -n "$AR"; then
2135 + echo "$ac_t""$AR" 1>&6
2137 + echo "$ac_t""no" 1>&6
2142 +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2143 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2144 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 +echo "configure:1278: checking for $ac_word" >&5
2146 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2147 + echo $ac_n "(cached) $ac_c" 1>&6
2149 + if test -n "$RANLIB"; then
2150 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2152 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2154 + for ac_dir in $ac_dummy; do
2155 + test -z "$ac_dir" && ac_dir=.
2156 + if test -f $ac_dir/$ac_word; then
2157 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2161 + IFS="$ac_save_ifs"
2164 +RANLIB="$ac_cv_prog_RANLIB"
2165 +if test -n "$RANLIB"; then
2166 + echo "$ac_t""$RANLIB" 1>&6
2168 + echo "$ac_t""no" 1>&6
2172 +if test -z "$ac_cv_prog_RANLIB"; then
2173 +if test -n "$ac_tool_prefix"; then
2174 + # Extract the first word of "ranlib", so it can be a program name with args.
2175 +set dummy ranlib; ac_word=$2
2176 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 +echo "configure:1310: checking for $ac_word" >&5
2178 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 + echo $ac_n "(cached) $ac_c" 1>&6
2181 + if test -n "$RANLIB"; then
2182 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2184 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2186 + for ac_dir in $ac_dummy; do
2187 + test -z "$ac_dir" && ac_dir=.
2188 + if test -f $ac_dir/$ac_word; then
2189 + ac_cv_prog_RANLIB="ranlib"
2193 + IFS="$ac_save_ifs"
2194 + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2197 +RANLIB="$ac_cv_prog_RANLIB"
2198 +if test -n "$RANLIB"; then
2199 + echo "$ac_t""$RANLIB" 1>&6
2201 + echo "$ac_t""no" 1>&6
2210 +# Find a good install program. We prefer a C program (faster),
2211 +# so one script is as good as another. But avoid the broken or
2212 +# incompatible versions:
2213 +# SysV /etc/install, /usr/sbin/install
2214 +# SunOS /usr/etc/install
2215 +# IRIX /sbin/install
2217 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220 +# ./install, which can be erroneously created by make from ./install.sh.
2221 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2222 +echo "configure:1355: checking for a BSD compatible install" >&5
2223 +if test -z "$INSTALL"; then
2224 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2225 + echo $ac_n "(cached) $ac_c" 1>&6
2227 + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2228 + for ac_dir in $PATH; do
2229 + # Account for people who put trailing slashes in PATH elements.
2230 + case "$ac_dir/" in
2231 + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2233 + # OSF1 and SCO ODT 3.0 have their own names for install.
2234 + # Don't use installbsd from OSF since it installs stuff as root
2236 + for ac_prog in ginstall scoinst install; do
2237 + if test -f $ac_dir/$ac_prog; then
2238 + if test $ac_prog = install &&
2239 + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2240 + # AIX install. It has an incompatible calling convention.
2243 + ac_cv_path_install="$ac_dir/$ac_prog -c"
2251 + IFS="$ac_save_IFS"
2254 + if test "${ac_cv_path_install+set}" = set; then
2255 + INSTALL="$ac_cv_path_install"
2257 + # As a last resort, use the slow shell script. We don't cache a
2258 + # path for INSTALL within a source directory, because that will
2259 + # break other packages using the cache if that directory is
2260 + # removed, or if the path is relative.
2261 + INSTALL="$ac_install_sh"
2264 +echo "$ac_t""$INSTALL" 1>&6
2266 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2267 +# It thinks the first close brace ends the variable substitution.
2268 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2270 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2272 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275 +echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2276 +echo "configure:1409: checking whether to enable maintainer-specific portions of Makefiles" >&5
2277 + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2278 +if test "${enable_maintainer_mode+set}" = set; then
2279 + enableval="$enable_maintainer_mode"
2280 + USE_MAINTAINER_MODE=$enableval
2282 + USE_MAINTAINER_MODE=no
2285 + echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2288 +if test $USE_MAINTAINER_MODE = yes; then
2289 + MAINTAINER_MODE_TRUE=
2290 + MAINTAINER_MODE_FALSE='#'
2292 + MAINTAINER_MODE_TRUE='#'
2293 + MAINTAINER_MODE_FALSE=
2295 + MAINT=$MAINTAINER_MODE_TRUE
2299 +# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
2300 +# at least currently, we never actually build a program, so we never
2301 +# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
2302 +# fails, because we are probably configuring with a cross compiler
2303 +# which can't create executables. So we include AC_EXEEXT to keep
2304 +# automake happy, but we don't execute it, since we don't care about
2309 +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2310 +echo "configure:1443: checking for executable suffix" >&5
2311 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2312 + echo $ac_n "(cached) $ac_c" 1>&6
2314 + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2318 + echo 'int main () { return 0; }' > conftest.$ac_ext
2320 + if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2321 + for file in conftest.*; do
2323 + *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2324 + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2328 + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2331 + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2336 +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2337 +echo "$ac_t""${ac_cv_exeext}" 1>&6
2342 +. ${newlib_basedir}/configure.host
2344 +newlib_cflags="${newlib_cflags} -fno-builtin"
2346 +NEWLIB_CFLAGS=${newlib_cflags}
2354 +if test x${newlib_elix_level} = x0; then
2355 + ELIX_LEVEL_0_TRUE=
2356 + ELIX_LEVEL_0_FALSE='#'
2358 + ELIX_LEVEL_0_TRUE='#'
2359 + ELIX_LEVEL_0_FALSE=
2363 +if test x${newlib_elix_level} = x1; then
2364 + ELIX_LEVEL_1_TRUE=
2365 + ELIX_LEVEL_1_FALSE='#'
2367 + ELIX_LEVEL_1_TRUE='#'
2368 + ELIX_LEVEL_1_FALSE=
2372 +if test x${newlib_elix_level} = x2; then
2373 + ELIX_LEVEL_2_TRUE=
2374 + ELIX_LEVEL_2_FALSE='#'
2376 + ELIX_LEVEL_2_TRUE='#'
2377 + ELIX_LEVEL_2_FALSE=
2381 +if test x${newlib_elix_level} = x3; then
2382 + ELIX_LEVEL_3_TRUE=
2383 + ELIX_LEVEL_3_FALSE='#'
2385 + ELIX_LEVEL_3_TRUE='#'
2386 + ELIX_LEVEL_3_FALSE=
2390 +if test x${newlib_elix_level} = x4; then
2391 + ELIX_LEVEL_4_TRUE=
2392 + ELIX_LEVEL_4_FALSE='#'
2394 + ELIX_LEVEL_4_TRUE='#'
2395 + ELIX_LEVEL_4_FALSE=
2400 +if test x${use_libtool} = xyes; then
2402 + USE_LIBTOOL_FALSE='#'
2404 + USE_LIBTOOL_TRUE='#'
2405 + USE_LIBTOOL_FALSE=
2408 +# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
2409 +# use oext, which is set in configure.host based on the target platform.
2422 +cat > confcache <<\EOF
2423 +# This file is a shell script that caches the results of configure
2424 +# tests run on this system so they can be shared between configure
2425 +# scripts and configure runs. It is not useful on other systems.
2426 +# If it contains results you don't want to keep, you may remove or edit it.
2428 +# By default, configure uses ./config.cache as the cache file,
2429 +# creating it if it does not exist already. You can give configure
2430 +# the --cache-file=FILE option to use a different cache file; that is
2431 +# what configure does when it calls configure scripts in
2432 +# subdirectories, so they share the cache.
2433 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
2434 +# config.status only pays attention to the cache file if you give it the
2435 +# --recheck option to rerun configure.
2438 +# The following way of writing the cache mishandles newlines in values,
2439 +# but we know of no workaround that is simple, portable, and efficient.
2440 +# So, don't put newlines in cache variables' values.
2441 +# Ultrix sh set writes to stderr and can't be redirected directly,
2442 +# and sets the high bit in the cache file unless we assign to the vars.
2444 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
2446 + # `set' does not quote correctly, so add quotes (double-quote substitution
2447 + # turns \\\\ into \\, and sed turns \\ into \).
2449 + -e "s/'/'\\\\''/g" \
2450 + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2453 + # `set' quotes correctly as required by POSIX, so do not add quotes.
2454 + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2457 +if cmp -s $cache_file confcache; then
2460 + if test -w $cache_file; then
2461 + echo "updating cache $cache_file"
2462 + cat confcache > $cache_file
2464 + echo "not updating unwritable cache $cache_file"
2469 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2471 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
2472 +# Let make expand exec_prefix.
2473 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2475 +# Any assignment to VPATH causes Sun make to only execute
2476 +# the first set of double-colon rules, so remove it if not needed.
2477 +# If there is a colon in the path, we need to keep it.
2478 +if test "x$srcdir" = x.; then
2479 + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2482 +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2484 +# Transform confdefs.h into DEFS.
2485 +# Protect against shell expansion while executing Makefile rules.
2486 +# Protect against Makefile macro expansion.
2487 +cat > conftest.defs <<\EOF
2488 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2489 +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2494 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2495 +rm -f conftest.defs
2498 +# Without the "./", some shells look in PATH for config.status.
2499 +: ${CONFIG_STATUS=./config.status}
2501 +echo creating $CONFIG_STATUS
2502 +rm -f $CONFIG_STATUS
2503 +cat > $CONFIG_STATUS <<EOF
2505 +# Generated automatically by configure.
2506 +# Run this file to recreate the current configuration.
2507 +# This directory was configured as follows,
2508 +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2510 +# $0 $ac_configure_args
2512 +# Compiler output produced by configure, useful for debugging
2513 +# configure, is in ./config.log if it exists.
2515 +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2518 + case "\$ac_option" in
2519 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2520 + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2521 + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2522 + -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2523 + echo "$CONFIG_STATUS generated by autoconf version 2.13"
2525 + -help | --help | --hel | --he | --h)
2526 + echo "\$ac_cs_usage"; exit 0 ;;
2527 + *) echo "\$ac_cs_usage"; exit 1 ;;
2531 +ac_given_srcdir=$srcdir
2532 +ac_given_INSTALL="$INSTALL"
2534 +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2536 +cat >> $CONFIG_STATUS <<EOF
2538 +# Protect against being on the right side of a sed subst in config.status.
2539 +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2540 + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2544 +s%@CFLAGS@%$CFLAGS%g
2545 +s%@CPPFLAGS@%$CPPFLAGS%g
2546 +s%@CXXFLAGS@%$CXXFLAGS%g
2547 +s%@FFLAGS@%$FFLAGS%g
2549 +s%@LDFLAGS@%$LDFLAGS%g
2551 +s%@exec_prefix@%$exec_prefix%g
2552 +s%@prefix@%$prefix%g
2553 +s%@program_transform_name@%$program_transform_name%g
2554 +s%@bindir@%$bindir%g
2555 +s%@sbindir@%$sbindir%g
2556 +s%@libexecdir@%$libexecdir%g
2557 +s%@datadir@%$datadir%g
2558 +s%@sysconfdir@%$sysconfdir%g
2559 +s%@sharedstatedir@%$sharedstatedir%g
2560 +s%@localstatedir@%$localstatedir%g
2561 +s%@libdir@%$libdir%g
2562 +s%@includedir@%$includedir%g
2563 +s%@oldincludedir@%$oldincludedir%g
2564 +s%@infodir@%$infodir%g
2565 +s%@mandir@%$mandir%g
2566 +s%@newlib_basedir@%$newlib_basedir%g
2568 +s%@host_alias@%$host_alias%g
2569 +s%@host_cpu@%$host_cpu%g
2570 +s%@host_vendor@%$host_vendor%g
2571 +s%@host_os@%$host_os%g
2572 +s%@target@%$target%g
2573 +s%@target_alias@%$target_alias%g
2574 +s%@target_cpu@%$target_cpu%g
2575 +s%@target_vendor@%$target_vendor%g
2576 +s%@target_os@%$target_os%g
2578 +s%@build_alias@%$build_alias%g
2579 +s%@build_cpu@%$build_cpu%g
2580 +s%@build_vendor@%$build_vendor%g
2581 +s%@build_os@%$build_os%g
2582 +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2583 +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2584 +s%@INSTALL_DATA@%$INSTALL_DATA%g
2585 +s%@PACKAGE@%$PACKAGE%g
2586 +s%@VERSION@%$VERSION%g
2587 +s%@ACLOCAL@%$ACLOCAL%g
2588 +s%@AUTOCONF@%$AUTOCONF%g
2589 +s%@AUTOMAKE@%$AUTOMAKE%g
2590 +s%@AUTOHEADER@%$AUTOHEADER%g
2591 +s%@MAKEINFO@%$MAKEINFO%g
2592 +s%@SET_MAKE@%$SET_MAKE%g
2596 +s%@RANLIB@%$RANLIB%g
2597 +s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2598 +s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2600 +s%@EXEEXT@%$EXEEXT%g
2601 +s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2602 +s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
2603 +s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
2604 +s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
2605 +s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
2606 +s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
2607 +s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
2608 +s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
2609 +s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
2610 +s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
2611 +s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
2612 +s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2613 +s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2614 +s%@OBJEXT@%$OBJEXT%g
2617 +s%@libm_machine_dir@%$libm_machine_dir%g
2618 +s%@machine_dir@%$machine_dir%g
2619 +s%@sys_dir@%$sys_dir%g
2624 +cat >> $CONFIG_STATUS <<\EOF
2626 +# Split the substitutions into bite-sized pieces for seds with
2627 +# small command number limits, like on Digital OSF/1 and HP-UX.
2628 +ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2629 +ac_file=1 # Number of current file.
2630 +ac_beg=1 # First line for current file.
2631 +ac_end=$ac_max_sed_cmds # Line after last line for current file.
2634 +while $ac_more_lines; do
2635 + if test $ac_beg -gt 1; then
2636 + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2638 + sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2640 + if test ! -s conftest.s$ac_file; then
2641 + ac_more_lines=false
2642 + rm -f conftest.s$ac_file
2644 + if test -z "$ac_sed_cmds"; then
2645 + ac_sed_cmds="sed -f conftest.s$ac_file"
2647 + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2649 + ac_file=`expr $ac_file + 1`
2651 + ac_end=`expr $ac_end + $ac_max_sed_cmds`
2654 +if test -z "$ac_sed_cmds"; then
2659 +cat >> $CONFIG_STATUS <<EOF
2661 +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2663 +cat >> $CONFIG_STATUS <<\EOF
2664 +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2665 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2666 + case "$ac_file" in
2667 + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2668 + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2669 + *) ac_file_in="${ac_file}.in" ;;
2672 + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2674 + # Remove last slash and all that follows it. Not all systems have dirname.
2675 + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2676 + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2677 + # The file is in a subdirectory.
2678 + test ! -d "$ac_dir" && mkdir "$ac_dir"
2679 + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2680 + # A "../" for each directory in $ac_dir_suffix.
2681 + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2683 + ac_dir_suffix= ac_dots=
2686 + case "$ac_given_srcdir" in
2688 + if test -z "$ac_dots"; then top_srcdir=.
2689 + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2690 + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2691 + *) # Relative path.
2692 + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2693 + top_srcdir="$ac_dots$ac_given_srcdir" ;;
2696 + case "$ac_given_INSTALL" in
2697 + [/$]*) INSTALL="$ac_given_INSTALL" ;;
2698 + *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2701 + echo creating "$ac_file"
2703 + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2704 + case "$ac_file" in
2705 + *Makefile*) ac_comsub="1i\\
2706 +# $configure_input" ;;
2710 + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2711 + sed -e "$ac_comsub
2712 +s%@configure_input@%$configure_input%g
2713 +s%@srcdir@%$srcdir%g
2714 +s%@top_srcdir@%$top_srcdir%g
2715 +s%@INSTALL@%$INSTALL%g
2716 +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2721 +cat >> $CONFIG_STATUS <<EOF
2724 +cat >> $CONFIG_STATUS <<\EOF
2728 +chmod +x $CONFIG_STATUS
2729 +rm -fr confdefs* $ac_clean_files
2730 +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2732 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/configure.in ./newlib/libc/sys/mipsunknown/configure.in
2733 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/configure.in Wed Dec 31 19:00:00 1969
2734 +++ ./newlib/libc/sys/mipsunknown/configure.in Mon Nov 24 20:33:46 2003
2736 +dnl This is the newlib/libc/sys/mipsunknown configure.in file.
2737 +dnl Process this file with autoconf to produce a configure script.
2740 +AC_INIT(syscalls.c)
2742 +dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
2743 +AC_CONFIG_AUX_DIR(../../../..)
2745 +NEWLIB_CONFIGURE(../../..)
2747 +AC_OUTPUT(Makefile)
2748 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/crt0.c ./newlib/libc/sys/mipsunknown/crt0.c
2749 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/crt0.c Wed Dec 31 19:00:00 1969
2750 +++ ./newlib/libc/sys/mipsunknown/crt0.c Mon Nov 24 21:03:56 2003
2752 +/* This is just here to make the build proccess happy. The real crt0.c is included in the
2753 + mips2java dist and will replace this after mips2java is installed */
2755 +extern void puts(const char *s);
2757 + puts("Your build is broken... you shouldn't be using the crt0.c in newlib");
2759 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/sys/dirent.h ./newlib/libc/sys/mipsunknown/sys/dirent.h
2760 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/sys/dirent.h Wed Dec 31 19:00:00 1969
2761 +++ ./newlib/libc/sys/mipsunknown/sys/dirent.h Mon Nov 24 22:46:36 2003
2763 +#ifndef _SYS_DIRENT_H
2764 +#define _SYS_DIRENT_H
2766 +#include <sys/types.h>
2770 + char d_name[1024];
2776 + struct dirent ent;
2779 +# define __dirfd(dp) ((dp)->dd_fd)
2781 +DIR *opendir (const char *);
2782 +struct dirent *readdir (DIR *);
2783 +void rewinddir (DIR *);
2784 +int closedir (DIR *);
2787 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/sys/utime.h ./newlib/libc/sys/mipsunknown/sys/utime.h
2788 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/sys/utime.h Wed Dec 31 19:00:00 1969
2789 +++ ./newlib/libc/sys/mipsunknown/sys/utime.h Tue Nov 25 09:45:17 2003
2791 +#ifndef _SYS_UTIME_H
2792 +#define _SYS_UTIME_H
2804 +extern int utime(const char *file, const struct utimbuf *buf);
2810 +#endif /* _SYS_UTIME_H */
2811 diff -urN ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/syscalls.c ./newlib/libc/sys/mipsunknown/syscalls.c
2812 --- ../newlib-1.11.0.orig/newlib/libc/sys/mipsunknown/syscalls.c Wed Dec 31 19:00:00 1969
2813 +++ ./newlib/libc/sys/mipsunknown/syscalls.c Tue Nov 25 09:33:57 2003
2815 +#include <sys/types.h>
2816 +#include <sys/stat.h>
2821 +/* These are just connectors for the reent versions */
2823 +extern int _mkdir_r(struct _reent *ptr, const char *path, mode_t mode);
2824 +int mkdir(const char *path, mode_t mode) { return _mkdir_r(_REENT, path, mode); }
2826 +extern int _utime_r(struct _reent *ptr, const char *file, struct utimbuf *buf);
2827 +int utime(const char *file, const struct utimbuf *buf) { return _utime_r(_REENT,file,buf); }
2829 +extern int _lstat_r(struct _reent *ptr, const char *path, struct stat *sb);
2830 +int lstat(const char *path, struct stat *sb) { return _lstat_r(_REENT,path,sb); }
2832 +extern int _chdir_r(struct _reent *ptr, const char *path);
2833 +int chdir(const char *path) { return _chdir_r(_REENT,path); }
2835 +extern int _pipe_r(struct _reent *ptr, int *filedes);
2836 +int pipe(int *filedes) { return _pipe_r(_REENT,filedes); }
2838 +extern int _dup2_r(struct _reent *ptr, int oldd, int newd);
2839 +int dup2(int oldd,int newd) { return _dup2_r(_REENT,oldd,newd); }
2841 +extern int _waitpid_r(struct _reent *ptr, pid_t pid, int *status, int opts);
2842 +int waitpid(pid_t pid, int *status, int opts) { return _waitpid_r(_REENT,pid,status,opts); }
2844 +extern char* _getcwd_r(struct _reent *ptr, char *buf, size_t size);
2845 +char* getcwd(char *buf, size_t size) { return _getcwd_r(_REENT,buf,size); }
2847 +extern int _symlink_r(struct _reent *ptr, const char *name1, const char *name2);
2848 +int symlink(const char *name1, const char *name2) { return _symlink_r(_REENT,name1,name2); }
2850 +extern int _readlink_r(struct _reent *ptr, const char *path, const char *buf, int bufsize);
2851 +int readlink(const char *path, const char *buf, int bufsize) { return _readlink_r(_REENT,path,buf,bufsize); }
2853 +extern int _chown_r(struct _reent *ptr, const char *path, uid_t uid, gid_t gid);
2854 +int chown(const char *path, uid_t uid, gid_t gid) { return _chown_r(_REENT,path,uid,gid); }
2856 +extern int _fchown_r(struct _reent *ptr, int fd, uid_t uid, gid_t gid);
2857 +int fchown(int fd, uid_t uid, gid_t gid) { return _fchown_r(_REENT,fd,uid,gid); }
2859 +extern int _chmod_r(struct _reent *ptr, const char *path, mode_t mode);
2860 +int chmod(const char *path, mode_t mode) { return _chmod_r(_REENT,path,mode); }
2862 +extern int _fchmod_r(struct _reent *ptr, int fd, mode_t mode);
2863 +int fchmod(int fd, mode_t mode) { return _fchmod_r(_REENT,fd,mode); }