summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-21 18:57:58 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-22 03:28:10 -0600
commit2706c735b3c89411d2bcf6e8c31ec8796feab174 (patch)
tree882e456a87921839a828de263726dcd5cc4b5d93 /m4
parent5486b5bc09f394d2697e32e2f2b887eea93f4b14 (diff)
downloadgroff-git-2706c735b3c89411d2bcf6e8c31ec8796feab174.tar.gz
[gropdf]: Fix Savannah #63824 (2/2).
[gropdf]: Revise tests to run unconditionally, rather than configuring them away at build time, which can cause a distribution archive to be incorrectly structured. Update configuration notices when optional dependencies are absent. * font/devpdf/devpdf.am (font_devpdf_TESTS): Remove `USE_GROPDF` and `HAVE_URW_FONTS` conditionals. * m4/groff.m4 (GROFF_GROPDF_PROGRAM_NOTICE, GROFF_URW_FONTS_NOTICE): Warn reader that a gropdf test failure is to be expected. Fixes <https://savannah.gnu.org/bugs/?63824> (2/2). ANNOUNCE: Update bug counts.
Diffstat (limited to 'm4')
-rw-r--r--m4/groff.m431
1 files changed, 18 insertions, 13 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index af2ddfdcd..b6c5535be 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -325,13 +325,15 @@ AC_DEFUN([GROFF_GROPDF_PROGRAM_NOTICE], [
then
AC_MSG_NOTICE(['gropdf' will have reduced function.
- Because neither Ghostscript nor URW fonts are available, groff
- documentation will not be available in PDF.
+ Neither Ghostscript nor URW fonts are available; groff documentation
+ thus will not be available in PDF.
'gropdf' will be able to handle only documents using the standard PDF
base 14 fonts, plus the 'EURO' font groff supplies, and font embedding
with its '-e' option (accessed via the 'groff' command with the option
'-P -e') will not be possible.
+
+ If you run "make check", an automated test for 'gropdf' will fail.
])
fi
])
@@ -363,6 +365,7 @@ AC_DEFUN([GROFF_URW_FONTS_CHECK], [
_list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^[ ]*\// { print $'0' }'| tr : ' '`
fi
+dnl Keep this list in sync with font/devpdf/Foundry.in.
_list_paths="$_list_paths \
/usr/share/fonts/type1/gsfonts/ \
/usr/share/fonts/default/Type1/ \
@@ -409,12 +412,16 @@ AC_DEFUN([GROFF_URW_FONTS_NOTICE], [
then
AC_MSG_NOTICE([URW fonts in Type 1/PFB format were not found.
- URW font generation for groff's 'gropdf' output driver will not work
- properly. You can obtain the URW base 35 fonts from their GitHub
- project.
+ groff font description files for the URW fonts, used by the 'gropdf'
+ output driver, will not be available. Use and embedding of fonts from
+ the 'U' foundry in PDF documents generated by groff will not be
+ possible.
+
+ If you run "make check", an automated test for 'gropdf' will fail.
- As of this writing (2023-02-15), you can find them in the 'fonts'
- directory of the following archives (choose one).
+ You can obtain the URW base 35 fonts from their GitHub project. As of
+ this writing (2023-02-15), you can find them in the 'fonts' directory
+ of the following archives (choose one).
https://github.com/ArtifexSoftware/urw-base35-fonts/archive/refs/
tags/20200910.zip
@@ -426,12 +433,10 @@ AC_DEFUN([GROFF_URW_FONTS_NOTICE], [
https://github.com/ArtifexSoftware/urw-base35-fonts/releases
By default, groff will look for these fonts in the search path shown
- by the 'gs -h' command (if available) and in the two directories
- /usr/share/fonts/type1/gsfonts/
- and
- /opt/local/share/fonts/urw-fonts/
- (these locations are specified in font/devpdf/Foundry.in). You will
- need to re-run the 'configure' script after installing these fonts.
+ by the 'gs -h' command (if available) and in several directories
+ specified in font/devpdf/Foundry.in). You will need to 'make
+ distclean' and re-run the 'configure' script after installing these
+ fonts.
Alternatively, you can pass the option '--with-urw-fonts-dir=DIR'
to 'configure' to look for them in the directory DIR you specify.