474d0d390454d237c0382849ddd1721c8776d650
[nestedvm.git] / upstream / patches / newlib-mips.patch
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
4 @@ -762,6 +762,9 @@
5    mips*-*-pe)
6         configdirs="wince"
7         ;;
8 +  mips*-unknown-elf*)
9 +        configdirs="${configdirs}"
10 +        ;;
11    mips*-*-*)
12         configdirs="${configdirs} mips testsuite"
13         ;;
14 @@ -818,7 +821,7 @@
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
22  else
23 @@ -848,7 +851,7 @@
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
31  else
32 @@ -897,7 +900,7 @@
33  fi
34  
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
40  else
41 @@ -906,7 +909,7 @@
42    yes;
43  #endif
44  EOF
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
47    ac_cv_prog_gcc=yes
48  else
49    ac_cv_prog_gcc=no
50 @@ -921,7 +924,7 @@
51    ac_save_CFLAGS="$CFLAGS"
52    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
58  else
59 @@ -953,7 +956,7 @@
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
67  else
68 @@ -987,7 +990,7 @@
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
76  else
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
80 @@ -73,6 +73,9 @@
81    mips*-*-pe)
82         configdirs="wince"
83         ;;
84 +  mips*-unknown-elf*)
85 +        configdirs="${configdirs}"
86 +        ;;
87    mips*-*-*)
88         configdirs="${configdirs} mips testsuite"
89         ;;
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
93 @@ -356,6 +356,9 @@
94    m8*-bug-*)
95         sys_dir=m88kbug
96         ;;
97 +  mips*-unknown-elf*)
98 +       sys_dir=mipsunknown
99 +       ;;
100    mips*-dec-*)
101         sys_dir=decstation
102         ;;
103 @@ -508,6 +511,10 @@
104         newlib_cflags="${newlib_cflags}"
105         syscall_dir=syscalls
106         ;;
107 +  mips*-unknown-elf*)
108 +       newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL"
109 +       syscall_dir=syscalls
110 +        ;;
111    mmix-*)
112         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
117 @@ -3,5 +3,6 @@
118  
119  #define _PATH_DEV      "/dev/"
120  #define _PATH_BSHELL    "/bin/sh"
121 +#define _PATH_DEVNULL "/dev/null"
122  
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));
129  #else
130  char * _EXFUN(realpath,(const char *, char *));
131 +#endif
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));
136 +#ifdef __CYGWIN__
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
143 @@ -142,6 +142,8 @@
144  int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
145  #endif
146  
147 +int _EXFUN(kill, (int, int));
148 +
149  /* protos for functions found in winsup sources for CYGWIN */
150  #if defined(__CYGWIN__) || defined(__rtems__)
151  #undef sigaddset
152 @@ -150,7 +152,6 @@
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
163 @@ -127,7 +127,7 @@
164  int    _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
165  mode_t _EXFUN(umask,( mode_t __mask ));
166  
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 ));
171  #endif
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
175 @@ -158,9 +158,9 @@
176  #endif
177  char * _EXFUN(mktemp, (char *));
178  int     _EXFUN(sync, (void));
179 +#endif
180  int     _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));
181  int     _EXFUN(symlink, (const char *__name1, const char *__name2));
182 -#endif
183  
184  #define        F_OK    0
185  #define        R_OK    4
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
189 @@ -0,0 +1,14 @@
190 +## Process this file with automake to generate Makefile.in
191 +
192 +AUTOMAKE_OPTIONS = cygnus
193 +
194 +INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
195 +
196 +noinst_LIBRARIES = lib.a
197 +
198 +lib_a_SOURCES = syscalls.c
199 +
200 +all: crt0.o
201 +
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
207 @@ -0,0 +1,329 @@
208 +# Makefile.in generated automatically by automake 1.4 from Makefile.am
209 +
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.
214 +
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.
219 +
220 +
221 +SHELL = @SHELL@
222 +
223 +srcdir = @srcdir@
224 +top_srcdir = @top_srcdir@
225 +VPATH = @srcdir@
226 +prefix = @prefix@
227 +exec_prefix = @exec_prefix@
228 +
229 +bindir = @bindir@
230 +sbindir = @sbindir@
231 +libexecdir = @libexecdir@
232 +datadir = @datadir@
233 +sysconfdir = @sysconfdir@
234 +sharedstatedir = @sharedstatedir@
235 +localstatedir = @localstatedir@
236 +libdir = @libdir@
237 +infodir = @infodir@
238 +mandir = @mandir@
239 +includedir = @includedir@
240 +oldincludedir = /usr/include
241 +
242 +DESTDIR =
243 +
244 +pkgdatadir = $(datadir)/@PACKAGE@
245 +pkglibdir = $(libdir)/@PACKAGE@
246 +pkgincludedir = $(includedir)/@PACKAGE@
247 +
248 +top_builddir = .
249 +
250 +ACLOCAL = @ACLOCAL@
251 +AUTOCONF = @AUTOCONF@
252 +AUTOMAKE = @AUTOMAKE@
253 +AUTOHEADER = @AUTOHEADER@
254 +
255 +INSTALL = @INSTALL@
256 +INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
257 +INSTALL_DATA = @INSTALL_DATA@
258 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
259 +transform = @program_transform_name@
260 +
261 +NORMAL_INSTALL = :
262 +PRE_INSTALL = :
263 +POST_INSTALL = :
264 +NORMAL_UNINSTALL = :
265 +PRE_UNINSTALL = :
266 +POST_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@
273 +AR = @AR@
274 +AS = @AS@
275 +CC = @CC@
276 +CPP = @CPP@
277 +EXEEXT = @EXEEXT@
278 +LDFLAGS = @LDFLAGS@
279 +MAINT = @MAINT@
280 +MAKEINFO = @MAKEINFO@
281 +NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
282 +OBJEXT = @OBJEXT@
283 +PACKAGE = @PACKAGE@
284 +RANLIB = @RANLIB@
285 +VERSION = @VERSION@
286 +aext = @aext@
287 +libm_machine_dir = @libm_machine_dir@
288 +machine_dir = @machine_dir@
289 +newlib_basedir = @newlib_basedir@
290 +oext = @oext@
291 +sys_dir = @sys_dir@
292 +
293 +AUTOMAKE_OPTIONS = cygnus
294 +
295 +INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
296 +
297 +noinst_LIBRARIES = lib.a
298 +
299 +lib_a_SOURCES = syscalls.c
300 +
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)
307 +
308 +
309 +DEFS = @DEFS@ -I. -I$(srcdir) 
310 +CPPFLAGS = @CPPFLAGS@
311 +LIBS = @LIBS@
312 +lib_a_LIBADD = 
313 +lib_a_OBJECTS =  syscalls.o
314 +CFLAGS = @CFLAGS@
315 +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
316 +CCLD = $(CC)
317 +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
318 +DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
319 +
320 +
321 +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
322 +
323 +TAR = gnutar
324 +GZIP_ENV = --best
325 +SOURCES = $(lib_a_SOURCES)
326 +OBJECTS = $(lib_a_OBJECTS)
327 +
328 +all: all-redirect
329 +.SUFFIXES:
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
333 +
334 +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
335 +       cd $(top_builddir) \
336 +         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
337 +
338 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  \
339 +               ../../../acinclude.m4 ../../../aclocal.m4 \
340 +               ../../../libtool.m4
341 +       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
342 +
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)
347 +
348 +mostlyclean-noinstLIBRARIES:
349 +
350 +clean-noinstLIBRARIES:
351 +       -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
352 +
353 +distclean-noinstLIBRARIES:
354 +
355 +maintainer-clean-noinstLIBRARIES:
356 +
357 +.c.o:
358 +       $(COMPILE) -c $<
359 +
360 +.s.o:
361 +       $(COMPILE) -c $<
362 +
363 +.S.o:
364 +       $(COMPILE) -c $<
365 +
366 +mostlyclean-compile:
367 +       -rm -f *.o core *.core
368 +
369 +clean-compile:
370 +
371 +distclean-compile:
372 +       -rm -f *.tab.c
373 +
374 +maintainer-clean-compile:
375 +
376 +lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
377 +       -rm -f lib.a
378 +       $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
379 +       $(RANLIB) lib.a
380 +
381 +tags: TAGS
382 +
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)
390 +
391 +TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
392 +       tags=; \
393 +       here=`pwd`; \
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)
400 +
401 +mostlyclean-tags:
402 +
403 +clean-tags:
404 +
405 +distclean-tags:
406 +       -rm -f TAGS ID
407 +
408 +maintainer-clean-tags:
409 +
410 +distdir = $(PACKAGE)-$(VERSION)
411 +top_distdir = $(distdir)
412 +
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
415 +# tarfile.
416 +distcheck: dist
417 +       -rm -rf $(distdir)
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
430 +       -rm -rf $(distdir)
431 +       @banner="$(distdir).tar.gz is ready for distribution"; \
432 +       dashes=`echo "$$banner" | sed s/./=/g`; \
433 +       echo "$$dashes"; \
434 +       echo "$$banner"; \
435 +       echo "$$dashes"
436 +dist: distdir
437 +       -chmod -R a+r $(distdir)
438 +       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
439 +       -rm -rf $(distdir)
440 +dist-all: distdir
441 +       -chmod -R a+r $(distdir)
442 +       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
443 +       -rm -rf $(distdir)
444 +distdir: $(DISTFILES)
445 +       -rm -rf $(distdir)
446 +       mkdir $(distdir)
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; \
452 +         else \
453 +           test -f $(distdir)/$$file \
454 +           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
455 +           || cp -p $$d/$$file $(distdir)/$$file || :; \
456 +         fi; \
457 +       done
458 +info-am:
459 +info: info-am
460 +dvi-am:
461 +dvi: dvi-am
462 +check-am:
463 +check: check-am
464 +installcheck-am:
465 +installcheck: installcheck-am
466 +install-info-am: 
467 +install-info: install-info-am
468 +install-exec-am:
469 +install-exec: install-exec-am
470 +
471 +install-data-am:
472 +install-data: install-data-am
473 +
474 +install-am: all-am
475 +       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
476 +install: install-am
477 +uninstall-am:
478 +uninstall: uninstall-am
479 +all-am: Makefile $(LIBRARIES)
480 +all-redirect: all-am
481 +install-strip:
482 +       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
483 +installdirs:
484 +
485 +
486 +mostlyclean-generic:
487 +
488 +clean-generic:
489 +
490 +distclean-generic:
491 +       -rm -f Makefile $(CONFIG_CLEAN_FILES)
492 +       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
493 +
494 +maintainer-clean-generic:
495 +mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
496 +               mostlyclean-tags mostlyclean-generic
497 +
498 +mostlyclean: mostlyclean-am
499 +
500 +clean-am:  clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
501 +               mostlyclean-am
502 +
503 +clean: clean-am
504 +
505 +distclean-am:  distclean-noinstLIBRARIES distclean-compile \
506 +               distclean-tags distclean-generic clean-am
507 +
508 +distclean: distclean-am
509 +       -rm -f config.status
510 +
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."
516 +
517 +maintainer-clean: maintainer-clean-am
518 +       -rm -f config.status
519 +
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
530 +
531 +
532 +all: crt0.o 
533 +
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.
536 +.NOEXPORT:
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
540 @@ -0,0 +1,324 @@
541 +dnl aclocal.m4 generated automatically by aclocal 1.4
542 +
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.
547 +
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.
552 +
553 +dnl This provides configure definitions used by all the newlib
554 +dnl configure.in files.
555 +
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.
560 +
561 +AC_DEFUN(NEWLIB_CONFIGURE,
562 +[
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 ;;
568 +  no)  multilib=no ;;
569 +  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
570 + esac], [multilib=yes])dnl
571 +
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
580 +
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
589 +
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
598 +
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
607 +
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
619 +
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
628 +
629 +
630 +dnl We may get other options which we don't document:
631 +dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
632 +
633 +test -z "[$]{with_target_subdir}" && with_target_subdir=.
634 +
635 +if test "[$]{srcdir}" = "."; then
636 +  if test "[$]{with_target_subdir}" != "."; then
637 +    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
638 +  else
639 +    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
640 +  fi
641 +else
642 +  newlib_basedir="[$]{srcdir}/$1"
643 +fi
644 +AC_SUBST(newlib_basedir)
645 +
646 +AC_CANONICAL_SYSTEM
647 +
648 +AM_INIT_AUTOMAKE(newlib, 1.11.0)
649 +
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
654 +# itself.
655 +
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])
662 +fi
663 +
664 +AC_PROG_CC_GNU
665 +
666 +if test $ac_cv_prog_gcc = yes; then
667 +  GCC=yes
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"
673 +  CFLAGS=
674 +  AC_PROG_CC_G
675 +  if test "$ac_test_CFLAGS" = set; then
676 +    CFLAGS="$ac_save_CFLAGS"
677 +  elif test $ac_cv_prog_cc_g = yes; then
678 +    CFLAGS="-g -O2"
679 +  else
680 +    CFLAGS="-O2"
681 +  fi
682 +else
683 +  GCC=
684 +  test "${CFLAGS+set}" = set || CFLAGS="-g"
685 +fi
686 +])
687 +
688 +LIB_AC_PROG_CC
689 +
690 +AC_CHECK_TOOL(AS, as)
691 +AC_CHECK_TOOL(AR, ar)
692 +AC_CHECK_TOOL(RANLIB, ranlib, :)
693 +
694 +AC_PROG_INSTALL
695 +
696 +AM_MAINTAINER_MODE
697 +
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
704 +# the result.
705 +if false; then
706 +  AC_EXEEXT
707 +fi
708 +
709 +. [$]{newlib_basedir}/configure.host
710 +
711 +newlib_cflags="[$]{newlib_cflags} -fno-builtin"
712 +
713 +NEWLIB_CFLAGS=${newlib_cflags}
714 +AC_SUBST(NEWLIB_CFLAGS)
715 +
716 +LDFLAGS=${ldflags}
717 +AC_SUBST(LDFLAGS)
718 +
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)
724 +
725 +AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
726 +
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.
729 +OBJEXT=${oext}
730 +
731 +AC_SUBST(OBJEXT)
732 +AC_SUBST(oext)
733 +AC_SUBST(aext)
734 +
735 +AC_SUBST(libm_machine_dir)
736 +AC_SUBST(machine_dir)
737 +AC_SUBST(sys_dir)
738 +])
739 +
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.
743 +
744 +# serial 1
745 +
746 +dnl Usage:
747 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
748 +
749 +AC_DEFUN(AM_INIT_AUTOMAKE,
750 +[AC_REQUIRE([AC_PROG_INSTALL])
751 +PACKAGE=[$1]
752 +AC_SUBST(PACKAGE)
753 +VERSION=[$2]
754 +AC_SUBST(VERSION)
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])
758 +fi
759 +ifelse([$3],,
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])])
772 +
773 +#
774 +# Check to make sure that the build environment is sane.
775 +#
776 +
777 +AC_DEFUN(AM_SANITY_CHECK,
778 +[AC_MSG_CHECKING([whether build environment is sane])
779 +# Just in case
780 +sleep 1
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
786 +# directory).
787 +if (
788 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
789 +   if test "[$]*" = "X"; then
790 +      # -L didn't work.
791 +      set X `ls -t $srcdir/configure conftestfile`
792 +   fi
793 +   if test "[$]*" != "X $srcdir/configure conftestfile" \
794 +      && test "[$]*" != "X conftestfile $srcdir/configure"; then
795 +
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])
802 +   fi
803 +
804 +   test "[$]2" = conftestfile
805 +   )
806 +then
807 +   # Ok.
808 +   :
809 +else
810 +   AC_MSG_ERROR([newly created file is older than distributed files!
811 +Check your system clock])
812 +fi
813 +rm -f conftest*
814 +AC_MSG_RESULT(yes)])
815 +
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
824 +   $1=$2
825 +   AC_MSG_RESULT(found)
826 +else
827 +   $1="$3/missing $2"
828 +   AC_MSG_RESULT(missing)
829 +fi
830 +AC_SUBST($1)])
831 +
832 +# Add --enable-maintainer-mode option to configure.
833 +# From Jim Meyering
834 +
835 +# serial 1
836 +
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
848 +  AC_SUBST(MAINT)dnl
849 +]
850 +)
851 +
852 +# Define a conditional.
853 +
854 +AC_DEFUN(AM_CONDITIONAL,
855 +[AC_SUBST($1_TRUE)
856 +AC_SUBST($1_FALSE)
857 +if $2; then
858 +  $1_TRUE=
859 +  $1_FALSE='#'
860 +else
861 +  $1_TRUE='#'
862 +  $1_FALSE=
863 +fi])
864 +
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
868 @@ -0,0 +1,1863 @@
869 +#! /bin/sh
870 +
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.
874 +#
875 +# This configure script is free software; the Free Software Foundation
876 +# gives unlimited permission to copy, distribute and modify it.
877 +
878 +# Defaults:
879 +ac_help=
880 +ac_default_prefix=/usr/local
881 +# Any additions from configure.in:
882 +ac_help="$ac_help
883 +  --enable-multilib         build many library versions (default)"
884 +ac_help="$ac_help
885 +  --enable-target-optspace  optimize for space"
886 +ac_help="$ac_help
887 +  --enable-malloc-debugging indicate malloc debugging requested"
888 +ac_help="$ac_help
889 +  --enable-newlib-mb        enable multibyte support"
890 +ac_help="$ac_help
891 +  --enable-newlib-multithread        enable support for multiple threads"
892 +ac_help="$ac_help
893 +  --enable-newlib-elix-level         supply desired elix library level (1-4)"
894 +ac_help="$ac_help
895 +  --disable-newlib-io-float disable printf/scanf family float support"
896 +ac_help="$ac_help
897 +  --enable-maintainer-mode enable make rules and dependencies not useful
898 +                          (and sometimes confusing) to the casual installer"
899 +
900 +# Initialize some variables set by options.
901 +# The variables have the same names as the options, with
902 +# dashes changed to underlines.
903 +build=NONE
904 +cache_file=./config.cache
905 +exec_prefix=NONE
906 +host=NONE
907 +no_create=
908 +nonopt=NONE
909 +no_recursion=
910 +prefix=NONE
911 +program_prefix=NONE
912 +program_suffix=NONE
913 +program_transform_name=s,x,x,
914 +silent=
915 +site=
916 +sitefile=
917 +srcdir=
918 +target=NONE
919 +verbose=
920 +x_includes=NONE
921 +x_libraries=NONE
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'
934 +
935 +# Initialize some other variables.
936 +subdirs=
937 +MFLAGS= MAKEFLAGS=
938 +SHELL=${CONFIG_SHELL-/bin/sh}
939 +# Maximum number of lines to put in a shell here document.
940 +ac_max_here_lines=12
941 +
942 +ac_prev=
943 +for ac_option
944 +do
945 +
946 +  # If the previous option needs an argument, assign it.
947 +  if test -n "$ac_prev"; then
948 +    eval "$ac_prev=\$ac_option"
949 +    ac_prev=
950 +    continue
951 +  fi
952 +
953 +  case "$ac_option" in
954 +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
955 +  *) ac_optarg= ;;
956 +  esac
957 +
958 +  # Accept the important Cygnus configure options, so we can diagnose typos.
959 +
960 +  case "$ac_option" in
961 +
962 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 +    ac_prev=bindir ;;
964 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 +    bindir="$ac_optarg" ;;
966 +
967 +  -build | --build | --buil | --bui | --bu)
968 +    ac_prev=build ;;
969 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 +    build="$ac_optarg" ;;
971 +
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" ;;
978 +
979 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
980 +    ac_prev=datadir ;;
981 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
982 +  | --da=*)
983 +    datadir="$ac_optarg" ;;
984 +
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; }
990 +    fi
991 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
992 +    eval "enable_${ac_feature}=no" ;;
993 +
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; }
999 +    fi
1000 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1001 +    case "$ac_option" in
1002 +      *=*) ;;
1003 +      *) ac_optarg=yes ;;
1004 +    esac
1005 +    eval "enable_${ac_feature}='$ac_optarg'" ;;
1006 +
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" ;;
1015 +
1016 +  -gas | --gas | --ga | --g)
1017 +    # Obsolete; use --with-gas.
1018 +    with_gas=yes ;;
1019 +
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.
1023 +    cat << EOF
1024 +Usage: configure [options] [host]
1025 +Options: [defaults in brackets after descriptions]
1026 +Configuration:
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
1037 +                          [same as prefix]
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
1042 +                          [PREFIX/share]
1043 +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
1044 +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
1045 +                          [PREFIX/com]
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
1057 +EOF
1058 +    cat << EOF
1059 +Host type:
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
1070 +EOF
1071 +    if test -n "$ac_help"; then
1072 +      echo "--enable and --with options recognized:$ac_help"
1073 +    fi
1074 +    exit 0 ;;
1075 +
1076 +  -host | --host | --hos | --ho)
1077 +    ac_prev=host ;;
1078 +  -host=* | --host=* | --hos=* | --ho=*)
1079 +    host="$ac_optarg" ;;
1080 +
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" ;;
1087 +
1088 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 +    ac_prev=infodir ;;
1090 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 +    infodir="$ac_optarg" ;;
1092 +
1093 +  -libdir | --libdir | --libdi | --libd)
1094 +    ac_prev=libdir ;;
1095 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 +    libdir="$ac_optarg" ;;
1097 +
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" ;;
1104 +
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" ;;
1113 +
1114 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 +    ac_prev=mandir ;;
1116 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 +    mandir="$ac_optarg" ;;
1118 +
1119 +  -nfp | --nfp | --nf)
1120 +    # Obsolete; use --without-fp.
1121 +    with_fp=no ;;
1122 +
1123 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 +  | --no-cr | --no-c)
1125 +    no_create=yes ;;
1126 +
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 ;;
1130 +
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" ;;
1139 +
1140 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 +    ac_prev=prefix ;;
1142 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 +    prefix="$ac_optarg" ;;
1144 +
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" ;;
1151 +
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" ;;
1158 +
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" ;;
1175 +
1176 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 +  | -silent | --silent | --silen | --sile | --sil)
1178 +    silent=yes ;;
1179 +
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" ;;
1185 +
1186 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 +  | --sharedst | --shareds | --shared | --share | --shar \
1189 +  | --sha | --sh)
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" ;;
1196 +
1197 +  -site | --site | --sit)
1198 +    ac_prev=site ;;
1199 +  -site=* | --site=* | --sit=*)
1200 +    site="$ac_optarg" ;;
1201 +
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" ;;
1206 +
1207 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 +    ac_prev=srcdir ;;
1209 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 +    srcdir="$ac_optarg" ;;
1211 +
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" ;;
1218 +
1219 +  -target | --target | --targe | --targ | --tar | --ta | --t)
1220 +    ac_prev=target ;;
1221 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 +    target="$ac_optarg" ;;
1223 +
1224 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 +    verbose=yes ;;
1226 +
1227 +  -version | --version | --versio | --versi | --vers)
1228 +    echo "configure generated by autoconf version 2.13"
1229 +    exit 0 ;;
1230 +
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; }
1236 +    fi
1237 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
1238 +    case "$ac_option" in
1239 +      *=*) ;;
1240 +      *) ac_optarg=yes ;;
1241 +    esac
1242 +    eval "with_${ac_package}='$ac_optarg'" ;;
1243 +
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; }
1249 +    fi
1250 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
1251 +    eval "with_${ac_package}=no" ;;
1252 +
1253 +  --x)
1254 +    # Obsolete; use --with-x.
1255 +    with_x=yes ;;
1256 +
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" ;;
1263 +
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" ;;
1270 +
1271 +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1272 +    ;;
1273 +
1274 +  *)
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
1277 +    fi
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; }
1280 +    fi
1281 +    nonopt="$ac_option"
1282 +    ;;
1283 +
1284 +  esac
1285 +done
1286 +
1287 +if test -n "$ac_prev"; then
1288 +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1289 +fi
1290 +
1291 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1292 +
1293 +# File descriptor usage:
1294 +# 0 standard input
1295 +# 1 file creation
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
1302 +  exec 6>/dev/null
1303 +else
1304 +  exec 6>&1
1305 +fi
1306 +exec 5>./config.log
1307 +
1308 +echo "\
1309 +This file contains any messages produced by compilers while
1310 +running configure, to aid debugging if configure makes a mistake.
1311 +" 1>&5
1312 +
1313 +# Strip out --no-create and --no-recursion so they do not pile up.
1314 +# Also quote any args containing shell metacharacters.
1315 +ac_configure_args=
1316 +for ac_arg
1317 +do
1318 +  case "$ac_arg" in
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" ;;
1326 +  esac
1327 +done
1328 +
1329 +# NLS nuisances.
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
1338 +
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.
1342 +echo > confdefs.h
1343 +
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
1347 +
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.
1352 +  ac_prog=$0
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
1357 +    srcdir=..
1358 +  fi
1359 +else
1360 +  ac_srcdir_defaulted=no
1361 +fi
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; }
1365 +  else
1366 +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1367 +  fi
1368 +fi
1369 +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1370 +
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"
1376 +    else
1377 +      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 +    fi
1379 +  fi
1380 +else
1381 +  CONFIG_SITE="$sitefile"
1382 +fi
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"
1386 +    . "$ac_site_file"
1387 +  fi
1388 +done
1389 +
1390 +if test -r "$cache_file"; then
1391 +  echo "loading cache $cache_file"
1392 +  . $cache_file
1393 +else
1394 +  echo "creating cache $cache_file"
1395 +  > $cache_file
1396 +fi
1397 +
1398 +ac_ext=c
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
1404 +
1405 +ac_exeext=
1406 +ac_objext=o
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
1410 +    ac_n= ac_c='
1411 +' ac_t='       '
1412 +  else
1413 +    ac_n=-n ac_c= ac_t=
1414 +  fi
1415 +else
1416 +  ac_n= ac_c='\c' ac_t=
1417 +fi
1418 +
1419 +
1420 +
1421 +ac_aux_dir=
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"
1426 +    break
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"
1430 +    break
1431 +  fi
1432 +done
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; }
1435 +fi
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.
1439 +
1440 +
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
1447 +# AIX /bin/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
1457 +else
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/*) ;;
1463 +    *)
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
1466 +      # by default.
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.
1472 +           :
1473 +         else
1474 +           ac_cv_path_install="$ac_dir/$ac_prog -c"
1475 +           break 2
1476 +         fi
1477 +       fi
1478 +      done
1479 +      ;;
1480 +    esac
1481 +  done
1482 +  IFS="$ac_save_IFS"
1483 +
1484 +fi
1485 +  if test "${ac_cv_path_install+set}" = set; then
1486 +    INSTALL="$ac_cv_path_install"
1487 +  else
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"
1493 +  fi
1494 +fi
1495 +echo "$ac_t""$INSTALL" 1>&6
1496 +
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}'
1500 +
1501 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1502 +
1503 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1504 +
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
1507 +# Just in case
1508 +sleep 1
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
1514 +# directory).
1515 +if (
1516 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 +   if test "$*" = "X"; then
1518 +      # -L didn't work.
1519 +      set X `ls -t $srcdir/configure conftestfile`
1520 +   fi
1521 +   if test "$*" != "X $srcdir/configure conftestfile" \
1522 +      && test "$*" != "X conftestfile $srcdir/configure"; then
1523 +
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; }
1530 +   fi
1531 +
1532 +   test "$2" = conftestfile
1533 +   )
1534 +then
1535 +   # Ok.
1536 +   :
1537 +else
1538 +   { echo "configure: error: newly created file is older than distributed files!
1539 +Check your system clock" 1>&2; exit 1; }
1540 +fi
1541 +rm -f conftest*
1542 +echo "$ac_t""yes" 1>&6
1543 +if test "$program_transform_name" = s,x,x,; then
1544 +  program_transform_name=
1545 +else
1546 +  # Double any \ or $.  echo might interpret backslashes.
1547 +  cat <<\EOF_SED > conftestsed
1548 +s,\\,\\\\,g; s,\$,$$,g
1549 +EOF_SED
1550 +  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 +  rm -f conftestsed
1552 +fi
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"
1558 +
1559 +# sed with no file args requires a program.
1560 +test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561 +
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
1567 +else
1568 +  cat > conftestmake <<\EOF
1569 +all:
1570 +       @echo 'ac_maketemp="${MAKE}"'
1571 +EOF
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
1576 +else
1577 +  eval ac_cv_prog_make_${ac_make}_set=no
1578 +fi
1579 +rm -f conftestmake
1580 +fi
1581 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 +  echo "$ac_t""yes" 1>&6
1583 +  SET_MAKE=
1584 +else
1585 +  echo "$ac_t""no" 1>&6
1586 +  SET_MAKE="MAKE=${MAKE-make}"
1587 +fi
1588 +
1589 +if test $host != $build; then
1590 +  ac_tool_prefix=${host_alias}-
1591 +else
1592 +  ac_tool_prefix=
1593 +fi
1594 +
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
1599 +else
1600 +  cat > conftest.$ac_ext <<EOF
1601 +#line 734 "configure"
1602 +#include "confdefs.h"
1603 +
1604 +int main() {
1605 +
1606 +#ifndef __CYGWIN__
1607 +#define __CYGWIN__ __CYGWIN32__
1608 +#endif
1609 +return __CYGWIN__;
1610 +; return 0; }
1611 +EOF
1612 +if { (eval echo configure:745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613 +  rm -rf conftest*
1614 +  ac_cv_cygwin=yes
1615 +else
1616 +  echo "configure: failed program was:" >&5
1617 +  cat conftest.$ac_ext >&5
1618 +  rm -rf conftest*
1619 +  ac_cv_cygwin=no
1620 +fi
1621 +rm -f conftest*
1622 +rm -f conftest*
1623 +fi
1624 +
1625 +echo "$ac_t""$ac_cv_cygwin" 1>&6
1626 +CYGWIN=
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
1632 +else
1633 +  cat > conftest.$ac_ext <<EOF
1634 +#line 767 "configure"
1635 +#include "confdefs.h"
1636 +
1637 +int main() {
1638 +return __MINGW32__;
1639 +; return 0; }
1640 +EOF
1641 +if { (eval echo configure:774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1642 +  rm -rf conftest*
1643 +  ac_cv_mingw32=yes
1644 +else
1645 +  echo "configure: failed program was:" >&5
1646 +  cat conftest.$ac_ext >&5
1647 +  rm -rf conftest*
1648 +  ac_cv_mingw32=no
1649 +fi
1650 +rm -f conftest*
1651 +rm -f conftest*
1652 +fi
1653 +
1654 +echo "$ac_t""$ac_cv_mingw32" 1>&6
1655 +MINGW32=
1656 +test "$ac_cv_mingw32" = yes && MINGW32=yes
1657 +
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; } ;;
1665 + esac
1666 +else
1667 +  multilib=yes
1668 +fi
1669 +
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; } ;;
1677 + esac
1678 +else
1679 +  target_optspace=
1680 +fi
1681 +
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; } ;;
1689 + esac
1690 +else
1691 +  malloc_debugging=
1692 +fi
1693 +
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; } ;;
1701 + esac
1702 +else
1703 +  newlib_mb=
1704 +fi
1705 +
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; } ;;
1713 + esac
1714 +else
1715 +  newlib_multithread=yes
1716 +fi
1717 +
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; } ;;
1728 + esac
1729 +else
1730 +  newlib_elix_level=0
1731 +fi
1732 +
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; } ;;
1740 + esac
1741 +else
1742 +  newlib_io_float=yes
1743 +fi
1744 +
1745 +
1746 +
1747 +test -z "${with_target_subdir}" && with_target_subdir=.
1748 +
1749 +if test "${srcdir}" = "."; then
1750 +  if test "${with_target_subdir}" != "."; then
1751 +    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
1752 +  else
1753 +    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
1754 +  fi
1755 +else
1756 +  newlib_basedir="${srcdir}/../../.."
1757 +fi
1758 +
1759 +
1760 +
1761 +# Do some error checking and defaulting for the host and target type.
1762 +# The inputs are:
1763 +#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
1764 +#
1765 +# The rules are:
1766 +# 1. You are not allowed to specify --host, --target, and nonopt at the
1767 +#    same time.
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.
1773 +
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; } ;;
1779 +esac
1780 +
1781 +
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; }
1785 +fi
1786 +
1787 +echo $ac_n "checking host system type""... $ac_c" 1>&6
1788 +echo "configure:921: checking host system type" >&5
1789 +
1790 +host_alias=$host
1791 +case "$host_alias" in
1792 +NONE)
1793 +  case $nonopt in
1794 +  NONE)
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; }
1797 +    fi ;;
1798 +  *) host_alias=$nonopt ;;
1799 +  esac ;;
1800 +esac
1801 +
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
1807 +
1808 +echo $ac_n "checking target system type""... $ac_c" 1>&6
1809 +echo "configure:942: checking target system type" >&5
1810 +
1811 +target_alias=$target
1812 +case "$target_alias" in
1813 +NONE)
1814 +  case $nonopt in
1815 +  NONE) target_alias=$host_alias ;;
1816 +  *) target_alias=$nonopt ;;
1817 +  esac ;;
1818 +esac
1819 +
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
1825 +
1826 +echo $ac_n "checking build system type""... $ac_c" 1>&6
1827 +echo "configure:960: checking build system type" >&5
1828 +
1829 +build_alias=$build
1830 +case "$build_alias" in
1831 +NONE)
1832 +  case $nonopt in
1833 +  NONE) build_alias=$host_alias ;;
1834 +  *) build_alias=$nonopt ;;
1835 +  esac ;;
1836 +esac
1837 +
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
1843 +
1844 +test "$host_alias" != "$target_alias" &&
1845 +  test "$program_prefix$program_suffix$program_transform_name" = \
1846 +    NONENONEs,x,x, &&
1847 +  program_prefix=${target_alias}-
1848 +
1849 +
1850 +
1851 +PACKAGE=newlib
1852 +
1853 +VERSION=1.11.0
1854 +
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; }
1857 +fi
1858 +cat >> confdefs.h <<EOF
1859 +#define PACKAGE "$PACKAGE"
1860 +EOF
1861 +
1862 +cat >> confdefs.h <<EOF
1863 +#define VERSION "$VERSION"
1864 +EOF
1865 +
1866 +
1867 +
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
1875 +   ACLOCAL=aclocal
1876 +   echo "$ac_t""found" 1>&6
1877 +else
1878 +   ACLOCAL="$missing_dir/missing aclocal"
1879 +   echo "$ac_t""missing" 1>&6
1880 +fi
1881 +
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
1888 +   AUTOCONF=autoconf
1889 +   echo "$ac_t""found" 1>&6
1890 +else
1891 +   AUTOCONF="$missing_dir/missing autoconf"
1892 +   echo "$ac_t""missing" 1>&6
1893 +fi
1894 +
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
1901 +   AUTOMAKE=automake
1902 +   echo "$ac_t""found" 1>&6
1903 +else
1904 +   AUTOMAKE="$missing_dir/missing automake"
1905 +   echo "$ac_t""missing" 1>&6
1906 +fi
1907 +
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
1916 +else
1917 +   AUTOHEADER="$missing_dir/missing autoheader"
1918 +   echo "$ac_t""missing" 1>&6
1919 +fi
1920 +
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
1927 +   MAKEINFO=makeinfo
1928 +   echo "$ac_t""found" 1>&6
1929 +else
1930 +   MAKEINFO="$missing_dir/missing makeinfo"
1931 +   echo "$ac_t""missing" 1>&6
1932 +fi
1933 +
1934 +
1935 +
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
1940 +# itself.
1941 +
1942 +
1943 +
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
1950 +else
1951 +  if test -n "$CC"; then
1952 +  ac_cv_prog_CC="$CC" # Let the user override the test.
1953 +else
1954 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1955 +  ac_dummy="$PATH"
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"
1960 +      break
1961 +    fi
1962 +  done
1963 +  IFS="$ac_save_ifs"
1964 +fi
1965 +fi
1966 +CC="$ac_cv_prog_CC"
1967 +if test -n "$CC"; then
1968 +  echo "$ac_t""$CC" 1>&6
1969 +else
1970 +  echo "$ac_t""no" 1>&6
1971 +fi
1972 +
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
1980 +else
1981 +  if test -n "$CC"; then
1982 +  ac_cv_prog_CC="$CC" # Let the user override the test.
1983 +else
1984 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1985 +  ac_prog_rejected=no
1986 +  ac_dummy="$PATH"
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
1992 +       continue
1993 +      fi
1994 +      ac_cv_prog_CC="cc"
1995 +      break
1996 +    fi
1997 +  done
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
2002 +  shift
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.
2007 +    shift
2008 +    set dummy "$ac_dir/$ac_word" "$@"
2009 +    shift
2010 +    ac_cv_prog_CC="$@"
2011 +  fi
2012 +fi
2013 +fi
2014 +fi
2015 +CC="$ac_cv_prog_CC"
2016 +if test -n "$CC"; then
2017 +  echo "$ac_t""$CC" 1>&6
2018 +else
2019 +  echo "$ac_t""no" 1>&6
2020 +fi
2021 +
2022 +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 +fi
2024 +
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
2029 +else
2030 +  cat > conftest.c <<EOF
2031 +#ifdef __GNUC__
2032 +  yes;
2033 +#endif
2034 +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
2037 +else
2038 +  ac_cv_prog_gcc=no
2039 +fi
2040 +fi
2041 +
2042 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2043 +
2044 +if test $ac_cv_prog_gcc = yes; then
2045 +  GCC=yes
2046 +  ac_test_CFLAGS="${CFLAGS+set}"
2047 +  ac_save_CFLAGS="$CFLAGS"
2048 +  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
2053 +else
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
2057 +else
2058 +  ac_cv_prog_cc_g=no
2059 +fi
2060 +rm -f conftest*
2061 +
2062 +fi
2063 +
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
2068 +    CFLAGS="-g -O2"
2069 +  else
2070 +    CFLAGS="-O2"
2071 +  fi
2072 +else
2073 +  GCC=
2074 +  test "${CFLAGS+set}" = set || CFLAGS="-g"
2075 +fi
2076 +
2077 +
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
2084 +else
2085 +  if test -n "$AS"; then
2086 +  ac_cv_prog_AS="$AS" # Let the user override the test.
2087 +else
2088 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2089 +  ac_dummy="$PATH"
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"
2094 +      break
2095 +    fi
2096 +  done
2097 +  IFS="$ac_save_ifs"
2098 +  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
2099 +fi
2100 +fi
2101 +AS="$ac_cv_prog_AS"
2102 +if test -n "$AS"; then
2103 +  echo "$ac_t""$AS" 1>&6
2104 +else
2105 +  echo "$ac_t""no" 1>&6
2106 +fi
2107 +
2108 +
2109 +
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
2116 +else
2117 +  if test -n "$AR"; then
2118 +  ac_cv_prog_AR="$AR" # Let the user override the test.
2119 +else
2120 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2121 +  ac_dummy="$PATH"
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"
2126 +      break
2127 +    fi
2128 +  done
2129 +  IFS="$ac_save_ifs"
2130 +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2131 +fi
2132 +fi
2133 +AR="$ac_cv_prog_AR"
2134 +if test -n "$AR"; then
2135 +  echo "$ac_t""$AR" 1>&6
2136 +else
2137 +  echo "$ac_t""no" 1>&6
2138 +fi
2139 +
2140 +
2141 +
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
2148 +else
2149 +  if test -n "$RANLIB"; then
2150 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2151 +else
2152 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2153 +  ac_dummy="$PATH"
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"
2158 +      break
2159 +    fi
2160 +  done
2161 +  IFS="$ac_save_ifs"
2162 +fi
2163 +fi
2164 +RANLIB="$ac_cv_prog_RANLIB"
2165 +if test -n "$RANLIB"; then
2166 +  echo "$ac_t""$RANLIB" 1>&6
2167 +else
2168 +  echo "$ac_t""no" 1>&6
2169 +fi
2170 +
2171 +
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
2180 +else
2181 +  if test -n "$RANLIB"; then
2182 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2183 +else
2184 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2185 +  ac_dummy="$PATH"
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"
2190 +      break
2191 +    fi
2192 +  done
2193 +  IFS="$ac_save_ifs"
2194 +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2195 +fi
2196 +fi
2197 +RANLIB="$ac_cv_prog_RANLIB"
2198 +if test -n "$RANLIB"; then
2199 +  echo "$ac_t""$RANLIB" 1>&6
2200 +else
2201 +  echo "$ac_t""no" 1>&6
2202 +fi
2203 +
2204 +else
2205 +  RANLIB=":"
2206 +fi
2207 +fi
2208 +
2209 +
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
2216 +# AIX /bin/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
2226 +else
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/*) ;;
2232 +    *)
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
2235 +      # by default.
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.
2241 +           :
2242 +         else
2243 +           ac_cv_path_install="$ac_dir/$ac_prog -c"
2244 +           break 2
2245 +         fi
2246 +       fi
2247 +      done
2248 +      ;;
2249 +    esac
2250 +  done
2251 +  IFS="$ac_save_IFS"
2252 +
2253 +fi
2254 +  if test "${ac_cv_path_install+set}" = set; then
2255 +    INSTALL="$ac_cv_path_install"
2256 +  else
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"
2262 +  fi
2263 +fi
2264 +echo "$ac_t""$INSTALL" 1>&6
2265 +
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}'
2269 +
2270 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2271 +
2272 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2273 +
2274 +
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
2281 +else
2282 +  USE_MAINTAINER_MODE=no
2283 +fi
2284 +
2285 +  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2286 +  
2287 +
2288 +if test $USE_MAINTAINER_MODE = yes; then
2289 +  MAINTAINER_MODE_TRUE=
2290 +  MAINTAINER_MODE_FALSE='#'
2291 +else
2292 +  MAINTAINER_MODE_TRUE='#'
2293 +  MAINTAINER_MODE_FALSE=
2294 +fi
2295 +  MAINT=$MAINTAINER_MODE_TRUE
2296 +  
2297 +
2298 +
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
2305 +# the result.
2306 +if false; then
2307 +  
2308 +
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
2313 +else
2314 +  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2315 +  ac_cv_exeext=.exe
2316 +else
2317 +  rm -f conftest*
2318 +  echo 'int main () { return 0; }' > conftest.$ac_ext
2319 +  ac_cv_exeext=
2320 +  if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2321 +    for file in conftest.*; do
2322 +      case $file in
2323 +      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2324 +      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2325 +      esac
2326 +    done
2327 +  else
2328 +    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2329 +  fi
2330 +  rm -f conftest*
2331 +  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2332 +fi
2333 +fi
2334 +
2335 +EXEEXT=""
2336 +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2337 +echo "$ac_t""${ac_cv_exeext}" 1>&6
2338 +ac_exeext=$EXEEXT
2339 +
2340 +fi
2341 +
2342 +. ${newlib_basedir}/configure.host
2343 +
2344 +newlib_cflags="${newlib_cflags} -fno-builtin"
2345 +
2346 +NEWLIB_CFLAGS=${newlib_cflags}
2347 +
2348 +
2349 +LDFLAGS=${ldflags}
2350 +
2351 +
2352 +
2353 +
2354 +if test x${newlib_elix_level} = x0; then
2355 +  ELIX_LEVEL_0_TRUE=
2356 +  ELIX_LEVEL_0_FALSE='#'
2357 +else
2358 +  ELIX_LEVEL_0_TRUE='#'
2359 +  ELIX_LEVEL_0_FALSE=
2360 +fi
2361 +
2362 +
2363 +if test x${newlib_elix_level} = x1; then
2364 +  ELIX_LEVEL_1_TRUE=
2365 +  ELIX_LEVEL_1_FALSE='#'
2366 +else
2367 +  ELIX_LEVEL_1_TRUE='#'
2368 +  ELIX_LEVEL_1_FALSE=
2369 +fi
2370 +
2371 +
2372 +if test x${newlib_elix_level} = x2; then
2373 +  ELIX_LEVEL_2_TRUE=
2374 +  ELIX_LEVEL_2_FALSE='#'
2375 +else
2376 +  ELIX_LEVEL_2_TRUE='#'
2377 +  ELIX_LEVEL_2_FALSE=
2378 +fi
2379 +
2380 +
2381 +if test x${newlib_elix_level} = x3; then
2382 +  ELIX_LEVEL_3_TRUE=
2383 +  ELIX_LEVEL_3_FALSE='#'
2384 +else
2385 +  ELIX_LEVEL_3_TRUE='#'
2386 +  ELIX_LEVEL_3_FALSE=
2387 +fi
2388 +
2389 +
2390 +if test x${newlib_elix_level} = x4; then
2391 +  ELIX_LEVEL_4_TRUE=
2392 +  ELIX_LEVEL_4_FALSE='#'
2393 +else
2394 +  ELIX_LEVEL_4_TRUE='#'
2395 +  ELIX_LEVEL_4_FALSE=
2396 +fi
2397 +
2398 +
2399 +
2400 +if test x${use_libtool} = xyes; then
2401 +  USE_LIBTOOL_TRUE=
2402 +  USE_LIBTOOL_FALSE='#'
2403 +else
2404 +  USE_LIBTOOL_TRUE='#'
2405 +  USE_LIBTOOL_FALSE=
2406 +fi
2407 +
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.
2410 +OBJEXT=${oext}
2411 +
2412 +
2413 +
2414 +
2415 +
2416 +
2417 +
2418 +
2419 +
2420 +
2421 +trap '' 1 2 15
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.
2427 +#
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.
2436 +#
2437 +EOF
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.
2443 +(set) 2>&1 |
2444 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2445 +  *ac_space=\ *)
2446 +    # `set' does not quote correctly, so add quotes (double-quote substitution
2447 +    # turns \\\\ into \\, and sed turns \\ into \).
2448 +    sed -n \
2449 +      -e "s/'/'\\\\''/g" \
2450 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2451 +    ;;
2452 +  *)
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'
2455 +    ;;
2456 +  esac >> confcache
2457 +if cmp -s $cache_file confcache; then
2458 +  :
2459 +else
2460 +  if test -w $cache_file; then
2461 +    echo "updating cache $cache_file"
2462 +    cat confcache > $cache_file
2463 +  else
2464 +    echo "not updating unwritable cache $cache_file"
2465 +  fi
2466 +fi
2467 +rm -f confcache
2468 +
2469 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2470 +
2471 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
2472 +# Let make expand exec_prefix.
2473 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2474 +
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'
2480 +fi
2481 +
2482 +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2483 +
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
2490 +s%\[%\\&%g
2491 +s%\]%\\&%g
2492 +s%\$%$$%g
2493 +EOF
2494 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2495 +rm -f conftest.defs
2496 +
2497 +
2498 +# Without the "./", some shells look in PATH for config.status.
2499 +: ${CONFIG_STATUS=./config.status}
2500 +
2501 +echo creating $CONFIG_STATUS
2502 +rm -f $CONFIG_STATUS
2503 +cat > $CONFIG_STATUS <<EOF
2504 +#! /bin/sh
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`:
2509 +#
2510 +# $0 $ac_configure_args
2511 +#
2512 +# Compiler output produced by configure, useful for debugging
2513 +# configure, is in ./config.log if it exists.
2514 +
2515 +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2516 +for ac_option
2517 +do
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"
2524 +    exit 0 ;;
2525 +  -help | --help | --hel | --he | --h)
2526 +    echo "\$ac_cs_usage"; exit 0 ;;
2527 +  *) echo "\$ac_cs_usage"; exit 1 ;;
2528 +  esac
2529 +done
2530 +
2531 +ac_given_srcdir=$srcdir
2532 +ac_given_INSTALL="$INSTALL"
2533 +
2534 +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2535 +EOF
2536 +cat >> $CONFIG_STATUS <<EOF
2537 +
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
2541 +$ac_vpsub
2542 +$extrasub
2543 +s%@SHELL@%$SHELL%g
2544 +s%@CFLAGS@%$CFLAGS%g
2545 +s%@CPPFLAGS@%$CPPFLAGS%g
2546 +s%@CXXFLAGS@%$CXXFLAGS%g
2547 +s%@FFLAGS@%$FFLAGS%g
2548 +s%@DEFS@%$DEFS%g
2549 +s%@LDFLAGS@%$LDFLAGS%g
2550 +s%@LIBS@%$LIBS%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
2567 +s%@host@%$host%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
2577 +s%@build@%$build%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
2593 +s%@CC@%$CC%g
2594 +s%@AS@%$AS%g
2595 +s%@AR@%$AR%g
2596 +s%@RANLIB@%$RANLIB%g
2597 +s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2598 +s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2599 +s%@MAINT@%$MAINT%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
2615 +s%@oext@%$oext%g
2616 +s%@aext@%$aext%g
2617 +s%@libm_machine_dir@%$libm_machine_dir%g
2618 +s%@machine_dir@%$machine_dir%g
2619 +s%@sys_dir@%$sys_dir%g
2620 +
2621 +CEOF
2622 +EOF
2623 +
2624 +cat >> $CONFIG_STATUS <<\EOF
2625 +
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.
2632 +ac_more_lines=:
2633 +ac_sed_cmds=""
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
2637 +  else
2638 +    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2639 +  fi
2640 +  if test ! -s conftest.s$ac_file; then
2641 +    ac_more_lines=false
2642 +    rm -f conftest.s$ac_file
2643 +  else
2644 +    if test -z "$ac_sed_cmds"; then
2645 +      ac_sed_cmds="sed -f conftest.s$ac_file"
2646 +    else
2647 +      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2648 +    fi
2649 +    ac_file=`expr $ac_file + 1`
2650 +    ac_beg=$ac_end
2651 +    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2652 +  fi
2653 +done
2654 +if test -z "$ac_sed_cmds"; then
2655 +  ac_sed_cmds=cat
2656 +fi
2657 +EOF
2658 +
2659 +cat >> $CONFIG_STATUS <<EOF
2660 +
2661 +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2662 +EOF
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" ;;
2670 +  esac
2671 +
2672 +  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2673 +
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'`
2682 +  else
2683 +    ac_dir_suffix= ac_dots=
2684 +  fi
2685 +
2686 +  case "$ac_given_srcdir" in
2687 +  .)  srcdir=.
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" ;;
2694 +  esac
2695 +
2696 +  case "$ac_given_INSTALL" in
2697 +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2698 +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2699 +  esac
2700 +
2701 +  echo creating "$ac_file"
2702 +  rm -f "$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" ;;
2707 +  *) ac_comsub= ;;
2708 +  esac
2709 +
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
2717 +fi; done
2718 +rm -f conftest.s*
2719 +
2720 +EOF
2721 +cat >> $CONFIG_STATUS <<EOF
2722 +
2723 +EOF
2724 +cat >> $CONFIG_STATUS <<\EOF
2725 +
2726 +exit 0
2727 +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
2731 +
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
2735 @@ -0,0 +1,12 @@
2736 +dnl This is the newlib/libc/sys/mipsunknown configure.in file.
2737 +dnl Process this file with autoconf to produce a configure script.
2738 +
2739 +AC_PREREQ(2.5)
2740 +AC_INIT(syscalls.c)
2741 +
2742 +dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 
2743 +AC_CONFIG_AUX_DIR(../../../..)
2744 +
2745 +NEWLIB_CONFIGURE(../../..)
2746 +
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
2751 @@ -0,0 +1,7 @@
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 */
2754 +
2755 +extern void puts(const char *s);   
2756 +void _start() {
2757 +    puts("Your build is broken... you shouldn't be using the crt0.c in newlib");
2758 +}
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
2762 @@ -0,0 +1,24 @@
2763 +#ifndef _SYS_DIRENT_H
2764 +#define _SYS_DIRENT_H
2765 +
2766 +#include <sys/types.h>
2767 +
2768 +struct dirent {
2769 +       long    d_ino;
2770 +       char    d_name[1024];
2771 +};
2772 +
2773 +typedef struct {
2774 +       int     dd_fd;
2775 +    int dd_pos;
2776 +    struct dirent ent;
2777 +} DIR;
2778 +
2779 +# define __dirfd(dp)   ((dp)->dd_fd)
2780 +
2781 +DIR *opendir (const char *);
2782 +struct dirent *readdir (DIR *);
2783 +void rewinddir (DIR *);
2784 +int closedir (DIR *);
2785 +
2786 +#endif
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
2790 @@ -0,0 +1,20 @@
2791 +#ifndef _SYS_UTIME_H
2792 +#define _SYS_UTIME_H
2793 +
2794 +#ifdef __cplusplus
2795 +extern "C" {
2796 +#endif
2797 +
2798 +struct utimbuf 
2799 +{
2800 +  time_t actime;
2801 +  time_t modtime; 
2802 +};
2803 +
2804 +extern int utime(const char *file, const struct utimbuf *buf);
2805 +
2806 +#ifdef __cplusplus
2807 +};
2808 +#endif
2809 +
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
2814 @@ -0,0 +1,49 @@
2815 +#include <sys/types.h>
2816 +#include <sys/stat.h>
2817 +#include <utime.h>
2818 +#include <errno.h>
2819 +#undef errno
2820 +
2821 +/* These are just connectors for the reent versions */
2822 +
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); }
2825 +
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); }
2828 +
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); }
2831 +
2832 +extern int _chdir_r(struct _reent *ptr, const char *path);
2833 +int chdir(const char *path) { return _chdir_r(_REENT,path); }
2834 +
2835 +extern int _pipe_r(struct _reent *ptr, int *filedes);
2836 +int pipe(int *filedes) { return _pipe_r(_REENT,filedes); }
2837 +
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); }
2840 +
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); }
2843 +
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); }
2846 +
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); }
2849 +
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); }
2852 +
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); }
2855 +
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); }
2858 +
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); }
2861 +
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); }