NewMapWin has become Dialog instead of Window. Therefore it is created dynamically, when there is need for it, instead of keeping one instance in memory. This solution is slower, but more correct than before.
1 AC_DEFUN([LX_ENABLE_GUI],
4 AS_HELP_STRING([--enable-gui], [build the GUI])
5 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
8 AC_MSG_CHECKING([whether to build the GUI])
9 if test x"$enable_gui" != x"no"; then
14 if test x"$enable_gui" != x"no"; then
15 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
17 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])