summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-08 17:52:25 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-08 17:52:25 +0000
commitc1f6ffe35dc2a0094a751d44565480d60addcf8c (patch)
treeb9141861a371fa90ecf0670c821cb99394102c98 /configure
parent86b61290762a574b8e86fdeb708f116e8f9f1a14 (diff)
downloadmpv-c1f6ffe35dc2a0094a751d44565480d60addcf8c.tar.bz2
mpv-c1f6ffe35dc2a0094a751d44565480d60addcf8c.tar.xz
ENCA support (http://trific.ath.cx/software/enca/)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12444 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure33
1 files changed, 33 insertions, 0 deletions
diff --git a/configure b/configure
index 6d1d11aee7..83523e1c2a 100755
--- a/configure
+++ b/configure
@@ -178,6 +178,7 @@ Optional features:
--enable-menu Enable OSD menu support (NOT DVD MENU) [disabled]
--disable-sortsub Disable subtitles sorting [enabled]
--enable-fribidi Enable using the FriBiDi libs [disabled]
+ --disable-enca Disable using ENCA charset oracle library [autodetect]
--disable-macosx Disable Mac OS X specific features [autodetect]
--disable-inet6 Disable IPv6 support [autodetect]
--disable-gethostbyname2 gethostbyname() function is not provided by the C
@@ -1248,6 +1249,7 @@ _sortsub=yes
_freetypeconfig='freetype-config'
_fribidi=no
_fribidiconfig='fribidi-config'
+_enca=auto
_inet6=auto
_gethostbyname2=auto
_ftp=yes
@@ -1472,6 +1474,9 @@ for ac_option do
--enable-fribidi) _fribidi=yes ;;
--disable-fribidi) _fribidi=no ;;
+ --enable-enca) _enca=yes ;;
+ --disable-enca) _enca=no ;;
+
--enable-inet6) _inet6=yes ;;
--disable-inet6) _inet6=no ;;
@@ -4440,6 +4445,30 @@ fi
echores "$_fribidi"
+echocheck "ENCA"
+if test "$_enca" = auto ; then
+ cat > $TMPC << EOF
+#include <enca.h>
+int main()
+{
+ const char **langs;
+ size_t langcnt;
+ langs = enca_get_languages(&langcnt);
+ return 0;
+}
+EOF
+ _enca=no
+ cc_check -lenca && _enca=yes
+ if test "$_enca" = yes ; then
+ _def_enca='#define HAVE_ENCA 1'
+ _ld_enca='-lenca'
+ else
+ _def_enca='#undef HAVE_ENCA'
+ fi
+fi
+echores "$_enca"
+
+
echocheck "zlib"
cat > $TMPC << EOF
#include <zlib.h>
@@ -5966,6 +5995,7 @@ Z_LIB = $_ld_static $_ld_zlib
HAVE_MLIB = $_mlib
WIN32_LIB = $_ld_win32libs
STATIC_LIB = $_ld_static
+ENCA_LIB = $_ld_enca
X11_INC = $_inc_x11
X11DIR = $_ld_x11
@@ -6515,6 +6545,9 @@ $_def_fontconfig
/* enable FriBiDi usage */
$_def_fribidi
+/* enable ENCA usage */
+$_def_enca
+
/* liblzo support */
$_def_liblzo