From 415afbb4b9a78e794bc9bfe4847672e6d1611e1f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 15 Nov 2009 16:07:24 +0000 Subject: added --no-manpage to configure and make more protable usage of sed --- src/configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index 0f3750c..5381010 100755 --- a/src/configure +++ b/src/configure @@ -47,6 +47,7 @@ BINDIR='' SBINDIR='' ETCDIR='' MANDIR='' +INSTALLMANPAGE=1 EXAMPLESDIR='' INSTALLEXAMPLES=1 @@ -58,6 +59,7 @@ print_usage() { echo " --sbindir= the path to the sbin directory (default: $PREFIX/sbin)" echo " --sysconfdir= the path to the system configuration directory (default: $PREFIX/etc" echo " --mandir= the path to the system man pages (default: $PREFIX/share/man)" + echo " --no-manpage dont't install manpages" echo " --examplesdir= the path to the examples files (default: $PREFIX/share/examples)" echo " --no-examples dont't install example files" echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt" @@ -89,6 +91,9 @@ do --mandir=*) MANDIR=${arg#--mandir=} ;; + --no-manpage) + INSTALLMANPAGE=0 + ;; --examplesdir=*) EXAMPLESDIR=${arg#--examplesdir=} ;; @@ -220,9 +225,15 @@ PREFIX := $PREFIX BINDIR := $BINDIR SBINDIR := $SBINDIR ETCDIR := $ETCDIR -MANDIR := $MANDIR EOF +if [ $INSTALLMANPAGE -eq 1 ]; then + echo "MANDIR := $MANDIR" >> include.mk + echo "installing manpage" +else + echo "not installing manpage" +fi + if [ $INSTALLEXAMPLES -eq 1 ]; then echo "EXAMPLESDIR := $EXAMPLESDIR" >> include.mk echo "installing example files" -- cgit v1.2.3