Browse Source

Initial import

tags/r14.0.0
Timothy Pearson 7 years ago
commit
4462592a15
100 changed files with 29059 additions and 0 deletions
  1. 3
    0
      AUTHORS
  2. 674
    0
      COPYING
  3. 130
    0
      ChangeLog
  4. 39
    0
      Makefile.am
  5. 1015
    0
      Makefile.in
  6. 4
    0
      NEWS
  7. 19
    0
      README
  8. 10
    0
      TODO
  9. 186
    0
      aminclude.am
  10. 32
    0
      autogen.sh
  11. 146
    0
      configure.ac
  12. 250
    0
      doxygen-api.cfg
  13. 14
    0
      libcaldav.pc
  14. 14
    0
      libcaldav.pc.in
  15. 17
    0
      m4/.svn/all-wcprops
  16. 96
    0
      m4/.svn/entries
  17. 5
    0
      m4/.svn/prop-base/ax_prog_doxygen.m4.svn-base
  18. 312
    0
      m4/.svn/text-base/acinclude.m4.svn-base
  19. 533
    0
      m4/.svn/text-base/ax_prog_doxygen.m4.svn-base
  20. 312
    0
      m4/acinclude.m4
  21. 533
    0
      m4/ax_prog_doxygen.m4
  22. 7663
    0
      rfc4791.pdf
  23. 137
    0
      src/.svn/all-wcprops
  24. 776
    0
      src/.svn/entries
  25. 53
    0
      src/.svn/text-base/Makefile.am.svn-base
  26. 649
    0
      src/.svn/text-base/Makefile.in.svn-base
  27. 131
    0
      src/.svn/text-base/add-caldav-object.c.svn-base
  28. 35
    0
      src/.svn/text-base/add-caldav-object.h.svn-base
  29. 713
    0
      src/.svn/text-base/caldav-utils.c.svn-base
  30. 221
    0
      src/.svn/text-base/caldav-utils.h.svn-base
  31. 745
    0
      src/.svn/text-base/caldav.c.svn-base
  32. 343
    0
      src/.svn/text-base/caldav.h.svn-base
  33. 284
    0
      src/.svn/text-base/delete-caldav-object.c.svn-base
  34. 35
    0
      src/.svn/text-base/delete-caldav-object.h.svn-base
  35. 254
    0
      src/.svn/text-base/get-caldav-report.c.svn-base
  36. 43
    0
      src/.svn/text-base/get-caldav-report.h.svn-base
  37. 138
    0
      src/.svn/text-base/get-display-name.c.svn-base
  38. 34
    0
      src/.svn/text-base/get-display-name.h.svn-base
  39. 292
    0
      src/.svn/text-base/lock-caldav-object.c.svn-base
  40. 55
    0
      src/.svn/text-base/lock-caldav-object.h.svn-base
  41. 442
    0
      src/.svn/text-base/md5.c.svn-base
  42. 52
    0
      src/.svn/text-base/md5.h.svn-base
  43. 296
    0
      src/.svn/text-base/modify-caldav-object.c.svn-base
  44. 34
    0
      src/.svn/text-base/modify-caldav-object.h.svn-base
  45. 135
    0
      src/.svn/text-base/options-caldav-server.c.svn-base
  46. 43
    0
      src/.svn/text-base/options-caldav-server.h.svn-base
  47. 53
    0
      src/Makefile.am
  48. 649
    0
      src/Makefile.in
  49. 132
    0
      src/add-caldav-object.c
  50. 35
    0
      src/add-caldav-object.h
  51. 729
    0
      src/caldav-utils.c
  52. 221
    0
      src/caldav-utils.h
  53. 995
    0
      src/caldav.c
  54. 407
    0
      src/caldav.h
  55. 533
    0
      src/delete-caldav-object.c
  56. 43
    0
      src/delete-caldav-object.h
  57. 472
    0
      src/get-caldav-report.c
  58. 59
    0
      src/get-caldav-report.h
  59. 139
    0
      src/get-display-name.c
  60. 34
    0
      src/get-display-name.h
  61. 140
    0
      src/get-freebusy-report.c
  62. 35
    0
      src/get-freebusy-report.h
  63. 292
    0
      src/lock-caldav-object.c
  64. 55
    0
      src/lock-caldav-object.h
  65. 442
    0
      src/md5.c
  66. 52
    0
      src/md5.h
  67. 555
    0
      src/modify-caldav-object.c
  68. 42
    0
      src/modify-caldav-object.h
  69. 135
    0
      src/options-caldav-server.c
  70. 43
    0
      src/options-caldav-server.h
  71. 17
    0
      test/.svn/all-wcprops
  72. 105
    0
      test/.svn/entries
  73. 8
    0
      test/.svn/text-base/Makefile.am.svn-base
  74. 597
    0
      test/.svn/text-base/Makefile.in.svn-base
  75. 8
    0
      test/Makefile.am
  76. 597
    0
      test/Makefile.in
  77. 35
    0
      test/ics/.svn/all-wcprops
  78. 198
    0
      test/ics/.svn/entries
  79. 13
    0
      test/ics/.svn/text-base/Makefile.am.svn-base
  80. 448
    0
      test/ics/.svn/text-base/Makefile.in.svn-base
  81. 12
    0
      test/ics/.svn/text-base/add.ics.svn-base
  82. 12
    0
      test/ics/.svn/text-base/delete.ics.svn-base
  83. 12
    0
      test/ics/.svn/text-base/modify.ics.svn-base
  84. 13
    0
      test/ics/Makefile.am
  85. 448
    0
      test/ics/Makefile.in
  86. 12
    0
      test/ics/add.ics
  87. 12
    0
      test/ics/delete.ics
  88. 12
    0
      test/ics/modify.ics
  89. 23
    0
      test/src/.svn/all-wcprops
  90. 130
    0
      test/src/.svn/entries
  91. 24
    0
      test/src/.svn/text-base/Makefile.am.svn-base
  92. 568
    0
      test/src/.svn/text-base/Makefile.in.svn-base
  93. 383
    0
      test/src/.svn/text-base/caldav-test.c.svn-base
  94. 24
    0
      test/src/Makefile.am
  95. 568
    0
      test/src/Makefile.in
  96. 383
    0
      test/src/caldav-test.c
  97. 23
    0
      test/unittest/.svn/all-wcprops
  98. 130
    0
      test/unittest/.svn/entries
  99. 5
    0
      test/unittest/.svn/prop-base/Makefile.am.svn-base
  100. 0
    0
      test/unittest/.svn/prop-base/Makefile.in.svn-base

+ 3
- 0
AUTHORS View File

@@ -0,0 +1,3 @@
1
+Michael Rasmussen (mir@datanom.net)
2
+Emmanuel Blindauer (e.blindauer@gmail.com)
3
+

+ 674
- 0
COPYING View File

