diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-08 20:54:37 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-08 20:54:37 +0800 |
commit | 5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9 (patch) | |
tree | 5e126f61e7e61eade945ee39f5d01cfa3039f5f7 | |
parent | 6f95b307dda6580150cff92b974166958c9af222 (diff) | |
download | gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar.gz gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar.bz2 gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar.lz gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar.xz gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.tar.zst gsoc2013-empathy-5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9.zip |
add have_gtk3 var
-rw-r--r-- | configure.ac | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index bf21da26f..0de76f4b0 100644 --- a/configure.ac +++ b/configure.ac @@ -172,16 +172,17 @@ AC_ARG_ENABLE(gtk3, # Try to use GTK+3 if available if test "x$enable_gtk3" != "xno"; then PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= $GTK_REQUIRED], - enable_gtk3="yes", enable_gtk3="no") + have_gtk3="yes", have_gtk3="no") +else + have_gtk3="no" fi -if test "x$enable_gtk3" == "xyes"; then +if test "x$have_gtk3" == "xyes"; then # GTK3 specific deps PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED) PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_GTK3) PKG_CHECK_MODULES(UNIQUE, unique-3.0 >= $UNIQUE_REQUIRED) else - enable_gtk3=no PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED) # GTK2 specific deps @@ -285,7 +286,7 @@ AC_ARG_ENABLE(webkit, if test "x$enable_webkit" != "xno"; then - if test "x$enable_gtk3" == "xno"; then + if test "x$have_gtk3" == "xno"; then PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= $WEBKIT_REQUIRED], have_webkit="yes", have_webkit="no") else @@ -353,7 +354,7 @@ AC_ARG_ENABLE(map, if test "x$enable_map" != "xno"; then - if test "x$enable_gtk3" == "xno"; then + if test "x$have_gtk3" == "xno"; then PKG_CHECK_MODULES(LIBCHAMPLAIN, [ champlain-0.4 >= $LIBCHAMPLAIN_REQUIRED, @@ -445,7 +446,7 @@ AC_ARG_ENABLE(nautilus-sendto, enable_nautilus_sendto=auto) if test "x$enable_nautilus_sendto" != "xno"; then - if test "x$enable_gtk3" == "xno"; then + if test "x$have_gtk3" == "xno"; then # Newer NST requires GTK+3 so we can't use it PKG_CHECK_MODULES(NST,[nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED nautilus-sendto < 2.90.0], @@ -532,7 +533,7 @@ Configure summary: Compiler Flags..............: ${CFLAGS} ${ERROR_CFLAGS} Prefix......................: ${prefix} Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS} - Use GTK+3...................: ${enable_gtk3} + Use GTK+3...................: ${have_gtk3} Features: Spell checking (enchant)....: ${have_enchant} |