Warning, /games/ksirk/ksirk/iris/qcm/zlib.qcm is written in an unsupported language. File is not indexed.
0001 /* 0002 -----BEGIN QCMOD----- 0003 name: zlib 0004 arg: with-zlib-inc=[path],Path to zlib include files 0005 arg: with-zlib-lib=[path],Path to zlib library files 0006 -----END QCMOD----- 0007 */ 0008 0009 //---------------------------------------------------------------------------- 0010 // qc_zlib 0011 //---------------------------------------------------------------------------- 0012 class qc_zlib : public ConfObj 0013 { 0014 public: 0015 qc_zlib(Conf *c) : ConfObj(c) {} 0016 QString name() const { return "zlib"; } 0017 QString shortname() const { return "zlib"; } 0018 bool exec() 0019 { 0020 QString inc, lib; 0021 QString s; 0022 0023 s = conf->getenv("QC_WITH_ZLIB_INC"); 0024 if(!s.isEmpty()) { 0025 if(!conf->checkHeader(s, "zlib.h")) 0026 return false; 0027 inc = s; 0028 } 0029 else { 0030 if(!conf->findHeader("zlib.h", QStringList(), &s)) 0031 return false; 0032 inc = s; 0033 } 0034 0035 s = conf->getenv("QC_WITH_ZLIB_LIB"); 0036 if(!s.isEmpty()) { 0037 if(!conf->checkLibrary(s, "z")) 0038 return false; 0039 lib = s; 0040 } 0041 else { 0042 if(!conf->findLibrary("z", &s)) 0043 return false; 0044 lib = s; 0045 } 0046 0047 if(!inc.isEmpty()) 0048 conf->addIncludePath(inc); 0049 if(!lib.isEmpty()) 0050 conf->addLib(QString("-L") + s); 0051 conf->addLib("-lz"); 0052 0053 return true; 0054 } 0055 };