From: Xavier Claessens Date: Thu, 8 Jul 2010 13:24:10 +0000 (+0200) Subject: Fail to build if --enable-gtk3 is passed but only gtk2 is available X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=701e8ee3edfb7a2de17f1d3b82137d0dfdb3388f Fail to build if --enable-gtk3 is passed but only gtk2 is available --- diff --git a/configure.ac b/configure.ac index 0de76f4b..e0044102 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,10 @@ else have_gtk3="no" fi +if test "x$enable_gtk3" = "xyes" -a "x$have_gtk3" != "xyes"; then + AC_MSG_ERROR([Couldn't find gtk3 dependencies.]) +fi + if test "x$have_gtk3" == "xyes"; then # GTK3 specific deps PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED)