diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 18:53:26 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-28 18:53:26 +0000 |
commit | c9120b9892e6e69511064a97dd449e66d57b06e5 (patch) | |
tree | 91b1c932b8d43b7a08ebd8d4886e17443ec51e23 /configure | |
parent | f5d01796a861b5b3e926584bed7b6e073595f0d8 (diff) | |
download | mpv-c9120b9892e6e69511064a97dd449e66d57b06e5.tar.bz2 mpv-c9120b9892e6e69511064a97dd449e66d57b06e5.tar.xz |
Check for ddk/ntddcdrm.h header before enabling VCD on mingw.
Fixes a compilation issue on mingw-w64 which does not have that header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29085 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -5730,15 +5730,23 @@ fi echocheck "VCD support" -if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || mingw32; then +_vcd=no +if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos; then + _vcd=yes +elif mingw32; then + cat > $TMPC << EOF +#include <ddk/ntddcdrm.h> +int main(void) { return 0; } +EOF + cc_check && _vcd=yes +fi +if test "$_vcd" = yes; then _inputmodules="vcd $_inputmodules" def_vcd='#define CONFIG_VCD 1' - _vcd="yes" else def_vcd='#undef CONFIG_VCD' _noinputmodules="vcd $_noinputmodules" _res_comment="not supported on this OS" - _vcd="no" fi echores "$_vcd" |