From 5bdd2545df39834577855ae704f0021681e3812a Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 23:24:32 +0000 Subject: [PATCH] lilypond-1.3.71 --- Documentation/topdocs/INSTALL.texi | 3 +++ lily/GNUmakefile | 5 +++-- lily/main.cc | 10 +++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index f7d9daed12..3ae43ce2fe 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -91,6 +91,9 @@ files. If you do not want to use PostScript output, edit @file{mf/GNUmakefile}. +@item kpathsea, a library for searching (TeX) files. @code{kpathsea} is +usually included with your installation of TeX. + @end itemize diff --git a/lily/GNUmakefile b/lily/GNUmakefile index 16218df88e..7699304769 100644 --- a/lily/GNUmakefile +++ b/lily/GNUmakefile @@ -6,15 +6,16 @@ depth = .. NAME = lilypond SUBDIRS = include +EXTRA_LIBES=-lkpathsea MODULE_LIBS=$(depth)/flower -MODULE_INCLUDES= $(depth)/flower/include +MODULE_INCLUDES= $(depth)/flower/include MODULE_CXXFLAGS= HELP2MAN_EXECS = lilypond STEPMAKE_TEMPLATES= c++ executable po help2man include $(depth)/make/stepmake.make - +EXTRA_LIBES=-lkpathsea # force these: Make can't know these have to be generated in advance $(outdir)/my-lily-parser.o: $(outdir)/parser.hh $(outdir)/my-lily-lexer.o: $(outdir)/parser.hh diff --git a/lily/main.cc b/lily/main.cc index d575245570..f1362afc9b 100644 --- a/lily/main.cc +++ b/lily/main.cc @@ -15,7 +15,6 @@ #include "lily-version.hh" #include "all-font-metrics.hh" -#include "proto.hh" #include "getopt-long.hh" #include "misc.hh" #include "string.hh" @@ -33,6 +32,9 @@ #include #endif +extern "C" { +#include +} bool verbose_global_b = false; bool no_paper_global_b = false; @@ -309,6 +311,12 @@ main (int argc, char **argv) setenv ("GUILE_INIT_SEGMENT_SIZE_1", "4194304", 0); setenv ("GUILE_MAX_SEGMENT_SIZE", "8388608", 0); + /* + initialize kpathsea + */ + kpse_set_program_name(argv[0], NULL); + kpse_maketex_option("tfm", TRUE); + oparser_global_p = new Getopt_long(argc, argv,theopts); while (Long_option_init const * opt = (*oparser_global_p)()) { -- 2.39.5