-AC_OUTPUT([Makefile src/Makefile cipher/Makefile cipher/blowfish/Makefile
-cipher/idea/Makefile doc/Makefile lib/Makefile m4/Makefile])
+
+dnl Support for SunOS
+
+AC_CHECK_FUNC(socket, [], [
+ AC_CHECK_LIB(socket, connect)
+])
+AC_CHECK_FUNC(gethostbyname, [], [
+ AC_CHECK_LIB(nsl, gethostbyname)
+])
+
+
+dnl Check for TUN/TAP support in the kernel
+tinc_TUNTAP
+
+dnl Check if checkpoint tracing has to be enabled
+AC_ARG_ENABLE(tracing,
+ --enable-tracing enable checkpoint tracing (for debugging purposes only),
+ [ AC_DEFINE(ENABLE_TRACING) ]
+)
+
+AC_OUTPUT([Makefile src/Makefile
+doc/Makefile doc/es/Makefile intl/Makefile lib/Makefile
+m4/Makefile po/Makefile.in redhat/Makefile debian/Makefile])