Commit 459f5c29 authored by daniel_e's avatar daniel_e
Browse files

Check for gtkmm >= 2.1.1 instead of the compile test based on

Glib::set_application_name().
parent c40d843e
2002-12-26 Daniel Elstner <daniel.elstner@gmx.net>
* configure.ac: Check for gtkmm >= 2.1.1 instead of the compile
test based on Glib::set_application_name(). (Don't worry, gtkmm
2.1.x is not yet a requirement.)
2002-12-26 Daniel Elstner <daniel.elstner@gmx.net>
* src/prefdialog.cc: Don't #include GTK+ headers if gtkmm 2.2
......
......@@ -38,26 +38,14 @@ PKG_CHECK_MODULES([GTKMM], [glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-1.2 >= 1.
AC_SUBST([GTKMM_CFLAGS])
AC_SUBST([GTKMM_LIBS])
AC_CACHE_CHECK(
[for sufficiently recent gtkmm-2.1],
[regexxer_cv_have_gtkmm_22],
[
AC_LANG_PUSH([C++])
regexxer_saved_CPPFLAGS=$CXXFLAGS
CPPFLAGS="$CPPFLAGS $GTKMM_CFLAGS"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <glibmm/miscutils.h>]], [[using Glib::set_application_name;]])],
[regexxer_cv_have_gtkmm_22=yes],
[regexxer_cv_have_gtkmm_22=no])
CPPFLAGS=$regexxer_saved_CPPFLAGS
AC_LANG_POP([C++])
])
AC_MSG_CHECKING([for sufficiently recent gtkmm-2.1])
regexxer_have_gtkmm_22=no
${PKG_CONFIG:-"pkg-config"} --atleast-version=2.1.1 gtkmm-2.0 2>&5 && regexxer_have_gtkmm_22=yes
AC_MSG_RESULT([${regexxer_have_gtkmm_22}])
if test "x$regexxer_cv_have_gtkmm_22" = "xyes"; then
if test "x$regexxer_have_gtkmm_22" = "xyes"; then
{
AC_DEFINE([REGEXXER_HAVE_GTKMM_22], [1], [Define to 1 if gtkmm >= 2.1.0 is installed.])
AC_DEFINE([REGEXXER_HAVE_GTKMM_22], [1], [Define to 1 if gtkmm 2.2 API is available.])
}
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment