summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid H. Gutteridge <[email protected]>2019-05-30 00:23:04 -0400
committermonsta <[email protected]>2019-08-12 13:21:37 +0300
commit00e1bba5a4cf067deb4d578787805df9931b796d (patch)
tree3fee4023c456617615d63e445879eb42502ee575
parent5e5c743e81c5a5097fae0e36c691b6fc03107869 (diff)
downloadmate-media-00e1bba5a4cf067deb4d578787805df9931b796d.tar.bz2
mate-media-00e1bba5a4cf067deb4d578787805df9931b796d.tar.xz
configure.ac: fix typos in var names, portability fixes, etc.
-rw-r--r--configure.ac14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 2225128..105c665 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