Add configure --with-sysconfig-leaf-dir=SUBDIR to set CONFIG_LEAF_DIR
authorOlaf Hering <olaf@aepfle.de>
Wed, 1 Oct 2014 16:41:23 +0000 (18:41 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 6 Oct 2014 16:00:22 +0000 (17:00 +0100)
commit9ead9afcb9350b835ae1823cadb8b082d994300e
treebaa7458e8f46f131bc156e9d6296702ce5644060
parentafc973e480a426dc9dc9ef53974211b684dfe119
Add configure --with-sysconfig-leaf-dir=SUBDIR to set CONFIG_LEAF_DIR

Set CONFIG_LEAF_DIR with configure to give control if needed. The
check for the correct value if the option is not specified is tricky.
Since other packages (such as grub2) started to populate also
/etc/default/ a given system may have both directories.
Use "default" only if /etc/sysconfig does not exist. "sysconfig"
remains the default.

Move the variable from StdGNU.mk to Linux.mk because thats the only
place where it is used.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
[ ijc -- ran autogen.sh as requested ]
Config.mk
config/Linux.mk
config/Paths.mk.in
config/StdGNU.mk
configure
docs/misc/distro_mapping.txt
m4/paths.m4
tools/configure