#!/bin/sh

. config/options $1

setup_toolchain host

cd $BUILD/$PKG_NAME-$PKG_VERSION

EMACS="no" \
ac_cv_path_M4=$ROOT/$TOOLCHAIN/bin/m4 \
ac_cv_prog_gnu_m4_gnu=no \
./configure --host=$HOST_NAME \
            --build=$HOST_NAME \
            --target=$TARGET_NAME \
            --prefix=$ROOT/$TOOLCHAIN \

make
make install
make prefix=$SYSROOT_PREFIX/usr install
