--- tools/Makefile.am.orig 2021-06-03 10:22:08.000000000 +0000 +++ tools/Makefile.am 2021-11-25 14:58:47.765440000 +0000 @@ -10,6 +10,10 @@ SUBDIRS += linux endif +if CK_COMPILE_BSDSUNIX +SUBDIRS += bsdsunix +endif + if CK_COMPILE_FREEBSD SUBDIRS += freebsd endif @@ -28,6 +32,7 @@ DIST_SUBDIRS = \ linux \ + bsdsunix \ freebsd \ netbsd \ openbsd \ @@ -148,11 +153,15 @@ libexec_PROGRAMS = \ ck-collect-session-info \ - ck-get-x11-server-pid \ - ck-get-x11-display-device \ ck-remove-directory \ $(NULL) +if USE_LIBX11 +libexec_PROGRAMS += \ + ck-get-x11-server-pid \ + ck-get-x11-display-device +endif + ck_collect_session_info_SOURCES = \ ck-collect-session-info.c \ $(NULL)