packaging(RHEL-CTDB): use ccache if available
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 02:07:19 +0000 (03:07 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 11 Dec 2008 16:53:46 +0000 (17:53 +0100)
Michael
(cherry picked from commit 36ca917a63f23126536e786bed845dee48fbf61c)
(cherry picked from commit 05b51bc176f87e7dc1b65adf3d866e797159d953)

packaging/RHEL-CTDB/samba.spec.tmpl

index efcd2ed..f67cab6 100644 (file)
@@ -133,12 +133,12 @@ cd source
 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
 
 ## check for ccache
-ccache -h 2>&1 > /dev/null
-#if [ $? -eq 0 ]; then
-#      CC="ccache gcc"
-#else
+ccache -h 2>&1 > /dev/null
+if [ $? -eq 0 ]; then
+       CC="ccache gcc"
+else
        CC="gcc"
-#fi 
+fi
 
 ## always run autogen.sh
 ./autogen.sh