--- configure.ac.old	2014-10-18 11:41:10.129703751 +0200
+++ configure.ac	2014-10-18 11:49:59.029713698 +0200
@@ -1481,20 +1481,30 @@
 AC_SUBST(WITH_ICONV)
 
 WITH_ICU=0
-ICU_LIBS=""
 if test "$with_icu" != "yes" ; then
     echo Disabling ICU support
 else
-    ICU_CONFIG=icu-config
-    if ${ICU_CONFIG} --cflags >/dev/null 2>&1
-    then
-        ICU_LIBS=`${ICU_CONFIG} --ldflags`
-        WITH_ICU=1
-        echo Enabling ICU support
-    else
-        AC_MSG_ERROR([libicu config program icu-config not found])
+    PKG_CHECK_MODULES([ICU],[icu-i18n],
+    	[have_icu=yes],
+    	[have_icu=no])
+    	
+    if test "x$have_icu" = "xno"; then
+        ICU_CONFIG=icu-config
+    	if ${ICU_CONFIG} --cflags >/dev/null 2>&1
+    		then
+        	ICU_LIBS=`${ICU_CONFIG} --ldflags`
+		have_icu=yes
+        	echo Enabling ICU support
+    	else
+        	AC_MSG_ERROR([libicu config program icu-config not found])
+    	fi
+    fi
+
+    if test "x$have_icu" = "xyes"; then
+    	WITH_ICU=1
     fi
 fi
+
 AC_SUBST(WITH_ICU)
 AC_SUBST(ICU_LIBS)
 
