Commit 732d9245 authored by Bill Eldridge's avatar Bill Eldridge Committed by Michael Niedermayer
Browse files

mingw32 configure patch by (Bill Eldridge <bill at rfa dot org>)

Originally committed as revision 1351 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1cef9527
......@@ -59,6 +59,7 @@ vorbis="no"
a52="yes"
a52bin="no"
win32="no"
mingw32="no"
cygwin="no"
lshared="no"
extralibs="-lm"
......@@ -148,6 +149,13 @@ CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic"
;;
esac
;;
MINGW32*)
v4l="no"
audio_oss="no"
ffserver="no"
network="no"
mingw32="yes"
;;
CYGWIN*)
v4l="no"
audio_oss="yes"
......@@ -272,6 +280,8 @@ for opt do
;;
--enable-win32) win32="yes"
;;
--enable-mingw32) mingw32="yes"
;;
--enable-shared) lshared="yes"
;;
--disable-mpegaudio-hp) mpegaudio_hp="no"
......@@ -343,6 +353,13 @@ if test "$win32" = "yes" ; then
network="no"
fi
if test "$mingw32" = "yes" ; then
cross_prefix=""
v4l="no"
audio_oss="no"
network="no"
fi
cc="${cross_prefix}${cc}"
ar="${cross_prefix}${ar}"
ranlib="${cross_prefix}${ranlib}"
......@@ -465,6 +482,7 @@ echo " --prefix=PREFIX install in PREFIX [$prefix]"
echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
echo " --enable-win32 enable win32 cross compile"
echo " --enable-mingw32 enable mingw32 native windows compile"
echo " --disable-a52 disable GPL'ed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo " --enable-shared build shared libraries [default=no]"
......@@ -673,6 +691,13 @@ if test "$win32" = "yes" ; then
echo "CONFIG_WIN32=yes" >> config.mak
fi
if test "$mingw32" = "yes" ; then
echo "#define CONFIG_WIN32 1" >> $TMPH
echo "CONFIG_WIN32=yes" >> config.mak
echo "#define __MINGW32__ 1" >> $TMPH
echo "__MINGW32__=1" >> config.mak
fi
if test "$cygwin" = "yes" ; then
# setup correct exesuffix
echo "CONFIG_WIN32=yes" >> config.mak
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment