mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
generalized iconv detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7184 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d8a6e3891e
commit
525f9ea64c
8
configure
vendored
8
configure
vendored
@ -3587,17 +3587,15 @@ int main(void) {
|
||||
}
|
||||
EOF
|
||||
_iconv=no
|
||||
if freebsd || bsdos || openbsd ; then
|
||||
cc_check -lm -liconv && _iconv=yes
|
||||
if cc_check -lm -liconv ; then
|
||||
_iconv=yes
|
||||
else
|
||||
cc_check -lm && _iconv=yes
|
||||
fi
|
||||
fi
|
||||
if test "$_iconv" = yes ; then
|
||||
_def_iconv='#define USE_ICONV 1'
|
||||
freebsd && _ld_iconv='-liconv'
|
||||
bsdos && _ld_iconv='-liconv'
|
||||
openbsd && _ld_iconv='-liconv'
|
||||
linux || _ld_iconv='-liconv'
|
||||
else
|
||||
_def_iconv='#undef USE_ICONV'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user