summaryrefslogtreecommitdiffstats
path: root/extras/japi/m4/ax_vpp_find_jdk8.m4
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-09-13 09:59:50 +0200
committerFlorin Coras <florin.coras@gmail.com>2018-11-13 16:13:24 +0000
commit24195081f1355c91cd716f09f88db0721671cbd0 (patch)
treeb4edc26fa395ef5515903e5338fdf429f6c5984f /extras/japi/m4/ax_vpp_find_jdk8.m4
parente82eb635b1377c2b14d28127a121eabd10b3b83d (diff)
japi: Move Java API binding to cmake
Change-Id: I264d547a06e3636d021a74cd26efb8137f629cbc Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'extras/japi/m4/ax_vpp_find_jdk8.m4')
-rw-r--r--extras/japi/m4/ax_vpp_find_jdk8.m443
1 files changed, 0 insertions, 43 deletions
diff --git a/extras/japi/m4/ax_vpp_find_jdk8.m4 b/extras/japi/m4/ax_vpp_find_jdk8.m4
deleted file mode 100644
index 94b785038f7..00000000000
--- a/extras/japi/m4/ax_vpp_find_jdk8.m4
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-AC_DEFUN([AX_VPP_FIND_JDK8],
-[
-while true
-do
- if test "${JAVA_HOME+set}" = set ; then
- AC_MSG_CHECKING([${JAVA_HOME} for Java 8 compiler])
- JAVAC=${JAVA_HOME}/bin/javac
- JAVAH=${JAVA_HOME}/bin/javah
- JAR=${JAVA_HOME}/bin/jar
- JAVA_VERSION=$(${JAVA_HOME}/bin/javac -source 8 -version 2>&1)
- if test 0 -eq "$?"; then
- JAVA_VERSION=$(echo "${JAVA_VERSION}" | cut -d\ -f2)
- AC_MSG_RESULT([ok])
- else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([Java in ${JAVA_HOME} (path specified in JAVA_HOME) cannot compile Java 8 code])
- fi
- break
- fi
-
- for dir in $(find /usr/lib*/jvm/* -maxdepth 0 -type d); do
- AC_MSG_CHECKING([${dir} for Java 8 compiler])
- JAVA_VERSION=$(${dir}/bin/javac -source 8 -version 2>&1)
- if test 0 -eq "$?"; then
- JAVA_VERSION=$(echo "${JAVA_VERSION}" | cut -d\ -f2)
- JAVA_HOME=${dir}
- JAVAC=${dir}/bin/javac
- JAVAH=${dir}/bin/javah
- JAR=${dir}/bin/jar
- AC_MSG_RESULT([found version $JAVA_VERSION])
- break
- else
- JAVA_VERSION=""
- AC_MSG_RESULT([no])
- fi
- done
-
- test "${JAVA_HOME}set" = set && AC_MSG_ERROR([Could not find Java 8 compiler])
- break
-done
-])