@@ -0,0 +1,674 @@
1
+                    GNU GENERAL PUBLIC LICENSE
2
+                       Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+                            Preamble
9
+
10
+  The GNU General Public License is a free, copyleft license for
11
+software and other kinds of works.
12
+
13
+  The licenses for most software and other practical works are designed
14
+to take away your freedom to share and change the works.  By contrast,
15
+the GNU General Public License is intended to guarantee your freedom to
16
+share and change all versions of a program--to make sure it remains free
17
+software for all its users.  We, the Free Software Foundation, use the
18
+GNU General Public License for most of our software; it applies also to
19
+any other work released this way by its authors.  You can apply it to
20
+your programs, too.
21
+
22
+  When we speak of free software, we are referring to freedom, not
23
+price.  Our General Public Licenses are designed to make sure that you
24
+have the freedom to distribute copies of free software (and charge for
25
+them if you wish), that you receive source code or can get it if you
26
+want it, that you can change the software or use pieces of it in new
27
+free programs, and that you know you can do these things.
28
+
29
+  To protect your rights, we need to prevent others from denying you
30
+these rights or asking you to surrender the rights.  Therefore, you have
31
+certain responsibilities if you distribute copies of the software, or if
32
+you modify it: responsibilities to respect the freedom of others.
33
+
34
+  For example, if you distribute copies of such a program, whether
35
+gratis or for a fee, you must pass on to the recipients the same
36
+freedoms that you received.  You must make sure that they, too, receive
37
+or can get the source code.  And you must show them these terms so they
38
+know their rights.
39
+
40
+  Developers that use the GNU GPL protect your rights with two steps:
41
+(1) assert copyright on the software, and (2) offer you this License
42
+giving you legal permission to copy, distribute and/or modify it.
43
+
44
+  For the developers' and authors' protection, the GPL clearly explains
45
+that there is no warranty for this free software.  For both users' and
46
+authors' sake, the GPL requires that modified versions be marked as
47
+changed, so that their problems will not be attributed erroneously to
48
+authors of previous versions.
49
+
50
+  Some devices are designed to deny users access to install or run
51
+modified versions of the software inside them, although the manufacturer
52
+can do so.  This is fundamentally incompatible with the aim of
53
+protecting users' freedom to change the software.  The systematic
54
+pattern of such abuse occurs in the area of products for individuals to
55
+use, which is precisely where it is most unacceptable.  Therefore, we
56
+have designed this version of the GPL to prohibit the practice for those
57
+products.  If such problems arise substantially in other domains, we
58
+stand ready to extend this provision to those domains in future versions
59
+of the GPL, as needed to protect the freedom of users.
60
+
61
+  Finally, every program is threatened constantly by software patents.
62
+States should not allow patents to restrict development and use of
63
+software on general-purpose computers, but in those that do, we wish to
64
+avoid the special danger that patents applied to a free program could
65
+make it effectively proprietary.  To prevent this, the GPL assures that
66
+patents cannot be used to render the program non-free.
67
+
68
+  The precise terms and conditions for copying, distribution and
69
+modification follow.
70
+
71
+                       TERMS AND CONDITIONS
72
+
73
+  0. Definitions.
74
+
75
+  "This License" refers to version 3 of the GNU General Public License.
76
+
77
+  "Copyright" also means copyright-like laws that apply to other kinds of
78
+works, such as semiconductor masks.
79
+
80
+  "The Program" refers to any copyrightable work licensed under this
81
+License.  Each licensee is addressed as "you".  "Licensees" and
82
+"recipients" may be individuals or organizations.
83
+
84
+  To "modify" a work means to copy from or adapt all or part of the work
85
+in a fashion requiring copyright permission, other than the making of an
86
+exact copy.  The resulting work is called a "modified version" of the
87
+earlier work or a work "based on" the earlier work.
88
+
89
+  A "covered work" means either the unmodified Program or a work based
90
+on the Program.
91
+
92
+  To "propagate" a work means to do anything with it that, without
93
+permission, would make you directly or secondarily liable for
94
+infringement under applicable copyright law, except executing it on a
95
+computer or modifying a private copy.  Propagation includes copying,
96
+distribution (with or without modification), making available to the
97
+public, and in some countries other activities as well.
98
+
99
+  To "convey" a work means any kind of propagation that enables other
100
+parties to make or receive copies.  Mere interaction with a user through
101
+a computer network, with no transfer of a copy, is not conveying.
102
+
103
+  An interactive user interface displays "Appropriate Legal Notices"
104
+to the extent that it includes a convenient and prominently visible
105
+feature that (1) displays an appropriate copyright notice, and (2)
106
+tells the user that there is no warranty for the work (except to the
107
+extent that warranties are provided), that licensees may convey the
108
+work under this License, and how to view a copy of this License.  If
109
+the interface presents a list of user commands or options, such as a
110
+menu, a prominent item in the list meets this criterion.
111
+
112
+  1. Source Code.
113
+
114
+  The "source code" for a work means the preferred form of the work
115
+for making modifications to it.  "Object code" means any non-source
116
+form of a work.
117
+
118
+  A "Standard Interface" means an interface that either is an official
119
+standard defined by a recognized standards body, or, in the case of
120
+interfaces specified for a particular programming language, one that
121
+is widely used among developers working in that language.
122
+
123
+  The "System Libraries" of an executable work include anything, other
124
+than the work as a whole, that (a) is included in the normal form of
125
+packaging a Major Component, but which is not part of that Major
126
+Component, and (b) serves only to enable use of the work with that
127
+Major Component, or to implement a Standard Interface for which an
128
+implementation is available to the public in source code form.  A
129
+"Major Component", in this context, means a major essential component
130
+(kernel, window system, and so on) of the specific operating system
131
+(if any) on which the executable work runs, or a compiler used to
132
+produce the work, or an object code interpreter used to run it.
133
+
134
+  The "Corresponding Source" for a work in object code form means all
135
+the source code needed to generate, install, and (for an executable
136
+work) run the object code and to modify the work, including scripts to
137
+control those activities.  However, it does not include the work's
138
+System Libraries, or general-purpose tools or generally available free
139
+programs which are used unmodified in performing those activities but
140
+which are not part of the work.  For example, Corresponding Source
141
+includes interface definition files associated with source files for
142
+the work, and the source code for shared libraries and dynamically
143
+linked subprograms that the work is specifically designed to require,
144
+such as by intimate data communication or control flow between those
145
+subprograms and other parts of the work.
146
+
147
+  The Corresponding Source need not include anything that users
148
+can regenerate automatically from other parts of the Corresponding
149
+Source.
150
+
151
+  The Corresponding Source for a work in source code form is that
152
+same work.
153
+
154
+  2. Basic Permissions.
155
+
156
+  All rights granted under this License are granted for the term of
157
+copyright on the Program, and are irrevocable provided the stated
158
+conditions are met.  This License explicitly affirms your unlimited
159
+permission to run the unmodified Program.  The output from running a
160
+covered work is covered by this License only if the output, given its
161
+content, constitutes a covered work.  This License acknowledges your
162
+rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+  You may make, run and propagate covered works that you do not
165
+convey, without conditions so long as your license otherwise remains
166
+in force.  You may convey covered works to others for the sole purpose
167
+of having them make modifications exclusively for you, or provide you
168
+with facilities for running those works, provided that you comply with
169
+the terms of this License in conveying all material for which you do
170
+not control copyright.  Those thus making or running the covered works
171
+for you must do so exclusively on your behalf, under your direction
172
+and control, on terms that prohibit them from making any copies of
173
+your copyrighted material outside their relationship with you.
174
+
175
+  Conveying under any other circumstances is permitted solely under
176
+the conditions stated below.  Sublicensing is not allowed; section 10
177
+makes it unnecessary.
178
+
179
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+  No covered work shall be deemed part of an effective technological
182
+measure under any applicable law fulfilling obligations under article
183
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+similar laws prohibiting or restricting circumvention of such
185
+measures.
186
+
187
+  When you convey a covered work, you waive any legal power to forbid
188
+circumvention of technological measures to the extent such circumvention
189
+is effected by exercising rights under this License with respect to
190
+the covered work, and you disclaim any intention to limit operation or
191
+modification of the work as a means of enforcing, against the work's
192
+users, your or third parties' legal rights to forbid circumvention of
193
+technological measures.
194
+
195
+  4. Conveying Verbatim Copies.
196
+
197
+  You may convey verbatim copies of the Program's source code as you
198
+receive it, in any medium, provided that you conspicuously and
199
+appropriately publish on each copy an appropriate copyright notice;
200
+keep intact all notices stating that this License and any
201
+non-permissive terms added in accord with section 7 apply to the code;
202
+keep intact all notices of the absence of any warranty; and give all
203
+recipients a copy of this License along with the Program.
204
+
205
+  You may charge any price or no price for each copy that you convey,
206
+and you may offer support or warranty protection for a fee.
207
+
208
+  5. Conveying Modified Source Versions.
209
+
210
+  You may convey a work based on the Program, or the modifications to
211
+produce it from the Program, in the form of source code under the
212
+terms of section 4, provided that you also meet all of these conditions:
213
+
214
+    a) The work must carry prominent notices stating that you modified
215
+    it, and giving a relevant date.
216
+
217
+    b) The work must carry prominent notices stating that it is
218
+    released under this License and any conditions added under section
219
+    7.  This requirement modifies the requirement in section 4 to
220
+    "keep intact all notices".
221
+
222
+    c) You must license the entire work, as a whole, under this
223
+    License to anyone who comes into possession of a copy.  This
224
+    License will therefore apply, along with any applicable section 7
225
+    additional terms, to the whole of the work, and all its parts,
226
+    regardless of how they are packaged.  This License gives no
227
+    permission to license the work in any other way, but it does not
228
+    invalidate such permission if you have separately received it.
229
+
230
+    d) If the work has interactive user interfaces, each must display
231
+    Appropriate Legal Notices; however, if the Program has interactive
232
+    interfaces that do not display Appropriate Legal Notices, your
233
+    work need not make them do so.
234
+
235
+  A compilation of a covered work with other separate and independent
236
+works, which are not by their nature extensions of the covered work,
237
+and which are not combined with it such as to form a larger program,
238
+in or on a volume of a storage or distribution medium, is called an
239
+"aggregate" if the compilation and its resulting copyright are not
240
+used to limit the access or legal rights of the compilation's users
241
+beyond what the individual works permit.  Inclusion of a covered work
242
+in an aggregate does not cause this License to apply to the other
243
+parts of the aggregate.
244
+
245
+  6. Conveying Non-Source Forms.
246
+
247
+  You may convey a covered work in object code form under the terms
248
+of sections 4 and 5, provided that you also convey the
249
+machine-readable Corresponding Source under the terms of this License,
250
+in one of these ways:
251
+
252
+    a) Convey the object code in, or embodied in, a physical product
253
+    (including a physical distribution medium), accompanied by the
254
+    Corresponding Source fixed on a durable physical medium
255
+    customarily used for software interchange.
256
+
257
+    b) Convey the object code in, or embodied in, a physical product
258
+    (including a physical distribution medium), accompanied by a
259
+    written offer, valid for at least three years and valid for as
260
+    long as you offer spare parts or customer support for that product
261
+    model, to give anyone who possesses the object code either (1) a
262
+    copy of the Corresponding Source for all the software in the
263
+    product that is covered by this License, on a durable physical
264
+    medium customarily used for software interchange, for a price no
265
+    more than your reasonable cost of physically performing this
266
+    conveying of source, or (2) access to copy the
267
+    Corresponding Source from a network server at no charge.
268
+
269
+    c) Convey individual copies of the object code with a copy of the
270
+    written offer to provide the Corresponding Source.  This
271
+    alternative is allowed only occasionally and noncommercially, and
272
+    only if you received the object code with such an offer, in accord
273
+    with subsection 6b.
274
+
275
+    d) Convey the object code by offering access from a designated
276
+    place (gratis or for a charge), and offer equivalent access to the
277
+    Corresponding Source in the same way through the same place at no
278
+    further charge.  You need not require recipients to copy the
279
+    Corresponding Source along with the object code.  If the place to
280
+    copy the object code is a network server, the Corresponding Source
281
+    may be on a different server (operated by you or a third party)
282
+    that supports equivalent copying facilities, provided you maintain
283
+    clear directions next to the object code saying where to find the
284
+    Corresponding Source.  Regardless of what server hosts the
285
+    Corresponding Source, you remain obligated to ensure that it is
286
+    available for as long as needed to satisfy these requirements.
287
+
288
+    e) Convey the object code using peer-to-peer transmission, provided
289
+    you inform other peers where the object code and Corresponding
290
+    Source of the work are being offered to the general public at no
291
+    charge under subsection 6d.
292
+
293
+  A separable portion of the object code, whose source code is excluded
294
+from the Corresponding Source as a System Library, need not be
295
+included in conveying the object code work.
296
+
297
+  A "User Product" is either (1) a "consumer product", which means any
298
+tangible personal property which is normally used for personal, family,
299
+or household purposes, or (2) anything designed or sold for incorporation
300
+into a dwelling.  In determining whether a product is a consumer product,
301
+doubtful cases shall be resolved in favor of coverage.  For a particular
302
+product received by a particular user, "normally used" refers to a
303
+typical or common use of that class of product, regardless of the status
304
+of the particular user or of the way in which the particular user
305
+actually uses, or expects or is expected to use, the product.  A product
306
+is a consumer product regardless of whether the product has substantial
307
+commercial, industrial or non-consumer uses, unless such uses represent
308
+the only significant mode of use of the product.
309
+
310
+  "Installation Information" for a User Product means any methods,
311
+procedures, authorization keys, or other information required to install
312
+and execute modified versions of a covered work in that User Product from
313
+a modified version of its Corresponding Source.  The information must
314
+suffice to ensure that the continued functioning of the modified object
315
+code is in no case prevented or interfered with solely because
316
+modification has been made.
317
+
318
+  If you convey an object code work under this section in, or with, or
319
+specifically for use in, a User Product, and the conveying occurs as
320
+part of a transaction in which the right of possession and use of the
321
+User Product is transferred to the recipient in perpetuity or for a
322
+fixed term (regardless of how the transaction is characterized), the
323
+Corresponding Source conveyed under this section must be accompanied
324
+by the Installation Information.  But this requirement does not apply
325
+if neither you nor any third party retains the ability to install
326
+modified object code on the User Product (for example, the work has
327
+been installed in ROM).
328
+
329
+  The requirement to provide Installation Information does not include a
330
+requirement to continue to provide support service, warranty, or updates
331
+for a work that has been modified or installed by the recipient, or for
332
+the User Product in which it has been modified or installed.  Access to a
333
+network may be denied when the modification itself materially and
334
+adversely affects the operation of the network or violates the rules and
335
+protocols for communication across the network.
336
+
337
+  Corresponding Source conveyed, and Installation Information provided,
338
+in accord with this section must be in a format that is publicly
339
+documented (and with an implementation available to the public in
340
+source code form), and must require no special password or key for
341
+unpacking, reading or copying.
342
+
343
+  7. Additional Terms.
344
+
345
+  "Additional permissions" are terms that supplement the terms of this
346
+License by making exceptions from one or more of its conditions.
347
+Additional permissions that are applicable to the entire Program shall
348
+be treated as though they were included in this License, to the extent
349
+that they are valid under applicable law.  If additional permissions
350
+apply only to part of the Program, that part may be used separately
351
+under those permissions, but the entire Program remains governed by
352
+this License without regard to the additional permissions.
353
+
354
+  When you convey a copy of a covered work, you may at your option
355
+remove any additional permissions from that copy, or from any part of
356
+it.  (Additional permissions may be written to require their own
357
+removal in certain cases when you modify the work.)  You may place
358
+additional permissions on material, added by you to a covered work,
359
+for which you have or can give appropriate copyright permission.
360
+
361
+  Notwithstanding any other provision of this License, for material you
362
+add to a covered work, you may (if authorized by the copyright holders of
363
+that material) supplement the terms of this License with terms:
364
+
365
+    a) Disclaiming warranty or limiting liability differently from the
366
+    terms of sections 15 and 16 of this License; or
367
+
368
+    b) Requiring preservation of specified reasonable legal notices or
369
+    author attributions in that material or in the Appropriate Legal
370
+    Notices displayed by works containing it; or
371
+
372
+    c) Prohibiting misrepresentation of the origin of that material, or
373
+    requiring that modified versions of such material be marked in
374
+    reasonable ways as different from the original version; or
375
+
376
+    d) Limiting the use for publicity purposes of names of licensors or
377
+    authors of the material; or
378
+
379
+    e) Declining to grant rights under trademark law for use of some
380
+    trade names, trademarks, or service marks; or
381
+
382
+    f) Requiring indemnification of licensors and authors of that
383
+    material by anyone who conveys the material (or modified versions of
384
+    it) with contractual assumptions of liability to the recipient, for
385
+    any liability that these contractual assumptions directly impose on
386
+    those licensors and authors.
387
+
388
+  All other non-permissive additional terms are considered "further
389
+restrictions" within the meaning of section 10.  If the Program as you
390
+received it, or any part of it, contains a notice stating that it is
391
+governed by this License along with a term that is a further
392
+restriction, you may remove that term.  If a license document contains
393
+a further restriction but permits relicensing or conveying under this
394
+License, you may add to a covered work material governed by the terms
395
+of that license document, provided that the further restriction does
396
+not survive such relicensing or conveying.
397
+
398
+  If you add terms to a covered work in accord with this section, you
399
+must place, in the relevant source files, a statement of the
400
+additional terms that apply to those files, or a notice indicating
401
+where to find the applicable terms.
402
+
403
+  Additional terms, permissive or non-permissive, may be stated in the
404
+form of a separately written license, or stated as exceptions;
405
+the above requirements apply either way.
406
+
407
+  8. Termination.
408
+
409
+  You may not propagate or modify a covered work except as expressly
410
+provided under this License.  Any attempt otherwise to propagate or
411
+modify it is void, and will automatically terminate your rights under
412
+this License (including any patent licenses granted under the third
413
+paragraph of section 11).
414
+
415
+  However, if you cease all violation of this License, then your
416
+license from a particular copyright holder is reinstated (a)
417
+provisionally, unless and until the copyright holder explicitly and
418
+finally terminates your license, and (b) permanently, if the copyright
419
+holder fails to notify you of the violation by some reasonable means
420
+prior to 60 days after the cessation.
421
+
422
+  Moreover, your license from a particular copyright holder is
423
+reinstated permanently if the copyright holder notifies you of the
424
+violation by some reasonable means, this is the first time you have
425
+received notice of violation of this License (for any work) from that
426
+copyright holder, and you cure the violation prior to 30 days after
427
+your receipt of the notice.
428
+
429
+  Termination of your rights under this section does not terminate the
430
+licenses of parties who have received copies or rights from you under
431
+this License.  If your rights have been terminated and not permanently
432
+reinstated, you do not qualify to receive new licenses for the same
433
+material under section 10.
434
+
435
+  9. Acceptance Not Required for Having Copies.
436
+
437
+  You are not required to accept this License in order to receive or
438
+run a copy of the Program.  Ancillary propagation of a covered work
439
+occurring solely as a consequence of using peer-to-peer transmission
440
+to receive a copy likewise does not require acceptance.  However,
441
+nothing other than this License grants you permission to propagate or
442
+modify any covered work.  These actions infringe copyright if you do
443
+not accept this License.  Therefore, by modifying or propagating a
444
+covered work, you indicate your acceptance of this License to do so.
445
+
446
+  10. Automatic Licensing of Downstream Recipients.
447
+
448
+  Each time you convey a covered work, the recipient automatically
449
+receives a license from the original licensors, to run, modify and
450
+propagate that work, subject to this License.  You are not responsible
451
+for enforcing compliance by third parties with this License.
452
+
453
+  An "entity transaction" is a transaction transferring control of an
454
+organization, or substantially all assets of one, or subdividing an
455
+organization, or merging organizations.  If propagation of a covered
456
+work results from an entity transaction, each party to that
457
+transaction who receives a copy of the work also receives whatever
458
+licenses to the work the party's predecessor in interest had or could
459
+give under the previous paragraph, plus a right to possession of the
460
+Corresponding Source of the work from the predecessor in interest, if
461
+the predecessor has it or can get it with reasonable efforts.
462
+
463
+  You may not impose any further restrictions on the exercise of the
464
+rights granted or affirmed under this License.  For example, you may
465
+not impose a license fee, royalty, or other charge for exercise of
466
+rights granted under this License, and you may not initiate litigation
467
+(including a cross-claim or counterclaim in a lawsuit) alleging that
468
+any patent claim is infringed by making, using, selling, offering for
469
+sale, or importing the Program or any portion of it.
470
+
471
+  11. Patents.
472
+
473
+  A "contributor" is a copyright holder who authorizes use under this
474
+License of the Program or a work on which the Program is based.  The
475
+work thus licensed is called the contributor's "contributor version".
476
+
477
+  A contributor's "essential patent claims" are all patent claims
478
+owned or controlled by the contributor, whether already acquired or
479
+hereafter acquired, that would be infringed by some manner, permitted
480
+by this License, of making, using, or selling its contributor version,
481
+but do not include claims that would be infringed only as a
482
+consequence of further modification of the contributor version.  For
483
+purposes of this definition, "control" includes the right to grant
484
+patent sublicenses in a manner consistent with the requirements of
485
+this License.
486
+
487
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+patent license under the contributor's essential patent claims, to
489
+make, use, sell, offer for sale, import and otherwise run, modify and
490
+propagate the contents of its contributor version.
491
+
492
+  In the following three paragraphs, a "patent license" is any express
493
+agreement or commitment, however denominated, not to enforce a patent
494
+(such as an express permission to practice a patent or covenant not to
495
+sue for patent infringement).  To "grant" such a patent license to a
496
+party means to make such an agreement or commitment not to enforce a
497
+patent against the party.
498
+
499
+  If you convey a covered work, knowingly relying on a patent license,
500
+and the Corresponding Source of the work is not available for anyone
501
+to copy, free of charge and under the terms of this License, through a
502
+publicly available network server or other readily accessible means,
503
+then you must either (1) cause the Corresponding Source to be so
504
+available, or (2) arrange to deprive yourself of the benefit of the
505
+patent license for this particular work, or (3) arrange, in a manner
506
+consistent with the requirements of this License, to extend the patent
507
+license to downstream recipients.  "Knowingly relying" means you have
508
+actual knowledge that, but for the patent license, your conveying the
509
+covered work in a country, or your recipient's use of the covered work
510
+in a country, would infringe one or more identifiable patents in that
511
+country that you have reason to believe are valid.
512
+
513
+  If, pursuant to or in connection with a single transaction or
514
+arrangement, you convey, or propagate by procuring conveyance of, a
515
+covered work, and grant a patent license to some of the parties
516
+receiving the covered work authorizing them to use, propagate, modify
517
+or convey a specific copy of the covered work, then the patent license
518
+you grant is automatically extended to all recipients of the covered
519
+work and works based on it.
520
+
521
+  A patent license is "discriminatory" if it does not include within
522
+the scope of its coverage, prohibits the exercise of, or is
523
+conditioned on the non-exercise of one or more of the rights that are
524
+specifically granted under this License.  You may not convey a covered
525
+work if you are a party to an arrangement with a third party that is
526
+in the business of distributing software, under which you make payment
527
+to the third party based on the extent of your activity of conveying
528
+the work, and under which the third party grants, to any of the
529
+parties who would receive the covered work from you, a discriminatory
530
+patent license (a) in connection with copies of the covered work
531
+conveyed by you (or copies made from those copies), or (b) primarily
532
+for and in connection with specific products or compilations that
533
+contain the covered work, unless you entered into that arrangement,
534
+or that patent license was granted, prior to 28 March 2007.
535
+
536
+  Nothing in this License shall be construed as excluding or limiting
537
+any implied license or other defenses to infringement that may
538
+otherwise be available to you under applicable patent law.
539
+
540
+  12. No Surrender of Others' Freedom.
541
+
542
+  If conditions are imposed on you (whether by court order, agreement or
543
+otherwise) that contradict the conditions of this License, they do not
544
+excuse you from the conditions of this License.  If you cannot convey a
545
+covered work so as to satisfy simultaneously your obligations under this
546
+License and any other pertinent obligations, then as a consequence you may
547
+not convey it at all.  For example, if you agree to terms that obligate you
548
+to collect a royalty for further conveying from those to whom you convey
549
+the Program, the only way you could satisfy both those terms and this
550
+License would be to refrain entirely from conveying the Program.
551
+
552
+  13. Use with the GNU Affero General Public License.
553
+
554
+  Notwithstanding any other provision of this License, you have
555
+permission to link or combine any covered work with a work licensed
556
+under version 3 of the GNU Affero General Public License into a single
557
+combined work, and to convey the resulting work.  The terms of this
558
+License will continue to apply to the part which is the covered work,
559
+but the special requirements of the GNU Affero General Public License,
560
+section 13, concerning interaction through a network will apply to the
561
+combination as such.
562
+
563
+  14. Revised Versions of this License.
564
+
565
+  The Free Software Foundation may publish revised and/or new versions of
566
+the GNU General Public License from time to time.  Such new versions will
567
+be similar in spirit to the present version, but may differ in detail to
568
+address new problems or concerns.
569
+
570
+  Each version is given a distinguishing version number.  If the
571
+Program specifies that a certain numbered version of the GNU General
572
+Public License "or any later version" applies to it, you have the
573
+option of following the terms and conditions either of that numbered
574
+version or of any later version published by the Free Software
575
+Foundation.  If the Program does not specify a version number of the
576
+GNU General Public License, you may choose any version ever published
577
+by the Free Software Foundation.
578
+
579
+  If the Program specifies that a proxy can decide which future
580
+versions of the GNU General Public License can be used, that proxy's
581
+public statement of acceptance of a version permanently authorizes you
582
+to choose that version for the Program.
583
+
584
+  Later license versions may give you additional or different
585
+permissions.  However, no additional obligations are imposed on any
586
+author or copyright holder as a result of your choosing to follow a
587
+later version.
588
+
589
+  15. Disclaimer of Warranty.
590
+
591
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+  16. Limitation of Liability.
601
+
602
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+SUCH DAMAGES.
611
+
612
+  17. Interpretation of Sections 15 and 16.
613
+
614
+  If the disclaimer of warranty and limitation of liability provided
615
+above cannot be given local legal effect according to their terms,
616
+reviewing courts shall apply local law that most closely approximates
617
+an absolute waiver of all civil liability in connection with the
618
+Program, unless a warranty or assumption of liability accompanies a
619
+copy of the Program in return for a fee.
620
+
621
+                     END OF TERMS AND CONDITIONS
622
+
623
+            How to Apply These Terms to Your New Programs
624
+
625
+  If you develop a new program, and you want it to be of the greatest
626
+possible use to the public, the best way to achieve this is to make it
627
+free software which everyone can redistribute and change under these terms.
628
+
629
+  To do so, attach the following notices to the program.  It is safest
630
+to attach them to the start of each source file to most effectively
631
+state the exclusion of warranty; and each file should have at least
632
+the "copyright" line and a pointer to where the full notice is found.
633
+
634
+    <one line to give the program's name and a brief idea of what it does.>
635
+    Copyright (C) <year>  <name of author>
636
+
637
+    This program is free software: you can redistribute it and/or modify
638
+    it under the terms of the GNU General Public License as published by
639
+    the Free Software Foundation, either version 3 of the License, or
640
+    (at your option) any later version.
641
+
642
+    This program is distributed in the hope that it will be useful,
643
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
645
+    GNU General Public License for more details.
646
+
647
+    You should have received a copy of the GNU General Public License
648
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
649
+
650
+Also add information on how to contact you by electronic and paper mail.
651
+
652
+  If the program does terminal interaction, make it output a short
653
+notice like this when it starts in an interactive mode:
654
+
655
+    <program>  Copyright (C) <year>  <name of author>
656
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+    This is free software, and you are welcome to redistribute it
658
+    under certain conditions; type `show c' for details.
659
+
660
+The hypothetical commands `show w' and `show c' should show the appropriate
661
+parts of the General Public License.  Of course, your program's commands
662
+might be different; for a GUI interface, you would use an "about box".
663
+
664
+  You should also get your employer (if you work as a programmer) or school,
665
+if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+For more information on this, and how to apply and follow the GNU GPL, see
667
+<http://www.gnu.org/licenses/>.
668
+
669
+  The GNU General Public License does not permit incorporating your program
670
+into proprietary programs.  If your program is a subroutine library, you
671
+may consider it more useful to permit linking proprietary applications with
672
+the library.  If this is what you want to do, use the GNU Lesser General
673
+Public License instead of this License.  But first, please read
674
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

