#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build ncurses
$SCRIPTS/build expat

export bash_cv_have_mbstate_t=set

export CC_FOR_BUILD="$HOST_CC"
export CFLAGS_FOR_BUILD="$HOST_CFLAGS"

cd $PKG_BUILD

mkdir -p objdir
cd objdir

../configure --host=$TARGET_NAME \
             --build=$HOST_NAME \
             --prefix=/usr \
             --disable-nls \
             --disable-sim \
             --without-x \
             --disable-tui \
             --disable-libada \

make
