autotools: fixed check for glib > 2.16

Must use a separate name (GLIB216 instead of GLIB),
otherwise the second test won't really run. Also the
quoting was wrong.
This commit is contained in:
Patrick Ohly 2010-02-09 21:16:24 +01:00
parent a2b0235869
commit ad4e3e3e62

View file

@ -55,9 +55,10 @@ fi
have_sha="no"
if test "$GLIBFOUND" = "yes"; then
# only use glib if we need it anyway, also has to be at lease 2.16
PKG_CHECK_MODULES(GLIB, "glib-2.0>=2.16",
PKG_CHECK_MODULES(GLIB216, [glib-2.0 >= 2.16],
[AC_DEFINE(USE_SHA256, 1, [choose implementation of SHA-256])
have_sha="glib"])
have_sha="glib"],
[true])
fi
if test "$have_sha" = "no"; then
# Fallback is Mozilla NSS. In contrast to libgcrypt it has a .pc