9 our @ISA = qw(Exporter);
10 our @EXPORT_OK = qw(sdl_con_found sdl_libs sdl_c_flags);
12 my $arch = SDL::Build->get_arch( $^O );
17 #checks to see if sdl-config is availabe
22 return 1 unless ($? >> 8) and return 0;
26 #This should check if the folder actually has the SDL files
29 return 0 unless $ENV{SDL_INST_DIR} and return $ENV{SDL_INST_DIR};
36 local $_ = `sdl-config --libs`;
40 elsif( check_sdl_dir() )
42 return $arch->alt_link_flags( check_sdl_dir() ) ;
47 croak 'SDL not installed';
56 local $_ = `sdl-config --cflags`;
60 elsif ( check_sdl_dir() )
62 return $arch->alt_compile_flags( check_sdl_dir() );
67 croak 'SDL not installed';