File: autoreconf.patch

package info (click to toggle)
blt 2.5.3%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 24,864 kB
  • sloc: ansic: 133,724; tcl: 17,680; sh: 2,722; makefile: 799; cpp: 370
file content (43 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: fix autotools input for compatibility with recent autoconf
 It is not possible to regenerate the blt configure script using current
 versions of autoconf.  Update for recent syntax so that we can get a modern
 (and cross-build-friendly) configure script at build.
Author: Helmut Grohne <helmut@subdivi.de>
Bug-Debian: http://bugs.debian.org/772590

diff -ruN a/aclocal.m4 b/aclocal.m4
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -12,7 +12,7 @@
 cat > conftest.$ac_ext <<EOF
 [#]line __oline__ "configure"
 #include "confdefs.h"
-ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
+AC_LANG_CASE([C++], [#ifdef __cplusplus
 extern "C" void exit(int);
 #endif
 ])dnl
diff -ruN a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -127,9 +127,9 @@
 AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC)
 AC_SUBST(CC)
 AC_PROG_CPP
-if test "x${GCC}" != "x" ; then
+AS_IF([test "x${GCC}" != "x"],[
   blt_have_gcc="yes"
-else
+],[
   AC_MSG_CHECKING([if C compiler is really gcc])
     AC_EGREP_CPP(_cc_is_gcc_, [
 #ifdef __GNUC__
@@ -137,7 +137,7 @@
 #endif
 ],      [blt_have_gcc=yes], [blt_have_gcc=no])
   AC_MSG_RESULT([$blt_have_gcc])
-fi
+])
 
 #
 # CFLAGS search order