add configure option for task merging