Use sysconfdir variable if was given via '--sysconfdir' flag to configure script.

This commit is contained in:
Sanel Zukan
2010-01-19 14:41:51 +00:00
parent bb1f7cf95e
commit 7b97a3ccd4
3 changed files with 18 additions and 2 deletions

View File

@ -14,6 +14,7 @@
# http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
PREFIX="@prefix@"
SYSCONFDIR="@my_sysconfdir@"
if [ "x$XDG_DATA_HOME" = "x" ]; then
XDG_DATA_HOME="$HOME/.local/share"
@ -32,7 +33,7 @@ if [ "x$XDG_DATA_DIRS" = "x" ]; then
fi
if [ "x$XDG_CONFIG_DIRS" = "x" ]; then
XDG_CONFIG_DIRS="$PREFIX/etc/xdg"
XDG_CONFIG_DIRS="$SYSCONFDIR/xdg"
fi
# prefix for applications.menu