(
  cd tcl$VERSION/unix &&

  # This sedit line is only a temporary fix. When the next version of tcl and tk is available
  # this line should be deleted.

  sedit "s:system=MP-RAS-\`awk '{print }' /etc/.relid'\`:system=MP-RAS-\`awk '{print }' /etc/.relid\`:g" configure &&

  ./configure ZIP_PROG=zip \
              --prefix=/usr \
              --mandir=/usr/share/man \
              --enable-threads \
              --disable-rpath \
              --enable-64bit $OPTS


) &&

cd unix &&

# This sedit line is only a temporary fix. When the next version of tcl and tk is available
# this line should be deleted.

TK_VER=`lvu version tk | cut -d. -f1-2`

sedit "s:system=MP-RAS-\`awk '{print }' /etc/.relid'\`:system=MP-RAS-\`awk '{print }' /etc/.relid\`:g" configure &&

./configure ZIP_PROG=zip \
            --prefix=/usr \
            --mandir=/usr/share/man \
            --with-tcl=../tcl$VERSION/unix \
            --enable-threads \
            --disable-rpath \
            --enable-64bit $OPTS &&

export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" &&

default_make &&

make install-private-headers &&

ln -sf wish${TK_VER} /usr/bin/wish
