HOWTO
# FAAC 1.26
# =========
#
autoconf,
automake, and
libtool (for autoreconf)
cd
test -f installed/faac-1.26.tar.gz &&
mv installed/faac-1.26.tar.gz .
test ! -f faac-1.26.tar.gz &&
wget http://downloads.sf.net/faac/faac-1.26.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "faac-*" -exec rm -r {} \;
tar xzvf ~/faac-1.26.tar.gz
mv faac faac-1.26
cd faac-1.26
test $UID = 0 && chown -R root:root .
find -type d -exec chmod 755 {} \;
find -type f -exec chmod 644 {} \;
# Run this to create configure, etc.
sh ./bootstrap
# I pass --without-mp4v2 because I also install mpeg4ip which will take
# care of that
./configure --without-mp4v2
make
# Become root to install it
su
# Remove old shared libraries and install it
( cd /usr/local/lib ; rm -f libfaac.* libmp4v2.* )
make install
ldconfig
chown -R $USER .
chmod -R u+w .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/faac-*.tar.*
mv faac-1.26.tar.gz installed/
# If you ever want to uninstall FAAC, this should do it:
# ('make uninstall' should do it alone, if you have the configure'd source)
cd
su
test -d src/faac-* && ( cd src/faac-* ; make uninstall )
rm -f /usr/local/bin/faac
( cd /usr/local/include ; rm -f faac.h faaccfg.h mp4.h mpeg4ip.h mpeg4ip_config.h mpeg4ip_version.h )
( cd /usr/local/lib ; rm -f libfaac.* libmp4v2.* )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "faac-*" -exec rm -r {} \;
rm -f ~/installed/faac-*.tar.*