Ticket #4360: directfb-detection.patch

File directfb-detection.patch, 651 bytes (added by Dibblah, 11 years ago)

Attempts compilation, rather than just assuming it'll work

  • configure

     
    30613061fi
    30623062
    30633063if enabled directfb; then
    3064     directfb="no"
     3064    disable directfb
    30653065    if test x`which directfb-config 2> /dev/null` != x"" ; then
    3066         directfb="yes"
    30673066        CONFIG_DIRECTFB_LIBS=`directfb-config --libs`
    30683067        CONFIG_DIRECTFB_CXXFLAGS=`directfb-config --cflags`
     3068        check_cc ${CONFIG_DIRECTFB_CXXFLAGS} ${CONFIG_DIRECTFB_LIBS} << EOF && enable directfb
     3069#include <directfb.h>
     3070int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; }
     3071EOF
    30693072    fi
    30703073fi
    30713074