#!/bin/sh

. config/options $1

cd $PKG_BUILD
ac_cv_path_WPASUPPLICANT="/sbin/wpa_supplicant" \
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --disable-gtk-doc \
            --disable-debug \
            --enable-threads \
            --enable-ethernet=builtin \
            --enable-wifi=builtin \
            --disable-bluetooth \
            --disable-hh2serial-gps \
            --disable-ofono \
            --disable-dhclient \
            --disable-openconnect \
            --enable-portal=builtin \
            --disable-openvpn \
            --enable-loopback=builtin \
            --enable-dnsproxy=builtin \
            --disable-pacrunner \
            --enable-google=builtin \
            --enable-meego=builtin \
            --disable-iwmx \
            --disable-iospm \
            --enable-ntpd=builtin \
            --with-ntpd="/usr/sbin/ntpd" \
            --disable-systemd \
            --disable-polkit \
            --enable-client \
            --disable-tools \
            --disable-test \
            --disable-fake \
            --disable-capng \
            --enable-datafiles \
            --disable-silent-rules \

make
