mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 13:52:10 +00:00
configure: fix wasapi0 checks
This commit is contained in:
parent
6669366280
commit
9fcce1c8a6
12
configure
vendored
12
configure
vendored
@ -598,8 +598,8 @@ for ac_option do
|
|||||||
--disable-sdl2) _sdl2=no ;;
|
--disable-sdl2) _sdl2=no ;;
|
||||||
--enable-dsound) _dsound=yes ;;
|
--enable-dsound) _dsound=yes ;;
|
||||||
--disable-dsound) _dsound=no ;;
|
--disable-dsound) _dsound=no ;;
|
||||||
--enable-waspi0) _waspi0=yes ;;
|
--enable-wasapi0) _wasapi0=yes ;;
|
||||||
--disable-waspi0) _waspi0=no ;;
|
--disable-wasapi0) _wasapi0=no ;;
|
||||||
--enable-mng) _mng=yes ;;
|
--enable-mng) _mng=yes ;;
|
||||||
--disable-mng) _mng=no ;;
|
--disable-mng) _mng=no ;;
|
||||||
--enable-jpeg) _jpeg=yes ;;
|
--enable-jpeg) _jpeg=yes ;;
|
||||||
@ -2243,18 +2243,18 @@ int main(void) {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if cc_check "-lole32 -lavrt"; then
|
if cc_check "-lole32"; then
|
||||||
_wasapi0="yes"
|
_wasapi0="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if test "$_wasapi0" = yes ; then
|
if test "$_wasapi0" = yes ; then
|
||||||
def_wasapi0='#define CONFIG_WASAPI0 1'
|
def_wasapi0='#define CONFIG_WASAPI0 1'
|
||||||
aomodules="wasap0 $aomodules"
|
aomodules="wasapi0 $aomodules"
|
||||||
libs_mplayer="$libs_mplayer -lole32 -lavrt"
|
libs_mplayer="$libs_mplayer -lole32"
|
||||||
else
|
else
|
||||||
def_wasapi0='#undef CONFIG_WASAPI0'
|
def_wasapi0='#undef CONFIG_WASAPI0'
|
||||||
noaomodules="wasaip0 $noaomodules"
|
noaomodules="wasapi0 $noaomodules"
|
||||||
fi
|
fi
|
||||||
echores "$_wasapi0"
|
echores "$_wasapi0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user