From 787892ebba8e3f6ddeb675df818f0a6e57cce8f8 Mon Sep 17 00:00:00 2001 From: hanwen Date: Tue, 29 Mar 2005 23:05:46 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 6 ++++++ config.hh.in | 3 +++ configure.in | 1 + lily/general-scheme.cc | 6 +++++- stepmake/aclocal.m4 | 3 ++- 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f15d827652..3e6af25b2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-29 David Jedlinsky + + * configure.in: Detect libutf8/wchar.h variant. + + * stepmake/aclocal.m4: Modify shared size test. + 2005-03-30 Han-Wen Nienhuys * make/lilypond.fedora.spec.in (Group): remove texmf profile stuff. diff --git a/config.hh.in b/config.hh.in index ee0ee4976a..77abe5c57e 100644 --- a/config.hh.in +++ b/config.hh.in @@ -93,3 +93,6 @@ /* define if you have libkpathsea.so */ #define HAVE_LIBKPATHSEA_SO 0 + +/* define if you have utf8/wchar.h */ +#define HAVE_UTF8_WCHAR_H 0 diff --git a/configure.in b/configure.in index 69d77cbc50..6c43498096 100644 --- a/configure.in +++ b/configure.in @@ -65,6 +65,7 @@ AC_HEADER_STAT AC_FUNC_MEMCMP AC_FUNC_VPRINTF AC_CHECK_FUNCS([fopencookie funopen gettext isinf memmem snprintf vsnprintf]) +AC_CHECK_HEADERS([utf8/wchar.h], LIBS="$LIBS -lutf8") if test "$gui_b" = "yes"; then diff --git a/lily/general-scheme.cc b/lily/general-scheme.cc index 28b851af41..6b96f3e14e 100644 --- a/lily/general-scheme.cc +++ b/lily/general-scheme.cc @@ -13,7 +13,11 @@ #include /* isinf */ #include #include /* memset */ -#include /* wcrtomb */ +#ifdef HAVE_UTF8_WCHAR_H +#include /* wcrtomb */ +#else +#include /* wcrtomb */ +#endif #include "libc-extension.hh" #include "lily-guile.hh" diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 62989a5009..b05f9a4cac 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -797,7 +797,8 @@ AC_DEFUN(STEPMAKE_KPATHSEA, [ AC_TRY_LINK([#include ], [kpse_var_expand ("\$TEXMF");], [have_libkpathsea_so=maybe; - shared_size=`wc -c conftest | sed -e 's/ .*//g'`], + shared_size=`wc -c conftest`; + shared_size=`echo $shared_size | sed -e 's/ .*//g'`], [have_libkpathsea_so=no]) if test "$have_libkpathsea_so" = "maybe"; then -- 2.39.5