configure: add print_enabled() function