summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2005-03-16 19:11:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-03-16 19:11:58 +0000
commitcc973ecbe77ee6c273e2372ad24bb3aff0be5440 (patch)
tree148c53e54ae68a49e82f934828e66640d7cf6382 /configure
parent0e1ceacde98f912de8604ea7ebe321a1790bd4b6 (diff)
add libdir support to configure patch by (Luca Barbato )lu_zero gentoo org)
Originally committed as revision 4050 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index e789fbfa08..3c4c406099 100755
--- a/configure
+++ b/configure
@@ -13,6 +13,7 @@ EOF
echo "Standard options:"
echo " --help print this message"
echo " --prefix=PREFIX install in PREFIX [$prefix]"
+echo " --libdir=DIR install libs in DIR [PREFIX/lib]"
echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
echo " --enable-ogg enable ogg support via libogg [default=no]"
@@ -91,6 +92,7 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
# default parameters
prefix="/usr/local"
+libdir=""
mandir=""
bindir=""
cross_prefix=""
@@ -376,6 +378,8 @@ for opt do
case "$opt" in
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
;;
+ --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`
+ ;;
--mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
;;
--source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
@@ -1062,6 +1066,10 @@ if test x"$bindir" = x""; then
bindir="${prefix}/bin"
fi
+if test x"$libdir" = x""; then
+libdir="${prefix}/lib"
+fi
+
if test x"$mandir" = x""; then
mandir="${prefix}/man"
fi
@@ -1138,6 +1146,7 @@ echo "/* Automatically generated by configure - do not modify */" > $TMPH
echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
echo "prefix=$prefix" >> config.mak
+echo "libdir=$libdir" >> config.mak
echo "bindir=$bindir" >> config.mak
echo "mandir=$mandir" >> config.mak
echo "MAKE=$make" >> config.mak