diff options
author | David H. Gutteridge <[email protected]> | 2019-05-30 00:23:04 -0400 |
---|---|---|
committer | Martin Wimpress <[email protected]> | 2019-05-30 08:49:38 +0100 |
commit | 3103d087ee40442678c361be4224fdbfc432e28b (patch) | |
tree | 52ddb7b08cf8eebcfdecbf2a144d40e255658812 /configure.ac | |
parent | 1610206a75f91ebb85b808e061767585bd5d3bd5 (diff) | |
download | mate-media-3103d087ee40442678c361be4224fdbfc432e28b.tar.bz2 mate-media-3103d087ee40442678c361be4224fdbfc432e28b.tar.xz |
configure.ac: fix typos in var names, portability fixes, etc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 630d544..519dee6 100644 --- a/configure.ac +++ b/configure.ac @@ -100,14 +100,14 @@ fi dnl Whether to build the volume control statusicon dnl -- -AC_ARG_ENABLE(statusicon, AS_HELP_STRING([--enable-statusicon], [Enable volume control status icon (default: yes)])) -if (test "${enable-statusicon}" == "no"); then +AC_ARG_ENABLE(statusicon, [AS_HELP_STRING([--enable-statusicon], [Enable volume control status icon (default: yes)])],,[enable_statusicon=yes]) +if test "x$enable_statusicon" = "xno"; then AC_DEFINE(ENABLE_STATUSICON, 0, [Enable if you want to build the tray applet]) else AC_DEFINE(ENABLE_STATUSICON, 1, [Enable if you want to build the tray applet]) fi -AM_CONDITIONAL(ENABLE_STATUSICON, test "${enable_statusicon}" != "no") +AM_CONDITIONAL(ENABLE_STATUSICON, test "x$enable_statusicon" != "xno") #============================================================================ # panel applet @@ -117,19 +117,19 @@ dnl Whether to build the standalone volume control applet dnl -- -AC_ARG_ENABLE(panelapplet, AS_HELP_STRING([--enable-panelapplet], [Enable volume control panel applet (gives better icon rendering than a status icon on hidpi displays) (default: yes)])) -if (test "${enable-panelapplet}" == "no"); then +AC_ARG_ENABLE(panelapplet, [AS_HELP_STRING([--enable-panelapplet], [Enable volume control panel applet (gives better icon rendering than a status icon on hidpi displays) (default: yes)])],,[enable_panelapplet=yes]) +if test "x$enable_panelapplet" = "xno"; then AC_DEFINE(ENABLE_PANELAPPLET, 0, [Enable if you want to build the panel applet]) else AC_DEFINE(ENABLE_PANELAPPLET, 1, [Enable if you want to build the panel applet]) fi -AM_CONDITIONAL(ENABLE_PANELAPPLET, test "${enable_panelapplet}" != "no") +AM_CONDITIONAL(ENABLE_PANELAPPLET, test "x$enable_panelapplet" != "xno") #============================================================================ # Sanity check: must build either status icon or panel applet #============================================================================ -if test "x$enable_statusicon" == "xno" && test "x$enable_panelapplet" == "xno"; then +if test "x$enable_statusicon" = "xno" && test "x$enable_panelapplet" = "xno"; then AC_MSG_ERROR([must build either volume control status icon or volume control applet]) fi |