This is no valid shell syntax:
authorMartin Baulig <martin@src.gnome.org>
Tue, 15 Dec 1998 18:23:20 +0000 (18:23 +0000)
committerMartin Baulig <martin@src.gnome.org>
Tue, 15 Dec 1998 18:23:20 +0000 (18:23 +0000)
for module in ; do

So we add a `.' in front of the $4 to make it look like this:

for module in . $4 ; do

This works even if $4 is empty ...

glib.m4

diff --git a/glib.m4 b/glib.m4
index f26ccdc..3b439da 100644 (file)
--- a/glib.m4
+++ b/glib.m4
@@ -29,7 +29,7 @@ AC_ARG_ENABLE(glibtest, [  --disable-glibtest       Do not try to compile and ru
      fi
   fi
 
-  for module in $4 ; do
+  for module in $4 ; do
       case "$module" in
          gmodule) 
              glib_config_args="$glib_config_args gmodule"