[tracker/parser-libunistring-review] Look for libunistring at configure time
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/parser-libunistring-review] Look for libunistring at configure time
- Date: Wed, 28 Apr 2010 18:47:27 +0000 (UTC)
commit 3a4426209a2b9600f898fe28108a3627be053646
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Apr 27 18:07:01 2010 +0200
Look for libunistring at configure time
configure.ac | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 84319f5..4e88f0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -799,6 +799,36 @@ fi
AM_CONDITIONAL(HAVE_GNOME_KEYRING, test "x$have_gnome_keyring" = "xyes")
+##################################################################
+# Enable libunistring for a full Unicode-compliant word break algorithm?
+##################################################################
+AC_ARG_ENABLE(libunistring,
+ AS_HELP_STRING([--enable-libunistring],
+ [enable libunistring to perform Unicode-compliant word breaks [[default=auto]]]),,
+ [enable_libunistring=auto])
+
+if test "x$enable_libunistring" != "xno" ; then
+ AC_CHECK_HEADER(uniwbrk.h,
+ AC_CHECK_LIB(unistring, u8_wordbreaks))
+
+ have_libunistring=${ac_cv_lib_unistring_u8_wordbreaks:-no}
+
+ LIBUNISTRING_CFLAGS="$CFLAGS"
+ LIBUNISTRING_LIBS="$LIBS"
+
+ AC_SUBST(LIBUNISTRING_CFLAGS)
+ AC_SUBST(LIBUNISTRING_LIBS)
+
+ if test "x$have_libunistring" = "xyes"; then
+ AC_DEFINE(HAVE_LIBUNISTRING, [], [Unicode support library])
+ fi
+else
+ have_libunistring="no (disabled)"
+fi
+
+AM_CONDITIONAL(HAVE_LIBUNISTRING, test "$have_libunistring" = "yes")
+
+
####################################################################
# Miner Evolution
####################################################################
@@ -1755,6 +1785,7 @@ Build Configuration:
Support for file monitoring: $have_file_monitor
Support for accent stripping (unac): $have_unac
Support for Cyrillic languages (enca): $have_enca
+ Support for GNU libunistring: $have_libunistring
Applications:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]