s3/packaging: Fix build on RHEL when ccache is not available.
authorKarolin Seeger <kseeger@samba.org>
Wed, 13 May 2009 08:07:56 +0000 (10:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 May 2009 08:07:56 +0000 (10:07 +0200)
This fixes bug #5832.
Patch was provided by D.L. Meyer <dlmeyer [at] uiuc.edu>.

Thanks for reporting and providing the patch!

Karolin

packaging/RHEL/samba.spec.tmpl

index d3724d9..7818296 100644 (file)
@@ -122,8 +122,7 @@ 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
+if [ "$(which ccache 2> /dev/null)" != "" ]; then
        CC="ccache gcc"
 else
        CC="gcc"