Lucio Andrés Illanes Albornoz 7eceaa
--- whois-5.2.18/Makefile.orig	2017-08-22 18:48:50.000000000 +0200
Lucio Andrés Illanes Albornoz 7eceaa
+++ whois-5.2.18/Makefile	2017-09-15 10:02:37.915199229 +0200
Lucio Andrés Illanes Albornoz 7eceaa
@@ -32,12 +32,12 @@
Lucio Andrés Illanes Albornoz 7eceaa
 DEFS += -DLOCALEDIR=\"$(BASEDIR)$(prefix)/share/locale\"
Lucio Andrés Illanes Albornoz 7eceaa
 endif
Lucio Andrés Illanes Albornoz 7eceaa
 
Lucio Andrés Illanes Albornoz 7eceaa
-ifeq ($(shell pkg-config --exists 'libidn2 >= 2.0.3' || echo NO),)
Lucio Andrés Illanes Albornoz 7eceaa
-whois_LDADD += $(shell pkg-config --libs libidn2)
Lucio Andrés Illanes Albornoz 7eceaa
-DEFS += -DHAVE_LIBIDN2 $(shell pkg-config --cflags libidn2)
Lucio Andrés Illanes Albornoz 7eceaa
-else ifeq ($(shell pkg-config --exists 'libidn' || echo NO),)
Lucio Andrés Illanes Albornoz 7eceaa
-whois_LDADD += $(shell pkg-config --libs libidn)
Lucio Andrés Illanes Albornoz 7eceaa
-DEFS += -DHAVE_LIBIDN $(shell pkg-config --cflags libidn)
Lucio Andrés Illanes Albornoz 7eceaa
+ifeq ($(shell ${PKG_CONFIG} --exists 'libidn2 >= 2.0.3' || echo NO),)
Lucio Andrés Illanes Albornoz 7eceaa
+whois_LDADD += $(shell ${PKG_CONFIG} --libs libidn2)
Lucio Andrés Illanes Albornoz 7eceaa
+DEFS += -DHAVE_LIBIDN2 $(shell ${PKG_CONFIG} --cflags libidn2)
Lucio Andrés Illanes Albornoz 7eceaa
+else ifeq ($(shell ${PKG_CONFIG} --exists 'libidn' || echo NO),)
Lucio Andrés Illanes Albornoz 7eceaa
+whois_LDADD += $(shell ${PKG_CONFIG} --libs libidn)
Lucio Andrés Illanes Albornoz 7eceaa
+DEFS += -DHAVE_LIBIDN $(shell ${PKG_CONFIG} --cflags libidn)
Lucio Andrés Illanes Albornoz 7eceaa
 endif
Lucio Andrés Illanes Albornoz 7eceaa
 
Lucio Andrés Illanes Albornoz 7eceaa
 ifdef HAVE_ICONV