contrib: gmp: Patch away the ansi2knr mentionings
authorMartin Storsjö <martin@martin.st>
Tue, 2 Apr 2013 13:28:47 +0000 (16:28 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 2 Apr 2013 13:45:15 +0000 (16:45 +0300)
The latest automake versions (as built by extras/tools) have
removed support for ansi2knr altogether, so this is required for
reconfiguration to work. We still need to do the reconf since the
host system ANSI check in the tarball is broken.

Signed-off-by: Martin Storsjö <martin@martin.st>
contrib/src/gmp/ansi2knr.diff [new file with mode: 0644]
contrib/src/gmp/rules.mak

diff --git a/contrib/src/gmp/ansi2knr.diff b/contrib/src/gmp/ansi2knr.diff
new file mode 100644 (file)
index 0000000..f352b7d
--- /dev/null
@@ -0,0 +1,32 @@
+--- gmp-4.2.1/configure.in.orig        2013-04-02 16:26:56.000000000 +0300
++++ gmp-4.2.1/configure.in     2013-04-02 16:27:25.000000000 +0300
+@@ -67,7 +67,7 @@
+ dnl  Note that there's a copy of these options in the top-level Makefile.am,
+ dnl  so update there too if changing anything.
+ dnl
+-AM_INIT_AUTOMAKE([1.8 gnu no-dependencies $(top_builddir)/ansi2knr])
++AM_INIT_AUTOMAKE([1.8 gnu no-dependencies])
+ AM_CONFIG_HEADER(config.h:config.in)
+ AM_MAINTAINER_MODE
+@@ -2024,9 +2024,6 @@
+ echo "      MPN_PATH=\"$path\""
+-# Automake ansi2knr support.
+-AM_C_PROTOTYPES
+-
+ GMP_PROG_AR
+ GMP_PROG_NM
+--- gmp-4.2.1/Makefile.am.orig 2013-04-02 16:27:07.000000000 +0300
++++ gmp-4.2.1/Makefile.am      2013-04-02 16:27:13.000000000 +0300
+@@ -27,7 +27,7 @@
+ # Makefiles in subdirectories, but here we must omit it so automake gives
+ # the actual ansi2knr build rule, not "cd $(top_builddir) && make ansi2knr".
+ #
+-AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies ansi2knr
++AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies
+ # Libtool -version-info for libgmp.la and libmp.la.  See "Versioning" in the
index ad05ab5..5f60fb0 100644 (file)
@@ -15,6 +15,7 @@ gmp: gmp-$(GMP_VERSION).tar.bz2 .sum-gmp
        $(UNPACK)
        $(APPLY) $(SRC)/gmp/inline.diff
        $(APPLY) $(SRC)/gmp/ansitest.diff
+       $(APPLY) $(SRC)/gmp/ansi2knr.diff
        $(MOVE)
 
 .gmp: gmp