From: Gary Lowell Date: Wed, 19 Dec 2012 05:00:15 +0000 (-0800) Subject: ceph.spec.in: Improve finding location of jni.h for sles11. X-Git-Tag: v0.56~37^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9c2396b550a13b6f1018e02c2ef92abdcce92cf;p=ceph.git ceph.spec.in: Improve finding location of jni.h for sles11. Signed-off-by: Gary Lowell --- diff --git a/ceph.spec.in b/ceph.spec.in index 6f95c56c8ca6..7aae6fefedba 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -222,8 +222,8 @@ This package contains the Java libraries for the Ceph File System. %build # Find jni.h -for i in -I/usr/lib/jvm/java/include{,/linux}; do - java_inc="$java_inc $i" +for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do + [ -d $i ] && java_inc="$java_inc -I$i" done ./autogen.sh