diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-05-01 12:52:20 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-05-01 12:52:20 +0200 |
commit | 23f1f6f93256304eab76cd199408b71a649d82a8 (patch) | |
tree | 9351a2970ced4a194229c59365a758f5d21c598c | |
parent | 132a483427c9cb3eb7c6ac3f4df439030382484c (diff) | |
download | tdewebdev-23f1f6f93256304eab76cd199408b71a649d82a8.tar.gz tdewebdev-23f1f6f93256304eab76cd199408b71a649d82a8.zip |
Fix FTBFS with ICU >= 58
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | configure.in.in | 20 | ||||
-rw-r--r-- | klinkstatus/src/utils/Makefile.am | 1 | ||||
-rw-r--r-- | kxsldbg/Makefile.am | 1 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/Makefile.am | 2 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libqtnotfier/Makefile.am | 1 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/Makefile.am | 1 | ||||
-rw-r--r-- | quanta/parsers/dtd/Makefile.am | 1 | ||||
-rw-r--r-- | quanta/treeviews/Makefile.am | 1 |
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) |