KDE_FIND_PATH(perl, PERL, [],
	[
	  AC_MSG_WARN([Couldn't find perl 5 or later. ical2vcal will not work.])		],
	[-e 'require 5.000;']
)

AC_SUBST(PERL)

KDE_CHECK_STL
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/select.h \
	malloc.h sys/param.h libgen.h)
AC_HEADER_TIME

AC_LANG_C
AC_C_LONG_DOUBLE
AC_TYPE_GETGROUPS

dnl Checks for library functions.
AC_CHECK_FUNCS(socket strdup vsnprintf basename setenv unsetenv)
AC_CHECK_GETDOMAINNAME
AC_CHECK_GETHOSTNAME
AC_CHECK_USLEEP

dnl AC_OUTPUT(korganizer/ical2vcal)

AC_PROG_YACC
