Index: kitsh/buildsrc/kitsh-0.0/aclocal.m4 ================================================================== --- kitsh/buildsrc/kitsh-0.0/aclocal.m4 +++ kitsh/buildsrc/kitsh-0.0/aclocal.m4 @@ -91,13 +91,15 @@ if echo "${lib}" | grep '^-l' >/dev/null; then if echo " ${NEWLIBS} " | grep " ${lib} " >/dev/null; then continue fi fi + NEWLIBS="${NEWLIBS} ${lib}" done LIBS="${NEWLIBS}" + unset NEWLIBS fi AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LIBS) @@ -123,11 +125,11 @@ break ]) done if test "${found}" = "1"; then - SAVELIBS=`echo "$SAVELIBS" | sed 's@ $2 @@'` + SAVELIBS=`echo "$SAVELIBS" | sed 's@ $2 @ @'` LIBS="${SAVELIBS} ${staticlib}" AC_MSG_RESULT([${staticlib}]) AC_SUBST(LIBS)