# Servers to build:
BUILD_SERVERS="--enable-xorg --enable-xvfb --enable-xnest --enable-dmx"
SKIP_SERVERS="--disable-xprint"

MESA_VERSION=${MESA_VERSION:-6.5.2}

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --infodir=/usr/info \
  --mandir=/usr/man \
  --disable-static \
  --enable-xcsecurity \
  --with-pic \
 --with-int10=x86emu \
  --with-default-font-path="/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/75dpi/:unscaled" \
  --with-module-dir=/usr/lib/xorg/modules \
  --with-dri-driver-path=/usr/lib/xorg/modules/dri \
  --with-os-name="Bluewhite64 12.0" \
  --with-os-vendor="Bluewhite64 Linux Project" \
  --with-mesa-source=/tmp/Mesa-${MESA_VERSION} \
  --with-xkb-path=/etc/X11/xkb \
  --with-xkb-output=/var/lib/xkb \
  $BUILD_SERVERS \
  $SKIP_SERVERS \
  $ARCH-pc-linux

