summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-10 22:44:27 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-13 11:30:43 +0100
commit5a58347c8f9b48915311f7c91b885722492d378a (patch)
tree33675f85adbd33a21fb9a7960dd5adacfdf8e67e
parentaa7f70bbce305cabeb1dcdbfc6cd7cd437f6a2c4 (diff)
downloadgnome-common-5a58347c8f9b48915311f7c91b885722492d378a.tar.gz
macros2: Remove FORBIDDEN_M4MACROS infrastructure
It was completely outdated and unused. The REQUIRED_M4MACROS infrastructure is, however, still in use. https://bugzilla.gnome.org/show_bug.cgi?id=729932
-rw-r--r--macros2/gnome-autogen.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index 4afc6bb..fe1c8e7 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -17,7 +17,6 @@ test "$REQUIRED_GNOME_DOC_UTILS_VERSION" || REQUIRED_GNOME_DOC_UTILS_VERSION=0.4
# a list of required m4 macros. Package can set an initial value
test "$REQUIRED_M4MACROS" || REQUIRED_M4MACROS=
-test "$FORBIDDEN_M4MACROS" || FORBIDDEN_M4MACROS=
# Not all echo versions allow -n, so we check what is possible. This test is
# based on the one in autoconf.
@@ -129,13 +128,6 @@ require_m4macro() {
esac
}
-forbid_m4macro() {
- case "$FORBIDDEN_M4MACROS" in
- $1\ * | *\ $1\ * | *\ $1) ;;
- *) FORBIDDEN_M4MACROS="$FORBIDDEN_M4MACROS $1" ;;
- esac
-}
-
# Usage:
# add_to_cm_macrodirs dirname
# Adds the dir to $cm_macrodirs, if it's not there yet.
@@ -220,32 +212,12 @@ check_m4macros() {
print_m4macros_error
exit $cm_status
fi
- if [ -n "$FORBIDDEN_M4MACROS" ]; then
- printbold "Checking for forbidden M4 macros..."
- # check that each macro file is in one of the macro dirs
- for cm_macro in $FORBIDDEN_M4MACROS; do
- cm_macrofound=false
- for cm_dir in $cm_macrodirs; do
- if [ -f "$cm_dir/$cm_macro" ]; then
- cm_macrofound=true
- break
- fi
- done
- if $cm_macrofound; then
- printerr " $cm_macro found (should be cleared from macros dir)"
- cm_status=1
- fi
- done
- fi
if [ "$cm_status" != 0 ]; then
print_m4macros_error
exit $cm_status
fi
}
-# try to catch the case where the macros2/ directory hasn't been cleared out.
-forbid_m4macro gnome-cxx-check.m4
-
want_glib_gettext=false
want_intltool=false
want_pkg_config=false