fix a bogus Java version check

These clowns look at just the first digit, thinking that 10 means 1.

Gbp-Pq: Name 009-java-10.patch
This commit is contained in:
Ubuntu Developers 2022-05-13 20:11:41 +08:00 committed by openKylinBot
parent 8c037d71d3
commit 5905100e14
1 changed files with 5 additions and 5 deletions

10
dist/configure.ac vendored
View File

@ -453,11 +453,11 @@ if test "$db_cv_java" = "yes" -o "$db_cv_jdbc" = "yes"; then
sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;;
esac
AC_MSG_RESULT($JAVA_VERSION)
case "$JAVA_VERSION" in
1.[[3456789]]* | 1.[[1-9]][[0-9]]* | [[23456789]]* ) ;;
* )
AC_MSG_ERROR([Java version 1.3 or higher required, got $JAVA_VERSION]) ;;
esac
#case "$JAVA_VERSION" in
#1.[[3456789]]* | 1.[[1-9]][[0-9]]* | [[23456789]]* ) ;;
#* )
# AC_MSG_ERROR([Java version 1.3 or higher required, got $JAVA_VERSION]) ;;
#esac
# Because of the code that SWIG generates to cast between pointers and
# integers, we need to add the flag "-fno-strict-aliasing" to the gcc