From 7d5c250a4d70b92460f3bf199dc8db9f69651b3b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 1 Apr 2011 18:30:58 +0200 Subject: [PATCH] configure: add hamcrest jar to classpath after junit, if found Hamcrest is a dependency for JUnit-4.4+ and it's packaged separetely on some systems. --- configure.in | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index 80af57e..6a84f97 100755 --- a/configure.in +++ b/configure.in @@ -7657,6 +7657,11 @@ if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then else OOO_JUNIT_JAR=/usr/share/java/junit.jar fi + # hamcrest is a dependency of junit, add it to the classpath if + # found + if test -e /usr/share/java/hamcrest-core.jar; then + OOO_JUNIT_JAR=$OOO_JUNIT_JAR:/usr/share/java/hamcrest-core.jar + fi else OOO_JUNIT_JAR=$with_junit fi -- 1.7.4.1