Changed BOINC_OPTIONS_WXWIDGETS to find correct GTK toolset

This commit is contained in:
Eric J Korpela 2014-06-18 14:57:26 -07:00
parent e93af6a078
commit 67613c1901
1 changed files with 20 additions and 0 deletions

View File

@ -96,5 +96,25 @@ WARNING: No ${uprf} libraries for wxWidgets are installed.
AM_PATH_WXCONFIG($1, wxWin=1, wxWin=0, ${ac_cv_wxwidgets_options})
fi
fi
AC_MSG_CHECKING([if wxWidgets uses the GTK+ toolkit])
gtkver=none
AM_CONDITIONAL([GUI_GTK], echo $wx_default_config | grep -i ^gtk 2>&1 >/dev/null)
gtkver=no
if echo $wx_default_config | grep -i gtk 2>&1 >/dev/null ; then
case ${wx_default_config} in
gtk3-*) gtkver=gtk+-3.0
;;
gtk2-*) gtkver=gtk+-2.0
;;
gtk-*) gtkver=gtk+
;;
esac
GTK_CFLAGS="`pkg-config --cflags $gtkver`"
GTK_LIBS="`pkg-config --libs $gtkver`"
fi
AC_SUBST([GTK_CFLAGS])
AC_SUBST([GTK_LIBS])
AC_MSG_RESULT([$gtkver])
])