#!/bin/bash

# unset the SUBDIR variable since it changes the behavior of make here
unset SUBDIR
# unset pkg_config variable which points to pkg_config version number
unset pkg_config

./configure \
        --prefix="${PREFIX}" \
        --cc=${CC} \
        --disable-doc \
        --enable-shared \
        --enable-static \
        --enable-zlib \
        --enable-pic \
        --enable-gpl \
        --enable-version3 \
        --disable-nonfree \
        --enable-hardcoded-tables \
        --enable-avresample \
        --enable-libfreetype \
        --disable-openssl \
        --disable-gnutls \
        --enable-libvpx \
        --enable-libopenh264 \
        --enable-libopus \
        --enable-pthreads \
        --enable-postproc

make -j${CPU_COUNT} ${VERBOSE_AT}
make install -j${CPU_COUNT} ${VERBOSE_AT}
