4
arg: with-zlib-inc=[path],Path to zlib include files
5
arg: with-zlib-lib=[path],Path to zlib library files
9
//----------------------------------------------------------------------------
11
//----------------------------------------------------------------------------
12
class qc_zlib : public ConfObj
15
qc_zlib(Conf *c) : ConfObj(c) {}
16
QString name() const { return "zlib"; }
17
QString shortname() const { return "zlib"; }
23
s = conf->getenv("QC_WITH_ZLIB_INC");
25
if(!conf->checkHeader(s, "zlib.h"))
30
if(!conf->findHeader("zlib.h", QStringList(), &s))
35
s = conf->getenv("QC_WITH_ZLIB_LIB");
37
if(!conf->checkLibrary(s, "z"))
42
if(!conf->findLibrary("z", &s))
48
conf->addIncludePath(inc);
50
conf->addLib(QString("-L") + s);