#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/config-language.txt.
#
mainmenu_name "VLC Configuration"

choice 'Operating System' \
   "Linux		CONFIG_LINUX \
   MacOS_X		CONFIG_MAC \
    Win32		CONFIG_WIN32" Linux

mainmenu_option next_comment
comment 'User Interfaces'
bool 'wxWidgets interface' CONFIG_WXWIDGETS
if [ "$CONFIG_WXWIDGETS" = "y" ]; then
  string 'wx-config path' CONFIG_WITHWXCONFIGPATH ""
  string 'wx-config name' CONFIG_WITHWXCONFIG ""
fi
bool 'QT4 interface' CONFIG_QT4
bool 'Skins interface' CONFIG_SKINS
if [ "$CONFIG_SKINS" = "y" ]; then
  string 'xml2-config path' CONFIG_WITHXML2CONFIGPATH ""
fi
bool 'PDA interface (via Gtk2) support' CONFIG_PDA
bool 'Qt embedded interface support (opie)' CONFIG_OPIE
if [ "$CONFIG_OPIE" = "y" ]; then
  string 'Qt Embedded headers and libraries' CONFIG_WITHQTE ""
fi
if [ "$CONFIG_MAC" = "y" ]; then
   bool 'MacOS X support' CONFIG_MACOSX
fi
bool 'QNX RTOS support' CONFIG_QNX
bool 'Ncurses interface support' CONFIG_NCURSES
bool 'xosd interface support' CONFIG_XOSD
bool 'Visualization plugin' CONFIG_VISUAL
bool 'Goom visualization plugin' CONFIG_GOOM
if [ "$CONFIG_GOOM" = "y" ]; then
  string 'goom tree for static linking' CONFIG_WITHGOOMTREE ""
fi
bool 'GaLaktos visualization plugin' CONFIG_GALAKTOS
bool 'IR remote control support' CONFIG_LIRC
endmenu

mainmenu_option next_comment
comment 'Input plugins'
bool 'Live.com input plugin' CONFIG_LIVEDOTCOM
if [ "$CONFIG_LIVEDOTCOM" = "y" ]; then
  string 'live.com tree for static linking' CONFIG_WITHLIVEDOTCOMTREE ""
fi
bool 'DVD support' CONFIG_DVD
if [ "$CONFIG_DVD" = "y" ]; then
   bool '    dvdread input module' CONFIG_DVDREAD
   if [ "$CONFIG_DVDREAD" = "y" ]; then
      string '        libdvdread headers and libraries' CONFIG_WITHDVDREAD ""
      string '        libdvdread tree for static linking' CONFIG_WITHDVDREADTREE ""
   fi
   bool '    dvdnav input module' CONFIG_DVDNAV
   if [ "$CONFIG_DVDNAV" = "y" ]; then
      string '        dvdnav-config path' CONFIG_WITHDVDNAVCONFIGPATH ""
   fi
fi
bool 'Win32 DirectShow support' CONFIG_DSHOW
bool 'Dvbpsi ts mux and demux module' CONFIG_DVBPSI
if [ "$CONFIG_DVBPSI" = "y" ]; then
   string '    libdvbpsi headers and libraries' CONFIG_WITHDVBPSI ""
   string '    libdvbpsi tree for static linking' CONFIG_WITHDVBPSITREE ""
fi
bool 'Video for Linux (V4L) support' CONFIG_V4L
if [ "$CONFIG_V4L" = "y" ]; then
   string '    path to a v4l-enabled kernel tree' CONFIG_WITHV4L
fi
bool 'PVR cards support' CONFIG_PVR
bool 'built-in VCD and audio CD support' CONFIG_VCD
bool 'Satellite card support' CONFIG_SATELLITE
bool 'DVB-S/T/C cards support' CONFIG_DVB
if [ "$CONFIG_DVB" = "y" ]; then
   string '    path to a dvb- and v4l2-enabled kernel tree' CONFIG_WITHDVB
fi
bool 'Ogg demux support' CONFIG_OGG
bool 'Matroska demux support' CONFIG_MKV
bool 'Mod demux support' CONFIG_MOD
bool 'CD input and control library (libcdio) support' CONFIG_CDIO
if [ "$CONFIG_CDIO" = "y" ]; then
   bool '    audio CD module with CD-Text & CD-Paranoia (via libcdio)' CONFIG_CDDAX
   bool '    CDDB lookups (via libcddb) for audio CD' CONFIG_CDDB
   bool '    VCD module with navigation (via libcdio and libvcdinfo)' CONFIG_VCDX
fi
endmenu

mainmenu_option next_comment
comment 'Video plugins'
if [ "$CONFIG_LINUX" = "y" ]; then
   bool 'X11 support' CONFIG_X11
   bool 'XVideo support' CONFIG_XVIDEO
   bool 'GLX support' CONFIG_GLX
   bool 'Linux framebuffer support' CONFIG_FB
   bool 'Linux kernel Matrox support' CONFIG_MGA
fi
bool 'SDL support' CONFIG_SDL
if [ "$CONFIG_SDL" = "y" ]; then
   string '    SDL-config path' CONFIG_WITHSDLCONFIGPATH ""
   string '    Path to libsdl' CONFIG_WITHSDLPREFIX ""
fi
bool 'freetype support' CONFIG_FREETYPE
if [ "$CONFIG_FREETYPE" = "y" ]; then
   string '    Freetype-config path' CONFIG_WITHFREETYPECONFIGPATH ""
fi
bool 'Fribidi support' CONFIG_FRIBIDI
if [ "$CONFIG_FRIBIDI" = "y" ]; then
   string '    Fribidi-config path' CONFIG_WITHFRIBIDICONFIGPATH ""
