#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifeq ($(DEB_HOST_ARCH),amd64)
	confflags += --with-pcre
else ifeq ($(DEB_HOST_ARCH),i386)
	confflags += --with-pcre
else ifeq ($(DEB_HOST_ARCH),x32)
	confflags += --with-pcre
endif

%:
	dh $@

override_dh_auto_configure:
		dh_auto_configure -- $(confflags)

# (Temporary) fix for #1047898
override_dh_clean:
		dh_clean
		cd po; rm *.gmo; rm stamp-po; cd ..
