<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/809dd32eefb61a4bad2ac023f2f7fba994e81418">https://github.com/macports/macports-ports/commit/809dd32eefb61a4bad2ac023f2f7fba994e81418</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 809dd32eefb61a4bad2ac023f2f7fba994e81418
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon Jun 26 03:13:05 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> wired-server: new port in net
</span>---
net/wired-server/Portfile | 48 +++
net/wired-server/files/config.m4 | 553 +++++++++++++++++++++++++
net/wired-server/files/patch-configure.ac.diff | 53 +++
net/wired-server/files/patch-makefile.in.diff | 156 +++++++
4 files changed, 810 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wired-server/Portfile b/net/wired-server/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..de2648f5075
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wired-server/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup openssl 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+openssl.branch 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup ProfDrLuigi wired 55741e54d0b0b9bb35bcc26cf1302c396b6a85f5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.5.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name wired-server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Wired Server is BBS-oriented server for UNIX-based operating systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://wired.read-write.fr/products/wired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 f6085455d1a53225ebec205d8145a06bbacf2aa7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 68bdfbcd8954803ebf131a7458ace9adc9f2c80cded6d497ef339d9800175880 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 244201
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+autoreconf.args -vi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:libiconv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libwired \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libxml2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:miniupnpc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ncurses \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:sqlite3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-configure.ac.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-makefile.in.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/config.m4 ${worksrcpath}/libwired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} "s|__PREFIX__|${prefix}|g" configure.ac Makefile.in libwired/config.m4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} "s|__DESTROOT__|${destroot}|g" Makefile.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --prefix=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-wireddir="var/wired"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wired-server/files/config.m4 b/net/wired-server/files/config.m4
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..100d5b92758
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wired-server/files/config.m4
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,553 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# config.m4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([_WI_MSG_LIB_ERROR], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([could not locate $1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+If you installed $1 into a non-standard directory, please run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ env CPPFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib" ./configure])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_APPEND_FLAG], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -z "$$1"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $1="$2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MATCH=`expr -- "$$1" : ".*$2"`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$MATCH" = "0"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $1="$$1 $2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_CHECK_SVN_REVISION], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_REVISION=$(cat version)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -z "$WI_REVISION"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_REVISION=0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE_UNQUOTED([WI_REVISION], "$WI_REVISION", [Subversion revision])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_WARNING_FLAG], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OLD_CFLAGS="$CFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CFLAGS], $1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([WARNFLAGS], $1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS="$OLD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_EXTRA_INCLUDE_PATHS], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_extra_include_paths_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/include; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-I__PREFIX__/include])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/include/wired; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-I__PREFIX__/include/wired])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_extra_include_paths_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_EXTRA_LIBRARY_PATHS], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_extra_library_paths_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/lib; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LDFLAGS], [-L__PREFIX__/lib])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_extra_library_paths_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_EXTRA_SSL_PATHS], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_extra_ssl_paths_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/ssl/include; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-I__PREFIX__/ssl/include])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/kerberos/include; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-I__PREFIX__/kerberos/include])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/ssl/lib; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LDFLAGS], [-__PREFIX__/ssl/lib])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_extra_ssl_paths_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_LIBWIRED_LIBRARIES], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_MATH_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_SOCKET_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_NSL_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_RESOLV_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_CORESERVICES_FRAMEWORK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_CARBON_FRAMEWORK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_COMMON_CRYPTO_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_OPENSSL_LIBRARIES], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_CRYPTO_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_SSL_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_COMMON_CRYPTO_LIBRARIES], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CommonCrypto/CommonDigest.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CommonCrypto/CommonCryptor.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_DIGESTS])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_CIPHERS])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ m4_ifvaln([$1], [$1], [:])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ m4_ifvaln([$2], [$2], [:])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_P7_LIBRARIES], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_COMMON_CRYPTO_LIBRARIES([], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_CRYPTO_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_CRYPTO_LIBRARY([noerror])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_LIBXML2_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_ZLIB_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_P7])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_MATH_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_math_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC([pow], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([m], [sqrt], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lm])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_math_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_SOCKET_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_socket_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC(setsockopt, [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([socket], [setsockopt], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lsocket])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_socket_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_NSL_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_nsl_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC([gethostent], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([nsl], [gethostent], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lnsl])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_nsl_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_RESOLV_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_resolv_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC([herror], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([resolv], [herror], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lresolv])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_resolv_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_CRYPTO_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_crypto_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_EXTRA_SSL_PATHS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([openssl/sha.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$1" != "noerror"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([OpenSSL])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([crypto], [SHA1_Init], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lcrypto])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_DIGESTS])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_CIPHERS])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_RSA])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$1" != "noerror"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([OpenSSL])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_crypto_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_SSL_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_ssl_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_INCLUDE_EXTRA_SSL_PATHS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([openssl/ssl.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$1" != "noerror"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([OpenSSL])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([ssl], [SSL_SESSION_new], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lssl])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_SSL])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$1" != "noerror"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([OpenSSL])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_ssl_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_CORESERVICES_FRAMEWORK], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_coreservices_framework_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([CoreServices/CoreServices.h], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-framework CoreServices])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_CORESERVICES])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_coreservices_framework_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_CARBON_FRAMEWORK], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_carbon_framework_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([Carbon/Carbon.h], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-framework Carbon])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_CARBON])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_carbon_framework_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([_WI_PTHREAD_TEST_INCLUDES], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pthread.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void * thread(void *arg) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([_WI_PTHREAD_TEST_FUNCTION], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthread_t tid;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(pthread_create(&tid, 0, thread, NULL) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return errno;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([_WI_PTHREAD_TEST_PROGRAM], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_PTHREAD_TEST_INCLUDES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(void) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_PTHREAD_TEST_FUNCTION
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([_WI_PTHREAD_TRY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_pthreads_found" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OLD_LIBS="$LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], $1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_RUN_IFELSE([AC_LANG_SOURCE([_WI_PTHREAD_TEST_PROGRAM])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_test=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_test=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_LINK_IFELSE([AC_LANG_PROGRAM([_WI_PTHREAD_TEST_INCLUDES], [_WI_PTHREAD_TEST_FUNCTION])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_test=yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_test=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBS="$OLD_LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_pthreads_test" = "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_found="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_pthreads_libs="$1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_PTHREADS], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_pthreads_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case $host in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *-solaris*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE([_POSIX_PTHREAD_SEMANTICS], [], [Define on Solaris to get sigwait() to work using pthreads semantics.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([pthread.h], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([for pthreads])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_PTHREAD_TRY([])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_PTHREAD_TRY([-pthread])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_PTHREAD_TRY([-lpthread])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_pthreads_found" = "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([yes])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], $wi_pthreads_libs)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([no])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([could not locate pthreads])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([could not locate pthreads])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_PTHREADS])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_pthreads_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_ICONV_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_iconv_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([iconv.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([iconv])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([iconv], [iconv], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-liconv])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([iconv], [libiconv], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-liconv])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC([iconv], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([iconv])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([if iconv understands Unicode])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_RUN_IFELSE([AC_LANG_SOURCE([
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iconv.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(void) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iconv_t conv = iconv_open("UTF-8", "UTF-16");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(conv == (iconv_t) -1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([yes])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([no])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_ICONV])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_iconv_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_TERMCAP_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_termcap_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ curses.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ term.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ termcap.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ termios.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_FUNC([tgoto], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([termcap], [tgoto], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-ltermcap])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([ncurses], [tgoto], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lncurses])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([curses], [tgoto], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lcurses])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_TERMCAP])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_termcap_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_READLINE_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_readline_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([readline/readline.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([readline])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([readline], [rl_initialize], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lreadline])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([for GNU readline])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_RUN_IFELSE([AC_LANG_SOURCE([
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <readline/readline.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(void) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return rl_gnu_readline_p ? 0 : 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([yes])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([no])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([GNU readline])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([for rl_completion_matches])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_RUN_IFELSE([AC_LANG_SOURCE([
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <readline/readline.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char * generator(const char *, int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char * generator(const char *text, int state) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int main(void) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (void) rl_completion_matches("", generator);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], [1], [Define to 1 if you have the `rl_completion_matches' function, and to 0 otherwise.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([yes])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_RESULT([no])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_DECLS([rl_completion_display_matches_hook], [], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <readline/readline.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([readline])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_READLINE])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_readline_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_LIBXML2_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_libxml2_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -d __PREFIX__/include/libxml2; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-I__PREFIX__/include/libxml2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([libxml/parser.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([libxml2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([xml2], [xmlParseFile], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lxml2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([libxml2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_LIBXML2])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_PLIST])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_libxml2_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_ZLIB_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_zlib_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([zlib.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([zlib])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([z], [deflate], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lz])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([zlib])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_ZLIB])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_zlib_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+AC_DEFUN([WI_INCLUDE_SQLITE3_LIBRARY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$wi_include_sqlite3_library_done" != "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_HEADERS([sqlite3.h], [], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([sqlite3])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([sqlite3], [sqlite3_open], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([LIBS], [-lsqlite3])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _WI_MSG_LIB_ERROR([sqlite3])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CHECK_LIB([sqlite3], [sqlite3_backup_init], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE_UNQUOTED([WI_SQLITE_SUPPORTS_BACKUP], [1], [SQLite supports backup])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE_UNQUOTED([WI_SQLITE_SUPPORTS_BACKUP], [0], [SQLite does not support backup])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WI_APPEND_FLAG([CPPFLAGS], [-DWI_SQLITE3])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wi_include_sqlite3_library_done="yes"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+])
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wired-server/files/patch-configure.ac.diff b/net/wired-server/files/patch-configure.ac.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c0068d24137
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wired-server/files/patch-configure.ac.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,53 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig 2023-01-10 18:01:14.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac 2023-06-22 15:13:49.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -127,7 +127,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_DEFINE_UNQUOTED([WD_ROOT], ["${with_fake_prefix}/${wireddir}"], [Root directory])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST([fake_prefix], ['${prefix}'])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_DEFINE_UNQUOTED([WD_ROOT], ["/usr/local/${wireddir}"], [Root directory])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_DEFINE_UNQUOTED([WD_ROOT], ["__PREFIX__/${wireddir}"], [Root directory])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -136,10 +136,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -n "$with_objdir"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST([objdir], ["$with_objdir"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired_objdir="$with_objdir"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST([objdir], ["obj"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired_objdir="../obj"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -148,10 +146,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test -n "$with_rundir"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST([rundir], ["$with_rundir"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired_rundir="$with_rundir/libwired"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST([rundir], ["run"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired_rundir="../run/libwired"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -200,19 +196,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_CONFIG_FILES([Makefile])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Configure libwired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_ARG_WITH([libwired], , [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if test "$with_libwired" = "yes"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- wd_libwired=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if test "$wd_libwired"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ac_configure_args="$ac_configure_args --enable-pthreads --enable-libxml2 --enable-sqlite3 --enable-p7 --with-rundir=$wd_libwired_rundir --with-objdir=$wd_libwired_objdir"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_CONFIG_SUBDIRS([libwired])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_OUTPUT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/wired-server/files/patch-makefile.in.diff b/net/wired-server/files/patch-makefile.in.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0e6e17f11c5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/wired-server/files/patch-makefile.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,156 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.in.orig 2023-01-10 18:01:14.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile.in 2023-06-22 15:00:50.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -18,21 +18,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DISTFILES = INSTALL LICENSE NEWS README Makefile Makefile.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config.guess config.status config.h.in config.sub configure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- configure.in install-sh libwired man run thirdparty wired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SUBDIRS = libwired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ configure.in install-sh man run thirdparty wired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ WIREDOBJS = $(addprefix $(objdir)/wired/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/wired -name "[a-z]*.c"))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NATPMPOBJS = $(addprefix $(objdir)/natpmp/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/thirdparty/natpmp -name "[a-z]*.c"))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-MINIUPNPCOBJS = $(addprefix $(objdir)/miniupnpc/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/thirdparty/miniupnpc -name "[a-z]*.c"))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TRANSFERTESTOBJS = $(addprefix $(objdir)/transfertest/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/test/transfertest -name "[a-z]*.c"))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEFS = @DEFS@ -DENABLE_STRNATPMPERR -DMINIUPNPC_SET_SOCKET_TIMEOUT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC = @CC@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS = @CFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CPPFLAGS = @CPPFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LDFLAGS = -L$(rundir)/libwired/lib @LDFLAGS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBS = -lwired @LIBS@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INCLUDES = -I$(abs_top_srcdir) -I$(rundir)/libwired/include -I$(abs_top_srcdir)/thirdparty
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++LDFLAGS = -L__PREFIX__/libexec/openssl10/lib -lssl -L__PREFIX__/lib -lncurses -lminiupnpc @LDFLAGS@ __PREFIX__/lib/libwired.a ${prefix}/lib/libiconv.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++LIBS = -L__PREFIX__/libexec/openssl10/lib -lssl -L__PREFIX__/lib -lncurses -lminiupnpc @LIBS@ __PREFIX__/lib/libwired.a ${prefix}/lib/libiconv.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INCLUDES = -I$(abs_top_srcdir) -I__PREFIX__/include/wired -I$(abs_top_srcdir)/thirdparty
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ INSTALL = @INSTALL@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -68,9 +66,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (cd $$subdir && $(MAKE) -e $$target) || exit 1; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(rundir)/wired: $(WIREDOBJS) $(NATPMPOBJS) $(MINIUPNPCOBJS) $(rundir)/libwired/lib/libwired.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$(rundir)/wired: $(WIREDOBJS) $(NATPMPOBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(LINK) $(WIREDOBJS) $(NATPMPOBJS) $(MINIUPNPCOBJS) $(LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LINK) $(WIREDOBJS) $(NATPMPOBJS) $(LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(rundir)/wiredctl: $(abs_top_srcdir)/wired/wiredctl.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -81,7 +79,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sed -e 's,@WD_USER\@,$(WD_USER),g' -e 's,@WD_GROUP\@,$(WD_GROUP),g' $< > $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(rundir)/transfertest: $(TRANSFERTESTOBJS) $(rundir)/libwired/lib/libwired.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$(rundir)/transfertest: $(TRANSFERTESTOBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LINK) $(TRANSFERTESTOBJS) $(LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -101,14 +99,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ($(DEPEND) $< | sed 's,$*.o,$(@D)/&,g'; echo "$@: $<") > $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(objdir)/miniupnpc/%.o: $(abs_top_srcdir)/thirdparty/miniupnpc/%.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(COMPILE) -I$(<D) -c $< -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$(objdir)/miniupnpc/%.d: $(abs_top_srcdir)/thirdparty/miniupnpc/%.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ($(DEPEND) $< | sed 's,$*.o,$(@D)/&,g'; echo "$@: $<") > $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(objdir)/transfertest/%.o: $(abs_top_srcdir)/test/transfertest/%.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @test -d $(@D) || mkdir -p $(@D)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(COMPILE) -I$(<D) -c $< -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -122,36 +112,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install-only: install-man install-wired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install-wired:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @if [ -e $(installdir)/wired ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ @if [ -e __DESTROOT__/$(installdir)/wired ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch .update; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/etc/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/etc/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if [ ! -f $(installdir)/etc/wired.conf ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if [ ! -f __DESTROOT__/$(installdir)/etc/wired.conf ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf __DESTROOT__/$(installdir)/etc/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ ! -d $(installdir)/files ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/files/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/files/Uploads/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/files/Uploads/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Uploads/.wired/type $(installdir)/files/Uploads/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/files/Drop\ Box/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Drop\ Box/.wired/type $(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Drop\ Box/.wired/permissions $(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/files/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/files/Uploads/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/files/Uploads/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Uploads/.wired/type __DESTROOT__/$(installdir)/files/Uploads/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/files/Drop\ Box/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Drop\ Box/.wired/type __DESTROOT__/$(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/files/Drop\ Box/.wired/permissions __DESTROOT__/$(installdir)/files/Drop\ Box/.wired/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ ! -f $(installdir)/banner.png ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/banner.png $(installdir)/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/banner.png __DESTROOT__/$(installdir)/; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired.xml $(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired $(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wiredctl $(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired.xml __DESTROOT__/$(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired __DESTROOT__/$(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wiredctl __DESTROOT__/$(installdir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @if [ -f .update ]; then \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo ""; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -176,14 +166,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @rm -f .update
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install-man:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(mandir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(mandir)/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(mandir)/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wiredctl.1 $(mandir)/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(mandir)/man5/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wired.conf.5 $(mandir)/man5/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d $(mandir)/man8/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wired.8 $(mandir)/man8/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(mandir)/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wiredctl.1 __DESTROOT__/$(mandir)/man1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(mandir)/man5/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wired.conf.5 __DESTROOT__/$(mandir)/man5/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) -d __DESTROOT__/$(mandir)/man8/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(abs_top_srcdir)/man/wired.8 __DESTROOT__/$(mandir)/man8/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dist:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -rf wired-$(WD_VERSION)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -209,8 +199,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(objdir)/transfertest/*.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(objdir)/natpmp/*.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(objdir)/natpmp/*.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- rm -f $(objdir)/miniupnpc/*.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- rm -f $(objdir)/miniupnpc/*.d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(rundir)/wired
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(rundir)/wiredctl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f $(rundir)/etc/wired.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -228,6 +216,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(WD_MAINTAINER), 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -include $(WIREDOBJS:.o=.d)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -include $(NATPMPOBJS:.o=.d)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--include $(MINIUPNPSOBJS:.o=.d)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -include $(TRANSFERTESTOBJS:.o=.d)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span></pre><pre style='margin:0'>
</pre>