Skip to content
Permalink
Browse files

Hopefully fixed up DirectFB detection

  • Loading branch information
slouken committed Mar 23, 2006
1 parent ab48922 commit d8a3c3f3500093e88fbb6bddfefd1294ab7d85d5
Showing with 1 addition and 7 deletions.
  1. +1 −7 configure.in
@@ -1063,15 +1063,9 @@ AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [default=ye
if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$PKG_CONFIG != xno ; then
AC_MSG_WARN([*** directfb-config or pkg-config are required to detect the DirectFB video driver.])
else
AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)

if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
AC_MSG_ERROR([*** pkg-config too old; version 0.7 or better required.])
fi

if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
video_directfb=yes

0 comments on commit d8a3c3f

Please sign in to comment.