Use --cppflags-searchpath to get ICU includes
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 1 Sep 2011 12:28:54 +0000 (14:28 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 1 Sep 2011 12:28:54 +0000 (14:28 +0200)
Use icu-config --cppflags-searchpath instead of icu-config --cppflags.
Problem is that it --cpflags does not always contain include path.
Seen with ICU 4.6.1 on Solaris 5.10, GCC 3.4.3.

ac_check_icu.m4

index 9bdf505..6cc6097 100644 (file)
@@ -44,7 +44,7 @@ AC_DEFUN([AC_CHECK_ICU],[
                    ICU_PREFIX=`$ICU_CONFIG --prefix`
                    
                    AC_MSG_CHECKING(ICU_CPPFLAGS)
-                   ICU_CPPFLAGS=`$ICU_CONFIG --cppflags`""
+                   ICU_CPPFLAGS=`$ICU_CONFIG --cppflags-searchpath`""
                    if test "$ICU_PREFIX" = "/usr"; then
                       ICU_CPPFLAGS=`echo $ICU_CPPFLAGS|sed 's@-I/usr/include@@'`
                    fi