Propagate --with-jni down to RPM SPEC

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@348 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2011-02-06 15:51:27 +00:00
parent 1421a264e4
commit 1b0c3b01de
2 changed files with 5 additions and 1 deletions

View File

@@ -238,6 +238,7 @@ AC_ARG_WITH([jni],
AC_HELP_STRING([--with-jni],[Include JNI wrapper in the TurboJPEG/OSS library]))
BUILDJNILIB=0
RPM_CONFIG_ARGS=
if test "x$with_jni" = "xyes"; then
AC_MSG_RESULT(yes)
@@ -263,11 +264,14 @@ if test "x$with_jni" = "xyes"; then
[AC_MSG_ERROR([Could not find JNI header file])])
CPPFLAGS=${SAVE_CPPFLAGS}
AC_SUBST(JAVA_CFLAGS)
RPM_CONFIG_ARGS=--with-jni
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL([WITH_JNI], [test "x$with_jni" = "xyes"])
AC_SUBST(BUILDJNILIB)
AC_SUBST(RPM_CONFIG_ARGS)
# SIMD is optional
AC_ARG_WITH([simd],