#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_OPTIONS

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with autoreconf

# Workaround for the following issues found with the autobuilder:
# - s390x: qemu-system-s390x won't start:
#     "Initialization of device s390-ipl failed: could not find stage1 bootloader"
# - mipsel, armel, powerpc: test suite hangs:
#     "Build killed with signal TERM after 150 minutes of inactivity"
ifneq (,$(findstring $(DEB_HOST_ARCH),s390x armel mipsel powerpc))
override_dh_auto_test:
endif

override_dh_install:
	dh_install -X.la --fail-missing

# Don't run dh_makeshlibs since no "real" shared libraries are built
# Thus avoid Lintian warnings/errors:
# - pkg-has-shlibs-control-file-but-no-actual-shared-libs
# - post{inst,rm}-has-useless-call-to-ldconfig
override_dh_makeshlibs:
