1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-08 12:28:00 -05:00

configure changes for java detection (require swig)

by Christian Hamar alias krix <krics@linuxforum.hu>
This commit is contained in:
Aaron Griffin 2006-10-16 00:02:43 +00:00
parent ac30eb2c1e
commit 31c682c4ee
2 changed files with 26 additions and 12 deletions

View File

@ -297,17 +297,31 @@ fi
dnl Check for java support dnl Check for java support
AC_MSG_CHECKING(if Java bindings should be generated) AC_MSG_CHECKING(if Java bindings should be generated)
if test x$wantjava = xyes ; then if test x$wantjava = xyes ; then
AC_CHECK_PROGS([JAVAC], [javac]) AC_CHECK_PROGS([SWIG], [swig])
AM_CONDITIONAL(HAS_JAVA, test $JAVAC) AC_CHECK_PROGS([JAVAC], [javac])
if test $JAVAC ; then AM_CONDITIONAL(HAS_JAVA, test $SWIG)
AC_DEFINE([HAS_JAVA], [TRUE], [Enabled Java Support]) AM_CONDITIONAL(HAS_JAVA, test $JAVAC)
AC_MSG_RESULT(yes) if test $JAVAC ; then
JAVASTATUS="yes, path: `which $JAVAC`" if test $SWIG ; then
else AC_DEFINE([HAS_JAVA], [TRUE], [Enabled Java Support (javac=ok swig=ok)])
AC_DEFINE([HAS_JAVA], [FALSE], [Disabled Java support]) AC_MSG_RESULT(yes)
AC_MSG_RESULT(no, javac missing) JAVASTATUS="yes, path: `which $JAVAC`"
JAVASTATUS="java compiler not found" else
fi AC_DEFINE([HAS_JAVA], [FALSE], [Java support disabled because swig not found (javac=ok swig=missing)])
AC_MSG_RESULT(no, swig not found and that is need for java)
JAVASTATUS="java compiler found, swig not found"
fi
else
if test $SWIG ; then
AC_DEFINE([HAS_JAVA], [FALSE], [Disabled Java support (javac=missing swig=ok])
AC_MSG_RESULT(no, javac missing, swig ok)
JAVASTATUS="java compiler not found, swig found"
else
AC_DEFINE([HAS_JAVA], [FALSE], [Disabled Java support (javac=missing swig=missing])
AC_MSG_RESULT(no, javac missing, swig missing)
JAVASTATUS="java compiler not found, swig not found"
fi
fi
else else
AM_CONDITIONAL(HAS_JAVA, test $JAVAC) AM_CONDITIONAL(HAS_JAVA, test $JAVAC)
AC_DEFINE([HAS_JAVA], [FALSE], [Not specified at configure line]) AC_DEFINE([HAS_JAVA], [FALSE], [Not specified at configure line])

View File

@ -20,7 +20,7 @@ pacman.8:
endif endif
clean: clean:
rm -f html/* rm -f html/*.html
rm -f hu/*.8 rm -f hu/*.8
rm -f man3/*.3 rm -f man3/*.3