Version: (using KDE KDE 3.4.0) Installed from: RedHat RPMs Compiler: gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) OS: Linux kpdf fails to build on older systems (XFree-4.2.1 + Xft2-2.0/Xft2-2.1) due to the non-standard location of Xft2 header files.
Created attachment 10250 [details] use XFT_CFLAGS use XFT_CFLAGS as returned from xft-config --cflags (like how XFT_LIBS is used)
CVS commit by aacid: Fix compile problem due to the non-standard location of Xft2 header files. Thanks Rex for reporting BUGS: 102119 M +2 -0 configure.in.in 1.17.2.1 M +1 -1 xpdf/xpdf/Makefile.am 1.4.2.1 --- kdegraphics/kpdf/configure.in.in #1.17:1.17.2.1 @@ -40,7 +40,9 @@ if test -n "$XFT_CONFIG"; then + XFT_CFLAGS="`$XFT_CONFIG --cflags`" XFT_LIBS="`$XFT_CONFIG --libs`" fi +AC_SUBST(XFT_CFLAGS) AC_SUBST(XFT_LIBS) --- kdegraphics/kpdf/xpdf/xpdf/Makefile.am #1.4:1.4.2.1 @@ -1,3 +1,3 @@ -INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../fofi -I$(srcdir)/../splash -I$(srcdir)/../goo $(all_includes) $(LIBFREETYPE_CFLAGS) $(X_INCLUDES) $(QT_INCLUDES) +INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../fofi -I$(srcdir)/../splash -I$(srcdir)/../goo $(all_includes) $(LIBFREETYPE_CFLAGS) $(XFT_CFLAGS) $(X_INCLUDES) $(QT_INCLUDES) libxpdf_la_LDFLAGS = $(all_libraries)