summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-31 07:19:19 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-31 07:19:19 +0000
commitb8d683216ae1eb7e5215c2a1a5e5bf20c535f301 (patch)
treee1904c0de399e1f702cb40e260a105fd91706e75
parentd1cb0dc9c22327c87c47a3f9dfedbb461b828c4b (diff)
downloadzabbix-b8d683216ae1eb7e5215c2a1a5e5bf20c535f301.tar.gz
zabbix-b8d683216ae1eb7e5215c2a1a5e5bf20c535f301.tar.xz
zabbix-b8d683216ae1eb7e5215c2a1a5e5bf20c535f301.zip
- minor changes for compilation script (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4487 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rwxr-xr-xdo23
1 files changed, 19 insertions, 4 deletions
diff --git a/do b/do
index f547364f..2727cb98 100755
--- a/do
+++ b/do
@@ -23,7 +23,12 @@ cleanwarnings="no"
docat="yes"
help="no"
noparam=0
-def="--enable-agent --enable-server --with-mysql --prefix=`pwd` --with-libcurl --with-ldap"
+database="mysql"
+max="--prefix=`pwd` --enable-agent --enable-server --with-${database} --with-libcurl --with-ldap --with-net-snmp --with-jabber=/usr --with-unixodbc"
+def="--prefix=`pwd` --enable-agent --enable-server --with-${database} --with-libcurl --with-ldap"
+min="--prefix=`pwd` --enable-agent --enable-server --with-${database} --with-libcurl=no"
+server="--prefix=`pwd` --enable-server --with-${database}"
+agent="--prefix=`pwd` --enable-agent"
for cmd
do
@@ -48,6 +53,10 @@ do
ansi ) ANSI=" -ansi";;
mem ) TEST_MEM=" -DENABLE_CHECK_MEMOTY";;
def ) config_param="$config_param $def";;
+ max ) config_param="$config_param $max";;
+ min ) config_param="$config_param $min";;
+ agent ) config_param="$config_param $agent";;
+ server ) config_param="$config_param $server";;
--enable-* ) config_param="$config_param $cmd";;
--with-* ) config_param="$config_param $cmd";;
--prefix=* ) config_param="$config_param $cmd";;
@@ -72,17 +81,23 @@ then
echo " [make] - make applications"
echo " [run] - run applications"
echo " [inst|install] - install applications"
+ echo " [cat] - cat WARRNING file at the end (defaut - ON)"
+ echo " [nocat] - do not cat WARRNING file"
echo
echo " Options:"
echo " [todo] - configure for TODO mode"
echo " [mem] - configure for memory leak testing"
echo " [test] - enable configuration test mode"
echo " [ansi] - enable compilation with ANSI mode"
- echo " [def] - default configuration \"$def\""
- echo " [cat] - cat WARRNING file at the end (defaut - ON)"
- echo " [nocat] - do not cat WARRNING file"
echo " [--enable-*] - option for configuration"
echo " [--with-*] - option for configuration"
+ echo
+ echo " Configuration scopes:"
+ echo " [max] - maximal configuration \"$max\""
+ echo " [def] - default configuration \"$def\""
+ echo " [min] - minimal configuration \"$min\""
+ echo " [agent] - only agent configuration \"$agent\""
+ echo " [server] - only server configuration \"$server\""
echo
echo "Examples:"
echo " $0 conf def make test - compyle, test, and sow report"