2004-03-17 Mikael Hallendal <micke@imendio.com>
* Synced from SVN.
* Released 0.16
* configure.in: Bumped to 0.16
* NEWS: Updated for 0.16
2004-03-17 Mikael Hallendal <micke@imendio.com>
* docs/reference/*: Updated documentation.
* loudmouth/*: Fixed the documentation in a couple of places.
2004-03-17 Mikael Hallendal <micke@imendio.com>
* loudmouth/lm-connection.[ch]
(lm_connection_new_with_context):
- Added to be able to give what context the connection should be
running in.
- All internal functions are updated to use the context or NULL if
lm_connection_new was called.
- Should make it possible to use several LmConnections in various
threads.
2004-03-17 Mikael Hallendal <micke@imendio.com>
* loudmouth/lm-connection.c:
* loudmouth/lm-internal.h:
* loudmouth/lm-proxy.c:
- Make the HTTP proxy support asynchronous. Patch from Josh Beam.
- Re-enable the HTTP proxy support.
* examples/lm-send-sync.c:
* examples/lm-send-async.c:
* examples/test-http-proxy.c:
- Added two of the old examples and a new one to test out the HTTP
proxy support.
2004-03-17 Mikael Hallendal <micke@imendio.com>
* configure.in: Generate examples/Makefile
* loudmouth/test-jid.c: Removed
* loudmouth/test-lm.c: Moved to examples/
* exmples/*: Moved out from loudmouth/
AC_INIT(loudmouth/lm-message.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(loudmouth, 0.16)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_LIBTOOL
AM_PATH_GLIB_2_0
LM_COMPILE_WARNINGS
changequote(,)dnl
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
esac
fi
changequote([,])dnl
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
GLIB2_REQUIRED=2.0.0
GNUTLS_REQUIRED=1.0.0
AC_SUBST(GLIB2_REQUIRED)
AC_SUBST(GNUTLS_REQUIRED)
LM_CHECK_TIMEZONE
PKG_CHECK_MODULES(LOUDMOUTH, glib-2.0 >= $GLIB2_REQUIRED)
dnl +--------------------+
dnl | Check for gtk-doc. |-------------------------------
dnl +--------------------+
AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
if test "x$with_html_dir" = "x" ; then
HTML_DIR='${datadir}/gtk-doc/html'
else
HTML_DIR=$with_html_dir
fi
AC_SUBST(HTML_DIR)
gtk_doc_min_version=1.0
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
AC_MSG_RESULT(yes)
GTKDOC=true
else
AC_MSG_RESULT(no)
GTKDOC=false
fi
dnl Let people disable the gtk-doc stuff.
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=no]], enable_gtk_doc="$enableval", enable_gtk_doc=no)
if test x$enable_gtk_doc = xauto ; then
if test x$GTKDOC = xtrue ; then
enable_gtk_doc=yes
else
enable_gtk_doc=no
fi
fi
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
dnl define a MAINT-like variable REBUILD which is set if Perl
dnl and awk are found, so autogenerated sources can be rebuilt
AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes)
REBUILD=\#
if test "x$enable_rebuilds" = "xyes" && \
test -n "$PERL" && \
$PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
test -n "$AWK" ; then
REBUILD=
fi
AC_SUBST(REBUILD)
dnl +--------------------------------------------------------+
dnl | Checking for libnsl and libsocket need on some systems |-
dnl +--------------------------------------------------------+
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(socket,socket)
dnl +--------------------------------------------------------+
dnl | Checking for SSL (through GnuTLS) support |
dnl +--------------------------------------------------------+
AC_ARG_WITH(ssl, [ --with-ssl=no/yes define whether to look for SSL, default=yes],
ac_ssl=$withval,
ac_ssl=yes
)
if test x$ac_ssl != xno; then
AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
if test x$have_libgnutls = xyes; then
CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
LIBS="$LIBS $LIBGNUTLS_LIBS"
AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
else
echo "Couldn't find GnuTLS, disabling SSL support"
fi
else
echo "Disabling SSL support"
fi
dnl +-------------+
dnl | Build Flags |--------------------------------------------
dnl +-------------+
DOC_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $WARN_CFLAGS"
AC_SUBST(DOC_CFLAGS)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
dnl -----------------------------------------------------------
dnl +--------------+
dnl | Debug output |-------------------------------------------
dnl +--------------+
AC_ARG_ENABLE(debug,
[ --enable-debug Enable debug output [default=yes]],
enable_debug="$enableval", enable_debug=yes, enable_debug=no)
if test x$enable_debug = xno ; then
echo "Debugging disabled"
LOUDMOUTH_CFLAGS="$LOUDMOUTH_CFLAGS -DLM_NO_DEBUG"
else
echo "Debugging enabled"
fi
AC_SUBST(LOUDMOUTH_CFLAGS)
AC_SUBST(LOUDMOUTH_LIBS)
dnl +--------------------------------------+
dnl | Check if we shoudl build C# bindings |-------------------
dnl +--------------------------------------+
dnl --------------
dnl | mono setup |--------------------------------------------
dnl --------------
dnl AC_ARG_ENABLE(mono, [ --enable-mono build mono bindings [default=auto]], enable_mono="$enableval", enable_mono=auto)
dnl if test "x$enable_mono" != "xno"; then
dnl PKG_CHECK_MODULES(,gtk-sharp,have_mono=yes,have_mono=no)
dnl dnl
dnl if test "x$have_mono" = "xyes"; then
dnl AC_PATH_PROG(GAPI_FIXUP, gapi-fixup, no)
dnl AC_PATH_PROG(GAPI_CODEGEN, gapi-codegen, no)
dnl AC_PATH_PROG(MCS, mcs, no)
dnl AC_PATH_PROG(MONO, mono, no)
dnl fi
dnl else
dnl have_mono=no
dnl fi
dnl if test "x$enable_mono" = "xyes"; then
dnl AC_MSG_CHECKING(for mono environment)
dnl if test "x$have_mono" = "xno"; then
dnl AC_MSG_ERROR([not found])
dnl fi
dnl fi
AM_CONDITIONAL(HAVE_MONO, test x$have_mono = xyes)
AC_OUTPUT([
Makefile
docs/Makefile
docs/reference/Makefile
loudmouth/Makefile
examples/Makefile
loudmouth-1.0.pc
loudmouth.spec])
dnl mono/Makefile
dnl mono/loudmouth/Makefile
dnl ==========================================================================
echo "
Loudmouth $VERSION from Imendio HB
==================================
prefix: ${prefix}
compiler: ${CC}
"
dnl if test x$enable_mono = xyes ; then
dnl echo \
dnl " mcs: ${MCS}
dnl mcsflags: ${MCSFLAGS}
dnl "
dnl else
dnl echo \
dnl " mcs: (not enabled)
dnl "
dnl fi
echo \
" Enable SSL ${ac_ssl}"
echo \
" Enable Debug: ${enable_debug}
"
echo \
" Now type 'make' to build Loudmouth
"