Update zfs.gentoo/zfs.lsb init script
[zfs.git] / config / zfs-build.m4
index d281b4d..e048596 100644 (file)
@@ -33,6 +33,10 @@ AC_DEFUN([ZFS_AC_DEBUG], [
        AC_MSG_RESULT([$enable_debug])
 ])
 
+AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [
+       ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE
+])
+
 AC_DEFUN([ZFS_AC_CONFIG], [
        TARGET_ASM_DIR=asm-generic
        AC_SUBST(TARGET_ASM_DIR)
@@ -47,6 +51,8 @@ AC_DEFUN([ZFS_AC_CONFIG], [
        AC_MSG_RESULT([$ZFS_CONFIG]);
        AC_SUBST(ZFS_CONFIG)
 
+       ZFS_AC_CONFIG_ALWAYS
+
        case "$ZFS_CONFIG" in
                kernel) ZFS_AC_CONFIG_KERNEL ;;
                user)   ZFS_AC_CONFIG_USER   ;;
@@ -178,16 +184,16 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
                VENDOR=redhat ;
        elif test -f /etc/fedora-release ; then
                VENDOR=fedora ;
-       elif test -f /etc/lsb-release ; then
-               VENDOR=ubuntu ;
+       elif test -f /etc/gentoo-release ; then
+               VENDOR=gentoo ;
        elif test -f /etc/debian_version ; then
                VENDOR=debian ;
        elif test -f /etc/SuSE-release ; then
                VENDOR=sles ;
        elif test -f /etc/slackware-version ; then
                VENDOR=slackware ;
-       elif test -f /etc/gentoo-release ; then
-               VENDOR=gentoo ;
+       elif test -f /etc/lsb-release ; then
+               VENDOR=ubuntu ;
        elif test -f /etc/lunar.release ; then
                VENDOR=lunar ;
        else