diff options
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index c36d171..e1fabdc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,9 +30,9 @@ DIR_SUBSTS = -e 's|@bindir[@]|$(bindir)|g' mkfontdir: mkfontdir.in $(AM_V_GEN)$(SED) $(DIR_SUBSTS) < $(srcdir)/mkfontdir.in > $@ -AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE +AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ @ZLIB_CFLAGS@ -D_BSD_SOURCE AM_CFLAGS = $(CWARNFLAGS) -mkfontscale_LDADD = @MKFONTSCALE_LIBS@ +mkfontscale_LDADD = @MKFONTSCALE_LIBS@ @ZLIB_LIBS@ mkfontscale_SOURCES = \ constlist.c \ diff --git a/configure.ac b/configure.ac index 7ff0bbb..ca64ddc 100644 --- a/configure.ac +++ b/configure.ac @@ -52,7 +52,8 @@ fi AC_CHECK_FUNCS([vasprintf]) # Checks for pkg-config packages -PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2 zlib) +PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2) +PKG_CHECK_MODULES(ZLIB, zlib) PKG_CHECK_MODULES(X11, [xproto >= 7.0.25]) dnl Allow checking code with lint, sparse, etc. |