Enhance travis test

Test all possible combinations of configure options in travis.