build: install udev files under prefix
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 14 Mar 2016 12:49:58 +0000 (13:49 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Mon, 14 Mar 2016 15:32:14 +0000 (16:32 +0100)
It should really be in /usr/lib, not /lib. Not a real issue, since the two are
usually links, but the latter is supposably for compatibility only. This also
installs into correct place when configured with a different --prefix.

configure.ac

index 780f007..c0c8716 100644 (file)
@@ -323,7 +323,7 @@ if (test "$with_udev_dir" != 'no'); then
                AC_MSG_ERROR([--with-udev-dir must be an absolute path or 'yes' or 'no'. Instead it is '$with_udev_dir'])
        fi
        if (test "$with_udev_dir" = 'yes'); then
-               with_udev_dir="/lib/udev"
+               with_udev_dir="\$(prefix)/lib/udev"
        fi
        UDEV_DIR="$with_udev_dir"
        AC_SUBST(UDEV_DIR)