--- configure-orig	2006-07-27 22:01:11.757080000 -0700
+++ configure	2006-07-28 10:15:07.261577000 -0700
@@ -26818,7 +26818,7 @@
                 dir="$LAM_TOP_BUILDDIR/share/ssi/$kind/$m"
                 lt="$dir/libtool"
                 if test -x "$lt" -a -f "$dir/Makefile"; then
-                    flags1="`egrep '^LDFLAGS \t*=' $dir/Makefile | cut -d= -f2`"
+                    flags1=`sed -n -e 's/^LDFLAGS \t*=\(.*\)$/\1/p' "$dir/Makefile"`
                     flags2="`egrep '^LIBS \t*=' $dir/Makefile | cut -d= -f2`"
 
 #
