diff options
author | Toni Uhlig <Toni.Uhlig@tq-group.com> | 2017-11-28 16:36:17 +0100 |
---|---|---|
committer | Toni Uhlig <Toni.Uhlig@tq-group.com> | 2017-11-28 16:36:17 +0100 |
commit | c2231897f1df5556e1ca142349edc2c147fd30b2 (patch) | |
tree | 24de81940a770812d22ca646aece6f6075178f63 /configure.ac | |
parent | 93a9beaba09346b580d16bb171fcb3fd21015710 (diff) |
configure.ac: added '--disable-gui' to build a CLI only version
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 66f9aa3..8bab124 100644 --- a/configure.ac +++ b/configure.ac @@ -36,12 +36,11 @@ UTOOL_RELEASE=${utool_major_version_number}.${utool_minor_version_number} UTOOL_VERSION=${UTOOL_RELEASE}.${utool_release_number} AC_ARG_ENABLE([gui], - [AS_HELP_STRING([--enable-gui], [Build the UpdateTool with a wxWidgets based GUI instead of a simple CLI (default enabled).])],, - [ut_buildgui=yes]) + [AS_HELP_STRING([--disable-gui], [Build the UpdateTool with a wxWidgets based GUI instead of a simple CLI (default enabled).])],,[ut_buildgui=yes]) ut_buildgui=$(echo ${ut_buildgui}) case ${ut_buildgui} in - ''|1|y|yes) ut_buildgui=yes ;; - no) ut_buildgui= ;; + 1|y|yes) ut_buildgui=yes ;; + ''|0|n|no) ut_buildgui= ;; *) AC_MSG_ERROR([unknown option '${ut_buildgui}' for --enable-gui]) ;; esac @@ -51,7 +50,7 @@ AC_ARG_ENABLE([host-wxwidgets], enable_host_wxwidgets=$(echo ${enable_host_wxwidgets}) case ${enable_host_wxwidgets} in ''|1|y|yes) enable_host_wxwidgets=yes ;; - no) enable_host_wxwidgets= ;; + 0|n|no) enable_host_wxwidgets= ;; *) AC_MSG_ERROR([unknown option '${enable_host_wxwidgets}' for --enable-host-wxwidgets]) ;; esac if test x"${ut_buildgui}" != x"yes"; then |