From 66940807f0b1cea75c7ad014174418fa97c6f1f2 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 2 Jan 2006 21:27:23 +0000 Subject: [PATCH] (LINK_GXX_STATICALLY): --enable-ncsb-path option. use locate to find c059033l.pfb. --- ChangeLog | 5 +++++ config.make.in | 16 ++++++++++++++++ configure.in | 25 +++++++++++++++++++++++++ mf/GNUmakefile | 1 - 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d18c272a61..0a662571db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-02 Han-Wen Nienhuys + + * configure.in (LINK_GXX_STATICALLY): --enable-ncsb-path option. + use locate to find c059033l.pfb. + 2006-01-02 Jan Nieuwenhuizen * lily/tie-formatting-problem.cc diff --git a/config.make.in b/config.make.in index 3d4295fbc7..6d7dea2de8 100644 --- a/config.make.in +++ b/config.make.in @@ -7,6 +7,10 @@ MISSING_REQUIRED = @REQUIRED@ package-depth = @package_depth@ +################################################################ +## FLAGS +################################################################ + FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ GTK2_CFLAGS = @GTK2_CFLAGS@ GUILE_CFLAGS = @GUILE_CFLAGS@ @@ -31,6 +35,10 @@ PACKAGE = @PACKAGE@ package = @package@ PACKAGE_NAME = @PACKAGE_NAME@ +################################################################ +## FILESYSTEM +################################################################ + prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -78,6 +86,13 @@ lilypond_omfdir = $(local_package_omfdir) webdir = $(lilypond_docdir)/html vimdir = $(lilypond_datadir)/vim + +NCSB_PATH = @NCSB_PATH@ + +################################################################ +## PROGRAMS +################################################################ + AR = @AR@ BASH = @BASH@ BISON = @BISON@ @@ -125,3 +140,4 @@ TAR = @TAR@ WINDRES = @WINDRES@ YACC = @YACC@ ZIP = @ZIP@ + diff --git a/configure.in b/configure.in index 46b6feeb90..f4667f77b7 100644 --- a/configure.in +++ b/configure.in @@ -33,6 +33,14 @@ AC_ARG_ENABLE(gui, [ --enable-gui compile with experimental GNOME output module. Default: off], [gui_b=$enableval]) + +NCSB_PATH=unknown +AC_ARG_ENABLE(gui, +[ --enable-ncsb-path set the path where Century Schoolbook fonts can be found. + Default: detect with locate(1)], + [NCSB_PATH=$enableval]) + + reloc_b=no AC_ARG_ENABLE(relocation, [ --enable-relocation compile with dynamic relocation. Default: off], @@ -109,6 +117,23 @@ if test "$reloc_b" = "yes"; then AC_DEFINE(ARGV0_RELOCATION) fi +AC_MSG_CHECKING([New Century Schoolbook PFB files]) +if test "$NCSB_PATH" = "unknown"; then + which locate >& /dev/null + if test "$?" = "0"; then + ## sort to give precedence to /usr/ + NCSB_PATH=`locate c059033l.pfb | sort -r | head -1` + if then "$NCSB_PATH" = ""; + AC_MSG_WARN(Could not find c059033l.pfb. Use --enable-ncsb-path to set path) + fi + NCSB_PATH=`dirname "$NCSB_PATH"` + else + AC_MSG_WARN(Could not find locate(1). Use --enable-ncsb-path to set path to c059033l.pfb) + fi +fi +AC_MSG_RESULT($NCSB_PATH) +AC_SUBST(NCSB_PATH) + STEPMAKE_PANGO_FT2(pangoft2, REQUIRED, 1.6.0) #STEPMAKE_PANGO(pango, REQUIRED, 1.6.0) STEPMAKE_FONTCONFIG(fontconfig, REQUIRED, 2.2.0) diff --git a/mf/GNUmakefile b/mf/GNUmakefile index 92586b0f20..13ebabb5a4 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -36,7 +36,6 @@ SVG_FILES = $(OTF_FILES:%.otf=%.svg) $(ALL_FONTS:%=$(outdir)/%.svg) NCSB_SOURCE_FILES=c059013l c059016l c059033l c059036l NCSB_TTFS=$(addprefix $(outdir)/,CenturySchL-Ital.ttf CenturySchL-BoldItal.ttf CenturySchL-Roma.ttf CenturySchL-Bold.ttf) -NCSB_PATH=/usr/share/fonts/default/Type1 NCSB_INSTALL_DIR=$(local_lilypond_datadir)/fonts/otf LOG_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.log) -- 2.39.2