dnl -*- mode: Autoconf; -*-
dnl Invoke autogen.sh to produce a configure script.

# BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS ..."

AC_ARG_ENABLE(buteo,
              AS_HELP_STRING([--enable-buteo],
                             [enable Buteo client plugin]),
	      [enable_buteo="$enableval"],
              [enable_buteo="no"]
              )

if test "$enable_buteo" = "yes"; then
        AC_DEFINE(ENABLE_BUTEO, 1, [Buteo available])
        # AC_WITH_QT() will be called in configure-post if need_qt_modules is not empty,
        # setting QT_* flags.
        need_qt_modules="$need_qt_modules +core"
        PKG_CHECK_MODULES(BUTEO, [synccommon syncpluginmgr syncprofile])
fi
AM_CONDITIONAL([ENABLE_BUTEO], [test "$enable_buteo" = "yes"])
