From 540b40ba1f1806c8b3eca10c101f2457230c490d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 Sep 2015 20:05:22 +0300 Subject: Add option for build dyecmd. New configure option: --width-dyecmd By default enabled. --- configure.ac | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1dc58b62b..c87f51dca 100755 --- a/configure.ac +++ b/configure.ac @@ -9,13 +9,26 @@ AC_ARG_ENABLE(androidbuild, [ --enable-androidbuild Turn on android building], [case "${enableval}" in yes) androidbuild_enabled=true + dyecmd_enabled=false ;; no) androidbuild_enabled=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-androidbuild) ;; esac],[androidbuild_enabled=false]) -AM_CONDITIONAL(ENABLE_DYECMD, test x$androidbuild_enabled != xyes) +# Enable for dyecmd +AC_ARG_WITH(dyecmd,[ --with-dyecmd build dyecmd tool ] ) +if test "x$with_dyecmd" == "xno"; then + with_dyecmd=no +else + if test "x$androidbuild_enabled" == "xfalse"; then + with_dyecmd=yes + else + with_dyecmd=no + fi +fi + +AM_CONDITIONAL(ENABLE_DYECMD, test x$with_dyecmd = xyes) # Enable nacl build AC_ARG_ENABLE(naclbuild, -- cgit v1.2.3-70-g09d2