From: Stéphane Graber Date: Wed, 12 Feb 2014 22:46:06 +0000 (-0500) Subject: Fix some configure.ac issues X-Git-Tag: lxc-1.0.0.rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a15791eb2c196fb119cf0f23abaaf7b934dfcac;p=thirdparty%2Flxc.git Fix some configure.ac issues - 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 --- diff --git a/configure.ac b/configure.ac index 5346ba243..21e604618 100644 --- a/configure.ac +++ b/configure.ac @@ -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],