File: 0003-Enable-foreign-mode-for-automake.patch

package info (click to toggle)
jmagick 6.7.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,528 kB
  • sloc: ansic: 6,590; java: 2,758; sh: 365; makefile: 168; xml: 101
file content (37 lines) | stat: -rw-r--r-- 979 bytes parent folder | download
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
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Fri, 30 Aug 2024 10:52:19 +0000
Subject: Enable foreign mode for automake

forwarded: not-needed
---
 Makefile.am  | 2 +-
 configure.ac | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 12cab07..ba46d3d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@
 #       Contributed by Adam Heath <doogie@brainfood.com>
 #
 
-
+ACLOCAL_AMFLAGS=-I m4
 MAKE_PATH = .
 include $(MAKE_PATH)/Make.def
 
diff --git a/configure.ac b/configure.ac
index 8d2c635..118c184 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,8 @@ AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 
-AM_INIT_AUTOMAKE([-Wno-portability])
+AM_INIT_AUTOMAKE([-Wno-portability, foreign])
+AC_CONFIG_MACRO_DIRS([m4])
 VER_MAJOR=$(echo "$PACKAGE_VERSION" | cut -d . -f 1)
 VER_MINOR=$(echo "$PACKAGE_VERSION" | cut -d . -f 2)
 VER_MICRO=$(echo "$PACKAGE_VERSION" | cut -d . -f 3)