From 3cdc4cc7044a6aec80cdd11c2cd854bd6c7b0e5c Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 26 Mar 2011 17:09:44 +0000 Subject: [PATCH] Evas: improve jpeg m4 macro check Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58097 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- m4/evas_check_loader.m4 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/m4/evas_check_loader.m4 b/m4/evas_check_loader.m4 index 17685e4..6bcf1da 100644 --- a/m4/evas_check_loader.m4 +++ b/m4/evas_check_loader.m4 @@ -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 - #include - #include - 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 +#include +#include + ]], + [[ +struct jpeg_decompress_struct decomp; +decomp.region_x = 0; + ]])], + [have_jpeg_region="yes"], + [have_jpeg_region="no"]) ], [have_dep="no"] ) -- 2.7.4