. "$GRIMOIRE/FUNCTIONS" &&
depends  binutils       &&
depends  autoconf       &&
depends  gcc            &&
depends  GETTEXT        &&
depends  perl           &&
depends  python3        &&
depends  rsync          &&
depends  smgl-fhs       &&
depends  smgl-archspecs &&

# Force gcc to update to current version before compiling if major version does not match
local GLIBC_INSTALLED_GCC="$(installed_version gcc)" &&
local GLIBC_GCC_VERSION="$(gaze version gcc | grep gcc | awk '{print $4}' | cut -d. -f1)" &&
if [[ "x${GLIBC_INSTALLED_GCC//.*/}" != "x${GLIBC_GCC_VERSION}" ]]; then
  force_depends gcc
fi &&

# Need binutils >=2.30 for --no-dynamic-linker support
if is_version_less $(installed_version binutils) 2.30; then
  force_depends binutils
fi &&

runtime_depends tzdata  &&
optional_depends libselinux '--with-selinux' '--without-selinux' 'for selinux support' &&

if  [  "${GLIBC_BRANCH/-*}" = "scm"  ]; then
	depends git
fi                                     &&

if  [  "$GLIBC_USEIDN" = "y"  ]; then
	depends libidn
fi
