patch 8.1.1529: libcanberra is linked with even when not used
Problem: Libcanberra is linked with even when not used.
Solution: Have configure check for libcanberra only when wanted.
(suggestions by Libor Bukata)
diff --git a/src/Makefile b/src/Makefile
index eef91ec..9c4a428 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -528,6 +528,11 @@
# though you have /dev/sysmouse and includes.
#CONF_OPT_SYSMOUSE = --disable-sysmouse
+# libcanberra - For sound support. Default is on for big features.
+# Uncomment one of the two to chose otherwise.
+# CONF_OPT_CANBERRA = --enable-canberra
+# CONF_OPT_CANBERRA = --disable-canberra
+
# FEATURES - For creating Vim with more or less features
# Uncomment one of these lines when you want to include few to many features.
# The default is "huge" for most systems.
@@ -1952,7 +1957,7 @@
$(CONF_ARGS4) $(CONF_ARGS5) $(CONF_ARGS6) \
$(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
$(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
- $(CONF_OPT_SYSMOUSE); \
+ $(CONF_OPT_SYSMOUSE) $(CONF_OPT_CANBERRA); \
fi
# Use "make reconfig" to rerun configure without cached values.