changeset 34188:d7bcbf5f7dc3

Fix compilation for broken libopenjpeg. Some versions of openjpeg.h only declare opj_decode_with_info() in a comment.
author cehoyos
date Sat, 29 Oct 2011 10:01:32 +0000
parents fa92aa696903
children 4b5f57ccfff1
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Oct 28 12:46:30 2011 +0000
+++ b/configure	Sat Oct 29 10:01:32 2011 +0000
@@ -4836,7 +4836,7 @@
 echocheck "OpenJPEG (JPEG 2000) support"
 if test "$libopenjpeg" = auto ; then
   libopenjpeg=no
-  define_statement_check OPJ_STATIC openjpeg.h 'opj_dparameters_t dec_params; opj_set_default_decoder_parameters(&dec_params)' -lopenjpeg && libopenjpeg=yes
+  define_statement_check OPJ_STATIC openjpeg.h 'opj_dparameters_t dec_params; opj_set_default_decoder_parameters(&dec_params);opj_decode_with_info(0,0,0)' -lopenjpeg && libopenjpeg=yes
 fi
 echores "$libopenjpeg"
 if test "$libopenjpeg" = yes ; then