View | Details | Raw Unified | Return to bug 244799 | Differences between
and this patch

Collapse All | Expand All

(-)a/net/avahi-app/files/Makefile.am (-43 lines)
Removed Link Here
1
--- Makefile.am.orig	2017-07-10 12:14:59.083371116 +0200
2
+++ Makefile.am	2018-12-22 21:00:37.193294000 +0100
3
@@ -43,6 +43,7 @@
4
 	avahi-gobject.pc.in \
5
 	avahi-qt3.pc.in \
6
 	avahi-qt4.pc.in \
7
+	avahi-qt5.pc.in \
8
 	avahi-sharp.pc.in \
9
 	avahi-ui-sharp.pc.in \
10
 	avahi-compat-libdns_sd.pc.in \
11
@@ -101,7 +102,11 @@
12
 DX_INPUT += \
13
 	$(srcdir)/avahi-qt/qt-watch.h
14
 endif
15
+if HAVE_QT5
16
+DX_INPUT += \
17
+	$(srcdir)/avahi-qt/qt-watch.h
18
 endif
19
+endif
20
 
21
 if HAVE_GLIB
22
 DX_INPUT += \
23
@@ -155,6 +160,8 @@
24
 %.pc: %.pc.in
25
 	$(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \
26
 	    -e 's,@libdir\@,$(libdir),g' \
27
+	    -e 's,@PTHREAD_CFLAGS\@,$(PTHREAD_CFLAGS),g' \
28
+	    -e 's,@PTHREAD_LIBS\@,$(PTHREAD_LIBS),g' \
29
 	    -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \
30
 	    -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
31
 
32
@@ -214,6 +221,11 @@
33
 if HAVE_QT4
34
 pkgconfig_DATA += avahi-qt4.pc
35
 CLEANFILES += avahi-qt4.pc
36
+endif
37
+
38
+if HAVE_QT5
39
+pkgconfig_DATA += avahi-qt5.pc
40
+CLEANFILES += avahi-qt5.pc
41
 endif
42
 
43
 CLEANFILES += avahi.devhelp
(-)a/net/avahi-app/files/acinclude.m4 (-7 lines)
Removed Link Here
1
--- acinclude.m4.orig	2017-07-10 12:14:59.083371116 +0200
2
+++ acinclude.m4	2018-12-22 20:56:34.849629000 +0100
3
@@ -1 +1,2 @@
4
-sinclude(common/doxygen.m4)
5
\ No newline at end of file
6
+sinclude(common/doxygen.m4)
7
+sincldue(common/qt5-pie.m4)
(-)a/net/avahi-app/files/avahi-qt_Makefile.am (-43 lines)
Removed Link Here
1
--- avahi-qt/Makefile.am.orig	2017-07-10 12:14:59.119370306 +0200
2
+++ avahi-qt/Makefile.am	2018-12-22 21:02:56.006641000 +0100
3
@@ -39,7 +39,7 @@
4
 	$(AM_V_GEN)$(MOC_QT3) $^ > $@
5
 
6
 libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) $(VISIBILITY_HIDDEN_CFLAGS)
7
-libavahi_qt3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT3_LIBS)
8
+libavahi_qt3_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT3_LIBS)
9
 libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO)
10
 endif
11
 
12
@@ -61,8 +61,30 @@
13
 	$(AM_V_GEN)$(MOC_QT4) $^ > $@
14
 
15
 libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS)
16
-libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS)
17
+libavahi_qt4_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT4_LIBS)
18
 libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO)
19
+endif
20
+
21
+if HAVE_QT5
22
+
23
+avahiqt5includedir=$(includedir)/avahi-qt5
24
+avahiqt5include_HEADERS = \
25
+	qt-watch.h
26
+
27
+lib_LTLIBRARIES += \
28
+	libavahi-qt5.la
29
+
30
+BUILT_SOURCES += qt-watch.moc5
31
+
32
+libavahi_qt5_la_SOURCES = \
33
+	qt-watch.cpp
34
+
35
+qt-watch.moc5: qt-watch.cpp
36
+	$(AM_V_GEN)$(MOC_QT5) $^ > $@
37
+
38
+libavahi_qt5_la_CPPFLAGS = $(AM_CFLAGS) --std=gnu++11 $(QT5_CFLAGS) -DQT5 $(VISIBILITY_HIDDEN_CFLAGS)
39
+libavahi_qt5_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT5_LIBS)
40
+libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT5_VERSION_INFO)
41
 endif
42
 
43
 CLEANFILES = $(BUILT_SOURCES)
(-)a/net/avahi-app/files/configure.ac (-59 lines)
Removed Link Here
1
--- configure.ac.orig	2018-12-22 21:11:52.861640000 +0100
2
+++ configure.ac	2018-12-22 21:11:58.730593000 +0100
3
@@ -34,6 +34,7 @@
4
 AC_SUBST(LIBAVAHI_GOBJECT_VERSION_INFO, [0:5:0])
5
 AC_SUBST(LIBAVAHI_QT3_VERSION_INFO, [1:2:0])
6
 AC_SUBST(LIBAVAHI_QT4_VERSION_INFO, [1:2:0])
7
+AC_SUBST(LIBAVAHI_QT5_VERSION_INFO, [1:2:0])
8
 AC_SUBST(LIBAVAHI_UI_VERSION_INFO, [1:4:1])
9
 
10
 # Do not touch these, since they we took this version-info from upstream HOWL/Bonjour
11
@@ -526,6 +527,32 @@
12
 AM_CONDITIONAL(HAVE_QT4, test "x$HAVE_QT4" = "xyes")
13
 
14
 #
15
+# Check for Qt 5
16
+#
17
+AC_ARG_ENABLE(qt5,
18
+        AS_HELP_STRING([--disable-qt5],[Disable building of Qt5Core mainloop integration]),
19
+        [case "${enableval}" in
20
+                yes) HAVE_QT5=yes ;;
21
+                no)  HAVE_QT5=no ;;
22
+                *) AC_MSG_ERROR(bad value ${enableval} for --enable-qt5) ;;
23
+        esac],
24
+        [HAVE_QT5=yes])
25
+
26
+if test "x$HAVE_QT5" = "xyes" ; then
27
+        PKG_CHECK_MODULES( QT5, [ Qt5Core >= 5.0.0 ])
28
+        AC_AVAHI_QT_ADD_PIC_IF_NEEDED
29
+        AC_SUBST(QT5_CFLAGS)
30
+        AC_SUBST(QT5_LIBS)
31
+        QT5_PREFIX="`$PKG_CONFIG --variable=host_bins Qt5Core`"
32
+        AC_PATH_PROGS(MOC_QT5, [moc-qt5 moc], no, [$QT5_PREFIX])
33
+        if test "$MOC_QT5" = no; then
34
+            AC_MSG_ERROR([Could not find QT5 moc])
35
+        fi
36
+        AC_SUBST(MOC_QT5)
37
+fi
38
+AM_CONDITIONAL(HAVE_QT5, test "x$HAVE_QT5" = "xyes")
39
+
40
+#
41
 # Check for GTK+ 2.0
