]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: do not run pkgconfig test in systems with invalid libidn flags
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 7 Apr 2017 08:35:33 +0000 (10:35 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 7 Apr 2017 11:45:55 +0000 (13:45 +0200)
This prevents our test from failing, due to invalid flags found in
a dependency of ours.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/pkgconfig.sh

index 75bb59d10a40c3d5526875f7ebd86826046ed582..6bd4e62f9cc81f2fc52f037a3079fe0970626e52 100755 (executable)
@@ -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__