]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix some configure.ac issues
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 22:46:06 +0000 (17:46 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 22:46:06 +0000 (17:46 -0500)
 - Run on distro without lsb_release
 - Don't try and interpret with_runtime_path as a command
 - Don't print stuff on screen while in the middle of a check

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
configure.ac

index 5346ba243fdcc474da5fe073658072544dccbf9e..21e6046186fbe3d1a3ce7ecf70a50c0ee0adaf92 100644 (file)
@@ -35,7 +35,7 @@ AC_GNU_SOURCE
 # for some distro-specific build options.
 AC_MSG_CHECKING([host distribution])
 AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, paldo, openmandriva or pardus.]))
-if test "z$with_distro" = "z"; then
+if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
        with_distro=`lsb_release -is`
 fi
 if test "z$with_distro" = "z"; then
@@ -66,7 +66,6 @@ case $with_distro in
                distroconf=default.conf.libvirt
                ;;
        *)
-               echo -n "Linux distribution network config unknown, defaulting to lxc.network.type = empty"
                distroconf=default.conf.unknown
                ;;
 esac
@@ -432,7 +431,7 @@ AC_ARG_WITH([usernic-db],
        [AC_HELP_STRING(
                [--with-usernic-db],
                [lxc user nic database]
-       )], [], [with_usernic_db=['$(with_runtime_path)/lxc/nics']])
+       )], [], [with_usernic_db=['${with_runtime_path}/lxc/nics']])
 
 # Rootfs path, where the container mount structure is assembled
 AC_ARG_WITH([rootfs-path],