]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_autogen: add -P (--with-profiler)
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 28 Feb 2011 15:42:00 +0000 (07:42 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 1 Mar 2011 14:44:40 +0000 (06:44 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
do_autogen.sh

index ba57bfd3eaacbcef253e9b2fbec0bcd0e327ffcf..4a9355c1fac578e700326fb8e84201f57b18da90 100755 (executable)
@@ -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"