]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 29 Mar 2005 23:05:46 +0000 (23:05 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 29 Mar 2005 23:05:46 +0000 (23:05 +0000)
ChangeLog
config.hh.in
configure.in
lily/general-scheme.cc
stepmake/aclocal.m4

index f15d8276526eb060279a8e9d96b173710015da31..3e6af25b2e0aabe578a8f30bc609c5d00ed7fdf7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-29  David Jedlinsky  <lilypond@ipnh.com>
+
+       * configure.in: Detect libutf8/wchar.h variant.
+
+       * stepmake/aclocal.m4: Modify shared size test.
+
 2005-03-30  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * make/lilypond.fedora.spec.in (Group): remove texmf profile stuff.
index ee0ee4976a62d0b8956a467d2529254f9d0e388d..77abe5c57e234fc5fcf49d60b98bc8c3af2f6ac9 100644 (file)
@@ -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
index 69d77cbc508757cf711d9f41db720b9ff9e5244d..6c43498096d7170498d08eef77e2b1b5ceeffa28 100644 (file)
@@ -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
index 28b851af41052381b9b2d4038c3da5588bbcd7fa..6b96f3e14e34c011a0b26df7a9ff9ec7a7f24463 100644 (file)
 #include <math.h>  /* isinf */
 #include <stdio.h>
 #include <string.h>  /* memset */
-#include <wchar.h>  /* wcrtomb */
+#ifdef HAVE_UTF8_WCHAR_H
+#include <utf8/wchar.h>  /* wcrtomb */
+#else
+#include <wchar.h> /* wcrtomb */
+#endif
 
 #include "libc-extension.hh"
 #include "lily-guile.hh"
index 62989a5009cb71f781e7ab67b602e09bfa4eb1d0..b05f9a4cacf52a6937f9e93d54a90c4bef6c18e0 100644 (file)
@@ -797,7 +797,8 @@ AC_DEFUN(STEPMAKE_KPATHSEA, [
     AC_TRY_LINK([#include <kpathsea/kpathsea.h>],
                  [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