package SDL::Config;

my $sdl_config; 
$sdl_config = {
                'OpenGL' => {
                              'GL' => [
                                        '/usr/X11R6/include/GL',
                                        '/usr/X11R6/lib'
                                      ],
                              'SDL' => [
                                         '/usr/include/SDL',
                                         '/usr/lib'
                                       ],
                              'GLU' => [
                                         '/usr/X11R6/include/GL',
                                         '/usr/X11R6/lib'
                                       ]
                            },
                'SDL' => {
                           'png' => [
                                      '/usr/X11R6/include',
                                      '/usr/X11R6/lib'
                                    ],
                           'SDL' => [
                                      '/usr/include/SDL',
                                      '/usr/lib'
                                    ],
                           'SDL_ttf' => [
                                          '/usr/include/SDL',
                                          '/usr/lib'
                                        ],
                           'SDL_net' => [
                                          '/usr/include/SDL',
                                          '/usr/lib'
                                        ],
                           'SDL_image' => [
                                            '/usr/include/SDL',
                                            '/usr/lib'
                                          ],
                           'SDL_gfx' => 0,
                           'jpeg' => [
                                       '/usr/X11R6/include',
                                       '/usr/X11R6/lib'
                                     ],
                           'smpeg' => [
                                        '/usr/include/smpeg',
                                        '/usr/lib'
                                      ],
                           'SDL_mixer' => [
                                            '/usr/include/SDL',
                                            '/usr/lib'
                                          ]
                         },
                'SFont' => {
                             'SDL_image' => [
                                              '/usr/include/SDL',
                                              '/usr/lib'
                                            ],
                             'SDL' => [
                                        '/usr/include/SDL',
                                        '/usr/lib'
                                      ]
                           }
              };

sub has
{
	my ($class, $define) = @_;
	scalar grep { $$sdl_config{$_}{$define} } keys %$sdl_config;
}

1;