42
 #
43
 AC_ARG_ENABLE(gtk,
44
@@ -1158,6 +1185,7 @@
45
     Enable python-dbus:                        ${HAVE_PYTHON_DBUS}
46
     Enable QT3:                                ${HAVE_QT3}
47
     Enable QT4:                                ${HAVE_QT4}
48
+    Enable QT5:                                ${HAVE_QT5}
49
     Enable Mono:                               ${HAVE_MONO}
50
     Enable Monodoc:                            ${HAVE_MONODOC}
51
     Distribution/OS:                           ${with_distro}
52
@@ -1227,6 +1255,7 @@
53
     Building avahi-discover-standalone: ${HAVE_GTK2OR3}
54
     Building libavahi-qt3:              ${HAVE_QT3}
55
     Building libavahi-qt4:              ${HAVE_QT4}
56
+    Building libavahi-qt5:              ${HAVE_QT5}
57
     Building avahi-sharp:               ${HAVE_MONO}
58
     Building avahi-compat-libdns_sd:    ${ENABLE_COMPAT_LIBDNS_SD}
59
     Building avahi-compat-howl:         ${ENABLE_COMPAT_HOWL}
(-)a/net/avahi-app/files/patch-avahi-qt5.pc.in (-14 lines)
Removed Link Here
1
--- avahi-qt5.pc.in.orig	2018-12-22 20:56:34.850121000 +0100
2
+++ avahi-qt5.pc.in	2018-12-22 20:56:34.850280000 +0100
3
@@ -0,0 +1,11 @@
4
+prefix=@prefix@
5
+exec_prefix=${prefix}
6
+libdir=@libdir@
7
+includedir=${prefix}/include
8
+
9
+Name: avahi-qt5
10
+Description: Avahi Multicast DNS Responder (QT5 Support)
11
+Version: @PACKAGE_VERSION@
12
+Requires: Qt5Core >= 5.0.0
13
+Libs: -L${libdir} -lavahi-qt5
14
+Cflags: -D_REENTRANT -I${includedir}
(-)b/net/avahi-app/files/patch-avahi-qt_Makefile.in (-357 / +10 lines)
Lines 1-170 Link Here
1
--- avahi-qt/Makefile.in.orig	2018-12-22 21:39:31.709598000 +0100
1
--- avahi-qt/Makefile.in.orig	2017-09-15 01:20:16 UTC
2
+++ avahi-qt/Makefile.in	2018-12-22 21:41:01.331208000 +0100
2
+++ avahi-qt/Makefile.in
3
@@ -1,7 +1,7 @@
3
@@ -117,7 +117,6 @@ am__installdirs = "$(DESTDIR)$(libdir)" 
4
-# Makefile.in generated by automake 1.15 from Makefile.am.
5
+# Makefile.in generated by automake 1.16.1 from Makefile.am.
6
 # @configure_input@
7
 
8
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
9
+# Copyright (C) 1994-2018 Free Software Foundation, Inc.
10
 
11
 # This Makefile.in is free software; the Free Software Foundation
12
 # gives unlimited permission to copy and/or distribute it,
13
@@ -114,6 +114,10 @@
14
 @HAVE_QT4_TRUE@	libavahi-qt4.la
15
 
16
 @HAVE_QT4_TRUE@am__append_4 = qt-watch.moc4
17
+@HAVE_QT5_TRUE@am__append_5 = \
18
+@HAVE_QT5_TRUE@	libavahi-qt5.la
19
+
20
+@HAVE_QT5_TRUE@am__append_6 = qt-watch.moc5
21
 subdir = avahi-qt
22
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
23
 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \
24
@@ -127,13 +131,14 @@
25
 	$(top_srcdir)/common/ltversion.m4 \
26
 	$(top_srcdir)/common/lt~obsolete.m4 \
27
 	$(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \
28
-	$(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \
29
-	$(top_srcdir)/configure.ac
30
+	$(top_srcdir)/common/qt5-pie.m4 $(top_srcdir)/acinclude.m4 \
31
+	$(top_srcdir)/common/doxygen.m4 $(top_srcdir)/configure.ac
32
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
33
 	$(ACLOCAL_M4)
34
 DIST_COMMON = $(srcdir)/Makefile.am \
35
 	$(am__avahiqt3include_HEADERS_DIST) \
36
-	$(am__avahiqt4include_HEADERS_DIST) $(am__DIST_COMMON)
37
+	$(am__avahiqt4include_HEADERS_DIST) \
38
+	$(am__avahiqt5include_HEADERS_DIST) $(am__DIST_COMMON)
39
 mkinstalldirs = $(install_sh) -d
40
 CONFIG_HEADER = $(top_builddir)/config.h
41
 CONFIG_CLEAN_FILES =
42
@@ -167,12 +172,11 @@
43
   }
44
 am__installdirs = "$(DESTDIR)$(libdir)" \
45
 	"$(DESTDIR)$(avahiqt3includedir)" \
46
-	"$(DESTDIR)$(avahiqt4includedir)"
47
+	"$(DESTDIR)$(avahiqt4includedir)" \
48
+	"$(DESTDIR)$(avahiqt5includedir)"
49
 LTLIBRARIES = $(lib_LTLIBRARIES)
4
 LTLIBRARIES = $(lib_LTLIBRARIES)
50
 am__DEPENDENCIES_1 =
5
 am__DEPENDENCIES_1 =
51
-@HAVE_QT3_TRUE@libavahi_qt3_la_DEPENDENCIES =  \
6
 @HAVE_QT3_TRUE@libavahi_qt3_la_DEPENDENCIES =  \
52
-@HAVE_QT3_TRUE@	../avahi-common/libavahi-common.la \
7
-@HAVE_QT3_TRUE@	../avahi-common/libavahi-common.la \
53
-@HAVE_QT3_TRUE@	$(am__DEPENDENCIES_1)
8
 @HAVE_QT3_TRUE@	$(am__DEPENDENCIES_1)
54
+@HAVE_QT3_TRUE@libavahi_qt3_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
55
 am__libavahi_qt3_la_SOURCES_DIST = qt-watch.cpp
9
 am__libavahi_qt3_la_SOURCES_DIST = qt-watch.cpp
56
 @HAVE_QT3_TRUE@am_libavahi_qt3_la_OBJECTS =  \
10
 @HAVE_QT3_TRUE@am_libavahi_qt3_la_OBJECTS =  \
57
 @HAVE_QT3_TRUE@	libavahi_qt3_la-qt-watch.lo
11
@@ -132,7 +131,6 @@ libavahi_qt3_la_LINK = $(LIBTOOL) $(AM_V
58
@@ -186,9 +190,7 @@
59
 	$(AM_CXXFLAGS) $(CXXFLAGS) $(libavahi_qt3_la_LDFLAGS) \
60
 	$(LDFLAGS) -o $@
12
 	$(LDFLAGS) -o $@
61
 @HAVE_QT3_TRUE@am_libavahi_qt3_la_rpath = -rpath $(libdir)
13
 @HAVE_QT3_TRUE@am_libavahi_qt3_la_rpath = -rpath $(libdir)
62
-@HAVE_QT4_TRUE@libavahi_qt4_la_DEPENDENCIES =  \
14
 @HAVE_QT4_TRUE@libavahi_qt4_la_DEPENDENCIES =  \
63
-@HAVE_QT4_TRUE@	../avahi-common/libavahi-common.la \
15
-@HAVE_QT4_TRUE@	../avahi-common/libavahi-common.la \
64
-@HAVE_QT4_TRUE@	$(am__DEPENDENCIES_1)
16
 @HAVE_QT4_TRUE@	$(am__DEPENDENCIES_1)
65
+@HAVE_QT4_TRUE@libavahi_qt4_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
66
 am__libavahi_qt4_la_SOURCES_DIST = qt-watch.cpp
17
 am__libavahi_qt4_la_SOURCES_DIST = qt-watch.cpp
67
 @HAVE_QT4_TRUE@am_libavahi_qt4_la_OBJECTS =  \
18
 @HAVE_QT4_TRUE@am_libavahi_qt4_la_OBJECTS =  \
68
 @HAVE_QT4_TRUE@	libavahi_qt4_la-qt-watch.lo
19
@@ -433,7 +431,7 @@ BUILT_SOURCES = $(am__append_2) $(am__ap
69
@@ -198,6 +200,16 @@
70
 	$(AM_CXXFLAGS) $(CXXFLAGS) $(libavahi_qt4_la_LDFLAGS) \
71
 	$(LDFLAGS) -o $@
72
 @HAVE_QT4_TRUE@am_libavahi_qt4_la_rpath = -rpath $(libdir)
73
+@HAVE_QT5_TRUE@libavahi_qt5_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
74
+am__libavahi_qt5_la_SOURCES_DIST = qt-watch.cpp
75
+@HAVE_QT5_TRUE@am_libavahi_qt5_la_OBJECTS =  \
76
+@HAVE_QT5_TRUE@	libavahi_qt5_la-qt-watch.lo
77
+libavahi_qt5_la_OBJECTS = $(am_libavahi_qt5_la_OBJECTS)
78
+libavahi_qt5_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
79
+	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
80
+	$(AM_CXXFLAGS) $(CXXFLAGS) $(libavahi_qt5_la_LDFLAGS) \
81
+	$(LDFLAGS) -o $@
82
+@HAVE_QT5_TRUE@am_libavahi_qt5_la_rpath = -rpath $(libdir)
83
 AM_V_P = $(am__v_P_@AM_V@)
84
 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
85
 am__v_P_0 = false
86
@@ -212,7 +224,10 @@
87
 am__v_at_1 = 
88
 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
89
 depcomp = $(SHELL) $(top_srcdir)/depcomp
90
-am__depfiles_maybe = depfiles
91
+am__maybe_remake_depfiles = depfiles
92
+am__depfiles_remade = ./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo \
93
+	./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo \
94
+	./$(DEPDIR)/libavahi_qt5_la-qt-watch.Plo
95
 am__mv = mv -f
96
 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
97
 	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
98
@@ -232,9 +247,11 @@
99
 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
100
 am__v_CXXLD_0 = @echo "  CXXLD   " $@;
101
 am__v_CXXLD_1 = 
102
-SOURCES = $(libavahi_qt3_la_SOURCES) $(libavahi_qt4_la_SOURCES)
103
+SOURCES = $(libavahi_qt3_la_SOURCES) $(libavahi_qt4_la_SOURCES) \
104
+	$(libavahi_qt5_la_SOURCES)
105
 DIST_SOURCES = $(am__libavahi_qt3_la_SOURCES_DIST) \
106
-	$(am__libavahi_qt4_la_SOURCES_DIST)
107
+	$(am__libavahi_qt4_la_SOURCES_DIST) \
108
+	$(am__libavahi_qt5_la_SOURCES_DIST)
109
 am__can_run_installinfo = \
110
   case $$AM_UPDATE_INFO_DIR in \
111
     n|no|NO) false;; \
112
@@ -242,7 +259,9 @@
113
   esac
114
 am__avahiqt3include_HEADERS_DIST = qt-watch.h
115
 am__avahiqt4include_HEADERS_DIST = qt-watch.h
116
-HEADERS = $(avahiqt3include_HEADERS) $(avahiqt4include_HEADERS)
117
+am__avahiqt5include_HEADERS_DIST = qt-watch.h
118
+HEADERS = $(avahiqt3include_HEADERS) $(avahiqt4include_HEADERS) \
119
+	$(avahiqt5include_HEADERS)
120
 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
121
 # Read a list of newline-separated strings from the standard input,
122
 # and print each of them once, without duplicates.  Input order is
123
@@ -379,6 +398,7 @@
124
 LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@
125
 LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@
126
 LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@
127
+LIBAVAHI_QT5_VERSION_INFO = @LIBAVAHI_QT5_VERSION_INFO@
128
 LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@
129
 LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@
130
 LIBDAEMON_LIBS = @LIBDAEMON_LIBS@
131
@@ -397,6 +417,7 @@
132
 MKINSTALLDIRS = @MKINSTALLDIRS@
133
 MOC_QT3 = @MOC_QT3@
134
 MOC_QT4 = @MOC_QT4@
135
+MOC_QT5 = @MOC_QT5@
136
 MONODOCER = @MONODOCER@
137
 MONODOC_CFLAGS = @MONODOC_CFLAGS@
138
 MONODOC_DIR = @MONODOC_DIR@
139
@@ -439,6 +460,8 @@
140
 QT3_LIBS = @QT3_LIBS@
141
 QT4_CFLAGS = @QT4_CFLAGS@
142
 QT4_LIBS = @QT4_LIBS@
143
+QT5_CFLAGS = @QT5_CFLAGS@
144
+QT5_LIBS = @QT5_LIBS@
145
 RANLIB = @RANLIB@
146
 SED = @SED@
147
 SET_MAKE = @SET_MAKE@
148
@@ -509,7 +532,6 @@
149
 psdir = @psdir@
150
 pyexecdir = @pyexecdir@
151
 pythondir = @pythondir@
152
-runstatedir = @runstatedir@
153
 sbindir = @sbindir@
154
 sharedstatedir = @sharedstatedir@
155
 srcdir = @srcdir@
156
@@ -520,8 +542,8 @@
157
 top_builddir = @top_builddir@
158
 top_srcdir = @top_srcdir@
159
 AM_CFLAGS = -I$(top_srcdir)
160
-lib_LTLIBRARIES = $(am__append_1) $(am__append_3)
161
-BUILT_SOURCES = $(am__append_2) $(am__append_4)
162
+lib_LTLIBRARIES = $(am__append_1) $(am__append_3) $(am__append_5)
163
+BUILT_SOURCES = $(am__append_2) $(am__append_4) $(am__append_6)
164
 @HAVE_QT3_TRUE@avahiqt3includedir = $(includedir)/avahi-qt3
165
 @HAVE_QT3_TRUE@avahiqt3include_HEADERS = \
166
 @HAVE_QT3_TRUE@	qt-watch.h
167
@@ -530,7 +552,7 @@
168
 @HAVE_QT3_TRUE@	qt-watch.cpp
20
 @HAVE_QT3_TRUE@	qt-watch.cpp
169
 
21
 
170
 @HAVE_QT3_TRUE@libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) $(VISIBILITY_HIDDEN_CFLAGS)
22
 @HAVE_QT3_TRUE@libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) $(VISIBILITY_HIDDEN_CFLAGS)
Lines 173-383 Link Here
173
 @HAVE_QT3_TRUE@libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO)
