Don't use pkg-config's --atleast-version arg when checking for pango

It doesn't seem to work with some versions of pkg-config, e.g. the one
found on Ubuntu 10.04
This commit is contained in:
Sergey Popov 2013-02-16 14:30:22 +00:00
parent 61997d771c
commit 857f238fbd

View file

@ -18,8 +18,8 @@ def CheckPango(context, backend, require_version = None):
env["ENV"]["PKG_CONFIG_PATH"] = environ.get("PKG_CONFIG_PATH")
version_arg = ""
if require_version:
version_arg = "--atleast-version=" + require_version
env.ParseConfig("pkg-config --libs --cflags %s $PKGCONFIG_FLAGS pango" % version_arg + backend)
version_arg = " \\>= " + require_version
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS pango" + backend + version_arg)
context.Result("yes")
return True
except OSError: