I cannot see what's that WX_CFG variable used for there, but all the information it needs is gathered from `wx-config --cflags` to compile. If it was compiled with unicode support (most common), `wx-config --cflags` will give you the required include paths, options and defines for it.