AC_ARG_ENABLE(nls,AC_HELP_STRING([--disable-nls],[disable installation of translation files]),enable_i18n="$enableval",enable_i18n=yes)
iftestx$enable_i18n=xyes;then
AC_PROG_INTLTOOL
GETTEXT_PACKAGE=pidgin
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="af am ar as ast az be@latin bg bn_IN bn br brx bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es_AR es et eu fa fi fr ga gl gu he hi hr hu id it ja ka kk km kn ko ks ku_IQ ku lt lv mai mhr mk ml mn mr ms_MY my_MM nb ne nl nn oc or pa pl ps pt_BR pt ro ru sd si sk sl sq sr@latin sr sv sw ta te th tr tt uk ur uz vi xh zh_CN zh_HK zh_TW"
AM_GLIB_GNU_GETTEXT
dnlIfwedon't have msgfmt, then po/ is going to fail -- ensure that
dnl AM_GLIB_GNU_GETTEXT found it.
if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
then
AC_MSG_ERROR([
The msgfmt command is required to build libpurple. If it is installed
on your system, ensure that it is in your path. If it is not, install
GNU gettext to continue.
If you have msgfmt installed, but for some reason this error message
is still displayed, you have encountered what appears to be a bug in
third-party configure macros. Try setting the MSGFMT environment
variable to the absolute path to your msgfmt binary and trying
configure again, like this:
MSGFMT=/path/to/msgfmt ./configure ...
])
fi
fi #enable_i18n
AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes")
[compile without avahi (required for Bonjour support)])],
enable_avahi="$enableval",enable_avahi="yes")
iftest"x$enable_avahi"="xyes";then
AC_ARG_WITH(avahi-client-includes,[AC_HELP_STRING([--with-avahi-client-includes=DIR],[compile the Bonjour plugin against the Avahi Client includes in DIR])],[ac_avahi_client_includes="$withval"],[ac_avahi_client_includes="no"])
AC_ARG_WITH(avahi-client-libs,[AC_HELP_STRING([--with-avahi-client-libs=DIR],[compile the Bonjour plugin against the Avahi Client libs in DIR])],[ac_avahi_client_libs="$withval"],[ac_avahi_client_libs="no"])
AC_ARG_WITH(silc-includes,[AC_HELP_STRING([--with-silc-includes=DIR],[compile the SILC plugin against includes in DIR])],[ac_silc_includes="$withval"],[ac_silc_includes="no"])
AC_ARG_WITH(silc-libs,[AC_HELP_STRING([--with-silc-libs=DIR],[compile the SILC plugin against the SILC libs in DIR])],[ac_silc_libs="$withval"],[ac_silc_libs="no"])
AC_ARG_ENABLE(cyrus-sasl,AC_HELP_STRING([--enable-cyrus-sasl],[enable Cyrus SASL support for xmpp/irc]),enable_cyrus_sasl=$enableval,enable_cyrus_sasl=no)
iftest"x$enable_cyrus_sasl"="xyes";then
AC_CHECK_LIB(sasl2,sasl_client_init,[
AM_CONDITIONAL(USE_CYRUS_SASL, true)
AC_DEFINE(HAVE_CYRUS_SASL, [1],[Define to 1 if Cyrus SASL is present])
AC_ARG_ENABLE(trayicon-compat, AC_HELP_STRING([--enable-trayicon-compat], [install tray icons in location compatible with older releases of hicolor-icon-theme]), enable_traycompat="$enableval", enable_traycompat=no)
AM_CONDITIONAL(ENABLE_TRAYCOMPAT, test "x$enable_traycompat" = "xyes")