From 5ec79373027e9ef3b6749512599752480e55aec5 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 26 Aug 2009 13:38:39 +0000 Subject: [PATCH] update patchsets for devkitPPC r18 alpha --- .../{gcc-4.4.0.patch => gcc-4.4.1.patch} | 25 +- ...ewlib-1.17.0.patch => newlib-1.17.1.patch} | 5932 ++++++++++++++--- dkppc/rules/base_rules | 7 +- dkppc/scripts/build-crtls.sh | 2 + dkppc/scripts/build-gcc.sh | 37 +- 5 files changed, 5209 insertions(+), 794 deletions(-) rename dkppc/patches/{gcc-4.4.0.patch => gcc-4.4.1.patch} (96%) rename dkppc/patches/{newlib-1.17.0.patch => newlib-1.17.1.patch} (53%) diff --git a/dkppc/patches/gcc-4.4.0.patch b/dkppc/patches/gcc-4.4.1.patch similarity index 96% rename from dkppc/patches/gcc-4.4.0.patch rename to dkppc/patches/gcc-4.4.1.patch index 2a522d4..fe7abac 100644 --- a/dkppc/patches/gcc-4.4.0.patch +++ b/dkppc/patches/gcc-4.4.1.patch @@ -1,17 +1,3 @@ -diff -Nbaur gcc-4.4.0/config.sub gcc-4.4.0-ppc/config.sub ---- gcc-4.4.0/config.sub 2008-12-18 03:27:27.000000000 +0000 -+++ gcc-4.4.0-ppc/config.sub 2009-04-26 22:32:15.000000000 +0100 -@@ -230,6 +230,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-devkitpro -+ os=-eabi -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. diff -Nbaur gcc-4.4.0/gcc/config/rs6000/rs6000.h gcc-4.4.0-ppc/gcc/config/rs6000/rs6000.h --- gcc-4.4.0/gcc/config/rs6000/rs6000.h 2009-04-10 00:23:07.000000000 +0100 +++ gcc-4.4.0-ppc/gcc/config/rs6000/rs6000.h 2009-04-27 01:51:15.000000000 +0100 @@ -220,7 +206,16 @@ diff -Nbaur gcc-4.4.0/gcc/config/rs6000/sysv4.opt gcc-4.4.0-ppc/gcc/config/rs600 Link with libyk.a, libc.a and crt0.o diff -Nbaur gcc-4.4.0/gcc/gcc.c gcc-4.4.0-ppc/gcc/gcc.c --- gcc-4.4.0/gcc/gcc.c 2009-03-17 21:25:59.000000000 +0000 -+++ gcc-4.4.0-ppc/gcc/gcc.c 2009-04-26 22:58:37.000000000 +0100 ++++ gcc-4.4.0-ppc/gcc/gcc.c 2009-06-17 02:15:34.000000000 +0100 +@@ -698,7 +698,7 @@ + -lgcc and -lc order specially, yet not require them to override all + of LINK_COMMAND_SPEC. */ + #ifndef LINK_GCC_C_SEQUENCE_SPEC +-#define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" ++#define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G -lm" + #endif + + #ifndef LINK_SSP_SPEC @@ -3455,8 +3455,6 @@ gcc_libexec_prefix = make_relative_prefix (argv[0], standard_bindir_prefix, diff --git a/dkppc/patches/newlib-1.17.0.patch b/dkppc/patches/newlib-1.17.1.patch similarity index 53% rename from dkppc/patches/newlib-1.17.0.patch rename to dkppc/patches/newlib-1.17.1.patch index 462ab43..c52c986 100644 --- a/dkppc/patches/newlib-1.17.0.patch +++ b/dkppc/patches/newlib-1.17.1.patch @@ -1,7 +1,7 @@ -diff -Nbaur newlib-1.17.0/config.sub newlib-1.17.0-ppc/config.sub ---- newlib-1.17.0/config.sub 2008-12-18 03:26:46.000000000 +0000 -+++ newlib-1.17.0-ppc/config.sub 2009-06-13 22:30:20.000000000 +0100 -@@ -230,6 +230,10 @@ +diff -Nbaur newlib-1.17.1/config.sub newlib-1.17.1-ppc/config.sub +--- newlib-1.17.1/config.sub 2009-06-03 00:00:59.000000000 +0100 ++++ newlib-1.17.1-ppc/config.sub 2009-06-16 23:32:27.000000000 +0100 +@@ -231,6 +231,10 @@ basic_machine=m68k-atari os=-mint ;; @@ -12,49 +12,4937 @@ diff -Nbaur newlib-1.17.0/config.sub newlib-1.17.0-ppc/config.sub esac # Decode aliases for certain CPU-COMPANY combinations. -diff -Nbaur newlib-1.17.0/libgloss/configure newlib-1.17.0-ppc/libgloss/configure ---- newlib-1.17.0/libgloss/configure 2008-12-17 23:08:09.000000000 +0000 -+++ newlib-1.17.0-ppc/libgloss/configure 2008-12-30 09:35:56.000000000 +0000 -@@ -702,6 +702,7 @@ - CCASFLAGS' - ac_subdirs_all='doc - libnosys -+libsysbase - i386 - m32r - m68hc11 -@@ -1815,6 +1816,7 @@ - - +diff -Nbaur newlib-1.17.1/libgloss/configure newlib-1.17.1-ppc/libgloss/configure +--- newlib-1.17.1/libgloss/configure 2009-05-13 22:38:25.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/configure 2009-06-17 01:14:56.000000000 +0100 +@@ -1,25 +1,54 @@ + #! /bin/sh + # Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.59 for libgloss LIBGLOSS_VERSION. ++# Generated by GNU Autoconf 2.61 for libgloss LIBGLOSS_VERSION. + # +-# Copyright (C) 2003 Free Software Foundation, Inc. ++# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + # This configure script is free software; the Free Software Foundation + # gives unlimited permission to copy, distribute and modify it. + ## --------------------- ## + ## M4sh Initialization. ## + ## --------------------- ## +-# Be Bourne compatible ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh + if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then +- set -o posix ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac + - if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh + fi +-DUALCASE=1; export DUALCASE # for MKS sh + + # Support unset when possible. + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then +@@ -29,8 +58,43 @@ fi -@@ -2428,6 +2430,10 @@ - subdirs="$subdirs libnosys" ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" + -+subdirs="$subdirs libsysbase" ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS + ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ + # Work around bugs in pre-3.0 UWIN ksh. +-$as_unset ENV MAIL MAILPATH ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done + PS1='$ ' + PS2='> ' + PS4='+ ' +@@ -44,18 +108,19 @@ + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else +- $as_unset $as_var ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi + done + + # Required to use basename. +-if expr a : '\(a\)' >/dev/null 2>&1; then ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr + else + as_expr=false + fi + +-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename + else + as_basename=false +@@ -63,157 +128,388 @@ + + + # Name of the executable. +-as_me=`$as_basename "$0" || ++as_me=`$as_basename -- "$0" || + $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)$' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || + echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } +- /^X\/\(\/\/\)$/{ s//\1/; q; } +- /^X\/\(\/\).*/{ s//\1/; q; } ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` + ++# CDPATH. ++$as_unset CDPATH + +-# PATH needs CR, and LINENO needs CR and PATH. +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits + +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- echo "#! /bin/sh" >conf$$.sh +- echo "exit 0" >>conf$$.sh +- chmod +x conf$$.sh +- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +- PATH_SEPARATOR=';' +- else +- PATH_SEPARATOR=: +- fi +- rm -f conf$$.sh ++if test "x$CONFIG_SHELL" = x; then ++ if (eval ":") 2>/dev/null; then ++ as_have_required=yes ++else ++ as_have_required=no + fi + ++ if test $as_have_required = yes && (eval ": ++(as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} + +- as_lineno_1=$LINENO +- as_lineno_2=$LINENO +- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` +- test "x$as_lineno_1" != "x$as_lineno_2" && +- test "x$as_lineno_3" = "x$as_lineno_2" || { +- # Find who we are. Look in the path if we contain no path at all +- # relative or not. +- case $0 in +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +-done ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi + +- ;; +- esac +- # We did not find ourselves, most probably we were run as `sh COMMAND' +- # in which case we are not to be found in the path. +- if test "x$as_myself" = x; then +- as_myself=$0 +- fi +- if test ! -f "$as_myself"; then +- { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 +- { (exit 1); exit 1; }; } +- fi +- case $CONFIG_SHELL in +- '') ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0) || { (exit 1); exit 1; } ++ ++( ++ as_lineno_1=\$LINENO ++ as_lineno_2=\$LINENO ++ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && ++ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ++") 2> /dev/null; then ++ : ++else ++ as_candidate_shells= + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH + do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. +- for as_base in sh bash ksh sh5; do + case $as_dir in + /*) +- if ("$as_dir/$as_base" -c ' ++ for as_base in sh bash ksh sh5; do ++ as_candidate_shells="$as_candidate_shells $as_dir/$as_base" ++ done;; ++ esac ++done ++IFS=$as_save_IFS ++ ++ ++ for as_shell in $as_candidate_shells $SHELL; do ++ # Try only shells that exist, to save several forks. ++ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && ++ { ("$as_shell") 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++_ASEOF ++}; then ++ CONFIG_SHELL=$as_shell ++ as_have_required=yes ++ if { "$as_shell" 2> /dev/null <<\_ASEOF ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++: ++(as_func_return () { ++ (exit $1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = "$1" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test $exitcode = 0) || { (exit 1); exit 1; } ++ ++( + as_lineno_1=$LINENO + as_lineno_2=$LINENO +- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && +- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then +- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } +- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } +- CONFIG_SHELL=$as_dir/$as_base +- export CONFIG_SHELL +- exec "$CONFIG_SHELL" "$0" ${1+"$@"} +- fi;; +- esac ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } ++ ++_ASEOF ++}; then ++ break ++fi ++ ++fi ++ + done +-done +-;; +- esac ++ ++ if test "x$CONFIG_SHELL" != x; then ++ for as_var in BASH_ENV ENV ++ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++ done ++ export CONFIG_SHELL ++ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} ++fi ++ ++ ++ if test $as_have_required = no; then ++ echo This script requires a shell more modern than all the ++ echo shells that I found on your system. Please install a ++ echo modern shell, or manually run the script under such a ++ echo shell if you do have one. ++ { (exit 1); exit 1; } ++fi ++ ++ ++fi ++ ++fi ++ ++ ++ ++(eval "as_func_return () { ++ (exit \$1) ++} ++as_func_success () { ++ as_func_return 0 ++} ++as_func_failure () { ++ as_func_return 1 ++} ++as_func_ret_success () { ++ return 0 ++} ++as_func_ret_failure () { ++ return 1 ++} ++ ++exitcode=0 ++if as_func_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_success failed. ++fi ++ ++if as_func_failure; then ++ exitcode=1 ++ echo as_func_failure succeeded. ++fi ++ ++if as_func_ret_success; then ++ : ++else ++ exitcode=1 ++ echo as_func_ret_success failed. ++fi ++ ++if as_func_ret_failure; then ++ exitcode=1 ++ echo as_func_ret_failure succeeded. ++fi ++ ++if ( set x; as_func_ret_success y && test x = \"\$1\" ); then ++ : ++else ++ exitcode=1 ++ echo positional parameters were not saved. ++fi ++ ++test \$exitcode = 0") || { ++ echo No shell found that supports shell functions. ++ echo Please tell autoconf@gnu.org about your system, ++ echo including any error possibly output before this ++ echo message ++} ++ ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a +- # line-number line before each line; the second 'sed' does the real +- # work. The second script uses 'N' to pair each line-number line +- # with the numbered line, and appends trailing '-' during +- # substitution so that $LINENO is not a special case at line end. ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the +- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) +- sed '=' <$as_myself | ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | + sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno + N +- s,$,-, +- : loop +- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop +- s,-$,, +- s,^['$as_cr_digits']*\n,, ++ s/-\n.*// + ' >$as_me.lineno && +- chmod +x $as_me.lineno || ++ chmod +x "$as_me.lineno" || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the +- # original and so on. Autoconf is especially sensible to this). +- . ./$as_me.lineno ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" + # Exit status is that of the last command. + exit + } + + +-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in +- *c*,-n*) ECHO_N= ECHO_C=' +-' ECHO_T=' ' ;; +- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; +- *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; + esac + +-if expr a : '\(a\)' >/dev/null 2>&1; then ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr + else + as_expr=false + fi + + rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi + echo >conf$$.file + if ln -s conf$$.file conf$$ 2>/dev/null; then +- # We could just check for DJGPP; but this test a) works b) is more generic +- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). +- if test -f conf$$.exe; then +- # Don't use ln at all; we don't have any links +- as_ln_s='cp -p' +- else + as_ln_s='ln -s' +- fi ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +-rm -f conf$$ conf$$.exe conf$$.file ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null + + if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +@@ -222,7 +518,28 @@ + as_mkdir_p=false + fi + +-as_executable_p="test -f" ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x + + # Sed expression to map a string onto a valid CPP name. + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -231,39 +548,27 @@ + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +-# IFS +-# We need space, tab and new line, in precisely that order. +-as_nl=' +-' +-IFS=" $as_nl" +- +-# CDPATH. +-$as_unset CDPATH + ++exec 7<&0 &1 + + # Name of the host. + # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, + # so uname gets run too. + ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +-exec 6>&1 +- + # + # Initializations. + # + ac_default_prefix=/usr/local ++ac_clean_files= + ac_config_libobj_dir=. ++LIBOBJS= + cross_compiling=no + subdirs= + MFLAGS= + MAKEFLAGS= + SHELL=${CONFIG_SHELL-/bin/sh} + +-# Maximum number of lines to put in a shell here document. +-# This variable seems obsolete. It should probably be removed, and +-# only ac_max_sed_lines should be used. +-: ${ac_max_here_lines=38} +- + # Identity of this package. + PACKAGE_NAME='libgloss' + PACKAGE_TARNAME='libgloss' +@@ -272,38 +577,134 @@ + PACKAGE_BUGREPORT='' + + ac_unique_file="libnosys" +-ac_subdirs_all="$ac_subdirs_all doc" +-ac_subdirs_all="$ac_subdirs_all i386" +-ac_subdirs_all="$ac_subdirs_all m32r" +-ac_subdirs_all="$ac_subdirs_all m68hc11" +-ac_subdirs_all="$ac_subdirs_all m68k" +-ac_subdirs_all="$ac_subdirs_all pa" +-ac_subdirs_all="$ac_subdirs_all i960" +-ac_subdirs_all="$ac_subdirs_all sparc" +-ac_subdirs_all="$ac_subdirs_all wince" +-ac_subdirs_all="$ac_subdirs_all mips" +-ac_subdirs_all="$ac_subdirs_all rs6000" +-ac_subdirs_all="$ac_subdirs_all mn10200" +-ac_subdirs_all="$ac_subdirs_all mn10300" +-ac_subdirs_all="$ac_subdirs_all bfin" +-ac_subdirs_all="$ac_subdirs_all cris" +-ac_subdirs_all="$ac_subdirs_all crx" +-ac_subdirs_all="$ac_subdirs_all d30v" +-ac_subdirs_all="$ac_subdirs_all fr30" +-ac_subdirs_all="$ac_subdirs_all frv" +-ac_subdirs_all="$ac_subdirs_all lm32" +-ac_subdirs_all="$ac_subdirs_all mcore" +-ac_subdirs_all="$ac_subdirs_all mep" +-ac_subdirs_all="$ac_subdirs_all moxie" +-ac_subdirs_all="$ac_subdirs_all mt" +-ac_subdirs_all="$ac_subdirs_all xstormy16" +-ac_subdirs_all="$ac_subdirs_all m32c" +-ac_subdirs_all="$ac_subdirs_all arm" +-ac_subdirs_all="$ac_subdirs_all spu" +-ac_subdirs_all="$ac_subdirs_all iq2000" +-ac_subdirs_all="$ac_subdirs_all libnosys" +-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar subdirs CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS AR LD RANLIB ac_ct_RANLIB CCAS CCASFLAGS host_makefile_frag_path LIBOBJS LTLIBOBJS' ++ac_unique_file="libsysbase" ++ac_subst_vars='SHELL ++PATH_SEPARATOR ++PACKAGE_NAME ++PACKAGE_TARNAME ++PACKAGE_VERSION ++PACKAGE_STRING ++PACKAGE_BUGREPORT ++exec_prefix ++prefix ++program_transform_name ++bindir ++sbindir ++libexecdir ++datarootdir ++datadir ++sysconfdir ++sharedstatedir ++localstatedir ++includedir ++oldincludedir ++docdir ++infodir ++htmldir ++dvidir ++pdfdir ++psdir ++libdir ++localedir ++mandir ++DEFS ++ECHO_C ++ECHO_N ++ECHO_T ++LIBS ++build_alias ++host_alias ++target_alias ++INSTALL_PROGRAM ++INSTALL_SCRIPT ++INSTALL_DATA ++build ++build_cpu ++build_vendor ++build_os ++host ++host_cpu ++host_vendor ++host_os ++target ++target_cpu ++target_vendor ++target_os ++CYGPATH_W ++PACKAGE ++VERSION ++ACLOCAL ++AUTOCONF ++AUTOMAKE ++AUTOHEADER ++MAKEINFO ++install_sh ++STRIP ++INSTALL_STRIP_PROGRAM ++mkdir_p ++AWK ++SET_MAKE ++am__leading_dot ++AMTAR ++am__tar ++am__untar ++subdirs ++CC ++DEPDIR ++am__include ++am__quote ++AMDEP_TRUE ++AMDEP_FALSE ++AMDEPBACKSLASH ++CCDEPMODE ++am__fastdepCC_TRUE ++am__fastdepCC_FALSE ++AS ++AR ++LD ++RANLIB ++CCAS ++CCASFLAGS ++host_makefile_frag_path ++LIBOBJS ++LTLIBOBJS' + ac_subst_files='host_makefile_frag' ++ ac_precious_vars='build_alias ++host_alias ++target_alias ++CCAS ++CCASFLAGS' ++ac_subdirs_all='doc ++i386 ++m32r ++m68hc11 ++m68k ++pa ++i960 ++sparc ++wince ++mips ++rs6000 ++mn10200 ++mn10300 ++bfin ++cris ++crx ++d30v ++fr30 ++frv ++lm32 ++mcore ++mep ++moxie ++mt ++xstormy16 ++m32c ++arm ++spu ++iq2000 ++libnosys ++libsysbase' + + # Initialize some variables set by options. + ac_init_help= +@@ -330,34 +731,48 @@ + # and all the variables that are supposed to be based on exec_prefix + # by default will actually change. + # Use braces instead of parens because sh, perl, etc. also accept them. ++# (The list follows the same order as the GNU Coding Standards.) + bindir='${exec_prefix}/bin' + sbindir='${exec_prefix}/sbin' + libexecdir='${exec_prefix}/libexec' +-datadir='${prefix}/share' ++datarootdir='${prefix}/share' ++datadir='${datarootdir}' + sysconfdir='${prefix}/etc' + sharedstatedir='${prefix}/com' + localstatedir='${prefix}/var' +-libdir='${exec_prefix}/lib' + includedir='${prefix}/include' + oldincludedir='/usr/include' +-infodir='${prefix}/info' +-mandir='${prefix}/man' ++docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' ++infodir='${datarootdir}/info' ++htmldir='${docdir}' ++dvidir='${docdir}' ++pdfdir='${docdir}' ++psdir='${docdir}' ++libdir='${exec_prefix}/lib' ++localedir='${datarootdir}/locale' ++mandir='${datarootdir}/man' + + ac_prev= ++ac_dashdash= + for ac_option + do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then +- eval "$ac_prev=\$ac_option" ++ eval $ac_prev=\$ac_option + ac_prev= + continue + fi + +- ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ++ case $ac_option in ++ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; ++ *) ac_optarg=yes ;; ++ esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + +- case $ac_option in ++ case $ac_dashdash$ac_option in ++ --) ++ ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; +@@ -379,33 +794,45 @@ + --config-cache | -C) + cache_file=config.cache ;; + +- -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ++ -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; +- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ +- | --da=*) ++ -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + ++ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ ++ | --dataroo | --dataro | --datar) ++ ac_prev=datarootdir ;; ++ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ ++ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) ++ datarootdir=$ac_optarg ;; ++ + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. +- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } +- ac_feature=`echo $ac_feature | sed 's/-/_/g'` +- eval "enable_$ac_feature=no" ;; ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=no ;; ++ ++ -docdir | --docdir | --docdi | --doc | --do) ++ ac_prev=docdir ;; ++ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) ++ docdir=$ac_optarg ;; ++ ++ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ++ ac_prev=dvidir ;; ++ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) ++ dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. +- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } +- ac_feature=`echo $ac_feature | sed 's/-/_/g'` +- case $ac_option in +- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; +- *) ac_optarg=yes ;; +- esac +- eval "enable_$ac_feature='$ac_optarg'" ;; ++ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` ++ eval enable_$ac_feature=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ +@@ -432,6 +859,12 @@ + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + ++ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ++ ac_prev=htmldir ;; ++ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ ++ | --ht=*) ++ htmldir=$ac_optarg ;; ++ + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; +@@ -456,13 +889,16 @@ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + ++ -localedir | --localedir | --localedi | --localed | --locale) ++ ac_prev=localedir ;; ++ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) ++ localedir=$ac_optarg ;; ++ + -localstatedir | --localstatedir | --localstatedi | --localstated \ +- | --localstate | --localstat | --localsta | --localst \ +- | --locals | --local | --loca | --loc | --lo) ++ | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ +- | --localstate=* | --localstat=* | --localsta=* | --localst=* \ +- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ++ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) +@@ -527,6 +963,16 @@ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + ++ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ++ ac_prev=pdfdir ;; ++ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) ++ pdfdir=$ac_optarg ;; ++ ++ -psdir | --psdir | --psdi | --psd | --ps) ++ ac_prev=psdir ;; ++ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) ++ psdir=$ac_optarg ;; ++ + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; +@@ -579,24 +1025,20 @@ + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. +- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } +- ac_package=`echo $ac_package| sed 's/-/_/g'` +- case $ac_option in +- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; +- *) ac_optarg=yes ;; +- esac +- eval "with_$ac_package='$ac_optarg'" ;; ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=\$ac_optarg ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. +- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } +- ac_package=`echo $ac_package | sed 's/-/_/g'` +- eval "with_$ac_package=no" ;; ++ ac_package=`echo $ac_package | sed 's/[-.]/_/g'` ++ eval with_$ac_package=no ;; + + --x) + # Obsolete; use --with-x. +@@ -627,8 +1069,7 @@ + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } +- ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` +- eval "$ac_envvar='$ac_optarg'" ++ eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) +@@ -648,27 +1089,19 @@ + { (exit 1); exit 1; }; } + fi + +-# Be sure to have absolute paths. +-for ac_var in exec_prefix prefix ++# Be sure to have absolute directory names. ++for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ ++ datadir sysconfdir sharedstatedir localstatedir includedir \ ++ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ ++ libdir localedir mandir + do +- eval ac_val=$`echo $ac_var` ++ eval ac_val=\$$ac_var + case $ac_val in +- [\\/$]* | ?:[\\/]* | NONE | '' ) ;; +- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 +- { (exit 1); exit 1; }; };; +- esac +-done +- +-# Be sure to have absolute paths. +-for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ +- localstatedir libdir includedir oldincludedir infodir mandir +-do +- eval ac_val=$`echo $ac_var` +- case $ac_val in +- [\\/$]* | ?:[\\/]* ) ;; +- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 +- { (exit 1); exit 1; }; };; ++ [\\/$]* | ?:[\\/]* ) continue;; ++ NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac ++ { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ++ { (exit 1); exit 1; }; } + done + + # There might be people who depend on the old broken behavior: `$host' +@@ -695,62 +1128,76 @@ + 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 .` || ++ { echo "$as_me: error: Working directory cannot be determined" >&2 ++ { (exit 1); exit 1; }; } ++test "X$ac_ls_di" = "X$ac_pwd_ls_di" || ++ { echo "$as_me: error: pwd does not report name of working directory" >&2 ++ { (exit 1); exit 1; }; } ++ ++ + # Find the source files, if location was not specified. + if test -z "$srcdir"; then + ac_srcdir_defaulted=yes +- # Try the directory containing this script, then its parent. +- ac_confdir=`(dirname "$0") 2>/dev/null || ++ # Try the directory containing this script, then the parent directory. ++ ac_confdir=`$as_dirname -- "$0" || + $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || + echo X"$0" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` + srcdir=$ac_confdir +- if test ! -r $srcdir/$ac_unique_file; then ++ if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi + else + ac_srcdir_defaulted=no + fi +-if test ! -r $srcdir/$ac_unique_file; then +- if test "$ac_srcdir_defaulted" = yes; then +- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 +- { (exit 1); exit 1; }; } +- else ++if test ! -r "$srcdir/$ac_unique_file"; then ++ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } +- fi + fi +-(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || +- { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 ++ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ++ac_abs_confdir=`( ++ cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 + { (exit 1); exit 1; }; } +-srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +-ac_env_build_alias_set=${build_alias+set} +-ac_env_build_alias_value=$build_alias +-ac_cv_env_build_alias_set=${build_alias+set} +-ac_cv_env_build_alias_value=$build_alias +-ac_env_host_alias_set=${host_alias+set} +-ac_env_host_alias_value=$host_alias +-ac_cv_env_host_alias_set=${host_alias+set} +-ac_cv_env_host_alias_value=$host_alias +-ac_env_target_alias_set=${target_alias+set} +-ac_env_target_alias_value=$target_alias +-ac_cv_env_target_alias_set=${target_alias+set} +-ac_cv_env_target_alias_value=$target_alias +-ac_env_CCAS_set=${CCAS+set} +-ac_env_CCAS_value=$CCAS +-ac_cv_env_CCAS_set=${CCAS+set} +-ac_cv_env_CCAS_value=$CCAS +-ac_env_CCASFLAGS_set=${CCASFLAGS+set} +-ac_env_CCASFLAGS_value=$CCASFLAGS +-ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} +-ac_cv_env_CCASFLAGS_value=$CCASFLAGS ++ pwd)` ++# When building in place, set srcdir=. ++if test "$ac_abs_confdir" = "$ac_pwd"; then ++ srcdir=. ++fi ++# Remove unnecessary trailing slashes from srcdir. ++# Double slashes in file names in object file debugging info ++# mess up M-x gdb in Emacs. ++case $srcdir in ++*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; ++esac ++for ac_var in $ac_precious_vars; do ++ eval ac_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_env_${ac_var}_value=\$${ac_var} ++ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} ++ eval ac_cv_env_${ac_var}_value=\$${ac_var} ++done + + # + # Report the --help message. +@@ -779,9 +1226,6 @@ + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +-_ACEOF +- +- cat <<_ACEOF + Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] +@@ -799,15 +1243,22 @@ + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] +- --datadir=DIR read-only architecture-independent data [PREFIX/share] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] +- --infodir=DIR info documentation [PREFIX/info] +- --mandir=DIR man documentation [PREFIX/man] ++ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] ++ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] ++ --infodir=DIR info documentation [DATAROOTDIR/info] ++ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] ++ --mandir=DIR man documentation [DATAROOTDIR/man] ++ --docdir=DIR documentation root [DATAROOTDIR/doc/libgloss] ++ --htmldir=DIR html documentation [DOCDIR] ++ --dvidir=DIR dvi documentation [DOCDIR] ++ --pdfdir=DIR pdf documentation [DOCDIR] ++ --psdir=DIR ps documentation [DOCDIR] + _ACEOF + + cat <<\_ACEOF +@@ -844,120 +1295,86 @@ + it to find libraries and programs with nonstandard names/locations. + + _ACEOF ++ac_status=$? + fi + + if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. +- ac_popdir=`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue +- test -d $ac_dir || continue ++ test -d "$ac_dir" || continue + ac_builddir=. + +-if test "$ac_dir" != .; then ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` +- # A "../" for each directory in $ac_dir_suffix. +- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +-else +- ac_dir_suffix= ac_top_builddir= +-fi ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix + + case $srcdir in +- .) # No --srcdir option. We are building in place. ++ .) # We are building in place. + ac_srcdir=. +- if test -z "$ac_top_builddir"; then +- ac_top_srcdir=. +- else +- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` +- fi ;; +- [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir ;; +- *) # Relative path. +- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_builddir$srcdir ;; +-esac +- +-# Do not use `cd foo && pwd` to compute absolute paths, because +-# the directories may not exist. +-case `pwd` in +-.) ac_abs_builddir="$ac_dir";; +-*) +- case "$ac_dir" in +- .) ac_abs_builddir=`pwd`;; +- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; +- *) ac_abs_builddir=`pwd`/"$ac_dir";; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_builddir=${ac_top_builddir}.;; +-*) +- case ${ac_top_builddir}. in +- .) ac_abs_top_builddir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; +- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_srcdir=$ac_srcdir;; +-*) +- case $ac_srcdir in +- .) ac_abs_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; +- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_srcdir=$ac_top_srcdir;; +-*) +- case $ac_top_srcdir in +- .) ac_abs_top_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; +- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; +- esac;; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; + esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + +- cd $ac_dir +- # Check for guested configure; otherwise get Cygnus style configure. +- if test -f $ac_srcdir/configure.gnu; then +- echo +- $SHELL $ac_srcdir/configure.gnu --help=recursive +- elif test -f $ac_srcdir/configure; then +- echo +- $SHELL $ac_srcdir/configure --help=recursive +- elif test -f $ac_srcdir/configure.ac || +- test -f $ac_srcdir/configure.in; then +- echo +- $ac_configure --help ++ cd "$ac_dir" || { ac_status=$?; continue; } ++ # Check for guested configure. ++ if test -f "$ac_srcdir/configure.gnu"; then ++ echo && ++ $SHELL "$ac_srcdir/configure.gnu" --help=recursive ++ elif test -f "$ac_srcdir/configure"; then ++ echo && ++ $SHELL "$ac_srcdir/configure" --help=recursive + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 +- fi +- cd $ac_popdir ++ fi || ac_status=$? ++ cd "$ac_pwd" || { ac_status=$?; break; } + done + fi + +-test -n "$ac_init_help" && exit 0 ++test -n "$ac_init_help" && exit $ac_status + if $ac_init_version; then + cat <<\_ACEOF + libgloss configure LIBGLOSS_VERSION +-generated by GNU Autoconf 2.59 ++generated by GNU Autoconf 2.61 + +-Copyright (C) 2003 Free Software Foundation, Inc. ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, ++2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + This configure script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it. + _ACEOF +- exit 0 ++ exit + fi +-exec 5>config.log +-cat >&5 <<_ACEOF ++cat >config.log <<_ACEOF + This file contains any messages produced by compilers while + running configure, to aid debugging if configure makes a mistake. + + It was created by libgloss $as_me LIBGLOSS_VERSION, which was +-generated by GNU Autoconf 2.59. Invocation command line was ++generated by GNU Autoconf 2.61. Invocation command line was + + $ $0 $@ + + _ACEOF ++exec 5>>config.log + { + cat <<_ASUNAME + ## --------- ## +@@ -976,7 +1393,7 @@ + /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` + /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` + /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +-hostinfo = `(hostinfo) 2>/dev/null || echo unknown` ++/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` + /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` + /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` + /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +@@ -990,6 +1407,7 @@ + test -z "$as_dir" && as_dir=. + echo "PATH: $as_dir" + done ++IFS=$as_save_IFS + + } >&5 + +@@ -1011,7 +1429,6 @@ + ac_configure_args= + ac_configure_args0= + ac_configure_args1= +-ac_sep= + ac_must_keep_next=false + for ac_pass in 1 2 + do +@@ -1022,7 +1439,7 @@ + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; +- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ++ *\'*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in +@@ -1044,9 +1461,7 @@ + -* ) ac_must_keep_next=true ;; + esac + fi +- ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" +- # Get rid of the leading space. +- ac_sep=" " ++ ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + esac + done +@@ -1057,8 +1472,8 @@ + # When interrupted or exit'd, cleanup temporary files, and complete + # config.log. We remove comments because anyway the quotes in there + # would cause problems or look ugly. +-# WARNING: Be sure not to use single quotes in there, as some shells, +-# such as our DU 5.0 friend, will then `close' the trap. ++# WARNING: Use '\'' to represent an apostrophe within the trap. ++# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. + trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { +@@ -1071,20 +1486,34 @@ + _ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +-{ ++( ++ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done + (set) 2>&1 | +- case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in +- *ac_space=\ *) ++ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) + sed -n \ +- "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" +- ;; ++ "s/'\''/'\''\\\\'\'''\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ++ ;; #( + *) +- sed -n \ +- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; +- esac; +-} ++ esac | ++ sort ++) + echo + + cat <<\_ASBOX +@@ -1095,22 +1524,28 @@ + echo + for ac_var in $ac_subst_vars + do +- eval ac_val=$`echo $ac_var` +- echo "$ac_var='"'"'$ac_val'"'"'" ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +-## ------------- ## +-## Output files. ## +-## ------------- ## ++## ------------------- ## ++## File substitutions. ## ++## ------------------- ## + _ASBOX + echo + for ac_var in $ac_subst_files + do +- eval ac_val=$`echo $ac_var` +- echo "$ac_var='"'"'$ac_val'"'"'" ++ eval ac_val=\$$ac_var ++ case $ac_val in ++ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; ++ esac ++ echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi +@@ -1122,26 +1557,24 @@ + ## ----------- ## + _ASBOX + echo +- sed "/^$/d" confdefs.h | sort ++ cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 +- rm -f core *.core && +- rm -rf conftest* confdefs* conf$$* $ac_clean_files && ++ rm -f core *.core core.conftest.* && ++ rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +- ' 0 ++' 0 + for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + done + ac_signal=0 + + # confdefs.h avoids OS command line length limits that DEFS can exceed. +-rm -rf conftest* confdefs.h +-# AIX cpp loses on an empty file, so make sure it contains at least a newline. +-echo >confdefs.h ++rm -f -r conftest* confdefs.h + + # Predefined preprocessor variables. + +@@ -1172,14 +1605,17 @@ + + # Let the site file select an alternate cache file if it wants to. + # Prefer explicitly selected file to automatically selected ones. +-if test -z "$CONFIG_SITE"; then +- if test "x$prefix" != xNONE; then +- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" +- else +- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +- fi ++if test -n "$CONFIG_SITE"; then ++ set x "$CONFIG_SITE" ++elif test "x$prefix" != xNONE; then ++ set x "$prefix/share/config.site" "$prefix/etc/config.site" ++else ++ set x "$ac_default_prefix/share/config.site" \ ++ "$ac_default_prefix/etc/config.site" + fi +-for ac_site_file in $CONFIG_SITE; do ++shift ++for ac_site_file ++do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 + echo "$as_me: loading site script $ac_site_file" >&6;} +@@ -1195,8 +1631,8 @@ + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 + echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in +- [\\/]* | ?:[\\/]* ) . $cache_file;; +- *) . ./$cache_file;; ++ [\\/]* | ?:[\\/]* ) . "$cache_file";; ++ *) . "./$cache_file";; + esac + fi + else +@@ -1208,12 +1644,11 @@ + # Check that the precious variables saved in the cache have kept the same + # value. + ac_cache_corrupted=false +-for ac_var in `(set) 2>&1 | +- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do ++for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set +- eval ac_old_val="\$ac_cv_env_${ac_var}_value" +- eval ac_new_val="\$ac_env_${ac_var}_value" ++ eval ac_old_val=\$ac_cv_env_${ac_var}_value ++ eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +@@ -1238,8 +1673,7 @@ + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in +- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) +- ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ++ *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in +@@ -1256,11 +1690,6 @@ + { (exit 1); exit 1; }; } + fi + +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +@@ -1285,6 +1714,11 @@ + + + ++ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +@@ -1304,29 +1738,35 @@ + libgloss_topdir="${srcdir}/.." + fi + ac_aux_dir= +-for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do +- if test -f $ac_dir/install-sh; then ++for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do ++ 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 ++ 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 ++ 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 +- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" >&5 +-echo "$as_me: error: cannot find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" >&2;} ++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" >&5 ++echo "$as_me: error: cannot find install-sh or install.sh in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" >&2;} + { (exit 1); exit 1; }; } + fi +-ac_config_guess="$SHELL $ac_aux_dir/config.guess" +-ac_config_sub="$SHELL $ac_aux_dir/config.sub" +-ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ++ ++# These three variables are undocumented and unsupported, ++# and are intended to be withdrawn in a future Autoconf release. ++# They can cause serious problems if a builder's source tree is in a directory ++# whose full name contains unusual characters. ++ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ++ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ++ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ++ + + + # Find a good install program. We prefer a C program (faster), +@@ -1342,8 +1782,8 @@ + # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" + # OS/2's system install, which has a completely different semantic + # ./install, which can be erroneously created by make from ./install.sh. +-echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } + if test -z "$INSTALL"; then + if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +@@ -1365,7 +1805,7 @@ + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. +@@ -1384,21 +1824,22 @@ + ;; + esac + done ++IFS=$as_save_IFS + + + fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else +- # As a last resort, use the slow shell script. We don't cache a +- # path for INSTALL within a source directory, because that will ++ # As a last resort, use the slow shell script. Don't cache a ++ # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is +- # removed, or if the path is relative. ++ # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi + fi +-echo "$as_me:$LINENO: result: $INSTALL" >&5 +-echo "${ECHO_T}$INSTALL" >&6 ++{ echo "$as_me:$LINENO: result: $INSTALL" >&5 ++echo "${ECHO_T}$INSTALL" >&6; } + + # Use test -z because SunOS4 sh mishandles braces in ${var-val}. + # It thinks the first close brace ends the variable substitution. +@@ -1410,79 +1851,123 @@ + + + # Make sure we can run config.sub. +-$ac_config_sub sun4 >/dev/null 2>&1 || +- { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 +-echo "$as_me: error: cannot run $ac_config_sub" >&2;} ++$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || ++ { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 ++echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} + { (exit 1); exit 1; }; } + +-echo "$as_me:$LINENO: checking build system type" >&5 +-echo $ECHO_N "checking build system type... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking build system type" >&5 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6; } + if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +- ac_cv_build_alias=$build_alias +-test -z "$ac_cv_build_alias" && +- ac_cv_build_alias=`$ac_config_guess` +-test -z "$ac_cv_build_alias" && ++ ac_build_alias=$build_alias ++test "x$ac_build_alias" = x && ++ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` ++test "x$ac_build_alias" = x && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 + echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +-ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || +- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 +-echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} ++ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + + fi +-echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +-echo "${ECHO_T}$ac_cv_build" >&6 ++{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ++echo "${ECHO_T}$ac_cv_build" >&6; } ++case $ac_cv_build in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 ++echo "$as_me: error: invalid value of canonical build" >&2;} ++ { (exit 1); exit 1; }; };; ++esac + build=$ac_cv_build +-build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +-build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +-build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_build ++shift ++build_cpu=$1 ++build_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++build_os=$* ++IFS=$ac_save_IFS ++case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +-echo "$as_me:$LINENO: checking host system type" >&5 +-echo $ECHO_N "checking host system type... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking host system type" >&5 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6; } + if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +- ac_cv_host_alias=$host_alias +-test -z "$ac_cv_host_alias" && +- ac_cv_host_alias=$ac_cv_build_alias +-ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || +- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +-echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} ++ if test "x$host_alias" = x; then ++ ac_cv_host=$ac_cv_build ++else ++ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} + { (exit 1); exit 1; }; } ++fi + + fi +-echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +-echo "${ECHO_T}$ac_cv_host" >&6 ++{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ++echo "${ECHO_T}$ac_cv_host" >&6; } ++case $ac_cv_host in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 ++echo "$as_me: error: invalid value of canonical host" >&2;} ++ { (exit 1); exit 1; }; };; ++esac + host=$ac_cv_host +-host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +-host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +-host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_host ++shift ++host_cpu=$1 ++host_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++host_os=$* ++IFS=$ac_save_IFS ++case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +-echo "$as_me:$LINENO: checking target system type" >&5 +-echo $ECHO_N "checking target system type... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking target system type" >&5 ++echo $ECHO_N "checking target system type... $ECHO_C" >&6; } + if test "${ac_cv_target+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +- ac_cv_target_alias=$target_alias +-test "x$ac_cv_target_alias" = "x" && +- ac_cv_target_alias=$ac_cv_host_alias +-ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || +- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 +-echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} ++ if test "x$target_alias" = x; then ++ ac_cv_target=$ac_cv_host ++else ++ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || ++ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 ++echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} + { (exit 1); exit 1; }; } ++fi + + fi +-echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +-echo "${ECHO_T}$ac_cv_target" >&6 ++{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 ++echo "${ECHO_T}$ac_cv_target" >&6; } ++case $ac_cv_target in ++*-*-*) ;; ++*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 ++echo "$as_me: error: invalid value of canonical target" >&2;} ++ { (exit 1); exit 1; }; };; ++esac + target=$ac_cv_target +-target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +-target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +-target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++ac_save_IFS=$IFS; IFS='-' ++set x $ac_cv_target ++shift ++target_cpu=$1 ++target_vendor=$2 ++shift; shift ++# Remember, the first character of IFS is used to create $*, ++# except with old shells: ++target_os=$* ++IFS=$ac_save_IFS ++case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + + # The aliases save the names the user supplied, while $host etc. +@@ -1492,8 +1977,8 @@ + NONENONEs,x,x, && + program_prefix=${target_alias}- + am__api_version="1.9" +-echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ++echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } + # Just in case + sleep 1 + echo timestamp > conftest.file +@@ -1535,20 +2020,20 @@ + Check your system clock" >&2;} + { (exit 1); exit 1; }; } + fi +-echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 ++{ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } + test "$program_prefix" != NONE && +- program_transform_name="s,^,$program_prefix,;$program_transform_name" ++ program_transform_name="s&^&$program_prefix&;$program_transform_name" + # Use a double $ so make ignores it. + test "$program_suffix" != NONE && +- program_transform_name="s,\$,$program_suffix,;$program_transform_name" ++ program_transform_name="s&\$&$program_suffix&;$program_transform_name" + # Double any \ or $. echo might interpret backslashes. + # By default was `s,x,x', remove it if useless. + cat <<\_ACEOF >conftest.sed + s/[\\$]/&&/g;s/;s,x,x,$// + _ACEOF + program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +-rm conftest.sed ++rm -f conftest.sed + + # expand $ac_aux_dir to an absolute path + am_aux_dir=`cd $ac_aux_dir && pwd` +@@ -1600,8 +2085,8 @@ + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -1614,54 +2099,57 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + + fi + fi + AWK=$ac_cv_prog_AWK + if test -n "$AWK"; then +- echo "$as_me:$LINENO: result: $AWK" >&5 +-echo "${ECHO_T}$AWK" >&6 ++ { echo "$as_me:$LINENO: result: $AWK" >&5 ++echo "${ECHO_T}$AWK" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ + test -n "$AWK" && break + done + +-echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 +-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` +-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then ++{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } ++set x ${MAKE-make}; ac_make=`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 + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + cat >conftest.make <<\_ACEOF ++SHELL = /bin/sh + all: +- @echo 'ac_maketemp="$(MAKE)"' ++ @echo '@@@%%%=$(MAKE)=@@@%%%' + _ACEOF + # GNU make sometimes prints "make[1]: Entering...", which would confuse us. +-eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +-if test -n "$ac_maketemp"; then +- eval ac_cv_prog_make_${ac_make}_set=yes +-else +- eval ac_cv_prog_make_${ac_make}_set=no +-fi ++case `${MAKE-make} -f conftest.make 2>/dev/null` in ++ *@@@%%%=?*=@@@%%%*) ++ eval ac_cv_prog_make_${ac_make}_set=yes;; ++ *) ++ eval ac_cv_prog_make_${ac_make}_set=no;; ++esac + rm -f conftest.make + fi +-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 ++if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then ++ { echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6; } + SET_MAKE= + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" + fi + +@@ -1723,8 +2211,8 @@ + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. + set dummy ${ac_tool_prefix}strip; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -1737,32 +2225,34 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + + fi + fi + STRIP=$ac_cv_prog_STRIP + if test -n "$STRIP"; then +- echo "$as_me:$LINENO: result: $STRIP" >&5 +-echo "${ECHO_T}$STRIP" >&6 ++ { echo "$as_me:$LINENO: result: $STRIP" >&5 ++echo "${ECHO_T}$STRIP" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ + fi + if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. + set dummy strip; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -1775,27 +2265,41 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + +- test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" + fi + fi + ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP + if test -n "$ac_ct_STRIP"; then +- echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +-echo "${ECHO_T}$ac_ct_STRIP" >&6 ++ { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ if test "x$ac_ct_STRIP" = x; then ++ STRIP=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac + STRIP=$ac_ct_STRIP ++ fi + else + STRIP="$ac_cv_prog_STRIP" + fi +@@ -1817,9 +2321,7 @@ + + + if test -z "${with_multisubdir}" ; then +- +- +-subdirs="$subdirs doc" ++ subdirs="$subdirs doc" + + fi + +@@ -1827,190 +2329,139 @@ + + config_libnosys=true + ++config_libsysbase=true + case "${target}" in i[3456]86-*-elf* | i[3456]86-*-coff*) - subdirs="$subdirs i386" -@@ -3911,7 +3917,8 @@ - # The final `:' finishes the AND list. - ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' +- +- +-subdirs="$subdirs i386" ++ subdirs="$subdirs i386" + + ;; + m32r-*-*) +- +- +-subdirs="$subdirs m32r" ++ subdirs="$subdirs m32r" + + ;; + m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*) +- +- +-subdirs="$subdirs m68hc11" ++ subdirs="$subdirs m68hc11" + + ;; + fido-*-* | m68*-*-*) +- +- +-subdirs="$subdirs m68k" ++ subdirs="$subdirs m68k" + + ;; + hppa*-*-pro*) +- +- +-subdirs="$subdirs pa" ++ subdirs="$subdirs pa" + + ;; + i960-*-coff) +- +- +-subdirs="$subdirs i960" ++ subdirs="$subdirs i960" + + ;; + sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*) +- +- +-subdirs="$subdirs sparc" ++ subdirs="$subdirs sparc" + + ;; + sh*-*-pe | mips*-*-pe | *arm-wince-pe) +- +- +-subdirs="$subdirs wince" ++ subdirs="$subdirs wince" + + ;; + mips*-*-*) +- +- +-subdirs="$subdirs mips" ++ subdirs="$subdirs mips" + + ;; + powerpc-*-*|powerpcle-*-*) +- +- +-subdirs="$subdirs rs6000" ++ subdirs="$subdirs rs6000" + + ;; + mn10200-*-*) +- +- +-subdirs="$subdirs mn10200" ++ subdirs="$subdirs mn10200" + + ;; + mn10300-*-*) +- +- +-subdirs="$subdirs mn10300" ++ subdirs="$subdirs mn10300" + + ;; + bfin-*-*) +- +- +-subdirs="$subdirs bfin" ++ subdirs="$subdirs bfin" + + ;; + cris-*-* | crisv32-*-*) +- +- +-subdirs="$subdirs cris" ++ subdirs="$subdirs cris" + + ;; + crx-*-*) +- +- +-subdirs="$subdirs crx" ++ subdirs="$subdirs crx" + + ;; + d30v-*-*) +- +- +-subdirs="$subdirs d30v" ++ subdirs="$subdirs d30v" + + ;; + fr30-*-*) +- +- +-subdirs="$subdirs fr30" ++ subdirs="$subdirs fr30" + + ;; + frv*-*-*) +- +- +-subdirs="$subdirs frv" ++ subdirs="$subdirs frv" + + ;; + lm32*-*-*) +- +- +-subdirs="$subdirs lm32" ++ subdirs="$subdirs lm32" + + ;; + mcore-*-*) +- +- +-subdirs="$subdirs mcore" ++ subdirs="$subdirs mcore" + + ;; + mep-*-*) +- +- +-subdirs="$subdirs mep" ++ subdirs="$subdirs mep" + + ;; + moxie-*-*) +- +- +-subdirs="$subdirs moxie" ++ subdirs="$subdirs moxie" + + ;; + mt-*-*) +- +- +-subdirs="$subdirs mt" ++ subdirs="$subdirs mt" + + ;; + xstormy16-*-*) +- +- +-subdirs="$subdirs xstormy16" ++ subdirs="$subdirs xstormy16" + + ;; + m32c-*-*) +- +- +-subdirs="$subdirs m32c" ++ subdirs="$subdirs m32c" + + ;; + strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*) +- +- +-subdirs="$subdirs arm" ++ subdirs="$subdirs arm" + + ;; + spu-*-elf) +- +- +-subdirs="$subdirs spu" ++ subdirs="$subdirs spu" + + config_testsuite=false + config_libnosys=false + ;; + iq2000-*-*) +- +- +-subdirs="$subdirs iq2000" ++ subdirs="$subdirs iq2000" + + ;; + esac + + + if test "${config_libnosys}" = "true"; then ++ subdirs="$subdirs libnosys" + ++fi + +-subdirs="$subdirs libnosys" ++if test "${config_libsysbase}" = "true"; then ++ subdirs="$subdirs libsysbase" + fi --ac_cr=' ' -+ac_cr=' + + DEPDIR="${am__leading_dot}deps" + +- ac_config_commands="$ac_config_commands depfiles" ++ac_config_commands="$ac_config_commands depfiles" + + + am_make=${MAKE-make} +@@ -2020,8 +2471,8 @@ + .PHONY: am__doit + END + # If we don't find an include directive, just comment out the code. +-echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +-echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ++echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } + am__include="#" + am__quote= + _am_result=none +@@ -2048,15 +2499,15 @@ + fi + + +-echo "$as_me:$LINENO: result: $_am_result" >&5 +-echo "${ECHO_T}$_am_result" >&6 ++{ echo "$as_me:$LINENO: result: $_am_result" >&5 ++echo "${ECHO_T}$_am_result" >&6; } + rm -f confinc confmf + +-# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. ++# Check whether --enable-dependency-tracking was given. + if test "${enable_dependency_tracking+set}" = set; then +- enableval="$enable_dependency_tracking" ++ enableval=$enable_dependency_tracking; ++fi + +-fi; + if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +@@ -2075,8 +2526,8 @@ + + # Extract the first word of "gcc", so it can be a program name with args. + set dummy gcc; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2089,30 +2540,32 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + + fi + fi + CC=$ac_cv_prog_CC + if test -n "$CC"; then +- echo "$as_me:$LINENO: result: $CC" >&5 +-echo "${ECHO_T}$CC" >&6 ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + + ++ + depcc="$CC" am_compiler_list= + +-echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } + if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2201,8 +2654,8 @@ + fi + + fi +-echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +-echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 ++{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } + CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + +@@ -2221,8 +2674,8 @@ + if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. + set dummy cc; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2236,7 +2689,7 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue +@@ -2247,6 +2700,7 @@ + fi + done + done ++IFS=$as_save_IFS + + if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. +@@ -2264,20 +2718,21 @@ + fi + CC=$ac_cv_prog_CC + if test -n "$CC"; then +- echo "$as_me:$LINENO: result: $CC" >&5 +-echo "${ECHO_T}$CC" >&6 ++ { echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ + test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 + echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + fi + +-echo "$as_me:$LINENO: checking whether we are using GNU C" >&5 +-echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking whether we are using GNU C" >&5 ++echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6; } + if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2297,8 +2752,8 @@ + ac_cv_c_compiler_gnu=no + fi + fi +-echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 ++{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } + + if test $ac_cv_c_compiler_gnu = yes; then + GCC=yes +@@ -2307,12 +2762,15 @@ + CFLAGS= + ac_test_CFLAGS=${CFLAGS+set} + ac_save_CFLAGS=$CFLAGS +-CFLAGS="-g" +-echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } + if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else ++ ac_save_c_werror_flag=$ac_c_werror_flag ++ ac_c_werror_flag=yes ++ ac_cv_prog_cc_g=no ++ CFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -2329,38 +2787,118 @@ + } + _ACEOF + rm -f conftest.$ac_objext +-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 +- (eval $ac_compile) 2>conftest.er1 ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" +- || test ! -s conftest.err' +- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 +- (eval $ac_try) 2>&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ ac_cv_prog_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ CFLAGS="" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 + ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest.$ac_objext' +- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 +- (eval $ac_try) 2>&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then ++ : ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_c_werror_flag=$ac_save_c_werror_flag ++ CFLAGS="-g" ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (ac_try="$ac_compile" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_compile") 2>conftest.er1 + ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_g=yes + else + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + +-ac_cv_prog_cc_g=no ++ ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi +-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_c_werror_flag=$ac_save_c_werror_flag + fi +-echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +-echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 ++{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } + if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS + elif test $ac_cv_prog_cc_g = yes; then +@@ -2392,8 +2930,8 @@ + + # Extract the first word of "ar", so it can be a program name with args. + set dummy ar; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2406,26 +2944,28 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + + test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":" + fi + fi + AR=$ac_cv_prog_AR + if test -n "$AR"; then +- echo "$as_me:$LINENO: result: $AR" >&5 +-echo "${ECHO_T}$AR" >&6 ++ { echo "$as_me:$LINENO: result: $AR" >&5 ++echo "${ECHO_T}$AR" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ + AR=${AR-ar} + + LD=${LD-ld} +@@ -2433,8 +2973,8 @@ + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. + set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2447,32 +2987,34 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + + fi + fi + RANLIB=$ac_cv_prog_RANLIB + if test -n "$RANLIB"; then +- echo "$as_me:$LINENO: result: $RANLIB" >&5 +-echo "${ECHO_T}$RANLIB" >&6 ++ { echo "$as_me:$LINENO: result: $RANLIB" >&5 ++echo "${ECHO_T}$RANLIB" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ + fi + if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. + set dummy ranlib; ac_word=$2 +-echo "$as_me:$LINENO: checking for $ac_word" >&5 +-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++{ echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } + if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else +@@ -2485,27 +3027,41 @@ + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do +- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi + done + done ++IFS=$as_save_IFS + +- test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" + fi + fi + ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB + if test -n "$ac_ct_RANLIB"; then +- echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +-echo "${ECHO_T}$ac_ct_RANLIB" >&6 ++ { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6; } + else +- echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6 ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + ++ if test "x$ac_ct_RANLIB" = x; then ++ RANLIB=":" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&5 ++echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools ++whose name does not start with the host triplet. If you think this ++configuration is useful to you, please write to autoconf@gnu.org." >&2;} ++ac_tool_warned=yes ;; ++esac + RANLIB=$ac_ct_RANLIB ++ fi + else + RANLIB="$ac_cv_prog_RANLIB" + fi +@@ -2531,7 +3087,7 @@ + fi + + # for now, only add multilibs for specific targets +- ac_config_files="$ac_config_files Makefile" ++ac_config_files="$ac_config_files Makefile" + + cat >confcache <<\_ACEOF + # This file is a shell script that caches the results of configure +@@ -2551,39 +3107,58 @@ + + # The following way of writing the cache mishandles newlines in values, + # but we know of no workaround that is simple, portable, and efficient. +-# So, don't put newlines in cache variables' values. ++# So, we kill variables containing newlines. + # Ultrix sh set writes to stderr and can't be redirected directly, + # and sets the high bit in the cache file unless we assign to the vars. +-{ ++( ++ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do ++ eval ac_val=\$$ac_var ++ case $ac_val in #( ++ *${as_nl}*) ++ case $ac_var in #( ++ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 ++echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; ++ esac ++ case $ac_var in #( ++ _ | IFS | as_nl) ;; #( ++ *) $as_unset $ac_var ;; ++ esac ;; ++ esac ++ done ++ + (set) 2>&1 | +- case `(ac_space=' '; set | grep ac_space) 2>&1` in +- *ac_space=\ *) ++ case $as_nl`(ac_space=' '; set) 2>&1` in #( ++ *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" +- ;; ++ ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. +- sed -n \ +- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ++ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; +- esac; +-} | ++ esac | ++ sort ++) | + sed ' ++ /^ac_cv_env_/b end + t clear +- : clear ++ :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end +- /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ +- : end' >>confcache +-if diff $cache_file confcache >/dev/null 2>&1; then :; else +- if test -w $cache_file; then +- test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" ++ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ :end' >>confcache ++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else ++ if test -w "$cache_file"; then ++ test "x$cache_file" != "x/dev/null" && ++ { echo "$as_me:$LINENO: updating cache $cache_file" >&5 ++echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else +- echo "not updating unwritable cache $cache_file" ++ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 ++echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi + fi + rm -f confcache +@@ -2592,63 +3167,48 @@ + # Let make expand exec_prefix. + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +-# VPATH may cause trouble with some makes, so we remove $(srcdir), +-# ${srcdir} and @srcdir@ 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/; +-s/:*$//; +-s/^[^=]*=[ ]*$//; +-}' +-fi +- + # Transform confdefs.h into DEFS. + # Protect against shell expansion while executing Makefile rules. + # Protect against Makefile macro expansion. + # + # If the first sed substitution is executed (which looks for macros that +-# take arguments), then we branch to the quote section. Otherwise, ++# take arguments), then branch to the quote section. Otherwise, + # look for a macro that doesn't take arguments. +-cat >confdef2opt.sed <<\_ACEOF ++ac_script=' + t clear +-: clear +-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g ++:clear ++s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g + t quote +-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g ++s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g + t quote +-d +-: quote +-s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +-s,\[,\\&,g +-s,\],\\&,g +-s,\$,$$,g +-p +-_ACEOF +-# We use echo to avoid assuming a particular line-breaking character. +-# The extra dot is to prevent the shell from consuming trailing +-# line-breaks from the sub-command output. A line-break within +-# single-quotes doesn't work because, if this script is created in a +-# platform that uses two characters for line-breaks (e.g., DOS), tr +-# would break. +-ac_LF_and_DOT=`echo; echo .` +-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +-rm -f confdef2opt.sed ++b any ++:quote ++s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g ++s/\[/\\&/g ++s/\]/\\&/g ++s/\$/$$/g ++H ++:any ++${ ++ g ++ s/^\n// ++ s/\n/ /g ++ p ++} +' - ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` - if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -diff -Nbaur newlib-1.17.0/libgloss/configure.in newlib-1.17.0-ppc/libgloss/configure.in ---- newlib-1.17.0/libgloss/configure.in 2008-12-17 23:08:09.000000000 +0000 -+++ newlib-1.17.0-ppc/libgloss/configure.in 2008-12-30 09:33:00.000000000 +0000 ++DEFS=`sed -n "$ac_script" confdefs.h` + + + ac_libobjs= + ac_ltlibobjs= + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. +- ac_i=`echo "$ac_i" | +- sed 's/\$U\././;s/\.o$//;s/\.obj$//'` +- # 2. Add them. +- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" +- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' ++ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ++ ac_i=`echo "$ac_i" | sed "$ac_script"` ++ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR ++ # will be set to the directory where LIBOBJS objects are built. ++ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ++ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + done + LIBOBJS=$ac_libobjs + +@@ -2693,17 +3253,45 @@ + ## M4sh Initialization. ## + ## --------------------- ## + +-# Be Bourne compatible ++# Be more Bourne compatible ++DUALCASE=1; export DUALCASE # for MKS sh + if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then +- set -o posix ++ setopt NO_GLOB_SUBST ++else ++ case `(set -o) 2>/dev/null` in ++ *posix*) set -o posix ;; ++esac ++ ++fi ++ ++ ++ ++ ++# PATH needs CR ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# The user is always right. ++if test "${PATH_SEPARATOR+set}" != set; then ++ echo "#! /bin/sh" >conf$$.sh ++ echo "exit 0" >>conf$$.sh ++ chmod +x conf$$.sh ++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then ++ PATH_SEPARATOR=';' ++ else ++ PATH_SEPARATOR=: ++ fi ++ rm -f conf$$.sh + fi +-DUALCASE=1; export DUALCASE # for MKS sh + + # Support unset when possible. + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then +@@ -2713,8 +3301,43 @@ + fi + + ++# IFS ++# We need space, tab and new line, in precisely that order. Quoting is ++# there to prevent editors from complaining about space-tab. ++# (If _AS_PATH_WALK were called with IFS unset, it would disable word ++# splitting by setting IFS to empty value.) ++as_nl=' ++' ++IFS=" "" $as_nl" ++ ++# Find who we are. Look in the path if we contain no directory separator. ++case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++IFS=$as_save_IFS ++ ++ ;; ++esac ++# We did not find ourselves, most probably we were run as `sh COMMAND' ++# in which case we are not to be found in the path. ++if test "x$as_myself" = x; then ++ as_myself=$0 ++fi ++if test ! -f "$as_myself"; then ++ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ++ { (exit 1); exit 1; } ++fi ++ + # Work around bugs in pre-3.0 UWIN ksh. +-$as_unset ENV MAIL MAILPATH ++for as_var in ENV MAIL MAILPATH ++do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var ++done + PS1='$ ' + PS2='> ' + PS4='+ ' +@@ -2728,18 +3351,19 @@ + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else +- $as_unset $as_var ++ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + fi + done + + # Required to use basename. +-if expr a : '\(a\)' >/dev/null 2>&1; then ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr + else + as_expr=false + fi + +-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename + else + as_basename=false +@@ -2747,159 +3371,120 @@ + + + # Name of the executable. +-as_me=`$as_basename "$0" || ++as_me=`$as_basename -- "$0" || + $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)$' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$0" : 'X\(/\)' \| . 2>/dev/null || + echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } +- /^X\/\(\/\/\)$/{ s//\1/; q; } +- /^X\/\(\/\).*/{ s//\1/; q; } ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\/\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` + +- +-# PATH needs CR, and LINENO needs CR and PATH. +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- echo "#! /bin/sh" >conf$$.sh +- echo "exit 0" >>conf$$.sh +- chmod +x conf$$.sh +- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +- PATH_SEPARATOR=';' +- else +- PATH_SEPARATOR=: +- fi +- rm -f conf$$.sh +-fi ++# CDPATH. ++$as_unset CDPATH + + +- as_lineno_1=$LINENO +- as_lineno_2=$LINENO +- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` +- test "x$as_lineno_1" != "x$as_lineno_2" && +- test "x$as_lineno_3" = "x$as_lineno_2" || { +- # Find who we are. Look in the path if we contain no path at all +- # relative or not. +- case $0 in +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +-done + +- ;; +- esac +- # We did not find ourselves, most probably we were run as `sh COMMAND' +- # in which case we are not to be found in the path. +- if test "x$as_myself" = x; then +- as_myself=$0 +- fi +- if test ! -f "$as_myself"; then +- { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 +-echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} +- { (exit 1); exit 1; }; } +- fi +- case $CONFIG_SHELL in +- '') +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for as_base in sh bash ksh sh5; do +- case $as_dir in +- /*) +- if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO +- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && +- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then +- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } +- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } +- CONFIG_SHELL=$as_dir/$as_base +- export CONFIG_SHELL +- exec "$CONFIG_SHELL" "$0" ${1+"$@"} +- fi;; +- esac +- done +-done +-;; +- esac ++ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a +- # line-number line before each line; the second 'sed' does the real +- # work. The second script uses 'N' to pair each line-number line +- # with the numbered line, and appends trailing '-' during +- # substitution so that $LINENO is not a special case at line end. ++ # line-number line after each line using $LINENO; the second 'sed' ++ # does the real work. The second script uses 'N' to pair each ++ # line-number line with the line containing $LINENO, and appends ++ # trailing '-' during substitution so that $LINENO is not a special ++ # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the +- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) +- sed '=' <$as_myself | ++ # scripts with optimization help from Paolo Bonzini. Blame Lee ++ # E. McMahon (1931-1989) for sed's syntax. :-) ++ sed -n ' ++ p ++ /[$]LINENO/= ++ ' <$as_myself | + sed ' ++ s/[$]LINENO.*/&-/ ++ t lineno ++ b ++ :lineno + N +- s,$,-, +- : loop +- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ++ :loop ++ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop +- s,-$,, +- s,^['$as_cr_digits']*\n,, ++ s/-\n.*// + ' >$as_me.lineno && +- chmod +x $as_me.lineno || +- { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 +-echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} ++ chmod +x "$as_me.lineno" || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the +- # original and so on. Autoconf is especially sensible to this). +- . ./$as_me.lineno ++ # original and so on. Autoconf is especially sensitive to this). ++ . "./$as_me.lineno" + # Exit status is that of the last command. + exit + } + + +-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in +- *c*,-n*) ECHO_N= ECHO_C=' +-' ECHO_T=' ' ;; +- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; +- *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then ++ as_dirname=dirname ++else ++ as_dirname=false ++fi ++ ++ECHO_C= ECHO_N= ECHO_T= ++case `echo -n x` in ++-n*) ++ case `echo 'x\c'` in ++ *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ *) ECHO_C='\c';; ++ esac;; ++*) ++ ECHO_N='-n';; + esac + +-if expr a : '\(a\)' >/dev/null 2>&1; then ++if expr a : '\(a\)' >/dev/null 2>&1 && ++ test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr + else + as_expr=false + fi + + rm -f conf$$ conf$$.exe conf$$.file ++if test -d conf$$.dir; then ++ rm -f conf$$.dir/conf$$.file ++else ++ rm -f conf$$.dir ++ mkdir conf$$.dir ++fi + echo >conf$$.file + if ln -s conf$$.file conf$$ 2>/dev/null; then +- # We could just check for DJGPP; but this test a) works b) is more generic +- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). +- if test -f conf$$.exe; then +- # Don't use ln at all; we don't have any links +- as_ln_s='cp -p' +- else + as_ln_s='ln -s' +- fi ++ # ... but there are two gotchas: ++ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. ++ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++ # In both cases, we have to default to `cp -p'. ++ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +-rm -f conf$$ conf$$.exe conf$$.file ++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file ++rmdir conf$$.dir 2>/dev/null + + if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +@@ -2907,8 +3492,29 @@ + test -d ./-p && rmdir ./-p + as_mkdir_p=false + fi +- +-as_executable_p="test -f" ++ ++if test -x / >/dev/null 2>&1; then ++ as_test_x='test -x' ++else ++ if ls -dL / >/dev/null 2>&1; then ++ as_ls_L_option=L ++ else ++ as_ls_L_option= ++ fi ++ as_test_x=' ++ eval sh -c '\'' ++ if test -d "$1"; then ++ test -d "$1/."; ++ else ++ case $1 in ++ -*)set "./$1";; ++ esac; ++ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ++ ???[sx]*):;;*)false;;esac;fi ++ '\'' sh ++ ' ++fi ++as_executable_p=$as_test_x + + # Sed expression to map a string onto a valid CPP name. + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +@@ -2917,31 +3523,14 @@ + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +-# IFS +-# We need space, tab and new line, in precisely that order. +-as_nl=' +-' +-IFS=" $as_nl" +- +-# CDPATH. +-$as_unset CDPATH +- + exec 6>&1 + +-# Open the log real soon, to keep \$[0] and so on meaningful, and to ++# Save the log message, to keep $[0] and so on meaningful, and to + # report actual input values of CONFIG_FILES etc. instead of their +-# values after options handling. Logging --version etc. is OK. +-exec 5>>config.log +-{ +- echo +- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +-## Running $as_me. ## +-_ASBOX +-} >&5 +-cat >&5 <<_CSEOF +- ++# values after options handling. ++ac_log=" + This file was extended by libgloss $as_me LIBGLOSS_VERSION, which was +-generated by GNU Autoconf 2.59. Invocation command line was ++generated by GNU Autoconf 2.61. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS +@@ -2949,30 +3538,19 @@ + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +-_CSEOF +-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +-echo >&5 ++on `(hostname || uname -n) 2>/dev/null | sed 1q` ++" ++ + _ACEOF + ++cat >>$CONFIG_STATUS <<_ACEOF + # Files that config.status was made for. +-if test -n "$ac_config_files"; then +- echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +-fi +- +-if test -n "$ac_config_headers"; then +- echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +-fi ++config_files="$ac_config_files" ++config_commands="$ac_config_commands" + +-if test -n "$ac_config_links"; then +- echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +-fi +- +-if test -n "$ac_config_commands"; then +- echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +-fi ++_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF +- + ac_cs_usage="\ + \`$as_me' instantiates files from templates according to the + current configuration. +@@ -2980,7 +3558,7 @@ + Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit +- -V, --version print version number, then exit ++ -V, --version print version number and configuration settings, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions +@@ -2994,19 +3572,21 @@ + $config_commands + + Report bugs to ." +-_ACEOF + ++_ACEOF + cat >>$CONFIG_STATUS <<_ACEOF + ac_cs_version="\\ + libgloss config.status LIBGLOSS_VERSION +-configured by $0, generated by GNU Autoconf 2.59, +- with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" ++configured by $0, generated by GNU Autoconf 2.61, ++ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" + +-Copyright (C) 2003 Free Software Foundation, Inc. ++Copyright (C) 2006 Free Software Foundation, Inc. + This config.status script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it." +-srcdir=$srcdir +-INSTALL="$INSTALL" ++ ++ac_pwd='$ac_pwd' ++srcdir='$srcdir' ++INSTALL='$INSTALL' + _ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF +@@ -3017,60 +3597,42 @@ + do + case $1 in + --*=*) +- ac_option=`expr "x$1" : 'x\([^=]*\)='` +- ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ++ ac_option=`expr "X$1" : 'X\([^=]*\)='` ++ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; +- -*) ++ *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; +- *) # This is not an option, so the user has probably given explicit +- # arguments. +- ac_option=$1 +- ac_need_defaults=false;; + esac + + case $ac_option in + # Handling of the options. +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; +- --version | --vers* | -V ) +- echo "$ac_cs_version"; exit 0 ;; +- --he | --h) +- # Conflict between --help and --header +- { { echo "$as_me:$LINENO: error: ambiguous option: $1 +-Try \`$0 --help' for more information." >&5 +-echo "$as_me: error: ambiguous option: $1 +-Try \`$0 --help' for more information." >&2;} +- { (exit 1); exit 1; }; };; +- --help | --hel | -h ) +- echo "$ac_cs_usage"; exit 0 ;; +- --debug | --d* | -d ) ++ --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) ++ echo "$ac_cs_version"; exit ;; ++ --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; +- --header | --heade | --head | --hea ) +- $ac_shift +- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" +- ac_need_defaults=false;; ++ --he | --h | --help | --hel | -h ) ++ echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. +- -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +-Try \`$0 --help' for more information." >&5 +-echo "$as_me: error: unrecognized option: $1 +-Try \`$0 --help' for more information." >&2;} ++ -*) { echo "$as_me: error: unrecognized option: $1 ++Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + +- *) ac_config_targets="$ac_config_targets $1" ;; ++ *) ac_config_targets="$ac_config_targets $1" ++ ac_need_defaults=false ;; + + esac + shift +@@ -3086,17 +3648,28 @@ + _ACEOF + cat >>$CONFIG_STATUS <<_ACEOF + if \$ac_cs_recheck; then +- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 +- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ++ echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ++ CONFIG_SHELL=$SHELL ++ export CONFIG_SHELL ++ exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + fi + + _ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++exec 5>>config.log ++{ ++ echo ++ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ++## Running $as_me. ## ++_ASBOX ++ echo "$ac_log" ++} >&5 + ++_ACEOF + cat >>$CONFIG_STATUS <<_ACEOF + # +-# INIT-COMMANDS section. ++# INIT-COMMANDS + # +- + AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + srcdir=${srcdir} + target=${target} +@@ -3110,21 +3683,22 @@ + + _ACEOF + +- +- + cat >>$CONFIG_STATUS <<\_ACEOF ++ ++# Handling of arguments. + for ac_config_target in $ac_config_targets + do +- case "$ac_config_target" in +- # Handling of arguments. +- "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; +- "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ++ case $ac_config_target in ++ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ++ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; ++ + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 + echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac + done + ++ + # If the user did not use the arguments to specify the items to instantiate, + # then the envvar interface is used. Set only those that are not. + # We use the long form for the default assignment because of an extremely +@@ -3135,341 +3709,413 @@ + fi + + # Have a temporary directory for convenience. Make it in the build tree +-# simply because there is no reason to put it here, and in addition, ++# simply because there is no reason against having it here, and in addition, + # creating and moving files from /tmp can sometimes cause problems. +-# Create a temporary directory, and hook for its removal unless debugging. ++# Hook for its removal unless debugging. ++# Note that there is a small window in which the directory will not be cleaned: ++# after its creation but before its name has been assigned to `$tmp'. + $debug || + { +- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 ++ tmp= ++ trap 'exit_status=$? ++ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ++' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 + } +- + # Create a (secure) tmp directory for tmp files. + + { +- tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && ++ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" + } || + { +- tmp=./confstat$$-$RANDOM +- (umask 077 && mkdir $tmp) ++ tmp=./conf$$-$RANDOM ++ (umask 077 && mkdir "$tmp") + } || + { + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } + } + +-_ACEOF +- +-cat >>$CONFIG_STATUS <<_ACEOF +- + # +-# CONFIG_FILES section. ++# Set up the sed scripts for CONFIG_FILES section. + # + + # No need to generate the scripts if there are no CONFIG_FILES. + # This happens for instance when ./config.status config.h +-if test -n "\$CONFIG_FILES"; then +- # Protect against being on the right side of a sed subst in config.status. +- sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; +- s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +-s,@SHELL@,$SHELL,;t t +-s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +-s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +-s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +-s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +-s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +-s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +-s,@exec_prefix@,$exec_prefix,;t t +-s,@prefix@,$prefix,;t t +-s,@program_transform_name@,$program_transform_name,;t t +-s,@bindir@,$bindir,;t t +-s,@sbindir@,$sbindir,;t t +-s,@libexecdir@,$libexecdir,;t t +-s,@datadir@,$datadir,;t t +-s,@sysconfdir@,$sysconfdir,;t t +-s,@sharedstatedir@,$sharedstatedir,;t t +-s,@localstatedir@,$localstatedir,;t t +-s,@libdir@,$libdir,;t t +-s,@includedir@,$includedir,;t t +-s,@oldincludedir@,$oldincludedir,;t t +-s,@infodir@,$infodir,;t t +-s,@mandir@,$mandir,;t t +-s,@build_alias@,$build_alias,;t t +-s,@host_alias@,$host_alias,;t t +-s,@target_alias@,$target_alias,;t t +-s,@DEFS@,$DEFS,;t t +-s,@ECHO_C@,$ECHO_C,;t t +-s,@ECHO_N@,$ECHO_N,;t t +-s,@ECHO_T@,$ECHO_T,;t t +-s,@LIBS@,$LIBS,;t t +-s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +-s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +-s,@INSTALL_DATA@,$INSTALL_DATA,;t t +-s,@build@,$build,;t t +-s,@build_cpu@,$build_cpu,;t t +-s,@build_vendor@,$build_vendor,;t t +-s,@build_os@,$build_os,;t t +-s,@host@,$host,;t t +-s,@host_cpu@,$host_cpu,;t t +-s,@host_vendor@,$host_vendor,;t t +-s,@host_os@,$host_os,;t t +-s,@target@,$target,;t t +-s,@target_cpu@,$target_cpu,;t t +-s,@target_vendor@,$target_vendor,;t t +-s,@target_os@,$target_os,;t t +-s,@CYGPATH_W@,$CYGPATH_W,;t t +-s,@PACKAGE@,$PACKAGE,;t t +-s,@VERSION@,$VERSION,;t t +-s,@ACLOCAL@,$ACLOCAL,;t t +-s,@AUTOCONF@,$AUTOCONF,;t t +-s,@AUTOMAKE@,$AUTOMAKE,;t t +-s,@AUTOHEADER@,$AUTOHEADER,;t t +-s,@MAKEINFO@,$MAKEINFO,;t t +-s,@install_sh@,$install_sh,;t t +-s,@STRIP@,$STRIP,;t t +-s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t +-s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +-s,@mkdir_p@,$mkdir_p,;t t +-s,@AWK@,$AWK,;t t +-s,@SET_MAKE@,$SET_MAKE,;t t +-s,@am__leading_dot@,$am__leading_dot,;t t +-s,@AMTAR@,$AMTAR,;t t +-s,@am__tar@,$am__tar,;t t +-s,@am__untar@,$am__untar,;t t +-s,@subdirs@,$subdirs,;t t +-s,@CC@,$CC,;t t +-s,@DEPDIR@,$DEPDIR,;t t +-s,@am__include@,$am__include,;t t +-s,@am__quote@,$am__quote,;t t +-s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t +-s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t +-s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t +-s,@CCDEPMODE@,$CCDEPMODE,;t t +-s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t +-s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t +-s,@AS@,$AS,;t t +-s,@AR@,$AR,;t t +-s,@LD@,$LD,;t t +-s,@RANLIB@,$RANLIB,;t t +-s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +-s,@CCAS@,$CCAS,;t t +-s,@CCASFLAGS@,$CCASFLAGS,;t t +-s,@host_makefile_frag_path@,$host_makefile_frag_path,;t t +-s,@LIBOBJS@,$LIBOBJS,;t t +-s,@LTLIBOBJS@,$LTLIBOBJS,;t t +-/@host_makefile_frag@/r $host_makefile_frag +-s,@host_makefile_frag@,,;t t +-CEOF +- +-_ACEOF +- +- cat >>$CONFIG_STATUS <<\_ACEOF +- # Split the substitutions into bite-sized pieces for seds with +- # small command number limits, like on Digital OSF/1 and HP-UX. +- ac_max_sed_lines=48 +- ac_sed_frag=1 # Number of current file. +- ac_beg=1 # First line for current file. +- ac_end=$ac_max_sed_lines # Line after last line for current file. +- ac_more_lines=: +- ac_sed_cmds= +- while $ac_more_lines; do +- if test $ac_beg -gt 1; then +- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag +- else +- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag +- fi +- if test ! -s $tmp/subs.frag; then +- ac_more_lines=false +- else +- # The purpose of the label and of the branching condition is to +- # speed up the sed processing (if there are no `@' at all, there +- # is no need to browse any of the substitutions). +- # These are the two extra sed commands mentioned above. +- (echo ':t +- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed +- if test -z "$ac_sed_cmds"; then +- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" +- else +- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" +- fi +- ac_sed_frag=`expr $ac_sed_frag + 1` +- ac_beg=$ac_end +- ac_end=`expr $ac_end + $ac_max_sed_lines` +- fi +- done +- if test -z "$ac_sed_cmds"; then +- ac_sed_cmds=cat ++if test -n "$CONFIG_FILES"; then ++ ++_ACEOF ++ ++# Create sed commands to just substitute file output variables. ++ ++# Remaining file output variables are in a fragment that also has non-file ++# output varibles. ++ ++ ++ ++ac_delim='%!_!# ' ++for ac_last_try in false false false false false :; do ++ cat >conf$$subs.sed <<_ACEOF ++SHELL!$SHELL$ac_delim ++PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim ++PACKAGE_NAME!$PACKAGE_NAME$ac_delim ++PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim ++PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim ++PACKAGE_STRING!$PACKAGE_STRING$ac_delim ++PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim ++exec_prefix!$exec_prefix$ac_delim ++prefix!$prefix$ac_delim ++program_transform_name!$program_transform_name$ac_delim ++bindir!$bindir$ac_delim ++sbindir!$sbindir$ac_delim ++libexecdir!$libexecdir$ac_delim ++datarootdir!$datarootdir$ac_delim ++datadir!$datadir$ac_delim ++sysconfdir!$sysconfdir$ac_delim ++sharedstatedir!$sharedstatedir$ac_delim ++localstatedir!$localstatedir$ac_delim ++includedir!$includedir$ac_delim ++oldincludedir!$oldincludedir$ac_delim ++docdir!$docdir$ac_delim ++infodir!$infodir$ac_delim ++htmldir!$htmldir$ac_delim ++dvidir!$dvidir$ac_delim ++pdfdir!$pdfdir$ac_delim ++psdir!$psdir$ac_delim ++libdir!$libdir$ac_delim ++localedir!$localedir$ac_delim ++mandir!$mandir$ac_delim ++DEFS!$DEFS$ac_delim ++ECHO_C!$ECHO_C$ac_delim ++ECHO_N!$ECHO_N$ac_delim ++ECHO_T!$ECHO_T$ac_delim ++LIBS!$LIBS$ac_delim ++build_alias!$build_alias$ac_delim ++host_alias!$host_alias$ac_delim ++target_alias!$target_alias$ac_delim ++INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim ++INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim ++INSTALL_DATA!$INSTALL_DATA$ac_delim ++build!$build$ac_delim ++build_cpu!$build_cpu$ac_delim ++build_vendor!$build_vendor$ac_delim ++build_os!$build_os$ac_delim ++host!$host$ac_delim ++host_cpu!$host_cpu$ac_delim ++host_vendor!$host_vendor$ac_delim ++host_os!$host_os$ac_delim ++target!$target$ac_delim ++target_cpu!$target_cpu$ac_delim ++target_vendor!$target_vendor$ac_delim ++target_os!$target_os$ac_delim ++CYGPATH_W!$CYGPATH_W$ac_delim ++PACKAGE!$PACKAGE$ac_delim ++VERSION!$VERSION$ac_delim ++ACLOCAL!$ACLOCAL$ac_delim ++AUTOCONF!$AUTOCONF$ac_delim ++AUTOMAKE!$AUTOMAKE$ac_delim ++AUTOHEADER!$AUTOHEADER$ac_delim ++MAKEINFO!$MAKEINFO$ac_delim ++install_sh!$install_sh$ac_delim ++STRIP!$STRIP$ac_delim ++INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim ++mkdir_p!$mkdir_p$ac_delim ++AWK!$AWK$ac_delim ++SET_MAKE!$SET_MAKE$ac_delim ++am__leading_dot!$am__leading_dot$ac_delim ++AMTAR!$AMTAR$ac_delim ++am__tar!$am__tar$ac_delim ++am__untar!$am__untar$ac_delim ++subdirs!$subdirs$ac_delim ++CC!$CC$ac_delim ++DEPDIR!$DEPDIR$ac_delim ++am__include!$am__include$ac_delim ++am__quote!$am__quote$ac_delim ++AMDEP_TRUE!$AMDEP_TRUE$ac_delim ++AMDEP_FALSE!$AMDEP_FALSE$ac_delim ++AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim ++CCDEPMODE!$CCDEPMODE$ac_delim ++am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim ++am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim ++AS!$AS$ac_delim ++AR!$AR$ac_delim ++LD!$LD$ac_delim ++RANLIB!$RANLIB$ac_delim ++CCAS!$CCAS$ac_delim ++CCASFLAGS!$CCASFLAGS$ac_delim ++host_makefile_frag_path!$host_makefile_frag_path$ac_delim ++LIBOBJS!$LIBOBJS$ac_delim ++LTLIBOBJS!$LTLIBOBJS$ac_delim ++_ACEOF ++ ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then ++ break ++ elif $ac_last_try; then ++ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 ++echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} ++ { (exit 1); exit 1; }; } ++ else ++ ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +-fi # test -n "$CONFIG_FILES" ++done ++ ++ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` ++if test -n "$ac_eof"; then ++ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ++ ac_eof=`expr $ac_eof + 1` ++fi + ++cat >>$CONFIG_STATUS <<_ACEOF ++cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end ++/^[ ]*@host_makefile_frag@[ ]*$/{ ++r $host_makefile_frag ++d ++} ++_ACEOF ++sed ' ++s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g ++s/^/s,@/; s/!/@,|#_!!_#|/ ++:n ++t n ++s/'"$ac_delim"'$/,g/; t ++s/$/\\/; p ++N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ++' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF ++:end ++s/|#_!!_#|//g ++CEOF$ac_eof + _ACEOF ++ ++ ++# VPATH may cause trouble with some makes, so we remove $(srcdir), ++# ${srcdir} and @srcdir@ 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/ ++s/:*$// ++s/^[^=]*=[ ]*$// ++}' ++fi ++ + cat >>$CONFIG_STATUS <<\_ACEOF +-for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue +- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". +- case $ac_file in +- - | *:- | *:-:* ) # input from stdin +- cat >$tmp/stdin +- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` +- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; +- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` +- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; +- * ) ac_file_in=$ac_file.in ;; ++fi # test -n "$CONFIG_FILES" ++ ++ ++for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS ++do ++ case $ac_tag in ++ :[FHLC]) ac_mode=$ac_tag; continue;; ++ esac ++ case $ac_mode$ac_tag in ++ :[FHL]*:*);; ++ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 ++echo "$as_me: error: Invalid tag $ac_tag." >&2;} ++ { (exit 1); exit 1; }; };; ++ :[FH]-) ac_tag=-:-;; ++ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; ++ esac ++ ac_save_IFS=$IFS ++ IFS=: ++ set x $ac_tag ++ IFS=$ac_save_IFS ++ shift ++ ac_file=$1 ++ shift ++ ++ case $ac_mode in ++ :L) ac_source=$1;; ++ :[FH]) ++ ac_file_inputs= ++ for ac_f ++ do ++ case $ac_f in ++ -) ac_f="$tmp/stdin";; ++ *) # Look for the file first in the build tree, then in the source tree ++ # (if the path is not absolute). The absolute path cannot be DOS-style, ++ # because $ac_f cannot contain `:'. ++ test -f "$ac_f" || ++ case $ac_f in ++ [\\/$]*) false;; ++ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; ++ esac || ++ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 ++echo "$as_me: error: cannot find input file: $ac_f" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++ ac_file_inputs="$ac_file_inputs $ac_f" ++ done ++ ++ # Let's still pretend it is `configure' which instantiates (i.e., don't ++ # use $as_me), people would be surprised to read: ++ # /* config.h. Generated by config.status. */ ++ configure_input="Generated from "`IFS=: ++ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." ++ if test x"$ac_file" != x-; then ++ configure_input="$ac_file. $configure_input" ++ { echo "$as_me:$LINENO: creating $ac_file" >&5 ++echo "$as_me: creating $ac_file" >&6;} ++ fi ++ ++ case $ac_tag in ++ *:-:* | *:-) cat >"$tmp/stdin";; ++ esac ++ ;; + esac + +- # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. +- ac_dir=`(dirname "$ac_file") 2>/dev/null || ++ ac_dir=`$as_dirname -- "$ac_file" || + $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ +- X"$ac_file" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || + echo X"$ac_file" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` +- { if $as_mkdir_p; then +- mkdir -p "$ac_dir" +- else +- as_dir="$ac_dir" ++ { as_dir="$ac_dir" ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= +- while test ! -d "$as_dir"; do +- as_dirs="$as_dir $as_dirs" +- as_dir=`(dirname "$as_dir") 2>/dev/null || ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || + echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` ++ test -d "$as_dir" && break + done +- test ! -n "$as_dirs" || mkdir $as_dirs +- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } +- + ac_builddir=. + +-if test "$ac_dir" != .; then ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` +- # A "../" for each directory in $ac_dir_suffix. +- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +-else +- ac_dir_suffix= ac_top_builddir= +-fi ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix + + case $srcdir in +- .) # No --srcdir option. We are building in place. ++ .) # We are building in place. + ac_srcdir=. +- if test -z "$ac_top_builddir"; then +- ac_top_srcdir=. +- else +- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` +- fi ;; +- [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir ;; +- *) # Relative path. +- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_builddir$srcdir ;; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; + esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + +-# Do not use `cd foo && pwd` to compute absolute paths, because +-# the directories may not exist. +-case `pwd` in +-.) ac_abs_builddir="$ac_dir";; +-*) +- case "$ac_dir" in +- .) ac_abs_builddir=`pwd`;; +- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; +- *) ac_abs_builddir=`pwd`/"$ac_dir";; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_builddir=${ac_top_builddir}.;; +-*) +- case ${ac_top_builddir}. in +- .) ac_abs_top_builddir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; +- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_srcdir=$ac_srcdir;; +-*) +- case $ac_srcdir in +- .) ac_abs_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; +- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_srcdir=$ac_top_srcdir;; +-*) +- case $ac_top_srcdir in +- .) ac_abs_top_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; +- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; +- esac;; +-esac + ++ case $ac_mode in ++ :F) ++ # ++ # CONFIG_FILE ++ # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; +- *) ac_INSTALL=$ac_top_builddir$INSTALL ;; ++ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac ++_ACEOF + +- if test x"$ac_file" != x-; then +- { echo "$as_me:$LINENO: creating $ac_file" >&5 +-echo "$as_me: creating $ac_file" >&6;} +- rm -f "$ac_file" +- fi +- # Let's still pretend it is `configure' which instantiates (i.e., don't +- # use $as_me), people would be surprised to read: +- # /* config.h. Generated by config.status. */ +- if test x"$ac_file" = x-; then +- configure_input= +- else +- configure_input="$ac_file. " +- fi +- configure_input=$configure_input"Generated from `echo $ac_file_in | +- sed 's,.*/,,'` by configure." +- +- # First look for the input files in the build tree, otherwise in the +- # src tree. +- ac_file_inputs=`IFS=: +- for f in $ac_file_in; do +- case $f in +- -) echo $tmp/stdin ;; +- [\\/$]*) +- # Absolute (can't be DOS-style, as IFS=:) +- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +-echo "$as_me: error: cannot find input file: $f" >&2;} +- { (exit 1); exit 1; }; } +- echo "$f";; +- *) # Relative +- if test -f "$f"; then +- # Build tree +- echo "$f" +- elif test -f "$srcdir/$f"; then +- # Source tree +- echo "$srcdir/$f" +- else +- # /dev/null tree +- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +-echo "$as_me: error: cannot find input file: $f" >&2;} +- { (exit 1); exit 1; }; } +- fi;; +- esac +- done` || { (exit 1); exit 1; } ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If the template does not know about datarootdir, expand it. ++# FIXME: This hack should be removed a few years after 2.60. ++ac_datarootdir_hack=; ac_datarootdir_seen= ++ ++case `sed -n '/datarootdir/ { ++ p ++ q ++} ++/@datadir@/p ++/@docdir@/p ++/@infodir@/p ++/@localedir@/p ++/@mandir@/p ++' $ac_file_inputs` in ++*datarootdir*) ac_datarootdir_seen=yes;; ++*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) ++ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 ++echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ ac_datarootdir_hack=' ++ s&@datadir@&$datadir&g ++ s&@docdir@&$docdir&g ++ s&@infodir@&$infodir&g ++ s&@localedir@&$localedir&g ++ s&@mandir@&$mandir&g ++ s&\\\${datarootdir}&$datarootdir&g' ;; ++esac + _ACEOF ++ ++# Neutralize VPATH when `$srcdir' = `.'. ++# Shell code in configure.ac might set extrasub. ++# FIXME: do we really want to maintain this feature? + cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub + $extrasub +@@ -3477,149 +4123,43 @@ + cat >>$CONFIG_STATUS <<\_ACEOF + :t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b +-s,@configure_input@,$configure_input,;t t +-s,@srcdir@,$ac_srcdir,;t t +-s,@abs_srcdir@,$ac_abs_srcdir,;t t +-s,@top_srcdir@,$ac_top_srcdir,;t t +-s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t +-s,@builddir@,$ac_builddir,;t t +-s,@abs_builddir@,$ac_abs_builddir,;t t +-s,@top_builddir@,$ac_top_builddir,;t t +-s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +-s,@INSTALL@,$ac_INSTALL,;t t +-" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out +- rm -f $tmp/stdin +- if test x"$ac_file" != x-; then +- mv $tmp/out $ac_file +- else +- cat $tmp/out +- rm -f $tmp/out +- fi ++s&@configure_input@&$configure_input&;t t ++s&@top_builddir@&$ac_top_builddir_sub&;t t ++s&@srcdir@&$ac_srcdir&;t t ++s&@abs_srcdir@&$ac_abs_srcdir&;t t ++s&@top_srcdir@&$ac_top_srcdir&;t t ++s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t ++s&@builddir@&$ac_builddir&;t t ++s&@abs_builddir@&$ac_abs_builddir&;t t ++s&@abs_top_builddir@&$ac_abs_top_builddir&;t t ++s&@INSTALL@&$ac_INSTALL&;t t ++$ac_datarootdir_hack ++" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out ++ ++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"; } && ++ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' ++which seems to be undefined. Please make sure it is defined." >&5 ++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;} + +- # Run the commands associated with the file. ++ rm -f "$tmp/stdin" + case $ac_file in +- Makefile ) if test -n "$CONFIG_FILES"; then +- unset ac_file +- . ${libgloss_topdir}/config-ml.in +-fi ;; ++ -) cat "$tmp/out"; rm -f "$tmp/out";; ++ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; + esac +-done +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF +- +-# +-# CONFIG_COMMANDS section. +-# +-for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue +- ac_dest=`echo "$ac_file" | sed 's,:.*,,'` +- ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` +- ac_dir=`(dirname "$ac_dest") 2>/dev/null || +-$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$ac_dest" : 'X\(//\)[^/]' \| \ +- X"$ac_dest" : 'X\(//\)$' \| \ +- X"$ac_dest" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || +-echo X"$ac_dest" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } +- s/.*/./; q'` +- { if $as_mkdir_p; then +- mkdir -p "$ac_dir" +- else +- as_dir="$ac_dir" +- as_dirs= +- while test ! -d "$as_dir"; do +- as_dirs="$as_dir $as_dirs" +- as_dir=`(dirname "$as_dir") 2>/dev/null || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || +-echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } +- s/.*/./; q'` +- done +- test ! -n "$as_dirs" || mkdir $as_dirs +- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} +- { (exit 1); exit 1; }; }; } +- +- ac_builddir=. +- +-if test "$ac_dir" != .; then +- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` +- # A "../" for each directory in $ac_dir_suffix. +- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +-else +- ac_dir_suffix= ac_top_builddir= +-fi ++ ;; + +-case $srcdir in +- .) # No --srcdir option. We are building in place. +- ac_srcdir=. +- if test -z "$ac_top_builddir"; then +- ac_top_srcdir=. +- else +- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` +- fi ;; +- [\\/]* | ?:[\\/]* ) # Absolute path. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir ;; +- *) # Relative path. +- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_builddir$srcdir ;; +-esac + +-# Do not use `cd foo && pwd` to compute absolute paths, because +-# the directories may not exist. +-case `pwd` in +-.) ac_abs_builddir="$ac_dir";; +-*) +- case "$ac_dir" in +- .) ac_abs_builddir=`pwd`;; +- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; +- *) ac_abs_builddir=`pwd`/"$ac_dir";; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_builddir=${ac_top_builddir}.;; +-*) +- case ${ac_top_builddir}. in +- .) ac_abs_top_builddir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; +- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_srcdir=$ac_srcdir;; +-*) +- case $ac_srcdir in +- .) ac_abs_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; +- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_srcdir=$ac_top_srcdir;; +-*) +- case $ac_top_srcdir in +- .) ac_abs_top_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; +- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; +- esac;; +-esac ++ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 ++echo "$as_me: executing $ac_file commands" >&6;} ++ ;; ++ esac + + +- { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 +-echo "$as_me: executing $ac_dest commands" >&6;} +- case $ac_dest in +- depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ++ case $ac_file$ac_mode in ++ "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. +@@ -3629,17 +4169,28 @@ + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then +- dirpart=`(dirname "$mf") 2>/dev/null || ++ dirpart=`$as_dirname -- "$mf" || + $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ +- X"$mf" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$mf" : 'X\(/\)' \| . 2>/dev/null || + echo X"$mf" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` + else + continue +@@ -3662,53 +4213,83 @@ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue +- fdir=`(dirname "$file") 2>/dev/null || ++ fdir=`$as_dirname -- "$file" || + $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ +- X"$file" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$file" : 'X\(/\)' \| . 2>/dev/null || + echo X"$file" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` +- { if $as_mkdir_p; then +- mkdir -p $dirpart/$fdir +- else +- as_dir=$dirpart/$fdir ++ { as_dir=$dirpart/$fdir ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= +- while test ! -d "$as_dir"; do +- as_dirs="$as_dir $as_dirs" +- as_dir=`(dirname "$as_dir") 2>/dev/null || ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || + echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` ++ test -d "$as_dir" && break + done +- test ! -n "$as_dirs" || mkdir $as_dirs +- fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 +-echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } +- + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done + ;; ++ "Makefile":F) if test -n "$CONFIG_FILES"; then ++ unset ac_file ++ . ${libgloss_topdir}/config-ml.in ++fi ;; ++ + esac +-done +-_ACEOF ++done # for ac_tag + +-cat >>$CONFIG_STATUS <<\_ACEOF + + { (exit 0); exit 0; } + _ACEOF +@@ -3745,7 +4326,10 @@ + # Remove --cache-file and --srcdir arguments so they do not pile up. + ac_sub_configure_args= + ac_prev= +- for ac_arg in $ac_configure_args; do ++ eval "set x $ac_configure_args" ++ shift ++ for ac_arg ++ do + if test -n "$ac_prev"; then + ac_prev= + continue +@@ -3768,123 +4352,123 @@ + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; +- *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; ++ *) ++ case $ac_arg in ++ *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. +- ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" ++ ac_arg="--prefix=$prefix" ++ case $ac_arg in ++ *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" ++ ++ # Pass --silent ++ if test "$silent" = yes; then ++ ac_sub_configure_args="--silent $ac_sub_configure_args" ++ fi + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. +- test -d $srcdir/$ac_dir || continue ++ test -d "$srcdir/$ac_dir" || continue + +- { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 +-echo "$as_me: configuring in $ac_dir" >&6;} +- { if $as_mkdir_p; then +- mkdir -p "$ac_dir" +- else +- as_dir="$ac_dir" ++ ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" ++ echo "$as_me:$LINENO: $ac_msg" >&5 ++ echo "$ac_msg" >&6 ++ { as_dir="$ac_dir" ++ case $as_dir in #( ++ -*) as_dir=./$as_dir;; ++ esac ++ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= +- while test ! -d "$as_dir"; do +- as_dirs="$as_dir $as_dirs" +- as_dir=`(dirname "$as_dir") 2>/dev/null || ++ while :; do ++ case $as_dir in #( ++ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( ++ *) as_qdir=$as_dir;; ++ esac ++ as_dirs="'$as_qdir' $as_dirs" ++ as_dir=`$as_dirname -- "$as_dir" || + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| \ +- . : '\(.\)' 2>/dev/null || ++ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || + echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } +- /^X\(\/\/\)[^/].*/{ s//\1/; q; } +- /^X\(\/\/\)$/{ s//\1/; q; } +- /^X\(\/\).*/{ s//\1/; q; } ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)[^/].*/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\/\)$/{ ++ s//\1/ ++ q ++ } ++ /^X\(\/\).*/{ ++ s//\1/ ++ q ++ } + s/.*/./; q'` ++ test -d "$as_dir" && break + done +- test ! -n "$as_dirs" || mkdir $as_dirs +- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ++ test -z "$as_dirs" || eval "mkdir $as_dirs" ++ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 ++echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } +- + ac_builddir=. + +-if test "$ac_dir" != .; then ++case "$ac_dir" in ++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; ++*) + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` +- # A "../" for each directory in $ac_dir_suffix. +- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +-else +- ac_dir_suffix= ac_top_builddir= +-fi ++ # A ".." for each directory in $ac_dir_suffix. ++ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` ++ case $ac_top_builddir_sub in ++ "") ac_top_builddir_sub=. ac_top_build_prefix= ;; ++ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ++ esac ;; ++esac ++ac_abs_top_builddir=$ac_pwd ++ac_abs_builddir=$ac_pwd$ac_dir_suffix ++# for backward compatibility: ++ac_top_builddir=$ac_top_build_prefix + + case $srcdir in +- .) # No --srcdir option. We are building in place. ++ .) # We are building in place. + ac_srcdir=. +- if test -z "$ac_top_builddir"; then +- ac_top_srcdir=. +- else +- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` +- fi ;; +- [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_top_srcdir=$ac_top_builddir_sub ++ ac_abs_top_srcdir=$ac_pwd ;; ++ [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir ;; +- *) # Relative path. +- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_builddir$srcdir ;; +-esac +- +-# Do not use `cd foo && pwd` to compute absolute paths, because +-# the directories may not exist. +-case `pwd` in +-.) ac_abs_builddir="$ac_dir";; +-*) +- case "$ac_dir" in +- .) ac_abs_builddir=`pwd`;; +- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; +- *) ac_abs_builddir=`pwd`/"$ac_dir";; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_builddir=${ac_top_builddir}.;; +-*) +- case ${ac_top_builddir}. in +- .) ac_abs_top_builddir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; +- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_srcdir=$ac_srcdir;; +-*) +- case $ac_srcdir in +- .) ac_abs_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; +- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; +- esac;; +-esac +-case $ac_abs_builddir in +-.) ac_abs_top_srcdir=$ac_top_srcdir;; +-*) +- case $ac_top_srcdir in +- .) ac_abs_top_srcdir=$ac_abs_builddir;; +- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; +- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; +- esac;; ++ ac_top_srcdir=$srcdir ++ ac_abs_top_srcdir=$srcdir ;; ++ *) # Relative name. ++ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_build_prefix$srcdir ++ ac_abs_top_srcdir=$ac_pwd/$srcdir ;; + esac ++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + +- cd $ac_dir ++ cd "$ac_dir" + + # Check for guested configure; otherwise get Cygnus style configure. +- if test -f $ac_srcdir/configure.gnu; then +- ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" +- elif test -f $ac_srcdir/configure; then +- ac_sub_configure="$SHELL '$ac_srcdir/configure'" +- elif test -f $ac_srcdir/configure.in; then +- ac_sub_configure=$ac_configure ++ if test -f "$ac_srcdir/configure.gnu"; then ++ ac_sub_configure=$ac_srcdir/configure.gnu ++ elif test -f "$ac_srcdir/configure"; then ++ ac_sub_configure=$ac_srcdir/configure ++ elif test -f "$ac_srcdir/configure.in"; then ++ # This should be Cygnus configure. ++ ac_sub_configure=$ac_aux_dir/configure + else + { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} +@@ -3896,21 +4480,21 @@ + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; +- *) # Relative path. +- ac_sub_cache_file=$ac_top_builddir$cache_file ;; ++ *) # Relative name. ++ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; + esac + +- { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +-echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} ++ { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 ++echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. +- eval $ac_sub_configure $ac_sub_configure_args \ +- --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || ++ eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ ++ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || + { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 + echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} + { (exit 1); exit 1; }; } + fi + +- cd $ac_popdir ++ cd "$ac_popdir" + done + fi + +diff -Nbaur newlib-1.17.1/libgloss/configure.in newlib-1.17.1-ppc/libgloss/configure.in +--- newlib-1.17.1/libgloss/configure.in 2009-05-13 22:38:25.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/configure.in 2009-06-17 01:14:29.000000000 +0100 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -63,17 +4951,30 @@ diff -Nbaur newlib-1.17.0/libgloss/configure.in newlib-1.17.0-ppc/libgloss/confi if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" -@@ -28,6 +29,7 @@ - fi - - AC_CONFIG_SUBDIRS(libnosys) -+AC_CONFIG_SUBDIRS(libsysbase) +@@ -33,6 +34,9 @@ + dnl indicates whether to run configure within the libnosys subdirectory + config_libnosys=true ++dnl indicates whether to run configure within the libsysbase subdirectory ++config_libsysbase=true ++ case "${target}" in i[[3456]]86-*-elf* | i[[3456]]86-*-coff*) -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/Makefile.in newlib-1.17.0-ppc/libgloss/libsysbase/Makefile.in ---- newlib-1.17.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/Makefile.in 2008-12-30 09:33:00.000000000 +0000 + AC_CONFIG_SUBDIRS([i386]) +@@ -132,6 +136,10 @@ + AC_CONFIG_SUBDIRS([libnosys]) + fi + ++if test "${config_libsysbase}" = "true"; then ++ AC_CONFIG_SUBDIRS([libsysbase]) ++fi ++ + LIB_AC_PROG_CC + AS=${AS-as} + AC_SUBST(AS) +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/Makefile.in newlib-1.17.1-ppc/libgloss/libsysbase/Makefile.in +--- newlib-1.17.1/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/Makefile.in 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,147 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -222,9 +5123,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/Makefile.in newlib-1.17.0-ppc/libg + +config.status: configure + $(SHELL) config.status --recheck -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/_exit.c newlib-1.17.0-ppc/libgloss/libsysbase/_exit.c ---- newlib-1.17.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/_exit.c 2009-01-14 23:09:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/_exit.c newlib-1.17.1-ppc/libgloss/libsysbase/_exit.c +--- newlib-1.17.1/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/_exit.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,19 @@ +/* Stub version of _exit. */ + @@ -245,9 +5146,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/_exit.c newlib-1.17.0-ppc/libgloss + + while(1); +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/abort.c newlib-1.17.0-ppc/libgloss/libsysbase/abort.c ---- newlib-1.17.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/abort.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/abort.c newlib-1.17.1-ppc/libgloss/libsysbase/abort.c +--- newlib-1.17.1/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/abort.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,8 @@ +#include +#include @@ -257,9 +5158,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/abort.c newlib-1.17.0-ppc/libgloss + _exit (1); +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/acconfig.h newlib-1.17.0-ppc/libgloss/libsysbase/acconfig.h ---- newlib-1.17.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/acconfig.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/acconfig.h newlib-1.17.1-ppc/libgloss/libsysbase/acconfig.h +--- newlib-1.17.1/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/acconfig.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -290,9 +5191,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/acconfig.h newlib-1.17.0-ppc/libgl + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/aclocal.m4 newlib-1.17.0-ppc/libgloss/libsysbase/aclocal.m4 ---- newlib-1.17.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/aclocal.m4 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/aclocal.m4 newlib-1.17.1-ppc/libgloss/libsysbase/aclocal.m4 +--- newlib-1.17.1/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/aclocal.m4 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -638,9 +5539,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/aclocal.m4 newlib-1.17.0-ppc/libgl +]) + +m4_include([../acinclude.m4]) -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/build_argv.c newlib-1.17.0-ppc/libgloss/libsysbase/build_argv.c ---- newlib-1.17.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/build_argv.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/build_argv.c newlib-1.17.1-ppc/libgloss/libsysbase/build_argv.c +--- newlib-1.17.1/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/build_argv.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -673,9 +5574,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/build_argv.c newlib-1.17.0-ppc/lib + argstruct->argc = argCount; + argstruct->endARGV = &argv[argCount]; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/chdir.c newlib-1.17.0-ppc/libgloss/libsysbase/chdir.c ---- newlib-1.17.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/chdir.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/chdir.c newlib-1.17.1-ppc/libgloss/libsysbase/chdir.c +--- newlib-1.17.1/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/chdir.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,175 @@ +#include +#include @@ -852,9 +5753,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/chdir.c newlib-1.17.0-ppc/libgloss + + return buf; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/close.c newlib-1.17.0-ppc/libgloss/libsysbase/close.c ---- newlib-1.17.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/close.c 2009-01-04 19:33:03.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/close.c newlib-1.17.1-ppc/libgloss/libsysbase/close.c +--- newlib-1.17.1/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/close.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,42 @@ +#include "config.h" +#include <_ansi.h> @@ -898,9 +5799,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/close.c newlib-1.17.0-ppc/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/config.h.in newlib-1.17.0-ppc/libgloss/libsysbase/config.h.in ---- newlib-1.17.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/config.h.in 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/config.h.in newlib-1.17.1-ppc/libgloss/libsysbase/config.h.in +--- newlib-1.17.1/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/config.h.in 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -927,9 +5828,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/config.h.in newlib-1.17.0-ppc/libg + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure newlib-1.17.0-ppc/libgloss/libsysbase/configure ---- newlib-1.17.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/configure 2009-06-13 22:32:01.000000000 +0100 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/configure newlib-1.17.1-ppc/libgloss/libsysbase/configure +--- newlib-1.17.1/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/configure 2009-08-13 16:52:01.000000000 +0100 @@ -0,0 +1,3549 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -2428,7 +7329,7 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure newlib-1.17.0-ppc/libglo + ;; + mn10?00-*-*) + ;; -+ powerpc-devkitpro-eabi) ++ powerpc-*-eabi) + cat >>confdefs.h <<\_ACEOF +#define REENTRANT_SYSCALLS_PROVIDED 1 +_ACEOF @@ -4480,9 +9381,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure newlib-1.17.0-ppc/libglo + + + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure.in newlib-1.17.0-ppc/libgloss/libsysbase/configure.in ---- newlib-1.17.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/configure.in 2009-06-13 22:31:49.000000000 +0100 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/configure.in newlib-1.17.1-ppc/libgloss/libsysbase/configure.in +--- newlib-1.17.1/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/configure.in 2009-08-13 16:51:35.000000000 +0100 @@ -0,0 +1,207 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -4551,7 +9452,7 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure.in newlib-1.17.0-ppc/lib + ;; + mn10?00-*-*) + ;; -+ powerpc-devkitpro-eabi) ++ powerpc-*-eabi) + AC_DEFINE(REENTRANT_SYSCALLS_PROVIDED) + ;; + powerpcle-*-pe) @@ -4691,9 +9592,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure.in newlib-1.17.0-ppc/lib +AC_OUTPUT + + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dir.c newlib-1.17.0-ppc/libgloss/libsysbase/dir.c ---- newlib-1.17.0/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/dir.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/dir.c newlib-1.17.1-ppc/libgloss/libsysbase/dir.c +--- newlib-1.17.1/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/dir.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,94 @@ +#include +#include @@ -4789,9 +9690,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dir.c newlib-1.17.0-ppc/libgloss/l + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dirent.c newlib-1.17.0-ppc/libgloss/libsysbase/dirent.c ---- newlib-1.17.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/dirent.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/dirent.c newlib-1.17.1-ppc/libgloss/libsysbase/dirent.c +--- newlib-1.17.1/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/dirent.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,157 @@ +#include +#include @@ -4950,9 +9851,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dirent.c newlib-1.17.0-ppc/libglos + + return dirp->position; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/environ.c newlib-1.17.0-ppc/libgloss/libsysbase/environ.c ---- newlib-1.17.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/environ.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/environ.c newlib-1.17.1-ppc/libgloss/libsysbase/environ.c +--- newlib-1.17.1/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/environ.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -4960,9 +9861,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/environ.c newlib-1.17.0-ppc/libglo + +char *__env[1] = { 0 }; +char **environ = __env; -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/execve.c newlib-1.17.0-ppc/libgloss/libsysbase/execve.c ---- newlib-1.17.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/execve.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/execve.c newlib-1.17.1-ppc/libgloss/libsysbase/execve.c +--- newlib-1.17.1/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/execve.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,31 @@ +/* + * Stub version of execve. @@ -4995,9 +9896,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/execve.c newlib-1.17.0-ppc/libglos + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/flock.c newlib-1.17.0-ppc/libgloss/libsysbase/flock.c ---- newlib-1.17.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/flock.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/flock.c newlib-1.17.1-ppc/libgloss/libsysbase/flock.c +--- newlib-1.17.1/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/flock.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -5020,9 +9921,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/flock.c newlib-1.17.0-ppc/libgloss +{ + __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock); +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fork.c newlib-1.17.0-ppc/libgloss/libsysbase/fork.c ---- newlib-1.17.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/fork.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/fork.c newlib-1.17.1-ppc/libgloss/libsysbase/fork.c +--- newlib-1.17.1/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/fork.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,25 @@ +/* + * Stub version of fork. @@ -5049,9 +9950,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fork.c newlib-1.17.0-ppc/libgloss/ + r->_errno = ENOSYS; + return -1; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fstat.c newlib-1.17.0-ppc/libgloss/libsysbase/fstat.c ---- newlib-1.17.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/fstat.c 2009-01-14 23:40:33.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/fstat.c newlib-1.17.1-ppc/libgloss/libsysbase/fstat.c +--- newlib-1.17.1/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/fstat.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,50 @@ +#include "config.h" +#include <_ansi.h> @@ -5103,9 +10004,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fstat.c newlib-1.17.0-ppc/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fsync.c newlib-1.17.0-ppc/libgloss/libsysbase/fsync.c ---- newlib-1.17.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/fsync.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/fsync.c newlib-1.17.1-ppc/libgloss/libsysbase/fsync.c +--- newlib-1.17.1/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/fsync.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,36 @@ +#include "config.h" +#include <_ansi.h> @@ -5143,9 +10044,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fsync.c newlib-1.17.0-ppc/libgloss + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/ftruncate.c newlib-1.17.0-ppc/libgloss/libsysbase/ftruncate.c ---- newlib-1.17.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/ftruncate.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/ftruncate.c newlib-1.17.1-ppc/libgloss/libsysbase/ftruncate.c +--- newlib-1.17.1/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/ftruncate.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5184,9 +10085,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/ftruncate.c newlib-1.17.0-ppc/libg + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/getpid.c newlib-1.17.0-ppc/libgloss/libsysbase/getpid.c ---- newlib-1.17.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/getpid.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/getpid.c newlib-1.17.1-ppc/libgloss/libsysbase/getpid.c +--- newlib-1.17.1/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/getpid.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -5209,9 +10110,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/getpid.c newlib-1.17.0-ppc/libglos + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/gettod.c newlib-1.17.0-ppc/libgloss/libsysbase/gettod.c ---- newlib-1.17.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/gettod.c 2009-05-14 20:59:10.000000000 +0100 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/gettod.c newlib-1.17.1-ppc/libgloss/libsysbase/gettod.c +--- newlib-1.17.1/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/gettod.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,39 @@ +/* + * Stub version of gettimeofday. @@ -5252,9 +10153,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/gettod.c newlib-1.17.0-ppc/libglos + +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.c newlib-1.17.0-ppc/libgloss/libsysbase/handle_manager.c ---- newlib-1.17.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/handle_manager.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/handle_manager.c newlib-1.17.1-ppc/libgloss/libsysbase/handle_manager.c +--- newlib-1.17.1/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/handle_manager.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,47 @@ +#include +#include @@ -5303,9 +10204,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.c newlib-1.17.0-ppc + return handles[fd-3]; + +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.h newlib-1.17.0-ppc/libgloss/libsysbase/handle_manager.h ---- newlib-1.17.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/handle_manager.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/handle_manager.h newlib-1.17.1-ppc/libgloss/libsysbase/handle_manager.h +--- newlib-1.17.1/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/handle_manager.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,10 @@ +#ifndef __HANDLE_MANAGER_H__ +#define __HANDLE_MANAGER_H__ @@ -5317,9 +10218,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.h newlib-1.17.0-ppc +__handle *__get_handle(int fd); + +#endif -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/iosupport.c newlib-1.17.0-ppc/libgloss/libsysbase/iosupport.c ---- newlib-1.17.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/iosupport.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/iosupport.c newlib-1.17.1-ppc/libgloss/libsysbase/iosupport.c +--- newlib-1.17.1/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/iosupport.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,122 @@ +#include +#include @@ -5443,9 +10344,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/iosupport.c newlib-1.17.0-ppc/libg + } +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/isatty.c newlib-1.17.0-ppc/libgloss/libsysbase/isatty.c ---- newlib-1.17.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/isatty.c 2009-01-04 19:02:05.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/isatty.c newlib-1.17.1-ppc/libgloss/libsysbase/isatty.c +--- newlib-1.17.1/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/isatty.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,15 @@ +#include "config.h" +#include <_ansi.h> @@ -5462,9 +10363,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/isatty.c newlib-1.17.0-ppc/libglos +#endif + return 0; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/kill.c newlib-1.17.0-ppc/libgloss/libsysbase/kill.c ---- newlib-1.17.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/kill.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/kill.c newlib-1.17.1-ppc/libgloss/libsysbase/kill.c +--- newlib-1.17.1/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/kill.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -5489,9 +10390,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/kill.c newlib-1.17.0-ppc/libgloss/ + ptr->_errno = ENOSYS; + return -1; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/link.c newlib-1.17.0-ppc/libgloss/libsysbase/link.c ---- newlib-1.17.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/link.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/link.c newlib-1.17.1-ppc/libgloss/libsysbase/link.c +--- newlib-1.17.1/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/link.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5530,9 +10431,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/link.c newlib-1.17.0-ppc/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/lseek.c newlib-1.17.0-ppc/libgloss/libsysbase/lseek.c ---- newlib-1.17.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/lseek.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/lseek.c newlib-1.17.1-ppc/libgloss/libsysbase/lseek.c +--- newlib-1.17.1/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/lseek.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,55 @@ +#include "config.h" +#include <_ansi.h> @@ -5589,15 +10490,15 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/lseek.c newlib-1.17.0-ppc/libgloss + return ret; + +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/malloc_vars.c newlib-1.17.0-ppc/libgloss/libsysbase/malloc_vars.c ---- newlib-1.17.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/malloc_vars.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/malloc_vars.c newlib-1.17.1-ppc/libgloss/libsysbase/malloc_vars.c +--- newlib-1.17.1/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/malloc_vars.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/mkdir.c newlib-1.17.0-ppc/libgloss/libsysbase/mkdir.c ---- newlib-1.17.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/mkdir.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/mkdir.c newlib-1.17.1-ppc/libgloss/libsysbase/mkdir.c +--- newlib-1.17.1/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/mkdir.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,18 @@ +#include +#include @@ -5617,9 +10518,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/mkdir.c newlib-1.17.0-ppc/libgloss + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/open.c newlib-1.17.0-ppc/libgloss/libsysbase/open.c ---- newlib-1.17.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/open.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/open.c newlib-1.17.1-ppc/libgloss/libsysbase/open.c +--- newlib-1.17.1/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/open.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -5678,9 +10579,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/open.c newlib-1.17.0-ppc/libgloss/ + + return fd; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/read.c newlib-1.17.0-ppc/libgloss/libsysbase/read.c ---- newlib-1.17.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/read.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/read.c newlib-1.17.1-ppc/libgloss/libsysbase/read.c +--- newlib-1.17.1/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/read.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5730,9 +10631,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/read.c newlib-1.17.0-ppc/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/rename.c newlib-1.17.0-ppc/libgloss/libsysbase/rename.c ---- newlib-1.17.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/rename.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/rename.c newlib-1.17.1-ppc/libgloss/libsysbase/rename.c +--- newlib-1.17.1/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/rename.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,39 @@ +#include +#include @@ -5773,9 +10674,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/rename.c newlib-1.17.0-ppc/libglos + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/sbrk.c newlib-1.17.0-ppc/libgloss/libsysbase/sbrk.c ---- newlib-1.17.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/sbrk.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/sbrk.c newlib-1.17.1-ppc/libgloss/libsysbase/sbrk.c +--- newlib-1.17.1/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/sbrk.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,26 @@ +#include "config.h" +#include @@ -5803,9 +10704,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/sbrk.c newlib-1.17.0-ppc/libgloss/ + } + +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/stat.c newlib-1.17.0-ppc/libgloss/libsysbase/stat.c ---- newlib-1.17.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/stat.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/stat.c newlib-1.17.1-ppc/libgloss/libsysbase/stat.c +--- newlib-1.17.1/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/stat.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -5846,9 +10747,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/stat.c newlib-1.17.0-ppc/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/statvfs.c newlib-1.17.0-ppc/libgloss/libsysbase/statvfs.c ---- newlib-1.17.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/statvfs.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/statvfs.c newlib-1.17.1-ppc/libgloss/libsysbase/statvfs.c +--- newlib-1.17.1/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/statvfs.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,23 @@ +#include +#include @@ -5873,9 +10774,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/statvfs.c newlib-1.17.0-ppc/libglo + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/syscall_support.c newlib-1.17.0-ppc/libgloss/libsysbase/syscall_support.c ---- newlib-1.17.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/syscall_support.c 2009-05-14 18:26:39.000000000 +0100 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/syscall_support.c newlib-1.17.1-ppc/libgloss/libsysbase/syscall_support.c +--- newlib-1.17.1/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/syscall_support.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,66 @@ +#include + @@ -5943,9 +10844,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/syscall_support.c newlib-1.17.0-pp + } +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/truncate.c newlib-1.17.0-ppc/libgloss/libsysbase/truncate.c ---- newlib-1.17.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/truncate.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/truncate.c newlib-1.17.1-ppc/libgloss/libsysbase/truncate.c +--- newlib-1.17.1/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/truncate.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,59 @@ +#include "config.h" +#include <_ansi.h> @@ -6006,9 +10907,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/truncate.c newlib-1.17.0-ppc/libgl + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/unlink.c newlib-1.17.0-ppc/libgloss/libsysbase/unlink.c ---- newlib-1.17.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/unlink.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/unlink.c newlib-1.17.1-ppc/libgloss/libsysbase/unlink.c +--- newlib-1.17.1/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/unlink.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,33 @@ +#include "config.h" +#include <_ansi.h> @@ -6043,9 +10944,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/unlink.c newlib-1.17.0-ppc/libglos + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/wait.c newlib-1.17.0-ppc/libgloss/libsysbase/wait.c ---- newlib-1.17.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/wait.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/wait.c newlib-1.17.1-ppc/libgloss/libsysbase/wait.c +--- newlib-1.17.1/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/wait.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,28 @@ +/* + * Stub version of wait. @@ -6075,9 +10976,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/wait.c newlib-1.17.0-ppc/libgloss/ + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/warning.h newlib-1.17.0-ppc/libgloss/libsysbase/warning.h ---- newlib-1.17.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/warning.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/warning.h newlib-1.17.1-ppc/libgloss/libsysbase/warning.h +--- newlib-1.17.1/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/warning.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -6122,9 +11023,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/warning.h newlib-1.17.0-ppc/libglo + "warning: " #name " is not implemented and will always fail") + +#endif /* __WARNING_H__ */ -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/write.c newlib-1.17.0-ppc/libgloss/libsysbase/write.c ---- newlib-1.17.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/libsysbase/write.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/libsysbase/write.c newlib-1.17.1-ppc/libgloss/libsysbase/write.c +--- newlib-1.17.1/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/libsysbase/write.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -6174,9 +11075,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/write.c newlib-1.17.0-ppc/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/rs6000/Makefile.in newlib-1.17.0-ppc/libgloss/rs6000/Makefile.in ---- newlib-1.17.0/libgloss/rs6000/Makefile.in 2005-08-30 17:11:27.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/rs6000/Makefile.in 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/rs6000/Makefile.in newlib-1.17.1-ppc/libgloss/rs6000/Makefile.in +--- newlib-1.17.1/libgloss/rs6000/Makefile.in 2005-08-30 17:11:27.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/rs6000/Makefile.in 2009-06-16 23:32:27.000000000 +0100 @@ -121,6 +121,9 @@ MBX_TEST = mbx-test MBX_INSTALL = install-mbx @@ -6224,9 +11125,9 @@ diff -Nbaur newlib-1.17.0/libgloss/rs6000/Makefile.in newlib-1.17.0-ppc/libgloss doc: info: install-info: -diff -Nbaur newlib-1.17.0/libgloss/rs6000/crtmain.c newlib-1.17.0-ppc/libgloss/rs6000/crtmain.c ---- newlib-1.17.0/libgloss/rs6000/crtmain.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/libgloss/rs6000/crtmain.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/libgloss/rs6000/crtmain.c newlib-1.17.1-ppc/libgloss/rs6000/crtmain.c +--- newlib-1.17.1/libgloss/rs6000/crtmain.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/libgloss/rs6000/crtmain.c 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,19 @@ +#include + @@ -6247,24 +11148,26 @@ diff -Nbaur newlib-1.17.0/libgloss/rs6000/crtmain.c newlib-1.17.0-ppc/libgloss/r + SYS_PreMain(); + exit ( main(__system_argv->argc,__system_argv->argv) ); +} -diff -Nbaur newlib-1.17.0/newlib/configure.host newlib-1.17.0-ppc/newlib/configure.host ---- newlib-1.17.0/newlib/configure.host 2008-12-17 23:09:09.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/configure.host 2009-06-13 22:31:24.000000000 +0100 -@@ -683,6 +683,11 @@ +diff -Nbaur newlib-1.17.1/newlib/configure.host newlib-1.17.1-ppc/newlib/configure.host +--- newlib-1.17.1/newlib/configure.host 2009-04-22 20:52:49.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/configure.host 2009-08-13 16:42:30.000000000 +0100 +@@ -698,7 +698,12 @@ default_newlib_io_long_long="yes" newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ;; -+ powerpc-devkitpro-eabi) +- powerpc*-*-eabi* | \ ++ powerpc*-*-eabi*) + default_newlib_io_long_long="yes" + newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED" ++ newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections" + syscall_dir=syscalls + ;; - powerpc*-*-eabi* | \ powerpc*-*-elf* | \ powerpc*-*-linux* | \ -diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h newlib-1.17.0-ppc/newlib/libc/include/stdint.h ---- newlib-1.17.0/newlib/libc/include/stdint.h 2008-12-10 21:27:58.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/include/stdint.h 2008-12-30 09:33:00.000000000 +0000 + powerpc*-*-rtem* | \ +diff -Nbaur newlib-1.17.1/newlib/libc/include/stdint.h newlib-1.17.1-ppc/newlib/libc/include/stdint.h +--- newlib-1.17.1/newlib/libc/include/stdint.h 2009-04-24 22:55:07.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/stdint.h 2009-06-16 23:32:27.000000000 +0100 @@ -75,14 +75,14 @@ #endif #endif @@ -6285,9 +11188,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h newlib-1.17.0-ppc/newlib/ #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; typedef unsigned short uint32_t; -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dir.h newlib-1.17.0-ppc/newlib/libc/include/sys/dir.h ---- newlib-1.17.0/newlib/libc/include/sys/dir.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/dir.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/dir.h newlib-1.17.1-ppc/newlib/libc/include/sys/dir.h +--- newlib-1.17.1/newlib/libc/include/sys/dir.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/dir.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,32 @@ +/* + @@ -6321,9 +11224,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dir.h newlib-1.17.0-ppc/newlib +#endif + +#endif // _dir_h_ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dirent.h newlib-1.17.0-ppc/newlib/libc/include/sys/dirent.h ---- newlib-1.17.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/dirent.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/dirent.h newlib-1.17.1-ppc/newlib/libc/include/sys/dirent.h +--- newlib-1.17.1/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/dirent.h 2009-06-16 23:32:27.000000000 +0100 @@ -4,10 +4,39 @@ not support , we will get this file which uses #error to force an error. */ @@ -6366,9 +11269,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dirent.h newlib-1.17.0-ppc/new + +#endif // _dirent_h_ \ No newline at end of file -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/iosupport.h newlib-1.17.0-ppc/newlib/libc/include/sys/iosupport.h ---- newlib-1.17.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/iosupport.h 2009-05-14 18:25:57.000000000 +0100 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/iosupport.h newlib-1.17.1-ppc/newlib/libc/include/sys/iosupport.h +--- newlib-1.17.1/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/iosupport.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,85 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ @@ -6455,9 +11358,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/iosupport.h newlib-1.17.0-ppc/ +//--------------------------------------------------------------------------------- +#endif // __iosupp_h__ +//--------------------------------------------------------------------------------- -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/reent.h newlib-1.17.0-ppc/newlib/libc/include/sys/reent.h ---- newlib-1.17.0/newlib/libc/include/sys/reent.h 2008-12-10 23:43:12.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/reent.h 2009-05-11 18:47:12.000000000 +0100 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/reent.h newlib-1.17.1-ppc/newlib/libc/include/sys/reent.h +--- newlib-1.17.1/newlib/libc/include/sys/reent.h 2009-03-24 10:13:27.000000000 +0000 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/reent.h 2009-06-16 23:32:27.000000000 +0100 @@ -203,7 +203,7 @@ /* Unix stdio files get aligned to block boundaries on fseek() */ @@ -6467,9 +11370,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/reent.h newlib-1.17.0-ppc/newl #ifndef _REENT_SMALL struct _reent *_data; /* Here for binary compatibility? Remove? */ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/statvfs.h newlib-1.17.0-ppc/newlib/libc/include/sys/statvfs.h ---- newlib-1.17.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/statvfs.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/statvfs.h newlib-1.17.1-ppc/newlib/libc/include/sys/statvfs.h +--- newlib-1.17.1/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/statvfs.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -6507,9 +11410,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/statvfs.h newlib-1.17.0-ppc/ne + +#endif // _SYS_STATVFS_H \ No newline at end of file -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/syslimits.h newlib-1.17.0-ppc/newlib/libc/include/sys/syslimits.h ---- newlib-1.17.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/syslimits.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/syslimits.h newlib-1.17.1-ppc/newlib/libc/include/sys/syslimits.h +--- newlib-1.17.1/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/syslimits.h 2009-06-16 23:32:27.000000000 +0100 @@ -44,7 +44,7 @@ #define LINK_MAX 32767 /* max file link count */ #define MAX_CANON 255 /* max bytes in term canon input line */ @@ -6519,9 +11422,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/syslimits.h newlib-1.17.0-ppc/ #define NGROUPS_MAX 16 /* max supplemental group id's */ #ifndef OPEN_MAX #define OPEN_MAX 64 /* max open files per process */ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-ppc/newlib/libc/include/sys/types.h ---- newlib-1.17.0/newlib/libc/include/sys/types.h 2008-09-26 17:15:50.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/types.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/types.h newlib-1.17.1-ppc/newlib/libc/include/sys/types.h +--- newlib-1.17.1/newlib/libc/include/sys/types.h 2008-09-26 17:15:50.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/types.h 2009-06-16 23:32:27.000000000 +0100 @@ -130,7 +130,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -6541,9 +11444,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-ppc/newl #include -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/unistd.h newlib-1.17.0-ppc/newlib/libc/include/sys/unistd.h ---- newlib-1.17.0/newlib/libc/include/sys/unistd.h 2008-10-17 00:03:40.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/include/sys/unistd.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/include/sys/unistd.h newlib-1.17.1-ppc/newlib/libc/include/sys/unistd.h +--- newlib-1.17.1/newlib/libc/include/sys/unistd.h 2008-10-17 00:03:40.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/include/sys/unistd.h 2009-06-16 23:32:27.000000000 +0100 @@ -211,12 +211,10 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); #endif @@ -6557,54 +11460,42 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/unistd.h newlib-1.17.0-ppc/new #if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(getdtablesize, (void)); -diff -Nbaur newlib-1.17.0/newlib/libc/locale/locale.c newlib-1.17.0-ppc/newlib/libc/locale/locale.c ---- newlib-1.17.0/newlib/libc/locale/locale.c 2004-04-23 22:44:21.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/locale/locale.c 2008-12-30 09:33:00.000000000 +0000 -@@ -95,7 +95,7 @@ - #ifdef __CYGWIN__ - int __declspec(dllexport) __mb_cur_max = 1; - #else --int __mb_cur_max = 1; -+int __mb_cur_max = 6; - #endif +diff -Nbaur newlib-1.17.1/newlib/libc/locale/locale.c newlib-1.17.1-ppc/newlib/libc/locale/locale.c +--- newlib-1.17.1/newlib/libc/locale/locale.c 2009-06-16 20:45:17.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/locale/locale.c 2009-06-16 23:48:45.000000000 +0100 +@@ -149,7 +149,7 @@ + #define _LC_LAST 7 + #define ENCODING_LEN 31 + +-int __EXPORT __mb_cur_max = 1; ++int __EXPORT __mb_cur_max = 6; int __nlocale_changed = 0; -@@ -112,8 +112,8 @@ + int __mlocale_changed = 0; +@@ -182,13 +182,13 @@ + * Current locales for each category + */ + static char current_categories[_LC_LAST][ENCODING_LEN + 1] = { +- "C", +- "C", +- "C", +- "C", +- "C", +- "C", +- "C", ++ "UTF-8", ++ "UTF-8", ++ "UTF-8", ++ "UTF-8", ++ "UTF-8", ++ "UTF-8", ++ "UTF-8", + }; - char * _EXFUN(__locale_charset,(_VOID)); - --static char *charset = "ISO-8859-1"; --char __lc_ctype[12] = "C"; -+static char *charset = "UTF-8"; -+char __lc_ctype[12] = "C-UTF-8"; - - char * - _DEFUN(_setlocale_r, (p, category, locale), -@@ -131,9 +131,9 @@ - } - return "C"; - #else -- static char last_lc_ctype[12] = "C"; -- static char lc_messages[12] = "C"; -- static char last_lc_messages[12] = "C"; -+ static char last_lc_ctype[12] = "C-UTF-8"; -+ static char lc_messages[12] = "C-UTF-8"; -+ static char last_lc_messages[12] = "C-UTF-8"; - - if (locale) - { -@@ -185,7 +185,7 @@ - { - if (strcmp (locale, "C") && strcmp (locale, "")) - return 0; -- locale_name = "C"; /* C is always the default locale */ -+ locale_name = "C-UTF-8"; /* C is always the default locale */ - } - - if (category == LC_CTYPE) -diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/machine/_types.h newlib-1.17.0-ppc/newlib/libc/machine/powerpc/machine/_types.h ---- newlib-1.17.0/newlib/libc/machine/powerpc/machine/_types.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/machine/powerpc/machine/_types.h 2008-12-30 09:33:00.000000000 +0000 + /* +diff -Nbaur newlib-1.17.1/newlib/libc/machine/powerpc/machine/_types.h newlib-1.17.1-ppc/newlib/libc/machine/powerpc/machine/_types.h +--- newlib-1.17.1/newlib/libc/machine/powerpc/machine/_types.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/machine/powerpc/machine/_types.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,15 @@ +/* + * $Id: newlib-1.16.0.patch,v 1.8 2008-11-29 12:08:00 wntrmute Exp $ @@ -6621,9 +11512,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/machine/_types.h newlib-1. +typedef long long _off_t; + +#endif // _MACHINE__TYPES_H -diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.17.0-ppc/newlib/libc/machine/powerpc/sys/lock.h ---- newlib-1.17.0/newlib/libc/machine/powerpc/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/machine/powerpc/sys/lock.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/machine/powerpc/sys/lock.h newlib-1.17.1-ppc/newlib/libc/machine/powerpc/sys/lock.h +--- newlib-1.17.1/newlib/libc/machine/powerpc/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/machine/powerpc/sys/lock.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,53 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ @@ -6678,9 +11569,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.17.0-p +extern int __libc_lock_release(int*); + +#endif /* __SYS_LOCK_H__ */ -diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.17.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h ---- newlib-1.17.0/newlib/libc/machine/powerpc/sys/stdio.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.17.1-ppc/newlib/libc/machine/powerpc/sys/stdio.h +--- newlib-1.17.1/newlib/libc/machine/powerpc/sys/stdio.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/machine/powerpc/sys/stdio.h 2009-06-16 23:32:27.000000000 +0100 @@ -0,0 +1,25 @@ +#ifndef _NEWLIB_STDIO_H +#define _NEWLIB_STDIO_H @@ -6707,9 +11598,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.17.0- + +#endif /* _NEWLIB_STDIO_H */ + -diff -Nbaur newlib-1.17.0/newlib/libc/misc/init.c newlib-1.17.0-ppc/newlib/libc/misc/init.c ---- newlib-1.17.0/newlib/libc/misc/init.c 2005-01-07 18:04:39.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/misc/init.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/misc/init.c newlib-1.17.1-ppc/newlib/libc/misc/init.c +--- newlib-1.17.1/newlib/libc/misc/init.c 2009-04-16 20:16:41.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/misc/init.c 2009-06-16 23:32:27.000000000 +0100 @@ -57,4 +57,8 @@ _fini (); @@ -6719,72 +11610,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/misc/init.c newlib-1.17.0-ppc/newlib/libc/ +#error why am I not defined + #endif -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fgetc.c newlib-1.17.0-ppc/newlib/libc/stdio/fgetc.c ---- newlib-1.17.0/newlib/libc/stdio/fgetc.c 2006-09-26 22:22:19.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fgetc.c 2009-01-15 21:23:53.000000000 +0000 -@@ -93,9 +93,11 @@ - #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) - int result; - CHECK_INIT(_REENT, fp); -+ __sfp_lock_acquire (); - _flockfile (fp); - result = __sgetc_r (_REENT, fp); - _funlockfile (fp); -+ __sfp_lock_release (); - return result; - #else - return _fgetc_r (_REENT, fp); -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fgets.c newlib-1.17.0-ppc/newlib/libc/stdio/fgets.c ---- newlib-1.17.0/newlib/libc/stdio/fgets.c 2006-09-26 22:22:19.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fgets.c 2009-01-15 21:23:53.000000000 +0000 -@@ -98,6 +98,7 @@ - - CHECK_INIT(ptr, fp); - -+ __sfp_lock_acquire (); - _flockfile (fp); - #ifdef __SCLE - if (fp->_flags & __SCLE) -@@ -113,10 +114,12 @@ - if (c == EOF && s == buf) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return NULL; - } - *s = 0; - _funlockfile (fp); -+ __sfp_lock_release (); - return buf; - } - #endif -@@ -135,6 +138,7 @@ - if (s == buf) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return 0; - } - break; -@@ -160,6 +164,7 @@ - _CAST_VOID memcpy ((_PTR) s, (_PTR) p, len); - s[len] = 0; - _funlockfile (fp); -+ __sfp_lock_release (); - return (buf); - } - fp->_r -= len; -@@ -170,6 +175,7 @@ - while ((n -= len) != 0); - *s = 0; - _funlockfile (fp); -+ __sfp_lock_release (); - return buf; - } - -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/findfp.c newlib-1.17.0-ppc/newlib/libc/stdio/findfp.c ---- newlib-1.17.0/newlib/libc/stdio/findfp.c 2008-12-10 23:43:12.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/findfp.c 2009-01-15 21:23:53.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/stdio/findfp.c newlib-1.17.1-ppc/newlib/libc/stdio/findfp.c +--- newlib-1.17.1/newlib/libc/stdio/findfp.c 2008-12-10 23:43:12.000000000 +0000 ++++ newlib-1.17.1-ppc/newlib/libc/stdio/findfp.c 2009-06-16 23:32:33.000000000 +0100 @@ -222,7 +222,8 @@ /* POSIX requires stderr to be opened for reading and writing, even @@ -6795,9 +11623,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/stdio/findfp.c newlib-1.17.0-ppc/newlib/li __sinit_lock_release (); } -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fopen.c newlib-1.17.0-ppc/newlib/libc/stdio/fopen.c ---- newlib-1.17.0/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fopen.c 2009-05-14 15:24:25.000000000 +0100 +diff -Nbaur newlib-1.17.1/newlib/libc/stdio/fopen.c newlib-1.17.1-ppc/newlib/libc/stdio/fopen.c +--- newlib-1.17.1/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/stdio/fopen.c 2009-06-16 23:32:33.000000000 +0100 @@ -151,6 +151,9 @@ _flockfile (fp); @@ -6808,239 +11636,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fopen.c newlib-1.17.0-ppc/newlib/lib fp->_file = f; fp->_flags = flags; fp->_cookie = (_PTR) fp; -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fread.c newlib-1.17.0-ppc/newlib/libc/stdio/fread.c ---- newlib-1.17.0/newlib/libc/stdio/fread.c 2008-12-11 17:27:56.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fread.c 2009-01-15 21:23:53.000000000 +0000 -@@ -146,6 +146,7 @@ - - CHECK_INIT(ptr, fp); - -+ __sfp_lock_acquire (); - _flockfile (fp); - ORIENT (fp, -1); - if (fp->_r < 0) -@@ -196,10 +197,12 @@ - if (fp->_flags & __SCLE) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return crlf_r (ptr, fp, buf, total-resid, 1) / size; - } - #endif - _funlockfile (fp); -+ __sfp_lock_release (); - return (total - resid) / size; - } - } -@@ -221,10 +224,12 @@ - if (fp->_flags & __SCLE) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return crlf_r (ptr, fp, buf, total-resid, 1) / size; - } - #endif - _funlockfile (fp); -+ __sfp_lock_release (); - return (total - resid) / size; - } - } -@@ -238,10 +243,12 @@ - if (fp->_flags & __SCLE) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return crlf_r(ptr, fp, buf, total, 0) / size; - } - #endif - _funlockfile (fp); -+ __sfp_lock_release (); - return count; - } - -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fseek.c newlib-1.17.0-ppc/newlib/libc/stdio/fseek.c ---- newlib-1.17.0/newlib/libc/stdio/fseek.c 2008-12-12 15:45:19.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fseek.c 2009-01-15 21:23:53.000000000 +0000 -@@ -138,6 +138,7 @@ - - CHECK_INIT (ptr, fp); - -+ __sfp_lock_acquire (); - _flockfile (fp); - - /* If we've been doing some writing, and we're in append mode -@@ -155,6 +156,7 @@ - { - ptr->_errno = ESPIPE; /* ??? */ - _funlockfile (fp); -+ __sfp_lock_release (); - return EOF; - } - -@@ -180,6 +182,7 @@ - if (curoff == -1L) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return EOF; - } - } -@@ -205,6 +208,7 @@ - default: - ptr->_errno = EINVAL; - _funlockfile (fp); -+ __sfp_lock_release (); - return (EOF); - } - -@@ -263,6 +267,8 @@ - if ((long)target != target) - { - ptr->_errno = EOVERFLOW; -+ _funlockfile (fp); -+ __sfp_lock_release (); - return EOF; - } - -@@ -319,6 +325,7 @@ - fp->_flags &= ~__SEOF; - memset (&fp->_mbstate, 0, sizeof (_mbstate_t)); - _funlockfile (fp); -+ __sfp_lock_release (); - return 0; - } - -@@ -349,6 +356,7 @@ - } - memset (&fp->_mbstate, 0, sizeof (_mbstate_t)); - _funlockfile (fp); -+ __sfp_lock_release (); - return 0; - - /* -@@ -361,6 +369,7 @@ - || seekfn (ptr, fp->_cookie, offset, whence) == POS_ERR) - { - _funlockfile (fp); -+ __sfp_lock_release (); - return EOF; - } - /* success: clear EOF indicator and discard ungetc() data */ -@@ -379,6 +388,7 @@ - fp->_flags &= ~__SNPT; - memset (&fp->_mbstate, 0, sizeof (_mbstate_t)); - _funlockfile (fp); -+ __sfp_lock_release (); - return 0; - } - -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fwalk.c newlib-1.17.0-ppc/newlib/libc/stdio/fwalk.c ---- newlib-1.17.0/newlib/libc/stdio/fwalk.c 2004-09-16 22:26:51.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/fwalk.c 2009-01-15 21:23:53.000000000 +0000 -@@ -40,10 +40,8 @@ - for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++) - if (fp->_flags != 0) - { -- _flockfile (fp); - if (fp->_flags != 0 && fp->_file != -1) - ret |= (*function) (fp); -- _funlockfile (fp); - } - - return ret; -@@ -64,10 +62,8 @@ - for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++) - if (fp->_flags != 0) - { -- _flockfile (fp); - if (fp->_flags != 0 && fp->_file != -1) - ret |= (*reent_function) (ptr, fp); -- _funlockfile (fp); - } - - return ret; -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/getc.c newlib-1.17.0-ppc/newlib/libc/stdio/getc.c ---- newlib-1.17.0/newlib/libc/stdio/getc.c 2006-09-26 22:22:19.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/getc.c 2009-01-15 21:23:53.000000000 +0000 -@@ -92,9 +92,11 @@ - { - int result; - CHECK_INIT (ptr, fp); -+ __sfp_lock_acquire (); - _flockfile (fp); - result = __sgetc_r (ptr, fp); - _funlockfile (fp); -+ __sfp_lock_release (); - return result; - } - -@@ -106,9 +108,11 @@ - { - int result; - CHECK_INIT (_REENT, fp); -+ __sfp_lock_acquire (); - _flockfile (fp); - result = __sgetc_r (_REENT, fp); - _funlockfile (fp); -+ __sfp_lock_release (); - return result; - } - -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/getdelim.c newlib-1.17.0-ppc/newlib/libc/stdio/getdelim.c ---- newlib-1.17.0/newlib/libc/stdio/getdelim.c 2006-09-26 22:22:19.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/getdelim.c 2009-01-15 21:23:53.000000000 +0000 -@@ -81,6 +81,7 @@ - - CHECK_INIT (_REENT, fp); - -+ __sfp_lock_acquire (); - _flockfile (fp); - - numbytes = *n; -@@ -130,6 +131,7 @@ - } - - _funlockfile (fp); -+ __sfp_lock_release (); - - /* if no input data, return failure */ - if (ptr == buf) -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/vfscanf.c newlib-1.17.0-ppc/newlib/libc/stdio/vfscanf.c ---- newlib-1.17.0/newlib/libc/stdio/vfscanf.c 2008-12-11 17:27:56.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/stdio/vfscanf.c 2009-01-15 21:23:53.000000000 +0000 -@@ -489,6 +489,7 @@ - # define GET_ARG(n, ap, type) (va_arg (ap, type)) - #endif - -+ __sfp_lock_acquire (); - _flockfile (fp); - - ORIENT (fp, -1); -@@ -779,6 +780,7 @@ - */ - case '\0': /* compat */ - _funlockfile (fp); -+ __sfp_lock_release (); - return EOF; - - default: /* compat */ -@@ -1577,11 +1579,13 @@ - invalid format string), return EOF if no matches yet, else number - of matches made prior to failure. */ - _funlockfile (fp); -+ __sfp_lock_release (); - return nassigned && !(fp->_flags & __SERR) ? nassigned : EOF; - match_failure: - all_done: - /* Return number of matches, which can be 0 on match failure. */ - _funlockfile (fp); -+ __sfp_lock_release (); - return nassigned; - } - -diff -Nbaur newlib-1.17.0/newlib/libc/stdlib/mlock.c newlib-1.17.0-ppc/newlib/libc/stdlib/mlock.c ---- newlib-1.17.0/newlib/libc/stdlib/mlock.c 2005-10-28 22:21:07.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/stdlib/mlock.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/stdlib/mlock.c newlib-1.17.1-ppc/newlib/libc/stdlib/mlock.c +--- newlib-1.17.1/newlib/libc/stdlib/mlock.c 2005-10-28 22:21:07.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/stdlib/mlock.c 2009-06-16 23:32:46.000000000 +0100 @@ -39,6 +39,7 @@ #include #include @@ -7056,9 +11654,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/stdlib/mlock.c newlib-1.17.0-ppc/newlib/li - +*/ #endif -diff -Nbaur newlib-1.17.0/newlib/libc/syscalls/Makefile.am newlib-1.17.0-ppc/newlib/libc/syscalls/Makefile.am ---- newlib-1.17.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/syscalls/Makefile.am 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/syscalls/Makefile.am newlib-1.17.1-ppc/newlib/libc/syscalls/Makefile.am +--- newlib-1.17.1/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 ++++ newlib-1.17.1-ppc/newlib/libc/syscalls/Makefile.am 2009-06-16 23:32:46.000000000 +0100 @@ -22,7 +22,6 @@ sysunlink.c \ syswrite.c @@ -7067,9 +11665,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/syscalls/Makefile.am newlib-1.17.0-ppc/new ## Weed out EL/IX level 3 interfaces if necessary if ELIX_LEVEL_1 ELIX_SOURCES = -diff -Nbaur newlib-1.17.0/newlib/libc/time/asctime_r.c newlib-1.17.0-ppc/newlib/libc/time/asctime_r.c ---- newlib-1.17.0/newlib/libc/time/asctime_r.c 2000-05-10 18:58:29.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libc/time/asctime_r.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libc/time/asctime_r.c newlib-1.17.1-ppc/newlib/libc/time/asctime_r.c +--- newlib-1.17.1/newlib/libc/time/asctime_r.c 2000-05-10 18:58:29.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libc/time/asctime_r.c 2009-06-16 23:32:46.000000000 +0100 @@ -18,7 +18,7 @@ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; @@ -7079,193 +11677,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/time/asctime_r.c newlib-1.17.0-ppc/newlib/ day_name[tim_p->tm_wday], mon_name[tim_p->tm_mon], tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, -diff -Nbaur newlib-1.17.0/newlib/libc/time/strftime.c newlib-1.17.0-ppc/newlib/libc/time/strftime.c ---- newlib-1.17.0/newlib/libc/time/strftime.c 2005-02-25 22:31:21.000000000 +0000 -+++ newlib-1.17.0-ppc/newlib/libc/time/strftime.c 2008-12-30 09:33:00.000000000 +0000 -@@ -424,7 +424,7 @@ - int century = tim_p->tm_year >= 0 - ? tim_p->tm_year / 100 + YEAR_BASE / 100 - : abs (tim_p->tm_year + YEAR_BASE) / 100; -- count += snprintf (&s[count], maxsize - count, "%s%.*d", -+ count += sniprintf (&s[count], maxsize - count, "%s%.*d", - neg ? "-" : "", 2 - neg, century); - if (count >= maxsize) - return 0; -@@ -434,7 +434,7 @@ - case 'e': - if (count < maxsize - 2) - { -- sprintf (&s[count], *format == 'd' ? "%.2d" : "%2d", -+ siprintf (&s[count], *format == 'd' ? "%.2d" : "%2d", - tim_p->tm_mday); - count += 2; - } -@@ -446,7 +446,7 @@ - /* %m/%d/%y */ - if (count < maxsize - 8) - { -- sprintf (&s[count], "%.2d/%.2d/%.2d", -+ siprintf (&s[count], "%.2d/%.2d/%.2d", - tim_p->tm_mon + 1, tim_p->tm_mday, - tim_p->tm_year >= 0 ? tim_p->tm_year % 100 - : abs (tim_p->tm_year + YEAR_BASE) % 100); -@@ -478,7 +478,7 @@ - adjust = 1; - else if (adjust > 0 && tim_p->tm_year < -YEAR_BASE) - adjust = -1; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - ((year + adjust) % 100 + 100) % 100); - count += 2; - } -@@ -512,7 +512,7 @@ - year = 0; - ++century; - } -- count += snprintf (&s[count], maxsize - count, "%s%.*d%.2d", -+ count += sniprintf (&s[count], maxsize - count, "%s%.*d%.2d", - neg ? "-" : "", 2 - neg, century, year); - if (count >= maxsize) - return 0; -@@ -522,7 +522,7 @@ - case 'k': - if (count < maxsize - 2) - { -- sprintf (&s[count], *format == 'k' ? "%2d" : "%.2d", -+ siprintf (&s[count], *format == 'k' ? "%2d" : "%.2d", - tim_p->tm_hour); - count += 2; - } -@@ -541,7 +541,7 @@ - } - else - { -- sprintf (&s[count], *format == 'I' ? "%.2d" : "%2d", -+ siprintf (&s[count], *format == 'I' ? "%.2d" : "%2d", - tim_p->tm_hour % 12); - count += 2; - } -@@ -552,7 +552,7 @@ - case 'j': - if (count < maxsize - 3) - { -- sprintf (&s[count], "%.3d", -+ siprintf (&s[count], "%.3d", - tim_p->tm_yday + 1); - count += 3; - } -@@ -562,7 +562,7 @@ - case 'm': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_mon + 1); - count += 2; - } -@@ -572,7 +572,7 @@ - case 'M': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_min); - count += 2; - } -@@ -609,15 +609,15 @@ - } - else - { -- sprintf (&s[count], "%.2d", tim_p->tm_hour % 12); -+ siprintf (&s[count], "%.2d", tim_p->tm_hour % 12); - count += 2; - } - s[count++] = ':'; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_min); - count += 2; - s[count++] = ':'; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_sec); - count += 2; - s[count++] = ' '; -@@ -634,7 +634,7 @@ - case 'R': - if (count < maxsize - 5) - { -- sprintf (&s[count], "%.2d:%.2d", tim_p->tm_hour, tim_p->tm_min); -+ siprintf (&s[count], "%.2d:%.2d", tim_p->tm_hour, tim_p->tm_min); - count += 5; - } - else -@@ -643,7 +643,7 @@ - case 'S': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_sec); - count += 2; - } -@@ -660,7 +660,7 @@ - case 'X': - if (count < maxsize - 8) - { -- sprintf (&s[count], "%.2d:%.2d:%.2d", tim_p->tm_hour, -+ siprintf (&s[count], "%.2d:%.2d:%.2d", tim_p->tm_hour, - tim_p->tm_min, tim_p->tm_sec); - count += 8; - } -@@ -681,7 +681,7 @@ - case 'U': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - (tim_p->tm_yday + 7 - - tim_p->tm_wday) / 7); - count += 2; -@@ -706,7 +706,7 @@ - + (YEAR_BASE - 1 - - (tim_p->tm_year < 0 - ? 0 : 2000))))); -- sprintf (&s[count], "%.2d", week); -+ siprintf (&s[count], "%.2d", week); - count += 2; - } - else -@@ -722,7 +722,7 @@ - if (count < maxsize - 2) - { - int wday = (tim_p->tm_wday) ? tim_p->tm_wday - 1 : 6; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - (tim_p->tm_yday + 7 - wday) / 7); - count += 2; - } -@@ -736,7 +736,7 @@ - the asymmetric range of years. */ - int year = tim_p->tm_year >= 0 ? tim_p->tm_year % 100 - : abs (tim_p->tm_year + YEAR_BASE) % 100; -- sprintf (&s[count], "%.2d", year); -+ siprintf (&s[count], "%.2d", year); - count += 2; - } - else -@@ -766,7 +766,7 @@ - but have to use __tzrule for daylight savings. */ - offset = -tz->__tzrule[tim_p->tm_isdst > 0].offset; - TZ_UNLOCK; -- sprintf (&s[count], "%+03ld%.2ld", offset / SECSPERHOUR, -+ siprintf (&s[count], "%+03ld%.2ld", offset / SECSPERHOUR, - labs (offset / SECSPERMIN) % 60L); - count += 5; - } -diff -Nbaur newlib-1.17.0/newlib/libm/mathfp/sf_logarithm.c newlib-1.17.0-ppc/newlib/libm/mathfp/sf_logarithm.c ---- newlib-1.17.0/newlib/libm/mathfp/sf_logarithm.c 2007-10-18 01:03:32.000000000 +0100 -+++ newlib-1.17.0-ppc/newlib/libm/mathfp/sf_logarithm.c 2008-12-30 09:33:00.000000000 +0000 +diff -Nbaur newlib-1.17.1/newlib/libm/mathfp/sf_logarithm.c newlib-1.17.1-ppc/newlib/libm/mathfp/sf_logarithm.c +--- newlib-1.17.1/newlib/libm/mathfp/sf_logarithm.c 2007-10-18 01:03:32.000000000 +0100 ++++ newlib-1.17.1-ppc/newlib/libm/mathfp/sf_logarithm.c 2009-06-16 23:32:46.000000000 +0100 @@ -49,7 +49,7 @@ errno = EDOM; return (z_notanum_f.f); diff --git a/dkppc/rules/base_rules b/dkppc/rules/base_rules index a0627d1..544d619 100644 --- a/dkppc/rules/base_rules +++ b/dkppc/rules/base_rules @@ -1,12 +1,13 @@ #--------------------------------------------------------------------------------- -# path to tools - this can be deleted if you set the path in windows +# path to tools #--------------------------------------------------------------------------------- -export PATH := $(DEVKITPPC)/bin:$(PATH) +export PATH := $(DEVKITPPC)/bin:$(DEVKITPRO)/portlibs/ppc/bin:$(PATH) +export PORTLIBS := $(DEVKITPRO)/portlibs/ppc #--------------------------------------------------------------------------------- # the prefix on the compiler executables #--------------------------------------------------------------------------------- -PREFIX := powerpc-gekko- +PREFIX := powerpc-eabi- export AS := $(PREFIX)as export CC := $(PREFIX)gcc diff --git a/dkppc/scripts/build-crtls.sh b/dkppc/scripts/build-crtls.sh index 4795cc2..e72ffd6 100644 --- a/dkppc/scripts/build-crtls.sh +++ b/dkppc/scripts/build-crtls.sh @@ -29,6 +29,8 @@ then touch installed-libogc fi +cd $BUILDSCRIPTDIR + cd $LIBFAT_SRCDIR if [ ! -f built-libfat ] then diff --git a/dkppc/scripts/build-gcc.sh b/dkppc/scripts/build-gcc.sh index 93c5220..0ec877f 100644 --- a/dkppc/scripts/build-gcc.sh +++ b/dkppc/scripts/build-gcc.sh @@ -90,32 +90,33 @@ cd $target/gcc if [ ! -f configured-gcc ] then - CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../$GCC_SRCDIR/configure \ + cp -r $BUILDSCRIPTDIR/$NEWLIB_SRCDIR/newlib/libc/include $INSTALLDIR/devkitPPC/$target/sys-include + CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../$GCC_SRCDIR/configure \ --enable-languages=c,c++,objc \ - --with-cpu=750\ - --without-headers\ + --with-cpu=750 \ --disable-nls --disable-shared --enable-threads --disable-multilib \ - --disable-win32-registry\ + --disable-win32-registry \ --disable-libstdcxx-pch \ --target=$target \ --with-newlib \ --prefix=$prefix\ --disable-dependency-tracking \ - --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 18 alpha" \ + --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 18 alpha5" \ 2>&1 | tee gcc_configure.log touch configured-gcc fi -if [ ! -f built-gcc ] +if [ ! -f built-gcc-stage1 ] then - $MAKE all-gcc || { echo "Error building gcc"; exit 1; } - touch built-gcc + $MAKE all-gcc || { echo "Error building gcc stage1"; exit 1; } + touch built-gcc-stage1 fi -if [ ! -f installed-gcc ] +if [ ! -f installed-gcc-stage1 ] then - $MAKE install-gcc || { echo "Error installing gcc"; exit 1; } - touch installed-gcc + $MAKE install-gcc || { echo "Error installing gcc stage1"; exit 1; } + touch installed-gcc-stage1 + rm -fr $INSTALLDIR/devkitPPC/$target/sys-include fi #--------------------------------------------------------------------------------- @@ -157,20 +158,22 @@ cd $BUILDSCRIPTDIR #--------------------------------------------------------------------------------- cd $BUILDSCRIPTDIR +mkdir -p $target/gcc cd $target/gcc -if [ ! -f built-gpp ] +if [ ! -f built-gcc-stage2 ] then - $MAKE || { echo "Error building g++"; exit 1; } - touch built-gpp + $MAKE all || { echo "Error building gcc stage2"; exit 1; } + touch built-gcc-stage2 fi -if [ ! -f installed-gpp ] +if [ ! -f installed-gcc-stage2 ] then - $MAKE install || { echo "Error installing g++"; exit 1; } - touch installed-gpp + $MAKE install || { echo "Error installing gcc stage2"; exit 1; } + touch installed-gcc fi + cd $BUILDSCRIPTDIR #---------------------------------------------------------------------------------