25
 @HAVE_QT3_TRUE@libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO)
174
 @HAVE_QT4_TRUE@avahiqt4includedir = $(includedir)/avahi-qt4
26
 @HAVE_QT4_TRUE@avahiqt4includedir = $(includedir)/avahi-qt4
175
 @HAVE_QT4_TRUE@avahiqt4include_HEADERS = \
27
 @HAVE_QT4_TRUE@avahiqt4include_HEADERS = \
176
@@ -540,8 +562,18 @@
28
@@ -443,7 +441,7 @@ BUILT_SOURCES = $(am__append_2) $(am__ap
177
 @HAVE_QT4_TRUE@	qt-watch.cpp
29
 @HAVE_QT4_TRUE@	qt-watch.cpp
178
 
30
 
179
 @HAVE_QT4_TRUE@libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS)
31
 @HAVE_QT4_TRUE@libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS)
180
-@HAVE_QT4_TRUE@libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS)
32
-@HAVE_QT4_TRUE@libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS)
181
+@HAVE_QT4_TRUE@libavahi_qt4_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT4_LIBS)
33
+@HAVE_QT4_TRUE@libavahi_qt4_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT4_LIBS)
182
 @HAVE_QT4_TRUE@libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO)
34
 @HAVE_QT4_TRUE@libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO)