fi
bool 'SVG support' CONFIG_SVG
bool 'QT Embedded support' CONFIG_QTE
if [ "$CONFIG_QTE" = "y" ]; then
   string '    Qt Embedded headers and libraries' CONFIG_WITHQTE ""
fi
bool 'HD1000 Video Output module' CONFIG_HD1000V
if [ "$CONFIG_WIN32" = "y" ]; then
   bool 'Win32 DirectX support' CONFIG_DIRECTX
   if [ "$CONFIG_DIRECTX" = "y" ]; then
      string '    Win32 DirectX headers' CONFIG_WITHDIRECTX ""
   fi
   bool 'Win32 GDI module' CONFIG_WINGDI
fi
bool 'SVGAlib support' CONFIG_SVGALIB
bool 'GGI support' CONFIG_GGI
if [ "$CONFIG_GGI" = "y" ]; then
   string '    Path to libggi' CONFIG_WITHGGI ""
fi
bool 'aalib output' CONFIG_AA
bool 'cacalib output' CONFIG_CACA
if [ "$CONFIG_CACA" = "y" ]; then
   string '    Caca-config path' CONFIG_WITHCACACONFIGPATH ""
fi
endmenu

mainmenu_option next_comment
comment 'Audio plugins'
if [ "$CONFIG_LINUX" = "y" ]; then
   bool 'Linux OSS /dev/dsp support' CONFIG_OSS
   bool 'Esound library support' CONFIG_ESD
   bool 'aRts sound server' CONFIG_ARTS
   bool 'ALSA sound support for Linux' CONFIG_ALSA
   bool 'JACK Audio Connection Kit support' CONFIG_JACK
fi
if [ "$CONFIG_WIN32" = "y" ]; then
   bool 'Win32 waveOut module' CONFIG_WAVEOUT
fi
if [ "$CONFIG_MAC" = "y" ]; then
   bool 'CoreAudio module' CONFIG_COREAUDIO
fi
bool 'HD1000 audio module' CONFIG_HD1000A
endmenu

mainmenu_option next_comment
comment 'Codec plugins'
bool 'Libmad module' CONFIG_MAD
if [ "$CONFIG_MAD" = "y" ]; then
   string '    Path to libmad' CONFIG_WITHMAD ""
   string '    Mad tree for static linking' CONFIG_WITHMADTREE ""
fi
bool 'Ffmpeg codec' CONFIG_FFMPEG
if [ "$CONFIG_FFMPEG" = "y" ]; then
   bool   '    Ffmpeg has been compiled with mp3lame support' CONFIG_WITHFFMPEGMP3LAME
   bool   '    Ffmpeg has been compiled with faac support' CONFIG_WITHFFMPEGFAAC
   string '    Ffmpeg tree for static linking' CONFIG_WITHFFMPEGTREE ""
fi
bool 'Faad codec' CONFIG_FAAD
if [ "$CONFIG_FAAD" = "y" ]; then
   string '    Faad tree for static linking' CONFIG_WITHFAADTREE ""
fi
bool 'QuickTime module' CONFIG_QUICKTIME
bool 'A/52 support with liba52' CONFIG_A52
if [ "$CONFIG_A52" = "y" ]; then
   string '    A52 headers and libraries' CONFIG_WITHA52 ""
   string '    A52dec tree for static linking' CONFIG_WITHA52TREE ""
fi
bool 'DTS Coherent Acoustics support with libdts' CONFIG_DTS
if [ "$CONFIG_DTS" = "y" ]; then
   string '    Libdts tree for static linking' CONFIG_WITHDTSTREE ""
fi
bool 'Flac decoder support' CONFIG_FLAC
bool 'Libmpeg2 decoder support' CONFIG_LIBMPEG2
if [ "$CONFIG_LIBMPEG2" = "y" ]; then
   string '    Libmpeg2 tree for static linking' CONFIG_WITHLIBMPEG2TREE ""
fi
bool 'Vorbis decoder support' CONFIG_VORBIS
bool 'Tremor decoder support' CONFIG_TREMOR
bool 'Speex decoder support' CONFIG_SPEEX
bool 'Experimental tarkin codec' CONFIG_TARKIN
if [ "$CONFIG_TARKIN" = "y" ]; then
   string '    Tarkin tree for static linking' CONFIG_WITHTARKINTREE ""
fi
bool 'Experimental theora codec' CONFIG_THEORA
bool 'CMML support' CONFIG_CMML
endmenu

mainmenu_option next_comment
comment 'Miscellaneous options'
bool 'UTF8 support' CONFIG_UTF8
bool 'GNU Portable Threads (Pth) support' CONFIG_PTH
bool 'State threads (st) support' CONFIG_ST
bool 'Gprof profiling' CONFIG_GPROF
bool 'Cprof profiling' CONFIG_CPROF
# TODO: change to a tristate choice
# bool 'Set endianness' CONFIG_ENDIANNESS
bool 'Mozilla plugin' CONFIG_MOZILLA
if [ "$CONFIG_MOZILLA" = "y" ]; then
   string '    Path to win32 mozilla sdk' CONFIG_WITHMOZILLASDKPATH ""
fi
bool 'Build test modules' CONFIG_TESTSUITE
bool 'Enable http daemon' CONFIG_HTTPD
# TODO: --disable-plugins
endmenu

mainmenu_option next_comment
comment 'Optimization options'
# TODO: add --with-tuning=ARCH
bool 'Compiler optimizations' CONFIG_OPTIMIZATIONS
if [ "$CONFIG_MAC" = "y" ]; then
   bool 'AltiVec optimizations' CONFIG_ALTIVEC
fi
bool 'Debug mode' CONFIG_DEBUG
bool 'Extra optimizations' CONFIG_RELEASE
bool 'Stream output modules' CONFIG_SOUT
endmenu

