From: Enlightenment S. <no-...@en...> - 2011-02-04 12:00:11
|
Log: libopenjpeg has a .pc file Author: caro Date: 2011-02-04 04:00:04 -0800 (Fri, 04 Feb 2011) New Revision: 56710 Trac: http://trac.enlightenment.org/e/changeset/56710 Modified: trunk/PROTO/eyesight/m4/eyesight_check.m4 Modified: trunk/PROTO/eyesight/m4/eyesight_check.m4 =================================================================== --- trunk/PROTO/eyesight/m4/eyesight_check.m4 2011-02-04 11:46:06 UTC (rev 56709) +++ trunk/PROTO/eyesight/m4/eyesight_check.m4 2011-02-04 12:00:04 UTC (rev 56710) @@ -62,35 +62,15 @@ else dnl PDF backend is enabled and it's not poppler, then it is mupdf -MUPDF_CFLAGS="" -MUPDF_LIBS="" + MUPDF_CFLAGS="" + MUPDF_LIBS="" dnl Freetype - PKG_CHECK_MODULES([FREETYPE], [freetype2], [have_dep="yes"], [have_dep="no"]) + PKG_CHECK_MODULES([MUPDF_DEP], + [freetype2 libopenjpeg1], + [have_dep="yes"], + [have_dep="no"]) -dnl openjpeg - if test "x${have_dep}" = "xyes" ; then - AC_CHECK_HEADER([openjpeg.h], [have_dep="yes"], [have_dep="no"]) - fi - - if test "x${have_dep}" = "xyes" ; then - SAVE_LIBS=${LIBS} - LIBS="${LIBS} -lopenjpeg" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[ -#include <stdlib.h> -#include <openjpeg.h> - ]], - [[ -opj_set_default_decoder_parameters (NULL); - ]])], - [have_dep="yes"], - [have_dep="no"]) - LIBS=${SAVE_LIBS} - AC_MSG_CHECKING([for opj_set_default_decoder_parameters in -lopenjpeg]) - AC_MSG_RESULT([${have_dep}]) - fi - dnl jbig2 if test "x${have_dep}" = "xyes" ; then AC_CHECK_HEADER([jbig2.h], [have_dep="yes"], [have_dep="no"]) @@ -101,9 +81,9 @@ fi if test "x${have_dep}" = "xyes" ; then - requirement="freetype2" - MUPDF_CFLAGS="${FREETYPE_CFLAGS}" - MUPDF_LIBS="${FREETYPE_LIBS} -lopenjpeg -ljbig2dec" + requirement="freetype2 libopenjpeg1" + MUPDF_CFLAGS="${MUPDF_DEP_CFLAGS}" + MUPDF_LIBS="${MUPDF_DEP_LIBS} -ljbig2dec" fi dnl CJK fonts |