~siretart/vlc/debian-packaging

« back to all changes in this revision

Viewing changes to contrib/src/ass/e572a26.patch

  • Committer: Sebastian Ramacher
  • Date: 2016-01-31 20:58:37 UTC
  • mfrom: (1.2.39)
  • Revision ID: git-v1:b7ac1de93ecf7cd3d86898544433974ce0af7086
Merge tag 'upstream/2.2.2'

Upstream version 2.2.2

# gpg: Signature made Sun 31 Jan 2016 21:57:53 CET using RSA key ID 6EA71993
# gpg: Good signature from "Sebastian Ramacher <sebastian@ramacher.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmail.com>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@gmx.at>"
# gpg:                 aka "Sebastian Ramacher <s.ramacher@student.tugraz.at>"
# gpg:                 aka "Sebastian Ramacher <sramacher@debian.org>"
# gpg:                 aka "Sebastian Ramacher <sebastian.ramacher@iaik.tugraz.at>"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From e572a26d29ddff883880ef7b1c295acaa62a8a2f Mon Sep 17 00:00:00 2001
 
2
From: wm4 <wm4@nowhere>
 
3
Date: Tue, 13 Oct 2015 22:18:30 +0200
 
4
Subject: [PATCH] configure: include -liconv if that is found
 
5
 
 
6
---
 
7
 configure.ac | 9 +++++++--
 
8
 1 file changed, 7 insertions(+), 2 deletions(-)
 
9
 
 
10
diff --git a/configure.ac b/configure.ac
 
11
index d6fbe34..6bd96b6 100644
 
12
--- a/configure.ac
 
13
+++ b/configure.ac
 
14
@@ -22,8 +22,9 @@ AC_CHECK_HEADERS([stdint.h iconv.h])
 
15
 AC_CHECK_FUNCS([strdup strndup])
 
16
 
 
17
 # Checks for libraries.
 
18
-AC_SEARCH_LIBS([libiconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv]))
 
19
-AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv]))
 
20
+use_libiconv=false
 
21
+AC_SEARCH_LIBS([libiconv_open], [iconv], use_libiconv=true)
 
22
+AC_SEARCH_LIBS([iconv_open], [iconv], use_libiconv=true)
 
23
 AC_CHECK_LIB([m], [fabs])
 
24
 
 
25
 # Check for libraries via pkg-config
 
26
@@ -220,6 +221,10 @@ AM_CONDITIONAL([ENABLE_PROFILE], [test x$enable_profile = xyes])
 
27
 
 
28
 # add libraries/packages to pkg-config for static linking
 
29
 pkg_libs="-lm"
 
30
+if test "$use_libiconv" = true; then
 
31
+    AC_DEFINE(CONFIG_ICONV, 1, [use iconv])
 
32
+    pkg_libs="${pkg_libs} -liconv"
 
33
+fi
 
34
 pkg_requires="freetype2 >= 9.10.3"
 
35
 pkg_requires="fribidi >= 0.19.0, ${pkg_requires}"
 
36
 if test x$fontconfig = xtrue; then