| 1 |
Description: fix autotools input for compatibility with recent autoconf |
| 2 |
It is not possible to regenerate the blt configure script using current |
| 3 |
versions of autoconf. Update for recent syntax so that we can get a modern |
| 4 |
(and cross-build-friendly) configure script at build. |
| 5 |
Author: Helmut Grohne <[email protected]> |
| 6 |
Bug-Debian: https://bugs.debian.org/772590 |
| 7 |
|
| 8 |
diff -ruN a/aclocal.m4 b/aclocal.m4 |
| 9 |
--- a/aclocal.m4 |
| 10 |
+++ b/aclocal.m4 |
| 11 |
@@ -12,7 +12,7 @@ |
| 12 |
cat > conftest.$ac_ext <<EOF |
| 13 |
[#]line __oline__ "configure" |
| 14 |
#include "confdefs.h" |
| 15 |
|
| 16 |
+AC_LANG_CASE([C++], [#ifdef __cplusplus |
| 17 |
extern "C" void exit(int); |
| 18 |
#endif |
| 19 |
])dnl |
| 20 |
diff -ruN a/configure.in b/configure.in |
| 21 |
--- a/configure.in |
| 22 |
+++ b/configure.in |
| 23 |
@@ -127,9 +127,9 @@ |
| 24 |
AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC) |
| 25 |
AC_SUBST(CC) |
| 26 |
AC_PROG_CPP |
| 27 |
|
| 28 |
+AS_IF([test "x${GCC}" != "x"],[ |
| 29 |
blt_have_gcc="yes" |
| 30 |
|
| 31 |
+],[ |
| 32 |
AC_MSG_CHECKING([if C compiler is really gcc]) |
| 33 |
AC_EGREP_CPP(_cc_is_gcc_, [ |
| 34 |
#ifdef __GNUC__ |
| 35 |
@@ -137,7 +137,7 @@ |
| 36 |
#endif |
| 37 |
], [blt_have_gcc=yes], [blt_have_gcc=no]) |
| 38 |
AC_MSG_RESULT([$blt_have_gcc]) |
| 39 |
|
| 40 |
+]) |
| 41 |
|
| 42 |
# |
| 43 |
# CFLAGS search order |