+ [libidn1_msg="libidn1"])
+# -- texi2mdoc-generation
+AS_IF([test "x$texi2mdoc_generation" = "xyes"],
+ [mdocml_msg="yes"],
+ [mdocml_msg="no"])
+# -- texi2mdoc
+AS_IF([test "x$TEXI2MDOC_BINARY" = "false"],
+ [AC_MSG_NOTICE([texi2mdoc binary not found (will not generate mdoc documentation)])
+ texi2mdoc_msg="no (optional)"],
+ [texi2mdoc_msg="yes"])
+# -- mandoc
+AS_IF([test "x$MANDOC_BINARY" = "false"],
+ [AC_MSG_NOTICE([mandoc binary not found (will not generate handbook as man page)])
+ mandoc_msg="no"],
+ [mandoc_msg="yes"])
+# -- texinfo
+AS_IF([test "x$makeinfo" != "x1"],
+ [texinfo_msg="no"],
+ [texinfo_msg="yes"])
+# -- conversation
+AS_IF([test "x$conversation_backend" = "xnone"],
+ [AS_IF([test "x$pulse" != "x1"],
+ [AC_MSG_WARN([libpulse(audio) not found (required to build conversation).])
+ libpulse_msg="no (required for conversation)"],
+ [libpulse_msg="yes"])
+ AS_IF([test "x$opus" != "x1"],
+ [AC_MSG_WARN([libopus not found (required to build conversation)])
+ libopus_msg="no (required for conversation)"],
+ [libopus_msg="yes"])
+ AS_IF([test "x$gst" != "x1"],
+ [AC_MSG_WARN([GStreamer not found (required to build conversation).])
+ gstreamer_msg="no (required for conversation)"],
+ [gstreamer_msg="yes"])],
+ [AS_IF([test "x$opus" = x1],
+ [features_msg="$features_msg conversation"],
+ [AC_MSG_WARN([libopus not found (required to build conversation)])])])
+# -- interface
+interface_msg=`echo $DEFAULT_INTERFACE | tr -d \"`
+# -- libmicrohttpd
+AS_IF([test "x$lmhd" != "x1"],
+ [libmicrohttpd_msg="no (optional)"],
+ [libmicrohttpd_msg="yes"])
+# -- jansson
+AS_IF([test "x$jansson" = "x0"],
+ [jansson_msg="no (optional)"],
+ [jansson_msg="yes"])
+# -- libextractor
+AS_IF([test "$extractor" != 1],
+ [AC_MSG_WARN([libextractor not found, but various file-sharing functions require it])],
+ [libextractor_msg="yes"])
+# -- libzbar
+AS_IF([test "x$zbar" = "x1"],
+ [libzbar_msg="yes"
+ features_msg="$features_msg gnunet-qr"],
+ [AC_MSG_NOTICE([zbar not found, gnunet-qr will not be built.])
+ libzbar_msg="no"])
+# -- libgnurl
+AS_IF([test "$gnurl" = "0"],
+ [AS_IF([test "x$curl" = "xfalse"],
+ [AC_MSG_WARN([libgnurl not found. http client support will not be compiled.])
+ AC_MSG_WARN([IMPORTANT: No HTTP client library found. HTTP transports and hostlist daemon will not be compiled, and you probably WANT the hostlist daemon])
+ curl_msg="no"],
+ [AC_MSG_NOTICE([libgnurl not found, trying to use libcurl-gnutls instead.])
+ curl_msg="yes"])],
+ [gnurl_msg="yes"])
+# -- ifconfig
+AS_IF([test "$VAR_IFCONFIG_BINARY" = "false"],
+ [AC_MSG_WARN([ifconfig not found, some features will not work])
+ ifconfig_msg="no (optional)"],
+ [ifconfig_msg="yes"])
+# -- upnpc
+AS_IF([test "$VAR_UPNPC_BINARY" = "false"],
+ [AC_MSG_WARN([upnpc binary not found, NAT traversal using UPnPc will not work])
+ upnpc_msg="no (optional)"],
+ [upnpc_msg="yes"])
+# -- iptables
+AS_IF([test "$VAR_IPTABLES_BINARY" = "false"],
+ [AC_MSG_WARN([iptables not found, DNS query interception will not work])
+ iptables_msg="no (optional)"],
+ [iptables_msg="yes"])
+# -- bluetooth
+AS_IF([test "x$bluetooth" = "x0"],
+ [AC_MSG_NOTICE([bluetooth library not found, will not be able to use Bluetooth])
+ bluetooth_msg="no (optional)"],
+ [bluetooth_msg="yes"])
+# -- gnutls
+AS_IF([test x$gnutls != xtrue],
+ [AC_MSG_WARN([GnuTLS not found, gnunet-gns-proxy will not be built])
+ gnutls_msg="no"],
+ [AS_IF([test "x$gnutls_dane" != "x1"],
+ [AC_MSG_WARN([GnuTLS lacks DANE support, DANE validation will not be possible])
+ gnutls_msg="yes (without DANE support)"],
+ [gnutls_msg="yes (with DANE support)"])])
+# -- databases
+# TODO: this always returns true, the check might
+# TODO: not be working as intended (for msqlfail).
+AS_IF([test "$mysql" = true],
+ [features_msg="$features_msg mysql"
+ mysql_msg="yes"],
+ [mysql_msg="no"])
+AS_IF([test x$mysqlfail = xtrue],
+ [AC_MSG_WARN([MySQL not found (or too old), will not create MySQL database support])
+ mysql_msg="unsupported version"])
+AS_IF([test "$sqlite" = true],
+ [features_msg="$features_msg sqlite"
+ sqlite_msg="yes"],
+ [AC_MSG_ERROR([sqlite3 not found, but sqlite3 is required.])
+ sqlite_msg="no"])
+AS_IF([test "$postgres" = true],
+ [features_msg="$features_msg postgres"
+ postgres_msg="yes"],
+ [postgres_msg="no"])
+# -- features
+# ---- 1. replace spaces with newlines,
+# ---- 2. sort the lines,
+# ---- 3. replace the newlines with spaces.
+features_msg=`echo $features_msg | tr ' ' '\012' | sort | tr '\012' ' '`
+AC_SUBST(features_msg)
+
+
+# The summary
+# TODO: reduce the length of the last message block, following "IMPORTANT".
+
+AC_MSG_NOTICE([
+GNUnet Configuration
+====================
+
+GNUnet version: ${VERSION}
+
+Host setup: ${host}
+Install prefix: ${prefix}
+Compiler: ${CC}
+CFLAGS: ${CFLAGS}
+CPPFLAGS: ${CPPFLAGS}
+LDFLAGS: ${LDFLAGS}
+LIBS: ${LIBS}
+Build Target: $build_target
+Mac OSX framework build: ${macosx_framework_msg}
+
+Default Interface: ${interface_msg}
+
+MySQL: ${mysql_msg}
+PostgreSQL: ${postgres_msg}
+sqlite3: ${sqlite_msg}
+gnurl: ${gnurl_msg}
+curl: ${curl_msg}
+bluetooth: ${bluetooth_msg}
+jansson: ${jansson_msg}
+iptables: ${iptables_msg}
+ifconfig: ${ifconfig_msg}
+upnpc: ${upnpc_msg}
+gnutls: ${gnutls_msg}
+libzbar: ${libzbar_msg}
+java: ${java_msg}
+libmicrohttpd: ${libmicrohttpd_msg}
+libidn: ${libidn1_msg}${libidn2_msg}
+libopus: ${libopus_msg}
+gstreamer: ${gstreamer_msg}
+libpulse: ${libpulse_msg}
+libextractor: ${libextractor_msg}
+texi2mdoc: ${texi2mdoc_msg}
+mandoc: ${mandoc_msg}
+
+texinfo manual: ${texinfo_msg}
+transpiled mdocml manual: ${mdocml_msg}
+
+features: ${features_msg}
+experimental: ${experimental_msg}
+])