I have to cross-compile wxGtk (an old version: 2.8.11) and managed to setup the environment so that configure runs successfully.
configure
$ export CC=/opt/my_