Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
AC_PROG_MKDIR_P
AC_PROG_SED
+AC_ARG_ENABLE([debug],
+ AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
+ [], [enable_debug=no])
+AS_IF([test "x$enable_debug" = "xyes"], [
+ AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
+])
+
# pkg-config
PKG_PROG_PKG_CONFIG
# This makes sure pkg.m4 is available.
AC_MSG_RESULT([
$PACKAGE_NAME $VERSION
+ Debug: ${enable_debug}
+
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}