aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNick Kurshev <nickols_k@mail.ru>2001-10-27 12:12:38 +0000
committerNick Kurshev <nickols_k@mail.ru>2001-10-27 12:12:38 +0000
commit0319c531fbb0a9582e044de2c905532c2a45041f (patch)
tree363ed0d968ed8174ecd282510113012b88ce162b /configure
parent0fd944424bf4e807b2d134e934ce0e1896f1d836 (diff)
downloadffmpeg-0319c531fbb0a9582e044de2c905532c2a45041f.tar.gz
Shared objects support
Originally committed as revision 195 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure b/configure
index c828f64965..9e91e3e034 100755
--- a/configure
+++ b/configure
@@ -58,9 +58,11 @@ echo " --disable-mmx disable mmx usage"
echo " --enable-gprof enable profiling with gprof [$gprof]"
echo " --disable-grab disable audio/video grabbing code"
echo " --enable-win32 enable win32 cross compile"
+echo " --enable-shared build shared libraries [default=no]"
exit 1
fi
+lshared=no
for opt do
case "$opt" in
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
@@ -77,6 +79,8 @@ for opt do
;;
--enable-win32) win32="yes"
;;
+ --enable-shared=*) lshared=`echo $opt | cut -d '=' -f 2`
+ ;;
esac
done
@@ -150,7 +154,14 @@ if [ "$gprof" = "yes" ] ; then
echo "TARGET_GPROF=yes" >> config.mak
echo "#define HAVE_GPROF 1" >> config.h
fi
-
+if [ "$lshared" = "yes" ] ; then
+ echo "BUILD_SHARED=yes" >> config.mak
+else
+ echo "BUILD_SHARED=no" >> config.mak
+fi
+echo -n "VERSION=" >>config.mak
+head VERSION >>config.mak
+echo "" >>config.mak
# if you do not want to use encoders, disable that.
echo "#define CONFIG_ENCODERS 1" >> config.h
echo "CONFIG_ENCODERS=yes" >> config.mak