From: Marek Schimara Date: Wed, 22 Jun 2016 08:41:25 +0000 (+0200) Subject: m4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY' X-Git-Tag: v1.7.0~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F730%2Fhead;p=thirdparty%2Frrdtool-1.x.git m4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY' This happens with autoconf 2.63 or older (RHEL 6) --- diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index 78c2ccf9..4b7197c1 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -13,6 +13,15 @@ dnl EX_CHECK_ALL(library, function, header, pkgconf name, tested-version, homepa dnl $1 $2 $3 $4 $5 $6 $7 dnl dnl + +dnl +dnl Fix for 'configure:31803: error: possibly undefined macro: AS_VAR_COPY' +dnl when building on RHEL 6 (autoconf 2.63) +dnl see https://github.com/gdnsd/gdnsd/issues/85 +m4_ifndef([AS_VAR_COPY], +[m4_define([AS_VAR_COPY], +[AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])]) + AC_DEFUN([EX_CHECK_ALL], [ AC_LANG_PUSH(C)