[Libreoffice-commits] .: configure.in
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Apr 13 01:37:42 PDT 2011
configure.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 99b1dfb96a3b6c01f652385e7c52b8ae959f62a6
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Wed Apr 6 12:52:37 2011 +0200
configure: check for junit's hamcrest dependency
Make sure either class-path entry is available for hamcrest or it's
bundled.
diff --git a/configure.in b/configure.in
index 5a83ef7..fa8bc6a 100755
--- a/configure.in
+++ b/configure.in
@@ -7697,7 +7697,15 @@ if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then
"$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
grep org/junit/Before.class > /dev/null 2>&5
if test $? -eq 0; then
- AC_MSG_RESULT([$OOO_JUNIT_JAR])
+ # check if either class-path entry is available for hamcrest or
+ # it's bundled
+ if "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" |grep hamcrest || \
+ "$UNZIP" -c "$OOO_JUNIT_JAR" META-INF/MANIFEST.MF |grep -q 'Class-Path: hamcrest'; then
+ AC_MSG_RESULT([$OOO_JUNIT_JAR])
+ else
+ AC_MSG_ERROR([your junit jar neither sets a classpath nor includes hamcrest; please
+provide a full junit jar or use --without-junit])
+ fi
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([cannot find JUnit 4 jar; please install one in the default
More information about the Libreoffice-commits
mailing list