Make sure MORE_FLAGS are evaluated one by one
authorBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 10:17:12 +0000 (11:17 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 10:17:12 +0000 (11:17 +0100)
Previously the argument was just evaluated as a single string.

I still don't get shell and m4 (un)escaping rules...

m4/gst-error.m4

index 668085d..6df7312 100644 (file)
@@ -90,7 +90,8 @@ AC_DEFUN([AG_GST_SET_ERROR_CFLAGS],
   if test "x$2" != "x"
   then
     UNSUPPORTED=""
-    for each in "$2"
+    list="$2"
+    for each in $list
     do
       AS_COMPILER_FLAG($each,
           WARNING_CFLAGS="$WARNING_CFLAGS $each",
@@ -177,7 +178,8 @@ AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
   if test "x$2" != "x"
   then
     UNSUPPORTED=""
-    for each in "$2"
+    list="$2"
+    for each in $list
     do
       AS_CXX_COMPILER_FLAG($each,
           WARNING_CXXFLAGS="$WARNING_CXXFLAGS $each",