]> granicus.if.org Git - php/commitdiff
improve icu-config check
authorAntony Dovgal <tony2001@php.net>
Mon, 15 Jan 2007 14:03:55 +0000 (14:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 15 Jan 2007 14:03:55 +0000 (14:03 +0000)
acinclude.m4

index a8dd9dfd42e125e628c5f5a4d81224be2c33d027..a9ffc0d02eb56244f5a24284eb711c952b065ea3 100644 (file)
@@ -2121,9 +2121,9 @@ AC_DEFUN([PHP_SETUP_ICU],[
 
   dnl Trust icu-config to know better what the install prefix is..
   icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
-  if test -z "$icu_install_prefix"; then
+  if test "$?" != "0" || test -z "$icu_install_prefix"; then
     AC_MSG_RESULT([not found])
-    AC_MSG_ERROR([Please specify the correct ICU install prefix.])
+    AC_MSG_ERROR([Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works.])
   else
     AC_MSG_RESULT([found in $icu_install_prefix])