Skip to content

Commit

Permalink
Merge pull request #597 from quanah/master
Browse files Browse the repository at this point in the history
Fixes #596 - Remove java plugin
  • Loading branch information
quanah committed Feb 27, 2020
2 parents ca1e50f + c3e1da0 commit bda4c98
Show file tree
Hide file tree
Showing 47 changed files with 2 additions and 5,212 deletions.
7 changes: 1 addition & 6 deletions Makefile.am
Expand Up @@ -59,18 +59,13 @@ SAM = sample
else
SAM =
endif
if JAVA
JAV = java
else
JAV =
endif
if MACOSX
INSTALLOSX = install-exec-local-osx
else
INSTALLOSX =
endif

SUBDIRS=include sasldb common lib plugins utils $(PWC) $(SAM) $(JAV) $(SAD)
SUBDIRS=include sasldb common lib plugins utils $(PWC) $(SAM) $(SAD)
EXTRA_DIST=config doc docsrc win32 mac dlcompat-20010505 NTMakefile \
INSTALL.TXT libsasl2.pc.in

Expand Down
2 changes: 1 addition & 1 deletion config/sasl.spec
Expand Up @@ -72,7 +72,7 @@ This plugin implements the SASL SCRAM-SHA-1/SCRAM-SHA-2 mechanism.
%setup

%build
./configure --prefix=/usr --disable-java
./configure --prefix=/usr
make

%install
Expand Down
55 changes: 0 additions & 55 deletions configure.ac
Expand Up @@ -152,54 +152,6 @@ if test "$with_purify" = yes; then
AC_CHECK_PROGS(PURIFY, purify)
fi

AC_ARG_ENABLE(java, [ --enable-java compile Java support [[no]]],
enable_java=$enableval, enable_java=no)
if test "$enable_java" = yes; then
AC_PATH_PROG(JAVAC, javac, no)
AC_PATH_PROGS(JAVAH, javah kaffeh, no)
AC_CHECK_PROGS(JAVADOC, javadoc, :)
if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
AC_WARN([Disabling Java support])
enable_java=no
fi
else
# Make distcheck work
JAVAC="true"
JAVAH="true"
JAVADOC="true"
fi
AM_CONDITIONAL(JAVA, test "$enable_java" = yes)

if test "$enable_java" = yes; then
AC_MSG_CHECKING([JNI cpp flags])
AC_CACHE_VAL(sasl_cv_java_includes,[
if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
else
java_base=`echo $JAVAC | sed 's,/bin.*,'','`
AC_ARG_WITH(javabase, [ --with-javabase=PATH set path to find jni.h in [/usr/java/include] ],
java_base=$withval,)
sasl_cv_java_includes=''
for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
done
fi
sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"])

JAVA_INCLUDES=$sasl_cv_java_includes
AC_SUBST(JAVA_INCLUDES)
AC_MSG_RESULT(ok)

JAVAROOT=".."
AC_SUBST(JAVAROOT)
JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
fi

AM_CONDITIONAL(SAMPLE, test "$enable_sample" = yes)

dnl call before we do the berkeley DB checks
Expand Down Expand Up @@ -1564,13 +1516,6 @@ plugins/Makefile
lib/Makefile
utils/Makefile
sample/Makefile
java/Makefile
java/CyrusSasl/Makefile
java/Test/Makefile
java/javax/Makefile
java/javax/security/Makefile
java/javax/security/auth/Makefile
java/javax/security/auth/callback/Makefile
pwcheck/Makefile)

AC_MSG_NOTICE([
Expand Down
5 changes: 0 additions & 5 deletions java/.cvsignore

This file was deleted.

8 changes: 0 additions & 8 deletions java/CyrusSasl/.cvsignore

This file was deleted.

79 changes: 0 additions & 79 deletions java/CyrusSasl/ClientFactory.java

This file was deleted.

197 changes: 0 additions & 197 deletions java/CyrusSasl/GenericClient.java

This file was deleted.

0 comments on commit bda4c98

Please sign in to comment.