X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fprintf.m4;h=37bf905201e9794f6484725e5be118b96f9d87d1;hb=96facb24aa17b8d412d2f37fa91d59282d950ebb;hp=a35c83378193c75e3cc729db7e487a6f12fd54c4;hpb=474d4b34c610ef1d888457d4ee6130add2bba3c2;p=gnulib.git diff --git a/m4/printf.m4 b/m4/printf.m4 index a35c83378..37bf90520 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 19 +# printf.m4 serial 21 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -240,6 +240,7 @@ AC_DEFUN([gl_PRINTF_INFINITE_LONG_DOUBLE], [gl_cv_func_printf_infinite_long_double], [ AC_TRY_RUN([ +]GL_NOCRASH[ #include #include #include @@ -265,6 +266,7 @@ static char buf[10000]; static long double zeroL = 0.0L; int main () { + nocrash_init(); if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) return 1; @@ -774,6 +776,7 @@ AC_DEFUN([gl_PRINTF_ENOMEM], [ if test "$cross_compiling" = no; then AC_LANG_CONFTEST([AC_LANG_SOURCE([ +]GL_NOCRASH[ changequote(,)dnl #include #include @@ -784,6 +787,7 @@ int main() { struct rlimit limit; int ret; + nocrash_init (); /* Some printf implementations allocate temporary space with malloc. */ /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ #ifdef RLIMIT_DATA