Previously, both --with-glade and --without-glade would disable glade
support.
[AS_HELP_STRING([--with-glade],
[build support for Glade [default=yes]]
)],
- [use_glade=$enableval],
- [use_glade=yes])
+ [],
+ [with_glade=yes])
have_glade=no
-if test x"$use_glade" = x"yes"; then
-PKG_CHECK_MODULES(GLADEUI, [gladeui-1.0 >= 3.4],
+if test x"$with_glade" != x"no"; then
+PKG_CHECK_MODULES(GLADEUI, [gladeui-1.0 >= 3],
[have_glade=yes], [have_glade=no])
AC_SUBST(GLADEUI_LIBS)
AC_SUBST(GLADEUI_CFLAGS)