Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 kbtin (1.0.19-1) unstable; urgency=medium
 .
   * New upstream release.
Author: Adam Borowski <kilobyte@angband.pl>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2018-07-23

--- /dev/null
+++ kbtin-1.0.19/.travis.yml
@@ -0,0 +1,17 @@
+language: c
+matrix:
+  include:
+    - os: linux
+      dist: xenial
+      addons:
+        apt:
+          packages:
+          - libz-dev
+          - libglib2.0-dev
+          - libgnutls28-dev
+    - os: osx
+      before_install:
+        brew update && brew install libtool && brew install glib && brew install gettext && brew link --force gettext
+
+script: ./autogen.sh && ./configure && make check
+after_failure: cat tests/testsuite.log
--- kbtin-1.0.19.orig/ac_arg_lib.m4
+++ kbtin-1.0.19/ac_arg_lib.m4
@@ -4,9 +4,9 @@ AC_DEFUN([AC_ARG_LIB], [
 AC_ARG_ENABLE([$1], [])
 if [[ "X$enable_$1" != "Xno" ]]
   then
-    # Missing pkg-config is ok.
-    $3_CFLAGS="$(pkg-config 2>/dev/null --cflags $2)"
-    $3_LIBS="$(pkg-config 2>/dev/null --libs $2)"
+    PKG_CHECK_MODULES([$3],[$2],[],[
+      # Missing pkg-config is ok.
+    ])
     ac_save_CFLAGS="$CFLAGS"
     ac_save_LDFLAGS="$LDFLAGS"
     CFLAGS="$CFLAGS ${$3_CFLAGS}"
