Mercurial > mplayer.hg
comparison configure @ 34308:c25804f1521e
configure: (internal) libass depends on FriBiDi now; check availability
author | diego |
---|---|
date | Mon, 05 Dec 2011 11:38:15 +0000 |
parents | 8ddad79e3c91 |
children | 4a507d3a039a |
comparison
equal
deleted
inserted
replaced
34307:f2f80a26f8b7 | 34308:c25804f1521e |
---|---|
5909 def_fontconfig='#undef CONFIG_FONTCONFIG' | 5909 def_fontconfig='#undef CONFIG_FONTCONFIG' |
5910 fi | 5910 fi |
5911 echores "$_fontconfig" | 5911 echores "$_fontconfig" |
5912 | 5912 |
5913 | 5913 |
5914 echocheck "fribidi with charsets" | |
5915 if test "$_fribidi" = auto ; then | |
5916 cat > $TMPC << EOF | |
5917 #include <stdlib.h> | |
5918 /* workaround for fribidi 0.10.4 and below */ | |
5919 #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 | |
5920 #include <fribidi/fribidi.h> | |
5921 int main(void) { | |
5922 if (fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) | |
5923 exit(1); | |
5924 return 0; | |
5925 } | |
5926 EOF | |
5927 _fribidi=no | |
5928 cc_check -lfribidi && _fribidi=yes && extra_ldflags="$extra_ldflags -lfribidi" | |
5929 if $_pkg_config --exists fribidi > /dev/null 2>&1 && | |
5930 test "$_fribidi" = no ; then | |
5931 inc_tmp="$($_pkg_config --cflags fribidi)" | |
5932 ld_tmp="$($_pkg_config --libs fribidi)" | |
5933 cc_check $inc_tmp $ld_tmp && _fribidi=yes && | |
5934 extra_cflags="$extra_cflags $inc_tmp" && | |
5935 extra_ldflags="$extra_ldflags $ld_tmp" | |
5936 fi | |
5937 fi | |
5938 if test "$_fribidi" = yes ; then | |
5939 def_fribidi='#define CONFIG_FRIBIDI 1' | |
5940 else | |
5941 def_fribidi='#undef CONFIG_FRIBIDI' | |
5942 fi | |
5943 echores "$_fribidi" | |
5944 | |
5945 | |
5914 echocheck "SSA/ASS support" | 5946 echocheck "SSA/ASS support" |
5915 # libass depends on FreeType | 5947 # libass depends on FreeType and FriBiDi |
5916 if test "$_freetype" = no ; then | 5948 if test "$_freetype" = no || test "$_fribidi" = no ; then |
5917 _ass=no | 5949 _ass=no |
5918 ass_internal=no | 5950 ass_internal=no |
5919 res_comment="FreeType support needed" | 5951 res_comment="FreeType and FriBiDi support needed" |
5920 fi | 5952 fi |
5921 | 5953 |
5922 if test "$_ass" = auto ; then | 5954 if test "$_ass" = auto ; then |
5923 cat > $TMPC << EOF | 5955 cat > $TMPC << EOF |
5924 #include <ft2build.h> | 5956 #include <ft2build.h> |
5963 else | 5995 else |
5964 def_ass_internal='#undef CONFIG_ASS_INTERNAL' | 5996 def_ass_internal='#undef CONFIG_ASS_INTERNAL' |
5965 ass_internal=no | 5997 ass_internal=no |
5966 fi | 5998 fi |
5967 echores "$_ass" | 5999 echores "$_ass" |
5968 | |
5969 | |
5970 echocheck "fribidi with charsets" | |
5971 if test "$_fribidi" = auto ; then | |
5972 cat > $TMPC << EOF | |
5973 #include <stdlib.h> | |
5974 /* workaround for fribidi 0.10.4 and below */ | |
5975 #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 | |
5976 #include <fribidi/fribidi.h> | |
5977 int main(void) { | |
5978 if (fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) | |
5979 exit(1); | |
5980 return 0; | |
5981 } | |
5982 EOF | |
5983 _fribidi=no | |
5984 cc_check -lfribidi && _fribidi=yes && extra_ldflags="$extra_ldflags -lfribidi" | |
5985 if $_pkg_config --exists fribidi > /dev/null 2>&1 && | |
5986 test "$_fribidi" = no ; then | |
5987 inc_tmp="$($_pkg_config --cflags fribidi)" | |
5988 ld_tmp="$($_pkg_config --libs fribidi)" | |
5989 cc_check $inc_tmp $ld_tmp && _fribidi=yes && | |
5990 extra_cflags="$extra_cflags $inc_tmp" && | |
5991 extra_ldflags="$extra_ldflags $ld_tmp" | |
5992 fi | |
5993 fi | |
5994 if test "$_fribidi" = yes ; then | |
5995 def_fribidi='#define CONFIG_FRIBIDI 1' | |
5996 else | |
5997 def_fribidi='#undef CONFIG_FRIBIDI' | |
5998 fi | |
5999 echores "$_fribidi" | |
6000 | 6000 |
6001 | 6001 |
6002 echocheck "ENCA" | 6002 echocheck "ENCA" |
6003 if test "$_enca" = auto ; then | 6003 if test "$_enca" = auto ; then |
6004 _enca=no | 6004 _enca=no |