configure 473 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="move-if-change"
  507. enable_option_checking=no
  508. ac_subst_vars='LTLIBOBJS
  509. LIBOBJS
  510. compare_exclusions
  511. host_shared
  512. stage2_werror_flag
  513. stage1_checking
  514. stage1_cflags
  515. MAINT
  516. MAINTAINER_MODE_FALSE
  517. MAINTAINER_MODE_TRUE
  518. COMPILER_NM_FOR_TARGET
  519. COMPILER_LD_FOR_TARGET
  520. COMPILER_AS_FOR_TARGET
  521. FLAGS_FOR_TARGET
  522. RAW_CXX_FOR_TARGET
  523. WINDMC_FOR_TARGET
  524. WINDRES_FOR_TARGET
  525. STRIP_FOR_TARGET
  526. READELF_FOR_TARGET
  527. RANLIB_FOR_TARGET
  528. OBJDUMP_FOR_TARGET
  529. OBJCOPY_FOR_TARGET
  530. NM_FOR_TARGET
  531. LIPO_FOR_TARGET
  532. LD_FOR_TARGET
  533. DLLTOOL_FOR_TARGET
  534. AS_FOR_TARGET
  535. AR_FOR_TARGET
  536. GOC_FOR_TARGET
  537. GFORTRAN_FOR_TARGET
  538. GCJ_FOR_TARGET
  539. GCC_FOR_TARGET
  540. CXX_FOR_TARGET
  541. CC_FOR_TARGET
  542. READELF
  543. OBJDUMP
  544. OBJCOPY
  545. WINDMC
  546. WINDRES
  547. STRIP
  548. RANLIB
  549. NM
  550. LIPO
  551. LD
  552. DLLTOOL
  553. AS
  554. AR
  555. RUNTEST
  556. EXPECT
  557. MAKEINFO
  558. FLEX
  559. LEX
  560. M4
  561. BISON
  562. YACC
  563. WINDRES_FOR_BUILD
  564. WINDMC_FOR_BUILD
  565. RANLIB_FOR_BUILD
  566. NM_FOR_BUILD
  567. LD_FOR_BUILD
  568. LDFLAGS_FOR_BUILD
  569. GOC_FOR_BUILD
  570. GFORTRAN_FOR_BUILD
  571. GCJ_FOR_BUILD
  572. DLLTOOL_FOR_BUILD
  573. CXX_FOR_BUILD
  574. CXXFLAGS_FOR_BUILD
  575. CFLAGS_FOR_BUILD
  576. CC_FOR_BUILD
  577. AS_FOR_BUILD
  578. AR_FOR_BUILD
  579. target_configdirs
  580. configdirs
  581. build_configdirs
  582. INSTALL_GDB_TK
  583. GDB_TK
  584. CONFIGURE_GDB_TK
  585. build_tooldir
  586. tooldir
  587. GCC_SHLIB_SUBDIR
  588. RPATH_ENVVAR
  589. target_configargs
  590. host_configargs
  591. build_configargs
  592. BUILD_CONFIG
  593. LDFLAGS_FOR_TARGET
  594. CXXFLAGS_FOR_TARGET
  595. CFLAGS_FOR_TARGET
  596. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  597. SYSROOT_CFLAGS_FOR_TARGET
  598. extra_host_libiberty_configure_flags
  599. stage1_languages
  600. extra_linker_plugin_flags
  601. extra_linker_plugin_configure_flags
  602. islinc
  603. isllibs
  604. poststage1_ldflags
  605. poststage1_libs
  606. stage1_ldflags
  607. stage1_libs
  608. extra_isl_gmp_configure_flags
  609. extra_mpc_mpfr_configure_flags
  610. extra_mpc_gmp_configure_flags
  611. extra_mpfr_configure_flags
  612. gmpinc
  613. gmplibs
  614. do_compare
  615. GNATMAKE
  616. GNATBIND
  617. ac_ct_CXX
  618. CXXFLAGS
  619. CXX
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CC
  623. CPPFLAGS
  624. LDFLAGS
  625. CFLAGS
  626. CC
  627. EXTRA_CONFIGARGS_LIBJAVA
  628. extra_liboffloadmic_configure_flags
  629. target_subdir
  630. host_subdir
  631. build_subdir
  632. build_libsubdir
  633. AWK
  634. SED
  635. LN_S
  636. LN
  637. INSTALL_DATA
  638. INSTALL_SCRIPT
  639. INSTALL_PROGRAM
  640. target_os
  641. target_vendor
  642. target_cpu
  643. target
  644. host_os
  645. host_vendor
  646. host_cpu
  647. host
  648. target_noncanonical
  649. host_noncanonical
  650. build_noncanonical
  651. build_os
  652. build_vendor
  653. build_cpu
  654. build
  655. TOPLEVEL_CONFIGURE_ARGUMENTS
  656. target_alias
  657. host_alias
  658. build_alias
  659. LIBS
  660. ECHO_T
  661. ECHO_N
  662. ECHO_C
  663. DEFS
  664. mandir
  665. localedir
  666. libdir
  667. psdir
  668. pdfdir
  669. dvidir
  670. htmldir
  671. infodir
  672. docdir
  673. oldincludedir
  674. includedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files='serialization_dependencies
  695. host_makefile_frag
  696. target_makefile_frag
  697. alphaieee_frag
  698. ospace_frag'
  699. ac_user_opts='
  700. enable_option_checking
  701. with_build_libsubdir
  702. enable_as_accelerator_for
  703. enable_offload_targets
  704. enable_gold
  705. enable_ld
  706. enable_libquadmath
  707. enable_libquadmath_support
  708. enable_libada
  709. enable_libssp
  710. enable_libstdcxx
  711. enable_liboffloadmic
  712. enable_static_libjava
  713. enable_bootstrap
  714. with_mpc
  715. with_mpc_include
  716. with_mpc_lib
  717. with_mpfr_dir
  718. with_mpfr
  719. with_mpfr_include
  720. with_mpfr_lib
  721. with_gmp_dir
  722. with_gmp
  723. with_gmp_include
  724. with_gmp_lib
  725. with_host_libstdcxx
  726. with_stage1_libs
  727. with_stage1_ldflags
  728. with_boot_libs
  729. with_boot_ldflags
  730. with_isl
  731. with_isl_include
  732. with_isl_lib
  733. enable_isl_version_check
  734. enable_lto
  735. enable_linker_plugin_configure_flags
  736. enable_linker_plugin_flags
  737. enable_stage1_languages
  738. enable_objc_gc
  739. with_build_sysroot
  740. with_debug_prefix_map
  741. with_build_config
  742. enable_vtable_verify
  743. enable_serial_configure
  744. with_build_time_tools
  745. enable_maintainer_mode
  746. enable_stage1_checking
  747. enable_werror
  748. enable_host_shared
  749. '
  750. ac_precious_vars='build_alias
  751. host_alias
  752. target_alias
  753. CC
  754. CFLAGS
  755. LDFLAGS
  756. LIBS
  757. CPPFLAGS
  758. CXX
  759. CXXFLAGS
  760. CCC
  761. build_configargs
  762. host_configargs
  763. target_configargs
  764. AR
  765. AS
  766. DLLTOOL
  767. LD
  768. LIPO
  769. NM
  770. RANLIB
  771. STRIP
  772. WINDRES
  773. WINDMC
  774. OBJCOPY
  775. OBJDUMP
  776. READELF
  777. CC_FOR_TARGET
  778. CXX_FOR_TARGET
  779. GCC_FOR_TARGET
  780. GCJ_FOR_TARGET
  781. GFORTRAN_FOR_TARGET
  782. GOC_FOR_TARGET
  783. AR_FOR_TARGET
  784. AS_FOR_TARGET
  785. DLLTOOL_FOR_TARGET
  786. LD_FOR_TARGET
  787. LIPO_FOR_TARGET
  788. NM_FOR_TARGET
  789. OBJCOPY_FOR_TARGET
  790. OBJDUMP_FOR_TARGET
  791. RANLIB_FOR_TARGET
  792. READELF_FOR_TARGET
  793. STRIP_FOR_TARGET
  794. WINDRES_FOR_TARGET
  795. WINDMC_FOR_TARGET'
  796. # Initialize some variables set by options.
  797. ac_init_help=
  798. ac_init_version=false
  799. ac_unrecognized_opts=
  800. ac_unrecognized_sep=
  801. # The variables have the same names as the options, with
  802. # dashes changed to underlines.
  803. cache_file=/dev/null
  804. exec_prefix=NONE
  805. no_create=
  806. no_recursion=
  807. prefix=NONE
  808. program_prefix=NONE
  809. program_suffix=NONE
  810. program_transform_name=s,x,x,
  811. silent=
  812. site=
  813. srcdir=
  814. verbose=
  815. x_includes=NONE
  816. x_libraries=NONE
  817. # Installation directory options.
  818. # These are left unexpanded so users can "make install exec_prefix=/foo"
  819. # and all the variables that are supposed to be based on exec_prefix
  820. # by default will actually change.
  821. # Use braces instead of parens because sh, perl, etc. also accept them.
  822. # (The list follows the same order as the GNU Coding Standards.)
  823. bindir='${exec_prefix}/bin'
  824. sbindir='${exec_prefix}/sbin'
  825. libexecdir='${exec_prefix}/libexec'
  826. datarootdir='${prefix}/share'
  827. datadir='${datarootdir}'
  828. sysconfdir='${prefix}/etc'
  829. sharedstatedir='${prefix}/com'
  830. localstatedir='${prefix}/var'
  831. includedir='${prefix}/include'
  832. oldincludedir='/usr/include'
  833. docdir='${datarootdir}/doc/${PACKAGE}'
  834. infodir='${datarootdir}/info'
  835. htmldir='${docdir}'
  836. dvidir='${docdir}'
  837. pdfdir='${docdir}'
  838. psdir='${docdir}'
  839. libdir='${exec_prefix}/lib'
  840. localedir='${datarootdir}/locale'
  841. mandir='${datarootdir}/man'
  842. ac_prev=
  843. ac_dashdash=
  844. for ac_option
  845. do
  846. # If the previous option needs an argument, assign it.
  847. if test -n "$ac_prev"; then
  848. eval $ac_prev=\$ac_option
  849. ac_prev=
  850. continue
  851. fi
  852. case $ac_option in
  853. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  854. *) ac_optarg=yes ;;
  855. esac
  856. # Accept the important Cygnus configure options, so we can diagnose typos.
  857. case $ac_dashdash$ac_option in
  858. --)
  859. ac_dashdash=yes ;;
  860. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  861. ac_prev=bindir ;;
  862. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  863. bindir=$ac_optarg ;;
  864. -build | --build | --buil | --bui | --bu)
  865. ac_prev=build_alias ;;
  866. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  867. build_alias=$ac_optarg ;;
  868. -cache-file | --cache-file | --cache-fil | --cache-fi \
  869. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  870. ac_prev=cache_file ;;
  871. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  872. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  873. cache_file=$ac_optarg ;;
  874. --config-cache | -C)
  875. cache_file=config.cache ;;
  876. -datadir | --datadir | --datadi | --datad)
  877. ac_prev=datadir ;;
  878. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  879. datadir=$ac_optarg ;;
  880. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  881. | --dataroo | --dataro | --datar)
  882. ac_prev=datarootdir ;;
  883. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  884. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  885. datarootdir=$ac_optarg ;;
  886. -disable-* | --disable-*)
  887. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  888. # Reject names that are not valid shell variable names.
  889. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  890. as_fn_error "invalid feature name: $ac_useropt"
  891. ac_useropt_orig=$ac_useropt
  892. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  893. case $ac_user_opts in
  894. *"
  895. "enable_$ac_useropt"
  896. "*) ;;
  897. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  898. ac_unrecognized_sep=', ';;
  899. esac
  900. eval enable_$ac_useropt=no ;;
  901. -docdir | --docdir | --docdi | --doc | --do)
  902. ac_prev=docdir ;;
  903. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  904. docdir=$ac_optarg ;;
  905. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  906. ac_prev=dvidir ;;
  907. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  908. dvidir=$ac_optarg ;;
  909. -enable-* | --enable-*)
  910. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  911. # Reject names that are not valid shell variable names.
  912. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  913. as_fn_error "invalid feature name: $ac_useropt"
  914. ac_useropt_orig=$ac_useropt
  915. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  916. case $ac_user_opts in
  917. *"
  918. "enable_$ac_useropt"
  919. "*) ;;
  920. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  921. ac_unrecognized_sep=', ';;
  922. esac
  923. eval enable_$ac_useropt=\$ac_optarg ;;
  924. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  925. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  926. | --exec | --exe | --ex)
  927. ac_prev=exec_prefix ;;
  928. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  929. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  930. | --exec=* | --exe=* | --ex=*)
  931. exec_prefix=$ac_optarg ;;
  932. -gas | --gas | --ga | --g)
  933. # Obsolete; use --with-gas.
  934. with_gas=yes ;;
  935. -help | --help | --hel | --he | -h)
  936. ac_init_help=long ;;
  937. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  938. ac_init_help=recursive ;;
  939. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  940. ac_init_help=short ;;
  941. -host | --host | --hos | --ho)
  942. ac_prev=host_alias ;;
  943. -host=* | --host=* | --hos=* | --ho=*)
  944. host_alias=$ac_optarg ;;
  945. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  946. ac_prev=htmldir ;;
  947. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  948. | --ht=*)
  949. htmldir=$ac_optarg ;;
  950. -includedir | --includedir | --includedi | --included | --include \
  951. | --includ | --inclu | --incl | --inc)
  952. ac_prev=includedir ;;
  953. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  954. | --includ=* | --inclu=* | --incl=* | --inc=*)
  955. includedir=$ac_optarg ;;
  956. -infodir | --infodir | --infodi | --infod | --info | --inf)
  957. ac_prev=infodir ;;
  958. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  959. infodir=$ac_optarg ;;
  960. -libdir | --libdir | --libdi | --libd)
  961. ac_prev=libdir ;;
  962. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  963. libdir=$ac_optarg ;;
  964. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  965. | --libexe | --libex | --libe)
  966. ac_prev=libexecdir ;;
  967. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  968. | --libexe=* | --libex=* | --libe=*)
  969. libexecdir=$ac_optarg ;;
  970. -localedir | --localedir | --localedi | --localed | --locale)
  971. ac_prev=localedir ;;
  972. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  973. localedir=$ac_optarg ;;
  974. -localstatedir | --localstatedir | --localstatedi | --localstated \
  975. | --localstate | --localstat | --localsta | --localst | --locals)
  976. ac_prev=localstatedir ;;
  977. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  978. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  979. localstatedir=$ac_optarg ;;
  980. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  981. ac_prev=mandir ;;
  982. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  983. mandir=$ac_optarg ;;
  984. -nfp | --nfp | --nf)
  985. # Obsolete; use --without-fp.
  986. with_fp=no ;;
  987. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  988. | --no-cr | --no-c | -n)
  989. no_create=yes ;;
  990. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  991. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  992. no_recursion=yes ;;
  993. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  994. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  995. | --oldin | --oldi | --old | --ol | --o)
  996. ac_prev=oldincludedir ;;
  997. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  998. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  999. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1000. oldincludedir=$ac_optarg ;;
  1001. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1002. ac_prev=prefix ;;
  1003. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1004. prefix=$ac_optarg ;;
  1005. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1006. | --program-pre | --program-pr | --program-p)
  1007. ac_prev=program_prefix ;;
  1008. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1009. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1010. program_prefix=$ac_optarg ;;
  1011. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1012. | --program-suf | --program-su | --program-s)
  1013. ac_prev=program_suffix ;;
  1014. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1015. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1016. program_suffix=$ac_optarg ;;
  1017. -program-transform-name | --program-transform-name \
  1018. | --program-transform-nam | --program-transform-na \
  1019. | --program-transform-n | --program-transform- \
  1020. | --program-transform | --program-transfor \
  1021. | --program-transfo | --program-transf \
  1022. | --program-trans | --program-tran \
  1023. | --progr-tra | --program-tr | --program-t)
  1024. ac_prev=program_transform_name ;;
  1025. -program-transform-name=* | --program-transform-name=* \
  1026. | --program-transform-nam=* | --program-transform-na=* \
  1027. | --program-transform-n=* | --program-transform-=* \
  1028. | --program-transform=* | --program-transfor=* \
  1029. | --program-transfo=* | --program-transf=* \
  1030. | --program-trans=* | --program-tran=* \
  1031. | --progr-tra=* | --program-tr=* | --program-t=*)
  1032. program_transform_name=$ac_optarg ;;
  1033. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1034. ac_prev=pdfdir ;;
  1035. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1036. pdfdir=$ac_optarg ;;
  1037. -psdir | --psdir | --psdi | --psd | --ps)
  1038. ac_prev=psdir ;;
  1039. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1040. psdir=$ac_optarg ;;
  1041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042. | -silent | --silent | --silen | --sile | --sil)
  1043. silent=yes ;;
  1044. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1045. ac_prev=sbindir ;;
  1046. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1047. | --sbi=* | --sb=*)
  1048. sbindir=$ac_optarg ;;
  1049. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1050. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1051. | --sharedst | --shareds | --shared | --share | --shar \
  1052. | --sha | --sh)
  1053. ac_prev=sharedstatedir ;;
  1054. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1055. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1056. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1057. | --sha=* | --sh=*)
  1058. sharedstatedir=$ac_optarg ;;
  1059. -site | --site | --sit)
  1060. ac_prev=site ;;
  1061. -site=* | --site=* | --sit=*)
  1062. site=$ac_optarg ;;
  1063. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1064. ac_prev=srcdir ;;
  1065. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1066. srcdir=$ac_optarg ;;
  1067. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1068. | --syscon | --sysco | --sysc | --sys | --sy)
  1069. ac_prev=sysconfdir ;;
  1070. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1071. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1072. sysconfdir=$ac_optarg ;;
  1073. -target | --target | --targe | --targ | --tar | --ta | --t)
  1074. ac_prev=target_alias ;;
  1075. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1076. target_alias=$ac_optarg ;;
  1077. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1078. verbose=yes ;;
  1079. -version | --version | --versio | --versi | --vers | -V)
  1080. ac_init_version=: ;;
  1081. -with-* | --with-*)
  1082. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1083. # Reject names that are not valid shell variable names.
  1084. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. as_fn_error "invalid package name: $ac_useropt"
  1086. ac_useropt_orig=$ac_useropt
  1087. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1088. case $ac_user_opts in
  1089. *"
  1090. "with_$ac_useropt"
  1091. "*) ;;
  1092. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1093. ac_unrecognized_sep=', ';;
  1094. esac
  1095. eval with_$ac_useropt=\$ac_optarg ;;
  1096. -without-* | --without-*)
  1097. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1100. as_fn_error "invalid package name: $ac_useropt"
  1101. ac_useropt_orig=$ac_useropt
  1102. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1103. case $ac_user_opts in
  1104. *"
  1105. "with_$ac_useropt"
  1106. "*) ;;
  1107. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1108. ac_unrecognized_sep=', ';;
  1109. esac
  1110. eval with_$ac_useropt=no ;;
  1111. --x)
  1112. # Obsolete; use --with-x.
  1113. with_x=yes ;;
  1114. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1115. | --x-incl | --x-inc | --x-in | --x-i)
  1116. ac_prev=x_includes ;;
  1117. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1118. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1119. x_includes=$ac_optarg ;;
  1120. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1121. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1122. ac_prev=x_libraries ;;
  1123. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1124. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1125. x_libraries=$ac_optarg ;;
  1126. -*) as_fn_error "unrecognized option: \`$ac_option'
  1127. Try \`$0 --help' for more information."
  1128. ;;
  1129. *=*)
  1130. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1131. # Reject names that are not valid shell variable names.
  1132. case $ac_envvar in #(
  1133. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1134. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1135. esac
  1136. eval $ac_envvar=\$ac_optarg
  1137. export $ac_envvar ;;
  1138. *)
  1139. # FIXME: should be removed in autoconf 3.0.
  1140. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1141. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1142. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1143. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1144. ;;
  1145. esac
  1146. done
  1147. if test -n "$ac_prev"; then
  1148. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1149. as_fn_error "missing argument to $ac_option"
  1150. fi
  1151. if test -n "$ac_unrecognized_opts"; then
  1152. case $enable_option_checking in
  1153. no) ;;
  1154. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1155. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1156. esac
  1157. fi
  1158. # Check all directory arguments for consistency.
  1159. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1160. datadir sysconfdir sharedstatedir localstatedir includedir \
  1161. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1162. libdir localedir mandir
  1163. do
  1164. eval ac_val=\$$ac_var
  1165. # Remove trailing slashes.
  1166. case $ac_val in
  1167. */ )
  1168. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1169. eval $ac_var=\$ac_val;;
  1170. esac
  1171. # Be sure to have absolute directory names.
  1172. case $ac_val in
  1173. [\\/$]* | ?:[\\/]* ) continue;;
  1174. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1175. esac
  1176. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1177. done
  1178. # There might be people who depend on the old broken behavior: `$host'
  1179. # used to hold the argument of --host etc.
  1180. # FIXME: To remove some day.
  1181. build=$build_alias
  1182. host=$host_alias
  1183. target=$target_alias
  1184. # FIXME: To remove some day.
  1185. if test "x$host_alias" != x; then
  1186. if test "x$build_alias" = x; then
  1187. cross_compiling=maybe
  1188. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1189. If a cross compiler is detected then cross compile mode will be used." >&2
  1190. elif test "x$build_alias" != "x$host_alias"; then
  1191. cross_compiling=yes
  1192. fi
  1193. fi
  1194. ac_tool_prefix=
  1195. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1196. test "$silent" = yes && exec 6>/dev/null
  1197. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1198. ac_ls_di=`ls -di .` &&
  1199. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1200. as_fn_error "working directory cannot be determined"
  1201. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1202. as_fn_error "pwd does not report name of working directory"
  1203. # Find the source files, if location was not specified.
  1204. if test -z "$srcdir"; then
  1205. ac_srcdir_defaulted=yes
  1206. # Try the directory containing this script, then the parent directory.
  1207. ac_confdir=`$as_dirname -- "$as_myself" ||
  1208. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1209. X"$as_myself" : 'X\(//\)[^/]' \| \
  1210. X"$as_myself" : 'X\(//\)$' \| \
  1211. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1212. $as_echo X"$as_myself" |
  1213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1214. s//\1/
  1215. q
  1216. }
  1217. /^X\(\/\/\)[^/].*/{
  1218. s//\1/
  1219. q
  1220. }
  1221. /^X\(\/\/\)$/{
  1222. s//\1/
  1223. q
  1224. }
  1225. /^X\(\/\).*/{
  1226. s//\1/
  1227. q
  1228. }
  1229. s/.*/./; q'`
  1230. srcdir=$ac_confdir
  1231. if test ! -r "$srcdir/$ac_unique_file"; then
  1232. srcdir=..
  1233. fi
  1234. else
  1235. ac_srcdir_defaulted=no
  1236. fi
  1237. if test ! -r "$srcdir/$ac_unique_file"; then
  1238. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1239. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1240. fi
  1241. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1242. ac_abs_confdir=`(
  1243. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1244. pwd)`
  1245. # When building in place, set srcdir=.
  1246. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1247. srcdir=.
  1248. fi
  1249. # Remove unnecessary trailing slashes from srcdir.
  1250. # Double slashes in file names in object file debugging info
  1251. # mess up M-x gdb in Emacs.
  1252. case $srcdir in
  1253. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1254. esac
  1255. case $srcdir in
  1256. *" "*)
  1257. as_fn_error "path to source, $srcdir, contains spaces"
  1258. ;;
  1259. esac
  1260. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1261. for ac_var in $ac_precious_vars; do
  1262. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1263. eval ac_env_${ac_var}_value=\$${ac_var}
  1264. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1266. done
  1267. #
  1268. # Report the --help message.
  1269. #
  1270. if test "$ac_init_help" = "long"; then
  1271. # Omit some internal or obsolete options to make the list less imposing.
  1272. # This message is too long to be a string in the A/UX 3.1 sh.
  1273. cat <<_ACEOF
  1274. \`configure' configures this package to adapt to many kinds of systems.
  1275. Usage: $0 [OPTION]... [VAR=VALUE]...
  1276. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1277. VAR=VALUE. See below for descriptions of some of the useful variables.
  1278. Defaults for the options are specified in brackets.
  1279. Configuration:
  1280. -h, --help display this help and exit
  1281. --help=short display options specific to this package
  1282. --help=recursive display the short help of all the included packages
  1283. -V, --version display version information and exit
  1284. -q, --quiet, --silent do not print \`checking...' messages
  1285. --cache-file=FILE cache test results in FILE [disabled]
  1286. -C, --config-cache alias for \`--cache-file=config.cache'
  1287. -n, --no-create do not create output files
  1288. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1289. Installation directories:
  1290. --prefix=PREFIX install architecture-independent files in PREFIX
  1291. [$ac_default_prefix]
  1292. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1293. [PREFIX]
  1294. By default, \`make install' will install all the files in
  1295. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1296. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1297. for instance \`--prefix=\$HOME'.
  1298. For better control, use the options below.
  1299. Fine tuning of the installation directories:
  1300. --bindir=DIR user executables [EPREFIX/bin]
  1301. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1302. --libexecdir=DIR program executables [EPREFIX/libexec]
  1303. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1304. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1305. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1306. --libdir=DIR object code libraries [EPREFIX/lib]
  1307. --includedir=DIR C header files [PREFIX/include]
  1308. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1309. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1310. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1311. --infodir=DIR info documentation [DATAROOTDIR/info]
  1312. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1313. --mandir=DIR man documentation [DATAROOTDIR/man]
  1314. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1315. --htmldir=DIR html documentation [DOCDIR]
  1316. --dvidir=DIR dvi documentation [DOCDIR]
  1317. --pdfdir=DIR pdf documentation [DOCDIR]
  1318. --psdir=DIR ps documentation [DOCDIR]
  1319. _ACEOF
  1320. cat <<\_ACEOF
  1321. Program names:
  1322. --program-prefix=PREFIX prepend PREFIX to installed program names
  1323. --program-suffix=SUFFIX append SUFFIX to installed program names
  1324. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1325. System types:
  1326. --build=BUILD configure for building on BUILD [guessed]
  1327. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1328. --target=TARGET configure for building compilers for TARGET [HOST]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. cat <<\_ACEOF
  1333. Optional Features:
  1334. --disable-option-checking ignore unrecognized --enable/--with options
  1335. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1336. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1337. --enable-as-accelerator-for=ARG
  1338. build as offload target compiler. Specify offload
  1339. host triple by ARG
  1340. --enable-offload-targets=LIST
  1341. enable offloading to devices from comma-separated
  1342. LIST of TARGET[=DIR]. Use optional path to find
  1343. offload target compiler during the build
  1344. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1345. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1346. --disable-libquadmath do not build libquadmath directory
  1347. --disable-libquadmath-support
  1348. disable libquadmath support for Fortran
  1349. --enable-libada build libada directory
  1350. --enable-libssp build libssp directory
  1351. --disable-libstdcxx do not build libstdc++-v3 directory
  1352. --enable-liboffloadmic=ARG
  1353. build liboffloadmic [ARG={no,host,target}]
  1354. --enable-static-libjava[=ARG]
  1355. build static libjava [default=no]
  1356. --enable-bootstrap enable bootstrapping [yes if native build]
  1357. --disable-isl-version-check
  1358. disable check for ISL version
  1359. --enable-lto enable link time optimization support
  1360. --enable-linker-plugin-configure-flags=FLAGS
  1361. additional flags for configuring linker plugins
  1362. [none]
  1363. --enable-linker-plugin-flags=FLAGS
  1364. additional flags for configuring and building linker
  1365. plugins [none]
  1366. --enable-stage1-languages[=all]
  1367. choose additional languages to build during stage1.
  1368. Mostly useful for compiler development
  1369. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1370. Objective-C runtime
  1371. --enable-vtable-verify Enable vtable verification feature
  1372. --enable-serial-[{host,target,build}-]configure
  1373. force sequential configuration of sub-packages for
  1374. the host, target or build machine, or all
  1375. sub-packages
  1376. --enable-maintainer-mode
  1377. enable make rules and dependencies not useful (and
  1378. sometimes confusing) to the casual installer
  1379. --enable-stage1-checking[=all]
  1380. choose additional checking for stage1 of the
  1381. compiler
  1382. --enable-werror enable -Werror in bootstrap stage2 and later
  1383. --enable-host-shared build host code as shared libraries
  1384. Optional Packages:
  1385. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1386. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1387. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1388. --with-mpc=PATH specify prefix directory for installed MPC package.
  1389. Equivalent to --with-mpc-include=PATH/include plus
  1390. --with-mpc-lib=PATH/lib
  1391. --with-mpc-include=PATH specify directory for installed MPC include files
  1392. --with-mpc-lib=PATH specify directory for the installed MPC library
  1393. --with-mpfr-dir=PATH this option has been REMOVED
  1394. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1395. Equivalent to --with-mpfr-include=PATH/include plus
  1396. --with-mpfr-lib=PATH/lib
  1397. --with-mpfr-include=PATH
  1398. specify directory for installed MPFR include files
  1399. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1400. --with-gmp-dir=PATH this option has been REMOVED
  1401. --with-gmp=PATH specify prefix directory for the installed GMP
  1402. package. Equivalent to
  1403. --with-gmp-include=PATH/include plus
  1404. --with-gmp-lib=PATH/lib
  1405. --with-gmp-include=PATH specify directory for installed GMP include files
  1406. --with-gmp-lib=PATH specify directory for the installed GMP library
  1407. --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
  1408. linking with PPL
  1409. --with-stage1-libs=LIBS libraries for stage1
  1410. --with-stage1-ldflags=FLAGS
  1411. linker flags for stage1
  1412. --with-boot-libs=LIBS libraries for stage2 and later
  1413. --with-boot-ldflags=FLAGS
  1414. linker flags for stage2 and later
  1415. --with-isl=PATH Specify prefix directory for the installed ISL
  1416. package. Equivalent to
  1417. --with-isl-include=PATH/include plus
  1418. --with-isl-lib=PATH/lib
  1419. --with-isl-include=PATH Specify directory for installed ISL include files
  1420. --with-isl-lib=PATH Specify the directory for the installed ISL library
  1421. --with-build-sysroot=SYSROOT
  1422. use sysroot as the system root during the build
  1423. --with-debug-prefix-map='A=B C=D ...'
  1424. map A to B, C to D ... in debug information
  1425. --with-build-config='NAME NAME2...'
  1426. use config/NAME.mk build configuration
  1427. --with-build-time-tools=PATH
  1428. use given path to find target tools during the build
  1429. Some influential environment variables:
  1430. CC C compiler command
  1431. CFLAGS C compiler flags
  1432. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1433. nonstandard directory <lib dir>
  1434. LIBS libraries to pass to the linker, e.g. -l<library>
  1435. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1436. you have headers in a nonstandard directory <include dir>
  1437. CXX C++ compiler command
  1438. CXXFLAGS C++ compiler flags
  1439. build_configargs
  1440. additional configure arguments for build directories
  1441. host_configargs
  1442. additional configure arguments for host directories
  1443. target_configargs
  1444. additional configure arguments for target directories
  1445. AR AR for the host
  1446. AS AS for the host
  1447. DLLTOOL DLLTOOL for the host
  1448. LD LD for the host
  1449. LIPO LIPO for the host
  1450. NM NM for the host
  1451. RANLIB RANLIB for the host
  1452. STRIP STRIP for the host
  1453. WINDRES WINDRES for the host
  1454. WINDMC WINDMC for the host
  1455. OBJCOPY OBJCOPY for the host
  1456. OBJDUMP OBJDUMP for the host
  1457. READELF READELF for the host
  1458. CC_FOR_TARGET
  1459. CC for the target
  1460. CXX_FOR_TARGET
  1461. CXX for the target
  1462. GCC_FOR_TARGET
  1463. GCC for the target
  1464. GCJ_FOR_TARGET
  1465. GCJ for the target
  1466. GFORTRAN_FOR_TARGET
  1467. GFORTRAN for the target
  1468. GOC_FOR_TARGET
  1469. GOC for the target
  1470. AR_FOR_TARGET
  1471. AR for the target
  1472. AS_FOR_TARGET
  1473. AS for the target
  1474. DLLTOOL_FOR_TARGET
  1475. DLLTOOL for the target
  1476. LD_FOR_TARGET
  1477. LD for the target
  1478. LIPO_FOR_TARGET
  1479. LIPO for the target
  1480. NM_FOR_TARGET
  1481. NM for the target
  1482. OBJCOPY_FOR_TARGET
  1483. OBJCOPY for the target
  1484. OBJDUMP_FOR_TARGET
  1485. OBJDUMP for the target
  1486. RANLIB_FOR_TARGET
  1487. RANLIB for the target
  1488. READELF_FOR_TARGET
  1489. READELF for the target
  1490. STRIP_FOR_TARGET
  1491. STRIP for the target
  1492. WINDRES_FOR_TARGET
  1493. WINDRES for the target
  1494. WINDMC_FOR_TARGET
  1495. WINDMC for the target
  1496. Use these variables to override the choices made by `configure' or to help
  1497. it to find libraries and programs with nonstandard names/locations.
  1498. Report bugs to the package provider.
  1499. _ACEOF
  1500. ac_status=$?
  1501. fi
  1502. if test "$ac_init_help" = "recursive"; then
  1503. # If there are subdirs, report their specific --help.
  1504. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1505. test -d "$ac_dir" ||
  1506. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1507. continue
  1508. ac_builddir=.
  1509. case "$ac_dir" in
  1510. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1511. *)
  1512. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1513. # A ".." for each directory in $ac_dir_suffix.
  1514. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1515. case $ac_top_builddir_sub in
  1516. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1517. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1518. esac ;;
  1519. esac
  1520. ac_abs_top_builddir=$ac_pwd
  1521. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1522. # for backward compatibility:
  1523. ac_top_builddir=$ac_top_build_prefix
  1524. case $srcdir in
  1525. .) # We are building in place.
  1526. ac_srcdir=.
  1527. ac_top_srcdir=$ac_top_builddir_sub
  1528. ac_abs_top_srcdir=$ac_pwd ;;
  1529. [\\/]* | ?:[\\/]* ) # Absolute name.
  1530. ac_srcdir=$srcdir$ac_dir_suffix;
  1531. ac_top_srcdir=$srcdir
  1532. ac_abs_top_srcdir=$srcdir ;;
  1533. *) # Relative name.
  1534. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1535. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1536. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1537. esac
  1538. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1539. cd "$ac_dir" || { ac_status=$?; continue; }
  1540. # Check for guested configure.
  1541. if test -f "$ac_srcdir/configure.gnu"; then
  1542. echo &&
  1543. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1544. elif test -f "$ac_srcdir/configure"; then
  1545. echo &&
  1546. $SHELL "$ac_srcdir/configure" --help=recursive
  1547. else
  1548. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1549. fi || ac_status=$?
  1550. cd "$ac_pwd" || { ac_status=$?; break; }
  1551. done
  1552. fi
  1553. test -n "$ac_init_help" && exit $ac_status
  1554. if $ac_init_version; then
  1555. cat <<\_ACEOF
  1556. configure
  1557. generated by GNU Autoconf 2.64
  1558. Copyright (C) 2009 Free Software Foundation, Inc.
  1559. This configure script is free software; the Free Software Foundation
  1560. gives unlimited permission to copy, distribute and modify it.
  1561. _ACEOF
  1562. exit
  1563. fi
  1564. ## ------------------------ ##
  1565. ## Autoconf initialization. ##
  1566. ## ------------------------ ##
  1567. # ac_fn_c_try_compile LINENO
  1568. # --------------------------
  1569. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1570. ac_fn_c_try_compile ()
  1571. {
  1572. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1573. rm -f conftest.$ac_objext
  1574. if { { ac_try="$ac_compile"
  1575. case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_compile") 2>conftest.err
  1582. ac_status=$?
  1583. if test -s conftest.err; then
  1584. grep -v '^ *+' conftest.err >conftest.er1
  1585. cat conftest.er1 >&5
  1586. mv -f conftest.er1 conftest.err
  1587. fi
  1588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1589. test $ac_status = 0; } && {
  1590. test -z "$ac_c_werror_flag" ||
  1591. test ! -s conftest.err
  1592. } && test -s conftest.$ac_objext; then :
  1593. ac_retval=0
  1594. else
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=1
  1598. fi
  1599. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1600. return $ac_retval
  1601. } # ac_fn_c_try_compile
  1602. # ac_fn_cxx_try_compile LINENO
  1603. # ----------------------------
  1604. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1605. ac_fn_cxx_try_compile ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. rm -f conftest.$ac_objext
  1609. if { { ac_try="$ac_compile"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_compile") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } && {
  1625. test -z "$ac_cxx_werror_flag" ||
  1626. test ! -s conftest.err
  1627. } && test -s conftest.$ac_objext; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1635. return $ac_retval
  1636. } # ac_fn_cxx_try_compile
  1637. # ac_fn_cxx_try_link LINENO
  1638. # -------------------------
  1639. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1640. ac_fn_cxx_try_link ()
  1641. {
  1642. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643. rm -f conftest.$ac_objext conftest$ac_exeext
  1644. if { { ac_try="$ac_link"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1650. $as_echo "$ac_try_echo"; } >&5
  1651. (eval "$ac_link") 2>conftest.err
  1652. ac_status=$?
  1653. if test -s conftest.err; then
  1654. grep -v '^ *+' conftest.err >conftest.er1
  1655. cat conftest.er1 >&5
  1656. mv -f conftest.er1 conftest.err
  1657. fi
  1658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1659. test $ac_status = 0; } && {
  1660. test -z "$ac_cxx_werror_flag" ||
  1661. test ! -s conftest.err
  1662. } && test -s conftest$ac_exeext && {
  1663. test "$cross_compiling" = yes ||
  1664. $as_test_x conftest$ac_exeext
  1665. }; then :
  1666. ac_retval=0
  1667. else
  1668. $as_echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_retval=1
  1671. fi
  1672. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1673. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1674. # interfere with the next link command; also delete a directory that is
  1675. # left behind by Apple's compiler. We do this before executing the actions.
  1676. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1677. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1678. return $ac_retval
  1679. } # ac_fn_cxx_try_link
  1680. # ac_fn_c_try_link LINENO
  1681. # -----------------------
  1682. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1683. ac_fn_c_try_link ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. rm -f conftest.$ac_objext conftest$ac_exeext
  1687. if { { ac_try="$ac_link"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_link") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && {
  1703. test -z "$ac_c_werror_flag" ||
  1704. test ! -s conftest.err
  1705. } && test -s conftest$ac_exeext && {
  1706. test "$cross_compiling" = yes ||
  1707. $as_test_x conftest$ac_exeext
  1708. }; then :
  1709. ac_retval=0
  1710. else
  1711. $as_echo "$as_me: failed program was:" >&5
  1712. sed 's/^/| /' conftest.$ac_ext >&5
  1713. ac_retval=1
  1714. fi
  1715. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1716. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1717. # interfere with the next link command; also delete a directory that is
  1718. # left behind by Apple's compiler. We do this before executing the actions.
  1719. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1720. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1721. return $ac_retval
  1722. } # ac_fn_c_try_link
  1723. cat >config.log <<_ACEOF
  1724. This file contains any messages produced by compilers while
  1725. running configure, to aid debugging if configure makes a mistake.
  1726. It was created by $as_me, which was
  1727. generated by GNU Autoconf 2.64. Invocation command line was
  1728. $ $0 $@
  1729. _ACEOF
  1730. exec 5>>config.log
  1731. {
  1732. cat <<_ASUNAME
  1733. ## --------- ##
  1734. ## Platform. ##
  1735. ## --------- ##
  1736. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1737. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1738. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1739. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1740. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1741. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1742. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1743. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1744. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1745. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1746. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1747. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1748. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1749. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1750. _ASUNAME
  1751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1752. for as_dir in $PATH
  1753. do
  1754. IFS=$as_save_IFS
  1755. test -z "$as_dir" && as_dir=.
  1756. $as_echo "PATH: $as_dir"
  1757. done
  1758. IFS=$as_save_IFS
  1759. } >&5
  1760. cat >&5 <<_ACEOF
  1761. ## ----------- ##
  1762. ## Core tests. ##
  1763. ## ----------- ##
  1764. _ACEOF
  1765. # Keep a trace of the command line.
  1766. # Strip out --no-create and --no-recursion so they do not pile up.
  1767. # Strip out --silent because we don't want to record it for future runs.
  1768. # Also quote any args containing shell meta-characters.
  1769. # Make two passes to allow for proper duplicate-argument suppression.
  1770. ac_configure_args=
  1771. ac_configure_args0=
  1772. ac_configure_args1=
  1773. ac_must_keep_next=false
  1774. for ac_pass in 1 2
  1775. do
  1776. for ac_arg
  1777. do
  1778. case $ac_arg in
  1779. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1780. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1781. | -silent | --silent | --silen | --sile | --sil)
  1782. continue ;;
  1783. *\'*)
  1784. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1785. esac
  1786. case $ac_pass in
  1787. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1788. 2)
  1789. as_fn_append ac_configure_args1 " '$ac_arg'"
  1790. if test $ac_must_keep_next = true; then
  1791. ac_must_keep_next=false # Got value, back to normal.
  1792. else
  1793. case $ac_arg in
  1794. *=* | --config-cache | -C | -disable-* | --disable-* \
  1795. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1796. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1797. | -with-* | --with-* | -without-* | --without-* | --x)
  1798. case "$ac_configure_args0 " in
  1799. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1800. esac
  1801. ;;
  1802. -* ) ac_must_keep_next=true ;;
  1803. esac
  1804. fi
  1805. as_fn_append ac_configure_args " '$ac_arg'"
  1806. ;;
  1807. esac
  1808. done
  1809. done
  1810. { ac_configure_args0=; unset ac_configure_args0;}
  1811. { ac_configure_args1=; unset ac_configure_args1;}
  1812. # When interrupted or exit'd, cleanup temporary files, and complete
  1813. # config.log. We remove comments because anyway the quotes in there
  1814. # would cause problems or look ugly.
  1815. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1816. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1817. trap 'exit_status=$?
  1818. # Save into config.log some information that might help in debugging.
  1819. {
  1820. echo
  1821. cat <<\_ASBOX
  1822. ## ---------------- ##
  1823. ## Cache variables. ##
  1824. ## ---------------- ##
  1825. _ASBOX
  1826. echo
  1827. # The following way of writing the cache mishandles newlines in values,
  1828. (
  1829. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1830. eval ac_val=\$$ac_var
  1831. case $ac_val in #(
  1832. *${as_nl}*)
  1833. case $ac_var in #(
  1834. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1835. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1836. esac
  1837. case $ac_var in #(
  1838. _ | IFS | as_nl) ;; #(
  1839. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1840. *) { eval $ac_var=; unset $ac_var;} ;;
  1841. esac ;;
  1842. esac
  1843. done
  1844. (set) 2>&1 |
  1845. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1846. *${as_nl}ac_space=\ *)
  1847. sed -n \
  1848. "s/'\''/'\''\\\\'\'''\''/g;
  1849. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1850. ;; #(
  1851. *)
  1852. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1853. ;;
  1854. esac |
  1855. sort
  1856. )
  1857. echo
  1858. cat <<\_ASBOX
  1859. ## ----------------- ##
  1860. ## Output variables. ##
  1861. ## ----------------- ##
  1862. _ASBOX
  1863. echo
  1864. for ac_var in $ac_subst_vars
  1865. do
  1866. eval ac_val=\$$ac_var
  1867. case $ac_val in
  1868. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1869. esac
  1870. $as_echo "$ac_var='\''$ac_val'\''"
  1871. done | sort
  1872. echo
  1873. if test -n "$ac_subst_files"; then
  1874. cat <<\_ASBOX
  1875. ## ------------------- ##
  1876. ## File substitutions. ##
  1877. ## ------------------- ##
  1878. _ASBOX
  1879. echo
  1880. for ac_var in $ac_subst_files
  1881. do
  1882. eval ac_val=\$$ac_var
  1883. case $ac_val in
  1884. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1885. esac
  1886. $as_echo "$ac_var='\''$ac_val'\''"
  1887. done | sort
  1888. echo
  1889. fi
  1890. if test -s confdefs.h; then
  1891. cat <<\_ASBOX
  1892. ## ----------- ##
  1893. ## confdefs.h. ##
  1894. ## ----------- ##
  1895. _ASBOX
  1896. echo
  1897. cat confdefs.h
  1898. echo
  1899. fi
  1900. test "$ac_signal" != 0 &&
  1901. $as_echo "$as_me: caught signal $ac_signal"
  1902. $as_echo "$as_me: exit $exit_status"
  1903. } >&5
  1904. rm -f core *.core core.conftest.* &&
  1905. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1906. exit $exit_status
  1907. ' 0
  1908. for ac_signal in 1 2 13 15; do
  1909. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1910. done
  1911. ac_signal=0
  1912. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1913. rm -f -r conftest* confdefs.h
  1914. $as_echo "/* confdefs.h */" > confdefs.h
  1915. # Predefined preprocessor variables.
  1916. cat >>confdefs.h <<_ACEOF
  1917. #define PACKAGE_NAME "$PACKAGE_NAME"
  1918. _ACEOF
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1921. _ACEOF
  1922. cat >>confdefs.h <<_ACEOF
  1923. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1924. _ACEOF
  1925. cat >>confdefs.h <<_ACEOF
  1926. #define PACKAGE_STRING "$PACKAGE_STRING"
  1927. _ACEOF
  1928. cat >>confdefs.h <<_ACEOF
  1929. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1930. _ACEOF
  1931. cat >>confdefs.h <<_ACEOF
  1932. #define PACKAGE_URL "$PACKAGE_URL"
  1933. _ACEOF
  1934. # Let the site file select an alternate cache file if it wants to.
  1935. # Prefer an explicitly selected file to automatically selected ones.
  1936. ac_site_file1=NONE
  1937. ac_site_file2=NONE
  1938. if test -n "$CONFIG_SITE"; then
  1939. ac_site_file1=$CONFIG_SITE
  1940. elif test "x$prefix" != xNONE; then
  1941. ac_site_file1=$prefix/share/config.site
  1942. ac_site_file2=$prefix/etc/config.site
  1943. else
  1944. ac_site_file1=$ac_default_prefix/share/config.site
  1945. ac_site_file2=$ac_default_prefix/etc/config.site
  1946. fi
  1947. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1948. do
  1949. test "x$ac_site_file" = xNONE && continue
  1950. if test -r "$ac_site_file"; then
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1952. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1953. sed 's/^/| /' "$ac_site_file" >&5
  1954. . "$ac_site_file"
  1955. fi
  1956. done
  1957. if test -r "$cache_file"; then
  1958. # Some versions of bash will fail to source /dev/null (special
  1959. # files actually), so we avoid doing that.
  1960. if test -f "$cache_file"; then
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1962. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1963. case $cache_file in
  1964. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1965. *) . "./$cache_file";;
  1966. esac
  1967. fi
  1968. else
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1970. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1971. >$cache_file
  1972. fi
  1973. # Check that the precious variables saved in the cache have kept the same
  1974. # value.
  1975. ac_cache_corrupted=false
  1976. for ac_var in $ac_precious_vars; do
  1977. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1978. eval ac_new_set=\$ac_env_${ac_var}_set
  1979. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1980. eval ac_new_val=\$ac_env_${ac_var}_value
  1981. case $ac_old_set,$ac_new_set in
  1982. set,)
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1984. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1985. ac_cache_corrupted=: ;;
  1986. ,set)
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1989. ac_cache_corrupted=: ;;
  1990. ,);;
  1991. *)
  1992. if test "x$ac_old_val" != "x$ac_new_val"; then
  1993. # differences in whitespace do not lead to failure.
  1994. ac_old_val_w=`echo x $ac_old_val`
  1995. ac_new_val_w=`echo x $ac_new_val`
  1996. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1998. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1999. ac_cache_corrupted=:
  2000. else
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2002. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2003. eval $ac_var=\$ac_old_val
  2004. fi
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2006. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2008. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2009. fi;;
  2010. esac
  2011. # Pass precious variables to config.status.
  2012. if test "$ac_new_set" = set; then
  2013. case $ac_new_val in
  2014. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2015. *) ac_arg=$ac_var=$ac_new_val ;;
  2016. esac
  2017. case " $ac_configure_args " in
  2018. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2019. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2020. esac
  2021. fi
  2022. done
  2023. if $ac_cache_corrupted; then
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2025. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2027. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2028. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2029. fi
  2030. ## -------------------- ##
  2031. ## Main body of script. ##
  2032. ## -------------------- ##
  2033. ac_ext=c
  2034. ac_cpp='$CPP $CPPFLAGS'
  2035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2038. progname=$0
  2039. # if PWD already has a value, it is probably wrong.
  2040. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2041. # Export original configure arguments for use by sub-configures.
  2042. # Quote arguments with shell meta charatcers.
  2043. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2044. set -- "$progname" "$@"
  2045. for ac_arg
  2046. do
  2047. case "$ac_arg" in
  2048. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2049. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2050. # if the argument is of the form -foo=baz, quote the baz part only
  2051. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2052. *) ;;
  2053. esac
  2054. # Add the quoted argument to the list.
  2055. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2056. done
  2057. if test "$silent" = yes; then
  2058. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2059. fi
  2060. # Remove the initial space we just introduced and, as these will be
  2061. # expanded by make, quote '$'.
  2062. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2063. # Find the build, host, and target systems.
  2064. ac_aux_dir=
  2065. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2066. for ac_t in install-sh install.sh shtool; do
  2067. if test -f "$ac_dir/$ac_t"; then
  2068. ac_aux_dir=$ac_dir
  2069. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2070. break 2
  2071. fi
  2072. done
  2073. done
  2074. if test -z "$ac_aux_dir"; then
  2075. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2076. fi
  2077. # These three variables are undocumented and unsupported,
  2078. # and are intended to be withdrawn in a future Autoconf release.
  2079. # They can cause serious problems if a builder's source tree is in a directory
  2080. # whose full name contains unusual characters.
  2081. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2082. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2083. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2084. # Make sure we can run config.sub.
  2085. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2086. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2088. $as_echo_n "checking build system type... " >&6; }
  2089. if test "${ac_cv_build+set}" = set; then :
  2090. $as_echo_n "(cached) " >&6
  2091. else
  2092. ac_build_alias=$build_alias
  2093. test "x$ac_build_alias" = x &&
  2094. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2095. test "x$ac_build_alias" = x &&
  2096. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2097. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2098. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2099. fi
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2101. $as_echo "$ac_cv_build" >&6; }
  2102. case $ac_cv_build in
  2103. *-*-*) ;;
  2104. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2105. esac
  2106. build=$ac_cv_build
  2107. ac_save_IFS=$IFS; IFS='-'
  2108. set x $ac_cv_build
  2109. shift
  2110. build_cpu=$1
  2111. build_vendor=$2
  2112. shift; shift
  2113. # Remember, the first character of IFS is used to create $*,
  2114. # except with old shells:
  2115. build_os=$*
  2116. IFS=$ac_save_IFS
  2117. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2118. case ${build_alias} in
  2119. "") build_noncanonical=${build} ;;
  2120. *) build_noncanonical=${build_alias} ;;
  2121. esac
  2122. case ${host_alias} in
  2123. "") host_noncanonical=${build_noncanonical} ;;
  2124. *) host_noncanonical=${host_alias} ;;
  2125. esac
  2126. case ${target_alias} in
  2127. "") target_noncanonical=${host_noncanonical} ;;
  2128. *) target_noncanonical=${target_alias} ;;
  2129. esac
  2130. test "$host_noncanonical" = "$target_noncanonical" &&
  2131. test "$program_prefix$program_suffix$program_transform_name" = \
  2132. NONENONEs,x,x, &&
  2133. program_transform_name=s,y,y,
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2135. $as_echo_n "checking host system type... " >&6; }
  2136. if test "${ac_cv_host+set}" = set; then :
  2137. $as_echo_n "(cached) " >&6
  2138. else
  2139. if test "x$host_alias" = x; then
  2140. ac_cv_host=$ac_cv_build
  2141. else
  2142. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2143. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2144. fi
  2145. fi
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2147. $as_echo "$ac_cv_host" >&6; }
  2148. case $ac_cv_host in
  2149. *-*-*) ;;
  2150. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2151. esac
  2152. host=$ac_cv_host
  2153. ac_save_IFS=$IFS; IFS='-'
  2154. set x $ac_cv_host
  2155. shift
  2156. host_cpu=$1
  2157. host_vendor=$2
  2158. shift; shift
  2159. # Remember, the first character of IFS is used to create $*,
  2160. # except with old shells:
  2161. host_os=$*
  2162. IFS=$ac_save_IFS
  2163. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2165. $as_echo_n "checking target system type... " >&6; }
  2166. if test "${ac_cv_target+set}" = set; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. if test "x$target_alias" = x; then
  2170. ac_cv_target=$ac_cv_host
  2171. else
  2172. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2173. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2174. fi
  2175. fi
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2177. $as_echo "$ac_cv_target" >&6; }
  2178. case $ac_cv_target in
  2179. *-*-*) ;;
  2180. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2181. esac
  2182. target=$ac_cv_target
  2183. ac_save_IFS=$IFS; IFS='-'
  2184. set x $ac_cv_target
  2185. shift
  2186. target_cpu=$1
  2187. target_vendor=$2
  2188. shift; shift
  2189. # Remember, the first character of IFS is used to create $*,
  2190. # except with old shells:
  2191. target_os=$*
  2192. IFS=$ac_save_IFS
  2193. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2194. # The aliases save the names the user supplied, while $host etc.
  2195. # will get canonicalized.
  2196. test -n "$target_alias" &&
  2197. test "$program_prefix$program_suffix$program_transform_name" = \
  2198. NONENONEs,x,x, &&
  2199. program_prefix=${target_alias}-
  2200. test "$program_prefix" != NONE &&
  2201. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2202. # Use a double $ so make ignores it.
  2203. test "$program_suffix" != NONE &&
  2204. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2205. # Double any \ or $.
  2206. # By default was `s,x,x', remove it if useless.
  2207. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2208. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2209. # Get 'install' or 'install-sh' and its variants.
  2210. # Find a good install program. We prefer a C program (faster),
  2211. # so one script is as good as another. But avoid the broken or
  2212. # incompatible versions:
  2213. # SysV /etc/install, /usr/sbin/install
  2214. # SunOS /usr/etc/install
  2215. # IRIX /sbin/install
  2216. # AIX /bin/install
  2217. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2218. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2219. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2220. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2221. # OS/2's system install, which has a completely different semantic
  2222. # ./install, which can be erroneously created by make from ./install.sh.
  2223. # Reject install programs that cannot install multiple files.
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2225. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2226. if test -z "$INSTALL"; then
  2227. if test "${ac_cv_path_install+set}" = set; then :
  2228. $as_echo_n "(cached) " >&6
  2229. else
  2230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2231. for as_dir in $PATH
  2232. do
  2233. IFS=$as_save_IFS
  2234. test -z "$as_dir" && as_dir=.
  2235. # Account for people who put trailing slashes in PATH elements.
  2236. case $as_dir/ in #((
  2237. ./ | .// | /[cC]/* | \
  2238. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2239. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2240. /usr/ucb/* ) ;;
  2241. *)
  2242. # OSF1 and SCO ODT 3.0 have their own names for install.
  2243. # Don't use installbsd from OSF since it installs stuff as root
  2244. # by default.
  2245. for ac_prog in ginstall scoinst install; do
  2246. for ac_exec_ext in '' $ac_executable_extensions; do
  2247. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2248. if test $ac_prog = install &&
  2249. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2250. # AIX install. It has an incompatible calling convention.
  2251. :
  2252. elif test $ac_prog = install &&
  2253. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2254. # program-specific install script used by HP pwplus--don't use.
  2255. :
  2256. else
  2257. rm -rf conftest.one conftest.two conftest.dir
  2258. echo one > conftest.one
  2259. echo two > conftest.two
  2260. mkdir conftest.dir
  2261. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2262. test -s conftest.one && test -s conftest.two &&
  2263. test -s conftest.dir/conftest.one &&
  2264. test -s conftest.dir/conftest.two
  2265. then
  2266. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2267. break 3
  2268. fi
  2269. fi
  2270. fi
  2271. done
  2272. done
  2273. ;;
  2274. esac
  2275. done
  2276. IFS=$as_save_IFS
  2277. rm -rf conftest.one conftest.two conftest.dir
  2278. fi
  2279. if test "${ac_cv_path_install+set}" = set; then
  2280. INSTALL=$ac_cv_path_install
  2281. else
  2282. # As a last resort, use the slow shell script. Don't cache a
  2283. # value for INSTALL within a source directory, because that will
  2284. # break other packages using the cache if that directory is
  2285. # removed, or if the value is a relative name.
  2286. INSTALL=$ac_install_sh
  2287. fi
  2288. fi
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2290. $as_echo "$INSTALL" >&6; }
  2291. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2292. # It thinks the first close brace ends the variable substitution.
  2293. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2294. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2295. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2297. $as_echo_n "checking whether ln works... " >&6; }
  2298. if test "${acx_cv_prog_LN+set}" = set; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. rm -f conftestdata_t
  2302. echo >conftestdata_f
  2303. if ln conftestdata_f conftestdata_t 2>/dev/null
  2304. then
  2305. acx_cv_prog_LN=ln
  2306. else
  2307. acx_cv_prog_LN=no
  2308. fi
  2309. rm -f conftestdata_f conftestdata_t
  2310. fi
  2311. if test $acx_cv_prog_LN = no; then
  2312. LN="cp"
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2314. $as_echo "no, using $LN" >&6; }
  2315. else
  2316. LN="$acx_cv_prog_LN"
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2318. $as_echo "yes" >&6; }
  2319. fi
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2321. $as_echo_n "checking whether ln -s works... " >&6; }
  2322. LN_S=$as_ln_s
  2323. if test "$LN_S" = "ln -s"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2325. $as_echo "yes" >&6; }
  2326. else
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2328. $as_echo "no, using $LN_S" >&6; }
  2329. fi
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2331. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2332. if test "${ac_cv_path_SED+set}" = set; then :
  2333. $as_echo_n "(cached) " >&6
  2334. else
  2335. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2336. for ac_i in 1 2 3 4 5 6 7; do
  2337. ac_script="$ac_script$as_nl$ac_script"
  2338. done
  2339. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2340. { ac_script=; unset ac_script;}
  2341. if test -z "$SED"; then
  2342. ac_path_SED_found=false
  2343. # Loop through the user's path and test for each of PROGNAME-LIST
  2344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2345. for as_dir in $PATH
  2346. do
  2347. IFS=$as_save_IFS
  2348. test -z "$as_dir" && as_dir=.
  2349. for ac_prog in sed gsed; do
  2350. for ac_exec_ext in '' $ac_executable_extensions; do
  2351. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2352. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2353. # Check for GNU ac_path_SED and select it if it is found.
  2354. # Check for GNU $ac_path_SED
  2355. case `"$ac_path_SED" --version 2>&1` in
  2356. *GNU*)
  2357. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2358. *)
  2359. ac_count=0
  2360. $as_echo_n 0123456789 >"conftest.in"
  2361. while :
  2362. do
  2363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2364. mv "conftest.tmp" "conftest.in"
  2365. cp "conftest.in" "conftest.nl"
  2366. $as_echo '' >> "conftest.nl"
  2367. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2369. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2370. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2371. # Best one so far, save it but keep looking for a better one
  2372. ac_cv_path_SED="$ac_path_SED"
  2373. ac_path_SED_max=$ac_count
  2374. fi
  2375. # 10*(2^10) chars as input seems more than enough
  2376. test $ac_count -gt 10 && break
  2377. done
  2378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2379. esac
  2380. $ac_path_SED_found && break 3
  2381. done
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. if test -z "$ac_cv_path_SED"; then
  2386. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2387. fi
  2388. else
  2389. ac_cv_path_SED=$SED
  2390. fi
  2391. fi
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2393. $as_echo "$ac_cv_path_SED" >&6; }
  2394. SED="$ac_cv_path_SED"
  2395. rm -f conftest.sed
  2396. for ac_prog in gawk mawk nawk awk
  2397. do
  2398. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2399. set dummy $ac_prog; ac_word=$2
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2401. $as_echo_n "checking for $ac_word... " >&6; }
  2402. if test "${ac_cv_prog_AWK+set}" = set; then :
  2403. $as_echo_n "(cached) " >&6
  2404. else
  2405. if test -n "$AWK"; then
  2406. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2407. else
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. for as_dir in $PATH
  2410. do
  2411. IFS=$as_save_IFS
  2412. test -z "$as_dir" && as_dir=.
  2413. for ac_exec_ext in '' $ac_executable_extensions; do
  2414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2415. ac_cv_prog_AWK="$ac_prog"
  2416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2417. break 2
  2418. fi
  2419. done
  2420. done
  2421. IFS=$as_save_IFS
  2422. fi
  2423. fi
  2424. AWK=$ac_cv_prog_AWK
  2425. if test -n "$AWK"; then
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2427. $as_echo "$AWK" >&6; }
  2428. else
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2430. $as_echo "no" >&6; }
  2431. fi
  2432. test -n "$AWK" && break
  2433. done
  2434. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2435. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2436. # a relative path.
  2437. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2438. INSTALL="${srcpwd}/install-sh -c"
  2439. fi
  2440. # Set srcdir to "." if that's what it is.
  2441. # This is important for multilib support.
  2442. pwd=`${PWDCMD-pwd}`
  2443. if test "${pwd}" = "${srcpwd}" ; then
  2444. srcdir=.
  2445. fi
  2446. topsrcdir=$srcpwd
  2447. extra_host_args=
  2448. ### To add a new directory to the tree, first choose whether it is a target
  2449. ### or a host dependent tool. Then put it into the appropriate list
  2450. ### (library or tools, host or target), doing a dependency sort.
  2451. # Subdirs will be configured in the order listed in build_configdirs,
  2452. # configdirs, or target_configdirs; see the serialization section below.
  2453. # Dependency sorting is only needed when *configuration* must be done in
  2454. # a particular order. In all cases a dependency should be specified in
  2455. # the Makefile, whether or not it's implicitly specified here.
  2456. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2457. # cause circular dependencies and break everything horribly.
  2458. # these library is used by various programs built for the build
  2459. # environment
  2460. #
  2461. build_libs="build-libiberty build-libcpp"
  2462. # these tools are built for the build environment
  2463. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2464. # these libraries are used by various programs built for the host environment
  2465. #f
  2466. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
  2467. # these tools are built for the host environment
  2468. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2469. # know that we are building the simulator.
  2470. # binutils, gas and ld appear in that order because it makes sense to run
  2471. # "make check" in that particular order.
  2472. # If --enable-gold is used, "gold" may replace "ld".
  2473. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
  2474. # libgcj represents the runtime libraries only used by gcj.
  2475. libgcj="target-libffi \
  2476. target-zlib \
  2477. target-libjava"
  2478. # these libraries are built for the target environment, and are built after
  2479. # the host libraries and the host tools (which may be a cross compiler)
  2480. # Note that libiberty is not a target library.
  2481. target_libraries="target-libgcc \
  2482. target-libbacktrace \
  2483. target-libgloss \
  2484. target-newlib \
  2485. target-libgomp \
  2486. target-libcilkrts \
  2487. target-liboffloadmic \
  2488. target-libatomic \
  2489. target-libitm \
  2490. target-libstdc++-v3 \
  2491. target-libsanitizer \
  2492. target-libvtv \
  2493. target-libmpx \
  2494. target-libssp \
  2495. target-libquadmath \
  2496. target-libgfortran \
  2497. target-boehm-gc \
  2498. ${libgcj} \
  2499. target-libobjc \
  2500. target-libada \
  2501. target-libgo"
  2502. # these tools are built using the target libraries, and are intended to
  2503. # run only in the target environment
  2504. #
  2505. # note: any program that *uses* libraries that are in the "target_libraries"
  2506. # list belongs in this list.
  2507. #
  2508. target_tools="target-rda"
  2509. ################################################################################
  2510. ## All tools belong in one of the four categories, and are assigned above
  2511. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2512. ## is important because configure will choke if they ever get through.
  2513. ## ${configdirs} is directories we build using the host tools.
  2514. ## ${target_configdirs} is directories we build using the target tools.
  2515. configdirs=`echo ${host_libs} ${host_tools}`
  2516. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2517. build_configdirs=`echo ${build_libs} ${build_tools}`
  2518. ################################################################################
  2519. srcname="gnu development package"
  2520. # This gets set non-empty for some net releases of packages.
  2521. appdirs=""
  2522. # Define is_cross_compiler to save on calls to 'test'.
  2523. is_cross_compiler=
  2524. if test x"${host}" = x"${target}" ; then
  2525. is_cross_compiler=no
  2526. else
  2527. is_cross_compiler=yes
  2528. fi
  2529. # Find the build and target subdir names.
  2530. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2531. # have matching libraries, they should use host libraries: Makefile.tpl
  2532. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2533. # However, they still use the build modules, because the corresponding
  2534. # host modules (e.g. bison) are only built for the host when bootstrap
  2535. # finishes. So:
  2536. # - build_subdir is where we find build modules, and never changes.
  2537. # - build_libsubdir is where we find build libraries, and can be overridden.
  2538. # Prefix 'build-' so this never conflicts with target_subdir.
  2539. build_subdir="build-${build_noncanonical}"
  2540. # Check whether --with-build-libsubdir was given.
  2541. if test "${with_build_libsubdir+set}" = set; then :
  2542. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2543. else
  2544. build_libsubdir="$build_subdir"
  2545. fi
  2546. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2547. if ( test $srcdir = . && test -d gcc ) \
  2548. || test -d $srcdir/../host-${host_noncanonical}; then
  2549. host_subdir="host-${host_noncanonical}"
  2550. else
  2551. host_subdir=.
  2552. fi
  2553. # No prefix.
  2554. target_subdir=${target_noncanonical}
  2555. # Be sure to cover against remnants of an in-tree build.
  2556. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2557. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2558. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2559. fi
  2560. # Skipdirs are removed silently.
  2561. skipdirs=
  2562. # Noconfigdirs are removed loudly.
  2563. noconfigdirs=""
  2564. use_gnu_ld=
  2565. # Make sure we don't let GNU ld be added if we didn't want it.
  2566. if test x$with_gnu_ld = xno ; then
  2567. use_gnu_ld=no
  2568. noconfigdirs="$noconfigdirs ld gold"
  2569. fi
  2570. use_gnu_as=
  2571. # Make sure we don't let GNU as be added if we didn't want it.
  2572. if test x$with_gnu_as = xno ; then
  2573. use_gnu_as=no
  2574. noconfigdirs="$noconfigdirs gas"
  2575. fi
  2576. use_included_zlib=
  2577. # Make sure we don't let ZLIB be added if we didn't want it.
  2578. if test x$with_system_zlib = xyes ; then
  2579. use_included_zlib=no
  2580. noconfigdirs="$noconfigdirs zlib"
  2581. fi
  2582. # some tools are so dependent upon X11 that if we're not building with X,
  2583. # it's not even worth trying to configure, much less build, that tool.
  2584. case ${with_x} in
  2585. yes | "") ;; # the default value for this tree is that X11 is available
  2586. no)
  2587. skipdirs="${skipdirs} tk itcl libgui"
  2588. # We won't be able to build gdbtk without X.
  2589. enable_gdbtk=no
  2590. ;;
  2591. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2592. esac
  2593. # Some are only suitable for cross toolchains.
  2594. # Remove these if host=target.
  2595. cross_only="target-libgloss target-newlib target-opcodes"
  2596. case $is_cross_compiler in
  2597. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2598. esac
  2599. # If both --with-headers and --with-libs are specified, default to
  2600. # --without-newlib.
  2601. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2602. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2603. if test x"${with_newlib}" = x ; then
  2604. with_newlib=no
  2605. fi
  2606. fi
  2607. # Recognize --with-newlib/--without-newlib.
  2608. case ${with_newlib} in
  2609. no) skipdirs="${skipdirs} target-newlib" ;;
  2610. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2611. esac
  2612. # Check whether --enable-as-accelerator-for was given.
  2613. if test "${enable_as_accelerator_for+set}" = set; then :
  2614. enableval=$enable_as_accelerator_for;
  2615. fi
  2616. # Check whether --enable-offload-targets was given.
  2617. if test "${enable_offload_targets+set}" = set; then :
  2618. enableval=$enable_offload_targets;
  2619. if test x"$enable_offload_targets" = x; then
  2620. as_fn_error "no offload targets specified" "$LINENO" 5
  2621. fi
  2622. else
  2623. enable_offload_targets=
  2624. fi
  2625. # Handle --enable-gold, --enable-ld.
  2626. # --disable-gold [--enable-ld]
  2627. # Build only ld. Default option.
  2628. # --enable-gold [--enable-ld]
  2629. # Build both gold and ld. Install gold as "ld.gold", install ld
  2630. # as "ld.bfd" and "ld".
  2631. # --enable-gold=default [--enable-ld]
  2632. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2633. # install ld as "ld.bfd".
  2634. # --enable-gold[=default] --disable-ld
  2635. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2636. # --enable-gold --enable-ld=default
  2637. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2638. # and ld.bfd).
  2639. # In other words, ld is default
  2640. # --enable-gold=default --enable-ld=default
  2641. # Error.
  2642. default_ld=
  2643. # Check whether --enable-gold was given.
  2644. if test "${enable_gold+set}" = set; then :
  2645. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2646. else
  2647. ENABLE_GOLD=no
  2648. fi
  2649. case "${ENABLE_GOLD}" in
  2650. yes|default)
  2651. # Check for ELF target.
  2652. is_elf=no
  2653. case "${target}" in
  2654. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2655. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2656. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2657. | *-*-solaris2* | *-*-nto* | *-*-nacl*)
  2658. case "${target}" in
  2659. *-*-linux*aout* | *-*-linux*oldld*)
  2660. ;;
  2661. *)
  2662. is_elf=yes
  2663. ;;
  2664. esac
  2665. esac
  2666. if test "$is_elf" = "yes"; then
  2667. # Check for target supported by gold.
  2668. case "${target}" in
  2669. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2670. | aarch64*-*-* | tilegx*-*-*)
  2671. configdirs="$configdirs gold"
  2672. if test x${ENABLE_GOLD} = xdefault; then
  2673. default_ld=gold
  2674. fi
  2675. ENABLE_GOLD=yes
  2676. ;;
  2677. esac
  2678. fi
  2679. ;;
  2680. no)
  2681. ;;
  2682. *)
  2683. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2684. ;;
  2685. esac
  2686. # Check whether --enable-ld was given.
  2687. if test "${enable_ld+set}" = set; then :
  2688. enableval=$enable_ld; ENABLE_LD=$enableval
  2689. else
  2690. ENABLE_LD=yes
  2691. fi
  2692. case "${ENABLE_LD}" in
  2693. default)
  2694. if test x${default_ld} != x; then
  2695. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2696. fi
  2697. ;;
  2698. yes)
  2699. ;;
  2700. no)
  2701. if test x${ENABLE_GOLD} != xyes; then
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2703. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2704. fi
  2705. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2706. ;;
  2707. *)
  2708. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2709. ;;
  2710. esac
  2711. # Configure extra directories which are host specific
  2712. case "${host}" in
  2713. *-cygwin*)
  2714. configdirs="$configdirs libtermcap" ;;
  2715. esac
  2716. # A target can indicate whether a language isn't supported for some reason.
  2717. # Only spaces may be used in this macro; not newlines or tabs.
  2718. unsupported_languages=
  2719. # Remove more programs from consideration, based on the host or
  2720. # target this usually means that a port of the program doesn't
  2721. # exist yet.
  2722. case "${host}" in
  2723. i[3456789]86-*-msdosdjgpp*)
  2724. noconfigdirs="$noconfigdirs tcl tk itcl"
  2725. ;;
  2726. esac
  2727. # Check whether --enable-libquadmath was given.
  2728. if test "${enable_libquadmath+set}" = set; then :
  2729. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2730. else
  2731. ENABLE_LIBQUADMATH=yes
  2732. fi
  2733. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2734. noconfigdirs="$noconfigdirs target-libquadmath"
  2735. fi
  2736. # Check whether --enable-libquadmath-support was given.
  2737. if test "${enable_libquadmath_support+set}" = set; then :
  2738. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2739. else
  2740. ENABLE_LIBQUADMATH_SUPPORT=yes
  2741. fi
  2742. enable_libquadmath_support=
  2743. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2744. enable_libquadmath_support=no
  2745. fi
  2746. # Check whether --enable-libada was given.
  2747. if test "${enable_libada+set}" = set; then :
  2748. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2749. else
  2750. ENABLE_LIBADA=yes
  2751. fi
  2752. if test "${ENABLE_LIBADA}" != "yes" ; then
  2753. noconfigdirs="$noconfigdirs gnattools"
  2754. fi
  2755. # Check whether --enable-libssp was given.
  2756. if test "${enable_libssp+set}" = set; then :
  2757. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2758. else
  2759. ENABLE_LIBSSP=yes
  2760. fi
  2761. # Check whether --enable-libstdcxx was given.
  2762. if test "${enable_libstdcxx+set}" = set; then :
  2763. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2764. else
  2765. ENABLE_LIBSTDCXX=default
  2766. fi
  2767. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2768. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2769. fi
  2770. # If this is accelerator compiler and its target is intelmic we enable
  2771. # target liboffloadmic by default. If this is compiler with offloading
  2772. # for intelmic we enable host liboffloadmic by default. Otherwise
  2773. # liboffloadmic is disabled by default.
  2774. # Check whether --enable-liboffloadmic was given.
  2775. if test "${enable_liboffloadmic+set}" = set; then :
  2776. enableval=$enable_liboffloadmic; case "$enableval" in
  2777. no | host | target)
  2778. enable_liboffloadmic=$enableval ;;
  2779. *)
  2780. as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2781. esac
  2782. else
  2783. if test x"$enable_as_accelerator_for" != x; then
  2784. case "${target}" in
  2785. *-intelmic-* | *-intelmicemul-*)
  2786. enable_liboffloadmic=target
  2787. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2788. ;;
  2789. *)
  2790. enable_liboffloadmic=no
  2791. ;;
  2792. esac
  2793. else
  2794. case "${enable_offload_targets}" in
  2795. *-intelmic-* | *-intelmicemul-*)
  2796. enable_liboffloadmic=host
  2797. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2798. ;;
  2799. *)
  2800. enable_liboffloadmic=no
  2801. ;;
  2802. esac
  2803. fi
  2804. fi
  2805. # Save it here so that, even in case of --enable-libgcj, if the Java
  2806. # front-end isn't enabled, we still get libgcj disabled.
  2807. libgcj_saved=$libgcj
  2808. case $enable_libgcj in
  2809. yes)
  2810. # If we reset it here, it won't get added to noconfigdirs in the
  2811. # target-specific build rules, so it will be forcibly enabled
  2812. # (unless the Java language itself isn't enabled).
  2813. libgcj=
  2814. ;;
  2815. no)
  2816. # Make sure we get it printed in the list of not supported target libs.
  2817. # Don't disable libffi, though, other languages use it.
  2818. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2819. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2820. # built.
  2821. libgcj_saved=
  2822. ;;
  2823. esac
  2824. # Check whether --enable-static-libjava was given.
  2825. if test "${enable_static_libjava+set}" = set; then :
  2826. enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
  2827. else
  2828. ENABLE_STATIC_LIBJAVA=no
  2829. fi
  2830. enable_static_libjava=
  2831. if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
  2832. enable_static_libjava=yes
  2833. fi
  2834. if test x$enable_static_libjava != xyes ; then
  2835. EXTRA_CONFIGARGS_LIBJAVA=--disable-static
  2836. fi
  2837. # Disable libgomp on non POSIX hosted systems.
  2838. if test x$enable_libgomp = x ; then
  2839. # Enable libgomp by default on hosted POSIX systems.
  2840. case "${target}" in
  2841. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2842. ;;
  2843. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2844. ;;
  2845. *-*-solaris2* | *-*-hpux11*)
  2846. ;;
  2847. *-*-darwin* | *-*-aix*)
  2848. ;;
  2849. *)
  2850. noconfigdirs="$noconfigdirs target-libgomp"
  2851. ;;
  2852. esac
  2853. fi
  2854. # Disable libatomic on unsupported systems.
  2855. if test -d ${srcdir}/libatomic; then
  2856. if test x$enable_libatomic = x; then
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2858. $as_echo_n "checking for libatomic support... " >&6; }
  2859. if (srcdir=${srcdir}/libatomic; \
  2860. . ${srcdir}/configure.tgt; \
  2861. test -n "$UNSUPPORTED")
  2862. then
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. noconfigdirs="$noconfigdirs target-libatomic"
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2868. $as_echo "yes" >&6; }
  2869. fi
  2870. fi
  2871. fi
  2872. # Disable libcilkrts on unsupported systems.
  2873. if test -d ${srcdir}/libcilkrts; then
  2874. if test x$enable_libcilkrts = x; then
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
  2876. $as_echo_n "checking for libcilkrts support... " >&6; }
  2877. if (srcdir=${srcdir}/libcilkrts; \
  2878. . ${srcdir}/configure.tgt; \
  2879. test -n "$UNSUPPORTED")
  2880. then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. noconfigdirs="$noconfigdirs target-libcilkrts"
  2884. else
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2886. $as_echo "yes" >&6; }
  2887. fi
  2888. fi
  2889. fi
  2890. # Disable liboffloadmic on unsupported systems.
  2891. if test -d ${srcdir}/liboffloadmic; then
  2892. if test x$enable_liboffloadmic != xno; then
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2894. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2895. if (srcdir=${srcdir}/liboffloadmic; \
  2896. . ${srcdir}/configure.tgt; \
  2897. test -n "$UNSUPPORTED")
  2898. then
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2900. $as_echo "no" >&6; }
  2901. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2902. else
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2904. $as_echo "yes" >&6; }
  2905. fi
  2906. fi
  2907. fi
  2908. # Disable libitm on unsupported systems.
  2909. if test -d ${srcdir}/libitm; then
  2910. if test x$enable_libitm = x; then
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2912. $as_echo_n "checking for libitm support... " >&6; }
  2913. if (srcdir=${srcdir}/libitm; \
  2914. . ${srcdir}/configure.tgt; \
  2915. test -n "$UNSUPPORTED")
  2916. then
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2918. $as_echo "no" >&6; }
  2919. noconfigdirs="$noconfigdirs target-libitm"
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2922. $as_echo "yes" >&6; }
  2923. fi
  2924. fi
  2925. fi
  2926. # Disable libsanitizer on unsupported systems.
  2927. if test -d ${srcdir}/libsanitizer; then
  2928. if test x$enable_libsanitizer = x; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2930. $as_echo_n "checking for libsanitizer support... " >&6; }
  2931. if (srcdir=${srcdir}/libsanitizer; \
  2932. . ${srcdir}/configure.tgt; \
  2933. test -n "$UNSUPPORTED")
  2934. then
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. noconfigdirs="$noconfigdirs target-libsanitizer"
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2940. $as_echo "yes" >&6; }
  2941. fi
  2942. fi
  2943. fi
  2944. # Disable libvtv on unsupported systems.
  2945. if test -d ${srcdir}/libvtv; then
  2946. if test x$enable_libvtv = x; then
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2948. $as_echo_n "checking for libvtv support... " >&6; }
  2949. if (srcdir=${srcdir}/libvtv; \
  2950. . ${srcdir}/configure.tgt; \
  2951. test "$VTV_SUPPORTED" != "yes")
  2952. then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2954. $as_echo "no" >&6; }
  2955. noconfigdirs="$noconfigdirs target-libvtv"
  2956. else
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. fi
  2960. fi
  2961. fi
  2962. # Enable libmpx on supported systems by request.
  2963. if test -d ${srcdir}/libmpx; then
  2964. if test x$enable_libmpx = xyes; then
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
  2966. $as_echo_n "checking for libmpx support... " >&6; }
  2967. if (srcdir=${srcdir}/libmpx; \
  2968. . ${srcdir}/configure.tgt; \
  2969. test "$LIBMPX_SUPPORTED" != "yes")
  2970. then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. noconfigdirs="$noconfigdirs target-libmpx"
  2974. else
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2976. $as_echo "yes" >&6; }
  2977. fi
  2978. else
  2979. noconfigdirs="$noconfigdirs target-libmpx"
  2980. fi
  2981. fi
  2982. # Disable libquadmath for some systems.
  2983. case "${target}" in
  2984. avr-*-*)
  2985. noconfigdirs="$noconfigdirs target-libquadmath"
  2986. ;;
  2987. # libquadmath is unused on AIX and libquadmath build process use of
  2988. # LD_LIBRARY_PATH can break AIX bootstrap.
  2989. powerpc-*-aix* | rs6000-*-aix*)
  2990. noconfigdirs="$noconfigdirs target-libquadmath"
  2991. ;;
  2992. esac
  2993. # Disable libssp for some systems.
  2994. case "${target}" in
  2995. avr-*-*)
  2996. # No hosted I/O support.
  2997. noconfigdirs="$noconfigdirs target-libssp"
  2998. ;;
  2999. powerpc-*-aix* | rs6000-*-aix*)
  3000. noconfigdirs="$noconfigdirs target-libssp"
  3001. ;;
  3002. rl78-*-*)
  3003. # libssp uses a misaligned load to trigger a fault, but the RL78
  3004. # doesn't fault for those - instead, it gives a build-time error
  3005. # for explicit misaligned loads.
  3006. noconfigdirs="$noconfigdirs target-libssp"
  3007. ;;
  3008. visium-*-*)
  3009. # No hosted I/O support.
  3010. noconfigdirs="$noconfigdirs target-libssp"
  3011. ;;
  3012. esac
  3013. # Disable libstdc++-v3 for some systems.
  3014. # Allow user to override this if they pass --enable-libstdc++-v3
  3015. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3016. case "${target}" in
  3017. *-*-vxworks*)
  3018. # VxWorks uses the Dinkumware C++ library.
  3019. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3020. ;;
  3021. arm*-wince-pe*)
  3022. # the C++ libraries don't build on top of CE's C libraries
  3023. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3024. ;;
  3025. avr-*-*)
  3026. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3027. ;;
  3028. esac
  3029. fi
  3030. # Disable Fortran for some systems.
  3031. case "${target}" in
  3032. mmix-*-*)
  3033. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3034. unsupported_languages="$unsupported_languages fortran"
  3035. ;;
  3036. esac
  3037. # Disable Java if libffi is not supported.
  3038. case "${target}" in
  3039. aarch64-*-*)
  3040. ;;
  3041. alpha*-*-*)
  3042. ;;
  3043. arm*-*-*)
  3044. ;;
  3045. cris-*-*)
  3046. ;;
  3047. frv-*-*)
  3048. ;;
  3049. hppa*-*-linux*)
  3050. ;;
  3051. hppa*-*-hpux*)
  3052. ;;
  3053. i?86-*-*)
  3054. ;;
  3055. ia64*-*-*)
  3056. ;;
  3057. m32r*-*-*)
  3058. ;;
  3059. m68k-*-*)
  3060. ;;
  3061. mips*-*-rtems*)
  3062. ;;
  3063. mips*-*-linux*)
  3064. ;;
  3065. powerpc*-*-linux*)
  3066. ;;
  3067. powerpc-*-darwin*)
  3068. ;;
  3069. powerpc-*-aix* | rs6000-*-aix*)
  3070. ;;
  3071. powerpc-*-freebsd*)
  3072. ;;
  3073. powerpc64-*-freebsd*)
  3074. ;;
  3075. powerpc*-*-rtems*)
  3076. ;;
  3077. s390-*-* | s390x-*-*)
  3078. ;;
  3079. sh-*-* | sh[34]*-*-*)
  3080. ;;
  3081. sh64-*-* | sh5*-*-*)
  3082. ;;
  3083. sparc*-*-*)
  3084. ;;
  3085. x86_64-*-*)
  3086. ;;
  3087. *-*-*)
  3088. unsupported_languages="$unsupported_languages java"
  3089. ;;
  3090. esac
  3091. # Disable Java, libgcj or related libraries for some systems.
  3092. case "${target}" in
  3093. powerpc-*-darwin*)
  3094. ;;
  3095. i[3456789]86-*-darwin*)
  3096. ;;
  3097. x86_64-*-darwin[912]*)
  3098. ;;
  3099. *-*-darwin*)
  3100. noconfigdirs="$noconfigdirs ${libgcj}"
  3101. ;;
  3102. *-*-netware*)
  3103. noconfigdirs="$noconfigdirs ${libgcj}"
  3104. ;;
  3105. *-*-rtems*)
  3106. noconfigdirs="$noconfigdirs ${libgcj}"
  3107. ;;
  3108. *-*-tpf*)
  3109. noconfigdirs="$noconfigdirs ${libgcj}"
  3110. ;;
  3111. *-*-uclinux*)
  3112. noconfigdirs="$noconfigdirs ${libgcj}"
  3113. ;;
  3114. *-*-vxworks*)
  3115. noconfigdirs="$noconfigdirs ${libgcj}"
  3116. ;;
  3117. alpha*-*-*vms*)
  3118. noconfigdirs="$noconfigdirs ${libgcj}"
  3119. ;;
  3120. arm*-*-freebsd*)
  3121. noconfigdirs="$noconfigdirs ${libgcj}"
  3122. ;;
  3123. arm-wince-pe)
  3124. noconfigdirs="$noconfigdirs ${libgcj}"
  3125. ;;
  3126. arm*-*-symbianelf*)
  3127. noconfigdirs="$noconfigdirs ${libgcj}"
  3128. ;;
  3129. bfin-*-*)
  3130. noconfigdirs="$noconfigdirs target-boehm-gc"
  3131. ;;
  3132. cris-*-* | crisv32-*-*)
  3133. unsupported_languages="$unsupported_languages java"
  3134. case "${target}" in
  3135. *-*-linux*)
  3136. ;;
  3137. *) # See PR46792 regarding target-libffi.
  3138. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  3139. esac
  3140. ;;
  3141. hppa*64*-*-linux*)
  3142. # In this case, it's because the hppa64-linux target is for
  3143. # the kernel only at this point and has no libc, and thus no
  3144. # headers, crt*.o, etc., all of which are needed by these.
  3145. unsupported_languages="$unsupported_languages java"
  3146. ;;
  3147. hppa*64*-*-hpux*)
  3148. noconfigdirs="$noconfigdirs ${libgcj}"
  3149. ;;
  3150. hppa*-hp-hpux11*)
  3151. ;;
  3152. hppa*-*-hpux*)
  3153. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  3154. # build on HP-UX 10.20.
  3155. noconfigdirs="$noconfigdirs ${libgcj}"
  3156. ;;
  3157. ia64*-*-*vms*)
  3158. noconfigdirs="$noconfigdirs ${libgcj}"
  3159. ;;
  3160. i[3456789]86-w64-mingw*)
  3161. noconfigdirs="$noconfigdirs ${libgcj}"
  3162. ;;
  3163. i[3456789]86-*-mingw*)
  3164. noconfigdirs="$noconfigdirs ${libgcj}"
  3165. ;;
  3166. x86_64-*-mingw*)
  3167. noconfigdirs="$noconfigdirs ${libgcj}"
  3168. ;;
  3169. mmix-*-*)
  3170. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
  3171. ;;
  3172. powerpc-*-aix*)
  3173. # copied from rs6000-*-* entry
  3174. noconfigdirs="$noconfigdirs ${libgcj}"
  3175. ;;
  3176. rs6000-*-aix*)
  3177. noconfigdirs="$noconfigdirs ${libgcj}"
  3178. ;;
  3179. *-*-lynxos*)
  3180. noconfigdirs="$noconfigdirs ${libgcj}"
  3181. ;;
  3182. esac
  3183. # Disable the go frontend on systems where it is known to not work. Please keep
  3184. # this in sync with contrib/config-list.mk.
  3185. case "${target}" in
  3186. *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
  3187. unsupported_languages="$unsupported_languages go"
  3188. ;;
  3189. esac
  3190. # Disable libgo for some systems where it is known to not work.
  3191. # For testing, you can easily override this with --enable-libgo.
  3192. if test x$enable_libgo = x; then
  3193. case "${target}" in
  3194. *-*-darwin*)
  3195. # PR 46986
  3196. noconfigdirs="$noconfigdirs target-libgo"
  3197. ;;
  3198. *-*-cygwin* | *-*-mingw*)
  3199. noconfigdirs="$noconfigdirs target-libgo"
  3200. ;;
  3201. *-*-aix*)
  3202. noconfigdirs="$noconfigdirs target-libgo"
  3203. ;;
  3204. esac
  3205. fi
  3206. # Default libgloss CPU subdirectory.
  3207. libgloss_dir="$target_cpu"
  3208. case "${target}" in
  3209. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3210. libgloss_dir=wince
  3211. ;;
  3212. aarch64*-*-* )
  3213. libgloss_dir=aarch64
  3214. ;;
  3215. arm*-*-*)
  3216. libgloss_dir=arm
  3217. ;;
  3218. cris-*-* | crisv32-*-*)
  3219. libgloss_dir=cris
  3220. ;;
  3221. hppa*-*-*)
  3222. libgloss_dir=pa
  3223. ;;
  3224. i[3456789]86-*-*)
  3225. libgloss_dir=i386
  3226. ;;
  3227. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3228. libgloss_dir=m68hc11
  3229. ;;
  3230. m68*-*-* | fido-*-*)
  3231. libgloss_dir=m68k
  3232. ;;
  3233. mips*-*-*)
  3234. libgloss_dir=mips
  3235. ;;
  3236. powerpc*-*-*)
  3237. libgloss_dir=rs6000
  3238. ;;
  3239. sparc*-*-*)
  3240. libgloss_dir=sparc
  3241. ;;
  3242. esac
  3243. # Disable newlib and libgloss for various target OSes.
  3244. case "${target}" in
  3245. alpha*-dec-osf*)
  3246. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3247. ;;
  3248. i[3456789]86-*-linux*)
  3249. # This section makes it possible to build newlib natively on linux.
  3250. # If we are using a cross compiler then don't configure newlib.
  3251. if test x${is_cross_compiler} != xno ; then
  3252. noconfigdirs="$noconfigdirs target-newlib"
  3253. fi
  3254. noconfigdirs="$noconfigdirs target-libgloss"
  3255. # If we are not using a cross compiler, do configure newlib.
  3256. # Note however, that newlib will only be configured in this situation
  3257. # if the --with-newlib option has been given, because otherwise
  3258. # 'target-newlib' will appear in skipdirs.
  3259. ;;
  3260. i[3456789]86-*-rdos*)
  3261. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3262. ;;
  3263. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3264. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3265. ;;
  3266. sparc-*-sunos4*)
  3267. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3268. ;;
  3269. *-*-aix*)
  3270. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3271. ;;
  3272. *-*-beos*)
  3273. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3274. ;;
  3275. *-*-chorusos)
  3276. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3277. ;;
  3278. *-*-dragonfly*)
  3279. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3280. ;;
  3281. *-*-freebsd*)
  3282. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3283. ;;
  3284. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3285. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3286. ;;
  3287. *-*-lynxos*)
  3288. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3289. ;;
  3290. *-*-mingw*)
  3291. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3292. ;;
  3293. *-*-netbsd*)
  3294. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3295. ;;
  3296. *-*-netware*)
  3297. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3298. ;;
  3299. *-*-tpf*)
  3300. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3301. ;;
  3302. *-*-uclinux*)
  3303. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3304. ;;
  3305. *-*-vxworks*)
  3306. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3307. ;;
  3308. esac
  3309. case "${target}" in
  3310. *-*-chorusos)
  3311. ;;
  3312. powerpc-*-darwin*)
  3313. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3314. noconfigdirs="$noconfigdirs sim target-rda"
  3315. ;;
  3316. i[3456789]86-*-darwin*)
  3317. noconfigdirs="$noconfigdirs ld gprof"
  3318. noconfigdirs="$noconfigdirs sim target-rda"
  3319. ;;
  3320. x86_64-*-darwin[912]*)
  3321. noconfigdirs="$noconfigdirs ld gas gprof"
  3322. noconfigdirs="$noconfigdirs sim target-rda"
  3323. ;;
  3324. *-*-darwin*)
  3325. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3326. noconfigdirs="$noconfigdirs sim target-rda"
  3327. ;;
  3328. *-*-dragonfly*)
  3329. ;;
  3330. *-*-freebsd*)
  3331. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3332. && test -f /usr/local/include/gmp.h; then
  3333. with_gmp=/usr/local
  3334. fi
  3335. ;;
  3336. *-*-kaos*)
  3337. # Remove unsupported stuff on all kaOS configurations.
  3338. noconfigdirs="$noconfigdirs target-libgloss"
  3339. ;;
  3340. *-*-netbsd*)
  3341. ;;
  3342. *-*-netware*)
  3343. ;;
  3344. *-*-rtems*)
  3345. noconfigdirs="$noconfigdirs target-libgloss"
  3346. # this is not caught below because this stanza matches earlier
  3347. case $target in
  3348. or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
  3349. esac
  3350. ;;
  3351. # The tpf target doesn't support gdb yet.
  3352. *-*-tpf*)
  3353. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3354. ;;
  3355. *-*-uclinux*)
  3356. noconfigdirs="$noconfigdirs target-rda"
  3357. ;;
  3358. *-*-vxworks*)
  3359. ;;
  3360. alpha*-dec-osf*)
  3361. # ld works, but does not support shared libraries.
  3362. # gas doesn't generate exception information.
  3363. noconfigdirs="$noconfigdirs gas ld"
  3364. ;;
  3365. alpha*-*-*vms*)
  3366. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3367. ;;
  3368. alpha*-*-*)
  3369. # newlib is not 64 bit ready
  3370. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3371. ;;
  3372. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3373. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3374. ;;
  3375. arc-*-*|arceb-*-*)
  3376. noconfigdirs="$noconfigdirs target-libgloss"
  3377. ;;
  3378. arm-*-pe*)
  3379. noconfigdirs="$noconfigdirs target-libgloss"
  3380. ;;
  3381. arm-*-riscix*)
  3382. noconfigdirs="$noconfigdirs ld target-libgloss"
  3383. ;;
  3384. avr-*-rtems*)
  3385. ;;
  3386. avr-*-*)
  3387. if test x${with_avrlibc} != xno; then
  3388. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3389. fi
  3390. ;;
  3391. c4x-*-* | tic4x-*-*)
  3392. noconfigdirs="$noconfigdirs target-libgloss"
  3393. ;;
  3394. tic54x-*-*)
  3395. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3396. ;;
  3397. d10v-*-*)
  3398. noconfigdirs="$noconfigdirs target-libgloss"
  3399. ;;
  3400. d30v-*-*)
  3401. noconfigdirs="$noconfigdirs gdb"
  3402. ;;
  3403. fr30-*-elf*)
  3404. noconfigdirs="$noconfigdirs gdb"
  3405. ;;
  3406. moxie-*-*)
  3407. noconfigdirs="$noconfigdirs gprof"
  3408. ;;
  3409. h8300*-*-*)
  3410. noconfigdirs="$noconfigdirs target-libgloss"
  3411. ;;
  3412. h8500-*-*)
  3413. noconfigdirs="$noconfigdirs target-libgloss"
  3414. ;;
  3415. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3416. ;;
  3417. hppa*64*-*-linux*)
  3418. ;;
  3419. hppa*-*-linux*)
  3420. ;;
  3421. hppa*-*-*elf* | \
  3422. hppa*-*-lites* | \
  3423. hppa*-*-openbsd* | \
  3424. hppa*64*-*-*)
  3425. ;;
  3426. hppa*-hp-hpux11*)
  3427. noconfigdirs="$noconfigdirs ld"
  3428. ;;
  3429. hppa*-*-pro*)
  3430. ;;
  3431. hppa*-*-*)
  3432. noconfigdirs="$noconfigdirs ld"
  3433. ;;
  3434. i960-*-*)
  3435. noconfigdirs="$noconfigdirs gdb"
  3436. ;;
  3437. ia64*-*-elf*)
  3438. # No gdb support yet.
  3439. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3440. ;;
  3441. ia64*-**-hpux*)
  3442. # No ld support yet.
  3443. noconfigdirs="$noconfigdirs libgui itcl ld"
  3444. ;;
  3445. ia64*-*-*vms*)
  3446. # No ld support yet.
  3447. noconfigdirs="$noconfigdirs libgui itcl ld"
  3448. ;;
  3449. i[3456789]86-w64-mingw*)
  3450. ;;
  3451. i[3456789]86-*-mingw*)
  3452. target_configdirs="$target_configdirs target-winsup"
  3453. ;;
  3454. *-*-cygwin*)
  3455. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3456. noconfigdirs="$noconfigdirs target-libgloss"
  3457. # always build newlib if winsup directory is present.
  3458. if test -d "$srcdir/winsup/cygwin"; then
  3459. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3460. elif test -d "$srcdir/newlib"; then
  3461. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3462. fi
  3463. ;;
  3464. i[3456789]86-*-pe)
  3465. noconfigdirs="$noconfigdirs target-libgloss"
  3466. ;;
  3467. i[3456789]86-*-sco3.2v5*)
  3468. # The linker does not yet know about weak symbols in COFF,
  3469. # and is not configured to handle mixed ELF and COFF.
  3470. noconfigdirs="$noconfigdirs ld target-libgloss"
  3471. ;;
  3472. i[3456789]86-*-sco*)
  3473. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3474. ;;
  3475. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3476. noconfigdirs="$noconfigdirs target-libgloss"
  3477. ;;
  3478. i[3456789]86-*-sysv4*)
  3479. noconfigdirs="$noconfigdirs target-libgloss"
  3480. ;;
  3481. i[3456789]86-*-beos*)
  3482. noconfigdirs="$noconfigdirs gdb"
  3483. ;;
  3484. i[3456789]86-*-rdos*)
  3485. noconfigdirs="$noconfigdirs gdb"
  3486. ;;
  3487. mmix-*-*)
  3488. noconfigdirs="$noconfigdirs gdb"
  3489. ;;
  3490. mt-*-*)
  3491. noconfigdirs="$noconfigdirs sim"
  3492. ;;
  3493. powerpc-*-aix*)
  3494. # copied from rs6000-*-* entry
  3495. noconfigdirs="$noconfigdirs gprof"
  3496. ;;
  3497. powerpc*-*-winnt* | powerpc*-*-pe*)
  3498. target_configdirs="$target_configdirs target-winsup"
  3499. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3500. # always build newlib.
  3501. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3502. ;;
  3503. # This is temporary until we can link against shared libraries
  3504. powerpcle-*-solaris*)
  3505. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3506. ;;
  3507. powerpc-*-beos*)
  3508. noconfigdirs="$noconfigdirs gdb"
  3509. ;;
  3510. rs6000-*-lynxos*)
  3511. noconfigdirs="$noconfigdirs gprof"
  3512. ;;
  3513. rs6000-*-aix*)
  3514. noconfigdirs="$noconfigdirs gprof"
  3515. ;;
  3516. rs6000-*-*)
  3517. noconfigdirs="$noconfigdirs gprof"
  3518. ;;
  3519. m68k-apollo-*)
  3520. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3521. ;;
  3522. microblaze*)
  3523. noconfigdirs="$noconfigdirs gprof"
  3524. ;;
  3525. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3526. if test x$with_newlib = xyes; then
  3527. noconfigdirs="$noconfigdirs gprof"
  3528. fi
  3529. ;;
  3530. mips*-*-irix5*)
  3531. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3532. ;;
  3533. mips*-*-irix6*)
  3534. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3535. ;;
  3536. mips*-*-bsd*)
  3537. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3538. ;;
  3539. mips*-*-linux*)
  3540. ;;
  3541. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3542. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3543. noconfigdirs="$noconfigdirs ld gas gprof"
  3544. ;;
  3545. mips*-*-*)
  3546. noconfigdirs="$noconfigdirs gprof"
  3547. ;;
  3548. nds32*-*-*)
  3549. noconfigdirs="$noconfigdirs gdb"
  3550. ;;
  3551. nvptx*-*-*)
  3552. # nvptx is just a compiler
  3553. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3554. ;;
  3555. or1k*-*-*)
  3556. noconfigdirs="$noconfigdirs gdb"
  3557. ;;
  3558. sh-*-* | sh64-*-*)
  3559. case "${target}" in
  3560. sh*-*-elf)
  3561. ;;
  3562. *)
  3563. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3564. esac
  3565. ;;
  3566. sparc-*-sunos4*)
  3567. if test x${is_cross_compiler} = xno ; then
  3568. use_gnu_ld=no
  3569. fi
  3570. ;;
  3571. tic6x-*-*)
  3572. noconfigdirs="$noconfigdirs sim"
  3573. ;;
  3574. tilepro*-*-* | tilegx*-*-*)
  3575. noconfigdirs="$noconfigdirs sim"
  3576. ;;
  3577. v810-*-*)
  3578. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3579. ;;
  3580. vax-*-*)
  3581. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3582. ;;
  3583. esac
  3584. # If we aren't building newlib, then don't build libgloss, since libgloss
  3585. # depends upon some newlib header files.
  3586. case "${noconfigdirs}" in
  3587. *target-libgloss*) ;;
  3588. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3589. esac
  3590. # Work in distributions that contain no compiler tools, like Autoconf.
  3591. host_makefile_frag=/dev/null
  3592. if test -d ${srcdir}/config ; then
  3593. case "${host}" in
  3594. i[3456789]86-*-msdosdjgpp*)
  3595. host_makefile_frag="config/mh-djgpp"
  3596. ;;
  3597. *-cygwin*)
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3599. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3600. echo a >cygwin-cat-check
  3601. if test `cat cygwin-cat-check` = a ; then
  3602. rm cygwin-cat-check
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3604. $as_echo "yes" >&6; }
  3605. else
  3606. rm cygwin-cat-check
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. $as_echo "no" >&6; }
  3609. as_fn_error "The cat command does not ignore carriage return characters.
  3610. Please either mount the build directory in binary mode or run the following
  3611. commands before running any configure script:
  3612. set -o igncr
  3613. export SHELLOPTS
  3614. " "$LINENO" 5
  3615. fi
  3616. host_makefile_frag="config/mh-cygwin"
  3617. ;;
  3618. *-mingw*)
  3619. host_makefile_frag="config/mh-mingw"
  3620. ;;
  3621. alpha*-linux*)
  3622. host_makefile_frag="config/mh-alpha-linux"
  3623. ;;
  3624. hppa*-hp-hpux10*)
  3625. host_makefile_frag="config/mh-pa-hpux10"
  3626. ;;
  3627. hppa*-hp-hpux*)
  3628. host_makefile_frag="config/mh-pa"
  3629. ;;
  3630. hppa*-*)
  3631. host_makefile_frag="config/mh-pa"
  3632. ;;
  3633. *-*-darwin*)
  3634. host_makefile_frag="config/mh-darwin"
  3635. ;;
  3636. powerpc-*-aix*)
  3637. host_makefile_frag="config/mh-ppc-aix"
  3638. ;;
  3639. rs6000-*-aix*)
  3640. host_makefile_frag="config/mh-ppc-aix"
  3641. ;;
  3642. esac
  3643. fi
  3644. if test "${build}" != "${host}" ; then
  3645. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3646. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3647. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3648. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3649. GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
  3650. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3651. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3652. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3653. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3654. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3655. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3656. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3657. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3658. else
  3659. AR_FOR_BUILD="\$(AR)"
  3660. AS_FOR_BUILD="\$(AS)"
  3661. CC_FOR_BUILD="\$(CC)"
  3662. CXX_FOR_BUILD="\$(CXX)"
  3663. GCJ_FOR_BUILD="\$(GCJ)"
  3664. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3665. GOC_FOR_BUILD="\$(GOC)"
  3666. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3667. LD_FOR_BUILD="\$(LD)"
  3668. NM_FOR_BUILD="\$(NM)"
  3669. RANLIB_FOR_BUILD="\$(RANLIB)"
  3670. WINDRES_FOR_BUILD="\$(WINDRES)"
  3671. WINDMC_FOR_BUILD="\$(WINDMC)"
  3672. fi
  3673. ac_ext=c
  3674. ac_cpp='$CPP $CPPFLAGS'
  3675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3678. if test -n "$ac_tool_prefix"; then
  3679. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3680. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3682. $as_echo_n "checking for $ac_word... " >&6; }
  3683. if test "${ac_cv_prog_CC+set}" = set; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if test -n "$CC"; then
  3687. ac_cv_prog_CC="$CC" # Let the user override the test.
  3688. else
  3689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3690. for as_dir in $PATH
  3691. do
  3692. IFS=$as_save_IFS
  3693. test -z "$as_dir" && as_dir=.
  3694. for ac_exec_ext in '' $ac_executable_extensions; do
  3695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3696. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3698. break 2
  3699. fi
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. fi
  3704. fi
  3705. CC=$ac_cv_prog_CC
  3706. if test -n "$CC"; then
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3708. $as_echo "$CC" >&6; }
  3709. else
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3711. $as_echo "no" >&6; }
  3712. fi
  3713. fi
  3714. if test -z "$ac_cv_prog_CC"; then
  3715. ac_ct_CC=$CC
  3716. # Extract the first word of "gcc", so it can be a program name with args.
  3717. set dummy gcc; ac_word=$2
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3719. $as_echo_n "checking for $ac_word... " >&6; }
  3720. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. if test -n "$ac_ct_CC"; then
  3724. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3725. else
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_exec_ext in '' $ac_executable_extensions; do
  3732. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3733. ac_cv_prog_ac_ct_CC="gcc"
  3734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3735. break 2
  3736. fi
  3737. done
  3738. done
  3739. IFS=$as_save_IFS
  3740. fi
  3741. fi
  3742. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3743. if test -n "$ac_ct_CC"; then
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3745. $as_echo "$ac_ct_CC" >&6; }
  3746. else
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3748. $as_echo "no" >&6; }
  3749. fi
  3750. if test "x$ac_ct_CC" = x; then
  3751. CC=""
  3752. else
  3753. case $cross_compiling:$ac_tool_warned in
  3754. yes:)
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3757. ac_tool_warned=yes ;;
  3758. esac
  3759. CC=$ac_ct_CC
  3760. fi
  3761. else
  3762. CC="$ac_cv_prog_CC"
  3763. fi
  3764. if test -z "$CC"; then
  3765. if test -n "$ac_tool_prefix"; then
  3766. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3767. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3769. $as_echo_n "checking for $ac_word... " >&6; }
  3770. if test "${ac_cv_prog_CC+set}" = set; then :
  3771. $as_echo_n "(cached) " >&6
  3772. else
  3773. if test -n "$CC"; then
  3774. ac_cv_prog_CC="$CC" # Let the user override the test.
  3775. else
  3776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3777. for as_dir in $PATH
  3778. do
  3779. IFS=$as_save_IFS
  3780. test -z "$as_dir" && as_dir=.
  3781. for ac_exec_ext in '' $ac_executable_extensions; do
  3782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3783. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3785. break 2
  3786. fi
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. fi
  3791. fi
  3792. CC=$ac_cv_prog_CC
  3793. if test -n "$CC"; then
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3795. $as_echo "$CC" >&6; }
  3796. else
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3798. $as_echo "no" >&6; }
  3799. fi
  3800. fi
  3801. fi
  3802. if test -z "$CC"; then
  3803. # Extract the first word of "cc", so it can be a program name with args.
  3804. set dummy cc; ac_word=$2
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3806. $as_echo_n "checking for $ac_word... " >&6; }
  3807. if test "${ac_cv_prog_CC+set}" = set; then :
  3808. $as_echo_n "(cached) " >&6
  3809. else
  3810. if test -n "$CC"; then
  3811. ac_cv_prog_CC="$CC" # Let the user override the test.
  3812. else
  3813. ac_prog_rejected=no
  3814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3815. for as_dir in $PATH
  3816. do
  3817. IFS=$as_save_IFS
  3818. test -z "$as_dir" && as_dir=.
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3821. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3822. ac_prog_rejected=yes
  3823. continue
  3824. fi
  3825. ac_cv_prog_CC="cc"
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3827. break 2
  3828. fi
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. if test $ac_prog_rejected = yes; then
  3833. # We found a bogon in the path, so make sure we never use it.
  3834. set dummy $ac_cv_prog_CC
  3835. shift
  3836. if test $# != 0; then
  3837. # We chose a different compiler from the bogus one.
  3838. # However, it has the same basename, so the bogon will be chosen
  3839. # first if we set CC to just the basename; use the full file name.
  3840. shift
  3841. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3842. fi
  3843. fi
  3844. fi
  3845. fi
  3846. CC=$ac_cv_prog_CC
  3847. if test -n "$CC"; then
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3849. $as_echo "$CC" >&6; }
  3850. else
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3852. $as_echo "no" >&6; }
  3853. fi
  3854. fi
  3855. if test -z "$CC"; then
  3856. if test -n "$ac_tool_prefix"; then
  3857. for ac_prog in cl.exe
  3858. do
  3859. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3860. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3862. $as_echo_n "checking for $ac_word... " >&6; }
  3863. if test "${ac_cv_prog_CC+set}" = set; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. if test -n "$CC"; then
  3867. ac_cv_prog_CC="$CC" # Let the user override the test.
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. test -z "$as_dir" && as_dir=.
  3874. for ac_exec_ext in '' $ac_executable_extensions; do
  3875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3876. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3878. break 2
  3879. fi
  3880. done
  3881. done
  3882. IFS=$as_save_IFS
  3883. fi
  3884. fi
  3885. CC=$ac_cv_prog_CC
  3886. if test -n "$CC"; then
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3888. $as_echo "$CC" >&6; }
  3889. else
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3891. $as_echo "no" >&6; }
  3892. fi
  3893. test -n "$CC" && break
  3894. done
  3895. fi
  3896. if test -z "$CC"; then
  3897. ac_ct_CC=$CC
  3898. for ac_prog in cl.exe
  3899. do
  3900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3901. set dummy $ac_prog; ac_word=$2
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3903. $as_echo_n "checking for $ac_word... " >&6; }
  3904. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if test -n "$ac_ct_CC"; then
  3908. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3909. else
  3910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911. for as_dir in $PATH
  3912. do
  3913. IFS=$as_save_IFS
  3914. test -z "$as_dir" && as_dir=.
  3915. for ac_exec_ext in '' $ac_executable_extensions; do
  3916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3917. ac_cv_prog_ac_ct_CC="$ac_prog"
  3918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3919. break 2
  3920. fi
  3921. done
  3922. done
  3923. IFS=$as_save_IFS
  3924. fi
  3925. fi
  3926. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3927. if test -n "$ac_ct_CC"; then
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3929. $as_echo "$ac_ct_CC" >&6; }
  3930. else
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3932. $as_echo "no" >&6; }
  3933. fi
  3934. test -n "$ac_ct_CC" && break
  3935. done
  3936. if test "x$ac_ct_CC" = x; then
  3937. CC=""
  3938. else
  3939. case $cross_compiling:$ac_tool_warned in
  3940. yes:)
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3943. ac_tool_warned=yes ;;
  3944. esac
  3945. CC=$ac_ct_CC
  3946. fi
  3947. fi
  3948. fi
  3949. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3950. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3951. as_fn_error "no acceptable C compiler found in \$PATH
  3952. See \`config.log' for more details." "$LINENO" 5; }
  3953. # Provide some information about the compiler.
  3954. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3955. set X $ac_compile
  3956. ac_compiler=$2
  3957. for ac_option in --version -v -V -qversion; do
  3958. { { ac_try="$ac_compiler $ac_option >&5"
  3959. case "(($ac_try" in
  3960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3961. *) ac_try_echo=$ac_try;;
  3962. esac
  3963. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3964. $as_echo "$ac_try_echo"; } >&5
  3965. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3966. ac_status=$?
  3967. if test -s conftest.err; then
  3968. sed '10a\
  3969. ... rest of stderr output deleted ...
  3970. 10q' conftest.err >conftest.er1
  3971. cat conftest.er1 >&5
  3972. rm -f conftest.er1 conftest.err
  3973. fi
  3974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3975. test $ac_status = 0; }
  3976. done
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. int
  3980. main ()
  3981. {
  3982. ;
  3983. return 0;
  3984. }
  3985. _ACEOF
  3986. ac_clean_files_save=$ac_clean_files
  3987. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3988. # Try to create an executable without -o first, disregard a.out.
  3989. # It will help us diagnose broken compilers, and finding out an intuition
  3990. # of exeext.
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3992. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3993. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3994. # The possible output files:
  3995. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3996. ac_rmfiles=
  3997. for ac_file in $ac_files
  3998. do
  3999. case $ac_file in
  4000. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4001. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4002. esac
  4003. done
  4004. rm -f $ac_rmfiles
  4005. if { { ac_try="$ac_link_default"
  4006. case "(($ac_try" in
  4007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4008. *) ac_try_echo=$ac_try;;
  4009. esac
  4010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4011. $as_echo "$ac_try_echo"; } >&5
  4012. (eval "$ac_link_default") 2>&5
  4013. ac_status=$?
  4014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4015. test $ac_status = 0; }; then :
  4016. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4017. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4018. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4019. # so that the user can short-circuit this test for compilers unknown to
  4020. # Autoconf.
  4021. for ac_file in $ac_files ''
  4022. do
  4023. test -f "$ac_file" || continue
  4024. case $ac_file in
  4025. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4026. ;;
  4027. [ab].out )
  4028. # We found the default executable, but exeext='' is most
  4029. # certainly right.
  4030. break;;
  4031. *.* )
  4032. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4033. then :; else
  4034. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4035. fi
  4036. # We set ac_cv_exeext here because the later test for it is not
  4037. # safe: cross compilers may not add the suffix if given an `-o'
  4038. # argument, so we may need to know it at that point already.
  4039. # Even if this section looks crufty: it has the advantage of
  4040. # actually working.
  4041. break;;
  4042. * )
  4043. break;;
  4044. esac
  4045. done
  4046. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4047. else
  4048. ac_file=''
  4049. fi
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4051. $as_echo "$ac_file" >&6; }
  4052. if test -z "$ac_file"; then :
  4053. $as_echo "$as_me: failed program was:" >&5
  4054. sed 's/^/| /' conftest.$ac_ext >&5
  4055. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4057. { as_fn_set_status 77
  4058. as_fn_error "C compiler cannot create executables
  4059. See \`config.log' for more details." "$LINENO" 5; }; }
  4060. fi
  4061. ac_exeext=$ac_cv_exeext
  4062. # Check that the compiler produces executables we can run. If not, either
  4063. # the compiler is broken, or we cross compile.
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4065. $as_echo_n "checking whether the C compiler works... " >&6; }
  4066. # If not cross compiling, check that we can run a simple program.
  4067. if test "$cross_compiling" != yes; then
  4068. if { ac_try='./$ac_file'
  4069. { { case "(($ac_try" in
  4070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4071. *) ac_try_echo=$ac_try;;
  4072. esac
  4073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4074. $as_echo "$ac_try_echo"; } >&5
  4075. (eval "$ac_try") 2>&5
  4076. ac_status=$?
  4077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4078. test $ac_status = 0; }; }; then
  4079. cross_compiling=no
  4080. else
  4081. if test "$cross_compiling" = maybe; then
  4082. cross_compiling=yes
  4083. else
  4084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4086. as_fn_error "cannot run C compiled programs.
  4087. If you meant to cross compile, use \`--host'.
  4088. See \`config.log' for more details." "$LINENO" 5; }
  4089. fi
  4090. fi
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4093. $as_echo "yes" >&6; }
  4094. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  4095. ac_clean_files=$ac_clean_files_save
  4096. # Check that the compiler produces executables we can run. If not, either
  4097. # the compiler is broken, or we cross compile.
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4099. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4101. $as_echo "$cross_compiling" >&6; }
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4103. $as_echo_n "checking for suffix of executables... " >&6; }
  4104. if { { ac_try="$ac_link"
  4105. case "(($ac_try" in
  4106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4107. *) ac_try_echo=$ac_try;;
  4108. esac
  4109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4110. $as_echo "$ac_try_echo"; } >&5
  4111. (eval "$ac_link") 2>&5
  4112. ac_status=$?
  4113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4114. test $ac_status = 0; }; then :
  4115. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4116. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4117. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4118. # `rm'.
  4119. for ac_file in conftest.exe conftest conftest.*; do
  4120. test -f "$ac_file" || continue
  4121. case $ac_file in
  4122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4123. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4124. break;;
  4125. * ) break;;
  4126. esac
  4127. done
  4128. else
  4129. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4131. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4132. See \`config.log' for more details." "$LINENO" 5; }
  4133. fi
  4134. rm -f conftest$ac_cv_exeext
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4136. $as_echo "$ac_cv_exeext" >&6; }
  4137. rm -f conftest.$ac_ext
  4138. EXEEXT=$ac_cv_exeext
  4139. ac_exeext=$EXEEXT
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4141. $as_echo_n "checking for suffix of object files... " >&6; }
  4142. if test "${ac_cv_objext+set}" = set; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. int
  4148. main ()
  4149. {
  4150. ;
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. rm -f conftest.o conftest.obj
  4155. if { { ac_try="$ac_compile"
  4156. case "(($ac_try" in
  4157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4158. *) ac_try_echo=$ac_try;;
  4159. esac
  4160. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4161. $as_echo "$ac_try_echo"; } >&5
  4162. (eval "$ac_compile") 2>&5
  4163. ac_status=$?
  4164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4165. test $ac_status = 0; }; then :
  4166. for ac_file in conftest.o conftest.obj conftest.*; do
  4167. test -f "$ac_file" || continue;
  4168. case $ac_file in
  4169. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4170. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4171. break;;
  4172. esac
  4173. done
  4174. else
  4175. $as_echo "$as_me: failed program was:" >&5
  4176. sed 's/^/| /' conftest.$ac_ext >&5
  4177. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4178. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4179. as_fn_error "cannot compute suffix of object files: cannot compile
  4180. See \`config.log' for more details." "$LINENO" 5; }
  4181. fi
  4182. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4185. $as_echo "$ac_cv_objext" >&6; }
  4186. OBJEXT=$ac_cv_objext
  4187. ac_objext=$OBJEXT
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4189. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4190. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. int
  4196. main ()
  4197. {
  4198. #ifndef __GNUC__
  4199. choke me
  4200. #endif
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. if ac_fn_c_try_compile "$LINENO"; then :
  4206. ac_compiler_gnu=yes
  4207. else
  4208. ac_compiler_gnu=no
  4209. fi
  4210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4211. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4214. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4215. if test $ac_compiler_gnu = yes; then
  4216. GCC=yes
  4217. else
  4218. GCC=
  4219. fi
  4220. ac_test_CFLAGS=${CFLAGS+set}
  4221. ac_save_CFLAGS=$CFLAGS
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4223. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4224. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. ac_save_c_werror_flag=$ac_c_werror_flag
  4228. ac_c_werror_flag=yes
  4229. ac_cv_prog_cc_g=no
  4230. CFLAGS="-g"
  4231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4232. /* end confdefs.h. */
  4233. int
  4234. main ()
  4235. {
  4236. ;
  4237. return 0;
  4238. }
  4239. _ACEOF
  4240. if ac_fn_c_try_compile "$LINENO"; then :
  4241. ac_cv_prog_cc_g=yes
  4242. else
  4243. CFLAGS=""
  4244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4245. /* end confdefs.h. */
  4246. int
  4247. main ()
  4248. {
  4249. ;
  4250. return 0;
  4251. }
  4252. _ACEOF
  4253. if ac_fn_c_try_compile "$LINENO"; then :
  4254. else
  4255. ac_c_werror_flag=$ac_save_c_werror_flag
  4256. CFLAGS="-g"
  4257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4258. /* end confdefs.h. */
  4259. int
  4260. main ()
  4261. {
  4262. ;
  4263. return 0;
  4264. }
  4265. _ACEOF
  4266. if ac_fn_c_try_compile "$LINENO"; then :
  4267. ac_cv_prog_cc_g=yes
  4268. fi
  4269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. ac_c_werror_flag=$ac_save_c_werror_flag
  4275. fi
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4277. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4278. if test "$ac_test_CFLAGS" = set; then
  4279. CFLAGS=$ac_save_CFLAGS
  4280. elif test $ac_cv_prog_cc_g = yes; then
  4281. if test "$GCC" = yes; then
  4282. CFLAGS="-g -O2"
  4283. else
  4284. CFLAGS="-g"
  4285. fi
  4286. else
  4287. if test "$GCC" = yes; then
  4288. CFLAGS="-O2"
  4289. else
  4290. CFLAGS=
  4291. fi
  4292. fi
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4294. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4295. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. ac_cv_prog_cc_c89=no
  4299. ac_save_CC=$CC
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. #include <stdarg.h>
  4303. #include <stdio.h>
  4304. #include <sys/types.h>
  4305. #include <sys/stat.h>
  4306. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4307. struct buf { int x; };
  4308. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4309. static char *e (p, i)
  4310. char **p;
  4311. int i;
  4312. {
  4313. return p[i];
  4314. }
  4315. static char *f (char * (*g) (char **, int), char **p, ...)
  4316. {
  4317. char *s;
  4318. va_list v;
  4319. va_start (v,p);
  4320. s = g (p, va_arg (v,int));
  4321. va_end (v);
  4322. return s;
  4323. }
  4324. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4325. function prototypes and stuff, but not '\xHH' hex character constants.
  4326. These don't provoke an error unfortunately, instead are silently treated
  4327. as 'x'. The following induces an error, until -std is added to get
  4328. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4329. array size at least. It's necessary to write '\x00'==0 to get something
  4330. that's true only with -std. */
  4331. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4332. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4333. inside strings and character constants. */
  4334. #define FOO(x) 'x'
  4335. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4336. int test (int i, double x);
  4337. struct s1 {int (*f) (int a);};
  4338. struct s2 {int (*f) (double a);};
  4339. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4340. int argc;
  4341. char **argv;
  4342. int
  4343. main ()
  4344. {
  4345. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4346. ;
  4347. return 0;
  4348. }
  4349. _ACEOF
  4350. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4351. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4352. do
  4353. CC="$ac_save_CC $ac_arg"
  4354. if ac_fn_c_try_compile "$LINENO"; then :
  4355. ac_cv_prog_cc_c89=$ac_arg
  4356. fi
  4357. rm -f core conftest.err conftest.$ac_objext
  4358. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4359. done
  4360. rm -f conftest.$ac_ext
  4361. CC=$ac_save_CC
  4362. fi
  4363. # AC_CACHE_VAL
  4364. case "x$ac_cv_prog_cc_c89" in
  4365. x)
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4367. $as_echo "none needed" >&6; } ;;
  4368. xno)
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4370. $as_echo "unsupported" >&6; } ;;
  4371. *)
  4372. CC="$CC $ac_cv_prog_cc_c89"
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4374. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4375. esac
  4376. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4377. fi
  4378. ac_ext=c
  4379. ac_cpp='$CPP $CPPFLAGS'
  4380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4383. ac_ext=cpp
  4384. ac_cpp='$CXXCPP $CPPFLAGS'
  4385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4388. if test -z "$CXX"; then
  4389. if test -n "$CCC"; then
  4390. CXX=$CCC
  4391. else
  4392. if test -n "$ac_tool_prefix"; then
  4393. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4394. do
  4395. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4396. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4398. $as_echo_n "checking for $ac_word... " >&6; }
  4399. if test "${ac_cv_prog_CXX+set}" = set; then :
  4400. $as_echo_n "(cached) " >&6
  4401. else
  4402. if test -n "$CXX"; then
  4403. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4404. else
  4405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4406. for as_dir in $PATH
  4407. do
  4408. IFS=$as_save_IFS
  4409. test -z "$as_dir" && as_dir=.
  4410. for ac_exec_ext in '' $ac_executable_extensions; do
  4411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4412. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4414. break 2
  4415. fi
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. fi
  4420. fi
  4421. CXX=$ac_cv_prog_CXX
  4422. if test -n "$CXX"; then
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4424. $as_echo "$CXX" >&6; }
  4425. else
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4427. $as_echo "no" >&6; }
  4428. fi
  4429. test -n "$CXX" && break
  4430. done
  4431. fi
  4432. if test -z "$CXX"; then
  4433. ac_ct_CXX=$CXX
  4434. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4435. do
  4436. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4437. set dummy $ac_prog; ac_word=$2
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4439. $as_echo_n "checking for $ac_word... " >&6; }
  4440. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. if test -n "$ac_ct_CXX"; then
  4444. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4445. else
  4446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH
  4448. do
  4449. IFS=$as_save_IFS
  4450. test -z "$as_dir" && as_dir=.
  4451. for ac_exec_ext in '' $ac_executable_extensions; do
  4452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4453. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4455. break 2
  4456. fi
  4457. done
  4458. done
  4459. IFS=$as_save_IFS
  4460. fi
  4461. fi
  4462. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4463. if test -n "$ac_ct_CXX"; then
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4465. $as_echo "$ac_ct_CXX" >&6; }
  4466. else
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4468. $as_echo "no" >&6; }
  4469. fi
  4470. test -n "$ac_ct_CXX" && break
  4471. done
  4472. if test "x$ac_ct_CXX" = x; then
  4473. CXX="g++"
  4474. else
  4475. case $cross_compiling:$ac_tool_warned in
  4476. yes:)
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4479. ac_tool_warned=yes ;;
  4480. esac
  4481. CXX=$ac_ct_CXX
  4482. fi
  4483. fi
  4484. fi
  4485. fi
  4486. # Provide some information about the compiler.
  4487. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4488. set X $ac_compile
  4489. ac_compiler=$2
  4490. for ac_option in --version -v -V -qversion; do
  4491. { { ac_try="$ac_compiler $ac_option >&5"
  4492. case "(($ac_try" in
  4493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4494. *) ac_try_echo=$ac_try;;
  4495. esac
  4496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4497. $as_echo "$ac_try_echo"; } >&5
  4498. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4499. ac_status=$?
  4500. if test -s conftest.err; then
  4501. sed '10a\
  4502. ... rest of stderr output deleted ...
  4503. 10q' conftest.err >conftest.er1
  4504. cat conftest.er1 >&5
  4505. rm -f conftest.er1 conftest.err
  4506. fi
  4507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4508. test $ac_status = 0; }
  4509. done
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4511. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4512. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4516. /* end confdefs.h. */
  4517. int
  4518. main ()
  4519. {
  4520. #ifndef __GNUC__
  4521. choke me
  4522. #endif
  4523. ;
  4524. return 0;
  4525. }
  4526. _ACEOF
  4527. if ac_fn_cxx_try_compile "$LINENO"; then :
  4528. ac_compiler_gnu=yes
  4529. else
  4530. ac_compiler_gnu=no
  4531. fi
  4532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4533. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4536. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4537. if test $ac_compiler_gnu = yes; then
  4538. GXX=yes
  4539. else
  4540. GXX=
  4541. fi
  4542. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4543. ac_save_CXXFLAGS=$CXXFLAGS
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4545. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4546. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4550. ac_cxx_werror_flag=yes
  4551. ac_cv_prog_cxx_g=no
  4552. CXXFLAGS="-g"
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. int
  4556. main ()
  4557. {
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. if ac_fn_cxx_try_compile "$LINENO"; then :
  4563. ac_cv_prog_cxx_g=yes
  4564. else
  4565. CXXFLAGS=""
  4566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4567. /* end confdefs.h. */
  4568. int
  4569. main ()
  4570. {
  4571. ;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. if ac_fn_cxx_try_compile "$LINENO"; then :
  4576. else
  4577. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4578. CXXFLAGS="-g"
  4579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end confdefs.h. */
  4581. int
  4582. main ()
  4583. {
  4584. ;
  4585. return 0;
  4586. }
  4587. _ACEOF
  4588. if ac_fn_cxx_try_compile "$LINENO"; then :
  4589. ac_cv_prog_cxx_g=yes
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. fi
  4593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4594. fi
  4595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4596. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4597. fi
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4599. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4600. if test "$ac_test_CXXFLAGS" = set; then
  4601. CXXFLAGS=$ac_save_CXXFLAGS
  4602. elif test $ac_cv_prog_cxx_g = yes; then
  4603. if test "$GXX" = yes; then
  4604. CXXFLAGS="-g -O2"
  4605. else
  4606. CXXFLAGS="-g"
  4607. fi
  4608. else
  4609. if test "$GXX" = yes; then
  4610. CXXFLAGS="-O2"
  4611. else
  4612. CXXFLAGS=
  4613. fi
  4614. fi
  4615. ac_ext=c
  4616. ac_cpp='$CPP $CPPFLAGS'
  4617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4620. # We must set the default linker to the linker used by gcc for the correct
  4621. # operation of libtool. If LD is not defined and we are using gcc, try to
  4622. # set the LD default to the ld used by gcc.
  4623. if test -z "$LD"; then
  4624. if test "$GCC" = yes; then
  4625. case $build in
  4626. *-*-mingw*)
  4627. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4628. *)
  4629. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4630. esac
  4631. case $gcc_prog_ld in
  4632. # Accept absolute paths.
  4633. [\\/]* | [A-Za-z]:[\\/]*)
  4634. LD="$gcc_prog_ld" ;;
  4635. esac
  4636. fi
  4637. fi
  4638. # Check whether -static-libstdc++ -static-libgcc is supported.
  4639. have_static_libs=no
  4640. if test "$GCC" = yes; then
  4641. saved_LDFLAGS="$LDFLAGS"
  4642. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4644. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4645. ac_ext=cpp
  4646. ac_cpp='$CXXCPP $CPPFLAGS'
  4647. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4648. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4649. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4651. /* end confdefs.h. */
  4652. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4653. #error -static-libstdc++ not implemented
  4654. #endif
  4655. int main() {}
  4656. _ACEOF
  4657. if ac_fn_cxx_try_link "$LINENO"; then :
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4659. $as_echo "yes" >&6; }; have_static_libs=yes
  4660. else
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4662. $as_echo "no" >&6; }
  4663. fi
  4664. rm -f core conftest.err conftest.$ac_objext \
  4665. conftest$ac_exeext conftest.$ac_ext
  4666. ac_ext=c
  4667. ac_cpp='$CPP $CPPFLAGS'
  4668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4671. LDFLAGS="$saved_LDFLAGS"
  4672. fi
  4673. if test -n "$ac_tool_prefix"; then
  4674. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4675. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4677. $as_echo_n "checking for $ac_word... " >&6; }
  4678. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. if test -n "$GNATBIND"; then
  4682. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4683. else
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_exec_ext in '' $ac_executable_extensions; do
  4690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4691. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4693. break 2
  4694. fi
  4695. done
  4696. done
  4697. IFS=$as_save_IFS
  4698. fi
  4699. fi
  4700. GNATBIND=$ac_cv_prog_GNATBIND
  4701. if test -n "$GNATBIND"; then
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4703. $as_echo "$GNATBIND" >&6; }
  4704. else
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4706. $as_echo "no" >&6; }
  4707. fi
  4708. fi
  4709. if test -z "$ac_cv_prog_GNATBIND"; then
  4710. ac_ct_GNATBIND=$GNATBIND
  4711. # Extract the first word of "gnatbind", so it can be a program name with args.
  4712. set dummy gnatbind; ac_word=$2
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4714. $as_echo_n "checking for $ac_word... " >&6; }
  4715. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. if test -n "$ac_ct_GNATBIND"; then
  4719. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4720. else
  4721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4722. for as_dir in $PATH
  4723. do
  4724. IFS=$as_save_IFS
  4725. test -z "$as_dir" && as_dir=.
  4726. for ac_exec_ext in '' $ac_executable_extensions; do
  4727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4728. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4730. break 2
  4731. fi
  4732. done
  4733. done
  4734. IFS=$as_save_IFS
  4735. fi
  4736. fi
  4737. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4738. if test -n "$ac_ct_GNATBIND"; then
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4740. $as_echo "$ac_ct_GNATBIND" >&6; }
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743. $as_echo "no" >&6; }
  4744. fi
  4745. if test "x$ac_ct_GNATBIND" = x; then
  4746. GNATBIND="no"
  4747. else
  4748. case $cross_compiling:$ac_tool_warned in
  4749. yes:)
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4752. ac_tool_warned=yes ;;
  4753. esac
  4754. GNATBIND=$ac_ct_GNATBIND
  4755. fi
  4756. else
  4757. GNATBIND="$ac_cv_prog_GNATBIND"
  4758. fi
  4759. if test -n "$ac_tool_prefix"; then
  4760. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4761. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4763. $as_echo_n "checking for $ac_word... " >&6; }
  4764. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4765. $as_echo_n "(cached) " >&6
  4766. else
  4767. if test -n "$GNATMAKE"; then
  4768. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4769. else
  4770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4771. for as_dir in $PATH
  4772. do
  4773. IFS=$as_save_IFS
  4774. test -z "$as_dir" && as_dir=.
  4775. for ac_exec_ext in '' $ac_executable_extensions; do
  4776. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4777. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4779. break 2
  4780. fi
  4781. done
  4782. done
  4783. IFS=$as_save_IFS
  4784. fi
  4785. fi
  4786. GNATMAKE=$ac_cv_prog_GNATMAKE
  4787. if test -n "$GNATMAKE"; then
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4789. $as_echo "$GNATMAKE" >&6; }
  4790. else
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4792. $as_echo "no" >&6; }
  4793. fi
  4794. fi
  4795. if test -z "$ac_cv_prog_GNATMAKE"; then
  4796. ac_ct_GNATMAKE=$GNATMAKE
  4797. # Extract the first word of "gnatmake", so it can be a program name with args.
  4798. set dummy gnatmake; ac_word=$2
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4800. $as_echo_n "checking for $ac_word... " >&6; }
  4801. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -n "$ac_ct_GNATMAKE"; then
  4805. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4806. else
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4814. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4816. break 2
  4817. fi
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. fi
  4822. fi
  4823. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4824. if test -n "$ac_ct_GNATMAKE"; then
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4826. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. if test "x$ac_ct_GNATMAKE" = x; then
  4832. GNATMAKE="no"
  4833. else
  4834. case $cross_compiling:$ac_tool_warned in
  4835. yes:)
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4837. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4838. ac_tool_warned=yes ;;
  4839. esac
  4840. GNATMAKE=$ac_ct_GNATMAKE
  4841. fi
  4842. else
  4843. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4846. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4847. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. cat >conftest.adb <<EOF
  4851. procedure conftest is begin null; end conftest;
  4852. EOF
  4853. acx_cv_cc_gcc_supports_ada=no
  4854. # There is a bug in old released versions of GCC which causes the
  4855. # driver to exit successfully when the appropriate language module
  4856. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4857. # Therefore we must check for the error message as well as an
  4858. # unsuccessful exit.
  4859. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4860. # given a .adb file, but produce no object file. So we must check
  4861. # if an object file was really produced to guard against this.
  4862. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4863. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4864. acx_cv_cc_gcc_supports_ada=yes
  4865. fi
  4866. rm -f conftest.*
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4869. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4870. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4871. have_gnat=yes
  4872. else
  4873. have_gnat=no
  4874. fi
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4876. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4877. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. echo abfoo >t1
  4881. echo cdfoo >t2
  4882. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4883. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4884. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4885. :
  4886. else
  4887. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4888. fi
  4889. fi
  4890. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4891. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4892. :
  4893. else
  4894. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4895. fi
  4896. fi
  4897. rm t1 t2
  4898. fi
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4900. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4901. do_compare="$gcc_cv_prog_cmp_skip"
  4902. # Check whether --enable-bootstrap was given.
  4903. if test "${enable_bootstrap+set}" = set; then :
  4904. enableval=$enable_bootstrap;
  4905. else
  4906. enable_bootstrap=default
  4907. fi
  4908. # Issue errors and warnings for invalid/strange bootstrap combinations.
  4909. if test -r $srcdir/gcc/configure; then
  4910. have_compiler=yes
  4911. else
  4912. have_compiler=no
  4913. fi
  4914. case "$have_compiler:$host:$target:$enable_bootstrap" in
  4915. *:*:*:no) ;;
  4916. # Default behavior. Enable bootstrap if we have a compiler
  4917. # and we are in a native configuration.
  4918. yes:$build:$build:default)
  4919. enable_bootstrap=yes ;;
  4920. *:*:*:default)
  4921. enable_bootstrap=no ;;
  4922. # We have a compiler and we are in a native configuration, bootstrap is ok
  4923. yes:$build:$build:yes)
  4924. ;;
  4925. # Other configurations, but we have a compiler. Assume the user knows
  4926. # what he's doing.
  4927. yes:*:*:yes)
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  4929. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  4930. ;;
  4931. # No compiler: if they passed --enable-bootstrap explicitly, fail
  4932. no:*:*:yes)
  4933. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  4934. # Fail if wrong command line
  4935. *)
  4936. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  4937. ;;
  4938. esac
  4939. # Used for setting $lt_cv_objdir
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4941. $as_echo_n "checking for objdir... " >&6; }
  4942. if test "${lt_cv_objdir+set}" = set; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. rm -f .libs 2>/dev/null
  4946. mkdir .libs 2>/dev/null
  4947. if test -d .libs; then
  4948. lt_cv_objdir=.libs
  4949. else
  4950. # MS-DOS does not allow filenames that begin with a dot.
  4951. lt_cv_objdir=_libs
  4952. fi
  4953. rmdir .libs 2>/dev/null
  4954. fi
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4956. $as_echo "$lt_cv_objdir" >&6; }
  4957. objdir=$lt_cv_objdir
  4958. cat >>confdefs.h <<_ACEOF
  4959. #define LT_OBJDIR "$lt_cv_objdir/"
  4960. _ACEOF
  4961. # Check for GMP, MPFR and MPC
  4962. gmplibs="-lmpc -lmpfr -lgmp"
  4963. gmpinc=
  4964. have_gmp=no
  4965. # Specify a location for mpc
  4966. # check for this first so it ends up on the link line before mpfr.
  4967. # Check whether --with-mpc was given.
  4968. if test "${with_mpc+set}" = set; then :
  4969. withval=$with_mpc;
  4970. fi
  4971. # Check whether --with-mpc-include was given.
  4972. if test "${with_mpc_include+set}" = set; then :
  4973. withval=$with_mpc_include;
  4974. fi
  4975. # Check whether --with-mpc-lib was given.
  4976. if test "${with_mpc_lib+set}" = set; then :
  4977. withval=$with_mpc_lib;
  4978. fi
  4979. if test "x$with_mpc" != x; then
  4980. gmplibs="-L$with_mpc/lib $gmplibs"
  4981. gmpinc="-I$with_mpc/include $gmpinc"
  4982. fi
  4983. if test "x$with_mpc_include" != x; then
  4984. gmpinc="-I$with_mpc_include $gmpinc"
  4985. fi
  4986. if test "x$with_mpc_lib" != x; then
  4987. gmplibs="-L$with_mpc_lib $gmplibs"
  4988. fi
  4989. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  4990. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  4991. gmpinc='-I$$s/mpc/src '"$gmpinc"
  4992. # Do not test the mpc version. Assume that it is sufficient, since
  4993. # it is in the source tree, and the library has not been built yet
  4994. # but it would be included on the link line in the version check below
  4995. # hence making the test fail.
  4996. have_gmp=yes
  4997. fi
  4998. # Specify a location for mpfr
  4999. # check for this first so it ends up on the link line before gmp.
  5000. # Check whether --with-mpfr-dir was given.
  5001. if test "${with_mpfr_dir+set}" = set; then :
  5002. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  5003. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  5004. fi
  5005. # Check whether --with-mpfr was given.
  5006. if test "${with_mpfr+set}" = set; then :
  5007. withval=$with_mpfr;
  5008. fi
  5009. # Check whether --with-mpfr-include was given.
  5010. if test "${with_mpfr_include+set}" = set; then :
  5011. withval=$with_mpfr_include;
  5012. fi
  5013. # Check whether --with-mpfr-lib was given.
  5014. if test "${with_mpfr_lib+set}" = set; then :
  5015. withval=$with_mpfr_lib;
  5016. fi
  5017. if test "x$with_mpfr" != x; then
  5018. gmplibs="-L$with_mpfr/lib $gmplibs"
  5019. gmpinc="-I$with_mpfr/include $gmpinc"
  5020. fi
  5021. if test "x$with_mpfr_include" != x; then
  5022. gmpinc="-I$with_mpfr_include $gmpinc"
  5023. fi
  5024. if test "x$with_mpfr_lib" != x; then
  5025. gmplibs="-L$with_mpfr_lib $gmplibs"
  5026. fi
  5027. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  5028. # MPFR v3.1.0 moved the sources into a src sub-directory.
  5029. if test -d ${srcdir}/mpfr/src; then
  5030. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  5031. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  5032. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  5033. else
  5034. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
  5035. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
  5036. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
  5037. fi
  5038. # Do not test the mpfr version. Assume that it is sufficient, since
  5039. # it is in the source tree, and the library has not been built yet
  5040. # but it would be included on the link line in the version check below
  5041. # hence making the test fail.
  5042. have_gmp=yes
  5043. fi
  5044. # Specify a location for gmp
  5045. # Check whether --with-gmp-dir was given.
  5046. if test "${with_gmp_dir+set}" = set; then :
  5047. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  5048. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  5049. fi
  5050. # Check whether --with-gmp was given.
  5051. if test "${with_gmp+set}" = set; then :
  5052. withval=$with_gmp;
  5053. fi
  5054. # Check whether --with-gmp-include was given.
  5055. if test "${with_gmp_include+set}" = set; then :
  5056. withval=$with_gmp_include;
  5057. fi
  5058. # Check whether --with-gmp-lib was given.
  5059. if test "${with_gmp_lib+set}" = set; then :
  5060. withval=$with_gmp_lib;
  5061. fi
  5062. if test "x$with_gmp" != x; then
  5063. gmplibs="-L$with_gmp/lib $gmplibs"
  5064. gmpinc="-I$with_gmp/include $gmpinc"
  5065. fi
  5066. if test "x$with_gmp_include" != x; then
  5067. gmpinc="-I$with_gmp_include $gmpinc"
  5068. fi
  5069. if test "x$with_gmp_lib" != x; then
  5070. gmplibs="-L$with_gmp_lib $gmplibs"
  5071. fi
  5072. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  5073. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  5074. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  5075. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5076. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5077. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  5078. # Do not test the gmp version. Assume that it is sufficient, since
  5079. # it is in the source tree, and the library has not been built yet
  5080. # but it would be included on the link line in the version check below
  5081. # hence making the test fail.
  5082. have_gmp=yes
  5083. fi
  5084. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  5085. have_gmp=yes
  5086. saved_CFLAGS="$CFLAGS"
  5087. CFLAGS="$CFLAGS $gmpinc"
  5088. # Check for the recommended and required versions of GMP.
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  5090. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  5091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5092. /* end confdefs.h. */
  5093. #include "gmp.h"
  5094. int
  5095. main ()
  5096. {
  5097. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5098. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5099. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  5100. choke me
  5101. #endif
  5102. ;
  5103. return 0;
  5104. }
  5105. _ACEOF
  5106. if ac_fn_c_try_compile "$LINENO"; then :
  5107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5108. /* end confdefs.h. */
  5109. #include <gmp.h>
  5110. int
  5111. main ()
  5112. {
  5113. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5114. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5115. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  5116. choke me
  5117. #endif
  5118. ;
  5119. return 0;
  5120. }
  5121. _ACEOF
  5122. if ac_fn_c_try_compile "$LINENO"; then :
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5124. $as_echo "yes" >&6; }
  5125. else
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5127. $as_echo "buggy but acceptable" >&6; }
  5128. fi
  5129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5130. else
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5132. $as_echo "no" >&6; }; have_gmp=no
  5133. fi
  5134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5135. # If we have GMP, check the MPFR version.
  5136. if test x"$have_gmp" = xyes; then
  5137. # Check for the recommended and required versions of MPFR.
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  5139. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  5140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5141. /* end confdefs.h. */
  5142. #include <gmp.h>
  5143. #include <mpfr.h>
  5144. int
  5145. main ()
  5146. {
  5147. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
  5148. choke me
  5149. #endif
  5150. ;
  5151. return 0;
  5152. }
  5153. _ACEOF
  5154. if ac_fn_c_try_compile "$LINENO"; then :
  5155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5156. /* end confdefs.h. */
  5157. #include <gmp.h>
  5158. #include <mpfr.h>
  5159. int
  5160. main ()
  5161. {
  5162. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  5163. choke me
  5164. #endif
  5165. ;
  5166. return 0;
  5167. }
  5168. _ACEOF
  5169. if ac_fn_c_try_compile "$LINENO"; then :
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5171. $as_echo "yes" >&6; }
  5172. else
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5174. $as_echo "buggy but acceptable" >&6; }
  5175. fi
  5176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5177. else
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5179. $as_echo "no" >&6; }; have_gmp=no
  5180. fi
  5181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5182. fi
  5183. # Check for the MPC header version.
  5184. if test x"$have_gmp" = xyes ; then
  5185. # Check for the recommended and required versions of MPC.
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  5187. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  5188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5189. /* end confdefs.h. */
  5190. #include <mpc.h>
  5191. int
  5192. main ()
  5193. {
  5194. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  5195. choke me
  5196. #endif
  5197. ;
  5198. return 0;
  5199. }
  5200. _ACEOF
  5201. if ac_fn_c_try_compile "$LINENO"; then :
  5202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5203. /* end confdefs.h. */
  5204. #include <mpc.h>
  5205. int
  5206. main ()
  5207. {
  5208. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  5209. choke me
  5210. #endif
  5211. ;
  5212. return 0;
  5213. }
  5214. _ACEOF
  5215. if ac_fn_c_try_compile "$LINENO"; then :
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5217. $as_echo "yes" >&6; }
  5218. else
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5220. $as_echo "buggy but acceptable" >&6; }
  5221. fi
  5222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5223. else
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5225. $as_echo "no" >&6; }; have_gmp=no
  5226. fi
  5227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5228. fi
  5229. # Now check the MPFR library.
  5230. if test x"$have_gmp" = xyes; then
  5231. saved_LIBS="$LIBS"
  5232. LIBS="$LIBS $gmplibs"
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  5234. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  5235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end confdefs.h. */
  5237. #include <mpc.h>
  5238. int
  5239. main ()
  5240. {
  5241. mpfr_t n;
  5242. mpfr_t x;
  5243. mpc_t c;
  5244. int t;
  5245. mpfr_init (n);
  5246. mpfr_init (x);
  5247. mpfr_atan2 (n, n, x, GMP_RNDN);
  5248. mpfr_erfc (n, x, GMP_RNDN);
  5249. mpfr_subnormalize (x, t, GMP_RNDN);
  5250. mpfr_clear(n);
  5251. mpfr_clear(x);
  5252. mpc_init2 (c, 53);
  5253. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  5254. mpc_cosh (c, c, MPC_RNDNN);
  5255. mpc_pow (c, c, c, MPC_RNDNN);
  5256. mpc_acosh (c, c, MPC_RNDNN);
  5257. mpc_clear (c);
  5258. ;
  5259. return 0;
  5260. }
  5261. _ACEOF
  5262. if ac_fn_c_try_link "$LINENO"; then :
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5264. $as_echo "yes" >&6; }
  5265. else
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5267. $as_echo "no" >&6; }; have_gmp=no
  5268. fi
  5269. rm -f core conftest.err conftest.$ac_objext \
  5270. conftest$ac_exeext conftest.$ac_ext
  5271. LIBS="$saved_LIBS"
  5272. fi
  5273. CFLAGS="$saved_CFLAGS"
  5274. # The library versions listed in the error message below should match
  5275. # the HARD-minimums enforced above.
  5276. if test x$have_gmp != xyes; then
  5277. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  5278. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  5279. their locations. Source code for these libraries can be found at
  5280. their respective hosting sites as well as at
  5281. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  5282. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  5283. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  5284. make sure that you have installed both the libraries and the header
  5285. files. They may be located in separate packages." "$LINENO" 5
  5286. fi
  5287. fi
  5288. # Flags needed for both GMP, MPFR and/or MPC.
  5289. # Allow host libstdc++ to be specified for static linking with PPL.
  5290. # Check whether --with-host-libstdcxx was given.
  5291. if test "${with_host_libstdcxx+set}" = set; then :
  5292. withval=$with_host_libstdcxx;
  5293. fi
  5294. case $with_host_libstdcxx in
  5295. no|yes)
  5296. as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
  5297. ;;
  5298. esac
  5299. # Libraries to use for stage1 or when not bootstrapping.
  5300. # Check whether --with-stage1-libs was given.
  5301. if test "${with_stage1_libs+set}" = set; then :
  5302. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5303. stage1_libs=
  5304. else
  5305. stage1_libs=$withval
  5306. fi
  5307. else
  5308. stage1_libs=$with_host_libstdcxx
  5309. fi
  5310. # Linker flags to use for stage1 or when not bootstrapping.
  5311. # Check whether --with-stage1-ldflags was given.
  5312. if test "${with_stage1_ldflags+set}" = set; then :
  5313. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5314. stage1_ldflags=
  5315. else
  5316. stage1_ldflags=$withval
  5317. fi
  5318. else
  5319. stage1_ldflags=
  5320. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  5321. # if supported. But if the user explicitly specified the libraries to use,
  5322. # trust that they are doing what they want.
  5323. if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
  5324. stage1_ldflags="-static-libstdc++ -static-libgcc"
  5325. fi
  5326. fi
  5327. # Libraries to use for stage2 and later builds. This defaults to the
  5328. # argument passed to --with-host-libstdcxx.
  5329. # Check whether --with-boot-libs was given.
  5330. if test "${with_boot_libs+set}" = set; then :
  5331. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5332. poststage1_libs=
  5333. else
  5334. poststage1_libs=$withval
  5335. fi
  5336. else
  5337. poststage1_libs=$with_host_libstdcxx
  5338. fi
  5339. # Linker flags to use for stage2 and later builds.
  5340. # Check whether --with-boot-ldflags was given.
  5341. if test "${with_boot_ldflags+set}" = set; then :
  5342. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5343. poststage1_ldflags=
  5344. else
  5345. poststage1_ldflags=$withval
  5346. fi
  5347. else
  5348. poststage1_ldflags=
  5349. # In stages 2 and 3, default to linking libstdc++ and libgcc
  5350. # statically. But if the user explicitly specified the libraries to
  5351. # use, trust that they are doing what they want.
  5352. if test "$poststage1_libs" = ""; then
  5353. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  5354. fi
  5355. fi
  5356. # GCC GRAPHITE dependency ISL.
  5357. # Basic setup is inlined here, actual checks are in config/isl.m4
  5358. # Check whether --with-isl was given.
  5359. if test "${with_isl+set}" = set; then :
  5360. withval=$with_isl;
  5361. fi
  5362. # Treat --without-isl as a request to disable
  5363. # GRAPHITE support and skip all following checks.
  5364. if test "x$with_isl" != "xno"; then
  5365. # Check for ISL
  5366. # Check whether --with-isl-include was given.
  5367. if test "${with_isl_include+set}" = set; then :
  5368. withval=$with_isl_include;
  5369. fi
  5370. # Check whether --with-isl-lib was given.
  5371. if test "${with_isl_lib+set}" = set; then :
  5372. withval=$with_isl_lib;
  5373. fi
  5374. # Check whether --enable-isl-version-check was given.
  5375. if test "${enable_isl_version_check+set}" = set; then :
  5376. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  5377. else
  5378. ENABLE_ISL_CHECK=yes
  5379. fi
  5380. # Initialize isllibs and islinc.
  5381. case $with_isl in
  5382. no)
  5383. isllibs=
  5384. islinc=
  5385. ;;
  5386. "" | yes)
  5387. ;;
  5388. *)
  5389. isllibs="-L$with_isl/lib"
  5390. islinc="-I$with_isl/include"
  5391. ;;
  5392. esac
  5393. if test "x${with_isl_include}" != x ; then
  5394. islinc="-I$with_isl_include"
  5395. fi
  5396. if test "x${with_isl_lib}" != x; then
  5397. isllibs="-L$with_isl_lib"
  5398. fi
  5399. if test "x${islinc}" = x && test "x${isllibs}" = x \
  5400. && test -d ${srcdir}/isl; then
  5401. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  5402. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  5403. ENABLE_ISL_CHECK=no
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
  5405. $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
  5406. fi
  5407. isllibs="${isllibs} -lisl"
  5408. if test "${ENABLE_ISL_CHECK}" = yes ; then
  5409. _isl_saved_CFLAGS=$CFLAGS
  5410. _isl_saved_LDFLAGS=$LDFLAGS
  5411. _isl_saved_LIBS=$LIBS
  5412. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  5413. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
  5414. LIBS="${_isl_saved_LIBS} -lisl"
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
  5416. $as_echo_n "checking for compatible ISL... " >&6; }
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. #include <isl/val.h>
  5420. int
  5421. main ()
  5422. {
  5423. ;
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. if ac_fn_c_try_link "$LINENO"; then :
  5429. gcc_cv_isl=yes
  5430. else
  5431. gcc_cv_isl=no
  5432. fi
  5433. rm -f core conftest.err conftest.$ac_objext \
  5434. conftest$ac_exeext conftest.$ac_ext
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  5436. $as_echo "$gcc_cv_isl" >&6; }
  5437. CFLAGS=$_isl_saved_CFLAGS
  5438. LDFLAGS=$_isl_saved_LDFLAGS
  5439. LIBS=$_isl_saved_LIBS
  5440. fi
  5441. if test "x${with_isl}" = xno; then
  5442. graphite_requested=no
  5443. elif test "x${with_isl}" != x \
  5444. || test "x${with_isl_include}" != x \
  5445. || test "x${with_isl_lib}" != x ; then
  5446. graphite_requested=yes
  5447. else
  5448. graphite_requested=no
  5449. fi
  5450. if test "${gcc_cv_isl}" = no ; then
  5451. isllibs=
  5452. islinc=
  5453. fi
  5454. if test "${graphite_requested}" = yes \
  5455. && test "x${isllibs}" = x \
  5456. && test "x${islinc}" = x ; then
  5457. as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
  5458. fi
  5459. fi
  5460. # If the ISL check failed, disable builds of in-tree variant of ISL
  5461. if test "x$with_isl" = xno ||
  5462. test "x$gcc_cv_isl" = xno; then
  5463. noconfigdirs="$noconfigdirs isl"
  5464. islinc=
  5465. fi
  5466. # Check for LTO support.
  5467. # Check whether --enable-lto was given.
  5468. if test "${enable_lto+set}" = set; then :
  5469. enableval=$enable_lto; enable_lto=$enableval
  5470. else
  5471. enable_lto=yes; default_enable_lto=yes
  5472. fi
  5473. target_elf=no
  5474. case $target in
  5475. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5476. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  5477. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
  5478. nvptx-*-none)
  5479. target_elf=no
  5480. ;;
  5481. *)
  5482. target_elf=yes
  5483. ;;
  5484. esac
  5485. if test $target_elf = yes; then :
  5486. # ELF platforms build the lto-plugin always.
  5487. build_lto_plugin=yes
  5488. else
  5489. if test x"$default_enable_lto" = x"yes" ; then
  5490. case $target in
  5491. *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
  5492. # On other non-ELF platforms, LTO has yet to be validated.
  5493. *) enable_lto=no ;;
  5494. esac
  5495. else
  5496. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5497. # It would also be nice to check the binutils support, but we don't
  5498. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5499. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5500. # -flto it won't be needed until after installation anyway.
  5501. case $target in
  5502. *-cygwin* | *-mingw* | *-apple-darwin*) ;;
  5503. *) if test x"$enable_lto" = x"yes"; then
  5504. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5505. fi
  5506. ;;
  5507. esac
  5508. fi
  5509. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5510. # Build it unless LTO was explicitly disabled.
  5511. case $target in
  5512. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5513. *) ;;
  5514. esac
  5515. fi
  5516. # Check whether --enable-linker-plugin-configure-flags was given.
  5517. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  5518. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  5519. else
  5520. extra_linker_plugin_configure_flags=
  5521. fi
  5522. # Check whether --enable-linker-plugin-flags was given.
  5523. if test "${enable_linker_plugin_flags+set}" = set; then :
  5524. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  5525. else
  5526. extra_linker_plugin_flags=
  5527. fi
  5528. # By default, C and C++ are the only stage 1 languages.
  5529. stage1_languages=,c,
  5530. # Target libraries that we bootstrap.
  5531. bootstrap_target_libs=,target-libgcc,
  5532. # Figure out what language subdirectories are present.
  5533. # Look if the user specified --enable-languages="..."; if not, use
  5534. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5535. # go away some day.
  5536. # NB: embedded tabs in this IF block -- do not untabify
  5537. if test -d ${srcdir}/gcc; then
  5538. if test x"${enable_languages+set}" != xset; then
  5539. if test x"${LANGUAGES+set}" = xset; then
  5540. enable_languages="${LANGUAGES}"
  5541. echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5542. else
  5543. enable_languages=all
  5544. fi
  5545. else
  5546. if test x"${enable_languages}" = x ||
  5547. test x"${enable_languages}" = xyes;
  5548. then
  5549. echo configure.in: --enable-languages needs at least one language argument 1>&2
  5550. exit 1
  5551. fi
  5552. fi
  5553. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5554. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5555. # and make the substitution.
  5556. case ,${enable_languages}, in
  5557. *,f95,*)
  5558. echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5559. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5560. ;;
  5561. esac
  5562. # If bootstrapping, C++ must be enabled.
  5563. case ",$enable_languages,:$enable_bootstrap" in
  5564. *,c++,*:*) ;;
  5565. *:yes)
  5566. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  5567. enable_languages="${enable_languages},c++"
  5568. else
  5569. as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
  5570. fi
  5571. ;;
  5572. esac
  5573. # First scan to see if an enabled language requires some other language.
  5574. # We assume that a given config-lang.in will list all the language
  5575. # front ends it requires, even if some are required indirectly.
  5576. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5577. case ${lang_frag} in
  5578. ..) ;;
  5579. # The odd quoting in the next line works around
  5580. # an apparent bug in bash 1.12 on linux.
  5581. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5582. *)
  5583. # From the config-lang.in, get $language, $lang_requires, and
  5584. # $lang_requires_boot_languages.
  5585. language=
  5586. lang_requires=
  5587. lang_requires_boot_languages=
  5588. . ${lang_frag}
  5589. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5590. case ,${enable_languages}, in
  5591. *,$other,*) ;;
  5592. *,all,*) ;;
  5593. *,$language,*)
  5594. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5595. enable_languages="${enable_languages},${other}"
  5596. ;;
  5597. esac
  5598. done
  5599. for other in ${lang_requires_boot_languages} ; do
  5600. if test "$other" != "c"; then
  5601. case ,${enable_stage1_languages}, in
  5602. *,$other,*) ;;
  5603. *,all,*) ;;
  5604. *)
  5605. case ,${enable_languages}, in
  5606. *,$language,*)
  5607. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5608. enable_stage1_languages="$enable_stage1_languages,${other}"
  5609. ;;
  5610. esac
  5611. ;;
  5612. esac
  5613. fi
  5614. done
  5615. ;;
  5616. esac
  5617. done
  5618. new_enable_languages=,c,
  5619. # If LTO is enabled, add the LTO front end.
  5620. if test "$enable_lto" = "yes" ; then
  5621. case ,${enable_languages}, in
  5622. *,lto,*) ;;
  5623. *) enable_languages="${enable_languages},lto" ;;
  5624. esac
  5625. if test "${build_lto_plugin}" = "yes" ; then
  5626. configdirs="$configdirs lto-plugin"
  5627. fi
  5628. fi
  5629. # If we're building an offloading compiler, add the LTO front end.
  5630. if test x"$enable_as_accelerator_for" != x ; then
  5631. case ,${enable_languages}, in
  5632. *,lto,*) ;;
  5633. *) enable_languages="${enable_languages},lto" ;;
  5634. esac
  5635. fi
  5636. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5637. potential_languages=,c,
  5638. enabled_target_libs=
  5639. disabled_target_libs=
  5640. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5641. case ${lang_frag} in
  5642. ..) ;;
  5643. # The odd quoting in the next line works around
  5644. # an apparent bug in bash 1.12 on linux.
  5645. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5646. *)
  5647. # From the config-lang.in, get $language, $target_libs,
  5648. # $lang_dirs, $boot_language, and $build_by_default
  5649. language=
  5650. target_libs=
  5651. lang_dirs=
  5652. subdir_requires=
  5653. boot_language=no
  5654. build_by_default=yes
  5655. . ${lang_frag}
  5656. if test x${language} = x; then
  5657. echo "${lang_frag} doesn't set \$language." 1>&2
  5658. exit 1
  5659. fi
  5660. if test "$language" = "c++"; then
  5661. boot_language=yes
  5662. fi
  5663. add_this_lang=no
  5664. case ,${enable_languages}, in
  5665. *,${language},*)
  5666. # Language was explicitly selected; include it
  5667. # unless it is C, which is enabled by default.
  5668. if test "$language" != "c"; then
  5669. add_this_lang=yes
  5670. fi
  5671. ;;
  5672. *,all,*)
  5673. # 'all' was selected, select it if it is a default language
  5674. if test "$language" != "c"; then
  5675. add_this_lang=${build_by_default}
  5676. fi
  5677. ;;
  5678. esac
  5679. # Disable languages that need other directories if these aren't available.
  5680. for i in $subdir_requires; do
  5681. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5682. case ,${enable_languages}, in
  5683. *,${language},*)
  5684. # Specifically requested language; tell them.
  5685. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5686. ;;
  5687. *)
  5688. # Silently disable.
  5689. add_this_lang=unsupported
  5690. ;;
  5691. esac
  5692. done
  5693. # Disable Ada if no preexisting GNAT is available.
  5694. case ,${enable_languages},:${language}:${have_gnat} in
  5695. *,${language},*:ada:no)
  5696. # Specifically requested language; tell them.
  5697. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5698. ;;
  5699. *:ada:no)
  5700. # Silently disable.
  5701. add_this_lang=unsupported
  5702. ;;
  5703. esac
  5704. # Disable a language that is unsupported by the target.
  5705. case " $unsupported_languages " in
  5706. *" $language "*)
  5707. add_this_lang=unsupported
  5708. ;;
  5709. esac
  5710. case $add_this_lang in
  5711. unsupported)
  5712. # Remove language-dependent dirs.
  5713. disabled_target_libs="$disabled_target_libs $target_libs"
  5714. noconfigdirs="$noconfigdirs $lang_dirs"
  5715. ;;
  5716. no)
  5717. # Remove language-dependent dirs; still show language as supported.
  5718. disabled_target_libs="$disabled_target_libs $target_libs"
  5719. noconfigdirs="$noconfigdirs $lang_dirs"
  5720. potential_languages="${potential_languages}${language},"
  5721. ;;
  5722. yes)
  5723. new_enable_languages="${new_enable_languages}${language},"
  5724. potential_languages="${potential_languages}${language},"
  5725. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5726. enabled_target_libs="$enabled_target_libs $target_libs"
  5727. case "${boot_language}:,$enable_stage1_languages," in
  5728. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5729. # Add to (comma-separated) list of stage 1 languages.
  5730. case ",$stage1_languages," in
  5731. *,$language,* | ,yes, | ,all,) ;;
  5732. *) stage1_languages="${stage1_languages}${language}," ;;
  5733. esac
  5734. # We need to bootstrap any supporting libraries.
  5735. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5736. ;;
  5737. esac
  5738. ;;
  5739. esac
  5740. ;;
  5741. esac
  5742. done
  5743. # Add target libraries which are only needed for disabled languages
  5744. # to noconfigdirs.
  5745. if test -n "$disabled_target_libs"; then
  5746. for dir in $disabled_target_libs; do
  5747. case " $enabled_target_libs " in
  5748. *" ${dir} "*) ;;
  5749. *) noconfigdirs="$noconfigdirs $dir" ;;
  5750. esac
  5751. done
  5752. fi
  5753. # Check whether --enable-stage1-languages was given.
  5754. if test "${enable_stage1_languages+set}" = set; then :
  5755. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5756. ,no,|,,)
  5757. # Set it to something that will have no effect in the loop below
  5758. enable_stage1_languages=c ;;
  5759. ,yes,)
  5760. enable_stage1_languages=`echo $new_enable_languages | \
  5761. sed -e "s/^,//" -e "s/,$//" ` ;;
  5762. *,all,*)
  5763. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5764. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5765. esac
  5766. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5767. # while "bad" languages go in missing_languages. Leave no duplicates.
  5768. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5769. case $potential_languages in
  5770. *,$i,*)
  5771. case $stage1_languages in
  5772. *,$i,*) ;;
  5773. *) stage1_languages="$stage1_languages$i," ;;
  5774. esac ;;
  5775. *)
  5776. case $missing_languages in
  5777. *,$i,*) ;;
  5778. *) missing_languages="$missing_languages$i," ;;
  5779. esac ;;
  5780. esac
  5781. done
  5782. fi
  5783. # Remove leading/trailing commas that were added for simplicity
  5784. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5785. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5786. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5787. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5788. if test "x$missing_languages" != x; then
  5789. as_fn_error "
  5790. The following requested languages could not be built: ${missing_languages}
  5791. Supported languages are: ${potential_languages}" "$LINENO" 5
  5792. fi
  5793. if test "x$new_enable_languages" != "x$enable_languages"; then
  5794. echo The following languages will be built: ${new_enable_languages}
  5795. enable_languages="$new_enable_languages"
  5796. fi
  5797. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5798. fi
  5799. # Handle --disable-<component> generically.
  5800. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5801. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5802. varname=`echo $dirname | sed -e s/+/_/g`
  5803. if eval test x\${enable_${varname}} "=" xno ; then
  5804. noconfigdirs="$noconfigdirs $dir"
  5805. fi
  5806. done
  5807. # Check for Boehm's garbage collector
  5808. # Check whether --enable-objc-gc was given.
  5809. if test "${enable_objc_gc+set}" = set; then :
  5810. enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
  5811. *,objc,*:*:yes:*target-boehm-gc*)
  5812. as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
  5813. ;;
  5814. esac
  5815. fi
  5816. # Make sure we only build Boehm's garbage collector if required.
  5817. case ,${enable_languages},:${enable_objc_gc} in
  5818. *,objc,*:yes)
  5819. # Keep target-boehm-gc if requested for Objective-C.
  5820. ;;
  5821. *)
  5822. # Otherwise remove target-boehm-gc depending on target-libjava.
  5823. if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
  5824. noconfigdirs="$noconfigdirs target-boehm-gc"
  5825. fi
  5826. ;;
  5827. esac
  5828. # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  5829. case ,${enable_languages}, in
  5830. *,c++,*)
  5831. # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
  5832. case "${noconfigdirs}" in
  5833. *target-libstdc++-v3*)
  5834. noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
  5835. ;;
  5836. *) ;;
  5837. esac
  5838. ;;
  5839. *)
  5840. noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  5841. ;;
  5842. esac
  5843. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5844. # $build_configdirs and $target_configdirs.
  5845. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5846. notsupp=""
  5847. for dir in . $skipdirs $noconfigdirs ; do
  5848. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5849. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5850. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5851. if test -r $srcdir/$dirname/configure ; then
  5852. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5853. true
  5854. else
  5855. notsupp="$notsupp $dir"
  5856. fi
  5857. fi
  5858. fi
  5859. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5860. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5861. if test -r $srcdir/$dirname/configure ; then
  5862. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5863. true
  5864. else
  5865. notsupp="$notsupp $dir"
  5866. fi
  5867. fi
  5868. fi
  5869. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5870. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5871. if test -r $srcdir/$dirname/configure ; then
  5872. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5873. true
  5874. else
  5875. notsupp="$notsupp $dir"
  5876. fi
  5877. fi
  5878. fi
  5879. done
  5880. # Quietly strip out all directories which aren't configurable in this tree.
  5881. # This relies on all configurable subdirectories being autoconfiscated, which
  5882. # is now the case.
  5883. build_configdirs_all="$build_configdirs"
  5884. build_configdirs=
  5885. for i in ${build_configdirs_all} ; do
  5886. j=`echo $i | sed -e s/build-//g`
  5887. if test -f ${srcdir}/$j/configure ; then
  5888. build_configdirs="${build_configdirs} $i"
  5889. fi
  5890. done
  5891. configdirs_all="$configdirs"
  5892. configdirs=
  5893. for i in ${configdirs_all} ; do
  5894. if test -f ${srcdir}/$i/configure ; then
  5895. configdirs="${configdirs} $i"
  5896. fi
  5897. done
  5898. target_configdirs_all="$target_configdirs"
  5899. target_configdirs=
  5900. for i in ${target_configdirs_all} ; do
  5901. j=`echo $i | sed -e s/target-//g`
  5902. if test -f ${srcdir}/$j/configure ; then
  5903. target_configdirs="${target_configdirs} $i"
  5904. fi
  5905. done
  5906. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  5907. # so we have to add it after the preceding checks.
  5908. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  5909. then
  5910. case " $configdirs " in
  5911. *" libiberty "*)
  5912. # If we can build libiberty, we can also build libiberty-linker-plugin.
  5913. configdirs="$configdirs libiberty-linker-plugin"
  5914. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  5915. --with-libiberty=../libiberty-linker-plugin";;
  5916. *)
  5917. as_fn_error "libiberty missing" "$LINENO" 5;;
  5918. esac
  5919. fi
  5920. # Sometimes we have special requirements for the host libiberty.
  5921. extra_host_libiberty_configure_flags=
  5922. case " $configdirs " in
  5923. *" lto-plugin "* | *" libcc1 "*)
  5924. # When these are to be built as shared libraries, the same applies to
  5925. # libiberty.
  5926. extra_host_libiberty_configure_flags=--enable-shared
  5927. ;;
  5928. esac
  5929. # Produce a warning message for the subdirs we can't configure.
  5930. # This isn't especially interesting in the Cygnus tree, but in the individual
  5931. # FSF releases, it's important to let people know when their machine isn't
  5932. # supported by the one or two programs in a package.
  5933. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  5934. # If $appdirs is non-empty, at least one of those directories must still
  5935. # be configured, or we error out. (E.g., if the gas release supports a
  5936. # specified target in some subdirs but not the gas subdir, we shouldn't
  5937. # pretend that all is well.)
  5938. if test -n "$appdirs" ; then
  5939. for dir in $appdirs ; do
  5940. if test -r $dir/Makefile.in ; then
  5941. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5942. appdirs=""
  5943. break
  5944. fi
  5945. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  5946. appdirs=""
  5947. break
  5948. fi
  5949. fi
  5950. done
  5951. if test -n "$appdirs" ; then
  5952. echo "*** This configuration is not supported by this package." 1>&2
  5953. exit 1
  5954. fi
  5955. fi
  5956. # Okay, some application will build, or we don't care to check. Still
  5957. # notify of subdirs not getting built.
  5958. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  5959. echo " ${notsupp}" 1>&2
  5960. echo " (Any other directories should still work fine.)" 1>&2
  5961. fi
  5962. case "$host" in
  5963. *msdosdjgpp*)
  5964. enable_gdbtk=no ;;
  5965. esac
  5966. # To find our prefix, in gcc_cv_tool_prefix.
  5967. # The user is always right.
  5968. if test "${PATH_SEPARATOR+set}" != set; then
  5969. echo "#! /bin/sh" >conf$$.sh
  5970. echo "exit 0" >>conf$$.sh
  5971. chmod +x conf$$.sh
  5972. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5973. PATH_SEPARATOR=';'
  5974. else
  5975. PATH_SEPARATOR=:
  5976. fi
  5977. rm -f conf$$.sh
  5978. fi
  5979. if test "x$exec_prefix" = xNONE; then
  5980. if test "x$prefix" = xNONE; then
  5981. gcc_cv_tool_prefix=$ac_default_prefix
  5982. else
  5983. gcc_cv_tool_prefix=$prefix
  5984. fi
  5985. else
  5986. gcc_cv_tool_prefix=$exec_prefix
  5987. fi
  5988. # If there is no compiler in the tree, use the PATH only. In any
  5989. # case, if there is no compiler in the tree nobody should use
  5990. # AS_FOR_TARGET and LD_FOR_TARGET.
  5991. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  5992. gcc_version=`cat $srcdir/gcc/BASE-VER`
  5993. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5994. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  5995. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5996. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  5997. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5998. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  5999. else
  6000. gcc_cv_tool_dirs=
  6001. fi
  6002. if test x$build = x$target && test -n "$md_exec_prefix"; then
  6003. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  6004. fi
  6005. copy_dirs=
  6006. # Check whether --with-build-sysroot was given.
  6007. if test "${with_build_sysroot+set}" = set; then :
  6008. withval=$with_build_sysroot; if test x"$withval" != x ; then
  6009. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  6010. fi
  6011. else
  6012. SYSROOT_CFLAGS_FOR_TARGET=
  6013. fi
  6014. # Check whether --with-debug-prefix-map was given.
  6015. if test "${with_debug_prefix_map+set}" = set; then :
  6016. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  6017. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6018. for debug_map in $withval; do
  6019. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  6020. done
  6021. fi
  6022. else
  6023. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6024. fi
  6025. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  6026. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  6027. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  6028. # We want to ensure that TARGET libraries (which we know are built with
  6029. # gcc) are built with "-O2 -g", so include those options when setting
  6030. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  6031. if test "x$CFLAGS_FOR_TARGET" = x; then
  6032. if test "x${is_cross_compiler}" = xyes; then
  6033. CFLAGS_FOR_TARGET="-g -O2"
  6034. else
  6035. CFLAGS_FOR_TARGET=$CFLAGS
  6036. case " $CFLAGS " in
  6037. *" -O2 "*) ;;
  6038. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  6039. esac
  6040. case " $CFLAGS " in
  6041. *" -g "* | *" -g3 "*) ;;
  6042. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  6043. esac
  6044. fi
  6045. fi
  6046. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  6047. if test "x${is_cross_compiler}" = xyes; then
  6048. CXXFLAGS_FOR_TARGET="-g -O2"
  6049. else
  6050. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  6051. case " $CXXFLAGS " in
  6052. *" -O2 "*) ;;
  6053. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  6054. esac
  6055. case " $CXXFLAGS " in
  6056. *" -g "* | *" -g3 "*) ;;
  6057. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  6058. esac
  6059. fi
  6060. fi
  6061. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  6062. # the named directory are copied to $(tooldir)/sys-include.
  6063. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  6064. if test x${is_cross_compiler} = xno ; then
  6065. echo 1>&2 '***' --with-headers is only supported when cross compiling
  6066. exit 1
  6067. fi
  6068. if test x"${with_headers}" != xyes ; then
  6069. x=${gcc_cv_tool_prefix}
  6070. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  6071. fi
  6072. fi
  6073. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  6074. # the name directories are copied to $(tooldir)/lib. Multiple directories
  6075. # are permitted.
  6076. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  6077. if test x${is_cross_compiler} = xno ; then
  6078. echo 1>&2 '***' --with-libs is only supported when cross compiling
  6079. exit 1
  6080. fi
  6081. if test x"${with_libs}" != xyes ; then
  6082. # Copy the libraries in reverse order, so that files in the first named
  6083. # library override files in subsequent libraries.
  6084. x=${gcc_cv_tool_prefix}
  6085. for l in ${with_libs}; do
  6086. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  6087. done
  6088. fi
  6089. fi
  6090. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  6091. #
  6092. # This is done by determining whether or not the appropriate directory
  6093. # is available, and by checking whether or not specific configurations
  6094. # have requested that this magic not happen.
  6095. #
  6096. # The command line options always override the explicit settings in
  6097. # configure.in, and the settings in configure.in override this magic.
  6098. #
  6099. # If the default for a toolchain is to use GNU as and ld, and you don't
  6100. # want to do that, then you should use the --without-gnu-as and
  6101. # --without-gnu-ld options for the configure script. Similarly, if
  6102. # the default is to use the included zlib and you don't want to do that,
  6103. # you should use the --with-system-zlib option for the configure script.
  6104. if test x${use_gnu_as} = x &&
  6105. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  6106. with_gnu_as=yes
  6107. extra_host_args="$extra_host_args --with-gnu-as"
  6108. fi
  6109. if test x${use_gnu_ld} = x &&
  6110. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  6111. with_gnu_ld=yes
  6112. extra_host_args="$extra_host_args --with-gnu-ld"
  6113. fi
  6114. if test x${use_included_zlib} = x &&
  6115. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  6116. :
  6117. else
  6118. with_system_zlib=yes
  6119. extra_host_args="$extra_host_args --with-system-zlib"
  6120. fi
  6121. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  6122. # can detect this case.
  6123. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  6124. with_newlib=yes
  6125. extra_host_args="$extra_host_args --with-newlib"
  6126. fi
  6127. # Handle ${copy_dirs}
  6128. set fnord ${copy_dirs}
  6129. shift
  6130. while test $# != 0 ; do
  6131. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  6132. :
  6133. else
  6134. echo Copying $1 to $2
  6135. # Use the install script to create the directory and all required
  6136. # parent directories.
  6137. if test -d $2 ; then
  6138. :
  6139. else
  6140. echo >config.temp
  6141. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  6142. fi
  6143. # Copy the directory, assuming we have tar.
  6144. # FIXME: Should we use B in the second tar? Not all systems support it.
  6145. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  6146. # It is the responsibility of the user to correctly adjust all
  6147. # symlinks. If somebody can figure out how to handle them correctly
  6148. # here, feel free to add the code.
  6149. echo $1 > $2/COPIED
  6150. fi
  6151. shift; shift
  6152. done
  6153. # Determine a target-dependent exec_prefix that the installed
  6154. # gcc will search in. Keep this list sorted by triplet, with
  6155. # the *-*-osname triplets last.
  6156. md_exec_prefix=
  6157. case "${target}" in
  6158. i[34567]86-pc-msdosdjgpp*)
  6159. md_exec_prefix=/dev/env/DJDIR/bin
  6160. ;;
  6161. *-*-hpux* | \
  6162. *-*-nto-qnx* | \
  6163. *-*-solaris2*)
  6164. md_exec_prefix=/usr/ccs/bin
  6165. ;;
  6166. esac
  6167. extra_arflags_for_target=
  6168. extra_nmflags_for_target=
  6169. extra_ranlibflags_for_target=
  6170. target_makefile_frag=/dev/null
  6171. case "${target}" in
  6172. spu-*-*)
  6173. target_makefile_frag="config/mt-spu"
  6174. ;;
  6175. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  6176. target_makefile_frag="config/mt-sde"
  6177. ;;
  6178. mipsisa*-*-elfoabi*)
  6179. target_makefile_frag="config/mt-mips-elfoabi"
  6180. ;;
  6181. mips*-*-*linux* | mips*-*-gnu*)
  6182. target_makefile_frag="config/mt-mips-gnu"
  6183. ;;
  6184. nios2-*-elf*)
  6185. target_makefile_frag="config/mt-nios2-elf"
  6186. ;;
  6187. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6188. target_makefile_frag="config/mt-gnu"
  6189. ;;
  6190. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6191. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6192. # commands to handle both 32-bit and 64-bit objects. These flags are
  6193. # harmless if we're using GNU nm or ar.
  6194. extra_arflags_for_target=" -X32_64"
  6195. extra_nmflags_for_target=" -B -X32_64"
  6196. ;;
  6197. esac
  6198. alphaieee_frag=/dev/null
  6199. case $target in
  6200. alpha*-*-*)
  6201. # This just makes sure to use the -mieee option to build target libs.
  6202. # This should probably be set individually by each library.
  6203. alphaieee_frag="config/mt-alphaieee"
  6204. ;;
  6205. esac
  6206. # If --enable-target-optspace always use -Os instead of -O2 to build
  6207. # the target libraries, similarly if it is not specified, use -Os
  6208. # on selected platforms.
  6209. ospace_frag=/dev/null
  6210. case "${enable_target_optspace}:${target}" in
  6211. yes:*)
  6212. ospace_frag="config/mt-ospace"
  6213. ;;
  6214. :d30v-*)
  6215. ospace_frag="config/mt-d30v"
  6216. ;;
  6217. :m32r-* | :d10v-* | :fr30-*)
  6218. ospace_frag="config/mt-ospace"
  6219. ;;
  6220. no:* | :*)
  6221. ;;
  6222. *)
  6223. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6224. ;;
  6225. esac
  6226. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6227. # using) don't handle "\$" correctly, so don't use it here.
  6228. tooldir='${exec_prefix}'/${target_noncanonical}
  6229. build_tooldir=${tooldir}
  6230. # Create a .gdbinit file which runs the one in srcdir
  6231. # and tells GDB to look there for source files.
  6232. if test -r ${srcdir}/.gdbinit ; then
  6233. case ${srcdir} in
  6234. .) ;;
  6235. *) cat > ./.gdbinit <<EOF
  6236. # ${NO_EDIT}
  6237. dir ${srcdir}
  6238. dir .
  6239. source ${srcdir}/.gdbinit
  6240. EOF
  6241. ;;
  6242. esac
  6243. fi
  6244. # Make sure that the compiler is able to generate an executable. If it
  6245. # can't, we are probably in trouble. We don't care whether we can run the
  6246. # executable--we might be using a cross compiler--we only care whether it
  6247. # can be created. At this point the main configure script has set CC.
  6248. we_are_ok=no
  6249. echo "int main () { return 0; }" > conftest.c
  6250. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6251. if test $? = 0 ; then
  6252. if test -s conftest || test -s conftest.exe ; then
  6253. we_are_ok=yes
  6254. fi
  6255. fi
  6256. case $we_are_ok in
  6257. no)
  6258. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6259. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6260. rm -f conftest*
  6261. exit 1
  6262. ;;
  6263. esac
  6264. rm -f conftest*
  6265. # Decide which environment variable is used to find dynamic libraries.
  6266. case "${host}" in
  6267. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6268. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6269. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6270. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6271. esac
  6272. # On systems where the dynamic library environment variable is PATH,
  6273. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6274. # built executables to PATH.
  6275. if test "$RPATH_ENVVAR" = PATH; then
  6276. GCC_SHLIB_SUBDIR=/shlib
  6277. else
  6278. GCC_SHLIB_SUBDIR=
  6279. fi
  6280. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6281. case $enable_bootstrap in
  6282. yes)
  6283. bootstrap_suffix=bootstrap
  6284. BUILD_CONFIG=bootstrap-debug
  6285. ;;
  6286. no)
  6287. bootstrap_suffix=no-bootstrap
  6288. BUILD_CONFIG=
  6289. ;;
  6290. esac
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6292. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6293. # Check whether --with-build-config was given.
  6294. if test "${with_build_config+set}" = set; then :
  6295. withval=$with_build_config; case $with_build_config in
  6296. yes) with_build_config= ;;
  6297. no) with_build_config= BUILD_CONFIG= ;;
  6298. esac
  6299. fi
  6300. if test "x${with_build_config}" != x; then
  6301. BUILD_CONFIG=$with_build_config
  6302. else
  6303. case $BUILD_CONFIG in
  6304. bootstrap-debug)
  6305. if echo "int f (void) { return 0; }" > conftest.c &&
  6306. ${CC} -c conftest.c &&
  6307. mv conftest.o conftest.o.g0 &&
  6308. ${CC} -c -g conftest.c &&
  6309. mv conftest.o conftest.o.g &&
  6310. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6311. :
  6312. else
  6313. BUILD_CONFIG=
  6314. fi
  6315. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6316. ;;
  6317. esac
  6318. fi
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6320. $as_echo "$BUILD_CONFIG" >&6; }
  6321. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  6323. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  6324. # Check whether --enable-vtable-verify was given.
  6325. if test "${enable_vtable_verify+set}" = set; then :
  6326. enableval=$enable_vtable_verify; case "$enableval" in
  6327. yes) enable_vtable_verify=yes ;;
  6328. no) enable_vtable_verify=no ;;
  6329. *) enable_vtable_verify=no;;
  6330. esac
  6331. else
  6332. enable_vtable_verify=no
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  6335. $as_echo "$enable_vtable_verify" >&6; }
  6336. # Record target_configdirs and the configure arguments for target and
  6337. # build configuration in Makefile.
  6338. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6339. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6340. bootstrap_fixincludes=no
  6341. # If we are building libgomp, bootstrap it.
  6342. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6343. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6344. fi
  6345. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  6346. # or bootstrap-ubsan, bootstrap it.
  6347. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  6348. case "$BUILD_CONFIG" in
  6349. *bootstrap-asan* | *bootstrap-ubsan* )
  6350. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  6351. bootstrap_fixincludes=yes
  6352. ;;
  6353. esac
  6354. fi
  6355. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  6356. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  6357. test "$enable_vtable_verify" != no; then
  6358. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  6359. fi
  6360. # If we are building libmpx, bootstrap it.
  6361. if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
  6362. bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
  6363. fi
  6364. # Determine whether gdb needs tk/tcl or not.
  6365. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6366. # and in that case we want gdb to be built without tk. Ugh!
  6367. # In fact I believe gdb is the *only* package directly dependent on tk,
  6368. # so we should be able to put the 'maybe's in unconditionally and
  6369. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6370. # 100% sure that that's safe though.
  6371. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6372. case "$enable_gdbtk" in
  6373. no)
  6374. GDB_TK="" ;;
  6375. yes)
  6376. GDB_TK="${gdb_tk}" ;;
  6377. *)
  6378. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6379. # distro. Eventually someone will fix this and move Insight, nee
  6380. # gdbtk to a separate directory.
  6381. if test -d ${srcdir}/gdb/gdbtk ; then
  6382. GDB_TK="${gdb_tk}"
  6383. else
  6384. GDB_TK=""
  6385. fi
  6386. ;;
  6387. esac
  6388. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6389. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6390. # Strip out unwanted targets.
  6391. # While at that, we remove Makefiles if we were started for recursive
  6392. # configuration, so that the top-level Makefile reconfigures them,
  6393. # like we used to do when configure itself was recursive.
  6394. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6395. # but now we're fixing up the Makefile ourselves with the additional
  6396. # commands passed to AC_CONFIG_FILES. Use separate variables
  6397. # extrasub-{build,host,target} not because there is any reason to split
  6398. # the substitutions up that way, but only to remain below the limit of
  6399. # 99 commands in a script, for HP-UX sed.
  6400. # Do not nest @if/@endif pairs, because configure will not warn you at all.
  6401. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6402. yes:yes:*\ gold\ *:*,c++,*) ;;
  6403. yes:yes:*\ gold\ *:*)
  6404. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6405. ;;
  6406. esac
  6407. extrasub_build=
  6408. for module in ${build_configdirs} ; do
  6409. if test -z "${no_recursion}" \
  6410. && test -f ${build_subdir}/${module}/Makefile; then
  6411. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6412. rm -f ${build_subdir}/${module}/Makefile
  6413. fi
  6414. extrasub_build="$extrasub_build
  6415. /^@if build-$module\$/d
  6416. /^@endif build-$module\$/d
  6417. /^@if build-$module-$bootstrap_suffix\$/d
  6418. /^@endif build-$module-$bootstrap_suffix\$/d"
  6419. done
  6420. extrasub_host=
  6421. for module in ${configdirs} ; do
  6422. if test -z "${no_recursion}"; then
  6423. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6424. if test -f ${file}; then
  6425. echo 1>&2 "*** removing ${file} to force reconfigure"
  6426. rm -f ${file}
  6427. fi
  6428. done
  6429. fi
  6430. case ${module},${bootstrap_fixincludes} in
  6431. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  6432. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  6433. esac
  6434. extrasub_host="$extrasub_host
  6435. /^@if $module\$/d
  6436. /^@endif $module\$/d
  6437. /^@if $module-$host_bootstrap_suffix\$/d
  6438. /^@endif $module-$host_bootstrap_suffix\$/d"
  6439. done
  6440. extrasub_target=
  6441. for module in ${target_configdirs} ; do
  6442. if test -z "${no_recursion}" \
  6443. && test -f ${target_subdir}/${module}/Makefile; then
  6444. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6445. rm -f ${target_subdir}/${module}/Makefile
  6446. fi
  6447. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6448. case $bootstrap_target_libs in
  6449. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6450. *) target_bootstrap_suffix=no-bootstrap ;;
  6451. esac
  6452. extrasub_target="$extrasub_target
  6453. /^@if target-$module\$/d
  6454. /^@endif target-$module\$/d
  6455. /^@if target-$module-$target_bootstrap_suffix\$/d
  6456. /^@endif target-$module-$target_bootstrap_suffix\$/d"
  6457. done
  6458. # Do the final fixup along with target modules.
  6459. extrasub_target="$extrasub_target
  6460. /^@if /,/^@endif /d"
  6461. # Create the serialization dependencies. This uses a temporary file.
  6462. # Check whether --enable-serial-configure was given.
  6463. if test "${enable_serial_configure+set}" = set; then :
  6464. enableval=$enable_serial_configure;
  6465. fi
  6466. case ${enable_serial_configure} in
  6467. yes)
  6468. enable_serial_build_configure=yes
  6469. enable_serial_host_configure=yes
  6470. enable_serial_target_configure=yes
  6471. ;;
  6472. esac
  6473. # These force 'configure's to be done one at a time, to avoid problems
  6474. # with contention over a shared config.cache.
  6475. rm -f serdep.tmp
  6476. echo '# serdep.tmp' > serdep.tmp
  6477. olditem=
  6478. test "x${enable_serial_build_configure}" = xyes &&
  6479. for item in ${build_configdirs} ; do
  6480. case ${olditem} in
  6481. "") ;;
  6482. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6483. esac
  6484. olditem=${item}
  6485. done
  6486. olditem=
  6487. test "x${enable_serial_host_configure}" = xyes &&
  6488. for item in ${configdirs} ; do
  6489. case ${olditem} in
  6490. "") ;;
  6491. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6492. esac
  6493. olditem=${item}
  6494. done
  6495. olditem=
  6496. test "x${enable_serial_target_configure}" = xyes &&
  6497. for item in ${target_configdirs} ; do
  6498. case ${olditem} in
  6499. "") ;;
  6500. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6501. esac
  6502. olditem=${item}
  6503. done
  6504. serialization_dependencies=serdep.tmp
  6505. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6506. # target, nonopt, and variable assignments. These are the ones we
  6507. # might not want to pass down to subconfigures. The exception being
  6508. # --cache-file=/dev/null, which is used to turn off the use of cache
  6509. # files altogether, and which should be passed on to subconfigures.
  6510. # Also strip program-prefix, program-suffix, and program-transform-name,
  6511. # so that we can pass down a consistent program-transform-name.
  6512. baseargs=
  6513. tbaseargs=
  6514. keep_next=no
  6515. skip_next=no
  6516. eval "set -- $ac_configure_args"
  6517. for ac_arg
  6518. do
  6519. if test X"$skip_next" = X"yes"; then
  6520. skip_next=no
  6521. continue
  6522. fi
  6523. if test X"$keep_next" = X"yes"; then
  6524. case $ac_arg in
  6525. *\'*)
  6526. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6527. esac
  6528. baseargs="$baseargs '$ac_arg'"
  6529. tbaseargs="$tbaseargs '$ac_arg'"
  6530. keep_next=no
  6531. continue
  6532. fi
  6533. # Handle separated arguments. Based on the logic generated by
  6534. # autoconf 2.59.
  6535. case $ac_arg in
  6536. *=* | --config-cache | -C | -disable-* | --disable-* \
  6537. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6538. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6539. | -with-* | --with-* | -without-* | --without-* | --x)
  6540. separate_arg=no
  6541. ;;
  6542. -*)
  6543. separate_arg=yes
  6544. ;;
  6545. *)
  6546. separate_arg=no
  6547. ;;
  6548. esac
  6549. skip_targ=no
  6550. case $ac_arg in
  6551. --with-* | --without-*)
  6552. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6553. case $libopt in
  6554. *[-_]include)
  6555. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6556. ;;
  6557. *[-_]lib)
  6558. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6559. ;;
  6560. *)
  6561. lib=$libopt
  6562. ;;
  6563. esac
  6564. case $lib in
  6565. mpc | mpfr | gmp | isl)
  6566. # If we're processing --with-$lib, --with-$lib-include or
  6567. # --with-$lib-lib, for one of the libs above, and target is
  6568. # different from host, don't pass the current argument to any
  6569. # target library's configure.
  6570. if test x$is_cross_compiler = xyes; then
  6571. skip_targ=yes
  6572. fi
  6573. ;;
  6574. esac
  6575. ;;
  6576. esac
  6577. case "$ac_arg" in
  6578. --cache-file=/dev/null | \
  6579. -cache-file=/dev/null )
  6580. # Handled here to avoid the test to skip args below.
  6581. baseargs="$baseargs '$ac_arg'"
  6582. tbaseargs="$tbaseargs '$ac_arg'"
  6583. # Assert: $separate_arg should always be no.
  6584. keep_next=$separate_arg
  6585. ;;
  6586. --no*)
  6587. continue
  6588. ;;
  6589. --c* | \
  6590. --sr* | \
  6591. --ho* | \
  6592. --bu* | \
  6593. --t* | \
  6594. --program-* | \
  6595. -cache_file* | \
  6596. -srcdir* | \
  6597. -host* | \
  6598. -build* | \
  6599. -target* | \
  6600. -program-prefix* | \
  6601. -program-suffix* | \
  6602. -program-transform-name* )
  6603. skip_next=$separate_arg
  6604. continue
  6605. ;;
  6606. -*)
  6607. # An option. Add it.
  6608. case $ac_arg in
  6609. *\'*)
  6610. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6611. esac
  6612. baseargs="$baseargs '$ac_arg'"
  6613. if test X"$skip_targ" = Xno; then
  6614. tbaseargs="$tbaseargs '$ac_arg'"
  6615. fi
  6616. keep_next=$separate_arg
  6617. ;;
  6618. *)
  6619. # Either a variable assignment, or a nonopt (triplet). Don't
  6620. # pass it down; let the Makefile handle this.
  6621. continue
  6622. ;;
  6623. esac
  6624. done
  6625. # Remove the initial space we just introduced and, as these will be
  6626. # expanded by make, quote '$'.
  6627. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6628. # Add in --program-transform-name, after --program-prefix and
  6629. # --program-suffix have been applied to it. Autoconf has already
  6630. # doubled dollar signs and backslashes in program_transform_name; we want
  6631. # the backslashes un-doubled, and then the entire thing wrapped in single
  6632. # quotes, because this will be expanded first by make and then by the shell.
  6633. # Also, because we want to override the logic in subdir configure scripts to
  6634. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6635. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6636. ${program_transform_name}
  6637. EOF_SED
  6638. gcc_transform_name=`cat conftestsed.out`
  6639. rm -f conftestsed.out
  6640. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6641. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6642. if test "$silent" = yes; then
  6643. baseargs="$baseargs --silent"
  6644. tbaseargs="$tbaseargs --silent"
  6645. fi
  6646. baseargs="$baseargs --disable-option-checking"
  6647. tbaseargs="$tbaseargs --disable-option-checking"
  6648. # Record and document user additions to sub configure arguments.
  6649. # For the build-side libraries, we just need to pretend we're native,
  6650. # and not use the same cache file. Multilibs are neither needed nor
  6651. # desired. We can't even use the same cache file for all build-side
  6652. # libraries, as they're compiled differently; some with C, some with
  6653. # C++ or with different feature-enabling options.
  6654. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  6655. # For host modules, accept cache file option, or specification as blank.
  6656. case "${cache_file}" in
  6657. "") # empty
  6658. cache_file_option="" ;;
  6659. /* | [A-Za-z]:[\\/]* ) # absolute path
  6660. cache_file_option="--cache-file=${cache_file}" ;;
  6661. *) # relative path
  6662. cache_file_option="--cache-file=../${cache_file}" ;;
  6663. esac
  6664. # Host dirs don't like to share a cache file either, horribly enough.
  6665. # This seems to be due to autoconf 2.5x stupidity.
  6666. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6667. target_configargs="$target_configargs ${tbaseargs}"
  6668. # Passing a --with-cross-host argument lets the target libraries know
  6669. # whether they are being built with a cross-compiler or being built
  6670. # native. However, it would be better to use other mechanisms to make the
  6671. # sorts of decisions they want to make on this basis. Please consider
  6672. # this option to be deprecated. FIXME.
  6673. if test x${is_cross_compiler} = xyes ; then
  6674. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6675. fi
  6676. # Special user-friendly check for native x86_64-linux build, if
  6677. # multilib is not explicitly enabled.
  6678. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  6679. x86_64-*linux*:yes:$build:$build:)
  6680. # Make sure we have a developement environment that handles 32-bit
  6681. dev64=no
  6682. echo "int main () { return 0; }" > conftest.c
  6683. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6684. if test $? = 0 ; then
  6685. if test -s conftest || test -s conftest.exe ; then
  6686. dev64=yes
  6687. fi
  6688. fi
  6689. rm -f conftest*
  6690. if test x${dev64} != xyes ; then
  6691. as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
  6692. fi
  6693. ;;
  6694. esac
  6695. # Default to --enable-multilib.
  6696. if test x${enable_multilib} = x ; then
  6697. target_configargs="--enable-multilib ${target_configargs}"
  6698. fi
  6699. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6700. # changed from the earlier setting of with_newlib.
  6701. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6702. target_configargs="--with-newlib ${target_configargs}"
  6703. fi
  6704. # Different target subdirs use different values of certain variables
  6705. # (notably CXX). Worse, multilibs use *lots* of different values.
  6706. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6707. # it doesn't automatically accept command-line overrides of them.
  6708. # This means it's not safe for target subdirs to share a cache file,
  6709. # which is disgusting, but there you have it. Hopefully this can be
  6710. # fixed in future. It's still worthwhile to use a cache file for each
  6711. # directory. I think.
  6712. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6713. # We need to pass --target, as newer autoconf's requires consistency
  6714. # for target_alias and gcc doesn't manage it consistently.
  6715. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6716. FLAGS_FOR_TARGET=
  6717. case " $target_configdirs " in
  6718. *" newlib "*)
  6719. case " $target_configargs " in
  6720. *" --with-newlib "*)
  6721. case "$target" in
  6722. *-cygwin*)
  6723. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  6724. ;;
  6725. esac
  6726. # If we're not building GCC, don't discard standard headers.
  6727. if test -d ${srcdir}/gcc; then
  6728. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6729. if test "${build}" != "${host}"; then
  6730. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6731. # by `configure', so we won't have an opportunity to add -Bgcc/
  6732. # to it. This is right: we don't want to search that directory
  6733. # for binaries, but we want the header files in there, so add
  6734. # them explicitly.
  6735. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6736. # Someone might think of using the pre-installed headers on
  6737. # Canadian crosses, in case the installed compiler is not fully
  6738. # compatible with the compiler being built. In this case, it
  6739. # would be better to flag an error than risking having
  6740. # incompatible object files being constructed. We can't
  6741. # guarantee that an error will be flagged, but let's hope the
  6742. # compiler will do it, when presented with incompatible header
  6743. # files.
  6744. fi
  6745. fi
  6746. case "${target}-${is_cross_compiler}" in
  6747. i[3456789]86-*-linux*-no)
  6748. # Here host == target, so we don't need to build gcc,
  6749. # so we don't want to discard standard headers.
  6750. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6751. ;;
  6752. *)
  6753. # If we're building newlib, use its generic headers last, but search
  6754. # for any libc-related directories first (so make it the last -B
  6755. # switch).
  6756. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6757. # If we're building libgloss, find the startup file, simulator library
  6758. # and linker script.
  6759. case " $target_configdirs " in
  6760. *" libgloss "*)
  6761. # Look for startup file, simulator library and maybe linker script.
  6762. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6763. # Look for libnosys.a in case the target needs it.
  6764. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6765. # Most targets have the linker script in the source directory.
  6766. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6767. ;;
  6768. esac
  6769. ;;
  6770. esac
  6771. ;;
  6772. esac
  6773. ;;
  6774. esac
  6775. case "$target" in
  6776. x86_64-*mingw* | *-w64-mingw*)
  6777. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6778. # however, use a symlink named 'mingw' in ${prefix} .
  6779. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6780. ;;
  6781. *-mingw*)
  6782. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6783. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
  6784. ;;
  6785. esac
  6786. # Allow the user to override the flags for
  6787. # our build compiler if desired.
  6788. if test x"${build}" = x"${host}" ; then
  6789. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6790. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6791. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6792. fi
  6793. # On Canadian crosses, we'll be searching the right directories for
  6794. # the previously-installed cross compiler, so don't bother to add
  6795. # flags for directories within the install tree of the compiler
  6796. # being built; programs in there won't even run.
  6797. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6798. # Search for pre-installed headers if nothing else fits.
  6799. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6800. fi
  6801. if test "x${use_gnu_ld}" = x &&
  6802. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6803. # Arrange for us to find uninstalled linker scripts.
  6804. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6805. fi
  6806. # Search for other target-specific linker scripts and such.
  6807. case "${target}" in
  6808. mep*)
  6809. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6810. ;;
  6811. esac
  6812. # Makefile fragments.
  6813. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6814. do
  6815. eval fragval=\$$frag
  6816. if test $fragval != /dev/null; then
  6817. eval $frag=${srcdir}/$fragval
  6818. fi
  6819. done
  6820. # Miscellanea: directories, flags, etc.
  6821. # Build module lists & subconfigure args.
  6822. # Host module lists & subconfigure args.
  6823. # Target module lists & subconfigure args.
  6824. # Build tools.
  6825. # Generate default definitions for YACC, M4, LEX and other programs that run
  6826. # on the build machine. These are used if the Makefile can't locate these
  6827. # programs in objdir.
  6828. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6829. for ac_prog in 'bison -y' byacc yacc
  6830. do
  6831. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6832. set dummy $ac_prog; ac_word=$2
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6834. $as_echo_n "checking for $ac_word... " >&6; }
  6835. if test "${ac_cv_prog_YACC+set}" = set; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. if test -n "$YACC"; then
  6839. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6840. else
  6841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6842. for as_dir in $PATH
  6843. do
  6844. IFS=$as_save_IFS
  6845. test -z "$as_dir" && as_dir=.
  6846. for ac_exec_ext in '' $ac_executable_extensions; do
  6847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6848. ac_cv_prog_YACC="$ac_prog"
  6849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6850. break 2
  6851. fi
  6852. done
  6853. done
  6854. IFS=$as_save_IFS
  6855. fi
  6856. fi
  6857. YACC=$ac_cv_prog_YACC
  6858. if test -n "$YACC"; then
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6860. $as_echo "$YACC" >&6; }
  6861. else
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6863. $as_echo "no" >&6; }
  6864. fi
  6865. test -n "$YACC" && break
  6866. done
  6867. test -n "$YACC" || YACC="$MISSING bison -y"
  6868. case " $build_configdirs " in
  6869. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6870. esac
  6871. for ac_prog in bison
  6872. do
  6873. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6874. set dummy $ac_prog; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if test "${ac_cv_prog_BISON+set}" = set; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$BISON"; then
  6881. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_prog_BISON="$ac_prog"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. BISON=$ac_cv_prog_BISON
  6900. if test -n "$BISON"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6902. $as_echo "$BISON" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. test -n "$BISON" && break
  6908. done
  6909. test -n "$BISON" || BISON="$MISSING bison"
  6910. case " $build_configdirs " in
  6911. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6912. esac
  6913. for ac_prog in gm4 gnum4 m4
  6914. do
  6915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6916. set dummy $ac_prog; ac_word=$2
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6918. $as_echo_n "checking for $ac_word... " >&6; }
  6919. if test "${ac_cv_prog_M4+set}" = set; then :
  6920. $as_echo_n "(cached) " >&6
  6921. else
  6922. if test -n "$M4"; then
  6923. ac_cv_prog_M4="$M4" # Let the user override the test.
  6924. else
  6925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6926. for as_dir in $PATH
  6927. do
  6928. IFS=$as_save_IFS
  6929. test -z "$as_dir" && as_dir=.
  6930. for ac_exec_ext in '' $ac_executable_extensions; do
  6931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6932. ac_cv_prog_M4="$ac_prog"
  6933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6934. break 2
  6935. fi
  6936. done
  6937. done
  6938. IFS=$as_save_IFS
  6939. fi
  6940. fi
  6941. M4=$ac_cv_prog_M4
  6942. if test -n "$M4"; then
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  6944. $as_echo "$M4" >&6; }
  6945. else
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6947. $as_echo "no" >&6; }
  6948. fi
  6949. test -n "$M4" && break
  6950. done
  6951. test -n "$M4" || M4="$MISSING m4"
  6952. case " $build_configdirs " in
  6953. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  6954. esac
  6955. for ac_prog in flex lex
  6956. do
  6957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6958. set dummy $ac_prog; ac_word=$2
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6960. $as_echo_n "checking for $ac_word... " >&6; }
  6961. if test "${ac_cv_prog_LEX+set}" = set; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. if test -n "$LEX"; then
  6965. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. test -z "$as_dir" && as_dir=.
  6972. for ac_exec_ext in '' $ac_executable_extensions; do
  6973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6974. ac_cv_prog_LEX="$ac_prog"
  6975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6976. break 2
  6977. fi
  6978. done
  6979. done
  6980. IFS=$as_save_IFS
  6981. fi
  6982. fi
  6983. LEX=$ac_cv_prog_LEX
  6984. if test -n "$LEX"; then
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  6986. $as_echo "$LEX" >&6; }
  6987. else
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6989. $as_echo "no" >&6; }
  6990. fi
  6991. test -n "$LEX" && break
  6992. done
  6993. test -n "$LEX" || LEX="$MISSING flex"
  6994. case " $build_configdirs " in
  6995. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6996. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  6997. esac
  6998. for ac_prog in flex
  6999. do
  7000. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7001. set dummy $ac_prog; ac_word=$2
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. $as_echo_n "checking for $ac_word... " >&6; }
  7004. if test "${ac_cv_prog_FLEX+set}" = set; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. if test -n "$FLEX"; then
  7008. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  7009. else
  7010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $PATH
  7012. do
  7013. IFS=$as_save_IFS
  7014. test -z "$as_dir" && as_dir=.
  7015. for ac_exec_ext in '' $ac_executable_extensions; do
  7016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7017. ac_cv_prog_FLEX="$ac_prog"
  7018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7019. break 2
  7020. fi
  7021. done
  7022. done
  7023. IFS=$as_save_IFS
  7024. fi
  7025. fi
  7026. FLEX=$ac_cv_prog_FLEX
  7027. if test -n "$FLEX"; then
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  7029. $as_echo "$FLEX" >&6; }
  7030. else
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7032. $as_echo "no" >&6; }
  7033. fi
  7034. test -n "$FLEX" && break
  7035. done
  7036. test -n "$FLEX" || FLEX="$MISSING flex"
  7037. case " $build_configdirs " in
  7038. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7039. esac
  7040. for ac_prog in makeinfo
  7041. do
  7042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7043. set dummy $ac_prog; ac_word=$2
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7045. $as_echo_n "checking for $ac_word... " >&6; }
  7046. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  7047. $as_echo_n "(cached) " >&6
  7048. else
  7049. if test -n "$MAKEINFO"; then
  7050. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  7051. else
  7052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7053. for as_dir in $PATH
  7054. do
  7055. IFS=$as_save_IFS
  7056. test -z "$as_dir" && as_dir=.
  7057. for ac_exec_ext in '' $ac_executable_extensions; do
  7058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7059. ac_cv_prog_MAKEINFO="$ac_prog"
  7060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7061. break 2
  7062. fi
  7063. done
  7064. done
  7065. IFS=$as_save_IFS
  7066. fi
  7067. fi
  7068. MAKEINFO=$ac_cv_prog_MAKEINFO
  7069. if test -n "$MAKEINFO"; then
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  7071. $as_echo "$MAKEINFO" >&6; }
  7072. else
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7074. $as_echo "no" >&6; }
  7075. fi
  7076. test -n "$MAKEINFO" && break
  7077. done
  7078. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  7079. case " $build_configdirs " in
  7080. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  7081. *)
  7082. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  7083. # higher, else we use the "missing" dummy.
  7084. if ${MAKEINFO} --version \
  7085. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  7086. :
  7087. else
  7088. MAKEINFO="$MISSING makeinfo"
  7089. fi
  7090. ;;
  7091. esac
  7092. # FIXME: expect and dejagnu may become build tools?
  7093. for ac_prog in expect
  7094. do
  7095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7096. set dummy $ac_prog; ac_word=$2
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. $as_echo_n "checking for $ac_word... " >&6; }
  7099. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. if test -n "$EXPECT"; then
  7103. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. test -z "$as_dir" && as_dir=.
  7110. for ac_exec_ext in '' $ac_executable_extensions; do
  7111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7112. ac_cv_prog_EXPECT="$ac_prog"
  7113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7114. break 2
  7115. fi
  7116. done
  7117. done
  7118. IFS=$as_save_IFS
  7119. fi
  7120. fi
  7121. EXPECT=$ac_cv_prog_EXPECT
  7122. if test -n "$EXPECT"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7124. $as_echo "$EXPECT" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. test -n "$EXPECT" && break
  7130. done
  7131. test -n "$EXPECT" || EXPECT="expect"
  7132. case " $configdirs " in
  7133. *" expect "*)
  7134. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7135. ;;
  7136. esac
  7137. for ac_prog in runtest
  7138. do
  7139. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7140. set dummy $ac_prog; ac_word=$2
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7142. $as_echo_n "checking for $ac_word... " >&6; }
  7143. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. if test -n "$RUNTEST"; then
  7147. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7148. else
  7149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7150. for as_dir in $PATH
  7151. do
  7152. IFS=$as_save_IFS
  7153. test -z "$as_dir" && as_dir=.
  7154. for ac_exec_ext in '' $ac_executable_extensions; do
  7155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7156. ac_cv_prog_RUNTEST="$ac_prog"
  7157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7158. break 2
  7159. fi
  7160. done
  7161. done
  7162. IFS=$as_save_IFS
  7163. fi
  7164. fi
  7165. RUNTEST=$ac_cv_prog_RUNTEST
  7166. if test -n "$RUNTEST"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7168. $as_echo "$RUNTEST" >&6; }
  7169. else
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173. test -n "$RUNTEST" && break
  7174. done
  7175. test -n "$RUNTEST" || RUNTEST="runtest"
  7176. case " $configdirs " in
  7177. *" dejagnu "*)
  7178. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7179. ;;
  7180. esac
  7181. # Host tools.
  7182. ncn_tool_prefix=
  7183. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7184. ncn_target_tool_prefix=
  7185. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7186. if test -n "$AR"; then
  7187. ac_cv_prog_AR=$AR
  7188. elif test -n "$ac_cv_prog_AR"; then
  7189. AR=$ac_cv_prog_AR
  7190. fi
  7191. if test -n "$ac_cv_prog_AR"; then
  7192. for ncn_progname in ar; do
  7193. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7194. set dummy ${ncn_progname}; ac_word=$2
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7196. $as_echo_n "checking for $ac_word... " >&6; }
  7197. if test "${ac_cv_prog_AR+set}" = set; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. if test -n "$AR"; then
  7201. ac_cv_prog_AR="$AR" # Let the user override the test.
  7202. else
  7203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7204. for as_dir in $PATH
  7205. do
  7206. IFS=$as_save_IFS
  7207. test -z "$as_dir" && as_dir=.
  7208. for ac_exec_ext in '' $ac_executable_extensions; do
  7209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7210. ac_cv_prog_AR="${ncn_progname}"
  7211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7212. break 2
  7213. fi
  7214. done
  7215. done
  7216. IFS=$as_save_IFS
  7217. fi
  7218. fi
  7219. AR=$ac_cv_prog_AR
  7220. if test -n "$AR"; then
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7222. $as_echo "$AR" >&6; }
  7223. else
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7225. $as_echo "no" >&6; }
  7226. fi
  7227. done
  7228. fi
  7229. for ncn_progname in ar; do
  7230. if test -n "$ncn_tool_prefix"; then
  7231. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7232. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7234. $as_echo_n "checking for $ac_word... " >&6; }
  7235. if test "${ac_cv_prog_AR+set}" = set; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. if test -n "$AR"; then
  7239. ac_cv_prog_AR="$AR" # Let the user override the test.
  7240. else
  7241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7242. for as_dir in $PATH
  7243. do
  7244. IFS=$as_save_IFS
  7245. test -z "$as_dir" && as_dir=.
  7246. for ac_exec_ext in '' $ac_executable_extensions; do
  7247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7248. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7250. break 2
  7251. fi
  7252. done
  7253. done
  7254. IFS=$as_save_IFS
  7255. fi
  7256. fi
  7257. AR=$ac_cv_prog_AR
  7258. if test -n "$AR"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7260. $as_echo "$AR" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265. fi
  7266. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7267. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7268. set dummy ${ncn_progname}; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if test "${ac_cv_prog_AR+set}" = set; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$AR"; then
  7275. ac_cv_prog_AR="$AR" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7284. ac_cv_prog_AR="${ncn_progname}"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. AR=$ac_cv_prog_AR
  7294. if test -n "$AR"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7296. $as_echo "$AR" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. fi
  7302. test -n "$ac_cv_prog_AR" && break
  7303. done
  7304. if test -z "$ac_cv_prog_AR" ; then
  7305. set dummy ar
  7306. if test $build = $host ; then
  7307. AR="$2"
  7308. else
  7309. AR="${ncn_tool_prefix}$2"
  7310. fi
  7311. fi
  7312. if test -n "$AS"; then
  7313. ac_cv_prog_AS=$AS
  7314. elif test -n "$ac_cv_prog_AS"; then
  7315. AS=$ac_cv_prog_AS
  7316. fi
  7317. if test -n "$ac_cv_prog_AS"; then
  7318. for ncn_progname in as; do
  7319. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7320. set dummy ${ncn_progname}; ac_word=$2
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7322. $as_echo_n "checking for $ac_word... " >&6; }
  7323. if test "${ac_cv_prog_AS+set}" = set; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. if test -n "$AS"; then
  7327. ac_cv_prog_AS="$AS" # Let the user override the test.
  7328. else
  7329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7330. for as_dir in $PATH
  7331. do
  7332. IFS=$as_save_IFS
  7333. test -z "$as_dir" && as_dir=.
  7334. for ac_exec_ext in '' $ac_executable_extensions; do
  7335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7336. ac_cv_prog_AS="${ncn_progname}"
  7337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7338. break 2
  7339. fi
  7340. done
  7341. done
  7342. IFS=$as_save_IFS
  7343. fi
  7344. fi
  7345. AS=$ac_cv_prog_AS
  7346. if test -n "$AS"; then
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7348. $as_echo "$AS" >&6; }
  7349. else
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7351. $as_echo "no" >&6; }
  7352. fi
  7353. done
  7354. fi
  7355. for ncn_progname in as; do
  7356. if test -n "$ncn_tool_prefix"; then
  7357. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7358. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7360. $as_echo_n "checking for $ac_word... " >&6; }
  7361. if test "${ac_cv_prog_AS+set}" = set; then :
  7362. $as_echo_n "(cached) " >&6
  7363. else
  7364. if test -n "$AS"; then
  7365. ac_cv_prog_AS="$AS" # Let the user override the test.
  7366. else
  7367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7368. for as_dir in $PATH
  7369. do
  7370. IFS=$as_save_IFS
  7371. test -z "$as_dir" && as_dir=.
  7372. for ac_exec_ext in '' $ac_executable_extensions; do
  7373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7374. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7376. break 2
  7377. fi
  7378. done
  7379. done
  7380. IFS=$as_save_IFS
  7381. fi
  7382. fi
  7383. AS=$ac_cv_prog_AS
  7384. if test -n "$AS"; then
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7386. $as_echo "$AS" >&6; }
  7387. else
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7389. $as_echo "no" >&6; }
  7390. fi
  7391. fi
  7392. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7393. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7394. set dummy ${ncn_progname}; ac_word=$2
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7396. $as_echo_n "checking for $ac_word... " >&6; }
  7397. if test "${ac_cv_prog_AS+set}" = set; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. if test -n "$AS"; then
  7401. ac_cv_prog_AS="$AS" # Let the user override the test.
  7402. else
  7403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7404. for as_dir in $PATH
  7405. do
  7406. IFS=$as_save_IFS
  7407. test -z "$as_dir" && as_dir=.
  7408. for ac_exec_ext in '' $ac_executable_extensions; do
  7409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7410. ac_cv_prog_AS="${ncn_progname}"
  7411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7412. break 2
  7413. fi
  7414. done
  7415. done
  7416. IFS=$as_save_IFS
  7417. fi
  7418. fi
  7419. AS=$ac_cv_prog_AS
  7420. if test -n "$AS"; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7422. $as_echo "$AS" >&6; }
  7423. else
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7425. $as_echo "no" >&6; }
  7426. fi
  7427. fi
  7428. test -n "$ac_cv_prog_AS" && break
  7429. done
  7430. if test -z "$ac_cv_prog_AS" ; then
  7431. set dummy as
  7432. if test $build = $host ; then
  7433. AS="$2"
  7434. else
  7435. AS="${ncn_tool_prefix}$2"
  7436. fi
  7437. fi
  7438. if test -n "$DLLTOOL"; then
  7439. ac_cv_prog_DLLTOOL=$DLLTOOL
  7440. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7441. DLLTOOL=$ac_cv_prog_DLLTOOL
  7442. fi
  7443. if test -n "$ac_cv_prog_DLLTOOL"; then
  7444. for ncn_progname in dlltool; do
  7445. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7446. set dummy ${ncn_progname}; ac_word=$2
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7448. $as_echo_n "checking for $ac_word... " >&6; }
  7449. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. if test -n "$DLLTOOL"; then
  7453. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7454. else
  7455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7456. for as_dir in $PATH
  7457. do
  7458. IFS=$as_save_IFS
  7459. test -z "$as_dir" && as_dir=.
  7460. for ac_exec_ext in '' $ac_executable_extensions; do
  7461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7462. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7464. break 2
  7465. fi
  7466. done
  7467. done
  7468. IFS=$as_save_IFS
  7469. fi
  7470. fi
  7471. DLLTOOL=$ac_cv_prog_DLLTOOL
  7472. if test -n "$DLLTOOL"; then
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7474. $as_echo "$DLLTOOL" >&6; }
  7475. else
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7477. $as_echo "no" >&6; }
  7478. fi
  7479. done
  7480. fi
  7481. for ncn_progname in dlltool; do
  7482. if test -n "$ncn_tool_prefix"; then
  7483. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7484. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7486. $as_echo_n "checking for $ac_word... " >&6; }
  7487. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7488. $as_echo_n "(cached) " >&6
  7489. else
  7490. if test -n "$DLLTOOL"; then
  7491. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7492. else
  7493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7494. for as_dir in $PATH
  7495. do
  7496. IFS=$as_save_IFS
  7497. test -z "$as_dir" && as_dir=.
  7498. for ac_exec_ext in '' $ac_executable_extensions; do
  7499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7500. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7502. break 2
  7503. fi
  7504. done
  7505. done
  7506. IFS=$as_save_IFS
  7507. fi
  7508. fi
  7509. DLLTOOL=$ac_cv_prog_DLLTOOL
  7510. if test -n "$DLLTOOL"; then
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7512. $as_echo "$DLLTOOL" >&6; }
  7513. else
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7515. $as_echo "no" >&6; }
  7516. fi
  7517. fi
  7518. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7519. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7520. set dummy ${ncn_progname}; ac_word=$2
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7522. $as_echo_n "checking for $ac_word... " >&6; }
  7523. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7524. $as_echo_n "(cached) " >&6
  7525. else
  7526. if test -n "$DLLTOOL"; then
  7527. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7528. else
  7529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7530. for as_dir in $PATH
  7531. do
  7532. IFS=$as_save_IFS
  7533. test -z "$as_dir" && as_dir=.
  7534. for ac_exec_ext in '' $ac_executable_extensions; do
  7535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7536. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7538. break 2
  7539. fi
  7540. done
  7541. done
  7542. IFS=$as_save_IFS
  7543. fi
  7544. fi
  7545. DLLTOOL=$ac_cv_prog_DLLTOOL
  7546. if test -n "$DLLTOOL"; then
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7548. $as_echo "$DLLTOOL" >&6; }
  7549. else
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. $as_echo "no" >&6; }
  7552. fi
  7553. fi
  7554. test -n "$ac_cv_prog_DLLTOOL" && break
  7555. done
  7556. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7557. set dummy dlltool
  7558. if test $build = $host ; then
  7559. DLLTOOL="$2"
  7560. else
  7561. DLLTOOL="${ncn_tool_prefix}$2"
  7562. fi
  7563. fi
  7564. if test -n "$LD"; then
  7565. ac_cv_prog_LD=$LD
  7566. elif test -n "$ac_cv_prog_LD"; then
  7567. LD=$ac_cv_prog_LD
  7568. fi
  7569. if test -n "$ac_cv_prog_LD"; then
  7570. for ncn_progname in ld; do
  7571. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7572. set dummy ${ncn_progname}; ac_word=$2
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7574. $as_echo_n "checking for $ac_word... " >&6; }
  7575. if test "${ac_cv_prog_LD+set}" = set; then :
  7576. $as_echo_n "(cached) " >&6
  7577. else
  7578. if test -n "$LD"; then
  7579. ac_cv_prog_LD="$LD" # Let the user override the test.
  7580. else
  7581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7582. for as_dir in $PATH
  7583. do
  7584. IFS=$as_save_IFS
  7585. test -z "$as_dir" && as_dir=.
  7586. for ac_exec_ext in '' $ac_executable_extensions; do
  7587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7588. ac_cv_prog_LD="${ncn_progname}"
  7589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7590. break 2
  7591. fi
  7592. done
  7593. done
  7594. IFS=$as_save_IFS
  7595. fi
  7596. fi
  7597. LD=$ac_cv_prog_LD
  7598. if test -n "$LD"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7600. $as_echo "$LD" >&6; }
  7601. else
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7603. $as_echo "no" >&6; }
  7604. fi
  7605. done
  7606. fi
  7607. for ncn_progname in ld; do
  7608. if test -n "$ncn_tool_prefix"; then
  7609. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7610. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7612. $as_echo_n "checking for $ac_word... " >&6; }
  7613. if test "${ac_cv_prog_LD+set}" = set; then :
  7614. $as_echo_n "(cached) " >&6
  7615. else
  7616. if test -n "$LD"; then
  7617. ac_cv_prog_LD="$LD" # Let the user override the test.
  7618. else
  7619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7620. for as_dir in $PATH
  7621. do
  7622. IFS=$as_save_IFS
  7623. test -z "$as_dir" && as_dir=.
  7624. for ac_exec_ext in '' $ac_executable_extensions; do
  7625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7626. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  7627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7628. break 2
  7629. fi
  7630. done
  7631. done
  7632. IFS=$as_save_IFS
  7633. fi
  7634. fi
  7635. LD=$ac_cv_prog_LD
  7636. if test -n "$LD"; then
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7638. $as_echo "$LD" >&6; }
  7639. else
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7641. $as_echo "no" >&6; }
  7642. fi
  7643. fi
  7644. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  7645. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7646. set dummy ${ncn_progname}; ac_word=$2
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7648. $as_echo_n "checking for $ac_word... " >&6; }
  7649. if test "${ac_cv_prog_LD+set}" = set; then :
  7650. $as_echo_n "(cached) " >&6
  7651. else
  7652. if test -n "$LD"; then
  7653. ac_cv_prog_LD="$LD" # Let the user override the test.
  7654. else
  7655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7656. for as_dir in $PATH
  7657. do
  7658. IFS=$as_save_IFS
  7659. test -z "$as_dir" && as_dir=.
  7660. for ac_exec_ext in '' $ac_executable_extensions; do
  7661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7662. ac_cv_prog_LD="${ncn_progname}"
  7663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7664. break 2
  7665. fi
  7666. done
  7667. done
  7668. IFS=$as_save_IFS
  7669. fi
  7670. fi
  7671. LD=$ac_cv_prog_LD
  7672. if test -n "$LD"; then
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7674. $as_echo "$LD" >&6; }
  7675. else
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7677. $as_echo "no" >&6; }
  7678. fi
  7679. fi
  7680. test -n "$ac_cv_prog_LD" && break
  7681. done
  7682. if test -z "$ac_cv_prog_LD" ; then
  7683. set dummy ld
  7684. if test $build = $host ; then
  7685. LD="$2"
  7686. else
  7687. LD="${ncn_tool_prefix}$2"
  7688. fi
  7689. fi
  7690. if test -n "$LIPO"; then
  7691. ac_cv_prog_LIPO=$LIPO
  7692. elif test -n "$ac_cv_prog_LIPO"; then
  7693. LIPO=$ac_cv_prog_LIPO
  7694. fi
  7695. if test -n "$ac_cv_prog_LIPO"; then
  7696. for ncn_progname in lipo; do
  7697. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7698. set dummy ${ncn_progname}; ac_word=$2
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7700. $as_echo_n "checking for $ac_word... " >&6; }
  7701. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7702. $as_echo_n "(cached) " >&6
  7703. else
  7704. if test -n "$LIPO"; then
  7705. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7706. else
  7707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7708. for as_dir in $PATH
  7709. do
  7710. IFS=$as_save_IFS
  7711. test -z "$as_dir" && as_dir=.
  7712. for ac_exec_ext in '' $ac_executable_extensions; do
  7713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7714. ac_cv_prog_LIPO="${ncn_progname}"
  7715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7716. break 2
  7717. fi
  7718. done
  7719. done
  7720. IFS=$as_save_IFS
  7721. fi
  7722. fi
  7723. LIPO=$ac_cv_prog_LIPO
  7724. if test -n "$LIPO"; then
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7726. $as_echo "$LIPO" >&6; }
  7727. else
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7729. $as_echo "no" >&6; }
  7730. fi
  7731. done
  7732. fi
  7733. for ncn_progname in lipo; do
  7734. if test -n "$ncn_tool_prefix"; then
  7735. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7736. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7738. $as_echo_n "checking for $ac_word... " >&6; }
  7739. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7740. $as_echo_n "(cached) " >&6
  7741. else
  7742. if test -n "$LIPO"; then
  7743. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7744. else
  7745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7746. for as_dir in $PATH
  7747. do
  7748. IFS=$as_save_IFS
  7749. test -z "$as_dir" && as_dir=.
  7750. for ac_exec_ext in '' $ac_executable_extensions; do
  7751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7752. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  7753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7754. break 2
  7755. fi
  7756. done
  7757. done
  7758. IFS=$as_save_IFS
  7759. fi
  7760. fi
  7761. LIPO=$ac_cv_prog_LIPO
  7762. if test -n "$LIPO"; then
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7764. $as_echo "$LIPO" >&6; }
  7765. else
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7767. $as_echo "no" >&6; }
  7768. fi
  7769. fi
  7770. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  7771. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7772. set dummy ${ncn_progname}; ac_word=$2
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7774. $as_echo_n "checking for $ac_word... " >&6; }
  7775. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7776. $as_echo_n "(cached) " >&6
  7777. else
  7778. if test -n "$LIPO"; then
  7779. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7780. else
  7781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7782. for as_dir in $PATH
  7783. do
  7784. IFS=$as_save_IFS
  7785. test -z "$as_dir" && as_dir=.
  7786. for ac_exec_ext in '' $ac_executable_extensions; do
  7787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7788. ac_cv_prog_LIPO="${ncn_progname}"
  7789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7790. break 2
  7791. fi
  7792. done
  7793. done
  7794. IFS=$as_save_IFS
  7795. fi
  7796. fi
  7797. LIPO=$ac_cv_prog_LIPO
  7798. if test -n "$LIPO"; then
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7800. $as_echo "$LIPO" >&6; }
  7801. else
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7803. $as_echo "no" >&6; }
  7804. fi
  7805. fi
  7806. test -n "$ac_cv_prog_LIPO" && break
  7807. done
  7808. if test -z "$ac_cv_prog_LIPO" ; then
  7809. set dummy lipo
  7810. if test $build = $host ; then
  7811. LIPO="$2"
  7812. else
  7813. LIPO="${ncn_tool_prefix}$2"
  7814. fi
  7815. fi
  7816. if test -n "$NM"; then
  7817. ac_cv_prog_NM=$NM
  7818. elif test -n "$ac_cv_prog_NM"; then
  7819. NM=$ac_cv_prog_NM
  7820. fi
  7821. if test -n "$ac_cv_prog_NM"; then
  7822. for ncn_progname in nm; do
  7823. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7824. set dummy ${ncn_progname}; ac_word=$2
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7826. $as_echo_n "checking for $ac_word... " >&6; }
  7827. if test "${ac_cv_prog_NM+set}" = set; then :
  7828. $as_echo_n "(cached) " >&6
  7829. else
  7830. if test -n "$NM"; then
  7831. ac_cv_prog_NM="$NM" # Let the user override the test.
  7832. else
  7833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7834. for as_dir in $PATH
  7835. do
  7836. IFS=$as_save_IFS
  7837. test -z "$as_dir" && as_dir=.
  7838. for ac_exec_ext in '' $ac_executable_extensions; do
  7839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7840. ac_cv_prog_NM="${ncn_progname}"
  7841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7842. break 2
  7843. fi
  7844. done
  7845. done
  7846. IFS=$as_save_IFS
  7847. fi
  7848. fi
  7849. NM=$ac_cv_prog_NM
  7850. if test -n "$NM"; then
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7852. $as_echo "$NM" >&6; }
  7853. else
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7855. $as_echo "no" >&6; }
  7856. fi
  7857. done
  7858. fi
  7859. for ncn_progname in nm; do
  7860. if test -n "$ncn_tool_prefix"; then
  7861. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7862. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7864. $as_echo_n "checking for $ac_word... " >&6; }
  7865. if test "${ac_cv_prog_NM+set}" = set; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. if test -n "$NM"; then
  7869. ac_cv_prog_NM="$NM" # Let the user override the test.
  7870. else
  7871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7872. for as_dir in $PATH
  7873. do
  7874. IFS=$as_save_IFS
  7875. test -z "$as_dir" && as_dir=.
  7876. for ac_exec_ext in '' $ac_executable_extensions; do
  7877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7878. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  7879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7880. break 2
  7881. fi
  7882. done
  7883. done
  7884. IFS=$as_save_IFS
  7885. fi
  7886. fi
  7887. NM=$ac_cv_prog_NM
  7888. if test -n "$NM"; then
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7890. $as_echo "$NM" >&6; }
  7891. else
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7893. $as_echo "no" >&6; }
  7894. fi
  7895. fi
  7896. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  7897. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7898. set dummy ${ncn_progname}; ac_word=$2
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7900. $as_echo_n "checking for $ac_word... " >&6; }
  7901. if test "${ac_cv_prog_NM+set}" = set; then :
  7902. $as_echo_n "(cached) " >&6
  7903. else
  7904. if test -n "$NM"; then
  7905. ac_cv_prog_NM="$NM" # Let the user override the test.
  7906. else
  7907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7908. for as_dir in $PATH
  7909. do
  7910. IFS=$as_save_IFS
  7911. test -z "$as_dir" && as_dir=.
  7912. for ac_exec_ext in '' $ac_executable_extensions; do
  7913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7914. ac_cv_prog_NM="${ncn_progname}"
  7915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7916. break 2
  7917. fi
  7918. done
  7919. done
  7920. IFS=$as_save_IFS
  7921. fi
  7922. fi
  7923. NM=$ac_cv_prog_NM
  7924. if test -n "$NM"; then
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7926. $as_echo "$NM" >&6; }
  7927. else
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7929. $as_echo "no" >&6; }
  7930. fi
  7931. fi
  7932. test -n "$ac_cv_prog_NM" && break
  7933. done
  7934. if test -z "$ac_cv_prog_NM" ; then
  7935. set dummy nm
  7936. if test $build = $host ; then
  7937. NM="$2"
  7938. else
  7939. NM="${ncn_tool_prefix}$2"
  7940. fi
  7941. fi
  7942. if test -n "$RANLIB"; then
  7943. ac_cv_prog_RANLIB=$RANLIB
  7944. elif test -n "$ac_cv_prog_RANLIB"; then
  7945. RANLIB=$ac_cv_prog_RANLIB
  7946. fi
  7947. if test -n "$ac_cv_prog_RANLIB"; then
  7948. for ncn_progname in ranlib; do
  7949. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7950. set dummy ${ncn_progname}; ac_word=$2
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7952. $as_echo_n "checking for $ac_word... " >&6; }
  7953. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7954. $as_echo_n "(cached) " >&6
  7955. else
  7956. if test -n "$RANLIB"; then
  7957. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7958. else
  7959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7960. for as_dir in $PATH
  7961. do
  7962. IFS=$as_save_IFS
  7963. test -z "$as_dir" && as_dir=.
  7964. for ac_exec_ext in '' $ac_executable_extensions; do
  7965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7966. ac_cv_prog_RANLIB="${ncn_progname}"
  7967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7968. break 2
  7969. fi
  7970. done
  7971. done
  7972. IFS=$as_save_IFS
  7973. fi
  7974. fi
  7975. RANLIB=$ac_cv_prog_RANLIB
  7976. if test -n "$RANLIB"; then
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7978. $as_echo "$RANLIB" >&6; }
  7979. else
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7981. $as_echo "no" >&6; }
  7982. fi
  7983. done
  7984. fi
  7985. for ncn_progname in ranlib; do
  7986. if test -n "$ncn_tool_prefix"; then
  7987. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7988. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7990. $as_echo_n "checking for $ac_word... " >&6; }
  7991. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7992. $as_echo_n "(cached) " >&6
  7993. else
  7994. if test -n "$RANLIB"; then
  7995. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7996. else
  7997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7998. for as_dir in $PATH
  7999. do
  8000. IFS=$as_save_IFS
  8001. test -z "$as_dir" && as_dir=.
  8002. for ac_exec_ext in '' $ac_executable_extensions; do
  8003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8004. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  8005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8006. break 2
  8007. fi
  8008. done
  8009. done
  8010. IFS=$as_save_IFS
  8011. fi
  8012. fi
  8013. RANLIB=$ac_cv_prog_RANLIB
  8014. if test -n "$RANLIB"; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8016. $as_echo "$RANLIB" >&6; }
  8017. else
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8019. $as_echo "no" >&6; }
  8020. fi
  8021. fi
  8022. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  8023. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8024. set dummy ${ncn_progname}; ac_word=$2
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8026. $as_echo_n "checking for $ac_word... " >&6; }
  8027. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8028. $as_echo_n "(cached) " >&6
  8029. else
  8030. if test -n "$RANLIB"; then
  8031. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8032. else
  8033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8034. for as_dir in $PATH
  8035. do
  8036. IFS=$as_save_IFS
  8037. test -z "$as_dir" && as_dir=.
  8038. for ac_exec_ext in '' $ac_executable_extensions; do
  8039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8040. ac_cv_prog_RANLIB="${ncn_progname}"
  8041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8042. break 2
  8043. fi
  8044. done
  8045. done
  8046. IFS=$as_save_IFS
  8047. fi
  8048. fi
  8049. RANLIB=$ac_cv_prog_RANLIB
  8050. if test -n "$RANLIB"; then
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8052. $as_echo "$RANLIB" >&6; }
  8053. else
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8055. $as_echo "no" >&6; }
  8056. fi
  8057. fi
  8058. test -n "$ac_cv_prog_RANLIB" && break
  8059. done
  8060. if test -z "$ac_cv_prog_RANLIB" ; then
  8061. RANLIB="true"
  8062. fi
  8063. if test -n "$STRIP"; then
  8064. ac_cv_prog_STRIP=$STRIP
  8065. elif test -n "$ac_cv_prog_STRIP"; then
  8066. STRIP=$ac_cv_prog_STRIP
  8067. fi
  8068. if test -n "$ac_cv_prog_STRIP"; then
  8069. for ncn_progname in strip; do
  8070. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8071. set dummy ${ncn_progname}; ac_word=$2
  8072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8073. $as_echo_n "checking for $ac_word... " >&6; }
  8074. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8075. $as_echo_n "(cached) " >&6
  8076. else
  8077. if test -n "$STRIP"; then
  8078. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8079. else
  8080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8081. for as_dir in $PATH
  8082. do
  8083. IFS=$as_save_IFS
  8084. test -z "$as_dir" && as_dir=.
  8085. for ac_exec_ext in '' $ac_executable_extensions; do
  8086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8087. ac_cv_prog_STRIP="${ncn_progname}"
  8088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8089. break 2
  8090. fi
  8091. done
  8092. done
  8093. IFS=$as_save_IFS
  8094. fi
  8095. fi
  8096. STRIP=$ac_cv_prog_STRIP
  8097. if test -n "$STRIP"; then
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8099. $as_echo "$STRIP" >&6; }
  8100. else
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8102. $as_echo "no" >&6; }
  8103. fi
  8104. done
  8105. fi
  8106. for ncn_progname in strip; do
  8107. if test -n "$ncn_tool_prefix"; then
  8108. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8109. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8111. $as_echo_n "checking for $ac_word... " >&6; }
  8112. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8113. $as_echo_n "(cached) " >&6
  8114. else
  8115. if test -n "$STRIP"; then
  8116. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8117. else
  8118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8119. for as_dir in $PATH
  8120. do
  8121. IFS=$as_save_IFS
  8122. test -z "$as_dir" && as_dir=.
  8123. for ac_exec_ext in '' $ac_executable_extensions; do
  8124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8125. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  8126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8127. break 2
  8128. fi
  8129. done
  8130. done
  8131. IFS=$as_save_IFS
  8132. fi
  8133. fi
  8134. STRIP=$ac_cv_prog_STRIP
  8135. if test -n "$STRIP"; then
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8137. $as_echo "$STRIP" >&6; }
  8138. else
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8140. $as_echo "no" >&6; }
  8141. fi
  8142. fi
  8143. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  8144. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8145. set dummy ${ncn_progname}; ac_word=$2
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8147. $as_echo_n "checking for $ac_word... " >&6; }
  8148. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8149. $as_echo_n "(cached) " >&6
  8150. else
  8151. if test -n "$STRIP"; then
  8152. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8153. else
  8154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8155. for as_dir in $PATH
  8156. do
  8157. IFS=$as_save_IFS
  8158. test -z "$as_dir" && as_dir=.
  8159. for ac_exec_ext in '' $ac_executable_extensions; do
  8160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8161. ac_cv_prog_STRIP="${ncn_progname}"
  8162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8163. break 2
  8164. fi
  8165. done
  8166. done
  8167. IFS=$as_save_IFS
  8168. fi
  8169. fi
  8170. STRIP=$ac_cv_prog_STRIP
  8171. if test -n "$STRIP"; then
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8173. $as_echo "$STRIP" >&6; }
  8174. else
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8176. $as_echo "no" >&6; }
  8177. fi
  8178. fi
  8179. test -n "$ac_cv_prog_STRIP" && break
  8180. done
  8181. if test -z "$ac_cv_prog_STRIP" ; then
  8182. STRIP="true"
  8183. fi
  8184. if test -n "$WINDRES"; then
  8185. ac_cv_prog_WINDRES=$WINDRES
  8186. elif test -n "$ac_cv_prog_WINDRES"; then
  8187. WINDRES=$ac_cv_prog_WINDRES
  8188. fi
  8189. if test -n "$ac_cv_prog_WINDRES"; then
  8190. for ncn_progname in windres; do
  8191. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8192. set dummy ${ncn_progname}; ac_word=$2
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8194. $as_echo_n "checking for $ac_word... " >&6; }
  8195. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8196. $as_echo_n "(cached) " >&6
  8197. else
  8198. if test -n "$WINDRES"; then
  8199. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8200. else
  8201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8202. for as_dir in $PATH
  8203. do
  8204. IFS=$as_save_IFS
  8205. test -z "$as_dir" && as_dir=.
  8206. for ac_exec_ext in '' $ac_executable_extensions; do
  8207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8208. ac_cv_prog_WINDRES="${ncn_progname}"
  8209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8210. break 2
  8211. fi
  8212. done
  8213. done
  8214. IFS=$as_save_IFS
  8215. fi
  8216. fi
  8217. WINDRES=$ac_cv_prog_WINDRES
  8218. if test -n "$WINDRES"; then
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8220. $as_echo "$WINDRES" >&6; }
  8221. else
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8223. $as_echo "no" >&6; }
  8224. fi
  8225. done
  8226. fi
  8227. for ncn_progname in windres; do
  8228. if test -n "$ncn_tool_prefix"; then
  8229. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8230. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8232. $as_echo_n "checking for $ac_word... " >&6; }
  8233. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. if test -n "$WINDRES"; then
  8237. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8238. else
  8239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8240. for as_dir in $PATH
  8241. do
  8242. IFS=$as_save_IFS
  8243. test -z "$as_dir" && as_dir=.
  8244. for ac_exec_ext in '' $ac_executable_extensions; do
  8245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8246. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8248. break 2
  8249. fi
  8250. done
  8251. done
  8252. IFS=$as_save_IFS
  8253. fi
  8254. fi
  8255. WINDRES=$ac_cv_prog_WINDRES
  8256. if test -n "$WINDRES"; then
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8258. $as_echo "$WINDRES" >&6; }
  8259. else
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8261. $as_echo "no" >&6; }
  8262. fi
  8263. fi
  8264. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8265. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8266. set dummy ${ncn_progname}; ac_word=$2
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8268. $as_echo_n "checking for $ac_word... " >&6; }
  8269. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8270. $as_echo_n "(cached) " >&6
  8271. else
  8272. if test -n "$WINDRES"; then
  8273. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8274. else
  8275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8276. for as_dir in $PATH
  8277. do
  8278. IFS=$as_save_IFS
  8279. test -z "$as_dir" && as_dir=.
  8280. for ac_exec_ext in '' $ac_executable_extensions; do
  8281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8282. ac_cv_prog_WINDRES="${ncn_progname}"
  8283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8284. break 2
  8285. fi
  8286. done
  8287. done
  8288. IFS=$as_save_IFS
  8289. fi
  8290. fi
  8291. WINDRES=$ac_cv_prog_WINDRES
  8292. if test -n "$WINDRES"; then
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8294. $as_echo "$WINDRES" >&6; }
  8295. else
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8297. $as_echo "no" >&6; }
  8298. fi
  8299. fi
  8300. test -n "$ac_cv_prog_WINDRES" && break
  8301. done
  8302. if test -z "$ac_cv_prog_WINDRES" ; then
  8303. set dummy windres
  8304. if test $build = $host ; then
  8305. WINDRES="$2"
  8306. else
  8307. WINDRES="${ncn_tool_prefix}$2"
  8308. fi
  8309. fi
  8310. if test -n "$WINDMC"; then
  8311. ac_cv_prog_WINDMC=$WINDMC
  8312. elif test -n "$ac_cv_prog_WINDMC"; then
  8313. WINDMC=$ac_cv_prog_WINDMC
  8314. fi
  8315. if test -n "$ac_cv_prog_WINDMC"; then
  8316. for ncn_progname in windmc; do
  8317. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8318. set dummy ${ncn_progname}; ac_word=$2
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8320. $as_echo_n "checking for $ac_word... " >&6; }
  8321. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8322. $as_echo_n "(cached) " >&6
  8323. else
  8324. if test -n "$WINDMC"; then
  8325. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8326. else
  8327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8328. for as_dir in $PATH
  8329. do
  8330. IFS=$as_save_IFS
  8331. test -z "$as_dir" && as_dir=.
  8332. for ac_exec_ext in '' $ac_executable_extensions; do
  8333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8334. ac_cv_prog_WINDMC="${ncn_progname}"
  8335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8336. break 2
  8337. fi
  8338. done
  8339. done
  8340. IFS=$as_save_IFS
  8341. fi
  8342. fi
  8343. WINDMC=$ac_cv_prog_WINDMC
  8344. if test -n "$WINDMC"; then
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8346. $as_echo "$WINDMC" >&6; }
  8347. else
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8349. $as_echo "no" >&6; }
  8350. fi
  8351. done
  8352. fi
  8353. for ncn_progname in windmc; do
  8354. if test -n "$ncn_tool_prefix"; then
  8355. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8356. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8358. $as_echo_n "checking for $ac_word... " >&6; }
  8359. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8360. $as_echo_n "(cached) " >&6
  8361. else
  8362. if test -n "$WINDMC"; then
  8363. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8364. else
  8365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8366. for as_dir in $PATH
  8367. do
  8368. IFS=$as_save_IFS
  8369. test -z "$as_dir" && as_dir=.
  8370. for ac_exec_ext in '' $ac_executable_extensions; do
  8371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8372. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8374. break 2
  8375. fi
  8376. done
  8377. done
  8378. IFS=$as_save_IFS
  8379. fi
  8380. fi
  8381. WINDMC=$ac_cv_prog_WINDMC
  8382. if test -n "$WINDMC"; then
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8384. $as_echo "$WINDMC" >&6; }
  8385. else
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8387. $as_echo "no" >&6; }
  8388. fi
  8389. fi
  8390. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8391. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8392. set dummy ${ncn_progname}; ac_word=$2
  8393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8394. $as_echo_n "checking for $ac_word... " >&6; }
  8395. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8396. $as_echo_n "(cached) " >&6
  8397. else
  8398. if test -n "$WINDMC"; then
  8399. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8400. else
  8401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8402. for as_dir in $PATH
  8403. do
  8404. IFS=$as_save_IFS
  8405. test -z "$as_dir" && as_dir=.
  8406. for ac_exec_ext in '' $ac_executable_extensions; do
  8407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8408. ac_cv_prog_WINDMC="${ncn_progname}"
  8409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8410. break 2
  8411. fi
  8412. done
  8413. done
  8414. IFS=$as_save_IFS
  8415. fi
  8416. fi
  8417. WINDMC=$ac_cv_prog_WINDMC
  8418. if test -n "$WINDMC"; then
  8419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8420. $as_echo "$WINDMC" >&6; }
  8421. else
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8423. $as_echo "no" >&6; }
  8424. fi
  8425. fi
  8426. test -n "$ac_cv_prog_WINDMC" && break
  8427. done
  8428. if test -z "$ac_cv_prog_WINDMC" ; then
  8429. set dummy windmc
  8430. if test $build = $host ; then
  8431. WINDMC="$2"
  8432. else
  8433. WINDMC="${ncn_tool_prefix}$2"
  8434. fi
  8435. fi
  8436. if test -n "$OBJCOPY"; then
  8437. ac_cv_prog_OBJCOPY=$OBJCOPY
  8438. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8439. OBJCOPY=$ac_cv_prog_OBJCOPY
  8440. fi
  8441. if test -n "$ac_cv_prog_OBJCOPY"; then
  8442. for ncn_progname in objcopy; do
  8443. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8444. set dummy ${ncn_progname}; ac_word=$2
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8446. $as_echo_n "checking for $ac_word... " >&6; }
  8447. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8448. $as_echo_n "(cached) " >&6
  8449. else
  8450. if test -n "$OBJCOPY"; then
  8451. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8452. else
  8453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8454. for as_dir in $PATH
  8455. do
  8456. IFS=$as_save_IFS
  8457. test -z "$as_dir" && as_dir=.
  8458. for ac_exec_ext in '' $ac_executable_extensions; do
  8459. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8460. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8462. break 2
  8463. fi
  8464. done
  8465. done
  8466. IFS=$as_save_IFS
  8467. fi
  8468. fi
  8469. OBJCOPY=$ac_cv_prog_OBJCOPY
  8470. if test -n "$OBJCOPY"; then
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8472. $as_echo "$OBJCOPY" >&6; }
  8473. else
  8474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8475. $as_echo "no" >&6; }
  8476. fi
  8477. done
  8478. fi
  8479. for ncn_progname in objcopy; do
  8480. if test -n "$ncn_tool_prefix"; then
  8481. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8482. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8484. $as_echo_n "checking for $ac_word... " >&6; }
  8485. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8486. $as_echo_n "(cached) " >&6
  8487. else
  8488. if test -n "$OBJCOPY"; then
  8489. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8490. else
  8491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8492. for as_dir in $PATH
  8493. do
  8494. IFS=$as_save_IFS
  8495. test -z "$as_dir" && as_dir=.
  8496. for ac_exec_ext in '' $ac_executable_extensions; do
  8497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8498. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8500. break 2
  8501. fi
  8502. done
  8503. done
  8504. IFS=$as_save_IFS
  8505. fi
  8506. fi
  8507. OBJCOPY=$ac_cv_prog_OBJCOPY
  8508. if test -n "$OBJCOPY"; then
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8510. $as_echo "$OBJCOPY" >&6; }
  8511. else
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8513. $as_echo "no" >&6; }
  8514. fi
  8515. fi
  8516. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8517. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8518. set dummy ${ncn_progname}; ac_word=$2
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8520. $as_echo_n "checking for $ac_word... " >&6; }
  8521. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8522. $as_echo_n "(cached) " >&6
  8523. else
  8524. if test -n "$OBJCOPY"; then
  8525. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8526. else
  8527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8528. for as_dir in $PATH
  8529. do
  8530. IFS=$as_save_IFS
  8531. test -z "$as_dir" && as_dir=.
  8532. for ac_exec_ext in '' $ac_executable_extensions; do
  8533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8534. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8536. break 2
  8537. fi
  8538. done
  8539. done
  8540. IFS=$as_save_IFS
  8541. fi
  8542. fi
  8543. OBJCOPY=$ac_cv_prog_OBJCOPY
  8544. if test -n "$OBJCOPY"; then
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8546. $as_echo "$OBJCOPY" >&6; }
  8547. else
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8549. $as_echo "no" >&6; }
  8550. fi
  8551. fi
  8552. test -n "$ac_cv_prog_OBJCOPY" && break
  8553. done
  8554. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8555. set dummy objcopy
  8556. if test $build = $host ; then
  8557. OBJCOPY="$2"
  8558. else
  8559. OBJCOPY="${ncn_tool_prefix}$2"
  8560. fi
  8561. fi
  8562. if test -n "$OBJDUMP"; then
  8563. ac_cv_prog_OBJDUMP=$OBJDUMP
  8564. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8565. OBJDUMP=$ac_cv_prog_OBJDUMP
  8566. fi
  8567. if test -n "$ac_cv_prog_OBJDUMP"; then
  8568. for ncn_progname in objdump; do
  8569. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8570. set dummy ${ncn_progname}; ac_word=$2
  8571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8572. $as_echo_n "checking for $ac_word... " >&6; }
  8573. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8574. $as_echo_n "(cached) " >&6
  8575. else
  8576. if test -n "$OBJDUMP"; then
  8577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8578. else
  8579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8580. for as_dir in $PATH
  8581. do
  8582. IFS=$as_save_IFS
  8583. test -z "$as_dir" && as_dir=.
  8584. for ac_exec_ext in '' $ac_executable_extensions; do
  8585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8586. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8588. break 2
  8589. fi
  8590. done
  8591. done
  8592. IFS=$as_save_IFS
  8593. fi
  8594. fi
  8595. OBJDUMP=$ac_cv_prog_OBJDUMP
  8596. if test -n "$OBJDUMP"; then
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8598. $as_echo "$OBJDUMP" >&6; }
  8599. else
  8600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8601. $as_echo "no" >&6; }
  8602. fi
  8603. done
  8604. fi
  8605. for ncn_progname in objdump; do
  8606. if test -n "$ncn_tool_prefix"; then
  8607. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8608. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8610. $as_echo_n "checking for $ac_word... " >&6; }
  8611. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8612. $as_echo_n "(cached) " >&6
  8613. else
  8614. if test -n "$OBJDUMP"; then
  8615. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8616. else
  8617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8618. for as_dir in $PATH
  8619. do
  8620. IFS=$as_save_IFS
  8621. test -z "$as_dir" && as_dir=.
  8622. for ac_exec_ext in '' $ac_executable_extensions; do
  8623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8624. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  8625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8626. break 2
  8627. fi
  8628. done
  8629. done
  8630. IFS=$as_save_IFS
  8631. fi
  8632. fi
  8633. OBJDUMP=$ac_cv_prog_OBJDUMP
  8634. if test -n "$OBJDUMP"; then
  8635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8636. $as_echo "$OBJDUMP" >&6; }
  8637. else
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8639. $as_echo "no" >&6; }
  8640. fi
  8641. fi
  8642. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  8643. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8644. set dummy ${ncn_progname}; ac_word=$2
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8646. $as_echo_n "checking for $ac_word... " >&6; }
  8647. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8648. $as_echo_n "(cached) " >&6
  8649. else
  8650. if test -n "$OBJDUMP"; then
  8651. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8652. else
  8653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8654. for as_dir in $PATH
  8655. do
  8656. IFS=$as_save_IFS
  8657. test -z "$as_dir" && as_dir=.
  8658. for ac_exec_ext in '' $ac_executable_extensions; do
  8659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8660. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8662. break 2
  8663. fi
  8664. done
  8665. done
  8666. IFS=$as_save_IFS
  8667. fi
  8668. fi
  8669. OBJDUMP=$ac_cv_prog_OBJDUMP
  8670. if test -n "$OBJDUMP"; then
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8672. $as_echo "$OBJDUMP" >&6; }
  8673. else
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8675. $as_echo "no" >&6; }
  8676. fi
  8677. fi
  8678. test -n "$ac_cv_prog_OBJDUMP" && break
  8679. done
  8680. if test -z "$ac_cv_prog_OBJDUMP" ; then
  8681. set dummy objdump
  8682. if test $build = $host ; then
  8683. OBJDUMP="$2"
  8684. else
  8685. OBJDUMP="${ncn_tool_prefix}$2"
  8686. fi
  8687. fi
  8688. if test -n "$READELF"; then
  8689. ac_cv_prog_READELF=$READELF
  8690. elif test -n "$ac_cv_prog_READELF"; then
  8691. READELF=$ac_cv_prog_READELF
  8692. fi
  8693. if test -n "$ac_cv_prog_READELF"; then
  8694. for ncn_progname in readelf; do
  8695. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8696. set dummy ${ncn_progname}; ac_word=$2
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8698. $as_echo_n "checking for $ac_word... " >&6; }
  8699. if test "${ac_cv_prog_READELF+set}" = set; then :
  8700. $as_echo_n "(cached) " >&6
  8701. else
  8702. if test -n "$READELF"; then
  8703. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8704. else
  8705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8706. for as_dir in $PATH
  8707. do
  8708. IFS=$as_save_IFS
  8709. test -z "$as_dir" && as_dir=.
  8710. for ac_exec_ext in '' $ac_executable_extensions; do
  8711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8712. ac_cv_prog_READELF="${ncn_progname}"
  8713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8714. break 2
  8715. fi
  8716. done
  8717. done
  8718. IFS=$as_save_IFS
  8719. fi
  8720. fi
  8721. READELF=$ac_cv_prog_READELF
  8722. if test -n "$READELF"; then
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8724. $as_echo "$READELF" >&6; }
  8725. else
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8727. $as_echo "no" >&6; }
  8728. fi
  8729. done
  8730. fi
  8731. for ncn_progname in readelf; do
  8732. if test -n "$ncn_tool_prefix"; then
  8733. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8734. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8736. $as_echo_n "checking for $ac_word... " >&6; }
  8737. if test "${ac_cv_prog_READELF+set}" = set; then :
  8738. $as_echo_n "(cached) " >&6
  8739. else
  8740. if test -n "$READELF"; then
  8741. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8742. else
  8743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8744. for as_dir in $PATH
  8745. do
  8746. IFS=$as_save_IFS
  8747. test -z "$as_dir" && as_dir=.
  8748. for ac_exec_ext in '' $ac_executable_extensions; do
  8749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8750. ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
  8751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8752. break 2
  8753. fi
  8754. done
  8755. done
  8756. IFS=$as_save_IFS
  8757. fi
  8758. fi
  8759. READELF=$ac_cv_prog_READELF
  8760. if test -n "$READELF"; then
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8762. $as_echo "$READELF" >&6; }
  8763. else
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8765. $as_echo "no" >&6; }
  8766. fi
  8767. fi
  8768. if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
  8769. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8770. set dummy ${ncn_progname}; ac_word=$2
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8772. $as_echo_n "checking for $ac_word... " >&6; }
  8773. if test "${ac_cv_prog_READELF+set}" = set; then :
  8774. $as_echo_n "(cached) " >&6
  8775. else
  8776. if test -n "$READELF"; then
  8777. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8778. else
  8779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8780. for as_dir in $PATH
  8781. do
  8782. IFS=$as_save_IFS
  8783. test -z "$as_dir" && as_dir=.
  8784. for ac_exec_ext in '' $ac_executable_extensions; do
  8785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8786. ac_cv_prog_READELF="${ncn_progname}"
  8787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8788. break 2
  8789. fi
  8790. done
  8791. done
  8792. IFS=$as_save_IFS
  8793. fi
  8794. fi
  8795. READELF=$ac_cv_prog_READELF
  8796. if test -n "$READELF"; then
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8798. $as_echo "$READELF" >&6; }
  8799. else
  8800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8801. $as_echo "no" >&6; }
  8802. fi
  8803. fi
  8804. test -n "$ac_cv_prog_READELF" && break
  8805. done
  8806. if test -z "$ac_cv_prog_READELF" ; then
  8807. set dummy readelf
  8808. if test $build = $host ; then
  8809. READELF="$2"
  8810. else
  8811. READELF="${ncn_tool_prefix}$2"
  8812. fi
  8813. fi
  8814. # Target tools.
  8815. # Check whether --with-build-time-tools was given.
  8816. if test "${with_build_time_tools+set}" = set; then :
  8817. withval=$with_build_time_tools; case x"$withval" in
  8818. x/*) ;;
  8819. *)
  8820. with_build_time_tools=
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  8822. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  8823. ;;
  8824. esac
  8825. else
  8826. with_build_time_tools=
  8827. fi
  8828. if test -n "$CC_FOR_TARGET"; then
  8829. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  8830. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8831. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8832. fi
  8833. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8834. for ncn_progname in cc gcc; do
  8835. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8836. set dummy ${ncn_progname}; ac_word=$2
  8837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8838. $as_echo_n "checking for $ac_word... " >&6; }
  8839. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8840. $as_echo_n "(cached) " >&6
  8841. else
  8842. if test -n "$CC_FOR_TARGET"; then
  8843. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8844. else
  8845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8846. for as_dir in $PATH
  8847. do
  8848. IFS=$as_save_IFS
  8849. test -z "$as_dir" && as_dir=.
  8850. for ac_exec_ext in '' $ac_executable_extensions; do
  8851. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8852. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8854. break 2
  8855. fi
  8856. done
  8857. done
  8858. IFS=$as_save_IFS
  8859. fi
  8860. fi
  8861. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8862. if test -n "$CC_FOR_TARGET"; then
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8864. $as_echo "$CC_FOR_TARGET" >&6; }
  8865. else
  8866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8867. $as_echo "no" >&6; }
  8868. fi
  8869. done
  8870. fi
  8871. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8872. for ncn_progname in cc gcc; do
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8874. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8875. if test -x $with_build_time_tools/${ncn_progname}; then
  8876. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8878. $as_echo "yes" >&6; }
  8879. break
  8880. else
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8882. $as_echo "no" >&6; }
  8883. fi
  8884. done
  8885. fi
  8886. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  8887. for ncn_progname in cc gcc; do
  8888. if test -n "$ncn_target_tool_prefix"; then
  8889. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8890. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8892. $as_echo_n "checking for $ac_word... " >&6; }
  8893. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8894. $as_echo_n "(cached) " >&6
  8895. else
  8896. if test -n "$CC_FOR_TARGET"; then
  8897. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8898. else
  8899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8900. for as_dir in $PATH
  8901. do
  8902. IFS=$as_save_IFS
  8903. test -z "$as_dir" && as_dir=.
  8904. for ac_exec_ext in '' $ac_executable_extensions; do
  8905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8906. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8908. break 2
  8909. fi
  8910. done
  8911. done
  8912. IFS=$as_save_IFS
  8913. fi
  8914. fi
  8915. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8916. if test -n "$CC_FOR_TARGET"; then
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8918. $as_echo "$CC_FOR_TARGET" >&6; }
  8919. else
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8921. $as_echo "no" >&6; }
  8922. fi
  8923. fi
  8924. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  8925. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8926. set dummy ${ncn_progname}; ac_word=$2
  8927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8928. $as_echo_n "checking for $ac_word... " >&6; }
  8929. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8930. $as_echo_n "(cached) " >&6
  8931. else
  8932. if test -n "$CC_FOR_TARGET"; then
  8933. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8934. else
  8935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8936. for as_dir in $PATH
  8937. do
  8938. IFS=$as_save_IFS
  8939. test -z "$as_dir" && as_dir=.
  8940. for ac_exec_ext in '' $ac_executable_extensions; do
  8941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8942. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8944. break 2
  8945. fi
  8946. done
  8947. done
  8948. IFS=$as_save_IFS
  8949. fi
  8950. fi
  8951. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8952. if test -n "$CC_FOR_TARGET"; then
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8954. $as_echo "$CC_FOR_TARGET" >&6; }
  8955. else
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8957. $as_echo "no" >&6; }
  8958. fi
  8959. fi
  8960. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  8961. done
  8962. fi
  8963. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  8964. set dummy cc gcc
  8965. if test $build = $target ; then
  8966. CC_FOR_TARGET="$2"
  8967. else
  8968. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8969. fi
  8970. else
  8971. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  8972. fi
  8973. if test -n "$CXX_FOR_TARGET"; then
  8974. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  8975. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8976. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8977. fi
  8978. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8979. for ncn_progname in c++ g++ cxx gxx; do
  8980. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8981. set dummy ${ncn_progname}; ac_word=$2
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8983. $as_echo_n "checking for $ac_word... " >&6; }
  8984. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8985. $as_echo_n "(cached) " >&6
  8986. else
  8987. if test -n "$CXX_FOR_TARGET"; then
  8988. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8989. else
  8990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8991. for as_dir in $PATH
  8992. do
  8993. IFS=$as_save_IFS
  8994. test -z "$as_dir" && as_dir=.
  8995. for ac_exec_ext in '' $ac_executable_extensions; do
  8996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8997. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  8998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8999. break 2
  9000. fi
  9001. done
  9002. done
  9003. IFS=$as_save_IFS
  9004. fi
  9005. fi
  9006. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9007. if test -n "$CXX_FOR_TARGET"; then
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9009. $as_echo "$CXX_FOR_TARGET" >&6; }
  9010. else
  9011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9012. $as_echo "no" >&6; }
  9013. fi
  9014. done
  9015. fi
  9016. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9017. for ncn_progname in c++ g++ cxx gxx; do
  9018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9019. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9020. if test -x $with_build_time_tools/${ncn_progname}; then
  9021. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9023. $as_echo "yes" >&6; }
  9024. break
  9025. else
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9027. $as_echo "no" >&6; }
  9028. fi
  9029. done
  9030. fi
  9031. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  9032. for ncn_progname in c++ g++ cxx gxx; do
  9033. if test -n "$ncn_target_tool_prefix"; then
  9034. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9035. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9037. $as_echo_n "checking for $ac_word... " >&6; }
  9038. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9039. $as_echo_n "(cached) " >&6
  9040. else
  9041. if test -n "$CXX_FOR_TARGET"; then
  9042. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9043. else
  9044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9045. for as_dir in $PATH
  9046. do
  9047. IFS=$as_save_IFS
  9048. test -z "$as_dir" && as_dir=.
  9049. for ac_exec_ext in '' $ac_executable_extensions; do
  9050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9051. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9053. break 2
  9054. fi
  9055. done
  9056. done
  9057. IFS=$as_save_IFS
  9058. fi
  9059. fi
  9060. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9061. if test -n "$CXX_FOR_TARGET"; then
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9063. $as_echo "$CXX_FOR_TARGET" >&6; }
  9064. else
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9066. $as_echo "no" >&6; }
  9067. fi
  9068. fi
  9069. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  9070. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9071. set dummy ${ncn_progname}; ac_word=$2
  9072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9073. $as_echo_n "checking for $ac_word... " >&6; }
  9074. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9075. $as_echo_n "(cached) " >&6
  9076. else
  9077. if test -n "$CXX_FOR_TARGET"; then
  9078. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9079. else
  9080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9081. for as_dir in $PATH
  9082. do
  9083. IFS=$as_save_IFS
  9084. test -z "$as_dir" && as_dir=.
  9085. for ac_exec_ext in '' $ac_executable_extensions; do
  9086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9087. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9089. break 2
  9090. fi
  9091. done
  9092. done
  9093. IFS=$as_save_IFS
  9094. fi
  9095. fi
  9096. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9097. if test -n "$CXX_FOR_TARGET"; then
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9099. $as_echo "$CXX_FOR_TARGET" >&6; }
  9100. else
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9102. $as_echo "no" >&6; }
  9103. fi
  9104. fi
  9105. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  9106. done
  9107. fi
  9108. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  9109. set dummy c++ g++ cxx gxx
  9110. if test $build = $target ; then
  9111. CXX_FOR_TARGET="$2"
  9112. else
  9113. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9114. fi
  9115. else
  9116. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  9117. fi
  9118. if test -n "$GCC_FOR_TARGET"; then
  9119. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  9120. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9121. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9122. fi
  9123. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9124. for ncn_progname in gcc; do
  9125. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9126. set dummy ${ncn_progname}; ac_word=$2
  9127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9128. $as_echo_n "checking for $ac_word... " >&6; }
  9129. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9130. $as_echo_n "(cached) " >&6
  9131. else
  9132. if test -n "$GCC_FOR_TARGET"; then
  9133. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9134. else
  9135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9136. for as_dir in $PATH
  9137. do
  9138. IFS=$as_save_IFS
  9139. test -z "$as_dir" && as_dir=.
  9140. for ac_exec_ext in '' $ac_executable_extensions; do
  9141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9142. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9144. break 2
  9145. fi
  9146. done
  9147. done
  9148. IFS=$as_save_IFS
  9149. fi
  9150. fi
  9151. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9152. if test -n "$GCC_FOR_TARGET"; then
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9154. $as_echo "$GCC_FOR_TARGET" >&6; }
  9155. else
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9157. $as_echo "no" >&6; }
  9158. fi
  9159. done
  9160. fi
  9161. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9162. for ncn_progname in gcc; do
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9164. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9165. if test -x $with_build_time_tools/${ncn_progname}; then
  9166. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9168. $as_echo "yes" >&6; }
  9169. break
  9170. else
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9172. $as_echo "no" >&6; }
  9173. fi
  9174. done
  9175. fi
  9176. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  9177. for ncn_progname in gcc; do
  9178. if test -n "$ncn_target_tool_prefix"; then
  9179. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9180. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9182. $as_echo_n "checking for $ac_word... " >&6; }
  9183. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9184. $as_echo_n "(cached) " >&6
  9185. else
  9186. if test -n "$GCC_FOR_TARGET"; then
  9187. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9188. else
  9189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9190. for as_dir in $PATH
  9191. do
  9192. IFS=$as_save_IFS
  9193. test -z "$as_dir" && as_dir=.
  9194. for ac_exec_ext in '' $ac_executable_extensions; do
  9195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9196. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9198. break 2
  9199. fi
  9200. done
  9201. done
  9202. IFS=$as_save_IFS
  9203. fi
  9204. fi
  9205. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9206. if test -n "$GCC_FOR_TARGET"; then
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9208. $as_echo "$GCC_FOR_TARGET" >&6; }
  9209. else
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9211. $as_echo "no" >&6; }
  9212. fi
  9213. fi
  9214. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  9215. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9216. set dummy ${ncn_progname}; ac_word=$2
  9217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9218. $as_echo_n "checking for $ac_word... " >&6; }
  9219. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9220. $as_echo_n "(cached) " >&6
  9221. else
  9222. if test -n "$GCC_FOR_TARGET"; then
  9223. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9224. else
  9225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9226. for as_dir in $PATH
  9227. do
  9228. IFS=$as_save_IFS
  9229. test -z "$as_dir" && as_dir=.
  9230. for ac_exec_ext in '' $ac_executable_extensions; do
  9231. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9232. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9234. break 2
  9235. fi
  9236. done
  9237. done
  9238. IFS=$as_save_IFS
  9239. fi
  9240. fi
  9241. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9242. if test -n "$GCC_FOR_TARGET"; then
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9244. $as_echo "$GCC_FOR_TARGET" >&6; }
  9245. else
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9247. $as_echo "no" >&6; }
  9248. fi
  9249. fi
  9250. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  9251. done
  9252. fi
  9253. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  9254. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  9255. else
  9256. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  9257. fi
  9258. if test -n "$GCJ_FOR_TARGET"; then
  9259. ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
  9260. elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9261. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9262. fi
  9263. if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9264. for ncn_progname in gcj; do
  9265. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9266. set dummy ${ncn_progname}; ac_word=$2
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9268. $as_echo_n "checking for $ac_word... " >&6; }
  9269. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9270. $as_echo_n "(cached) " >&6
  9271. else
  9272. if test -n "$GCJ_FOR_TARGET"; then
  9273. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9274. else
  9275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9276. for as_dir in $PATH
  9277. do
  9278. IFS=$as_save_IFS
  9279. test -z "$as_dir" && as_dir=.
  9280. for ac_exec_ext in '' $ac_executable_extensions; do
  9281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9282. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9284. break 2
  9285. fi
  9286. done
  9287. done
  9288. IFS=$as_save_IFS
  9289. fi
  9290. fi
  9291. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9292. if test -n "$GCJ_FOR_TARGET"; then
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9294. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9295. else
  9296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9297. $as_echo "no" >&6; }
  9298. fi
  9299. done
  9300. fi
  9301. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9302. for ncn_progname in gcj; do
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9304. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9305. if test -x $with_build_time_tools/${ncn_progname}; then
  9306. ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9308. $as_echo "yes" >&6; }
  9309. break
  9310. else
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9312. $as_echo "no" >&6; }
  9313. fi
  9314. done
  9315. fi
  9316. if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9317. for ncn_progname in gcj; do
  9318. if test -n "$ncn_target_tool_prefix"; then
  9319. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9320. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9322. $as_echo_n "checking for $ac_word... " >&6; }
  9323. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. if test -n "$GCJ_FOR_TARGET"; then
  9327. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9328. else
  9329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9330. for as_dir in $PATH
  9331. do
  9332. IFS=$as_save_IFS
  9333. test -z "$as_dir" && as_dir=.
  9334. for ac_exec_ext in '' $ac_executable_extensions; do
  9335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9336. ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9338. break 2
  9339. fi
  9340. done
  9341. done
  9342. IFS=$as_save_IFS
  9343. fi
  9344. fi
  9345. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9346. if test -n "$GCJ_FOR_TARGET"; then
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9348. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9349. else
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9351. $as_echo "no" >&6; }
  9352. fi
  9353. fi
  9354. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
  9355. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9356. set dummy ${ncn_progname}; ac_word=$2
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9358. $as_echo_n "checking for $ac_word... " >&6; }
  9359. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9360. $as_echo_n "(cached) " >&6
  9361. else
  9362. if test -n "$GCJ_FOR_TARGET"; then
  9363. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9364. else
  9365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9366. for as_dir in $PATH
  9367. do
  9368. IFS=$as_save_IFS
  9369. test -z "$as_dir" && as_dir=.
  9370. for ac_exec_ext in '' $ac_executable_extensions; do
  9371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9372. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9374. break 2
  9375. fi
  9376. done
  9377. done
  9378. IFS=$as_save_IFS
  9379. fi
  9380. fi
  9381. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9382. if test -n "$GCJ_FOR_TARGET"; then
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9384. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9385. else
  9386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9387. $as_echo "no" >&6; }
  9388. fi
  9389. fi
  9390. test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
  9391. done
  9392. fi
  9393. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
  9394. set dummy gcj
  9395. if test $build = $target ; then
  9396. GCJ_FOR_TARGET="$2"
  9397. else
  9398. GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9399. fi
  9400. else
  9401. GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
  9402. fi
  9403. if test -n "$GFORTRAN_FOR_TARGET"; then
  9404. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9405. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9406. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9407. fi
  9408. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9409. for ncn_progname in gfortran; do
  9410. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9411. set dummy ${ncn_progname}; ac_word=$2
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9413. $as_echo_n "checking for $ac_word... " >&6; }
  9414. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9415. $as_echo_n "(cached) " >&6
  9416. else
  9417. if test -n "$GFORTRAN_FOR_TARGET"; then
  9418. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9419. else
  9420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9421. for as_dir in $PATH
  9422. do
  9423. IFS=$as_save_IFS
  9424. test -z "$as_dir" && as_dir=.
  9425. for ac_exec_ext in '' $ac_executable_extensions; do
  9426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9427. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9429. break 2
  9430. fi
  9431. done
  9432. done
  9433. IFS=$as_save_IFS
  9434. fi
  9435. fi
  9436. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9437. if test -n "$GFORTRAN_FOR_TARGET"; then
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9439. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9440. else
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9442. $as_echo "no" >&6; }
  9443. fi
  9444. done
  9445. fi
  9446. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9447. for ncn_progname in gfortran; do
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9449. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9450. if test -x $with_build_time_tools/${ncn_progname}; then
  9451. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9453. $as_echo "yes" >&6; }
  9454. break
  9455. else
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9457. $as_echo "no" >&6; }
  9458. fi
  9459. done
  9460. fi
  9461. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9462. for ncn_progname in gfortran; do
  9463. if test -n "$ncn_target_tool_prefix"; then
  9464. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9465. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9467. $as_echo_n "checking for $ac_word... " >&6; }
  9468. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9469. $as_echo_n "(cached) " >&6
  9470. else
  9471. if test -n "$GFORTRAN_FOR_TARGET"; then
  9472. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9473. else
  9474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9475. for as_dir in $PATH
  9476. do
  9477. IFS=$as_save_IFS
  9478. test -z "$as_dir" && as_dir=.
  9479. for ac_exec_ext in '' $ac_executable_extensions; do
  9480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9481. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9483. break 2
  9484. fi
  9485. done
  9486. done
  9487. IFS=$as_save_IFS
  9488. fi
  9489. fi
  9490. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9491. if test -n "$GFORTRAN_FOR_TARGET"; then
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9493. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9494. else
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9496. $as_echo "no" >&6; }
  9497. fi
  9498. fi
  9499. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9500. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9501. set dummy ${ncn_progname}; ac_word=$2
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9503. $as_echo_n "checking for $ac_word... " >&6; }
  9504. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9505. $as_echo_n "(cached) " >&6
  9506. else
  9507. if test -n "$GFORTRAN_FOR_TARGET"; then
  9508. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9509. else
  9510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9511. for as_dir in $PATH
  9512. do
  9513. IFS=$as_save_IFS
  9514. test -z "$as_dir" && as_dir=.
  9515. for ac_exec_ext in '' $ac_executable_extensions; do
  9516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9517. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9519. break 2
  9520. fi
  9521. done
  9522. done
  9523. IFS=$as_save_IFS
  9524. fi
  9525. fi
  9526. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9527. if test -n "$GFORTRAN_FOR_TARGET"; then
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9529. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9530. else
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9532. $as_echo "no" >&6; }
  9533. fi
  9534. fi
  9535. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9536. done
  9537. fi
  9538. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9539. set dummy gfortran
  9540. if test $build = $target ; then
  9541. GFORTRAN_FOR_TARGET="$2"
  9542. else
  9543. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9544. fi
  9545. else
  9546. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9547. fi
  9548. if test -n "$GOC_FOR_TARGET"; then
  9549. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9550. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9551. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9552. fi
  9553. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9554. for ncn_progname in gccgo; do
  9555. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9556. set dummy ${ncn_progname}; ac_word=$2
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9558. $as_echo_n "checking for $ac_word... " >&6; }
  9559. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9560. $as_echo_n "(cached) " >&6
  9561. else
  9562. if test -n "$GOC_FOR_TARGET"; then
  9563. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9564. else
  9565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9566. for as_dir in $PATH
  9567. do
  9568. IFS=$as_save_IFS
  9569. test -z "$as_dir" && as_dir=.
  9570. for ac_exec_ext in '' $ac_executable_extensions; do
  9571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9572. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9574. break 2
  9575. fi
  9576. done
  9577. done
  9578. IFS=$as_save_IFS
  9579. fi
  9580. fi
  9581. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9582. if test -n "$GOC_FOR_TARGET"; then
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9584. $as_echo "$GOC_FOR_TARGET" >&6; }
  9585. else
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9587. $as_echo "no" >&6; }
  9588. fi
  9589. done
  9590. fi
  9591. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9592. for ncn_progname in gccgo; do
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9594. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9595. if test -x $with_build_time_tools/${ncn_progname}; then
  9596. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9598. $as_echo "yes" >&6; }
  9599. break
  9600. else
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9602. $as_echo "no" >&6; }
  9603. fi
  9604. done
  9605. fi
  9606. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9607. for ncn_progname in gccgo; do
  9608. if test -n "$ncn_target_tool_prefix"; then
  9609. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9610. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9612. $as_echo_n "checking for $ac_word... " >&6; }
  9613. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9614. $as_echo_n "(cached) " >&6
  9615. else
  9616. if test -n "$GOC_FOR_TARGET"; then
  9617. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9618. else
  9619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9620. for as_dir in $PATH
  9621. do
  9622. IFS=$as_save_IFS
  9623. test -z "$as_dir" && as_dir=.
  9624. for ac_exec_ext in '' $ac_executable_extensions; do
  9625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9626. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9628. break 2
  9629. fi
  9630. done
  9631. done
  9632. IFS=$as_save_IFS
  9633. fi
  9634. fi
  9635. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9636. if test -n "$GOC_FOR_TARGET"; then
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9638. $as_echo "$GOC_FOR_TARGET" >&6; }
  9639. else
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9641. $as_echo "no" >&6; }
  9642. fi
  9643. fi
  9644. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  9645. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9646. set dummy ${ncn_progname}; ac_word=$2
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9648. $as_echo_n "checking for $ac_word... " >&6; }
  9649. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9650. $as_echo_n "(cached) " >&6
  9651. else
  9652. if test -n "$GOC_FOR_TARGET"; then
  9653. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9654. else
  9655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9656. for as_dir in $PATH
  9657. do
  9658. IFS=$as_save_IFS
  9659. test -z "$as_dir" && as_dir=.
  9660. for ac_exec_ext in '' $ac_executable_extensions; do
  9661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9662. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9664. break 2
  9665. fi
  9666. done
  9667. done
  9668. IFS=$as_save_IFS
  9669. fi
  9670. fi
  9671. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9672. if test -n "$GOC_FOR_TARGET"; then
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9674. $as_echo "$GOC_FOR_TARGET" >&6; }
  9675. else
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9677. $as_echo "no" >&6; }
  9678. fi
  9679. fi
  9680. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  9681. done
  9682. fi
  9683. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  9684. set dummy gccgo
  9685. if test $build = $target ; then
  9686. GOC_FOR_TARGET="$2"
  9687. else
  9688. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9689. fi
  9690. else
  9691. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  9692. fi
  9693. cat > conftest.c << \EOF
  9694. #ifdef __GNUC__
  9695. gcc_yay;
  9696. #endif
  9697. EOF
  9698. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  9699. have_gcc_for_target=yes
  9700. else
  9701. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  9702. have_gcc_for_target=no
  9703. fi
  9704. rm conftest.c
  9705. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9706. if test -n "$with_build_time_tools"; then
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  9708. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  9709. if test -x $with_build_time_tools/ar; then
  9710. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  9711. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  9713. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  9714. else
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9716. $as_echo "no" >&6; }
  9717. fi
  9718. elif test $build != $host && test $have_gcc_for_target = yes; then
  9719. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  9720. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  9721. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9722. fi
  9723. fi
  9724. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9725. # Extract the first word of "ar", so it can be a program name with args.
  9726. set dummy ar; ac_word=$2
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9728. $as_echo_n "checking for $ac_word... " >&6; }
  9729. if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
  9730. $as_echo_n "(cached) " >&6
  9731. else
  9732. case $AR_FOR_TARGET in
  9733. [\\/]* | ?:[\\/]*)
  9734. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  9735. ;;
  9736. *)
  9737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9738. for as_dir in $gcc_cv_tool_dirs
  9739. do
  9740. IFS=$as_save_IFS
  9741. test -z "$as_dir" && as_dir=.
  9742. for ac_exec_ext in '' $ac_executable_extensions; do
  9743. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9744. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9746. break 2
  9747. fi
  9748. done
  9749. done
  9750. IFS=$as_save_IFS
  9751. ;;
  9752. esac
  9753. fi
  9754. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9755. if test -n "$AR_FOR_TARGET"; then
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9757. $as_echo "$AR_FOR_TARGET" >&6; }
  9758. else
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. fi
  9762. fi
  9763. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9764. if test -n "$AR_FOR_TARGET"; then
  9765. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  9766. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9767. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9768. fi
  9769. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9770. for ncn_progname in ar; do
  9771. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9772. set dummy ${ncn_progname}; ac_word=$2
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9774. $as_echo_n "checking for $ac_word... " >&6; }
  9775. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9776. $as_echo_n "(cached) " >&6
  9777. else
  9778. if test -n "$AR_FOR_TARGET"; then
  9779. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9780. else
  9781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9782. for as_dir in $PATH
  9783. do
  9784. IFS=$as_save_IFS
  9785. test -z "$as_dir" && as_dir=.
  9786. for ac_exec_ext in '' $ac_executable_extensions; do
  9787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9788. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9790. break 2
  9791. fi
  9792. done
  9793. done
  9794. IFS=$as_save_IFS
  9795. fi
  9796. fi
  9797. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9798. if test -n "$AR_FOR_TARGET"; then
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9800. $as_echo "$AR_FOR_TARGET" >&6; }
  9801. else
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9803. $as_echo "no" >&6; }
  9804. fi
  9805. done
  9806. fi
  9807. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9808. for ncn_progname in ar; do
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9810. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9811. if test -x $with_build_time_tools/${ncn_progname}; then
  9812. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9814. $as_echo "yes" >&6; }
  9815. break
  9816. else
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9818. $as_echo "no" >&6; }
  9819. fi
  9820. done
  9821. fi
  9822. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  9823. for ncn_progname in ar; do
  9824. if test -n "$ncn_target_tool_prefix"; then
  9825. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9826. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9828. $as_echo_n "checking for $ac_word... " >&6; }
  9829. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9830. $as_echo_n "(cached) " >&6
  9831. else
  9832. if test -n "$AR_FOR_TARGET"; then
  9833. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9834. else
  9835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9836. for as_dir in $PATH
  9837. do
  9838. IFS=$as_save_IFS
  9839. test -z "$as_dir" && as_dir=.
  9840. for ac_exec_ext in '' $ac_executable_extensions; do
  9841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9842. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9844. break 2
  9845. fi
  9846. done
  9847. done
  9848. IFS=$as_save_IFS
  9849. fi
  9850. fi
  9851. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9852. if test -n "$AR_FOR_TARGET"; then
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9854. $as_echo "$AR_FOR_TARGET" >&6; }
  9855. else
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9857. $as_echo "no" >&6; }
  9858. fi
  9859. fi
  9860. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  9861. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9862. set dummy ${ncn_progname}; ac_word=$2
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9864. $as_echo_n "checking for $ac_word... " >&6; }
  9865. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. if test -n "$AR_FOR_TARGET"; then
  9869. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9870. else
  9871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9872. for as_dir in $PATH
  9873. do
  9874. IFS=$as_save_IFS
  9875. test -z "$as_dir" && as_dir=.
  9876. for ac_exec_ext in '' $ac_executable_extensions; do
  9877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9878. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9880. break 2
  9881. fi
  9882. done
  9883. done
  9884. IFS=$as_save_IFS
  9885. fi
  9886. fi
  9887. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9888. if test -n "$AR_FOR_TARGET"; then
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9890. $as_echo "$AR_FOR_TARGET" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. fi
  9896. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  9897. done
  9898. fi
  9899. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  9900. set dummy ar
  9901. if test $build = $target ; then
  9902. AR_FOR_TARGET="$2"
  9903. else
  9904. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9905. fi
  9906. else
  9907. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  9908. fi
  9909. else
  9910. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9911. fi
  9912. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9913. if test -n "$with_build_time_tools"; then
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  9915. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  9916. if test -x $with_build_time_tools/as; then
  9917. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  9918. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  9920. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  9921. else
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9923. $as_echo "no" >&6; }
  9924. fi
  9925. elif test $build != $host && test $have_gcc_for_target = yes; then
  9926. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  9927. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  9928. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9929. fi
  9930. fi
  9931. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9932. # Extract the first word of "as", so it can be a program name with args.
  9933. set dummy as; ac_word=$2
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9935. $as_echo_n "checking for $ac_word... " >&6; }
  9936. if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
  9937. $as_echo_n "(cached) " >&6
  9938. else
  9939. case $AS_FOR_TARGET in
  9940. [\\/]* | ?:[\\/]*)
  9941. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  9942. ;;
  9943. *)
  9944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9945. for as_dir in $gcc_cv_tool_dirs
  9946. do
  9947. IFS=$as_save_IFS
  9948. test -z "$as_dir" && as_dir=.
  9949. for ac_exec_ext in '' $ac_executable_extensions; do
  9950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9951. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9953. break 2
  9954. fi
  9955. done
  9956. done
  9957. IFS=$as_save_IFS
  9958. ;;
  9959. esac
  9960. fi
  9961. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9962. if test -n "$AS_FOR_TARGET"; then
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9964. $as_echo "$AS_FOR_TARGET" >&6; }
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969. fi
  9970. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9971. if test -n "$AS_FOR_TARGET"; then
  9972. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  9973. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9974. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9975. fi
  9976. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9977. for ncn_progname in as; do
  9978. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9979. set dummy ${ncn_progname}; ac_word=$2
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9981. $as_echo_n "checking for $ac_word... " >&6; }
  9982. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9983. $as_echo_n "(cached) " >&6
  9984. else
  9985. if test -n "$AS_FOR_TARGET"; then
  9986. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9987. else
  9988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9989. for as_dir in $PATH
  9990. do
  9991. IFS=$as_save_IFS
  9992. test -z "$as_dir" && as_dir=.
  9993. for ac_exec_ext in '' $ac_executable_extensions; do
  9994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9995. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9997. break 2
  9998. fi
  9999. done
  10000. done
  10001. IFS=$as_save_IFS
  10002. fi
  10003. fi
  10004. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10005. if test -n "$AS_FOR_TARGET"; then
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10007. $as_echo "$AS_FOR_TARGET" >&6; }
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10010. $as_echo "no" >&6; }
  10011. fi
  10012. done
  10013. fi
  10014. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10015. for ncn_progname in as; do
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10017. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10018. if test -x $with_build_time_tools/${ncn_progname}; then
  10019. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10021. $as_echo "yes" >&6; }
  10022. break
  10023. else
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10025. $as_echo "no" >&6; }
  10026. fi
  10027. done
  10028. fi
  10029. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  10030. for ncn_progname in as; do
  10031. if test -n "$ncn_target_tool_prefix"; then
  10032. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10033. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10035. $as_echo_n "checking for $ac_word... " >&6; }
  10036. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  10037. $as_echo_n "(cached) " >&6
  10038. else
  10039. if test -n "$AS_FOR_TARGET"; then
  10040. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10041. else
  10042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10043. for as_dir in $PATH
  10044. do
  10045. IFS=$as_save_IFS
  10046. test -z "$as_dir" && as_dir=.
  10047. for ac_exec_ext in '' $ac_executable_extensions; do
  10048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10049. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10051. break 2
  10052. fi
  10053. done
  10054. done
  10055. IFS=$as_save_IFS
  10056. fi
  10057. fi
  10058. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10059. if test -n "$AS_FOR_TARGET"; then
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10061. $as_echo "$AS_FOR_TARGET" >&6; }
  10062. else
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10064. $as_echo "no" >&6; }
  10065. fi
  10066. fi
  10067. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  10068. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10069. set dummy ${ncn_progname}; ac_word=$2
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10071. $as_echo_n "checking for $ac_word... " >&6; }
  10072. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. if test -n "$AS_FOR_TARGET"; then
  10076. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10077. else
  10078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10079. for as_dir in $PATH
  10080. do
  10081. IFS=$as_save_IFS
  10082. test -z "$as_dir" && as_dir=.
  10083. for ac_exec_ext in '' $ac_executable_extensions; do
  10084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10085. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  10086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10087. break 2
  10088. fi
  10089. done
  10090. done
  10091. IFS=$as_save_IFS
  10092. fi
  10093. fi
  10094. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10095. if test -n "$AS_FOR_TARGET"; then
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10097. $as_echo "$AS_FOR_TARGET" >&6; }
  10098. else
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10100. $as_echo "no" >&6; }
  10101. fi
  10102. fi
  10103. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  10104. done
  10105. fi
  10106. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  10107. set dummy as
  10108. if test $build = $target ; then
  10109. AS_FOR_TARGET="$2"
  10110. else
  10111. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10112. fi
  10113. else
  10114. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  10115. fi
  10116. else
  10117. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  10118. fi
  10119. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10120. if test -n "$with_build_time_tools"; then
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  10122. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  10123. if test -x $with_build_time_tools/dlltool; then
  10124. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  10125. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  10127. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  10128. else
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10130. $as_echo "no" >&6; }
  10131. fi
  10132. elif test $build != $host && test $have_gcc_for_target = yes; then
  10133. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  10134. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  10135. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10136. fi
  10137. fi
  10138. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10139. # Extract the first word of "dlltool", so it can be a program name with args.
  10140. set dummy dlltool; ac_word=$2
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10142. $as_echo_n "checking for $ac_word... " >&6; }
  10143. if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. case $DLLTOOL_FOR_TARGET in
  10147. [\\/]* | ?:[\\/]*)
  10148. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  10149. ;;
  10150. *)
  10151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10152. for as_dir in $gcc_cv_tool_dirs
  10153. do
  10154. IFS=$as_save_IFS
  10155. test -z "$as_dir" && as_dir=.
  10156. for ac_exec_ext in '' $ac_executable_extensions; do
  10157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10158. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10160. break 2
  10161. fi
  10162. done
  10163. done
  10164. IFS=$as_save_IFS
  10165. ;;
  10166. esac
  10167. fi
  10168. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10169. if test -n "$DLLTOOL_FOR_TARGET"; then
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10171. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10172. else
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10174. $as_echo "no" >&6; }
  10175. fi
  10176. fi
  10177. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10178. if test -n "$DLLTOOL_FOR_TARGET"; then
  10179. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10180. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10181. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10182. fi
  10183. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10184. for ncn_progname in dlltool; do
  10185. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10186. set dummy ${ncn_progname}; ac_word=$2
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10188. $as_echo_n "checking for $ac_word... " >&6; }
  10189. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10190. $as_echo_n "(cached) " >&6
  10191. else
  10192. if test -n "$DLLTOOL_FOR_TARGET"; then
  10193. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10194. else
  10195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10196. for as_dir in $PATH
  10197. do
  10198. IFS=$as_save_IFS
  10199. test -z "$as_dir" && as_dir=.
  10200. for ac_exec_ext in '' $ac_executable_extensions; do
  10201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10202. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10204. break 2
  10205. fi
  10206. done
  10207. done
  10208. IFS=$as_save_IFS
  10209. fi
  10210. fi
  10211. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10212. if test -n "$DLLTOOL_FOR_TARGET"; then
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10214. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10215. else
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10217. $as_echo "no" >&6; }
  10218. fi
  10219. done
  10220. fi
  10221. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10222. for ncn_progname in dlltool; do
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10224. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10225. if test -x $with_build_time_tools/${ncn_progname}; then
  10226. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10228. $as_echo "yes" >&6; }
  10229. break
  10230. else
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10232. $as_echo "no" >&6; }
  10233. fi
  10234. done
  10235. fi
  10236. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10237. for ncn_progname in dlltool; do
  10238. if test -n "$ncn_target_tool_prefix"; then
  10239. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10240. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10242. $as_echo_n "checking for $ac_word... " >&6; }
  10243. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. if test -n "$DLLTOOL_FOR_TARGET"; then
  10247. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10248. else
  10249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10250. for as_dir in $PATH
  10251. do
  10252. IFS=$as_save_IFS
  10253. test -z "$as_dir" && as_dir=.
  10254. for ac_exec_ext in '' $ac_executable_extensions; do
  10255. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10256. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10258. break 2
  10259. fi
  10260. done
  10261. done
  10262. IFS=$as_save_IFS
  10263. fi
  10264. fi
  10265. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10266. if test -n "$DLLTOOL_FOR_TARGET"; then
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10268. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10269. else
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10271. $as_echo "no" >&6; }
  10272. fi
  10273. fi
  10274. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  10275. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10276. set dummy ${ncn_progname}; ac_word=$2
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10278. $as_echo_n "checking for $ac_word... " >&6; }
  10279. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10280. $as_echo_n "(cached) " >&6
  10281. else
  10282. if test -n "$DLLTOOL_FOR_TARGET"; then
  10283. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10284. else
  10285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10286. for as_dir in $PATH
  10287. do
  10288. IFS=$as_save_IFS
  10289. test -z "$as_dir" && as_dir=.
  10290. for ac_exec_ext in '' $ac_executable_extensions; do
  10291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10292. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10294. break 2
  10295. fi
  10296. done
  10297. done
  10298. IFS=$as_save_IFS
  10299. fi
  10300. fi
  10301. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10302. if test -n "$DLLTOOL_FOR_TARGET"; then
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10304. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10305. else
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10307. $as_echo "no" >&6; }
  10308. fi
  10309. fi
  10310. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10311. done
  10312. fi
  10313. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10314. set dummy dlltool
  10315. if test $build = $target ; then
  10316. DLLTOOL_FOR_TARGET="$2"
  10317. else
  10318. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10319. fi
  10320. else
  10321. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10322. fi
  10323. else
  10324. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10325. fi
  10326. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10327. if test -n "$with_build_time_tools"; then
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10329. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10330. if test -x $with_build_time_tools/ld; then
  10331. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10332. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10334. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10335. else
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10337. $as_echo "no" >&6; }
  10338. fi
  10339. elif test $build != $host && test $have_gcc_for_target = yes; then
  10340. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10341. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10342. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10343. fi
  10344. fi
  10345. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10346. # Extract the first word of "ld", so it can be a program name with args.
  10347. set dummy ld; ac_word=$2
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10349. $as_echo_n "checking for $ac_word... " >&6; }
  10350. if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
  10351. $as_echo_n "(cached) " >&6
  10352. else
  10353. case $LD_FOR_TARGET in
  10354. [\\/]* | ?:[\\/]*)
  10355. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10356. ;;
  10357. *)
  10358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10359. for as_dir in $gcc_cv_tool_dirs
  10360. do
  10361. IFS=$as_save_IFS
  10362. test -z "$as_dir" && as_dir=.
  10363. for ac_exec_ext in '' $ac_executable_extensions; do
  10364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10365. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10367. break 2
  10368. fi
  10369. done
  10370. done
  10371. IFS=$as_save_IFS
  10372. ;;
  10373. esac
  10374. fi
  10375. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10376. if test -n "$LD_FOR_TARGET"; then
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10378. $as_echo "$LD_FOR_TARGET" >&6; }
  10379. else
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10381. $as_echo "no" >&6; }
  10382. fi
  10383. fi
  10384. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10385. if test -n "$LD_FOR_TARGET"; then
  10386. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10387. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10388. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10389. fi
  10390. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10391. for ncn_progname in ld; do
  10392. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10393. set dummy ${ncn_progname}; ac_word=$2
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10395. $as_echo_n "checking for $ac_word... " >&6; }
  10396. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10397. $as_echo_n "(cached) " >&6
  10398. else
  10399. if test -n "$LD_FOR_TARGET"; then
  10400. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10401. else
  10402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10403. for as_dir in $PATH
  10404. do
  10405. IFS=$as_save_IFS
  10406. test -z "$as_dir" && as_dir=.
  10407. for ac_exec_ext in '' $ac_executable_extensions; do
  10408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10409. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10411. break 2
  10412. fi
  10413. done
  10414. done
  10415. IFS=$as_save_IFS
  10416. fi
  10417. fi
  10418. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10419. if test -n "$LD_FOR_TARGET"; then
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10421. $as_echo "$LD_FOR_TARGET" >&6; }
  10422. else
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10424. $as_echo "no" >&6; }
  10425. fi
  10426. done
  10427. fi
  10428. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10429. for ncn_progname in ld; do
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10431. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10432. if test -x $with_build_time_tools/${ncn_progname}; then
  10433. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10435. $as_echo "yes" >&6; }
  10436. break
  10437. else
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10439. $as_echo "no" >&6; }
  10440. fi
  10441. done
  10442. fi
  10443. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10444. for ncn_progname in ld; do
  10445. if test -n "$ncn_target_tool_prefix"; then
  10446. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10447. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10449. $as_echo_n "checking for $ac_word... " >&6; }
  10450. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10451. $as_echo_n "(cached) " >&6
  10452. else
  10453. if test -n "$LD_FOR_TARGET"; then
  10454. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10455. else
  10456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10457. for as_dir in $PATH
  10458. do
  10459. IFS=$as_save_IFS
  10460. test -z "$as_dir" && as_dir=.
  10461. for ac_exec_ext in '' $ac_executable_extensions; do
  10462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10463. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10465. break 2
  10466. fi
  10467. done
  10468. done
  10469. IFS=$as_save_IFS
  10470. fi
  10471. fi
  10472. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10473. if test -n "$LD_FOR_TARGET"; then
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10475. $as_echo "$LD_FOR_TARGET" >&6; }
  10476. else
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10478. $as_echo "no" >&6; }
  10479. fi
  10480. fi
  10481. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10482. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10483. set dummy ${ncn_progname}; ac_word=$2
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10485. $as_echo_n "checking for $ac_word... " >&6; }
  10486. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. if test -n "$LD_FOR_TARGET"; then
  10490. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10491. else
  10492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10493. for as_dir in $PATH
  10494. do
  10495. IFS=$as_save_IFS
  10496. test -z "$as_dir" && as_dir=.
  10497. for ac_exec_ext in '' $ac_executable_extensions; do
  10498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10499. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10501. break 2
  10502. fi
  10503. done
  10504. done
  10505. IFS=$as_save_IFS
  10506. fi
  10507. fi
  10508. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10509. if test -n "$LD_FOR_TARGET"; then
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10511. $as_echo "$LD_FOR_TARGET" >&6; }
  10512. else
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10514. $as_echo "no" >&6; }
  10515. fi
  10516. fi
  10517. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10518. done
  10519. fi
  10520. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10521. set dummy ld
  10522. if test $build = $target ; then
  10523. LD_FOR_TARGET="$2"
  10524. else
  10525. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10526. fi
  10527. else
  10528. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10529. fi
  10530. else
  10531. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10532. fi
  10533. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10534. if test -n "$with_build_time_tools"; then
  10535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10536. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10537. if test -x $with_build_time_tools/lipo; then
  10538. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10539. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10541. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10542. else
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10544. $as_echo "no" >&6; }
  10545. fi
  10546. elif test $build != $host && test $have_gcc_for_target = yes; then
  10547. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10548. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10549. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10550. fi
  10551. fi
  10552. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10553. # Extract the first word of "lipo", so it can be a program name with args.
  10554. set dummy lipo; ac_word=$2
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10556. $as_echo_n "checking for $ac_word... " >&6; }
  10557. if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. case $LIPO_FOR_TARGET in
  10561. [\\/]* | ?:[\\/]*)
  10562. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10563. ;;
  10564. *)
  10565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10566. for as_dir in $gcc_cv_tool_dirs
  10567. do
  10568. IFS=$as_save_IFS
  10569. test -z "$as_dir" && as_dir=.
  10570. for ac_exec_ext in '' $ac_executable_extensions; do
  10571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10572. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10574. break 2
  10575. fi
  10576. done
  10577. done
  10578. IFS=$as_save_IFS
  10579. ;;
  10580. esac
  10581. fi
  10582. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10583. if test -n "$LIPO_FOR_TARGET"; then
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10585. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10586. else
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10588. $as_echo "no" >&6; }
  10589. fi
  10590. fi
  10591. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10592. if test -n "$LIPO_FOR_TARGET"; then
  10593. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10594. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10595. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10596. fi
  10597. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10598. for ncn_progname in lipo; do
  10599. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10600. set dummy ${ncn_progname}; ac_word=$2
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10602. $as_echo_n "checking for $ac_word... " >&6; }
  10603. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. if test -n "$LIPO_FOR_TARGET"; then
  10607. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10608. else
  10609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10610. for as_dir in $PATH
  10611. do
  10612. IFS=$as_save_IFS
  10613. test -z "$as_dir" && as_dir=.
  10614. for ac_exec_ext in '' $ac_executable_extensions; do
  10615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10616. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10618. break 2
  10619. fi
  10620. done
  10621. done
  10622. IFS=$as_save_IFS
  10623. fi
  10624. fi
  10625. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10626. if test -n "$LIPO_FOR_TARGET"; then
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10628. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10629. else
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10631. $as_echo "no" >&6; }
  10632. fi
  10633. done
  10634. fi
  10635. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10636. for ncn_progname in lipo; do
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10638. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10639. if test -x $with_build_time_tools/${ncn_progname}; then
  10640. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10642. $as_echo "yes" >&6; }
  10643. break
  10644. else
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10646. $as_echo "no" >&6; }
  10647. fi
  10648. done
  10649. fi
  10650. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10651. for ncn_progname in lipo; do
  10652. if test -n "$ncn_target_tool_prefix"; then
  10653. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10654. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10656. $as_echo_n "checking for $ac_word... " >&6; }
  10657. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. if test -n "$LIPO_FOR_TARGET"; then
  10661. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10662. else
  10663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10664. for as_dir in $PATH
  10665. do
  10666. IFS=$as_save_IFS
  10667. test -z "$as_dir" && as_dir=.
  10668. for ac_exec_ext in '' $ac_executable_extensions; do
  10669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10670. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10672. break 2
  10673. fi
  10674. done
  10675. done
  10676. IFS=$as_save_IFS
  10677. fi
  10678. fi
  10679. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10680. if test -n "$LIPO_FOR_TARGET"; then
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10682. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10683. else
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10685. $as_echo "no" >&6; }
  10686. fi
  10687. fi
  10688. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  10689. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10690. set dummy ${ncn_progname}; ac_word=$2
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10692. $as_echo_n "checking for $ac_word... " >&6; }
  10693. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10694. $as_echo_n "(cached) " >&6
  10695. else
  10696. if test -n "$LIPO_FOR_TARGET"; then
  10697. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10698. else
  10699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10700. for as_dir in $PATH
  10701. do
  10702. IFS=$as_save_IFS
  10703. test -z "$as_dir" && as_dir=.
  10704. for ac_exec_ext in '' $ac_executable_extensions; do
  10705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10706. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10708. break 2
  10709. fi
  10710. done
  10711. done
  10712. IFS=$as_save_IFS
  10713. fi
  10714. fi
  10715. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10716. if test -n "$LIPO_FOR_TARGET"; then
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10718. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10719. else
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10721. $as_echo "no" >&6; }
  10722. fi
  10723. fi
  10724. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  10725. done
  10726. fi
  10727. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  10728. set dummy lipo
  10729. if test $build = $target ; then
  10730. LIPO_FOR_TARGET="$2"
  10731. else
  10732. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10733. fi
  10734. else
  10735. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  10736. fi
  10737. else
  10738. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10739. fi
  10740. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10741. if test -n "$with_build_time_tools"; then
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  10743. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  10744. if test -x $with_build_time_tools/nm; then
  10745. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  10746. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  10748. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  10749. else
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10751. $as_echo "no" >&6; }
  10752. fi
  10753. elif test $build != $host && test $have_gcc_for_target = yes; then
  10754. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  10755. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  10756. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10757. fi
  10758. fi
  10759. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10760. # Extract the first word of "nm", so it can be a program name with args.
  10761. set dummy nm; ac_word=$2
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10763. $as_echo_n "checking for $ac_word... " >&6; }
  10764. if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
  10765. $as_echo_n "(cached) " >&6
  10766. else
  10767. case $NM_FOR_TARGET in
  10768. [\\/]* | ?:[\\/]*)
  10769. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  10770. ;;
  10771. *)
  10772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10773. for as_dir in $gcc_cv_tool_dirs
  10774. do
  10775. IFS=$as_save_IFS
  10776. test -z "$as_dir" && as_dir=.
  10777. for ac_exec_ext in '' $ac_executable_extensions; do
  10778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10779. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10781. break 2
  10782. fi
  10783. done
  10784. done
  10785. IFS=$as_save_IFS
  10786. ;;
  10787. esac
  10788. fi
  10789. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10790. if test -n "$NM_FOR_TARGET"; then
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10792. $as_echo "$NM_FOR_TARGET" >&6; }
  10793. else
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10795. $as_echo "no" >&6; }
  10796. fi
  10797. fi
  10798. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10799. if test -n "$NM_FOR_TARGET"; then
  10800. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  10801. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10802. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10803. fi
  10804. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10805. for ncn_progname in nm; do
  10806. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10807. set dummy ${ncn_progname}; ac_word=$2
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10809. $as_echo_n "checking for $ac_word... " >&6; }
  10810. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10811. $as_echo_n "(cached) " >&6
  10812. else
  10813. if test -n "$NM_FOR_TARGET"; then
  10814. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10815. else
  10816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10817. for as_dir in $PATH
  10818. do
  10819. IFS=$as_save_IFS
  10820. test -z "$as_dir" && as_dir=.
  10821. for ac_exec_ext in '' $ac_executable_extensions; do
  10822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10823. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10825. break 2
  10826. fi
  10827. done
  10828. done
  10829. IFS=$as_save_IFS
  10830. fi
  10831. fi
  10832. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10833. if test -n "$NM_FOR_TARGET"; then
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10835. $as_echo "$NM_FOR_TARGET" >&6; }
  10836. else
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10838. $as_echo "no" >&6; }
  10839. fi
  10840. done
  10841. fi
  10842. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10843. for ncn_progname in nm; do
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10845. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10846. if test -x $with_build_time_tools/${ncn_progname}; then
  10847. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10849. $as_echo "yes" >&6; }
  10850. break
  10851. else
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10853. $as_echo "no" >&6; }
  10854. fi
  10855. done
  10856. fi
  10857. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  10858. for ncn_progname in nm; do
  10859. if test -n "$ncn_target_tool_prefix"; then
  10860. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10861. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10863. $as_echo_n "checking for $ac_word... " >&6; }
  10864. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10865. $as_echo_n "(cached) " >&6
  10866. else
  10867. if test -n "$NM_FOR_TARGET"; then
  10868. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10869. else
  10870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10871. for as_dir in $PATH
  10872. do
  10873. IFS=$as_save_IFS
  10874. test -z "$as_dir" && as_dir=.
  10875. for ac_exec_ext in '' $ac_executable_extensions; do
  10876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10877. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10879. break 2
  10880. fi
  10881. done
  10882. done
  10883. IFS=$as_save_IFS
  10884. fi
  10885. fi
  10886. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10887. if test -n "$NM_FOR_TARGET"; then
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10889. $as_echo "$NM_FOR_TARGET" >&6; }
  10890. else
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10892. $as_echo "no" >&6; }
  10893. fi
  10894. fi
  10895. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  10896. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10897. set dummy ${ncn_progname}; ac_word=$2
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10899. $as_echo_n "checking for $ac_word... " >&6; }
  10900. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10901. $as_echo_n "(cached) " >&6
  10902. else
  10903. if test -n "$NM_FOR_TARGET"; then
  10904. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10905. else
  10906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10907. for as_dir in $PATH
  10908. do
  10909. IFS=$as_save_IFS
  10910. test -z "$as_dir" && as_dir=.
  10911. for ac_exec_ext in '' $ac_executable_extensions; do
  10912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10913. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10915. break 2
  10916. fi
  10917. done
  10918. done
  10919. IFS=$as_save_IFS
  10920. fi
  10921. fi
  10922. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10923. if test -n "$NM_FOR_TARGET"; then
  10924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10925. $as_echo "$NM_FOR_TARGET" >&6; }
  10926. else
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10928. $as_echo "no" >&6; }
  10929. fi
  10930. fi
  10931. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  10932. done
  10933. fi
  10934. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  10935. set dummy nm
  10936. if test $build = $target ; then
  10937. NM_FOR_TARGET="$2"
  10938. else
  10939. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10940. fi
  10941. else
  10942. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  10943. fi
  10944. else
  10945. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10946. fi
  10947. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  10948. if test -n "$with_build_time_tools"; then
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
  10950. $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
  10951. if test -x $with_build_time_tools/objcopy; then
  10952. OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
  10953. ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
  10955. $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
  10956. else
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10958. $as_echo "no" >&6; }
  10959. fi
  10960. elif test $build != $host && test $have_gcc_for_target = yes; then
  10961. OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
  10962. test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
  10963. test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10964. fi
  10965. fi
  10966. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10967. # Extract the first word of "objcopy", so it can be a program name with args.
  10968. set dummy objcopy; ac_word=$2
  10969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10970. $as_echo_n "checking for $ac_word... " >&6; }
  10971. if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
  10972. $as_echo_n "(cached) " >&6
  10973. else
  10974. case $OBJCOPY_FOR_TARGET in
  10975. [\\/]* | ?:[\\/]*)
  10976. ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
  10977. ;;
  10978. *)
  10979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10980. for as_dir in $gcc_cv_tool_dirs
  10981. do
  10982. IFS=$as_save_IFS
  10983. test -z "$as_dir" && as_dir=.
  10984. for ac_exec_ext in '' $ac_executable_extensions; do
  10985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10986. ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10988. break 2
  10989. fi
  10990. done
  10991. done
  10992. IFS=$as_save_IFS
  10993. ;;
  10994. esac
  10995. fi
  10996. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  10997. if test -n "$OBJCOPY_FOR_TARGET"; then
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  10999. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11000. else
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11002. $as_echo "no" >&6; }
  11003. fi
  11004. fi
  11005. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  11006. if test -n "$OBJCOPY_FOR_TARGET"; then
  11007. ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11008. elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11009. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11010. fi
  11011. if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11012. for ncn_progname in objcopy; do
  11013. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11014. set dummy ${ncn_progname}; ac_word=$2
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11016. $as_echo_n "checking for $ac_word... " >&6; }
  11017. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. if test -n "$OBJCOPY_FOR_TARGET"; then
  11021. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11022. else
  11023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11024. for as_dir in $PATH
  11025. do
  11026. IFS=$as_save_IFS
  11027. test -z "$as_dir" && as_dir=.
  11028. for ac_exec_ext in '' $ac_executable_extensions; do
  11029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11030. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11032. break 2
  11033. fi
  11034. done
  11035. done
  11036. IFS=$as_save_IFS
  11037. fi
  11038. fi
  11039. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11040. if test -n "$OBJCOPY_FOR_TARGET"; then
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11042. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11043. else
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11045. $as_echo "no" >&6; }
  11046. fi
  11047. done
  11048. fi
  11049. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11050. for ncn_progname in objcopy; do
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11052. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11053. if test -x $with_build_time_tools/${ncn_progname}; then
  11054. ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11056. $as_echo "yes" >&6; }
  11057. break
  11058. else
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11060. $as_echo "no" >&6; }
  11061. fi
  11062. done
  11063. fi
  11064. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11065. for ncn_progname in objcopy; do
  11066. if test -n "$ncn_target_tool_prefix"; then
  11067. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11068. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11070. $as_echo_n "checking for $ac_word... " >&6; }
  11071. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11072. $as_echo_n "(cached) " >&6
  11073. else
  11074. if test -n "$OBJCOPY_FOR_TARGET"; then
  11075. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11076. else
  11077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11078. for as_dir in $PATH
  11079. do
  11080. IFS=$as_save_IFS
  11081. test -z "$as_dir" && as_dir=.
  11082. for ac_exec_ext in '' $ac_executable_extensions; do
  11083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11084. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11086. break 2
  11087. fi
  11088. done
  11089. done
  11090. IFS=$as_save_IFS
  11091. fi
  11092. fi
  11093. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11094. if test -n "$OBJCOPY_FOR_TARGET"; then
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11096. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11097. else
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11099. $as_echo "no" >&6; }
  11100. fi
  11101. fi
  11102. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
  11103. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11104. set dummy ${ncn_progname}; ac_word=$2
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11106. $as_echo_n "checking for $ac_word... " >&6; }
  11107. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11108. $as_echo_n "(cached) " >&6
  11109. else
  11110. if test -n "$OBJCOPY_FOR_TARGET"; then
  11111. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11112. else
  11113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11114. for as_dir in $PATH
  11115. do
  11116. IFS=$as_save_IFS
  11117. test -z "$as_dir" && as_dir=.
  11118. for ac_exec_ext in '' $ac_executable_extensions; do
  11119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11120. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11122. break 2
  11123. fi
  11124. done
  11125. done
  11126. IFS=$as_save_IFS
  11127. fi
  11128. fi
  11129. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11130. if test -n "$OBJCOPY_FOR_TARGET"; then
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11132. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11133. else
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11135. $as_echo "no" >&6; }
  11136. fi
  11137. fi
  11138. test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
  11139. done
  11140. fi
  11141. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
  11142. set dummy objcopy
  11143. if test $build = $target ; then
  11144. OBJCOPY_FOR_TARGET="$2"
  11145. else
  11146. OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11147. fi
  11148. else
  11149. OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
  11150. fi
  11151. else
  11152. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  11153. fi
  11154. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11155. if test -n "$with_build_time_tools"; then
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  11157. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  11158. if test -x $with_build_time_tools/objdump; then
  11159. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  11160. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  11162. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  11163. else
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11165. $as_echo "no" >&6; }
  11166. fi
  11167. elif test $build != $host && test $have_gcc_for_target = yes; then
  11168. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  11169. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  11170. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11171. fi
  11172. fi
  11173. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11174. # Extract the first word of "objdump", so it can be a program name with args.
  11175. set dummy objdump; ac_word=$2
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11177. $as_echo_n "checking for $ac_word... " >&6; }
  11178. if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. case $OBJDUMP_FOR_TARGET in
  11182. [\\/]* | ?:[\\/]*)
  11183. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  11184. ;;
  11185. *)
  11186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11187. for as_dir in $gcc_cv_tool_dirs
  11188. do
  11189. IFS=$as_save_IFS
  11190. test -z "$as_dir" && as_dir=.
  11191. for ac_exec_ext in '' $ac_executable_extensions; do
  11192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11193. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11195. break 2
  11196. fi
  11197. done
  11198. done
  11199. IFS=$as_save_IFS
  11200. ;;
  11201. esac
  11202. fi
  11203. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11204. if test -n "$OBJDUMP_FOR_TARGET"; then
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11206. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11207. else
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11209. $as_echo "no" >&6; }
  11210. fi
  11211. fi
  11212. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11213. if test -n "$OBJDUMP_FOR_TARGET"; then
  11214. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11215. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11216. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11217. fi
  11218. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11219. for ncn_progname in objdump; do
  11220. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11221. set dummy ${ncn_progname}; ac_word=$2
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11223. $as_echo_n "checking for $ac_word... " >&6; }
  11224. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11225. $as_echo_n "(cached) " >&6
  11226. else
  11227. if test -n "$OBJDUMP_FOR_TARGET"; then
  11228. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11229. else
  11230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11231. for as_dir in $PATH
  11232. do
  11233. IFS=$as_save_IFS
  11234. test -z "$as_dir" && as_dir=.
  11235. for ac_exec_ext in '' $ac_executable_extensions; do
  11236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11237. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11239. break 2
  11240. fi
  11241. done
  11242. done
  11243. IFS=$as_save_IFS
  11244. fi
  11245. fi
  11246. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11247. if test -n "$OBJDUMP_FOR_TARGET"; then
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11249. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11250. else
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11252. $as_echo "no" >&6; }
  11253. fi
  11254. done
  11255. fi
  11256. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11257. for ncn_progname in objdump; do
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11259. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11260. if test -x $with_build_time_tools/${ncn_progname}; then
  11261. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11263. $as_echo "yes" >&6; }
  11264. break
  11265. else
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. $as_echo "no" >&6; }
  11268. fi
  11269. done
  11270. fi
  11271. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11272. for ncn_progname in objdump; do
  11273. if test -n "$ncn_target_tool_prefix"; then
  11274. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11275. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11277. $as_echo_n "checking for $ac_word... " >&6; }
  11278. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11279. $as_echo_n "(cached) " >&6
  11280. else
  11281. if test -n "$OBJDUMP_FOR_TARGET"; then
  11282. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11283. else
  11284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11285. for as_dir in $PATH
  11286. do
  11287. IFS=$as_save_IFS
  11288. test -z "$as_dir" && as_dir=.
  11289. for ac_exec_ext in '' $ac_executable_extensions; do
  11290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11291. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11293. break 2
  11294. fi
  11295. done
  11296. done
  11297. IFS=$as_save_IFS
  11298. fi
  11299. fi
  11300. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11301. if test -n "$OBJDUMP_FOR_TARGET"; then
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11303. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11304. else
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11306. $as_echo "no" >&6; }
  11307. fi
  11308. fi
  11309. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  11310. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11311. set dummy ${ncn_progname}; ac_word=$2
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11313. $as_echo_n "checking for $ac_word... " >&6; }
  11314. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11315. $as_echo_n "(cached) " >&6
  11316. else
  11317. if test -n "$OBJDUMP_FOR_TARGET"; then
  11318. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11319. else
  11320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11321. for as_dir in $PATH
  11322. do
  11323. IFS=$as_save_IFS
  11324. test -z "$as_dir" && as_dir=.
  11325. for ac_exec_ext in '' $ac_executable_extensions; do
  11326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11327. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11329. break 2
  11330. fi
  11331. done
  11332. done
  11333. IFS=$as_save_IFS
  11334. fi
  11335. fi
  11336. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11337. if test -n "$OBJDUMP_FOR_TARGET"; then
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11339. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11340. else
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11342. $as_echo "no" >&6; }
  11343. fi
  11344. fi
  11345. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  11346. done
  11347. fi
  11348. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  11349. set dummy objdump
  11350. if test $build = $target ; then
  11351. OBJDUMP_FOR_TARGET="$2"
  11352. else
  11353. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11354. fi
  11355. else
  11356. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  11357. fi
  11358. else
  11359. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11360. fi
  11361. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11362. if test -n "$with_build_time_tools"; then
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  11364. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  11365. if test -x $with_build_time_tools/ranlib; then
  11366. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  11367. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  11369. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  11370. else
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11372. $as_echo "no" >&6; }
  11373. fi
  11374. elif test $build != $host && test $have_gcc_for_target = yes; then
  11375. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  11376. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  11377. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11378. fi
  11379. fi
  11380. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11381. # Extract the first word of "ranlib", so it can be a program name with args.
  11382. set dummy ranlib; ac_word=$2
  11383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11384. $as_echo_n "checking for $ac_word... " >&6; }
  11385. if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
  11386. $as_echo_n "(cached) " >&6
  11387. else
  11388. case $RANLIB_FOR_TARGET in
  11389. [\\/]* | ?:[\\/]*)
  11390. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  11391. ;;
  11392. *)
  11393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11394. for as_dir in $gcc_cv_tool_dirs
  11395. do
  11396. IFS=$as_save_IFS
  11397. test -z "$as_dir" && as_dir=.
  11398. for ac_exec_ext in '' $ac_executable_extensions; do
  11399. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11400. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11402. break 2
  11403. fi
  11404. done
  11405. done
  11406. IFS=$as_save_IFS
  11407. ;;
  11408. esac
  11409. fi
  11410. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11411. if test -n "$RANLIB_FOR_TARGET"; then
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11413. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11414. else
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11416. $as_echo "no" >&6; }
  11417. fi
  11418. fi
  11419. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11420. if test -n "$RANLIB_FOR_TARGET"; then
  11421. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11422. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11423. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11424. fi
  11425. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11426. for ncn_progname in ranlib; do
  11427. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11428. set dummy ${ncn_progname}; ac_word=$2
  11429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11430. $as_echo_n "checking for $ac_word... " >&6; }
  11431. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11432. $as_echo_n "(cached) " >&6
  11433. else
  11434. if test -n "$RANLIB_FOR_TARGET"; then
  11435. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11436. else
  11437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11438. for as_dir in $PATH
  11439. do
  11440. IFS=$as_save_IFS
  11441. test -z "$as_dir" && as_dir=.
  11442. for ac_exec_ext in '' $ac_executable_extensions; do
  11443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11444. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11446. break 2
  11447. fi
  11448. done
  11449. done
  11450. IFS=$as_save_IFS
  11451. fi
  11452. fi
  11453. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11454. if test -n "$RANLIB_FOR_TARGET"; then
  11455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11456. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11457. else
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459. $as_echo "no" >&6; }
  11460. fi
  11461. done
  11462. fi
  11463. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11464. for ncn_progname in ranlib; do
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11466. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11467. if test -x $with_build_time_tools/${ncn_progname}; then
  11468. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11470. $as_echo "yes" >&6; }
  11471. break
  11472. else
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11474. $as_echo "no" >&6; }
  11475. fi
  11476. done
  11477. fi
  11478. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11479. for ncn_progname in ranlib; do
  11480. if test -n "$ncn_target_tool_prefix"; then
  11481. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11482. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11484. $as_echo_n "checking for $ac_word... " >&6; }
  11485. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11486. $as_echo_n "(cached) " >&6
  11487. else
  11488. if test -n "$RANLIB_FOR_TARGET"; then
  11489. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11490. else
  11491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11492. for as_dir in $PATH
  11493. do
  11494. IFS=$as_save_IFS
  11495. test -z "$as_dir" && as_dir=.
  11496. for ac_exec_ext in '' $ac_executable_extensions; do
  11497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11498. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11500. break 2
  11501. fi
  11502. done
  11503. done
  11504. IFS=$as_save_IFS
  11505. fi
  11506. fi
  11507. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11508. if test -n "$RANLIB_FOR_TARGET"; then
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11510. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11511. else
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11513. $as_echo "no" >&6; }
  11514. fi
  11515. fi
  11516. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11517. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11518. set dummy ${ncn_progname}; ac_word=$2
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11520. $as_echo_n "checking for $ac_word... " >&6; }
  11521. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11522. $as_echo_n "(cached) " >&6
  11523. else
  11524. if test -n "$RANLIB_FOR_TARGET"; then
  11525. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11526. else
  11527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11528. for as_dir in $PATH
  11529. do
  11530. IFS=$as_save_IFS
  11531. test -z "$as_dir" && as_dir=.
  11532. for ac_exec_ext in '' $ac_executable_extensions; do
  11533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11534. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11536. break 2
  11537. fi
  11538. done
  11539. done
  11540. IFS=$as_save_IFS
  11541. fi
  11542. fi
  11543. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11544. if test -n "$RANLIB_FOR_TARGET"; then
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11546. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11547. else
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11549. $as_echo "no" >&6; }
  11550. fi
  11551. fi
  11552. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11553. done
  11554. fi
  11555. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11556. set dummy ranlib
  11557. if test $build = $target ; then
  11558. RANLIB_FOR_TARGET="$2"
  11559. else
  11560. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11561. fi
  11562. else
  11563. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11564. fi
  11565. else
  11566. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11567. fi
  11568. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11569. if test -n "$with_build_time_tools"; then
  11570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
  11571. $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
  11572. if test -x $with_build_time_tools/readelf; then
  11573. READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
  11574. ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
  11576. $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
  11577. else
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11579. $as_echo "no" >&6; }
  11580. fi
  11581. elif test $build != $host && test $have_gcc_for_target = yes; then
  11582. READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
  11583. test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
  11584. test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11585. fi
  11586. fi
  11587. if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11588. # Extract the first word of "readelf", so it can be a program name with args.
  11589. set dummy readelf; ac_word=$2
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11591. $as_echo_n "checking for $ac_word... " >&6; }
  11592. if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
  11593. $as_echo_n "(cached) " >&6
  11594. else
  11595. case $READELF_FOR_TARGET in
  11596. [\\/]* | ?:[\\/]*)
  11597. ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
  11598. ;;
  11599. *)
  11600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11601. for as_dir in $gcc_cv_tool_dirs
  11602. do
  11603. IFS=$as_save_IFS
  11604. test -z "$as_dir" && as_dir=.
  11605. for ac_exec_ext in '' $ac_executable_extensions; do
  11606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11607. ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11609. break 2
  11610. fi
  11611. done
  11612. done
  11613. IFS=$as_save_IFS
  11614. ;;
  11615. esac
  11616. fi
  11617. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11618. if test -n "$READELF_FOR_TARGET"; then
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11620. $as_echo "$READELF_FOR_TARGET" >&6; }
  11621. else
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11623. $as_echo "no" >&6; }
  11624. fi
  11625. fi
  11626. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11627. if test -n "$READELF_FOR_TARGET"; then
  11628. ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11629. elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11630. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11631. fi
  11632. if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11633. for ncn_progname in readelf; do
  11634. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11635. set dummy ${ncn_progname}; ac_word=$2
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11637. $as_echo_n "checking for $ac_word... " >&6; }
  11638. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11639. $as_echo_n "(cached) " >&6
  11640. else
  11641. if test -n "$READELF_FOR_TARGET"; then
  11642. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11643. else
  11644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11645. for as_dir in $PATH
  11646. do
  11647. IFS=$as_save_IFS
  11648. test -z "$as_dir" && as_dir=.
  11649. for ac_exec_ext in '' $ac_executable_extensions; do
  11650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11651. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11653. break 2
  11654. fi
  11655. done
  11656. done
  11657. IFS=$as_save_IFS
  11658. fi
  11659. fi
  11660. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11661. if test -n "$READELF_FOR_TARGET"; then
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11663. $as_echo "$READELF_FOR_TARGET" >&6; }
  11664. else
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11666. $as_echo "no" >&6; }
  11667. fi
  11668. done
  11669. fi
  11670. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11671. for ncn_progname in readelf; do
  11672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11673. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11674. if test -x $with_build_time_tools/${ncn_progname}; then
  11675. ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11677. $as_echo "yes" >&6; }
  11678. break
  11679. else
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11681. $as_echo "no" >&6; }
  11682. fi
  11683. done
  11684. fi
  11685. if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
  11686. for ncn_progname in readelf; do
  11687. if test -n "$ncn_target_tool_prefix"; then
  11688. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11689. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11691. $as_echo_n "checking for $ac_word... " >&6; }
  11692. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11693. $as_echo_n "(cached) " >&6
  11694. else
  11695. if test -n "$READELF_FOR_TARGET"; then
  11696. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11697. else
  11698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11699. for as_dir in $PATH
  11700. do
  11701. IFS=$as_save_IFS
  11702. test -z "$as_dir" && as_dir=.
  11703. for ac_exec_ext in '' $ac_executable_extensions; do
  11704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11705. ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11707. break 2
  11708. fi
  11709. done
  11710. done
  11711. IFS=$as_save_IFS
  11712. fi
  11713. fi
  11714. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11715. if test -n "$READELF_FOR_TARGET"; then
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11717. $as_echo "$READELF_FOR_TARGET" >&6; }
  11718. else
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11720. $as_echo "no" >&6; }
  11721. fi
  11722. fi
  11723. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
  11724. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11725. set dummy ${ncn_progname}; ac_word=$2
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11727. $as_echo_n "checking for $ac_word... " >&6; }
  11728. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11729. $as_echo_n "(cached) " >&6
  11730. else
  11731. if test -n "$READELF_FOR_TARGET"; then
  11732. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11733. else
  11734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11735. for as_dir in $PATH
  11736. do
  11737. IFS=$as_save_IFS
  11738. test -z "$as_dir" && as_dir=.
  11739. for ac_exec_ext in '' $ac_executable_extensions; do
  11740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11741. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11743. break 2
  11744. fi
  11745. done
  11746. done
  11747. IFS=$as_save_IFS
  11748. fi
  11749. fi
  11750. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11751. if test -n "$READELF_FOR_TARGET"; then
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11753. $as_echo "$READELF_FOR_TARGET" >&6; }
  11754. else
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11756. $as_echo "no" >&6; }
  11757. fi
  11758. fi
  11759. test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
  11760. done
  11761. fi
  11762. if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
  11763. set dummy readelf
  11764. if test $build = $target ; then
  11765. READELF_FOR_TARGET="$2"
  11766. else
  11767. READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11768. fi
  11769. else
  11770. READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
  11771. fi
  11772. else
  11773. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11774. fi
  11775. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11776. if test -n "$with_build_time_tools"; then
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  11778. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  11779. if test -x $with_build_time_tools/strip; then
  11780. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  11781. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  11783. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  11784. else
  11785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11786. $as_echo "no" >&6; }
  11787. fi
  11788. elif test $build != $host && test $have_gcc_for_target = yes; then
  11789. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  11790. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  11791. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11792. fi
  11793. fi
  11794. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11795. # Extract the first word of "strip", so it can be a program name with args.
  11796. set dummy strip; ac_word=$2
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11798. $as_echo_n "checking for $ac_word... " >&6; }
  11799. if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
  11800. $as_echo_n "(cached) " >&6
  11801. else
  11802. case $STRIP_FOR_TARGET in
  11803. [\\/]* | ?:[\\/]*)
  11804. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  11805. ;;
  11806. *)
  11807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11808. for as_dir in $gcc_cv_tool_dirs
  11809. do
  11810. IFS=$as_save_IFS
  11811. test -z "$as_dir" && as_dir=.
  11812. for ac_exec_ext in '' $ac_executable_extensions; do
  11813. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11814. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11816. break 2
  11817. fi
  11818. done
  11819. done
  11820. IFS=$as_save_IFS
  11821. ;;
  11822. esac
  11823. fi
  11824. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11825. if test -n "$STRIP_FOR_TARGET"; then
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11827. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11828. else
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11830. $as_echo "no" >&6; }
  11831. fi
  11832. fi
  11833. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11834. if test -n "$STRIP_FOR_TARGET"; then
  11835. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11836. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11837. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11838. fi
  11839. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11840. for ncn_progname in strip; do
  11841. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11842. set dummy ${ncn_progname}; ac_word=$2
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11844. $as_echo_n "checking for $ac_word... " >&6; }
  11845. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11846. $as_echo_n "(cached) " >&6
  11847. else
  11848. if test -n "$STRIP_FOR_TARGET"; then
  11849. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11850. else
  11851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11852. for as_dir in $PATH
  11853. do
  11854. IFS=$as_save_IFS
  11855. test -z "$as_dir" && as_dir=.
  11856. for ac_exec_ext in '' $ac_executable_extensions; do
  11857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11858. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11860. break 2
  11861. fi
  11862. done
  11863. done
  11864. IFS=$as_save_IFS
  11865. fi
  11866. fi
  11867. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11868. if test -n "$STRIP_FOR_TARGET"; then
  11869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11870. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11871. else
  11872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11873. $as_echo "no" >&6; }
  11874. fi
  11875. done
  11876. fi
  11877. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11878. for ncn_progname in strip; do
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11880. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11881. if test -x $with_build_time_tools/${ncn_progname}; then
  11882. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11884. $as_echo "yes" >&6; }
  11885. break
  11886. else
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11888. $as_echo "no" >&6; }
  11889. fi
  11890. done
  11891. fi
  11892. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11893. for ncn_progname in strip; do
  11894. if test -n "$ncn_target_tool_prefix"; then
  11895. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11896. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11898. $as_echo_n "checking for $ac_word... " >&6; }
  11899. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11900. $as_echo_n "(cached) " >&6
  11901. else
  11902. if test -n "$STRIP_FOR_TARGET"; then
  11903. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11904. else
  11905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11906. for as_dir in $PATH
  11907. do
  11908. IFS=$as_save_IFS
  11909. test -z "$as_dir" && as_dir=.
  11910. for ac_exec_ext in '' $ac_executable_extensions; do
  11911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11912. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11914. break 2
  11915. fi
  11916. done
  11917. done
  11918. IFS=$as_save_IFS
  11919. fi
  11920. fi
  11921. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11922. if test -n "$STRIP_FOR_TARGET"; then
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11924. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11925. else
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11927. $as_echo "no" >&6; }
  11928. fi
  11929. fi
  11930. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  11931. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11932. set dummy ${ncn_progname}; ac_word=$2
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11934. $as_echo_n "checking for $ac_word... " >&6; }
  11935. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11936. $as_echo_n "(cached) " >&6
  11937. else
  11938. if test -n "$STRIP_FOR_TARGET"; then
  11939. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11940. else
  11941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11942. for as_dir in $PATH
  11943. do
  11944. IFS=$as_save_IFS
  11945. test -z "$as_dir" && as_dir=.
  11946. for ac_exec_ext in '' $ac_executable_extensions; do
  11947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11948. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11950. break 2
  11951. fi
  11952. done
  11953. done
  11954. IFS=$as_save_IFS
  11955. fi
  11956. fi
  11957. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11958. if test -n "$STRIP_FOR_TARGET"; then
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11960. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11961. else
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11963. $as_echo "no" >&6; }
  11964. fi
  11965. fi
  11966. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  11967. done
  11968. fi
  11969. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  11970. set dummy strip
  11971. if test $build = $target ; then
  11972. STRIP_FOR_TARGET="$2"
  11973. else
  11974. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11975. fi
  11976. else
  11977. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  11978. fi
  11979. else
  11980. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11981. fi
  11982. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11983. if test -n "$with_build_time_tools"; then
  11984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  11985. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  11986. if test -x $with_build_time_tools/windres; then
  11987. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  11988. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  11990. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  11991. else
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11993. $as_echo "no" >&6; }
  11994. fi
  11995. elif test $build != $host && test $have_gcc_for_target = yes; then
  11996. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  11997. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  11998. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11999. fi
  12000. fi
  12001. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12002. # Extract the first word of "windres", so it can be a program name with args.
  12003. set dummy windres; ac_word=$2
  12004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12005. $as_echo_n "checking for $ac_word... " >&6; }
  12006. if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
  12007. $as_echo_n "(cached) " >&6
  12008. else
  12009. case $WINDRES_FOR_TARGET in
  12010. [\\/]* | ?:[\\/]*)
  12011. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  12012. ;;
  12013. *)
  12014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12015. for as_dir in $gcc_cv_tool_dirs
  12016. do
  12017. IFS=$as_save_IFS
  12018. test -z "$as_dir" && as_dir=.
  12019. for ac_exec_ext in '' $ac_executable_extensions; do
  12020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12021. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12023. break 2
  12024. fi
  12025. done
  12026. done
  12027. IFS=$as_save_IFS
  12028. ;;
  12029. esac
  12030. fi
  12031. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12032. if test -n "$WINDRES_FOR_TARGET"; then
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12034. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12035. else
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12037. $as_echo "no" >&6; }
  12038. fi
  12039. fi
  12040. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  12041. if test -n "$WINDRES_FOR_TARGET"; then
  12042. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12043. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12044. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12045. fi
  12046. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12047. for ncn_progname in windres; do
  12048. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12049. set dummy ${ncn_progname}; ac_word=$2
  12050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12051. $as_echo_n "checking for $ac_word... " >&6; }
  12052. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12053. $as_echo_n "(cached) " >&6
  12054. else
  12055. if test -n "$WINDRES_FOR_TARGET"; then
  12056. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12057. else
  12058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12059. for as_dir in $PATH
  12060. do
  12061. IFS=$as_save_IFS
  12062. test -z "$as_dir" && as_dir=.
  12063. for ac_exec_ext in '' $ac_executable_extensions; do
  12064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12065. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12067. break 2
  12068. fi
  12069. done
  12070. done
  12071. IFS=$as_save_IFS
  12072. fi
  12073. fi
  12074. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12075. if test -n "$WINDRES_FOR_TARGET"; then
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12077. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12078. else
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12080. $as_echo "no" >&6; }
  12081. fi
  12082. done
  12083. fi
  12084. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12085. for ncn_progname in windres; do
  12086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12087. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12088. if test -x $with_build_time_tools/${ncn_progname}; then
  12089. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12091. $as_echo "yes" >&6; }
  12092. break
  12093. else
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12095. $as_echo "no" >&6; }
  12096. fi
  12097. done
  12098. fi
  12099. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12100. for ncn_progname in windres; do
  12101. if test -n "$ncn_target_tool_prefix"; then
  12102. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12103. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12105. $as_echo_n "checking for $ac_word... " >&6; }
  12106. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12107. $as_echo_n "(cached) " >&6
  12108. else
  12109. if test -n "$WINDRES_FOR_TARGET"; then
  12110. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12111. else
  12112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12113. for as_dir in $PATH
  12114. do
  12115. IFS=$as_save_IFS
  12116. test -z "$as_dir" && as_dir=.
  12117. for ac_exec_ext in '' $ac_executable_extensions; do
  12118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12119. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12121. break 2
  12122. fi
  12123. done
  12124. done
  12125. IFS=$as_save_IFS
  12126. fi
  12127. fi
  12128. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12129. if test -n "$WINDRES_FOR_TARGET"; then
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12131. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12132. else
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12134. $as_echo "no" >&6; }
  12135. fi
  12136. fi
  12137. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  12138. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12139. set dummy ${ncn_progname}; ac_word=$2
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12141. $as_echo_n "checking for $ac_word... " >&6; }
  12142. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12143. $as_echo_n "(cached) " >&6
  12144. else
  12145. if test -n "$WINDRES_FOR_TARGET"; then
  12146. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12147. else
  12148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12149. for as_dir in $PATH
  12150. do
  12151. IFS=$as_save_IFS
  12152. test -z "$as_dir" && as_dir=.
  12153. for ac_exec_ext in '' $ac_executable_extensions; do
  12154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12155. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12157. break 2
  12158. fi
  12159. done
  12160. done
  12161. IFS=$as_save_IFS
  12162. fi
  12163. fi
  12164. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12165. if test -n "$WINDRES_FOR_TARGET"; then
  12166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12167. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12168. else
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12170. $as_echo "no" >&6; }
  12171. fi
  12172. fi
  12173. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  12174. done
  12175. fi
  12176. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  12177. set dummy windres
  12178. if test $build = $target ; then
  12179. WINDRES_FOR_TARGET="$2"
  12180. else
  12181. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12182. fi
  12183. else
  12184. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  12185. fi
  12186. else
  12187. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12188. fi
  12189. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12190. if test -n "$with_build_time_tools"; then
  12191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  12192. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  12193. if test -x $with_build_time_tools/windmc; then
  12194. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  12195. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  12197. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  12198. else
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12200. $as_echo "no" >&6; }
  12201. fi
  12202. elif test $build != $host && test $have_gcc_for_target = yes; then
  12203. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  12204. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  12205. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12206. fi
  12207. fi
  12208. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12209. # Extract the first word of "windmc", so it can be a program name with args.
  12210. set dummy windmc; ac_word=$2
  12211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12212. $as_echo_n "checking for $ac_word... " >&6; }
  12213. if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
  12214. $as_echo_n "(cached) " >&6
  12215. else
  12216. case $WINDMC_FOR_TARGET in
  12217. [\\/]* | ?:[\\/]*)
  12218. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  12219. ;;
  12220. *)
  12221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12222. for as_dir in $gcc_cv_tool_dirs
  12223. do
  12224. IFS=$as_save_IFS
  12225. test -z "$as_dir" && as_dir=.
  12226. for ac_exec_ext in '' $ac_executable_extensions; do
  12227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12228. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12230. break 2
  12231. fi
  12232. done
  12233. done
  12234. IFS=$as_save_IFS
  12235. ;;
  12236. esac
  12237. fi
  12238. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12239. if test -n "$WINDMC_FOR_TARGET"; then
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12241. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12242. else
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12244. $as_echo "no" >&6; }
  12245. fi
  12246. fi
  12247. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12248. if test -n "$WINDMC_FOR_TARGET"; then
  12249. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12250. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12251. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12252. fi
  12253. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12254. for ncn_progname in windmc; do
  12255. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12256. set dummy ${ncn_progname}; ac_word=$2
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12258. $as_echo_n "checking for $ac_word... " >&6; }
  12259. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12260. $as_echo_n "(cached) " >&6
  12261. else
  12262. if test -n "$WINDMC_FOR_TARGET"; then
  12263. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12264. else
  12265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12266. for as_dir in $PATH
  12267. do
  12268. IFS=$as_save_IFS
  12269. test -z "$as_dir" && as_dir=.
  12270. for ac_exec_ext in '' $ac_executable_extensions; do
  12271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12272. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12274. break 2
  12275. fi
  12276. done
  12277. done
  12278. IFS=$as_save_IFS
  12279. fi
  12280. fi
  12281. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12282. if test -n "$WINDMC_FOR_TARGET"; then
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12284. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12285. else
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12287. $as_echo "no" >&6; }
  12288. fi
  12289. done
  12290. fi
  12291. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12292. for ncn_progname in windmc; do
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12294. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12295. if test -x $with_build_time_tools/${ncn_progname}; then
  12296. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12298. $as_echo "yes" >&6; }
  12299. break
  12300. else
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12302. $as_echo "no" >&6; }
  12303. fi
  12304. done
  12305. fi
  12306. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12307. for ncn_progname in windmc; do
  12308. if test -n "$ncn_target_tool_prefix"; then
  12309. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12310. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12312. $as_echo_n "checking for $ac_word... " >&6; }
  12313. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12314. $as_echo_n "(cached) " >&6
  12315. else
  12316. if test -n "$WINDMC_FOR_TARGET"; then
  12317. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12318. else
  12319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12320. for as_dir in $PATH
  12321. do
  12322. IFS=$as_save_IFS
  12323. test -z "$as_dir" && as_dir=.
  12324. for ac_exec_ext in '' $ac_executable_extensions; do
  12325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12326. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12328. break 2
  12329. fi
  12330. done
  12331. done
  12332. IFS=$as_save_IFS
  12333. fi
  12334. fi
  12335. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12336. if test -n "$WINDMC_FOR_TARGET"; then
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12338. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12339. else
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12341. $as_echo "no" >&6; }
  12342. fi
  12343. fi
  12344. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  12345. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12346. set dummy ${ncn_progname}; ac_word=$2
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12348. $as_echo_n "checking for $ac_word... " >&6; }
  12349. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. if test -n "$WINDMC_FOR_TARGET"; then
  12353. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12354. else
  12355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12356. for as_dir in $PATH
  12357. do
  12358. IFS=$as_save_IFS
  12359. test -z "$as_dir" && as_dir=.
  12360. for ac_exec_ext in '' $ac_executable_extensions; do
  12361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12362. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12364. break 2
  12365. fi
  12366. done
  12367. done
  12368. IFS=$as_save_IFS
  12369. fi
  12370. fi
  12371. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12372. if test -n "$WINDMC_FOR_TARGET"; then
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12374. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12375. else
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12377. $as_echo "no" >&6; }
  12378. fi
  12379. fi
  12380. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  12381. done
  12382. fi
  12383. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  12384. set dummy windmc
  12385. if test $build = $target ; then
  12386. WINDMC_FOR_TARGET="$2"
  12387. else
  12388. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12389. fi
  12390. else
  12391. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  12392. fi
  12393. else
  12394. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12395. fi
  12396. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  12398. $as_echo_n "checking where to find the target ar... " >&6; }
  12399. if test "x${build}" != "x${host}" ; then
  12400. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12401. # We already found the complete path
  12402. ac_dir=`dirname $AR_FOR_TARGET`
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12404. $as_echo "pre-installed in $ac_dir" >&6; }
  12405. else
  12406. # Canadian cross, just use what we found
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12408. $as_echo "pre-installed" >&6; }
  12409. fi
  12410. else
  12411. ok=yes
  12412. case " ${configdirs} " in
  12413. *" binutils "*) ;;
  12414. *) ok=no ;;
  12415. esac
  12416. if test $ok = yes; then
  12417. # An in-tree tool is available and we can use it
  12418. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12420. $as_echo "just compiled" >&6; }
  12421. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12422. # We already found the complete path
  12423. ac_dir=`dirname $AR_FOR_TARGET`
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12425. $as_echo "pre-installed in $ac_dir" >&6; }
  12426. elif test "x$target" = "x$host"; then
  12427. # We can use an host tool
  12428. AR_FOR_TARGET='$(AR)'
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12430. $as_echo "host tool" >&6; }
  12431. else
  12432. # We need a cross tool
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12434. $as_echo "pre-installed" >&6; }
  12435. fi
  12436. fi
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  12438. $as_echo_n "checking where to find the target as... " >&6; }
  12439. if test "x${build}" != "x${host}" ; then
  12440. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12441. # We already found the complete path
  12442. ac_dir=`dirname $AS_FOR_TARGET`
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12444. $as_echo "pre-installed in $ac_dir" >&6; }
  12445. else
  12446. # Canadian cross, just use what we found
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12448. $as_echo "pre-installed" >&6; }
  12449. fi
  12450. else
  12451. ok=yes
  12452. case " ${configdirs} " in
  12453. *" gas "*) ;;
  12454. *) ok=no ;;
  12455. esac
  12456. if test $ok = yes; then
  12457. # An in-tree tool is available and we can use it
  12458. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12460. $as_echo "just compiled" >&6; }
  12461. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12462. # We already found the complete path
  12463. ac_dir=`dirname $AS_FOR_TARGET`
  12464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12465. $as_echo "pre-installed in $ac_dir" >&6; }
  12466. elif test "x$target" = "x$host"; then
  12467. # We can use an host tool
  12468. AS_FOR_TARGET='$(AS)'
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12470. $as_echo "host tool" >&6; }
  12471. else
  12472. # We need a cross tool
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12474. $as_echo "pre-installed" >&6; }
  12475. fi
  12476. fi
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  12478. $as_echo_n "checking where to find the target cc... " >&6; }
  12479. if test "x${build}" != "x${host}" ; then
  12480. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12481. # We already found the complete path
  12482. ac_dir=`dirname $CC_FOR_TARGET`
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12484. $as_echo "pre-installed in $ac_dir" >&6; }
  12485. else
  12486. # Canadian cross, just use what we found
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12488. $as_echo "pre-installed" >&6; }
  12489. fi
  12490. else
  12491. ok=yes
  12492. case " ${configdirs} " in
  12493. *" gcc "*) ;;
  12494. *) ok=no ;;
  12495. esac
  12496. if test $ok = yes; then
  12497. # An in-tree tool is available and we can use it
  12498. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12500. $as_echo "just compiled" >&6; }
  12501. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12502. # We already found the complete path
  12503. ac_dir=`dirname $CC_FOR_TARGET`
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12505. $as_echo "pre-installed in $ac_dir" >&6; }
  12506. elif test "x$target" = "x$host"; then
  12507. # We can use an host tool
  12508. CC_FOR_TARGET='$(CC)'
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12510. $as_echo "host tool" >&6; }
  12511. else
  12512. # We need a cross tool
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12514. $as_echo "pre-installed" >&6; }
  12515. fi
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  12518. $as_echo_n "checking where to find the target c++... " >&6; }
  12519. if test "x${build}" != "x${host}" ; then
  12520. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12521. # We already found the complete path
  12522. ac_dir=`dirname $CXX_FOR_TARGET`
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12524. $as_echo "pre-installed in $ac_dir" >&6; }
  12525. else
  12526. # Canadian cross, just use what we found
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12528. $as_echo "pre-installed" >&6; }
  12529. fi
  12530. else
  12531. ok=yes
  12532. case " ${configdirs} " in
  12533. *" gcc "*) ;;
  12534. *) ok=no ;;
  12535. esac
  12536. case ,${enable_languages}, in
  12537. *,c++,*) ;;
  12538. *) ok=no ;;
  12539. esac
  12540. if test $ok = yes; then
  12541. # An in-tree tool is available and we can use it
  12542. CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12544. $as_echo "just compiled" >&6; }
  12545. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12546. # We already found the complete path
  12547. ac_dir=`dirname $CXX_FOR_TARGET`
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12549. $as_echo "pre-installed in $ac_dir" >&6; }
  12550. elif test "x$target" = "x$host"; then
  12551. # We can use an host tool
  12552. CXX_FOR_TARGET='$(CXX)'
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12554. $as_echo "host tool" >&6; }
  12555. else
  12556. # We need a cross tool
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12558. $as_echo "pre-installed" >&6; }
  12559. fi
  12560. fi
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  12562. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  12563. if test "x${build}" != "x${host}" ; then
  12564. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12565. # We already found the complete path
  12566. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12568. $as_echo "pre-installed in $ac_dir" >&6; }
  12569. else
  12570. # Canadian cross, just use what we found
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12572. $as_echo "pre-installed" >&6; }
  12573. fi
  12574. else
  12575. ok=yes
  12576. case " ${configdirs} " in
  12577. *" gcc "*) ;;
  12578. *) ok=no ;;
  12579. esac
  12580. case ,${enable_languages}, in
  12581. *,c++,*) ;;
  12582. *) ok=no ;;
  12583. esac
  12584. if test $ok = yes; then
  12585. # An in-tree tool is available and we can use it
  12586. RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12588. $as_echo "just compiled" >&6; }
  12589. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12590. # We already found the complete path
  12591. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12593. $as_echo "pre-installed in $ac_dir" >&6; }
  12594. elif test "x$target" = "x$host"; then
  12595. # We can use an host tool
  12596. RAW_CXX_FOR_TARGET='$(CXX)'
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12598. $as_echo "host tool" >&6; }
  12599. else
  12600. # We need a cross tool
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12602. $as_echo "pre-installed" >&6; }
  12603. fi
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  12606. $as_echo_n "checking where to find the target dlltool... " >&6; }
  12607. if test "x${build}" != "x${host}" ; then
  12608. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12609. # We already found the complete path
  12610. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12612. $as_echo "pre-installed in $ac_dir" >&6; }
  12613. else
  12614. # Canadian cross, just use what we found
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12616. $as_echo "pre-installed" >&6; }
  12617. fi
  12618. else
  12619. ok=yes
  12620. case " ${configdirs} " in
  12621. *" binutils "*) ;;
  12622. *) ok=no ;;
  12623. esac
  12624. if test $ok = yes; then
  12625. # An in-tree tool is available and we can use it
  12626. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12628. $as_echo "just compiled" >&6; }
  12629. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12630. # We already found the complete path
  12631. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12633. $as_echo "pre-installed in $ac_dir" >&6; }
  12634. elif test "x$target" = "x$host"; then
  12635. # We can use an host tool
  12636. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12638. $as_echo "host tool" >&6; }
  12639. else
  12640. # We need a cross tool
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12642. $as_echo "pre-installed" >&6; }
  12643. fi
  12644. fi
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  12646. $as_echo_n "checking where to find the target gcc... " >&6; }
  12647. if test "x${build}" != "x${host}" ; then
  12648. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12649. # We already found the complete path
  12650. ac_dir=`dirname $GCC_FOR_TARGET`
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12652. $as_echo "pre-installed in $ac_dir" >&6; }
  12653. else
  12654. # Canadian cross, just use what we found
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12656. $as_echo "pre-installed" >&6; }
  12657. fi
  12658. else
  12659. ok=yes
  12660. case " ${configdirs} " in
  12661. *" gcc "*) ;;
  12662. *) ok=no ;;
  12663. esac
  12664. if test $ok = yes; then
  12665. # An in-tree tool is available and we can use it
  12666. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12668. $as_echo "just compiled" >&6; }
  12669. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12670. # We already found the complete path
  12671. ac_dir=`dirname $GCC_FOR_TARGET`
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12673. $as_echo "pre-installed in $ac_dir" >&6; }
  12674. elif test "x$target" = "x$host"; then
  12675. # We can use an host tool
  12676. GCC_FOR_TARGET='$()'
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12678. $as_echo "host tool" >&6; }
  12679. else
  12680. # We need a cross tool
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12682. $as_echo "pre-installed" >&6; }
  12683. fi
  12684. fi
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
  12686. $as_echo_n "checking where to find the target gcj... " >&6; }
  12687. if test "x${build}" != "x${host}" ; then
  12688. if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12689. # We already found the complete path
  12690. ac_dir=`dirname $GCJ_FOR_TARGET`
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12692. $as_echo "pre-installed in $ac_dir" >&6; }
  12693. else
  12694. # Canadian cross, just use what we found
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12696. $as_echo "pre-installed" >&6; }
  12697. fi
  12698. else
  12699. ok=yes
  12700. case " ${configdirs} " in
  12701. *" gcc "*) ;;
  12702. *) ok=no ;;
  12703. esac
  12704. case ,${enable_languages}, in
  12705. *,java,*) ;;
  12706. *) ok=no ;;
  12707. esac
  12708. if test $ok = yes; then
  12709. # An in-tree tool is available and we can use it
  12710. GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12712. $as_echo "just compiled" >&6; }
  12713. elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12714. # We already found the complete path
  12715. ac_dir=`dirname $GCJ_FOR_TARGET`
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12717. $as_echo "pre-installed in $ac_dir" >&6; }
  12718. elif test "x$target" = "x$host"; then
  12719. # We can use an host tool
  12720. GCJ_FOR_TARGET='$(GCJ)'
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12722. $as_echo "host tool" >&6; }
  12723. else
  12724. # We need a cross tool
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12726. $as_echo "pre-installed" >&6; }
  12727. fi
  12728. fi
  12729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  12730. $as_echo_n "checking where to find the target gfortran... " >&6; }
  12731. if test "x${build}" != "x${host}" ; then
  12732. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12733. # We already found the complete path
  12734. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12736. $as_echo "pre-installed in $ac_dir" >&6; }
  12737. else
  12738. # Canadian cross, just use what we found
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12740. $as_echo "pre-installed" >&6; }
  12741. fi
  12742. else
  12743. ok=yes
  12744. case " ${configdirs} " in
  12745. *" gcc "*) ;;
  12746. *) ok=no ;;
  12747. esac
  12748. case ,${enable_languages}, in
  12749. *,fortran,*) ;;
  12750. *) ok=no ;;
  12751. esac
  12752. if test $ok = yes; then
  12753. # An in-tree tool is available and we can use it
  12754. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12756. $as_echo "just compiled" >&6; }
  12757. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12758. # We already found the complete path
  12759. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12761. $as_echo "pre-installed in $ac_dir" >&6; }
  12762. elif test "x$target" = "x$host"; then
  12763. # We can use an host tool
  12764. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12766. $as_echo "host tool" >&6; }
  12767. else
  12768. # We need a cross tool
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12770. $as_echo "pre-installed" >&6; }
  12771. fi
  12772. fi
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  12774. $as_echo_n "checking where to find the target gccgo... " >&6; }
  12775. if test "x${build}" != "x${host}" ; then
  12776. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12777. # We already found the complete path
  12778. ac_dir=`dirname $GOC_FOR_TARGET`
  12779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12780. $as_echo "pre-installed in $ac_dir" >&6; }
  12781. else
  12782. # Canadian cross, just use what we found
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12784. $as_echo "pre-installed" >&6; }
  12785. fi
  12786. else
  12787. ok=yes
  12788. case " ${configdirs} " in
  12789. *" gcc "*) ;;
  12790. *) ok=no ;;
  12791. esac
  12792. case ,${enable_languages}, in
  12793. *,go,*) ;;
  12794. *) ok=no ;;
  12795. esac
  12796. if test $ok = yes; then
  12797. # An in-tree tool is available and we can use it
  12798. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12800. $as_echo "just compiled" >&6; }
  12801. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12802. # We already found the complete path
  12803. ac_dir=`dirname $GOC_FOR_TARGET`
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12805. $as_echo "pre-installed in $ac_dir" >&6; }
  12806. elif test "x$target" = "x$host"; then
  12807. # We can use an host tool
  12808. GOC_FOR_TARGET='$(GOC)'
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12810. $as_echo "host tool" >&6; }
  12811. else
  12812. # We need a cross tool
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12814. $as_echo "pre-installed" >&6; }
  12815. fi
  12816. fi
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12818. $as_echo_n "checking where to find the target ld... " >&6; }
  12819. if test "x${build}" != "x${host}" ; then
  12820. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12821. # We already found the complete path
  12822. ac_dir=`dirname $LD_FOR_TARGET`
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12824. $as_echo "pre-installed in $ac_dir" >&6; }
  12825. else
  12826. # Canadian cross, just use what we found
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12828. $as_echo "pre-installed" >&6; }
  12829. fi
  12830. else
  12831. ok=yes
  12832. case " ${configdirs} " in
  12833. *" ld "*) ;;
  12834. *) ok=no ;;
  12835. esac
  12836. if test $ok = yes; then
  12837. # An in-tree tool is available and we can use it
  12838. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12840. $as_echo "just compiled" >&6; }
  12841. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12842. # We already found the complete path
  12843. ac_dir=`dirname $LD_FOR_TARGET`
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12845. $as_echo "pre-installed in $ac_dir" >&6; }
  12846. elif test "x$target" = "x$host"; then
  12847. # We can use an host tool
  12848. LD_FOR_TARGET='$(LD)'
  12849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12850. $as_echo "host tool" >&6; }
  12851. else
  12852. # We need a cross tool
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12854. $as_echo "pre-installed" >&6; }
  12855. fi
  12856. fi
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  12858. $as_echo_n "checking where to find the target lipo... " >&6; }
  12859. if test "x${build}" != "x${host}" ; then
  12860. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12861. # We already found the complete path
  12862. ac_dir=`dirname $LIPO_FOR_TARGET`
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12864. $as_echo "pre-installed in $ac_dir" >&6; }
  12865. else
  12866. # Canadian cross, just use what we found
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12868. $as_echo "pre-installed" >&6; }
  12869. fi
  12870. else
  12871. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12872. # We already found the complete path
  12873. ac_dir=`dirname $LIPO_FOR_TARGET`
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12875. $as_echo "pre-installed in $ac_dir" >&6; }
  12876. elif test "x$target" = "x$host"; then
  12877. # We can use an host tool
  12878. LIPO_FOR_TARGET='$(LIPO)'
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12880. $as_echo "host tool" >&6; }
  12881. else
  12882. # We need a cross tool
  12883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12884. $as_echo "pre-installed" >&6; }
  12885. fi
  12886. fi
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  12888. $as_echo_n "checking where to find the target nm... " >&6; }
  12889. if test "x${build}" != "x${host}" ; then
  12890. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12891. # We already found the complete path
  12892. ac_dir=`dirname $NM_FOR_TARGET`
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12894. $as_echo "pre-installed in $ac_dir" >&6; }
  12895. else
  12896. # Canadian cross, just use what we found
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12898. $as_echo "pre-installed" >&6; }
  12899. fi
  12900. else
  12901. ok=yes
  12902. case " ${configdirs} " in
  12903. *" binutils "*) ;;
  12904. *) ok=no ;;
  12905. esac
  12906. if test $ok = yes; then
  12907. # An in-tree tool is available and we can use it
  12908. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  12909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12910. $as_echo "just compiled" >&6; }
  12911. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12912. # We already found the complete path
  12913. ac_dir=`dirname $NM_FOR_TARGET`
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12915. $as_echo "pre-installed in $ac_dir" >&6; }
  12916. elif test "x$target" = "x$host"; then
  12917. # We can use an host tool
  12918. NM_FOR_TARGET='$(NM)'
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12920. $as_echo "host tool" >&6; }
  12921. else
  12922. # We need a cross tool
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12924. $as_echo "pre-installed" >&6; }
  12925. fi
  12926. fi
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
  12928. $as_echo_n "checking where to find the target objcopy... " >&6; }
  12929. if test "x${build}" != "x${host}" ; then
  12930. if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12931. # We already found the complete path
  12932. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12934. $as_echo "pre-installed in $ac_dir" >&6; }
  12935. else
  12936. # Canadian cross, just use what we found
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12938. $as_echo "pre-installed" >&6; }
  12939. fi
  12940. else
  12941. ok=yes
  12942. case " ${configdirs} " in
  12943. *" binutils "*) ;;
  12944. *) ok=no ;;
  12945. esac
  12946. if test $ok = yes; then
  12947. # An in-tree tool is available and we can use it
  12948. OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12950. $as_echo "just compiled" >&6; }
  12951. elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12952. # We already found the complete path
  12953. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12955. $as_echo "pre-installed in $ac_dir" >&6; }
  12956. elif test "x$target" = "x$host"; then
  12957. # We can use an host tool
  12958. OBJCOPY_FOR_TARGET='$(OBJCOPY)'
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12960. $as_echo "host tool" >&6; }
  12961. else
  12962. # We need a cross tool
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12964. $as_echo "pre-installed" >&6; }
  12965. fi
  12966. fi
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  12968. $as_echo_n "checking where to find the target objdump... " >&6; }
  12969. if test "x${build}" != "x${host}" ; then
  12970. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12971. # We already found the complete path
  12972. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12974. $as_echo "pre-installed in $ac_dir" >&6; }
  12975. else
  12976. # Canadian cross, just use what we found
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12978. $as_echo "pre-installed" >&6; }
  12979. fi
  12980. else
  12981. ok=yes
  12982. case " ${configdirs} " in
  12983. *" binutils "*) ;;
  12984. *) ok=no ;;
  12985. esac
  12986. if test $ok = yes; then
  12987. # An in-tree tool is available and we can use it
  12988. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  12989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12990. $as_echo "just compiled" >&6; }
  12991. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12992. # We already found the complete path
  12993. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12995. $as_echo "pre-installed in $ac_dir" >&6; }
  12996. elif test "x$target" = "x$host"; then
  12997. # We can use an host tool
  12998. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  12999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13000. $as_echo "host tool" >&6; }
  13001. else
  13002. # We need a cross tool
  13003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13004. $as_echo "pre-installed" >&6; }
  13005. fi
  13006. fi
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  13008. $as_echo_n "checking where to find the target ranlib... " >&6; }
  13009. if test "x${build}" != "x${host}" ; then
  13010. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13011. # We already found the complete path
  13012. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13014. $as_echo "pre-installed in $ac_dir" >&6; }
  13015. else
  13016. # Canadian cross, just use what we found
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13018. $as_echo "pre-installed" >&6; }
  13019. fi
  13020. else
  13021. ok=yes
  13022. case " ${configdirs} " in
  13023. *" binutils "*) ;;
  13024. *) ok=no ;;
  13025. esac
  13026. if test $ok = yes; then
  13027. # An in-tree tool is available and we can use it
  13028. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  13029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13030. $as_echo "just compiled" >&6; }
  13031. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13032. # We already found the complete path
  13033. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13035. $as_echo "pre-installed in $ac_dir" >&6; }
  13036. elif test "x$target" = "x$host"; then
  13037. # We can use an host tool
  13038. RANLIB_FOR_TARGET='$(RANLIB)'
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13040. $as_echo "host tool" >&6; }
  13041. else
  13042. # We need a cross tool
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13044. $as_echo "pre-installed" >&6; }
  13045. fi
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
  13048. $as_echo_n "checking where to find the target readelf... " >&6; }
  13049. if test "x${build}" != "x${host}" ; then
  13050. if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13051. # We already found the complete path
  13052. ac_dir=`dirname $READELF_FOR_TARGET`
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13054. $as_echo "pre-installed in $ac_dir" >&6; }
  13055. else
  13056. # Canadian cross, just use what we found
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13058. $as_echo "pre-installed" >&6; }
  13059. fi
  13060. else
  13061. ok=yes
  13062. case " ${configdirs} " in
  13063. *" binutils "*) ;;
  13064. *) ok=no ;;
  13065. esac
  13066. if test $ok = yes; then
  13067. # An in-tree tool is available and we can use it
  13068. READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13070. $as_echo "just compiled" >&6; }
  13071. elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13072. # We already found the complete path
  13073. ac_dir=`dirname $READELF_FOR_TARGET`
  13074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13075. $as_echo "pre-installed in $ac_dir" >&6; }
  13076. elif test "x$target" = "x$host"; then
  13077. # We can use an host tool
  13078. READELF_FOR_TARGET='$(READELF)'
  13079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13080. $as_echo "host tool" >&6; }
  13081. else
  13082. # We need a cross tool
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13084. $as_echo "pre-installed" >&6; }
  13085. fi
  13086. fi
  13087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  13088. $as_echo_n "checking where to find the target strip... " >&6; }
  13089. if test "x${build}" != "x${host}" ; then
  13090. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13091. # We already found the complete path
  13092. ac_dir=`dirname $STRIP_FOR_TARGET`
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13094. $as_echo "pre-installed in $ac_dir" >&6; }
  13095. else
  13096. # Canadian cross, just use what we found
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13098. $as_echo "pre-installed" >&6; }
  13099. fi
  13100. else
  13101. ok=yes
  13102. case " ${configdirs} " in
  13103. *" binutils "*) ;;
  13104. *) ok=no ;;
  13105. esac
  13106. if test $ok = yes; then
  13107. # An in-tree tool is available and we can use it
  13108. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  13109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13110. $as_echo "just compiled" >&6; }
  13111. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13112. # We already found the complete path
  13113. ac_dir=`dirname $STRIP_FOR_TARGET`
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13115. $as_echo "pre-installed in $ac_dir" >&6; }
  13116. elif test "x$target" = "x$host"; then
  13117. # We can use an host tool
  13118. STRIP_FOR_TARGET='$(STRIP)'
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13120. $as_echo "host tool" >&6; }
  13121. else
  13122. # We need a cross tool
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13124. $as_echo "pre-installed" >&6; }
  13125. fi
  13126. fi
  13127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  13128. $as_echo_n "checking where to find the target windres... " >&6; }
  13129. if test "x${build}" != "x${host}" ; then
  13130. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13131. # We already found the complete path
  13132. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13134. $as_echo "pre-installed in $ac_dir" >&6; }
  13135. else
  13136. # Canadian cross, just use what we found
  13137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13138. $as_echo "pre-installed" >&6; }
  13139. fi
  13140. else
  13141. ok=yes
  13142. case " ${configdirs} " in
  13143. *" binutils "*) ;;
  13144. *) ok=no ;;
  13145. esac
  13146. if test $ok = yes; then
  13147. # An in-tree tool is available and we can use it
  13148. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13150. $as_echo "just compiled" >&6; }
  13151. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13152. # We already found the complete path
  13153. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13155. $as_echo "pre-installed in $ac_dir" >&6; }
  13156. elif test "x$target" = "x$host"; then
  13157. # We can use an host tool
  13158. WINDRES_FOR_TARGET='$(WINDRES)'
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13160. $as_echo "host tool" >&6; }
  13161. else
  13162. # We need a cross tool
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13164. $as_echo "pre-installed" >&6; }
  13165. fi
  13166. fi
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  13168. $as_echo_n "checking where to find the target windmc... " >&6; }
  13169. if test "x${build}" != "x${host}" ; then
  13170. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13171. # We already found the complete path
  13172. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13174. $as_echo "pre-installed in $ac_dir" >&6; }
  13175. else
  13176. # Canadian cross, just use what we found
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13178. $as_echo "pre-installed" >&6; }
  13179. fi
  13180. else
  13181. ok=yes
  13182. case " ${configdirs} " in
  13183. *" binutils "*) ;;
  13184. *) ok=no ;;
  13185. esac
  13186. if test $ok = yes; then
  13187. # An in-tree tool is available and we can use it
  13188. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  13189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13190. $as_echo "just compiled" >&6; }
  13191. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13192. # We already found the complete path
  13193. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13195. $as_echo "pre-installed in $ac_dir" >&6; }
  13196. elif test "x$target" = "x$host"; then
  13197. # We can use an host tool
  13198. WINDMC_FOR_TARGET='$(WINDMC)'
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13200. $as_echo "host tool" >&6; }
  13201. else
  13202. # We need a cross tool
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13204. $as_echo "pre-installed" >&6; }
  13205. fi
  13206. fi
  13207. # Certain tools may need extra flags.
  13208. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  13209. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  13210. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  13211. # When building target libraries, except in a Canadian cross, we use
  13212. # the same toolchain as the compiler we just built.
  13213. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  13214. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  13215. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  13216. if test $host = $build; then
  13217. case " $configdirs " in
  13218. *" gcc "*)
  13219. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  13220. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  13221. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  13222. ;;
  13223. esac
  13224. fi
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13226. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13227. # Check whether --enable-maintainer-mode was given.
  13228. if test "${enable_maintainer_mode+set}" = set; then :
  13229. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13230. else
  13231. USE_MAINTAINER_MODE=no
  13232. fi
  13233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13234. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13235. if test "$USE_MAINTAINER_MODE" = yes; then
  13236. MAINTAINER_MODE_TRUE=
  13237. MAINTAINER_MODE_FALSE='#'
  13238. else
  13239. MAINTAINER_MODE_TRUE='#'
  13240. MAINTAINER_MODE_FALSE=
  13241. fi
  13242. MAINT=$MAINTAINER_MODE_TRUE
  13243. # ---------------------
  13244. # GCC bootstrap support
  13245. # ---------------------
  13246. # Stage specific cflags for build.
  13247. stage1_cflags="-g"
  13248. case $build in
  13249. vax-*-*)
  13250. case ${GCC} in
  13251. yes) stage1_cflags="-g -Wa,-J" ;;
  13252. *) stage1_cflags="-g -J" ;;
  13253. esac ;;
  13254. esac
  13255. # Enable --enable-checking in stage1 of the compiler.
  13256. # Check whether --enable-stage1-checking was given.
  13257. if test "${enable_stage1_checking+set}" = set; then :
  13258. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  13259. else
  13260. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  13261. # For --disable-checking or implicit --enable-checking=release, avoid
  13262. # setting --enable-checking=gc in the default stage1 checking for LTO
  13263. # bootstraps. See PR62077.
  13264. stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
  13265. case $BUILD_CONFIG in
  13266. *lto*)
  13267. if test "x$enable_checking" = x && \
  13268. test -d ${srcdir}/gcc && \
  13269. test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
  13270. stage1_checking=--enable-checking=yes,types
  13271. fi;;
  13272. *) stage1_checking=--enable-checking=yes,types;;
  13273. esac
  13274. else
  13275. stage1_checking=--enable-checking=$enable_checking,types
  13276. fi
  13277. fi
  13278. # Enable -Werror in bootstrap stage2 and later.
  13279. # Check whether --enable-werror was given.
  13280. if test "${enable_werror+set}" = set; then :
  13281. enableval=$enable_werror;
  13282. else
  13283. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  13284. enable_werror=yes
  13285. else
  13286. enable_werror=no
  13287. fi
  13288. fi
  13289. case ${enable_werror} in
  13290. yes) stage2_werror_flag="--enable-werror-always" ;;
  13291. *) stage2_werror_flag="" ;;
  13292. esac
  13293. # Enable --enable-host-shared.
  13294. # Check whether --enable-host-shared was given.
  13295. if test "${enable_host_shared+set}" = set; then :
  13296. enableval=$enable_host_shared; host_shared=$enableval
  13297. else
  13298. host_shared=no
  13299. fi
  13300. # PR jit/64780: Require the user to explicitly specify
  13301. # --enable-host-shared if the jit is enabled, hinting
  13302. # that they might want to do a separate configure/build of
  13303. # the jit, to avoid users from slowing down the rest of the
  13304. # compiler by enabling the jit.
  13305. if test ${host_shared} = "no" ; then
  13306. case "${enable_languages}" in
  13307. *jit*)
  13308. as_fn_error "
  13309. Enabling language \"jit\" requires --enable-host-shared.
  13310. --enable-host-shared typically slows the rest of the compiler down by
  13311. a few %, so you must explicitly enable it.
  13312. If you want to build both the jit and the regular compiler, it is often
  13313. best to do this via two separate configure/builds, in separate
  13314. directories, to avoid imposing the performance cost of
  13315. --enable-host-shared on the regular compiler." "$LINENO" 5
  13316. ;;
  13317. *)
  13318. ;;
  13319. esac
  13320. fi
  13321. # Specify what files to not compare during bootstrap.
  13322. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  13323. case "$target" in
  13324. hppa*64*-*-hpux*) ;;
  13325. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
  13326. powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
  13327. esac
  13328. ac_config_files="$ac_config_files Makefile"
  13329. cat >confcache <<\_ACEOF
  13330. # This file is a shell script that caches the results of configure
  13331. # tests run on this system so they can be shared between configure
  13332. # scripts and configure runs, see configure's option --config-cache.
  13333. # It is not useful on other systems. If it contains results you don't
  13334. # want to keep, you may remove or edit it.
  13335. #
  13336. # config.status only pays attention to the cache file if you give it
  13337. # the --recheck option to rerun configure.
  13338. #
  13339. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13340. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13341. # following values.
  13342. _ACEOF
  13343. # The following way of writing the cache mishandles newlines in values,
  13344. # but we know of no workaround that is simple, portable, and efficient.
  13345. # So, we kill variables containing newlines.
  13346. # Ultrix sh set writes to stderr and can't be redirected directly,
  13347. # and sets the high bit in the cache file unless we assign to the vars.
  13348. (
  13349. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13350. eval ac_val=\$$ac_var
  13351. case $ac_val in #(
  13352. *${as_nl}*)
  13353. case $ac_var in #(
  13354. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13355. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13356. esac
  13357. case $ac_var in #(
  13358. _ | IFS | as_nl) ;; #(
  13359. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13360. *) { eval $ac_var=; unset $ac_var;} ;;
  13361. esac ;;
  13362. esac
  13363. done
  13364. (set) 2>&1 |
  13365. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13366. *${as_nl}ac_space=\ *)
  13367. # `set' does not quote correctly, so add quotes: double-quote
  13368. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13369. sed -n \
  13370. "s/'/'\\\\''/g;
  13371. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13372. ;; #(
  13373. *)
  13374. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13375. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13376. ;;
  13377. esac |
  13378. sort
  13379. ) |
  13380. sed '
  13381. /^ac_cv_env_/b end
  13382. t clear
  13383. :clear
  13384. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13385. t end
  13386. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13387. :end' >>confcache
  13388. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13389. if test -w "$cache_file"; then
  13390. test "x$cache_file" != "x/dev/null" &&
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13392. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13393. cat confcache >$cache_file
  13394. else
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13396. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13397. fi
  13398. fi
  13399. rm -f confcache
  13400. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13401. # Let make expand exec_prefix.
  13402. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13403. # Transform confdefs.h into DEFS.
  13404. # Protect against shell expansion while executing Makefile rules.
  13405. # Protect against Makefile macro expansion.
  13406. #
  13407. # If the first sed substitution is executed (which looks for macros that
  13408. # take arguments), then branch to the quote section. Otherwise,
  13409. # look for a macro that doesn't take arguments.
  13410. ac_script='
  13411. :mline
  13412. /\\$/{
  13413. N
  13414. s,\\\n,,
  13415. b mline
  13416. }
  13417. t clear
  13418. :clear
  13419. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  13420. t quote
  13421. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  13422. t quote
  13423. b any
  13424. :quote
  13425. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  13426. s/\[/\\&/g
  13427. s/\]/\\&/g
  13428. s/\$/$$/g
  13429. H
  13430. :any
  13431. ${
  13432. g
  13433. s/^\n//
  13434. s/\n/ /g
  13435. p
  13436. }
  13437. '
  13438. DEFS=`sed -n "$ac_script" confdefs.h`
  13439. ac_libobjs=
  13440. ac_ltlibobjs=
  13441. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13442. # 1. Remove the extension, and $U if already installed.
  13443. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13444. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13445. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13446. # will be set to the directory where LIBOBJS objects are built.
  13447. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13448. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13449. done
  13450. LIBOBJS=$ac_libobjs
  13451. LTLIBOBJS=$ac_ltlibobjs
  13452. : ${CONFIG_STATUS=./config.status}
  13453. ac_write_fail=0
  13454. ac_clean_files_save=$ac_clean_files
  13455. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13457. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13458. as_write_fail=0
  13459. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13460. #! $SHELL
  13461. # Generated by $as_me.
  13462. # Run this file to recreate the current configuration.
  13463. # Compiler output produced by configure, useful for debugging
  13464. # configure, is in config.log if it exists.
  13465. debug=false
  13466. ac_cs_recheck=false
  13467. ac_cs_silent=false
  13468. SHELL=\${CONFIG_SHELL-$SHELL}
  13469. export SHELL
  13470. _ASEOF
  13471. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13472. ## -------------------- ##
  13473. ## M4sh Initialization. ##
  13474. ## -------------------- ##
  13475. # Be more Bourne compatible
  13476. DUALCASE=1; export DUALCASE # for MKS sh
  13477. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13478. emulate sh
  13479. NULLCMD=:
  13480. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13481. # is contrary to our usage. Disable this feature.
  13482. alias -g '${1+"$@"}'='"$@"'
  13483. setopt NO_GLOB_SUBST
  13484. else
  13485. case `(set -o) 2>/dev/null` in #(
  13486. *posix*) :
  13487. set -o posix ;; #(
  13488. *) :
  13489. ;;
  13490. esac
  13491. fi
  13492. as_nl='
  13493. '
  13494. export as_nl
  13495. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13496. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13497. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13498. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13499. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13500. # but without wasting forks for bash or zsh.
  13501. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13502. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13503. as_echo='print -r --'
  13504. as_echo_n='print -rn --'
  13505. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13506. as_echo='printf %s\n'
  13507. as_echo_n='printf %s'
  13508. else
  13509. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13510. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13511. as_echo_n='/usr/ucb/echo -n'
  13512. else
  13513. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13514. as_echo_n_body='eval
  13515. arg=$1;
  13516. case $arg in #(
  13517. *"$as_nl"*)
  13518. expr "X$arg" : "X\\(.*\\)$as_nl";
  13519. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13520. esac;
  13521. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13522. '
  13523. export as_echo_n_body
  13524. as_echo_n='sh -c $as_echo_n_body as_echo'
  13525. fi
  13526. export as_echo_body
  13527. as_echo='sh -c $as_echo_body as_echo'
  13528. fi
  13529. # The user is always right.
  13530. if test "${PATH_SEPARATOR+set}" != set; then
  13531. PATH_SEPARATOR=:
  13532. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13533. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13534. PATH_SEPARATOR=';'
  13535. }
  13536. fi
  13537. # IFS
  13538. # We need space, tab and new line, in precisely that order. Quoting is
  13539. # there to prevent editors from complaining about space-tab.
  13540. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13541. # splitting by setting IFS to empty value.)
  13542. IFS=" "" $as_nl"
  13543. # Find who we are. Look in the path if we contain no directory separator.
  13544. case $0 in #((
  13545. *[\\/]* ) as_myself=$0 ;;
  13546. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13547. for as_dir in $PATH
  13548. do
  13549. IFS=$as_save_IFS
  13550. test -z "$as_dir" && as_dir=.
  13551. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13552. done
  13553. IFS=$as_save_IFS
  13554. ;;
  13555. esac
  13556. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13557. # in which case we are not to be found in the path.
  13558. if test "x$as_myself" = x; then
  13559. as_myself=$0
  13560. fi
  13561. if test ! -f "$as_myself"; then
  13562. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13563. exit 1
  13564. fi
  13565. # Unset variables that we do not need and which cause bugs (e.g. in
  13566. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13567. # suppresses any "Segmentation fault" message there. '((' could
  13568. # trigger a bug in pdksh 5.2.14.
  13569. for as_var in BASH_ENV ENV MAIL MAILPATH
  13570. do eval test x\${$as_var+set} = xset \
  13571. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13572. done
  13573. PS1='$ '
  13574. PS2='> '
  13575. PS4='+ '
  13576. # NLS nuisances.
  13577. LC_ALL=C
  13578. export LC_ALL
  13579. LANGUAGE=C
  13580. export LANGUAGE
  13581. # CDPATH.
  13582. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13583. # as_fn_error ERROR [LINENO LOG_FD]
  13584. # ---------------------------------
  13585. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13586. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13587. # script with status $?, using 1 if that was 0.
  13588. as_fn_error ()
  13589. {
  13590. as_status=$?; test $as_status -eq 0 && as_status=1
  13591. if test "$3"; then
  13592. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13593. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13594. fi
  13595. $as_echo "$as_me: error: $1" >&2
  13596. as_fn_exit $as_status
  13597. } # as_fn_error
  13598. # as_fn_set_status STATUS
  13599. # -----------------------
  13600. # Set $? to STATUS, without forking.
  13601. as_fn_set_status ()
  13602. {
  13603. return $1
  13604. } # as_fn_set_status
  13605. # as_fn_exit STATUS
  13606. # -----------------
  13607. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13608. as_fn_exit ()
  13609. {
  13610. set +e
  13611. as_fn_set_status $1
  13612. exit $1
  13613. } # as_fn_exit
  13614. # as_fn_unset VAR
  13615. # ---------------
  13616. # Portably unset VAR.
  13617. as_fn_unset ()
  13618. {
  13619. { eval $1=; unset $1;}
  13620. }
  13621. as_unset=as_fn_unset
  13622. # as_fn_append VAR VALUE
  13623. # ----------------------
  13624. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13625. # advantage of any shell optimizations that allow amortized linear growth over
  13626. # repeated appends, instead of the typical quadratic growth present in naive
  13627. # implementations.
  13628. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13629. eval 'as_fn_append ()
  13630. {
  13631. eval $1+=\$2
  13632. }'
  13633. else
  13634. as_fn_append ()
  13635. {
  13636. eval $1=\$$1\$2
  13637. }
  13638. fi # as_fn_append
  13639. # as_fn_arith ARG...
  13640. # ------------------
  13641. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13642. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13643. # must be portable across $(()) and expr.
  13644. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13645. eval 'as_fn_arith ()
  13646. {
  13647. as_val=$(( $* ))
  13648. }'
  13649. else
  13650. as_fn_arith ()
  13651. {
  13652. as_val=`expr "$@" || test $? -eq 1`
  13653. }
  13654. fi # as_fn_arith
  13655. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13656. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13657. as_expr=expr
  13658. else
  13659. as_expr=false
  13660. fi
  13661. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13662. as_basename=basename
  13663. else
  13664. as_basename=false
  13665. fi
  13666. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13667. as_dirname=dirname
  13668. else
  13669. as_dirname=false
  13670. fi
  13671. as_me=`$as_basename -- "$0" ||
  13672. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13673. X"$0" : 'X\(//\)$' \| \
  13674. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13675. $as_echo X/"$0" |
  13676. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13677. s//\1/
  13678. q
  13679. }
  13680. /^X\/\(\/\/\)$/{
  13681. s//\1/
  13682. q
  13683. }
  13684. /^X\/\(\/\).*/{
  13685. s//\1/
  13686. q
  13687. }
  13688. s/.*/./; q'`
  13689. # Avoid depending upon Character Ranges.
  13690. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13691. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13692. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13693. as_cr_digits='0123456789'
  13694. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13695. ECHO_C= ECHO_N= ECHO_T=
  13696. case `echo -n x` in #(((((
  13697. -n*)
  13698. case `echo 'xy\c'` in
  13699. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13700. xy) ECHO_C='\c';;
  13701. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13702. ECHO_T=' ';;
  13703. esac;;
  13704. *)
  13705. ECHO_N='-n';;
  13706. esac
  13707. rm -f conf$$ conf$$.exe conf$$.file
  13708. if test -d conf$$.dir; then
  13709. rm -f conf$$.dir/conf$$.file
  13710. else
  13711. rm -f conf$$.dir
  13712. mkdir conf$$.dir 2>/dev/null
  13713. fi
  13714. if (echo >conf$$.file) 2>/dev/null; then
  13715. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13716. as_ln_s='ln -s'
  13717. # ... but there are two gotchas:
  13718. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13719. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13720. # In both cases, we have to default to `cp -p'.
  13721. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13722. as_ln_s='cp -p'
  13723. elif ln conf$$.file conf$$ 2>/dev/null; then
  13724. as_ln_s=ln
  13725. else
  13726. as_ln_s='cp -p'
  13727. fi
  13728. else
  13729. as_ln_s='cp -p'
  13730. fi
  13731. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13732. rmdir conf$$.dir 2>/dev/null
  13733. # as_fn_mkdir_p
  13734. # -------------
  13735. # Create "$as_dir" as a directory, including parents if necessary.
  13736. as_fn_mkdir_p ()
  13737. {
  13738. case $as_dir in #(
  13739. -*) as_dir=./$as_dir;;
  13740. esac
  13741. test -d "$as_dir" || eval $as_mkdir_p || {
  13742. as_dirs=
  13743. while :; do
  13744. case $as_dir in #(
  13745. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13746. *) as_qdir=$as_dir;;
  13747. esac
  13748. as_dirs="'$as_qdir' $as_dirs"
  13749. as_dir=`$as_dirname -- "$as_dir" ||
  13750. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13751. X"$as_dir" : 'X\(//\)[^/]' \| \
  13752. X"$as_dir" : 'X\(//\)$' \| \
  13753. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13754. $as_echo X"$as_dir" |
  13755. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13756. s//\1/
  13757. q
  13758. }
  13759. /^X\(\/\/\)[^/].*/{
  13760. s//\1/
  13761. q
  13762. }
  13763. /^X\(\/\/\)$/{
  13764. s//\1/
  13765. q
  13766. }
  13767. /^X\(\/\).*/{
  13768. s//\1/
  13769. q
  13770. }
  13771. s/.*/./; q'`
  13772. test -d "$as_dir" && break
  13773. done
  13774. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13775. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13776. } # as_fn_mkdir_p
  13777. if mkdir -p . 2>/dev/null; then
  13778. as_mkdir_p='mkdir -p "$as_dir"'
  13779. else
  13780. test -d ./-p && rmdir ./-p
  13781. as_mkdir_p=false
  13782. fi
  13783. if test -x / >/dev/null 2>&1; then
  13784. as_test_x='test -x'
  13785. else
  13786. if ls -dL / >/dev/null 2>&1; then
  13787. as_ls_L_option=L
  13788. else
  13789. as_ls_L_option=
  13790. fi
  13791. as_test_x='
  13792. eval sh -c '\''
  13793. if test -d "$1"; then
  13794. test -d "$1/.";
  13795. else
  13796. case $1 in #(
  13797. -*)set "./$1";;
  13798. esac;
  13799. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13800. ???[sx]*):;;*)false;;esac;fi
  13801. '\'' sh
  13802. '
  13803. fi
  13804. as_executable_p=$as_test_x
  13805. # Sed expression to map a string onto a valid CPP name.
  13806. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13807. # Sed expression to map a string onto a valid variable name.
  13808. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13809. exec 6>&1
  13810. ## ----------------------------------- ##
  13811. ## Main body of $CONFIG_STATUS script. ##
  13812. ## ----------------------------------- ##
  13813. _ASEOF
  13814. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13815. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13816. # Save the log message, to keep $0 and so on meaningful, and to
  13817. # report actual input values of CONFIG_FILES etc. instead of their
  13818. # values after options handling.
  13819. ac_log="
  13820. This file was extended by $as_me, which was
  13821. generated by GNU Autoconf 2.64. Invocation command line was
  13822. CONFIG_FILES = $CONFIG_FILES
  13823. CONFIG_HEADERS = $CONFIG_HEADERS
  13824. CONFIG_LINKS = $CONFIG_LINKS
  13825. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13826. $ $0 $@
  13827. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13828. "
  13829. _ACEOF
  13830. case $ac_config_files in *"
  13831. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13832. esac
  13833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13834. # Files that config.status was made for.
  13835. config_files="$ac_config_files"
  13836. _ACEOF
  13837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13838. ac_cs_usage="\
  13839. \`$as_me' instantiates files and other configuration actions
  13840. from templates according to the current configuration. Unless the files
  13841. and actions are specified as TAGs, all are instantiated by default.
  13842. Usage: $0 [OPTION]... [TAG]...
  13843. -h, --help print this help, then exit
  13844. -V, --version print version number and configuration settings, then exit
  13845. -q, --quiet, --silent
  13846. do not print progress messages
  13847. -d, --debug don't remove temporary files
  13848. --recheck update $as_me by reconfiguring in the same conditions
  13849. --file=FILE[:TEMPLATE]
  13850. instantiate the configuration file FILE
  13851. Configuration files:
  13852. $config_files
  13853. Report bugs to the package provider."
  13854. _ACEOF
  13855. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13856. ac_cs_version="\\
  13857. config.status
  13858. configured by $0, generated by GNU Autoconf 2.64,
  13859. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13860. Copyright (C) 2009 Free Software Foundation, Inc.
  13861. This config.status script is free software; the Free Software Foundation
  13862. gives unlimited permission to copy, distribute and modify it."
  13863. ac_pwd='$ac_pwd'
  13864. srcdir='$srcdir'
  13865. INSTALL='$INSTALL'
  13866. AWK='$AWK'
  13867. test -n "\$AWK" || AWK=awk
  13868. _ACEOF
  13869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13870. # The default lists apply if the user does not specify any file.
  13871. ac_need_defaults=:
  13872. while test $# != 0
  13873. do
  13874. case $1 in
  13875. --*=*)
  13876. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13877. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13878. ac_shift=:
  13879. ;;
  13880. *)
  13881. ac_option=$1
  13882. ac_optarg=$2
  13883. ac_shift=shift
  13884. ;;
  13885. esac
  13886. case $ac_option in
  13887. # Handling of the options.
  13888. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13889. ac_cs_recheck=: ;;
  13890. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13891. $as_echo "$ac_cs_version"; exit ;;
  13892. --debug | --debu | --deb | --de | --d | -d )
  13893. debug=: ;;
  13894. --file | --fil | --fi | --f )
  13895. $ac_shift
  13896. case $ac_optarg in
  13897. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13898. esac
  13899. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13900. ac_need_defaults=false;;
  13901. --he | --h | --help | --hel | -h )
  13902. $as_echo "$ac_cs_usage"; exit ;;
  13903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13904. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13905. ac_cs_silent=: ;;
  13906. # This is an error.
  13907. -*) as_fn_error "unrecognized option: \`$1'
  13908. Try \`$0 --help' for more information." ;;
  13909. *) as_fn_append ac_config_targets " $1"
  13910. ac_need_defaults=false ;;
  13911. esac
  13912. shift
  13913. done
  13914. ac_configure_extra_args=
  13915. if $ac_cs_silent; then
  13916. exec 6>/dev/null
  13917. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13918. fi
  13919. _ACEOF
  13920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13921. if \$ac_cs_recheck; then
  13922. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13923. shift
  13924. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13925. CONFIG_SHELL='$SHELL'
  13926. export CONFIG_SHELL
  13927. exec "\$@"
  13928. fi
  13929. _ACEOF
  13930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13931. exec 5>>config.log
  13932. {
  13933. echo
  13934. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13935. ## Running $as_me. ##
  13936. _ASBOX
  13937. $as_echo "$ac_log"
  13938. } >&5
  13939. _ACEOF
  13940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13941. #
  13942. # INIT-COMMANDS
  13943. #
  13944. extrasub_build="$extrasub_build"
  13945. extrasub_host="$extrasub_host"
  13946. extrasub_target="$extrasub_target"
  13947. _ACEOF
  13948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13949. # Handling of arguments.
  13950. for ac_config_target in $ac_config_targets
  13951. do
  13952. case $ac_config_target in
  13953. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13954. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13955. esac
  13956. done
  13957. # If the user did not use the arguments to specify the items to instantiate,
  13958. # then the envvar interface is used. Set only those that are not.
  13959. # We use the long form for the default assignment because of an extremely
  13960. # bizarre bug on SunOS 4.1.3.
  13961. if $ac_need_defaults; then
  13962. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13963. fi
  13964. # Have a temporary directory for convenience. Make it in the build tree
  13965. # simply because there is no reason against having it here, and in addition,
  13966. # creating and moving files from /tmp can sometimes cause problems.
  13967. # Hook for its removal unless debugging.
  13968. # Note that there is a small window in which the directory will not be cleaned:
  13969. # after its creation but before its name has been assigned to `$tmp'.
  13970. $debug ||
  13971. {
  13972. tmp=
  13973. trap 'exit_status=$?
  13974. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13975. ' 0
  13976. trap 'as_fn_exit 1' 1 2 13 15
  13977. }
  13978. # Create a (secure) tmp directory for tmp files.
  13979. {
  13980. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13981. test -n "$tmp" && test -d "$tmp"
  13982. } ||
  13983. {
  13984. tmp=./conf$$-$RANDOM
  13985. (umask 077 && mkdir "$tmp")
  13986. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13987. # Set up the scripts for CONFIG_FILES section.
  13988. # No need to generate them if there are no CONFIG_FILES.
  13989. # This happens for instance with `./config.status config.h'.
  13990. if test -n "$CONFIG_FILES"; then
  13991. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  13992. ac_cs_awk_getline=:
  13993. ac_cs_awk_pipe_init=
  13994. ac_cs_awk_read_file='
  13995. while ((getline aline < (F[key])) > 0)
  13996. print(aline)
  13997. close(F[key])'
  13998. ac_cs_awk_pipe_fini=
  13999. else
  14000. ac_cs_awk_getline=false
  14001. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  14002. ac_cs_awk_read_file='
  14003. print "|#_!!_#|"
  14004. print "cat " F[key] " &&"
  14005. '$ac_cs_awk_pipe_init
  14006. # The final `:' finishes the AND list.
  14007. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  14008. fi
  14009. ac_cr=`echo X | tr X '\015'`
  14010. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14011. # But we know of no other shell where ac_cr would be empty at this
  14012. # point, so we can use a bashism as a fallback.
  14013. if test "x$ac_cr" = x; then
  14014. eval ac_cr=\$\'\\r\'
  14015. fi
  14016. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14017. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14018. ac_cs_awk_cr='\r'
  14019. else
  14020. ac_cs_awk_cr=$ac_cr
  14021. fi
  14022. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14023. _ACEOF
  14024. # Create commands to substitute file output variables.
  14025. {
  14026. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  14027. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  14028. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  14029. echo "_ACAWK" &&
  14030. echo "_ACEOF"
  14031. } >conf$$files.sh &&
  14032. . ./conf$$files.sh ||
  14033. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14034. rm -f conf$$files.sh
  14035. {
  14036. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14037. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14038. echo "_ACEOF"
  14039. } >conf$$subs.sh ||
  14040. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14041. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14042. ac_delim='%!_!# '
  14043. for ac_last_try in false false false false false :; do
  14044. . ./conf$$subs.sh ||
  14045. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14046. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14047. if test $ac_delim_n = $ac_delim_num; then
  14048. break
  14049. elif $ac_last_try; then
  14050. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14051. else
  14052. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14053. fi
  14054. done
  14055. rm -f conf$$subs.sh
  14056. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14057. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14058. _ACEOF
  14059. sed -n '
  14060. h
  14061. s/^/S["/; s/!.*/"]=/
  14062. p
  14063. g
  14064. s/^[^!]*!//
  14065. :repl
  14066. t repl
  14067. s/'"$ac_delim"'$//
  14068. t delim
  14069. :nl
  14070. h
  14071. s/\(.\{148\}\).*/\1/
  14072. t more1
  14073. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14074. p
  14075. n
  14076. b repl
  14077. :more1
  14078. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14079. p
  14080. g
  14081. s/.\{148\}//
  14082. t nl
  14083. :delim
  14084. h
  14085. s/\(.\{148\}\).*/\1/
  14086. t more2
  14087. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14088. p
  14089. b
  14090. :more2
  14091. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14092. p
  14093. g
  14094. s/.\{148\}//
  14095. t delim
  14096. ' <conf$$subs.awk | sed '
  14097. /^[^""]/{
  14098. N
  14099. s/\n//
  14100. }
  14101. ' >>$CONFIG_STATUS || ac_write_fail=1
  14102. rm -f conf$$subs.awk
  14103. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14104. _ACAWK
  14105. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14106. for (key in S) S_is_set[key] = 1
  14107. FS = ""
  14108. \$ac_cs_awk_pipe_init
  14109. }
  14110. {
  14111. line = $ 0
  14112. nfields = split(line, field, "@")
  14113. substed = 0
  14114. len = length(field[1])
  14115. for (i = 2; i < nfields; i++) {
  14116. key = field[i]
  14117. keylen = length(key)
  14118. if (S_is_set[key]) {
  14119. value = S[key]
  14120. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14121. len += length(value) + length(field[++i])
  14122. substed = 1
  14123. } else
  14124. len += 1 + keylen
  14125. }
  14126. if (nfields == 3 && !substed) {
  14127. key = field[2]
  14128. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  14129. \$ac_cs_awk_read_file
  14130. next
  14131. }
  14132. }
  14133. print line
  14134. }
  14135. \$ac_cs_awk_pipe_fini
  14136. _ACAWK
  14137. _ACEOF
  14138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14139. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14140. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14141. else
  14142. cat
  14143. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14144. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14145. _ACEOF
  14146. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14147. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14148. # trailing colons and then remove the whole line if VPATH becomes empty
  14149. # (actually we leave an empty line to preserve line numbers).
  14150. if test "x$srcdir" = x.; then
  14151. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14152. s/:*\$(srcdir):*/:/
  14153. s/:*\${srcdir}:*/:/
  14154. s/:*@srcdir@:*/:/
  14155. s/^\([^=]*=[ ]*\):*/\1/
  14156. s/:*$//
  14157. s/^[^=]*=[ ]*$//
  14158. }'
  14159. fi
  14160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14161. fi # test -n "$CONFIG_FILES"
  14162. eval set X " :F $CONFIG_FILES "
  14163. shift
  14164. for ac_tag
  14165. do
  14166. case $ac_tag in
  14167. :[FHLC]) ac_mode=$ac_tag; continue;;
  14168. esac
  14169. case $ac_mode$ac_tag in
  14170. :[FHL]*:*);;
  14171. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14172. :[FH]-) ac_tag=-:-;;
  14173. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14174. esac
  14175. ac_save_IFS=$IFS
  14176. IFS=:
  14177. set x $ac_tag
  14178. IFS=$ac_save_IFS
  14179. shift
  14180. ac_file=$1
  14181. shift
  14182. case $ac_mode in
  14183. :L) ac_source=$1;;
  14184. :[FH])
  14185. ac_file_inputs=
  14186. for ac_f
  14187. do
  14188. case $ac_f in
  14189. -) ac_f="$tmp/stdin";;
  14190. *) # Look for the file first in the build tree, then in the source tree
  14191. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14192. # because $ac_f cannot contain `:'.
  14193. test -f "$ac_f" ||
  14194. case $ac_f in
  14195. [\\/$]*) false;;
  14196. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14197. esac ||
  14198. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14199. esac
  14200. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14201. as_fn_append ac_file_inputs " '$ac_f'"
  14202. done
  14203. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14204. # use $as_me), people would be surprised to read:
  14205. # /* config.h. Generated by config.status. */
  14206. configure_input='Generated from '`
  14207. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14208. `' by configure.'
  14209. if test x"$ac_file" != x-; then
  14210. configure_input="$ac_file. $configure_input"
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14212. $as_echo "$as_me: creating $ac_file" >&6;}
  14213. fi
  14214. # Neutralize special characters interpreted by sed in replacement strings.
  14215. case $configure_input in #(
  14216. *\&* | *\|* | *\\* )
  14217. ac_sed_conf_input=`$as_echo "$configure_input" |
  14218. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14219. *) ac_sed_conf_input=$configure_input;;
  14220. esac
  14221. case $ac_tag in
  14222. *:-:* | *:-) cat >"$tmp/stdin" \
  14223. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14224. esac
  14225. ;;
  14226. esac
  14227. ac_dir=`$as_dirname -- "$ac_file" ||
  14228. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14229. X"$ac_file" : 'X\(//\)[^/]' \| \
  14230. X"$ac_file" : 'X\(//\)$' \| \
  14231. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14232. $as_echo X"$ac_file" |
  14233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14234. s//\1/
  14235. q
  14236. }
  14237. /^X\(\/\/\)[^/].*/{
  14238. s//\1/
  14239. q
  14240. }
  14241. /^X\(\/\/\)$/{
  14242. s//\1/
  14243. q
  14244. }
  14245. /^X\(\/\).*/{
  14246. s//\1/
  14247. q
  14248. }
  14249. s/.*/./; q'`
  14250. as_dir="$ac_dir"; as_fn_mkdir_p
  14251. ac_builddir=.
  14252. case "$ac_dir" in
  14253. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14254. *)
  14255. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14256. # A ".." for each directory in $ac_dir_suffix.
  14257. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14258. case $ac_top_builddir_sub in
  14259. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14260. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14261. esac ;;
  14262. esac
  14263. ac_abs_top_builddir=$ac_pwd
  14264. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14265. # for backward compatibility:
  14266. ac_top_builddir=$ac_top_build_prefix
  14267. case $srcdir in
  14268. .) # We are building in place.
  14269. ac_srcdir=.
  14270. ac_top_srcdir=$ac_top_builddir_sub
  14271. ac_abs_top_srcdir=$ac_pwd ;;
  14272. [\\/]* | ?:[\\/]* ) # Absolute name.
  14273. ac_srcdir=$srcdir$ac_dir_suffix;
  14274. ac_top_srcdir=$srcdir
  14275. ac_abs_top_srcdir=$srcdir ;;
  14276. *) # Relative name.
  14277. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14278. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14279. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14280. esac
  14281. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14282. case $ac_mode in
  14283. :F)
  14284. #
  14285. # CONFIG_FILE
  14286. #
  14287. case $INSTALL in
  14288. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14289. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14290. esac
  14291. _ACEOF
  14292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14293. # If the template does not know about datarootdir, expand it.
  14294. # FIXME: This hack should be removed a few years after 2.60.
  14295. ac_datarootdir_hack=; ac_datarootdir_seen=
  14296. ac_sed_dataroot='
  14297. /datarootdir/ {
  14298. p
  14299. q
  14300. }
  14301. /@datadir@/p
  14302. /@docdir@/p
  14303. /@infodir@/p
  14304. /@localedir@/p
  14305. /@mandir@/p'
  14306. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14307. *datarootdir*) ac_datarootdir_seen=yes;;
  14308. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14310. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14311. _ACEOF
  14312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14313. ac_datarootdir_hack='
  14314. s&@datadir@&$datadir&g
  14315. s&@docdir@&$docdir&g
  14316. s&@infodir@&$infodir&g
  14317. s&@localedir@&$localedir&g
  14318. s&@mandir@&$mandir&g
  14319. s&\\\${datarootdir}&$datarootdir&g' ;;
  14320. esac
  14321. _ACEOF
  14322. # Neutralize VPATH when `$srcdir' = `.'.
  14323. # Shell code in configure.ac might set extrasub.
  14324. # FIXME: do we really want to maintain this feature?
  14325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14326. ac_sed_extra="$ac_vpsub
  14327. $extrasub
  14328. _ACEOF
  14329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14330. :t
  14331. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14332. s|@configure_input@|$ac_sed_conf_input|;t t
  14333. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14334. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14335. s&@srcdir@&$ac_srcdir&;t t
  14336. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14337. s&@top_srcdir@&$ac_top_srcdir&;t t
  14338. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14339. s&@builddir@&$ac_builddir&;t t
  14340. s&@abs_builddir@&$ac_abs_builddir&;t t
  14341. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14342. s&@INSTALL@&$ac_INSTALL&;t t
  14343. $ac_datarootdir_hack
  14344. "
  14345. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14346. if $ac_cs_awk_getline; then
  14347. $AWK -f "$tmp/subs.awk"
  14348. else
  14349. $AWK -f "$tmp/subs.awk" | $SHELL
  14350. fi >$tmp/out \
  14351. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14352. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14353. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14354. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14356. which seems to be undefined. Please make sure it is defined." >&5
  14357. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14358. which seems to be undefined. Please make sure it is defined." >&2;}
  14359. rm -f "$tmp/stdin"
  14360. case $ac_file in
  14361. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14362. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14363. esac \
  14364. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14365. ;;
  14366. esac
  14367. case $ac_file$ac_mode in
  14368. "Makefile":F) sed "$extrasub_build" Makefile |
  14369. sed "$extrasub_host" |
  14370. sed "$extrasub_target" > mf$$
  14371. mv -f mf$$ Makefile ;;
  14372. esac
  14373. done # for ac_tag
  14374. as_fn_exit 0
  14375. _ACEOF
  14376. ac_clean_files=$ac_clean_files_save
  14377. test $ac_write_fail = 0 ||
  14378. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14379. # configure is writing to config.log, and then calls config.status.
  14380. # config.status does its own redirection, appending to config.log.
  14381. # Unfortunately, on DOS this fails, as config.log is still kept open
  14382. # by configure, so config.status won't be able to write to it; its
  14383. # output is simply discarded. So we exec the FD to /dev/null,
  14384. # effectively closing config.log, so it can be properly (re)opened and
  14385. # appended to by config.status. When coming back to configure, we
  14386. # need to make the FD available again.
  14387. if test "$no_create" != yes; then
  14388. ac_cs_success=:
  14389. ac_config_status_args=
  14390. test "$silent" = yes &&
  14391. ac_config_status_args="$ac_config_status_args --quiet"
  14392. exec 5>/dev/null
  14393. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14394. exec 5>>config.log
  14395. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14396. # would make configure fail if this is the last instruction.
  14397. $ac_cs_success || as_fn_exit $?
  14398. fi
  14399. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14401. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14402. fi