mquery CLIENTS "Build clients?" y

CLIST=""

if [ "`get_module_config CLIENTS`" = "y" ]; then
  mquery GTK "Build GTK client?" y
  if [ "`get_module_config GTK`" = "y" ]; then
    CLIST+="gtk"
  fi

  mquery SDL2 "Build SDL2 client?" y
  if [ "`get_module_config SDL2`" = "y" ]; then
    if ! [ $CLIST == "" ]; then
      CLIST+=","
    fi
    CLIST+="sdl2"
  fi
fi

if [ $CLIST = "" ]; then
  OPTS+=" --disable-client"
else
  # the gtk client option is added in the DEPENDS file
  if [ "`get_module_config SDL2`" = "y" ]; then
    OPTS+=" --enable-client=sdl2"
  fi
fi

mquery SERV "Build freeciv server (needed for solo games, too)?" y \
            "--enable-server" "--disable-server"
