configure.in
changeset 3351 8e0182c236d8
parent 3334 61ea9005fddf
child 3354 98c5b421426e
     1.1 --- a/configure.in	Wed Oct 07 04:32:04 2009 +0000
     1.2 +++ b/configure.in	Wed Oct 07 06:11:53 2009 +0000
     1.3 @@ -1323,7 +1323,6 @@
     1.4          AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no)
     1.5          if test x$DIRECTFBCONFIG = xno; then
     1.6              AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
     1.7 -            AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
     1.8              if test x$PKG_CONFIG != xno; then
     1.9                  if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
    1.10                      DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
    1.11 @@ -1332,9 +1331,7 @@
    1.12                      video_directfb=yes
    1.13                  fi
    1.14              fi
    1.15 -            AC_MSG_RESULT($video_directfb)
    1.16          else
    1.17 -            AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
    1.18              set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
    1.19              NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
    1.20              set -- `directfb-config --version | sed 's/\./ /g'`
    1.21 @@ -1345,8 +1342,17 @@
    1.22                  DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
    1.23                  video_directfb=yes
    1.24              fi
    1.25 -            AC_MSG_RESULT($video_directfb)
    1.26          fi
    1.27 +        if test x$video_directfb = xyes; then
    1.28 +            # SuSE 11.1 installs directfb-config without directfb-devel
    1.29 +            save_CFLAGS="$CFLAGS"
    1.30 +            CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
    1.31 +            AC_CHECK_HEADER(directfb.h, have_directfb_hdr=yes, have_directfb_hdr=no)
    1.32 +            CFLAGS="$save_CFLAGS"
    1.33 +            video_directfb=$have_directfb_hdr
    1.34 +        fi
    1.35 +        AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
    1.36 +        AC_MSG_RESULT($video_directfb)
    1.37  
    1.38          if test x$video_directfb = xyes; then
    1.39              AC_ARG_ENABLE(directfb-shared,