~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-14 16:33:49 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050914163349-3zacov4afysz5cw5
Tags: 0.9.3-2ubuntu1
* Sync with debian
* Applied patch to psi.desktop to start psi without gpg-agent use (known
  issue)
* Updated README.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  --help             This help text.
16
16
 
17
17
Dependency options:
 
18
  --with-qca-inc=[path]     Path to QCA include files
 
19
  --with-qca-lib=[path]     Path to QCA library files
18
20
  --with-zlib-inc=[path]    Path to zlib include files
19
21
  --with-zlib-lib=[path]    Path to zlib library files
20
22
  --disable-xss             Disable use of the XScreenSaver extension
47
49
                        shift
48
50
                        ;;
49
51
 
 
52
                --with-qca-inc=*)
 
53
                        QC_WITH_QCA_INC="${1#--with-qca-inc=}"
 
54
                        shift
 
55
                        ;;
 
56
 
 
57
                --with-qca-lib=*)
 
58
                        QC_WITH_QCA_LIB="${1#--with-qca-lib=}"
 
59
                        shift
 
60
                        ;;
 
61
 
50
62
                --with-zlib-inc=*)
51
63
                        QC_WITH_ZLIB_INC="${1#--with-zlib-inc=}"
52
64
                        shift
98
110
echo BINDIR=$BINDIR
99
111
echo LIBDIR=$LIBDIR
100
112
echo QTDIR=$QTDIR
 
113
echo QC_WITH_QCA_INC=$QC_WITH_QCA_INC
 
114
echo QC_WITH_QCA_LIB=$QC_WITH_QCA_LIB
101
115
echo QC_WITH_ZLIB_INC=$QC_WITH_ZLIB_INC
102
116
echo QC_WITH_ZLIB_LIB=$QC_WITH_ZLIB_LIB
103
117
echo QC_DISABLE_xss=$QC_DISABLE_xss
210
224
                        return false;
211
225
        }
212
226
};
 
227
#line 1 "qca.qcm"
 
228
/*
 
229
-----BEGIN QCMOD-----
 
230
name: QCA 1.0
 
231
arg: with-qca-inc=[path],Path to QCA include files
 
232
arg: with-qca-lib=[path],Path to QCA library files
 
233
-----END QCMOD-----
 
234
*/
 
235
 
 
236
//----------------------------------------------------------------------------
 
237
// qc_qca
 
238
//----------------------------------------------------------------------------
 
239
class qc_qca : public ConfObj
 
240
{
 
241
public:
 
242
        qc_qca(Conf *c) : ConfObj(c) {}
 
243
        QString name() const { return "QCA 1.0"; }
 
244
        QString shortname() const { return "qca"; }
 
245
        bool exec()
 
246
        {
 
247
                QString inc, lib;
 
248
                QString s;
 
249
 
 
250
                s = conf->getenv("QC_WITH_QCA_INC");
 
251
                if(!s.isEmpty()) {
 
252
                        if(!conf->checkHeader(s, "qca.h"))
 
253
                                return false;
 
254
                        inc = s;
 
255
                }
 
256
                else {
 
257
                        if(!conf->findHeader("qca.h", QStringList(), &s))
 
258
                                return false;
 
259
                        inc = s;
 
260
                }
 
261
 
 
262
                s = conf->getenv("QC_WITH_QCA_LIB");
 
263
                if(!s.isEmpty()) {
 
264
                        if(!conf->checkLibrary(s, "qca"))
 
265
                                return false;
 
266
                        lib = s;
 
267
                }
 
268
                else {
 
269
                        if(!conf->findLibrary("qca", &s))
 
270
                                return false;
 
271
                        lib = s;
 
272
                }
 
273
 
 
274
                if(!inc.isEmpty())
 
275
                        conf->addIncludePath(inc);
 
276
                if(!lib.isEmpty())
 
277
                        conf->addLib(QString("-L") + s);
 
278
                conf->addLib("-lqca");
 
279
 
 
280
                return true;
 
281
        }
 
282
};
213
283
#line 1 "zlib.qcm"
214
284
/*
215
285
-----BEGIN QCMOD-----
556
626
    o = new qc_qt31(conf);
557
627
    o->required = true;
558
628
    o->disabled = false;
 
629
    o = new qc_qca(conf);
 
630
    o->required = true;
 
631
    o->disabled = false;
559
632
    o = new qc_zlib(conf);
560
633
    o->required = true;
561
634
    o->disabled = false;
973
1046
export BINDIR
974
1047
export LIBDIR
975
1048
export QTDIR
 
1049
export QC_WITH_QCA_INC
 
1050
export QC_WITH_QCA_LIB
976
1051
export QC_WITH_ZLIB_INC
977
1052
export QC_WITH_ZLIB_LIB
978
1053
export QC_DISABLE_xss