]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
configure.ac: Add configure option for keeping created queues during shutdown 285/head
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 21 Aug 2020 08:33:21 +0000 (10:33 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 21 Aug 2020 08:33:21 +0000 (10:33 +0200)
configure.ac
utils/cups-browsed.c

index 3c3d68addc5e6ba7e27a76d48c9c209afa2ecd67..4e2ee330c82f9f2a0c932a3b84cbeca9613bac5c 100644 (file)
@@ -850,6 +850,16 @@ PKG_CHECK_EXISTS([liblouis], [
 AM_CONDITIONAL(ENABLE_BRAILLE, test "x$enable_braille" = xyes)
 AC_SUBST(TABLESDIR)
 
+# ===============================================
+# Should we keep generated queues after shutdown?
+# ===============================================
+AC_ARG_ENABLE(saving-created-queues, AS_HELP_STRING([--enable-saving-created-queues], [enable saving created queues during shutdown]),
+             [SAVING_CREATED_QUEUES=$enableval],[SAVING_CREATED_QUEUES="no"])
+
+AS_IF([test "x$SAVING_CREATED_QUEUES" != "xno"],
+      [AC_DEFINE([SAVING_CREATED_QUEUES], [1], [Define whether we save queues during shutdown])]
+)
+
 # =========================================
 # Local queue naming for remote CUPS queues
 # =========================================
@@ -979,6 +989,7 @@ Build configuration:
        apple-raster:    ${APPLE_RASTER_FILTER}
        pclm:            ${enable_pclm}
        local queue naming for remote CUPS queues: ${REMOTE_CUPS_LOCAL_QUEUE_NAMING}
+       keep generated queues during shutdown:     ${SAVING_CREATED_QUEUES}
        all ipp printer auto-setup: ${enable_auto_setup_all}
        only driverless auto-setup: ${enable_auto_setup_driverless_only}
        only local auto-setup: ${enable_auto_setup_local_only}
index 59e3c2690073f697348c9817a986782ac73add9a..00039c492c24313c3dcaf690b21318fab64f9925 100644 (file)
@@ -466,7 +466,11 @@ static create_ipp_printer_queues_t CreateIPPPrinterQueues = IPP_PRINTERS_DRIVERL
 static create_ipp_printer_queues_t CreateIPPPrinterQueues = IPP_PRINTERS_ALL;
 #endif
 #endif
+#ifdef SAVING_CREATED_QUEUES
 static unsigned int KeepGeneratedQueuesOnShutdown = 1;
+#else
+static unsigned int KeepGeneratedQueuesOnShutdown = 0;
+#endif
 static ipp_queue_type_t IPPPrinterQueueType = PPD_YES;
 static int NewIPPPrinterQueuesShared = 0;
 static int AutoClustering = 1;