From d9bfe0f57a82fd1a02e93309912008ed1aa83e04 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Sat, 14 May 2011 18:25:37 +0400 Subject: [PATCH] Fix distribution detection for gentoo Also this may fix other distros because some of them also provide /etc/lsb-release not only ubuntu. Closes #244 --- config/zfs-build.m4 | 8 ++++---- configure | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index d281b4dcf..773a9448c 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -178,16 +178,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 diff --git a/configure b/configure index fee3c743d..c636d53f9 100755 --- a/configure +++ b/configure @@ -11785,16 +11785,16 @@ $as_echo_n "checking linux distribution... " >&6; } 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