183
+@HAVE_QT5_TRUE@avahiqt5includedir = $(includedir)/avahi-qt5
184
+@HAVE_QT5_TRUE@avahiqt5include_HEADERS = \
185
+@HAVE_QT5_TRUE@	qt-watch.h
186
+
187
+@HAVE_QT5_TRUE@libavahi_qt5_la_SOURCES = \
188
+@HAVE_QT5_TRUE@	qt-watch.cpp
189
+
190
+@HAVE_QT5_TRUE@libavahi_qt5_la_CPPFLAGS = $(AM_CFLAGS) --std=gnu++11 $(QT5_CFLAGS) -DQT5 $(VISIBILITY_HIDDEN_CFLAGS)
191
+@HAVE_QT5_TRUE@libavahi_qt5_la_LIBADD = $(AM_LDADD) -lavahi-common $(QT5_LIBS)
192
+@HAVE_QT5_TRUE@libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT5_VERSION_INFO)
193
 CLEANFILES = $(BUILT_SOURCES)
35
 CLEANFILES = $(BUILT_SOURCES)
194
 all: $(BUILT_SOURCES)
36
 all: $(BUILT_SOURCES)
195
 	$(MAKE) $(AM_MAKEFLAGS) all-am
196
@@ -565,8 +597,8 @@
197
 	  *config.status*) \
198
 	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
199
 	  *) \
200
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
201
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
202
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
203
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
204
 	esac;
205
 
206
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
207
@@ -619,15 +651,25 @@
208
 libavahi-qt4.la: $(libavahi_qt4_la_OBJECTS) $(libavahi_qt4_la_DEPENDENCIES) $(EXTRA_libavahi_qt4_la_DEPENDENCIES) 
209
 	$(AM_V_CXXLD)$(libavahi_qt4_la_LINK) $(am_libavahi_qt4_la_rpath) $(libavahi_qt4_la_OBJECTS) $(libavahi_qt4_la_LIBADD) $(LIBS)
210
 
211
+libavahi-qt5.la: $(libavahi_qt5_la_OBJECTS) $(libavahi_qt5_la_DEPENDENCIES) $(EXTRA_libavahi_qt5_la_DEPENDENCIES) 
212
+	$(AM_V_CXXLD)$(libavahi_qt5_la_LINK) $(am_libavahi_qt5_la_rpath) $(libavahi_qt5_la_OBJECTS) $(libavahi_qt5_la_LIBADD) $(LIBS)
213
+
214
 mostlyclean-compile:
215
 	-rm -f *.$(OBJEXT)
