From: Christian Dywan Date: Mon, 2 Feb 2009 00:10:30 +0000 (+0100) Subject: Default sysconfdir to /etc if the prefix is /usr X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3d76ed8fcf37b5b5384e07b7a7e6479aca0286;p=midori Default sysconfdir to /etc if the prefix is /usr --- diff --git a/wscript b/wscript index 96dde91b..c8518dda 100644 --- a/wscript +++ b/wscript @@ -89,7 +89,10 @@ def configure (conf): dirname_default ('DATADIR', os.path.join (conf.env['PREFIX'], 'share')) dirname_default ('DOCDIR', os.path.join (conf.env['DATADIR'], 'doc')) dirname_default ('LIBDIR', os.path.join (conf.env['PREFIX'], 'lib')) - dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc')) + if conf.env['PREFIX'] == '/usr': + dirname_default ('SYSCONFDIR', '/etc') + else: + dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc')) if option_enabled ('apidocs'): conf.find_program ('gtkdoc-scan', var='GTKDOC_SCAN')