Index: configure.in =================================================================== --- configure.in (revision 907) +++ configure.in (working copy) @@ -189,9 +189,32 @@ dnl ************************************************** +dnl ICAL_ERRORS_ARE_FATAL +dnl ************************************************** +AC_MSG_CHECKING(if icalerrors_* calls should abort instead of internally signalling an error) +AC_ARG_ENABLE(icalerrors-are-fatal, + [ --enable-icalerrors-are-fatal define ICAL_ERRORS_ARE_FATAL to make icalerror_* calls fatal], + [ case "${enableval}" in + no) + ac_cv_ical_errors_are_fatal=no + ;; + *) + ac_cv_ical_errors_are_fatal=yes + ;; + esac ], + ac_cv_ical_errors_are_fatal=yes +) +AC_MSG_RESULT($ac_cv_ical_errors_are_fatal) + +if test "x$ac_cv_ical_errors_are_fatal" != "xno"; then + AC_DEFINE(ICAL_ERRORS_ARE_FATAL, 1, [Define to make icalerror_* calls abort instead of internally signalling an error]) +else + AC_DEFINE(ICAL_ERRORS_ARE_FATAL, 0, [Define to make icalerror_* calls abort instead of internally signalling an error]) +fi + +dnl ************************************************** dnl test/regression.c (and maybe others) needs this defined dnl ************************************************** -AC_DEFINE(ICAL_ERRORS_ARE_FATAL,1,[Define to make icalerror_* calls abort instead of internally signalling an error]) AC_DEFINE(NO_WARN_DEPRECATED,1,[Define to 1 if you DO NOT WANT to see deprecated messages]) AC_DEFINE(NO_WARN_ICAL_MALFORMEDDATA_ERROR_HACK,1,[Define to 1 if you DO NO WANT to see the warning messages related to ICAL_MALFORMEDDATA_ERROR and parsing .ics zoneinfo files])