Blame SOURCES/openpgm-configure-c99.patch
|
 |
9abaa2 |
Include <stdio.h> for the printf function. This avoids an implicit
|
|
 |
9abaa2 |
function declaration in this configure check, causing to fail
|
|
 |
9abaa2 |
unconditionally with compilers that do not support them.
|
|
 |
9abaa2 |
|
|
 |
9abaa2 |
Submitted upstream: <https://github.com/steve-o/openpgm/pull/73>
|
|
 |
9abaa2 |
|
|
 |
9abaa2 |
diff -ur openpgm-release-5-2-122.orig/openpgm/pgm/configure.ac openpgm-release-5-2-122/openpgm/pgm/configure.ac
|
|
 |
9abaa2 |
--- openpgm-release-5-2-122.orig/openpgm/pgm/configure.ac 2012-12-04 03:56:54.000000000 +0100
|
|
 |
9abaa2 |
+++ openpgm-release-5-2-122/openpgm/pgm/configure.ac 2023-01-03 16:07:39.751560631 +0100
|
|
 |
9abaa2 |
@@ -207,7 +207,7 @@
|
|
 |
9abaa2 |
# sprintf, caveat http://savannah.gnu.org/patch/?6848 (ax_c_printf_thsep)
|
|
 |
9abaa2 |
AC_MSG_CHECKING([for printf thousands' grouping])
|
|
 |
9abaa2 |
AC_COMPILE_IFELSE(
|
|
 |
9abaa2 |
- [AC_LANG_PROGRAM(,[[printf ("%'d", 1000000);]])],
|
|
 |
9abaa2 |
+ [AC_LANG_PROGRAM([[#include <stdio.h>]],[[printf ("%'d", 1000000);]])],
|
|
 |
9abaa2 |
[AC_MSG_RESULT([yes])
|
|
 |
9abaa2 |
CFLAGS="$CFLAGS -DHAVE_SPRINTF_GROUPING"],
|
|
 |
9abaa2 |
[AC_MSG_RESULT([no])])
|