biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / redshift / 575.patch
blobf5beeb6ce518719b65e9b18cfed7f3f8b61e7f08
1 From 467156efccc5e36a36bec8c0b64cc5a70f14d5ed Mon Sep 17 00:00:00 2001
2 From: Yana Timoshenko <yana@riseup.net>
3 Date: Tue, 16 Jan 2018 11:43:46 +0000
4 Subject: [PATCH] Fix Autoconf script
6 gettext/intltool macros are not used correctly, see:
7 https://bugs.launchpad.net/inkscape/+bug/1418943
8 ---
9 bootstrap | 6 +-----
10 configure.ac | 5 +----
11 2 files changed, 2 insertions(+), 9 deletions(-)
13 diff --git a/bootstrap b/bootstrap
14 index 0599cf5..40b1dca 100755
15 --- a/bootstrap
16 +++ b/bootstrap
17 @@ -1,7 +1,3 @@
18 #!/bin/sh
20 -# change to root directory
21 -cd $(dirname "$0")
23 -autopoint --force && \
24 - AUTOPOINT="intltoolize --automake --copy" autoreconf --force --install --verbose
25 +autoreconf --force --install && intltoolize
26 diff --git a/configure.ac b/configure.ac
27 index be0b51a..a2e7c42 100644
28 --- a/configure.ac
29 +++ b/configure.ac
30 @@ -17,6 +17,7 @@ AC_PROG_OBJC # For macOS support modules
31 AC_LANG([C])
33 AC_PROG_INTLTOOL([0.50])
34 +AC_SUBST(LIBINTL)
36 AC_CANONICAL_HOST
38 @@ -51,10 +52,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [
40 AC_LANG_POP([Objective C])
42 -# Checks for libraries.
43 -AM_GNU_GETTEXT_VERSION([0.17])
44 -AM_GNU_GETTEXT([external])
46 GETTEXT_PACKAGE=redshift
47 AC_SUBST(GETTEXT_PACKAGE)
48 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
49 --
50 2.15.1