diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4 index 17685e4eb8..6bcf1da0e4 100644 --- a/legacy/evas/m4/evas_check_loader.m4 +++ b/legacy/evas/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"] )