mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 15:29:56 +00:00
support linking to fribidi without pkg-config
reintroduce the logic that was removed with the previous commit. In case the naive approach to link fails, try again with pkg-config. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31210 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
30748b8a55
commit
2032889bb5
10
configure
vendored
10
configure
vendored
@ -6453,9 +6453,15 @@ int main(void) {
|
||||
}
|
||||
EOF
|
||||
_fribidi=no
|
||||
_inc_tmp="$($_pkg_config --cflags fribidi)"
|
||||
_ld_tmp="$($_pkg_config --libs fribidi)"
|
||||
_inc_tmp=""
|
||||
_ld_tmp="-lfribidi"
|
||||
cc_check $_inc_tmp $_ld_tmp && _fribidi=yes
|
||||
if $_pkg_config --exists fribidi > /dev/null 2>&1 &&
|
||||
test "$_fribidi" = no ; then
|
||||
_inc_tmp="$($_pkg_config --cflags)"
|
||||
_ld_tmp="$($_pkg_config --libs)"
|
||||
cc_check $_inc_tmp $_ld_tmp && _fribidi=yes
|
||||
fi
|
||||
fi
|
||||
if test "$_fribidi" = yes ; then
|
||||
def_fribidi='#define CONFIG_FRIBIDI 1'
|
||||
|
Loading…
Reference in New Issue
Block a user