]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: Add a --with-udev-rules-dir configure option.
authorColin Guthrie <cguthrie@mandriva.org>
Thu, 25 Nov 2010 21:40:25 +0000 (21:40 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 26 Nov 2010 09:27:14 +0000 (10:27 +0100)
After the previous patch to install udev rules it is impossible to do a
non-root, custom-prefix make install. This is generally not a problem
when building official packages but it can be a pain for developers
and debuggers etc.

This is essentially the same patch as was already made in PulseAudio
in commit e8a5746f2fcae59bfd18d39b621509b3ef130453.

Signed-off-by: Colin Guthrie <gmane@colin.guthr.ie>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/Makefile.am
configure.in

index 721b6199420f0d8c9441b7fcd2cd1f5d67ca10c1..5cfc415be44b2f0c9e759a9689344447a79c2deb 100644 (file)
@@ -11,8 +11,6 @@ alsactl_SOURCES=alsactl.c state.c utils.c init_parse.c
 alsactl_CFLAGS=$(AM_CFLAGS) -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\"
 noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
 
-udevrulesdir=/lib/udev/rules.d
-
 dist_udevrules_DATA = \
        90-alsa-restore.rules
 
index 77778da093090759f76974c35d334e092d3781f2..2d6c80cbb3191dd7655350e2451c921af8287224 100644 (file)
@@ -112,6 +112,12 @@ if test x"$alsaconf" = xtrue; then
 fi
 AM_CONDITIONAL(USE_XMLTO, test x"$xmlto" = xyes)
 
+AC_ARG_WITH(
+        [udev-rules-dir],
+        AS_HELP_STRING([--with-udev-rules-dir],[Directory where to install udev rules to (defaults to /lib/udev/rules.d)]),
+        [udevrulesdir=$withval], [udevrulesdir="/lib/udev/rules.d"])
+AC_SUBST(udevrulesdir)
+
 dnl Checks for header files.
 AC_HEADER_STDC
 if test x$alsamixer = xtrue; then