THRIFT-450. java: Check for Apache Commons Lang also
authorDavid Reiss <dreiss@apache.org>
Fri, 22 May 2009 19:50:29 +0000 (19:50 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 22 May 2009 19:50:29 +0000 (19:50 +0000)
I forgot that we use the hashcode option when building the tests.
We therefore need to check for HashCodeBuilder before disabling Ivy.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777676 13f79535-47bb-0310-9956-ffa450edef68

configure.ac

index 2c53ca0..4a88cd8 100644 (file)
@@ -72,7 +72,9 @@ if test "$with_java" = "yes";  then
   AC_PATH_PROG([ANT], [ant])
   AX_CHECK_JAVA_CLASS(org.apache.log4j.Logger)
   have_log4j="$success"
-  if test "x$have_log4j" = "xyes" ; then
+  AX_CHECK_JAVA_CLASS(org.apache.commons.lang.builder.HashCodeBuilder)
+  have_hashcode="$success"
+  if test "x$have_log4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
     ANT_FLAGS="$ANT_FLAGS -Dnoivy="
   fi
   AC_SUBST(ANT_FLAGS)