From 7cad346f3529c71f0a512cb3a437e1d3c475ea94 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 31 Jan 2009 02:18:21 +0000 Subject: added disable-routing to configure script --- src/configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/configure') diff --git a/src/configure b/src/configure index 827081f..1e8786f 100755 --- a/src/configure +++ b/src/configure @@ -38,6 +38,7 @@ LDFLAGS='-g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system' CRYPTO_LIB='gcrypt' ANYTUN_02_COMPAT=0 PASSPHRASE=1 +ROUTING=1 print_usage() { echo "configure --help print this" @@ -45,6 +46,7 @@ print_usage() { echo " --disable-crypto disable crypto at all (only NULL cipher)" echo " --enable-anytun02-compat enable compatiblity mode for anytun 0.2.x and prior" echo " --disable-passphrase disable master key and salt passphrase" + echo " --disable-routing disable built-in routing capability" } for arg @@ -62,6 +64,9 @@ do --disable-passphrase) PASSPHRASE=0 ;; + --disable-routing) + ROUTING=0 + ;; --help) print_usage exit 0 @@ -121,6 +126,11 @@ if [ $PASSPHRASE -eq 0 ]; then echo "disabling master key and salt passphrase" fi +if [ $ROUTING -eq 0 ]; then + CXXFLAGS=$CXXFLAGS' -DNO_ROUTING' + echo "disabling built-in routing capability" +fi + cat >> include.mk <