Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GTK-related autoconf checks
- Move to separate file geany-gtk.m4 - Merge gthread checks into the main gtk ones
- Loading branch information
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dnl GEANY_CHECK_GTK | ||
dnl Checks whether the GTK stack is available and new enough. Sets GTK_CFLAGS and GTK_LIBS. | ||
AC_DEFUN([GEANY_CHECK_GTK], | ||
[ | ||
gtk_modules="gtk+-3.0 >= 3.0 glib-2.0 >= 2.32" | ||
gtk_modules_private="gio-2.0 >= 2.32 gmodule-no-export-2.0 gthread-2.0" | ||
PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private]) | ||
AC_SUBST([DEPENDENCIES], [$gtk_modules]) | ||
AS_VAR_APPEND([GTK_CFLAGS], [" -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32"]) | ||
dnl Disable all GTK deprecations | ||
AS_VAR_APPEND([GTK_CFLAGS], [" -DGDK_DISABLE_DEPRECATION_WARNINGS"]) | ||
AC_SUBST([GTK_CFLAGS]) | ||
AC_SUBST([GTK_LIBS]) | ||
AC_SUBST([GTK_VERSION],[`$PKG_CONFIG --modversion gtk+-3.0`]) | ||
GEANY_STATUS_ADD([Using GTK version], [${GTK_VERSION}]) | ||
]) |