[tracker/tracker-0.16] configure.ac: Use pkg-config to search for ICU



commit 49a32ac525a2a3ed4de0cda28df117d68ee74d8f
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Oct 10 18:59:12 2013 +0100

    configure.ac: Use pkg-config to search for ICU
    
    There has been support for pkg-config in ICU for at least four years,
    see: https://ssl.icu-project.org/trac/ticket/6981

 configure.ac |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index be2090a..620aba3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -861,14 +861,11 @@ AC_CHECK_HEADER(uniwbrk.h,
 LIBUNISTRING_CFLAGS=""
 LIBUNISTRING_LIBS="-lunistring"
 
-# Check for libicu... Note that AC_CHECK_LIB cannot be used as
-#  symbol name includes libicu library version... don't want to
-#  look for ubrk_next_4_2
-AC_CHECK_HEADER(unicode/ubrk.h,
-                [have_libicu=yes],
-                [have_libicu=no])
-LIBICU_CFLAGS=""
-LIBICU_LIBS="-licuuc -licui18n"
+# Check for libicu...
+PKG_CHECK_MODULES(LIBICU,
+                  [icu-i18n icu-uc],
+                  [have_libicu=yes],
+                  [have_libicu=no])
 
 # Configure option
 AC_ARG_WITH([unicode-support],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]