diff options
author | Prakash Surya <[email protected]> | 2011-12-16 22:16:47 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-12-19 12:03:40 -0800 |
commit | cd2817f8a6a3c0f7675c3ce954800c29eade5319 (patch) | |
tree | 40ef42d7880ae2f7cfc190f0474a4ada5f4c891b /config | |
parent | 8f2503e0af490ea253d6db1a15b4901437171cc1 (diff) |
Move Arch Linux's VENDOR check above Ubuntu's
If the lsb-release package is installed on an Arch Linux distribution,
the configure step will incorrectly detect the running distribution as
Ubuntu. This is a result of both distributions providing an
/etc/lsb-release file, and the Ubuntu VENDOR check being performed
first.
Since the Arch Linux test check's for a file more specific to the Arch
Linux distribution, moving Arch Linux's VENDOR check above Unbuntu's
check provides a quick and easy solution.
Signed-off-by: Prakash Surya <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #72
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 2297937c0..7b6653559 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -373,6 +373,8 @@ AC_DEFUN([SPL_AC_DEFAULT_PACKAGE], [ VENDOR=redhat ; elif test -f /etc/fedora-release ; then VENDOR=fedora ; + elif test -f /etc/arch-release ; then + VENDOR=arch ; elif test -f /etc/lsb-release ; then VENDOR=ubuntu ; elif test -f /etc/debian_version ; then @@ -383,8 +385,6 @@ AC_DEFUN([SPL_AC_DEFAULT_PACKAGE], [ VENDOR=slackware ; elif test -f /etc/gentoo-release ; then VENDOR=gentoo ; - elif test -f /etc/arch-release ; then - VENDOR=arch ; else VENDOR= ; fi |