mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
configure: detect udevdir via pkg-config, fallback to /lib/udev/rules.d
Signed-off-by: Ivailo Monev <xakepa10@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
54a459a884
commit
7d0c2801b3
1 changed files with 8 additions and 2 deletions
10
configure.in
10
configure.in
|
@ -120,8 +120,14 @@ AM_CONDITIONAL(USE_XMLTO, test x"$xmlto" = xyes)
|
||||||
|
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
[udev-rules-dir],
|
[udev-rules-dir],
|
||||||
AS_HELP_STRING([--with-udev-rules-dir],[Directory where to install udev rules to (defaults to /lib/udev/rules.d)]),
|
AS_HELP_STRING([--with-udev-rules-dir=DIR],[Directory where to install udev rules to (default=auto)]),
|
||||||
[udevrulesdir=$withval], [udevrulesdir="/lib/udev/rules.d"])
|
[udevrulesdir="$withval"],
|
||||||
|
[udevdir=$($PKG_CONFIG udev --variable=udevdir)
|
||||||
|
if test "x$udevdir" = "x"; then
|
||||||
|
udevrulesdir="/lib/udev/rules.d"
|
||||||
|
else
|
||||||
|
udevrulesdir="$udevdir/rules.d"
|
||||||
|
fi])
|
||||||
AC_SUBST(udevrulesdir)
|
AC_SUBST(udevrulesdir)
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
|
|
Loading…
Reference in a new issue