Evas: improve jpeg m4 macro check
authorVincent Torri <vincent.torri@gmail.com>
Sat, 26 Mar 2011 17:09:44 +0000 (17:09 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 26 Mar 2011 17:09:44 +0000 (17:09 +0000)
Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE

SVN revision: 58097

legacy/evas/m4/evas_check_loader.m4

index 17685e4eb896ed3811268f245019284c1b4656a3..6bcf1da0e45b42ed6b7820f1b16b95b5553698cd 100644 (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"]
    )