Do not use g_slist_free_full() which requires glib2 2.28.0 (Frank Bergmann)
mcabber does not build on RHEL5.
The root cause is that mcabber uses g_slist_free_full which is available since
glib2 2.28.0 but configure checks only for 2.14.0.
This patch substitutes the g_slist_free_full call.
Frank Bergmann
#! /bin/sh
srcdir="$1"
builddir="$2"
if [ ! -f "$srcdir/logprint.h" ]; then
echo "Unable to find mcabber sources!" >&2
exit 1
fi
cd "$srcdir"
if which hg > /dev/null 2>&1; then
cs=$(hg id 2> /dev/null | cut -d' ' -f1)
if test $? -eq 0; then
if [ x"$cs" != x ]; then
grep -q "$cs" "$builddir/hgcset.h" > /dev/null 2>&1 || \
echo "#define HGCSET \"$cs\"" > "$builddir/hgcset.h"
exit 0
fi
fi
fi
echo > "$builddir/hgcset.h"