Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.698 diff -u -r1.698 configure --- configure 28 Apr 2003 15:58:27 -0000 1.698 +++ configure 29 Apr 2003 03:09:00 -0000 @@ -4073,7 +4073,6 @@ if test "$_win32" = auto ; then if x86 ; then - cygwin && _win32=no # Win32 DLLs not supported under Cygwin qnx && _win32=no else _win32=no # x86 arch only @@ -4083,6 +4082,11 @@ if test "$_win32" != no ; then echocheck "Win32 codec DLL files path" if test -z "$_win32libdir" ; then + if cygwin || mingw32 ; then + _win32libdir="codecs" + fi + fi + if test -z "$_win32libdir" ; then for I in "$_libdir/win32" /usr/local/lib/win32 /usr/lib/win32 ; do if test -d "$I" ; then _win32libdir="$I" @@ -4111,7 +4115,7 @@ if test "$_win32" != no ; then _def_win32_loader='#undef WIN32_LOADER' echocheck "Win32 loader support" - if not cygwin ; then + if not cygwin && not mingw32 ; then _ld_win32='loader/libloader.a' _dep_win32='loader/libloader.a' _codecmodules="win32 $_codecmodules" @@ -4121,6 +4125,10 @@ _def_win32_loader='#define WIN32_LOADER 1' echores "yes" else + _ld_win32='loader/driver.o loader/vfl.o loader/afl.o' + _dep_win32='loader/driver.o loader/vfl.o loader/afl.o' + _ld_win32libs="$_ld_win32libs -ladvapi32 -lole32" + _codecmodules="win32 $_codecmodules" echores "no (using native windows)" fi fi @@ -4218,13 +4226,18 @@ _real=no if test "$_dl" = yes || test "$_win32" = yes ; then # if test "$_dl" = yes ; then - if linux || freebsd || netbsd || cygwin ; then + if linux || freebsd || netbsd || cygwin || mingw32 ; then _real=yes else - echores "no (tested only on Linux/FreeBSD/NetBSD/CygWin)" + echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MINGW32)" fi if test "$_real" = yes ; then if test -z "$_reallibdir" ; then + if cygwin || mingw32 ; then + _reallibdir="codecs" + fi + fi + if test -z "$_reallibdir" ; then for I in $_libdir/real /usr/lib/real /usr/lib/RealPlayer*/Codecs \ /usr/local/RealPlayer*/Codecs /usr/local/lib/RealPlayer*/Codecs \ /opt/RealPlayer*/Codecs; do @@ -5853,7 +5866,7 @@ EOF fi -if x86 && not cygwin; then +if x86; then if test "$_win32" = no ; then if test "$_win32libdir" ; then cat <