How to install Asterisk 1.4 in specified directory

Skip to end of metadata
Go to start of metadata

How to install Asterisk 1.4 in specified directory

This should be a part of asterisk 1.4 installation guide IMHO.

#!sh

DIR=/home/asterisk/pbx

./configure \
 --bindir=$DIR/bin \
 --sbindir=$DIR/sbin \
 --libexecdir=$DIR/libexec \
 --sysconfdir=$DIR/etc \
 --sharedstatedir=$DIR/com \
 --localstatedir=$DIR/var \
 --libdir=$DIR/lib \
 --includedir=$DIR/include \
 --oldincludedir=$DIR/include \
 --datarootdir=$DIR/share \
 --datadir=$DIR/dataroot \
 --infodir=$DIR/info \
 --localedir=$DIR/locale \
 --mandir=$DIR/man \
 --docdir=$DIR/doc \
 --htmldir=$DIR/html \
 --dvidir=$DIR/doc/dvi \
 --pdfdir=$DIR/doc/pdf \
 --psdir=$DIR/doc/psdir \
 --with-h323=/home/asterisk/src/openh323  \
 --with-pwlib=/home/asterisk/src/pwlib \
 --with-zaptel=${DIR}
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.