default_pre_build      &&
cd  $SOURCE_DIRECTORY  &&

# Prevent configure & build of unselected components
if [[ $DSSI_HOST == n ]]; then
  patch -p0 < $SCRIPT_DIRECTORY/configure-none.diff
  sedit 's/SUBDIRS =.*/SUBDIRS = tests/' Makefile.in
elif [[ $DSSI_PLUGINS == n ]]; then
  patch -p0 < $SCRIPT_DIRECTORY/configure-host.diff
  sedit 's/SUBDIRS =.*/SUBDIRS = jack-dssi-host tests/' Makefile.in
fi
