used gcc=$GCC
EOF
check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
rm -fr ${PRODUCT_WORK}
source ${INSTALL_WORK}/$SHRC
check_jb tar xfz ${SOURCE_DIR}/graphviz-2.2.1.tar.gz -C ${INSTALL_ROOT}
+cd ${PRODUCT_DIR}/lib/graphviz
+for l in `ls *.la`; do
+ libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
+ sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" $l > _$l
+ libdir=`dirname $libdir`
+ sed -e "s%${libdir}%${PRODUCT_DIR}/lib/graphviz%g" _$l > $l
+ rm -f _$l
+ chmod a+x $l
+done
print_env
}