216
 
217
 distclean-compile:
218
 	-rm -f *.tab.c
219
 
220
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo@am__quote@
221
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo@am__quote@
222
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo@am__quote@ # am--include-marker
223
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo@am__quote@ # am--include-marker
224
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt5_la-qt-watch.Plo@am__quote@ # am--include-marker
225
 
226
+$(am__depfiles_remade):
227
+	@$(MKDIR_P) $(@D)
228
+	@echo '# dummy' >$@-t && $(am__mv) $@-t $@
229
+
230
+am--depfiles: $(am__depfiles_remade)
231
+
232
 .cpp.o:
233
 @am__fastdepCXX_TRUE@	$(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
234
 @am__fastdepCXX_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
235
@@ -663,6 +705,13 @@
236
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
237
 @am__fastdepCXX_FALSE@	$(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt4_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libavahi_qt4_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp
238
 
239
+libavahi_qt5_la-qt-watch.lo: qt-watch.cpp
240
+@am__fastdepCXX_TRUE@	$(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt5_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libavahi_qt5_la-qt-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_qt5_la-qt-watch.Tpo -c -o libavahi_qt5_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp
241
+@am__fastdepCXX_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_qt5_la-qt-watch.Tpo $(DEPDIR)/libavahi_qt5_la-qt-watch.Plo
242
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(AM_V_CXX)source='qt-watch.cpp' object='libavahi_qt5_la-qt-watch.lo' libtool=yes @AMDEPBACKSLASH@
243
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
244
+@am__fastdepCXX_FALSE@	$(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt5_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libavahi_qt5_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp
245
+
246
 mostlyclean-libtool:
247
 	-rm -f *.lo
248
 
249
@@ -710,7 +759,28 @@
250
 	@list='$(avahiqt4include_HEADERS)'; test -n "$(avahiqt4includedir)" || list=; \
251
 	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
252
 	dir='$(DESTDIR)$(avahiqt4includedir)'; $(am__uninstall_files_from_dir)
253
+install-avahiqt5includeHEADERS: $(avahiqt5include_HEADERS)
254
+	@$(NORMAL_INSTALL)
255
+	@list='$(avahiqt5include_HEADERS)'; test -n "$(avahiqt5includedir)" || list=; \
256
+	if test -n "$$list"; then \
257
+	  echo " $(MKDIR_P) '$(DESTDIR)$(avahiqt5includedir)'"; \
258
+	  $(MKDIR_P) "$(DESTDIR)$(avahiqt5includedir)" || exit 1; \
259
+	fi; \
260
+	for p in $$list; do \
261
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
262
+	  echo "$$d$$p"; \
263
+	done | $(am__base_list) | \
264
+	while read files; do \
265
+	  echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiqt5includedir)'"; \
266
+	  $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiqt5includedir)" || exit $$?; \
267
+	done
268
 
269
+uninstall-avahiqt5includeHEADERS:
270
+	@$(NORMAL_UNINSTALL)
271
+	@list='$(avahiqt5include_HEADERS)'; test -n "$(avahiqt5includedir)" || list=; \
272
+	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
273
+	dir='$(DESTDIR)$(avahiqt5includedir)'; $(am__uninstall_files_from_dir)
274
+
275
 ID: $(am__tagged_files)
276
 	$(am__define_uniq_tagged_files); mkid -fID $$unique
277
 tags: tags-am
278
@@ -763,7 +833,10 @@
279
 distclean-tags:
280
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
281
 
282
-distdir: $(DISTFILES)
283
+distdir: $(BUILT_SOURCES)
284
+	$(MAKE) $(AM_MAKEFLAGS) distdir-am
285
+
286
+distdir-am: $(DISTFILES)
287
 	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
288
 	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
289
 	list='$(DISTFILES)'; \
290
@@ -798,7 +871,7 @@
291
 	$(MAKE) $(AM_MAKEFLAGS) check-am
292
 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
293
 installdirs:
294
-	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiqt3includedir)" "$(DESTDIR)$(avahiqt4includedir)"; do \
295
+	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiqt3includedir)" "$(DESTDIR)$(avahiqt4includedir)" "$(DESTDIR)$(avahiqt5includedir)"; do \
296
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
297
 	done
298
 install: $(BUILT_SOURCES)
299
@@ -840,7 +913,9 @@
300
 	mostlyclean-am
301
 
302
 distclean: distclean-am
303
-	-rm -rf ./$(DEPDIR)
304
+		-rm -f ./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo
305
+	-rm -f ./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo
306
+	-rm -f ./$(DEPDIR)/libavahi_qt5_la-qt-watch.Plo
307
 	-rm -f Makefile
308
 distclean-am: clean-am distclean-compile distclean-generic \
309
 	distclean-tags
310
@@ -858,7 +933,7 @@
311
 info-am:
312
 
313
 install-data-am: install-avahiqt3includeHEADERS \
314
-	install-avahiqt4includeHEADERS
315
+	install-avahiqt4includeHEADERS install-avahiqt5includeHEADERS
316
 
317
 install-dvi: install-dvi-am
318
 
319
@@ -887,7 +962,9 @@
320
 installcheck-am:
321
 
322
 maintainer-clean: maintainer-clean-am
323
-	-rm -rf ./$(DEPDIR)
324
+		-rm -f ./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo
325
+	-rm -f ./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo
326
+	-rm -f ./$(DEPDIR)/libavahi_qt5_la-qt-watch.Plo
327
 	-rm -f Makefile
328
 maintainer-clean-am: distclean-am maintainer-clean-generic
329
 
330
@@ -905,26 +982,29 @@
331
 ps-am:
332
 
333
 uninstall-am: uninstall-avahiqt3includeHEADERS \
334
-	uninstall-avahiqt4includeHEADERS uninstall-libLTLIBRARIES
335
+	uninstall-avahiqt4includeHEADERS \
336
+	uninstall-avahiqt5includeHEADERS uninstall-libLTLIBRARIES
337
 
338
 .MAKE: all check install install-am install-strip
339
 
340
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
341
-	clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
342
-	ctags-am distclean distclean-compile distclean-generic \
343
+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
344
+	clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \
345
+	ctags ctags-am distclean distclean-compile distclean-generic \
346
 	distclean-libtool distclean-tags distdir dvi dvi-am html \
347
 	html-am info info-am install install-am \
348
 	install-avahiqt3includeHEADERS install-avahiqt4includeHEADERS \
