detection of the installed libical version.
$Log$
+ Revision 629.5 2005/01/14 17:08:30 ajc
+ * Applied a configure script fix sent in by David Given for more reliable
+ detection of the installed libical version.
+
Revision 629.4 2005/01/13 05:43:16 ajc
* Initial support for having a room participate in a remote mailing list
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
[
#include <ical.h>
main() {
- float v;
- int i;
- sscanf(ICAL_VERSION, "%f", &v);
- printf("libical version: %0.2f\n", v);
- v = v * 100.0;
- i = (int) v;
- if (i >= 24) {
- printf("This version is ok.\n");
+ int major, minor, v;
+ sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
+ v = 100*major + minor;
+ printf("libical version: %i\n", v);
+ if (v >= 24) {
+ printf("This version is ok.\n");
return(0);
}
printf("libical 0.24 or newer required.\n");
<tr>
<td valign="top">David Given<br>
</td>
- <td valign="top"><i>non-ASCII IMAP mailbox naming<br>
+ <td valign="top"><i>IMAP and build patches<br>
</i></td>
</tr>
<tr>