I was trying to build mesa with the d3d1x statetracker selected. It was always failing because of missing .idl files. After investigation, I discovered the missing files were not part of mesa, but of wine. After installing wine-dev, the build is now able to finish correctly. autogen should check for wine-dev dependency when building with d3d1x statetracker and output a message if it can't be found so the user knows that it's missing. I'll try to make a patch for that and submit it soon.
Shouldn't the d3d1x statetracker be free of wine? If so, the best solution would be to bring whatever is needed into mesa, isn't it?
http://cgit.freedesktop.org/mesa/mesa/commit/?id=058fb0071639d076a850dd29120a232fe7fdbce6
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.