[gnome-common] gnome-common: use ACLOCAL_PATH over ACLOCAL_FLAGS



commit 33608985c02e8ff9651c917842010984ff65cf14
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 12 19:24:51 2014 -0400

    gnome-common: use ACLOCAL_PATH over ACLOCAL_FLAGS
    
    jhbuild has set this variable for more than two years.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726208

 macros2/gnome-autogen.sh |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index c229ea0..1774661 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -151,14 +151,14 @@ print_m4macros_error() {
     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 "  ACLOCAL_PATH?"
     printerr
 }
 
 # Usage:
 #     check_m4macros
 # Checks that all the requested macro files are in the aclocal macro path
-# Uses REQUIRED_M4MACROS and ACLOCAL variables.
+# Uses REQUIRED_M4MACROS and ACLOCAL_PATH variables.
 check_m4macros() {
     # construct list of macro directories
     cm_macrodirs=`aclocal --print-ac-dir`
@@ -177,15 +177,12 @@ check_m4macros() {
        fi
     fi
 
-    # Parse $ACLOCAL_FLAGS
-    set - $ACLOCAL_FLAGS
-    while [ $# -gt 0 ]; do
-       if [ "$1" = "-I" ]; then
-           add_to_cm_macrodirs "$2"
-           shift
-       fi
-       shift
+    # Parse $ACLOCAL_PATH
+    IFS="${IFS=         }"; save_IFS="$IFS"; IFS=":"
+    for dir in ${ACLOCAL_PATH}; do
+       add_to_cm_macrodirs "$dir"
     done
+    IFS="$save_IFS"
 
     cm_status=0
     if [ -n "$REQUIRED_M4MACROS" ]; then


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]