+ 130
- 0
ChangeLog View File

@@ -0,0 +1,130 @@
1
+libcaldav (0.6.2)
2
+  * Fix bug to be able to handle HTTP HEADER lines split
3
+    over multiple lines. Patch provided by Timothy Pearson
4
+
5
+-- Michael Rasmussen <mir@datanom.net>  Tue, 25 May 2010 22:51:03 +0100
6
+
7
+libcaldav (0.6.1)
8
+  * Fix redirection bug to fully support Zimbra server. Patch
9
+    provided by Timothy Pearson
10
+
11
+-- Michael Rasmussen <mir@datanom.net>  Tue, 25 May 2010 22:51:03 +0100
12
+
13
+libcaldav (0.6.0)
14
+  * Refactored to properly handle URL schema. Also fixes bug 2985320
15
+  * More accurate error message in case of unresolable host or unable
16
+    to get a connection. fixes feature request 2985321
17
+  * Added support for FREEBUSY search
18
+  * Fix bug 3003201. Solution provided by Dmitry Savenko
19
+
20
+-- Michael Rasmussen <mir@datanom.net>  Mon, 12 Apr 2010 12:15:03 +0100
21
+
22
+libcaldav (0.5.2)
23
+  * Added a unit like testing framework
24
+  * Make the use of locking configurable
25
+  * Extend testing framework to test for this
26
+
27
+-- Michael Rasmussen <mir@datanom.net>  Thu, 8 Apr 2010 12:15:03 +0100
28
+
29
+libcaldav (0.5.1)
30
+  * Honor request 2981083. Implement a response_free function
31
+  * Honor request 2981100. Implement a runtime_info creation function
32
+  * Fix bug 2981096. A number of memory leaks
33
+  * Complete refactoring. Implement basic setup of curl instance in a
34
+    function which all other function uses to ease maintainability and
35
+    simplicity and to reduce the number of repeated code lines.
36
+
37
+-- Michael Rasmussen <mir@datanom.net>  Sat, 3 Apr 2010 03:29:03 +0100
38
+
39
+libcaldav (0.5.0)
40
+  * Make library thread-safe. Close bug 2971102.
41
+  * Changed test application accordingly.
42
+  * Fix a number of memory leaks.
43
+  * Fix a number of double frees.
44
+  * fix regression introduced in revision 9 which broke locking
45
+    in delete and modify.
46
+  * Enhanced the error reporting for lock requests.
47
+  * Fix some potential memory leaks.
48
+  * Fix bug in parsing URL for username and password.
49
+  * Fix pedantic behaviour from Google which chokes on URL's
50
+    containing //
51
+  * Fix bug so that get_etag also is able to handle namespace
52
+    prefix for finding etags
53
+
54
+-- Michael Rasmussen <mir@datanom.net>  Sat, 27 Mar 2010 03:27:03 +0100
55
+
56
+libcaldav (0.4.2)
57
+  * Fix bug so that SSL specific settings are actually used.
58
+    Close bug 2971096.
59
+  * Fix bug so is-caldav and options are handled correct
60
+  * Applied help for new SSL settings to test application
61
+
62
+-- Michael Rasmussen <mir@datanom.net>  Sat, 27 Mar 2010 03:27:03 +0100
63
+
64
+libcaldav (0.4.1)
65
+  * Fix bug so that SSL specific errors are handled properly.
66
+    Close bug 2963143.
67
+  * Add option to build script to disable/enable building of
68
+    API documentation. Default is disabled.
69
+  * More cleaning up of the build system.
70
+  * Fix compile time warnings caused by gcc4.4 and minor change in
71
+    libcurl API.
72
+  * Add option to disable verification of peer's certificate
73
+  * Add option to specify custom CA cert file
74
+
75
+-- Michael Rasmussen <mir@datanom.net>  Sat, 7 Mar 2010 09:06:24 +0100
76
+
77
+libcaldav (0.4.0)
78
+  * Extend test client to be able to use both http and https
79
+  * Clean up some build instructions
80
+
81
+-- Michael Rasmussen <mir@datanom.net>  Sat, 27 Feb 2010 12:06:24 +0100
82
+
83
+libcaldav (0.3.1)
84
+  * Add https support
85
+  * make the useragent a configurable string, as some server doesn't like
86
+   'curl'
87
+
88
+-- Emmanuel Blindauer <e.blindauer@gmail.com> Fri Feb 26 20:49:16 CET 2010
89
+
90
+
91
+libcaldav (0.3.0)
92
+  * This version implements locking if the server supports this. Locking
93
+  will be done every time a request for modify or delete is sent to the
94
+  server
95
+  * 1) In ICalendar all plain text is wrapped inside DTD CDATA elements
96
+  * 2) ICalendar does not support collations for text-match in which case
97
+  collations has been removed from request - default is i;ascii-casemap anyhow
98
+
99
+-- Michael Rasmussen <mir@datanom.net>  Thu, 08 Apr 2008 00:06:24 +0100
100
+
101
+libcaldav (0.2.0)
102
+
103
+  * This version is a maintenance release due to important bugs.
104
+  * 1) Bugs found in XML which produced incorrect requests corrected
105
+  * 2) Added an option to configure to request dynamic or static library
106
+  * 3) Build system clean up
107
+  * 4) Discovered possible null pointers in error messages which is now
108
+       eliminated
109
+  * 5) Resolve bug in get_response_header which caused function to
110
+       change contents of variable in calling function
111
+  * 6) Added extra variable to get_response_header to decide whether returned
112
+       string should be all lower or not
113
+	7) Function get_tag can now also handle namespace prefix in tags
114
+	8) Added function caldav_getoptions to have a list of supported options
115
+	   by the server returned.
116
+  * 9) Compatibily tests run against Chandler and Apple's ICalendar
117
+       - Chandler: calendar-query not working due to bugs in Chandler's
118
+	     implementation of calendar-query which is not conforming to RFC4791
119
+	   - ICalendar: After adding namespace prefix awareness all test ran as
120
+	     expected.
121
+  * 10) The CLI test application upgraded to use new features.
122
+
123
+ -- Michael Rasmussen <mir@datanom.net>  Thu, 03 Apr 2008 10:10:00 +0100
124
+
125
+libcaldav (0.1.0)
126
+
127
+  * first public release
128
+
129
+ -- Michael Rasmussen <mir@datanom.net>  Tue, 25 Mar 2008 13:20:21 +0100
130
+

