TkAgg compilation

Hi,

I've packaged matplotlib for the Guix functional package manager
(http://www.gnu.org/software/guix/) which compiles software in
isolated environments. The 'setup.py' program fails to detect the
location and version of the Tlc/Tk libraries required to build the
'TkAgg' backend.

Looking into the problem I have the impression that the detection
method is a little bit out of date. Tcl/Tk ships with 'pkg-config' .pc
files and it would probably be more robust to use this approach (as
used to detect other libraries).

The attached patch does this and fixes the problem for us.

Regards,
Fede
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matplotlib-setupext-tk.patch
Type: text/x-diff
Size: 1315 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20151202/bdc08855/attachment.patch>