2011-08-05 23:22:58 +04:00
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_UDEV], [
|
2014-06-06 18:07:58 +04:00
|
|
|
AC_MSG_CHECKING(for udev directories)
|
2011-08-05 23:22:58 +04:00
|
|
|
AC_ARG_WITH(udevdir,
|
|
|
|
AC_HELP_STRING([--with-udevdir=DIR],
|
2014-06-06 18:07:58 +04:00
|
|
|
[install udev helpers @<:@default=check@:>@]),
|
|
|
|
[udevdir=$withval],
|
|
|
|
[udevdir=check])
|
|
|
|
|
|
|
|
AS_IF([test "x$udevdir" = xcheck], [
|
|
|
|
path1=/lib/udev
|
|
|
|
path2=/usr/lib/udev
|
|
|
|
default=$path2
|
|
|
|
|
|
|
|
AS_IF([test -d "$path1"], [udevdir="$path1"], [
|
|
|
|
AS_IF([test -d "$path2"], [udevdir="$path2"],
|
|
|
|
[udevdir="$default"])
|
|
|
|
])
|
|
|
|
])
|
2011-08-05 23:22:58 +04:00
|
|
|
|
|
|
|
AC_ARG_WITH(udevruledir,
|
|
|
|
AC_HELP_STRING([--with-udevruledir=DIR],
|
|
|
|
[install udev rules [[UDEVDIR/rules.d]]]),
|
2014-06-06 18:07:58 +04:00
|
|
|
[udevruledir=$withval],
|
|
|
|
[udevruledir="${udevdir}/rules.d"])
|
2011-08-05 23:22:58 +04:00
|
|
|
|
|
|
|
AC_SUBST(udevdir)
|
|
|
|
AC_SUBST(udevruledir)
|
2014-06-06 18:07:58 +04:00
|
|
|
AC_MSG_RESULT([$udevdir;$udevruledir])
|
2011-08-05 23:22:58 +04:00
|
|
|
])
|