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/18b6245e Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/18b6245e Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/18b6245e Branch: refs/heads/1.0.x Commit: 18b6245ed43222a64105e8e6efcaf4d26339a3b8 Parents: 517cbea Author: James Peach <[email protected]> Authored: Thu Nov 3 15:51:06 2016 -0400 Committer: Kapil Arya <[email protected]> Committed: Fri Apr 14 17:18:08 2017 -0400 ---------------------------------------------------------------------- 3rdparty/stout/configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/18b6245e/3rdparty/stout/configure.ac ---------------------------------------------------------------------- diff --git a/3rdparty/stout/configure.ac b/3rdparty/stout/configure.ac index 91357d0..d0bbdf4 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]) ###############################################################################
