From 26e98550ea348215f644e9c3f14001c99fe4f5e7 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 23 Oct 2017 08:04:37 +0000 Subject: [PATCH] Update autosetup to latest master branch This includes the fix for a more fine-grained interaction between $prefix, /etc, and /var. See https://github.com/msteveb/autosetup/issues/31. --- autosetup/system.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autosetup/system.tcl b/autosetup/system.tcl index f049d31fe..2085fcfaf 100644 --- a/autosetup/system.tcl +++ b/autosetup/system.tcl @@ -283,15 +283,19 @@ foreach {name defpath} { } foreach {name defpath} { datadir /share - sysconfdir /etc sharedstatedir /com - localstatedir /var infodir /share/info mandir /share/man includedir /include } { define $name [lindex [opt-val $name $prefix$defpath] end] } +if {$prefix ne {/usr}} { + define sysconfdir [lindex [opt-val sysconfdir $prefix/etc] end] +} else { + define sysconfdir [lindex [opt-val sysconfdir /etc] end] +} +define localstatedir [lindex [opt-val localstatedir /var] end] define SHELL [get-env SHELL [find-an-executable sh bash ksh]] -- 2.40.0