# and HOST_GNU_TYPE are equal, and if they are not, add a --host parameter)
r.dh += ["--buildsystem=autoconf", "--builddirectory="+config.getstr('buildDir')]
r.rules['auto_configure'] = [
+ (safeCall(*config['autogen']) + " && " if 'autogen' in config else '') +
safeCall("mkdir", "-p", buildDir),
safeCall("cd", buildDir) + " && " +
'BUILD_TYPE=$$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) && ' + # doing the expansion beforehand ensures that we cancel if it fails