Kaydet (Commit) 850b4c7e authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

configure.ac: automatically find versioned servlet-api.jar

Change-Id: I87533bb16d0ac2bbcb7c8592c4f6caa1aa05c705
üst 93c69637
......@@ -10009,7 +10009,11 @@ if test "$ENABLE_MEDIAWIKI" = "YES"; then
AC_MSG_RESULT([external])
SYSTEM_SERVLETAPI=YES
if test -z "$SERVLETAPI_JAR"; then
SERVLETAPI_JAR=/usr/share/java/servlet-api.jar
for version in '' -3.3 -3.2 -3.1 -3.0 -2.5 -2.4; do
if test -r "/usr/share/java/servlet-api${version}.jar"; then
SERVLETAPI_JAR=/usr/share/java/servlet-api${version}.jar
fi
done
fi
AC_CHECK_FILE($SERVLETAPI_JAR, [],
[AC_MSG_ERROR(servlet-api.jar not found.)], [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment