build: remove glib dependency

We no longer require glib, yeah! Drop the mandatory glib dependency from
all build-files. Notice that there is not a single dependency, anymore,
except for libc.

We still have a not-mentioned pango dependency but this can be replaced
with freetype or a static font renderer so we currently do not care.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-15 16:41:26 +02:00
parent d0672030ff
commit 8a9eccdaf9
2 changed files with 2 additions and 12 deletions

View File

@ -129,13 +129,11 @@ libkmscon_core_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(GLES2_CFLAGS) \
$(PANGO_CFLAGS) \
$(FREETYPE2_CFLAGS) \
$(GLIB_CFLAGS)
$(FREETYPE2_CFLAGS)
libkmscon_core_la_LIBADD = \
$(GLES2_LIBS) \
$(PANGO_LIBS) \
$(FREETYPE2_LIBS) \
$(GLIB_LIBS) \
-lpthread \
libeloop.la \
libuterm.la

View File

@ -52,9 +52,6 @@ GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
# ourself.
#
PKG_CHECK_MODULES([GLIB], [glib-2.0],
[have_glib=yes], [have_glib=no])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd-login],
[have_systemd=yes], [have_systemd=no])
@ -160,12 +157,9 @@ AM_CONDITIONAL([DEBUG], [test x$debug_enabled = xyes])
#
# Main dependencies
# This checks for all dependencies that are not optional.
# TODO: remove glib dependency
#
if test ! x$have_glib = xyes ; then
AC_ERROR([glib-2.0 no found but is required by kmscon])
fi
# We currently have no mandatory dependencies!
#
# Systemd dependency
@ -372,8 +366,6 @@ AC_SUBST(UDEV_CFLAGS)
AC_SUBST(UDEV_LIBS)
AC_SUBST(XKBCOMMON_CFLAGS)
AC_SUBST(XKBCOMMON_LIBS)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(FREETYPE2_CFLAGS)
AC_SUBST(FREETYPE2_LIBS)
AC_SUBST(PANGO_CFLAGS)