+ 39
- 0
Makefile.am View File

@@ -0,0 +1,39 @@
1
+AUTOMAKE_OPTIONS = gnu
2
+
3
+ACLOCAL_AMFLAGS = -I m4
4
+
5
+SUBDIRS = src test
6
+
7
+if BUILD_DOC
8
+include aminclude.am
9
+
10
+MOSTLYCLEANFILES = \
11
+				   $(DX_CLEANFILES) \
12
+				   doc
13
+
14
+doxydir = @DX_DOCDIR@
15
+dist_man3_MANS = $(doxydir)/man/man3/caldav.h.3
16
+$(dist_man3_MANS): doxygen-doc
17
+
18
+libcaldav_apidoc_filedir = $(docdir)
19
+libcaldav_apidoc_file_DATA = \
20
+						  doc/libcaldav.pdf
21
+endif
22
+
23
+libcaldav_configdir = $(libdir)/pkgconfig
24
+libcaldav_config_DATA = libcaldav.pc
25
+
26
+EXTRA_DIST = \
27
+			 README \
28
+			 COPYING \
29
+			 AUTHORS \
30
+			 ChangeLog \
31
+			 INSTALL \
32
+			 NEWS \
33
+			 TODO \
34
+			 rfc4791.pdf \
35
+			 version.sh \
36
+			 $(dx_config) \
37
+			 doxygen-api.cfg \
38
+			 libcaldav.pc \
39
+			 autogen.sh

+ 1015
- 0
Makefile.in
File diff suppressed because it is too large
View File


+ 4
- 0
NEWS View File

@@ -0,0 +1,4 @@
1
+2008-03-29 (Michael Rasmussen)
2
+	As this is the first public version of the library there is not
3
+	so much news appart from the fact, that the library is now publicly
4
+	available for download.

+ 19
- 0
README View File

@@ -0,0 +1,19 @@
1
+libcaldav Version 0.1.0
2
+
3
+These are the feature so far
4
+  - Support for VEVENT
5
+     - Add. Add a new event to the collection
6
+	 - Get. Get one or more events from the collection
7
+	 - Getall. Get all events from the collection
8
+	 - Modify. Modify an event
9
+	 - Delete. Delete an event
10
+	 - GetCalName. Get the display name from the collection
11
+	 - IsCalDAV. Test wether a given URL represents a CalDAV collection
12
+
13
+See INSTALL for further information.
14
+
15
+For an overview of the current status and future feature implementation
16
+study the TODO file.
17
+
18
+Happy Hacking
19
+Michael Rasmussen (mir@datanom.net)

+ 10
- 0
TODO View File

@@ -0,0 +1,10 @@
1
+In the nearest future:
2
+
3
+	- Searching free/busy information is lacking (VFREEBUSY).
4
+		- This will be implemented in the next release.
5
+
6
+Something to come at a later time:
7
+
8
+	- Implement ToDo support 
9
+	- Implement Journal support 
10
+

+ 186
- 0
aminclude.am View File

@@ -0,0 +1,186 @@
1
+# Copyright (C) 2004 Oren Ben-Kiki
2
+# This file is distributed under the same terms as the Automake macro files.
3
+
4
+# Generate automatic documentation using Doxygen. Goals and variables values
5
+# are controlled by the various DX_COND_??? conditionals set by autoconf.
6
+#
7
+# The provided goals are:
8
+# doxygen-doc: Generate all doxygen documentation.
9
+# doxygen-run: Run doxygen, which will generate some of the documentation
10
+#              (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post
11
+#              processing required for the rest of it (PS, PDF, and some MAN).
12
+# doxygen-man: Rename some doxygen generated man pages.
13
+# doxygen-ps: Generate doxygen PostScript documentation.
14
+# doxygen-pdf: Generate doxygen PDF documentation.
15
+#
16
+# Note that by default these are not integrated into the automake goals. If
17
+# doxygen is used to generate man pages, you can achieve this integration by
18
+# setting man3_MANS to the list of man pages generated and then adding the
19
+# dependency:
20
+#
21
+#   $(man3_MANS): doxygen-doc
22
+#
23
+# This will cause make to run doxygen and generate all the documentation.
24
+#
25
+# The following variable is intended for use in Makefile.am:
26
+#
27
+# DX_CLEANFILES = everything to clean.
28
+#
29
+# This is usually added to MOSTLYCLEANFILES.
30
+
31
+## --------------------------------- ##
32
+## Format-independent Doxygen rules. ##
33
+## --------------------------------- ##
34
+
35
+if DX_COND_doc
36
+
37
+## ------------------------------- ##
38
+## Rules specific for HTML output. ##
39
+## ------------------------------- ##
40
+
41
+if DX_COND_html
42
+
43
+DX_CLEAN_HTML = @DX_DOCDIR@/html
44
+
45
+endif DX_COND_html
46
+
47
+## ------------------------------ ##
48
+## Rules specific for CHM output. ##
49
+## ------------------------------ ##
50
+
51
+if DX_COND_chm
52
+
53
+DX_CLEAN_CHM = @DX_DOCDIR@/chm
54
+
55
+if DX_COND_chi
56
+
57
+DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
58
+
59
+endif DX_COND_chi
60
+
61
+endif DX_COND_chm
62
+
63
+## ------------------------------ ##
64
+## Rules specific for MAN output. ##
65
+## ------------------------------ ##
66
+
67
+if DX_COND_man
68
+
69
+DX_CLEAN_MAN = @DX_DOCDIR@/man
70
+
71
+endif DX_COND_man
72
+
73
+## ------------------------------ ##
74
+## Rules specific for RTF output. ##
75
+## ------------------------------ ##
76
+
77
+if DX_COND_rtf
78
+
79
+DX_CLEAN_RTF = @DX_DOCDIR@/rtf
80
+
81
+endif DX_COND_rtf
82
+
83
+## ------------------------------ ##
84
+## Rules specific for XML output. ##
85
+## ------------------------------ ##
86
+
87
+if DX_COND_xml
88
+
89
+DX_CLEAN_XML = @DX_DOCDIR@/xml
90
+
91
+endif DX_COND_xml
92
+
93
+## ----------------------------- ##
94
+## Rules specific for PS output. ##
95
+## ----------------------------- ##
96
+
97
+if DX_COND_ps
98
+
99
+DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
100
+
101
+DX_PS_GOAL = doxygen-ps
102
+
103
+doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
104
+
105
+@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
106
+	cd @DX_DOCDIR@/latex; \
107
+	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
108
+	$(DX_LATEX) refman.tex; \
109
+	$(MAKEINDEX_PATH) refman.idx; \
110
+	$(DX_LATEX) refman.tex; \
111
+	countdown=5; \
112
+	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
113
+	                  refman.log > /dev/null 2>&1 \
114
+	   && test $$countdown -gt 0; do \
115
+	    $(DX_LATEX) refman.tex; \
116
+	    countdown=`expr $$countdown - 1`; \
117
+	done; \
118
+	$(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
119
+
120
+endif DX_COND_ps
121
+
122
+## ------------------------------ ##
123
+## Rules specific for PDF output. ##
124
+## ------------------------------ ##
125
+
126
+if DX_COND_pdf
127
+
128
+DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
129
+
130
+DX_PDF_GOAL = doxygen-pdf
131
+
132
+doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
133
+
134
+@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
135
+	cd @DX_DOCDIR@/latex; \
136
+	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
137
+	$(DX_PDFLATEX) refman.tex; \
138
+	$(DX_MAKEINDEX) refman.idx; \
139
+	$(DX_PDFLATEX) refman.tex; \
140
+	countdown=5; \
141
+	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
142
+	                  refman.log > /dev/null 2>&1 \
143
+	   && test $$countdown -gt 0; do \
144
+	    $(DX_PDFLATEX) refman.tex; \
145
+	    countdown=`expr $$countdown - 1`; \
146
+	done; \
147
+	mv refman.pdf ../@PACKAGE@.pdf
148
+
149
+endif DX_COND_pdf
150
+
151
+## ------------------------------------------------- ##
152
+## Rules specific for LaTeX (shared for PS and PDF). ##
153
+## ------------------------------------------------- ##
154
+
155
+if DX_COND_latex
156
+
157
+DX_CLEAN_LATEX = @DX_DOCDIR@/latex
158
+
159
+endif DX_COND_latex
160
+
161
+.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
162
+
163
+.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
164
+
165
+doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
166
+
167
+doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
168
+
169
+@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
170
+	rm -rf @DX_DOCDIR@
171
+	$(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
172
+
173
+DX_CLEANFILES = \
174
+    @DX_DOCDIR@/@PACKAGE@.tag \
175
+    -r \
176
+    $(DX_CLEAN_HTML) \
177
+    $(DX_CLEAN_CHM) \
178
+    $(DX_CLEAN_CHI) \
179
+    $(DX_CLEAN_MAN) \
180
+    $(DX_CLEAN_RTF) \
181
+    $(DX_CLEAN_XML) \
182
+    $(DX_CLEAN_PS) \
183
+    $(DX_CLEAN_PDF) \
184
+    $(DX_CLEAN_LATEX)
185
+
186
+endif DX_COND_doc

+ 32
- 0
autogen.sh View File

@@ -0,0 +1,32 @@
1
+#!/bin/sh
2
+
3
+echo "Rebuilding build system......"
4
+
5
+autoreconf --version 2>&1 > /dev/null 2>&1
6
+
7
+if [ $? -eq 0 ]; then
8
+	AUTORECONF=autoreconf
9
+else
10
+	AUTORECONF=
11
+fi
12
+
13
+error() {
14
+	echo "Missing tool: $1"
15
+	echo "Cannot proceed until the missing tool is available"
16
+	exit 1
17
+}
18
+
19
+if [ ! -z ${AUTORECONF} ]; then
20
+	echo "Using autoreconf to rebuild build system"
21
+	autoreconf --force --install --symlink
22
+else
23
+	echo "No autoreconf found. Using plain old tools to rebuild build system"
24
+	libtoolize --automake --force || error libtoolize
25
+	aclocal -I m4|| error aclocal
26
+	autoheader --force || error autoheader
27
+	automake --add-missing --force-missing --gnu || error automake
28
+	autoconf --force || error autoconf
29
+fi
30
+./configure $*
31
+
32
+exit 0

+ 146
- 0
configure.ac View File

@@ -0,0 +1,146 @@
1
+#                                               -*- Autoconf -*-
2
+# Process this file with autoconf to produce a configure script.
3
+
4
+AC_PREREQ(2.61)
5
+
6
+AC_INIT([libcaldav], m4_esyscmd([sh ./version.sh | tr -d '\n']), [mir@datanom.net])
7
+AC_CONFIG_MACRO_DIR([m4])
8
+
9
+LIBVERSION=m4_esyscmd([sh ./version.sh LIBTOOL | tr -d '\n'])
10
+AC_SUBST(LIBVERSION)
11
+
12
+AC_CANONICAL_SYSTEM
13
+
14
+# Generate documentation
15
+# API
16
+DX_HTML_FEATURE(OFF)
17
+DX_CHM_FEATURE(OFF)
18
+DX_CHI_FEATURE(OFF)
19
+DX_MAN_FEATURE(ON)
20
+DX_RTF_FEATURE(OFF)
21
+DX_XML_FEATURE(OFF)
22
+DX_PDF_FEATURE(ON)
23
+DX_PS_FEATURE(OFF)
24
+DX_INIT_DOXYGEN(libcaldav, doxygen-api.cfg, doc)
25
+
26
+AM_INIT_AUTOMAKE([dist-bzip2 1.9.6])
27
+AM_MAINTAINER_MODE
28
+AC_CONFIG_HEADER([config.h])
29
+AM_MAINTAINER_MODE
30
+
31
+if test $USE_MAINTAINER_MODE = yes; then
32
+	CFLAGS="-g -Wall -D_REENTRANT"
33
+	STATIC=1
34
+	DYNAMIC=0
35
+	BUILD_TEST=true
36
+else
37
+	#CFLAGS="-g -Wall"
38
+	CFLAGS="$CFLAGS -O2 -Wall -D_REENTRANT"
39
+	STATIC=0
40
+	DYNAMIC=1
41
+	BUILD_TEST=false
42
+fi
43
+AM_CONDITIONAL([STATIC_LINK], [test $STATIC -eq 1])
44
+AM_CONDITIONAL([DYNAMIC_LINK], [test $DYNAMIC -eq 1])
45
+
46
+# Checks for programs.
47
+AC_PROG_CC
48
+AC_LANG_C
49
+AC_ISC_POSIX
50
+AC_PROG_INSTALL
51
+AC_PROG_LN_S
52
+AC_PROG_MAKE_SET
53
+AC_HEADER_STDC
54
+AC_PROG_CPP
55
+AM_PROG_LIBTOOL
56
+AC_PROG_INSTALL
57
+
58
+# Checks for libraries.
59
+PKG_CHECK_MODULES(CURL, [libcurl >= 7.15.5])
60
+AC_SUBST(CURL_CFLAGS)
61
+AC_SUBST(CURL_LIBS)
62
+
63
+PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6 gthread-2.0])
64
+AC_SUBST(GLIB_CFLAGS)
65
+AC_SUBST(GLIB_LIBS)
66
+
67
+#PKG_CHECK_MODULES(OPENSSL, [openssl >= 0.9.8])
68
+#AC_SUBST(OPENSSL_CFLAGS)
69
+#AC_SUBST(OPENSSL_LIBS)
70
+
71
+# Checks for header files.
72
+AC_HEADER_STDC
73
+
74
+# Checks for typedefs, structures, and compiler characteristics.
75
+AC_C_CONST
76
+AC_TYPE_SIZE_T
77
+AC_STRUCT_TM
78
+
79
+# Checks for library functions.
80
+
81
+# Should we build test program
82
+AC_ARG_ENABLE([caldav], 
83
+		[AC_HELP_STRING(--enable-caldav, Build test application (default=no))],
84
+		[case "${enableval}" in
85
+			yes) caldav=true ;;
86
+			no) caldav=false ;;
87
+			*) AC_MSG_ERROR([bad value "${enableval}" for --enable-caldav]) ;;
88
+			esac], [caldav=$BUILD_TEST])
89
+AM_CONDITIONAL([BUILD_CALDAV], [test x$caldav = xtrue])
90
+
91
+# Should we build unit test program
92
+AC_ARG_ENABLE([unittest], 
93
+		[AC_HELP_STRING(--enable-unittest, Build unti test application (default=no))],
94
+		[case "${enableval}" in
95
+			yes) unittest=true ;;
96
+			no) unittest=false ;;
97
+			*) AC_MSG_ERROR([bad value "${enableval}" for --enable-unittest]) ;;
98
+			esac], [unittest=$BUILD_TEST])
99
+AM_CONDITIONAL([BUILD_UNITTEST], [test x$unittest = xtrue])
100
+
101
+# Build API documentation
102
+AC_ARG_ENABLE([doc], 
103
+		[AC_HELP_STRING(--enable-doc, Build API documentation (default=no))],
104
+		[case "${enableval}" in
105
+			yes) doc=true ;;
106
+			no) doc=false ;;
107
+			*) AC_MSG_ERROR([bad value "${enableval}" for --enable-doc]) ;;
108
+			esac], [doc=false])
109
+AM_CONDITIONAL([BUILD_DOC], [test x$doc = xtrue])
110
+
111
+AC_CONFIG_COMMANDS(
112
+    summary,
113
+    [echo ""
114
+    echo "libcaldav will be compiled with these settings:"
115
+    echo ""
116
+    echo -e "\tCFLAGS:\t\t\t\t$cflags"
117
+    echo -e "\tBuild caldav-test:\t\t$caldav"
118
+    echo -e "\tBuild unittest:\t\t\t$unittest"
119
+    echo -e "\tBuild API documentation:\t$doc"
120
+	echo -e "\tLibrary is linked:\t\t$link"
121
+	echo ""
122
+	echo -e "Now run make to build the library"
123
+	echo ""
124
+	echo -e "Please send bugs or feature requests to the maintainer(s)."
125
+	echo -e "Email addresses can be found in the AUTHORS file."
126
+    echo ""],
127
+    [caldav=${caldav}
128
+     unittest=${unittest}
129
+     doc=${doc}
130
+     cflags="${CFLAGS}"
131
+	 if test $DYNAMIC -eq 1; then
132
+		link="Dynamic"
133
+	else
134
+		link="Static"
135
+	fi]
136
+)
137
+
138
+AC_OUTPUT([
139
+	Makefile
140
+	libcaldav.pc
141
+	src/Makefile
142
+	test/Makefile
143
+	test/src/Makefile
144
+	test/ics/Makefile
145
+	test/unittest/Makefile
146
+])

