From 7ed6338792a092eddce9b75f8bcbd6501daf3803 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 10 Nov 2008 13:30:35 +0100 Subject: [PATCH] Guess that printf on Haiku survives out-of-memory conditions. --- ChangeLog | 5 +++++ m4/printf.m4 | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39792a6c3..0e1fe536d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-11-10 Bruno Haible + * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the + cross-compiling guesses also when the native compile gives no result. + +2008-11-10 Bruno Haible + * lib/spawni.c (__spawni): Force variable into the stack. 2008-11-10 Bruno Haible diff --git a/m4/printf.m4 b/m4/printf.m4 index d544edd72..df26c13ec 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 23 +# printf.m4 serial 24 dnl Copyright (C) 2003, 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -815,6 +815,7 @@ AC_DEFUN([gl_PRINTF_ENOMEM], AC_CACHE_CHECK([whether printf survives out-of-memory conditions], [gl_cv_func_printf_enomem], [ + gl_cv_func_printf_enomem="guessing no" if test "$cross_compiling" = no; then AC_LANG_CONFTEST([AC_LANG_SOURCE([ ]GL_NOCRASH[ @@ -880,7 +881,8 @@ changequote([,])dnl gl_cv_func_printf_enomem="guessing no" fi rm -fr conftest* - else + fi + if test "$gl_cv_func_printf_enomem" = "guessing no"; then changequote(,)dnl case "$host_os" in # Guess yes on glibc systems. @@ -901,6 +903,8 @@ changequote(,)dnl osf*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on Haiku. + haiku*) gl_cv_func_printf_enomem="guessing yes";; # If we don't know, assume the worst. *) gl_cv_func_printf_enomem="guessing no";; esac @@ -1305,5 +1309,6 @@ dnl OSF/1 5.1 # . # # # # . . . . # . . . . dnl OSF/1 4.0d # . # # # # . . . . # . . # # # # # # dnl NetBSD 4.0 . ? ? ? ? ? . . ? ? ? ? ? . . . ? ? ? dnl NetBSD 3.0 . . . . # # . # # ? # . # . . . . . . +dnl Haiku . . . # # # . . . . . . ? . . . . . . dnl BeOS # # . # # # . # . ? . # ? . . . . . . dnl mingw # # # # # # . # # . # # ? . # # # . . -- 2.11.0