]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Build system: Make missing DejaVuSans.ttf non-fatal
authorDeepak Khatri <b19158@students.iitmandi.ac.in>
Wed, 12 Jan 2022 21:33:35 +0000 (03:03 +0530)
committerTill Kamppeter <till.kamppeter@gmail.com>
Wed, 12 Jan 2022 21:37:18 +0000 (18:37 -0300)
DejaVuSans.ttf is only needed for test programs, not for actually using cups-filters. Therefore we make its absence non-fatal.

(cherry picked from commit e76802b2167fc6bf16b69c7971c8505b5f5cc57f)

configure.ac

index 3973db6a89de02d59e901cb0912edb78a737a6d4..8e9a9a5abb61e7fd58d9bb5e9fc72c8d259eea16 100644 (file)
@@ -790,7 +790,7 @@ AC_ARG_WITH([test-font-path],
 )
 
 AS_IF([test "x$cross_compiling" != "xyes" && ! test -f "$with_test_font_path"],
-       [AC_MSG_ERROR(DejaVuSans.ttf font file is missing. Please install a package providing it.)]
+       [AC_MSG_WARN(DejaVuSans.ttf font file is missing. Please install a package providing it.) && [with_test_font_path=no]]
 )
 AC_DEFINE_UNQUOTED([TESTFONT], ["$with_test_font_path"], [Path to font used in tests])