forked from enlightenment/efl
Evas: improve jpeg m4 macro check
Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE SVN revision: 58097
This commit is contained in:
parent
6894af9d5e
commit
9cc1e2a01d
|
@ -114,15 +114,17 @@ if test "x${have_dep}" = "xyes" ; then
|
||||||
[jpeg_CreateDecompress],
|
[jpeg_CreateDecompress],
|
||||||
[
|
[
|
||||||
evas_image_loader_[]$1[]_libs="-ljpeg"
|
evas_image_loader_[]$1[]_libs="-ljpeg"
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
AC_COMPILE_IFELSE(
|
||||||
#include <stdio.h>
|
[AC_LANG_PROGRAM(
|
||||||
#include <jpeglib.h>
|
[[
|
||||||
#include <setjmp.h>
|
#include <stdio.h>
|
||||||
int main(int argc, char **argv) {
|
#include <jpeglib.h>
|
||||||
struct jpeg_decompress_struct decomp;
|
#include <setjmp.h>
|
||||||
decomp.region_x = 0;
|
]],
|
||||||
}
|
[[
|
||||||
])],
|
struct jpeg_decompress_struct decomp;
|
||||||
|
decomp.region_x = 0;
|
||||||
|
]])],
|
||||||
[have_jpeg_region="yes"],
|
[have_jpeg_region="yes"],
|
||||||
[have_jpeg_region="no"])
|
[have_jpeg_region="no"])
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue