configure.ac: ignore COGL_PANGO_DEPS if cogl-pango disabled

This skips the pkg-config check for COGL_PANGO_DEPS if
--disable-cogl-pango was explicitly passed to ./configure.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-12-19 16:01:37 +00:00
parent c7eaf4cd11
commit 390bb69fba

View File

@ -992,7 +992,10 @@ if test -n "$COGL_PKG_REQUIRES_GL"; then
COGL_DEP_LIBS="$COGL_DEP_LIBS $gl_libs"
fi
AC_SUBST(COGL_PANGO_PKG_REQUIRES)
AS_IF([test "x$enable_cogl_pango" = "xyes"],
PKG_CHECK_MODULES(COGL_PANGO_DEP, [$COGL_PANGO_PKG_REQUIRES])
)
dnl ================================================================
dnl Misc program dependencies.