Fix build if openjpeg-2 is installed
libopenjp2.so on Debian belongs actually to openjpeg-2.1, while libopenjpeg.so belongs to openjpeg-1.5. The function opj_set_default_decoder_parameters exists in both versions. Thus another unique to openjpeg-1.5 function must be chosen to check, whether libopenjp2 is a right one. Fixes https://phab.enlightenment.org/T3064
This commit is contained in:
parent
6f684f3a6a
commit
0102cf663e
|
@ -214,7 +214,7 @@ AC_CHECK_HEADER([openjpeg.h], [have_dep="yes"])
|
||||||
|
|
||||||
if test "x${have_dep}" = "xyes" ; then
|
if test "x${have_dep}" = "xyes" ; then
|
||||||
AC_CHECK_LIB([openjp2],
|
AC_CHECK_LIB([openjp2],
|
||||||
[opj_set_default_decoder_parameters],
|
[opj_cio_open],
|
||||||
[
|
[
|
||||||
evas_image_loader_[]$1[]_libs="-lopenjp2"
|
evas_image_loader_[]$1[]_libs="-lopenjp2"
|
||||||
have_dep="yes"
|
have_dep="yes"
|
||||||
|
|
Loading…
Reference in New Issue