Skip to content

Commit 80cd3a5

Browse files
committed
testppdfile: Made installing the utility optional
The testppdfile utility (replacement for cupstestppd) is only built and installed if ./configure is called with the --enable-testppdfile argument.
1 parent de18b75 commit 80cd3a5

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ EXTRA_DIST += \
3131
# =========
3232

3333
pkgutilsdir = $(bindir)
34-
pkgutils_PROGRAMS = testppdfile
34+
pkgutils_PROGRAMS =
35+
36+
if ENABLE_TESTPPDFILE
37+
pkgutils_PROGRAMS += testppdfile
38+
endif
3539

3640
# ==========================
3741
# PPD legacy support library

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ AC_SUBST(CUPS_STATEDIR)
124124
# ========================
125125
PKG_CHECK_MODULES([LIBCUPSFILTERS], [libcupsfilters])
126126

127+
# ============================================================
128+
# Check for whether we want to install the testppdfile utility
129+
# ============================================================
130+
AC_ARG_ENABLE([testppdfile], [AS_HELP_STRING([--enable-testppdfile], [enable testppdfile utility, to test correctness and integrity of PPD files.])],
131+
[enable_testppdfile="$enableval"],
132+
[enable_testppdfile="no"])
133+
AM_CONDITIONAL([ENABLE_TESTPPDFILE],
134+
[test "x$enable_testppdfile" != "xno"])
135+
127136
# =======================================================
128137
# Check for whether we want to install the ppdc utilities
129138
# =======================================================
@@ -507,6 +516,7 @@ Build configuration:
507516
pdftops: ${CUPS_PDFTOPS_RENDERER}
508517
Poppler's pdftops: ${enable_pdftops}
509518
pdftops-path: ${with_pdftops_path}
519+
testppdfile: ${enable_testppdfile}
510520
ppdc utilities: ${enable_ppdc_utils}
511521
genstrings: ${enable_genstrings}
512522
werror: ${enable_werror}

0 commit comments

Comments
 (0)