349
-	install-data install-data-am install-dvi install-dvi-am \
350
-	install-exec install-exec-am install-html install-html-am \
351
-	install-info install-info-am install-libLTLIBRARIES \
352
-	install-man install-pdf install-pdf-am install-ps \
353
-	install-ps-am install-strip installcheck installcheck-am \
354
-	installdirs maintainer-clean maintainer-clean-generic \
355
-	mostlyclean mostlyclean-compile mostlyclean-generic \
356
-	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
357
-	uninstall-am uninstall-avahiqt3includeHEADERS \
358
-	uninstall-avahiqt4includeHEADERS uninstall-libLTLIBRARIES
359
+	install-avahiqt5includeHEADERS install-data install-data-am \
360
+	install-dvi install-dvi-am install-exec install-exec-am \
361
+	install-html install-html-am install-info install-info-am \
362
+	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
363
+	install-ps install-ps-am install-strip installcheck \
364
+	installcheck-am installdirs maintainer-clean \
365
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
366
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
367
+	tags tags-am uninstall uninstall-am \
368
+	uninstall-avahiqt3includeHEADERS \
369
+	uninstall-avahiqt4includeHEADERS \
370
+	uninstall-avahiqt5includeHEADERS uninstall-libLTLIBRARIES
371
 
372
 .PRECIOUS: Makefile
373
 
374
@@ -934,6 +1014,9 @@
375
 
376
 @HAVE_QT4_TRUE@qt-watch.moc4: qt-watch.cpp
377
 @HAVE_QT4_TRUE@	$(AM_V_GEN)$(MOC_QT4) $^ > $@
378
+
379
+@HAVE_QT5_TRUE@qt-watch.moc5: qt-watch.cpp
380
+@HAVE_QT5_TRUE@	$(AM_V_GEN)$(MOC_QT5) $^ > $@
381
 
382
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
383
 # Otherwise a system limit (for SysV at least) may be exceeded.
(-)a/net/avahi-app/files/patch-avahi-qt_qt-watch.cpp (-48 lines)
Removed Link Here
1
--- avahi-qt/qt-watch.cpp.orig	2017-07-10 12:14:59.119370306 +0200
2
+++ avahi-qt/qt-watch.cpp	2018-12-22 20:56:34.850048000 +0100
3
@@ -18,10 +18,10 @@
4
 ***/
5
 
6
 #include <sys/time.h>
7
-#ifdef QT4
8
-#include <Qt/qsocketnotifier.h>
9
-#include <Qt/qobject.h>
10
-#include <Qt/qtimer.h>
11
+#if defined(QT5) || defined(QT4)
12
+#include <QSocketNotifier>
13
+#include <QObject>
14
+#include <QTimer>
15
 #else
16
 #include <qsocketnotifier.h>
17
 #include <qobject.h>
18
@@ -114,7 +114,7 @@
19
     m_callback(callback), m_userdata(userdata)
