Evas: improve jpeg m4 macro check

Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE


SVN revision: 58097
This commit is contained in:
Vincent Torri 2011-03-26 17:09:44 +00:00
parent 6894af9d5e
commit 9cc1e2a01d
1 changed files with 13 additions and 11 deletions

View File

@ -114,17 +114,19 @@ if test "x${have_dep}" = "xyes" ; then
[jpeg_CreateDecompress],
[
evas_image_loader_[]$1[]_libs="-ljpeg"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <stdio.h>
#include <jpeglib.h>
#include <setjmp.h>
int main(int argc, char **argv) {
struct jpeg_decompress_struct decomp;
decomp.region_x = 0;
}
])],
[have_jpeg_region="yes"],
[have_jpeg_region="no"])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <stdio.h>
#include <jpeglib.h>
#include <setjmp.h>
]],
[[
struct jpeg_decompress_struct decomp;
decomp.region_x = 0;
]])],
[have_jpeg_region="yes"],
[have_jpeg_region="no"])
],
[have_dep="no"]
)