Signed-off-by: Sage Weil <sage@newdream.net>
level 3: -Wextra
level 4: even more...
-H --with-hadoop
+-T --without-tcmalloc
-e <path> dump encoded objects to <path>
-P profiling build
debug_level=0
verbose=0
profile=0
-HADOOP_FLAGS=
-while getopts "d:e:hHPv" flag
+CONFIGURE_FLAGS=
+while getopts "d:e:hHTPv" flag
do
case $flag in
d) debug_level=$OPTARG;;
h) usage
exit 0;;
- H) HADOOP_FLAGS="--with-hadoop";;
+ H) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --with-hadoop";;
+
+ T) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --without-tcmalloc";;
v) verbose=1;;
./configure \
--prefix=/usr --sbindir=/sbin --localstatedir=/var --sysconfdir=/etc \
--with-gtk2=yes --with-debug $with_profiler --with-cryptopp --with-radosgw \
-$HADOOP_FLAGS \
+$CONFIGURE_FLAGS \
|| die "configure failed"