This is untested, but ought to be enough to still allow it to work automatically when the entire curl source tree is dropped into a full Android source tree.