Description: use TIFFOpen to check for libtiff existence
 The original code assumed that you can use the inflate() function when linking
 only to libtiff. This used to work only thanks to --add-needed being on by
 default (because libtiff is linked to zlib).
 .
 This patch fixed the code to use the TIFFOpen() function instead, which is
 provided directly by libtiff.
Author: Jakub Wilk <jwilk@debian.org>
Bug: http://code.google.com/p/iulib/issues/detail?id=27
Bug-Debian: http://bugs.debian.org/651402
Forwarded: no
Last-Update: 2012-04-21

--- a/SConstruct
+++ b/SConstruct
@@ -65,7 +65,7 @@
 
 assert conf.CheckLibWithHeader('png', 'png.h', 'C', 'png_byte;', 1),"please install: libpng12-dev"
 assert conf.CheckLibWithHeader('jpeg', 'jconfig.h', 'C', 'jpeg_std_error();', 1),"please install: libjpeg62-dev"    
-assert conf.CheckLibWithHeader('tiff', 'tiff.h', 'C', 'inflate();', 1), "please install: libtiff4-dev"
+assert conf.CheckLibWithHeader('tiff', 'tiff.h', 'C', 'TIFFOpen();', 1), "please install: libtiff4-dev"
 
 ### check for optional parts
 
