Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz4j
[yaz4j-moved-to-github.git] / libyaz4j / build.sh
index 9b15b74..98f55d9 100755 (executable)
@@ -1,9 +1,5 @@
 #!/bin/bash
-
-# You may need to do something like this:
-#      env JAVA_HOME=/usr/lib/jvm/java-6-sun ./build.sh
-
-JNI_DIR=${JAVA_HOME}/include
+JNI_DIR=${JAVA_HOME:-/usr/lib/jvm/java-6-sun}/include
 set -x
 YAZ_CONFIG=yaz-config
 YAZ_PREFIX=`${YAZ_CONFIG} --prefix`