summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-11-05 23:13:53 +0100
committerOleg Oshmyan <chortos@inbox.lv>2020-11-14 01:34:54 +0200
commitfdc2d96fa58ec428d8715ab448261793f47f53cb (patch)
treec48ed96e232bc6e86ac6d1c0a3248e48d4be1b94
parentcb2cee7cb6548d8bbcb263acb11044d6aa975d9b (diff)
downloadlibass-fdc2d96fa58ec428d8715ab448261793f47f53cb.tar.bz2
libass-fdc2d96fa58ec428d8715ab448261793f47f53cb.tar.xz
configure: Don't add iconv to pkg_libs a second time
This seems to have erronously slipped in again with commit 5ab9950816ffcac46afec4ad327640ab28a49109. It was previously addded in commmit e572a26d29ddff883880ef7b1c295acaa62a8a2f when all libs were still added manually and shortly after removed again in commit 4b6a81eb4fd79198ceef813418aaa938190624ba, which switched to generating pkg_libs from LIBS.
-rw-r--r--configure.ac12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 497e1b0..e01a306 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,6 +48,9 @@ LIBS=
use_libiconv=false
AC_SEARCH_LIBS([libiconv_open], [iconv], use_libiconv=true)
AC_SEARCH_LIBS([iconv_open], [iconv], use_libiconv=true)
+AS_IF([test "x$use_libiconv" = xtrue], [
+ AC_DEFINE(CONFIG_ICONV, 1, [use iconv])
+])
AC_CHECK_LIB([m], [fabs])
pkg_libs="$LIBS"
LIBS="$OLDLIBS $LIBS"
@@ -153,14 +156,7 @@ Either DirectWrite (on Windows), CoreText (on OSX), or Fontconfig \
a system font provider, add --disable-require-system-font-provider])
fi
-## Now add packages to pkg-config for static linking
-if test "$use_libiconv" = true; then
- AC_DEFINE(CONFIG_ICONV, 1, [use iconv])
- if test x"$ac_cv_search_libiconv_open" != x"none required" &&
- test x"$ac_cv_search_iconv_open" != x"none required"; then
- pkg_libs="${pkg_libs} -liconv"
- fi
-fi
+## Now add packages to pkg_requires
pkg_requires="freetype2 >= 9.10.3"
pkg_requires="fribidi >= 0.19.0, ${pkg_requires}"
pkg_requires="harfbuzz >= 1.2.3, ${pkg_requires}"