From: Alex Ivanov Date: Sat, 23 Mar 2019 05:20:57 +0000 (+0300) Subject: configure: use $sysconfdir instead of /etc X-Git-Tag: v1.1.9~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2d9f140caa63fbf79d6a0823e293110b97229895;p=alsa-plugins.git configure: use $sysconfdir instead of /etc Use $sysconfdir as prefix for ALSA_LCONF_DIR by default. Otherwise install fails on non-FHS distros. Signed-off-by: Alex Ivanov Signed-off-by: Takashi Iwai --- diff --git a/configure.ac b/configure.ac index 5b80585..1be4a70 100644 --- a/configure.ac +++ b/configure.ac @@ -237,7 +237,12 @@ AC_ARG_WITH(alsalconfdir, [path where ALSA local add-on config files are stored]), alsalconfdir="$withval", alsalconfdir="") if test -z "$alsalconfdir"; then - alsalconfdir="/etc/alsa/conf.d" + eval dir="$sysconfdir" + case "$dir" in + /*) ;; + *) dir="$dir" + esac + alsalconfdir="$dir/alsa/conf.d" fi AC_DEFINE_UNQUOTED(ALSA_LCONF_DIR, "$alsalconfdir", [directory containing local ALSA add-on config files]) ALSA_LCONF_DIR="$alsalconfdir"