depends  sed       &&
depends  AWK       &&
depends  gcc       &&
depends  smgl-fhs  &&
depends  PKG-CONFIG '--with-pkg-config --enable-pc-files' &&

optional_depends -sub CXX gcc                                     \
                  "--with-cxx  --with-cxx-binding"        \
                  "--without-cxx  --without-cxx-binding"  \
                  "for C++ support and bindings"          &&

optional_depends  GNAT                  \
                  ""                    \
                  "--without-ada"       \
                  "for ADA95 bindings"  &&

optional_depends gpm                                         \
                 "--with-gpm"                                \
                 "--without-gpm"                             \
                 "for mouse support on a GNU/Linux console"  &&

message "Warning: PCRE2 library usage seems broken and kills samba4 build." &&
optional_depends pcre2 --with{,out}-pcre2 'use PCRE2 for regular-expressions'
