diff --git a/desmume/configure.ac b/desmume/configure.ac index b3865ebe9..271f05506 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -218,8 +218,8 @@ AC_ARG_ENABLE([wxwidget], [wxwidget=no]) if test "x$wxwidget" = "xyes" ; then m4_include(wxwin.m4) - AM_PATH_WXCONFIG([2.4.0], wxwin=1) - if test "x$wxwin" = "x1"; then + AM_PATH_WXCONFIG([2.4.0], wxwin=yes) + if test "x$wxwin" = "xyes"; then AC_SUBST(WX_CPPFLAGS) AC_SUBST(WX_LIBS) AC_DEFINE([WANT_WX]) @@ -237,6 +237,9 @@ if test "x$HAVE_SDL" = "xyes"; then # GTK requires SDL UI_DIR="gtk $UI_DIR" fi + if test "x$wxwin" = "xyes"; then + UI_DIR="wx $UI_DIR" + fi if test "x$HAVE_LIBGLADE" = "xyes"; then AC_PROVIDE_IFELSE([IT_PROG_INTLTOOL],[