From: Nikos Mavrogiannopoulos Date: Fri, 7 Apr 2017 08:35:33 +0000 (+0200) Subject: tests: do not run pkgconfig test in systems with invalid libidn flags X-Git-Tag: gnutls_3_6_0~655 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc72089397eaea2f23a8202aa6e4ccdbf5496929;p=thirdparty%2Fgnutls.git tests: do not run pkgconfig test in systems with invalid libidn flags This prevents our test from failing, due to invalid flags found in a dependency of ours. Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/tests/pkgconfig.sh b/tests/pkgconfig.sh index 75bb59d10a..6bd4e62f9c 100755 --- a/tests/pkgconfig.sh +++ b/tests/pkgconfig.sh @@ -34,6 +34,13 @@ ${PKGCONFIG} --version >/dev/null || exit 77 PKG_CONFIG_PATH=${top_builddir}/lib export PKG_CONFIG_PATH +OTHER=$(${PKGCONFIG} --libs --static libidn) +OTHER="${OTHER} $(${PKGCONFIG} --libs --static p11-kit-1)" +if test -n "${OTHER}" && test "${OTHER#*-R}" != "$OTHER";then + echo "Found invalid string in libidn flags: ${OTHER}" + exit 77 +fi + set -e cat >$TMPFILE <<__EOF__