sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_"
mv -f $l"_" $l
- # 3. process scotch dependencies
+ # 17. process scotch dependencies
scotchdir=`printenv SCOTCHDIR`/bin
if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi
sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_"
mv -f $l"_" $l
- # 4. process libGL.la dependencies
+ # 18. process libGL.la dependencies
if test `uname -m` = "x86_64" ; then
libGLpath=/usr/lib64/libGL.la
else
sed -e "s%$libGLpath%""%g" $l > $l"_"
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
fi
done