summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-07-30 18:35:03 +0200
committerGuillem Jover <guillem@debian.org>2011-07-30 18:44:55 +0200
commit773e6dcc0e8fcbd0f185f95d27184e9979a2411e (patch)
tree628436b0eed191799e2e0de8fc1efead7f6aae7f /m4
parent99b890c2eb6bfe955d85aedd40841366826c2f73 (diff)
downloaddpkg-773e6dcc0e8fcbd0f185f95d27184e9979a2411e.tar.gz
build: Error out if the host dpkg architecture cannot be determined
Continuing will only produce a buggy dpkg.
Diffstat (limited to 'm4')
-rw-r--r--m4/dpkg-arch.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/dpkg-arch.m4 b/m4/dpkg-arch.m4
index b94a883b9..8a490fac6 100644
--- a/m4/dpkg-arch.m4
+++ b/m4/dpkg-arch.m4
@@ -57,7 +57,11 @@ AC_DEFUN([DPKG_ARCHITECTURE],
DPKG_OS_TYPE
AC_MSG_CHECKING([dpkg architecture name])
_DPKG_ARCHITECTURE([DEB_HOST_ARCH], [dpkg_arch])
-AC_MSG_RESULT([$dpkg_arch])
+if test "x$dpkg_arch" = "x"; then
+ AC_MSG_ERROR([cannot determine host dpkg architecture])
+else
+ AC_MSG_RESULT([$dpkg_arch])
+fi
AC_DEFINE_UNQUOTED(ARCHITECTURE, "${dpkg_arch}",
[Set this to the canonical dpkg architecture name.])
])# DPKG_ARCHITECTURE