[Github-comments] [geany/geany] autotools: Detect GTK version to use automatically (#1182)
Colomban Wendling
notifications at xxxxx
Sun Dec 9 11:11:41 UTC 2018
b4n commented on this pull request.
> -AS_IF([test "x$enable_gtk3" = xyes],
- [gtk_package=gtk+-3.0
- gtk_min_version=3.0],
- [gtk_package=gtk+-2.0
- gtk_min_version=2.24])
-AM_CONDITIONAL([GTK3], [test "x$gtk_package" = "xgtk+-3.0"])
+ [enable_gtk3=auto])
+
+gtk2_package=gtk+-2.0
+gtk2_min_version=2.24
+gtk3_package=gtk+-3.0
+gtk3_min_version=3.0
+
+PKG_CHECK_EXISTS([$gtk2_package >= $gtk2_min_version], [have_gtk2=yes], [have_gtk2=no])
+PKG_CHECK_EXISTS([$gtk3_package >= $gtk3_min_version], [have_gtk3=yes], [have_gtk3=no])
+AS_IF([test "x$enable_gtk3" = xyes || (! test "x$enable_gtk3" = xno &&
> I see. It's also in `test "x$enable_gtk3" != "xno"` which reads more normally
Changed for clarity
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1182#discussion_r240032678
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20181209/c5f2c79b/attachment.html>
More information about the Github-comments
mailing list