From: fred Date: Tue, 26 Mar 2002 23:25:28 +0000 (+0000) Subject: lilypond-1.3.75 X-Git-Tag: release/1.5.59~1439 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d900c264ba17bbcff50088e73c228f11d49b6c51;p=lilypond.git lilypond-1.3.75 --- diff --git a/lily/all-font-metrics.cc b/lily/all-font-metrics.cc index 10f0ef3476..23d709d928 100644 --- a/lily/all-font-metrics.cc +++ b/lily/all-font-metrics.cc @@ -7,6 +7,7 @@ */ +#include "config.h" #include "main.hh" #include "all-font-metrics.hh" #include "debug.hh" @@ -17,11 +18,11 @@ #include "scm-hash.hh" - - +#if HAVE_KPATHSEA_KPATHSEA_H extern "C" { #include } +#endif const char * default_font_sz_ = "cmr10"; @@ -48,12 +49,15 @@ All_font_metrics::find_afm (String name) if (!afm_p_dict_->elem_b (sname)) { String path; + +#if KPATHSEA && HAVE_KPSE_FIND_FILE if (path.empty_b ()) { - char * p = kpse_find_file(name.ch_C(), kpse_afm_format, true); + char * p = kpse_find_file (name.ch_C(), kpse_afm_format, true); if (p) path = p; } +#endif if (path.empty_b()) path = search_path_.find (name + ".afm"); @@ -103,11 +107,14 @@ All_font_metrics::find_tfm (String name) { String path; +//#if KPATHSEA && HAVE_KPSE_FIND_TFM -- urg: a macro +#if KPATHSEA && HAVE_KPSE_FIND_FILE if (path.empty_b()) { - char * p = kpse_find_tfm(name.ch_C()); + char * p = kpse_find_tfm (name.ch_C()); path = p; } +#endif if (path.empty_b()) path = search_path_.find (name + ".tfm"); if (path.empty_b())