configure: fix LIBJPEG_LIBS, jpeg-turbo can also be used on Linux

Change-Id: I710f8ba31b6f780e3fb1d174d9ea21f270f55264
This commit is contained in:
Michael Stahl
2016-11-03 11:48:07 +01:00
parent 8b69433394
commit 6a866f99ec

View File

@@ -7769,13 +7769,21 @@ _EOS
AC_MSG_ERROR([no nasm (Netwide Assembler) found])
fi
LIBJPEG_CFLAGS="-I${WORKDIR}/UnpackedTarball/jpeg-turbo"
if test "$COM" = "MSC"; then
LIBJPEG_LIBS="${WORKDIR}/UnpackedTarball/jpeg-turbo/.libs/libjpeg.lib"
else
LIBJPEG_LIBS="-L${WORKDIR}/UnpackedTarball/jpeg-turbo/.libs -ljpeg"
fi
else
AC_MSG_RESULT([internal, jpeg])
BUILD_TYPE="$BUILD_TYPE JPEG"
LIBJPEG_CFLAGS="-I${WORKDIR}/UnpackedTarball/jpeg"
if test "$COM" = "MSC"; then
LIBJPEG_LIBS="${WORKDIR}/LinkTarget/StaticLibrary/libjpeg.lib"
else
LIBJPEG_LIBS="-L${WORKDIR}/LinkTarget/StaticLibrary -ljpeg"
fi
fi
fi
AC_SUBST(NASM)
AC_SUBST(LIBJPEG_CFLAGS)