20
 {
21
     connect(&m_timer, SIGNAL(timeout()), this, SLOT(timeout()));
22
-#ifdef QT4
23
+#if defined(QT5) || defined(QT4)
24
     m_timer.setSingleShot(true);
25
 #endif
26
     update(tv);
27
@@ -125,7 +125,7 @@
28
     m_timer.stop();
29
     if (tv) {
30
     AvahiUsec u = avahi_age(tv)/1000;
31
-#ifdef QT4
32
+#if defined(QT5) || defined(QT4)
33
     m_timer.start( (u>0) ? 0 : -u);
34
 #else
35
     m_timer.start( (u>0) ? 0 : -u,true);
36
@@ -191,8 +191,10 @@
37
     return &qt_poll;
38
 }
39
 
40
-#ifdef QT4
41
+#if defined(QT5)
42
+#include "qt-watch.moc5"
43
+#elif defined(QT4)
44
 #include "qt-watch.moc4"
45
-#else
46
+#elif defined(QT3)
47
 #include "qt-watch.moc3"
48
 #endif
(-)a/net/avahi-app/files/patch-common_qt5-pie.m4 (-30 lines)
Removed Link Here
1
--- common/qt5-pie.m4.orig	2018-12-22 20:56:34.850352000 +0100
2
+++ common/qt5-pie.m4	2018-12-22 20:56:34.850515000 +0100
3
@@ -0,0 +1,27 @@
4
+AC_DEFUN([AC_AVAHI_QT_ADD_PIC_IF_NEEDED],
5
+[
6
+    AC_LANG_PUSH([C++])
7
+	save_CPPFLAGS="$CPPFLAGS"
8
+	CPPFLAGS="$CPPFLAGS $QT5_CFLAGS"
9
+	AC_MSG_CHECKING([whether Qt works without -fPIC])
10
+	AC_PREPROC_IFELSE(
11
+		[AC_LANG_SOURCE([[#include <QtCore>]])],
12
+		[AC_MSG_RESULT(yes)],
13
+		[
14
+			AC_MSG_RESULT(no)
15
+			AC_MSG_CHECKING([whether Qt works with -fPIC])
16
+			CPPFLAGS="$CPPFLAGS -fPIC"
17
+			AC_PREPROC_IFELSE(
18
+				[AC_LANG_SOURCE([[#include <QtCore>]])],
19
+				[
20
+					AC_MSG_RESULT(yes)
21
+					QT5_CFLAGS="$QT5_CFLAGS -fPIC"
22
+				],
23
+				[
24
+					AC_MSG_RESULT(no)
25
+					AC_MSG_ERROR(Couldn't compile Qt without -fPIC nor with -fPIC)
26
+				])
27
+		])
28
+	CPPFLAGS="$save_CPPFLAGS"
29
+    AC_LANG_POP([C++])
30
+])
(-)b/net/avahi-app/files/patch-configure (-324 / +18 lines)
Lines 1-324 Link Here
1
--- configure.orig	2018-12-22 21:11:56.328592000 +0100
1
--- configure.orig	2012-02-14 22:36:33 UTC
2
+++ configure	2018-12-22 21:12:12.121977000 +0100
2
+++ configure
3
@@ -763,6 +763,11 @@
3
@@ -16895,6 +16895,7 @@ $as_echo_n "checking whether to check fo
4
 HAVE_GTK_TRUE
4
    check_inconsistencies=yes
5
 GTK20_LIBS
5
    case "${host_cpu}-${host_os}" in
6
 GTK20_CFLAGS
6
      *-darwin*) check_inconsistencies=no ;;
7
+HAVE_QT5_FALSE
7
+     *-freebsd*) check_inconsistencies=no ;;
8
+HAVE_QT5_TRUE
8
    esac
9
+MOC_QT5
9
    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
10
+QT5_LIBS
10
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11
+QT5_CFLAGS
11
@@ -18460,6 +18461,7 @@ else
12
 HAVE_QT4_FALSE
12
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13
 HAVE_QT4_TRUE
13
 /* end confdefs.h.  */
14
 MOC_QT4
14
 $ac_includes_default
15
@@ -948,6 +953,7 @@
15
+#include <sys/socket.h>
16
 LIBAVAHI_COMPAT_HOWL_VERSION_INFO
16
 int
17
 LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO
17
 main ()
18
 LIBAVAHI_UI_VERSION_INFO
18
 {
19
+LIBAVAHI_QT5_VERSION_INFO
20
 LIBAVAHI_QT4_VERSION_INFO
21
 LIBAVAHI_QT3_VERSION_INFO
22
 LIBAVAHI_GOBJECT_VERSION_INFO
23
@@ -1042,6 +1048,7 @@
24
 enable_introspection
25
 enable_qt3
26
 enable_qt4
27
+enable_qt5
28
 enable_gtk
29
 enable_gtk3
30
 enable_dbus
31
@@ -1105,6 +1112,8 @@
32
 QT3_LIBS
33
 QT4_CFLAGS
34
 QT4_LIBS
35
+QT5_CFLAGS
36
+QT5_LIBS
37
 GTK20_CFLAGS
38
 GTK20_LIBS
39
 GTK30_CFLAGS
40
@@ -1757,6 +1766,7 @@
41
                           Enable introspection for this build
42
   --disable-qt3           Disable building of Qt3 mainloop integration
43
   --disable-qt4           Disable building of Qt4Core mainloop integration
44
+  --disable-qt5           Disable building of Qt5Core mainloop integration
45
   --disable-gtk           Disable use of GTK+ 2
46
   --disable-gtk3          Disable use of GTK+ 3
47
   --disable-dbus          Disable use of D-Bus
48
@@ -1854,6 +1864,8 @@
49
   QT3_LIBS    linker flags for QT3, overriding pkg-config
50
   QT4_CFLAGS  C compiler flags for QT4, overriding pkg-config
51
   QT4_LIBS    linker flags for QT4, overriding pkg-config
52
+  QT5_CFLAGS  C compiler flags for QT5, overriding pkg-config
53
+  QT5_LIBS    linker flags for QT5, overriding pkg-config
54
   GTK20_CFLAGS
55
               C compiler flags for GTK20, overriding pkg-config
56
   GTK20_LIBS  linker flags for GTK20, overriding pkg-config
57
@@ -3597,6 +3609,8 @@
58
 
59
 LIBAVAHI_QT4_VERSION_INFO=1:2:0
60
 
61
+LIBAVAHI_QT5_VERSION_INFO=1:2:0
62
+
63
 LIBAVAHI_UI_VERSION_INFO=1:4:1
64
 
65
 
66
@@ -21586,6 +21600,231 @@
67
 
68
 
69
 #
70
+# Check for Qt 5
71
+#
72
+# Check whether --enable-qt5 was given.
73
+if test "${enable_qt5+set}" = set; then :
74
+  enableval=$enable_qt5; case "${enableval}" in
75
+                yes) HAVE_QT5=yes ;;
76
+                no)  HAVE_QT5=no ;;
77
+                *) as_fn_error $? "bad value ${enableval} for --enable-qt5" "$LINENO" 5 ;;
78
+        esac
79
+else
80
+  HAVE_QT5=yes
81
+fi
82
+
83
+
84
+if test "x$HAVE_QT5" = "xyes" ; then
85
+
86
+pkg_failed=no
87
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
88
+$as_echo_n "checking for QT5... " >&6; }
89
+
90
+if test -n "$QT5_CFLAGS"; then
91
+    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
92
+ elif test -n "$PKG_CONFIG"; then
93
+    if test -n "$PKG_CONFIG" && \
94
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core >= 5.0.0 \""; } >&5
95
+  ($PKG_CONFIG --exists --print-errors " Qt5Core >= 5.0.0 ") 2>&5
96
+  ac_status=$?
97
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98
+  test $ac_status = 0; }; then
99
+  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core >= 5.0.0 " 2>/dev/null`
100
+		      test "x$?" != "x0" && pkg_failed=yes
101
+else
102
+  pkg_failed=yes
103
+fi
104
+ else
105
+    pkg_failed=untried
106
+fi
107
+if test -n "$QT5_LIBS"; then
108
+    pkg_cv_QT5_LIBS="$QT5_LIBS"
109
+ elif test -n "$PKG_CONFIG"; then
110
+    if test -n "$PKG_CONFIG" && \
111
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core >= 5.0.0 \""; } >&5
112
+  ($PKG_CONFIG --exists --print-errors " Qt5Core >= 5.0.0 ") 2>&5
113
+  ac_status=$?
114
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
115
+  test $ac_status = 0; }; then
116
+  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core >= 5.0.0 " 2>/dev/null`
117
+		      test "x$?" != "x0" && pkg_failed=yes
118
+else
119
+  pkg_failed=yes
120
+fi
121
+ else
122
+    pkg_failed=untried
123
+fi
124
+
125
+
126
+
127
+if test $pkg_failed = yes; then
128
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
129
+$as_echo "no" >&6; }
130
+
131
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
132
+        _pkg_short_errors_supported=yes
133
+else
134
+        _pkg_short_errors_supported=no
135
+fi
136
+        if test $_pkg_short_errors_supported = yes; then
137
+	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core >= 5.0.0 " 2>&1`
138
+        else
139
+	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core >= 5.0.0 " 2>&1`
140
+        fi
141
+	# Put the nasty error message in config.log where it belongs
142
+	echo "$QT5_PKG_ERRORS" >&5
143
+
144
+	as_fn_error $? "Package requirements ( Qt5Core >= 5.0.0 ) were not met:
145
+
146
+$QT5_PKG_ERRORS
147
+
148
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
149
+installed software in a non-standard prefix.
150
+
151
+Alternatively, you may set the environment variables QT5_CFLAGS
152
+and QT5_LIBS to avoid the need to call pkg-config.
153
+See the pkg-config man page for more details." "$LINENO" 5
154
+elif test $pkg_failed = untried; then
155
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
156
+$as_echo "no" >&6; }
157
+	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
158
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
159
+as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
160
+is in your PATH or set the PKG_CONFIG environment variable to the full
161
+path to pkg-config.
162
+
163
+Alternatively, you may set the environment variables QT5_CFLAGS
164
+and QT5_LIBS to avoid the need to call pkg-config.
165
+See the pkg-config man page for more details.
166
+
167
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
168
+See \`config.log' for more details" "$LINENO" 5; }
169
+else
170
+	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
171
+	QT5_LIBS=$pkg_cv_QT5_LIBS
172
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
173
+$as_echo "yes" >&6; }
174
+
175
+fi
176
+
177
+
178
+    ac_ext=cpp
179
+ac_cpp='$CXXCPP $CPPFLAGS'
180
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
181
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
182
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
183
+
184
+	save_CPPFLAGS="$CPPFLAGS"
185
+	CPPFLAGS="$CPPFLAGS $QT5_CFLAGS"
186
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt works without -fPIC" >&5
187
+$as_echo_n "checking whether Qt works without -fPIC... " >&6; }
188
+	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
189
+/* end confdefs.h.  */
190
+#include <QtCore>
191
+_ACEOF
192
+if ac_fn_cxx_try_cpp "$LINENO"; then :
193
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
194
+$as_echo "yes" >&6; }
195
+else
196
+
197
+			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
198
+$as_echo "no" >&6; }
199
+			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt works with -fPIC" >&5
200
+$as_echo_n "checking whether Qt works with -fPIC... " >&6; }
201
+			CPPFLAGS="$CPPFLAGS -fPIC"
202
+			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
203
+/* end confdefs.h.  */
204
+#include <QtCore>
205
+_ACEOF
206
+if ac_fn_cxx_try_cpp "$LINENO"; then :
207
+
208
+					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
209
+$as_echo "yes" >&6; }
210
+					QT5_CFLAGS="$QT5_CFLAGS -fPIC"
211
+
212
+else
213
+
214
+					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
215
+$as_echo "no" >&6; }
216
+					as_fn_error $? "Couldn't compile Qt without -fPIC nor with -fPIC" "$LINENO" 5
217
+
218
+fi
219
+rm -f conftest.err conftest.i conftest.$ac_ext
220
+
221
+fi
222
+rm -f conftest.err conftest.i conftest.$ac_ext
223
+	CPPFLAGS="$save_CPPFLAGS"
224
+    ac_ext=c
225
+ac_cpp='$CPP $CPPFLAGS'
226
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
227
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
228
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
229
+
230
+
231
+
232
+
233
+        QT5_PREFIX="`$PKG_CONFIG --variable=host_bins Qt5Core`"
234
+        for ac_prog in moc-qt5 moc
235
+do
236
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
237
+set dummy $ac_prog; ac_word=$2
238
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
239
+$as_echo_n "checking for $ac_word... " >&6; }
240
+if ${ac_cv_path_MOC_QT5+:} false; then :
241
+  $as_echo_n "(cached) " >&6
242
+else
243
+  case $MOC_QT5 in
244
+  [\\/]* | ?:[\\/]*)
245
+  ac_cv_path_MOC_QT5="$MOC_QT5" # Let the user override the test with a path.
246
+  ;;
247
+  *)
248
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
249
+for as_dir in $QT5_PREFIX
250
+do
251
+  IFS=$as_save_IFS
252
+  test -z "$as_dir" && as_dir=.
253
+    for ac_exec_ext in '' $ac_executable_extensions; do
254
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
255
+    ac_cv_path_MOC_QT5="$as_dir/$ac_word$ac_exec_ext"
256
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
257
+    break 2
258
+  fi
259
+done
260
+  done
261
+IFS=$as_save_IFS
262
+
263
+  ;;
264
+esac
265
+fi
266
+MOC_QT5=$ac_cv_path_MOC_QT5
267
+if test -n "$MOC_QT5"; then
268
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT5" >&5
269
+$as_echo "$MOC_QT5" >&6; }
270
+else
271
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
272
+$as_echo "no" >&6; }
273
+fi
274
+
275
+
276
+  test -n "$MOC_QT5" && break
277
+done
278
+test -n "$MOC_QT5" || MOC_QT5="no"
279
+
280
+        if test "$MOC_QT5" = no; then
281
+            as_fn_error $? "Could not find QT5 moc" "$LINENO" 5
282
+        fi
283
+
284
+fi
285
+ if test "x$HAVE_QT5" = "xyes"; then
286
+  HAVE_QT5_TRUE=
287
+  HAVE_QT5_FALSE='#'
288
+else
289
+  HAVE_QT5_TRUE='#'
290
+  HAVE_QT5_FALSE=
291
+fi
292
+
293
+
294
+#
295
 # Check for GTK+ 2.0
296
 #
297
 # Check whether --enable-gtk was given.
298
@@ -25878,6 +26117,10 @@
299
   as_fn_error $? "conditional \"HAVE_QT4\" was never defined.
300
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
301
 fi
302
+if test -z "${HAVE_QT5_TRUE}" && test -z "${HAVE_QT5_FALSE}"; then
303
+  as_fn_error $? "conditional \"HAVE_QT5\" was never defined.
304
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
305
+fi
306
 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
307
   as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
308
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
309
@@ -28556,6 +28799,7 @@
310
     Enable python-dbus:                        ${HAVE_PYTHON_DBUS}
311
     Enable QT3:                                ${HAVE_QT3}
312
     Enable QT4:                                ${HAVE_QT4}
313
+    Enable QT5:                                ${HAVE_QT5}
314
     Enable Mono:                               ${HAVE_MONO}
315
     Enable Monodoc:                            ${HAVE_MONODOC}
316
     Distribution/OS:                           ${with_distro}
317
@@ -28625,6 +28869,7 @@
318
     Building avahi-discover-standalone: ${HAVE_GTK2OR3}
319
     Building libavahi-qt3:              ${HAVE_QT3}
320
     Building libavahi-qt4:              ${HAVE_QT4}
321
+    Building libavahi-qt5:              ${HAVE_QT5}
322
     Building avahi-sharp:               ${HAVE_MONO}
323
     Building avahi-compat-libdns_sd:    ${ENABLE_COMPAT_LIBDNS_SD}
324
     Building avahi-compat-howl:         ${ENABLE_COMPAT_HOWL}

Return to bug 244799