[sub-lib] add user option for enable/disable sub-lib