comparison configure.in @ 1602:cd97a8e39874

Fixed DirectFB detection
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 17:31:12 +0000
parents a79200e79a61
children d91c02552377
comparison
equal deleted inserted replaced
1601:a79200e79a61 1602:cd97a8e39874
1057 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 1057 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
1058 video_directfb=no 1058 video_directfb=no
1059 1059
1060 DIRECTFB_REQUIRED_VERSION=0.9.15 1060 DIRECTFB_REQUIRED_VERSION=0.9.15
1061 1061
1062 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config) 1062 AC_PATH_PROG(DIRECTFBCONFIG, directfb-config, no)
1063 if test x$DIRECTFBCONFIG = x -o x$DIRECTFBCONFIG = x'"$DIRECTFBCONFIG"'; then 1063 if test x$DIRECTFBCONFIG = xno; then
1064 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 1064 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1065 if test x$PKG_CONFIG != xno ; then 1065 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
1066 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) 1066 if test x$PKG_CONFIG != xno; then
1067 1067 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
1068 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then then
1069 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` 1068 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
1070 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` 1069 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
1071 video_directfb=yes 1070 video_directfb=yes
1072 fi 1071 fi
1073 AC_MSG_RESULT($video_directfb) 1072 fi
1074 fi 1073 AC_MSG_RESULT($video_directfb)
1075 else 1074 else
1076 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support) 1075 AC_MSG_CHECKING(for DirectFB $DIRECTFB_REQUIRED_VERSION support)
1077 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` 1076 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
1078 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 1077 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
1079 set -- `directfb-config --version | sed 's/\./ /g'` 1078 set -- `directfb-config --version | sed 's/\./ /g'`