From 6977316a5f6ffa4f7df8ae26963c4629740b6c9d Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 27 May 2017 13:51:17 -0300 Subject: [PATCH] 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. --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index ed7c2280..91aeba51 100755 --- a/configure +++ b/configure @@ -484,8 +484,13 @@ fi GMIME_MINVER=2.6.7 printf "Checking for GMime development files... " -if pkg-config --exists "gmime-2.6 >= $GMIME_MINVER"; then - printf "Yes.\n" +if pkg-config --exists "gmime-3.0"; then + 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 gmime_cflags=$(pkg-config --cflags gmime-2.6) gmime_ldflags=$(pkg-config --libs gmime-2.6) -- 2.43.0