[MPlayer-dev-eng] [PATCH] proper configure check for MinGW32 VCD
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Mar 28 17:17:21 CET 2009
Hello,
this checks for the required ddk/ntddcdrm.h header before enabling VCD
support under mingw. This gets rid of one more compilation problem for
MinGW64.
Index: configure
===================================================================
--- configure (revision 29081)
+++ configure (working copy)
@@ -5730,15 +5730,23 @@
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"
More information about the MPlayer-dev-eng
mailing list