From e63ff8abfc9fbed7eaf6d253b82a25bc8d21743b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Sat, 26 Dec 2015 14:44:57 +0100 Subject: [PATCH] Avoid libicu dependency with --enable-runtime=no --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1a8698b..9d29105 100644 --- a/configure.ac +++ b/configure.ac @@ -154,8 +154,10 @@ if test "$enable_runtime" = "libicu" -o "$enable_builtin" = "libicu"; then # using AC_SEARCH_LIBS also don't work since functions have the library version appended PKG_CHECK_MODULES([LIBICU], [icu-uc], [ HAVE_LIBICU=yes - LIBS="$LIBICU_LIBS $LIBS" - CFLAGS="$LIBICU_CFLAGS $CFLAGS" + if test "$enable_runtime" = "libicu"; then + LIBS="$LIBICU_LIBS $LIBS" + CFLAGS="$LIBICU_CFLAGS $CFLAGS" + fi ], [ OLDLIBS=$LIBS LIBS="-licuuc $LIBS"