From: Christian Dywan Date: Wed, 9 Nov 2011 21:56:21 +0000 (+0100) Subject: Allow buildiing with GTK+ 3 and libunique X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=191339ec9e4e07a56fdb1404cc70423db8c3c467;p=midori Allow buildiing with GTK+ 3 and libunique --- diff --git a/wscript b/wscript index d717a3aa..7562f0c8 100644 --- a/wscript +++ b/wscript @@ -175,14 +175,16 @@ def configure (conf): int(given_major) == major and int(given_minor) > minor or \ int(given_major) == major and int(given_minor) == minor and int(given_micro) >= micro - if option_enabled ('unique') and not option_enabled('gtk3'): - check_pkg ('unique-1.0', '0.9', False) + if option_enabled ('unique'): + if option_enabled('gtk3'): unique_pkg = 'unique-3.0' + else: unique_pkg = 'unique-1.0' + check_pkg (unique_pkg, '0.9', False) unique = ['N/A', 'yes'][conf.env['HAVE_UNIQUE'] == 1] if unique != 'yes': option_checkfatal ('unique', 'single instance') conf.define ('UNIQUE_VERSION', 'No') else: - conf.define ('UNIQUE_VERSION', conf.check_cfg (modversion='unique-1.0')) + conf.define ('UNIQUE_VERSION', conf.check_cfg (modversion=unique_pkg)) else: unique = 'no ' conf.define ('UNIQUE_VERSION', 'No')