[MPlayer-cvslog] r38283 - trunk/configure
ib
subversion at mplayerhq.hu
Sun Feb 28 23:29:54 EET 2021
Author: ib
Date: Sun Feb 28 23:29:54 2021
New Revision: 38283
Log:
Use also pkg-config to detect libenca.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Fri Feb 26 17:53:11 2021 (r38282)
+++ trunk/configure Sun Feb 28 23:29:54 2021 (r38283)
@@ -6695,7 +6695,15 @@ echores "$_ass"
echocheck "ENCA"
if test "$_enca" = auto ; then
_enca=no
- statement_check enca.h 'enca_get_languages(NULL)' -lenca && _enca=yes
+ if statement_check enca.h 'enca_get_languages(NULL)' -lenca; then
+ _enca=yes
+ elif $_pkg_config --exists enca; then
+ if statement_check enca.h 'enca_get_languages(NULL)' $($_pkg_config --cflags --libs enca); then
+ _enca=yes
+ extra_cflags="$extra_cflags $($_pkg_config --cflags enca)"
+ extra_ldflags="$extra_ldflags $($_pkg_config --libs enca)"
+ fi
+ fi
fi
if test "$_enca" = yes ; then
def_enca='#define CONFIG_ENCA 1'
More information about the MPlayer-cvslog
mailing list