chmod a+x $l
done
+tmp=""
+if [ -n "${TCLHOME}" ]; then
+ tmp="-L${TCLHOME}/lib"
+fi
+echo $tmp
+TCL_MAJOR_VERSION=`grep -e "TCL_MAJOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MAJOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+TCL_MINOR_VERSION=`grep -e "TCL_MINOR_VERSION" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_MINOR_VERSION=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+TCL_PATCH_LEVEL=`grep -e "TCL_PATCH_LEVEL" ${TCLHOME}/lib/tclConfig.sh | sed -e "s/TCL_PATCH_LEVEL=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+
+export TCL_VERSION=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION$TCL_PATCH_LEVEL
+
+lnew="_new"
+cd ${PRODUCT_DIR}
+for l in `find -type f -name *.la`; do
+for ll in $l; do
+f=`grep "tcltk" $ll`
+if test "$f" != ""; then
+sed -e "s%\(.*\)\([[:space:]].*-L.*/tcltk-${TCL_VERSION}/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" $l > $l$lnew
+mv $l$lnew $l
+chmod 755 $l
+fi
+done
+done
+
print_env
}
check_jb tar xfz ${SOURCE_DIR}/libxml2-2.6.27.tar.gz -C ${INSTALL_ROOT}
+cd ${PRODUCT_DIR}/lib
+export libdir=`grep -e "libdir=.*" libxml2.la | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+cd ..
+lnew="_new"
+for l in `find -type f -name *.la`; do
+sed -e "s%${libdir}%${PRODUCT_DIR}/lib%g" $l > $l$lnew
+mv $l$lnew $l
+chmod 755 $l
+done
+
print_env
}