ceph.spec.in: Improve finding location of jni.h for sles11.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
This commit is contained in:
Gary Lowell 2012-12-18 21:00:15 -08:00
parent 46344105e7
commit d9c2396b55

View File

@ -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