From 8226fb56f131362db877dc4be6857c684b8fd022 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 19 Mar 2013 05:22:27 -0400 Subject: [PATCH] Allow disabling ICU by using a fake icu-config script --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c1d10b0e2..af0950f53 100644 --- a/configure.ac +++ b/configure.ac @@ -177,7 +177,7 @@ dnl Fallback to icu-config if ICU pkg-config files could not be found if test "$have_icu" != "true"; then AC_PATH_PROG(icu_config, icu-config, no) AC_MSG_CHECKING([for ICU by using icu-config fallback]) - if test "$icu_config" != "no"; then + if test "$icu_config" != "no" && "$icu_config" --version >/dev/null; then have_icu=true # We don't use --cflags as this gives us a lot of things that we don't # necessarily want, like debugging and optimization flags @@ -205,7 +205,7 @@ dnl Fallback to icu-config if ICU pkg-config files could not be found if test "$have_icu_le" != "true"; then AC_PATH_PROG(icu_config, icu-config, no) AC_MSG_CHECKING([for ICU_LE by using icu-config fallback]) - if test "$icu_config" != "no"; then + if test "$icu_config" != "no" && "$icu_config" --version >/dev/null; then have_icu_le=true # We don't use --cflags as this gives us a lot of things that we don't # necessarily want, like debugging and optimization flags