]> ruderich.org/simon Gitweb - socket2unix/socket2unix.git/blobdiff - configure.ac
Log functions always write a trailing newline.
[socket2unix/socket2unix.git] / configure.ac
index 61ecbbbc8550bf07f4cfcf7b3296bf82d679d722..d61de2e03523ee0a8aa783e00966f76696ab066b 100644 (file)
@@ -37,5 +37,11 @@ AC_TYPE_SIZE_T
 
 AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([dlsym() is required])])
 
+AC_ARG_ENABLE([debug],
+              [AS_HELP_STRING([--enable-debug],[enable debug output])],
+              [if test "x$enableval" = xyes; then
+                   AC_DEFINE([DEBUG], 1, [Define to 1 enable debug output.])
+               fi])
+
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_OUTPUT