summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-11-15 08:29:19 +0000
committerKevin E Martin <kem@kem.org>2005-11-15 08:29:19 +0000
commit6dad07b803a33509c789974647d0911c2ed2a7c7 (patch)
treee3fce4644002e797d015e5fd603eac1be4826184
parent8932d6c031e59a59752d7adeba2e230a872529e1 (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 29d3c2e..ee2d0c2 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 = misc
FONT_FILES = \
12x24 \
12x24rk \
@@ -35,7 +34,7 @@ SUFFIXES = .bdf .pcf.gz
@rm -f $@
$(BDFTOPCF) -t $^ | gzip > $@
-fontdir = $(libdir)/X11/fonts/$(FONT_DIR)
+fontdir = @FONTDIR@
font_DATA = $(PCF_FILES)
CLEANFILES = $(font_DATA)
diff --git a/configure.ac b/configure.ac
index 6635c03..3007f6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,13 @@ AC_PATH_PROG(BDFTOPCF, bdftopcf)
AC_PATH_PROG(MKFONTSCALE, mkfontscale)
AC_PATH_PROG(MKFONTDIR, mkfontdir)
+DEFAULT_FONTDIR=${libdir}/X11/fonts/misc
+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])