# 15. process libxml dependencies
libxmldir=`printenv LIBXML_DIR`/lib
if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv LIBXML_DIR`/lib ; fi
- sed -e "s%\(.*\)\([[:space:]].*/lib/libxml2.la[[:space:]]\)\(.*\)%\1 ${libxmldir}/libxml2.la \3%g" \
- -e "s%-L[^[:space:]]*libxml2[^[:space:]]*/lib%-L${libxmldir}%g" $l > $l"_"
+ sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2[^[:space:]]*/lib% \1${libxmldir}%g" $l > $l"_"
mv -f $l"_" $l
# 16. process metis dependencies
mv -f $l"_" $l
# 19. process graphviz dependencies
- graphvizdir=`printenv GRAPHVIZHOME`
- if [ -n "${graphvizdir}" ] && [ -d "${graphvizdir}" ] ; then
- sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz-[0-9]\+\.[0-9]\+\.[0-9]\+% \1${graphvizdir}%g" $l > $l"_"
- chmod -f --reference=$l $l"_"
- mv -f $l"_" $l
- fi
+ graphvizdir=`printenv GRAPHVIZHOME`/lib
+ if [ ! -d ${graphvizdir} ] ; then graphvizdir=`printenv GRAPHVIZHOME`/lib ; fi
+ sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz[^[:space:]]*/lib% \1${graphvizdir}%g" $l > $l"_"
+ chmod -f --reference=$l $l"_"
+ mv -f $l"_" $l
fi
done