{***************************************************************** 
 * Configuration file for @PACKAGE_STRING@
 * @configure_input@
 *****************************************************************}

{* Libraries *}

{$IF Defined(IncludeConstants)}
  lua_lib_name = '@lua_LIB_NAME@';
  LUA_VERSION_INT     = @lua_VERSION_INT@;
  LUA_VERSION_RELEASE = '@lua_VERSION_RELEASE@';
  LUA_VERSION_MINOR   = '@lua_VERSION_MINOR@';
  LUA_VERSION_MAJOR   = '@lua_VERSION_MAJOR@';
  LUA_VERSION         = '@lua_VERSION@';
  LUA_INTEGER_BITS    = @LUA_INTEGER_BITS@;
{$IFEND}

{$@DEFINE_HAVE_FFMPEG@ HaveFFmpeg}
{$IF Defined(HaveFFmpeg)}
  {$MACRO ON}
  {$IFNDEF FFMPEG_DIR}
    {$DEFINE FFMPEG_DIR := 'ffmpeg-@FFMPEG_VERSION_MAJOR@.@FFMPEG_VERSION_MINOR@'}
  {$ENDIF}
  {$IF Defined(IncludeConstants)}
    FFMPEG_VERSION_INT = @FFMPEG_VERSION_INT@;

    av__codec = 'libavcodec';
    LIBAVCODEC_VERSION_MAJOR   = @libavcodec_VERSION_MAJOR@;
    LIBAVCODEC_VERSION_MINOR   = @libavcodec_VERSION_MINOR@;
    LIBAVCODEC_VERSION_RELEASE = @libavcodec_VERSION_RELEASE@;

    av__format = 'libavformat';
    LIBAVFORMAT_VERSION_MAJOR   = @libavformat_VERSION_MAJOR@;
    LIBAVFORMAT_VERSION_MINOR   = @libavformat_VERSION_MINOR@;
    LIBAVFORMAT_VERSION_RELEASE = @libavformat_VERSION_RELEASE@;

    av__util = 'libavutil';
    LIBAVUTIL_VERSION_MAJOR   = @libavutil_VERSION_MAJOR@;
    LIBAVUTIL_VERSION_MINOR   = @libavutil_VERSION_MINOR@;
    LIBAVUTIL_VERSION_RELEASE = @libavutil_VERSION_RELEASE@;

    sw__scale = 'libswscale';
    LIBSWSCALE_VERSION_MAJOR   = @libswscale_VERSION_MAJOR@;
    LIBSWSCALE_VERSION_MINOR   = @libswscale_VERSION_MINOR@;
    LIBSWSCALE_VERSION_RELEASE = @libswscale_VERSION_RELEASE@;

    sw__resample = 'libswresample';
    LIBSWRESAMPLE_VERSION_MAJOR   = @libswresample_VERSION_MAJOR@;
    LIBSWRESAMPLE_VERSION_MINOR   = @libswresample_VERSION_MINOR@;
    LIBSWRESAMPLE_VERSION_RELEASE = @libswresample_VERSION_RELEASE@;
  {$IFEND}
{$IFEND}


{$@DEFINE_HAVE_PROJECTM@ HaveProjectM}
{$@DEFINE_USE_LOCAL_PROJECTM_PRESETS@ UseLocalProjectMPresets}
{$IF Defined(HaveProjectM) and Defined(IncludeConstants)}
  {$IF Defined(UseLocalProjectMPresets)}
    ProjectM_DataDir = 'visuals/projectM';
  {$ELSE}
    ProjectM_DataDir = '@libprojectM_DATADIR@';
  {$IFEND}
  PROJECTM_VERSION_MAJOR   = @libprojectM_VERSION_MAJOR@;
  PROJECTM_VERSION_MINOR   = @libprojectM_VERSION_MINOR@;
  PROJECTM_VERSION_RELEASE = @libprojectM_VERSION_RELEASE@;
{$IFEND}

{$@DEFINE_HAVE_PORTAUDIO@ HavePortaudio}
{$IF Defined(HavePortaudio) and Defined(IncludeConstants)}
  PORTAUDIO_VERSION_MAJOR   = @portaudio_VERSION_MAJOR@;
  PORTAUDIO_VERSION_MINOR   = @portaudio_VERSION_MINOR@;
  PORTAUDIO_VERSION_RELEASE = @portaudio_VERSION_RELEASE@;
{$IFEND}

{$@DEFINE_HAVE_PORTMIXER@ HavePortmixer}
{$@DEFINE_HAVE_PORTMIDI@ UsePortMidi}
{$IF Defined(UsePortMidi)}
  {$DEFINE UseMIDIPort}
{$IFEND}
{$@DEFINE_HAVE_MIDI_EMU@ UseMidiEmu}
{$IF Defined(UseMidiEmu)}
  {$DEFINE UseMidiEmu}
  // Ensure the midi unit block is compiled so the emulation unit is included
  {$DEFINE UseMIDIPort}
  // When MidiEmu is enabled we want to avoid compiling other midi backends
  // to prevent accidental use of system synths or PortMidi. Undef those
  // flags here so downstream conditional blocks stay disabled.
  {$UNDEF UsePortMidi}
  {$UNDEF UsePortTime}
{$IFEND}
{$@DEFINE_HAVE_PORTTIME@ UsePortTime}
{$@DEFINE_HAVE_PORTTIME@ PortTime_in_@porttime_LIB_NAME@}
{$IF Defined(IncludeConstants)}
  porttime_lib_name = '@porttime_LIB_NAME@';
{$IFEND}

{$@DEFINE_USE_OPENCV_CWRAPPER@ UseOpenCVWrapper}
{$@DEFINE_OPENCV_CORE_STANDALONE@ OpenCVCoreStandalone}
{$@DEFINE_OPENCV_IMGPROC_STANDALONE@ OpenCVImgprocStandalone}
{$@DEFINE_OPENCV_VIDEOIO_STANDALONE@ OpenCVVideoioStandalone}
