summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in.in20
-rw-r--r--klinkstatus/src/utils/Makefile.am1
-rw-r--r--kxsldbg/Makefile.am1
-rw-r--r--kxsldbg/kxsldbgpart/Makefile.am2
-rw-r--r--kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am1
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/Makefile.am1
-rw-r--r--quanta/parsers/dtd/Makefile.am1
-rw-r--r--quanta/treeviews/Makefile.am1
8 files changed, 27 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in
index ca68d7c4..2354329b 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -259,3 +259,23 @@ AC_SUBST(enable_editors)
AC_CHECK_PROGS(TAR, gnutar gtar tar, [AM_MISSING_PROG(tar)])
AC_CHECK_PROG(GZIP_COMMAND, gzip, gzip)
+
+# Check for ICU CXXFLAGS
+KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
+ AC_MSG_WARN([Could not find pkg-config])
+])
+if test -n "$PKGCONFIG"; then
+ ICU_VERSION=`$PKGCONFIG icu-uc --modversion 2>/dev/null`
+ if test -n "$ICU_VERSION"; then
+ ICU_CXXFLAGS=`$PKGCONFIG icu-uc --variable=CXXFLAGS`
+ fi
+fi
+if test -z "$ICU_VERSION"; then
+ KDE_FIND_PATH(icu-config, ICU_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
+ AC_MSG_WARN([Could not find icu-config])
+ ])
+ if test -n "$ICU_CONFIG"; then
+ ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags`
+ fi
+fi
+AC_SUBST(ICU_CXXFLAGS)
diff --git a/klinkstatus/src/utils/Makefile.am b/klinkstatus/src/utils/Makefile.am
index 0d2ba5ba..0ab8b14a 100644
--- a/klinkstatus/src/utils/Makefile.am
+++ b/klinkstatus/src/utils/Makefile.am
@@ -1,4 +1,5 @@
INCLUDES = $(LIBXSLT_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)
METASOURCES = AUTO
libutils_la_LDFLAGS = $(all_libraries)
noinst_LTLIBRARIES = libutils.la
diff --git a/kxsldbg/Makefile.am b/kxsldbg/Makefile.am
index cd95e4ef..2be49866 100644
--- a/kxsldbg/Makefile.am
+++ b/kxsldbg/Makefile.am
@@ -51,6 +51,7 @@ xsldbg_LDFLAGS = $(all_libraries) $(XSLDBG_EXTRA_LIBS) $(LIB_QT) -lDCOP $(LIB_TD
# set the include path for X, qt and KDE
INCLUDES= $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)
METASOURCES = AUTO
diff --git a/kxsldbg/kxsldbgpart/Makefile.am b/kxsldbg/kxsldbgpart/Makefile.am
index 49df715a..b38d50f6 100644
--- a/kxsldbg/kxsldbgpart/Makefile.am
+++ b/kxsldbg/kxsldbgpart/Makefile.am
@@ -13,7 +13,7 @@ libkxsldbgpart_la_SOURCES = dummy.cpp
SUBDIRS = libqtnotfier libxsldbg
INCLUDES = $(XSLDBG_CFLAGS) -I.. $(all_includes)
-
+CXXFLAGS += $(ICU_CXXFLAGS)
libkxsldbgpart_la_LDFLAGS = -module $(KDE_PLUGIN) -lkatepartinterfaces $(all_libraries) $(XSLDBG_EXTRA_LIBS)-ltdecore -ltdeui $(LIB_QT) -lkjs -ltdefx -ltdeio -ltdeparts -lDCOP
libkxsldbgpart_la_LIBADD = libkxsldbgcommon.la $(LIB_TDEPARTS)
diff --git a/kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am b/kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am
index 82902c19..e55eb875 100644
--- a/kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am
+++ b/kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am
@@ -6,3 +6,4 @@ libqtnotfier_la_METASOURCES = AUTO
libqtnotfier_la_SOURCES = xsldbgthread.cpp xsldbgnotifier.cpp xsldbgevent.cpp xsldbgdebuggerbase.cpp qtnotifier2.cpp
INCLUDES = $(XSLDBG_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/Makefile.am b/kxsldbg/kxsldbgpart/libxsldbg/Makefile.am
index aaea2e53..330df2f7 100644
--- a/kxsldbg/kxsldbgpart/libxsldbg/Makefile.am
+++ b/kxsldbg/kxsldbgpart/libxsldbg/Makefile.am
@@ -8,5 +8,6 @@ libxsldbg_la_LIBADD = $(LIBXSLT_LIBS)
libxsldbg_la_LDFLAGS = $(all_libraries)
AM_CPPFLAGS = -DDOCS_PATH=\"$(DOCS_PATH)\" -I.. $(LIBXSLT_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)
KDE_OPTIONS= nofinal
diff --git a/quanta/parsers/dtd/Makefile.am b/quanta/parsers/dtd/Makefile.am
index 80f647fb..e2ba5659 100644
--- a/quanta/parsers/dtd/Makefile.am
+++ b/quanta/parsers/dtd/Makefile.am
@@ -9,3 +9,4 @@ AM_CPPFLAGS = -I$(top_srcdir)/quanta/parsers \
-I$(top_builddir)/quanta/dialogs \
-I$(top_srcdir)/lib \
$(LIBXML_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)
diff --git a/quanta/treeviews/Makefile.am b/quanta/treeviews/Makefile.am
index c32c617d..11660304 100644
--- a/quanta/treeviews/Makefile.am
+++ b/quanta/treeviews/Makefile.am
@@ -22,3 +22,4 @@ AM_CPPFLAGS = -I$(top_srcdir)/quanta/utility \
-I$(top_builddir)/quanta/components/csseditor \
-I$(top_srcdir)/quanta/plugins \
$(KMDI_INCLUDES) $(CVSSERVICE_INCLUDE) $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(all_includes)
+CXXFLAGS += $(ICU_CXXFLAGS)