From 8d3d76ed8fcf37b5b5384e07b7a7e6479aca0286 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 2 Feb 2009 01:10:30 +0100 Subject: [PATCH] Default sysconfdir to /etc if the prefix is /usr --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') -- 2.39.5