File tsclient-nm-0.8.patch of Package tsclient

Index: configure.ac
===================================================================
--- configure.ac.orig	2008-12-17 20:07:02.000000000 +1100
+++ configure.ac	2010-01-31 07:47:59.000000000 +1100
@@ -32,7 +32,14 @@ AM_PROG_LIBTOOL
 
 ### get cflags and libs
 
-PKG_CHECK_MODULES(TSC, glib-2.0 gmodule-2.0 gobject-2.0 gtk+-2.0 libglade-2.0 libgnome-2.0 gnome-desktop-2.0 gnome-vfs-2.0 libnotify gconf-2.0 libgnomeui-2.0 libnm_glib)
+NM_GLIB=
+PKG_CHECK_EXISTS(libnm-glib, [ NM_GLIB=libnm-glib ])
+if test "x$NM_GLIB" = "x"; then
+       PKG_CHECK_EXISTS(libnm_glib, [ NM_GLIB=libnm_glib ], [ AC_ERROR(cannot find NetworkManager Glib library) ])
+fi
+
+PKG_CHECK_MODULES(TSC, glib-2.0 gmodule-2.0 gobject-2.0 gtk+-2.0 libglade-2.0 libgnome-2.0 gnome-desktop-2.0 gnome-vfs-2.0 libnotify gconf-2.0 libgnomeui-2.0 $NM_GLIB >= 0.7.0)
+
 TSC_CFLAGS="-Wall $TSC_CFLAGS"
 
 ### Internationalization support
openSUSE Build Service is sponsored by