File: fix-automake-libtool-incompatibility.patch

package info (click to toggle)
quadrule 0~20121001-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 2,044 kB
  • ctags: 205
  • sloc: ansic: 16,614; sh: 10,127; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Invoke the AM_PROG_AR macro to silence an automake warning.
 Starting in automake 1.12, using libtool causes a warning about a non-POSIX
 archiver.  This is really libtool's problem, since the archiving step is
 handled by them.  This patch is a workaround until the libtool and automake
 guys talk to each other.
 See also: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11401
           http://lists.gnu.org/archive/html/automake/2012-05/msg00014.html
Author: Mike Neish <neishm@atmosp.physics.utoronto.ca>
Bug-Debian: http://bugs.debian.org/713337
Last-Update: 2013-07-02

--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,8 @@
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+# The following line is required for libtool to work with automake >= 1.12
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 LT_INIT
 AC_PROG_CC
 AC_CONFIG_HEADERS([config.h])