diff options
author | Michael David Emmel <memmel@src.gnome.org> | 2006-02-05 04:04:29 +0000 |
---|---|---|
committer | Michael David Emmel <memmel@src.gnome.org> | 2006-02-05 04:04:29 +0000 |
commit | f94921838ec7ab49dc7d131770ec0e4c0efbaa1f (patch) | |
tree | 9921fb48f1e45edb7ef3f54f9ed1178e2f4ae98e /configure.in | |
parent | 9bfabba034d61521bb2d01db886446889ba42666 (diff) | |
download | gtk+-f94921838ec7ab49dc7d131770ec0e4c0efbaa1f.tar.gz |
Added new directfb backend
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 4e786c831f..d1402a5699 100644 --- a/configure.in +++ b/configure.in @@ -224,13 +224,13 @@ else gdktarget=x11 fi -AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/linux-fb/win32/quartz]] select non-default GDK target], +AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/linux-fb/win32/quartz/directfb]] select non-default GDK target], gdktarget=$with_gdktarget) AC_SUBST(gdktarget) case $gdktarget in - x11|linux-fb|win32|quartz) ;; - *) AC_MSG_ERROR([Invalid target for GDK: use x11, linux-fb, quartz or win32.]);; + x11|linux-fb|win32|quartz|directfb) ;; + *) AC_MSG_ERROR([Invalid target for GDK: use x11, linux-fb, quartz, directfb or win32.]);; esac gdktargetlib=libgdk-$gdktarget-$GTK_API_VERSION.la @@ -1369,6 +1369,27 @@ else AM_CONDITIONAL(ENABLE_FB_MANAGER, false) fi +if test "x$gdktarget" = "xdirectfb"; then + DIRECTFB_REQUIRED_VERSION=0.9.21 + AC_MSG_CHECKING(for DirectFB) + + if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then + AC_MSG_RESULT(found) + GDK_EXTRA_CFLAGS="`$PKG_CONFIG --cflags directfb` $GDK_EXTRA_CFLAGS" + GDK_EXTRA_LIBS="`$PKG_CONFIG --libs directfb` $GDK_EXTRA_LIBS" + else + AC_MSG_ERROR([ +*** DirectFB $DIRECTFB_REQUIRED_VERSION or newer is required. The latest +*** version of DirectFB is always available from http://www.directfb.org/. + ]) + fi + + AM_CONDITIONAL(USE_DIRECTFB, true) +else + AM_CONDITIONAL(USE_DIRECTFB, false) +fi + + # Check for Pango flags if test "x$gdktarget" = "xwin32"; then @@ -1589,6 +1610,9 @@ elif test "x$gdktarget" = "xlinux-fb" ; then elif test "x$gdktarget" = "xquartz" ; then gdk_windowing=' #define GDK_WINDOWING_QUARTZ' +elif test "x$gdktarget" = "xdirectfb" ; then + gdk_windowing=' +#define GDK_WINDOWING_DIRECTFB' fi if test x$gdk_wchar_h = xyes; then @@ -1646,6 +1670,7 @@ gdk/win32/rc/Makefile gdk/win32/rc/gdk.rc gdk/linux-fb/Makefile gdk/quartz/Makefile +gdk/directfb/Makefile gtk/Makefile gtk/makefile.msc gtk/gtkversion.h |