AC_MSG_RESULT([found, adding /sw to search paths])
CPPFLAGS="$CPPFLAGS -I/sw/include"
LDFLAGS="$LDFLAGS -L/sw/lib"
else
AC_MSG_RESULT([not found])
fi
;;
*)
;;
esac
ALL_LINGUAS="af am ar az be@latin bg bn bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr gl gu he hi hu id it ja ka kn ko ku lt mk my_MM nb ne nl nn pa pl pt_BR pt ps ro ru sk sl sq sr sr@Latn sv ta te th tr uk 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
then
AC_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
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(howl-includes,[AC_HELP_STRING([--with-howl-includes=DIR],[compile the Bonjour plugin against the Howl includes in DIR])],[ac_howl_includes="$withval"],[ac_howl_includes="no"])
AC_ARG_WITH(howl-libs,[AC_HELP_STRING([--with-howl-libs=DIR],[compile the Bonjour plugin against the Howl libs in DIR])],[ac_howl_libs="$withval"],[ac_howl_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_WITH(gadu-includes, [AC_HELP_STRING([--with-gadu-includes=DIR], [compile the Gadu-Gadu plugin against includes in DIR])], [ac_gadu_includes="$withval"], [ac_gadu_includes="no"])
AC_ARG_WITH(gadu-libs, [AC_HELP_STRING([--with-gadu-libs=DIR], [compile the Gadu-Gadu plugin against the libs in DIR])], [ac_gadu_libs="$withval"], [ac_gadu_libs="no"])
GADU_CFLAGS=""
GADU_LIBS=""
if test -n "$with_gadu_includes" || test -n "$with_gadu_libs"; then
AC_ARG_ENABLE(cyrus-sasl, AC_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for jabberd]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no)
if test "x$enable_cyrus_sasl" = "xyes" ; then
AC_CHECK_LIB(sasl2, sasl_client_init, [
AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present])