#
# set -o errexit -o noglob are assumed.
#
pkg_build_dir() {
if [ -z "${PKG_BUILD_DIR}" ]; then
if [ -e "${WORKDIR}/${PKG_SUBDIR}/configure" ]\
|| [ -e "${WORKDIR}/${PKG_SUBDIR}/configure.ac" ]\
|| [ -e "${WORKDIR}/${PKG_SUBDIR}/configure.in" ]; then
set_build_dir "${PKG_SUBDIR}" "${PKG_BUILD_TYPE:-native}";
else
PKG_BUILD_DIR="${PKG_SUBDIR}";
fi;
fi;
};
# vim:filetype=sh