+ 250
- 0
doxygen-api.cfg View File

@@ -0,0 +1,250 @@
1
+# Doxyfile 1.5.5
2
+
3
+#---------------------------------------------------------------------------
4
+# Project related configuration options
5
+#---------------------------------------------------------------------------
6
+DOXYFILE_ENCODING      = UTF-8
7
+PROJECT_NAME           = $(PROJECT)-$(VERSION)
8
+PROJECT_NUMBER         = 
9
+OUTPUT_DIRECTORY       = $(DOCDIR)
10
+CREATE_SUBDIRS         = NO
11
+OUTPUT_LANGUAGE        = English
12
+BRIEF_MEMBER_DESC      = YES
13
+REPEAT_BRIEF           = YES
14
+ABBREVIATE_BRIEF       = "The $name class" \
15
+                         "The $name widget" \
16
+                         "The $name file" \
17
+                         is \
18
+                         provides \
19
+                         specifies \
20
+                         contains \
21
+                         represents \
22
+                         a \
23
+                         an \
24
+                         the
25
+ALWAYS_DETAILED_SEC    = NO
26
+INLINE_INHERITED_MEMB  = NO
27
+FULL_PATH_NAMES        = NO
28
+STRIP_FROM_PATH        = $(SRCDIR)/src
29
+STRIP_FROM_INC_PATH    = $(SRCDIR)/src
30
+SHORT_NAMES            = NO
31
+JAVADOC_AUTOBRIEF      = YES
32
+QT_AUTOBRIEF           = NO
33
+MULTILINE_CPP_IS_BRIEF = NO
34
+DETAILS_AT_TOP         = NO
35
+INHERIT_DOCS           = YES
36
+SEPARATE_MEMBER_PAGES  = NO
37
+TAB_SIZE               = 8
38
+ALIASES                = 
39
+OPTIMIZE_OUTPUT_FOR_C  = YES
40
+OPTIMIZE_OUTPUT_JAVA   = NO
41
+OPTIMIZE_FOR_FORTRAN   = NO
42
+OPTIMIZE_OUTPUT_VHDL   = NO
43
+BUILTIN_STL_SUPPORT    = NO
44
+CPP_CLI_SUPPORT        = NO
45
+SIP_SUPPORT            = NO
46
+DISTRIBUTE_GROUP_DOC   = NO
47
+SUBGROUPING            = YES
48
+TYPEDEF_HIDES_STRUCT   = NO
49
+#---------------------------------------------------------------------------
50
+# Build related configuration options
51
+#---------------------------------------------------------------------------
52
+EXTRACT_ALL            = NO
53
+EXTRACT_PRIVATE        = NO
54
+EXTRACT_STATIC         = YES
55
+EXTRACT_LOCAL_CLASSES  = YES
56
+EXTRACT_LOCAL_METHODS  = NO
57
+EXTRACT_ANON_NSPACES   = NO
58
+HIDE_UNDOC_MEMBERS     = NO
59
+HIDE_UNDOC_CLASSES     = NO
60
+HIDE_FRIEND_COMPOUNDS  = NO
61
+HIDE_IN_BODY_DOCS      = NO
62
+INTERNAL_DOCS          = NO
63
+CASE_SENSE_NAMES       = YES
64
+HIDE_SCOPE_NAMES       = NO
65
+SHOW_INCLUDE_FILES     = YES
66
+INLINE_INFO            = YES
67
+SORT_MEMBER_DOCS       = YES
68
+SORT_BRIEF_DOCS        = NO
69
+SORT_GROUP_NAMES       = NO
70
+SORT_BY_SCOPE_NAME     = NO
71
+GENERATE_TODOLIST      = YES
72
+GENERATE_TESTLIST      = YES
73
+GENERATE_BUGLIST       = YES
74
+GENERATE_DEPRECATEDLIST= YES
75
+ENABLED_SECTIONS       = 
76
+MAX_INITIALIZER_LINES  = 30
77
+SHOW_USED_FILES        = YES
78
+SHOW_DIRECTORIES       = NO
79
+FILE_VERSION_FILTER    = 
80
+#---------------------------------------------------------------------------
81
+# configuration options related to warning and progress messages
82
+#---------------------------------------------------------------------------
83
+QUIET                  = YES
84
+WARNINGS               = NO
85
+WARN_IF_UNDOCUMENTED   = NO
86
+WARN_IF_DOC_ERROR      = YES
87
+WARN_NO_PARAMDOC       = NO
88
+WARN_FORMAT            = "$file:$line: $text"
89
+WARN_LOGFILE           = 
90
+#---------------------------------------------------------------------------
91
+# configuration options related to the input files
92
+#---------------------------------------------------------------------------
93
+INPUT                  = $(SRCDIR)/src
94
+INPUT_ENCODING         = UTF-8
95
+FILE_PATTERNS          = *.c \
96
+                         *.h 
97
+RECURSIVE              = YES
98
+EXCLUDE                = 
99
+EXCLUDE_SYMLINKS       = NO
100
+EXCLUDE_PATTERNS       = 
101
+EXCLUDE_SYMBOLS        = 
102
+EXAMPLE_PATH           = $(SRCDIR)/src
103
+EXAMPLE_PATTERNS       = *
104
+EXAMPLE_RECURSIVE      = NO
105
+IMAGE_PATH             = 
106
+INPUT_FILTER           = 
107
+FILTER_PATTERNS        = 
108
+FILTER_SOURCE_FILES    = NO
109
+#---------------------------------------------------------------------------
110
+# configuration options related to source browsing
111
+#---------------------------------------------------------------------------
112
+SOURCE_BROWSER         = NO
113
+INLINE_SOURCES         = NO
114
+STRIP_CODE_COMMENTS    = YES
115
+REFERENCED_BY_RELATION = NO
116
+REFERENCES_RELATION    = NO
117
+REFERENCES_LINK_SOURCE = YES
118
+USE_HTAGS              = NO
119
+VERBATIM_HEADERS       = NO
120
+#---------------------------------------------------------------------------
121
+# configuration options related to the alphabetical class index
122
+#---------------------------------------------------------------------------
123
+ALPHABETICAL_INDEX     = YES
124
+COLS_IN_ALPHA_INDEX    = 5
125
+IGNORE_PREFIX          = 
126
+#---------------------------------------------------------------------------
127
+# configuration options related to the HTML output
128
+#---------------------------------------------------------------------------
129
+GENERATE_HTML          = $(GENERATE_HTML)
130
+HTML_OUTPUT            = html
131
+HTML_FILE_EXTENSION    = .html
132
+HTML_HEADER            = 
133
+HTML_FOOTER            = 
134
+HTML_STYLESHEET        = 
135
+HTML_ALIGN_MEMBERS     = YES
136
+GENERATE_HTMLHELP      = NO
137
+GENERATE_DOCSET        = NO
138
+DOCSET_FEEDNAME        = "Doxygen generated docs"
139
+DOCSET_BUNDLE_ID       = org.doxygen.Project
140
+HTML_DYNAMIC_SECTIONS  = NO
141
+CHM_FILE               = ../$(PROJECT).chm
142
+HHC_LOCATION           = $(HHC_PATH)
143
+GENERATE_CHI           = $(GENERATE_CHM)
144
+BINARY_TOC             = NO
145
+TOC_EXPAND             = NO
146
+DISABLE_INDEX          = NO
147
+ENUM_VALUES_PER_LINE   = 4
148
+GENERATE_TREEVIEW      = YES
149
+TREEVIEW_WIDTH         = 250
150
+#---------------------------------------------------------------------------
151
+# configuration options related to the LaTeX output
152
+#---------------------------------------------------------------------------
153
+GENERATE_LATEX         = $(GENERATE_LATEX)
154
+LATEX_OUTPUT           = latex
155
+LATEX_CMD_NAME         = latex
156
+MAKEINDEX_CMD_NAME     = makeindex
157
+COMPACT_LATEX          = NO
158
+PAPER_TYPE             = $(PAPER_SIZE)
159
+EXTRA_PACKAGES         = 
160
+LATEX_HEADER           = 
161
+PDF_HYPERLINKS         = YES
162
+USE_PDFLATEX           = YES
163
+LATEX_BATCHMODE        = NO
164
+LATEX_HIDE_INDICES     = NO
165
+#---------------------------------------------------------------------------
166
+# configuration options related to the RTF output
167
+#---------------------------------------------------------------------------
168
+GENERATE_RTF           = $(GENERATE_RTF)
169
+RTF_OUTPUT             = rtf
170
+COMPACT_RTF            = NO
171
+RTF_HYPERLINKS         = NO
172
+RTF_STYLESHEET_FILE    = 
173
+RTF_EXTENSIONS_FILE    = 
174
+#---------------------------------------------------------------------------
175
+# configuration options related to the man page output
176
+#---------------------------------------------------------------------------
177
+GENERATE_MAN           = $(GENERATE_MAN)
178
+MAN_OUTPUT             = man
179
+MAN_EXTENSION          = .3
180
+MAN_LINKS              = NO
181
+#---------------------------------------------------------------------------
182
+# configuration options related to the XML output
183
+#---------------------------------------------------------------------------
184
+GENERATE_XML           = $(GENERATE_XML)
185
+XML_OUTPUT             = xml
186
+XML_SCHEMA             = 
187
+XML_DTD                = 
188
+XML_PROGRAMLISTING     = YES
189
+#---------------------------------------------------------------------------
190
+# configuration options for the AutoGen Definitions output
191
+#---------------------------------------------------------------------------
192
+GENERATE_AUTOGEN_DEF   = NO
193
+#---------------------------------------------------------------------------
194
+# configuration options related to the Perl module output
195
+#---------------------------------------------------------------------------
196
+GENERATE_PERLMOD       = NO
197
+PERLMOD_LATEX          = NO
198
+PERLMOD_PRETTY         = YES
199
+PERLMOD_MAKEVAR_PREFIX = 
200
+#---------------------------------------------------------------------------
201
+# Configuration options related to the preprocessor   
202
+#---------------------------------------------------------------------------
203
+ENABLE_PREPROCESSING   = YES
204
+MACRO_EXPANSION        = NO
205
+EXPAND_ONLY_PREDEF     = NO
206
+SEARCH_INCLUDES        = YES
207
+INCLUDE_PATH           = 
208
+INCLUDE_FILE_PATTERNS  = 
209
+PREDEFINED             = 
210
+EXPAND_AS_DEFINED      = 
211
+SKIP_FUNCTION_MACROS   = YES
212
+#---------------------------------------------------------------------------
213
+# Configuration::additions related to external references   
214
+#---------------------------------------------------------------------------
215
+TAGFILES               = 
216
+GENERATE_TAGFILE       = $(DOCDIR)/$(PROJECT).tag
217
+ALLEXTERNALS           = NO
218
+EXTERNAL_GROUPS        = YES
219
+PERL_PATH              = $(PERL_PATH)
220
+#---------------------------------------------------------------------------
221
+# Configuration options related to the dot tool   
222
+#---------------------------------------------------------------------------
223
+CLASS_DIAGRAMS         = NO
224
+MSCGEN_PATH            = 
225
+HIDE_UNDOC_RELATIONS   = YES
226
+HAVE_DOT               = $(HAVE_DOT)
227
+CLASS_GRAPH            = YES
228
+COLLABORATION_GRAPH    = YES
229
+GROUP_GRAPHS           = YES
230
+UML_LOOK               = NO
231
+TEMPLATE_RELATIONS     = NO
232
+INCLUDE_GRAPH          = YES
233
+INCLUDED_BY_GRAPH      = YES
234
+CALL_GRAPH             = NO
235
+CALLER_GRAPH           = NO
236
+GRAPHICAL_HIERARCHY    = YES
237
+DIRECTORY_GRAPH        = YES
238
+DOT_IMAGE_FORMAT       = png
239
+DOT_PATH               = $(DOT_PATH)
240
+DOTFILE_DIRS           = 
241
+DOT_GRAPH_MAX_NODES    = 50
242
+MAX_DOT_GRAPH_DEPTH    = 1000
243
+DOT_TRANSPARENT        = YES
244
+DOT_MULTI_TARGETS      = NO
245
+GENERATE_LEGEND        = YES
246
+DOT_CLEANUP            = YES
247
+#---------------------------------------------------------------------------
248
+# Configuration::additions related to the search engine   
249
+#---------------------------------------------------------------------------
250
+SEARCHENGINE           = NO

