depends           "g++"                                            &&
depends           "openssl"                                        &&
depends           "zlib"                                           &&

if [[ ${ASTERISK_DOXYGEN} == "y" ]]
then
  depends         "doxygen"
fi                                                                 &&

optional_depends  "curl"                                            \
                  "--with-libcurl"                                  \
                  "--without-libcurl"                               \
                  "enable curl support"                            &&

optional_depends  "lua"                                             \
                  "--with-lua"                                      \
                  "--without-lua"                                   \
                  "enable lua support"                             &&

optional_depends  "libusb"                                          \
                  "--with-usb"                                      \
                  "--without-usb"                                   \
                  "enable libusb support"                          &&

optional_depends  "sdl"                                             \
                  "--with-sdl"                                      \
                  "--without-sdl"                                   \
                  "enable sdl support"                             &&

optional_depends  "sdl_image"                                       \
                  "--with-SDL_image"                                \
                  "--without-SDL_image"                             \
                  "enable sdl_image support"                       &&

optional_depends  "popt"                                            \
                  "--with-popt"                                     \
                  "--without-popt"                                  \
                  "enable popt (command-line parsing) support"     &&


message "Sound Driver Options (calls from console):" &&

optional_depends  "alsa-lib"                                        \
                  "--with-asound"                                   \
                  "--without-asound"                                \
                  "use alsa for console calls"                     &&

optional_depends  "oss"                                             \
                  "--with-oss"                                      \
                  "--without-oss"                                   \
                  "use oss for console calls"                      &&

optional_depends  "jack"                                            \
                  "--with-jack"                                     \
                  "--without-jack"                                  \
                  "use jack for console calls"                     &&


message "Codex and Format Options:" &&

optional_depends  "speex"                                           \
                  "--with-speex"                                    \
                  "--without-speex"                                 \
                  "support for the speex codec"                    &&

optional_depends  "libogg"                                          \
                  "--with-ogg"                                      \
                  "--without-ogg"                                   \
                  "support for the ogg container format"           &&

optional_depends  "libvorbis"                                       \
                  "--with-vorbis"                                   \
                  "--without-vorbis"                                \
                  "support for the ogg-vorbis codec"               &&


message "Storage Backend (database) Options:" &&

optional_depends  "ODBC-MGR"                                        \
                  "--with-odbc"                                     \
                  "--without-odbc"                                  \
                  "for ODBC interface as database backend"         &&

optional_depends  "postgresql"                                      \
                  "--with-postgres"                                 \
                  "--without-postgres"                              \
                  "for postgresql as database backend"             &&

optional_depends  "sqlite"                                          \
                  "--with-sqlite3"                                  \
                  "--without-sqlite3"                               \
                  "for sqlite 3.x as database backend"             &&

optional_depends  "sqlite2"                                         \
                  "--with-sqlite"                                   \
                  "--without-sqlite"                                \
                  "for sqlite 2.x as database backend"             &&

optional_depends  "openldap"                                        \
                  "--with-ldap"                                     \
                  "--without-ldap"                                  \
                  "for openldap as database backend"               &&

optional_depends  "C-CLIENT"                                        \
                  "--with-imap"                                     \
                  "--without-imap"                                  \
                  "for imap storage of voicemail"                  &&


message "Core Driver Options:" &&

optional_depends  "net-snmp"                                        \
                  "--with-netsnmp"                                  \
                  "--without-netsnmp"                               \
                  "to monitor and configure asterisk with snmp"    &&

optional_depends  "libpri"                                          \
                  "--with-pri"                                      \
                  "--without-pri"                                   \
                  "to use your ISDN card with asterisk"            &&

optional_depends  "zaptel"                                          \
                  "--with-zaptel"                                   \
                  "--without-zaptel"                                \
                  "to build drivers for various telephone cards"   &&

optional_depends  "iksemel"                                         \
                  "--with-iksemel"                                  \
                  "--without-iksemel"                               \
                  "to build the Asterisk Jabber/XMPP Interface"    &&


message "Interface Options:" &&

optional_depends  "gtk+2"                                           \
                  "--with-gtk2"                                     \
                  "--without-gtk2"                                  \
                  "enable gtk+2 support"                           &&

optional_depends  "ncurses"                                         \
                  "--with-ncurses"                                  \
                  "--without-ncurses"                               \
                  "to build the management console"                &&

optional_depends  "newt"                                            \
                  "--with-newt"                                     \
                  "--without-newt"                                  \
                  "to build the manager interface client \"astman\""
