summaryrefslogtreecommitdiff
path: root/do_autogen.sh
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-02-28 07:42:00 -0800
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-03-01 06:44:40 -0800
commit18e9b66eddb23d05748a78213a6c44907dbfe03d (patch)
treeacee0f40998daa3de7f896d22fbae6e8fb95d65d /do_autogen.sh
parent9f95489a917d29672383b0940cc676081970b49d (diff)
downloadceph-18e9b66eddb23d05748a78213a6c44907dbfe03d.tar.gz
do_autogen: add -P (--with-profiler)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'do_autogen.sh')
-rwxr-xr-xdo_autogen.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/do_autogen.sh b/do_autogen.sh
index ba57bfd3eaa..4a9355c1fac 100755
--- a/do_autogen.sh
+++ b/do_autogen.sh
@@ -26,7 +26,7 @@ debug_level=0
verbose=0
CFLAGS=""
CXXFLAGS=""
-while getopts "36d:hv" flag
+while getopts "36d:hPv" flag
do
case $flag in
3) CFLAGS="$CFLAGS -m32";;
@@ -35,6 +35,8 @@ do
d) debug_level=$OPTARG;;
+ P) with_profiler="--with-profiler ";;
+
h) usage
exit 0;;
@@ -93,5 +95,5 @@ export CXXFLAGS
./configure \
--prefix=/usr --sbindir=/sbin --localstatedir=/var --sysconfdir=/etc \
---with-gtk2=yes --with-debug \
+--with-gtk2=yes --with-debug $with_profiler \
|| die "configure failed"