]> code.delx.au - pulseaudio/commitdiff
Add a configure option to change 'udevrulesdir'
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 6 Dec 2009 07:01:25 +0000 (12:31 +0530)
committerColin Guthrie <cguthrie@mandriva.org>
Sun, 6 Dec 2009 11:51:24 +0000 (11:51 +0000)
This patch serves two purposes:

  1) Allows something other than the de-facto standard udev rules dir or
     /lib/udev/rules.d to be used (the udev build system allows you to
     customise this)

  2) Allows a prefixed, non-root install (right now, the /lib/... path
     is hard-coded into the build system

configure.ac
src/Makefile.am

index dfbd9bc0acc74ea68eb2d35742c31081a06d7ce9..af60fff8e5bd024f9512c1cbc80b295ca796d037 100644 (file)
@@ -1395,6 +1395,13 @@ AC_ARG_WITH(
 
 AC_SUBST(modlibexecdir)
 
+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)
+
 AC_ARG_ENABLE(
         [force-preopen],
         AS_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]),
index 3be28692d4d8778cb71064e1022f4ecfd41249db..11826a42c39542c685644ed212fd3507bc84fc44 100644 (file)
@@ -31,7 +31,6 @@ pulselibexecdir=$(libexecdir)/pulse
 xdgautostartdir=$(sysconfdir)/xdg/autostart
 alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
 alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
-udevrulesdir=/lib/udev/rules.d
 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
 
 ###################################