+ 14
- 0
libcaldav.pc View File

@@ -0,0 +1,14 @@
1
+prefix=/usr/local
2
+exec_prefix=${prefix}
3
+libdir=${exec_prefix}/lib
4
+includedir=${prefix}/include
5
+
6
+pkglibdir=${libdir}/libcaldav
7
+pkgincludedir=${includedir}/libcaldav
8
+
9
+Name: libcaldav
10
+Description: libcaldav is a client library for CalDAV
11
+Version: 0.6.5
12
+
13
+Cflags: -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    
14
+Libs: -pthread -lgthread-2.0 -lrt -lglib-2.0   -lcurl  

+ 14
- 0
libcaldav.pc.in View File

@@ -0,0 +1,14 @@
1
+prefix=@prefix@
2
+exec_prefix=@exec_prefix@
3
+libdir=@libdir@
4
+includedir=@includedir@
5
+
6
+pkglibdir=${libdir}/@PACKAGE@
7
+pkgincludedir=${includedir}/@PACKAGE@
8
+
9
+Name: libcaldav
10
+Description: libcaldav is a client library for CalDAV
11
+Version: @VERSION@
12
+
13
+Cflags: @GLIB_CFLAGS@ @CURL_CFLAGS@
14
+Libs: @GLIB_LIBS@ @CURL_LIBS@

+ 17
- 0
m4/.svn/all-wcprops View File

@@ -0,0 +1,17 @@
1
+K 25
2
+svn:wc:ra_dav:version-url
3
+V 39
4
+/svnroot/libcaldav/!svn/ver/10/trunk/m4
5
+END
6
+acinclude.m4
7
+K 25
8
+svn:wc:ra_dav:version-url
9
+V 51
10
+/svnroot/libcaldav/!svn/ver/1/trunk/m4/acinclude.m4
11
+END
12
+ax_prog_doxygen.m4
13
+K 25
14
+svn:wc:ra_dav:version-url
15
+V 58
16
+/svnroot/libcaldav/!svn/ver/10/trunk/m4/ax_prog_doxygen.m4
17
+END

+ 96
- 0
m4/.svn/entries View File

@@ -0,0 +1,96 @@
1
+10
2
+
3
+dir
4
+42
5
+https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/m4
6
+https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
7
+
8
+
9
+
10
+2010-02-27T11:17:33.222356Z
11
+10
12
+miras
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+6bb92309-7149-0410-b568-bc30dfd0a1d5
28
+
29
+acinclude.m4
30
+file
31
+
32
+
33
+
34
+
35
+2010-05-31T07:07:58.000000Z
36
+9115e99fc4ec059bdd53c777feb4eabf
37
+2008-03-29T18:04:01.076545Z
38
+1
39
+miras
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+11536
62
+
63
+ax_prog_doxygen.m4
64
+file
65
+
66
+
67
+
68
+
69
+2010-05-31T07:07:58.000000Z
70
+2d616b8dbbafa6396737ce59661169de
71
+2010-02-27T11:17:33.222356Z
72
+10
73
+miras
74
+has-props
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+17830
96
+

+ 5
- 0
m4/.svn/prop-base/ax_prog_doxygen.m4.svn-base View File

@@ -0,0 +1,5 @@
1
+K 12
2
+svn:keywords
3
+V 22
4
+Author Date Id Rev URL
5
+END

+ 312
- 0
m4/.svn/text-base/acinclude.m4.svn-base View File

