+type dpkg >/dev/null 2>&1
+if test $? -eq 0; then
+ # Generate debian/ link if the dpkg command exists
+ # (read: if we are running on a debian compatible system)
+ echo "creating Debian-specific links ..."
+ test -f debian/rules || ln -s contrib/Debian debian
+fi
+
+# -- Result --
+
+echo
+echo "ngIRCd has been configured with the following options:"
+echo
+
+# Someone please show me a better way :) [borrowed by OpenSSH]
+B=`eval echo ${bindir}` ; B=`eval echo ${B}`
+S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
+C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
+M=`eval echo ${mandir}` ; M=`eval echo ${M}`
+D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
+
+echo " Host: ${host}"
+echo " Compiler: ${CC}"
+test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
+test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
+test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
+test -n "$LIBS" && echo " Libraries: ${LIBS}"
+echo
+echo " 'ngircd' binary: $S"
+echo " Configuration file: $C"
+echo " Manual pages: $M"
+echo " Documentation: $D"
+echo
+
+echo $ECHO_N " Syslog support: $ECHO_C"
+test "$x_syslog_on" = "yes" \
+ && echo $ECHO_N "yes $ECHO_C" \
+ || echo $ECHO_N "no $ECHO_C"
+echo $ECHO_N " Enable debug code: $ECHO_C"
+test "$x_debug_on" = "yes" \
+ && echo "yes" \
+ || echo "no"
+
+echo $ECHO_N " zlib compression: $ECHO_C"
+test "$x_zlib_on" = "yes" \
+ && echo $ECHO_N "yes $ECHO_C" \
+ || echo $ECHO_N "no $ECHO_C"
+echo $ECHO_N " IRC sniffer: $ECHO_C"
+test "$x_sniffer_on" = "yes" \
+ && echo "yes" \
+ || echo "no"
+
+echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
+test "$x_tcpwrap_on" = "yes" \
+ && echo $ECHO_N "yes $ECHO_C" \
+ || echo $ECHO_N "no $ECHO_C"
+echo $ECHO_N " Strict RFC mode: $ECHO_C"
+test "$x_strict_rfc_on" = "yes" \
+ && echo "yes" \
+ || echo "no"
+
+echo $ECHO_N " Rendezvous support: $ECHO_C"
+test "$x_rendezvous_on" = "yes" \
+ && echo $ECHO_N "yes $ECHO_C" \
+ || echo $ECHO_N "no $ECHO_C"
+echo $ECHO_N " IRC+ protocol: $ECHO_C"
+test "$x_ircplus_on" = "yes" \
+ && echo "yes" \
+ || echo "no"
+
+echo $ECHO_N " IDENT support: $ECHO_C"
+test "$x_identauth_on" = "yes" \
+ && echo $ECHO_N "yes $ECHO_C" \
+ || echo $ECHO_N "no $ECHO_C"
+
+echo; echo
+