configure: add optional support for gmime-3.0

This is only the changes to make configure work; it won't compile with
gmime-3.0 yet.
This commit is contained in:
David Bremner 2017-05-27 13:51:17 -03:00
parent 51cf6dbab2
commit 6977316a5f

9
configure vendored
View file

@ -484,8 +484,13 @@ fi
GMIME_MINVER=2.6.7 GMIME_MINVER=2.6.7
printf "Checking for GMime development files... " printf "Checking for GMime development files... "
if pkg-config --exists "gmime-2.6 >= $GMIME_MINVER"; then if pkg-config --exists "gmime-3.0"; then
printf "Yes.\n" printf "Yes (3.0).\n"
have_gmime=1
gmime_cflags=$(pkg-config --cflags gmime-3.0)
gmime_ldflags=$(pkg-config --libs gmime-3.0)
elif pkg-config --exists "gmime-2.6 >= $GMIME_MINVER"; then
printf "Yes (2.6).\n"
have_gmime=1 have_gmime=1
gmime_cflags=$(pkg-config --cflags gmime-2.6) gmime_cflags=$(pkg-config --cflags gmime-2.6)
gmime_ldflags=$(pkg-config --libs gmime-2.6) gmime_ldflags=$(pkg-config --libs gmime-2.6)