diff options
author | Colin Walters <walters@verbum.org> | 2013-05-24 18:04:49 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-05-24 18:04:49 +0100 |
commit | fe8d5ce6975bda30839413f71ab3e192a582300b (patch) | |
tree | 04158c56726b577a7f7a3a18f99932efda4add2f | |
parent | 49712d6381f25fe3785694fea7804988c1067a24 (diff) | |
download | pango-fe8d5ce6975bda30839413f71ab3e192a582300b.tar.gz |
build: Add --with(out)-cairo configure option
Some builders (e.g. GNOME and jhbuild) hard depend on pangocairo,
and we really don't want to emit a build of pango without support
for it. So jhbuild can specify --with-cairo, and we'll get
a hard error.
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e34c7f32..358a428a 100644 --- a/configure.ac +++ b/configure.ac @@ -355,7 +355,12 @@ have_cairo_win32=false have_cairo_quartz=false cairo_required=1.12.10 -PKG_CHECK_MODULES(CAIRO, cairo >= $cairo_required, have_cairo=true, AC_MSG_RESULT([no])) +AC_ARG_WITH(cairo, + AS_HELP_STRING([--without-cairo], [Do not use cairo]), + :, with_cairo=auto) +AS_IF([test x$with_cairo != xno], [ + PKG_CHECK_MODULES(CAIRO, cairo >= $cairo_required, have_cairo=true, AC_MSG_RESULT([no])) +]) if $have_cairo ; then pango_save_libs=$LIBS @@ -397,6 +402,9 @@ if $have_cairo ; then if $have_cairo ; then AC_MSG_RESULT([$cairo_font_backends]) else + if test x${with_cairo} != xauto; then + AC_MSG_ERROR([cairo support requested, but not present]) + fi AC_MSG_RESULT([none]) AC_MSG_NOTICE([Disabling cairo support]) fi |