a7cd255546
Fix weird linking issues with newlib: - Get rid of dlmalloc - Also get rid of klmalloc Adjust crt0 operation: - Kill the dead loop at the end - Pass main to pre_main as a function pointer to move `main` reference into crt0.o - Fix a build script derp with trying to remove build and local directories (gets rid of some warnings)
1392 lines
50 KiB
Diff
1392 lines
50 KiB
Diff
diff -rupN _source/newlib-1.19.0/config.sub newlib-1.19.0/config.sub
|
|
--- _source/newlib-1.19.0/config.sub 2010-06-01 12:53:40.000000000 -0500
|
|
+++ newlib-1.19.0/config.sub 2011-04-24 20:37:12.000000000 -0500
|
|
@@ -1298,6 +1298,7 @@ case $os in
|
|
| -sym* | -kopensolaris* \
|
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
|
| -aos* | -aros* \
|
|
+ | -toaru* \
|
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
|
diff -rupN _source/newlib-1.19.0/newlib/configure.host newlib-1.19.0/newlib/configure.host
|
|
--- _source/newlib-1.19.0/newlib/configure.host 2010-12-02 13:30:46.000000000 -0600
|
|
+++ newlib-1.19.0/newlib/configure.host 2011-04-24 20:38:10.000000000 -0500
|
|
@@ -418,6 +418,9 @@ case "${host}" in
|
|
h8500-*-elf*)
|
|
sys_dir=h8500hms
|
|
;;
|
|
+ i[34567]86-*-toaru*)
|
|
+ sys_dir=toaru
|
|
+ ;;
|
|
i[34567]86-*-rdos*)
|
|
sys_dir=rdos
|
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/include/sys/stat.h newlib-1.19.0/newlib/libc/include/sys/stat.h
|
|
--- _source/newlib-1.19.0/newlib/libc/include/sys/stat.h 2010-08-06 13:26:21.000000000 -0500
|
|
+++ newlib-1.19.0/newlib/libc/include/sys/stat.h 2012-04-23 16:00:11.000000000 -0500
|
|
@@ -150,8 +150,8 @@ int _EXFUN(mkfifo,( const char *__path,
|
|
int _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
|
|
mode_t _EXFUN(umask,( mode_t __mask ));
|
|
|
|
-#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
|
|
int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
|
|
+#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
|
|
int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
|
|
#endif
|
|
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/include/sys/utime.h newlib-1.19.0/newlib/libc/include/sys/utime.h
|
|
--- _source/newlib-1.19.0/newlib/libc/include/sys/utime.h 2000-02-17 13:39:46.000000000 -0600
|
|
+++ newlib-1.19.0/newlib/libc/include/sys/utime.h 2012-04-23 16:01:17.000000000 -0500
|
|
@@ -15,6 +15,8 @@ struct utimbuf
|
|
time_t modtime;
|
|
};
|
|
|
|
+int utime(const char *filename, const struct utimbuf *times);
|
|
+
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/stdio/fseek.c newlib-1.19.0/newlib/libc/stdio/fseek.c
|
|
--- _source/newlib-1.19.0/newlib/libc/stdio/fseek.c 2009-12-17 13:43:43.000000000 -0600
|
|
+++ newlib-1.19.0/newlib/libc/stdio/fseek.c 2011-04-29 19:33:10.000000000 -0500
|
|
@@ -160,210 +160,6 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whenc
|
|
return EOF;
|
|
}
|
|
|
|
- /*
|
|
- * Change any SEEK_CUR to SEEK_SET, and check `whence' argument.
|
|
- * After this, whence is either SEEK_SET or SEEK_END.
|
|
- */
|
|
-
|
|
- switch (whence)
|
|
- {
|
|
- case SEEK_CUR:
|
|
- /*
|
|
- * In order to seek relative to the current stream offset,
|
|
- * we have to first find the current stream offset a la
|
|
- * ftell (see ftell for details).
|
|
- */
|
|
- _fflush_r (ptr, fp); /* may adjust seek offset on append stream */
|
|
- if (fp->_flags & __SOFF)
|
|
- curoff = fp->_offset;
|
|
- else
|
|
- {
|
|
- curoff = seekfn (ptr, fp->_cookie, (_fpos_t) 0, SEEK_CUR);
|
|
- if (curoff == -1L)
|
|
- {
|
|
- _funlockfile (fp);
|
|
- __sfp_lock_release ();
|
|
- return EOF;
|
|
- }
|
|
- }
|
|
- if (fp->_flags & __SRD)
|
|
- {
|
|
- curoff -= fp->_r;
|
|
- if (HASUB (fp))
|
|
- curoff -= fp->_ur;
|
|
- }
|
|
- else if (fp->_flags & __SWR && fp->_p != NULL)
|
|
- curoff += fp->_p - fp->_bf._base;
|
|
-
|
|
- offset += curoff;
|
|
- whence = SEEK_SET;
|
|
- havepos = 1;
|
|
- break;
|
|
-
|
|
- case SEEK_SET:
|
|
- case SEEK_END:
|
|
- havepos = 0;
|
|
- break;
|
|
-
|
|
- default:
|
|
- ptr->_errno = EINVAL;
|
|
- _funlockfile (fp);
|
|
- __sfp_lock_release ();
|
|
- return (EOF);
|
|
- }
|
|
-
|
|
- /*
|
|
- * Can only optimise if:
|
|
- * reading (and not reading-and-writing);
|
|
- * not unbuffered; and
|
|
- * this is a `regular' Unix file (and hence seekfn==__sseek).
|
|
- * We must check __NBF first, because it is possible to have __NBF
|
|
- * and __SOPT both set.
|
|
- */
|
|
-
|
|
- if (fp->_bf._base == NULL)
|
|
- __smakebuf_r (ptr, fp);
|
|
- if (fp->_flags & (__SWR | __SRW | __SNBF | __SNPT))
|
|
- goto dumb;
|
|
- if ((fp->_flags & __SOPT) == 0)
|
|
- {
|
|
- if (seekfn != __sseek
|
|
- || fp->_file < 0
|
|
-#ifdef __USE_INTERNAL_STAT64
|
|
- || _fstat64_r (ptr, fp->_file, &st)
|
|
-#else
|
|
- || _fstat_r (ptr, fp->_file, &st)
|
|
-#endif
|
|
- || (st.st_mode & S_IFMT) != S_IFREG)
|
|
- {
|
|
- fp->_flags |= __SNPT;
|
|
- goto dumb;
|
|
- }
|
|
-#ifdef HAVE_BLKSIZE
|
|
- fp->_blksize = st.st_blksize;
|
|
-#else
|
|
- fp->_blksize = 1024;
|
|
-#endif
|
|
- fp->_flags |= __SOPT;
|
|
- }
|
|
-
|
|
- /*
|
|
- * We are reading; we can try to optimise.
|
|
- * Figure out where we are going and where we are now.
|
|
- */
|
|
-
|
|
- if (whence == SEEK_SET)
|
|
- target = offset;
|
|
- else
|
|
- {
|
|
-#ifdef __USE_INTERNAL_STAT64
|
|
- if (_fstat64_r (ptr, fp->_file, &st))
|
|
-#else
|
|
- if (_fstat_r (ptr, fp->_file, &st))
|
|
-#endif
|
|
- goto dumb;
|
|
- target = st.st_size + offset;
|
|
- }
|
|
- if ((long)target != target)
|
|
- {
|
|
- ptr->_errno = EOVERFLOW;
|
|
- _funlockfile (fp);
|
|
- __sfp_lock_release ();
|
|
- return EOF;
|
|
- }
|
|
-
|
|
- if (!havepos)
|
|
- {
|
|
- if (fp->_flags & __SOFF)
|
|
- curoff = fp->_offset;
|
|
- else
|
|
- {
|
|
- curoff = seekfn (ptr, fp->_cookie, 0L, SEEK_CUR);
|
|
- if (curoff == POS_ERR)
|
|
- goto dumb;
|
|
- }
|
|
- curoff -= fp->_r;
|
|
- if (HASUB (fp))
|
|
- curoff -= fp->_ur;
|
|
- }
|
|
-
|
|
- /*
|
|
- * Compute the number of bytes in the input buffer (pretending
|
|
- * that any ungetc() input has been discarded). Adjust current
|
|
- * offset backwards by this count so that it represents the
|
|
- * file offset for the first byte in the current input buffer.
|
|
- */
|
|
-
|
|
- if (HASUB (fp))
|
|
- {
|
|
- curoff += fp->_r; /* kill off ungetc */
|
|
- n = fp->_up - fp->_bf._base;
|
|
- curoff -= n;
|
|
- n += fp->_ur;
|
|
- }
|
|
- else
|
|
- {
|
|
- n = fp->_p - fp->_bf._base;
|
|
- curoff -= n;
|
|
- n += fp->_r;
|
|
- }
|
|
-
|
|
- /*
|
|
- * If the target offset is within the current buffer,
|
|
- * simply adjust the pointers, clear EOF, undo ungetc(),
|
|
- * and return.
|
|
- */
|
|
-
|
|
- if (target >= curoff && target < curoff + n)
|
|
- {
|
|
- register int o = target - curoff;
|
|
-
|
|
- fp->_p = fp->_bf._base + o;
|
|
- fp->_r = n - o;
|
|
- if (HASUB (fp))
|
|
- FREEUB (ptr, fp);
|
|
- fp->_flags &= ~__SEOF;
|
|
- memset (&fp->_mbstate, 0, sizeof (_mbstate_t));
|
|
- _funlockfile (fp);
|
|
- __sfp_lock_release ();
|
|
- return 0;
|
|
- }
|
|
-
|
|
- /*
|
|
- * The place we want to get to is not within the current buffer,
|
|
- * but we can still be kind to the kernel copyout mechanism.
|
|
- * By aligning the file offset to a block boundary, we can let
|
|
- * the kernel use the VM hardware to map pages instead of
|
|
- * copying bytes laboriously. Using a block boundary also
|
|
- * ensures that we only read one block, rather than two.
|
|
- */
|
|
-
|
|
- curoff = target & ~(fp->_blksize - 1);
|
|
- if (seekfn (ptr, fp->_cookie, curoff, SEEK_SET) == POS_ERR)
|
|
- goto dumb;
|
|
- fp->_r = 0;
|
|
- fp->_p = fp->_bf._base;
|
|
- if (HASUB (fp))
|
|
- FREEUB (ptr, fp);
|
|
- fp->_flags &= ~__SEOF;
|
|
- n = target - curoff;
|
|
- if (n)
|
|
- {
|
|
- if (__srefill_r (ptr, fp) || fp->_r < n)
|
|
- goto dumb;
|
|
- fp->_p += n;
|
|
- fp->_r -= n;
|
|
- }
|
|
- memset (&fp->_mbstate, 0, sizeof (_mbstate_t));
|
|
- _funlockfile (fp);
|
|
- __sfp_lock_release ();
|
|
- return 0;
|
|
-
|
|
- /*
|
|
- * We get here if we cannot optimise the seek ... just
|
|
- * do it. Allow the seek function to change fp->_bf._base.
|
|
- */
|
|
-
|
|
dumb:
|
|
if (_fflush_r (ptr, fp)
|
|
|| seekfn (ptr, fp->_cookie, offset, whence) == POS_ERR)
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/stdlib/mallocr.c newlib-1.19.0/newlib/libc/stdlib/mallocr.c
|
|
--- _source/newlib-1.19.0/newlib/libc/stdlib/mallocr.c 2010-05-31 14:15:41.000000000 -0500
|
|
+++ newlib-1.19.0/newlib/libc/stdlib/mallocr.c 2011-04-30 21:28:46.000000000 -0500
|
|
@@ -609,8 +609,11 @@ do {
|
|
operating system immediately after a free().
|
|
*/
|
|
|
|
+#define HAVE_MMAP 0
|
|
+#define HAVE_MREMAP 0
|
|
+
|
|
#ifndef HAVE_MMAP
|
|
-#define HAVE_MMAP 1
|
|
+#define HAVE_MMAP 0
|
|
#endif
|
|
|
|
/*
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/sys/configure newlib-1.19.0/newlib/libc/sys/configure
|
|
--- _source/newlib-1.19.0/newlib/libc/sys/configure 2010-12-16 15:59:03.000000000 -0600
|
|
+++ newlib-1.19.0/newlib/libc/sys/configure 2011-04-24 20:39:58.000000000 -0500
|
|
@@ -1,11 +1,11 @@
|
|
#! /bin/sh
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
-# Generated by GNU Autoconf 2.65 for newlib 1.19.0.
|
|
+# Generated by GNU Autoconf 2.67 for newlib 1.19.0.
|
|
#
|
|
#
|
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
|
-# Inc.
|
|
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
|
+# Foundation, Inc.
|
|
#
|
|
#
|
|
# This configure script is free software; the Free Software Foundation
|
|
@@ -324,7 +324,7 @@ $as_echo X"$as_dir" |
|
|
test -d "$as_dir" && break
|
|
done
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
- } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
|
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
|
|
|
|
} # as_fn_mkdir_p
|
|
@@ -364,19 +364,19 @@ else
|
|
fi # as_fn_arith
|
|
|
|
|
|
-# as_fn_error ERROR [LINENO LOG_FD]
|
|
-# ---------------------------------
|
|
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
+# ----------------------------------------
|
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
-# script with status $?, using 1 if that was 0.
|
|
+# script with STATUS, using 1 if that was 0.
|
|
as_fn_error ()
|
|
{
|
|
- as_status=$?; test $as_status -eq 0 && as_status=1
|
|
- if test "$3"; then
|
|
- as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
|
+ as_status=$1; test $as_status -eq 0 && as_status=1
|
|
+ if test "$4"; then
|
|
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
fi
|
|
- $as_echo "$as_me: error: $1" >&2
|
|
+ $as_echo "$as_me: error: $2" >&2
|
|
as_fn_exit $as_status
|
|
} # as_fn_error
|
|
|
|
@@ -540,7 +540,7 @@ test -n "$DJDIR" || exec 7<&0 </dev/null
|
|
exec 6>&1
|
|
|
|
# Name of the host.
|
|
-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
|
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
|
# so uname gets run too.
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
|
@@ -798,6 +798,7 @@ sysvi386
|
|
sysvnecv70
|
|
tic80
|
|
w65
|
|
+toaru
|
|
z8ksim'
|
|
|
|
# Initialize some variables set by options.
|
|
@@ -860,8 +861,9 @@ do
|
|
fi
|
|
|
|
case $ac_option in
|
|
- *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
- *) ac_optarg=yes ;;
|
|
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
+ *=) ac_optarg= ;;
|
|
+ *) ac_optarg=yes ;;
|
|
esac
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
@@ -906,7 +908,7 @@ do
|
|
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
- as_fn_error "invalid feature name: $ac_useropt"
|
|
+ as_fn_error $? "invalid feature name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
@@ -932,7 +934,7 @@ do
|
|
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
- as_fn_error "invalid feature name: $ac_useropt"
|
|
+ as_fn_error $? "invalid feature name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
@@ -1136,7 +1138,7 @@ do
|
|
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
- as_fn_error "invalid package name: $ac_useropt"
|
|
+ as_fn_error $? "invalid package name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
@@ -1152,7 +1154,7 @@ do
|
|
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
# Reject names that are not valid shell variable names.
|
|
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
- as_fn_error "invalid package name: $ac_useropt"
|
|
+ as_fn_error $? "invalid package name: $ac_useropt"
|
|
ac_useropt_orig=$ac_useropt
|
|
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
case $ac_user_opts in
|
|
@@ -1182,8 +1184,8 @@ do
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
x_libraries=$ac_optarg ;;
|
|
|
|
- -*) as_fn_error "unrecognized option: \`$ac_option'
|
|
-Try \`$0 --help' for more information."
|
|
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
|
+Try \`$0 --help' for more information"
|
|
;;
|
|
|
|
*=*)
|
|
@@ -1191,7 +1193,7 @@ Try \`$0 --help' for more information."
|
|
# Reject names that are not valid shell variable names.
|
|
case $ac_envvar in #(
|
|
'' | [0-9]* | *[!_$as_cr_alnum]* )
|
|
- as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
|
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
|
esac
|
|
eval $ac_envvar=\$ac_optarg
|
|
export $ac_envvar ;;
|
|
@@ -1209,13 +1211,13 @@ done
|
|
|
|
if test -n "$ac_prev"; then
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
- as_fn_error "missing argument to $ac_option"
|
|
+ as_fn_error $? "missing argument to $ac_option"
|
|
fi
|
|
|
|
if test -n "$ac_unrecognized_opts"; then
|
|
case $enable_option_checking in
|
|
no) ;;
|
|
- fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
|
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
|
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
|
esac
|
|
fi
|
|
@@ -1238,7 +1240,7 @@ do
|
|
[\\/$]* | ?:[\\/]* ) continue;;
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
esac
|
|
- as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
|
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
|
done
|
|
|
|
# There might be people who depend on the old broken behavior: `$host'
|
|
@@ -1252,8 +1254,8 @@ target=$target_alias
|
|
if test "x$host_alias" != x; then
|
|
if test "x$build_alias" = x; then
|
|
cross_compiling=maybe
|
|
- $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
|
- If a cross compiler is detected then cross compile mode will be used." >&2
|
|
+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
|
+ If a cross compiler is detected then cross compile mode will be used" >&2
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
|
cross_compiling=yes
|
|
fi
|
|
@@ -1268,9 +1270,9 @@ test "$silent" = yes && exec 6>/dev/null
|
|
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
ac_ls_di=`ls -di .` &&
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
- as_fn_error "working directory cannot be determined"
|
|
+ as_fn_error $? "working directory cannot be determined"
|
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
- as_fn_error "pwd does not report name of working directory"
|
|
+ as_fn_error $? "pwd does not report name of working directory"
|
|
|
|
|
|
# Find the source files, if location was not specified.
|
|
@@ -1309,11 +1311,11 @@ else
|
|
fi
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
- as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
|
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
|
fi
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
ac_abs_confdir=`(
|
|
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
|
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
|
pwd)`
|
|
# When building in place, set srcdir=.
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
@@ -1353,7 +1355,7 @@ Configuration:
|
|
--help=short display options specific to this package
|
|
--help=recursive display the short help of all the included packages
|
|
-V, --version display version information and exit
|
|
- -q, --quiet, --silent do not print \`checking...' messages
|
|
+ -q, --quiet, --silent do not print \`checking ...' messages
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
-n, --no-create do not create output files
|
|
@@ -1521,9 +1523,9 @@ test -n "$ac_init_help" && exit $ac_stat
|
|
if $ac_init_version; then
|
|
cat <<\_ACEOF
|
|
newlib configure 1.19.0
|
|
-generated by GNU Autoconf 2.65
|
|
+generated by GNU Autoconf 2.67
|
|
|
|
-Copyright (C) 2009 Free Software Foundation, Inc.
|
|
+Copyright (C) 2010 Free Software Foundation, Inc.
|
|
This configure script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it.
|
|
_ACEOF
|
|
@@ -1627,7 +1629,7 @@ ac_fn_c_check_header_compile ()
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
+if eval "test \"\${$3+set}\"" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
@@ -1670,7 +1672,7 @@ $as_echo "$ac_try_echo"; } >&5
|
|
mv -f conftest.er1 conftest.err
|
|
fi
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
- test $ac_status = 0; } >/dev/null && {
|
|
+ test $ac_status = 0; } > conftest.i && {
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
test ! -s conftest.err
|
|
}; then :
|
|
@@ -1736,7 +1738,7 @@ ac_fn_c_check_func ()
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
$as_echo_n "checking for $2... " >&6; }
|
|
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
+if eval "test \"\${$3+set}\"" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
@@ -1799,7 +1801,7 @@ This file contains any messages produced
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
|
|
It was created by newlib $as_me 1.19.0, which was
|
|
-generated by GNU Autoconf 2.65. Invocation command line was
|
|
+generated by GNU Autoconf 2.67. Invocation command line was
|
|
|
|
$ $0 $@
|
|
|
|
@@ -1909,11 +1911,9 @@ trap 'exit_status=$?
|
|
{
|
|
echo
|
|
|
|
- cat <<\_ASBOX
|
|
-## ---------------- ##
|
|
+ $as_echo "## ---------------- ##
|
|
## Cache variables. ##
|
|
-## ---------------- ##
|
|
-_ASBOX
|
|
+## ---------------- ##"
|
|
echo
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
(
|
|
@@ -1947,11 +1947,9 @@ $as_echo "$as_me: WARNING: cache variabl
|
|
)
|
|
echo
|
|
|
|
- cat <<\_ASBOX
|
|
-## ----------------- ##
|
|
+ $as_echo "## ----------------- ##
|
|
## Output variables. ##
|
|
-## ----------------- ##
|
|
-_ASBOX
|
|
+## ----------------- ##"
|
|
echo
|
|
for ac_var in $ac_subst_vars
|
|
do
|
|
@@ -1964,11 +1962,9 @@ _ASBOX
|
|
echo
|
|
|
|
if test -n "$ac_subst_files"; then
|
|
- cat <<\_ASBOX
|
|
-## ------------------- ##
|
|
+ $as_echo "## ------------------- ##
|
|
## File substitutions. ##
|
|
-## ------------------- ##
|
|
-_ASBOX
|
|
+## ------------------- ##"
|
|
echo
|
|
for ac_var in $ac_subst_files
|
|
do
|
|
@@ -1982,11 +1978,9 @@ _ASBOX
|
|
fi
|
|
|
|
if test -s confdefs.h; then
|
|
- cat <<\_ASBOX
|
|
-## ----------- ##
|
|
+ $as_echo "## ----------- ##
|
|
## confdefs.h. ##
|
|
-## ----------- ##
|
|
-_ASBOX
|
|
+## ----------- ##"
|
|
echo
|
|
cat confdefs.h
|
|
echo
|
|
@@ -2041,7 +2035,12 @@ _ACEOF
|
|
ac_site_file1=NONE
|
|
ac_site_file2=NONE
|
|
if test -n "$CONFIG_SITE"; then
|
|
- ac_site_file1=$CONFIG_SITE
|
|
+ # We do not want a PATH search for config.site.
|
|
+ case $CONFIG_SITE in #((
|
|
+ -*) ac_site_file1=./$CONFIG_SITE;;
|
|
+ */*) ac_site_file1=$CONFIG_SITE;;
|
|
+ *) ac_site_file1=./$CONFIG_SITE;;
|
|
+ esac
|
|
elif test "x$prefix" != xNONE; then
|
|
ac_site_file1=$prefix/share/config.site
|
|
ac_site_file2=$prefix/etc/config.site
|
|
@@ -2056,7 +2055,11 @@ do
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
|
- . "$ac_site_file"
|
|
+ . "$ac_site_file" \
|
|
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
+as_fn_error $? "failed to load site script $ac_site_file
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
fi
|
|
done
|
|
|
|
@@ -2132,7 +2135,7 @@ if $ac_cache_corrupted; then
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
|
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
- as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
fi
|
|
## -------------------- ##
|
|
## Main body of script. ##
|
|
@@ -2149,16 +2152,22 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in ../../.. "$srcdir"/../../..; do
|
|
- for ac_t in install-sh install.sh shtool; do
|
|
- if test -f "$ac_dir/$ac_t"; then
|
|
- ac_aux_dir=$ac_dir
|
|
- ac_install_sh="$ac_aux_dir/$ac_t -c"
|
|
- break 2
|
|
- fi
|
|
- done
|
|
+ if test -f "$ac_dir/install-sh"; then
|
|
+ ac_aux_dir=$ac_dir
|
|
+ ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
+ break
|
|
+ elif test -f "$ac_dir/install.sh"; then
|
|
+ ac_aux_dir=$ac_dir
|
|
+ ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
+ break
|
|
+ elif test -f "$ac_dir/shtool"; then
|
|
+ ac_aux_dir=$ac_dir
|
|
+ ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
+ break
|
|
+ fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
- as_fn_error "cannot find install-sh, install.sh, or shtool in ../../.. \"$srcdir\"/../../.." "$LINENO" 5
|
|
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../.. \"$srcdir\"/../../.." "$LINENO" 5
|
|
fi
|
|
|
|
# These three variables are undocumented and unsupported,
|
|
@@ -2174,7 +2183,7 @@ ac_configure="$SHELL $ac_aux_dir/configu
|
|
|
|
# Make sure we can run config.sub.
|
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
|
- as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
|
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
|
$as_echo_n "checking build system type... " >&6; }
|
|
@@ -2185,16 +2194,16 @@ else
|
|
test "x$ac_build_alias" = x &&
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
test "x$ac_build_alias" = x &&
|
|
- as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
|
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
|
- as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
|
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
|
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
|
$as_echo "$ac_cv_build" >&6; }
|
|
case $ac_cv_build in
|
|
*-*-*) ;;
|
|
-*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
|
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
|
|
esac
|
|
build=$ac_cv_build
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
@@ -2219,7 +2228,7 @@ else
|
|
ac_cv_host=$ac_cv_build
|
|
else
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
|
- as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
|
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
|
fi
|
|
|
|
fi
|
|
@@ -2227,7 +2236,7 @@ fi
|
|
$as_echo "$ac_cv_host" >&6; }
|
|
case $ac_cv_host in
|
|
*-*-*) ;;
|
|
-*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
|
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
|
|
esac
|
|
host=$ac_cv_host
|
|
ac_save_IFS=$IFS; IFS='-'
|
|
@@ -2349,11 +2358,11 @@ am_lf='
|
|
'
|
|
case `pwd` in
|
|
*[\\\"\#\$\&\'\`$am_lf]*)
|
|
- as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
|
|
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
|
|
esac
|
|
case $srcdir in
|
|
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
|
- as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
|
|
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
|
|
esac
|
|
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
|
@@ -2375,7 +2384,7 @@ if (
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
# broken ls alias from the environment. This has actually
|
|
# happened. Such a system could not be considered "sane".
|
|
- as_fn_error "ls -t appears to fail. Make sure there is not a broken
|
|
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
|
alias in your environment" "$LINENO" 5
|
|
fi
|
|
|
|
@@ -2385,7 +2394,7 @@ then
|
|
# Ok.
|
|
:
|
|
else
|
|
- as_fn_error "newly created file is older than distributed files!
|
|
+ as_fn_error $? "newly created file is older than distributed files!
|
|
Check your system clock" "$LINENO" 5
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
@@ -2623,7 +2632,7 @@ done
|
|
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
|
set x ${MAKE-make}
|
|
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
|
|
$as_echo_n "(cached) " >&6
|
|
else
|
|
cat >conftest.make <<\_ACEOF
|
|
@@ -2631,7 +2640,7 @@ SHELL = /bin/sh
|
|
all:
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
_ACEOF
|
|
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
*@@@%%%=?*=@@@%%%*)
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
@@ -2727,7 +2736,7 @@ if test "${enable_multilib+set}" = set;
|
|
enableval=$enable_multilib; case "${enableval}" in
|
|
yes) multilib=yes ;;
|
|
no) multilib=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
multilib=yes
|
|
@@ -2738,7 +2747,7 @@ if test "${enable_target_optspace+set}"
|
|
enableval=$enable_target_optspace; case "${enableval}" in
|
|
yes) target_optspace=yes ;;
|
|
no) target_optspace=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
target_optspace=
|
|
@@ -2749,7 +2758,7 @@ if test "${enable_malloc_debugging+set}"
|
|
enableval=$enable_malloc_debugging; case "${enableval}" in
|
|
yes) malloc_debugging=yes ;;
|
|
no) malloc_debugging=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
malloc_debugging=
|
|
@@ -2760,7 +2769,7 @@ if test "${enable_newlib_multithread+set
|
|
enableval=$enable_newlib_multithread; case "${enableval}" in
|
|
yes) newlib_multithread=yes ;;
|
|
no) newlib_multithread=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
newlib_multithread=yes
|
|
@@ -2772,7 +2781,7 @@ if test "${enable_newlib_iconv+set}" = s
|
|
case "${enableval}" in
|
|
yes) newlib_iconv=yes ;;
|
|
no) newlib_iconv=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
|
|
esac
|
|
fi
|
|
else
|
|
@@ -2787,7 +2796,7 @@ if test "${enable_newlib_elix_level+set}
|
|
2) newlib_elix_level=2 ;;
|
|
3) newlib_elix_level=3 ;;
|
|
4) newlib_elix_level=4 ;;
|
|
- *) as_fn_error "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
newlib_elix_level=0
|
|
@@ -2798,7 +2807,7 @@ if test "${enable_newlib_io_float+set}"
|
|
enableval=$enable_newlib_io_float; case "${enableval}" in
|
|
yes) newlib_io_float=yes ;;
|
|
no) newlib_io_float=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
newlib_io_float=yes
|
|
@@ -2809,7 +2818,7 @@ if test "${enable_newlib_supplied_syscal
|
|
enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
|
|
yes) newlib_may_supply_syscalls=yes ;;
|
|
no) newlib_may_supply_syscalls=no ;;
|
|
- *) as_fn_error "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
|
|
+ *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
|
|
esac
|
|
else
|
|
newlib_may_supply_syscalls=yes
|
|
@@ -2846,7 +2855,7 @@ if test "`cd $srcdir && pwd`" != "`pwd`"
|
|
am__isrc=' -I$(srcdir)'
|
|
# test to see if srcdir already configured
|
|
if test -f $srcdir/config.status; then
|
|
- as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
|
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
|
fi
|
|
fi
|
|
|
|
@@ -3126,7 +3135,7 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
- test -z "$CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
|
|
+ test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
|
|
@@ -3798,7 +3807,7 @@ esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_SED"; then
|
|
- as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
|
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_SED=$SED
|
|
@@ -4521,8 +4530,8 @@ fi
|
|
|
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-as_fn_error "no acceptable C compiler found in \$PATH
|
|
-See \`config.log' for more details." "$LINENO" 5; }
|
|
+as_fn_error $? "no acceptable C compiler found in \$PATH
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
|
|
# Provide some information about the compiler.
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
@@ -4636,9 +4645,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-{ as_fn_set_status 77
|
|
-as_fn_error "C compiler cannot create executables
|
|
-See \`config.log' for more details." "$LINENO" 5; }; }
|
|
+as_fn_error 77 "C compiler cannot create executables
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
$as_echo "yes" >&6; }
|
|
@@ -4680,8 +4688,8 @@ done
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-as_fn_error "cannot compute suffix of executables: cannot compile and link
|
|
-See \`config.log' for more details." "$LINENO" 5; }
|
|
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
fi
|
|
rm -f conftest conftest$ac_cv_exeext
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
|
@@ -4738,9 +4746,9 @@ $as_echo "$ac_try_echo"; } >&5
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-as_fn_error "cannot run C compiled programs.
|
|
+as_fn_error $? "cannot run C compiled programs.
|
|
If you meant to cross compile, use \`--host'.
|
|
-See \`config.log' for more details." "$LINENO" 5; }
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
fi
|
|
fi
|
|
fi
|
|
@@ -4791,8 +4799,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-as_fn_error "cannot compute suffix of object files: cannot compile
|
|
-See \`config.log' for more details." "$LINENO" 5; }
|
|
+as_fn_error $? "cannot compute suffix of object files: cannot compile
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
fi
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
fi
|
|
@@ -5190,7 +5198,7 @@ esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_GREP"; then
|
|
- as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_GREP=$GREP
|
|
@@ -5256,7 +5264,7 @@ esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_EGREP"; then
|
|
- as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_EGREP=$EGREP
|
|
@@ -5323,7 +5331,7 @@ esac
|
|
done
|
|
IFS=$as_save_IFS
|
|
if test -z "$ac_cv_path_FGREP"; then
|
|
- as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
fi
|
|
else
|
|
ac_cv_path_FGREP=$FGREP
|
|
@@ -5439,7 +5447,7 @@ else
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
-test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
|
|
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
|
|
@@ -7703,7 +7711,7 @@ else
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
@@ -7719,11 +7727,11 @@ else
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.i conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then :
|
|
break
|
|
fi
|
|
@@ -7762,7 +7770,7 @@ else
|
|
# Broken: fails on valid input.
|
|
continue
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
|
# can be detected and how.
|
|
@@ -7778,18 +7786,18 @@ else
|
|
ac_preproc_ok=:
|
|
break
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.err conftest.i conftest.$ac_ext
|
|
|
|
done
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
+rm -f conftest.i conftest.err conftest.$ac_ext
|
|
if $ac_preproc_ok; then :
|
|
|
|
else
|
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
-as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
|
-See \`config.log' for more details." "$LINENO" 5; }
|
|
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
|
+See \`config.log' for more details" "$LINENO" 5 ; }
|
|
fi
|
|
|
|
ac_ext=c
|
|
@@ -7918,8 +7926,7 @@ do :
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
"
|
|
-eval as_val=\$$as_ac_Header
|
|
- if test "x$as_val" = x""yes; then :
|
|
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
_ACEOF
|
|
@@ -11425,7 +11432,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11428 "configure"
|
|
+#line 11435 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11531,7 +11538,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11534 "configure"
|
|
+#line 11541 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11820,6 +11827,8 @@ subdirs="$subdirs a29khif"
|
|
;;
|
|
w65) subdirs="$subdirs w65"
|
|
;;
|
|
+ toaru) subdirs="$subdirs toaru"
|
|
+ ;;
|
|
z8ksim) subdirs="$subdirs z8ksim"
|
|
;;
|
|
esac;
|
|
@@ -11961,6 +11970,7 @@ DEFS=`sed -n "$ac_script" confdefs.h`
|
|
|
|
ac_libobjs=
|
|
ac_ltlibobjs=
|
|
+U=
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
# 1. Remove the extension, and $U if already installed.
|
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
@@ -11976,7 +11986,7 @@ LTLIBOBJS=$ac_ltlibobjs
|
|
|
|
|
|
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
|
|
- as_fn_error "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
|
|
+ as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -n "$EXEEXT"; then
|
|
@@ -11988,47 +11998,47 @@ else
|
|
fi
|
|
|
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
|
- as_fn_error "conditional \"AMDEP\" was never defined.
|
|
+ as_fn_error $? "conditional \"AMDEP\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
|
- as_fn_error "conditional \"am__fastdepCC\" was never defined.
|
|
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
|
- as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
|
|
+ as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
|
|
- as_fn_error "conditional \"ELIX_LEVEL_0\" was never defined.
|
|
+ as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
|
|
- as_fn_error "conditional \"ELIX_LEVEL_1\" was never defined.
|
|
+ as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
|
|
- as_fn_error "conditional \"ELIX_LEVEL_2\" was never defined.
|
|
+ as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
|
|
- as_fn_error "conditional \"ELIX_LEVEL_3\" was never defined.
|
|
+ as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
|
|
- as_fn_error "conditional \"ELIX_LEVEL_4\" was never defined.
|
|
+ as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
|
|
- as_fn_error "conditional \"USE_LIBTOOL\" was never defined.
|
|
+ as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
|
- as_fn_error "conditional \"am__fastdepCC\" was never defined.
|
|
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then
|
|
- as_fn_error "conditional \"HAVE_SYS_DIR\" was never defined.
|
|
+ as_fn_error $? "conditional \"HAVE_SYS_DIR\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
fi
|
|
|
|
@@ -12178,19 +12188,19 @@ export LANGUAGE
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
|
|
|
-# as_fn_error ERROR [LINENO LOG_FD]
|
|
-# ---------------------------------
|
|
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
|
|
+# ----------------------------------------
|
|
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
-# script with status $?, using 1 if that was 0.
|
|
+# script with STATUS, using 1 if that was 0.
|
|
as_fn_error ()
|
|
{
|
|
- as_status=$?; test $as_status -eq 0 && as_status=1
|
|
- if test "$3"; then
|
|
- as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
|
+ as_status=$1; test $as_status -eq 0 && as_status=1
|
|
+ if test "$4"; then
|
|
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
|
fi
|
|
- $as_echo "$as_me: error: $1" >&2
|
|
+ $as_echo "$as_me: error: $2" >&2
|
|
as_fn_exit $as_status
|
|
} # as_fn_error
|
|
|
|
@@ -12386,7 +12396,7 @@ $as_echo X"$as_dir" |
|
|
test -d "$as_dir" && break
|
|
done
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
- } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
|
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
|
|
|
|
|
} # as_fn_mkdir_p
|
|
@@ -12440,7 +12450,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
|
|
# values after options handling.
|
|
ac_log="
|
|
This file was extended by newlib $as_me 1.19.0, which was
|
|
-generated by GNU Autoconf 2.65. Invocation command line was
|
|
+generated by GNU Autoconf 2.67. Invocation command line was
|
|
|
|
CONFIG_FILES = $CONFIG_FILES
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
@@ -12497,10 +12507,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
|
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
ac_cs_version="\\
|
|
newlib config.status 1.19.0
|
|
-configured by $0, generated by GNU Autoconf 2.65,
|
|
+configured by $0, generated by GNU Autoconf 2.67,
|
|
with options \\"\$ac_cs_config\\"
|
|
|
|
-Copyright (C) 2009 Free Software Foundation, Inc.
|
|
+Copyright (C) 2010 Free Software Foundation, Inc.
|
|
This config.status script is free software; the Free Software Foundation
|
|
gives unlimited permission to copy, distribute and modify it."
|
|
|
|
@@ -12518,11 +12528,16 @@ ac_need_defaults=:
|
|
while test $# != 0
|
|
do
|
|
case $1 in
|
|
- --*=*)
|
|
+ --*=?*)
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
ac_shift=:
|
|
;;
|
|
+ --*=)
|
|
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
+ ac_optarg=
|
|
+ ac_shift=:
|
|
+ ;;
|
|
*)
|
|
ac_option=$1
|
|
ac_optarg=$2
|
|
@@ -12544,6 +12559,7 @@ do
|
|
$ac_shift
|
|
case $ac_optarg in
|
|
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
+ '') as_fn_error $? "missing file argument" ;;
|
|
esac
|
|
as_fn_append CONFIG_FILES " '$ac_optarg'"
|
|
ac_need_defaults=false;;
|
|
@@ -12554,7 +12570,7 @@ do
|
|
ac_cs_silent=: ;;
|
|
|
|
# This is an error.
|
|
- -*) as_fn_error "unrecognized option: \`$1'
|
|
+ -*) as_fn_error $? "unrecognized option: \`$1'
|
|
Try \`$0 --help' for more information." ;;
|
|
|
|
*) as_fn_append ac_config_targets " $1"
|
|
@@ -12876,7 +12892,7 @@ do
|
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
|
|
- *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
|
|
esac
|
|
done
|
|
|
|
@@ -12913,7 +12929,7 @@ $debug ||
|
|
{
|
|
tmp=./conf$$-$RANDOM
|
|
(umask 077 && mkdir "$tmp")
|
|
-} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
|
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
|
|
|
# Set up the scripts for CONFIG_FILES section.
|
|
# No need to generate them if there are no CONFIG_FILES.
|
|
@@ -12930,7 +12946,7 @@ if test "x$ac_cr" = x; then
|
|
fi
|
|
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
|
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
|
- ac_cs_awk_cr='\r'
|
|
+ ac_cs_awk_cr='\\r'
|
|
else
|
|
ac_cs_awk_cr=$ac_cr
|
|
fi
|
|
@@ -12944,18 +12960,18 @@ _ACEOF
|
|
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
|
echo "_ACEOF"
|
|
} >conf$$subs.sh ||
|
|
- as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
|
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
|
ac_delim='%!_!# '
|
|
for ac_last_try in false false false false false :; do
|
|
. ./conf$$subs.sh ||
|
|
- as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
|
|
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
|
if test $ac_delim_n = $ac_delim_num; then
|
|
break
|
|
elif $ac_last_try; then
|
|
- as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
else
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
fi
|
|
@@ -13044,20 +13060,28 @@ if sed "s/$ac_cr//" < /dev/null > /dev/n
|
|
else
|
|
cat
|
|
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
|
- || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
|
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
|
_ACEOF
|
|
|
|
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
|
-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
|
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
# (actually we leave an empty line to preserve line numbers).
|
|
if test "x$srcdir" = x.; then
|
|
- ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
-s/:*\$(srcdir):*/:/
|
|
-s/:*\${srcdir}:*/:/
|
|
-s/:*@srcdir@:*/:/
|
|
-s/^\([^=]*=[ ]*\):*/\1/
|
|
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
|
+h
|
|
+s///
|
|
+s/^/:/
|
|
+s/[ ]*$/:/
|
|
+s/:\$(srcdir):/:/g
|
|
+s/:\${srcdir}:/:/g
|
|
+s/:@srcdir@:/:/g
|
|
+s/^:*//
|
|
s/:*$//
|
|
+x
|
|
+s/\(=[ ]*\).*/\1/
|
|
+G
|
|
+s/\n//
|
|
s/^[^=]*=[ ]*$//
|
|
}'
|
|
fi
|
|
@@ -13075,7 +13099,7 @@ do
|
|
esac
|
|
case $ac_mode$ac_tag in
|
|
:[FHL]*:*);;
|
|
- :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
|
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
|
|
:[FH]-) ac_tag=-:-;;
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
esac
|
|
@@ -13103,7 +13127,7 @@ do
|
|
[\\/$]*) false;;
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
esac ||
|
|
- as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
|
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
|
|
esac
|
|
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
as_fn_append ac_file_inputs " '$ac_f'"
|
|
@@ -13130,7 +13154,7 @@ $as_echo "$as_me: creating $ac_file" >&6
|
|
|
|
case $ac_tag in
|
|
*:-:* | *:-) cat >"$tmp/stdin" \
|
|
- || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
|
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -13267,22 +13291,22 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
|
$ac_datarootdir_hack
|
|
"
|
|
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
|
- || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
-which seems to be undefined. Please make sure it is defined." >&5
|
|
+which seems to be undefined. Please make sure it is defined" >&5
|
|
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
-which seems to be undefined. Please make sure it is defined." >&2;}
|
|
+which seems to be undefined. Please make sure it is defined" >&2;}
|
|
|
|
rm -f "$tmp/stdin"
|
|
case $ac_file in
|
|
-) cat "$tmp/out" && rm -f "$tmp/out";;
|
|
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
|
esac \
|
|
- || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
|
;;
|
|
|
|
|
|
@@ -14043,7 +14067,7 @@ _ACEOF
|
|
ac_clean_files=$ac_clean_files_save
|
|
|
|
test $ac_write_fail = 0 ||
|
|
- as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
|
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
|
|
|
|
|
# configure is writing to config.log, and then calls config.status.
|
|
@@ -14064,7 +14088,7 @@ if test "$no_create" != yes; then
|
|
exec 5>>config.log
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
# would make configure fail if this is the last instruction.
|
|
- $ac_cs_success || as_fn_exit $?
|
|
+ $ac_cs_success || as_fn_exit 1
|
|
fi
|
|
|
|
#
|
|
@@ -14205,7 +14229,7 @@ $as_echo "$as_me: running $SHELL $ac_sub
|
|
# The eval makes quoting arguments work.
|
|
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
|
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
|
- as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
|
+ as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
|
fi
|
|
|
|
cd "$ac_popdir"
|
|
diff -rupN _source/newlib-1.19.0/newlib/libc/sys/configure.in newlib-1.19.0/newlib/libc/sys/configure.in
|
|
--- _source/newlib-1.19.0/newlib/libc/sys/configure.in 2010-02-24 14:59:55.000000000 -0600
|
|
+++ newlib-1.19.0/newlib/libc/sys/configure.in 2011-04-24 20:37:33.000000000 -0500
|
|
@@ -45,6 +45,7 @@ if test -n "${sys_dir}"; then
|
|
sysvnecv70) AC_CONFIG_SUBDIRS(sysvnecv70) ;;
|
|
tic80) AC_CONFIG_SUBDIRS(tic80) ;;
|
|
w65) AC_CONFIG_SUBDIRS(w65) ;;
|
|
+ toaru) AC_CONFIG_SUBDIRS(toaru) ;;
|
|
z8ksim) AC_CONFIG_SUBDIRS(z8ksim) ;;
|
|
esac;
|
|
fi
|