[libbluray-devel] Configure: fail if ant is not found with BD-J

Jean-Baptiste Kempf git at videolan.org
Wed Jul 16 02:25:52 CEST 2014


libbluray | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 16 02:25:36 2014 +0200| [84ffa5d2e36a5b92dbd8cdeee1e9dc332dcf1b57] | committer: Jean-Baptiste Kempf

Configure: fail if ant is not found with BD-J

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=84ffa5d2e36a5b92dbd8cdeee1e9dc332dcf1b57
---

 configure.ac |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index f0c311d..5c695b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,6 +203,11 @@ if [[ $use_bdjava = "yes" ]]; then
     BDJAVA_CFLAGS='-I${abs_top_srcdir}/jni -I${abs_top_srcdir}/jni/'"${java_os}"
   ])
 
+  AC_CHECK_PROG(HAVE_ANT, [ant], yes, no)
+  if test "x$HAVE_ANT" = "xno"; then
+      AC_MSG_ERROR([BD-J requires ANT, but ant was not found. Please install it.])
+  fi
+
   AC_DEFINE([USING_BDJAVA], [1], ["Define to 1 if using BD-Java"])
   AC_DEFINE_UNQUOTED([JAVA_ARCH], ["$java_arch"], ["Defines the architecture of the java vm."])
   AC_DEFINE_UNQUOTED([JDK_HOME], ["$JDK_HOME"], [""])



More information about the libbluray-devel mailing list