summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-03-26 17:09:44 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-03-26 17:09:44 +0000
commit9cc1e2a01de94c93f31312fdff897142feba57d1 (patch)
treef7d7462922af9f77163dc31aa29a8e3d18c960ee /legacy/evas/m4
parent6894af9d5ecd02d0fb2bcf08d76da7e9e280382e (diff)
Evas: improve jpeg m4 macro check
Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE SVN revision: 58097
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_loader.m424
1 files changed, 13 insertions, 11 deletions
diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4
index 17685e4..6bcf1da 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
114 [jpeg_CreateDecompress], 114 [jpeg_CreateDecompress],
115 [ 115 [
116 evas_image_loader_[]$1[]_libs="-ljpeg" 116 evas_image_loader_[]$1[]_libs="-ljpeg"
117 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 117 AC_COMPILE_IFELSE(
118 #include <stdio.h> 118 [AC_LANG_PROGRAM(
119 #include <jpeglib.h> 119 [[
120 #include <setjmp.h> 120#include <stdio.h>
121 int main(int argc, char **argv) { 121#include <jpeglib.h>
122 struct jpeg_decompress_struct decomp; 122#include <setjmp.h>
123 decomp.region_x = 0; 123 ]],
124 } 124 [[
125 ])], 125struct jpeg_decompress_struct decomp;
126 [have_jpeg_region="yes"], 126decomp.region_x = 0;
127 [have_jpeg_region="no"]) 127 ]])],
128 [have_jpeg_region="yes"],
129 [have_jpeg_region="no"])
128 ], 130 ],
129 [have_dep="no"] 131 [have_dep="no"]
130 ) 132 )