#!/bin/sh

. config/options

if pkg_uses $1 xdialog; then
    CFG_XDIALOG=""
else
    CFG_XDIALOG="--disable-Xdialog"
fi

cd $BUILD/$1*
export ac_cv_path_NCURSES_CONFIG="$ROOT/$TOOLCHAIN/bin/ncurses-config"
do_configure \
            --disable-nls \
            --without-dbmalloc \
            --without-dmalloc \
            --with-ncurses \
            --disable-widec \
            --disable-rc-file \
            --disable-form \
            --disable-mixedform \
            --disable-tailbox \
            $CFG_XDIALOG

make
make_install 