@@ -0,0 +1,312 @@
1
+# This file is part of Autoconf.                       -*- Autoconf -*-
2
+
3
+# Copyright (C) 2004 Oren Ben-Kiki
4
+# This file is distributed under the same terms as the Autoconf macro files.
5
+
6
+# Generate automatic documentation using Doxygen. Works in concert with the
7
+# aminclude.m4 file and a compatible doxygen configuration file. Defines the
8
+# following public macros:
9
+#
10
+# DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
11
+# Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
12
+# 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
13
+# for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
14
+# 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
15
+# variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
16
+# paper size.
17
+#
18
+# By default, HTML, PDF and PS documentation is generated as this seems to be
19
+# the most popular and portable combination. MAN pages created by Doxygen are
20
+# usually problematic, though by picking an appropriate subset and doing some
21
+# massaging they might be better than nothing. CHM and RTF are specific for MS
22
+# (note that you can't generate both HTML and CHM at the same time). The XML is
23
+# rather useless unless you apply specialized post-processing to it.
24
+#
25
+# The macro mainly controls the default state of the feature. The use can
26
+# override the default by specifying --enable or --disable. The macros ensure
27
+# that contradictory flags are not given (e.g., --enable-doxygen-html and
28
+# --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
29
+# Finally, each feature will be automatically disabled (with a warning) if the
30
+# required programs are missing.
31
+#
32
+# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
33
+# the following parameters: a one-word name for the project for use as a
34
+# filename base etc., an optional configuration file name (the default is
35
+# 'Doxyfile', the same as Doxygen's default), and an optional output directory
36
+# name (the default is 'doxygen-doc').
37
+
38
+## ----------##
39
+## Defaults. ##
40
+## ----------##
41
+
42
+DX_ENV=""
43
+AC_DEFUN([DX_FEATURE_doc],  ON)
44
+AC_DEFUN([DX_FEATURE_dot],  ON)
45
+AC_DEFUN([DX_FEATURE_man],  OFF)
46
+AC_DEFUN([DX_FEATURE_html], ON)
47
+AC_DEFUN([DX_FEATURE_chm],  OFF)
48
+AC_DEFUN([DX_FEATURE_chi],  OFF)
49
+AC_DEFUN([DX_FEATURE_rtf],  OFF)
50
+AC_DEFUN([DX_FEATURE_xml],  OFF)
51
+AC_DEFUN([DX_FEATURE_pdf],  ON)
52
+AC_DEFUN([DX_FEATURE_ps],   ON)
53
+
54
+## --------------- ##
55
+## Private macros. ##
56
+## --------------- ##
57
+
58
+# DX_ENV_APPEND(VARIABLE, VALUE)
59
+# ------------------------------
60
+# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
61
+AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
62
+
63
+# DX_DIRNAME_EXPR
64
+# ---------------
65
+# Expand into a shell expression prints the directory part of a path.
66
+AC_DEFUN([DX_DIRNAME_EXPR],
67
+         [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
68
+
69
+# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
70
+# -------------------------------------
71
+# Expands according to the M4 (static) status of the feature.
72
+AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
73
+
74
+# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
75
+# ----------------------------------
76
+# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
77
+AC_DEFUN([DX_REQUIRE_PROG], [
78
+AC_PATH_TOOL([$1], [$2])
79
+if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
80
+    AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
81
+    AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
82
+fi
83
+])
84
+
85
+# DX_TEST_FEATURE(FEATURE)
86
+# ------------------------
87
+# Expand to a shell expression testing whether the feature is active.
88
+AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
89
+
90
+# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
91
+# -------------------------------------------------
92
+# Verify that a required features has the right state before trying to turn on
93
+# the DX_CURRENT_FEATURE.
94
+AC_DEFUN([DX_CHECK_DEPEND], [
95
+test "$DX_FLAG_$1" = "$2" \
96
+|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
97
+                            requires, contradicts) doxygen-DX_CURRENT_FEATURE])
98
+])
99
+
100
+# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
101
+# ----------------------------------------------------------
102
+# Turn off the DX_CURRENT_FEATURE if the required feature is off.
103
+AC_DEFUN([DX_CLEAR_DEPEND], [
104
+test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
105
+])
106
+
107
+# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
108
+#                CHECK_DEPEND, CLEAR_DEPEND,
109
+#                REQUIRE, DO-IF-ON, DO-IF-OFF)
110
+# --------------------------------------------
111
+# Parse the command-line option controlling a feature. CHECK_DEPEND is called
112
+# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
113
+# otherwise CLEAR_DEPEND is called to turn off the default state if a required
114
+# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
115
+# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
116
+# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
117
+AC_DEFUN([DX_ARG_ABLE], [
118
+    AC_DEFUN([DX_CURRENT_FEATURE], [$1])
119
+    AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
120
+    AC_ARG_ENABLE(doxygen-$1,
121
+                  [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
122
+                                                      [--enable-doxygen-$1]),
123
+                                  DX_IF_FEATURE([$1], [don't $2], [$2]))],
124
+                  [
125
+case "$enableval" in
126
+#(
127
+y|Y|yes|Yes|YES)
128
+    AC_SUBST([DX_FLAG_$1], 1)
129
+    $3
130
+;; #(
131
+n|N|no|No|NO)
132
+    AC_SUBST([DX_FLAG_$1], 0)
133
+;; #(
134
+*)
135
+    AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
136
+;;
137
+esac
138
+], [
139
+AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
140
+$4
141
+])
142
+if DX_TEST_FEATURE([$1]); then
143
+    $5
144
+    :
145
+fi
146
+if DX_TEST_FEATURE([$1]); then
147
+    AM_CONDITIONAL(DX_COND_$1, :)
148
+    $6
149
+    :
150
+else
151
+    AM_CONDITIONAL(DX_COND_$1, false)
152
+    $7
153
+    :
154
+fi
155
+])
156
+
157
+## -------------- ##
158
+## Public macros. ##
159
+## -------------- ##
160
+
161
+# DX_XXX_FEATURE(DEFAULT_STATE)
162
+# -----------------------------
163
+AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc],  [$1])])
164
+AC_DEFUN([DX_MAN_FEATURE],     [AC_DEFUN([DX_FEATURE_man],  [$1])])
165
+AC_DEFUN([DX_HTML_FEATURE],    [AC_DEFUN([DX_FEATURE_html], [$1])])
166
+AC_DEFUN([DX_CHM_FEATURE],     [AC_DEFUN([DX_FEATURE_chm],  [$1])])
167
+AC_DEFUN([DX_CHI_FEATURE],     [AC_DEFUN([DX_FEATURE_chi],  [$1])])
168
+AC_DEFUN([DX_RTF_FEATURE],     [AC_DEFUN([DX_FEATURE_rtf],  [$1])])
169
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
170
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
171
+AC_DEFUN([DX_PDF_FEATURE],     [AC_DEFUN([DX_FEATURE_pdf],  [$1])])
172
+AC_DEFUN([DX_PS_FEATURE],      [AC_DEFUN([DX_FEATURE_ps],   [$1])])
173
+
174
+# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
175
+# ---------------------------------------------------------
176
+# PROJECT also serves as the base name for the documentation files.
177
+# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
178
+AC_DEFUN([DX_INIT_DOXYGEN], [
179
+
180
+# Files:
181
+AC_SUBST([DX_PROJECT], [$1])
182
+AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
183
+AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
184
+
185
+# Environment variables used inside doxygen.cfg:
186
+DX_ENV_APPEND(SRCDIR, $srcdir)
187
+DX_ENV_APPEND(PROJECT, $DX_PROJECT)
188
+DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
189
+DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
190
+
191
+# Doxygen itself:
192
+DX_ARG_ABLE(doc, [generate any doxygen documentation],
193
+            [],
194
+            [],
195
+            [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
196
+             DX_REQUIRE_PROG([DX_PERL], perl)],
197
+            [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
198
+
199
+# Dot for graphics:
200
+DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
201
+            [DX_CHECK_DEPEND(doc, 1)],
202
+            [DX_CLEAR_DEPEND(doc, 1)],
203
+            [DX_REQUIRE_PROG([DX_DOT], dot)],
204
+            [DX_ENV_APPEND(HAVE_DOT, YES)
205
+             DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
206
+            [DX_ENV_APPEND(HAVE_DOT, NO)])
207
+
208
+# Man pages generation:
209
+DX_ARG_ABLE(man, [generate doxygen manual pages],
210
+            [DX_CHECK_DEPEND(doc, 1)],
211
+            [DX_CLEAR_DEPEND(doc, 1)],
212
+            [],
213
+            [DX_ENV_APPEND(GENERATE_MAN, YES)],
214
+            [DX_ENV_APPEND(GENERATE_MAN, NO)])
215
+
216
+# RTF file generation:
217
+DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
218
+            [DX_CHECK_DEPEND(doc, 1)],
219
+            [DX_CLEAR_DEPEND(doc, 1)],
220
+            [],
221
+            [DX_ENV_APPEND(GENERATE_RTF, YES)],
222
+            [DX_ENV_APPEND(GENERATE_RTF, NO)])
223
+
224
+# XML file generation:
225
+DX_ARG_ABLE(xml, [generate doxygen XML documentation],
226
+            [DX_CHECK_DEPEND(doc, 1)],
227
+            [DX_CLEAR_DEPEND(doc, 1)],
228
+            [],
229
+            [DX_ENV_APPEND(GENERATE_XML, YES)],
230
+            [DX_ENV_APPEND(GENERATE_XML, NO)])
231
+
232
+# (Compressed) HTML help generation:
233
+DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
234
+            [DX_CHECK_DEPEND(doc, 1)],
235
+            [DX_CLEAR_DEPEND(doc, 1)],
236
+            [DX_REQUIRE_PROG([DX_HHC], hhc)],
237
+            [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
238
+             DX_ENV_APPEND(GENERATE_HTML, YES)
239
+             DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
240
+            [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
241
+
242
+# Seperate CHI file generation.
243
+DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
244
+            [DX_CHECK_DEPEND(chm, 1)],
245
+            [DX_CLEAR_DEPEND(chm, 1)],
246
+            [],
247
+            [DX_ENV_APPEND(GENERATE_CHI, YES)],
248
+            [DX_ENV_APPEND(GENERATE_CHI, NO)])
249
+
250
+# Plain HTML pages generation:
251
+DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
252
+            [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
253
+            [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
254
+            [],
255
+            [DX_ENV_APPEND(GENERATE_HTML, YES)],
256
+            [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
257
+
258
+# PostScript file generation:
259
+DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
260
+            [DX_CHECK_DEPEND(doc, 1)],
261
+            [DX_CLEAR_DEPEND(doc, 1)],
262
+            [DX_REQUIRE_PROG([DX_LATEX], latex)
263
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
264
+             DX_REQUIRE_PROG([DX_DVIPS], dvips)
265
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
266
+
267
+# PDF file generation:
268
+DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
269
+            [DX_CHECK_DEPEND(doc, 1)],
270
+            [DX_CLEAR_DEPEND(doc, 1)],
271
+            [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
272
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
273
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
274
+
275
+# LaTeX generation for PS and/or PDF:
276
+if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
277
+    AM_CONDITIONAL(DX_COND_latex, :)
278
+    DX_ENV_APPEND(GENERATE_LATEX, YES)
279
+else
280
+    AM_CONDITIONAL(DX_COND_latex, false)
281
+    DX_ENV_APPEND(GENERATE_LATEX, NO)
282
+fi
283
+
284
+# Paper size for PS and/or PDF:
285
+AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
286
+           [a4wide (default), a4, letter, legal or executive])
287
+case "$DOXYGEN_PAPER_SIZE" in
288
+#(
289
+"")
290
+    AC_SUBST(DOXYGEN_PAPER_SIZE, "")
291
+;; #(
292
+a4wide|a4|letter|legal|executive)
293
+    DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
294
+;; #(
295
+*)
296
+    AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
297
+;;
298
+esac
299
+
300
+#For debugging:
301
+#echo DX_FLAG_doc=$DX_FLAG_doc
302
+#echo DX_FLAG_dot=$DX_FLAG_dot
303
+#echo DX_FLAG_man=$DX_FLAG_man
304
+#echo DX_FLAG_html=$DX_FLAG_html
305
+#echo DX_FLAG_chm=$DX_FLAG_chm
306
+#echo DX_FLAG_chi=$DX_FLAG_chi
307
+#echo DX_FLAG_rtf=$DX_FLAG_rtf
308
+#echo DX_FLAG_xml=$DX_FLAG_xml
309
+#echo DX_FLAG_pdf=$DX_FLAG_pdf
310
+#echo DX_FLAG_ps=$DX_FLAG_ps
311
+#echo DX_ENV=$DX_ENV
312
+])

+ 533
- 0
m4/.svn/text-base/ax_prog_doxygen.m4.svn-base View File

@@ -0,0 +1,533 @@
1
+# ===========================================================================
2
+#         http://www.nongnu.org/autoconf-archive/ax_prog_doxygen.html
3
+# ===========================================================================
4
+#
5
+# SYNOPSIS
6
+#
7
+#   DX_INIT_DOXYGEN(PROJECT-NAME, DOXYFILE-PATH, [OUTPUT-DIR])
8
+#   DX_DOXYGEN_FEATURE(ON|OFF)
9
+#   DX_DOT_FEATURE(ON|OFF)
10
+#   DX_HTML_FEATURE(ON|OFF)
11
+#   DX_CHM_FEATURE(ON|OFF)
12
+#   DX_CHI_FEATURE(ON|OFF)
13
+#   DX_MAN_FEATURE(ON|OFF)
14
+#   DX_RTF_FEATURE(ON|OFF)
15
+#   DX_XML_FEATURE(ON|OFF)
16
+#   DX_PDF_FEATURE(ON|OFF)
17
+#   DX_PS_FEATURE(ON|OFF)
18
+#
19
+# DESCRIPTION
20
+#
21
+#   The DX_*_FEATURE macros control the default setting for the given
22
+#   Doxygen feature. Supported features are 'DOXYGEN' itself, 'DOT' for
23
+#   generating graphics, 'HTML' for plain HTML, 'CHM' for compressed HTML
24
+#   help (for MS users), 'CHI' for generating a seperate .chi file by the
25
+#   .chm file, and 'MAN', 'RTF', 'XML', 'PDF' and 'PS' for the appropriate
26
+#   output formats. The environment variable DOXYGEN_PAPER_SIZE may be
27
+#   specified to override the default 'a4wide' paper size.
28
+#
29
+#   By default, HTML, PDF and PS documentation is generated as this seems to
30
+#   be the most popular and portable combination. MAN pages created by
31
+#   Doxygen are usually problematic, though by picking an appropriate subset
32
+#   and doing some massaging they might be better than nothing. CHM and RTF
33
+#   are specific for MS (note that you can't generate both HTML and CHM at
34
+#   the same time). The XML is rather useless unless you apply specialized
35
+#   post-processing to it.
36
+#
37
+#   The macros mainly control the default state of the feature. The use can
38
+#   override the default by specifying --enable or --disable. The macros
39
+#   ensure that contradictory flags are not given (e.g.,
40
+#   --enable-doxygen-html and --enable-doxygen-chm,
41
+#   --enable-doxygen-anything with --disable-doxygen, etc.) Finally, each
42
+#   feature will be automatically disabled (with a warning) if the required
43
+#   programs are missing.
44
+#
45
+#   Once all the feature defaults have been specified, call DX_INIT_DOXYGEN
46
+#   with the following parameters: a one-word name for the project for use
47
+#   as a filename base etc., an optional configuration file name (the
48
+#   default is 'Doxyfile', the same as Doxygen's default), and an optional
49
+#   output directory name (the default is 'doxygen-doc').
50
+#
51
+#   Automake Support
52
+#
53
+#   The following is a template aminclude.am file for use with Automake.
54
+#   Make targets and variables values are controlled by the various
55
+#   DX_COND_* conditionals set by autoconf.
56
+#
57
+#   The provided targets are:
58
+#
59
+#     doxygen-doc: Generate all doxygen documentation.
60
+#
61
+#     doxygen-run: Run doxygen, which will generate some of the
62
+#                  documentation (HTML, CHM, CHI, MAN, RTF, XML)
63
+#                  but will not do the post processing required
64
+#                  for the rest of it (PS, PDF, and some MAN).
65
+#
66
+#     doxygen-man: Rename some doxygen generated man pages.
67
+#
68
+#     doxygen-ps:  Generate doxygen PostScript documentation.
69
+#
70
+#     doxygen-pdf: Generate doxygen PDF documentation.
71
+#
72
+#   Note that by default these are not integrated into the automake targets.
73
+#   If doxygen is used to generate man pages, you can achieve this
74
+#   integration by setting man3_MANS to the list of man pages generated and
75
+#   then adding the dependency:
76
+#
77
+#     $(man3_MANS): doxygen-doc
78
+#
79
+#   This will cause make to run doxygen and generate all the documentation.
80
+#
81
+#   The following variable is intended for use in Makefile.am:
82
+#
83
+#     DX_CLEANFILES = everything to clean.
84
+#
85
+#   Then add this variable to MOSTLYCLEANFILES.
86
+#
87
+#     ----- begin aminclude.am -------------------------------------
88
+#
89
+#     ## --------------------------------- ##
90
+#     ## Format-independent Doxygen rules. ##
91
+#     ## --------------------------------- ##
92
+#
93
+#     if DX_COND_doc
94
+#
95
+#     ## ------------------------------- ##
96
+#     ## Rules specific for HTML output. ##
97
+#     ## ------------------------------- ##
98
+#
99
+#     if DX_COND_html
100
+#
101
+#     DX_CLEAN_HTML = @DX_DOCDIR@/html
102
+#
103
+#     endif DX_COND_html
104
+#
105
+#     ## ------------------------------ ##
106
+#     ## Rules specific for CHM output. ##
107
+#     ## ------------------------------ ##
108
+#
109
+#     if DX_COND_chm
110
+#
111
+#     DX_CLEAN_CHM = @DX_DOCDIR@/chm
112
+#
113
+#     if DX_COND_chi
114
+#
115
+#     DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
116
+#
117
+#     endif DX_COND_chi
118
+#
119
+#     endif DX_COND_chm
120
+#
121
+#     ## ------------------------------ ##
122
+#     ## Rules specific for MAN output. ##
123
+#     ## ------------------------------ ##
124
+#
125
+#     if DX_COND_man
126
+#
127
+#     DX_CLEAN_MAN = @DX_DOCDIR@/man
128
+#
129
+#     endif DX_COND_man
130
+#
131
+#     ## ------------------------------ ##
132
+#     ## Rules specific for RTF output. ##
133
+#     ## ------------------------------ ##
134
+#
135
+#     if DX_COND_rtf
136
+#
137
+#     DX_CLEAN_RTF = @DX_DOCDIR@/rtf
138
+#
139
+#     endif DX_COND_rtf
140
+#
141
+#     ## ------------------------------ ##
142
+#     ## Rules specific for XML output. ##
143
+#     ## ------------------------------ ##
144
+#
145
+#     if DX_COND_xml
146
+#
147
+#     DX_CLEAN_XML = @DX_DOCDIR@/xml
148
+#
149
+#     endif DX_COND_xml
150
+#
151
+#     ## ----------------------------- ##
152
+#     ## Rules specific for PS output. ##
153
+#     ## ----------------------------- ##
154
+#
155
+#     if DX_COND_ps
156
+#
157
+#     DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
158
+#
159
+#     DX_PS_GOAL = doxygen-ps
160
+#
161
+#     doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
162
+#
163
+#     @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
164
+#         cd @DX_DOCDIR@/latex; \
165
+#         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
166
+#         $(DX_LATEX) refman.tex; \
167
+#         $(MAKEINDEX_PATH) refman.idx; \
168
+#         $(DX_LATEX) refman.tex; \
169
+#         countdown=5; \
170
+#         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
171
+#                           refman.log > /dev/null 2>&1 \
172
+#            && test $$countdown -gt 0; do \
173
+#             $(DX_LATEX) refman.tex; \
174
+#             countdown=`expr $$countdown - 1`; \
175
+#         done; \
176
+#         $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
177
+#
178
+#     endif DX_COND_ps
179
+#
180
+#     ## ------------------------------ ##
181
+#     ## Rules specific for PDF output. ##
182
+#     ## ------------------------------ ##
183
+#
184
+#     if DX_COND_pdf
185
+#
186
+#     DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
187
+#
188
+#     DX_PDF_GOAL = doxygen-pdf
189
+#
190
+#     doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
191
+#
192
+#     @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
193
+#         cd @DX_DOCDIR@/latex; \
194
+#         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
195
+#         $(DX_PDFLATEX) refman.tex; \
196
+#         $(DX_MAKEINDEX) refman.idx; \
197
+#         $(DX_PDFLATEX) refman.tex; \
198
+#         countdown=5; \
199
+#         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
200
+#                           refman.log > /dev/null 2>&1 \
201
+#            && test $$countdown -gt 0; do \
202
+#             $(DX_PDFLATEX) refman.tex; \
203
+#             countdown=`expr $$countdown - 1`; \
204
+#         done; \
205
+#         mv refman.pdf ../@PACKAGE@.pdf
206
+#
207
+#     endif DX_COND_pdf
208
+#
209
+#     ## ------------------------------------------------- ##
210
+#     ## Rules specific for LaTeX (shared for PS and PDF). ##
211
+#     ## ------------------------------------------------- ##
212
+#
213
+#     if DX_COND_latex
214
+#
215
+#     DX_CLEAN_LATEX = @DX_DOCDIR@/latex
216
+#
217
+#     endif DX_COND_latex
218
+#
219
+#     .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
220
+#
221
+#     .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
222
+#
223
+#     doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
224
+#
225
+#     doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
226
+#
227
+#     @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
228
+#         rm -rf @DX_DOCDIR@
229
+#         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
230
+#
231
+#     DX_CLEANFILES = \
232
+#         @DX_DOCDIR@/@PACKAGE@.tag \
233
+#         -r \
234
+#         $(DX_CLEAN_HTML) \
235
+#         $(DX_CLEAN_CHM) \
236
+#         $(DX_CLEAN_CHI) \
237
+#         $(DX_CLEAN_MAN) \
238
+#         $(DX_CLEAN_RTF) \
239
+#         $(DX_CLEAN_XML) \
240
+#         $(DX_CLEAN_PS) \
241
+#         $(DX_CLEAN_PDF) \
242
+#         $(DX_CLEAN_LATEX)
243
+#
244
+#     endif DX_COND_doc
245
+#
246
+#     ----- end aminclude.am ---------------------------------------
247
+#
248
+# LICENSE
249
+#
250
+#   Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
251
+#
252
+#   Copying and distribution of this file, with or without modification, are
253
+#   permitted in any medium without royalty provided the copyright notice
254
+#   and this notice are preserved. This file is offered as-is, without any
255
+#   warranty.
256
+
257
+#serial 9
258
+
259
+## ----------##
260
+## Defaults. ##
261
+## ----------##
262
+
263
+DX_ENV=""
264
+AC_DEFUN([DX_FEATURE_doc],  ON)
265
+AC_DEFUN([DX_FEATURE_dot],  ON)
266
+AC_DEFUN([DX_FEATURE_man],  OFF)
267
+AC_DEFUN([DX_FEATURE_html], ON)
268
+AC_DEFUN([DX_FEATURE_chm],  OFF)
269
+AC_DEFUN([DX_FEATURE_chi],  OFF)
270
+AC_DEFUN([DX_FEATURE_rtf],  OFF)
271
+AC_DEFUN([DX_FEATURE_xml],  OFF)
272
+AC_DEFUN([DX_FEATURE_pdf],  ON)
273
+AC_DEFUN([DX_FEATURE_ps],   ON)
274
+
275
+## --------------- ##
276
+## Private macros. ##
277
+## --------------- ##
278
+
279
+# DX_ENV_APPEND(VARIABLE, VALUE)
280
+# ------------------------------
281
+# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
282
+AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
283
+
284
+# DX_DIRNAME_EXPR
285
+# ---------------
286
+# Expand into a shell expression prints the directory part of a path.
287
+AC_DEFUN([DX_DIRNAME_EXPR],
288
+         [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
289
+
290
+# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
291
+# -------------------------------------
292
+# Expands according to the M4 (static) status of the feature.
293
+AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
294
+
295
+# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
296
+# ----------------------------------
297
+# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
298
+AC_DEFUN([DX_REQUIRE_PROG], [
299
+AC_PATH_TOOL([$1], [$2])
300
+if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
301
+    AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
302
+    AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
303
+fi
304
+])
305
+
306
+# DX_TEST_FEATURE(FEATURE)
307
+# ------------------------
308
+# Expand to a shell expression testing whether the feature is active.
309
+AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
310
+
311
+# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
312
+# -------------------------------------------------
313
+# Verify that a required features has the right state before trying to turn on
314
+# the DX_CURRENT_FEATURE.
315
+AC_DEFUN([DX_CHECK_DEPEND], [
316
+test "$DX_FLAG_$1" = "$2" \
317
+|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
318
+                            requires, contradicts) doxygen-DX_CURRENT_FEATURE])
319
+])
320
+
321
+# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
322
+# ----------------------------------------------------------
323
+# Turn off the DX_CURRENT_FEATURE if the required feature is off.
324
+AC_DEFUN([DX_CLEAR_DEPEND], [
325
+test "$DX_FLAG_$1" = "$2" || AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
326
+])
327
+
328
+# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
329
+#                CHECK_DEPEND, CLEAR_DEPEND,
330
+#                REQUIRE, DO-IF-ON, DO-IF-OFF)
331
+# --------------------------------------------
332
+# Parse the command-line option controlling a feature. CHECK_DEPEND is called
333
+# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
334
+# otherwise CLEAR_DEPEND is called to turn off the default state if a required
335
+# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
336
+# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
337
+# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
338
+AC_DEFUN([DX_ARG_ABLE], [
339
+    AC_DEFUN([DX_CURRENT_FEATURE], [$1])
340
+    AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
341
+    AC_ARG_ENABLE(doxygen-$1,
342
+                  [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
343
+                                                      [--enable-doxygen-$1]),
344
+                                  DX_IF_FEATURE([$1], [don't $2], [$2]))],
345
+                  [
346
+case "$enableval" in
347
+#(
348
+y|Y|yes|Yes|YES)
349
+    AC_SUBST([DX_FLAG_$1], 1)
350
+    $3
351
+;; #(
352
+n|N|no|No|NO)
353
+    AC_SUBST([DX_FLAG_$1], 0)
354
+;; #(
355
+*)
356
+    AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
357
+;;
358
+esac
359
+], [
360
+AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
361
+$4
362
+])
363
+if DX_TEST_FEATURE([$1]); then
364
+    $5
365
+    :
366
+fi
367
+if DX_TEST_FEATURE([$1]); then
368
+    AM_CONDITIONAL(DX_COND_$1, :)
369
+    $6
370
+    :
371
+else
372
+    AM_CONDITIONAL(DX_COND_$1, false)
373
+    $7
374
+    :
375
+fi
376
+])
377
+
378
+## -------------- ##
379
+## Public macros. ##
380
+## -------------- ##
381
+
382
+# DX_XXX_FEATURE(DEFAULT_STATE)
383
+# -----------------------------
384
+AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc],  [$1])])
385
+AC_DEFUN([DX_MAN_FEATURE],     [AC_DEFUN([DX_FEATURE_man],  [$1])])
386
+AC_DEFUN([DX_HTML_FEATURE],    [AC_DEFUN([DX_FEATURE_html], [$1])])
387
+AC_DEFUN([DX_CHM_FEATURE],     [AC_DEFUN([DX_FEATURE_chm],  [$1])])
388
+AC_DEFUN([DX_CHI_FEATURE],     [AC_DEFUN([DX_FEATURE_chi],  [$1])])
389
+AC_DEFUN([DX_RTF_FEATURE],     [AC_DEFUN([DX_FEATURE_rtf],  [$1])])
390
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
391
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
392
+AC_DEFUN([DX_PDF_FEATURE],     [AC_DEFUN([DX_FEATURE_pdf],  [$1])])
393
+AC_DEFUN([DX_PS_FEATURE],      [AC_DEFUN([DX_FEATURE_ps],   [$1])])
394
+
395
+# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
396
+# ---------------------------------------------------------
397
+# PROJECT also serves as the base name for the documentation files.
398
+# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
399
+AC_DEFUN([DX_INIT_DOXYGEN], [
400
+
401
+# Files:
402
+AC_SUBST([DX_PROJECT], [$1])
403
+AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
404
+AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
405
+
406
+# Environment variables used inside doxygen.cfg:
407
+DX_ENV_APPEND(SRCDIR, $srcdir)
408
+DX_ENV_APPEND(PROJECT, $DX_PROJECT)
409
+DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
410
+DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
411
+
412
+# Doxygen itself:
413
+DX_ARG_ABLE(doc, [generate any doxygen documentation],
414
+            [],
415
+            [],
416
+            [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
417
+             DX_REQUIRE_PROG([DX_PERL], perl)],
418
+            [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
419
+
420
+# Dot for graphics:
421
+DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
422
+            [DX_CHECK_DEPEND(doc, 1)],
423
+            [DX_CLEAR_DEPEND(doc, 1)],
424
+            [DX_REQUIRE_PROG([DX_DOT], dot)],
425
+            [DX_ENV_APPEND(HAVE_DOT, YES)
426
+             DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
427
+            [DX_ENV_APPEND(HAVE_DOT, NO)])
428
+
429
+# Man pages generation:
430
+DX_ARG_ABLE(man, [generate doxygen manual pages],
431
+            [DX_CHECK_DEPEND(doc, 1)],
432
+            [DX_CLEAR_DEPEND(doc, 1)],
433
+            [],
434
+            [DX_ENV_APPEND(GENERATE_MAN, YES)],
435
+            [DX_ENV_APPEND(GENERATE_MAN, NO)])
436
+
437
+# RTF file generation:
438
+DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
439
+            [DX_CHECK_DEPEND(doc, 1)],
440
+            [DX_CLEAR_DEPEND(doc, 1)],
441
+            [],
442
+            [DX_ENV_APPEND(GENERATE_RTF, YES)],
443
+            [DX_ENV_APPEND(GENERATE_RTF, NO)])
444
+
445
+# XML file generation:
446
+DX_ARG_ABLE(xml, [generate doxygen XML documentation],
447
+            [DX_CHECK_DEPEND(doc, 1)],
448
+            [DX_CLEAR_DEPEND(doc, 1)],
449
+            [],
450
+            [DX_ENV_APPEND(GENERATE_XML, YES)],
451
+            [DX_ENV_APPEND(GENERATE_XML, NO)])
452
+
453
+# (Compressed) HTML help generation:
454
+DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
455
+            [DX_CHECK_DEPEND(doc, 1)],
456
+            [DX_CLEAR_DEPEND(doc, 1)],
457
+            [DX_REQUIRE_PROG([DX_HHC], hhc)],
458
+            [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
459
+             DX_ENV_APPEND(GENERATE_HTML, YES)
460
+             DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
461
+            [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
462
+
463
+# Seperate CHI file generation.
464
+DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
465
+            [DX_CHECK_DEPEND(chm, 1)],
466
+            [DX_CLEAR_DEPEND(chm, 1)],
467
+            [],
468
+            [DX_ENV_APPEND(GENERATE_CHI, YES)],
469
+            [DX_ENV_APPEND(GENERATE_CHI, NO)])
470
+
471
+# Plain HTML pages generation:
472
+DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
473
+            [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
474
+            [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
475
+            [],
476
+            [DX_ENV_APPEND(GENERATE_HTML, YES)],
477
+            [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
478
+
479
+# PostScript file generation:
480
+DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
481
+            [DX_CHECK_DEPEND(doc, 1)],
482
+            [DX_CLEAR_DEPEND(doc, 1)],
483
+            [DX_REQUIRE_PROG([DX_LATEX], latex)
484
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
485
+             DX_REQUIRE_PROG([DX_DVIPS], dvips)
486
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
487
+
488
+# PDF file generation:
489
+DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
490
+            [DX_CHECK_DEPEND(doc, 1)],
491
+            [DX_CLEAR_DEPEND(doc, 1)],
492
+            [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
493
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
494
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
495
+
496
+# LaTeX generation for PS and/or PDF:
497
+if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
498