summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugh McMaster <hugh.mcmaster@outlook.com>2022-08-08 15:15:52 +1000
committerHugh McMaster <hugh.mcmaster@outlook.com>2022-08-08 15:15:52 +1000
commit9b4d7ad3fafb369d2266175943055505766fe732 (patch)
treeefc0e2efa517f454bfb7c025d79de4641308a5f6
parentdd6c2a2191d193b2b607e4b3ab0b9c2520a8212a (diff)
downloadlibrcc-9b4d7ad3fafb369d2266175943055505766fe732.tar.gz
librcc-9b4d7ad3fafb369d2266175943055505766fe732.tar.bz2
librcc-9b4d7ad3fafb369d2266175943055505766fe732.tar.xz
librcc-9b4d7ad3fafb369d2266175943055505766fe732.zip
autogen.sh: Remove obsolete FORBIDDEN_M4MACROS() code paths
The GNOME project removed support for FORBIDDEN_M4MACROS in 2014. See https://gitlab.gnome.org/GNOME/gnome-common/-/commit/4c8d8ad93
-rwxr-xr-xautogen.sh31
1 files changed, 3 insertions, 28 deletions
diff --git a/autogen.sh b/autogen.sh
index 2dbb6e5..1a47c93 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -99,7 +99,7 @@ compare_versions() {
}
REQUIRED_M4MACROS=${REQUIRED_M4MACROS:-}
-FORBIDDEN_M4MACROS=${FORBIDDEN_M4MACROS:-}
+
require_m4macro() {
case "$REQUIRED_M4MACROS" in
$1\ * | *\ $1\ * | *\ $1) ;;
@@ -107,13 +107,6 @@ require_m4macro() {
esac
}
-forbid_m4macro() {
- case "$FORBIDDEN_M4MACROS" in
- $1\ * | *\ $1\ * | *\ $1) ;;
- *) FORBIDDEN_M4MACROS="$FORBIDDEN_M4MACROS $1" ;;
- esac
-}
-
add_to_cm_macrodirs() {
case $cm_macrodirs in
"$1 "* | *" $1 "* | *" $1") ;;
@@ -180,28 +173,10 @@ check_m4macros() {
fi
done
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
printerr "***Error***: some autoconf macros required to build $PKG_NAME"
- printerr " were not found in your aclocal path, or some forbidden"
- printerr " macros were found. Perhaps you need to adjust your"
- printerr " ACLOCAL_FLAGS?"
+ printerr " were not found in your aclocal path."
+ printerr " Perhaps you need to adjust your ACLOCAL_FLAGS?"
printerr
fi
return $cm_status