From 7acc23761a72e2f2ff6cb091006d5bac0a0b2e70 Mon Sep 17 00:00:00 2001 From: Ruben Laguna Date: Sun, 8 Mar 2015 11:11:28 +0100 Subject: [PATCH] AC_ARG_ENABLE feature enabled by default --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3c1cec5..0d41a4c 100644 --- a/configure.ac +++ b/configure.ac @@ -66,7 +66,8 @@ AC_CHECK_HEADER([stdlib.h]) # PKG_CHECK_MODULES([DEPS], [glib-2.0 >= 2.24.1]) AC_ARG_ENABLE([myfeature], - AS_HELP_STRING([--enable-myfeature],[enable myfeature to get this and that])) + AS_HELP_STRING([--disable-myfeature],[disable myfeature to get remove support for this and that]), + [enable_myfeature=${enableval}],[enable_myfeature=yes]) if test "x${enable_myfeature}" == "xyes"; then AC_DEFINE([MYFEATURE], 1, [myfeature is enabled])