From: Guido Günther Date: Fri, 3 Jul 2009 20:20:05 +0000 (+0200) Subject: select proper kernel by architecture X-Git-Tag: 1.0.56~8^2~13 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=22b787d17bf038d50b8f9a31db09c7de3a8f82eb select proper kernel by architecture --- diff --git a/appliance/debian/debirf.conf.in b/appliance/debian/debirf.conf.in index a3dc16f..12506c5 100644 --- a/appliance/debian/debirf.conf.in +++ b/appliance/debian/debirf.conf.in @@ -1,5 +1,5 @@ DEBIRF_LABEL="debirf-libguestfs" DEBIRF_SUITE=@REPO@ DEBIRF_MIRROR=@MIRROR@/${DEBIRF_DISTRO} -DEBIRF_KERNEL_ARCH=486 +DEBIRF_KERNEL_ARCH=@DEBIAN_KERNEL_ARCH@ diff --git a/configure.ac b/configure.ac index f0eba8a..c70d104 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,18 @@ else test "x$DEBIRF" = "xno" && AC_MSG_ERROR([debirf must be installed]) DIST="DEBIAN" + case $host_cpu in + *86) + DEBIAN_KERNEL_ARCH=486 + ;; + x86_64) + DEBIAN_KERNEL_ARCH=amd64 + ;; + *) + DEBIAN_KERNEL_ARCH=$host_cpu + ;; + esac + AC_SUBST(DEBIAN_KERNEL_ARCH) fi AC_SUBST(DIST)