From 477d315af46d9a7932108135137adc7aebfc77fe Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Wed, 16 Sep 2020 18:49:42 +0100 Subject: Use pkg-config to get CFLAGS for libidn We already get the libs, missing the CFLAGS (mainly the -I) was just an omission. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 758010970..ab71e6f25 100644 --- a/configure.ac +++ b/configure.ac @@ -1041,6 +1041,7 @@ if test x$with_libidn != xno; then if $PKGCONFIG --exists libidn; then AC_MSG_RESULT(yes) LIBS="$LIBS `$PKGCONFIG --libs libidn`" + CFLAGS="$CFLAGS `$PKGCONFIG --cflags libidn`" HAVE_LIBIDN=-DHAVE_LIBIDN else AC_MSG_RESULT(no) -- cgit v1.2.1