* SDL build:

  ./configure --with-extra-includes=/usr/local/include --enable-sdl


* XFree 4.0

  You have installed XFree 4.0 from source?

  please make sure you have the following link:

  ln -s /usr/X11R6/include/X11/ /usr/include/X11

  and then look for : (during ./configure)
  XV extension -> yes
  DGA 2.0 extension -> yes