--- other/pamx/Makefile.orig 2019-09-28 14:47:30.000000000 -0500 +++ other/pamx/Makefile 2019-10-14 16:19:25.000000000 -0500 @@ -12,7 +12,9 @@ TEST_PKGCONFIG_X11 := \ if $(PKG_CONFIG) x11 --exists; then echo exists; fi -ifeq ($(shell $(TEST_PKGCONFIG_X11)),) +ifeq ($(WANT_X11),N) + # Do nothing +else ifeq ($(shell $(TEST_PKGCONFIG_X11)),) # Pkg-config has never heard of X11, or doesn't even exist ifneq ($(X11LIB),NONE) @@ -49,7 +51,9 @@ include $(SRCDIR)/common.mk -ifeq ($(shell $(TEST_PKGCONFIG_X11)),) +ifeq ($(WANT_X11),N) + # Do nothing +else ifeq ($(shell $(TEST_PKGCONFIG_X11)),) # Pkg-config has never heard of X11, or doesn't even exist X11_LIBOPTS = $(shell $(LIBOPT) $(LIBOPTR) $(X11LIB)) else