[geany/geany-plugins] 10a261: Define PKG_CHECK_VAR for old pkg-config (<= 0.28)

Colomban Wendling git-noreply at xxxxx
Sun Feb 2 20:09:28 UTC 2020


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 02 Feb 2020 20:09:28 UTC
Commit:      10a26171e92c525f567fe0e8902f1e2779acdcb5
             https://github.com/geany/geany-plugins/commit/10a26171e92c525f567fe0e8902f1e2779acdcb5

Log Message:
-----------
Define PKG_CHECK_VAR for old pkg-config (<= 0.28)

Implementation shamelessly copied over from pkg-config's pkg.m4,
GPLv2+.


Modified Paths:
--------------
    build/compat.m4

Modified: build/compat.m4
12 lines changed, 12 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,12 @@
+dnl taken from pkg-config's pkg.m4, GPLv2+
+m4_ifndef([PKG_CHECK_VAR], [
+AC_DEFUN([PKG_CHECK_VAR],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
+
+_PKG_CONFIG([$1], [variable="][$3]["], [$2])
+AS_VAR_COPY([$1], [pkg_cv_][$1])
+
+AS_VAR_IF([$1], [""], [$5], [$4])dnl
+])dnl PKG_CHECK_VAR
+])



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list