summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-11-15 08:29:16 +0000
committerKevin E Martin <kem@kem.org>2005-11-15 08:29:16 +0000
commitcac47c41bba50c0b406c0142cb63ad42e2b64b81 (patch)
tree2f796f3a18426f3718a19850d36d59e99a40cc5d
parentf42d82a2b60d4d78e1e1668900afc09a91d804ac (diff)
Add configure option to change the installed font dir.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac7
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e69de29..7c29eb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -0,0 +1,5 @@
+2005-11-15 Kevin E. Martin <kem-at-freedesktop-dot-org>
+
+ * Makefile.am:
+ * configure.ac:
+ Add configure option to change the installed font dir.
diff --git a/Makefile.am b/Makefile.am
index ae8e0da..7c5e10b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,6 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-FONT_DIR = TTF
FONT_FILES = \
luximbi.ttf \
luximb.ttf \
@@ -34,7 +33,7 @@ FONT_FILES = \
luxisri.ttf \
luxisr.ttf
-fontdir = $(libdir)/X11/fonts/$(FONT_DIR)
+fontdir = @FONTDIR@
font_DATA = $(FONT_FILES)
EXTRA_DIST = $(FONT_FILES) COPYRIGHT.BH autogen.sh
diff --git a/configure.ac b/configure.ac
index 7e5a422..d67106d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,13 @@ AC_PATH_PROG(MKFONTSCALE, mkfontscale)
AC_PATH_PROG(MKFONTDIR, mkfontdir)
AC_PATH_PROG(FCCACHE, fc-cache)
+DEFAULT_FONTDIR=${libdir}/X11/fonts/TTF
+AC_ARG_WITH(fontdir,
+ AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to install fonts]),
+ [FONTDIR="$withval"],
+ [FONTDIR="$DEFAULT_FONTDIR"])
+AC_SUBST(FONTDIR)
+
XORG_RELEASE_VERSION
AC_OUTPUT([Makefile])