diff options
author | Ondřej Surý <ondrej@sury.org> | 2015-05-28 12:04:07 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2015-05-28 12:04:07 +0200 |
commit | 5f953b6ce26d7efb9f43051014026b1de412743b (patch) | |
tree | 69f430b846f863d86965ee52fc932796cfda16cc /m4 | |
parent | strstrip: fix for whitespace-only string (diff) | |
download | knot-5f953b6ce26d7efb9f43051014026b1de412743b.tar.xz knot-5f953b6ce26d7efb9f43051014026b1de412743b.zip |
Add AS_VAR_COPY compatibility macro for CentOS
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_pkg_check_vars.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/ax_pkg_check_vars.m4 b/m4/ax_pkg_check_vars.m4 index 4e407f0cc..b8922dd01 100644 --- a/m4/ax_pkg_check_vars.m4 +++ b/m4/ax_pkg_check_vars.m4 @@ -1,5 +1,9 @@ # ax_pkg_check_var.m4 - Macros to locate and utilise variables from pkg-config. -*- Autoconf -*- +m4_ifndef([AS_VAR_COPY], +[m4_define([AS_VAR_COPY], +[AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])]) + # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ------------------------------------------- |