changeset 5034:d7118bee3c1b

1000l. directfb 0.9.9 detection fixed?
author arpi
date Sun, 10 Mar 2002 23:55:36 +0000
parents f6b6b2d9fe4b
children 16f28fb341a1
files configure
diffstat 1 files changed, 11 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Mar 10 23:45:44 2002 +0000
+++ b/configure	Sun Mar 10 23:55:36 2002 +0000
@@ -1512,23 +1512,21 @@
 fi
 echores "$_directfb"
 
+if test "$_directfb" = yes; then
 echocheck "DirectFB >= 0.9.9"
-if test "$_directfb" = auto; then
-    _directfb=no
-    cat > $TMPC <<EOF
+  _directfb099=no
+  cat > $TMPC <<EOF
 #include <directfb.h>
-nt main(void) { IDirectFBEventBuffer *foo; return 0; }
+int main(void) { IDirectFBEventBuffer *foo; return 0; }
 EOF
-  linux && test -c /dev/fb0 && cc_check -ldirectfb && _directfb=yes
+  cc_check -ldirectfb && _directfb099=yes
+if test "$_directfb099" = yes ; then
+  _def_directfb099='#define HAVE_DIRECTFB099 1'
+else
+  _def_directfb099='#undef HAVE_DIRECTFB099'
 fi
-if test "$_directfb" = yes ; then
-  _def_directfb='#define HAVE_DIRECTFB099 1'
-else
-  _def_directfb='#undef HAVE_DIRECTFB'
+echores "$_directfb099"
 fi
-echores "$_directfb"
-
-
 
 # Checking for localization ...
 echocheck "language"
@@ -3456,6 +3454,7 @@
 $_def_3dfx
 $_def_tdfxfb
 $_def_directfb
+$_def_directfb099
 $_def_zr
 $_def_mga
 $_def_xmga