X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=daee5a6e1637371cdda96d16c052ddd04a1ebfe6;hb=ecb5668178c813fb6f1014d4ae9919655e2a17ed;hp=91aeba512e2279c67b063dec611a748b0e63eb28;hpb=6977316a5f6ffa4f7df8ae26963c4629740b6c9d;p=notmuch diff --git a/configure b/configure index 91aeba51..daee5a6e 100755 --- a/configure +++ b/configure @@ -482,18 +482,21 @@ fi # we need to have a version >= 2.6.5 to avoid a crypto bug. We need # 2.6.7 for permissive "From " header handling. GMIME_MINVER=2.6.7 +GMIME3_MINVER=3.0.3 printf "Checking for GMime development files... " -if pkg-config --exists "gmime-3.0"; then +if pkg-config --exists "gmime-3.0 > $GMIME3_MINVER"; 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) + gmime_major=3 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) + gmime_major=2 else have_gmime=0 printf "No.\n" @@ -1212,6 +1215,9 @@ NOTMUCH_PYTHON=${python} # building/testing ruby bindings. NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev} +# Major version of gmime +NOTMUCH_GMIME_MAJOR=${gmime_major} + # Platform we are run on PLATFORM=${platform} EOF