Fix stout build option argument handling. Fix all the AC_ARG_ENABLED options to correctly handle --enable-foo and --disable-foo variants. Update all the invocations to have a consistent calling convention.
Review: https://reviews.apache.org/r/53341/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7710fbe8 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7710fbe8 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7710fbe8 Branch: refs/heads/1.1.x Commit: 7710fbe8c3c3999bb1be0ccabf6e965267cc7d79 Parents: 12877b3 Author: James Peach <[email protected]> Authored: Thu Nov 3 15:51:06 2016 -0400 Committer: Alexander Rukletsov <[email protected]> Committed: Tue Feb 28 09:41:51 2017 +0100 ---------------------------------------------------------------------- 3rdparty/stout/configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/7710fbe8/3rdparty/stout/configure.ac ---------------------------------------------------------------------- diff --git a/3rdparty/stout/configure.ac b/3rdparty/stout/configure.ac index 84c0b39..9297ca6 100644 --- a/3rdparty/stout/configure.ac +++ b/3rdparty/stout/configure.ac @@ -72,13 +72,13 @@ AC_ARG_ENABLE([bundled], AS_HELP_STRING([--disable-bundled], [build against preinstalled dependencies instead of bundled libraries]), - [enable_bundled=no], [enable_bundled=yes]) + [], [enable_bundled=yes]) AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [enable debugging. If CFLAGS/CXXFLAGS are set, this option won't change them default: no]), - [enable_debug=yes], []) + [], [enable_debug=no]) AC_ARG_ENABLE([install], AS_HELP_STRING([--enable-install], @@ -89,13 +89,13 @@ AC_ARG_ENABLE([optimize], AS_HELP_STRING([--enable-optimize], [enable optimizations. If CFLAGS/CXXFLAGS are set, this option won't change them default: no]), - [enable_optimize=yes], []) + [], [enable_optimize=no]) AC_ARG_ENABLE([static-unimplemented], AS_HELP_STRING([--enable-static-unimplemented], [generate static assertion errors for unimplemented functions default: no]), - [enable_static_unimplemented=yes], []) + [], [enable_static_unimplemented=no]) ###############################################################################
