summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-12-17 12:21:10 +0100
committerBruno Haible <bruno@clisp.org>2007-12-17 12:21:10 +0100
commited9767560b43d3970d32743525727f4e66473ad9 (patch)
tree3be72a0b736c850aef94a8006e8c75d8ae2ff1ba /m4
parent58f85ebbe439707906be5c581dd887f4421c2e2f (diff)
downloadgnulib-ed9767560b43d3970d32743525727f4e66473ad9.tar.gz
Avoid a crash of a configure test on some x86_64 systems.
Diffstat (limited to 'm4')
-rw-r--r--m4/printf.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/printf.m4 b/m4/printf.m4
index d5ac9413e7..37bf905201 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -1,4 +1,4 @@
-# printf.m4 serial 20
+# 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 <float.h>
#include <stdio.h>
#include <string.h>
@@ -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;