Fix numpy.distutils to find atlas BLAS on Ubuntu
Fix numpy.distutils to find atlas BLAS on Ubuntu

As per discussion here:
  http://mail.scipy.org/pipermail/numpy-discussion/2012-May/062363.html
numpy.distutils was failing to find BLAS on my Ubuntu 11.04 system.

The problem is that _check_libs looks for libraries in several
directories, and it turns out that the "atlas" library was found in
both /usr/lib64/atlas-base *and* in /usr/lib64, which confused
_check_libs into thinking that it couldn't be found at all.

With this fix, scipy now builds against numpy master for me.

jakirkham/numpy,ContinuumIO/numpy,utke1/numpy,has2k1/numpy,trankmichael/numpy,ewmoore/numpy,MaPePeR/numpy,ChanderG/numpy,jankoslavic/numpy,bmorris3/numpy,MaPePeR/numpy,stuarteberg/numpy,dch312/numpy,rmcgibbo/numpy,shoyer/numpy,GrimDerp/numpy,leifdenby/numpy,simongibbons/numpy,sinhrks/numpy,immerrr/numpy,mindw/numpy,WillieMaddox/numpy,cowlicks/numpy,gmcastil/numpy,mwiebe/numpy,jankoslavic/numpy,jschueller/numpy,Linkid/numpy,cjermain/numpy,pelson/numpy,skwbc/numpy,dch312/numpy,KaelChen/numpy,ViralLeadership/numpy,MaPePeR/numpy,rudimeier/numpy,mingwpy/numpy,madphysicist/numpy,rhythmsosad/numpy,AustereCuriosity/numpy,rudimeier/numpy,cjermain/numpy,Srisai85/numpy,ddasilva/numpy,larsmans/numpy,ogrisel/numpy,cowlicks/numpy,tacaswell/numpy,ChristopherHogan/numpy,ssanderson/numpy,dwf/numpy,sigma-random/numpy,SiccarPoint/numpy,Anwesh43/numpy,felipebetancur/numpy,jankoslavic/numpy,NextThought/pypy-numpy,tdsmith/numpy,Yusa95/numpy,larsmans/numpy,chiffa/numpy,CMartelLML/numpy,jankoslavic/numpy,dch312/numpy,NextThought/pypy-numpy,ajdawson/numpy,AustereCuriosity/numpy,dimasad/numpy,nbeaver/numpy,pizzathief/numpy,chiffa/numpy,ViralLeadership/numpy,musically-ut/numpy,groutr/numpy,maniteja123/numpy,mhvk/numpy,seberg/numpy,embray/numpy,trankmichael/numpy,Srisai85/numpy,jonathanunderwood/numpy,KaelChen/numpy,ChristopherHogan/numpy,bmorris3/numpy,mindw/numpy,utke1/numpy,tdsmith/numpy,AustereCuriosity/numpy,WarrenWeckesser/numpy,behzadnouri/numpy,bertrand-l/numpy,cowlicks/numpy,GaZ3ll3/numpy,GaZ3ll3/numpy,sigma-random/numpy,immerrr/numpy,nbeaver/numpy,rhythmsosad/numpy,numpy/numpy,CMartelLML/numpy,GrimDerp/numpy,KaelChen/numpy,andsor/numpy,andsor/numpy,astrofrog/numpy,njase/numpy,mortada/numpy,jonathanunderwood/numpy,utke1/numpy,empeeu/numpy,sigma-random/numpy,felipebetancur/numpy,bmorris3/numpy,dwillmer/numpy,pelson/numpy,mortada/numpy,ajdawson/numpy,chiffa/numpy,madphysicist/numpy,embray/numpy,MichaelAquilina/numpy,MSeifert04/numpy,SunghanKim/numpy,has2k1/numpy,madphysicist/numpy,embray/numpy,ajdawson/numpy,abalkin/numpy,groutr/numpy,stuarteberg/numpy,BabeNovelty/numpy,mathdd/numpy,bertrand-l/numpy,mwiebe/numpy,mattip/numpy,Eric89GXL/numpy,pdebuyl/numpy,WillieMaddox/numpy,rgommers/numpy,kirillzhuravlev/numpy,anntzer/numpy,ewmoore/numpy,gfyoung/numpy,ChristopherHogan/numpy,jschueller/numpy,yiakwy/numpy,moreati/numpy,astrofrog/numpy,tynn/numpy,dch312/numpy,ewmoore/numpy,sinhrks/numpy,rmcgibbo/numpy,tynn/numpy,dwf/numpy,MSeifert04/numpy,brandon-rhodes/numpy,has2k1/numpy,nbeaver/numpy,ContinuumIO/numpy,kiwifb/numpy,Yusa95/numpy,ContinuumIO/numpy,shoyer/numpy,behzadnouri/numpy,Yusa95/numpy,ViralLeadership/numpy,joferkington/numpy,maniteja123/numpy,argriffing/numpy,sonnyhu/numpy,Srisai85/numpy,ddasilva/numpy,mwiebe/numpy,grlee77/numpy,tdsmith/numpy,MaPePeR/numpy,ESSS/numpy,charris/numpy,BabeNovelty/numpy,Dapid/numpy,dato-code/numpy,pbrod/numpy,andsor/numpy,simongibbons/numpy,argriffing/numpy,bringingheavendown/numpy,seberg/numpy,chatcannon/numpy,jonathanunderwood/numpy,mindw/numpy,CMartelLML/numpy,maniteja123/numpy,endolith/numpy,bringingheavendown/numpy,tacaswell/numpy,pelson/numpy,cjermain/numpy,leifdenby/numpy,skymanaditya1/numpy,gfyoung/numpy,rmcgibbo/numpy,astrofrog/numpy,pbrod/numpy,hainm/numpy,pizzathief/numpy,mhvk/numpy,MichaelAquilina/numpy,mathdd/numpy,GrimDerp/numpy,SunghanKim/numpy,ahaldane/numpy,gmcastil/numpy,ogrisel/numpy,kiwifb/numpy,kirillzhuravlev/numpy,rherault-insa/numpy,skymanaditya1/numpy,BMJHayward/numpy,nguyentu1602/numpy,hainm/numpy,pizzathief/numpy,jorisvandenbossche/numpy,dimasad/numpy,solarjoe/numpy,jorisvandenbossche/numpy,dwf/numpy,mingwpy/numpy,rajathkumarmp/numpy,b-carter/numpy,ahaldane/numpy,rajathkumarmp/numpy,nguyentu1602/numpy,pdebuyl/numpy,abalkin/numpy,grlee77/numpy,immerrr/numpy,dato-code/numpy,gfyoung/numpy,ESSS/numpy,larsmans/numpy,simongibbons/numpy,yiakwy/numpy,sonnyhu/numpy,ahaldane/numpy,ChanderG/numpy,gmcastil/numpy,mindw/numpy,dwf/numpy,stuarteberg/numpy,dato-code/numpy,Anwesh43/numpy,hainm/numpy,ogrisel/numpy,njase/numpy,BabeNovelty/numpy,sonnyhu/numpy,felipebetancur/numpy,chatcannon/numpy,anntzer/numpy,tynn/numpy,kiwifb/numpy,ahaldane/numpy,githubmlai/numpy,joferkington/numpy,shoyer/numpy,pdebuyl/numpy,mhvk/numpy,jakirkham/numpy,jorisvandenbossche/numpy,felipebetancur/numpy,numpy/numpy,b-carter/numpy,drasmuss/numpy,endolith/numpy,shoyer/numpy,grlee77/numpy,mathdd/numpy,simongibbons/numpy,charris/numpy,yiakwy/numpy,pbrod/numpy,drasmuss/numpy,pizzathief/numpy,jakirkham/numpy,rajathkumarmp/numpy,WarrenWeckesser/numpy,cowlicks/numpy,mingwpy/numpy,dwillmer/numpy,skymanaditya1/numpy,charris/numpy,Anwesh43/numpy,stuarteberg/numpy,musically-ut/numpy,NextThought/pypy-numpy,Linkid/numpy,NextThought/pypy-numpy,seberg/numpy,mattip/numpy,Dapid/numpy,sigma-random/numpy,WarrenWeckesser/numpy,rhythmsosad/numpy,pbrod/numpy,WarrenWeckesser/numpy,WillieMaddox/numpy,jorisvandenbossche/numpy,ogrisel/numpy,rmcgibbo/numpy,trankmichael/numpy,endolith/numpy,solarjoe/numpy,ahaldane/numpy,naritta/numpy,tdsmith/numpy,endolith/numpy,ewmoore/numpy,ekalosak/numpy,b-carter/numpy,jakirkham/numpy,MSeifert04/numpy,mortada/numpy,pelson/numpy,mattip/numpy,naritta/numpy,ssanderson/numpy,GaZ3ll3/numpy,leifdenby/numpy,SunghanKim/numpy,MSeifert04/numpy,KaelChen/numpy,brandon-rhodes/numpy,rgommers/numpy,rudimeier/numpy,tacaswell/numpy,mattip/numpy,skymanaditya1/numpy,numpy/numpy,pyparallel/numpy,ewmoore/numpy,jorisvandenbossche/numpy,nguyentu1602/numpy,bringingheavendown/numpy,pelson/numpy,mhvk/numpy,abalkin/numpy,ChristopherHogan/numpy,dimasad/numpy,GaZ3ll3/numpy,ogrisel/numpy,charris/numpy,Srisai85/numpy,dwillmer/numpy,musically-ut/numpy,dwillmer/numpy,githubmlai/numpy,skwbc/numpy,sinhrks/numpy,joferkington/numpy,rgommers/numpy,andsor/numpy,numpy/numpy,mathdd/numpy,trankmichael/numpy,CMartelLML/numpy,moreati/numpy,dwf/numpy,BMJHayward/numpy,kirillzhuravlev/numpy,SunghanKim/numpy,MichaelAquilina/numpy,larsmans/numpy,BabeNovelty/numpy,MichaelAquilina/numpy,mhvk/numpy,ajdawson/numpy,empeeu/numpy,solarjoe/numpy,jakirkham/numpy,hainm/numpy,astrofrog/numpy,ekalosak/numpy,Yusa95/numpy,githubmlai/numpy,groutr/numpy,ssanderson/numpy,madphysicist/numpy,seberg/numpy,ekalosak/numpy,BMJHayward/numpy,bmorris3/numpy,naritta/numpy,GrimDerp/numpy,yiakwy/numpy,bertrand-l/numpy,pdebuyl/numpy,brandon-rhodes/numpy,drasmuss/numpy,rherault-insa/numpy,pyparallel/numpy,WarrenWeckesser/numpy,anntzer/numpy,simongibbons/numpy,astrofrog/numpy,ekalosak/numpy,pbrod/numpy,naritta/numpy,rherault-insa/numpy,njase/numpy,SiccarPoint/numpy,mingwpy/numpy,mortada/numpy,Eric89GXL/numpy,joferkington/numpy,sonnyhu/numpy,rudimeier/numpy,behzadnouri/numpy,ESSS/numpy,ChanderG/numpy,embray/numpy,Anwesh43/numpy,shoyer/numpy,dato-code/numpy,brandon-rhodes/numpy,BMJHayward/numpy,dimasad/numpy,Linkid/numpy,ddasilva/numpy,grlee77/numpy,rajathkumarmp/numpy,Eric89GXL/numpy,madphysicist/numpy,embray/numpy,argriffing/numpy,skwbc/numpy,kirillzhuravlev/numpy,rgommers/numpy,pyparallel/numpy,empeeu/numpy,nguyentu1602/numpy,ChanderG/numpy,SiccarPoint/numpy,githubmlai/numpy,has2k1/numpy,musically-ut/numpy,Eric89GXL/numpy,Dapid/numpy,grlee77/numpy,MSeifert04/numpy,Linkid/numpy,jschueller/numpy,immerrr/numpy,pizzathief/numpy,chatcannon/numpy,sinhrks/numpy,moreati/numpy,SiccarPoint/numpy,anntzer/numpy,rhythmsosad/numpy,jschueller/numpy,cjermain/numpy,empeeu/numpy