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 0 if ($? >> 8);
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`;
39 elsif( check_sdl_dir() )
41 return $arch->alt_link_flags( check_sdl_dir() ) ;
46 croak 'SDL not installed';
55 local $_ = `sdl-config --cflags`;
58 elsif ( check_sdl_dir() )
60 return $arch->alt_compile_flags( check_sdl_dir() );
65 croak 'SDL not installed';