configure.in
changeset 1601 a79200e79a61
parent 1597 06e9f1c7611b
child 1602 cd97a8e39874
--- a/configure.in	Thu Mar 23 15:22:40 2006 +0000
+++ b/configure.in	Thu Mar 23 15:25:30 2006 +0000
@@ -1063,15 +1063,9 @@
         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