summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGildas Bazin <gbazi@altern.org>2006-01-22 18:34:17 +0000
committerDiego Biurrun <diego@biurrun.de>2006-01-22 18:34:17 +0000
commitac44871c7773fb9a6b18d362cec9a4630055fc50 (patch)
treed887ca20cd31f65cf427b50793cf03ca20f5374b /configure
parent0e6c947df3a834484c04c3e9a646004ab7ccda65 (diff)
WinCE cross-compilation support
patch by Gildas Bazin < gbazin **@** altern **.** org > Originally committed as revision 4881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 18 insertions, 1 deletions
diff --git a/configure b/configure
index ccc04416b9..5f4cbd1c4d 100755
--- a/configure
+++ b/configure
@@ -26,6 +26,7 @@ echo " --enable-libgsm enable GSM support via libgsm [default=no]"
echo " --enable-xvid enable XviD support via xvidcore [default=no]"
echo " --enable-x264 enable H.264 encoding via x264 [default=no]"
echo " --enable-mingw32 enable MinGW native/cross Windows compile"
+echo " --enable-mingwce enable MinGW native/cross WinCE compile"
echo " --enable-a52 enable GPLed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo " --enable-dts enable GPLed DTS support [default=no]"
@@ -202,6 +203,7 @@ a52bin="no"
dts="no"
pp="no"
mingw32="no"
+mingwce="no"
cygwin="no"
os2="no"
lshared="no"
@@ -545,6 +547,8 @@ for opt do
;;
--enable-mingw32) mingw32="yes"
;;
+ --enable-mingwce) mingwce="yes"
+ ;;
--enable-shared) lshared="yes"
;;
--disable-debug) debug="no"
@@ -864,7 +868,7 @@ EOF
$cc -o $TMPE $TMPC 2> /dev/null || mmi="no"
fi
-if test "$mingw32" = "yes" ; then
+if test "$mingw32" = "yes" -o "$mingwce" = "yes"; then
v4l="no"
bktr="no"
audio_oss="no"
@@ -872,6 +876,9 @@ if test "$mingw32" = "yes" ; then
dc1394="no"
ffserver="no"
network="no"
+if test "$mingw32" = "yes"; then
+ protocols="no"
+fi
SLIBPREF=""
SLIBSUF=".dll"
EXESUF=".exe"
@@ -1685,6 +1692,16 @@ if test "$mingw32" = "yes" ; then
echo "#endif" >> $TMPH
fi
+if test "$mingwce" = "yes" ; then
+ echo "#define CONFIG_WIN32 1" >> $TMPH
+ echo "CONFIG_WIN32=yes" >> config.mak
+ echo "#define CONFIG_WINCE 1" >> $TMPH
+ echo "CONFIG_WINCE=yes" >> config.mak
+ echo "#ifndef __MINGW32__" >> $TMPH
+ echo "#define __MINGW32__ 1" >> $TMPH
+ echo "#endif" >> $TMPH
+fi
+
if test "$os2" = "yes" ; then
echo "#define CONFIG_OS2 1" >> $TMPH
echo "CONFIG_OS2=yes" >> config.mak