summaryrefslogtreecommitdiffstats
path: root/contrib/packages/rpm/el5/SOURCES/libfontenc-1.0.0-get-fontdir-from-pkgconfig.patch
blob: ceaf43f629ac1b33b9601225ced86dcafaa4718d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git ./configure.ac ./configure.ac
index fc28ef9..63ef0c8 100644
--- ./configure.ac
+++ ./configure.ac
@@ -37,7 +37,7 @@ AC_PROG_CC
 AC_PROG_LIBTOOL
 XORG_CWARNFLAGS
 
-encodingsdir=${libdir}/X11/fonts/encodings
+encodingsdir=$(pkg-config --variable=fontdir fontutil)/encodings
 AC_ARG_WITH(encodingsdir, AC_HELP_STRING([--with-encodingsdir=<pathname>],
 	[Path to font encodings]), [encodingsdir="$withval"])
 ENCODINGSDIR="$encodingsdir"