Evas: improve jpeg m4 macro check
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 26 Mar 2011 17:09:44 +0000 (17:09 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 26 Mar 2011 17:09:44 +0000 (17:09 +0000)
Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@58097 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/evas_check_loader.m4

index 17685e4..6bcf1da 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"]
    )