Fix empty for loop, the Zucchi way.
authorElliot Lee <sopwith@src.gnome.org>
Fri, 3 Dec 1999 15:11:06 +0000 (15:11 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Fri, 3 Dec 1999 15:11:06 +0000 (15:11 +0000)
Fix empty for loop, the Zucchi way.

svn path=/trunk/; revision=1021

hack-macros/gnome.m4

index 98312a3..078519f 100644 (file)
@@ -87,7 +87,7 @@ AC_ARG_ENABLE(gnometest, [  --disable-gnometest       Do not try to compile and
   fi
 
   tmp_gnome_libdir=`$GNOME_CONFIG $gnome_config_args --libdir`
-  for module in $4; do
+  for module in $4 ""; do
        if test -f $tmp_gnome_libdir/$module'Conf'.sh; then
                tmp_bsnom=`echo $module | tr a-z A-Z`
                eval $tmp_bsnom'_CFLAGS'=\"`$GNOME_CONFIG $gnome_config_args --cflags $module`\"
@@ -110,7 +110,7 @@ AC_ARG_ENABLE(gnometest, [  --disable-gnometest       Do not try to compile and
          OAF_LIBS="`$GNOME_CONFIG $gnome_config_args --libs oaf`"
          AC_SUBST(OAF_CFLAGS)
          AC_SUBST(OAF_LIBS)
-       else
+       elif -n "$module"; then
             echo "*** $module library is not installed"
             ifelse([$3], , :, [$3])
        fi