We are now making use of the new libical function icaltimezone_set_tzid_prefix()
which allows the application to customize the namespace of tzid's generated
from the host operating system's tzdata, for example:
/citadel.org/Tzdata/America/New_York
dnl Checks for the libical iCalendar library.
AC_CHECK_HEADER(libical/ical.h,
- [AC_CHECK_LIB(ical, icalcomponent_as_ical_string_r,
+ [AC_CHECK_LIB(ical, icaltimezone_set_tzid_prefix,
[
SERVER_LIBS="-lical $SERVER_LIBS"
],
/* Tell libical to return errors instead of aborting if it gets bad data */
icalerror_errors_are_fatal = 0;
+ /* Use our own application prefix in tzid's generated from system tzdata */
+ icaltimezone_set_tzid_prefix("/citadel.org/");
+
/* Initialize our hook functions */
CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);
CtdlRegisterMessageHook(ical_obj_aftersave, EVT_AFTERSAVE);
dnl Checks for the libical iCalendar library.
AC_CHECK_HEADER(libical/ical.h,
- [AC_CHECK_LIB(ical, icalcomponent_as_ical_string_r,
+ [AC_CHECK_LIB(ical, icaltimezone_set_tzid_prefix,
[
LIBS="-lical $LIBS"
],
/* Tell libical to return an error instead of aborting if it sees badly formed iCalendar data. */
icalerror_errors_are_fatal = 0;
+ /* Use our own prefix on tzid's generated from system tzdata */
+ icaltimezone_set_tzid_prefix("/citadel.org/");
+
/*
* Set up a place to put thread-specific data.
* We only need a single pointer per thread - it points to the