diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 22:29:44 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-15 22:29:44 +0000 |
commit | daf8e9557d55d13d45b83329db59f711fb9c7251 (patch) | |
tree | 448fb3e0b81e49abb4e24b31814cf1954fd30519 /configure | |
parent | 1705679ee64038011224b3cb5fc582ffa5699557 (diff) | |
download | ffmpeg-daf8e9557d55d13d45b83329db59f711fb9c7251.tar.gz |
added win32 cross compile support
Originally committed as revision 107 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -21,6 +21,7 @@ esac gprof="no" mp3lib="yes" grab="yes" +win32="no" if [ "$1" = "-h" -o "$1" = "--help" ] ; then cat << EOF @@ -37,6 +38,7 @@ echo " --disable-mmx disable mmx usage" echo " --enable-gprof enable profiling with gprof [$gprof]" echo " --disable-mp3lib disable mp3 lib compiling" echo " --disable-grab disable audio/video grabbing code" +echo " --enable-win32 enable win32 cross compile" exit 1 fi @@ -56,9 +58,23 @@ for opt do ;; --disable-grab) grab="no" ;; + --enable-win32) win32="yes" + ;; esac done +# Checking for CFLAGS +if test -z "$CFLAGS"; then + CFLAGS="-O2" +fi + +if [ "$win32" = "yes" ] ; then + cross_prefix="i386-mingw32msvc-" + cc="${cross_prefix}gcc" + ar="${cross_prefix}ar" + grab="no" +fi + echo "Install prefix $prefix" echo "C compiler $cc" echo "CPU $cpu" @@ -71,11 +87,6 @@ echo "Creating config.mak and config.h" echo "# Automatically generated by configure - do not modify" > config.mak echo "/* Automatically generated by configure - do not modify */" > config.h -# Checking for CFLAGS -if test -z "$CFLAGS"; then - CFLAGS="-O2" -fi - echo "prefix=$prefix" >> config.mak echo "MAKE=make" >> config.mak echo "CC=$cc" >> config.mak @@ -120,3 +131,8 @@ if [ "$grab" = "yes" ] ; then echo "#define CONFIG_GRAB 1" >> config.h echo "CONFIG_GRAB=yes" >> config.mak fi + +if [ "$win32" = "yes" ] ; then + echo "#define CONFIG_WIN32 1" >> config.h + echo "CONFIG_WIN32=yes" >> config.mak +fi |