From 1d67a1d46f4dc8fa5433b37d131290cc21c6824a Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 11 Feb 2006 19:29:36 +0000 Subject: Add incdir to configure. Originally committed as revision 4985 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure') diff --git a/configure b/configure index efb833780d..5bb7749e36 100755 --- a/configure +++ b/configure @@ -14,6 +14,7 @@ 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 " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]" echo " --mandir=DIR install man page in DIR [PREFIX/man]" echo " --enable-mp3lame enable MP3 encoding via libmp3lame [default=no]" echo " --enable-libogg enable Ogg support via libogg [default=no]" @@ -116,6 +117,7 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" # default parameters prefix="/usr/local" libdir="" +incdir="" mandir="" bindir="" cross_prefix="" @@ -463,6 +465,8 @@ for opt do ;; --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`; force_libdir=yes ;; + --incdir=*) incdir=`echo $opt | cut -d '=' -f 2`; + ;; --mandir=*) mandir=`echo $opt | cut -d '=' -f 2` ;; --source-path=*) source_path=`echo $opt | cut -d '=' -f 2` @@ -1301,6 +1305,10 @@ if test x"$libdir" = x""; then libdir="${prefix}/lib" fi +if test x"$incdir" = x""; then +libdir="${prefix}/include/ffmpeg" +fi + if test x"$mandir" = x""; then mandir="${prefix}/man" fi @@ -1387,6 +1395,7 @@ echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH echo "prefix=\$(DESTDIR)$prefix" >> config.mak echo "libdir=\$(DESTDIR)$libdir" >> config.mak +echo "incdir=\$(DESTDIR)$incdir" >> config.mak echo "bindir=\$(DESTDIR)$bindir" >> config.mak echo "mandir=\$(DESTDIR)$mandir" >> config.mak echo "MAKE=$make" >> config.mak -- cgit v1.2.3