This is a slightly-modified version of a LFS patch for Xpdf 3.00. The only code-level changes are: (a) "/usr/include" has been replaced with "/usr/local/include" in one line (b) has been replaced with Some documentation from the original patch: Submitted By: Tushar Teredesai and Randy McMurchy Date: 2004-12-18 Initial Package Version: 3.00 Origin: NA Upstream Status: Major hack, will never be accepted upstream. Description: Fixed compilation with freetype-2.1.7; (12-18-2004) Randy added CFLAGS for libpaper so that libpaper is discovered by configure Update: This version of the patch has been modified for use with Xpdf 3.04. This patch file may include trailing empty lines and/or trailing lines that consist solely of whitespace. If you edit this file, use software that preserves lines of this type, or you may break the patch. --- xpdf-3.04.old/configure +++ xpdf-3.04/configure @@ -7947,7 +7947,7 @@ as_fn_error $? "argument must be a directory" "$LINENO" 5 fi else - libpaper_CFLAGS= + libpaper_CFLAGS="-I/usr/local/include/freetype2" fi smr_test_CPPFLAGS="${CPPFLAGS+set}" @@ -8056,6 +8056,9 @@ + cat >>confdefs.h <<_ACEOF +#include +_ACEOF