Do you have wx-common installed ?
It's not in the build-dependencies, because it's not needed for normal build-process.
It is in (debian-)build-dependencies, because it contains also wx-config .
Wrong again, wx-config is in libwxgtk2.8-dev, but nevertheless the missing wxwin.m4 is in wx-common.