From d288954c2670d1dd3d8ea234ffdc0b32a3e3ae96 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 21 Dec 2005 00:17:30 +0000 Subject: [PATCH] * lily/relocate.cc (setup_paths) [__MINGW32__]: Comment-out broken relocation code. * stepmake/stepmake/generic-vars.make (INSTALL): Assign INSTALL_PY iso itself. * lily/relocate.cc [HAVE_GETTEXT]: Include libintl.h. Fixes mingw compile. --- ChangeLog | 3 +++ config.make.in | 5 +++-- lily/relocate.cc | 10 ++++++++++ stepmake/stepmake/generic-vars.make | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8384ebce70..59cdcfc325 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-21 Jan Nieuwenhuizen + * lily/relocate.cc (setup_paths) [__MINGW32__]: Comment-out broken + relocation code. + * stepmake/stepmake/generic-vars.make (INSTALL): Assign INSTALL_PY iso itself. diff --git a/config.make.in b/config.make.in index 95e725135e..bc3c1363fb 100644 --- a/config.make.in +++ b/config.make.in @@ -80,6 +80,7 @@ lilypond_omfdir = $(local_package_omfdir) webdir = $(lilypond_docdir)/html vimdir = $(lilypond_datadir)/vim +AR = @AR@ BASH = @BASH@ BISON = @BISON@ CC = @CC@ @@ -102,6 +103,7 @@ GUILE_LDFLAGS = @GUILE_LDFLAGS@ ICFLAGS = @ICFLAGS@ ILDFLAGS = @ILDFLAGS@ INIMETAFONT = @INIMETAFONT@ +INSTALL = @INSTALL@ KPATHSEA_LIBS = @KPATHSEA_LIBS@ LD = @LD@ LINK_GXX_STATICALLY = @LINK_GXX_STATICALLY@ @@ -119,6 +121,7 @@ PERL = @PERL@ PLATFORM_WINDOWS = @PLATFORM_WINDOWS@ PYTHON = @PYTHON@ RANLIB = @RANLIB@ +RANLIB = @RANLIB@ ROOTSEP = @ROOTSEP@ SHELL = @SHELL@ SPLITTING_MAKEINFO = @SPLITTING_MAKEINFO@ @@ -126,5 +129,3 @@ TAR = @TAR@ WINDRES = @WINDRES@ YACC = @YACC@ ZIP = @ZIP@ -AR = @AR@ -RANLIB = @RANLIB@ diff --git a/lily/relocate.cc b/lily/relocate.cc index 16a76dfd48..0c241aeea7 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -161,6 +161,15 @@ setup_paths (char const *argv0) #endif /* __CYGWIN__ || __MINGW32__ */ +#ifndef __MINGW32__ + + /* FIXME, this is broken. + what is this supposed to do? + + argv0[0]==/ is not a universal test for absolute files, see + below for File_name.dir_[0] . + */ + /* if name contains slashes, we should not look in $PATH */ String argv0_abs; if (argv0[0] == '/') @@ -168,6 +177,7 @@ setup_paths (char const *argv0) else if (String (argv0).index ('/') > 0) argv0_abs = get_working_directory () + "/" + String (argv0); else +#endif { /* Find absolute ARGV0 name, using PATH. */ File_path path; diff --git a/stepmake/stepmake/generic-vars.make b/stepmake/stepmake/generic-vars.make index 2a6cf327a7..f41d2b415b 100644 --- a/stepmake/stepmake/generic-vars.make +++ b/stepmake/stepmake/generic-vars.make @@ -39,6 +39,7 @@ step-bindir = $(stepmake)/bin DEPTH = $(depth)/$(package-depth) INSTALLPY=$(PYTHON) $(step-bindir)/install.py -c +## FIXME, use INSTALLPY or INSTALL from config.make? INSTALL=$(INSTALLPY) group-dir = $(shell cd $(DEPTH);pwd)/.. -- 2.39.5