summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-11-14 15:19:26 +0000
committerChristian Pointner <equinox@anytun.org>2009-11-14 15:19:26 +0000
commit4348a2ceb91a03cacdfeef7619360df14d4d2f3f (patch)
tree34eb11be28da9d049cf3b59d65aa47e871c8dfb4 /src/configure
parentadded init.d script documentation to Readme (diff)
installing example configs in seperater example dir now
no gzip on manpages at install
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/configure b/src/configure
index 77002f3..cfffbe7 100755
--- a/src/configure
+++ b/src/configure
@@ -47,6 +47,7 @@ BINDIR=''
SBINDIR=''
ETCDIR=''
MANDIR=''
+EXAMPLESDIR=''
print_usage() {
echo "configure --help print this"
@@ -56,6 +57,7 @@ print_usage() {
echo " --sbindir=<DIR> the path to the sbin directory (default: $PREFIX/sbin)"
echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc"
echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)"
+ echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)"
echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt"
echo " --no-crypto disable crypto at all (only NULL cipher)"
echo " --disable-passphrase disable master key and salt passphrase"
@@ -85,6 +87,9 @@ do
--mandir=*)
MANDIR=${arg#--mandir=}
;;
+ --examplesdir=*)
+ EXAMPLESDIR=${arg#--examplesdir=}
+ ;;
--use-ssl-crypto)
CRYPTO_LIB='ssl'
;;
@@ -189,6 +194,10 @@ if [ -z "$MANDIR" ]; then
MANDIR=$PREFIX/share/man
fi
+if [ -z "$EXAMPLESDIR" ]; then
+ EXAMPLESDIR=$PREFIX/share/examples
+fi
+
cat >> include.mk <<EOF
# this file was created automatically
# do not edit this file directly
@@ -207,6 +216,7 @@ BINDIR := $BINDIR
SBINDIR := $SBINDIR
ETCDIR := $ETCDIR
MANDIR := $MANDIR
+EXAMPLESDIR := $EXAMPLESDIR
EOF
exit 0