From e839b63cb320bd6c3dc31b4a554b7934224cfe80 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 25 Nov 2024 19:34:39 +0100 Subject: [PATCH] meson: Allow building papd without CUPS, GitHub #1774 --- meson.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 1ea476417ef..caa66701150 100644 --- a/meson.build +++ b/meson.build @@ -949,11 +949,7 @@ cups = dependency('cups', required: false) cups_config = find_program('cups-config', required: false) spooldir = '' -if not get_option('with-appletalk') - have_cups = false - spooldir_required = false - cdata.set('DISABLE_SPOOL', 1) -else +if get_option('with-cups') and get_option('with-appletalk') spooldir = get_option('localstatedir') / 'spool' / 'netatalk' spooldir_override = get_option('with-spooldir') @@ -974,6 +970,10 @@ else else warning('CUPS not found, you might need to specify the path to cups-config') endif +else + have_cups = false + spooldir_required = false + cdata.set('DISABLE_SPOOL', 1) endif #