THRIFT-450. java: Propagate CLASSPATH from ./configure to make and ant
authorDavid Reiss <dreiss@apache.org>
Fri, 22 May 2009 19:50:33 +0000 (19:50 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 22 May 2009 19:50:33 +0000 (19:50 +0000)
- Put "AC_SUBST(CLASSPATH)" configure.ac so the CLASSPATH used to run
  ./configure is passed in to make.
- Put "export CLASSPATH" in lib/java/Makefile.am so that the CLASSPATH
  passed to make is passed to ant.

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

configure.ac
lib/java/Makefile.am

index 4a88cd8..8951750 100644 (file)
@@ -77,6 +77,7 @@ if test "$with_java" = "yes";  then
   if test "x$have_log4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
     ANT_FLAGS="$ANT_FLAGS -Dnoivy="
   fi
+  AC_SUBST(CLASSPATH)
   AC_SUBST(ANT_FLAGS)
 fi
 AM_CONDITIONAL([WITH_JAVA],
index ffcdc03..c5c7521 100644 (file)
@@ -19,6 +19,8 @@
 
 EXTRA_DIST = build.xml src test
 
+export CLASSPATH
+
 all-local:
        $(ANT) $(ANT_FLAGS)